PageSourceSearch

https://pcexpert.store/assets/index-BgxFEqo3.js

js pcexpert.store collected 2026-09-24 15:11:57 UTC 668,709 bytes, 375 lines download raw bytes

1var JN=Object.defineProperty;var ty=t=>{throw TypeError(t)};var WN=(t,i,s)=>i in t?JN(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s;var ri=(t,i,s)=>WN(t,typeof i!="symbol"?i+"":i,s),yf=(t,i,s)=>i.has(t)||ty("Cannot "+s);var M=(t,i,s)=>(yf(t,i,"read from private field"),s?s.call(t):i.get(t)),pe=(t,i,s)=>i.has(t)?ty("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,s),le=(t,i,s,l)=>(yf(t,i,"write to private field"),l?l.call(t,s):i.set(t,s),s),ze=(t,i,s)=>(yf(t,i,"access private method"),s);var lc=(t,i,s,l)=>({set _(c){le(t,i,c,s)},get _(){return M(t,i,l)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function s(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 l(c){if(c.ep)return;c.ep=!0;const d=s(c);fetch(c.href,d)}})();function Vc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var bf={exports:{}},Yr={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var ny;function eS(){if(ny)return Yr;ny=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(l,c,d){var f=null;if(d!==void 0&&(f=""+d),c.key!==void 0&&(f=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;
vendor: 6,192 bytes, lines 9-17
9return c=d.ref,{$$typeof:t,type:l,key:f,ref:c!==void 0?c:null,props:d}}return Yr.Fragment=i,Yr.jsx=s,Yr.jsxs=s,Yr}var iy;function tS(){return iy||(iy=1,bf.exports=eS()),bf.exports}var r=tS(),vf={exports:{}},ve={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var ay;function nS(){if(ay)return ve;ay=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function S(A){return A===null||typeof A!="object"?null:(A=v&&A[v]||A["@@iterator"],typeof A=="function"?A:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function T(A,B,L){this.props=A,this.context=B,this.refs=E,this.updater=L||j}T.prototype.isReactComponent={},T.prototype.setState=function(A,B){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,B,"setState")},T.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=T.prototype;function O(A,B,L){this.props=A,this.context=B,this.refs=E,this.updater=L||j}var U=O.prototype=new _;U.constructor=O,C(U,T.prototype),U.isPureReactComponent=!0;var Q=Array.isArray;function ee(){}var Y={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ie(A,B,L){var W=L.ref;return{$$typeof:t,type:A,key:B,ref:W!==void 0?W:null,props:L}}function re(A,B){return ie(A.type,B,A.props)}function ne(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function xe(A){var B={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(L){return B[L]})}var Ce=/\/+/g;function ae(A,B){return typeof A=="object"&&A!==null&&A.key!=null?xe(""+A.key):B.toString(36)}function q(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(ee,ee):(A.status="pending",A.then(function(B){A.status==="pending"&&(A.status="fulfilled",A.value=B)},function(B){A.status==="pending"&&(A.status="rejected",A.reason=B)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function D(A,B,L,W,oe){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var je=!1;if(A===null)je=!0;else switch(de){case"bigint":case"string":case"number":je=!0;break;case"object":switch(A.$$typeof){case t:case i:je=!0;break;case g:return je=A._init,D(je(A._payload),B,L,W,oe)}}if(je)return oe=oe(A),je=W===""?"."+ae(A,0):W,Q(oe)?(L="",je!=null&&(L=je.replace(Ce,"$&/")+"/"),D(oe,B,L,"",function(tr){return tr})):oe!=null&&(ne(oe)&&(oe=re(oe,L+(oe.key==null||A&&A.key===oe.key?"":(""+oe.key).replace(Ce,"$&/")+"/")+je)),B.push(oe)),1;je=0;var ft=W===""?".":W+":";if(Q(A))for(var We=0;We<A.length;We++)W=A[We],de=ft+ae(W,We),je+=D(W,B,L,de,oe);else if(We=S(A),typeof We=="function")for(A=We.call(A),We=0;!(W=A.next()).done;)W=W.value,de=ft+ae(W,We++),je+=D(W,B,L,de,oe);else if(de==="object"){if(typeof A.then=="function")return D(q(A),B,L,W,oe);throw B=String(A),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return je}function J(A,B,L){if(A==null)return A;var W=[],oe=0;return D(A,W,"","",function(de){return B.call(L,de,oe++)}),W}function se(A){if(A._status===-1){var B=A._result;B=B(),B.then(function(L){(A._status===0||A._status===-1)&&(A._status=1,A._result=L)},function(L){(A._status===0||A._status===-1)&&(A._status=2,A._result=L)}),A._status===-1&&(A._status=0,A._result=B)}if(A._status===1)return A._result.default;throw A._result}var ge=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},te={map:J,forEach:function(A,B,L){J(A,function(){B.apply(this,arguments)},L)},count:function(A){var B=0;return J(A,function(){B++}),B},toArray:function(A){return J(A,function(B){return B})||[]},only:function(A){if(!ne(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return ve.Activity=b,ve.Children=te,ve.Component=T,ve.Fragment=s,ve.Profiler=c,ve.PureComponent=O,ve.StrictMode=l,ve.Suspense=p,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ve.__COMPILER_RUNTIME={__proto__:null,c:function(A){return Y.H.useMemoCache(A)}},ve.cache=function(A){return function(){return A.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(A,B,L){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=C({},A.props),oe=A.key;if(B!=null)for(de in B.key!==void 0&&(oe=""+B.key),B)!I.call(B,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&B.ref===void 0||(W[de]=B[de]);var de=arguments.length-2;if(de===1)W.children=L;else if(1<de){for(var je=Array(de),ft=0;ft<de;ft++)je[ft]=arguments[ft+2];W.children=je}return ie(A.type,oe,W)},ve.createContext=function(A){return A={$$typeof:f,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},ve.createElement=function(A,B,L){var W,oe={},de=null;if(B!=null)for(W in B.key!==void 0&&(de=""+B.key),B)I.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(
vendor: 6,050 bytes, lines 17-25
17oe[W]=B[W]);var je=arguments.length-2;if(je===1)oe.children=L;else if(1<je){for(var ft=Array(je),We=0;We<je;We++)ft[We]=arguments[We+2];oe.children=ft}if(A&&A.defaultProps)for(W in je=A.defaultProps,je)oe[W]===void 0&&(oe[W]=je[W]);return ie(A,de,oe)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(A){return{$$typeof:m,render:A}},ve.isValidElement=ne,ve.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:se}},ve.memo=function(A,B){return{$$typeof:x,type:A,compare:B===void 0?null:B}},ve.startTransition=function(A){var B=Y.T,L={};Y.T=L;try{var W=A(),oe=Y.S;oe!==null&&oe(L,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ee,ge)}catch(de){ge(de)}finally{B!==null&&L.types!==null&&(B.types=L.types),Y.T=B}},ve.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ve.use=function(A){return Y.H.use(A)},ve.useActionState=function(A,B,L){return Y.H.useActionState(A,B,L)},ve.useCallback=function(A,B){return Y.H.useCallback(A,B)},ve.useContext=function(A){return Y.H.useContext(A)},ve.useDebugValue=function(){},ve.useDeferredValue=function(A,B){return Y.H.useDeferredValue(A,B)},ve.useEffect=function(A,B){return Y.H.useEffect(A,B)},ve.useEffectEvent=function(A){return Y.H.useEffectEvent(A)},ve.useId=function(){return Y.H.useId()},ve.useImperativeHandle=function(A,B,L){return Y.H.useImperativeHandle(A,B,L)},ve.useInsertionEffect=function(A,B){return Y.H.useInsertionEffect(A,B)},ve.useLayoutEffect=function(A,B){return Y.H.useLayoutEffect(A,B)},ve.useMemo=function(A,B){return Y.H.useMemo(A,B)},ve.useOptimistic=function(A,B){return Y.H.useOptimistic(A,B)},ve.useReducer=function(A,B,L){return Y.H.useReducer(A,B,L)},ve.useRef=function(A){return Y.H.useRef(A)},ve.useState=function(A){return Y.H.useState(A)},ve.useSyncExternalStore=function(A,B,L){return Y.H.useSyncExternalStore(A,B,L)},ve.useTransition=function(){return Y.H.useTransition()},ve.version="19.2.4",ve}var sy;function Wh(){return sy||(sy=1,vf.exports=nS()),vf.exports}var N=Wh();const at=Vc(N);var jf={exports:{}},Kr={},wf={exports:{}},Nf={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var ry;function iS(){return ry||(ry=1,(function(t){function i(D,J){var se=D.length;D.push(J);e:for(;0<se;){var ge=se-1>>>1,te=D[ge];if(0<c(te,J))D[ge]=J,D[se]=te,se=ge;else break e}}function s(D){return D.length===0?null:D[0]}function l(D){if(D.length===0)return null;var J=D[0],se=D.pop();if(se!==J){D[0]=se;e:for(var ge=0,te=D.length,A=te>>>1;ge<A;){var B=2*(ge+1)-1,L=D[B],W=B+1,oe=D[W];if(0>c(L,se))W<te&&0>c(oe,L)?(D[ge]=oe,D[W]=se,ge=W):(D[ge]=L,D[B]=se,ge=B);else if(W<te&&0>c(oe,se))D[ge]=oe,D[W]=se,ge=W;else break e}}return J}function c(D,J){var se=D.sortIndex-J.sortIndex;return se!==0?se:D.id-J.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var p=[],x=[],g=1,b=null,v=3,S=!1,j=!1,C=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function U(D){for(var J=s(x);J!==null;){if(J.callback===null)l(x);else if(J.startTime<=D)l(x),J.sortIndex=J.expirationTime,i(p,J);else break;J=s(x)}}function Q(D){if(C=!1,U(D),!j)if(s(p)!==null)j=!0,ee||(ee=!0,xe());else{var J=s(x);J!==null&&q(Q,J.startTime-D)}}var ee=!1,Y=-1,I=5,ie=-1;function re(){return E?!0:!(t.unstable_now()-ie<I)}function ne(){if(E=!1,ee){var D=t.unstable_now();ie=D;var J=!0;try{e:{j=!1,C&&(C=!1,_(Y),Y=-1),S=!0;var se=v;try{t:{for(U(D),b=s(p);b!==null&&!(b.expirationTime>D&&re());){var ge=b.callback;if(typeof ge=="function"){b.callback=null,v=b.priorityLevel;var te=ge(b.expirationTime<=D);if(D=t.unstable_now(),typeof te=="function"){b.callback=te,U(D),J=!0;break t}b===s(p)&&l(p),U(D)}else l(p);b=s(p)}if(b!==null)J=!0;else{var A=s(x);A!==null&&q(Q,A.startTime-D),J=!1}}break e}finally{b=null,v=se,S=!1}J=void 0}}finally{J?xe():ee=!1}}}var xe;if(typeof O=="function")xe=function(){O(ne)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,ae=Ce.port2;Ce.port1.onmessage=ne,xe=function(){ae.postMessage(null)}}else xe=function(){T(ne,0)};function q(D,J){Y=T(function(){D(t.unstable_now())},J)}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(D){D.callback=null},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(D){switch(v){case 1:case 2:case 3:var J=3;break;default:J=v}var se=v;v=J;try{return D()}finally{v=se}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(D,J){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var se=v;v=D;try{return J()}finally{v=se}},t.unstable_scheduleCallback=function(D,J,se){var ge=t.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ge+se:ge):se=ge,D){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=se+te,D={id:g++,callback:J,priorityLevel:D,startTime:se,expirationTime:te,sortIndex:-1},se>ge?(D.sortIndex=se,i(x,D),s(p)===null&&D===s(x)&&(C?(_(Y),Y=-1):C=!0,q(Q,se-ge))):(D.sortIndex=te,i(p,D),j||S||(j=!0,ee||(ee=!0,xe()))),D},t.unstable_shouldYield=re,t.unstable_wrapCallback=function(D){var J=v;return function(){var se=v;v=J;try{return D.apply(this,arguments)}finally{v=se}}}})(Nf)),Nf}var ly;function aS(){return ly||(ly=1,wf.exports=iS()),wf.exports}var Sf={exports:{}},Nt={};
vendor: 7,525 bytes, lines 25-41
25/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var oy;function sS(){if(oy)return Nt;oy=1;var t=Wh();function i(p){var x="https://react.dev/errors/"+p;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)x+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(p,x,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:x,implementation:g}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,x){if(p==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Nt.createPortal=function(p,x){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(i(299));return d(p,x,null,g)},Nt.flushSync=function(p){var x=f.T,g=l.p;try{if(f.T=null,l.p=2,p)return p()}finally{f.T=x,l.p=g,l.d.f()}},Nt.preconnect=function(p,x){typeof p=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,l.d.C(p,x))},Nt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},Nt.preinit=function(p,x){if(typeof p=="string"&&x&&typeof x.as=="string"){var g=x.as,b=m(g,x.crossOrigin),v=typeof x.integrity=="string"?x.integrity:void 0,S=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;g==="style"?l.d.S(p,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:S}):g==="script"&&l.d.X(p,{crossOrigin:b,integrity:v,fetchPriority:S,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Nt.preinitModule=function(p,x){if(typeof p=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var g=m(x.as,x.crossOrigin);l.d.M(p,{crossOrigin:g,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&l.d.M(p)},Nt.preload=function(p,x){if(typeof p=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var g=x.as,b=m(g,x.crossOrigin);l.d.L(p,g,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Nt.preloadModule=function(p,x){if(typeof p=="string")if(x){var g=m(x.as,x.crossOrigin);l.d.m(p,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:g,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else l.d.m(p)},Nt.requestFormReset=function(p){l.d.r(p)},Nt.unstable_batchedUpdates=function(p,x){return p(x)},Nt.useFormState=function(p,x,g){return f.H.useFormState(p,x,g)},Nt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Nt.version="19.2.4",Nt}var cy;function rS(){if(cy)return Sf.exports;cy=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(i){console.error(i)}}return t(),Sf.exports=sS(),Sf.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var uy;function lS(){if(uy)return Kr;uy=1;var t=aS(),i=Wh(),s=rS();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}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."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function f(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 m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(l(188))}function x(e){var n=e.alternate;if(!n){if(n=d(e),n===null)throw Error(l(188));return n!==e?null:e}for(var a=e,o=n;;){var u=a.return;if(u===null)break;var h=u.alternate;if(h===null){if(o=u.return,o!==null){a=o;continue}break}if(u.child===h.child){for(h=u.child;h;){if(h===a)return p(u),e;if(h===o)return p(u),n;h=h.sibling}throw Error(l(188))}if(a.return!==o.return)a=u,o=h;else{for(var y=!1,w=u.child;w;){if(w===a){y=!0,a=u,o=h;break}if(w===o){y=!0,o=u,a=h;break}w=w.sibling}if(!y){for(w=h.child;w;){if(w===a){y=!0,a=h,o=u;break}if(w===o){y=!0,o=h,a=u;break}w=w.sibling}if(!y)throw Error(l(189))}}if(a.alternate!==o)throw Error(l(190))}if(a.tag!==3)throw Error(l(188));return a.stateNode.current===a?e:n}function g(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=g(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Profiler";case E:return"StrictMode";case Q:return"Suspense";case ee:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case O:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case U:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return n=e.displayName||null,n!==null?n:ae(e.type)||"Memo";case I:n=e._payload,e=e._init;try{return ae(e(n))}catch{}}return null}var q=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pen
vendor: 4,200 bytes, lines 41-48
41ding:!1,data:null,method:null,action:null},ge=[],te=-1;function A(e){return{current:e}}function B(e){0>te||(e.current=ge[te],ge[te]=null,te--)}function L(e,n){te++,ge[te]=e.current,e.current=n}var W=A(null),oe=A(null),de=A(null),je=A(null);function ft(e,n){switch(L(de,n),L(oe,e),L(W,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Sg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Sg(n),e=Tg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(W),L(W,e)}function We(){B(W),B(oe),B(de)}function tr(e){e.memoizedState!==null&&L(je,e);var n=W.current,a=Tg(n,e.type);n!==a&&(L(oe,e),L(W,a))}function ql(e){oe.current===e&&(B(W),B(oe)),je.current===e&&(B(je),Gr._currentValue=se)}var Wc,ep;function Wi(e){if(Wc===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Wc=n&&n[1]||"",ep=-1<a.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+Wc+e+ep}var eu=!1;function tu(e,n){if(!e||eu)return"";eu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(n){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(G){var H=G}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(G){H=G}e.call(Z.prototype)}}else{try{throw Error()}catch(G){H=G}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(G){if(G&&H&&typeof G.stack=="string")return[G.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=o.DetermineComponentFrameRoot(),y=h[0],w=h[1];if(y&&w){var R=y.split(`
44`),V=w.split(`
45`);for(u=o=0;o<R.length&&!R[o].includes("DetermineComponentFrameRoot");)o++;for(;u<V.length&&!V[u].includes("DetermineComponentFrameRoot");)u++;if(o===R.length||u===V.length)for(o=R.length-1,u=V.length-1;1<=o&&0<=u&&R[o]!==V[u];)u--;for(;1<=o&&0<=u;o--,u--)if(R[o]!==V[u]){if(o!==1||u!==1)do if(o--,u--,0>u||R[o]!==V[u]){var $=`
46`+R[o].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=o&&0<=u);break}}}finally{eu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Wi(a):""}function R2(e,n){switch(e.tag){case 26:case 27:case 5:return Wi(e.type);case 16:return Wi("Lazy");case 13:return e.child!==n&&n!==null?Wi("Suspense Fallback"):Wi("Suspense");case 19:return Wi("SuspenseList");case 0:case 15:return tu(e.type,!1);case 11:return tu(e.type.render,!1);case 1:return tu(e.type,!0);case 31:return Wi("Activity");default:return""}}function tp(e){try{var n="",a=null;do n+=R2(e,a),a=e,e=e.return;while(e);return n}catch(o){return`
47Error generating stack: `+o.message+`
48`+o.stack}}var nu=Object.prototype.hasOwnProperty,iu=t.unstable_scheduleCallback,au=t.unstable_cancelCallback,z2=t.unstable_shouldYield,M2=t.unstable_requestPaint,Gt=t.unstable_now,O2=t.unstable_getCurrentPriorityLevel,np=t.unstable_ImmediatePriority,ip=t.unstable_UserBlockingPriority,Fl=t.unstable_NormalPriority,D2=t.unstable_LowPriority,ap=t.unstable_IdlePriority,_2=t.log,k2=t.unstable_setDisableYieldValue,nr=null,It=null;function hi(e){if(typeof _2=="function"&&k2(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(nr,e)}catch{}}var Qt=Math.clz32?Math.clz32:P2,U2=Math.log,L2=Math.LN2;function P2(e){return e>>>=0,e===0?32:31-(U2(e)/L2|0)|0}var Gl=256,Il=262144,Ql=4194304;function ea(e){var n=e&42;if(n!==0)return n;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;
vendor: 8,157 bytes, line 48
48case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $l(e,n,a){var o=e.pendingLanes;if(o===0)return 0;var u=0,h=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var w=o&134217727;return w!==0?(o=w&~h,o!==0?u=ea(o):(y&=w,y!==0?u=ea(y):a||(a=w&~e,a!==0&&(u=ea(a))))):(w=o&~h,w!==0?u=ea(w):y!==0?u=ea(y):a||(a=o&~e,a!==0&&(u=ea(a)))),u===0?0:n!==0&&n!==u&&(n&h)===0&&(h=u&-u,a=n&-n,h>=a||h===32&&(a&4194048)!==0)?n:u}function ir(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function V2(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sp(){var e=Ql;return Ql<<=1,(Ql&62914560)===0&&(Ql=4194304),e}function su(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function ar(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function B2(e,n,a,o,u,h){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var w=e.entanglements,R=e.expirationTimes,V=e.hiddenUpdates;for(a=y&~a;0<a;){var $=31-Qt(a),Z=1<<$;w[$]=0,R[$]=-1;var H=V[$];if(H!==null)for(V[$]=null,$=0;$<H.length;$++){var G=H[$];G!==null&&(G.lane&=-536870913)}a&=~Z}o!==0&&rp(e,o,0),h!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=h&~(y&~n))}function rp(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var o=31-Qt(n);e.entangledLanes|=n,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function lp(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var o=31-Qt(a),u=1<<o;u&n|e[o]&n&&(e[o]|=n),a&=~u}}function op(e,n){var a=n&-n;return a=(a&42)!==0?1:ru(a),(a&(e.suspendedLanes|n))!==0?0:a}function ru(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Yg(e.type))}function up(e,n){var a=J.p;try{return J.p=e,n()}finally{J.p=a}}var mi=Math.random().toString(36).slice(2),xt="__reactFiber$"+mi,Ot="__reactProps$"+mi,Ba="__reactContainer$"+mi,ou="__reactEvents$"+mi,H2="__reactListeners$"+mi,q2="__reactHandles$"+mi,dp="__reactResources$"+mi,sr="__reactMarker$"+mi;function cu(e){delete e[xt],delete e[Ot],delete e[ou],delete e[H2],delete e[q2]}function Ha(e){var n=e[xt];if(n)return n;for(var a=e.parentNode;a;){if(n=a[Ba]||a[xt]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=Og(e);e!==null;){if(a=e[xt])return a;e=Og(e)}return n}e=a,a=e.parentNode}return null}function qa(e){if(e=e[xt]||e[Ba]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function rr(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function Fa(e){var n=e[dp];return n||(n=e[dp]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function ht(e){e[sr]=!0}var fp=new Set,hp={};function ta(e,n){Ga(e,n),Ga(e+"Capture",n)}function Ga(e,n){for(hp[e]=n,e=0;e<n.length;e++)fp.add(n[e])}var F2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mp={},pp={};function G2(e){return nu.call(pp,e)?!0:nu.call(mp,e)?!1:F2.test(e)?pp[e]=!0:(mp[e]=!0,!1)}function Yl(e,n,a){if(G2(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var o=n.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Kl(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function qn(e,n,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+o)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xp(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function I2(e,n,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,h=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(y){a=""+y,h.call(this,y)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function uu(e){if(!e._valueTracker){var n=xp(e)?"checked":"value";e._valueTracker=I2(e,n,""+e[n])}}function gp(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),o="";return e&&(o=xp(e)?e.checked?"true":"false":e.value),e=o,e!==a?(n.setValue(e),!0):!1}function Xl(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}}var Q2=/[\n"\\]/g;function nn(e){return e.replace(Q2,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function du(e,n,a,o,u,h,y,w){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),n!=null?y==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+tn(n)):e.value!==""+tn(n)&&(e.value=""+tn(n)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),n!=null?fu(e,y,tn(n)):a!=null?fu(e,y,tn(a)):o!=null&&e.removeAttribute("value"),u==null&&h!=null&&(e.defaultChecked=!!h),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+tn(w):e.removeAttribute("name")}function yp(e,n,a,o,u,h,y,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){uu(e);return}a=a!=null?""+tn(a):"",n=n!=null?""+tn(n):a,w||n===e.value||(e.value=n),e.defaultValue=n}o=o??u,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=w?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),uu(e)}function fu(e,n,a){n==="number"&&Xl(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ia(e,n,a,o){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&o&&(e[a].defaultSelected=!0)}else{for(a=""+tn(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,o&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function bp(e,n,a){if(n!=null&&(n=""+tn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+tn(a):""}function vp(e,n,a,o){if(n==null){if(o!=null){if(a!=null)throw Error(l(92));if(q(o)){if(1<o.length)throw Error(l(93));o=o[0]}a=o}a==null&&(a=""),n=a}a=tn(n),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),uu(e)}function Qa(e,n){if(n){var a=e.firstChild;
vendor: 4,140 bytes, line 48
48if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var $2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jp(e,n,a){var o=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":o?e.setProperty(n,a):typeof a!="number"||a===0||$2.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function wp(e,n,a){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||n!=null&&n.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var u in n)o=n[u],n.hasOwnProperty(u)&&a[u]!==o&&jp(e,u,o)}else for(var h in n)n.hasOwnProperty(h)&&jp(e,h,n[h])}function hu(e){if(e.indexOf("-")===-1)return!1;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 Y2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),K2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zl(e){return K2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Fn(){}var mu=null;function pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $a=null,Ya=null;function Np(e){var n=qa(e);if(n&&(e=n.stateNode)){var a=e[Ot]||null;e:switch(e=n.stateNode,n.type){case"input":if(du(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var o=a[n];if(o!==e&&o.form===e.form){var u=o[Ot]||null;if(!u)throw Error(l(90));du(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)o=a[n],o.form===e.form&&gp(o)}break e;case"textarea":bp(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ia(e,!!a.multiple,n,!1)}}}var xu=!1;function Sp(e,n,a){if(xu)return e(n,a);xu=!0;try{var o=e(n);return o}finally{if(xu=!1,($a!==null||Ya!==null)&&(Vo(),$a&&(n=$a,e=Ya,Ya=$a=null,Np(n),e)))for(n=0;n<e.length;n++)Np(e[n])}}function lr(e,n){var a=e.stateNode;if(a===null)return null;var o=a[Ot]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(l(231,n,typeof a));return a}var Gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=!1;if(Gn)try{var or={};Object.defineProperty(or,"passive",{get:function(){gu=!0}}),window.addEventListener("test",or,or),window.removeEventListener("test",or,or)}catch{gu=!1}var pi=null,yu=null,Jl=null;function Tp(){if(Jl)return Jl;var e,n=yu,a=n.length,o,u="value"in pi?pi.value:pi.textContent,h=u.length;for(e=0;e<a&&n[e]===u[e];e++);var y=a-e;for(o=1;o<=y&&n[a-o]===u[h-o];o++);return Jl=u.slice(e,1<o?1-o:void 0)}function Wl(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 eo(){return!0}function Cp(){return!1}function Dt(e){function n(a,o,u,h,y){this._reactName=a,this._targetInst=u,this.type=o,this.nativeEvent=h,this.target=y,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?eo:Cp,this.isPropagationStopped=Cp,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=eo)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),n}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},to=Dt(na),cr=b({},na,{view:0,detail:0}),X2=Dt(cr),bu,vu,ur,no=b({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wu,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!==ur&&(ur&&e.type==="mousemove"?(bu=e.screenX-ur.screenX,vu=e.screenY-ur.screenY):vu=bu=0,ur=e),bu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),Ep=Dt(no),Z2=b({},no,{dataTransfer:0}),J2=Dt(Z2),W2=b({},cr,{relatedTarget:0}),ju=Dt(W2),ew=b({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),tw=Dt(ew),nw=b({},na,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),iw=Dt(nw),aw=b({},na,{data:0}),Ap=Dt(aw),sw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rw={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"},lw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ow(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=lw[e])?!!n[e]:!1}function wu(){return ow}var cw=b({},cr,{key:function(e){if(e.key){var n=sw[e.key]||e.key;if(n!=="Unidentified")return n}
vendor: 21,312 bytes, line 48
48return e.type==="keypress"?(e=Wl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wu,charCode:function(e){return e.type==="keypress"?Wl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),uw=Dt(cw),dw=b({},no,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rp=Dt(dw),fw=b({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wu}),hw=Dt(fw),mw=b({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),pw=Dt(mw),xw=b({},no,{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}),gw=Dt(xw),yw=b({},na,{newState:0,oldState:0}),bw=Dt(yw),vw=[9,13,27,32],Nu=Gn&&"CompositionEvent"in window,dr=null;Gn&&"documentMode"in document&&(dr=document.documentMode);var jw=Gn&&"TextEvent"in window&&!dr,zp=Gn&&(!Nu||dr&&8<dr&&11>=dr),Mp=" ",Op=!1;function Dp(e,n){switch(e){case"keyup":return vw.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _p(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function ww(e,n){switch(e){case"compositionend":return _p(n);case"keypress":return n.which!==32?null:(Op=!0,Mp);case"textInput":return e=n.data,e===Mp&&Op?null:e;default:return null}}function Nw(e,n){if(Ka)return e==="compositionend"||!Nu&&Dp(e,n)?(e=Tp(),Jl=yu=pi=null,Ka=!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 zp&&n.locale!=="ko"?null:n.data;default:return null}}var Sw={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 kp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Sw[e.type]:n==="textarea"}function Up(e,n,a,o){$a?Ya?Ya.push(o):Ya=[o]:$a=o,n=Qo(n,"onChange"),0<n.length&&(a=new to("onChange","change",null,a,o),e.push({event:a,listeners:n}))}var fr=null,hr=null;function Tw(e){yg(e,0)}function io(e){var n=rr(e);if(gp(n))return e}function Lp(e,n){if(e==="change")return n}var Pp=!1;if(Gn){var Su;if(Gn){var Tu="oninput"in document;if(!Tu){var Vp=document.createElement("div");Vp.setAttribute("oninput","return;"),Tu=typeof Vp.oninput=="function"}Su=Tu}else Su=!1;Pp=Su&&(!document.documentMode||9<document.documentMode)}function Bp(){fr&&(fr.detachEvent("onpropertychange",Hp),hr=fr=null)}function Hp(e){if(e.propertyName==="value"&&io(hr)){var n=[];Up(n,hr,e,pu(e)),Sp(Tw,n)}}function Cw(e,n,a){e==="focusin"?(Bp(),fr=n,hr=a,fr.attachEvent("onpropertychange",Hp)):e==="focusout"&&Bp()}function Ew(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return io(hr)}function Aw(e,n){if(e==="click")return io(n)}function Rw(e,n){if(e==="input"||e==="change")return io(n)}function zw(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var $t=typeof Object.is=="function"?Object.is:zw;function mr(e,n){if($t(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),o=Object.keys(n);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var u=a[o];if(!nu.call(n,u)||!$t(e[u],n[u]))return!1}return!0}function qp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fp(e,n){var a=qp(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=n&&o>=n)return{node:a,offset:n-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=qp(a)}}function Gp(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Gp(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ip(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Xl(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=Xl(e.document)}return n}function Cu(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")}var Mw=Gn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Eu=null,pr=null,Au=!1;function Qp(e,n,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Au||Xa==null||Xa!==Xl(o)||(o=Xa,"selectionStart"in o&&Cu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),pr&&mr(pr,o)||(pr=o,o=Qo(Eu,"onSelect"),0<o.length&&(n=new to("onSelect","select",null,n,a),e.push({event:n,listeners:o}),n.target=Xa)))}function ia(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Za={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Ru={},$p={};Gn&&($p=document.createElement("div").style,"AnimationEvent"in window||(delete Za.animationend.animation,delete Za.animationiteration.animation,delete Za.animationstart.animation),"TransitionEvent"in window||delete Za.transitionend.transition);function aa(e){if(Ru[e])return Ru[e];if(!Za[e])return e;var n=Za[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in $p)return Ru[e]=n[a];return e}var Yp=aa("animationend"),Kp=aa("animationiteration"),Xp=aa("animationstart"),Ow=aa("transitionrun"),Dw=aa("transitionstart"),_w=aa("transitioncancel"),Zp=aa("transitionend"),Jp=new Map,zu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");zu.push("scrollEnd");function jn(e,n){Jp.set(e,n),ta(n,[e])}var ao=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},an=[],Ja=0,Mu=0;function so(){for(var e=Ja,n=Mu=Ja=0;n<e;){var a=an[n];an[n++]=null;var o=an[n];an[n++]=null;var u=an[n];an[n++]=null;var h=an[n];if(an[n++]=null,o!==null&&u!==null){var y=o.pending;y===null?u.next=u:(u.next=y.next,y.next=u),o.pending=u}h!==0&&Wp(a,u,h)}}function ro(e,n,a,o){an[Ja++]=e,an[Ja++]=n,an[Ja++]=a,an[Ja++]=o,Mu|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ou(e,n,a,o){return ro(e,n,a,o),lo(e)}function sa(e,n){return ro(e,null,null,n),lo(e)}function Wp(e,n,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var u=!1,h=e.return;h!==null;)h.childLanes|=a,o=h.alternate,o!==null&&(o.childLanes|=a),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(u=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,u&&n!==null&&(u=31-Qt(a),e=h.hiddenUpdates,o=e[u],o===null?e[u]=[n]:o.push(n),n.lane=a|536870912),h):null}function lo(e){if(50<Lr)throw Lr=0,Hd=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Wa={};function kw(e,n,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,n,a,o){return new kw(e,n,a,o)}function Du(e){return e=e.prototype,!(!e||!e.isReactComponent)}function In(e,n){var a=e.alternate;return a===null?(a=Yt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function e0(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function oo(e,n,a,o,u,h){var y=0;if(o=e,typeof e=="function")Du(e)&&(y=1);else if(typeof e=="string")y=BN(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Yt(31,a,n,u),e.elementType=ie,e.lanes=h,e;case C:return ra(a.children,u,h,n);case E:y=8,u|=24;break;case T:return e=Yt(12,a,n,u|2),e.elementType=T,e.lanes=h,e;case Q:return e=Yt(13,a,n,u),e.elementType=Q,e.lanes=h,e;case ee:return e=Yt(19,a,n,u),e.elementType=ee,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break e;case _:y=9;break e;case U:y=11;break e;case Y:y=14;break e;case I:y=16,o=null;break e}y=29,a=Error(l(130,e===null?"null":typeof e,"")),o=null}return n=Yt(y,a,n,u),n.elementType=e,n.type=o,n.lanes=h,n}function ra(e,n,a,o){return e=Yt(7,e,o,n),e.lanes=a,e}function _u(e,n,a){return e=Yt(6,e,null,n),e.lanes=a,e}function t0(e){var n=Yt(18,null,null,0);return n.stateNode=e,n}function ku(e,n,a){return n=Yt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var n0=new WeakMap;function sn(e,n){if(typeof e=="object"&&e!==null){var a=n0.get(e);return a!==void 0?a:(n={value:e,source:n,stack:tp(n)},n0.set(e,n),n)}return{value:e,source:n,stack:tp(n)}}var es=[],ts=0,co=null,xr=0,rn=[],ln=0,xi=null,zn=1,Mn="";function Qn(e,n){es[ts++]=xr,es[ts++]=co,co=e,xr=n}function i0(e,n,a){rn[ln++]=zn,rn[ln++]=Mn,rn[ln++]=xi,xi=e;var o=zn;e=Mn;var u=32-Qt(o)-1;o&=~(1<<u),a+=1;var h=32-Qt(n)+u;if(30<h){var y=u-u%5;h=(o&(1<<y)-1).toString(32),o>>=y,u-=y,zn=1<<32-Qt(n)+u|a<<u|o,Mn=h+e}else zn=1<<h|a<<u|o,Mn=e}function Uu(e){e.return!==null&&(Qn(e,1),i0(e,1,0))}function Lu(e){for(;e===co;)co=es[--ts],es[ts]=null,xr=es[--ts],es[ts]=null;for(;e===xi;)xi=rn[--ln],rn[ln]=null,Mn=rn[--ln],rn[ln]=null,zn=rn[--ln],rn[ln]=null}function a0(e,n){rn[ln++]=zn,rn[ln++]=Mn,rn[ln++]=xi,zn=n.id,Mn=n.overflow,xi=e}var gt=null,Fe=null,Re=!1,gi=null,on=!1,Pu=Error(l(519));function yi(e){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gr(sn(n,e)),Pu}function s0(e){var n=e.stateNode,a=e.type,o=e.memoizedProps;switch(n[xt]=e,n[Ot]=o,a){case"dialog":Te("cancel",n),Te("close",n);break;case"iframe":case"object":case"embed":Te("load",n);break;case"video":case"audio":for(a=0;a<Vr.length;a++)Te(Vr[a],n);break;case"source":Te("error",n);break;case"img":case"image":case"link":Te("error",n),Te("load",n);break;case"details":Te("toggle",n);break;case"input":Te("invalid",n),yp(n,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Te("invalid",n);break;case"textarea":Te("invalid",n),vp(n,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||o.suppressHydrationWarning===!0||wg(n.textContent,a)?(o.popover!=null&&(Te("beforetoggle",n),Te("toggle",n)),o.onScroll!=null&&Te("scroll",n),o.onScrollEnd!=null&&Te("scrollend",n),o.onClick!=null&&(n.onclick=Fn),n=!0):n=!1,n||yi(e,!0)}function r0(e){for(gt=e.return;gt;)switch(gt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:gt=gt.return}}function ns(e){if(e!==gt)return!1;if(!Re)return r0(e),Re=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||nf(e.type,e.memoizedProps)),a=!a),a&&Fe&&yi(e),r0(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Fe=Mg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Fe=Mg(e)}else n===27?(n=Fe,Oi(e.type)?(e=of,of=null,Fe=e):Fe=n):Fe=gt?un(e.stateNode.nextSibling):null;return!0}function la(){Fe=gt=null,Re=!1}function Vu(){var e=gi;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),gi=null),e}function gr(e){gi===null?gi=[e]:gi.push(e)}var Bu=A(null),oa=null,$n=null;function bi(e,n,a){L(Bu,n._currentValue),n._currentValue=a}function Yn(e){e._currentValue=Bu.current,B(Bu)}function Hu(e,n,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,o!==null&&(o.childLanes|=n)):o!==null&&(o.childLanes&n)!==n&&(o.childLanes|=n),e===a)break;e=e.return}}function qu(e,n,a,o){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var h=u.dependencies;if(h!==null){var y=u.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=u;for(var R=0;R<n.length;R++)if(w.context===n[R]){h.lanes|=a,w=h.alternate,w!==null&&(w.lanes|=a),Hu(h.return,a,e),o||(y=null);break e}h=w.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(l(341));y.lanes|=a,h=y.alternate,h!==null&&(h.lanes|=a),Hu(y,a,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function is(e,n,a,o){e=null;for(var u=n,h=!1;u!==null;){if(!h){if((u.flags&524288)!==0)h=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var w=u.type;$t(u.pendingProps.value,y.value)||(e!==null?e.push(w):e=[w])}}else if(u===je.current){if(y=u.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Gr):e=[Gr])}u=u.return}e!==null&&qu(n,e,a,o),n.flags|=262144}function uo(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ca(e){oa=e,$n=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return l0(oa,e)}function fo(e,n){return oa===null&&ca(e),l0(e,n)}function l0(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},$n===null){if(e===null)throw Error(l(308));$n=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else $n=$n.next=n;return a}var Uw=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},Lw=t.unstable_scheduleCallback,Pw=t.unstable_NormalPriority,rt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fu(){return{controller:new Uw,data:new Map,refCount:0}}function yr(e){e.refCount--,e.refCount===0&&Lw(Pw,function(){e.controller.abort()})}var br=null,Gu=0,as=0,ss=null;function Vw(e,n){if(br===null){var a=br=[];Gu=0,as=$d(),ss={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Gu++,n.then(o0,o0),n}function o0(){if(--Gu===0&&br!==null){ss!==null&&(ss.status="fulfilled");var e=br;br=null,as=0,ss=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Bw(e,n){var a=[],o={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){o.status="fulfilled",o.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(o.status="rejected",o.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),o}var c0=D.S;D.S=function(e,n){Qx=Gt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Vw(e,n),c0!==null&&c0(e,n)};var ua=A(null);function Iu(){var e=ua.current;return e!==null?e:qe.pooledCache}function ho(e,n){n===null?L(ua,ua.current):L(ua,n.pool)}function u0(){var e=Iu();return e===null?null:{parent:rt._currentValue,pool:e}}var rs=Error(l(460)),Qu=Error(l(474)),mo=Error(l(542)),po={then:function(){}};function d0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function f0(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Fn,Fn),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,m0(e),e;default:if(typeof n.status=="string")n.then(Fn,Fn);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(o){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=o}},function(o){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=o}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,m0(e),e}throw fa=n,rs}}function da(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fa=a,rs):a}}var fa=null;function h0(){if(fa===null)throw Error(l(459));var e=fa;return fa=null,e}function m0(e){if(e===rs||e===mo)throw Error(l(483))}var ls=null,vr=0;function xo(e){var n=vr;return vr+=1,ls===null&&(ls=[]),f0(ls,e,n)}function jr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function go(e,n){throw n.$$typeof===v?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function p0(e){function n(k,z){if(e){var P=k.deletions;P===null?(k.deletions=[z],k.flags|=16):P.push(z)}}function a(k,z){if(!e)return null;for(;z!==null;)n(k,z),z=z.sibling;return null}function o(k){for(var z=new Map;k!==null;)k.key!==null?z.set(k.key,k):z.set(k.index,k),k=k.sibling;return z}function u(k,z){return k=In(k,z),k.index=0,k.sibling=null,k}function h(k,z,P){return k.index=P,e?(P=k.alternate,P!==null?(P=P.index,P<z?(k.flags|=67108866,z):P):(k.flags|=67108866,z)):(k.flags|=1048576,z)}function y(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function w(k,z,P,X){return z===null||z.tag!==6?(z=_u(P,k.mode,X),z.return=k,z):(z=u(z,P),z.return=k,z)}function R(k,z,P,X){var fe=P.type;return fe===C?$(k,z,P.props.children,X,P.key):z!==null&&(z.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===I&&da(fe)===z.type)?(z=u(z,P.props),jr(z,P),z.return=k,z):(z=oo(P.type,P.key,P.props,null,k.mode,X),jr(z,P),z.return=k,z)}function V(k,z,P,X){return z===null||z.tag!==4||z.stateNode.containerInfo!==P.containerInfo||z.stateNode.implementation!==P.implementation?(z=ku(P,k.mode,X),z.return=k,z):(z=u(z,P.children||[]),z.return=k,z)}function $(k,z,P,X,fe){return z===null||z.tag!==7?(z=ra(P,k.mode,X,fe),z.return=k,z):(z=u(z,P),z.return=k,z)}function Z(k,z,P){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=_u(""+z,k.mode,P),z.return=k,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case S:return P=oo(z.type,z.key,z.props,null,k.mode,P),jr(P,z),P.return=k,P;case j:return z=ku(z,k.mode,P),z.return=k,z;case I:return z=da(z),Z(k,z,P)}if(q(z)||xe(z))return z=ra(z,k.mode,P,null),z.return=k,z;if(typeof z.then=="function")return Z(k,xo(z),P);if(z.$$typeof===O)return Z(k,fo(k,z),P);go(k,z)}return null}function H(k,z,P,X){var fe=z!==null?z.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return fe!==null?null:w(k,z,""+P,X);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return P.key===fe?R(k,z,P,X):null;case j:return P.key===fe?V(k,z,P,X):null;case I:return P=da(P),H(k,z,P,X)}if(q(P)||xe(P))return fe!==null?null:$(k,z,P,X,null);if(typeof P.then=="function")return H(k,z,xo(P),X);if(P.$$typeof===O)return H(k,z,fo(k,P),X);go(k,P)}return null}function G(k,z,P,X,fe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return k=k.get(P)||null,w(z,k,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case S:return k=k.get(X.key===null?P:X.key)||null,R(z,k,X,fe);case j:return k=k.get(X.key===null?P:X.key)||null,V(z,k,X,fe);case I:return X=da(X),G(k,z,P,X,fe)}
vendor: 1,676 bytes, line 48
48if(q(X)||xe(X))return k=k.get(P)||null,$(z,k,X,fe,null);if(typeof X.then=="function")return G(k,z,P,xo(X),fe);if(X.$$typeof===O)return G(k,z,P,fo(z,X),fe);go(z,X)}return null}function ce(k,z,P,X){for(var fe=null,Oe=null,ue=z,Ne=z=0,Ae=null;ue!==null&&Ne<P.length;Ne++){ue.index>Ne?(Ae=ue,ue=null):Ae=ue.sibling;var De=H(k,ue,P[Ne],X);if(De===null){ue===null&&(ue=Ae);break}e&&ue&&De.alternate===null&&n(k,ue),z=h(De,z,Ne),Oe===null?fe=De:Oe.sibling=De,Oe=De,ue=Ae}if(Ne===P.length)return a(k,ue),Re&&Qn(k,Ne),fe;if(ue===null){for(;Ne<P.length;Ne++)ue=Z(k,P[Ne],X),ue!==null&&(z=h(ue,z,Ne),Oe===null?fe=ue:Oe.sibling=ue,Oe=ue);return Re&&Qn(k,Ne),fe}for(ue=o(ue);Ne<P.length;Ne++)Ae=G(ue,k,Ne,P[Ne],X),Ae!==null&&(e&&Ae.alternate!==null&&ue.delete(Ae.key===null?Ne:Ae.key),z=h(Ae,z,Ne),Oe===null?fe=Ae:Oe.sibling=Ae,Oe=Ae);return e&&ue.forEach(function(Li){return n(k,Li)}),Re&&Qn(k,Ne),fe}function me(k,z,P,X){if(P==null)throw Error(l(151));for(var fe=null,Oe=null,ue=z,Ne=z=0,Ae=null,De=P.next();ue!==null&&!De.done;Ne++,De=P.next()){ue.index>Ne?(Ae=ue,ue=null):Ae=ue.sibling;var Li=H(k,ue,De.value,X);if(Li===null){ue===null&&(ue=Ae);break}e&&ue&&Li.alternate===null&&n(k,ue),z=h(Li,z,Ne),Oe===null?fe=Li:Oe.sibling=Li,Oe=Li,ue=Ae}if(De.done)return a(k,ue),Re&&Qn(k,Ne),fe;if(ue===null){for(;!De.done;Ne++,De=P.next())De=Z(k,De.value,X),De!==null&&(z=h(De,z,Ne),Oe===null?fe=De:Oe.sibling=De,Oe=De);return Re&&Qn(k,Ne),fe}for(ue=o(ue);!De.done;Ne++,De=P.next())De=G(ue,k,Ne,De.value,X),De!==null&&(e&&De.alternate!==null&&ue.delete(De.key===null?Ne:De.key),z=h(De,z,Ne),Oe===null?fe=De:Oe.sibling=De,Oe=De);return e&&ue.forEach(function(ZN){return n(k,ZN)}),Re&&Qn(k,Ne),fe}
vendor: 94,248 bytes, lines 48-49
48function He(k,z,P,X){if(typeof P=="object"&&P!==null&&P.type===C&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case S:e:{for(var fe=P.key;z!==null;){if(z.key===fe){if(fe=P.type,fe===C){if(z.tag===7){a(k,z.sibling),X=u(z,P.props.children),X.return=k,k=X;break e}}else if(z.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===I&&da(fe)===z.type){a(k,z.sibling),X=u(z,P.props),jr(X,P),X.return=k,k=X;break e}a(k,z);break}else n(k,z);z=z.sibling}P.type===C?(X=ra(P.props.children,k.mode,X,P.key),X.return=k,k=X):(X=oo(P.type,P.key,P.props,null,k.mode,X),jr(X,P),X.return=k,k=X)}return y(k);case j:e:{for(fe=P.key;z!==null;){if(z.key===fe)if(z.tag===4&&z.stateNode.containerInfo===P.containerInfo&&z.stateNode.implementation===P.implementation){a(k,z.sibling),X=u(z,P.children||[]),X.return=k,k=X;break e}else{a(k,z);break}else n(k,z);z=z.sibling}X=ku(P,k.mode,X),X.return=k,k=X}return y(k);case I:return P=da(P),He(k,z,P,X)}if(q(P))return ce(k,z,P,X);if(xe(P)){if(fe=xe(P),typeof fe!="function")throw Error(l(150));return P=fe.call(P),me(k,z,P,X)}if(typeof P.then=="function")return He(k,z,xo(P),X);if(P.$$typeof===O)return He(k,z,fo(k,P),X);go(k,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,z!==null&&z.tag===6?(a(k,z.sibling),X=u(z,P),X.return=k,k=X):(a(k,z),X=_u(P,k.mode,X),X.return=k,k=X),y(k)):a(k,z)}return function(k,z,P,X){try{vr=0;var fe=He(k,z,P,X);return ls=null,fe}catch(ue){if(ue===rs||ue===mo)throw ue;var Oe=Yt(29,ue,null,k.mode);return Oe.lanes=X,Oe.return=k,Oe}finally{}}}var ha=p0(!0),x0=p0(!1),vi=!1;function $u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Yu(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ji(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wi(e,n,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(_e&2)!==0){var u=o.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),o.pending=n,n=lo(e),Wp(e,null,a),n}return ro(e,o,n,a),lo(e)}function wr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,lp(e,a)}}function Ku(e,n){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var u=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?u=h=y:h=h.next=y,a=a.next}while(a!==null);h===null?u=h=n:h=h.next=n}else u=h=n;a={baseState:o.baseState,firstBaseUpdate:u,lastBaseUpdate:h,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Xu=!1;function Nr(){if(Xu){var e=ss;if(e!==null)throw e}}function Sr(e,n,a,o){Xu=!1;var u=e.updateQueue;vi=!1;var h=u.firstBaseUpdate,y=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var R=w,V=R.next;R.next=null,y===null?h=V:y.next=V,y=R;var $=e.alternate;$!==null&&($=$.updateQueue,w=$.lastBaseUpdate,w!==y&&(w===null?$.firstBaseUpdate=V:w.next=V,$.lastBaseUpdate=R))}if(h!==null){var Z=u.baseState;y=0,$=V=R=null,w=h;do{var H=w.lane&-536870913,G=H!==w.lane;if(G?(Ee&H)===H:(o&H)===H){H!==0&&H===as&&(Xu=!0),$!==null&&($=$.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ce=e,me=w;H=n;var He=a;switch(me.tag){case 1:if(ce=me.payload,typeof ce=="function"){Z=ce.call(He,Z,H);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=me.payload,H=typeof ce=="function"?ce.call(He,Z,H):ce,H==null)break e;Z=b({},Z,H);break e;case 2:vi=!0}}H=w.callback,H!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[H]:G.push(H))}else G={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},$===null?(V=$=G,R=Z):$=$.next=G,y|=H;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;G=w,w=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);$===null&&(R=Z),u.baseState=R,u.firstBaseUpdate=V,u.lastBaseUpdate=$,h===null&&(u.shared.lanes=0),Ei|=y,e.lanes=y,e.memoizedState=Z}}function g0(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function y0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)g0(a[e],n)}var os=A(null),yo=A(0);function b0(e,n){e=ii,L(yo,e),L(os,n),ii=e|n.baseLanes}function Zu(){L(yo,ii),L(os,os.current)}function Ju(){ii=yo.current,B(os),B(yo)}var Kt=A(null),cn=null;function Ni(e){var n=e.alternate;L(et,et.current&1),L(Kt,e),cn===null&&(n===null||os.current!==null||n.memoizedState!==null)&&(cn=e)}function Wu(e){L(et,et.current),L(Kt,e),cn===null&&(cn=e)}function v0(e){e.tag===22?(L(et,et.current),L(Kt,e),cn===null&&(cn=e)):Si()}function Si(){L(et,et.current),L(Kt,Kt.current)}function Xt(e){B(Kt),cn===e&&(cn=null),B(et)}var et=A(0);function bo(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||rf(a)||lf(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){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 Kn=0,we=null,Ve=null,lt=null,vo=!1,cs=!1,ma=!1,jo=0,Tr=0,us=null,Hw=0;function Ke(){throw Error(l(321))}function ed(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!$t(e[a],n[a]))return!1;return!0}function td(e,n,a,o,u,h){return Kn=h,we=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,D.H=e===null||e.memoizedState===null?ix:xd,ma=!1,h=a(o,u),ma=!1,cs&&(h=w0(n,a,o,u)),j0(e),h}function j0(e){D.H=Ar;var n=Ve!==null&&Ve.next!==null;if(Kn=0,lt=Ve=we=null,vo=!1,Tr=0,us=null,n)throw Error(l(300));e===null||ot||(e=e.dependencies,e!==null&&uo(e)&&(ot=!0))}function w0(e,n,a,o){we=e;var u=0;do{if(cs&&(us=null),Tr=0,cs=!1,25<=u)throw Error(l(301));if(u+=1,lt=Ve=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}D.H=ax,h=n(a,o)}while(cs);return h}function qw(){var e=D.H,n=e.useState()[0];return n=typeof n.then=="function"?Cr(n):n,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(we.flags|=1024),n}function nd(){var e=jo!==0;return jo=0,e}function id(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function ad(e){if(vo){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}vo=!1}Kn=0,lt=Ve=we=null,cs=!1,Tr=jo=0,us=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?we.memoizedState=lt=e:lt=lt.next=e,lt}function tt(){if(Ve===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var n=lt===null?we.memoizedState:lt.next;if(n!==null)lt=n,Ve=e;else{if(e===null)throw we.alternate===null?Error(l(467)):Error(l(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},lt===null?we.memoizedState=lt=e:lt=lt.next=e}return lt}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cr(e){var n=Tr;return Tr+=1,us===null&&(us=[]),e=f0(us,e,n),n=we,(lt===null?n.memoizedState:lt.next)===null&&(n=n.alternate,D.H=n===null||n.memoizedState===null?ix:xd),e}function No(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cr(e);if(e.$$typeof===O)return yt(e)}throw Error(l(438,String(e)))}function sd(e){var n=null,a=we.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var o=we.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(n={data:o.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=wo(),we.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),o=0;o<e;o++)a[o]=re;return n.index++,a}function Xn(e,n){return typeof n=="function"?n(e):n}function So(e){var n=tt();return rd(n,Ve,e)}function rd(e,n,a){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=a;var u=e.baseQueue,h=o.pending;if(h!==null){if(u!==null){var y=u.next;u.next=h.next,h.next=y}n.baseQueue=u=h,o.pending=null}if(h=e.baseState,u===null)e.memoizedState=h;else{n=u.next;var w=y=null,R=null,V=n,$=!1;do{var Z=V.lane&-536870913;if(Z!==V.lane?(Ee&Z)===Z:(Kn&Z)===Z){var H=V.revertLane;if(H===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),Z===as&&($=!0);else if((Kn&H)===H){V=V.next,H===as&&($=!0);continue}else Z={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(w=R=Z,y=h):R=R.next=Z,we.lanes|=H,Ei|=H;Z=V.action,ma&&a(h,Z),h=V.hasEagerState?V.eagerState:a(h,Z)}else H={lane:Z,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(w=R=H,y=h):R=R.next=H,we.lanes|=Z,Ei|=Z;V=V.next}while(V!==null&&V!==n);if(R===null?y=h:R.next=w,!$t(h,e.memoizedState)&&(ot=!0,$&&(a=ss,a!==null)))throw a;e.memoizedState=h,e.baseState=y,e.baseQueue=R,o.lastRenderedState=h}return u===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ld(e){var n=tt(),a=n.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=e;var o=a.dispatch,u=a.pending,h=n.memoizedState;if(u!==null){a.pending=null;var y=u=u.next;do h=e(h,y.action),y=y.next;while(y!==u);$t(h,n.memoizedState)||(ot=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),a.lastRenderedState=h}return[h,o]}function N0(e,n,a){var o=we,u=tt(),h=Re;if(h){if(a===void 0)throw Error(l(407));a=a()}else a=n();var y=!$t((Ve||u).memoizedState,a);if(y&&(u.memoizedState=a,ot=!0),u=u.queue,ud(C0.bind(null,o,u,e),[e]),u.getSnapshot!==n||y||lt!==null&&lt.memoizedState.tag&1){if(o.flags|=2048,ds(9,{destroy:void 0},T0.bind(null,o,u,a,n),null),qe===null)throw Error(l(349));h||(Kn&127)!==0||S0(o,n,a)}return a}function S0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=we.updateQueue,n===null?(n=wo(),we.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function T0(e,n,a,o){n.value=a,n.getSnapshot=o,E0(n)&&A0(e)}function C0(e,n,a){return a(function(){E0(n)&&A0(e)})}function E0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!$t(e,a)}catch{return!0}}function A0(e){var n=sa(e,2);n!==null&&Pt(n,e,2)}function od(e){var n=Ct();if(typeof e=="function"){var a=e;if(e=a(),ma){hi(!0);try{a()}finally{hi(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:e},n}function R0(e,n,a,o){return e.baseState=a,rd(e,Ve,typeof o=="function"?o:Xn)}function Fw(e,n,a,o,u){if(Eo(e))throw Error(l(485));if(e=n.action,e!==null){var h={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){h.listeners.push(y)}};D.T!==null?a(!0):h.isTransition=!1,o(h),a=n.pending,a===null?(h.next=n.pending=h,z0(n,h)):(h.next=a.next,n.pending=a.next=h)}}function z0(e,n){var a=n.action,o=n.payload,u=e.state;if(n.isTransition){var h=D.T,y={};D.T=y;try{var w=a(u,o),R=D.S;R!==null&&R(y,w),M0(e,n,w)}catch(V){cd(e,n,V)}finally{h!==null&&y.types!==null&&(h.types=y.types),D.T=h}}else try{h=a(u,o),M0(e,n,h)}catch(V){cd(e,n,V)}}function M0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){O0(e,n,o)},function(o){return cd(e,n,o)}):O0(e,n,a)}function O0(e,n,a){n.status="fulfilled",n.value=a,D0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,z0(e,a)))}function cd(e,n,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do n.status="rejected",n.reason=a,D0(n),n=n.next;while(n!==o)}e.action=null}function D0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function _0(e,n){return n}function k0(e,n){if(Re){var a=qe.formState;if(a!==null){e:{var o=we;if(Re){if(Fe){t:{for(var u=Fe,h=on;u.nodeType!==8;){if(!h){u=null;break t}if(u=un(u.nextSibling),u===null){u=null;break t}}h=u.data,u=h==="F!"||h==="F"?u:null}if(u){Fe=un(u.nextSibling),o=u.data==="F!";break e}}yi(o)}o=!1}o&&(n=a[0])}}return a=Ct(),a.memoizedState=a.baseState=n,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_0,lastRenderedState:n},a.queue=o,a=ex.bind(null,we,o),o.dispatch=a,o=od(!1),h=pd.bind(null,we,!1,o.queue),o=Ct(),u={state:n,dispatch:null,action:e,pending:null},o.queue=u,a=Fw.bind(null,we,u,h,a),u.dispatch=a,o.memoizedState=e,[n,a,!1]}function U0(e){var n=tt();return L0(n,Ve,e)}function L0(e,n,a){if(n=rd(e,n,_0)[0],e=So(Xn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var o=Cr(n)}catch(y){throw y===rs?mo:y}else o=n;n=tt();var u=n.queue,h=u.dispatch;return a!==n.memoizedState&&(we.flags|=2048,ds(9,{destroy:void 0},Gw.bind(null,u,a),null)),[o,h,e]}function Gw(e,n){e.action=n}function P0(e){var n=tt(),a=Ve;if(a!==null)return L0(n,a,e);tt(),n=n.memoizedState,a=tt();var o=a.queue.dispatch;return a.memoizedState=e,[n,o,!1]}function ds(e,n,a,o){return e={tag:e,create:a,deps:o,inst:n,next:null},n=we.updateQueue,n===null&&(n=wo(),we.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,n.lastEffect=e),e}function V0(){return tt().memoizedState}function To(e,n,a,o){var u=Ct();we.flags|=e,u.memoizedState=ds(1|n,{destroy:void 0},a,o===void 0?null:o)}function Co(e,n,a,o){var u=tt();o=o===void 0?null:o;var h=u.memoizedState.inst;Ve!==null&&o!==null&&ed(o,Ve.memoizedState.deps)?u.memoizedState=ds(n,h,a,o):(we.flags|=e,u.memoizedState=ds(1|n,h,a,o))}function B0(e,n){To(8390656,8,e,n)}function ud(e,n){Co(2048,8,e,n)}function Iw(e){we.flags|=4;var n=we.updateQueue;if(n===null)n=wo(),we.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function H0(e){var n=tt().memoizedState;return Iw({ref:n,nextImpl:e}),function(){if((_e&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function q0(e,n){return Co(4,2,e,n)}function F0(e,n){return Co(4,4,e,n)}function G0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function I0(e,n,a){a=a!=null?a.concat([e]):null,Co(4,4,G0.bind(null,n,e),a)}function dd(){}function Q0(e,n){var a=tt();n=n===void 0?null:n;var o=a.memoizedState;return n!==null&&ed(n,o[1])?o[0]:(a.memoizedState=[e,n],e)}function $0(e,n){var a=tt();n=n===void 0?null:n;var o=a.memoizedState;if(n!==null&&ed(n,o[1]))return o[0];if(o=e(),ma){hi(!0);try{e()}finally{hi(!1)}}return a.memoizedState=[o,n],o}function fd(e,n,a){return a===void 0||(Kn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=Yx(),we.lanes|=e,Ei|=e,a)}function Y0(e,n,a,o){return $t(a,n)?a:os.current!==null?(e=fd(e,a,o),$t(e,n)||(ot=!0),e):(Kn&42)===0||(Kn&1073741824)!==0&&(Ee&261930)===0?(ot=!0,e.memoizedState=a):(e=Yx(),we.lanes|=e,Ei|=e,n)}function K0(e,n,a,o,u){var h=J.p;J.p=h!==0&&8>h?h:8;var y=D.T,w={};D.T=w,pd(e,!1,n,a);try{var R=u(),V=D.S;if(V!==null&&V(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var $=Bw(R,o);Er(e,n,$,Wt(e))}else Er(e,n,o,Wt(e))}catch(Z){Er(e,n,{then:function(){},status:"rejected",reason:Z},Wt())}finally{J.p=h,y!==null&&w.types!==null&&(y.types=w.types),D.T=y}}function Qw(){}function hd(e,n,a,o){if(e.tag!==5)throw Error(l(476));var u=X0(e).queue;K0(e,u,n,se,a===null?Qw:function(){return Z0(e),a(o)})}function X0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:se},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Z0(e){var n=X0(e);n.next===null&&(n=e.alternate.memoizedState),Er(e,n.next.queue,{},Wt())}function md(){return yt(Gr)}function J0(){return tt().memoizedState}function W0(){return tt().memoizedState}function $w(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=Wt();e=ji(a);var o=wi(n,e,a);o!==null&&(Pt(o,n,a),wr(o,n,a)),n={cache:Fu()},e.payload=n;return}n=n.return}}function Yw(e,n,a){var o=Wt();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Eo(e)?tx(n,a):(a=Ou(e,n,a,o),a!==null&&(Pt(a,e,o),nx(a,n,o)))}function ex(e,n,a){var o=Wt();Er(e,n,a,o)}function Er(e,n,a,o){var u={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Eo(e))tx(n,u);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var y=n.lastRenderedState,w=h(y,a);if(u.hasEagerState=!0,u.eagerState=w,$t(w,y))return ro(e,n,u,0),qe===null&&so(),!1}catch{}finally{}if(a=Ou(e,n,u,o),a!==null)return Pt(a,e,o),nx(a,n,o),!0}return!1}function pd(e,n,a,o){if(o={lane:2,revertLane:$d(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Eo(e)){if(n)throw Error(l(479))}else n=Ou(e,a,o,2),n!==null&&Pt(n,e,2)}function Eo(e){var n=e.alternate;return e===we||n!==null&&n===we}function tx(e,n){cs=vo=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function nx(e,n,a){if((a&4194048)!==0){var o=n.lanes;o&=e.pendingLanes,a|=o,n.lanes=a,lp(e,a)}}var Ar={readContext:yt,use:No,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Ar.useEffectEvent=Ke;var ix={readContext:yt,use:No,useCallback:function(e,n){return Ct().memoizedState=[e,n===void 0?null:n],e},useContext:yt,useEffect:B0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,To(4194308,4,G0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return To(4194308,4,e,n)},useInsertionEffect:function(e,n){To(4,2,e,n)},useMemo:function(e,n){var a=Ct();n=n===void 0?null:n;var o=e();if(ma){hi(!0);try{e()}finally{hi(!1)}}return a.memoizedState=[o,n],o},useReducer:function(e,n,a){var o=Ct();if(a!==void 0){var u=a(n);if(ma){hi(!0);try{a(n)}finally{hi(!1)}}}else u=n;return o.memoizedState=o.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},o.queue=e,e=e.dispatch=Yw.bind(null,we,e),[o.memoizedState,e]},useRef:function(e){var n=Ct();return e={current:e},n.memoizedState=e},useState:function(e){e=od(e);var n=e.queue,a=ex.bind(null,we,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:dd,useDeferredValue:function(e,n){var a=Ct();return fd(a,e,n)},useTransition:function(){var e=od(!1);return e=K0.bind(null,we,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var o=we,u=Ct();if(Re){if(a===void 0)throw Error(l(407));a=a()}else{if(a=n(),qe===null)throw Error(l(349));(Ee&127)!==0||S0(o,n,a)}u.memoizedState=a;var h={value:a,getSnapshot:n};return u.queue=h,B0(C0.bind(null,o,h,e),[e]),o.flags|=2048,ds(9,{destroy:void 0},T0.bind(null,o,h,a,n),null),a},useId:function(){var e=Ct(),n=qe.identifierPrefix;if(Re){var a=Mn,o=zn;a=(o&~(1<<32-Qt(o)-1)).toString(32)+a,n="_"+n+"R_"+a,a=jo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=Hw++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:md,useFormState:k0,useActionState:k0,useOptimistic:function(e){var n=Ct();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=pd.bind(null,we,!0,a),a.dispatch=n,[e,n]},useMemoCache:sd,useCacheRefresh:function(){return Ct().memoizedState=$w.bind(null,we)},useEffectEvent:function(e){var n=Ct(),a={impl:e};return n.memoizedState=a,function(){if((_e&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}},xd={readContext:yt,use:No,useCallback:Q0,useContext:yt,useEffect:ud,useImperativeHandle:I0,useInsertionEffect:q0,useLayoutEffect:F0,useMemo:$0,useReducer:So,useRef:V0,useState:function(){return So(Xn)},useDebugValue:dd,useDeferredValue:function(e,n){var a=tt();return Y0(a,Ve.memoizedState,e,n)},useTransition:function(){var e=So(Xn)[0],n=tt().memoizedState;return[typeof e=="boolean"?e:Cr(e),n]},useSyncExternalStore:N0,useId:J0,useHostTransitionStatus:md,useFormState:U0,useActionState:U0,useOptimistic:function(e,n){var a=tt();return R0(a,Ve,e,n)},useMemoCache:sd,useCacheRefresh:W0};xd.useEffectEvent=H0;var ax={readContext:yt,use:No,useCallback:Q0,useContext:yt,useEffect:ud,useImperativeHandle:I0,useInsertionEffect:q0,useLayoutEffect:F0,useMemo:$0,useReducer:ld,useRef:V0,useState:function(){return ld(Xn)},useDebugValue:dd,useDeferredValue:function(e,n){var a=tt();return Ve===null?fd(a,e,n):Y0(a,Ve.memoizedState,e,n)},useTransition:function(){var e=ld(Xn)[0],n=tt().memoizedState;return[typeof e=="boolean"?e:Cr(e),n]},useSyncExternalStore:N0,useId:J0,useHostTransitionStatus:md,useFormState:P0,useActionState:P0,useOptimistic:function(e,n){var a=tt();return Ve!==null?R0(a,Ve,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:sd,useCacheRefresh:W0};ax.useEffectEvent=H0;function gd(e,n,a,o){n=e.memoizedState,a=a(o,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var yd={enqueueSetState:function(e,n,a){e=e._reactInternals;var o=Wt(),u=ji(o);u.payload=n,a!=null&&(u.callback=a),n=wi(e,u,o),n!==null&&(Pt(n,e,o),wr(n,e,o))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var o=Wt(),u=ji(o);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=wi(e,u,o),n!==null&&(Pt(n,e,o),wr(n,e,o))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Wt(),o=ji(a);o.tag=2,n!=null&&(o.callback=n),n=wi(e,o,a),n!==null&&(Pt(n,e,a),wr(n,e,a))}};function sx(e,n,a,o,u,h,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,h,y):n.prototype&&n.prototype.isPureReactComponent?!mr(a,o)||!mr(u,h):!0}function rx(e,n,a,o){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,o),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,o),n.state!==e&&yd.enqueueReplaceState(n,n.state,null)}function pa(e,n){var a=n;if("ref"in n){a={};for(var o in n)o!=="ref"&&(a[o]=n[o])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function lx(e){ao(e)}function ox(e){console.error(e)}function cx(e){ao(e)}function Ao(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(o){setTimeout(function(){throw o})}}function ux(e,n,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function bd(e,n,a){return a=ji(a),a.tag=3,a.payload={element:null},a.callback=function(){Ao(e,n)},a}function dx(e){return e=ji(e),e.tag=3,e}function fx(e,n,a,o){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var h=o.value;e.payload=function(){return u(h)},e.callback=function(){ux(n,a,o)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){ux(n,a,o),typeof u!="function"&&(Ai===null?Ai=new Set([this]):Ai.add(this));var w=o.stack;this.componentDidCatch(o.value,{componentStack:w!==null?w:""})})}function Kw(e,n,a,o,u){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(n=a.alternate,n!==null&&is(n,a,u,!0),a=Kt.current,a!==null){switch(a.tag){case 31:case 13:return cn===null?Bo():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=u,o===po?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([o]):n.add(o),Gd(e,o,u)),!1;case 22:return a.flags|=65536,o===po?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([o]):a.add(o)),Gd(e,o,u)),!1}throw Error(l(435,a.tag))}return Gd(e,o,u),Bo(),!1}if(Re)return n=Kt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,o!==Pu&&(e=Error(l(422),{cause:o}),gr(sn(e,a)))):(o!==Pu&&(n=Error(l(423),{cause:o}),gr(sn(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,o=sn(o,a),u=bd(e.stateNode,o,u),Ku(e,u),Xe!==4&&(Xe=2)),!1;var h=Error(l(520),{cause:o});if(h=sn(h,a),Ur===null?Ur=[h]:Ur.push(h),Xe!==4&&(Xe=2),n===null)return!0;o=sn(o,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=bd(a.stateNode,o,e),Ku(a,e),!1;case 1:if(n=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ai===null||!Ai.has(h))))return a.flags|=65536,u&=-u,a.lanes|=u,u=dx(u),fx(u,e,a,o),Ku(a,u),!1}a=a.return}while(a!==null);return!1}var vd=Error(l(461)),ot=!1;function bt(e,n,a,o){n.child=e===null?x0(n,null,a,o):ha(n,e.child,a,o)}function hx(e,n,a,o,u){a=a.render;var h=n.ref;if("ref"in o){var y={};for(var w in o)w!=="ref"&&(y[w]=o[w])}else y=o;return ca(n),o=td(e,n,a,y,h,u),w=nd(),e!==null&&!ot?(id(e,n,u),Zn(e,n,u)):(Re&&w&&Uu(n),n.flags|=1,bt(e,n,o,u),n.child)}function mx(e,n,a,o,u){if(e===null){var h=a.type;return typeof h=="function"&&!Du(h)&&h.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=h,px(e,n,h,o,u)):(e=oo(a.type,null,o,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Ad(e,u)){var y=h.memoizedProps;if(a=a.compare,a=a!==null?a:mr,a(y,o)&&e.ref===n.ref)return Zn(e,n,u)}return n.flags|=1,e=In(h,o),e.ref=n.ref,e.return=n,n.child=e}function px(e,n,a,o,u){if(e!==null){var h=e.memoizedProps;if(mr(h,o)&&e.ref===n.ref)if(ot=!1,n.pendingProps=o=h,Ad(e,u))(e.flags&131072)!==0&&(ot=!0);else return n.lanes=e.lanes,Zn(e,n,u)}return jd(e,n,a,o,u)}function xx(e,n,a,o){var u=o.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,e!==null){for(o=n.child=e.child,u=0;o!==null;)u=u|o.lanes|o.childLanes,o=o.sibling;o=u&~h}else o=0,n.child=null;return gx(e,n,h,a,o)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(n,h!==null?h.cachePool:null),h!==null?b0(n,h):Zu(),v0(n);else return o=n.lanes=536870912,gx(e,n,h!==null?h.baseLanes|a:a,a,o)}else h!==null?(ho(n,h.cachePool),b0(n,h),Si(),n.memoizedState=null):(e!==null&&ho(n,null),Zu(),Si());return bt(e,n,u,a),n.child}function Rr(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function gx(e,n,a,o,u){var h=Iu();return h=h===null?null:{parent:rt._currentValue,pool:h},n.memoizedState={baseLanes:a,cachePool:h},e!==null&&ho(n,null),Zu(),v0(n),e!==null&&is(e,n,o,!0),n.childLanes=u,null}function Ro(e,n){return n=Mo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function yx(e,n,a){return ha(n,e.child,null,a),e=Ro(n,n.pendingProps),e.flags|=2,Xt(n),n.memoizedState=null,e}function Xw(e,n,a){var o=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Re){if(o.mode==="hidden")return e=Ro(n,o),n.lanes=536870912,Rr(null,e);if(Wu(n),(e=Fe)?(e=zg(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:xi!==null?{id:zn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},a=t0(e),a.return=n,n.child=a,gt=n,Fe=null)):e=null,e===null)throw yi(n);return n.lanes=536870912,null}return Ro(n,o)}var h=e.memoizedState;if(h!==null){var y=h.dehydrated;if(Wu(n),u)if(n.flags&256)n.flags&=-257,n=yx(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(l(558));else if(ot||is(e,n,a,!1),u=(a&e.childLanes)!==0,ot||u){if(o=qe,o!==null&&(y=op(o,a),y!==0&&y!==h.retryLane))throw h.retryLane=y,sa(e,y),Pt(o,e,y),vd;Bo(),n=yx(e,n,a)}else e=h.treeContext,Fe=un(y.nextSibling),gt=n,Re=!0,gi=null,on=!1,e!==null&&a0(n,e),n=Ro(n,o),n.flags|=4096;return n}return e=In(e.child,{mode:o.mode,children:o.children}),e.ref=n.ref,n.child=e,e.return=n,e}function zo(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(l(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function jd(e,n,a,o,u){return ca(n),a=td(e,n,a,o,void 0,u),o=nd(),e!==null&&!ot?(id(e,n,u),Zn(e,n,u)):(Re&&o&&Uu(n),n.flags|=1,bt(e,n,a,u),n.child)}function bx(e,n,a,o,u,h){return ca(n),n.updateQueue=null,a=w0(n,o,a,u),j0(e),o=nd(),e!==null&&!ot?(id(e,n,h),Zn(e,n,h)):(Re&&o&&Uu(n),n.flags|=1,bt(e,n,a,h),n.child)}function vx(e,n,a,o,u){if(ca(n),n.stateNode===null){var h=Wa,y=a.contextType;typeof y=="object"&&y!==null&&(h=yt(y)),h=new a(o,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=yd,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=o,h.state=n.memoizedState,h.refs={},$u(n),y=a.contextType,h.context=typeof y=="object"&&y!==null?yt(y):Wa,h.state=n.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(gd(n,a,y,o),h.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(y=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),y!==h.state&&yd.enqueueReplaceState(h,h.state,null),Sr(n,o,h,u),Nr(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),o=!0}else if(e===null){h=n.stateNode;var w=n.memoizedProps,R=pa(a,w);h.props=R;var V=h.context,$=a.contextType;y=Wa,typeof $=="object"&&$!==null&&(y=yt($));var Z=a.getDerivedStateFromProps;$=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,$||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||V!==y)&&rx(n,h,o,y),vi=!1;var H=n.memoizedState;h.state=H,Sr(n,o,h,u),Nr(),V=n.memoizedState,w||H!==V||vi?(typeof Z=="function"&&(gd(n,a,Z,o),V=n.memoizedState),(R=vi||sx(n,a,R,o,H,V,y))?($||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=o,n.memoizedState=V),h.props=o,h.state=V,h.context=y,o=R):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),o=!1)}else{h=n.stateNode,Yu(e,n),y=n.memoizedProps,$=pa(a,y),h.props=$,Z=n.pendingProps,H=h.context,V=a.contextType,R=Wa,typeof V=="object"&&V!==null&&(R=yt(V)),w=a.getDerivedStateFromProps,(V=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(y!==Z||H!==R)&&rx(n,h,o,R),vi=!1,H=n.memoizedState,h.state=H,Sr(n,o,h,u),Nr();var G=n.memoizedState;y!==Z||H!==G||vi||e!==null&&e.dependencies!==null&&uo(e.dependencies)?(typeof w=="function"&&(gd(n,a,w,o),G=n.memoizedState),($=vi||sx(n,a,$,o,H,G,R)||e!==null&&e.dependencies!==null&&uo(e.dependencies))?(V||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(o,G,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(o,G,R)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),n.memoizedProps=o,n.memoizedState=G),h.props=o,h.state=G,h.context=R,o=$):(typeof h.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(n.flags|=1024),o=!1)}return h=o,zo(e,n),o=(n.flags&128)!==0,h||o?(h=n.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&o?(n.child=ha(n,e.child,null,u),n.child=ha(n,null,a,u)):bt(e,n,a,u),n.memoizedState=h.state,e=n.child):e=Zn(e,n,u),e}function jx(e,n,a,o){return la(),n.flags|=256,bt(e,n,a,o),n.child}var wd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nd(e){return{baseLanes:e,cachePool:u0()}}function Sd(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Jt),e}function wx(e,n,a){var o=n.pendingProps,u=!1,h=(n.flags&128)!==0,y;if((y=h)||(y=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),y&&(u=!0,n.flags&=-129),y=(n.flags&32)!==0,n.flags&=-33,e===null){if(Re){if(u?Ni(n):Si(),(e=Fe)?(e=zg(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:xi!==null?{id:zn,overflow:Mn}:null,retryLane:536870912,hydrationErrors:null},a=t0(e),a.return=n,n.child=a,gt=n,Fe=null)):e=null,e===null)throw yi(n);return lf(e)?n.lanes=32:n.lanes=536870912,null}var w=o.children;return o=o.fallback,u?(Si(),u=n.mode,w=Mo({mode:"hidden",children:w},u),o=ra(o,u,a,null),w.return=n,o.return=n,w.sibling=o,n.child=w,o=n.child,o.memoizedState=Nd(a),o.childLanes=Sd(e,y,a),n.memoizedState=wd,Rr(null,o)):(Ni(n),Td(n,w))}var R=e.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(h)n.flags&256?(Ni(n),n.flags&=-257,n=Cd(e,n,a)):n.memoizedState!==null?(Si(),n.child=e.child,n.flags|=128,n=null):(Si(),w=o.fallback,u=n.mode,o=Mo({mode:"visible",children:o.children},u),w=ra(w,u,a,null),w.flags|=2,o.return=n,w.return=n,o.sibling=w,n.child=o,ha(n,e.child,null,a),o=n.child,o.memoizedState=Nd(a),o.childLanes=Sd(e,y,a),n.memoizedState=wd,n=Rr(null,o));else if(Ni(n),lf(w)){if(y=w.nextSibling&&w.nextSibling.dataset,y)var V=y.dgst;y=V,o=Error(l(419)),o.stack="",o.digest=y,gr({value:o,source:null,stack:null}),n=Cd(e,n,a)}else if(ot||is(e,n,a,!1),y=(a&e.childLanes)!==0,ot||y){if(y=qe,y!==null&&(o=op(y,a),o!==0&&o!==R.retryLane))throw R.retryLane=o,sa(e,o),Pt(y,e,o),vd;rf(w)||Bo(),n=Cd(e,n,a)}else rf(w)?(n.flags|=192,n.child=e.child,n=null):(e=R.treeContext,Fe=un(w.nextSibling),gt=n,Re=!0,gi=null,on=!1,e!==null&&a0(n,e),n=Td(n,o.children),n.flags|=4096);return n}return u?(Si(),w=o.fallback,u=n.mode,R=e.child,V=R.sibling,o=In(R,{mode:"hidden",children:o.children}),o.subtreeFlags=R.subtreeFlags&65011712,V!==null?w=In(V,w):(w=ra(w,u,a,null),w.flags|=2),w.return=n,o.return=n,o.sibling=w,n.child=o,Rr(null,o),o=n.child,w=e.child.memoizedState,w===null?w=Nd(a):(u=w.cachePool,u!==null?(R=rt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=u0(),w={baseLanes:w.baseLanes|a,cachePool:u}),o.memoizedState=w,o.childLanes=Sd(e,y,a),n.memoizedState=wd,Rr(e.child,o)):(Ni(n),a=e.child,e=a.sibling,a=In(a,{mode:"visible",children:o.children}),a.return=n,a.sibling=null,e!==null&&(y=n.deletions,y===null?(n.deletions=[e],n.flags|=16):y.push(e)),n.child=a,n.memoizedState=null,a)}function Td(e,n){return n=Mo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Mo(e,n){return e=Yt(22,e,null,n),e.lanes=0,e}function Cd(e,n,a){return ha(n,e.child,null,a),e=Td(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Nx(e,n,a){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n),Hu(e.return,n,a)}function Ed(e,n,a,o,u,h){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:u,treeForkCount:h}:(y.isBackwards=n,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=a,y.tailMode=u,y.treeForkCount=h)}function Sx(e,n,a){var o=n.pendingProps,u=o.revealOrder,h=o.tail;o=o.children;var y=et.current,w=(y&2)!==0;if(w?(y=y&1|2,n.flags|=128):y&=1,L(et,y),bt(e,n,o,a),o=Re?xr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nx(e,a,n);else if(e.tag===19)Nx(e,a,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}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&bo(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Ed(n,!1,u,a,h,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&bo(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Ed(n,!0,a,null,h,o);break;case"together":Ed(n,!1,null,null,void 0,o);break;default:n.memoizedState=null}return n.child}function Zn(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Ei|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(is(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,a=In(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=In(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Ad(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&uo(e)))}function Zw(e,n,a){switch(n.tag){case 3:ft(n,n.stateNode.containerInfo),bi(n,rt,e.memoizedState.cache),la();break;case 27:case 5:tr(n);break;case 4:ft(n,n.stateNode.containerInfo);break;case 10:bi(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Wu(n),null;break;case 13:var o=n.memoizedState;if(o!==null)return o.dehydrated!==null?(Ni(n),n.flags|=128,null):(a&n.child.childLanes)!==0?wx(e,n,a):(Ni(n),e=Zn(e,n,a),e!==null?e.sibling:null);Ni(n);break;case 19:var u=(e.flags&128)!==0;if(o=(a&n.childLanes)!==0,o||(is(e,n,a,!1),o=(a&n.childLanes)!==0),u){if(o)return Sx(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),L(et,et.current),o)break;return null;case 22:return n.lanes=0,xx(e,n,a,n.pendingProps);case 24:bi(n,rt,e.memoizedState.cache)}return Zn(e,n,a)}function Tx(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)ot=!0;else{if(!Ad(e,a)&&(n.flags&128)===0)return ot=!1,Zw(e,n,a);ot=(e.flags&131072)!==0}else ot=!1,Re&&(n.flags&1048576)!==0&&i0(n,xr,n.index);switch(n.lanes=0,n.tag){case 16:e:{var o=n.pendingProps;if(e=da(n.elementType),n.type=e,typeof e=="function")Du(e)?(o=pa(e,o),n.tag=1,n=vx(null,n,e,o,a)):(n.tag=0,n=jd(null,n,e,o,a));else{if(e!=null){var u=e.$$typeof;if(u===U){n.tag=11,n=hx(null,n,e,o,a);break e}else if(u===Y){n.tag=14,n=mx(null,n,e,o,a);break e}}throw n=ae(e)||e,Error(l(306,n,""))}}return n;case 0:return jd(e,n,n.type,n.pendingProps,a);case 1:return o=n.type,u=pa(o,n.pendingProps),vx(e,n,o,u,a);case 3:e:{if(ft(n,n.stateNode.containerInfo),e===null)throw Error(l(387));o=n.pendingProps;var h=n.memoizedState;u=h.element,Yu(e,n),Sr(n,o,null,a);var y=n.memoizedState;if(o=y.cache,bi(n,rt,o),o!==h.cache&&qu(n,[rt],a,!0),Nr(),o=y.element,h.isDehydrated)if(h={element:o,isDehydrated:!1,cache:y.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=jx(e,n,o,a);break e}else if(o!==u){u=sn(Error(l(424)),n),gr(u),n=jx(e,n,o,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=un(e.firstChild),gt=n,Re=!0,gi=null,on=!0,a=x0(n,null,o,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(la(),o===u){n=Zn(e,n,a);break e}bt(e,n,o,a)}n=n.child}return n;case 26:return zo(e,n),e===null?(a=Ug(n.type,null,n.pendingProps,null))?n.memoizedState=a:Re||(a=n.type,e=n.pendingProps,o=$o(de.current).createElement(a),o[xt]=n,o[Ot]=e,vt(o,a,e),ht(o),n.stateNode=o):n.memoizedState=Ug(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return tr(n),e===null&&Re&&(o=n.stateNode=Dg(n.type,n.pendingProps,de.current),gt=n,on=!0,u=Fe,Oi(n.type)?(of=u,Fe=un(o.firstChild)):Fe=u),bt(e,n,n.pendingProps.children,a),zo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Re&&((u=o=Fe)&&(o=EN(o,n.type,n.pendingProps,on),o!==null?(n.stateNode=o,gt=n,Fe=un(o.firstChild),on=!1,u=!0):u=!1),u||yi(n)),tr(n),u=n.type,h=n.pendingProps,y=e!==null?e.memoizedProps:null,o=h.children,nf(u,h)?o=null:y!==null&&nf(u,y)&&(n.flags|=32),n.memoizedState!==null&&(u=td(e,n,qw,null,null,a),Gr._currentValue=u),zo(e,n),bt(e,n,o,a),n.child;case 6:return e===null&&Re&&((e=a=Fe)&&(a=AN(a,n.pendingProps,on),a!==null?(n.stateNode=a,gt=n,Fe=null,e=!0):e=!1),e||yi(n)),null;case 13:return wx(e,n,a);case 4:return ft(n,n.stateNode.containerInfo),o=n.pendingProps,e===null?n.child=ha(n,null,o,a):bt(e,n,o,a),n.child;case 11:return hx(e,n,n.type,n.pendingProps,a);case 7:return bt(e,n,n.pendingProps,a),n.child;case 8:return bt(e,n,n.pendingProps.children,a),n.child;case 12:return bt(e,n,n.pendingProps.children,a),n.child;case 10:return o=n.pendingProps,bi(n,n.type,o.value),bt(e,n,o.children,a),n.child;case 9:return u=n.type._context,o=n.pendingProps.children,ca(n),u=yt(u),o=o(u),n.flags|=1,bt(e,n,o,a),n.child;case 14:return mx(e,n,n.type,n.pendingProps,a);case 15:return px(e,n,n.type,n.pendingProps,a);case 19:return Sx(e,n,a);case 31:return Xw(e,n,a);case 22:return xx(e,n,a,n.pendingProps);case 24:return ca(n),o=yt(rt),e===null?(u=Iu(),u===null&&(u=qe,h=Fu(),u.pooledCache=h,h.refCount++,h!==null&&(u.pooledCacheLanes|=a),u=h),n.memoizedState={parent:o,cache:u},$u(n),bi(n,rt,u)):((e.lanes&a)!==0&&(Yu(e,n),Sr(n,null,null,a),Nr()),u=e.memoizedState,h=n.memoizedState,u.parent!==o?(u={parent:o,cache:o},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),bi(n,rt,o)):(o=h.cache,bi(n,rt,o),o!==u.cache&&qu(n,[rt],a,!0))),bt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function Jn(e){e.flags|=4}function Rd(e,n,a,o,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Jx())e.flags|=8192;else throw fa=po,Qu}else e.flags&=-16777217}function Cx(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hg(n))if(Jx())e.flags|=8192;else throw fa=po,Qu}function Oo(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?sp():536870912,e.lanes|=n,ps|=n)}function zr(e,n){if(!Re)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ge(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags&65011712,o|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,o|=u.subtreeFlags,o|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=o,e.childLanes=a,n}function Jw(e,n,a){var o=n.pendingProps;switch(Lu(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(n),null;case 1:return Ge(n),null;case 3:return a=n.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),Yn(rt),We(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ns(n)?Jn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Vu())),Ge(n),null;case 26:var u=n.type,h=n.memoizedState;return e===null?(Jn(n),h!==null?(Ge(n),Cx(n,h)):(Ge(n),Rd(n,u,null,o,a))):h?h!==e.memoizedState?(Jn(n),Ge(n),Cx(n,h)):(Ge(n),n.flags&=-16777217):(e=e.memoizedProps,e!==o&&Jn(n),Ge(n),Rd(n,u,e,o,a)),null;case 27:if(ql(n),a=de.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Jn(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return Ge(n),null}e=W.current,ns(n)?s0(n):(e=Dg(u,o,a),n.stateNode=e,Jn(n))}return Ge(n),null;case 5:if(ql(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==o&&Jn(n);else{if(!o){if(n.stateNode===null)throw Error(l(166));return Ge(n),null}if(h=W.current,ns(n))s0(n);else{var y=$o(de.current);switch(h){case 1:h=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:h=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":h=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":h=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":h=y.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?h.multiple=!0:o.size&&(h.size=o.size);break;default:h=typeof o.is=="string"?y.createElement(u,{is:o.is}):y.createElement(u)}}h[xt]=n,h[Ot]=o;e:for(y=n.child;y!==null;){if(y.tag===5||y.tag===6)h.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===n)break e;for(;y.sibling===null;){if(y.return===null||y.return===n)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}n.stateNode=h;e:switch(vt(h,u,o),u){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&Jn(n)}}return Ge(n),Rd(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==o&&Jn(n);else{if(typeof o!="string"&&n.stateNode===null)throw Error(l(166));if(e=de.current,ns(n)){if(e=n.stateNode,a=n.memoizedProps,o=null,u=gt,u!==null)switch(u.tag){case 27:case 5:o=u.memoizedProps}e[xt]=n,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||wg(e.nodeValue,a)),e||yi(n,!0)}else e=$o(e).createTextNode(o),e[xt]=n,n.stateNode=e}return Ge(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(o=ns(n),a!==null){if(e===null){if(!o)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[xt]=n}else la(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ge(n),e=!1}else a=Vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(Xt(n),n):(Xt(n),null);if((n.flags&128)!==0)throw Error(l(558))}return Ge(n),null;case 13:if(o=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ns(n),o!==null&&o.dehydrated!==null){if(e===null){if(!u)throw Error(l(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(l(317));u[xt]=n}else la(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ge(n),u=!1}else u=Vu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(Xt(n),n):(Xt(n),null)}return Xt(n),(n.flags&128)!==0?(n.lanes=a,n):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=n.child,u=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(u=o.alternate.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),Oo(n,n.updateQueue),Ge(n),null);case 4:return We(),e===null&&Zd(n.stateNode.containerInfo),Ge(n),null;case 10:return Yn(n.type),Ge(n),null;case 19:if(B(et),o=n.memoizedState,o===null)return Ge(n),null;if(u=(n.flags&128)!==0,h=o.rendering,h===null)if(u)zr(o,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=bo(e),h!==null){for(n.flags|=128,zr(o,!1),e=h.updateQueue,n.updateQueue=e,Oo(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)e0(a,e),a=a.sibling;return L(et,et.current&1|2),Re&&Qn(n,o.treeForkCount),n.child}e=e.sibling}o.tail!==null&&Gt()>Lo&&(n.flags|=128,u=!0,zr(o,!1),n.lanes=4194304)}else{if(!u)if(e=bo(h),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Oo(n,e),zr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!h.alternate&&!Re)return Ge(n),null}else 2*Gt()-o.renderingStartTime>Lo&&a!==536870912&&(n.flags|=128,u=!0,zr(o,!1),n.lanes=4194304);o.isBackwards?(h.sibling=n.child,n.child=h):(e=o.last,e!==null?e.sibling=h:n.child=h,o.last=h)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Gt(),e.sibling=null,a=et.current,L(et,u?a&1|2:a&1),Re&&Qn(n,o.treeForkCount),e):(Ge(n),null);case 22:case 23:return Xt(n),Ju(),o=n.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(n.flags|=8192):o&&(n.flags|=8192),o?(a&536870912)!==0&&(n.flags&128)===0&&(Ge(n),n.subtreeFlags&6&&(n.flags|=8192)):Ge(n),a=n.updateQueue,a!==null&&Oo(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==a&&(n.flags|=2048),e!==null&&B(ua),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Yn(rt),Ge(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function Ww(e,n){switch(Lu(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Yn(rt),We(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ql(n),null;case 31:if(n.memoizedState!==null){if(Xt(n),n.alternate===null)throw Error(l(340));la()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Xt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));la()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return B(et),null;case 4:return We(),null;case 10:return Yn(n.type),null;case 22:case 23:return Xt(n),Ju(),e!==null&&B(ua),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Yn(rt),null;case 25:return null;default:return null}}function Ex(e,n){switch(Lu(n),n.tag){case 3:Yn(rt),We();break;case 26:case 27:case 5:ql(n);break;case 4:We();break;case 31:n.memoizedState!==null&&Xt(n);break;case 13:Xt(n);break;case 19:B(et);break;case 10:Yn(n.type);break;case 22:case 23:Xt(n),Ju(),e!==null&&B(ua);break;case 24:Yn(rt)}}function Mr(e,n){try{var a=n.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){o=void 0;var h=a.create,y=a.inst;o=h(),y.destroy=o}a=a.next}while(a!==u)}}catch(w){Le(n,n.return,w)}}function Ti(e,n,a){try{var o=n.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var h=u.next;o=h;do{if((o.tag&e)===e){var y=o.inst,w=y.destroy;if(w!==void 0){y.destroy=void 0,u=n;var R=a,V=w;try{V()}catch($){Le(u,R,$)}}}o=o.next}while(o!==h)}}catch($){Le(n,n.return,$)}}function Ax(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{y0(n,a)}catch(o){Le(e,e.return,o)}}}function Rx(e,n,a){a.props=pa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Le(e,n,o)}}function Or(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(u){Le(e,n,u)}}function On(e,n){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(u){Le(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Le(e,n,u)}else a.current=null}function zx(e){var n=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(u){Le(e,e.return,u)}}function zd(e,n,a){try{var o=e.stateNode;jN(o,e.type,a,n),o[Ot]=n}catch(u){Le(e,e.return,u)}}function Mx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Oi(e.type)||e.tag===4}function Md(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(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.tag===27&&Oi(e.type)||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 Od(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Fn));else if(o!==4&&(o===27&&Oi(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Od(e,n,a),e=e.sibling;e!==null;)Od(e,n,a),e=e.sibling}function Do(e,n,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(o!==4&&(o===27&&Oi(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Do(e,n,a),e=e.sibling;e!==null;)Do(e,n,a),e=e.sibling}function Ox(e){var n=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);vt(n,o,a),n[xt]=e,n[Ot]=a}catch(h){Le(e,e.return,h)}}var Wn=!1,ct=!1,Dd=!1,Dx=typeof WeakSet=="function"?WeakSet:Set,mt=null;function eN(e,n){if(e=e.containerInfo,ef=ec,e=Ip(e),Cu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var u=o.anchorOffset,h=o.focusNode;o=o.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var y=0,w=-1,R=-1,V=0,$=0,Z=e,H=null;t:for(;;){for(var G;Z!==a||u!==0&&Z.nodeType!==3||(w=y+u),Z!==h||o!==0&&Z.nodeType!==3||(R=y+o),Z.nodeType===3&&(y+=Z.nodeValue.length),(G=Z.firstChild)!==null;)H=Z,Z=G;for(;;){if(Z===e)break t;if(H===a&&++V===u&&(w=y),H===h&&++$===o&&(R=y),(G=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=G}a=w===-1||R===-1?null:{start:w,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(tf={focusedElem:e,selectionRange:a},ec=!1,mt=n;mt!==null;)if(n=mt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mt=e;else for(;mt!==null;){switch(n=mt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,a=n,u=h.memoizedProps,h=h.memoizedState,o=a.stateNode;try{var ce=pa(a.type,u);e=o.getSnapshotBeforeUpdate(ce,h),o.__reactInternalSnapshotBeforeUpdate=e}catch(me){Le(a,a.return,me)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)sf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=n.sibling,e!==null){e.return=n.return,mt=e;break}mt=n.return}}function _x(e,n,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:ti(e,a),o&4&&Mr(5,a);break;case 1:if(ti(e,a),o&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(y){Le(a,a.return,y)}else{var u=pa(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Le(a,a.return,y)}}o&64&&Ax(a),o&512&&Or(a,a.return);break;case 3:if(ti(e,a),o&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{y0(e,n)}catch(y){Le(a,a.return,y)}}break;case 27:n===null&&o&4&&Ox(a);case 26:case 5:ti(e,a),n===null&&o&4&&zx(a),o&512&&Or(a,a.return);break;case 12:ti(e,a);break;case 31:ti(e,a),o&4&&Lx(e,a);break;case 13:ti(e,a),o&4&&Px(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cN.bind(null,a),RN(e,a))));break;case 22:if(o=a.memoizedState!==null||Wn,!o){n=n!==null&&n.memoizedState!==null||ct,u=Wn;var h=ct;Wn=o,(ct=n)&&!h?ni(e,a,(a.subtreeFlags&8772)!==0):ti(e,a),Wn=u,ct=h}break;case 30:break;default:ti(e,a)}}function kx(e){var n=e.alternate;n!==null&&(e.alternate=null,kx(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&cu(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ie=null,_t=!1;function ei(e,n,a){for(a=a.child;a!==null;)Ux(e,n,a),a=a.sibling}function Ux(e,n,a){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(nr,a)}catch{}switch(a.tag){case 26:ct||On(a,n),ei(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||On(a,n);var o=Ie,u=_t;Oi(a.type)&&(Ie=a.stateNode,_t=!1),ei(e,n,a),Hr(a.stateNode),Ie=o,_t=u;break;case 5:ct||On(a,n);case 6:if(o=Ie,u=_t,Ie=null,ei(e,n,a),Ie=o,_t=u,Ie!==null)if(_t)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(a.stateNode)}catch(h){Le(a,n,h)}else try{Ie.removeChild(a.stateNode)}catch(h){Le(a,n,h)}break;case 18:Ie!==null&&(_t?(e=Ie,Ag(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ns(e)):Ag(Ie,a.stateNode));break;case 4:o=Ie,u=_t,Ie=a.stateNode.containerInfo,_t=!0,ei(e,n,a),Ie=o,_t=u;break;case 0:case 11:case 14:case 15:Ti(2,a,n),ct||Ti(4,a,n),ei(e,n,a);break;case 1:ct||(On(a,n),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Rx(a,n,o)),ei(e,n,a);break;case 21:ei(e,n,a);break;case 22:ct=(o=ct)||a.memoizedState!==null,ei(e,n,a),ct=o;break;default:ei(e,n,a)}}function Lx(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ns(e)}catch(a){Le(n,n.return,a)}}}function Px(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ns(e)}catch(a){Le(n,n.return,a)}}function tN(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Dx),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Dx),n;default:throw Error(l(435,e.tag))}}function _o(e,n){var a=tN(e);n.forEach(function(o){if(!a.has(o)){a.add(o);var u=uN.bind(null,e,o);o.then(u,u)}})}function kt(e,n){var a=n.deletions;if(a!==null)for(var o=0;o<a.length;o++){var u=a[o],h=e,y=n,w=y;e:for(;w!==null;){switch(w.tag){case 27:if(Oi(w.type)){Ie=w.stateNode,_t=!1;break e}break;case 5:Ie=w.stateNode,_t=!1;break e;case 3:case 4:Ie=w.stateNode.containerInfo,_t=!0;break e}w=w.return}if(Ie===null)throw Error(l(160));Ux(h,y,u),Ie=null,_t=!1,h=u.alternate,h!==null&&(h.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Vx(n,e),n=n.sibling}var wn=null;function Vx(e,n){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(n,e),Ut(e),o&4&&(Ti(3,e,e.return),Mr(3,e),Ti(5,e,e.return));break;case 1:kt(n,e),Ut(e),o&512&&(ct||a===null||On(a,a.return)),o&64&&Wn&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var u=wn;if(kt(n,e),Ut(e),o&512&&(ct||a===null||On(a,a.return)),o&4){var h=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(o){case"title":h=u.getElementsByTagName("title")[0],(!h||h[sr]||h[xt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=u.createElement(o),u.head.insertBefore(h,u.querySelector("head > title"))),vt(h,o,a),h[xt]=e,ht(h),o=h;break e;case"link":var y=Vg("link","href",u).get(o+(a.href||""));if(y){for(var w=0;w<y.length;w++)if(h=y[w],h.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&h.getAttribute("rel")===(a.rel==null?null:a.rel)&&h.getAttribute("title")===(a.title==null?null:a.title)&&h.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(w,1);break t}}h=u.createElement(o),vt(h,o,a),u.head.appendChild(h);break;case"meta":if(y=Vg("meta","content",u).get(o+(a.content||""))){for(w=0;w<y.length;w++)if(h=y[w],h.getAttribute("content")===(a.content==null?null:""+a.content)&&h.getAttribute("name")===(a.name==null?null:a.name)&&h.getAttribute("property")===(a.property==null?null:a.property)&&h.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&h.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(w,1);break t}}h=u.createElement(o),vt(h,o,a),u.head.appendChild(h);break;default:throw Error(l(468,o))}h[xt]=e,ht(h),o=h}e.stateNode=o}else Bg(u,e.type,e.stateNode);else e.stateNode=Pg(u,o,e.memoizedProps);else h!==o?(h===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):h.count--,o===null?Bg(u,e.type,e.stateNode):Pg(u,o,e.memoizedProps)):o===null&&e.stateNode!==null&&zd(e,e.memoizedProps,a.memoizedProps)}break;case 27:kt(n,e),Ut(e),o&512&&(ct||a===null||On(a,a.return)),a!==null&&o&4&&zd(e,e.memoizedProps,a.memoizedProps);break;case 5:if(kt(n,e),Ut(e),o&512&&(ct||a===null||On(a,a.return)),e.flags&32){u=e.stateNode;try{Qa(u,"")}catch(ce){Le(e,e.return,ce)}}o&4&&e.stateNode!=null&&(u=e.memoizedProps,zd(e,u,a!==null?a.memoizedProps:u)),o&1024&&(Dd=!0);break;case 6:if(kt(n,e),Ut(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(ce){Le(e,e.return,ce)}}break;case 3:if(Xo=null,u=wn,wn=Yo(n.containerInfo),kt(n,e),wn=u,Ut(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Ns(n.containerInfo)}catch(ce){Le(e,e.return,ce)}Dd&&(Dd=!1,Bx(e));break;case 4:o=wn,wn=Yo(e.stateNode.containerInfo),kt(n,e),Ut(e),wn=o;break;case 12:kt(n,e),Ut(e);break;case 31:kt(n,e),Ut(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_o(e,o)));break;case 13:kt(n,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uo=Gt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_o(e,o)));break;case 22:u=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,V=Wn,$=ct;if(Wn=V||u,ct=$||R,kt(n,e),ct=$,Wn=V,Ut(e),o&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||R||Wn||ct||xa(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){R=a=n;try{if(h=R.stateNode,u)y=h.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{w=R.stateNode;var Z=R.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ce){Le(R,R.return,ce)}}}else if(n.tag===6){if(a===null){R=n;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(ce){Le(R,R.return,ce)}}}else if(n.tag===18){if(a===null){R=n;try{var G=R.stateNode;u?Rg(G,!0):Rg(R.stateNode,!1)}catch(ce){Le(R,R.return,ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,_o(e,a))));break;case 19:kt(n,e),Ut(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,_o(e,o)));break;case 30:break;case 21:break;default:kt(n,e),Ut(e)}}function Ut(e){var n=e.flags;if(n&2){try{for(var a,o=e.return;o!==null;){if(Mx(o)){a=o;break}o=o.return}if(a==null)throw Error(l(160));switch(a.tag){case 27:var u=a.stateNode,h=Md(e);Do(e,h,u);break;case 5:var y=a.stateNode;a.flags&32&&(Qa(y,""),a.flags&=-33);var w=Md(e);Do(e,w,y);break;case 3:case 4:var R=a.stateNode.containerInfo,V=Md(e);Od(e,V,R);break;default:throw Error(l(161))}}catch($){Le(e,e.return,$)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Bx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Bx(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function ti(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)_x(e,n.alternate,n),n=n.sibling}function xa(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Ti(4,n,n.return),xa(n);break;case 1:On(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Rx(n,n.return,a),xa(n);break;case 27:Hr(n.stateNode);case 26:case 5:On(n,n.return),xa(n);break;case 22:n.memoizedState===null&&xa(n);break;case 30:xa(n);break;default:xa(n)}e=e.sibling}}function ni(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var o=n.alternate,u=e,h=n,y=h.flags;switch(h.tag){case 0:case 11:case 15:ni(u,h,a),Mr(4,h);break;case 1:if(ni(u,h,a),o=h,u=o.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(V){Le(o,o.return,V)}if(o=h,u=o.updateQueue,u!==null){var w=o.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)g0(R[u],w)}catch(V){Le(o,o.return,V)}}a&&y&64&&Ax(h),Or(h,h.return);break;case 27:Ox(h);case 26:case 5:ni(u,h,a),a&&o===null&&y&4&&zx(h),Or(h,h.return);break;case 12:ni(u,h,a);break;case 31:ni(u,h,a),a&&y&4&&Lx(u,h);break;case 13:ni(u,h,a),a&&y&4&&Px(u,h);break;case 22:h.memoizedState===null&&ni(u,h,a),Or(h,h.return);break;case 30:break;default:ni(u,h,a)}n=n.sibling}}function _d(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&yr(a))}function kd(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yr(e))}function Nn(e,n,a,o){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Hx(e,n,a,o),n=n.sibling}function Hx(e,n,a,o){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Nn(e,n,a,o),u&2048&&Mr(9,n);break;case 1:Nn(e,n,a,o);break;case 3:Nn(e,n,a,o),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&yr(e)));break;case 12:if(u&2048){Nn(e,n,a,o),e=n.stateNode;try{var h=n.memoizedProps,y=h.id,w=h.onPostCommit;typeof w=="function"&&w(y,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Le(n,n.return,R)}}else Nn(e,n,a,o);break;case 31:Nn(e,n,a,o);break;case 13:Nn(e,n,a,o);break;case 23:break;case 22:h=n.stateNode,y=n.alternate,n.memoizedState!==null?h._visibility&2?Nn(e,n,a,o):Dr(e,n):h._visibility&2?Nn(e,n,a,o):(h._visibility|=2,fs(e,n,a,o,(n.subtreeFlags&10256)!==0||!1)),u&2048&&_d(y,n);break;case 24:Nn(e,n,a,o),u&2048&&kd(n.alternate,n);break;default:Nn(e,n,a,o)}}function fs(e,n,a,o,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,y=n,w=a,R=o,V=y.flags;switch(y.tag){case 0:case 11:case 15:fs(h,y,w,R,u),Mr(8,y);break;case 23:break;case 22:var $=y.stateNode;y.memoizedState!==null?$._visibility&2?fs(h,y,w,R,u):Dr(h,y):($._visibility|=2,fs(h,y,w,R,u)),u&&V&2048&&_d(y.alternate,y);break;case 24:fs(h,y,w,R,u),u&&V&2048&&kd(y.alternate,y);break;default:fs(h,y,w,R,u)}n=n.sibling}}function Dr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,o=n,u=o.flags;switch(o.tag){case 22:Dr(a,o),u&2048&&_d(o.alternate,o);break;case 24:Dr(a,o),u&2048&&kd(o.alternate,o);break;default:Dr(a,o)}n=n.sibling}}var _r=8192;function hs(e,n,a){if(e.subtreeFlags&_r)for(e=e.child;e!==null;)qx(e,n,a),e=e.sibling}function qx(e,n,a){switch(e.tag){case 26:hs(e,n,a),e.flags&_r&&e.memoizedState!==null&&HN(a,wn,e.memoizedState,e.memoizedProps);break;case 5:hs(e,n,a);break;case 3:case 4:var o=wn;wn=Yo(e.stateNode.containerInfo),hs(e,n,a),wn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=_r,_r=16777216,hs(e,n,a),_r=o):hs(e,n,a));break;default:hs(e,n,a)}}function Fx(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function kr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];mt=o,Ix(o,e)}Fx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Gx(e),e=e.sibling}function Gx(e){switch(e.tag){case 0:case 11:case 15:kr(e),e.flags&2048&&Ti(9,e,e.return);break;case 3:kr(e);break;case 12:kr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,ko(e)):kr(e);break;default:kr(e)}}function ko(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var o=n[a];mt=o,Ix(o,e)}Fx(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Ti(8,n,n.return),ko(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,ko(n));break;default:ko(n)}e=e.sibling}}function Ix(e,n){for(;mt!==null;){var a=mt;switch(a.tag){case 0:case 11:case 15:Ti(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:yr(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,mt=o;else e:for(a=e;mt!==null;){o=mt;var u=o.sibling,h=o.return;if(kx(o),o===a){mt=null;break e}if(u!==null){u.return=h,mt=u;break e}mt=h}}}var nN={getCacheForType:function(e){var n=yt(rt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return yt(rt).controller.signal}},iN=typeof WeakMap=="function"?WeakMap:Map,_e=0,qe=null,Se=null,Ee=0,Ue=0,Zt=null,Ci=!1,ms=!1,Ud=!1,ii=0,Xe=0,Ei=0,ga=0,Ld=0,Jt=0,ps=0,Ur=null,Lt=null,Pd=!1,Uo=0,Qx=0,Lo=1/0,Po=null,Ai=null,dt=0,Ri=null,xs=null,ai=0,Vd=0,Bd=null,$x=null,Lr=0,Hd=null;function Wt(){return(_e&2)!==0&&Ee!==0?Ee&-Ee:D.T!==null?$d():cp()}function Yx(){if(Jt===0)if((Ee&536870912)===0||Re){var e=Il;Il<<=1,(Il&3932160)===0&&(Il=262144),Jt=e}else Jt=536870912;return e=Kt.current,e!==null&&(e.flags|=32),Jt}function Pt(e,n,a){(e===qe&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(gs(e,0),zi(e,Ee,Jt,!1)),ar(e,a),((_e&2)===0||e!==qe)&&(e===qe&&((_e&2)===0&&(ga|=a),Xe===4&&zi(e,Ee,Jt,!1)),Dn(e))}function Kx(e,n,a){if((_e&6)!==0)throw Error(l(327));var o=!a&&(n&127)===0&&(n&e.expiredLanes)===0||ir(e,n),u=o?rN(e,n):Fd(e,n,!0),h=o;do{if(u===0){ms&&!o&&zi(e,n,0,!1);break}else{if(a=e.current.alternate,h&&!aN(a)){u=Fd(e,n,!1),h=!1;continue}if(u===2){if(h=n,e.errorRecoveryDisabledLanes&h)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){n=y;e:{var w=e;u=Ur;var R=w.current.memoizedState.isDehydrated;if(R&&(gs(w,y).flags|=256),y=Fd(w,y,!1),y!==2){if(Ud&&!R){w.errorRecoveryDisabledLanes|=h,ga|=h,u=4;break e}h=Lt,Lt=u,h!==null&&(Lt===null?Lt=h:Lt.push.apply(Lt,h))}u=y}if(h=!1,u!==2)continue}}if(u===1){gs(e,0),zi(e,n,0,!0);break}e:{switch(o=e,h=u,h){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:zi(o,n,Jt,!Ci);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(u=Uo+300-Gt(),10<u)){if(zi(o,n,Jt,!Ci),$l(o,0,!0)!==0)break e;ai=n,o.timeoutHandle=Cg(Xx.bind(null,o,a,Lt,Po,Pd,n,Jt,ga,ps,Ci,h,"Throttled",-0,0),u);break e}Xx(o,a,Lt,Po,Pd,n,Jt,ga,ps,Ci,h,null,-0,0)}}break}while(!0);Dn(e)}function Xx(e,n,a,o,u,h,y,w,R,V,$,Z,H,G){if(e.timeoutHandle=-1,Z=n.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fn},qx(n,h,Z);var ce=(h&62914560)===h?Uo-Gt():(h&4194048)===h?Qx-Gt():0;if(ce=qN(Z,ce),ce!==null){ai=h,e.cancelPendingCommit=ce(ag.bind(null,e,n,h,a,o,u,y,w,R,$,Z,null,H,G)),zi(e,h,y,!V);return}}ag(e,n,h,a,o,u,y,w,R)}function aN(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var u=a[o],h=u.getSnapshot;u=u.value;try{if(!$t(h(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;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 zi(e,n,a,o){n&=~Ld,n&=~ga,e.suspendedLanes|=n,e.pingedLanes&=~n,o&&(e.warmLanes|=n),o=e.expirationTimes;for(var u=n;0<u;){var h=31-Qt(u),y=1<<h;o[h]=-1,u&=~y}a!==0&&rp(e,a,n)}function Vo(){return(_e&6)===0?(Pr(0),!1):!0}function qd(){if(Se!==null){if(Ue===0)var e=Se.return;else e=Se,$n=oa=null,ad(e),ls=null,vr=0,e=Se;for(;e!==null;)Ex(e.alternate,e),e=e.return;Se=null}}function gs(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,SN(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ai=0,qd(),qe=e,Se=a=In(e.current,null),Ee=n,Ue=0,Zt=null,Ci=!1,ms=ir(e,n),Ud=!1,ps=Jt=Ld=ga=Ei=Xe=0,Lt=Ur=null,Pd=!1,(n&8)!==0&&(n|=n&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=n;0<o;){var u=31-Qt(o),h=1<<u;n|=e[u],o&=~h}return ii=n,so(),a}function Zx(e,n){we=null,D.H=Ar,n===rs||n===mo?(n=h0(),Ue=3):n===Qu?(n=h0(),Ue=4):Ue=n===vd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Zt=n,Se===null&&(Xe=1,Ao(e,sn(n,e.current)))}function Jx(){var e=Kt.current;return e===null?!0:(Ee&4194048)===Ee?cn===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===cn:!1}function Wx(){var e=D.H;return D.H=Ar,e===null?Ar:e}function eg(){var e=D.A;return D.A=nN,e}function Bo(){Xe=4,Ci||(Ee&4194048)!==Ee&&Kt.current!==null||(ms=!0),(Ei&134217727)===0&&(ga&134217727)===0||qe===null||zi(qe,Ee,Jt,!1)}function Fd(e,n,a){var o=_e;_e|=2;var u=Wx(),h=eg();(qe!==e||Ee!==n)&&(Po=null,gs(e,n)),n=!1;var y=Xe;e:do try{if(Ue!==0&&Se!==null){var w=Se,R=Zt;switch(Ue){case 8:qd(),y=6;break e;case 3:case 2:case 9:case 6:Kt.current===null&&(n=!0);var V=Ue;if(Ue=0,Zt=null,ys(e,w,R,V),a&&ms){y=0;break e}break;default:V=Ue,Ue=0,Zt=null,ys(e,w,R,V)}}sN(),y=Xe;break}catch($){Zx(e,$)}while(!0);return n&&e.shellSuspendCounter++,$n=oa=null,_e=o,D.H=u,D.A=h,Se===null&&(qe=null,Ee=0,so()),y}function sN(){for(;Se!==null;)tg(Se)}function rN(e,n){var a=_e;_e|=2;var o=Wx(),u=eg();qe!==e||Ee!==n?(Po=null,Lo=Gt()+500,gs(e,n)):ms=ir(e,n);e:do try{if(Ue!==0&&Se!==null){n=Se;var h=Zt;t:switch(Ue){case 1:Ue=0,Zt=null,ys(e,n,h,1);break;case 2:case 9:if(d0(h)){Ue=0,Zt=null,ng(n);break}n=function(){Ue!==2&&Ue!==9||qe!==e||(Ue=7),Dn(e)},h.then(n,n);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:d0(h)?(Ue=0,Zt=null,ng(n)):(Ue=0,Zt=null,ys(e,n,h,7));break;case 5:var y=null;switch(Se.tag){case 26:y=Se.memoizedState;case 5:case 27:var w=Se;if(y?Hg(y):w.stateNode.complete){Ue=0,Zt=null;var R=w.sibling;if(R!==null)Se=R;else{var V=w.return;V!==null?(Se=V,Ho(V)):Se=null}break t}}Ue=0,Zt=null,ys(e,n,h,5);break;case 6:Ue=0,Zt=null,ys(e,n,h,6);break;case 8:qd(),Xe=6;break e;default:throw Error(l(462))}}lN();break}catch($){Zx(e,$)}while(!0);return $n=oa=null,D.H=o,D.A=u,_e=a,Se!==null?0:(qe=null,Ee=0,so(),Xe)}function lN(){for(;Se!==null&&!z2();)tg(Se)}function tg(e){var n=Tx(e.alternate,e,ii);e.memoizedProps=e.pendingProps,n===null?Ho(e):Se=n}function ng(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=bx(a,n,n.pendingProps,n.type,void 0,Ee);break;case 11:n=bx(a,n,n.pendingProps,n.type.render,n.ref,Ee);break;case 5:ad(n);default:Ex(a,n),n=Se=e0(n,ii),n=Tx(a,n,ii)}e.memoizedProps=e.pendingProps,n===null?Ho(e):Se=n}function ys(e,n,a,o){$n=oa=null,ad(n),ls=null,vr=0;var u=n.return;try{if(Kw(e,u,n,a,Ee)){Xe=1,Ao(e,sn(a,e.current)),Se=null;return}}catch(h){if(u!==null)throw Se=u,h;Xe=1,Ao(e,sn(a,e.current)),Se=null;return}n.flags&32768?(Re||o===1?e=!0:ms||(Ee&536870912)!==0?e=!1:(Ci=e=!0,(o===2||o===9||o===3||o===6)&&(o=Kt.current,o!==null&&o.tag===13&&(o.flags|=16384))),ig(n,e)):Ho(n)}function Ho(e){var n=e;do{if((n.flags&32768)!==0){ig(n,Ci);return}e=n.return;var a=Jw(n.alternate,n,ii);if(a!==null){Se=a;return}if(n=n.sibling,n!==null){Se=n;return}Se=n=e}while(n!==null);Xe===0&&(Xe=5)}function ig(e,n){do{var a=Ww(e.alternate,e);if(a!==null){a.flags&=32767,Se=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Se=e;return}Se=e=a}while(e!==null);Xe=6,Se=null}function ag(e,n,a,o,u,h,y,w,R){e.cancelPendingCommit=null;do qo();while(dt!==0);if((_e&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(h=n.lanes|n.childLanes,h|=Mu,B2(e,a,h,y,w,R),e===qe&&(Se=qe=null,Ee=0),xs=n,Ri=e,ai=a,Vd=h,Bd=u,$x=o,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dN(Fl,function(){return cg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,u=J.p,J.p=2,y=_e,_e|=4;try{eN(e,n,a)}finally{_e=y,J.p=u,D.T=o}}dt=1,sg(),rg(),lg()}}function sg(){if(dt===1){dt=0;var e=Ri,n=xs,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var o=J.p;J.p=2;var u=_e;_e|=4;try{Vx(n,e);var h=tf,y=Ip(e.containerInfo),w=h.focusedElem,R=h.selectionRange;if(y!==w&&w&&w.ownerDocument&&Gp(w.ownerDocument.documentElement,w)){if(R!==null&&Cu(w)){var V=R.start,$=R.end;if($===void 0&&($=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min($,w.value.length);else{var Z=w.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var G=H.getSelection(),ce=w.textContent.length,me=Math.min(R.start,ce),He=R.end===void 0?me:Math.min(R.end,ce);!G.extend&&me>He&&(y=He,He=me,me=y);var k=Fp(w,me),z=Fp(w,He);if(k&&z&&(G.rangeCount!==1||G.anchorNode!==k.node||G.anchorOffset!==k.offset||G.focusNode!==z.node||G.focusOffset!==z.offset)){var P=Z.createRange();P.setStart(k.node,k.offset),G.removeAllRanges(),me>He?(G.addRange(P),G.extend(z.node,z.offset)):(P.setEnd(z.node,z.offset),G.addRange(P))}}}}for(Z=[],G=w;G=G.parentNode;)G.nodeType===1&&Z.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<Z.length;w++){var X=Z[w];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}ec=!!ef,tf=ef=null}finally{_e=u,J.p=o,D.T=a}}e.current=n,dt=2}}function rg(){if(dt===2){dt=0;var e=Ri,n=xs,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var o=J.p;J.p=2;var u=_e;_e|=4;try{_x(e,n.alternate,n)}finally{_e=u,J.p=o,D.T=a}}dt=3}}function lg(){if(dt===4||dt===3){dt=0,M2();var e=Ri,n=xs,a=ai,o=$x;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?dt=5:(dt=0,xs=Ri=null,og(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ai=null),lu(a),n=n.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(nr,n,void 0,(n.current.flags&128)===128)}catch{}if(o!==null){n=D.T,u=J.p,J.p=2,D.T=null;try{for(var h=e.onRecoverableError,y=0;y<o.length;y++){var w=o[y];h(w.value,{componentStack:w.stack})}}finally{D.T=n,J.p=u}}(ai&3)!==0&&qo(),Dn(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Hd?Lr++:(Lr=0,Hd=e):Lr=0,Pr(0)}}function og(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,yr(n)))}function qo(){return sg(),rg(),lg(),cg()}function cg(){if(dt!==5)return!1;var e=Ri,n=Vd;Vd=0;var a=lu(ai),o=D.T,u=J.p;try{J.p=32>a?32:a,D.T=null,a=Bd,Bd=null;var h=Ri,y=ai;if(dt=0,xs=Ri=null,ai=0,(_e&6)!==0)throw Error(l(331));var w=_e;if(_e|=4,Gx(h.current),Hx(h,h.current,y,a),_e=w,Pr(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(nr,h)}catch{}return!0}finally{J.p=u,D.T=o,og(e,n)}}function ug(e,n,a){n=sn(a,n),n=bd(e.stateNode,n,2),e=wi(e,n,2),e!==null&&(ar(e,2),Dn(e))}function Le(e,n,a){if(e.tag===3)ug(e,e,a);else for(;n!==null;){if(n.tag===3){ug(n,e,a);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ai===null||!Ai.has(o))){e=sn(a,e),a=dx(2),o=wi(n,a,2),o!==null&&(fx(a,o,n,e),ar(o,2),Dn(o));break}}n=n.return}}function Gd(e,n,a){var o=e.pingCache;if(o===null){o=e.pingCache=new iN;var u=new Set;o.set(n,u)}else u=o.get(n),u===void 0&&(u=new Set,o.set(n,u));u.has(a)||(Ud=!0,u.add(a),e=oN.bind(null,e,n,a),n.then(e,e))}function oN(e,n,a){var o=e.pingCache;o!==null&&o.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,qe===e&&(Ee&a)===a&&(Xe===4||Xe===3&&(Ee&62914560)===Ee&&300>Gt()-Uo?(_e&2)===0&&gs(e,0):Ld|=a,ps===Ee&&(ps=0)),Dn(e)}function dg(e,n){n===0&&(n=sp()),e=sa(e,n),e!==null&&(ar(e,n),Dn(e))}function cN(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),dg(e,a)}function uN(e,n){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(n),dg(e,a)}function dN(e,n){return iu(e,n)}var Fo=null,bs=null,Id=!1,Go=!1,Qd=!1,Mi=0;function Dn(e){e!==bs&&e.next===null&&(bs===null?Fo=bs=e:bs=bs.next=e),Go=!0,Id||(Id=!0,hN())}function Pr(e,n){if(!Qd&&Go){Qd=!0;do for(var a=!1,o=Fo;o!==null;){if(e!==0){var u=o.pendingLanes;if(u===0)var h=0;else{var y=o.suspendedLanes,w=o.pingedLanes;h=(1<<31-Qt(42|e)+1)-1,h&=u&~(y&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,pg(o,h))}else h=Ee,h=$l(o,o===qe?h:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(h&3)===0||ir(o,h)||(a=!0,pg(o,h));o=o.next}while(a);Qd=!1}}function fN(){fg()}function fg(){Go=Id=!1;var e=0;Mi!==0&&NN()&&(e=Mi);for(var n=Gt(),a=null,o=Fo;o!==null;){var u=o.next,h=hg(o,n);h===0?(o.next=null,a===null?Fo=u:a.next=u,u===null&&(bs=a)):(a=o,(e!==0||(h&3)!==0)&&(Go=!0)),o=u}dt!==0&&dt!==5||Pr(e),Mi!==0&&(Mi=0)}function hg(e,n){for(var a=e.suspendedLanes,o=e.pingedLanes,u=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var y=31-Qt(h),w=1<<y,R=u[y];R===-1?((w&a)===0||(w&o)!==0)&&(u[y]=V2(w,n)):R<=n&&(e.expiredLanes|=w),h&=~w}if(n=qe,a=Ee,a=$l(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===n&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&au(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ir(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(o!==null&&au(o),lu(a)){case 2:case 8:a=ip;break;case 32:a=Fl;break;case 268435456:a=ap;break;default:a=Fl}return o=mg.bind(null,e),a=iu(a,o),e.callbackPriority=n,e.callbackNode=a,n}return o!==null&&o!==null&&au(o),e.callbackPriority=2,e.callbackNode=null,2}function mg(e,n){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qo()&&e.callbackNode!==a)return null;var o=Ee;return o=$l(e,e===qe?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Kx(e,o,n),hg(e,Gt()),e.callbackNode!=null&&e.callbackNode===a?mg.bind(null,e):null)}function pg(e,n){if(qo())return null;Kx(e,n,!0)}function hN(){TN(function(){(_e&6)!==0?iu(np,fN):fg()})}function $d(){if(Mi===0){var e=as;e===0&&(e=Gl,Gl<<=1,(Gl&261888)===0&&(Gl=256)),Mi=e}return Mi}function xg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Zl(""+e)}function gg(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function mN(e,n,a,o,u){if(n==="submit"&&a&&a.stateNode===u){var h=xg((u[Ot]||null).action),y=o.submitter;y&&(n=(n=y[Ot]||null)?xg(n.formAction):y.getAttribute("formAction"),n!==null&&(h=n,y=null));var w=new to("action","action",null,o,u);e.push({event:w,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Mi!==0){var R=y?gg(u,y):new FormData(u);hd(a,{pending:!0,data:R,method:u.method,action:h},null,R)}}else typeof h=="function"&&(w.preventDefault(),R=y?gg(u,y):new FormData(u),hd(a,{pending:!0,data:R,method:u.method,action:h},h,R))},currentTarget:u}]})}}for(var Yd=0;Yd<zu.length;Yd++){var Kd=zu[Yd],pN=Kd.toLowerCase(),xN=Kd[0].toUpperCase()+Kd.slice(1);jn(pN,"on"+xN)}jn(Yp,"onAnimationEnd"),jn(Kp,"onAnimationIteration"),jn(Xp,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(Ow,"onTransitionRun"),jn(Dw,"onTransitionStart"),jn(_w,"onTransitionCancel"),jn(Zp,"onTransitionEnd"),Ga("onMouseEnter",["mouseout","mouseover"]),Ga("onMouseLeave",["mouseout","mouseover"]),Ga("onPointerEnter",["pointerout","pointerover"]),Ga("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vr="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(" "),gN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vr));function yg(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],u=o.event;o=o.listeners;e:{var h=void 0;if(n)for(var y=o.length-1;0<=y;y--){var w=o[y],R=w.instance,V=w.currentTarget;if(w=w.listener,R!==h&&u.isPropagationStopped())break e;h=w,u.currentTarget=V;try{h(u)}catch($){ao($)}u.currentTarget=null,h=R}else for(y=0;y<o.length;y++){if(w=o[y],R=w.instance,V=w.currentTarget,w=w.listener,R!==h&&u.isPropagationStopped())break e;h=w,u.currentTarget=V;try{h(u)}catch($){ao($)}u.currentTarget=null,h=R}}}}function Te(e,n){var a=n[ou];a===void 0&&(a=n[ou]=new Set);var o=e+"__bubble";a.has(o)||(bg(n,e,2,!1),a.add(o))}function Xd(e,n,a){var o=0;n&&(o|=4),bg(a,e,o,n)}var Io="_reactListening"+Math.random().toString(36).slice(2);function Zd(e){if(!e[Io]){e[Io]=!0,fp.forEach(function(a){a!=="selectionchange"&&(gN.has(a)||Xd(a,!1,e),Xd(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Io]||(n[Io]=!0,Xd("selectionchange",!1,n))}}function bg(e,n,a,o){switch(Yg(n)){case 2:var u=IN;break;case 8:u=QN;break;default:u=hf}a=u.bind(null,n,a,e),u=void 0,!gu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),o?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function Jd(e,n,a,o,u){var h=o;if((n&1)===0&&(n&2)===0&&o!==null)e:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var w=o.stateNode.containerInfo;if(w===u)break;if(y===4)for(y=o.return;y!==null;){var R=y.tag;if((R===3||R===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;w!==null;){if(y=Ha(w),y===null)return;if(R=y.tag,R===5||R===6||R===26||R===27){o=h=y;continue e}w=w.parentNode}}o=o.return}Sp(function(){var V=h,$=pu(a),Z=[];e:{var H=Jp.get(e);if(H!==void 0){var G=to,ce=e;switch(e){case"keypress":if(Wl(a)===0)break e;case"keydown":case"keyup":G=uw;break;case"focusin":ce="focus",G=ju;break;case"focusout":ce="blur",G=ju;break;case"beforeblur":case"afterblur":G=ju;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=Ep;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=J2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=hw;break;case Yp:case Kp:case Xp:G=tw;break;case Zp:G=pw;break;case"scroll":case"scrollend":G=X2;break;case"wheel":G=gw;break;case"copy":case"cut":case"paste":G=iw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Rp;break;case"toggle":case"beforetoggle":G=bw}var me=(n&4)!==0,He=!me&&(e==="scroll"||e==="scrollend"),k=me?H!==null?H+"Capture":null:H;me=[];for(var z=V,P;z!==null;){var X=z;if(P=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||P===null||k===null||(X=lr(z,k),X!=null&&me.push(Br(z,X,P))),He)break;z=z.return}0<me.length&&(H=new G(H,ce,null,a,$),Z.push({event:H,listeners:me}))}}if((n&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",H&&a!==mu&&(ce=a.relatedTarget||a.fromElement)&&(Ha(ce)||ce[Ba]))break e;if((G||H)&&(H=$.window===$?$:(H=$.ownerDocument)?H.defaultView||H.parentWindow:window,G?(ce=a.relatedTarget||a.toElement,G=V,ce=ce?Ha(ce):null,ce!==null&&(He=d(ce),me=ce.tag,ce!==He||me!==5&&me!==27&&me!==6)&&(ce=null)):(G=null,ce=V),G!==ce)){if(me=Ep,X="onMouseLeave",k="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(me=Rp,X="onPointerLeave",k="onPointerEnter",z="pointer"),He=G==null?H:rr(G),P=ce==null?H:rr(ce),H=new me(X,z+"leave",G,a,$),H.target=He,H.relatedTarget=P,X=null,Ha($)===V&&(me=new me(k,z+"enter",ce,a,$),me.target=P,me.relatedTarget=He,X=me),He=X,G&&ce)t:{for(me=yN,k=G,z=ce,P=0,X=k;X;X=me(X))P++;X=0;for(var fe=z;fe;fe=me(fe))X++;for(;0<P-X;)k=me(k),P--;for(;0<X-P;)z=me(z),X--;for(;P--;){if(k===z||z!==null&&k===z.alternate){me=k;break t}k=me(k),z=me(z)}me=null}else me=null;G!==null&&vg(Z,H,G,me,!1),ce!==null&&He!==null&&vg(Z,He,ce,me,!0)}}e:{if(H=V?rr(V):window,G=H.nodeName&&H.nodeName.toLowerCase(),G==="select"||G==="input"&&H.type==="file")var Oe=Lp;else if(kp(H))if(Pp)Oe=Rw;else{Oe=Ew;var ue=Cw}else G=H.nodeName,!G||G.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?V&&hu(V.elementType)&&(Oe=Lp):Oe=Aw;if(Oe&&(Oe=Oe(e,V))){Up(Z,Oe,a,$);break e}ue&&ue(e,H,V),e==="focusout"&&V&&H.type==="number"&&V.memoizedProps.value!=null&&fu(H,"number",H.value)}switch(ue=V?rr(V):window,e){case"focusin":(kp(ue)||ue.contentEditable==="true")&&(Xa=ue,Eu=V,pr=null);break;case"focusout":pr=Eu=Xa=null;break;case"mousedown":Au=!0;break;case"contextmenu":case"mouseup":case"dragend":Au=!1,Qp(Z,a,$);break;case"selectionchange":if(Mw)break;case"keydown":case"keyup":Qp(Z,a,$)}var Ne;if(Nu)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Ka?Dp(e,a)&&(Ae="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ae="onCompositionStart");Ae&&(zp&&a.locale!=="ko"&&(Ka||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Ka&&(Ne=Tp()):(pi=$,yu="value"in pi?pi.value:pi.textContent,Ka=!0)),ue=Qo(V,Ae),0<ue.length&&(Ae=new Ap(Ae,e,null,a,$),Z.push({event:Ae,listeners:ue}),Ne?Ae.data=Ne:(Ne=_p(a),Ne!==null&&(Ae.data=Ne)))),(Ne=jw?ww(e,a):Nw(e,a))&&(Ae=Qo(V,"onBeforeInput"),0<Ae.length&&(ue=new Ap("onBeforeInput","beforeinput",null,a,$),Z.push({event:ue,listeners:Ae}),ue.data=Ne)),mN(Z,e,V,a,$)}yg(Z,n)})}function Br(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Qo(e,n){for(var a=n+"Capture",o=[];e!==null;){var u=e,h=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||h===null||(u=lr(e,a),u!=null&&o.unshift(Br(e,u,h)),u=lr(e,n),u!=null&&o.push(Br(e,u,h))),e.tag===3)return o;e=e.return}return[]}function yN(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vg(e,n,a,o,u){for(var h=n._reactName,y=[];a!==null&&a!==o;){var w=a,R=w.alternate,V=w.stateNode;if(w=w.tag,R!==null&&R===o)break;w!==5&&w!==26&&w!==27||V===null||(R=V,u?(V=lr(a,h),V!=null&&y.unshift(Br(a,V,R))):u||(V=lr(a,h),V!=null&&y.push(Br(a,V,R)))),a=a.return}y.length!==0&&e.push({event:n,listeners:y})}var bN=/\r\n?/g,vN=/\u0000|\uFFFD/g;function jg(e){return(typeof e=="string"?e:""+e).replace(bN,`
49`).replace(vN,"")}function wg(e,n){return n=jg(n),jg(e)===n}function Be(e,n,a,o,u,h){switch(a){case"children":typeof o=="string"?n==="body"||n==="textarea"&&o===""||Qa(e,o):(typeof o=="number"||typeof o=="bigint")&&n!=="body"&&Qa(e,""+o);break;case"className":Kl(e,"class",o);break;case"tabIndex":Kl(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Kl(e,a,o);break;case"style":wp(e,o,h);break;case"data":if(n!=="object"){Kl(e,"data",o);break}case"src":case"href":if(o===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Zl(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof h=="function"&&(a==="formAction"?(n!=="input"&&Be(e,n,"name",u.name,u,null),Be(e,n,"formEncType",u.formEncType,u,null),Be(e,n,"formMethod",u.formMethod,u,null),Be(e,n,"formTarget",u.formTarget,u,null)):(Be(e,n,"encType",u.encType,u,null),Be(e,n,"method",u.method,u,null),Be(e,n,"target",u.target,u,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=Zl(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=Fn);break;case"onScroll":o!=null&&Te("scroll",e);break;case"onScrollEnd":o!=null&&Te("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=Zl(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Yl(e,"popover",o);break;case"xlinkActuate":qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":qn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":qn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":qn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":qn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Yl(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Y2.get(a)||a,Yl(e,a,o))}}function Wd(e,n,a,o,u,h){switch(a){case"style":wp(e,o,h);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(a=o.__html,a!=null){if(u.children!=null)throw Error(l(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Qa(e,o):(typeof o=="number"||typeof o=="bigint")&&Qa(e,""+o);break;case"onScroll":o!=null&&Te("scroll",e);break;case"onScrollEnd":o!=null&&Te("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Fn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),h=e[Ot]||null,h=h!=null?h[a]:null,typeof h=="function"&&e.removeEventListener(n,h,u),typeof o=="function")){typeof h!="function"&&h!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,o,u);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Yl(e,a,o)}}}function vt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var o=!1,u=!1,h;for(h in a)if(a.hasOwnProperty(h)){var y=a[h];if(y!=null)switch(h){case"src":o=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Be(e,n,h,y,a,null)}}u&&Be(e,n,"srcSet",a.srcSet,a,null),o&&Be(e,n,"src",a.src,a,null);return;case"input":Te("invalid",e);var w=h=y=u=null,R=null,V=null;for(o in a)if(a.hasOwnProperty(o)){var $=a[o];if($!=null)switch(o){case"name":u=$;break;case"type":y=$;break;case"checked":R=$;break;case"defaultChecked":V=$;break;case"value":h=$;break;case"defaultValue":w=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(l(137,n));break;default:Be(e,n,o,$,a,null)}}yp(e,h,w,R,V,y,u,!1);return;case"select":Te("invalid",e),o=y=h=null;for(u in a)if(a.hasOwnProperty(u)&&(w=a[u],w!=null))switch(u){case"value":h=w;break;case"defaultValue":y=w;break;case"multiple":o=w;default:Be(e,n,u,w,a,null)}n=h,a=y,e.multiple=!!o,n!=null?Ia(e,!!o,n,!1):a!=null&&Ia(e,!!o,a,!0);return;case"textarea":Te("invalid",e),h=u=o=null;for(y in a)if(a.hasOwnProperty(y)&&(w=a[y],w!=null))switch(y){case"value":o=w;break;case"defaultValue":u=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Be(e,n,y,w,a,null)}vp(e,o,u,h);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(o=a[R],o!=null))switch(R){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Be(e,n,R,o,a,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(o=0;o<Vr.length;o++)Te(Vr[o],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in a)if(a.hasOwnProperty(V)&&(o=a[V],o!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:Be(e,n,V,o,a,null)}return;default:if(hu(n)){for($ in a)a.hasOwnProperty($)&&(o=a[$],o!==void 0&&Wd(e,n,$,o,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(o=a[w],o!=null&&Be(e,n,w,o,a,null))}function jN(e,n,a,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,h=null,y=null,w=null,R=null,V=null,$=null;for(G in a){var Z=a[G];if(a.hasOwnProperty(G)&&Z!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=Z;default:o.hasOwnProperty(G)||Be(e,n,G,null,o,Z)}}for(var H in o){var G=o[H];
vendor: 16,337 bytes, line 49
49if(Z=a[H],o.hasOwnProperty(H)&&(G!=null||Z!=null))switch(H){case"type":h=G;break;case"name":u=G;break;case"checked":V=G;break;case"defaultChecked":$=G;break;case"value":y=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(l(137,n));break;default:G!==Z&&Be(e,n,H,G,o,Z)}}du(e,y,w,R,V,$,h,u);return;case"select":G=y=w=H=null;for(h in a)if(R=a[h],a.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":G=R;default:o.hasOwnProperty(h)||Be(e,n,h,null,o,R)}for(u in o)if(h=o[u],R=a[u],o.hasOwnProperty(u)&&(h!=null||R!=null))switch(u){case"value":H=h;break;case"defaultValue":w=h;break;case"multiple":y=h;default:h!==R&&Be(e,n,u,h,o,R)}n=w,a=y,o=G,H!=null?Ia(e,!!a,H,!1):!!o!=!!a&&(n!=null?Ia(e,!!a,n,!0):Ia(e,!!a,a?[]:"",!1));return;case"textarea":G=H=null;for(w in a)if(u=a[w],a.hasOwnProperty(w)&&u!=null&&!o.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Be(e,n,w,null,o,u)}for(y in o)if(u=o[y],h=a[y],o.hasOwnProperty(y)&&(u!=null||h!=null))switch(y){case"value":H=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(l(91));break;default:u!==h&&Be(e,n,y,u,o,h)}bp(e,H,G);return;case"option":for(var ce in a)if(H=a[ce],a.hasOwnProperty(ce)&&H!=null&&!o.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Be(e,n,ce,null,o,H)}for(R in o)if(H=o[R],G=a[R],o.hasOwnProperty(R)&&H!==G&&(H!=null||G!=null))switch(R){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Be(e,n,R,H,o,G)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in a)H=a[me],a.hasOwnProperty(me)&&H!=null&&!o.hasOwnProperty(me)&&Be(e,n,me,null,o,H);for(V in o)if(H=o[V],G=a[V],o.hasOwnProperty(V)&&H!==G&&(H!=null||G!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,n));break;default:Be(e,n,V,H,o,G)}return;default:if(hu(n)){for(var He in a)H=a[He],a.hasOwnProperty(He)&&H!==void 0&&!o.hasOwnProperty(He)&&Wd(e,n,He,void 0,o,H);for($ in o)H=o[$],G=a[$],!o.hasOwnProperty($)||H===G||H===void 0&&G===void 0||Wd(e,n,$,H,o,G);return}}for(var k in a)H=a[k],a.hasOwnProperty(k)&&H!=null&&!o.hasOwnProperty(k)&&Be(e,n,k,null,o,H);for(Z in o)H=o[Z],G=a[Z],!o.hasOwnProperty(Z)||H===G||H==null&&G==null||Be(e,n,Z,H,o,G)}function Ng(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wN(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var u=a[o],h=u.transferSize,y=u.initiatorType,w=u.duration;if(h&&w&&Ng(y)){for(y=0,w=u.responseEnd,o+=1;o<a.length;o++){var R=a[o],V=R.startTime;if(V>w)break;var $=R.transferSize,Z=R.initiatorType;$&&Ng(Z)&&(R=R.responseEnd,y+=$*(R<w?1:(w-V)/(R-V)))}if(--o,n+=8*(h+y)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ef=null,tf=null;function $o(e){return e.nodeType===9?e:e.ownerDocument}function Sg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function nf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var af=null;function NN(){var e=window.event;return e&&e.type==="popstate"?e===af?!1:(af=e,!0):(af=null,!1)}var Cg=typeof setTimeout=="function"?setTimeout:void 0,SN=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,TN=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(CN)}:Cg;function CN(e){setTimeout(function(){throw e})}function Oi(e){return e==="head"}function Ag(e,n){var a=n,o=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(u),Ns(n);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Hr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Hr(a);for(var h=a.firstChild;h;){var y=h.nextSibling,w=h.nodeName;h[sr]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=y}}else a==="body"&&Hr(e.ownerDocument.body);a=u}while(a);Ns(n)}function Rg(e,n){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function sf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":sf(a),cu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function EN(e,n,a,o){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[sr])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=un(e.nextSibling),e===null)break}return null}function AN(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=un(e.nextSibling),e===null))return null;return e}function zg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=un(e.nextSibling),e===null))return null;return e}function rf(e){return e.data==="$?"||e.data==="$~"}function lf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function RN(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var o=function(){n(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function un(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==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var of=null;function Mg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return un(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function Og(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function Dg(e,n,a){switch(n=$o(a),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Hr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);cu(e)}var dn=new Map,_g=new Set;function Yo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var si=J.d;J.d={f:zN,r:MN,D:ON,C:DN,L:_N,m:kN,X:LN,S:UN,M:PN};function zN(){var e=si.f(),n=Vo();return e||n}function MN(e){var n=qa(e);n!==null&&n.tag===5&&n.type==="form"?Z0(n):si.r(e)}var vs=typeof document>"u"?null:document;function kg(e,n,a){var o=vs;if(o&&typeof n=="string"&&n){var u=nn(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),_g.has(u)||(_g.add(u),e={rel:e,crossOrigin:a,href:n},o.querySelector(u)===null&&(n=o.createElement("link"),vt(n,"link",e),ht(n),o.head.appendChild(n)))}}function ON(e){si.D(e),kg("dns-prefetch",e,null)}function DN(e,n){si.C(e,n),kg("preconnect",e,n)}function _N(e,n,a){si.L(e,n,a);var o=vs;if(o&&e&&n){var u='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+nn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+nn(a.imageSizes)+'"]')):u+='[href="'+nn(e)+'"]';var h=u;switch(n){case"style":h=js(e);break;case"script":h=ws(e)}dn.has(h)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),dn.set(h,e),o.querySelector(u)!==null||n==="style"&&o.querySelector(qr(h))||n==="script"&&o.querySelector(Fr(h))||(n=o.createElement("link"),vt(n,"link",e),ht(n),o.head.appendChild(n)))}}function kN(e,n){si.m(e,n);var a=vs;if(a&&e){var o=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+nn(o)+'"][href="'+nn(e)+'"]',h=u;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ws(e)}if(!dn.has(h)&&(e=b({rel:"modulepreload",href:e},n),dn.set(h,e),a.querySelector(u)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Fr(h)))return}o=a.createElement("link"),vt(o,"link",e),ht(o),a.head.appendChild(o)}}}function UN(e,n,a){si.S(e,n,a);var o=vs;if(o&&e){var u=Fa(o).hoistableStyles,h=js(e);n=n||"default";var y=u.get(h);if(!y){var w={loading:0,preload:null};if(y=o.querySelector(qr(h)))w.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=dn.get(h))&&cf(e,a);var R=y=o.createElement("link");ht(R),vt(R,"link",e),R._p=new Promise(function(V,$){R.onload=V,R.onerror=$}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ko(y,n,o)}y={type:"stylesheet",instance:y,count:1,state:w},u.set(h,y)}}}function LN(e,n){si.X(e,n);var a=vs;if(a&&e){var o=Fa(a).hoistableScripts,u=ws(e),h=o.get(u);h||(h=a.querySelector(Fr(u)),h||(e=b({src:e,async:!0},n),(n=dn.get(u))&&uf(e,n),h=a.createElement("script"),ht(h),vt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(u,h))}}function PN(e,n){si.M(e,n);var a=vs;if(a&&e){var o=Fa(a).hoistableScripts,u=ws(e),h=o.get(u);h||(h=a.querySelector(Fr(u)),h||(e=b({src:e,async:!0,type:"module"},n),(n=dn.get(u))&&uf(e,n),h=a.createElement("script"),ht(h),vt(h,"link",e),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},o.set(u,h))}}function Ug(e,n,a,o){var u=(u=de.current)?Yo(u):null;if(!u)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=js(a.href),a=Fa(u).hoistableStyles,o=a.get(n),o||(o={type:"style",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=js(a.href);var h=Fa(u).hoistableStyles,y=h.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,y),(h=u.querySelector(qr(e)))&&!h._p&&(y.instance=h,y.state.loading=5),dn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},dn.set(e,a),h||VN(u,e,a,y.state))),n&&o===null)throw Error(l(528,""));return y}if(n&&o!==null)throw Error(l(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=ws(a),a=Fa(u).hoistableScripts,o=a.get(n),o||(o={type:"script",instance:null,count:0,state:null},a.set(n,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function js(e){return'href="'+nn(e)+'"'}function qr(e){return'link[rel="stylesheet"]['+e+"]"}function Lg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function VN(e,n,a,o){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?o.loading=1:(n=e.createElement("link"),o.preload=n,n.addEventListener("load",function(){return o.loading|=1}),n.addEventListener("error",function(){return o.loading|=2}),vt(n,"link",a),ht(n),e.head.appendChild(n))}function ws(e){return'[src="'+nn(e)+'"]'}function Fr(e){return"script[async]"+e}function Pg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var o=e.querySelector('style[data-href~="'+nn(a.href)+'"]');if(o)return n.instance=o,ht(o),o;var u=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ht(o),vt(o,"style",u),Ko(o,a.precedence,e),n.instance=o;case"stylesheet":u=js(a.href);var h=e.querySelector(qr(u));if(h)return n.state.loading|=4,n.instance=h,ht(h),h;o=Lg(a),(u=dn.get(u))&&cf(o,u),h=(e.ownerDocument||e).createElement("link"),ht(h);var y=h;return y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),vt(h,"link",o),n.state.loading|=4,Ko(h,a.precedence,e),n.instance=h;case"script":return h=ws(a.src),(u=e.querySelector(Fr(h)))?(n.instance=u,ht(u),u):(o=a,(u=dn.get(h))&&(o=b({},a),uf(o,u)),e=e.ownerDocument||e,u=e.createElement("script"),ht(u),vt(u,"link",o),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(o=n.instance,n.state.loading|=4,Ko(o,a.precedence,e));return n.instance}function Ko(e,n,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=o.length?o[o.length-1]:null,h=u,y=0;y<o.length;y++){var w=o[y];if(w.dataset.precedence===n)h=w;else if(h!==u)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function cf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function uf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Xo=null;function Vg(e,n,a){if(Xo===null){var o=new Map,u=Xo=new Map;u.set(a,o)}else u=Xo,o=u.get(a),o||(o=new Map,u.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var h=a[u];if(!(h[sr]||h[xt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var y=h.getAttribute(n)||"";y=e+y;var w=o.get(y);w?w.push(h):o.set(y,[h])}}return o}function Bg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function BN(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Hg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function HN(e,n,a,o){if(a.type==="stylesheet"&&(typeof o.media!="str
49ing"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=js(o.href),h=n.querySelector(qr(u));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Zo.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=h,ht(h);return}h=n.ownerDocument||n,o=Lg(o),(u=dn.get(u))&&cf(o,u),h=h.createElement("link"),ht(h);var y=h;y._p=new Promise(function(w,R){y.onload=w,y.onerror=R}),vt(h,"link",o),a.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Zo.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var df=0;function qN(e,n){return e.stylesheets&&e.count===0&&Wo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&df===0&&(df=62500*wN());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wo(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>df?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(u)}}:null}function Zo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Jo=null;function Wo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Jo=new Map,n.forEac
vendor: 5,764 bytes, line 49
49h(FN,e),Jo=null,Zo.call(e))}function FN(e,n){if(!(n.state.loading&4)){var a=Jo.get(e);if(a)var o=a.get(null);else{a=new Map,Jo.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<u.length;h++){var y=u[h];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),o=y)}o&&a.set(null,o)}u=n.instance,y=u.getAttribute("data-precedence"),h=a.get(y)||o,h===o&&a.set(null,u),a.set(y,u),this.count++,o=Zo.bind(this),u.addEventListener("load",o),u.addEventListener("error",o),h?h.parentNode.insertBefore(u,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var Gr={$$typeof:O,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function GN(e,n,a,o,u,h,y,w,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(null),this.identifierPrefix=o,this.onUncaughtError=u,this.onCaughtError=h,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function qg(e,n,a,o,u,h,y,w,R,V,$,Z){return e=new GN(e,n,a,y,R,V,$,Z,w),n=1,h===!0&&(n|=24),h=Yt(3,null,null,n),e.current=h,h.stateNode=e,n=Fu(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:o,isDehydrated:a,cache:n},$u(h),e}function Fg(e){return e?(e=Wa,e):Wa}function Gg(e,n,a,o,u,h){u=Fg(u),o.context===null?o.context=u:o.pendingContext=u,o=ji(n),o.payload={element:a},h=h===void 0?null:h,h!==null&&(o.callback=h),a=wi(e,o,n),a!==null&&(Pt(a,e,n),wr(a,e,n))}function Ig(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function ff(e,n){Ig(e,n),(e=e.alternate)&&Ig(e,n)}function Qg(e){if(e.tag===13||e.tag===31){var n=sa(e,67108864);n!==null&&Pt(n,e,67108864),ff(e,67108864)}}function $g(e){if(e.tag===13||e.tag===31){var n=Wt();n=ru(n);var a=sa(e,n);a!==null&&Pt(a,e,n),ff(e,n)}}var ec=!0;function IN(e,n,a,o){var u=D.T;D.T=null;var h=J.p;try{J.p=2,hf(e,n,a,o)}finally{J.p=h,D.T=u}}function QN(e,n,a,o){var u=D.T;D.T=null;var h=J.p;try{J.p=8,hf(e,n,a,o)}finally{J.p=h,D.T=u}}function hf(e,n,a,o){if(ec){var u=mf(o);if(u===null)Jd(e,n,o,tc,a),Kg(e,o);else if(YN(u,e,n,a,o))o.stopPropagation();else if(Kg(e,o),n&4&&-1<$N.indexOf(e)){for(;u!==null;){var h=qa(u);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var y=ea(h.pendingLanes);if(y!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;y;){var R=1<<31-Qt(y);w.entanglements[1]|=R,y&=~R}Dn(h),(_e&6)===0&&(Lo=Gt()+500,Pr(0))}}break;case 31:case 13:w=sa(h,2),w!==null&&Pt(w,h,2),Vo(),ff(h,2)}if(h=mf(o),h===null&&Jd(e,n,o,tc,a),h===u)break;u=h}u!==null&&o.stopPropagation()}else Jd(e,n,o,null,a)}}function mf(e){return e=pu(e),pf(e)}var tc=null;function pf(e){if(tc=null,e=Ha(e),e!==null){var n=d(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=f(n),e!==null)return e;e=null}else if(a===31){if(e=m(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return tc=e,null}function Yg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(O2()){case np:return 2;case ip:return 8;case Fl:case D2:return 32;case ap:return 268435456;default:return 32}default:return 32}}var xf=!1,Di=null,_i=null,ki=null,Ir=new Map,Qr=new Map,Ui=[],$N="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Kg(e,n){switch(e){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":_i=null;break;case"mouseover":case"mouseout":ki=null;break;case"pointerover":case"pointerout":Ir.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qr.delete(n.pointerId)}}function $r(e,n,a,o,u,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:a,eventSystemFlags:o,nativeEvent:h,targetContainers:[u]},n!==null&&(n=qa(n),n!==null&&Qg(n)),e):(e.eventSystemFlags|=o,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function YN(e,n,a,o,u){switch(n){case"focusin":return Di=$r(Di,e,
vendor: 1,077 bytes, line 49
49n,a,o,u),!0;case"dragenter":return _i=$r(_i,e,n,a,o,u),!0;case"mouseover":return ki=$r(ki,e,n,a,o,u),!0;case"pointerover":var h=u.pointerId;return Ir.set(h,$r(Ir.get(h)||null,e,n,a,o,u)),!0;case"gotpointercapture":return h=u.pointerId,Qr.set(h,$r(Qr.get(h)||null,e,n,a,o,u)),!0}return!1}function Xg(e){var n=Ha(e.target);if(n!==null){var a=d(n);if(a!==null){if(n=a.tag,n===13){if(n=f(a),n!==null){e.blockedOn=n,up(e.priority,function(){$g(a)});return}}else if(n===31){if(n=m(a),n!==null){e.blockedOn=n,up(e.priority,function(){$g(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=mf(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);mu=o,a.target.dispatchEvent(o),mu=null}else return n=qa(a),n!==null&&Qg(n),e.blockedOn=a,!1;n.shift()}return!0}function Zg(e,n,a){nc(e)&&a.delete(n)}function KN(){xf=!1,Di!==null&&nc(Di)&&(Di=null),_i!==null&&nc(_i)&&
vendor: 4,171 bytes, line 49
49(_i=null),ki!==null&&nc(ki)&&(ki=null),Ir.forEach(Zg),Qr.forEach(Zg)}function ic(e,n){e.blockedOn===n&&(e.blockedOn=null,xf||(xf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,KN)))}var ac=null;function Jg(e){ac!==e&&(ac=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ac===e&&(ac=null);for(var n=0;n<e.length;n+=3){var a=e[n],o=e[n+1],u=e[n+2];if(typeof o!="function"){if(pf(o||a)===null)continue;break}var h=qa(a);h!==null&&(e.splice(n,3),n-=3,hd(h,{pending:!0,data:u,method:a.method,action:o},o,u))}}))}function Ns(e){function n(R){return ic(R,e)}Di!==null&&ic(Di,e),_i!==null&&ic(_i,e),ki!==null&&ic(ki,e),Ir.forEach(n),Qr.forEach(n);for(var a=0;a<Ui.length;a++){var o=Ui[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ui.length&&(a=Ui[0],a.blockedOn===null);)Xg(a),a.blockedOn===null&&Ui.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],y=u[Ot]||null;if(typeof h=="function")y||Jg(a);else if(y){var w=null;if(h&&h.hasAttribute("formAction")){if(u=h,y=h[Ot]||null)w=y.formAction;else if(pf(u)!==null)continue}else w=y.action;typeof w=="function"?a[o+1]=w:(a.splice(o,3),o-=3),Jg(a)}}}function Wg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function gf(e){this._internalRoot=e}sc.prototype.render=gf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var a=n.current,o=Wt();Gg(a,o,e,n,null,null)},sc.prototype.unmount=gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Gg(e.current,2,null,e,null,null),Vo(),n[Ba]=null}};function sc(e){this._internalRoot=e}sc.prototype.unstable_scheduleHydration=function(e){if(e){var n=cp();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ui.length&&n!==0&&n<Ui[a].priority;a++);Ui.splice(a,0,e),a===0&&Xg(e)}};var ey=i.version;if(ey!=="19.2.4")throw Error(l(527,ey,"19.2.4"));J.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=x(n),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var XN={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{nr=rc.inject(XN),It=rc}catch{}}return Kr.createRoot=function(e,n){if(!c(e))throw Error(l(299));var a=!1,o="",u=lx,h=ox,y=cx;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError)),n=qg(e,1,!1,null,null,a,o,null,u,h,y,Wg),e[Ba]=n.current,Zd(e),new gf(n)},Kr.hydrateRoot=function(e,n,a){if(!c(e))throw Error(l(299));var o=!1,u="",h=lx,y=ox,w=cx,R=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(w=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),n=qg(e,1,!0,n,a??null,o,u,R,h,y,w,Wg),n.context=Fg(null),a=n.current,o=Wt(),o=ru(o),u=ji(o),u.callback=null,wi(a,u,o),a=o,n.current.lanes=a,ar(n,a),Dn(n),e[Ba]=n.current,Zd(e),new sc(n)}
49,Kr.version="19.2.4",Kr}var dy;function oS(){if(dy)return jf.exports;dy=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(i){console.error(i)}}return t(),jf.exports=lS(),jf.exports}var cS=oS(),Tf,fy;function uS(){if(fy)return Tf;fy=1;var t=typeof Element<"u",i=typeof Map=="function",s=typeof Set=="function",l=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(d,f){if(d===f)return!0;if(d&&f&&typeof d=="object"&&typeof f=="object"){if(d.constructor!==f.constructor)return!1;var m,p,x;if(Array.isArray(d)){if(m=d.length,m!=f.length)return!1;for(p=m;p--!==0;)if(!c(d[p],f[p]))return!1;return!0}var g;if(i&&d instanceof Map&&f instanceof Map){if(d.size!==f.size)return!1;for(g=d.entries();!(p=g.next()).done;)if(!f.has(p.value[0]))return!1;for(g=d.entries();!(p=g.next()).done;)if(!c(p.value[1],f.get(p.value[0])))return!1;return!0}if(s&&d instanceof Set&&f instanceof Set){if(d.size!==f.size)return!1;for(g=d.entries();!(p=g.next()).done;)if(!f.has(p.value[0]))return!1;return!0}if(l&&ArrayBuffer.isView(d)&&ArrayBuffer.isView(f)){if(m=d.length,m!=f.length)return!1;for(p=m;p--!==0;)if(d[p]!==f[p])return!1;return!0}if(d.constructor===RegExp)return d.source===f.source&&d.flags===f.flags;if(d.valueOf!==Object.prototype.valueOf&&typeof d.valueOf=="function"&&typeof f.valueOf=="function")return d.valueOf()===f.valueOf();if(d.toString!==Object.prototype.toString&&typeof d.toString=="function"&&typeof f.toString=="function")return d.toString()===f.toString();if(x=Object.keys(d),m=x.length,m!==Object.keys(f).length)return!1;for(p=m;p--!==0;)if(!Object.prototype.hasOwnProperty.call(f,x[p]))return!1;if(t&&d instanceof Element)return!1;for(p=m;p--!==0;)if(!((x[p]==="_owner"||x[p]==="__v"||x[p]==="__o")&&d.$$typeof)&&!c(d[x[p]],f[x[p]]))return!1;return!0}return d!==d&&f!==f}return Tf=function(f,m){try{return c(f,m)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},Tf}var dS=uS();const fS=Vc(dS);var Cf,hy;function hS(){if(hy)return Cf;hy=1;var t=function(i,s,l,c,d,f,m,p){if(!i){var x;if(s===void 0)x=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[l,c,d,f,m,p],b=0;x=new Error(s.replace(/%s/g,function(){return g[b++]})),x.name="Invariant Violation"}throw x.framesToPop=1,x}};return Cf=t,Cf}var mS=hS();const my=Vc(mS);var Ef,py;function pS(){return py||(py=1,Ef=function(i,s,l,c){var d=l?l.call(c,i,s):void 0;if(d!==void 0)return!!d;if(i===s)return!0;if(typeof i!="object"||!i||typeof s!="object"||!s)return!1;var f=Object.keys(i),m=Object.keys(s);if(f.length!==m.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(s),x=0;x<f.length;x++){var g=f[x];if(!p(g))return!1;var b=i[g],v=s[g];if(d=l?l.call(c,b,v,g):void 0,d===!1||d===void 0&&b!==v)return!1}return!0}),Ef}var xS=pS();const gS=Vc(xS);var kv=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(kv||{}),Af={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xy=Object.values(kv),Bc={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Uv=Object.entries(Bc).reduce((t,[i,s])=>(t[s]=i,t),{}),En="data-rh",zs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ms=(t,i)=>{for(let s=t.length-1;s>=0;s-=1){const l=t[s];if(Object.prototype.hasOwnProperty.call(l,i))return l[i]}return null},yS=t=>{let i=Ms(t,"title");const s=Ms(t,zs.TITLE_TEMPLATE);if(Array.isArray(i)&&(i=i.join("")),s&&i)return s.replace(/%s/g,()=>i);const l=Ms(t,zs.DEFAULT_TITLE);return i||l||void 0},bS=t=>Ms(t,zs.ON_CHANGE_CLIENT_STATE)||(()=>{}),Rf=(t,i)=>i.filter(s=>typeof s[t]<"u").map(s=>s[t]).reduce((s,l)=>({...s,...l}),{}),vS=(t,i)=>i.filter(s=>typeof s.base<"u").map(s=>s.base).reverse().reduce((s,l)=>{if(!s.length){const c=Object.keys(l);for(let d=0;d<c.length;d+=1){const m=c[d].toLowerCase();if(t.indexOf(m)!==-1&&l[m])return s.concat(l)}}return s},[]),jS=t=>console&&typeof console.warn=="function"&&console.warn(t),Xr=(t,i,s)=>{const l={};return s.filter(c=>Array.isArray(c[t])?!0:(typeof c[t]<"u"&&jS(`Helmet: ${t} should be of type "Array". Instead found type "${typeof c[t]}"`),!1)).map(c=>c[t]).reverse().reduce((c,d)=>{const f={};d.filter(p=>{let x;const g=Object.keys(p);for(let v=0;v<g.length;v+=1){const S=g[v],j=S.toLowerCase();i.indexOf(j)!==-1&&!(x==="rel"&&p[x].toLowerCase()==="canonical")&&!(j==="rel"&&p[j].toLowerCase()==="stylesheet")&&(x=j),i.indexOf(S)!==-1&&(S==="innerHTML"||S==="cssText"||S==="itemprop")&&(x=S)}if(!x||!p[x])return!1;const b=p[x].toLowerCase();return l[x]||(l[x]={}),f[x]||(f[x]={}),l[x][b]?!1:(f[x][b]=!0,!0)}
49).reverse().forEach(p=>c.push(p));const m=Object.keys(f);for(let p=0;p<m.length;p+=1){const x=m[p],g={...l[x],...f[x]};l[x]=g}return c},[]).reverse()},wS=(t,i)=>{if(Array.isArray(t)&&t.length){for(let s=0;s<t.length;s+=1)if(t[s][i])return!0}return!1},NS=t=>({baseTag:vS(["href"],t),bodyAttributes:Rf("bodyAttributes",t),defer:Ms(t,zs.DEFER),encode:Ms(t,zs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Rf("htmlAttributes",t),linkTags:Xr("link",["rel","href"],t),metaTags:Xr("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:Xr("noscript",["innerHTML"],t),onChangeClientState:bS(t),scriptTags:Xr("script",["src","innerHTML"],t),styleTags:Xr("style",["cssText"],t),title:yS(t),titleAttributes:Rf("titleAttributes",t),prioritizeSeoTags:wS(t,zs.PRIORITIZE_SEO_TAGS)}),Lv=t=>Array.isArray(t)?t.join(""):t,SS=(t,i)=>{const s=Object.keys(t);for(let l=0;l<s.length;l+=1)if(i[s[l]]&&i[s[l]].includes(t[s[l]]))return!0;return!1},zf=(t,i)=>Array.isArray(t)?t.reduce((s,l)=>(SS(l,i)?s.priority.push(l):s.default.push(l),s),{priority:[],default:[]}):{default:t,priority:[]},gy=(t,i)=>({...t,[i]:void 0}),TS=["noscript","script","style"],ih=(t,i=!0)=>i===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),Pv=t=>Object.keys(t).reduce((i,s)=>{const l=typeof t[s]<"u"?`${s}="${t[s]}"`:`${s}`;return i?`${i} ${l}`:l},""),CS=(t,i,s,l)=>{const c=Pv(s),d=Lv(i);return c?`<${t} ${En}="true" ${c}>${ih(d,l)}</${t}>`:`<${t} ${En}="true">${ih(d,l)}</${t}>`},ES=(t,i,s=!0)=>i.reduce((l,c)=>{const d=c,f=Object.keys(d).filter(x=>!(x==="innerHTML"||x==="cssText")).reduce((x,g)=>{const b=typeof d[g]>"u"?g:`${g}="${ih(d[g],s)}"`;return x?`${x} ${b}`:b},""),m=d.innerHTML||d.cssText||"",p=TS.indexOf(t)===-1;return`${l}<${t} ${En}="true" ${f}${p?"/>":`>${m}</${t}>`}`},""),Vv=(t,i={})=>Object.keys(t).reduce((s,l)=>{const c=Bc[l];return s[c||l]=t[l],s},i),AS=(t,i,s)=>{const l={key:i,[En]:!0},c=Vv(s,l);return[at.createElement("title",c,i)]},gc=(t,i)=>i.map((s,l)=>{const c={key:l,[En]:!0};return Object.keys(s).forEach(d=>{const m=Bc[d]||d;if(m==="innerHTML"||m==="cssText"){const p=s.innerHTML||s.cssText;c.dangerouslySetInnerHTML={__html:p}}else c[m]=s[d]}),at.createElement(t,c)}),pn=(t,i,s=!0)=>{switch(t){case"title":return{toComponent:()=>AS(t,i.title,i.titleAttributes),toString:()=>CS(t,i.title,i.titleAttributes,s)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Vv(i),toString:()=>Pv(i)};default:return{toComponent:()=>gc(t,i),toString:()=>ES(t,i,s)}}},RS=({metaTags:t,linkTags:i,scriptTags:s,encode:l})=>{const c=zf(t,Af.meta),d=zf(i,Af.link),f=zf(s,Af.script);return{priorityMethods:{toComponent:()=>[...gc("meta",c.priority),...gc("link",d.priority),...gc("script",f.priority)],toString:()=>`${pn("meta",c.priority,l)} ${pn("link",d.priority,l)} ${pn("script",f.priority,l)}`},metaTags:c.default,linkTags:d.default,scriptTags:f.default}},zS=t=>{const{baseTag:i,bodyAttributes:s,encode:l=!0,htmlAttributes:c,noscriptTags:d,styleTags:f,title:m="",titleAttributes:p,prioritizeSeoTags:x}=t;let{linkTags:g,metaTags:b,scriptTags:v}=t,S={toComponent:()=>[],toString:()=>""};return x&&({priorityMethods:S,linkTags:g,metaTags:b,scriptTags:v}=RS(t)),{priority:S,base:pn("base",i,l),bodyAttributes:pn("bodyAttributes",s,l),htmlAttributes:pn("htmlAttributes",c,l),link:pn("link",g,l),meta:pn("meta",b,l),noscript:pn("noscript",d,l),script:pn("script",v,l),style:pn("style",f,l),title:pn("title",{title:m,titleAttributes:p},l)}},ah=zS,oc=[],em=!!(typeof window<"u"&&window.document&&window.document.createElement),sh=class{constructor(t,i){ri(this,"instances",[]);ri(this,"canUseDOM",em);ri(this,"context");ri(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?oc:this.instances,add:t=>{(this.canUseDOM?oc:this.instances).push(t)},remove:t=>{const i=(this.canUseDOM?oc:this.instances).indexOf(t);(this.canUseDOM?oc:this.instances).splice(i,1)}}});this.context=t,this.canUseDOM=i||!1,i||(t.helmet=ah({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},MS=parseInt(at.version.split(".")[0],10),rh=MS>=19,OS={},Bv=at.createContext(OS),Ta,Hv=(Ta=class extends N.Component{constructor(s){super(s);ri(this,"helmetData");rh?this.helmetData=null:this.helmetData=new sh(this.props.context||{},Ta.canUseDOM)}render(){return rh?at.createElement(at.Fragment,null,this.props.children):at.createElement(Bv.Provider,{value:this.helmetData.value},this.props.children)}},ri(Ta,"canUseDOM",em),Ta),Ss=(t,i)=>{const s=document.head||document.querySelector("head"),l=s.querySelectorAll(`${t}[${En}]`),c=[].slice.call(l),d=[];let f;
49return i&&i.length&&i.forEach(m=>{const p=document.createElement(t);for(const x in m)if(Object.prototype.hasOwnProperty.call(m,x))if(x==="innerHTML")p.innerHTML=m.innerHTML;else if(x==="cssText"){const g=m.cssText;p.appendChild(document.createTextNode(g))}else{const g=x,b=typeof m[g]>"u"?"":m[g];p.setAttribute(x,b)}p.setAttribute(En,"true"),c.some((x,g)=>(f=g,p.isEqualNode(x)))?c.splice(f,1):d.push(p)}),c.forEach(m=>{var p;return(p=m.parentNode)==null?void 0:p.removeChild(m)}),d.forEach(m=>s.appendChild(m)),{oldTags:c,newTags:d}},lh=(t,i)=>{const s=document.getElementsByTagName(t)[0];if(!s)return;const l=s.getAttribute(En),c=l?l.split(","):[],d=[...c],f=Object.keys(i);for(const m of f){const p=i[m]||"";s.getAttribute(m)!==p&&s.setAttribute(m,p),c.indexOf(m)===-1&&c.push(m);const x=d.indexOf(m);x!==-1&&d.splice(x,1)}for(let m=d.length-1;m>=0;m-=1)s.removeAttribute(d[m]);c.length===d.length?s.removeAttribute(En):s.getAttribute(En)!==f.join(",")&&s.setAttribute(En,f.join(","))},DS=(t,i)=>{typeof t<"u"&&document.title!==t&&(document.title=Lv(t)),lh("title",i)},yy=(t,i)=>{const{baseTag:s,bodyAttributes:l,htmlAttributes:c,linkTags:d,metaTags:f,noscriptTags:m,onChangeClientState:p,scriptTags:x,styleTags:g,title:b,titleAttributes:v}=t;lh("body",l),lh("html",c),DS(b,v);const S={baseTag:Ss("base",s),linkTags:Ss("link",d),metaTags:Ss("meta",f),noscriptTags:Ss("noscript",m),scriptTags:Ss("script",x),styleTags:Ss("style",g)},j={},C={};Object.keys(S).forEach(E=>{const{newTags:T,oldTags:_}=S[E];T.length&&(j[E]=T),_.length&&(C[E]=S[E].oldTags)}),i&&i(),p(t,j,C)},Zr=null,_S=t=>{Zr&&cancelAnimationFrame(Zr),t.defer?Zr=requestAnimationFrame(()=>{yy(t,()=>{Zr=null})}):(yy(t),Zr=null)},kS=_S,by=class extends N.Component{constructor(){super(...arguments);ri(this,"rendered",!1)}shouldComponentUpdate(i){return!gS(i,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:i}=this.props.context;i.remove(this),this.emitChange()}emitChange(){const{helmetInstances:i,setHelmet:s}=this.props.context;let l=null;const c=NS(i.get().map(d=>{const{context:f,...m}=d.props;return m}));Hv.canUseDOM?kS(c):ah&&(l=ah(c)),s(l)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:i}=this.props.context;i.add(this),this.emitChange()}render(){return this.init(),null}},yc=[],vy=t=>{const i={};for(const s of Object.keys(t))i[Uv[s]||s]=t[s];return i},ya=t=>{const i={};for(const s of Object.keys(t)){const l=Bc[s];i[l||s]=t[s]}return i},jy=(t,i)=>{if(!em)return;const s=document.getElementsByTagName(t)[0];if(!s)return;const l="data-rh-managed",c=s.getAttribute(l),d=c?c.split(","):[],f=Object.keys(i);for(const m of d)f.includes(m)||s.removeAttribute(m);for(const m of f){const p=i[m];p==null||p===!1?s.removeAttribute(m):p===!0?s.setAttribute(m,""):s.setAttribute(m,String(p))}f.length>0?s.setAttribute(l,f.join(",")):s.removeAttribute(l)},Mf=()=>{const t={},i={};for(const s of yc){const{htmlAttributes:l,bodyAttributes:c}=s.props;l&&Object.assign(t,vy(l)),c&&Object.assign(i,vy(c))}jy("html",t),jy("body",i)},US=class extends N.Component{componentDidMount(){yc.push(this),Mf()}componentDidUpdate(){Mf()}componentWillUnmount(){const t=yc.indexOf(this);t!==-1&&yc.splice(t,1),Mf()}resolveTitle(){const{title:t,titleTemplate:i,defaultTitle:s}=this.props;return t&&i?i.replace(/%s/g,()=>Array.isArray(t)?t.join(""):t):t||s||void 0}renderTitle(){const t=this.resolveTitle();if(t===void 0)return null;const i=this.props.titleAttributes||{};return at.createElement("title",ya(i),t)}renderBase(){const{base:t}=this.props;return t?at.createElement("base",ya(t)):null}renderMeta(){const{meta:t}=this.props;return!t||!Array.isArray(t)?null:t.map((i,s)=>at.createElement("meta",{key:s,...ya(i)}))}renderLink(){const{link:t}=this.props;return!t||!Array.isArray(t)?null:t.map((i,s)=>at.createElement("link",{key:s,...ya(i)}))}renderScript(){const{script:t}=this.props;return!t||!Array.isArray(t)?null:t.map((i,s)=>{const{innerHTML:l,...c}=i,d=ya(c);return l&&(d.dangerouslySetInnerHTML={__html:l}),at.createElement("script",{key:s,...d})})}renderStyle(){const{style:t}=this.props;return!t||!Array.isArray(t)?null:t.map((i,s)=>{const{cssText:l,...c}=i,d=ya(c);return l&&(d.dangerouslySetInnerHTML={__html:l}),at.createElement("style",{key:s,...d})})}renderNoscript(){const{noscript:t}=this.props;return!t||!Array.isArray(t)?null:t.map((i,s)=>{const{innerHTML:l,...c}=i,d=ya(c);return l&&(d.dangerouslySetInnerHTML={__html:l}),at.createElement("noscript",{key:s,...d})})}render(){return at.createElement(at.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},nh,st=(nh=class extends N.Component{shouldComponentUpdate(t){return!fS(gy(this.props,"helmetData"),gy(t,"helmetData"))}mapNestedChildrenToProps(t,i){if(!i)return null;switch(t.type){case"script":case"noscript":return{innerHTML:i};case"style":return{cssText:i};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,i,s,l){return{...i,[t.type]:[...i[t.type]||[],{...s,...this.mapNestedChildrenToProps(t,l)}]}}mapObjectTypeChildren(t,i,s,l){switch(t.type){case"title":return{...i,[t.type]:l,titleAttributes:{...s}};case"body":return{...i,bodyAttributes:{...s}};case"html":return{...i,htmlAttributes:{...s}};default:return{...i,[t.type]:{...s}}}}mapArrayTypeChildrenToProps(t,i){let s={...i};return Object.keys(t).forEach(l=>{s={...s,[l]:t[l]}}),s}
49warnOnInvalidChildren(t,i){return my(xy.some(s=>t.type===s),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xy.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),my(!i||typeof i=="string"||Array.isArray(i)&&!i.some(s=>typeof s!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,i){let s={};return at.Children.forEach(t,l=>{if(!l||!l.props)return;const{children:c,...d}=l.props,f=Object.keys(d).reduce((p,x)=>(p[Uv[x]||x]=d[x],p),{});let{type:m}=l;switch(typeof m=="symbol"?m=m.toString():this.warnOnInvalidChildren(l,c),m){case"Symbol(react.fragment)":i=this.mapChildrenToProps(c,i);break;case"link":case"meta":case"noscript":case"script":case"style":s=this.flattenArrayTypeChildren(l,s,f,c);break;default:i=this.mapObjectTypeChildren(l,i,f,c);break}}),this.mapArrayTypeChildrenToProps(s,i)}render(){const{children:t,...i}=this.props;let s={...i},{helmetData:l}=i;if(t&&(s=this.mapChildrenToProps(t,s)),l&&!(l instanceof sh)){const c=l;l=new sh(c.context,!0),delete s.helmetData}return rh?at.createElement(US,{...s}):l?at.createElement(by,{...s,context:l.value}):at.createElement(Bv.Consumer,null,c=>at.createElement(by,{...s,context:c}))}},ri(nh,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),nh);/**
50 * react-router v7.13.1
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */var wy="popstate";function Ny(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function LS(t={}){function i(l,c){var x;let d=(x=c.state)==null?void 0:x.masked,{pathname:f,search:m,hash:p}=d||l.location;return oh("",{pathname:f,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default",d?{pathname:l.location.pathname,search:l.location.search,hash:l.location.hash}:void 0)}function s(l,c){return typeof c=="string"?c:dl(c)}return VS(i,s,null,t)}function Ye(t,i){if(t===!1||t===null||typeof t>"u")throw new Error(i)}function An(t,i){if(!t){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function PS(){return Math.random().toString(36).substring(2,10)}function Sy(t,i){return{usr:t.state,key:t.key,idx:i,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function oh(t,i,s=null,l,c){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof i=="string"?Ks(i):i,state:s,key:i&&i.key||l||PS(),unstable_mask:c}}function dl({pathname:t="/",search:i="",hash:s=""}){return i&&i!=="?"&&(t+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(t+=s.charAt(0)==="#"?s:"#"+s),t}function Ks(t){let i={};if(t){let s=t.indexOf("#");s>=0&&(i.hash=t.substring(s),t=t.substring(0,s));let l=t.indexOf("?");l>=0&&(i.search=t.substring(l),t=t.substring(0,l)),t&&(i.pathname=t)}return i}function VS(t,i,s,l={}){let{window:c=document.defaultView,v5Compat:d=!1}=l,f=c.history,m="POP",p=null,x=g();x==null&&(x=0,f.replaceState({...f.state,idx:x},""));function g(){return(f.state||{idx:null}).idx}function b(){m="POP";let E=g(),T=E==null?null:E-x;x=E,p&&p({action:m,location:C.location,delta:T})}function v(E,T){m="PUSH";let _=Ny(E)?E:oh(C.location,E,T);x=g()+1;let O=Sy(_,x),U=C.createHref(_.unstable_mask||_);try{f.pushState(O,"",U)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;c.location.assign(U)}d&&p&&p({action:m,location:C.location,delta:1})}function S(E,T){m="REPLACE";let _=Ny(E)?E:oh(C.location,E,T);x=g();let O=Sy(_,x),U=C.createHref(_.unstable_mask||_);f.replaceState(O,"",U),d&&p&&p({action:m,location:C.location,delta:0})}function j(E){return BS(E)}let C={get action(){return m},get location(){return t(c,f)},listen(E){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(wy,b),p=E,()=>{c.removeEventListener(wy,b),p=null}},createHref(E){return i(c,E)},createURL:j,encodeLocation(E){let T=j(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:S,go(E){return f.go(E)}};return C}function BS(t,i=!1){let s="http://localhost";
58typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(s,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:dl(t);return l=l.replace(/ $/,"%20"),!i&&l.startsWith("//")&&(l=s+l),new URL(l,s)}function qv(t,i,s="/"){return HS(t,i,s,!1)}function HS(t,i,s,l){let c=typeof i=="string"?Ks(i):i,d=ui(c.pathname||"/",s);if(d==null)return null;let f=Fv(t);qS(f);let m=null;for(let p=0;m==null&&p<f.length;++p){let x=WS(d);m=ZS(f[p],x,l)}return m}function Fv(t,i=[],s=[],l="",c=!1){let d=(f,m,p=c,x)=>{let g={relativePath:x===void 0?f.path||"":x,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(l)&&p)return;Ye(g.relativePath.startsWith(l),`Absolute route path "${g.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(l.length)}let b=Ln([l,g.relativePath]),v=s.concat(g);f.children&&f.children.length>0&&(Ye(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Fv(f.children,i,v,b,p)),!(f.path==null&&!f.index)&&i.push({path:b,score:KS(b,f.index),routesMeta:v})};return t.forEach((f,m)=>{var p;if(f.path===""||!((p=f.path)!=null&&p.includes("?")))d(f,m);else for(let x of Gv(f.path))d(f,m,!0,x)}),i}function Gv(t){let i=t.split("/");if(i.length===0)return[];let[s,...l]=i,c=s.endsWith("?"),d=s.replace(/\?$/,"");if(l.length===0)return c?[d,""]:[d];let f=Gv(l.join("/")),m=[];return m.push(...f.map(p=>p===""?d:[d,p].join("/"))),c&&m.push(...f),m.map(p=>t.startsWith("/")&&p===""?"/":p)}function qS(t){t.sort((i,s)=>i.score!==s.score?s.score-i.score:XS(i.routesMeta.map(l=>l.childrenIndex),s.routesMeta.map(l=>l.childrenIndex)))}var FS=/^:[\w-]+$/,GS=3,IS=2,QS=1,$S=10,YS=-2,Ty=t=>t==="*";function KS(t,i){let s=t.split("/"),l=s.length;return s.some(Ty)&&(l+=YS),i&&(l+=IS),s.filter(c=>!Ty(c)).reduce((c,d)=>c+(FS.test(d)?GS:d===""?QS:$S),l)}function XS(t,i){return t.length===i.length&&t.slice(0,-1).every((l,c)=>l===i[c])?t[t.length-1]-i[i.length-1]:0}function ZS(t,i,s=!1){let{routesMeta:l}=t,c={},d="/",f=[];for(let m=0;m<l.length;++m){let p=l[m],x=m===l.length-1,g=d==="/"?i:i.slice(d.length)||"/",b=Rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:x},g),v=p.route;if(!b&&x&&s&&!l[l.length-1].route.index&&(b=Rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},g)),!b)return null;
58Object.assign(c,b.params),f.push({params:c,pathname:Ln([d,b.pathname]),pathnameBase:iT(Ln([d,b.pathnameBase])),route:v}),b.pathnameBase!=="/"&&(d=Ln([d,b.pathnameBase]))}return f}function Rc(t,i){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[s,l]=JS(t.path,t.caseSensitive,t.end),c=i.match(s);if(!c)return null;let d=c[0],f=d.replace(/(.)\/+$/,"$1"),m=c.slice(1);return{params:l.reduce((x,{paramName:g,isOptional:b},v)=>{if(g==="*"){let j=m[v]||"";f=d.slice(0,d.length-j.length).replace(/(.)\/+$/,"$1")}const S=m[v];return b&&!S?x[g]=void 0:x[g]=(S||"").replace(/%2F/g,"/"),x},{}),pathname:d,pathnameBase:f,pattern:t}}function JS(t,i=!1,s=!0){An(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 l=[],c="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,m,p,x,g)=>{if(l.push({paramName:m,isOptional:p!=null}),p){let b=g.charAt(x+f.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(l.push({paramName:"*"}),c+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":t!==""&&t!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),l]}function WS(t){try{return t.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return An(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),t}}function ui(t,i){if(i==="/")return t;if(!t.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,l=t.charAt(s);return l&&l!=="/"?null:t.slice(s)||"/"}var eT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function tT(t,i="/"){let{pathname:s,search:l="",hash:c=""}=typeof t=="string"?Ks(t):t,d;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?d=Cy(s.substring(1),"/"):d=Cy(s,i)):d=i,{pathname:d,search:aT(l),hash:sT(c)}}function Cy(t,i){let s=i.replace(/\/+$/,"").split("/");return t.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Of(t,i,s,l){return`Cannot include a '${t}' character in a manually specified \`to.${i}\` field [${JSON.stringify(l)}].  Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function nT(t){return t.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Iv(t){let i=nT(t);return i.map((s,l)=>l===i.length-1?s.pathname:s.pathnameBase)}function tm(t,i,s,l=!1){let c;typeof t=="string"?c=Ks(t):(c={...t},Ye(!c.pathname||!c.pathname.includes("?"),Of("?","pathname","search",c)),Ye(!c.pathname||!c.pathname.includes("#"),Of("#","pathname","hash",c)),Ye(!c.search||!c.search.includes("#"),Of("#","search","hash",c)));let d=t===""||c.pathname==="",f=d?"/":c.pathname,m;if(f==null)m=s;else{let b=i.length-1;if(!l&&f.startsWith("..")){let v=f.split("/");for(;v[0]==="..";)v.shift(),b-=1;c.pathname=v.join("/")}m=b>=0?i[b]:"/"}let p=tT(c,m),x=f&&f!=="/"&&f.endsWith("/"),g=(d||f===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(x||g)&&(p.pathname+="/"),p}var Ln=t=>t.join("/").replace(/\/\/+/g,"/"),iT=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),aT=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,sT=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,rT=class{constructor(t,i,s,l=!1){this.status=t,this.statusText=i||"",this.internal=l,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function lT(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function oT(t){return t.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Qv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $v(t,i){let s=t;
58if(typeof s!="string"||!eT.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let l=s,c=!1;if(Qv)try{let d=new URL(window.location.href),f=s.startsWith("//")?new URL(d.protocol+s):new URL(s),m=ui(f.pathname,i);f.origin===d.origin&&m!=null?s=m+f.search+f.hash:c=!0}catch{An(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:l,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Yv=["POST","PUT","PATCH","DELETE"];new Set(Yv);var cT=["GET",...Yv];new Set(cT);var Xs=N.createContext(null);Xs.displayName="DataRouter";var Hc=N.createContext(null);Hc.displayName="DataRouterState";var uT=N.createContext(!1),Kv=N.createContext({isTransitioning:!1});Kv.displayName="ViewTransition";var dT=N.createContext(new Map);dT.displayName="Fetchers";var fT=N.createContext(null);fT.displayName="Await";var vn=N.createContext(null);vn.displayName="Navigation";var Al=N.createContext(null);Al.displayName="Location";var Bn=N.createContext({outlet:null,matches:[],isDataRoute:!1});Bn.displayName="Route";var nm=N.createContext(null);nm.displayName="RouteError";var Xv="REACT_ROUTER_ERROR",hT="REDIRECT",mT="ROUTE_ERROR_RESPONSE";function pT(t){if(t.startsWith(`${Xv}:${hT}:{`))try{let i=JSON.parse(t.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function xT(t){if(t.startsWith(`${Xv}:${mT}:{`))try{let i=JSON.parse(t.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new rT(i.status,i.statusText,i.data)}catch{}}function gT(t,{relative:i}={}){Ye(Rl(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:l}=N.useContext(vn),{hash:c,pathname:d,search:f}=zl(t,{relative:i}),m=d;return s!=="/"&&(m=d==="/"?s:Ln([s,d])),l.createHref({pathname:m,search:f,hash:c})}function Rl(){return N.useContext(Al)!=null}function Hn(){return Ye(Rl(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(Al).location}var Zv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jv(t){N.useContext(vn).static||N.useLayoutEffect(t)}function Mt(){let{isDataRoute:t}=N.useContext(Bn);return t?zT():yT()}function yT(){Ye(Rl(),"useNavigate() may be used only in the context of a <Router> component.");let t=N.useContext(Xs),{basename:i,navigator:s}=N.useContext(vn),{matches:l}=N.useContext(Bn),{pathname:c}=Hn(),d=JSON.stringify(Iv(l)),f=N.useRef(!1);return Jv(()=>{f.current=!0}),N.useCallback((p,x={})=>{if(An(f.current,Zv),!f.current)return;if(typeof p=="number"){s.go(p);return}let g=tm(p,JSON.parse(d),c,x.relative==="path");t==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:Ln([i,g.pathname])),(x.replace?s.replace:s.push)(g,x.state,x)},[i,s,d,c,t])}N.createContext(null);function im(){let{matches:t}=N.useContext(Bn),i=t[t.length-1];return i?i.params:{}}function zl(t,{relative:i}={}){let{matches:s}=N.useContext(Bn),{pathname:l}=Hn(),c=JSON.stringify(Iv(s));return N.useMemo(()=>tm(t,JSON.parse(c),l,i==="path"),[t,c,l,i])}function bT(t,i){return Wv(t,i)}function Wv(t,i,s){var E;Ye(Rl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=N.useContext(vn),{matches:c}=N.useContext(Bn),d=c[c.length-1],f=d?d.params:{},m=d?d.pathname:"/",p=d?d.pathnameBase:"/",x=d&&d.route;{let T=x&&x.path||"";t1(m,!x||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
60Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let g=Hn(),b;if(i){let T=typeof i=="string"?Ks(i):i;Ye(p==="/"||((E=T.pathname)==null?void 0:E.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${T.pathname}" was given in the \`location\` prop.`),b=T}else b=g;let v=b.pathname||"/",S=v;if(p!=="/"){let T=p.replace(/^\//,"").split("/");S="/"+v.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=qv(t,{pathname:S});An(x||j!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),An(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=ST(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:Ln([p,l.encodeLocation?l.encodeLocation(T.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?p:Ln([p,l.encodeLocation?l.encodeLocation(T.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:T.pathnameBase])})),c,s);return i&&C?N.createElement(Al.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},C):C}function vT(){let t=RT(),i=lT(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),s=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:l},d={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:d},"ErrorBoundary")," or"," ",N.createElement("code",{style:d},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application 
60Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},i),s?N.createElement("pre",{style:c},s):null,f)}var jT=N.createElement(vT,null),e1=class extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,i){return i.location!==t.location||i.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:i.error,location:i.location,revalidation:t.revalidation||i.revalidation}}componentDidCatch(t,i){this.props.onError?this.props.onError(t,i):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const s=xT(t.digest);s&&(t=s)}let i=t!==void 0?N.createElement(Bn.Provider,{value:this.props.routeContext},N.createElement(nm.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?N.createElement(wT,{error:t},i):i}};e1.contextType=uT;var Df=new WeakMap;function wT({children:t,error:i}){let{basename:s}=N.useContext(vn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let l=pT(i.digest);if(l){let c=Df.get(i);if(c)throw c;let d=$v(l.location,s);if(Qv&&!Df.get(i))if(d.isExternal||l.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:l.replace}));throw Df.set(i,f),f}return N.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return t}function NT({routeContext:t,match:i,children:s}){let l=N.useContext(Xs);return l&&l.static&&l.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=i.route.id),N.createElement(Bn.Provider,{value:t},s)}function ST(t,i=[],s){let l=s==null?void 0:s.state;if(t==null){if(!l)return null;if(l.errors)t=l.matches;else if(i.length===0&&!l.initialized&&l.matches.length>0)t=l.matches;else return null}let c=t,d=l==null?void 0:l.errors;if(d!=null){let g=c.findIndex(b=>b.route.id&&(d==null?void 0:d[b.route.id])!==void 0);Ye(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let f=!1,m=-1;if(s&&l){f=l.renderFallback;for(let g=0;g<c.length;g++){let b=c[g];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(m=g),b.route.id){let{loaderData:v,errors:S}=l,j=b.route.loader&&!v.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||j){s.isStatic&&(f=!0),m>=0?c=c.slice(0,m+1):c=[c[0]];break}}}}let p=s==null?void 0:s.onError,x=l&&p?(g,b)=>{var v,S;p(g,{location:l.location,params:((S=(v=l.matches)==null?void 0:v[0])==null?void 0:S.params)??{},unstable_pattern:oT(l.matches),errorInfo:b})}:void 0;return c.reduceRight((g,b,v)=>{let S,j=!1,C=null,E=null;l&&(S=d&&b.route.id?d[b.route.id]:void 0,C=b.route.errorElement||jT,f&&(m<0&&v===0?(t1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,E=null):m===v&&(j=!0,E=b.route.hydrateFallbackElement||null)));let T=i.concat(c.slice(0,v+1)),_=()=>{let O;return S?O=C:j?O=E:b.route.Component?O=N.createElement(b.route.Component,null):b.route.element?O=b.route.element:O=g,N.createElement(NT,{match:b,routeContext:{outlet:g,matches:T,isDataRoute:l!=null},children:O})};return l&&(b.route.ErrorBoundary||b.route.errorElement||v===0)?N.createElement(e1,{location:l.location,revalidation:l.revalidation,component:C,error:S,children:_(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:x}):_()},null)}function am(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function TT(t){let i=N.useContext(Xs);return Ye(i,am(t)),i}function CT(t){let i=N.useContext(Hc);return Ye(i,am(t)),i}function ET(t){let i=N.useContext(Bn);return Ye(i,am(t)),i}function sm(t){let i=ET(t),s=i.matches[i.matches.length-1];return Ye(s.route.id,`${t} can only be used on routes that contain a unique "id"`),s.route.id}function AT(){return sm("useRouteId")}function RT(){var l;let t=N.useContext(nm),i=CT("useRouteError"),s=sm("useRouteError");return t!==void 0?t:(l=i.errors)==null?void 0:l[s]}function zT(){let{router:t}=TT("useNavigate"),i=sm("useNavigate"),s=N.useRef(!1);return Jv(()=>{s.current=!0}),N.useCallback(async(c,d={})=>{An(s.current,Zv),s.current&&(typeof c=="number"?await t.navigate(c):await t.navigate(c,{fromRouteId:i,...d}))},[t,i])}var Ey={};function t1(t,i,s){!i&&!Ey[t]&&(Ey[t]=!0,An(!1,s))}N.memo(MT);function MT({routes:t,future:i,state:s,isStatic:l,onError:c}){return Wv(t,void 0,{state:s,isStatic:l,onError:c})}function nt(t){Ye(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function OT({basename:t="/",children:i=null,location:s,navigationType:l="POP",navigator:c,static:d=!1,unstable_useTransitions:f}){Ye(!Rl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=t.replace(/^\/*/,"/"),p=N.useMemo(()=>({basename:m,navigator:c,static:d,unstable_useTransitions:f,future:{}}),[m,c,d,f]);typeof s=="string"&&(s=Ks(s));let{pathname:x="/",search:g="",hash:b="",state:v=null,key:S="default",unstable_mask:j}=s,C=N.useMemo(()=>{let E=ui(x,m);return E==null?null:{location:{pathname:E,search:g,hash:b,state:v,key:S,unstable_mask:j},navigationType:l}},[m,x,g,b,v,S,l,j]);
60return An(C!=null,`<Router basename="${m}"> is not able to match the URL "${x}${g}${b}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:N.createElement(vn.Provider,{value:p},N.createElement(Al.Provider,{children:i,value:C}))}function DT({children:t,location:i}){return bT(ch(t),i)}function ch(t,i=[]){let s=[];return N.Children.forEach(t,(l,c)=>{if(!N.isValidElement(l))return;let d=[...i,c];if(l.type===N.Fragment){s.push.apply(s,ch(l.props.children,d));return}Ye(l.type===nt,`[${typeof l.type=="string"?l.type:l.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!l.props.index||!l.props.children,"An index route cannot have child routes.");let f={id:l.props.id||d.join("-"),caseSensitive:l.props.caseSensitive,element:l.props.element,Component:l.props.Component,index:l.props.index,path:l.props.path,middleware:l.props.middleware,loader:l.props.loader,action:l.props.action,hydrateFallbackElement:l.props.hydrateFallbackElement,HydrateFallback:l.props.HydrateFallback,errorElement:l.props.errorElement,ErrorBoundary:l.props.ErrorBoundary,hasErrorBoundary:l.props.hasErrorBoundary===!0||l.props.ErrorBoundary!=null||l.props.errorElement!=null,shouldRevalidate:l.props.shouldRevalidate,handle:l.props.handle,lazy:l.props.lazy};l.props.children&&(f.children=ch(l.props.children,d)),s.push(f)}),s}var bc="get",vc="application/x-www-form-urlencoded";function qc(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function _T(t){return qc(t)&&t.tagName.toLowerCase()==="button"}function kT(t){return qc(t)&&t.tagName.toLowerCase()==="form"}function UT(t){return qc(t)&&t.tagName.toLowerCase()==="input"}function LT(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function PT(t,i){return t.button===0&&(!i||i==="_self")&&!LT(t)}function uh(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((i,s)=>{let l=t[s];return i.concat(Array.isArray(l)?l.map(c=>[s,c]):[[s,l]])},[]))}function VT(t,i){let s=uh(t);return i&&i.forEach((l,c)=>{s.has(c)||i.getAll(c).forEach(d=>{s.append(c,d)})}),s}var cc=null;function BT(){if(cc===null)try{new FormData(document.createElement("form"),0),cc=!1}
60catch{cc=!0}return cc}var HT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _f(t){return t!=null&&!HT.has(t)?(An(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vc}"`),null):t}function qT(t,i){let s,l,c,d,f;if(kT(t)){let m=t.getAttribute("action");l=m?ui(m,i):null,s=t.getAttribute("method")||bc,c=_f(t.getAttribute("enctype"))||vc,d=new FormData(t)}else if(_T(t)||UT(t)&&(t.type==="submit"||t.type==="image")){let m=t.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=t.getAttribute("formaction")||m.getAttribute("action");if(l=p?ui(p,i):null,s=t.getAttribute("formmethod")||m.getAttribute("method")||bc,c=_f(t.getAttribute("formenctype"))||_f(m.getAttribute("enctype"))||vc,d=new FormData(m,t),!BT()){let{name:x,type:g,value:b}=t;if(g==="image"){let v=x?`${x}.`:"";d.append(`${v}x`,"0"),d.append(`${v}y`,"0")}else x&&d.append(x,b)}}else{if(qc(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=bc,l=null,c=vc,f=t}return d&&c==="text/plain"&&(f=d,d=void 0),{action:l,method:s.toLowerCase(),encType:c,formData:d,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rm(t,i){if(t===!1||t===null||typeof t>"u")throw new Error(i)}function FT(t,i,s,l){let c=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${l}`:c.pathname=`${c.pathname}.${l}`:c.pathname==="/"?c.pathname=`_root.${l}`:i&&ui(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${l}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${l}`,c}async function GT(t,i){if(t.id in i)return i[t.id];try{let s=await import(t.module);return i[t.id]=s,s}catch(s){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function IT(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function QT(t,i,s){let l=await Promise.all(t.map(async c=>{let d=i.routes[c.route.id];if(d){let f=await GT(d,s);return f.links?f.links():[]}return[]}));return XT(l.flat(1).filter(IT).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Ay(t,i,s,l,c,d){let f=(p,x)=>s[x]?p.route.id!==s[x].route.id:!0,m=(p,x)=>{var g;return s[x].pathname!==p.pathname||((g=s[x].route.path)==null?void 0:g.endsWith("*"))&&s[x].params["*"]!==p.params["*"]};return d==="assets"?i.filter((p,x)=>f(p,x)||m(p,x)):d==="data"?i.filter((p,x)=>{var b;let g=l.routes[p.route.id];if(!g||!g.hasLoader)return!1;if(f(p,x)||m(p,x))return!0;if(p.route.shouldRevalidate){let v=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((b=s[0])==null?void 0:b.params)||{},nextUrl:new URL(t,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function $T(t,i,{includeHydrateFallback:s}={}){return YT(t.map(l=>{let c=i.routes[l.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function YT(t){return[...new Set(t)]}function KT(t){let i={},s=Object.keys(t).sort();for(let l of s)i[l]=t[l];return i}function XT(t,i){let s=new Set;return new Set(i),t.reduce((l,c)=>{let d=JSON.stringify(KT(c));return s.has(d)||(s.add(d),l.push({key:d,link:c})),l},[])}function n1(){let t=N.useContext(Xs);return rm(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function ZT(){let t=N.useContext(Hc);return rm(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var lm=N.createContext(void 0);lm.displayName="FrameworkContext";function i1(){let t=N.useContext(lm);return rm(t,"You must render this element inside a <HydratedRouter> element"),t}function JT(t,i){let s=N.useContext(lm),[l,c]=N.useState(!1),[d,f]=N.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:x,onMouseLeave:g,onTouchStart:b}=i,v=N.useRef(null);N.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let C=T=>{T.forEach(_=>{f(_.isIntersecting)})},E=new IntersectionObserver(C,{threshold:.5});return v.current&&E.observe(v.current),()=>{E.disconnect()}}},[t]),N.useEffect(()=>{if(l){let C=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(C)}}},[l]);let S=()=>{c(!0)},j=()=>{c(!1),f(!1)};return s?t!=="intent"?[d,v,{}]:[d,v,{onFocus:Jr(m,S),onBlur:Jr(p,j),onMouseEnter:Jr(x,S),onMouseLeave:Jr(g,j),onTouchStart:Jr(b,S)}]:[!1,v,{}]}
60function Jr(t,i){return s=>{t&&t(s),s.defaultPrevented||i(s)}}function WT({page:t,...i}){let{router:s}=n1(),l=N.useMemo(()=>qv(s.routes,t,s.basename),[s.routes,t,s.basename]);return l?N.createElement(tC,{page:t,matches:l,...i}):null}function eC(t){let{manifest:i,routeModules:s}=i1(),[l,c]=N.useState([]);return N.useEffect(()=>{let d=!1;return QT(t,i,s).then(f=>{d||c(f)}),()=>{d=!0}},[t,i,s]),l}function tC({page:t,matches:i,...s}){let l=Hn(),{future:c,manifest:d,routeModules:f}=i1(),{basename:m}=n1(),{loaderData:p,matches:x}=ZT(),g=N.useMemo(()=>Ay(t,i,x,d,l,"data"),[t,i,x,d,l]),b=N.useMemo(()=>Ay(t,i,x,d,l,"assets"),[t,i,x,d,l]),v=N.useMemo(()=>{if(t===l.pathname+l.search+l.hash)return[];let C=new Set,E=!1;if(i.forEach(_=>{var U;let O=d.routes[_.route.id];!O||!O.hasLoader||(!g.some(Q=>Q.route.id===_.route.id)&&_.route.id in p&&((U=f[_.route.id])!=null&&U.shouldRevalidate)||O.hasClientLoader?E=!0:C.add(_.route.id))}),C.size===0)return[];let T=FT(t,m,c.unstable_trailingSlashAwareDataRequests,"data");return E&&C.size>0&&T.searchParams.set("_routes",i.filter(_=>C.has(_.route.id)).map(_=>_.route.id).join(",")),[T.pathname+T.search]},[m,c.unstable_trailingSlashAwareDataRequests,p,l,d,g,i,t,f]),S=N.useMemo(()=>$T(b,d),[b,d]),j=eC(b);return N.createElement(N.Fragment,null,v.map(C=>N.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...s})),S.map(C=>N.createElement("link",{key:C,rel:"modulepreload",href:C,...s})),j.map(({key:C,link:E})=>N.createElement("link",{key:C,nonce:s.nonce,...E,crossOrigin:E.crossOrigin??s.crossOrigin})))}function nC(...t){return i=>{t.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var iC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iC&&(window.__reactRouterVersion="7.13.1")}catch{}function aC({basename:t,children:i,unstable_useTransitions:s,window:l}){let c=N.useRef();c.current==null&&(c.current=LS({window:l,v5Compat:!0}));let d=c.current,[f,m]=N.useState({action:d.action,location:d.location}),p=N.useCallback(x=>{s===!1?m(x):N.startTransition(()=>m(x))},[s]);return N.useLayoutEffect(()=>d.listen(p),[d,p]),N.createElement(OT,{basename:t,children:i,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:s})}var a1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,s1=N.forwardRef(function({onClick:i,discover:s="render",prefetch:l="none",relative:c,reloadDocument:d,replace:f,unstable_mask:m,state:p,target:x,to:g,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:S,...j},C){let{basename:E,navigator:T,unstable_useTransitions:_}=N.useContext(vn),O=typeof g=="string"&&a1.test(g),U=$v(g,E);g=U.to;let Q=gT(g,{relative:c}
60),ee=Hn(),Y=null;if(m){let q=tm(m,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);E!=="/"&&(q.pathname=q.pathname==="/"?E:Ln([E,q.pathname])),Y=T.createHref(q)}let[I,ie,re]=JT(l,j),ne=oC(g,{replace:f,unstable_mask:m,state:p,target:x,preventScrollReset:b,relative:c,viewTransition:v,unstable_defaultShouldRevalidate:S,unstable_useTransitions:_});function xe(q){i&&i(q),q.defaultPrevented||ne(q)}let Ce=!(U.isExternal||d),ae=N.createElement("a",{...j,...re,href:(Ce?Y:void 0)||U.absoluteURL||Q,onClick:Ce?xe:i,ref:nC(C,ie),target:x,"data-discover":!O&&s==="render"?"true":void 0});return I&&!O?N.createElement(N.Fragment,null,ae,N.createElement(WT,{page:Q})):ae});s1.displayName="Link";var sC=N.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:l="",end:c=!1,style:d,to:f,viewTransition:m,children:p,...x},g){let b=zl(f,{relative:x.relative}),v=Hn(),S=N.useContext(Hc),{navigator:j,basename:C}=N.useContext(vn),E=S!=null&&hC(b)&&m===!0,T=j.encodeLocation?j.encodeLocation(b).pathname:b.pathname,_=v.pathname,O=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;s||(_=_.toLowerCase(),O=O?O.toLowerCase():null,T=T.toLowerCase()),O&&C&&(O=ui(O,C)||O);const U=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let Q=_===T||!c&&_.startsWith(T)&&_.charAt(U)==="/",ee=O!=null&&(O===T||!c&&O.startsWith(T)&&O.charAt(T.length)==="/"),Y={isActive:Q,isPending:ee,isTransitioning:E},I=Q?i:void 0,ie;typeof l=="function"?ie=l(Y):ie=[l,Q?"active":null,ee?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(Y):d;return N.createElement(s1,{...x,"aria-current":I,className:ie,ref:g,style:re,to:f,viewTransition:m},typeof p=="function"?p(Y):p)});sC.displayName="NavLink";var rC=N.forwardRef(({discover:t="render",fetcherKey:i,navigate:s,reloadDocument:l,replace:c,state:d,method:f=bc,action:m,onSubmit:p,relative:x,preventScrollReset:g,viewTransition:b,unstable_defaultShouldRevalidate:v,...S},j)=>{let{unstable_useTransitions:C}=N.useContext(vn),E=dC(),T=fC(m,{relative:x}),_=f.toLowerCase()==="get"?"get":"post",O=typeof m=="string"&&a1.test(m),U=Q=>{if(p&&p(Q),Q.defaultPrevented)return;Q.preventDefault();let ee=Q.nativeEvent.submitter,Y=(ee==null?void 0:ee.getAttribute("formmethod"))||f,I=()=>E(ee||Q.currentTarget,{fetcherKey:i,method:Y,navigate:s,replace:c,state:d,relative:x,preventScrollReset:g,viewTransition:b,unstable_defaultShouldRevalidate:v});C&&s!==!1?N.startTransition(()=>I()):I()};return N.createElement("form",{ref:j,method:_,action:T,onSubmit:l?p:U,...S,"data-discover":!O&&t==="render"?"true":void 0})});rC.displayName="Form";function lC(t){return`${t} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function r1(t){let i=N.useContext(Xs);return Ye(i,lC(t)),i}function oC(t,{target:i,replace:s,unstable_mask:l,state:c,preventScrollReset:d,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:p,unstable_useTransitions:x}={}){let g=Mt(),b=Hn(),v=zl(t,{relative:f});return N.useCallback(S=>{if(PT(S,i)){S.preventDefault();let j=s!==void 0?s:dl(b)===dl(v),C=()=>g(t,{replace:j,unstable_mask:l,state:c,preventScrollReset:d,relative:f,viewTransition:m,unstable_defaultShouldRevalidate:p});x?N.startTransition(()=>C()):C()}},[b,g,v,s,l,c,i,t,d,f,m,p,x])}function om(t){An(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=N.useRef(uh(t)),s=N.useRef(!1),l=Hn(),c=N.useMemo(()=>VT(l.search,s.current?null:i.current),[l.search]),d=Mt(),f=N.useCallback((m,p)=>{const x=uh(typeof m=="function"?m(new URLSearchParams(c)):m);s.current=!0,d("?"+x,p)},[d,c]);return[c,f]}var cC=0,uC=()=>`__${String(++cC)}__`;function dC(){let{router:t}=r1("useSubmit"),{basename:i}=N.useContext(vn),s=AT(),l=t.fetch,c=t.navigate;return N.useCallback(async(d,f={})=>{let{action:m,method:p,encType:x,formData:g,body:b}=qT(d,i);if(f.navigate===!1){let v=f.fetcherKey||uC();await l(v,s,f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:b,formMethod:f.method||p,formEncType:f.encType||x,flushSync:f.flushSync})}else await c(f.action||m,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:g,body:b,formMethod:f.method||p,formEncType:f.encType||x,replace:f.replace,state:f.state,fromRouteId:s,flushSync:f.flushSync,viewTransition:f.viewTransition})},[l,c,i,s])}function fC(t,{relative:i}={}){let{basename:s}
60=N.useContext(vn),l=N.useContext(Bn);Ye(l,"useFormAction must be used inside a RouteContext");let[c]=l.matches.slice(-1),d={...zl(t||".",{relative:i})},f=Hn();if(t==null){d.search=f.search;let m=new URLSearchParams(d.search),p=m.getAll("index");if(p.some(g=>g==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let g=m.toString();d.search=g?`?${g}`:""}}return(!t||t===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:Ln([s,d.pathname])),dl(d)}function hC(t,{relative:i}={}){let s=N.useContext(Kv);Ye(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=r1("useViewTransitionState"),c=zl(t,{relative:i});if(!s.isTransitioning)return!1;let d=ui(s.currentLocation.pathname,l)||s.currentLocation.pathname,f=ui(s.nextLocation.pathname,l)||s.nextLocation.pathname;return Rc(c.pathname,f)!=null||Rc(c.pathname,d)!=null}const cm=N.createContext({});function um(t){const i=N.useRef(null);return i.current===null&&(i.current=t()),i.current}const dm=typeof window<"u",l1=dm?N.useLayoutEffect:N.useEffect,Fc=N.createContext(null);function fm(t,i){t.indexOf(i)===-1&&t.push(i)}function hm(t,i){const s=t.indexOf(i);s>-1&&t.splice(s,1)}const di=(t,i,s)=>s>i?i:s<t?t:s;let mm=()=>{};const fi={},o1=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function c1(t){return typeof t=="object"&&t!==null}const u1=t=>/^0[^.\s]+$/u.test(t);function pm(t){let i;return()=>(i===void 0&&(i=t()),i)}const bn=t=>t,mC=(t,i)=>s=>i(t(s)),Ml=(...t)=>t.reduce(mC),fl=(t,i,s)=>{const l=i-t;return l===0?1:(s-t)/l};class xm{constructor(){this.subscriptions=[]}add(i){return fm(this.subscriptions,i),()=>hm(this.subscriptions,i)}notify(i,s,l){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](i,s,l);else for(let d=0;d<c;d++){const f=this.subscriptions[d];f&&f(i,s,l)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Pn=t=>t*1e3,yn=t=>t/1e3;function d1(t,i){return i?t*(1e3/i):0}const f1=(t,i,s)=>(((1-3*s+3*i)*t+(3*s-6*i))*t+3*i)*t,pC=1e-7,xC=12;function gC(t,i,s,l,c){let d,f,m=0;do f=i+(s-i)/2,d=f1(f,l,c)-t,d>0?s=f:i=f;while(Math.abs(d)>pC&&++m<xC);return f}function Ol(t,i,s,l){if(t===i&&s===l)return bn;const c=d=>gC(d,0,1,t,s);return d=>d===0||d===1?d:f1(c(d),i,l)}const h1=t=>i=>i<=.5?t(2*i)/2:(2-t(2*(1-i)))/2,m1=t=>i=>1-t(1-i),p1=Ol(.33,1.53,.69,.99),gm=m1(p1),x1=h1(gm),g1=t=>(t*=2)<1?.5*gm(t):.5*(2-Math.pow(2,-10*(t-1))),ym=t=>1-Math.sin(Math.acos(t)),y1=m1(ym),b1=h1(ym),yC=Ol(.42,0,1,1),bC=Ol(0,0,.58,1),v1=Ol(.42,0,.58,1),vC=t=>Array.isArray(t)&&typeof t[0]!="number",j1=t=>Array.isArray(t)&&typeof t[0]=="number",jC={linear:bn,easeIn:yC,easeInOut:v1,easeOut:bC,circIn:ym,circInOut:b1,circOut:y1,backIn:gm,backInOut:x1,backOut:p1,anticipate:g1},wC=t=>typeof t=="string",Ry=t=>{if(j1(t)){mm(t.length===4);const[i,s,l,c]=t;return Ol(i,s,l,c)}else if(wC(t))return jC[t];return t},uc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function NC(t,i){let s=new Set,l=new Set,c=!1,d=!1;const f=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(g){f.has(g)&&(x.schedule(g),t()),g(m)}const x={schedule:(g,b=!1,v=!1)=>{const j=v&&c?s:l;return b&&f.add(g),j.has(g)||j.add(g),g},cancel:g=>{l.delete(g),f.delete(g)},process:g=>{if(m=g,c){d=!0;return}c=!0,[s,l]=[l,s],s.forEach(p),s.clear(),c=!1,d&&(d=!1,x.process(g))}};return x}const SC=40;function w1(t,i){let s=!1,l=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>s=!0,f=uc.reduce((O,U)=>(O[U]=NC(d),O),{}),{setup:m,read:p,resolveKeyframes:x,preUpdate:g,update:b,preRender:v,render:S,postRender:j}=f,C=()=>{const O=fi.useManualTiming?c.timestamp:performance.now();s=!1,fi.useManualTiming||(c.delta=l?1e3/60:Math.max(Math.min(O-c.timestamp,SC),1)),c.timestamp=O,c.isProcessing=!0,m.process(c),p.process(c),x.process(c),g.process(c),b.process(c),v.process(c),S.process(c),j.process(c),c.isProcessing=!1,s&&i&&(l=!1,t(C))},E=()=>{s=!0,l=!0,c.isProcessing||t(C)};return{schedule:uc.reduce((O,U)=>{const Q=f[U];return O[U]=(ee,Y=!1,I=!1)=>(s||E(),Q.schedule(ee,Y,I)),O},{}),cancel:O=>{for(let U=0;U<uc.length;U++)f[uc[U]].cancel(O)},state:c,steps:f}}const{schedule:Qe,cancel:Xi,state:jt,steps:kf}=w1(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0);let jc;function TC(){jc=void 0}const Ht={now:()=>(jc===void 0&&Ht.set(jt.isProcessing||fi.useManualTiming?jt.timestamp:performance.now()),jc),set:t=>{jc=t,queueMicrotask(TC)}},N1=t=>i=>typeof i=="string"&&i.startsWith(t),bm=N1("--"),CC=N1("var(--"),vm=t=>CC(t)?EC.test(t.split("/*")[0].trim()):!1,EC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Zs={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},hl={...Zs,transform:t=>di(0,1,t)},dc={...Zs,default:1},al=t=>Math.round(t*1e5)/1e5,jm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function AC(t){return t==null}const RC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wm=(t,i)=>s=>!!(typeof s=="string"&&RC.test(s)&&s.startsWith(t)||i&&!AC(s)&&Object.prototype.hasOwnProperty.call(s,i)),S1=(t,i,s)=>l=>{if(typeof l!="string")return l;const[c,d,f,m]=l.match(jm);return{[t]:parseFloat(c),[i]:parseFloat(d),[s]:parseFloat(f),alpha:m!==void 0?parseFloat(m):1}},zC=t=>di(0,255,t),Uf={...Zs,transform:t=>Math.round(zC(t))},ja={test:wm("rgb","red"),parse:S1("red","green","blue"),transform:({red:t,green:i,blue:s,alpha:l=1})=>"rgba("+Uf.transform(t)+", "+Uf.transform(i)+", "+Uf.transform(s)+", "+al(hl.transform(l))+")"};function MC(t){let i="",s="",l="",c="";return t.length>5?(i=t.substring(1,3),s=t.substring(3,5),l=t.substring(5,7),c=t.substring(7,9)):(i=t.substring(1,2),s=t.substring(2,3),l=t.substring(3,4),c=t.substring(4,5),i+=i,s+=s,l+=l,c+=c),{red:parseInt(i,16),green:parseInt(s,16),blue:parseInt(l,16),alph
vendor: 4,556 bytes, line 60
60a:c?parseInt(c,16)/255:1}}const dh={test:wm("#"),parse:MC,transform:ja.transform},Dl=t=>({test:i=>typeof i=="string"&&i.endsWith(t)&&i.split(" ").length===1,parse:parseFloat,transform:i=>`${i}${t}`}),Pi=Dl("deg"),Vn=Dl("%"),ye=Dl("px"),OC=Dl("vh"),DC=Dl("vw"),zy={...Vn,parse:t=>Vn.parse(t)/100,transform:t=>Vn.transform(t*100)},Ts={test:wm("hsl","hue"),parse:S1("hue","saturation","lightness"),transform:({hue:t,saturation:i,lightness:s,alpha:l=1})=>"hsla("+Math.round(t)+", "+Vn.transform(al(i))+", "+Vn.transform(al(s))+", "+al(hl.transform(l))+")"},ut={test:t=>ja.test(t)||dh.test(t)||Ts.test(t),parse:t=>ja.test(t)?ja.parse(t):Ts.test(t)?Ts.parse(t):dh.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ja.transform(t):Ts.transform(t),getAnimatableNone:t=>{const i=ut.parse(t);return i.alpha=0,ut.transform(i)}},_C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kC(t){var i,s;return isNaN(t)&&typeof t=="string"&&(((i=t.match(jm))==null?void 0:i.length)||0)+(((s=t.match(_C))==null?void 0:s.length)||0)>0}const T1="number",C1="color",UC="var",LC="var(",My="${}",PC=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ml(t){const i=t.toString(),s=[],l={color:[],number:[],var:[]},c=[];let d=0;const m=i.replace(PC,p=>(ut.test(p)?(l.color.push(d),c.push(C1),s.push(ut.parse(p))):p.startsWith(LC)?(l.var.push(d),c.push(UC),s.push(p)):(l.number.push(d),c.push(T1),s.push(parseFloat(p))),++d,My)).split(My);return{values:s,split:m,indexes:l,types:c}}function E1(t){return ml(t).values}function A1(t){const{split:i,types:s}=ml(t),l=i.length;return c=>{let d="";for(let f=0;f<l;f++)if(d+=i[f],c[f]!==void 0){const m=s[f];m===T1?d+=al(c[f]):m===C1?d+=ut.transform(c[f]):d+=c[f]}return d}}const VC=t=>typeof t=="number"?0:ut.test(t)?ut.getAnimatableNone(t):t;function BC(t){const i=E1(t);return A1(t)(i.map(VC))}const Zi={test:kC,parse:E1,createTransformer:A1,getAnimatableNone:BC};function Lf(t,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(i-t)*6*s:s<1/2?i:s<2/3?t+(i-t)*(2/3-s)*6:t}function HC({hue:t,saturation:i,lightness:s,alpha:l}){t/=360,i/=100,s/=100;let c=0,d=0,f=0;if(!i)c=d=f=s;else{const m=s<.5?s*(1+i):s+i-s*i,p=2*s-m;c=Lf(p,m,t+1/3),d=Lf(p,m,t),f=Lf(p,m,t-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(f*255),alpha:l}}function zc(t,i){return s=>s>0?i:t}const $e=(t,i,s)=>t+(i-t)*s,Pf=(t,i,s)=>{const l=t*t,c=s*(i*i-l)+l;return c<0?0:Math.sqrt(c)},qC=[dh,ja,Ts],FC=t=>qC.find(i=>i.test(t));function Oy(t){const i=FC(t);if(!i)return!1;let s=i.parse(t);return i===Ts&&(s=HC(s)),s}const Dy=(t,i)=>{const s=Oy(t),l=Oy(i);if(!s||!l)return zc(t,i);const c={...s};return d=>(c.red=Pf(s.red,l.red,d),c.green=Pf(s.green,l.green,d),c.blue=Pf(s.blue,l.blue,d),c.alpha=$e(s.alpha,l.alpha,d),ja.transform(c))},fh=new Set(["none","hidden"]);function GC(t,i){return fh.has(t)?s=>s<=0?t:i:s=>s>=1?i:t}function IC(t,i){return s=>$e(t,i,s)}function Nm(t){return typeof t=="number"?IC:typeof t=="string"?vm(t)?zc:ut.test(t)?Dy:YC:Array.isArray(t)?R1:typeof t=="object"?ut.test(t)?Dy:QC:zc}function R1(t,i){const s=[...t],l=s.length,c=t.map((d,f)=>Nm(d)(d,i[f]));return d=>{for(let f=0;f<l;f++)s[f]=c[f](d);return s}}function QC(t,i){const s={...t,...i},l={};for(const c in s)t[c]!==void 0&&i[c]!==void 0&&(l[c]=Nm(t[c])(t[c],i[c]));return c=>{for(const d in l)s[d]=l[d](c);return s}}function $C(t,i){const s=[],l={color:0,var:0,number:0};for(let c=0;c<i.values.length;c++){const d=i.types[c],f=t.indexes[d][l[d]],m=t.values[f]??0;s[c]=m,l[d]++}return s}const YC=(t,i)=>{const s=Zi.createTransformer(i),l=ml(t),c=ml(i);return l.indexes.var.length===c.indexes.var.length&&l.indexes.color.length===c.indexes.color.length&&l.indexes.number.length>=c.indexes.number.length?fh.has(t)&&!c.values.length||fh.has(i)&&!l.values.length?GC(t,i):Ml(R1($C(l,c),c.values),s):zc(t,i)};function z1(t,i,s){return typeof t=="number"&&typeof i=="number"&&typeof s=="number"?$e(t,i,s):Nm(t)(t,i)}const KC=t=>{const i=({timestamp:s})=>t(s);return{start:(s=!0)=>Qe.update(i,s),stop:()=>Xi(i),now:()=>jt.isProcessing?jt.timestamp:Ht.now()}},M1=(t,i,s=10)=>{let l="";const c=Math.max(Math.round(i/s),2);for(let d=0;d<c;d++)l+=Math.round(t(d/(c-1))*1e4)/1e4+", ";return`linear(${l.substring(0,l.length-2)})`},Mc=2e4;function Sm(t){let i=0;const s=50;let l=t.next(i);for(;!l.done&&i<Mc;
60)i+=s,l=t.next(i);return i>=Mc?1/0:i}function XC(t,i=100,s){const l=s({...t,keyframes:[0,i]}),c=Math.min(Sm(l),Mc);return{type:"keyframes",ease:d=>l.next(c*d).value/i,duration:yn(c)}}const ZC=5;function O1(t,i,s){const l=Math.max(i-ZC,0);return d1(s-t(l),i-l)}const Je={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Vf=.001;function JC({duration:t=Je.duration,bounce:i=Je.bounce,velocity:s=Je.velocity,mass:l=Je.mass}){let c,d,f=1-i;f=di(Je.minDamping,Je.maxDamping,f),t=di(Je.minDuration,Je.maxDuration,yn(t)),f<1?(c=x=>{const g=x*f,b=g*t,v=g-s,S=hh(x,f),j=Math.exp(-b);return Vf-v/S*j},d=x=>{const b=x*f*t,v=b*s+s,S=Math.pow(f,2)*Math.pow(x,2)*t,j=Math.exp(-b),C=hh(Math.pow(x,2),f);return(-c(x)+Vf>0?-1:1)*((v-S)*j)/C}):(c=x=>{const g=Math.exp(-x*t),b=(x-s)*t+1;return-Vf+g*b},d=x=>{const g=Math.exp(-x*t),b=(s-x)*(t*t);return g*b});const m=5/t,p=eE(c,d,m);if(t=Pn(t),isNaN(p))return{stiffness:Je.stiffness,damping:Je.damping,duration:t};{const x=Math.pow(p,2)*l;return{stiffness:x,damping:f*2*Math.sqrt(l*x),duration:t}}}const WC=12;function eE(t,i,s){let l=s;for(let c=1;c<WC;c++)l=l-t(l)/i(l);return l}function hh(t,i){return t*Math.sqrt(1-i*i)}const tE=["duration","bounce"],nE=["stiffness","damping","mass"];function _y(t,i){return i.some(s=>t[s]!==void 0)}function iE(t){let i={velocity:Je.velocity,stiffness:Je.stiffness,damping:Je.damping,mass:Je.mass,isResolvedFromDuration:!1,...t};if(!_y(t,nE)&&_y(t,tE))if(t.visualDuration){const s=t.visualDuration,l=2*Math.PI/(s*1.2),c=l*l,d=2*di(.05,1,1-(t.bounce||0))*Math.sqrt(c);i={...i,mass:Je.mass,stiffness:c,damping:d}}else{const s=JC(t);i={...i,...s,mass:Je.mass},i.isResolvedFromDuration=!0}return i}function Oc(t=Je.visualDuration,i=Je.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:i}:t;let{restSpeed:l,restDelta:c}=s;const d=s.keyframes[0],f=s.keyframes[s.keyframes.length-1],m={done:!1,value:d},{stiffness:p,damping:x,mass:g,duration:b,velocity:v,isResolvedFromDuration:S}=iE({...s,velocity:-yn(s.velocity||0)}),j=v||0,C=x/(2*Math.sqrt(p*g)),E=f-d,T=yn(Math.sqrt(p/g)),_=Math.abs(E)<5;l||(l=_?Je.restSpeed.granular:Je.restSpeed.default),c||(c=_?Je.restDelta.granular:Je.restDelta.default);let O;if(C<1){const Q=hh(T,C);O=ee=>{const Y=Math.exp(-C*T*ee);return f-Y*((j+C*T*E)/Q*Math.sin(Q*ee)+E*Math.cos(Q*ee))}}else if(C===1)O=Q=>f-Math.exp(-T*Q)*(E+(j+T*E)*Q);else{const Q=T*Math.sqrt(C*C-1);O=ee=>{const Y=Math.exp(-C*T*ee),I=Math.min(Q*ee,300);return f-Y*((j+C*T*E)*Math.sinh(I)+Q*E*Math.cosh(I))/Q}}const U={calculatedDuration:S&&b||null,next:Q=>{const ee=O(Q);if(S)m.done=Q>=b;else{let Y=Q===0?j:0;C<1&&(Y=Q===0?Pn(j):O1(O,Q,ee));const I=Math.abs(Y)<=l,ie=Math.abs(f-ee)<=c;m.done=I&&ie}return m.value=m.done?f:ee,m},toString:()=>{const Q=Math.min(Sm(U),Mc),ee=M1(Y=>U.next(Q*Y).value,Q,30);return Q+"ms "+ee},toTransition:()=>{}};return U}Oc.applyToOptions=t=>{const i=XC(t,100,Oc);return t.ease=i.ease,t.duration=Pn(i.duration),t.type="keyframes",t};function mh({keyframes:t,velocity:i=0,power:s=.8,timeConstant:l=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:f,min:m,max:p,restDelta:x=.5,restSpeed:g}){const b=t[0],v={done:!1,value:b},S=I=>m!==void 0&&I<m||p!==void 0&&I>p,j=I=>m===void 0?p:p===void 0||Math.abs(m-I)<Math.abs(p-I)?m:p;let C=s*i;const E=b+C,T=f===void 0?E:f(E);T!==E&&(C=T-b);const _=I=>-C*Math.exp(-I/l),O=I=>T+_(I),U=I=>{const ie=_(I),re=O(I);v.done=Math.abs(ie)<=x,v.value=v.done?T:re};let Q,ee;const Y=I=>{S(v.value)&&(Q=I,ee=Oc({keyframes:[v.value,j(v.value)],velocity:O1(O,I,v.value),damping:c,stiffness:d,restDelta:x,restSpeed:g}))};return Y(0),{calculatedDuration:null,next:I=>{let ie=!1;return!ee&&Q===void 0&&(ie=!0,U(I),Y(I)),Q!==void 0&&I>=Q?ee.next(I-Q):(!ie&&U(I),v)}}}function aE(t,i,s){const l=[],c=s||fi.mix||z1,d=t.length-1;for(let f=0;f<d;f++){let m=c(t[f],t[f+1]);if(i){const p=Array.isArray(i)?i[f]||bn:i;m=Ml(p,m)}l.push(m)}return l}function sE(t,i,{clamp:s=!0,ease:l,mixer:c}={}){const d=t.length;if(mm(d===i.length),d===1)return()=>i[0];if(d===2&&i[0]===i[1])return()=>i[1];const f=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),i=[...i].reverse());const m=aE(i,l,c),p=m.length,x=g=>{if(f&&g<t[0])return i[0];let b=0;if(p>1)for(;b<t.length-2&&!(g<t[b+1]);b++);const v=fl(t[b],t[b+1],g);return m[b](v)};return s?g=>x(di(t[0],t[d-1],g)):x}function rE(t,i){const s=t[t.length-1];for(let l=1;l<=i;l++){const c=fl(0,i,l);t.push($e(s,1,c))}}function lE(t){const i=[0];return rE(i,t.length-1),i}function oE(t,i){return t.map(s=>s*i)}function cE(t,i){return t.map(()=>i||v1).splice(0,t.length-1)}function sl({duration:t=300,keyframes:i,times:s,ease:l="easeInOut"}){const c=vC(l)?l.map(Ry):Ry(l),d={done:!1,value:i[0]},f=oE(s&&s.length===i.length?s:lE(i),t),m=sE(f,i,{ease:Array.isArray(c)?c:cE(i,c)});return{calculatedDuration:t,next:p=>(d.value=m(p),d.done=p>=t,d)}}const uE=t=>t!==null;function Tm(t,{repeat:i,repeatType:s="loop"},l,c=1){const d=t.filter(uE),m=c<0||i&&s!=="loop"&&i%2===1?0:d.length-1;return!m||l===void 0?d[m]:l}const dE={decay:mh,inertia:mh,tween:sl,keyframes:sl,spring:Oc};function D1(t){typeof t.type=="string"&&(t.type=dE[t.type])}class Cm{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(i=>{this.resolve=i})}notifyFinished(){this.resolve()}then(i,s){return this.finished.then(i,s)}}const fE=t=>t/100;class Em extends Cm{constructor(i){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var l,c;const{motionValue:s}=this.options;s&&s.updatedAt!==Ht.now()&&this.tick(Ht.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(c=(l=this.options).onStop)==null||c.call(l))},this.options=i,this.initAnimation(),this.play(),i.autoplay===!1&&this.pause()}initAnimation(){const{options:i}=this;D1(i);const{type:s=sl,repeat:l=0,repeatDelay:c=0,repeatType:d,velocity:f=0}=i;let{keyframes:m}=i;const p=s||sl;p!==sl&&typeof m[0]!="number"&&(this.mixKeyframes=Ml(fE,z1(m[0],m[1])),m=[0,100]);const x=p({...i,keyframes:m});d==="mirror"&&(this.mirroredGenerator=p({...i,keyframes:[...m].reverse(),velocity:-f})),x.calculatedDuration===null&&(x.calculatedDuration=Sm(x));const{calculatedDuration:g}=x;this.calculatedDuration=g,this.resolvedDuration=g+c,this.totalDuration=this.resolvedDuration*(l+1)-c,this.generator=x}updateTime(i){const s=Math.round(i-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(i,s=!1){const{generator:l,totalDuration:c,mixKeyframes:d,mirroredGenerator:f,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return l.next(0);const{delay:x=0,keyframes:g,repeat:b,repeatType:v,repeatDelay:S,type:j,onUpdate:C,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,i):this.speed<0&&(this.startTime=Math.min(i-c/this.speed,this.startTime)),s?this.currentTime=i:this.updateTime(i);const T=this.currentTime-x*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?T<0:T>c;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let O=this.currentTime,U=l;if(b){const I=Math.min(this.currentTime,c)/m;let ie=Math.floor(I),re=I%1;!re&&I>=1&&(re=1),re===1&&ie--,ie=Math.min(ie,b+1),!!(ie%2)&&(v==="reverse"?(re=1-re,S&&(re-=S/m)):v==="mirror"&&(U=f)),O=di(0,1,re)*m}const Q=_?{done:!1,value:g[0]}:U.next(O);d&&(Q.value=d(Q.value));let{done:ee}=Q;!_&&p!==null&&(ee=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const Y=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&ee);return Y&&j!==mh&&(Q.value=Tm(g,this.options,E,this.speed)),C&&C(Q.value),Y&&this.finish(),Q}then(i,s){return this.finished.then(i,s)}get duration(){return yn(this.calculatedDuration)}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+yn(i)}get time(){return yn(this.currentTime)}set time(i){var s;i=Pn(i),this.currentTime=i,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=i:this.driver&&(this.startTime=this.driver.now()-i/this.playbackSpeed),(s=this.driver)==null||s.start(!1)}get speed(){return this.playbackSpeed}set speed(i){this.updateTime(Ht.now());const s=this.playbackSpeed!==i;this.playbackSpeed=i,s&&(this.time=yn(this.currentTime))}play(){var c,d;if(this.isStopped)return;const{driver:i=KC,startTime:s}=this.options;this.driver||(this.driver=i(f=>this.tick(f))),(d=(c=this.options).onPlay)==null||d.call(c);const l=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=l):this.holdTime!==null?this.startTime=l-this.holdTime:this.startTime||(this.startTime=s??l),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ht.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var i,s;this.notifyFinished(),this.teardown(),this.state="finished",(s=(i=this.options).onComplete)==null||s.call(i)}cancel(){var i,s;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(s=(i=this.options).onCancel)==null||s.call(i)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(i){return this.startTime=0,this.tick(i,!0)}attachTimeline(i){var s;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(s=this.driver)==null||s.stop(),i.observe(this)}}function hE(t){for(let i=1;i<t.length;i++)t[i]??(t[i]=t[i-1])}const wa=t=>t*180/Math.PI,ph=t=>{const i=wa(Math.atan2(t[1],t[0]));return xh(i)},mE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ph,rotateZ:ph,skewX:t=>wa(Math.atan(t[1])),skewY:t=>wa(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},xh=t=>(t=t%360,t<0&&(t+=360),t),ky=ph,Uy=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ly=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),pE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Uy,scaleY:Ly,scale:t=>(Uy(t)+Ly(t))/2,rotateX:t=>
60xh(wa(Math.atan2(t[6],t[5]))),rotateY:t=>xh(wa(Math.atan2(-t[2],t[0]))),rotateZ:ky,rotate:ky,skewX:t=>wa(Math.atan(t[4])),skewY:t=>wa(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function gh(t){return t.includes("scale")?1:0}function yh(t,i){if(!t||t==="none")return gh(i);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let l,c;if(s)l=pE,c=s;else{const m=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);l=mE,c=m}if(!c)return gh(i);const d=l[i],f=c[1].split(",").map(gE);return typeof d=="function"?d(f):f[d]}const xE=(t,i)=>{const{transform:s="none"}=getComputedStyle(t);return yh(s,i)};function gE(t){return parseFloat(t.trim())}const Js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ws=new Set(Js),Py=t=>t===Zs||t===ye,yE=new Set(["x","y","z"]),bE=Js.filter(t=>!yE.has(t));function vE(t){const i=[];return bE.forEach(s=>{const l=t.getValue(s);l!==void 0&&(i.push([s,l.get()]),l.set(s.startsWith("scale")?1:0))}),i}const ka={width:({x:t},{paddingLeft:i="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(i)-parseFloat(s),height:({y:t},{paddingTop:i="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(i)-parseFloat(s),top:(t,{top:i})=>parseFloat(i),left:(t,{left:i})=>parseFloat(i),bottom:({y:t},{top:i})=>parseFloat(i)+(t.max-t.min),right:({x:t},{left:i})=>parseFloat(i)+(t.max-t.min),x:(t,{transform:i})=>yh(i,"x"),y:(t,{transform:i})=>yh(i,"y")};ka.translateX=ka.x;ka.translateY=ka.y;const Ua=new Set;let bh=!1,vh=!1,jh=!1;function _1(){if(vh){const t=Array.from(Ua).filter(l=>l.needsMeasurement),i=new Set(t.map(l=>l.element)),s=new Map;i.forEach(l=>{const c=vE(l);c.length&&(s.set(l,c),l.render())}),t.forEach(l=>l.measureInitialState()),i.forEach(l=>{l.render();const c=s.get(l);c&&c.forEach(([d,f])=>{var m;(m=l.getValue(d))==null||m.set(f)})}),t.forEach(l=>l.measureEndState()),t.forEach(l=>{l.suspendedScrollY!==void 0&&window.scrollTo(0,l.suspendedScrollY)})}vh=!1,bh=!1,Ua.forEach(t=>t.complete(jh)),Ua.clear()}function k1(){Ua.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(vh=!0)})}function jE(){jh=!0,k1(),_1(),jh=!1}class Am{constructor(i,s,l,c,d,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...i],this.onComplete=s,this.name=l,this.motionValue=c,this.element=d,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(Ua.add(this),bh||(bh=!0,Qe.read(k1),Qe.resolveKeyframes(_1))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:i,name:s,element:l,motionValue:c}=this;if(i[0]===null){const d=c==null?void 0:c.get(),f=i[i.length-1];if(d!==void 0)i[0]=d;else if(l&&s){const m=l.readValue(s,f);m!=null&&(i[0]=m)}i[0]===void 0&&(i[0]=f),c&&d===void 0&&c.set(i[0])}hE(i)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(i=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,i),Ua.delete(this)}cancel(){this.state==="scheduled"&&(Ua.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wE=t=>t.startsWith("--");function NE(t,i,s){wE(i)?t.style.setProperty(i,s):t.style[i]=s}const SE=pm(()=>window.ScrollTimeline!==void 0),TE={};function CE(t,i){const s=pm(t);return()=>TE[i]??s()}const U1=CE(()=>{try{document.createElement("div").animate({opacity:0}
60,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tl=([t,i,s,l])=>`cubic-bezier(${t}, ${i}, ${s}, ${l})`,Vy={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tl([0,.65,.55,1]),circOut:tl([.55,0,1,.45]),backIn:tl([.31,.01,.66,-.59]),backOut:tl([.33,1.53,.69,.99])};function L1(t,i){if(t)return typeof t=="function"?U1()?M1(t,i):"ease-out":j1(t)?tl(t):Array.isArray(t)?t.map(s=>L1(s,i)||Vy.easeOut):Vy[t]}function EE(t,i,s,{delay:l=0,duration:c=300,repeat:d=0,repeatType:f="loop",ease:m="easeOut",times:p}={},x=void 0){const g={[i]:s};p&&(g.offset=p);const b=L1(m,c);Array.isArray(b)&&(g.easing=b);const v={delay:l,duration:c,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:d+1,direction:f==="reverse"?"alternate":"normal"};return x&&(v.pseudoElement=x),t.animate(g,v)}function P1(t){return typeof t=="function"&&"applyToOptions"in t}function AE({type:t,...i}){return P1(t)&&U1()?t.applyToOptions(i):(i.duration??(i.duration=300),i.ease??(i.ease="easeOut"),i)}class RE extends Cm{constructor(i){if(super(),this.finishedTime=null,this.isStopped=!1,!i)return;const{element:s,name:l,keyframes:c,pseudoElement:d,allowFlatten:f=!1,finalKeyframe:m,onComplete:p}=i;this.isPseudoElement=!!d,this.allowFlatten=f,this.options=i,mm(typeof i.type!="string");const x=AE(i);this.animation=EE(s,l,c,x,d),x.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const g=Tm(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(g):NE(s,l,g),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var i,s;(s=(i=this.animation).finish)==null||s.call(i)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:i}=this;i==="idle"||i==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,s;this.isPseudoElement||(s=(i=this.animation).commitStyles)==null||s.call(i)}get duration(){var s,l;const i=((l=(s=this.animation.effect)==null?void 0:s.getComputedTiming)==null?void 0:l.call(s).duration)||0;return yn(Number(i))}get iterationDuration(){const{delay:i=0}=this.options||{};return this.duration+yn(i)}get time(){return yn(Number(this.animation.currentTime)||0)}set time(i){this.finishedTime=null,this.animation.currentTime=Pn(i)}get speed(){return this.animation.playbackRate}set speed(i){i<0&&(this.finishedTime=null),this.animation.playbackRate=i}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(i){this.animation.startTime=i}attachTimeline({timeline:i,observe:s}){var l;return this.allowFlatten&&((l=this.animation.effect)==null||l.updateTiming({easing:"linear"})),this.animation.onfinish=null,i&&SE()?(this.animation.timeline=i,bn):s(this)}}const V1={anticipate:g1,backInOut:x1,circInOut:b1};function zE(t){return t in V1}function ME(t){typeof t.ease=="string"&&zE(t.ease)&&(t.ease=V1[t.ease])}const By=10;class OE extends RE{constructor(i){ME(i),D1(i),super(i),i.startTime&&(this.startTime=i.startTime),this.options=i}updateMotionValue(i){const{motionValue:s,onUpdate:l,onComplete:c,element:d,...f}=this.options;if(!s)return;if(i!==void 0){s.set(i);return}const m=new Em({...f,autoplay:!1}),p=Pn(this.finishedTime??this.time);s.setWithVelocity(m.sample(p-By).value,m.sample(p).value,By),m.stop()}}const Hy=(t,i)=>i==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Zi.test(t)||t==="0")&&!t.startsWith("url("));function DE(t){const i=t[0];if(t.length===1)return!0;for(let s=0;s<t.length;s++)if(t[s]!==i)return!0}function _E(t,i,s,l){const c=t[0];if(c===null)return!1;if(i==="display"||i==="visibility")return!0;const d=t[t.length-1],f=Hy(c,i),m=Hy(d,i);return!f||!m?!1:DE(t)||(s==="spring"||P1(s))&&l}function wh(t){t.duration=0,t.type="keyframes"}const kE=new Set(["opacity","clipPath","filter","transform"]),UE=pm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function LE(t){var g;const{motionValue:i,name:s,repeatDelay:l,repeatType:c,damping:d,type:f}=t;if(!(((g=i==null?void 0:i.owner)==null?void 0:g.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:x}=i.owner.getProps();return UE()&&s&&kE.has(s)&&(s!=="transform"||!x)&&!p&&!l&&c!=="mirror"&&d!==0&&f!=="inertia"}const PE=40;class VE extends Cm{constructor({autoplay:i=!0,delay:s=0,type:l="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:f="loop",keyframes:m,name:p,motionValue:x,element:g,...b}){var j;super(),this.stop=()=>{var C,E;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=Ht.now();const v={autoplay:i,delay:s,type:l,repeat:c,repeatDelay:d,repeatType:f,name:p,motionValue:x,element:g,...b},S=(g==null?void 0:g.KeyframeResolver)||Am;this.keyframeResolver=new S(m,(C,E,T)=>this.onKeyframesResolved(C,E,v,!T),p,x,g),(j=this.keyframeResolver)==null||j.scheduleResolve()}onKeyframesResolved(i,s,l,c){this.keyframeResolver=void 0;
60const{name:d,type:f,velocity:m,delay:p,isHandoff:x,onUpdate:g}=l;this.resolvedAt=Ht.now(),_E(i,d,f,m)||((fi.instantAnimations||!p)&&(g==null||g(Tm(i,l,s))),i[0]=i[i.length-1],wh(l),l.repeat=0);const v={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>PE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...l,keyframes:i},S=!x&&LE(v)?new OE({...v,element:v.motionValue.owner.current}):new Em(v);S.finished.then(()=>this.notifyFinished()).catch(bn),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(i,s){return this.finished.finally(i).then(()=>{})}get animation(){var i;return this._animation||((i=this.keyframeResolver)==null||i.resume(),jE()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(i){this.animation.time=i}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(i){this.animation.speed=i}get startTime(){return this.animation.startTime}attachTimeline(i){return this._animation?this.stopTimeline=this.animation.attachTimeline(i):this.pendingTimeline=i,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var i;this._animation&&this.animation.cancel(),(i=this.keyframeResolver)==null||i.cancel()}}const BE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function HE(t){const i=BE.exec(t);if(!i)return[,];const[,s,l,c]=i;return[`--${s??l}`,c]}function B1(t,i,s=1){const[l,c]=HE(t);if(!l)return;const d=window.getComputedStyle(i).getPropertyValue(l);if(d){const f=d.trim();return o1(f)?parseFloat(f):f}return vm(c)?B1(c,i,s+1):c}function Rm(t,i){return(t==null?void 0:t[i])??(t==null?void 0:t.default)??t}const H1=new Set(["width","height","top","left","right","bottom",...Js]),qE={test:t=>t==="auto",parse:t=>t},q1=t=>i=>i.test(t),F1=[Zs,ye,Vn,Pi,DC,OC,qE],qy=t=>F1.find(q1(t));function FE(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||u1(t):!0}const GE=new Set(["brightness","contrast","saturate","opacity"]);function IE(t){const[i,s]=t.slice(0,-1).split("(");if(i==="drop-shadow")return t;const[l]=s.match(jm)||[];if(!l)return t;const c=s.replace(l,"");let d=GE.has(i)?1:0;return l!==s&&(d*=100),i+"("+d+c+")"}const QE=/\b([a-z-]*)\(.*?\)/gu,Nh={...Zi,getAnimatableNone:t=>{const i=t.match(QE);return i?i.map(IE).join(" "):t}},Fy={...Zs,transform:Math.round},$E={rotate:Pi,rotateX:Pi,rotateY:Pi,rotateZ:Pi,scale:dc,scaleX:dc,scaleY:dc,scaleZ:dc,skew:Pi,skewX:Pi,skewY:Pi,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:hl,originX:zy,originY:zy,originZ:ye},zm={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,radius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,backgroundPositionX:ye,backgroundPositionY:ye,...$E,zIndex:Fy,fillOpacity:hl,strokeOpacity:hl,numOctaves:Fy},YE={...zm,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:Nh,WebkitFilter:Nh},G1=t=>YE[t];function I1(t,i){let s=G1(t);return s!==Nh&&(s=Zi),s.getAnimatableNone?s.getAnimatableNone(i):void 0}const KE=new Set(["auto","none","0"]);function XE(t,i,s){let l=0,c;for(;l<t.length&&!c;){const d=t[l];typeof d=="string"&&!KE.has(d)&&ml(d).values.length&&(c=t[l]),l++}if(c&&s)for(const d of i)t[d]=I1(s,c)}class ZE extends Am{constructor(i,s,l,c,d){super(i,s,l,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:i,element:s,name:l}=this;if(!s||!s.current)return;super.readKeyframes();for(let p=0;p<i.length;p++){let x=i[p];
60if(typeof x=="string"&&(x=x.trim(),vm(x))){const g=B1(x,s.current);g!==void 0&&(i[p]=g),p===i.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!H1.has(l)||i.length!==2)return;const[c,d]=i,f=qy(c),m=qy(d);if(f!==m)if(Py(f)&&Py(m))for(let p=0;p<i.length;p++){const x=i[p];typeof x=="string"&&(i[p]=parseFloat(x))}else ka[l]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:i,name:s}=this,l=[];for(let c=0;c<i.length;c++)(i[c]===null||FE(i[c]))&&l.push(c);l.length&&XE(i,l,s)}measureInitialState(){const{element:i,unresolvedKeyframes:s,name:l}=this;if(!i||!i.current)return;l==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ka[l](i.measureViewportBox(),window.getComputedStyle(i.current)),s[0]=this.measuredOrigin;const c=s[s.length-1];c!==void 0&&i.getValue(l,c).jump(c,!1)}measureEndState(){var m;const{element:i,name:s,unresolvedKeyframes:l}=this;if(!i||!i.current)return;const c=i.getValue(s);c&&c.jump(this.measuredOrigin,!1);const d=l.length-1,f=l[d];l[d]=ka[s](i.measureViewportBox(),window.getComputedStyle(i.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEac
60h(([p,x])=>{i.getValue(p).set(x)}),this.resolveNoneKeyframes()}}function JE(t,i,s){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let l=document;const c=(s==null?void 0:s[t])??l.querySelectorAll(t);return c?Array.from(c):[]}return Array.from(t)}const Q1=(t,i)=>i&&typeof t=="number"?i.transform(t):t;function $1(t){return c1(t)&&"offsetHeight"in t}const Gy=30,WE=t=>!isNaN(parseFloat(t));class e4{constructor(i,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=l=>{var d;const c=Ht.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(l),this.current!==this.prev&&((d=this.events.change)==null||d.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty()},this.hasAnimated=!1,this.setCurrent(i),this.owner=s.owner}setCurrent(i){this.current=i,this.updatedAt=Ht.now(),this.canTrackVelocity===null&&i!==void 0&&(this.canTrackVelocity=WE(this.current))}setPrevFrameValue(i=this.current){this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt}onChange(i){return this.on("change",i)}on(i,s){this.events[i]||(this.events[i]=new xm);const l=this.events[i].add(s);return i==="change"?()=>{l(),Qe.read(()=>{this.events.change.getSize()||this.stop()})}:l}clearListeners(){for(const i in this.events)this.events[i].clear()}attach(i,s){this.passiveEffect=i,this.stopPassiveEffect=s}set(i){this.passiveEffect?this.passiveEffect(i,this.updateAndNotify):this.updateAndNotify(i)}setWithVelocity(i,s,l){this.set(s),this.prev=void 0,this.prevFrameValue=i,this.prevUpdatedAt=this.updatedAt-l}jump(i,s=!0){this.updateAndNotify(i),this.prev=i,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var i;(i=this.events.change)==null||i.notify(this.current)}addDependent(i){this.dependents||(this.dependents=new Set),this.dependents.add(i)}removeDependent(i){this.dependents&&this.dependents.delete(i)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const i=Ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||i-this.updatedAt>Gy)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Gy);return d1(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(i){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=i(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var i,s;(i=this.dependents)==null||i.clear(),(s=this.events.destroy)==null||s.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Is(t,i){return new e4(t,i)}const{schedule:Mm}=w1(queueMicrotask,!1),Sn={x:!1,y:!1};function Y1(){return Sn.x||Sn.y}function t4(t){return t==="x"||t==="y"?Sn[t]?null:(Sn[t]=!0,()=>{Sn[t]=!1}):Sn.x||Sn.y?null:(Sn.x=Sn.y=!0,()=>{Sn.x=Sn.y=!1})}function K1(t,i){const s=JE(t),l=new AbortController,c={passive:!0,...i,signal:l.signal};return[s,c,()=>l.abort()]}function Iy(t){return!(t.pointerType==="touch"||Y1())}function n4(t,i,s={}){const[l,c,d]=K1(t,s),f=m=>{if(!Iy(m))return;const{target:p}=m,x=i(p,m);if(typeof x!="function"||!p)return;const g=b=>{Iy(b)&&(x(b),p.removeEventListener("pointerleave",g))};p.addEventListener("pointerleave",g,c)};return l.forEach(m=>{m.addEventListener("pointerenter",f,c)}),d}const X1=(t,i)=>i?t===i?!0:X1(t,i.parentElement):!1,Om=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,i4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function a4(t){return i4.has(t.tagName)||t.tabIndex!==-1}const wc=new WeakSet;function Qy(t){return i=>{i.key==="Enter"&&t(i)}}function Bf(t,i){t.dispatchEvent(new PointerEvent("pointer"+i,{isPrimary:!0,bubbles:!0}))}const s4=(t,i)=>{const s=t.currentTarget;if(!s)return;const l=Qy(()=>{if(wc.has(s))return;Bf(s,"down");const c=Qy(()=>{Bf(s,"up")}),d=()=>Bf(s,"cancel");s.addEventListener("keyup",c,i),s.addEventListener("blur",d,i)});s.addEventListener("keydown",l,i),s.addEventListener("blur",()=>s.removeEventListener("keydown",l),i)};function $y(t){return Om(t)&&!Y1()}function r4(t,i,s={}){const[l,c,d]=K1(t,s),f=m=>{const p=m.currentTarget;if(!$y(m))return;wc.add(p);const x=i(p,m),g=(S,j)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",v),wc.has(p)&&wc.delete(p),$y(S)&&typeof x=="function"&&x(S,{success:j})},b=S=>{g(S,p===window||p===document||s.useGlobalTarget||X1(p,S.target))},v=S=>{g(S,!1)};window.addEventListener("pointerup",b,c),window.addEventListener("pointercancel",v,c)};return l.forEach(m=>{(s.useGlobalTarget?window:m).addEventListener("pointerdown",f,c),$1(m)&&(m.addEventListener("focus",x=>s4(x,c)),!a4(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function Z1(t){return c1(t)&&"ownerSVGElement"in t}function l4(t){return Z1(t)&&t.tagName==="svg"}const Tt=t=>!!(t&&t.getVelocity),o4=[...F1,ut,Zi],c4=t=>o4.find(q1(t)),Dm=N.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Yy(t,i){if(typeof t=="function")return t(i);t!=null&&(t.current=i)}function u4(...t){return i=>{let s=!1;const l=t.map(c=>{const d=Yy(c,i);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let c=0;c<l.length;c++){const d=l[c];typeof d=="function"?d():Yy(t[c],null)}}}}function d4(...t){return N.useCallback(u4(...t),t)}class f4 extends N.Component{getSnapshotBeforeUpdate(i){const s=this.props.childRef.current;if(s&&i.isPresent&&!this.props.isPresent){const l=s.offsetParent,c=$1(l)&&l.offsetWidth||0,d=this.props.sizeRef.current;d.height=s.offsetHeight||0,d.width=s.offsetWidth||0,d.top=s.offsetTop,d.left=s.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h4({children:t,isPresent:i,anchorX:s,root:l}){const c=N.useId(),d=N.useRef(null),f=N.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=N.useContext(Dm),p=d4(d,t==null?void 0:t.ref);return N.useInsertionEffect(()=>{const{width:x,height:g,top:b,left:v,right:S}
vendor: 14,524 bytes, lines 60-68
60=f.current;if(i||!d.current||!x||!g)return;const j=s==="left"?`left: ${v}`:`right: ${S}`;d.current.dataset.motionPopId=c;const C=document.createElement("style");m&&(C.nonce=m);const E=l??document.head;return E.appendChild(C),C.sheet&&C.sheet.insertRule(`
61          [data-motion-pop-id="${c}"] {
62            position: absolute !important;
63            width: ${x}px !important;
64            height: ${g}px !important;
65            ${j}px !important;
66            top: ${b}px !important;
67          }
68        `),()=>{E.contains(C)&&E.removeChild(C)}},[i]),r.jsx(f4,{isPresent:i,childRef:d,sizeRef:f,children:N.cloneElement(t,{ref:p})})}const m4=({children:t,initial:i,isPresent:s,onExitComplete:l,custom:c,presenceAffectsLayout:d,mode:f,anchorX:m,root:p})=>{const x=um(p4),g=N.useId();let b=!0,v=N.useMemo(()=>(b=!1,{id:g,initial:i,isPresent:s,custom:c,onExitComplete:S=>{x.set(S,!0);for(const j of x.values())if(!j)return;l&&l()},register:S=>(x.set(S,!1),()=>x.delete(S))}),[s,x,l]);return d&&b&&(v={...v}),N.useMemo(()=>{x.forEach((S,j)=>x.set(j,!1))},[s]),N.useEffect(()=>{!s&&!x.size&&l&&l()},[s]),f==="popLayout"&&(t=r.jsx(h4,{isPresent:s,anchorX:m,root:p,children:t})),r.jsx(Fc.Provider,{value:v,children:t})};function p4(){return new Map}function J1(t=!0){const i=N.useContext(Fc);if(i===null)return[!0,null];const{isPresent:s,onExitComplete:l,register:c}=i,d=N.useId();N.useEffect(()=>{if(t)return c(d)},[t]);const f=N.useCallback(()=>t&&l&&l(d),[d,l,t]);return!s&&l?[!1,f]:[!0]}const fc=t=>t.key||"";function Ky(t){const i=[];return N.Children.forEach(t,s=>{N.isValidElement(s)&&i.push(s)}),i}const en=({children:t,custom:i,initial:s=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:m="left",root:p})=>{const[x,g]=J1(f),b=N.useMemo(()=>Ky(t),[t]),v=f&&!x?[]:b.map(fc),S=N.useRef(!0),j=N.useRef(b),C=um(()=>new Map),[E,T]=N.useState(b),[_,O]=N.useState(b);l1(()=>{S.current=!1,j.current=b;for(let ee=0;ee<_.length;ee++){const Y=fc(_[ee]);v.includes(Y)?C.delete(Y):C.get(Y)!==!0&&C.set(Y,!1)}},[_,v.length,v.join("-")]);const U=[];if(b!==E){let ee=[...b];for(let Y=0;Y<_.length;Y++){const I=_[Y],ie=fc(I);v.includes(ie)||(ee.splice(Y,0,I),U.push(I))}return d==="wait"&&U.length&&(ee=U),O(Ky(ee)),T(b),null}const{forceRender:Q}=N.useContext(cm);return r.jsx(r.Fragment,{children:_.map(ee=>{const Y=fc(ee),I=f&&!x?!1:b===_||v.includes(Y),ie=()=>{if(C.has(Y))C.set(Y,!0);else return;let re=!0;C.forEach(ne=>{ne||(re=!1)}),re&&(Q==null||Q(),O(j.current),f&&(g==null||g()),l&&l())};return r.jsx(m4,{isPresent:I,initial:!S.current||s?void 0:!1,custom:i,presenceAffectsLayout:c,mode:d,root:p,onExitComplete:I?void 0:ie,anchorX:m,children:ee},Y)})})},W1=N.createContext({strict:!1}),Xy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Qs={};for(const t in Xy)Qs[t]={isEnabled:i=>Xy[t].some(s=>!!i[s])};function x4(t){for(const i in t)Qs[i]={...Qs[i],...t[i]}}const g4=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Dc(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||g4.has(t)}let ej=t=>!Dc(t);function y4(t){typeof t=="function"&&(ej=i=>i.startsWith("on")?!Dc(i):t(i))}try{y4(require("@emotion/is-prop-valid").default)}catch{}function b4(t,i,s){const l={};for(const c in t)c==="values"&&typeof t.values=="object"||(ej(c)||s===!0&&Dc(c)||!i&&!Dc(c)||t.draggable&&c.startsWith("onDrag"))&&(l[c]=t[c]);return l}const Gc=N.createContext({});function Ic(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function pl(t){return typeof t=="string"||Array.isArray(t)}const _m=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],km=["initial",..._m];function Qc(t){return Ic(t.animate)||km.some(i=>pl(t[i]))}function tj(t){return!!(Qc(t)||t.variants)}function v4(t,i){if(Qc(t)){const{initial:s,animate:l}=t;return{initial:s===!1||pl(s)?s:void 0,animate:pl(l)?l:void 0}}return t.inherit!==!1?i:{}}function j4(t){const{initial:i,animate:s}=v4(t,N.useContext(Gc));return N.useMemo(()=>({initial:i,animate:s}),[Zy(i),Zy(s)])}function Zy(t){return Array.isArray(t)?t.join(" "):t}const xl={};function w4(t){for(const i in t)xl[i]=t[i],bm(i)&&(xl[i].isCSSVariable=!0)}function nj(t,{layout:i,layoutId:s}){return Ws.has(t)||t.startsWith("origin")||(i||s!==void 0)&&(!!xl[t]||t==="opacity")}const N4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S4=Js.length;function T4(t,i,s){let l="",c=!0;for(let d=0;d<S4;d++){const f=Js[d],m=t[f];if(m===void 0)continue;let p=!0;if(typeof m=="number"?p=m===(f.startsWith("scale")?1:0):p=parseFloat(m)===0,!p||s){const x=Q1(m,zm[f]);if(!p){c=!1;const g=N4[f]||f;l+=`${g}(${x}) `}s&&(i[f]=x)}}return l=l.trim(),s?l=s(i,c?"":l):c&&(l="none"),l}function Um(t,i,s){const{style:l,vars:c,transformOrigin:d}=t;let f=!1,m=!1;for(const p in i){const x=i[p];if(Ws.has(p)){f=!0;continue}else if(bm(p)){c[p]=x;continue}else{const g=Q1(x,zm[p]);p.startsWith("origin")?(m=!0,d[p]=g):l[p]=g}}if(i.transform||(f||s?l.transform=T4(i,t.transform,s):l.transform&&(l.transform="none")),m){const{originX:p="50%",originY:x="50%",originZ:g=0}=d;l.transformOrigin=`${p} ${x} ${g}`}}const Lm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ij(t,i,s){for(const l in i)!Tt(i[l])&&!nj(l,s)&&(t[l]=i[l])}function C4({transformTemplate:t},i){return N.useMemo(()=>{const s=Lm();return Um(s,i,t),Object.assign({},s.vars,s.style)},[i])}function E4(t,i){const s=t.style||{},l={};return ij(l,s,t),Object.assign(l,C4(t,i)),l}function A4(t,i){const s={},l=E4(t,i);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,l.userSelect=l.WebkitUserSelect=l.WebkitTouchCallout="none",l.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=l,s}const R4={offset:"stroke-dashoffset",array:"stroke-dasharray"},z4={offset:"strokeDashoffset",array:"strokeDasharray"};function M4(t,i,s=1,l=0,c=!0){t.pathLength=1;const d=c?R4:z4;t[d.offset]=ye.transform(-l);const f=ye.transform(i),m=ye.transform(s);t[d.array]=`${f} ${m}`}function aj(t,{attrX:i,attrY:s,attrScale:l,pathLength:c,pathSpacing:d=1,pathOffset:f=0,...m},p,x,g){if(Um(t,m,x),p){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:b,style:v}=t;b.transform&&(v.transform=b.transform,delete b.transform),(v.transform||b.transformOrigin)&&(v.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),v.transform&&(v.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete b.transformBox),i!==void 0&&(b.x=i),s!==void 0&&(b.y=s),l!==void 0&&(b.scale=l),c!==void 0&&M4(b,c,d,f,!1)}const sj=()=>({...Lm(),attrs:{}}),rj=t=>typeof t=="string"&&t.toLowerCase()==="svg";function O4(t,i,s,l){const c=N.useMemo(()=>{const d=sj();return aj(d,i,rj(l),t.transformTemplate,t.style),{...d.attrs,style:{...d.style}}},[i]);if(t.style){const d={};ij(d,t.style,t),c.style={...d,...c.style}}return c}const D4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pm(t){return typeof t!="string"||t.includes("-")?!1:!!(D4.indexOf(t)>-1||/[A-Z]/u.test(t))}function _4(t,i,s,{latestValues:l},c,d=!1){const m=(Pm(t)?O4:A4)(i,l,c,t),p=b4(i,typeof t=="string",d),x=t!==N.Fragment?{...p,...m,ref:s}:{},{children:g}=i,b=N.useMemo(()=>Tt(g)?g.get():g,[g]);return N.createElement(t,{...x,children:b})}function Jy(t){const i=[{},{}];return t==null||t.values.forEach((s,l)=>{i[0][l]=s.get(),i[1][l]=s.getVelocity()}),i}function Vm(t,i,s,l){if(typeof i=="function"){const[c,d]=Jy(l);i=i(s!==void 0?s:t.custom,c,d)}if(typeof i=="string"&&(i=t.variants&&t.variants[i]),typeof i=="function"){const[c,d]=Jy(l);i=i(s!==void 0?s:t.custom,c,d)}return i}function Nc(t){return Tt(t)?t.get():t}function k4({scrapeMotionValuesFromProps:t,createRenderState:i},s,l,c){return{latestValues:U4(s,l,c,t),renderState:i()}}function U4(t,i,s,l){const c={},d=l(t,{});for(const v in d)c[v]=Nc(d[v]);let{initial:f,animate:m}=t;const p=Qc(t),x=tj(t);i&&x&&!p&&t.inherit!==!1&&(f===void 0&&(f=i.initial),m===void 0&&(m=i.animate));let g=s?s.initial===!1:!1;g=g||f===!1;const b=g?m:f;if(b&&typeof b!="boolean"&&!Ic(b)){const v=Array.isArray(b)?b:[b];for(let S=0;S<v.length;S++){const j=Vm(t,v[S]);if(j){const{transitionEnd:C,transition:E,...T}=j;for(const _ in T){let O=T[_];if(Array.isArray(O)){const U=g?O.length-1:0;O=O[U]}O!==null&&(c[_]=O)}for(const _ in C)c[_]=C[_]}}}return c}const lj=t=>(i,s)=>{const l=N.useContext(Gc),c=N.useContext(Fc),d=()=>k4(t,i,l,c);return s?d():um(d)};function Bm(t,i,s){var d;const{style:l}=t,c={};for(const f in l)(Tt(l[f])||i.style&&Tt(i.style[f])||nj(f,t)||((d=s==null?void 0:s.getValue(f))==null?void 0:d.liveStyle)!==void 0)&&(c[f]=l[f]);return c}const L4=lj({scrapeMotionValuesFromProps:Bm,createRenderState:Lm});function oj(t,i,s){const l=Bm(t,i,s);for(const c in t)if(Tt(t[c])||Tt(i[c])){const d=Js.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;l[d]=t[c]}return l}const P4=lj({scrapeMotionValuesFromProps:oj,createRenderState:sj}),V4=Symbol.for("motionComponentSymbol");function Cs(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function B4(t,i,s){return N.useCallback(l=>{l&&t.onMount&&t.onMount(l),i&&(l?i.mount(l):i.unmount()),s&&(typeof s=="function"?s(l):Cs(s)&&(s.current=l))},[i])}const Hm=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),H4="framerAppearId",cj="data-"+Hm(H4),uj=N.createContext({});function q4(t,i,s,l,c){var C,E;const{visualElement:d}=N.useContext(Gc),f=N.useContext(W1),m=N.useContext(Fc),p=N.useContext(Dm).reducedMotion,x=N.useRef(null);l=l||f.renderer,!x.current&&l&&(x.current=l(t,{visualState:i,parent:d,props:s,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:p}));const g=x.current,b=N.useContext(uj);g&&!g.projection&&c&&(g.type==="html"||g.type==="svg")&&F4(x.current,s,c,b);const v=N.useRef(!1);N.useInsertionEffect(()=>{g&&v.current&&g.update(s,m)});const S=s[cj],j=N.useRef(!!S&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,S))&&((E=window.MotionHasOptimisedAnimation)==null?void 0:E.call(window,S)));return l1(()=>{g&&(v.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),j.current&&g.animationState&&g.animationState.animateChanges())}),N.useEffect(()=>{g&&(!j.current&&g.animationState&&g.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,S)}),j.current=!1),g.enteringChildren=void 0)}),g}function F4(t,i,s,l){const{layoutId:c,layout:d,drag:f,dragConstraints:m,layoutScroll:p,layoutRoot:x,layoutCrossfade:g}=i;t.projection=new s(t.latestValues,i["data-framer-portal-id"]?void 0:dj(t.parent)),t.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!f||m&&Cs(m),visualElement:t,animationType:typeof d=="string"?d:"both",initialPromotionConfig:l,crossfade:g,layoutScroll:p,layoutRoot:x})}function dj(t){if(t)return t.options.allowProjection!==!1?t.projection:dj(t.parent)}function Hf(t,{forwardMotionProps:i=!1}={},s,l){s&&x4(s);const c=Pm(t)?P4:L4;function d(m,p){let x;const g={...N.useContext(Dm),...m,layoutId:G4(m)},{isStatic:b}=g,v=j4(m),S=c(m,b);if(!b&&dm){I4();const j=Q4(g);x=j.MeasureLayout,v.visualElement=q4(t,S,g,l,j.ProjectionNode)}return r.jsxs(Gc.Provider,{value:v,children:[x&&v.visualElement?r.jsx(x,{visualElement:v.visualElement,...g}):null,_4(t,m,B4(S,v.visualElement,p),S,b,i)]})}d.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const f=N.forwardRef(d);return f[V4]=t,f}function G4({layoutId:t}){const i=N.useContext(cm).id;return i&&t!==void 0?i+"-"+t:t}function I4(t,i){N.useContext(W1).strict}function Q4(t){const{drag:i,layout:s}=Qs;if(!i&&!s)return{};const l={...i,...s};return{MeasureLayout:i!=null&&i.isEnabled(t)||s!=null&&s.isEnabled(t)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function $4(t,i){if(typeof Proxy>"u")return Hf;const s=new Map,l=(d,f)=>Hf(d,f,t,i),c=(d,f)=>l(d,f);return new Proxy(c,{get:(d,f)=>f==="create"?l:(s.has(f)||s.set(f,Hf(f,void 0,t,i)),s.get(f))})}function fj({top:t,left:i,right:s,bottom:l}){return{x:{min:i,max:s},y:{min:t,max:l}}}function Y4({x:t,y:i}){return{top:i.min,right:t.max,bottom:i.max,left:t.min}}function K4(t,i){if(!i)return t;const s=i({x:t.left,y:t.top}),l=i({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:l.y,right:l.x}}function qf(t){return t===void 0||t===1}function Sh({scale:t,scaleX:i,scaleY:s}){return!qf(t)||!qf(i)||!qf(s)}function va(t){return Sh(t)||hj(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function hj(t){return Wy(t.x)||Wy(t.y)}function Wy(t){return t&&t!=="0%"}function _c(t,i,s){const l=t-s,c=i*l;return s+c}function eb(t,i,s,l,c){return c!==void 0&&(t=_c(t,c,l)),_c(t,s,l)+i}function Th(t,i=0,s=1,l,c){t.min=eb(t.min,i,s,l,c),t.max=eb(t.max,i,s,l,c)}function mj(t,{x:i,y:s}){Th(t.x,i.translate,i.scale,i.originPoint),Th(t.y,s.translate,s.scale,s.originPoint)}const tb=.999999999999,nb=1.0000000000001;function X4(t,i,s,l=!1){const c=s.length;if(!c)return;i.x=i.y=1;let d,f;for(let m=0;m<c;m++){d=s[m],f=d.projectionDelta;const{visualElement:p}=d.options;p&&p.props.style&&p.props.style.display==="contents"||(l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&As(t,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),f&&(i.x*=f.x.scale,i.y*=f.y.scale,mj(t,f)),l&&va(d.latestValues)&&As(t,d.latestValues))}i.x<nb&&i.x>tb&&(i.x=1),i.y<nb&&i.y>tb&&(i.y=1)}function Es(t,i){t.min=t.min+i,t.max=t.max+i}function ib(t,i,s,l,c=.5){const d=$e(t.min,t.max,c);Th(t,i,s,d,l)}
68function As(t,i){ib(t.x,i.x,i.scaleX,i.scale,i.originX),ib(t.y,i.y,i.scaleY,i.scale,i.originY)}function pj(t,i){return fj(K4(t.getBoundingClientRect(),i))}function Z4(t,i,s){const l=pj(t,s),{scroll:c}=i;return c&&(Es(l.x,c.offset.x),Es(l.y,c.offset.y)),l}const ab=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rs=()=>({x:ab(),y:ab()}),sb=()=>({min:0,max:0}),it=()=>({x:sb(),y:sb()}),Ch={current:null},xj={current:!1};function J4(){if(xj.current=!0,!!dm)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),i=()=>Ch.current=t.matches;t.addEventListener("change",i),i()}else Ch.current=!1}const W4=new WeakMap;function e3(t,i,s){for(const l in i){const c=i[l],d=s[l];if(Tt(c))t.addValue(l,c);else if(Tt(d))t.addValue(l,Is(c,{owner:t}));else if(d!==c)if(t.hasValue(l)){const f=t.getValue(l);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=t.getStaticValue(l);t.addValue(l,Is(f!==void 0?f:c,{owner:t}))}}for(const l in s)i[l]===void 0&&t.removeValue(l);return i}const rb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class t3{scrapeMotionValuesFromProps(i,s,l){return{}}constructor({parent:i,props:s,presenceContext:l,reducedMotionConfig:c,blockInitialAnimation:d,visualState:f},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Am,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ht.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Qe.render(this.render,!1,!0))};const{latestValues:p,renderState:x}=f;this.latestValues=p,this.baseTarget={...p},this.initialValues=s.initial?{...p}:{},this.renderState=x,this.parent=i,this.props=s,this.presenceContext=l,this.depth=i?i.depth+1:0,this.reducedMotionConfig=c,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=Qc(s),this.isVariantNode=tj(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(i&&i.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(s,{},this);for(const v in b){const S=b[v];p[v]!==void 0&&Tt(S)&&S.set(p[v])}}mount(i){var s;this.current=i,W4.set(i,this),this.projection&&!this.projection.instance&&this.projection.mount(i),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((l,c)=>this.bindToMotionValue(c,l)),xj.current||J4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ch.current,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var i;this.projection&&this.projection.unmount(),Xi(this.notifyUpdate),Xi(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(i=this.parent)==null||i.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const l=this.features[s];l&&(l.unmount(),l.isMounted=!1)}this.current=null}addChild(i){this.children.add(i),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(i)}removeChild(i){this.children.delete(i),this.enteringChildren&&this.enteringChildren.delete(i)}bindToMotionValue(i,s){this.valueSubscriptions.has(i)&&this.valueSubscriptions.get(i)();const l=Ws.has(i);l&&this.onBindTransform&&this.onBindTransform();const c=s.on("change",f=>{this.latestValues[i]=f,this.props.onUpdate&&Qe.preRender(this.notifyUpdate),l&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,i,s)),this.valueSubscriptions.set(i,()=>{c(),d&&d(),s.owner&&s.stop()})}sortNodePosition(i){return!this.current||!this.sortInstanceNodePosition||this.type!==i.type?0:this.sortInstanceNodePosition(this.current,i.current)}updateFeatures(){let i="animation";for(i in Qs){const s=Qs[i];if(!s)continue;const{isEnabled:l,Feature:c}=s;if(!this.features[i]&&c&&l(this.props)&&(this.features[i]=new c(this)),this.features[i]){const d=this.features[i];
vendor: 33,893 bytes, line 68
68d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):it()}getStaticValue(i){return this.latestValues[i]}setStaticValue(i,s){this.latestValues[i]=s}update(i,s){(i.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=i,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let l=0;l<rb.length;l++){const c=rb[l];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,f=i[d];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=e3(this,this.scrapeMotionValuesFromProps(i,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(i){return this.props.variants?this.props.variants[i]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(i){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(i),()=>s.variantChildren.delete(i)}addValue(i,s){const l=this.values.get(i);s!==l&&(l&&this.removeValue(i),this.bindToMotionValue(i,s),this.values.set(i,s),this.latestValues[i]=s.get())}removeValue(i){this.values.delete(i);const s=this.valueSubscriptions.get(i);s&&(s(),this.valueSubscriptions.delete(i)),delete this.latestValues[i],this.removeValueFromRenderState(i,this.renderState)}hasValue(i){return this.values.has(i)}getValue(i,s){if(this.props.values&&this.props.values[i])return this.props.values[i];let l=this.values.get(i);return l===void 0&&s!==void 0&&(l=Is(s===null?void 0:s,{owner:this}),this.addValue(i,l)),l}readValue(i,s){let l=this.latestValues[i]!==void 0||!this.current?this.latestValues[i]:this.getBaseTargetFromProps(this.props,i)??this.readValueFromInstance(this.current,i,this.options);return l!=null&&(typeof l=="string"&&(o1(l)||u1(l))?l=parseFloat(l):!c4(l)&&Zi.test(s)&&(l=I1(i,s)),this.setBaseTarget(i,Tt(l)?l.get():l)),Tt(l)?l.get():l}setBaseTarget(i,s){this.baseTarget[i]=s}getBaseTarget(i){var d;const{initial:s}=this.props;let l;if(typeof s=="string"||typeof s=="object"){const f=Vm(this.props,s,(d=this.presenceContext)==null?void 0:d.custom);f&&(l=f[i])}if(s&&l!==void 0)return l;const c=this.getBaseTargetFromProps(this.props,i);return c!==void 0&&!Tt(c)?c:this.initialValues[i]!==void 0&&l===void 0?void 0:this.baseTarget[i]}on(i,s){return this.events[i]||(this.events[i]=new xm),this.events[i].add(s)}notify(i,...s){this.events[i]&&this.events[i].notify(...s)}scheduleRenderMicrotask(){Mm.render(this.render)}}class gj extends t3{constructor(){super(...arguments),this.KeyframeResolver=ZE}sortInstanceNodePosition(i,s){return i.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(i,s){return i.style?i.style[s]:void 0}removeValueFromRenderState(i,{vars:s,style:l}){delete s[i],delete l[i]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:i}=this.props;Tt(i)&&(this.childSubscription=i.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}function yj(t,{style:i,vars:s},l,c){const d=t.style;let f;for(f in i)d[f]=i[f];c==null||c.applyProjectionStyles(d,l);for(f in s)d.setProperty(f,s[f])}function n3(t){return window.getComputedStyle(t)}class i3 extends gj{constructor(){super(...arguments),this.type="html",this.renderInstance=yj}readValueFromInstance(i,s){var l;if(Ws.has(s))return(l=this.projection)!=null&&l.isProjecting?gh(s):xE(i,s);{const c=n3(i),d=(bm(s)?c.getPropertyValue(s):c[s])||0;return typeof d=="string"?d.trim():d}}measureInstanceViewportBox(i,{transformPagePoint:s}){return pj(i,s)}build(i,s,l){Um(i,s,l.transformTemplate)}scrapeMotionValuesFromProps(i,s,l){return Bm(i,s,l)}}const bj=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function a3(t,i,s,l){yj(t,i,void 0,l);for(const c in i.attrs)t.setAttribute(bj.has(c)?c:Hm(c),i.attrs[c])}class s3 extends gj{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=it}getBaseTargetFromProps(i,s){return i[s]}readValueFromInstance(i,s){if(Ws.has(s)){const l=G1(s);return l&&l.default||0}return s=bj.has(s)?s:Hm(s),i.getAttribute(s)}scrapeMotionValuesFromProps(i,s,l){return oj(i,s,l)}build(i,s,l){aj(i,s,this.isSVGTag,l.transformTemplate,l.style)}renderInstance(i,s,l,c){a3(i,s,l,c)}mount(i){this.isSVGTag=rj(i.tagName),super.mount(i)}}const r3=(t,i)=>Pm(t)?new s3(i):new i3(i,{allowProjection:t!==N.Fragment});function Os(t,i,s){const l=t.getProps();return Vm(l,i,s!==void 0?s:l.custom,t)}const Eh=t=>Array.isArray(t);function l3(t,i,s){t.hasValue(i)?t.getValue(i).set(s):t.addValue(i,Is(s))}function o3(t){return Eh(t)?t[t.length-1]||0:t}function c3(t,i){const s=Os(t,i);let{transitionEnd:l={},transition:c={},...d}=s||{};d={...d,...l};for(const f in d){const m=o3(d[f]);l3(t,f,m)}}function u3(t){return!!(Tt(t)&&t.add)}function Ah(t,i){const s=t.getValue("willChange");if(u3(s))return s.add(i);if(!s&&fi.WillChange){const l=new fi.WillChange("auto");t.addValue("willChange",l),l.add(i)}}function vj(t){return t.props[cj]}const d3=t=>t!==null;function f3(t,{repeat:i,repeatType:s="loop"},l){const c=t.filter(d3),d=i&&s!=="loop"&&i%2===1?0:c.length-1;return c[d]}const h3={type:"spring",stiffness:500,damping:25,restSpeed:10},m3=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),p3={type:"keyframes",duration:.8},x3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},g3=(t,{keyframes:i})=>i.length>2?p3:Ws.has(t)?t.startsWith("scale")?m3(i[1]):h3:x3;function y3({when:t,delay:i,delayChildren:s,staggerChildren:l,staggerDirection:c,repeat:d,repeatType:f,repeatDelay:m,from:p,elapsed:x,...g}){return!!Object.keys(g).length}const qm=(t,i,s,l={},c,d)=>f=>{const m=Rm(l,t)||{},p=m.delay||l.delay||0;let{elapsed:x=0}=l;x=x-Pn(p);const g={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:i.getVelocity(),...m,delay:-x,onUpdate:v=>{i.set(v),m.onUpdate&&m.onUpdate(v)},onComplete:()=>{f(),m.onComplete&&m.onComplete()},name:t,motionValue:i,element:d?void 0:c};y3(m)||Object.assign(g,g3(t,g)),g.duration&&(g.duration=Pn(g.duration)),g.repeatDelay&&(g.repeatDelay=Pn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let b=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(wh(g),g.delay===0&&(b=!0)),(fi.instantAnimations||fi.skipAnimations)&&(b=!0,wh(g),g.delay=0),g.allowFlatten=!m.type&&!m.ease,b&&!d&&i.get()!==void 0){const v=f3(g.keyframes,m);if(v!==void 0){Qe.update(()=>{g.onUpdate(v),g.onComplete()});return}}return m.isSync?new Em(g):new VE(g)};function b3({protectedKeys:t,needsAnimating:i},s){const l=t.hasOwnProperty(s)&&i[s]!==!0;return i[s]=!1,l}function jj(t,i,{delay:s=0,transitionOverride:l,type:c}={}){let{transition:d=t.getDefaultTransition(),transitionEnd:f,...m}=i;l&&(d=l);const p=[],x=c&&t.animationState&&t.animationState.getState()[c];for(const g in m){const b=t.getValue(g,t.latestValues[g]??null),v=m[g];if(v===void 0||x&&b3(x,g))continue;const S={delay:s,...Rm(d||{},g)},j=b.get();if(j!==void 0&&!b.isAnimating&&!Array.isArray(v)&&v===j&&!S.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const T=vj(t);if(T){const _=window.MotionHandoffAnimation(T,g,Qe);_!==null&&(S.startTime=_,C=!0)}}Ah(t,g),b.start(qm(g,b,v,t.shouldReduceMotion&&H1.has(g)?{type:!1}:S,t,C));const E=b.animation;E&&p.push(E)}return f&&Promise.all(p).then(()=>{Qe.update(()=>{f&&c3(t,f)})}),p}function wj(t,i,s,l=0,c=1){const d=Array.from(t).sort((x,g)=>x.sortNodePosition(g)).indexOf(i),f=t.size,m=(f-1)*l;return typeof s=="function"?s(d,f):c===1?d*l:m-d*l}function Rh(t,i,s={}){var p;const l=Os(t,i,s.type==="exit"?(p=t.presenceContext)==null?void 0:p.custom:void 0);let{transition:c=t.getDefaultTransition()||{}}=l||{};s.transitionOverride&&(c=s.transitionOverride);const d=l?()=>Promise.all(jj(t,l,s)):()=>Promise.resolve(),f=t.variantChildren&&t.variantChildren.size?(x=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:v}=c;return v3(t,i,x,g,b,v,s)}:()=>Promise.resolve(),{when:m}=c;if(m){const[x,g]=m==="beforeChildren"?[d,f]:[f,d];return x().then(()=>g())}else return Promise.all([d(),f(s.delay)])}function v3(t,i,s=0,l=0,c=0,d=1,f){const m=[];for(const p of t.variantChildren)p.notify("AnimationStart",i),m.push(Rh(p,i,{...f,delay:s+(typeof l=="function"?0:l)+wj(t.variantChildren,p,l,c,d)}).then(()=>p.notify("AnimationComplete",i)));return Promise.all(m)}function j3(t,i,s={}){t.notify("AnimationStart",i);let l;if(Array.isArray(i)){const c=i.map(d=>Rh(t,d,s));l=Promise.all(c)}else if(typeof i=="string")l=Rh(t,i,s);else{const c=typeof i=="function"?Os(t,i,s.custom):i;l=Promise.all(jj(t,c,s))}return l.then(()=>{t.notify("AnimationComplete",i)})}function Nj(t,i){if(!Array.isArray(i))return!1;const s=i.length;if(s!==t.length)return!1;for(let l=0;l<s;l++)if(i[l]!==t[l])return!1;return!0}const w3=km.length;function Sj(t){if(!t)return;if(!t.isControllingVariants){const s=t.parent?Sj(t.parent)||{}:{};return t.props.initial!==void 0&&(s.initial=t.props.initial),s}const i={};for(let s=0;s<w3;s++){const l=km[s],c=t.props[l];(pl(c)||c===!1)&&(i[l]=c)}return i}const N3=[..._m].reverse(),S3=_m.length;function T3(t){return i=>Promise.all(i.map(({animation:s,options:l})=>j3(t,s,l)))}function C3(t){let i=T3(t),s=lb(),l=!0;const c=p=>(x,g)=>{var v;const b=Os(t,g,p==="exit"?(v=t.presenceContext)==null?void 0:v.custom:void 0);if(b){const{transition:S,transitionEnd:j,...C}=b;x={...x,...C,...j}}return x};function d(p){i=p(t)}function f(p){const{props:x}=t,g=Sj(t.parent)||{},b=[],v=new Set;let S={},j=1/0;for(let E=0;E<S3;E++){const T=N3[E],_=s[T],O=x[T]!==void 0?x[T]:g[T],U=pl(O),Q=T===p?_.isActive:null;Q===!1&&(j=E);let ee=O===g[T]&&O!==x[T]&&U;if(ee&&l&&t.manuallyAnimateOnMount&&(ee=!1),_.protectedKeys={...S},!_.isActive&&Q===null||!O&&!_.prevProp||Ic(O)||typeof O=="boolean")continue;const Y=E3(_.prevProp,O);let I=Y||T===p&&_.isActive&&!ee&&U||E>j&&U,ie=!1;const re=Array.isArray(O)?O:[O];let ne=re.reduce(c(T),{});Q===!1&&(ne={});const{prevResolvedValues:xe={}}=_,Ce={...xe,...ne},ae=J=>{I=!0,v.has(J)&&(ie=!0,v.delete(J)),_.needsAnimating[J]=!0;const se=t.getValue(J);se&&(se.liveStyle=!1)};for(const J in Ce){const se=ne[J],ge=xe[J];if(S.hasOwnProperty(J))continue;let te=!1;Eh(se)&&Eh(ge)?te=!Nj(se,ge):te=se!==ge,te?se!=null?ae(J):v.add(J):se!==void 0&&v.has(J)?ae(J):_.protectedKeys[J]=!0}_.prevProp=O,_.prevResolvedValues=ne,_.isActive&&(S={...S,...ne}),l&&t.blockInitialAnimation&&(I=!1);const q=ee&&Y;I&&(!q||ie)&&b.push(...re.map(J=>{const se={type:T};if(typeof J=="string"&&l&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ge}=t,te=Os(ge,J);if(ge.enteringChildren&&te){const{delayChildren:A}=te.transition||{};se.delay=wj(ge.enteringChildren,t,A)}}return{animation:J,options:se}}))}if(v.size){const E={};if(typeof x.initial!="boolean"){const T=Os(t,Array.isArray(x.initial)?x.initial[0]:x.initial);T&&T.transition&&(E.transition=T.transition)}v.forEach(T=>{const _=t.getBaseTarget(T),O=t.getValue(T);O&&(O.liveStyle=!0),E[T]=_??null}),b.push({animation:E})}let C=!!b.length;return l&&(x.initial===!1||x.initial===x.animate)&&!t.manuallyAnimateOnMount&&(C=!1),l=!1,C?i(b):Promise.resolve()}function m(p,x){var b;if(s[p].isActive===x)return Promise.resolve();(b=t.variantChildren)==null||b.forEach(v=>{var S;return(S=v.animationState)==null?void 0:S.setActive(p,x)}),s[p].isActive=x;const g=f(p);for(const v in s)s[v].protectedKeys={};return g}return{animateChanges:f,setActive:m,setAnimateFunction:d,getState:()=>s,reset:()=>{s=lb()}}}function E3(t,i){return typeof i=="string"?i!==t:Array.isArray(i)?!Nj(i,t):!1}function ba(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lb(){return{animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()}}class Ji{constructor(i){this.isMounted=!1,this.node=i}update(){}}class A3 extends Ji{constructor(i){super(i),i.animationState||(i.animationState=C3(i))}updateAnimationControlsSubscription(){const{animate:i}=this.node.getProps();Ic(i)&&(this.unmountControls=i.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:i}=this.node.getProps(),{animate:s}=this.node.prevProps||{};i!==s&&this.updateAnimationControlsSubscription()}unmount(){var i;this.node.animationState.reset(),(i=this.unmountControls)==null||i.call(this)}}let R3=0;class z3 extends Ji{constructor(){super(...arguments),this.id=R3++}update(){if(!this.node.presenceContext)return;const{isPresent:i,onExitComplete:s}=this.node.presenceContext,{isPresent:l}=this.node.prevPresenceContext||{};if(!this.node.animationState||i===l)return;const c=this.node.animationState.setActive("exit",!i);s&&!i&&c.then(()=>{s(this.id)})}mount(){const{register:i,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),i&&(this.unmount=i(this.id))}unmount(){}}const M3={animation:{Feature:A3},exit:{Feature:z3}};function gl(t,i,s,l={passive:!0}){return t.addEventListener(i,s,l),()=>t.removeEventListener(i,s)}function _l(t){return{point:{x:t.pageX,y:t.pageY}}}const O3=t=>i=>Om(i)&&t(i,_l(i));function rl(t,i,s,l){return gl(t,i,O3(s),l)}const Tj=1e-4,D3=1-Tj,_3=1+Tj,Cj=.01,k3=0-Cj,U3=0+Cj;function zt(t){return t.max-t.min}function L3(t,i,s){return Math.abs(t-i)<=s}function ob(t,i,s,l=.5){t.origin=l,t.originPoint=$e(i.min,i.max,t.origin),t.scale=zt(s)/zt(i),t.translate=$e(s.min,s.max,t.origin)-t.originPoint,(t.scale>=D3&&t.scale<=_3||isNaN(t.scale))&&(t.scale=1),(t.translate>=k3&&t.translate<=U3||isNaN(t.translate))&&(t.translate=0)}function ll(t,i,s,l){ob(t.x,i.x,s.x,l?l.originX:void 0),ob(t.y,i.y,s.y,l?l.originY:void 0)}function cb(t,i,s){t.min=s.min+i.min,t.max=t.min+zt(i)}function P3(t,i,s){cb(t.x,i.x,s.x),cb(t.y,i.y,s.y)}function ub(t,i,s){t.min=i.min-s.min,t.max=t.min+zt(i)}function ol(t,i,s){ub(t.x,i.x,s.x),ub(t.y,i.y,s.y)}function mn(t){return[t("x"),t("y")]}const Ej=({current:t})=>t?t.ownerDocument.defaultView:null,db=(t,i)=>Math.abs(t-i);function V3(t,i){const s=db(t.x,i.x),l=db(t.y,i.y);return Math.sqrt(s**2+l**2)}class Aj{constructor(i,s,{transformPagePoint:l,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:f=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Gf(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,j=V3(v.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!j)return;const{point:C}=v,{timestamp:E}=jt;this.history.push({...C,timestamp:E});const{onStart:T,onMove:_}=this.handlers;S||(T&&T(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,v)},this.handlePointerMove=(v,S)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=Ff(S,this.transformPagePoint),Qe.update(this.updatePoint,!0)},this.handlePointerUp=(v,S)=>{this.end();const{onEnd:j,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Gf(v.type==="pointercancel"?this.lastMoveEventInfo:Ff(S,this.transformPagePoint),this.history);this.startEvent&&j&&j(v,T),C&&C(v,T)},!Om(i))return;this.dragSnapToOrigin=d,this.handlers=s,this.transformPagePoint=l,this.distanceThreshold=f,this.contextWindow=c||window;const m=_l(i),p=Ff(m,this.transformPagePoint),{point:x}=p,{timestamp:g}=jt;this.history=[{...x,timestamp:g}];const{onSessionStart:b}=s;b&&b(i,Gf(p,this.history)),this.removeListeners=Ml(rl(this.contextWindow,"pointermove",this.handlePointerMove),rl(this.contextWindow,"pointerup",this.handlePointerUp),rl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(i){this.handlers=i}end(){this.removeListeners&&this.removeListeners(),Xi(this.updatePoint)}}function Ff(t,i){return i?{point:i(t.point)}:t}function fb(t,i){return{x:t.x-i.x,y:t.y-i.y}}function Gf({point:t},i){return{point:t,delta:fb(t,Rj(i)),offset:fb(t,B3(i)),velocity:H3(i,.1)}}function B3(t){return t[0]}function Rj(t){return t[t.length-1]}function H3(t,i){if(t.length<2)return{x:0,y:0};let s=t.length-1,l=null;const c=Rj(t);for(;s>=0&&(l=t[s],!(c.timestamp-l.timestamp>Pn(i)));)s--;if(!l)return{x:0,y:0};const d=yn(c.timestamp-l.timestamp);if(d===0)return{x:0,y:0};const f={x:(c.x-l.x)/d,y:(c.y-l.y)/d};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function q3(t,{min:i,max:s},l){return i!==void 0&&t<i?t=l?$e(i,t,l.min):Math.max(t,i):s!==void 0&&t>s&&(t=l?$e(s,t,l.max):Math.min(t,s)),t}function hb(t,i,s){return{min:i!==void 0?t.min+i:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function F3(t,{top:i,left:s,bottom:l,right:c}){return{x:hb(t.x,s,c),y:hb(t.y,i,l)}}function mb(t,i){let s=i.min-t.min,l=i.max-t.max;return i.max-i.min<t.max-t.min&&([s,l]=[l,s]),{min:s,max:l}}function G3(t,i){return{x:mb(t.x,i.x),y:mb(t.y,i.y)}}function I3(t,i){let s=.5;const l=zt(t),c=zt(i);return c>l?s=fl(i.min,i.max-l,t.min):l>c&&(s=fl(t.min,t.max-c,i.min)),di(0,1,s)}function Q3(t,i){const s={};return i.min!==void 0&&(s.min=i.min-t.min),i.max!==void 0&&(s.max=i.max-t.min),s}const zh=.35;function $3(t=zh){return t===!1?t=0:t===!0&&(t=zh),{x:pb(t,"left","right"),y:pb(t,"top","bottom")}}function pb(t,i,s){return{min:xb(t,i),max:xb(t,s)}}function xb(t,i){return typeof t=="number"?t:t[i]||0}const Y3=new WeakMap;class K3{constructor(i){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=it(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=i}start(i,{snapToCursor:s=!1,distanceThreshold:l}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=b=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(_l(b).point)},f=(b,v)=>{const{drag:S,dragPropagation:j,onDragStart:C}=this.getProps();if(S&&!j&&(this.openDragLock&&this.openDragLock(),this.openDragLock=t4(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mn(T=>{let _=this.getAxisMotionValue(T).get()||0;if(Vn.test(_)){const{projection:O}=this.visualElement;if(O&&O.layout){const U=O.layout.layoutBox[T];U&&(_=zt(U)*(parseFloat(_)/100))}}this.originPoint[T]=_}),C&&Qe.postRender(()=>C(b,v)),Ah(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},m=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v;const{dragPropagation:S,dragDirectionLock:j,onDirectionLock:C,onDrag:E}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:T}=v;if(j&&this.currentDirection===null){this.currentDirection=X3(T),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,T),this.updateAxis("y",v.point,T),this.visualElement.render(),E&&E(b,v)},p=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v,this.stop(b,v),this.latestPointerEvent=null,this.latestPanInfo=null},x=()=>mn(b=>{var v;return this.getAnimationState(b)==="paused"&&((v=this.getAxisMotionValue(b).animation)==null?void 0:v.play())}),{dragSnapToOrigin:g}=this.getProps();this.panSession=new Aj(i,{onSessionStart:d,onStart:f,onMove:m,onSessionEnd:p,resumeAnimation:x},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:l,contextWindow:Ej(this.visualElement)})}stop(i,s){const l=i||this.latestPointerEvent,c=s||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!l)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:m}=this.getProps();m&&Qe.postRender(()=>m(l,c))}cancel(){this.isDragging=!1;const{projection:i,animationState:s}=this.visualElement;i&&(i.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:l}=this.getProps();!l&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}updateAxis(i,s,l){const{drag:c}=this.getProps();if(!l||!hc(i,c,this.currentDirection))return;const d=this.getAxisMotionValue(i);let f=this.originPoint[i]+l[i];this.constraints&&this.constraints[i]&&(f=q3(f,this.constraints[i],this.elastic[i])),d.set(f)}resolveConstraints(){var d;const{dragConstraints:i,dragElastic:s}=this.getProps(),l=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(d=this.visualElement.projection)==null?void 0:d.layout,c=this.constraints;i&&Cs(i)?this.constraints||(this.constraints=this.resolveRefConstraints()):i&&l?this.constraints=F3(l.layoutBox,i):this.constraints=!1,this.elastic=$3(s),c!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&mn(f=>{this.constraints!==!1&&this.getAxisMotionValue(f)&&(this.constraints[f]=Q3(l.layoutBox[f],this.constraints[f]))})}resolveRefConstraints(){const{dragConstraints:i,onMeasureDragConstraints:s}=this.getProps();if(!i||!Cs(i))return!1;const l=i.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=Z4(l,c.root,this.visualElement.getTransformPagePoint());let f=G3(c.layout.layoutBox,d);if(s){const m=s(Y4(f));this.hasMutatedConstraints=!!m,m&&(f=fj(m))}return f}startAnimation(i){const{drag:s,dragMomentum:l,dragElastic:c,dragTransition:d,dragSnapToOrigin:f,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},x=mn(g=>{if(!hc(g,s,this.currentDirection))return;let b=p&&p[g]||{};f&&(b={min:0,max:0});const v=c?200:1e6,S=c?40:1e7,j={type:"inertia",velocity:l?i[g]:0,bounceStiffness:v,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...d,...b};return this.startAxisValueAnimation(g,j)});return Promise.all(x).then(m)}startAxisValueAnimation(i,s){const l=this.getAxisMotionValue(i);return Ah(this.visualElement,i),l.start(qm(i,l,0,s,this.visualElement,!1))}stopAnimation(){mn(i=>this.getAxisMotionValue(i).stop())}pauseAnimation(){mn(i=>{var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.pause()})}getAnimationState(i){var s;return(s=this.getAxisMotionValue(i).animation)==null?void 0:s.state}getAxisMotionValue(i){const s=`_drag${i.toUpperCase()}`,l=this.visualElement.getProps(),c=l[s];return c||this.visualElement.getValue(i,(l.initial?l.initial[i]:void 0)||0)}snapToCursor(i){mn(s=>{const{drag:l}=this.getProps();if(!hc(s,l,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(s);if(c&&c.layout){const{min:f,max:m}=c.layout.layoutBox[s];d.set(i[s]-$e(f,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:i,dragConstraints:s}=this.getProps(),{projection:l}=this.visualElement;if(!Cs(s)||!l||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};mn(f=>{const m=this.getAxisMotionValue(f);if(m&&this.constraints!==!1){const p=m.get();c[f]=I3({min:p,max:p},this.constraints[f])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",l.root&&l.root.updateScroll(),l.updateLayout(),this.resolveConstraints(),mn(f=>{if(!hc(f,i,null))return;const m=this.getAxisMotionValue(f),{min:p,max:x}=this.constraints[f];m.set($e(p,x,c[f]))})}addListeners(){if(!this.visualElement.current)return;Y3.set(this.visualElement,this);const i=this.visualElement.current,s=rl(i,"pointerdown",p=>{const{drag:x,dragListener:g=!0}=this.getProps();x&&g&&this.start(p)}),l=()=>{const{dragConstraints:p}=this.getProps();Cs(p)&&p.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",l);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Qe.read(l);const f=gl(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:x})=>{this.isDragging&&x&&(mn(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=p[g].translate,b.set(b.get()+p[g].translate))}),this.visualElement.render())}));return()=>{f(),s(),d(),m&&m()}}getProps(){const i=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:l=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:f=zh,dragMomentum:m=!0}=i;return{...i,drag:s,dragDirectionLock:l,dragPropagation:c,dragConstraints:d,dragElastic:f,dragMomentum:m}}}function hc(t,i,s){return(i===!0||i===t)&&(s===null||s===t)}function X3(t,i=10){let s=null;return Math.abs(t.y)>i?s="y":Math.abs(t.x)>i&&(s="x"),s}class Z3 extends Ji{constructor(i){super(i),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new K3(i)}mount(){const{dragControls:i}=this.node.getProps();i&&(this.removeGroupControls=i.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const gb=t=>(i,s)=>{t&&Qe.postRender(()=>t(i,s))};class J3 extends Ji{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(i){this.session=new Aj(i,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ej(this.node)})}createPanHandlers(){const{onPanSessionStart:i,onPanStart:s,onPan:l,onPanEnd:c}=this.node.getProps();return{onSessionStart:gb(i),onStart:gb(s),onMove:l,onEnd:(d,f)=>{delete this.session,c&&Qe.postRender(()=>c(d,f))}}}mount(){this.removePointerDownListener=rl(this.node.current,"pointerdown",i=>this.onPointerDown(i))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yb(t,i){return i.max===i.min?0:t/(i.max-i.min)*100}const Wr={correct:(t,i)=>{if(!i.target)return t;if(typeof t=="string")if(ye.test(t))t=parseFloat(t);else return t;const s=yb(t,i.target.x),l=yb(t,i.target.y);return`${s}% ${l}%`}},W3={correct:(t,{treeScale:i,projectionDelta:s})=>{const l=t,c=Zi.parse(t);if(c.length>5)return l;const d=Zi.createTransformer(t),f=typeof c[0]!="number"?1:0,m=s.x.scale*i.x,p=s.y.scale*i.y;c[0+f]/=m,c[1+f]/=p;const x=$e(m,p,.5);return typeof c[2+f]=="number"&&(c[2+f]/=x),typeof c[3+f]=="number"&&(c[3+f]/=x),d(c)}};let If=!1;class eA extends N.Component{componentDidMount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l,layoutId:c}=this.props,{projection:d}=i;w4(tA),d&&(s.group&&s.group.add(d),l&&l.register&&c&&l.register(d),If&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),Sc.hasEverUpdated=!0}getSnapshotBeforeUpdate(i){const{layoutDependency:s,visualElement:l,drag:c,isPresent:d}=this.props,{projection:f}=l;return f&&(f.isPresent=d,If=!0,c||i.layoutDependency!==s||s===void 0||i.isPresent!==d?f.willUpdate():this.safeToRemove(),i.isPresent!==d&&(d?f.promote():f.relegate()||Qe.postRender(()=>{const m=f.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:i}=this.props.visualElement;i&&(i.root.didUpdate(),Mm.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:i,layoutGroup:s,switchLayoutGroup:l}=this.props,{projection:c}=i;If=!0,c&&(c.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(c),l&&l.deregister&&l.deregister(c))}safeToRemove(){const{safeToRemove:i}=this.props;i&&i()}render(){return null}}function zj(t){const[i,s]=J1(),l=N.useContext(cm);return r.jsx(eA,{...t,layoutGroup:l,switchLayoutGroup:N.useContext(uj),isPresent:i,safeToRemove:s})}const tA={borderRadius:{...Wr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Wr,borderTopRightRadius:Wr,borderBottomLeftRadius:Wr,borderBottomRightRadius:Wr,boxShadow:W3};function nA(t,i,s){const l=Tt(t)?t:Is(t);return l.start(qm("",l,i,s)),l.animation}const iA=(t,i)=>t.depth-i.depth;class aA{constructor(){this.children=[],this.isDirty=!1}add(i){fm(this.children,i),this.isDirty=!0}remove(i){hm(this.children,i),this.isDirty=!0}forEach(i){this.isDirty&&this.children.sort(iA),this.isDirty=!1,this.children.forEach(i)}}function sA(t,i){const s=Ht.now(),l=({timestamp:c})=>{const d=c-s;d>=i&&(Xi(l),t(d-i))};return Qe.setup(l,!0),()=>Xi(l)}const Mj=["TopLeft","TopRight","BottomLeft","BottomRight"],rA=Mj.length,bb=t=>typeof t=="string"?parseFloat(t):t,vb=t=>typeof t=="number"||ye.test(t);function lA(t,i,s,l,c,d){c?(t.opacity=$e(0,s.opacity??1,oA(l)),t.opacityExit=$e(i.opacity??1,0,cA(l))):d&&(t.opacity=$e(i.opacity??1,s.opacity??1,l));for(let f=0;f<rA;f++){const m=`border${Mj[f]}Radius`;let p=jb(i,m),x=jb(s,m);if(p===void 0&&x===void 0)continue;p||(p=0),x||(x=0),p===0||x===0||vb(p)===vb(x)?(t[m]=Math.max($e(bb(p),bb(x),l),0),(Vn.test(x)||Vn.test(p))&&(t[m]+="%")):t[m]=x}(i.rotate||s.rotate)&&(t.rotate=$e(i.rotate||0,s.rotate||0,l))}function jb(t,i){return t[i]!==void 0?t[i]:t.borderRadius}const oA=Oj(0,.5,y1),cA=Oj(.5,.95,bn);function Oj(t,i,s){return l=>l<t?0:l>i?1:s(fl(t,i,l))}function wb(t,i){t.min=i.min,t.max=i.max}function fn(t,i){wb(t.x,i.x),wb(t.y,i.y)}function Nb(t,i){t.translate=i.translate,t.scale=i.scale,t.originPoint=i.originPoint,t.origin=i.origin}function Sb(t,i,s,l,c){return t-=i,t=_c(t,1/s,l),c!==void 0&&(t=_c(t,1/c,l)),t}function uA(t,i=0,s=1,l=.5,c,d=t,f=t){if(Vn.test(i)&&(i=parseFloat(i),i=$e(f.min,f.max,i/100)-f.min),typeof i!="number")return;let m=$e(d.min,d.max,l);t===d&&(m-=i),t.min=Sb(t.min,i,s,m,c),t.max=Sb(t.max,i,s,m,c)}function Tb(t,i,[s,l,c],d,f){uA(t,i[s],i[l],i[c],i.scale,d,f)}const dA=["x","scaleX","originX"],fA=["y","scaleY","originY"];function Cb(t,i,s,l){Tb(t.x,i,dA,s?s.x:void 0,l?l.x:void 0),Tb(t.y,i,fA,s?s.y:void 0,l?l.y:void 0)}function Eb(t){return t.translate===0&&t.scale===1}function Dj(t){return Eb(t.x)&&Eb(t.y)}function Ab(t,i){return t.min===i.min&&t.max===i.max}function hA(t,i){return Ab(t.x,i.x)&&Ab(t.y,i.y)}function Rb(t,i){return Math.round(t.min)===Math.round(i.min)&&Math.round(t.max)===Math.round(i.max)}function _j(t,i){return Rb(t.x,i.x)&&Rb(t.y,i.y)}function zb(t){return zt(t.x)/zt(t.y)}function Mb(t,i){return t.translate===i.translate&&t.scale===i.scale&&t.originPoint===i.originPoint}class mA{constructor(){this.members=[]}add(i){fm(this.members,i),i.scheduleRender()}remove(i){if(hm(this.members,i),i===this.prevLead&&(this.prevLead=void 0),i===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(i){const s=this.members.findIndex(c=>i===c);if(s===0)return!1;let l;for(let c=s;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){l=d;break}}return l?(this.promote(l),!0):!1}promote(i,s){const l=this.lead;if(i!==l&&(this.prevLead=l,this.lead=i,i.show(),l)){l.instance&&l.scheduleRender(),i.scheduleRender(),i.resumeFrom=l,s&&(i.resumeFrom.preserveOpacity=!0),l.snapshot&&(i.snapshot=l.snapshot,i.snapshot.latestValues=l.animationValues||l.latestValues),i.root&&i.root.isUpdating&&(i.isLayoutDirty=!0);const{crossfade:c}=i.options;c===!1&&l.hide()}}exitAnimationComplete(){this.members.forEach(i=>{const{options:s,resumingFrom:l}=i;s.onExitComplete&&s.onExitComplete(),l&&l.options.onExitComplete&&l.options.onExitComplete()})}scheduleRender(){this.members.forEach(i=>{i.instance&&i.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function pA(t,i,s){let l="";const c=t.x.translate/i.x,d=t.y.translate/i.y,f=(s==null?void 0:s.z)||0;if((c||d||f)&&(l=`translate3d(${c}px, ${d}px, ${f}px) `),(i.x!==1||i.y!==1)&&(l+=`scale(${1/i.x}, ${1/i.y}) `),s){const{transformPerspective:x,rotate:g,rotateX:b,rotateY:v,skewX:S,skewY:j}=s;x&&(l=`perspective(${x}px) ${l}`),g&&(l+=`rotate(${g}deg) `),b&&(l+=`rotateX(${b}deg) `),v&&(l+=`rotateY(${v}deg) `),S&&(l+=`skewX(${S}deg) `),j&&(l+=`skewY(${j}deg) `)}const m=t.x.scale*i.x,p=t.y.scale*i.y;return(m!==1||p!==1)&&(l+=`scale(${m}, ${p})`),l||"none"}const Qf=["","X","Y","Z"],xA=1e3;let gA=0;function $f(t,i,s,l){const{latestValues:c}=i;c[t]&&(s[t]=c[t],i.setStaticValue(t,0),l&&(l[t]=0))}function kj(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:i}=t.options;if(!i)return;const s=vj(i);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:c,layoutId:d}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",Qe,!(c||d))}const{parent:l}=t;l&&!l.hasCheckedOptimisedAppear&&kj(l)}function Uj({attachResizeListener:t,defaultParent:i,measureScroll:s,checkIsScrollRoot:l,resetTransform:c}){return class{constructor(f={},m=i==null?void 0:i()){this.id=gA++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 4,304 bytes, line 68
68{this.projectionUpdateScheduled=!1,this.nodes.forEach(vA),this.nodes.forEach(SA),this.nodes.forEach(TA),this.nodes.forEach(jA)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new aA)}addEventListener(f,m){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new xm),this.eventHandlers.get(f).add(m)}notifyListeners(f,...m){const p=this.eventHandlers.get(f);p&&p.notify(...m)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=Z1(f)&&!l4(f),this.instance=f;const{layoutId:m,layout:p,visualElement:x}=this.options;if(x&&!x.current&&x.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||m)&&(this.isLayoutDirty=!0),t){let g,b=0;const v=()=>this.root.updateBlockedByResize=!1;Qe.read(()=>{b=window.innerWidth}),t(f,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,g&&g(),g=sA(v,250),Sc.hasAnimatedSinceResize&&(Sc.hasAnimatedSinceResize=!1,this.nodes.forEach(_b)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&x&&(m||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:b,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const j=this.options.transition||x.getDefaultTransition()||zA,{onLayoutAnimationStart:C,onLayoutAnimationComplete:E}=x.getProps(),T=!this.targetLayout||!_j(this.targetLayout,S),_=!b&&v;if(this.options.layoutRoot||this.resumeFrom||_||b&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...Rm(j,"layout"),onPlay:C,onComplete:E};(x.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(g,_)}else b||_b(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Xi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CA),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&kj(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const b=this.path[g];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:m,layout:p}=this.options;if(m===void 0&&!p)return;const x=this.getTransformTemplate();this.prevTransformTemplateValue=x?x(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ob);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Db);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(NA),this.nodes.forEach(yA),this.nodes.forEach(bA)):this.nodes.forEach(Db),this.clearAllSnapshots();const m=Ht.now();jt.delta=di(0,1e3/60,m-jt.timestamp),jt.timestamp=m,jt.isProcessing=!0,kf.update.process(jt),kf.preRender.process(jt),kf.render.process(jt),jt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mm.read(this.scheduleUpdate))}
vendor: 24,224 bytes, lines 68-123
68clearAllSnapshots(){this.nodes.forEach(wA),this.sharedNodes.forEach(EA)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zt(this.snapshot.measuredBox.x)&&!zt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutCorrected=it(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(m=!1),m&&this.instance){const p=l(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:p,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!Dj(this.projectionDelta),p=this.getTransformTemplate(),x=p?p(this.latestValues,""):void 0,g=x!==this.prevTransformTemplateValue;f&&this.instance&&(m||va(this.latestValues)||g)&&(c(this.instance,x),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const m=this.measurePageBox();let p=this.removeElementScroll(m);return f&&(p=this.removeTransform(p)),MA(p),{animationId:this.root.animationId,measuredBox:m,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var x;const{visualElement:f}=this.options;if(!f)return it();const m=f.measureViewportBox();if(!(((x=this.scroll)==null?void 0:x.wasRoot)||this.path.some(OA))){const{scroll:g}=this.root;g&&(Es(m.x,g.offset.x),Es(m.y,g.offset.y))}return m}removeElementScroll(f){var p;const m=it();if(fn(m,f),(p=this.scroll)!=null&&p.wasRoot)return m;for(let x=0;x<this.path.length;x++){const g=this.path[x],{scroll:b,options:v}=g;g!==this.root&&b&&v.layoutScroll&&(b.wasRoot&&fn(m,f),Es(m.x,b.offset.x),Es(m.y,b.offset.y))}return m}applyTransform(f,m=!1){const p=it();fn(p,f);for(let x=0;x<this.path.length;x++){const g=this.path[x];!m&&g.options.layoutScroll&&g.scroll&&g!==g.root&&As(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),va(g.latestValues)&&As(p,g.latestValues)}return va(this.latestValues)&&As(p,this.latestValues),p}removeTransform(f){const m=it();fn(m,f);for(let p=0;p<this.path.length;p++){const x=this.path[p];if(!x.instance||!va(x.latestValues))continue;Sh(x.latestValues)&&x.updateSnapshot();const g=it(),b=x.measurePageBox();fn(g,b),Cb(m,x.latestValues,x.snapshot?x.snapshot.layoutBox:void 0,g)}return va(this.latestValues)&&Cb(m,this.latestValues),m}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){var v;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==m;if(!(f||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:b}=this.options;if(!(!this.layout||!(g||b))){if(this.resolvedRelativeTargetAt=jt.timestamp,!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=it(),this.relativeTargetOrigin=it(),ol(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),fn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=it(),this.targetWithTransforms=it()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),P3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fn(this.target,this.layout.layoutBox),mj(this.target,this.targetDelta)):fn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&!!S.resumingFrom==!!this.resumingFrom&&!S.options.layoutScroll&&S.target&&this.animationProgress!==1?(this.relativeParent=S,this.forceRelativeParentToResolveTarget(),this.relativeTarget=it(),this.relativeTargetOrigin=it(),ol(this.relativeTargetOrigin,this.target,S.target),fn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Sh(this.parent.latestValues)||hj(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var j;const f=this.getLead(),m=!!this.resumingFrom||this!==f;let p=!0;if((this.isProjectionDirty||(j=this.parent)!=null&&j.isProjectionDirty)&&(p=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===jt.timestamp&&(p=!1),p)return;const{layout:x,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||g))return;fn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,v=this.treeScale.y;X4(this.layoutCorrected,this.treeScale,this.path,m),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=it());const{target:S}=f;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Nb(this.prevProjectionDelta.x,this.projectionDelta.x),Nb(this.prevProjectionDelta.y,this.projectionDelta.y)),ll(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==v||!Mb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Mb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rs(),this.projectionDelta=Rs(),this.projectionDeltaWithTransform=Rs()}setAnimationOrigin(f,m=!1){const p=this.snapshot,x=p?p.latestValues:{},g={...this.latestValues},b=Rs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const v=it(),S=p?p.source:void 0,j=this.layout?this.layout.source:void 0,C=S!==j,E=this.getStack(),T=!E||E.members.length<=1,_=!!(C&&!T&&this.options.crossfade===!0&&!this.path.some(RA));this.animationProgress=0;let O;this.mixTargetDelta=U=>{const Q=U/1e3;kb(b.x,f.x,Q),kb(b.y,f.y,Q),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ol(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),AA(this.relativeTarget,this.relativeTargetOrigin,v,Q),O&&hA(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=it()),fn(O,this.relativeTarget)),C&&(this.animationValues=g,lA(g,x,this.latestValues,Q,_,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){var m,p,x;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(x=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||x.stop(),this.pendingAnimation&&(Xi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qe.update(()=>{Sc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Is(0)),this.currentAnimation=nA(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),f.onUpdate&&f.onUpdate(g)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:m,target:p,layout:x,latestValues:g}=f;if(!(!m||!p||!x)){if(this!==f&&this.layout&&x&&Lj(this.options.animationType,this.layout.layoutBox,x.layoutBox)){p=this.target||it();const b=zt(this.layout.layoutBox.x);p.x.min=f.target.x.min,p.x.max=p.x.min+b;const v=zt(this.layout.layoutBox.y);p.y.min=f.target.y.min,p.y.max=p.y.min+v}fn(m,p),As(m,g),ll(this.projectionDeltaWithTransform,this.layoutCorrected,m,g)}}registerSharedNode(f,m){this.sharedNodes.has(f)||this.sharedNodes.set(f,new mA),this.sharedNodes.get(f).add(m);const x=m.options.initialPromotionConfig;m.promote({transition:x?x.transition:void 0,preserveFollowOpacity:x&&x.shouldPreserveFollowOpacity?x.shouldPreserveFollowOpacity(m):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){var m;const{layoutId:f}=this.options;return f?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:f}=this.options;return f?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:m,preserveFollowOpacity:p}={}){const x=this.getStack();x&&x.promote(this,p),f&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let m=!1;const{latestValues:p}=f;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const x={};p.z&&$f("z",f,x,this.animationValues);for(let g=0;g<Qf.length;g++)$f(`rotate${Qf[g]}`,f,x,this.animationValues),$f(`skew${Qf[g]}`,f,x,this.animationValues);f.render();for(const g in x)f.setStaticValue(g,x[g]),this.animationValues&&(this.animationValues[g]=x[g]);f.scheduleRender()}applyProjectionStyles(f,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Nc(m==null?void 0:m.pointerEvents)||"",f.transform=p?p(this.latestValues,""):"none";return}const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Nc(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!va(this.latestValues)&&(f.transform=p?p({},""):"none",this.hasProjected=!1);return}f.visibility="";const g=x.animationValues||x.latestValues;this.applyTransformsToTarget();let b=pA(this.projectionDeltaWithTransform,this.treeScale,g);p&&(b=p(g,b)),f.transform=b;const{x:v,y:S}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,x.animationValues?f.opacity=x===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=x===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const j in xl){if(g[j]===void 0)continue;const{correct:C,applyTo:E,isCSSVariable:T}=xl[j],_=b==="none"?g[j]:C(g[j],x);if(E){const O=E.length;for(let U=0;U<O;U++)f[E[U]]=_}else T?this.options.visualElement.renderState.vars[j]=_:f[j]=_}this.options.layoutId&&(f.pointerEvents=x===this?Nc(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>{var m;return(m=f.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(Ob),this.root.sharedNodes.clear()}}}function yA(t){t.updateLayout()}function bA(t){var s;const i=((s=t.resumeFrom)==null?void 0:s.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:l,measuredBox:c}=t.layout,{animationType:d}=t.options,f=i.source!==t.layout.source;d==="size"?mn(b=>{const v=f?i.measuredBox[b]:i.layoutBox[b],S=zt(v);v.min=l[b].min,v.max=v.min+S}):Lj(d,i.layoutBox,l)&&mn(b=>{const v=f?i.measuredBox[b]:i.layoutBox[b],S=zt(l[b]);v.max=v.min+S,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[b].max=t.relativeTarget[b].min+S)});const m=Rs();ll(m,l,i.layoutBox);const p=Rs();f?ll(p,t.applyTransform(c,!0),i.measuredBox):ll(p,l,i.layoutBox);const x=!Dj(m);let g=!1;if(!t.resumeFrom){const b=t.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:v,layout:S}=b;if(v&&S){const j=it();ol(j,i.layoutBox,v.layoutBox);const C=it();ol(C,l,S.layoutBox),_j(j,C)||(g=!0),b.options.layoutRoot&&(t.relativeTarget=C,t.relativeTargetOrigin=j,t.relativeParent=b)}}}t.notifyListeners("didUpdate",{layout:l,snapshot:i,delta:p,layoutDelta:m,hasLayoutChanged:x,hasRelativeLayoutChanged:g})}else if(t.isLead()){const{onExitComplete:l}=t.options;l&&l()}t.options.transition=void 0}function vA(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jA(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wA(t){t.clearSnapshot()}function Ob(t){t.clearMeasurements()}function Db(t){t.isLayoutDirty=!1}function NA(t){const{visualElement:i}=t.options;i&&i.getProps().onBeforeLayoutMeasure&&i.notify("BeforeLayoutMeasure"),t.resetTransform()}function _b(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function SA(t){t.resolveTargetDelta()}function TA(t){t.calcProjection()}function CA(t){t.resetSkewAndRotation()}function EA(t){t.removeLeadSnapshot()}function kb(t,i,s){t.translate=$e(i.translate,0,s),t.scale=$e(i.scale,1,s),t.origin=i.origin,t.originPoint=i.originPoint}function Ub(t,i,s,l){t.min=$e(i.min,s.min,l),t.max=$e(i.max,s.max,l)}function AA(t,i,s,l){Ub(t.x,i.x,s.x,l),Ub(t.y,i.y,s.y,l)}function RA(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const zA={duration:.45,ease:[.4,0,.1,1]},Lb=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Pb=Lb("applewebkit/")&&!Lb("chrome/")?Math.round:bn;function Vb(t){t.min=Pb(t.min),t.max=Pb(t.max)}function MA(t){Vb(t.x),Vb(t.y)}function Lj(t,i,s){return t==="position"||t==="preserve-aspect"&&!L3(zb(i),zb(s),.2)}function OA(t){var i;return t!==t.root&&((i=t.scroll)==null?void 0:i.wasRoot)}const DA=Uj({attachResizeListener:(t,i)=>gl(t,"resize",i),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Yf={current:void 0},Pj=Uj({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Yf.current){const t=new DA({});t.mount(window),t.setOptions({layoutScroll:!0}),Yf.current=t}return Yf.current},resetTransform:(t,i)=>{t.style.transform=i!==void 0?i:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_A={pan:{Feature:J3},drag:{Feature:Z3,ProjectionNode:Pj,MeasureLayout:zj}};function Bb(t,i,s){const{props:l}=t;t.animationState&&l.whileHover&&t.animationState.setActive("whileHover",s==="Start");const c="onHover"+s,d=l[c];d&&Qe.postRender(()=>d(i,_l(i)))}class kA extends Ji{mount(){const{current:i}=this.node;i&&(this.unmount=n4(i,(s,l)=>(Bb(this.node,l,"Start"),c=>Bb(this.node,c,"End"))))}unmount(){}}class UA extends Ji{constructor(){super(...arguments),this.isActive=!1}onFocus(){let i=!1;try{i=this.node.current.matches(":focus-visible")}catch{i=!0}!i||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ml(gl(this.node.current,"focus",()=>this.onFocus()),gl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Hb(t,i,s){const{props:l}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&l.whileTap&&t.animationState.setActive("whileTap",s==="Start");const c="onTap"+(s==="End"?"":s),d=l[c];d&&Qe.postRender(()=>d(i,_l(i)))}class LA extends Ji{mount(){const{current:i}=this.node;i&&(this.unmount=r4(i,(s,l)=>(Hb(this.node,l,"Start"),(c,{success:d})=>Hb(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mh=new WeakMap,Kf=new WeakMap,PA=t=>{const i=Mh.get(t.target);i&&i(t)},VA=t=>{t.forEach(PA)};function BA({root:t,...i}){const s=t||document;Kf.has(s)||Kf.set(s,{});const l=Kf.get(s),c=JSON.stringify(i);return l[c]||(l[c]=new IntersectionObserver(VA,{root:t,...i})),l[c]}function HA(t,i,s){const l=BA(i);return Mh.set(t,s),l.observe(t),()=>{Mh.delete(t),l.unobserve(t)}}const qA={some:0,all:1};class FA extends Ji{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:i={}}=this.node.getProps(),{root:s,margin:l,amount:c="some",once:d}=i,f={root:s?s.current:void 0,rootMargin:l,threshold:typeof c=="number"?c:qA[c]},m=p=>{const{isIntersecting:x}=p;if(this.isInView===x||(this.isInView=x,d&&!x&&this.hasEnteredView))return;x&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",x);const{onViewportEnter:g,onViewportLeave:b}=this.node.getProps(),v=x?g:b;v&&v(p)};return HA(this.node.current,f,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:i,prevProps:s}=this.node;["amount","margin","root"].some(GA(i,s))&&this.startObserver()}unmount(){}}function GA({viewport:t={}},{viewport:i={}}={}){return s=>t[s]!==i[s]}const IA={inView:{Feature:FA},tap:{Feature:LA},focus:{Feature:UA},hover:{Feature:kA}},QA={layout:{ProjectionNode:Pj,MeasureLayout:zj}},$A={...M3,...IA,..._A,...QA},K=$4($A,r3);/**
69 * @license lucide-react v0.554.0 - ISC
70 *
71 * This source code is licensed under the ISC license.
72 * See the LICENSE file in the root directory of this source tree.
73 */const YA=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),KA=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,l)=>l?l.toUpperCase():s.toLowerCase()),qb=t=>{const i=KA(t);return i.charAt(0).toUpperCase()+i.slice(1)},Vj=(...t)=>t.filter((i,s,l)=>!!i&&i.trim()!==""&&l.indexOf(i)===s).join(" ").trim(),XA=t=>{for(const i in t)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
74 * @license lucide-react v0.554.0 - ISC
75 *
76 * This source code is licensed under the ISC license.
77 * See the LICENSE file in the root directory of this source tree.
78 */var ZA={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"};/**
79 * @license lucide-react v0.554.0 - ISC
80 *
81 * This source code is licensed under the ISC license.
82 * See the LICENSE file in the root directory of this source tree.
83 */const JA=N.forwardRef(({color:t="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:f,...m},p)=>N.createElement("svg",{ref:p,...ZA,width:i,height:i,stroke:t,strokeWidth:l?Number(s)*24/Number(i):s,className:Vj("lucide",c),...!d&&!XA(m)&&{"aria-hidden":"true"},...m},[...f.map(([x,g])=>N.createElement(x,g)),...Array.isArray(d)?d:[d]]));/**
84 * @license lucide-react v0.554.0 - ISC
85 *
86 * This source code is licensed under the ISC license.
87 * See the LICENSE file in the root directory of this source tree.
88 */const he=(t,i)=>{const s=N.forwardRef(({className:l,...c},d)=>N.createElement(JA,{ref:d,iconNode:i,className:Vj(`lucide-${YA(qb(t))}`,`lucide-${t}`,l),...c}));return s.displayName=qb(t),s};/**
89 * @license lucide-react v0.554.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const WA=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],e6=he("arrow-left",WA);/**
94 * @license lucide-react v0.554.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */const t6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],n6=he("arrow-right",t6);/**
99 * @license lucide-react v0.554.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const i6=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],a6=he("award",i6);/**
104 * @license lucide-react v0.554.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const s6=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],r6=he("calculator",s6);/**
109 * @license lucide-react v0.554.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const l6=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],o6=he("calendar",l6);/**
114 * @license lucide-react v0.554.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const c6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cl=he("check",c6);/**
119 * @license lucide-react v0.554.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const u6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}
123]],yl=he("chevron-down",u6);/**
124 * @license lucide-react v0.554.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const d6=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kc=he("chevron-left",d6);/**
129 * @license lucide-react v0.554.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const f6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yi=he("chevron-right",f6);/**
134 * @license lucide-react v0.554.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const h6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Oh=he("circle-alert",h6);/**
139 * @license lucide-react v0.554.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const m6=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],$s=he("circle-check-big",m6);/**
144 * @license lucide-react v0.554.0 - ISC
145 *
146 * This source code is licensed under the ISC license.
147 * See the LICENSE file in the root directory of this source tree.
148 */const p6=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Bj=he("cpu",p6);/**
149 * @license lucide-react v0.554.0 - ISC
150 *
151 * This source code is licensed under the ISC license.
152 * See the LICENSE file in the root directory of this source tree.
153 */const x6=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],g6=he("download",x6);/**
154 * @license lucide-react v0.554.0 - ISC
155 *
156 * This source code is licensed under the ISC license.
157 * See the LICENSE file in the root directory of this source tree.
158 */const y6=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],b6=he("facebook",y6);/**
159 * @license lucide-react v0.554.0 - ISC
160 *
161 * This source code is licensed under the ISC license.
162 * See the LICENSE file in the root directory of this source tree.
163 */const v6=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Xf=he("file-text",v6);/**
164 * @license lucide-react v0.554.0 - ISC
165 *
166 * This source code is licensed under the ISC license.
167 * See the LICENSE file in the root directory of this source tree.
168 */const j6=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],w6=he("hard-drive",j6);/**
169 * @license lucide-react v0.554.0 - ISC
170 *
171 * This source code is licensed under the ISC license.
172 * See the LICENSE file in the root directory of this source tree.
173 */const N6=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],S6=he("house",N6);/**
174 * @license lucide-react v0.554.0 - ISC
175 *
176 * This source code is licensed under the ISC license.
177 * See the LICENSE file in the root directory of this source tree.
178 */const T6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],C6=he("info",T6);/**
179 * @license lucide-react v0.554.0 - ISC
180 *
181 * This source code is licensed under the ISC license.
182 * See the LICENSE file in the root directory of this source tree.
183 */const E6=[["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"}]],A6=he("instagram",E6);/**
184 * @license lucide-react v0.554.0 - ISC
185 *
186 * This source code is licensed under the ISC license.
187 * See the LICENSE file in the root directory of this source tree.
188 */const R6=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Uc=he("loader-circle",R6);/**
189 * @license lucide-react v0.554.0 - ISC
190 *
191 * This source code is licensed under the ISC license.
192 * See the LICENSE file in the root directory of this source tree.
193 */const z6=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Fm=he("mail",z6);/**
194 * @license lucide-react v0.554.0 - ISC
195 *
196 * This source code is licensed under the ISC license.
197 * See the LICENSE file in the root directory of this source tree.
198 */const M6=[["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"}]],Hj=he("map-pin",M6);/**
199 * @license lucide-react v0.554.0 - ISC
200 *
201 * This source code is licensed under the ISC license.
202 * See the LICENSE file in the root directory of this source tree.
203 */const O6=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],D6=he("menu",O6);/**
204 * @license lucide-react v0.554.0 - ISC
205 *
206 * This source code is licensed under the ISC license.
207 * See the LICENSE file in the root directory of this source tree.
208 */const _6=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Fb=he("message-circle",_6);/**
209 * @license lucide-react v0.554.0 - ISC
210 *
211 * This source code is licensed under the ISC license.
212 * See the LICENSE file in the root directory of this source tree.
213 */const k6=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Dh=he("message-square",k6);/**
214 * @license lucide-react v0.554.0 - ISC
215 *
216 * This source code is licensed under the ISC license.
217 * See the LICENSE file in the root directory of this source tree.
218 */const U6=[["path",{d:"M5 12h14",key:"1ays0h"}]],qj=he("minus",U6);/**
219 * @license lucide-react v0.554.0 - ISC
220 *
221 * This source code is licensed under the ISC license.
222 * See the LICENSE file in the root directory of this source tree.
223 */const L6=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Zf=he("monitor",L6);/**
224 * @license lucide-react v0.554.0 - ISC
225 *
226 * This source code is licensed under the ISC license.
227 * See the LICENSE file in the root directory of this source tree.
228 */const P6=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],V6=he("package",P6);/**
229 * @license lucide-react v0.554.0 - ISC
230 *
231 * This source code is licensed under the ISC license.
232 * See the LICENSE file in the root directory of this source tree.
233 */const B6=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",key:"1uq1d7"}],["path",{d:"M15 14h.01",key:"1kp3bh"}],["path",{d:"M9 6h6",key:"dgm16u"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],nl=he("pc-case",B6);/**
234 * @license lucide-react v0.554.0 - ISC
235 *
236 * This source code is licensed under the ISC license.
237 * See the LICENSE file in the root directory of this source tree.
238 */const H6=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],q6=he("pen-line",H6);/**
239 * @license lucide-react v0.554.0 - ISC
240 *
241 * This source code is licensed under the ISC license.
242 * See the LICENSE file in the root directory of this source tree.
243 */const F6=[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]],G6=he("pen-tool",F6);/**
244 * @license lucide-react v0.554.0 - ISC
245 *
246 * This source code is licensed under the ISC license.
247 * See the LICENSE file in the root directory of this source tree.
248 */const I6=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
2480 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Gm=he("phone",I6);/**
249 * @license lucide-react v0.554.0 - ISC
250 *
251 * This source code is licensed under the ISC license.
252 * See the LICENSE file in the root directory of this source tree.
253 */const Q6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Fj=he("plus",Q6);/**
254 * @license lucide-react v0.554.0 - ISC
255 *
256 * This source code is licensed under the ISC license.
257 * See the LICENSE file in the root directory of this source tree.
258 */const $6=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Gj=he("refresh-cw",$6);/**
259 * @license lucide-react v0.554.0 - ISC
260 *
261 * This source code is licensed under the ISC license.
262 * See the LICENSE file in the root directory of this source tree.
263 */const Y6=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Gb=he("search",Y6);/**
264 * @license lucide-react v0.554.0 - ISC
265 *
266 * This source code is licensed under the ISC license.
267 * See the LICENSE file in the root directory of this source tree.
268 */const K6=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],$c=he("send",K6);/**
269 * @license lucide-react v0.554.0 - ISC
270 *
271 * This source code is licensed under the ISC license.
272 * See the LICENSE file in the root directory of this source tree.
273 */const X6=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Z6=he("settings",X6);/**
274 * @license lucide-react v0.554.0 - ISC
275 *
276 * This source code is licensed under the ISC license.
277 * See the LICENSE file in the root directory of this source tree.
278 */const J6=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Ij=he("shield",J6);/**
279 * @license lucide-react v0.554.0 - ISC
280 *
281 * This source code is licensed under the ISC license.
282 * See the LICENSE file in the root directory of this source tree.
283 */const W6=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Ib=he("shopping-bag",W6);/**
284 * @license lucide-react v0.554.0 - ISC
285 *
286 * This source code is licensed under the ISC license.
287 * See the LICENSE file in the root directory of this source tree.
288 */const eR=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],bl=he("shopping-cart",eR);/**
289 * @license lucide-react v0.554.0 - ISC
290 *
291 * This source code is licensed under the ISC license.
292 * See the LICENSE file in the root directory of this source tree.
293 */const tR=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Qj=he("sliders-horizontal",tR);/**
294 * @license lucide-react v0.554.0 - ISC
295 *
296 * This source code is licensed under the ISC license.
297 * See the LICENSE file in the root directory of this source tree.
298 */const nR=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Tc=he("smartphone",nR);/**
299 * @license lucide-react v0.554.0 - ISC
300 *
301 * This source code is licensed under the ISC license.
302 * See the LICENSE file in the root directory of this source tree.
303 */const iR=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ul=he("star",iR);/**
304 * @license lucide-react v0.554.0 - ISC
305 *
306 * This source code is licensed under the ISC license.
307 * See the LICENSE file in the root directory of this source tree.
308 */const aR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],sR=he("target",aR);/**
309 * @license lucide-react v0.554.0 - ISC
310 *
311 * This source code is licensed under the ISC license.
312 * See the LICENSE file in the root directory of this source tree.
313 */const rR=[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]],lR=he("thermometer",rR);/**
314 * @license lucide-react v0.554.0 - ISC
315 *
316 * This source code is licensed under the ISC license.
317 * See the LICENSE file in the root directory of this source tree.
318 */const oR=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],cR=he("thumbs-up",oR);/**
319 * @license lucide-react v0.554.0 - ISC
320 *
321 * This source code is licensed under the ISC license.
322 * See the LICENSE file in the root directory of this source tree.
323 */const uR=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Qb=he("trash-2",uR);/**
324 * @license lucide-react v0.554.0 - ISC
325 *
326 * This source code is licensed under the ISC license.
327 * See the LICENSE file in the root directory of this source tree.
328 */const dR=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],$j=he("truck",dR);/**
329 * @license lucide-react v0.554.0 - ISC
330 *
331 * This source code is licensed under the ISC license.
332 * See the LICENSE file in the root directory of this source tree.
333 */const fR=[["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"}]],hR=he("user",fR);/**
334 * @license lucide-react v0.554.0 - ISC
335 *
336 * This source code is licensed under the ISC license.
337 * See the LICENSE file in the root directory of this source tree.
338 */const mR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],$b=he("users",mR);/**
339 * @license lucide-react v0.554.0 - ISC
340 *
341 * This source code is licensed under the ISC license.
342 * See the LICENSE file in the root directory of this source tree.
343 */const pR=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Yb=he("wrench",pR);/**
344 * @license lucide-react v0.554.0 - ISC
345 *
346 * This source code is licensed under the ISC license.
347 * See the LICENSE file in the root directory of this source tree.
348 */const xR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
348],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vl=he("x",xR);/**
349 * @license lucide-react v0.554.0 - ISC
350 *
351 * This source code is licensed under the ISC license.
352 * See the LICENSE file in the root directory of this source tree.
353 */const gR=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Yj=he("zap",gR);var kl=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(){}},yR={setTimeout:(t,i)=>setTimeout(t,i),clearTimeout:t=>clearTimeout(t),setInterval:(t,i)=>setInterval(t,i),clearInterval:t=>clearInterval(t)},Bi,Jh,Tv,bR=(Tv=class{constructor(){pe(this,Bi,yR);pe(this,Jh,!1)}setTimeoutProvider(t){le(this,Bi,t)}setTimeout(t,i){return M(this,Bi).setTimeout(t,i)}clearTimeout(t){M(this,Bi).clearTimeout(t)}setInterval(t,i){return M(this,Bi).setInterval(t,i)}clearInterval(t){M(this,Bi).clearInterval(t)}},Bi=new WeakMap,Jh=new WeakMap,Tv),Na=new bR;function vR(t){setTimeout(t,0)}var Pa=typeof window>"u"||"Deno"in globalThis;function Bt(){}function jR(t,i){return typeof t=="function"?t(i):t}function _h(t){return typeof t=="number"&&t>=0&&t!==1/0}function Kj(t,i){return Math.max(t+(i||0)-Date.now(),0)}function Ki(t,i){return typeof t=="function"?t(i):t}function gn(t,i){return typeof t=="function"?t(i):t}function Kb(t,i){const{type:s="all",exact:l,fetchStatus:c,predicate:d,queryKey:f,stale:m}=t;if(f){if(l){if(i.queryHash!==Im(f,i.options))return!1}else if(!wl(i.queryKey,f))return!1}if(s!=="all"){const p=i.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||c&&c!==i.state.fetchStatus||d&&!d(i))}function Xb(t,i){const{exact:s,status:l,predicate:c,mutationKey:d}=t;if(d){if(!i.options.mutationKey)return!1;if(s){if(jl(i.options.mutationKey)!==jl(d))return!1}else if(!wl(i.options.mutationKey,d))return!1}return!(l&&i.state.status!==l||c&&!c(i))}function Im(t,i){return((i==null?void 0:i.queryKeyHashFn)||jl)(t)}function jl(t){return JSON.stringify(t,(i,s)=>Uh(s)?Object.keys(s).sort().reduce((l,c)=>(l[c]=s[c],l),{}):s)}function wl(t,i){return t===i?!0:typeof t!=typeof i?!1:t&&i&&typeof t=="object"&&typeof i=="object"?Object.keys(i).every(s=>wl(t[s],i[s])):!1}var wR=Object.prototype.hasOwnProperty;function Xj(t,i){if(t===i)return t;const s=Zb(t)&&Zb(i);if(!s&&!(Uh(t)&&Uh(i)))return i;const c=(s?t:Object.keys(t)).length,d=s?i:Object.keys(i),f=d.length,m=s?new Array(f):{};let p=0;for(let x=0;x<f;x++){const g=s?x:d[x],b=t[g],v=i[g];if(b===v){m[g]=b,(s?x<c:wR.call(t,g))&&p++;continue}if(b===null||v===null||typeof b!="object"||typeof v!="object"){m[g]=v;continue}const S=Xj(b,v);m[g]=S,S===b&&p++}return c===f&&p===c?t:m}function kh(t,i){if(!i||Object.keys(t).length!==Object.keys(i).length)return!1;for(const s in t)if(t[s]!==i[s])return!1;return!0}function Zb(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Uh(t){if(!Jb(t))return!1;const i=t.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Jb(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Jb(t){return Object.prototype.toString.call(t)==="[object Object]"}function NR(t){return new Promise(i=>{Na.setTimeout(i,t)})}function Lh(t,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,i):s.structuralSharing!==!1?Xj(t,i):i}function SR(t,i,s=0){const l=[...t,i];return s&&l.length>s?l.slice(1):l}function TR(t,i,s=0){const l=[i,...t];return s&&l.length>s?l.slice(0,-1):l}var Qm=Symbol();function Zj(t,i){return!t.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!t.queryFn||t.queryFn===Qm?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function CR(t,i){return typeof t=="function"?t(...i):!!t}var Ca,Hi,Ds,Cv,ER=(Cv=class extends kl{constructor(){super();pe(this,Ca);pe(this,Hi);pe(this,Ds);le(this,Ds,i=>
353{if(!Pa&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){M(this,Hi)||this.setEventListener(M(this,Ds))}onUnsubscribe(){var i;this.hasListeners()||((i=M(this,Hi))==null||i.call(this),le(this,Hi,void 0))}setEventListener(i){var s;le(this,Ds,i),(s=M(this,Hi))==null||s.call(this),le(this,Hi,i(l=>{typeof l=="boolean"?this.setFocused(l):this.onFocus()}))}setFocused(i){M(this,Ca)!==i&&(le(this,Ca,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof M(this,Ca)=="boolean"?M(this,Ca):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ca=new WeakMap,Hi=new WeakMap,Ds=new WeakMap,Cv),$m=new ER;function Ph(){let t,i;const s=new Promise((c,d)=>{t=c,i=d});s.status="pending",s.catch(()=>{});function l(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{l({status:"fulfilled",value:c}),t(c)},s.reject=c=>{l({status:"rejected",reason:c}),i(c)},s}var AR=vR;function RR(){let t=[],i=0,s=m=>{m()},l=m=>{m()},c=AR;const d=m=>{i?t.push(m):c(()=>{s(m)})},f=()=>{const m=t;t=[],m.length&&c(()=>{l(()=>{m.forEach(p=>{s(p)})})})};return{batch:m=>{let p;i++;try{p=m()}finally{i--,i||f()}return p},batchCalls:m=>(...p)=>{d(()=>{m(...p)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{c=m}}}var wt=RR(),_s,qi,ks,Ev,zR=(Ev=class extends kl{constructor(){super();pe(this,_s,!0);pe(this,qi);pe(this,ks);le(this,ks,i=>{if(!Pa&&window.addEventListener){const s=()=>i(!0),l=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",l)}}})}onSubscribe(){M(this,qi)||this.setEventListener(M(this,ks))}onUnsubscribe(){var i;this.hasListeners()||((i=M(this,qi))==null||i.call(this),le(this,qi,void 0))}setEventListener(i){var s;le(this,ks,i),(s=M(this,qi))==null||s.call(this),le(this,qi,i(this.setOnline.bind(this)))}setOnline(i){M(this,_s)!==i&&(le(this,_s,i),this.listeners.forEach(l=>{l(i)}))}isOnline(){return M(this,_s)}},_s=new WeakMap,qi=new WeakMap,ks=new WeakMap,Ev),Lc=new zR;function MR(t){return Math.min(1e3*2**t,3e4)}function Jj(t){return(t??"online")==="online"?Lc.isOnline():!0}var Vh=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function Wj(t){let i=!1,s=0,l;const c=Ph(),d=()=>c.status!=="pending",f=C=>{var E;if(!d()){const T=new Vh(C);v(T),(E=t.onCancel)==null||E.call(t,T)}},m=()=>{i=!0},p=()=>{i=!1},x=()=>$m.isFocused()&&(t.networkMode==="always"||Lc.isOnline())&&t.canRun(),g=()=>Jj(t.networkMode)&&t.canRun(),b=C=>{d()||(l==null||l(),c.resolve(C))},v=C=>{d()||(l==null||l(),c.reject(C))},S=()=>new Promise(C=>{var E;l=T=>{(d()||x())&&C(T)},(E=t.onPause)==null||E.call(t)}).then(()=>{var C;l=void 0,d()||(C=t.onContinue)==null||C.call(t)}),j=()=>{if(d())return;let C;const E=s===0?t.initialPromise:void 0;try{C=E??t.fn()}catch(T){C=Promise.reject(T)}Promise.resolve(C).then(b).catch(T=>{var ee;if(d())return;const _=t.retry??(Pa?0:3),O=t.retryDelay??MR,U=typeof O=="function"?O(s,T):O,Q=_===!0||typeof _=="number"&&s<_||typeof _=="function"&&_(s,T);if(i||!Q){v(T);return}s++,(ee=t.onFail)==null||ee.call(t,s,T),NR(U).then(()=>x()?void 0:S()).then(()=>{i?v(T):j()})})};return{promise:c,status:()=>c.status,cancel:f,continue:()=>(l==null||l(),c),cancelRetry:m,continueRetry:p,canStart:g,start:()=>(g()?j():S().then(j),c)}}var Ea,Av,e2=(Av=class{constructor(){pe(this,Ea)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_h(this.gcTime)&&le(this,Ea,Na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Pa?1/0:300*1e3))}clearGcTimeout(){M(this,Ea)&&(Na.clearTimeout(M(this,Ea)),le(this,Ea,void 0))}},Ea=new WeakMap,Av),Aa,Us,xn,Ra,pt,Nl,za,Tn,li,Rv,OR=(Rv=class extends e2{constructor(i){super();pe(this,Tn);pe(this,Aa);pe(this,Us);pe(this,xn);pe(this,Ra);pe(this,pt);pe(this,Nl);pe(this,za);le(this,za,!1),le(this,Nl,i.defaultOptions),this.setOptions(i.options),this.observers=[],le(this,Ra,i.client),le(this,xn,M(this,Ra).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,le(this,Aa,ev(this.options)),this.state=i.state??M(this,Aa),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=M(this,pt))==null?void 0:i.promise}setOptions(i){if(this.options={...M(this,Nl),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=ev(this.options);s.data!==void 0&&(this.setState(Wb(s.data,s.dataUpdatedAt)),le(this,Aa,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,xn).remove(this)}setData(i,s){const l=Lh(this.state.data,i,this.options);return ze(this,Tn,li).call(this,{data:l,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),l}setState(i,s){ze(this,Tn,li).call(this,{type:"setState",state:i,setStateOptions:s})}cancel(i){var l,c;const s=(l=M(this,pt))==null?void 0:l.promise;return(c=M(this,pt))==null||c.cancel(i),s?s.then(Bt).catch(Bt):Prom
353ise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Aa))}isActive(){return this.observers.some(i=>gn(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Ki(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Kj(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(l=>l.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=M(this,pt))==null||s.continue()}onOnline(){var s;const i=this.observers.find(l=>l.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=M(this,pt))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),M(this,xn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(M(this,pt)&&(M(this,za)?M(this,pt).cancel({revert:!0}):M(this,pt).cancelRetry()),this.scheduleGc()),M(this,xn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,Tn,li).call(this,{type:"invalidate"})}async fetch(i,s){var p,x,g,b,v,S,j,C,E,T,_,O;if(this.state.fetchStatus!=="idle"&&((p=M(this,pt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(M(this,pt))return M(this,pt).continueRetry(),M(this,pt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const U=this.observers.find(Q=>Q.options.queryFn);U&&this.setOptions(U.options)}const l=new AbortController,c=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(le(this,za,!0),l.signal)})},d=()=>{const U=Zj(this.options,s),ee=(()=>{const Y={client:M(this,Ra),queryKey:this.queryKey,meta:this.meta};return c(Y),Y})();return le(this,za,!1),this.options.persister?this.options.persister(U,ee,this):U(ee)},m=(()=>{const U={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:M(this,Ra),state:this.state,fetchFn:d};return c(U),U})();(x=this.options.behavior)==null||x.onFetch(m,this),le(this,Us,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=m.fetchOptions)==null?void 0:g.meta))&&ze(this,Tn,li).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),le(this,pt,Wj({initialPromise:s==null?void 0:s.initialPromise,fn:m.fetchFn,onCancel:U=>{U instanceof Vh&&U.revert&&this.setState({...M(this,Us),fetchStatus:"idle"}),l.abort()},onFail:(U,Q)=>{ze(this,Tn,li).call(this,{type:"failed",failureCount:U,error:Q})},onPause:()=>{ze(this,Tn,li).call(this,{type:"pause"})},onContinue:()=>{ze(this,Tn,li).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const U=await M(this,pt).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(S=(v=M(this,xn).config).onSuccess)==null||S.call(v,U,this),(C=(j=M(this,xn).config).onSettled)==null||C.call(j,U,this.state.error,this),U}catch(U){if(U instanceof Vh){if(U.silent)return M(this,pt).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw ze(this,Tn,li).call(this,{type:"error",error:U}),(T=(E=M(this,xn).config).onError)==null||T.call(E,U,this),(O=(_=M(this,xn).config).onSettled)==null||O.call(_,this.state.data,U,this),U}finally{this.scheduleGc()}}},Aa=new WeakMap,Us=new WeakMap,xn=new WeakMap,Ra=new WeakMap,pt=new WeakMap,Nl=new WeakMap,za=new WeakMap,Tn=new WeakSet,li=function(i){const s=l=>{switch(i.type){case"failed":return{...l,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...t2(l.data,this.options),fetchMeta:i.meta??null};case"success":const c={...l,...Wb(i.data,i.dataUpdatedAt),dataUpdateCount:l.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return le(this,Us,i.manual?c:void 0),c;case"error":const d=i.error;
353return{...l,error:d,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error"};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...i.state}}};this.state=s(this.state),wt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),M(this,xn).notify({query:this,type:"updated",action:i})})},Rv);function t2(t,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jj(i.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Wb(t,i){return{data:t,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ev(t){const i=typeof t.initialData=="function"?t.initialData():t.initialData,s=i!==void 0,l=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Vt,Me,Sl,Et,Ma,Ls,oi,Fi,Tl,Ps,Vs,Oa,Da,Gi,Bs,ke,il,Bh,Hh,qh,Fh,Gh,Ih,Qh,n2,zv,DR=(zv=class extends kl{constructor(i,s){super();pe(this,ke);pe(this,Vt);pe(this,Me);pe(this,Sl);pe(this,Et);pe(this,Ma);pe(this,Ls);pe(this,oi);pe(this,Fi);pe(this,Tl);pe(this,Ps);pe(this,Vs);pe(this,Oa);pe(this,Da);pe(this,Gi);pe(this,Bs,new Set);this.options=s,le(this,Vt,i),le(this,Fi,null),le(this,oi,Ph()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Me).addObserver(this),tv(M(this,Me),this.options)?ze(this,ke,il).call(this):this.updateResult(),ze(this,ke,Fh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return $h(M(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return $h(M(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,ke,Gh).call(this),ze(this,ke,Ih).call(this),M(this,Me).removeObserver(this)}setOptions(i){const s=this.options,l=M(this,Me);if(this.options=M(this,Vt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof gn(this.options.enabled,M(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,ke,Qh).call(this),M(this,Me).setOptions(this.options),s._defaulted&&!kh(this.options,s)&&M(this,Vt).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Me),observer:this});const c=this.hasListeners();c&&nv(M(this,Me),l,this.options,s)&&ze(this,ke,il).call(this),this.updateResult(),c&&(M(this,Me)!==l||gn(this.options.enabled,M(this,Me))!==gn(s.enabled,M(this,Me))||Ki(this.options.staleTime,M(this,Me))!==Ki(s.staleTime,M(this,Me)))&&ze(this,ke,Bh).call(this);const d=ze(this,ke,Hh).call(this);c&&(M(this,Me)!==l||gn(this.options.enabled,M(this,Me))!==gn(s.enabled,M(this,Me))||d!==M(this,Gi))&&ze(this,ke,qh).call(this,d)}getOptimisticResult(i){const s=M(this,Vt).getQueryCache().build(M(this,Vt),i),l=this.createResult(s,i);return kR(this,l)&&(le(this,Et,l),le(this,Ls,this.options),le(this,Ma,M(this,Me).state)),l}getCurrentResult(){return M(this,Et)}trackResult(i,s){return new Proxy(i,{get:(l,c)=>(this.trackProp(c),s==null||s(c),c==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,oi).status==="pending"&&M(this,oi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(l,c))})}trackProp(i){M(this,Bs).add(i)}getCurrentQuery(){return M(this,Me)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=M(this,Vt).defaultQueryOptions(i),l=M(this,Vt).getQueryCache().build(M(this,Vt),s);return l.fetch().then(()=>this.createResult(l,s))}fetch(i){return ze(this,ke,il).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Et)))}createResult(i,s){var ie;const l=M(this,Me),c=this.options,d=M(this,Et),f=M(this,Ma),m=M(this,Ls),x=i!==l?i.state:M(this,Sl),{state:g}=i;let b={...g},v=!1,S;if(s._optimisticResults){const re=this.hasListeners(),ne=!re&&tv(i,s),xe=re&&nv(i,l,s,c);(ne||xe)&&(b={...b,...t2(g.data,i.options)}),s._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:j,errorUpdatedAt:C,status:E}=b;S=b.data;let T=!1;if(s.placeholderData!==void 0&&S===void 0&&E==="pending"){let re;d!=null&&d.isPlaceholderData&&s.placeholderData===(m==null?void 0:m.placeholderData)?(re=d.data,T=!0):re=typeof s.placeholderData=="function"?s.placeholderData((ie=M(this,Vs))==null?void 0:ie.state.data,M(this,Vs)):s.placeholderData,re!==void 0&&(E="success",S=Lh(d==null?void 0:d.data,re,s),v=!0)}if(s.select&&S!==void 0&&!T)if(d&&S===(f==null?void 0:f.data)&&s.select===M(this,Tl))S=M(this,Ps);else try{le(this,Tl,s.select),S=s.select(S),S=Lh(d==null?void 0:d.data,S,s),le(this,Ps,S),le(this,Fi,null)}catch(re){le(this,Fi,re)}M(this,Fi)&&(j=M(this,Fi),S=M(this,Ps),C=Date.now(),E="error");const _=b.fetchStatus==="fetching",O=E==="pending",U=E==="error",Q=O&&_,ee=S!==void 0,I={status:E,fetchStatus:b.fetchStatus,isPending:O,isSuccess:E==="success",isError:U,isInitialLoading:Q,isLoading:Q,data:S,dataUpdatedAt:b.dataUpdatedAt,error:j,errorUpdatedAt:C,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdate
353Count:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>x.dataUpdateCount||b.errorUpdateCount>x.errorUpdateCount,isFetching:_,isRefetching:_&&!O,isLoadingError:U&&!ee,isPaused:b.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:U&&ee,isStale:Ym(i,s),refetch:this.refetch,promise:M(this,oi),isEnabled:gn(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const re=Ce=>{I.status==="error"?Ce.reject(I.error):I.data!==void 0&&Ce.resolve(I.data)},ne=()=>{const Ce=le(this,oi,I.promise=Ph());re(Ce)},xe=M(this,oi);switch(xe.status){case"pending":i.queryHash===l.queryHash&&re(xe);break;case"fulfilled":(I.status==="error"||I.data!==xe.value)&&ne();break;case"rejected":(I.status!=="error"||I.error!==xe.reason)&&ne();break}}return I}updateResult(){const i=M(this,Et),s=this.createResult(M(this,Me),this.options);if(le(this,Ma,M(this,Me).state),le(this,Ls,this.options),M(this,Ma).data!==void 0&&le(this,Vs,M(this,Me)),kh(s,i))return;le(this,Et,s);const l=()=>{if(!i)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!M(this,Bs).size)return!0;const f=new Set(d??M(this,Bs));return this.options.throwOnError&&f.add("error"),Object.keys(M(this,Et)).some(m=>{const p=m;return M(this,Et)[p]!==i[p]&&f.has(p)})};ze(this,ke,n2).call(this,{listeners:l()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,ke,Fh).call(this)}},Vt=new WeakMap,Me=new WeakMap,Sl=new WeakMap,Et=new WeakMap,Ma=new WeakMap,Ls=new WeakMap,oi=new WeakMap,Fi=new WeakMap,Tl=new WeakMap,Ps=new WeakMap,Vs=new WeakMap,Oa=new WeakMap,Da=new WeakMap,Gi=new WeakMap,Bs=new WeakMap,ke=new WeakSet,il=function(i){ze(this,ke,Qh).call(this);let s=M(this,Me).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(Bt)),s},Bh=function(){ze(this,ke,Gh).call(this);const i=Ki(this.options.staleTime,M(this,Me));if(Pa||M(this,Et).isStale||!_h(i))return;const l=Kj(M(this,Et).dataUpdatedAt,i)+1;le(this,Oa,Na.setTimeout(()=>{M(this,Et).isStale||this.updateResult()},l))},Hh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Me)):this.options.refetchInterval)??!1},qh=function(i){ze(this,ke,Ih).call(this),le(this,Gi,i),!(Pa||gn(this.options.enabled,M(this,Me))===!1||!_h(M(this,Gi))||M(this,Gi)===0)&&le(this,Da,Na.setInterval(()=>{(this.options.refetchIntervalInBackground||$m.isFocused())&&ze(this,ke,il).call(this)},M(this,Gi)))},Fh=function(){ze(this,ke,Bh).call(this),ze(this,ke,qh).call(this,ze(this,ke,Hh).call(this))},Gh=function(){M(this,Oa)&&(Na.clearTimeout(M(this,Oa)),le(this,Oa,void 0))},Ih=function(){M(this,Da)&&(Na.clearInterval(M(this,Da)),le(this,Da,void 0))},Qh=function(){const i=M(this,Vt).getQueryCache().build(M(this,Vt),this.options);if(i===M(this,Me))return;const s=M(this,Me);le(this,Me,i),le(this,Sl,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},n2=function(i){wt.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(M(this,Et))}),M(this,Vt).getQueryCache().notify({query:M(this,Me),type:"observerResultsUpdated"})})},zv);function _R(t,i){return gn(i.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&i.retryOnMount===!1)}function tv(t,i){return _R(t,i)||t.state.data!==void 0&&$h(t,i,i.refetchOnMount)}function $h(t,i,s){if(gn(i.enabled,t)!==!1&&Ki(i.staleTime,t)!=="static"){const l=typeof s=="function"?s(t):s;return l==="always"||l!==!1&&Ym(t,i)}return!1}function nv(t,i,s,l){return(t!==i||gn(l.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Ym(t,s)}function Ym(t,i){return gn(i.enabled,t)!==!1&&t.isStaleByTime(Ki(i.staleTime,t))}function kR(t,i){return!kh(t.getCurrentResult(),i)}function iv(t){return{onFetch:(i,s)=>{var g,b,v,S,j;const l=i.options,c=(v=(b=(g=i.fetchOptions)==null?void 0:g.meta)==null?void 0:b.fetchMore)==null?void 0:v.direction,d=((S=i.state.data)==null?void 0:S.pages)||[],f=((j=i.state.data)==null?void 0:j.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const x=async()=>{let C=!1;const E=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(i.signal.aborted?C=!0:i.signal.addEventListener("abort",()=>{C=!0}),i.signal)}
353)},T=Zj(i.options,i.fetchOptions),_=async(O,U,Q)=>{if(C)return Promise.reject();if(U==null&&O.pages.length)return Promise.resolve(O);const Y=(()=>{const ne={client:i.client,queryKey:i.queryKey,pageParam:U,direction:Q?"backward":"forward",meta:i.options.meta};return E(ne),ne})(),I=await T(Y),{maxPages:ie}=i.options,re=Q?TR:SR;return{pages:re(O.pages,I,ie),pageParams:re(O.pageParams,U,ie)}};if(c&&d.length){const O=c==="backward",U=O?UR:av,Q={pages:d,pageParams:f},ee=U(l,Q);m=await _(Q,ee,O)}else{const O=t??d.length;do{const U=p===0?f[0]??l.initialPageParam:av(l,m);if(p>0&&U==null)break;m=await _(m,U),p++}while(p<O)}return m};i.options.persister?i.fetchFn=()=>{var C,E;return(E=(C=i.options).persister)==null?void 0:E.call(C,x,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=x}}}function av(t,{pages:i,pageParams:s}){const l=i.length-1;return i.length>0?t.getNextPageParam(i[l],i,s[l],s):void 0}function UR(t,{pages:i,pageParams:s}){var l;return i.length>0?(l=t.getPreviousPageParam)==null?void 0:l.call(t,i[0],i,s[0],s):void 0}var Cl,_n,At,_a,kn,Vi,Mv,LR=(Mv=class extends e2{constructor(i){super();pe(this,kn);pe(this,Cl);pe(this,_n);pe(this,At);pe(this,_a);le(this,Cl,i.client),this.mutationId=i.mutationId,le(this,At,i.mutationCache),le(this,_n,[]),this.state=i.state||PR(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){M(this,_n).includes(i)||(M(this,_n).push(i),this.clearGcTimeout(),M(this,At).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){le(this,_n,M(this,_n).filter(s=>s!==i)),this.scheduleGc(),M(this,At).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){M(this,_n).length||(this.state.status==="pending"?this.scheduleGc():M(this,At).remove(this))}continue(){var i;return((i=M(this,_a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var f,m,p,x,g,b,v,S,j,C,E,T,_,O,U,Q,ee,Y,I,ie;const s=()=>{ze(this,kn,Vi).call(this,{type:"continue"})},l={client:M(this,Cl),meta:this.options.meta,mutationKey:this.options.mutationKey};le(this,_a,Wj({fn:()=>this.options.mutationFn?this.options.mutationFn(i,l):Promise.reject(new Error("No mutationFn found")),onFail:(re,ne)=>{ze(this,kn,Vi).call(this,{type:"failed",failureCount:re,error:ne})},onPause:()=>{ze(this,kn,Vi).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,At).canRun(this)}));const c=this.state.status==="pending",d=!M(this,_a).canStart();try{if(c)s();else{ze(this,kn,Vi).call(this,{type:"pending",variables:i,isPaused:d}),await((m=(f=M(this,At).config).onMutate)==null?void 0:m.call(f,i,this,l));const ne=await((x=(p=this.options).onMutate)==null?void 0:x.call(p,i,l));ne!==this.state.context&&ze(this,kn,Vi).call(this,{type:"pending",context:ne,variables:i,isPaused:d})}const re=await M(this,_a).start();return await((b=(g=M(this,At).config).onSuccess)==null?void 0:b.call(g,re,i,this.state.context,this,l)),await((S=(v=this.options).onSuccess)==null?void 0:S.call(v,re,i,this.state.context,l)),await((C=(j=M(this,At).config).onSettled)==null?void 0:C.call(j,re,null,this.state.variables,this.state.context,this,l)),await((T=(E=this.options).onSettled)==null?void 0:T.call(E,re,null,i,this.state.context,l)),ze(this,kn,Vi).call(this,{type:"success",data:re}),re}catch(re){try{throw await((O=(_=M(this,At).config).onError)==null?void 0:O.call(_,re,i,this.state.context,this,l)),await((Q=(U=this.options).onError)==null?void 0:Q.call(U,re,i,this.state.context,l)),await((Y=(ee=M(this,At).config).onSettled)==null?void 0:Y.call(ee,void 0,re,this.state.variables,this.state.context,this,l)),await((ie=(I=this.options).onSettled)==null?void 0:ie.call(I,void 0,re,i,this.state.context,l)),re}finally{ze(this,kn,Vi).call(this,{type:"error",error:re})}}finally{M(this,At).runNext(this)}}},Cl=new WeakMap,_n=new WeakMap,At=new WeakMap,_a=new WeakMap,kn=new WeakSet,Vi=function(i){const s=l=>{switch(i.type){case"failed":return{...l,failureCount:i.failureCount,failureReason:i.error};
353case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...l,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:i.error,failureCount:l.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),wt.batch(()=>{M(this,_n).forEach(l=>{l.onMutationUpdate(i)}),M(this,At).notify({mutation:this,type:"updated",action:i})})},Mv);function PR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ci,Cn,El,Ov,VR=(Ov=class extends kl{constructor(i={}){super();pe(this,ci);pe(this,Cn);pe(this,El);this.config=i,le(this,ci,new Set),le(this,Cn,new Map),le(this,El,0)}build(i,s,l){const c=new LR({client:i,mutationCache:this,mutationId:++lc(this,El)._,options:i.defaultMutationOptions(s),state:l});return this.add(c),c}add(i){M(this,ci).add(i);const s=mc(i);if(typeof s=="string"){const l=M(this,Cn).get(s);l?l.push(i):M(this,Cn).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(M(this,ci).delete(i)){const s=mc(i);if(typeof s=="string"){const l=M(this,Cn).get(s);if(l)if(l.length>1){const c=l.indexOf(i);c!==-1&&l.splice(c,1)}else l[0]===i&&M(this,Cn).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=mc(i);if(typeof s=="string"){const l=M(this,Cn).get(s),c=l==null?void 0:l.find(d=>d.state.status==="pending");return!c||c===i}else return!0}runNext(i){var l;const s=mc(i);if(typeof s=="string"){const c=(l=M(this,Cn).get(s))==null?void 0:l.find(d=>d!==i&&d.state.isPaused);return(c==null?void 0:c.continue())??Promise.resolve()}else return Promise.resolve()}clear(){wt.batch(()=>{M(this,ci).forEach(i=>{this.notify({type:"removed",mutation:i})}),M(this,ci).clear(),M(this,Cn).clear()})}getAll(){return Array.from(M(this,ci))}find(i){const s={exact:!0,...i};return this.getAll().find(l=>Xb(s,l))}findAll(i={}){return this.getAll().filter(s=>Xb(i,s))}notify(i){wt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return wt.batch(()=>Promise.all(i.map(s=>s.continue().catch(Bt))))}},ci=new WeakMap,Cn=new WeakMap,El=new WeakMap,Ov);function mc(t){var i;return(i=t.options.scope)==null?void 0:i.id}var Un,Dv,BR=(Dv=class extends kl{constructor(i={}){super();pe(this,Un);this.config=i,le(this,Un,new Map)}build(i,s,l){const c=s.queryKey,d=s.queryHash??Im(c,s);let f=this.get(d);return f||(f=new OR({client:i,queryKey:c,queryHash:d,options:i.defaultQueryOptions(s),state:l,defaultOptions:i.getQueryDefaults(c)}),this.add(f)),f}add(i){M(this,Un).has(i.queryHash)||(M(this,Un).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=M(this,Un).get(i.queryHash);s&&(i.destroy(),s===i&&M(this,Un).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){wt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return M(this,Un).get(i)}getAll(){return[...M(this,Un).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(l=>Kb(s,l))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(l=>Kb(i,l)):s}notify(i){wt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},Un=new WeakMap,Dv),Ze,Ii,Qi,Hs,qs,$i,Fs,Gs,_v,HR=(_v=class{constructor(t={}){pe(this,Ze);pe(this,Ii);pe(this,Qi);pe(this,Hs);pe(this,qs);pe(this,$i);pe(this,Fs);pe(this,Gs);le(this,Ze,t.queryCache||new BR),le(this,Ii,t.mutationCache||new VR),le(this,Qi,t.defaultOptions||{}),le(this,Hs,new Map),le(this,qs,new Map),le(this,$i,0)}mount(){lc(this,$i)._++,M(this,$i)===1&&(le(this,Fs,$m.subscribe(async t=>{t&&(await this.resumePausedMutations(),M(this,Ze).onFocus())})),le(this,Gs,Lc.subscribe(async t=>{t&&(await this.resumePausedMutations(),M(this,Ze).onOnline())})))}unmount(){var t,i;lc(this,$i)._--,M(this,$i)===0&&((t=M(this,Fs))==null||t.call(this),le(this,Fs,void 0),(i=M(this,Gs))==null||i.call(this),le(this,Gs,void 0))}isFetching(t){return M(this,Ze).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return M(this,Ii).findAll({...t,status:"pending"}).length}getQueryData(t){var s;const i=this.defaultQueryOptions({queryKey:t});return(s=M(this,Ze).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),s=M(this,Ze).build(this,i),l=s.state.data;return l===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(Ki(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(l))}getQueriesData(t){return M(this,Ze).findAll(t).map(({queryKey:i,state:s})=>{const l=s.data;return[i,l]})}setQueryData(t,i,s){const l=this.defaultQueryOptions({queryKey:t}),c=M(this,Ze).get(l.queryHash),d=c==null?void 0:c.state.data,f=jR(i,d);if(f!==void 0)return M(this,Ze).build(this,l).setData(f,{...s,manual:!0})}
353setQueriesData(t,i,s){return wt.batch(()=>M(this,Ze).findAll(t).map(({queryKey:l})=>[l,this.setQueryData(l,i,s)]))}getQueryState(t){var s;const i=this.defaultQueryOptions({queryKey:t});return(s=M(this,Ze).get(i.queryHash))==null?void 0:s.state}removeQueries(t){const i=M(this,Ze);wt.batch(()=>{i.findAll(t).forEach(s=>{i.remove(s)})})}resetQueries(t,i){const s=M(this,Ze);return wt.batch(()=>(s.findAll(t).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...t},i)))}cancelQueries(t,i={}){const s={revert:!0,...i},l=wt.batch(()=>M(this,Ze).findAll(t).map(c=>c.cancel(s)));return Promise.all(l).then(Bt).catch(Bt)}invalidateQueries(t,i={}){return wt.batch(()=>(M(this,Ze).findAll(t).forEach(s=>{s.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},i)))}refetchQueries(t,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},l=wt.batch(()=>M(this,Ze).findAll(t).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,s);return s.throwOnError||(d=d.catch(Bt)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(l).then(Bt)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const s=M(this,Ze).build(this,i);return s.isStaleByTime(Ki(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Bt).catch(Bt)}fetchInfiniteQuery(t){return t.behavior=iv(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Bt).catch(Bt)}ensureInfiniteQueryData(t){return t.behavior=iv(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Lc.isOnline()?M(this,Ii).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Ze)}getMutationCache(){return M(this,Ii)}getDefaultOptions(){return M(this,Qi)}setDefaultOptions(t){le(this,Qi,t)}setQueryDefaults(t,i){M(this,Hs).set(jl(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...M(this,Hs).values()],s={};return i.forEach(l=>{wl(t,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(t,i){M(this,qs).set(jl(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...M(this,qs).values()],s={};return i.forEach(l=>{wl(t,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const i={...M(this,Qi).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=Im(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Qm&&(i.enabled=!1),i}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...M(this,Qi).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){M(this,Ze).clear(),M(this,Ii).clear()}},Ze=new WeakMap,Ii=new WeakMap,Qi=new WeakMap,Hs=new WeakMap,qs=new WeakMap,$i=new WeakMap,Fs=new WeakMap,Gs=new WeakMap,_v),i2=N.createContext(void 0),qR=t=>{const i=N.useContext(i2);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},FR=({client:t,children:i})=>(N.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),r.jsx(i2.Provider,{value:t,children:i})),a2=N.createContext(!1),GR=()=>N.useContext(a2);a2.Provider;function IR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var QR=N.createContext(IR()),$R=()=>N.useContext(QR),YR=(t,i)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(i.isReset()||(t.retryOnMount=!1))},KR=t=>{N.useEffect(()=>{t.clearReset()},[t])},XR=({result:t,errorResetBoundary:i,throwOnError:s,query:l,suspense:c})=>t.isError&&!i.isReset()&&!t.isFetching&&l&&(c&&t.data===void 0||CR(s,[t.error,l])),ZR=t=>{if(t.suspense){const s=c=>c==="static"?c:Math.max(c??1e3,1e3),l=t.staleTime;t.staleTime=typeof l=="function"?(...c)=>s(l(...c)):s(l),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},JR=(t,i)=>t.isLoading&&t.isFetching&&!i,WR=(t,i)=>(t==null?void 0:t.suspense)&&i.isPending,sv=(t,i,s)=>i.fetchOptimistic(t).catch(()=>{s.clearReset()});function ez(t,i,s){var b,v,S,j,C;const l=GR(),c=$R(),d=qR(),f=d.defaultQueryOptions(t);(v=(b=d.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||v.call(b,f),f._optimisticResults=l?"isRestoring":"optimistic",ZR(f),YR(f,c),KR(c);const m=!d.getQueryCache().get(f.queryHash),[p]=N.useState(()=>new i(d,f)),x=p.getOptimisticResult(f),g=!l&&t.subscribed!==!1;if(N.useSyncExternalStore(N.useCallback(E=>{const T=g?p.subscribe(wt.batchCalls(E)):Bt;return p.updateResult(),T},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),N.useEffect(()=>{p.setOptions(f)},[f,p]),WR(f,x))throw sv(f,p,c);if(XR({result:x,errorResetBoundary:c,throwOnError:f.throwOnError,query:d.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw x.error;if((j=(S=d.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||j.call(S,f,x),f.experimental_prefetchInRender&&!Pa&&JR(x,l)){const E=m?sv(f,p,c):(C=d.getQueryCache().get(f.queryHash))==null?void 0:C.promise;E==null||E.catch(Bt).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?x:p.trackResult(x)}function Rt(t,i){return ez(t,DR)}function s2(t,i){return function(){return t.apply(i,arguments)}}const{toString:tz}=Object.prototype,{getPrototypeOf:Km}=Object,{iterator:Yc,toStringTag:r2}=Symbol,Kc=(t=>i=>{const s=tz.call(i);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Rn=t=>(t=t.toLowerCase(),i=>Kc(i)===t),Xc=t=>i=>typeof i===t,{isArray:er}=Array,Ys=Xc("undefined");function Ul(t){return t!==null&&!Ys(t)&&t.constructor!==null&&!Ys(t.constructor)&&qt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const l2=Rn("ArrayBuffer");function nz(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&l2(t.buffer),i}const iz=Xc("string"),qt=Xc("function"),o2=Xc("number"),Ll=t=>t!==null&&typeof t=="object",az=t=>t===!0||t===!1,Cc=t=>{if(Kc(t)!=="object")return!1;const i=Km(t);
vendor: 20,711 bytes, lines 353-355
353return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(r2 in t)&&!(Yc in t)},sz=t=>{if(!Ll(t)||Ul(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},rz=Rn("Date"),lz=Rn("File"),oz=t=>!!(t&&typeof t.uri<"u"),cz=t=>t&&typeof t.getParts<"u",uz=Rn("Blob"),dz=Rn("FileList"),fz=t=>Ll(t)&&qt(t.pipe);function hz(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const rv=hz(),lv=typeof rv.FormData<"u"?rv.FormData:void 0,mz=t=>{let i;return t&&(lv&&t instanceof lv||qt(t.append)&&((i=Kc(t))==="formdata"||i==="object"&&qt(t.toString)&&t.toString()==="[object FormData]"))},pz=Rn("URLSearchParams"),[xz,gz,yz,bz]=["ReadableStream","Request","Response","Headers"].map(Rn),vz=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pl(t,i,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let l,c;if(typeof t!="object"&&(t=[t]),er(t))for(l=0,c=t.length;l<c;l++)i.call(null,t[l],l,t);else{if(Ul(t))return;const d=s?Object.getOwnPropertyNames(t):Object.keys(t),f=d.length;let m;for(l=0;l<f;l++)m=d[l],i.call(null,t[m],m,t)}}function c2(t,i){if(Ul(t))return null;i=i.toLowerCase();const s=Object.keys(t);let l=s.length,c;for(;l-- >0;)if(c=s[l],i===c.toLowerCase())return c;return null}const Sa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,u2=t=>!Ys(t)&&t!==Sa;function Yh(){const{caseless:t,skipUndefined:i}=u2(this)&&this||{},s={},l=(c,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=t&&c2(s,d)||d;Cc(s[f])&&Cc(c)?s[f]=Yh(s[f],c):Cc(c)?s[f]=Yh({},c):er(c)?s[f]=c.slice():(!i||!Ys(c))&&(s[f]=c)};for(let c=0,d=arguments.length;c<d;c++)arguments[c]&&Pl(arguments[c],l);return s}const jz=(t,i,s,{allOwnKeys:l}={})=>(Pl(i,(c,d)=>{s&&qt(c)?Object.defineProperty(t,d,{value:s2(c,s),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,d,{value:c,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:l}),t),wz=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Nz=(t,i,s,l)=>{t.prototype=Object.create(i.prototype,l),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:i.prototype}),s&&Object.assign(t.prototype,s)},Sz=(t,i,s,l)=>{let c,d,f;const m={};if(i=i||{},t==null)return i;do{for(c=Object.getOwnPropertyNames(t),d=c.length;d-- >0;)f=c[d],(!l||l(f,t,i))&&!m[f]&&(i[f]=t[f],m[f]=!0);t=s!==!1&&Km(t)}while(t&&(!s||s(t,i))&&t!==Object.prototype);return i},Tz=(t,i,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=i.length;const l=t.indexOf(i,s);return l!==-1&&l===s},Cz=t=>{if(!t)return null;if(er(t))return t;let i=t.length;if(!o2(i))return null;const s=new Array(i);for(;i-- >0;)s[i]=t[i];return s},Ez=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Km(Uint8Array)),Az=(t,i)=>{const l=(t&&t[Yc]).call(t);let c;for(;(c=l.next())&&!c.done;){const d=c.value;i.call(t,d[0],d[1])}},Rz=(t,i)=>{let s;const l=[];for(;(s=t.exec(i))!==null;)l.push(s);return l},zz=Rn("HTMLFormElement"),Mz=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,l,c){return l.toUpperCase()+c}),ov=(({hasOwnProperty:t})=>(i,s)=>t.call(i,s))(Object.prototype),Oz=Rn("RegExp"),d2=(t,i)=>{const s=Object.getOwnPropertyDescriptors(t),l={};Pl(s,(c,d)=>{let f;(f=i(c,d,t))!==!1&&(l[d]=f||c)}),Object.defineProperties(t,l)},Dz=t=>{d2(t,(i,s)=>{if(qt(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const l=t[s];if(qt(l)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},_z=(t,i)=>{const s={},l=c=>{c.forEach(d=>{s[d]=!0})};return er(t)?l(t):l(String(t).split(i)),s},kz=()=>{},Uz=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function Lz(t){return!!(t&&qt(t.append)&&t[r2]==="FormData"&&t[Yc])}const Pz=t=>{const i=new Array(10),s=(l,c)=>{if(Ll(l)){if(i.indexOf(l)>=0)return;if(Ul(l))return l;if(!("toJSON"in l)){i[c]=l;const d=er(l)?[]:{};return Pl(l,(f,m)=>{const p=s(f,c+1);!Ys(p)&&(d[m]=p)}),i[c]=void 0,d}}return l};return s(t,0)},Vz=Rn("AsyncFunction"),Bz=t=>t&&(Ll(t)||qt(t))&&qt(t.then)&&qt(t.catch),f2=((t,i)=>t?setImmediate:i?((s,l)=>(Sa.addEventListener("message",({source:c,data:d})=>{c===Sa&&d===s&&l.length&&l.shift()()},!1),c=>{l.push(c),Sa.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",qt(Sa.postMessage)),Hz=typeof queueMicrotask<"u"?queueMicrotask.bind(Sa):typeof process<"u"&&process.nextTick||f2,qz=t=>t!=null&&qt(t[Yc]),F={isArray:er,isArrayBuffer:l2,isBuffer:Ul,isFormData:mz,isArrayBufferView:nz,isString:iz,isNumber:o2,isBoolean:az,isObject:Ll,isPlainObject:Cc,isEmptyObject:sz,isReadableStream:xz,isRequest:gz,isResponse:yz,isHeaders:bz,isUndefined:Ys,isDate:rz,isFile:lz,isReactNativeBlob:oz,isReactNative:cz,isBlob:uz,isRegExp:Oz,isFunction:qt,isStream:fz,isURLSearchParams:pz,isTypedArray:Ez,isFileList:dz,forEach:Pl,merge:Yh,extend:jz,trim:vz,stripBOM:wz,inherits:Nz,toFlatObject:Sz,kindOf:Kc,kindOfTest:Rn,endsWith:Tz,toArray:Cz,forEachEntry:Az,matchAll:Rz,isHTMLForm:zz,hasOwnProperty:ov,hasOwnProp:ov,reduceDescriptors:d2,freezeMethods:Dz,toObjectSet:_z,toCamelCase:Mz,noop:kz,toFiniteNumber:Uz,findKey:c2,global:Sa,isContextDefined:u2,isSpecCompliantForm:Lz,toJSONObject:Pz,isAsyncFn:Vz,isThenable:Bz,setImmediate:f2,asap:Hz,isIterable:qz};let be=class h2 extends Error{static from(i,s,l,c,d,f){const m=new h2(i.message,s||i.code,l,c,d);return m.cause=i,m.name=i.name,i.status!=null&&m.status==null&&(m.status=i.status),f&&Object.assign(m,f),m}constructor(i,s,l,c,d){super(i),Object.defineProperty(this,"message",{value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,s&&(this.code=s),l&&(this.config=l),c&&(this.request=c),d&&(this.response=d,this.status=d.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:F.toJSONObject(this.config),code:this.code,status:this.status}}};be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";be.ERR_BAD_OPTION="ERR_BAD_OPTION";be.ECONNABORTED="ECONNABORTED";be.ETIMEDOUT="ETIMEDOUT";be.ERR_NETWORK="ERR_NETWORK";be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";be.ERR_DEPRECATED="ERR_DEPRECATED";be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";be.ERR_BAD_REQUEST="ERR_BAD_REQUEST";be.ERR_CANCELED="ERR_CANCELED";be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";be.ERR_INVALID_URL="ERR_INVALID_URL";const Fz=null;function Kh(t){return F.isPlainObject(t)||F.isArray(t)}function m2(t){return F.endsWith(t,"[]")?t.slice(0,-2):t}function Jf(t,i,s){return t?t.concat(i).map(function(c,d){return c=m2(c),!s&&d?"["+c+"]":c}).join(s?".":""):i}function Gz(t){return F.isArray(t)&&!t.some(Kh)}const Iz=F.toFlatObject(F,{},null,function(i){return/^is[A-Z]/.test(i)});function Zc(t,i,s){if(!F.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,s=F.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,E){return!F.isUndefined(E[C])});const l=s.metaTokens,c=s.visitor||g,d=s.dots,f=s.indexes,p=(s.Blob||typeof Blob<"u"&&Blob)&&F.isSpecCompliantForm(i);if(!F.isFunction(c))throw new TypeError("visitor must be a function");function x(j){if(j===null)return"";if(F.isDate(j))return j.toISOString();if(F.isBoolean(j))return j.toString();if(!p&&F.isBlob(j))throw new be("Blob is not supported. Use a Buffer instead.");return F.isArrayBuffer(j)||F.isTypedArray(j)?p&&typeof Blob=="function"?new Blob([j]):Buffer.from(j):j}function g(j,C,E){let T=j;if(F.isReactNative(i)&&F.isReactNativeBlob(j))return i.append(Jf(E,C,d),x(j)),!1;if(j&&!E&&typeof j=="object"){if(F.endsWith(C,"{}"))C=l?C:C.slice(0,-2),j=JSON.stringify(j);else if(F.isArray(j)&&Gz(j)||(F.isFileList(j)||F.endsWith(C,"[]"))&&(T=F.toArray(j)))return C=m2(C),T.forEach(function(O,U){!(F.isUndefined(O)||O===null)&&i.append(f===!0?Jf([C],U,d):f===null?C:C+"[]",x(O))}),!1}return Kh(j)?!0:(i.append(Jf(E,C,d),x(j)),!1)}const b=[],v=Object.assign(Iz,{defaultVisitor:g,convertValue:x,isVisitable:Kh});function S(j,C){if(!F.isUndefined(j)){if(b.indexOf(j)!==-1)throw Error("Circular reference detected in "+C.join("."));b.push(j),F.forEach(j,function(T,_){(!(F.isUndefined(T)||T===null)&&c.call(i,T,F.isString(_)?_.trim():_,C,v))===!0&&S(T,C?C.concat(_):[_])}),b.pop()}}if(!F.isObject(t))throw new TypeError("data must be an object");return S(t),i}function cv(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(l){return i[l]})}function Xm(t,i){this._pairs=[],t&&Zc(t,this,i)}const p2=Xm.prototype;p2.append=function(i,s){this._pairs.push([i,s])};p2.toString=function(i){const s=i?function(l){return i.call(this,l,cv)}:cv;return this._pairs.map(function(c){return s(c[0])+"="+s(c[1])},"").join("&")};function Qz(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function x2(t,i,s){if(!i)return t;const l=s&&s.encode||Qz,c=F.isFunction(s)?{serialize:s}:s,d=c&&c.serialize;let f;if(d?f=d(i,c):f=F.isURLSearchParams(i)?i.toString():new Xm(i,c).toString(l),f){const m=t.indexOf("#");m!==-1&&(t=t.slice(0,m)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class uv{constructor(){this.handlers=[]}use(i,s,l){return this.handlers.push({fulfilled:i,rejected:s,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){F.forEach(this.handlers,function(l){l!==null&&i(l)})}}const Zm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},$z=typeof URLSearchParams<"u"?URLSearchParams:Xm,Yz=typeof FormData<"u"?FormData:null,Kz=typeof Blob<"u"?Blob:null,Xz={isBrowser:!0,classes:{URLSearchParams:$z,FormData:Yz,Blob:Kz},protocols:["http","https","file","blob","url","data"]},Jm=typeof window<"u"&&typeof document<"u",Xh=typeof navigator=="object"&&navigator||void 0,Zz=Jm&&(!Xh||["ReactNative","NativeScript","NS"].indexOf(Xh.product)<0),Jz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wz=Jm&&window.location.href||"http://localhost",e5=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jm,hasStandardBrowserEnv:Zz,hasStandardBrowserWebWorkerEnv:Jz,navigator:Xh,origin:Wz},Symbol.toStringTag,{value:"Module"})),St={...e5,...Xz};function t5(t,i){return Zc(t,new St.classes.URLSearchParams,{visitor:function(s,l,c,d){return St.isNode&&F.isBuffer(s)?(this.append(l,s.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)},...i})}function n5(t){return F.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function i5(t){const i={},s=Object.keys(t);let l;const c=s.length;let d;for(l=0;l<c;l++)d=s[l],i[d]=t[d];return i}function g2(t){function i(s,l,c,d){let f=s[d++];if(f==="__proto__")return!0;const m=Number.isFinite(+f),p=d>=s.length;return f=!f&&F.isArray(c)?c.length:f,p?(F.hasOwnProp(c,f)?c[f]=[c[f],l]:c[f]=l,!m):((!c[f]||!F.isObject(c[f]))&&(c[f]=[]),i(s,l,c[f],d)&&F.isArray(c[f])&&(c[f]=i5(c[f])),!m)}if(F.isFormData(t)&&F.isFunction(t.entries)){const s={};return F.forEachEntry(t,(l,c)=>{i(n5(l),c,s,0)}),s}return null}function a5(t,i,s){if(F.isString(t))try{return(i||JSON.parse)(t),F.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(s||JSON.stringify)(t)}const Vl={transitional:Zm,adapter:["xhr","http","fetch"],transformRequest:[function(i,s){const l=s.getContentType()||"",c=l.indexOf("application/json")>-1,d=F.isObject(i);if(d&&F.isHTMLForm(i)&&(i=new FormData(i)),F.isFormData(i))return c?JSON.stringify(g2(i)):i;if(F.isArrayBuffer(i)||F.isBuffer(i)||F.isStream(i)||F.isFile(i)||F.isBlob(i)||F.isReadableStream(i))return i;if(F.isArrayBufferView(i))return i.buffer;if(F.isURLSearchParams(i))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let m;if(d){if(l.indexOf("application/x-www-form-urlencoded")>-1)return t5(i,this.formSerializer).toString();if((m=F.isFileList(i))||l.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Zc(m?{"files[]":i}:i,p&&new p,this.formSerializer)}}return d||c?(s.setContentType("application/json",!1),a5(i)):i}],transformResponse:[function(i){const s=this.transitional||Vl.transitional,l=s&&s.forcedJSONParsing,c=this.responseType==="json";if(F.isResponse(i)||F.isReadableStream(i))return i;if(i&&F.isString(i)&&(l&&!this.responseType||c)){const f=!(s&&s.silentJSONParsing)&&c;try{return JSON.parse(i,this.parseReviver)}catch(m){if(f)throw m.name==="SyntaxError"?be.from(m,be.ERR_BAD_RESPONSE,this,null,this.response):m}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:St.classes.FormData,Blob:St.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};F.forEach(["delete","get","head","post","put","patch"],t=>{Vl.headers[t]={}});const s5=F.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),r5=t=>{const i={};let s,l,c;return t&&t.split(`
354`).forEach(function(f){c=f.indexOf(":"),s=f.substring(0,c).trim().toLowerCase(),l=f.substring(c+1).trim(),!(!s||i[s]&&s5[s])&&(s==="set-cookie"?i[s]?i[s].push(l):i[s]=[l]:i[s]=i[s]?i[s]+", "+l:l)}),i},dv=Symbol("internals");function el(t){return t&&String(t).trim().toLowerCase()}function Ec(t){return t===!1||t==null?t:F.isArray(t)?t.map(Ec):String(t)}function l5(t){const i=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=s.exec(t);)i[l[1]]=l[2];return i}const o5=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Wf(t,i,s,l,c){if(F.isFunction(l))return l.call(this,i,s);if(c&&(i=s),!!F.isString(i)){if(F.isString(l))return i.indexOf(l)!==-1;if(F.isRegExp(l))return l.test(i)}}function c5(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,s,l)=>s.toUpperCase()+l)}function u5(t,i){const s=F.toCamelCase(" "+i);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+s,{value:function(c,d,f){return this[l].call(this,i,c,d,f)},configurable:!0})})}let Ft=class{constructor(i){i&&this.set(i)}set(i,s,l){const c=this;function d(m,p,x){const g=el(p);if(!g)throw new Error("header name must be a non-empty string");const b=F.findKey(c,g);(!b||c[b]===void 0||x===!0||x===void 0&&c[b]!==!1)&&(c[b||p]=Ec(m))}const f=(m,p)=>F.forEach(m,(x,g)=>d(x,g,p));if(F.isPlainObject(i)||i instanceof this.constructor)f(i,s);else if(F.isString(i)&&(i=i.trim())&&!o5(i))f(r5(i),s);else if(F.isObject(i)&&F.isIterable(i)){let m={},p,x;for(const g of i){if(!F.isArray(g))throw TypeError("Object iterator must return a key-value pair");m[x=g[0]]=(p=m[x])?F.isArray(p)?[...p,g[1]]:[p,g[1]]:g[1]}f(m,s)}else i!=null&&d(s,i,l);return this}get(i,s){if(i=el(i),i){const l=F.findKey(this,i);if(l){const c=this[l];if(!s)return c;if(s===!0)return l5(c);if(F.isFunction(s))return s.call(this,c,l);if(F.isRegExp(s))return s.exec(c);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,s){if(i=el(i),i){const l=F.findKey(this,i);return!!(l&&this[l]!==void 0&&(!s||Wf(this,this[l],l,s)))}return!1}delete(i,s){const l=this;let c=!1;function d(f){if(f=el(f),f){const m=F.findKey(l,f);m&&(!s||Wf(l,l[m],m,s))&&(delete l[m],c=!0)}}return F.isArray(i)?i.forEach(d):d(i),c}clear(i){const s=Object.keys(this);let l=s.length,c=!1;for(;l--;){const d=s[l];(!i||Wf(this,this[d],d,i,!0))&&(delete this[d],c=!0)}return c}normalize(i){const s=this,l={};return F.forEach(this,(c,d)=>{const f=F.findKey(l,d);if(f){s[f]=Ec(c),delete s[d];return}const m=i?c5(d):String(d).trim();m!==d&&delete s[d],s[m]=Ec(c),l[m]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const s=Object.create(null);return F.forEach(this,(l,c)=>{l!=null&&l!==!1&&(s[c]=i&&F.isArray(l)?l.join(", "):l)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,s])=>i+": "+s).join(`
355`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...s){const l=new this(i);return s.forEach(c=>l.set(c)),l}static accessor(i){const l=(this[dv]=this[dv]={accessors:{}}).accessors,c=this.prototype;function d(f){const m=el(f);l[m]||(u5(c,f),l[m]=!0)}return F.isArray(i)?i.forEach(d):d(i),this}};Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);F.reduceDescriptors(Ft.prototype,({value:t},i)=>{let s=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(l){this[s]=l}}});F.freezeMethods(Ft);function eh(t,i){const s=this||Vl,l=i||s,c=Ft.from(l.headers);let d=l.data;return F.forEach(t,function(m){d=m.call(s,d,c.normalize(),i?i.status:void 0)}),c.normalize(),d}function y2(t){return!!(t&&t.__CANCEL__)}let Bl=class extends be{constructor(i,s,l){super(i??"canceled",be.ERR_CANCELED,s,l),this.name="CanceledError",this.__CANCEL__=!0}};function b2(t,i,s){const l=s.config.validateStatus;!s.status||!l||l(s.status)?t(s):i(new be("Request failed with status code "+s.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function d5(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function f5(t,i){t=t||10;const s=new Array(t),l=new Array(t);let c=0,d=0,f;return i=i!==void 0?i:1e3,function(p){const x=Date.now(),g=l[d];f||(f=x),s[c]=p,l[c]=x;let b=d,v=0;for(;b!==c;)v+=s[b++],b=b%t;if(c=(c+1)%t,c===d&&(d=(d+1)%t),x-f<i)return;const S=g&&x-g;return S?Math.round(v*1e3/S):void 0}}function h5(t,i){let s=0,l=1e3/i,c,d;const f=(x,g=Date.now())=>{s=g,c=null,d&&(clearTimeout(d),d=null),t(...x)};return[(...x)=>{const g=Date.now(),b=g-s;b>=l?f(x,g):(c=x,d||(d=setTimeout(()=>{d=null,f(c)},l-b)))},()=>c&&f(c)]}const Pc=(t,i,s=3)=>{let l=0;const c=f5(50,250);return h5(d=>{const f=d.loaded,m=d.lengthComputable?d.total:void 0,p=f-l,x=c(p),g=f<=m;l=f;const b={loaded:f,total:m,progress:m?f/m:void 0,bytes:p,rate:x||void 0,estimated:x&&m&&g?(m-f)/x:void 0,event:d,lengthComputable:m!=null,[i?"download":"upload"]:!0};t(b)},s)},fv=(t,i)=>{const s=t!=null;return[l=>i[0]({lengthComputable:s,total:t,loaded:l}),i[1]]},hv=t=>(...i)=>F.asap(()=>t(...i)),m5=St.hasStandardBrowserEnv?((t,i)=>s=>(s=new URL(s,St.origin),t.protocol===s.protocol&&t.host===s.host&&(i||t.port===s.port)))(new URL(St.origin),St.navigator&&/(msie|trident)/i.test(St.navigator.userAgent)):()=>!0,p5=St.hasStandardBrowserEnv?{write(t,i,s,l,c,d,f){if(typeof document>"u")return;const m=[`${t}=${encodeURIComponent(i)}`];F.isNumber(s)&&m.push(`expires=${new Date(s).toUTCString()}`),F.isString(l)&&m.push(`path=${l}`),F.isString(c)&&m.push(`domain=${c}`),d===!0&&m.push("secure"),F.isString(f)&&m.push(`SameSite=${f}`),document.cookie=m.join("; ")},read(t){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function x5(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function g5(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function v2(t,i,s){let l=!x5(i);return t&&(l||s==!1)?g5(t,i):i}const mv=t=>t instanceof Ft?{...t}:t;function Va(t,i){i=i||{};const s={};function l(x,g,b,v){return F.isPlainObject(x)&&F.isPlainObject(g)?F.merge.call({caseless:v},x,g):F.isPlainObject(g)?F.merge({},g):F.isArray(g)?g.slice():g}function c(x,g,b,v){if(F.isUndefined(g)){if(!F.isUndefined(x))return l(void 0,x,b,v)}else return l(x,g,b,v)}function d(x,g){if(!F.isUndefined(g))return l(void 0,g)}function f(x,g){if(F.isUndefined(g)){if(!F.isUndefined(x))return l(void 0,x)}else return l(void 0,g)}function m(x,g,b){if(b in i)return l(x,g);if(b in t)return l(void 0,x)}const p={url:d,method:d,data:d,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(x,g,b)=>
355c(mv(x),mv(g),b,!0)};return F.forEach(Object.keys({...t,...i}),function(g){if(g==="__proto__"||g==="constructor"||g==="prototype")return;const b=F.hasOwnProp(p,g)?p[g]:c,v=b(t[g],i[g],g);F.isUndefined(v)&&b!==m||(s[g]=v)}),s}const j2=t=>{const i=Va({},t);let{data:s,withXSRFToken:l,xsrfHeaderName:c,xsrfCookieName:d,headers:f,auth:m}=i;if(i.headers=f=Ft.from(f),i.url=x2(v2(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):""))),F.isFormData(s)){if(St.hasStandardBrowserEnv||St.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if(F.isFunction(s.getHeaders)){const p=s.getHeaders(),x=["content-type","content-length"];Object.entries(p).forEach(([g,b])=>{x.includes(g.toLowerCase())&&f.set(g,b)})}}if(St.hasStandardBrowserEnv&&(l&&F.isFunction(l)&&(l=l(i)),l||l!==!1&&m5(i.url))){const p=c&&d&&p5.read(d);p&&f.set(c,p)}return i},y5=typeof XMLHttpRequest<"u",b5=y5&&function(t){return new Promise(function(s,l){const c=j2(t);let d=c.data;const f=Ft.from(c.headers).normalize();let{responseType:m,onUploadProgress:p,onDownloadProgress:x}=c,g,b,v,S,j;function C(){S&&S(),j&&j(),c.cancelToken&&c.cancelToken.unsubscribe(g),c.signal&&c.signal.removeEventListener("abort",g)}let E=new XMLHttpRequest;E.open(c.method.toUpperCase(),c.url,!0),E.timeout=c.timeout;function T(){if(!E)return;const O=Ft.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),Q={data:!m||m==="text"||m==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:O,config:t,request:E};b2(function(Y){s(Y),C()},function(Y){l(Y),C()},Q),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(l(new be("Request aborted",be.ECONNABORTED,t,E)),E=null)},E.onerror=function(U){const Q=U&&U.message?U.message:"Network Error",ee=new be(Q,be.ERR_NETWORK,t,E);ee.event=U||null,l(ee),E=null},E.ontimeout=function(){let U=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const Q=c.transitional||Zm;c.timeoutErrorMessage&&(U=c.timeoutErrorMessage),l(new be(U,Q.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,t,E)),E=null},d===void 0&&f.setContentType(null),"setRequestHeader"in E&&F.forEach(f.toJSON(),function(U,Q){E.setRequestHeader(Q,U)}),F.isUndefined(c.withCredentials)||(E.withCredentials=!!c.withCredentials),m&&m!=="json"&&(E.responseType=c.responseType),x&&([v,j]=Pc(x,!0),E.addEventListener("progress",v)),p&&E.upload&&([b,S]=Pc(p),E.upload.addEventListener("progress",b),E.upload.addEventListener("loadend",S)),(c.cancelToken||c.signal)&&(g=O=>{E&&(l(!O||O.type?new Bl(null,t,E):O),E.abort(),E=null)},c.cancelToken&&c.cancelToken.subscribe(g),c.signal&&(c.signal.aborted?g():c.signal.addEventListener("abort",g)));const _=d5(c.url);if(_&&St.protocols.indexOf(_)===-1){l(new be("Unsupported protocol "+_+":",be.ERR_BAD_REQUEST,t));return}E.send(d||null)})},v5=(t,i)=>{const{length:s}=t=t?t.filter(Boolean):[];if(i||s){let l=new AbortController,c;const d=function(x){if(!c){c=!0,m();const g=x instanceof Error?x:this.reason;l.abort(g instanceof be?g:new Bl(g instanceof Error?g.message:g))}};let f=i&&setTimeout(()=>{f=null,d(new be(`timeout of ${i}ms exceeded`,be.ETIMEDOUT))},i);const m=()=>{t&&(f&&clearTimeout(f),f=null,t.forEach(x=>{x.unsubscribe?x.unsubscribe(d):x.removeEventListener("abort",d)}),t=null)};t.forEach(x=>x.addEventListener("abort",d));const{signal:p}=l;return p.unsubscribe=()=>F.asap(m),p}},j5=function*(t,i){let s=t.byteLength;if(s<i){yield t;return}let l=0,c;for(;l<s;)c=l+i,yield t.slice(l,c),l=c}
vendor: 9,348 bytes, lines 355-358
355,w5=async function*(t,i){for await(const s of N5(t))yield*j5(s,i)},N5=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:s,value:l}=await i.read();if(s)break;yield l}}finally{await i.cancel()}},pv=(t,i,s,l)=>{const c=w5(t,i);let d=0,f,m=p=>{f||(f=!0,l&&l(p))};return new ReadableStream({async pull(p){try{const{done:x,value:g}=await c.next();if(x){m(),p.close();return}let b=g.byteLength;if(s){let v=d+=b;s(v)}p.enqueue(new Uint8Array(g))}catch(x){throw m(x),x}},cancel(p){return m(p),c.return()}},{highWaterMark:2})},xv=64*1024,{isFunction:pc}=F,S5=(({Request:t,Response:i})=>({Request:t,Response:i}))(F.global),{ReadableStream:gv,TextEncoder:yv}=F.global,bv=(t,...i)=>{try{return!!t(...i)}catch{return!1}},T5=t=>{t=F.merge.call({skipUndefined:!0},S5,t);const{fetch:i,Request:s,Response:l}=t,c=i?pc(i):typeof fetch=="function",d=pc(s),f=pc(l);if(!c)return!1;const m=c&&pc(gv),p=c&&(typeof yv=="function"?(j=>C=>j.encode(C))(new yv):async j=>new Uint8Array(await new s(j).arrayBuffer())),x=d&&m&&bv(()=>{let j=!1;const C=new s(St.origin,{body:new gv,method:"POST",get duplex(){return j=!0,"half"}}).headers.has("Content-Type");return j&&!C}),g=f&&m&&bv(()=>F.isReadableStream(new l("").body)),b={stream:g&&(j=>j.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(j=>{!b[j]&&(b[j]=(C,E)=>{let T=C&&C[j];if(T)return T.call(C);throw new be(`Response type '${j}' is not supported`,be.ERR_NOT_SUPPORT,E)})});const v=async j=>{if(j==null)return 0;if(F.isBlob(j))return j.size;if(F.isSpecCompliantForm(j))return(await new s(St.origin,{method:"POST",body:j}).arrayBuffer()).byteLength;if(F.isArrayBufferView(j)||F.isArrayBuffer(j))return j.byteLength;if(F.isURLSearchParams(j)&&(j=j+""),F.isString(j))return(await p(j)).byteLength},S=async(j,C)=>{const E=F.toFiniteNumber(j.getContentLength());return E??v(C)};return async j=>{let{url:C,method:E,data:T,signal:_,cancelToken:O,timeout:U,onDownloadProgress:Q,onUploadProgress:ee,responseType:Y,headers:I,withCredentials:ie="same-origin",fetchOptions:re}=j2(j),ne=i||fetch;Y=Y?(Y+"").toLowerCase():"text";let xe=v5([_,O&&O.toAbortSignal()],U),Ce=null;const ae=xe&&xe.unsubscribe&&(()=>{xe.unsubscribe()});let q;try{if(ee&&x&&E!=="get"&&E!=="head"&&(q=await S(I,T))!==0){let A=new s(C,{method:"POST",body:T,duplex:"half"}),B;if(F.isFormData(T)&&(B=A.headers.get("content-type"))&&I.setContentType(B),A.body){const[L,W]=fv(q,Pc(hv(ee)));T=pv(A.body,xv,L,W)}}F.isString(ie)||(ie=ie?"include":"omit");const D=d&&"credentials"in s.prototype,J={...re,signal:xe,method:E.toUpperCase(),headers:I.normalize().toJSON(),body:T,duplex:"half",credentials:D?ie:void 0};Ce=d&&new s(C,J);let se=await(d?ne(Ce,re):ne(C,J));const ge=g&&(Y==="stream"||Y==="response");if(g&&(Q||ge&&ae)){const A={};["status","statusText","headers"].forEach(oe=>{A[oe]=se[oe]});const B=F.toFiniteNumber(se.headers.get("content-length")),[L,W]=Q&&fv(B,Pc(hv(Q),!0))||[];se=new l(pv(se.body,xv,L,()=>{W&&W(),ae&&ae()}),A)}Y=Y||"text";let te=await b[F.findKey(b,Y)||"text"](se,j);return!ge&&ae&&ae(),await new Promise((A,B)=>{b2(A,B,{data:te,headers:Ft.from(se.headers),status:se.status,statusText:se.statusText,config:j,request:Ce})})}catch(D){throw ae&&ae(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,j,Ce,D&&D.response),{cause:D.cause||D}):be.from(D,D&&D.code,j,Ce,D&&D.response)}}},C5=new Map,w2=t=>{let i=t&&t.env||{};const{fetch:s,Request:l,Response:c}=i,d=[l,c,s];let f=d.length,m=f,p,x,g=C5;for(;m--;)p=d[m],x=g.get(p),x===void 0&&g.set(p,x=m?new Map:T5(i)),g=x;return x};w2();const Wm={http:Fz,xhr:b5,fetch:{get:w2}};F.forEach(Wm,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const vv=t=>`- ${t}`,E5=t=>F.isFunction(t)||t===null||t===!1;function A5(t,i){t=F.isArray(t)?t:[t];const{length:s}=t;let l,c;const d={};for(let f=0;f<s;f++){l=t[f];let m;if(c=l,!E5(l)&&(c=Wm[(m=String(l)).toLowerCase()],c===void 0))throw new be(`Unknown adapter '${m}'`);if(c&&(F.isFunction(c)||(c=c.get(i))))break;d[m||"#"+f]=c}if(!c){const f=Object.entries(d).map(([p,x])=>`adapter ${p} `+(x===!1?"is not supported by the environment":"is not available in the build"));let m=s?f.length>1?`since :
356`+f.map(vv).join(`
357`):" "+vv(f[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+m,"ERR_NOT_SUPPORT")}return c}const N2={getAdapter:A5,adapters:Wm};function th(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Bl(null,t)}function jv(t){return th(t),t.headers=Ft.from(t.headers),t.data=eh.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),N2.getAdapter(t.adapter||Vl.adapter,t)(t).then(function(l){return th(t),l.data=eh.call(t,t.transformResponse,l),l.headers=Ft.from(l.headers),l},function(l){return y2(l)||(th(t),l&&l.response&&(l.response.data=eh.call(t,t.transformResponse,l.response),l.response.headers=Ft.from(l.response.headers))),Promise.reject(l)})}const S2="1.13.6",Jc={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Jc[t]=function(l){return typeof l===t||"a"+(i<1?"n ":" ")+t}});const wv={};Jc.transitional=function(i,s,l){function c(d,f){return"[Axios v"+S2+"] Transitional option '"+d+"'"+f+(l?". "+l:"")}return(d,f,m)=>{if(i===!1)throw new be(c(f," has been removed"+(s?" in "+s:"")),be.ERR_DEPRECATED);return s&&!wv[f]&&(wv[f]=!0,console.warn(c(f," has been deprecated since v"+s+" and will be removed in the near future"))),i?i(d,f,m):!0}};Jc.spelling=function(i){return(s,l)=>(console.warn(`${l} is likely a misspelling of ${i}`),!0)};function R5(t,i,s){if(typeof t!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const l=Object.keys(t);let c=l.length;for(;c-- >0;){const d=l[c],f=i[d];if(f){const m=t[d],p=m===void 0||f(m,d,t);if(p!==!0)throw new be("option "+d+" must be "+p,be.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new be("Unknown option "+d,be.ERR_BAD_OPTION)}}const Ac={assertOptions:R5,validators:Jc},hn=Ac.validators;let La=class{constructor(i){this.defaults=i||{},this.interceptors={request:new uv,response:new uv}}async request(i,s){try{return await this._request(i,s)}catch(l){if(l instanceof Error){let c={};Error.captureStackTrace?Error.captureStackTrace(c):c=new Error;const d=c.stack?c.stack.replace(/^.+\n/,""):"";try{l.stack?d&&!String(l.stack).endsWith(d.replace(/^.+\n.+\n/,""))&&(l.stack+=`
358`+d):l.stack=d}catch{}}throw l}}_request(i,s){typeof i=="string"?(s=s||{},s.url=i):s=i||{},s=Va(this.defaults,s);const{transitional:l,paramsSerializer:c,headers:d}=s;l!==void 0&&Ac.assertOptions(l,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean),legacyInterceptorReqResOrdering:hn.transitional(hn.boolean)},!1),c!=null&&(F.isFunction(c)?s.paramsSerializer={serialize:c}:Ac.assertOptions(c,{encode:hn.function,serialize:hn.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Ac.assertOptions(s,{baseUrl:hn.spelling("baseURL"),withXsrfToken:hn.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let f=d&&F.merge(d.common,d[s.method]);d&&F.forEach(["delete","get","head","post","put","patch","common"],j=>{delete d[j]}),s.headers=Ft.concat(f,d);const m=[];let p=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(s)===!1)return;p=p&&C.synchronous;const E=s.transitional||Zm;E&&E.legacyInterceptorReqResOrdering?m.unshift(C.fulfilled,C.rejected):m.push(C.fulfilled,C.rejected)});const x=[];this.interceptors.response.forEach(function(C){x.push(C.fulfilled,C.rejected)});let g,b=0,v;if(!p){const j=[jv.bind(this),void 0];for(j.unshift(...m),j.push(...x),v=j.length,g=Promise.resolve(s);b<v;)g=g.then(j[b++],j[b++]);return g}v=m.length;let S=s;for(;b<v;){const j=m[b++],C=m[b++];try{S=j(S)}catch(E){C.call(this,E);break}}try{g=jv.call(this,S)}catch(j){return Promise.reject(j)}for(b=0,v=x.length;b<v;)g=g.then(x[b++],x[b++]);return g}getUri(i){i=Va(this.defaults,i);const s=v2(i.baseURL,i.url,i.allowAbsoluteUrls);return x2(s,i.params,i.paramsSerializer)}};F.forEach(["delete","get","head","options"],function(i){La.prototype[i]=function(s,l){return this.request(Va(l||{},{method:i,url:s,data:(l||{}).data}))}});F.forEach(["post","put","patch"],function(i){function s(l){return function(d,f,m){return this.request(Va(m||{},{method:i,headers:l?{"Content-Type":"multipart/form-data"}:{},url:d,data:f}))}}La.prototype[i]=s(),La.prototype[i+"Form"]=s(!0)});let z5=class T2{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(d){s=d});const l=this;this.promise.then(c=>{if(!l._listeners)return;let d=l._listeners.length;for(;d-- >0;)l._listeners[d](c);l._listeners=null}),this.promise.then=c=>{let d;const f=new Promise(m=>{l.subscribe(m),d=m}).then(c);return f.cancel=function(){l.unsubscribe(d)},f},i(function(d,f,m){l.reason||(l.reason=new Bl(d,f,m),s(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
358subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const s=this._listeners.indexOf(i);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const i=new AbortController,s=l=>{i.abort(l)};return this.subscribe(s),i.signal.unsubscribe=()=>this.unsubscribe(s),i.signal}static source(){let i;return{token:new T2(function(c){i=c}),cancel:i}}};function M5(t){return function(s){return t.apply(null,s)}}function O5(t){return F.isObject(t)&&t.isAxiosError===!0}const Zh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zh).forEach(([t,i])=>{Zh[i]=t});function C2(t){const i=new La(t),s=s2(La.prototype.request,i);return F.extend(s,La.prototype,i,{allOwnKeys:!0}),F.extend(s,i,null,{allOwnKeys:!0}),s.create=function(c){return C2(Va(t,c))},s}const Pe=C2(Vl);Pe.Axios=La;Pe.CanceledError=Bl;Pe.CancelToken=z5;Pe.isCancel=y2;Pe.VERSION=S2;Pe.toFormData=Zc;Pe.AxiosError=be;Pe.Cancel=Pe.CanceledError;Pe.all=function(i){return Promise.all(i)};Pe.spread=M5;Pe.isAxiosError=O5;Pe.mergeConfig=Va;Pe.AxiosHeaders=Ft;Pe.formToJSON=t=>g2(F.isHTMLForm(t)?new FormData(t):t);Pe.getAdapter=N2.getAdapter;Pe.HttpStatusCode=Zh;Pe.default=Pe;const{Axios:yM,AxiosError:bM,CanceledError:vM,isCancel:jM,CancelToken:wM,VERSION:NM,all:SM,Cancel:TM,isAxiosError:CM,spread:EM,toFormData:AM,AxiosHeaders:RM,HttpStatusCode:zM,formToJSON:MM,getAdapter:OM,mergeConfig:DM}=Pe;function D5({reviews:t,onClose:i}){const[s,l]=N.useState(t||[]),[c,d]=N.useState(!1),[f,m]=N.useState(0),[p,x]=N.useState({name:"",rating:0,text:""}),g=async v=>{if(v.preventDefault(),p.rating!==0)try{await Pe.post("https://pcexpert.store/api/reviews",{name:p.name,text:p.text,rating:p.rating});const S={id:s.length+2,...p,rating:p.rating};l([S,...s]),x({name:"",rating:0,text:""}),d(!1)}catch(S){console.log(S)}},b={hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.4,ease:"easeOut"}},exit:{opacity:0,y:50,transition:{duration:.3}}};return r.jsx(K.div,{className:"fixed inset-0 z-[5000] bg-gray-50/95 mt-20 backdrop-blur-sm overflow-y-auto",variants:b,initial:"hidden",animate:"visible",exit:"exit",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-4 md:px-8 py-10",children:[r.jsxs("div",{className:"flex justify-between items-center mb-10 sticky top-0 bg-gray-50/95  py-4 z-10 border-b border-gray-200",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl md:text-5xl font-bold text-black mb-2",children:"Recensioni Clienti"}),r.jsx("p",{className:"text-gray-500",children:"Cosa dicono di noi i nostri gamer"})]}),r.jsx("button",{onClick:i,className:"p-2 bg-white rounded-full shadow-md hover:bg-red-50 hover:text-red-600 transition-colors border border-gray-200",children:r.jsx(vl,{size:28})})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10",children:[r.jsxs("div",{className:"lg:col-span-1 space-y-6",children:[r.jsxs("div",{className:"bg-white p-8 rounded-2xl shadow-lg border border-gray-100 text-center",children:[r.jsx("h3",{className:"text-6xl font-bold text-gray-900 mb-2",children:(s.reduce((v,S)=>v+S.rating,0)/(s.length||1)).toFixed(1)}),r.jsx("div",{className:"flex justify-center gap-1 mb-4",children:[...Array(5)].map((v,S)=>r.jsx(ul,{size:24,className:S<Math.round(s.reduce((j,C)=>j+C.rating,0)/(s.length||1))?"fill-yellow-500 text-yellow-500":"text-gray-300"},S))}),r.jsxs("p",{className:"text-gray-500 font-medium",children:[s.length," Recensioni verificate"]}),r.jsx("div",{className:"my-6 h-px bg-gray-100"}),c?r.jsxs(K.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>d(!1),className:"w-full bg-gray-100 text-gray-700 font-bold py-4 rounded-xl border border-gray-200 flex items-center justify-center gap-2",children:[r.jsx(vl,{size:20}),"Annulla"]}):r.jsxs(K.button,{whileHover:{scale:1.02},whileTap:{scale:.98},onClick:()=>d(!0),className:"w-full bg-gradient-to-r from-red-600 to-red-500 text-white font-bold py-4 rounded-xl shadow-lg shadow-red-200 flex items-center justify-center gap-2",children:[r.jsx(q6,{size:20}),"Scrivi una recensione"]})]}),r.jsxs("div",{className:"bg-gradient-to-br from-red-50 to-white p-6 rounded-2xl border border-red-100",children:[r.jsx("h4",{className:"font-bold text-red-800 mb
358-4",children:"Perché recensire?"}),r.jsxs("ul",{className:"space-y-3",children:[r.jsxs("li",{className:"flex items-center gap-3 text-sm text-gray-700",children:[r.jsx("div",{className:"p-2 bg-white rounded-full shadow-sm",children:r.jsx(cR,{size:16,className:"text-red-500"})}),"Aiuta altri gamer a scegliere"]}),r.jsxs("li",{className:"flex items-center gap-3 text-sm text-gray-700",children:[r.jsx("div",{className:"p-2 bg-white rounded-full shadow-sm",children:r.jsx(Dh,{size:16,className:"text-red-500"})}),"Supporto diretto dal team"]})]})]})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(en,{mode:"wait",children:c?r.jsxs(K.form,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},onSubmit:g,className:"bg-white p-8 rounded-2xl shadow-xl border border-gray-100",children:[r.jsx("h3",{className:"text-2xl font-bold mb-6",children:"La tua esperienza"}),r.jsxs("div",{className:"mb-6",children:[r.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Voto complessivo"}),r.jsx("div",{className:"flex gap-2",children:[1,2,3,4,5].map(v=>r.jsx("button",{type:"button",onMouseEnter:()=>m(v),onMouseLeave:()=>m(0),onClick:()=>x({...p,rating:v}),className:"focus:outline-none transition-transform hover:scale-110",children:r.jsx(ul,{size:32,className:`${v<=(f||p.rating)?"fill-yellow-400 text-yellow-400":"text-gray-300"} transition-colors duration-200`})},v))})]}),r.jsxs("div",{className:"mb-6",children:[r.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Il tuo nome"}),r.jsx("input",{type:"text",required:!0,value:p.name,onChange:v=>x({...p,name:v.target.value}),className:"w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-red-500 focus:ring-2 focus:ring-red-200 outline-none transition-all",placeholder:"Mario Rossi"})]}),r.jsxs("div",{className:"mb-8",children:[r.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"La tua recensione"}),r.jsx("textarea",{required:!0,rows:4,value:p.text,onChange:v=>x({...p,text:v.target.value}),className:"w-full px-4 py-3 rounded-xl border border-gray-200 focus:border-red-500 focus:ring-2 focus:ring-red-200 outline-none transition-all resize-none",placeholder:"Raccontaci come ti trovi con il tuo nuovo PC..."})]}),r.jsxs(K.button,{whileHover:{scale:1.01},whileTap:{scale:.99},type:"submit",className:"w-full bg-black text-white font-bold py-4 rounded-xl flex items-center justify-center gap-2 hover:bg-gray-800 transition-colors",children:[r.jsx($c,{size:20}),"Pubblica Recensione"]})]},"form"):r.jsx(K.div,{initial:{opacity:0}
358,animate:{opacity:1},exit:{opacity:0},className:"space-y-4",children:s.length===0?r.jsxs("div",{className:"text-center py-20 text-gray-400",children:[r.jsx(Dh,{size:48,className:"mx-auto mb-4 opacity-50"}),r.jsx("p",{children:"Ancora nessuna recensione. Sii il primo!"})]}):s.map((v,S)=>r.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:S*.1},className:"bg-white p-6 rounded-2xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow",children:[r.jsxs("div",{className:"flex justify-between items-start mb-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-gray-200 to-gray-300 flex items-center justify-center",children:r.jsx(hR,{size:20,className:"text-gray-600"})}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-bold text-gray-900",children:v.name||"Utente Anonimo"}),r.jsx("p",{className:"text-xs text-gray-500",children:v.date||"Recente"})]})]}),r.jsx("div",{className:"flex",children:[...Array(5)].map((j,C)=>r.jsx(ul,{size:16,className:C<v.rating?"fill-yellow-400 text-yellow-400":"text-gray-200"},C))})]}),r.jsx("p",{className:"text-gray-600 leading-relaxed",children:v.text||"Nessun commento scritto."})]},v.id||S))},"list")})})]})]})})}function _5(){const[t,i]=N.useState(null);N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const s=Mt();om();const l="newest",[c,d]=N.useState({}),[f,m]=N.useState(!1),[p,x]=N.useState(0),[g,b]=N.useState(4),{isLoading:v,isError:S}=Rt({queryKey:["gaming-products",l],queryFn:async()=>{const q=new URLSearchParams;q.append("category","PC GAMING"),q.append("sortBy",l),q.append("page","1"),q.append("perPage","12");const D=await fetch(`https://pcexpert.store/api/getData?${q.toString()}`);if(!D.ok)throw new Error("Failed to fetch");return D.json()},staleTime:300*1e3}),{data:j}=Rt({queryKey:["reviews"],queryFn:async()=>{const q=await Pe.get("https://pcexpert.store/api/reviews");if(!q.data.reviews)throw new Error("Failed to fetch");return q.data}}),C=(j==null?void 0:j.reviews)||[],{data:E,isLoading:T}=Rt({queryKey:["notebook-products"],queryFn:async()=>{const q=new URLSearchParams;q.append("subcategory","NOTEBOOK"),q.append("page","1"),q.append("perPage","20");const D=await fetch(`https://pcexpert.store/api/getData?${q.toString()}`);if(!D.ok)throw new Error("Failed to fetch");return D.json()},staleTime:300*1e3}),{data:_,isLoading:O}=Rt({queryKey:["pcallinone-products"],queryFn:async()=>{const q=new URLSearchParams;q.append("subcategory","PC ALL IN ONE"),q.append("page","1"),q.append("perPage","8");const D=await fetch(`https://pcexpert.store/api/getData?${q.toString()}`);if(!D.ok)throw new Error("Failed to fetch");return D.json()},staleTime:300*1e3}),{data:U,isLoading:Q}=Rt({queryKey:["gpus-products"],queryFn:async()=>{const q=new URLSearchParams;q.append("subcategory","SCHEDE VIDEO – GPU"),q.append("page","1"),q.append("perPage","8");const D=await fetch(`https://pcexpert.store/api/getData?${q.toString()}`);if(!D.ok)throw new Error("Failed to fetch");return D.json()},staleTime:300*1e3}),ee=(_==null?void 0:_.products)||[],Y=(U==null?void 0:U.products)||[],I=(E==null?void 0:E.products)||[],ie=v,re=S,ne=[{id:9454,image:"/9449.jpeg"},{id:9448,image:"/9448.jpeg"},{id:8897,image:"/8897.jpeg"},{id:8896,image:"/8896.jpeg"},{id:8894,image:"/8894.jpeg"},{id:8871,image:"/8871.jpeg"},{id:8861,image:"/8861.jpeg"},{id:8845,image:"/8845.jpeg"}];N.useEffect(()=>{const q=()=>{window.innerWidth<640?b(1):window.innerWidth<768?b(2):window.innerWidth<1024?b(3):b(4)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[]),N.useEffect(()=>{x(0)},[I.length]);const xe=Math.max(0,I.length-g),Ce=()=>{x(q=>Math.min(q+1,xe))},ae=()=>{x(q=>Math.max(q-1,0))};return r.jsxs(r.Fragment,{children:[r.jsxs(st,{children:[r.jsx("title",{children:"PC Expert – Componenti PC Gaming e Computer Ricondizionati | Savigliano"}),r.jsx("meta",{name:"description",content:"Scopri i migliori PC gaming, componenti e computer ricondizionati su PC Expert. Assemblaggio su misura e spedizione in tutta Italia. P.IVA IT04117740045."}),r.jsx("meta",{name:"keywords",content:"PC gaming, componenti PC, computer ricondizionati, assemblaggio PC, Savigliano, Italia"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/"}),r.jsx("meta",{property:"og:title",content:"PC Expert – Componenti PC Gaming e Computer Ricondizionati"}),r.jsx("meta",{property:"og:description",content:"Scopri i migliori PC gaming, componenti e computer ricondizionati su PC Expert. Assemblaggio su misura e spedizione in tutta Italia."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/"}),r.jsx("meta",{property:"og:type",content:"website"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"}),r.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),r.jsx("meta",{name:"twitter:title",content:"PC Expert – Componenti PC Gaming e Computer Ricondizionati"}),r.jsx("meta",{name:"twitter:description",content:"Scopri i migliori PC gaming, componenti e computer ricondizionati su PC Expert. Assemblaggio su misura e spedizione in tutta Italia."})]}),r.jsxs("main",{className:"overflow-x-hidden",children:[r.jsx(en,{children:f&&r.jsx(D5,{reviews:C,onClose:()=>m(!1)})}),r.jsxs("section",{className:"h-screen pt-10 overflow-hidden bg-gradient-to-br from-red-200 via-white to-red-300","aria-label":"Banner principale",children:[r.jsxs("div",{className:"px-4 md:px-8 lg:px-20 xl:px-40 2xl:px-44 flex justify-between ",children:[r.jsxs(K.div,{className:"flex flex-col gap-6 w-full lg:w-auto",initial:{opacity:0,x:-30}
358,animate:{opacity:1,x:0},transition:{duration:.7,ease:"easeOut"},children:[r.jsxs(K.h1,{className:"text-5xl sm:text-6xl md:text-7xl lg:text-8xl xl:text-9xl text-black font-bold leading-tight",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.15},children:["FUTURE OF ",r.jsx("br",{})," TECH"]}),r.jsx(K.p,{className:"text-base md:text-lg w-full max-w-[30rem]",initial:{opacity:0},animate:{opacity:1},transition:{duration:.7,delay:.3},children:"Porta le tue performance di gioco al livello successivo con i nostri PC da gaming assemblati con componenti di ultima generazione"}),r.jsxs(K.div,{className:"flex flex-col sm:flex-row items-start sm:items-center gap-4 sm:gap-6",initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{duration:.7,delay:.45},children:[r.jsx(K.button,{className:"font-semibold text-center bg-gradient-to-r from-black to-gray-500 rounded-full text-white px-6 py-3 text-lg whitespace-nowrap",onClick:()=>s("/products?category=PC%20GAMING"),whileHover:{scale:1.03},whileTap:{scale:.98},children:"Scopri le offerte"}),r.jsx(K.button,{onClick:()=>s("/contact"),className:"bg-white border border-black text-center font-semibold px-8 py-3 text-lg rounded-full whitespace-nowrap",whileHover:{scale:1.03},whileTap:{scale:.98},children:"Contattaci"})]}),r.jsxs(K.div,{className:"flex items-center gap-8 sm:gap-12 mt-12 lg:mt-40",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.7,delay:.6},children:[r.jsx("div",{className:"flex items-center -space-x-2",children:[94,72,48].map((q,D)=>r.jsx(K.img,{className:"w-12 h-12 sm:w-14 sm:h-14 rounded-full shadow-lg",src:`https://randomuser.me/api/portraits/men/${q}.jpg`,alt:"Client",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.4,delay:.75+D*.08}},q))}),r.jsxs(K.div,{className:"flex flex-col",initial:{opacity:0}
358,animate:{opacity:1},transition:{duration:.7,delay:1},children:[r.jsx("h2",{className:"text-2xl sm:text-3xl font-semibold",children:"200+"}),r.jsx("p",{className:"text-gray-400 text-sm sm:text-base",children:"Clienti soddisfatti"})]})]})]}),r.jsx(K.div,{className:"hidden lg:block absolute rounded-xl p-3 lg:p-4 xl:p-6 2xl:p-8 bg-transparent backdrop-blur-[5px] border-2 z-[1] border-white",initial:{opacity:0,scale:.9},style:{top:"50%",left:"50%",translateX:"-50%",translateY:"-50%"},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.25,ease:"easeOut"},whileHover:{scale:1.01},children:r.jsx("img",{src:"../../imgs/handphones.png",alt:"pc mockup",className:"w-48 lg:w-56 xl:w-72 2xl:w-[24rem]"})}),r.jsx(K.div,{className:"hidden xl:block absolute top-[8.5rem] right-[40rem] rounded-xl p-2 bg-transparent backdrop-blur-[20px] border border-white",initial:{opacity:0,y:-30,x:30},animate:{opacity:1,y:0,x:0},transition:{duration:.7,delay:.8,ease:"easeOut"},whileHover:{scale:1.08,rotate:2},children:r.jsx("img",{src:"../../imgs/laptopmockup.png",alt:"laptop mockup",className:"w-16"})}),r.jsxs("div",{className:"hidden lg:flex flex-col justify-end mr-16 gap-32",children:[r.jsxs(K.div,{className:"z-[3000] flex bg-white px-8 py-6 gap-6 rounded-2xl max-w-sm justify-center ml-10 shadow-xl",initial:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.4,ease:"easeOut"},whileHover:{y:-3,boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"},children:[r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("h3",{className:"text-4xl font-semibold",children:(C.reduce((q,D)=>q+D.rating,0)/(C.length||1)).toFixed(1)}),r.jsx("p",{className:"text-gray-700 text-sm",children:"Valutazione clienti"})]}),r.jsx("div",{className:"h-full w-[2px] bg-gray-400"}),r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("h3",{className:"text-4xl font-semibold",children:"100+"}),r.jsx("p",{className:"text-gray-700 text-sm",children:"Prodotti venduti"})]})]}),r.jsxs(K.h1,{className:"text-9xl text-black font-bold text-right leading-tight",initial:{opacity:0,x:30},animate:{opacity:1,x:0},transition:{duration:.7,delay:.55},children:["IN YOUR",r.jsx("br",{})," HANDS"]})]})]}),r.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-full px-4",children:r.jsxs("div",{className:"flex flex-col justify-center items-center gap-1 sm:gap-2",children:[r.jsx("div",{className:"flex flex-row items-center justify-center",children:[...Array(5)].map((q,D)=>r.jsx(ul,{size:window.innerWidth<640?18:24,className:D<Math.round(C.reduce((J,se)=>J+se.rating,0)/(C.length||1))?"fill-yellow-500 text-yellow-500":"text-gray-400"},D))}),r.jsxs("div",{className:"flex flex-col sm:flex-row mb-3 sm:mb-5 items-center justify-center gap-1 sm:gap-2",children:[r.jsxs("span",{className:"text-sm sm:text-base md:text-lg font-semibold text-center",children:[C.length," Recensioni"]}),r.jsx("div",{className:"hidden sm:block w-[1.5px] h-5 bg-gray-700"}),r.jsx("button",{onClick:()=>m(!0),className:"text-sm sm:text-base md:text-lg font-semibold text-gray-700 cursor-pointer hover:text-black transition-all duration-300",children:"Visualizza recensioni"})]})]})})]}),r.jsxs("section",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] py-10","aria-labelledby":"pc-gaming-heading",children:[r.jsx("header",{className:"bg-white rounded-lg shadow-sm p-4 mb-6",children:r.jsx("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center","aria-hidden":"true",children:r.jsx(nl,{color:"red",size:24})}),r.jsxs("div",{children:[r.jsx("h2",{id:"pc-gaming-heading",className:"text-lg font-bold text-gray-900",children:"PC GAMING"}),r.jsxs("p",{className:"text-sm text-gray-600",children:[ne.length," promozioni"]})]})]})})}),ie&&r.jsxs("div",{className:"text-center py-20",role:"status","aria-live":"polite",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent roun
358ded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento prodotti..."})]}),re&&r.jsxs("div",{className:"text-center py-20",role:"alert",children:[r.jsx("p",{className:"text-red-600 text-lg mb-4",children:"Errore nel caricamento dei prodotti"}),r.jsx("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700",children:"Riprova"})]}),!ie&&!re&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",children:ne.map(q=>r.jsx("article",{className:"group rounded-lg overflow-hidden shadow-sm hover:shadow-lg transition-all duration-300 bg-black cursor-pointer",onClick:()=>s(`/product/redirect/${q.id}`),"aria-label":`Apri promozione prodotto ${q.id}`,children:r.jsx("img",{src:q.image,alt:`Promozione prodotto ${q.id}`,className:"w-full h-full object-cover aspect-square group-hover:scale-[1.02] transition-transform duration-300",loading:"lazy"})},q.id))})})]}),r.jsxs("section",{className:"bg-gray-50 py-8 md:py-12 px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] ","aria-labelledby":"notebooks-heading",children:[r.jsxs("div",{className:"max-w-full mx-auto",children:[r.jsx("header",{className:"bg-white rounded-lg shadow-sm p-4 mb-6",children:r.jsx("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center","aria-hidden":"true",children:r.jsx(nl,{color:"red",size:24})}),r.jsxs("div",{children:[r.jsx("h2",{id:"notebooks-heading",className:"text-lg font-bold text-gray-900",children:"NOTEBOOKS"}),r.jsx("p",{className:"text-sm text-gray-600",children:"18/100+ prodotti"})]})]})})}),I.length===0&&!T&&r.jsx("div",{className:"text-center py-10",children:r.jsx("p",{className:"text-gray-600",children:"Nessun notebook disponibile al momento"})}),T&&r.jsxs("div",{className:"text-center py-10",role:"status","aria-live":"polite",children:[r.jsx("div",{className:"inline-block w-8 h-8 border-4 border-red-600 border-t-transparent rounded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold text-sm",children:"Caricamento notebooks..."})]}),I.length>0&&r.jsxs("div",{className:"relative",role:"region","aria-label":"Carosello notebooks",children:[I.length>g&&r.jsxs(r.Fragment,{children:[r.jsx("button",{onClick:ae,disabled:p===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-2 sm:-translate-x-4 z-10 bg-white rounded-full p-1.5 sm:p-2 shadow-lg ${p===0?"opacity-50 cursor-not-allowed":"hover:bg-gray-100"}`,"aria-label":"Prodotto precedente",children:r.jsx(kc,{className:"w-4 h-4 sm:w-6 sm:h-6 text-gray-600"})}),r.jsx("button",{onClick:Ce,disabled:p===xe,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-2 sm:translate-x-4 z-10 bg-white rounded-full p-1.5 sm:p-2 shadow-lg ${p===xe?"opacity-50 cursor-not-allowed":"hover:bg-gray-100"}`,"aria-label":"Prodotto successivo",children:r.jsx(Yi,{className:"w-4 h-4 sm:w-6 sm:h-6 text-gray-600"})})]}),r.jsx("div",{className:"overflow-hidden",children:r.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${p*(100/g)}%)`},children:I.map(q=>r.jsx("article",{className:"flex-shrink-0 px-2 sm:px-3 hover:scale-105 transition-all duration-300 cursor-pointer",style:{width:`${100/g}%`},onClick:()=>s(`/product/${encodeURIComponent(q.title)}/${q.id}`),children:r.jsxs("div",{className:"bg-white rounded-lg p-3 sm:p-4 shadow-sm hover:shadow-md transition-shadow",children:[r.jsx("img",{src:q.mainImg,alt:`${q.title} - Notebook gaming`,className:"w-full h-40 sm:h-48 object-contain rounded",loading:"lazy"}),r.jsx("h3",{className:"mt-3 sm:mt-4 text-xs sm:text-sm font-medium text-gray-900 h-10 sm:h-12 line-clamp-2",children:q.title}),r.jsxs("p",{className:"mt-2 text-base sm:text-lg font-bold text-red-600",children:[q.price,"€"]})]})},q.id))})})]}),r.jsx("div",{className:"flex justify-center mt-6 md:mt-8",children:r.jsxs("button",{onClick:()=>s("/products?subcategory=NOTEBOOK"),className:"bg-red-600 hover:bg-red-700 text-white font-semibold px-6 sm:px-8 py-2 sm:py-3 rounded-md transition-colors flex items-center gap-2 text-sm sm:text-base","aria-label":"Vedi tutti i notebooks",children:["Vedi di più",r.jsx(Yi,{className:"w-4 h-4 sm:w-5 sm:h-5","aria-hidden":"true"})]})})]}),r.jsx("div",{className:"bg-white rounded-lg shadow-sm p-4 mb-6 mt-20",children:r.jsx("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center","aria-hidden":"true",children:r.jsx(nl,{c
358olor:"red",size:24})}),r.jsxs("div",{children:[r.jsx("h2",{id:"processors-heading",className:"text-lg font-bold text-gray-900",children:"PC ALL IN ONE"}),r.jsx("p",{className:"text-sm text-gray-600",children:"10/100+ prodotti"})]})]})})}),!ie&&!re&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",children:ee.map(q=>r.jsxs("article",{onClick:()=>s(`/product/${encodeURIComponent(q.title)}/${q.id}`),className:"bg-white rounded-lg shadow-sm hover:shadow-lg transition-shadow p-4 h-full flex flex-col relative cursor-pointer",children:[(q==null?void 0:q.discount)>0&&r.jsxs("span",{className:"absolute top-2 right-2 bg-red-600 text-white px-2 py-1 rounded text-sm font-bold z-10",children:["-",q.discount,"% Sconto"]}),r.jsx("img",{src:q.mainImg,alt:`${q.title} - Processore`,className:"w-full h-48 object-contain mb-4 rounded",loading:"lazy"}),r.jsx("h3",{className:"text-left font-semibold text-gray-900 text-sm md:text-base line-clamp-2 mb-2 flex-grow",children:q.title}),r.jsx("div",{className:"flex items-baseline gap-2 mb-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("span",{className:"text-red-600 font-bold text-xl",children:[q.price,"€"]}),q.oldPrice>0&&r.jsxs("span",{className:"text-gray-500 line-through text-sm",children:[q.oldPrice.toFixed(2),"€"]})]})}),r.jsx("div",{className:"flex items-center gap-2",onClick:D=>D.stopPropagation(),children:r.jsx("button",{onClick:()=>s(`/product/${encodeURIComponent(q.title)}/${q.id}`),className:"flex-1 py-2 rounded font-semibold text-sm bg-red-600 text-white hover:bg-red-700","aria-label":`Aggiungi ${q.title} al carrello`,children:"DETTAGLI"})})]},q.id))}),r.jsx("div",{className:"flex justify-center items-center w-full mt-20",children:r.jsxs(K.button,{className:"w-full sm:w-40 flex justify-center items-center bg-red-600 text-white py-2 rounded font-semibold",whileHover:{backgroundColor:"#b91c1c",scale:1.05},whileTap:{scale:.95},onClick:()=>s("/products?subcategory=PC%20ALL%20IN%20ONE"),"aria-label":"Vedi tutti i processori",children:["Vedi di più",r.jsx(Yi,{className:"w-5 h-5","aria-hidden":"true"})]})})]}),r.jsx("div",{className:"bg-white rounded-lg shadow-sm p-4 mb-6 mt-20",children:r.jsx("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center","aria-hidden":"true",children:r.jsx(nl,{color:"red",size:24})}),r.jsxs("div",{children:[r.jsx("h2",{id:"processors-heading",className:"text-lg font-bold text-gray-900",children:"SCHEDE VIDEO - GPU"}),r.jsx("p",{className:"text-sm text-gray-600",children:"10/100+ prodotti"})]})]})})}),!ie&&!re&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",children:Y.map(q=>r.jsxs("article",{onClick:()=>s(`/product/${encodeURIComponent(q.title)}/${q.id}`),className:"bg-white rounded-lg shadow-sm hover:shadow-lg transition-shadow p-4 h-full flex flex-col relative cursor-pointer",children:[(q==null?void 0:q.discount)>0&&r.jsxs("span",{className:"absolute top-2 right-2 bg-red-600 text-white px-2 py-1 rounded text-sm font-bold z-10",children:["-",q.discount,"% Sconto"]}),r.jsx("img",{src:q.mainImg,alt:`${q.title} - Processore`,className:"w-full h-48 object-contain mb-4 rounded",loading:"lazy"}),r.jsx("h3",{className:"text-left font-semibold text-gray-900 text-sm md:text-base line-clamp-2 mb-2 flex-grow",children:q.title}),r.jsx("div",{className:"flex items-baseline gap-2 mb-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("span",{className:"text-red-600 font-bold text-xl",children:[q.price,"€"]}),q.oldPrice>0&&r.jsxs("span",{className:"text-gray-500 line-through text-sm",children:[q.oldPrice.toFixed(2),"€"]})]})}),r.jsx("div",{className:"flex items-center gap-2",onClick:D=>D.stopPropagation(),children:r.jsx("button",{onClick:()=>s(`/product/${encodeURIComponent(q.title)}/${q.id}`),className:"flex-1 py-2 rounded font-semibold text-sm bg-red-600 text-white hover:bg-red-700","aria-label":`Aggiungi ${q.title} al carrello`,children:"DETTAGLI"})})]},q.id))}),r.jsx("div",{className:"flex justify-center items-center w-full mt-20",children:r.jsxs(K.button,{className:"w-full sm:w-40 flex justify-center items-center bg-red-600 text-white py-2 rounded font-semibold",whileHover:{backgroundColor:"#b91c1c",scale:1.05},whileTap:{scale:.95},onClick:()=>s("/products?subcategory=SCHEDE+VIDEO+–+GPU"),"aria-label":"Vedi tutti i processori",children:["Vedi di più",r.jsx(Yi,{className:"w-5 h-5","aria-hidden":"true"})]})})]})]})]})]})}const E2=N.createContext({products:[],categories:[],pagination:null,isLoading:!1,isError:!1,error:null,refetch:()=>{}}),Nv=t=>t?t.replace(/[^\x20-\x7E]/g,""):"",k5=t=>{var s,l,c,d;const i=new URLSearchParams;return t.search&&i.append("search",t.search),t.subcategory?i.append("subcategory",t.subcategory):t.category&&i.append("category",t.category),t.priceMin!==void 0&&i.append("priceMin",t.priceMin.toString()),t.priceMax!==void 0&&i.append("priceMax",t.priceMax.toString()),(s=t.processor)!=null&&s.length&&t.processor.forEach(f=>i.append("processor",f)),(l=t.gpu)!=null&&l.length&&t.gpu.forEach(f=>i.append("gpu",f)),(c=t.ram)!=null&&c.length&&t.ram.forEach(f=>i.append("ram",f)),(d=t.storage)!=null&&d.length&&t.storage.forEach(f=>i.append("storage",f)),t.sortBy&&i.append("sortBy",t.sortBy),t.page&&i.append("page",t.page.toString()),t.perPage&&i.append("perPage",t.perPage.toString()),i.toString()},U5=({api:t,children:i,filters:s={}})=>{var v;const l=k5(s),{data:c,isLoading:d,isError:f,error:m,refetch:p}=Rt({queryKey:["products",l],queryFn:async()=>{const S=`${t}/getData${l?`?${l}`:""}`,j=await fetch(S);if(!j.ok)throw new Error("Failed to fetch products");return j.json()},staleTime:300*1e3,refetchOnWindowFocus:!1}),x=((v=c==null?void 0:c.products)==null?void 0:v.map(S=>({...S,title:Nv(S.title),description:Nv(S.description)})))||[],g=(c==null?void 0:c.categories)||[],b=(c==null?void 0:c.pagination)||null;return r.jsx(E2.Provider,{value:{products:x,categories:g,pagination:b,isLoading:d,isError:f,error:m,refetch:p},children:i})},L5=()=>N.useContext(E2),A2=N.createContext();function P5({children:t}){const[i,s]=N.useState(()=>{const S=localStorage.getItem("cart");if(S)try{return JSON.parse(S)}catch(j){console.error("Failed to parse cart:",j)}return[]});N.useEffect(()=>{localStorage.setItem("cart",JSON.stringify(i))},[i]);const l=N.useCallback((S,j)=>{s(C=>C.find(T=>T.id===S.id)?C.map(T=>T.id===S.id?{...T,quantity:T.quantity+j}:T):[...C,{...S,quantity:j||1}])},[]),c=N.useCallback(S=>{s(j=>j.filter(C=>C.id!==S))},[]),d=N.useCallback((S,j)=>{j<1||s(C=>C.map(E=>E.id===S?{...E,quantity:j}:E))},[]),f=N.useCallback(()=>{s([]),localStorage.removeItem("cart")},[]),m=N.useCallback(()=>i.reduce((S,j)=>S+j.quantity,0),[i]),{data:p=[],isLoading:x}=Rt({queryKey:["weightprices"],queryFn:async()=>(await Pe.get("https://pcexpert.store/api/getWeightPrices")).data}),g=N.useCallback(()=>
358{if(!i||i.length===0||p.length===0)return{subTotal:0,total:0,shipping:0};const S=i.reduce((O,U)=>U.type==="recon"?O:O+(U.price||0)*(U.quantity||1),0),j=i.reduce((O,U)=>U.type!=="recon"?O:O+(U.price||0)*(U.quantity||1),0),C=S+j,E=i.reduce((O,U)=>O+(U.weight||0)*(U.quantity||1),0),T=p.find(O=>E>=O.firstNumber&&E<O.secondNumber),_=T?T.price:0;return{subTotal:C,total:C+_,shipping:_}},[i,p]),b=N.useCallback(S=>i.some(j=>j.id===S),[i]),v={cartItems:i,addToCart:l,removeFromCart:c,updateQuantity:d,clearCart:f,getCartItemCount:m,getCartTotal:g,isInCart:b};return r.jsx(A2.Provider,{value:v,children:t})}function Hl(){const t=N.useContext(A2);if(!t)throw new Error("useCart must be used within a CartProvider");return t}function V5(){const{getCartItemCount:t}=Hl(),{categories:i}=L5(),s=Hn(),[l,c]=N.useState(!1),[d,f]=N.useState(s.pathname),m=t(),[p,x]=N.useState(""),[g,b]=N.useState([]),[v,S]=N.useState(!1),[j,C]=N.useState(!1),[E,T]=N.useState(!1),[_,O]=N.useState([]),[U,Q]=N.useState([]),ee=N.useRef(null),Y=N.useRef(null),I=N.useRef(null),ie=N.useRef(null);N.useRef(null);const re=Mt(),ne="https://pcexpert.store/api";N.useEffect(()=>{f(s.pathname)},[s.pathname]);const xe=te=>{f(te),c(!1),re(te)},Ce=[{id:1,path:"/",name:"Home"},{id:2,path:"/about",name:"Chi Siamo"},{id:3,path:"/contact",name:"Contattaci"},{id:4,path:"/riparazioni",name:"Riparazioni & Assistenza"},{id:5,path:"/richiedi",name:"Richiedi un preventivo personalizzato"},{id:6,path:"/smartphones-ricondizionati",name:"Smartphone Ricondizionati"}];N.useEffect(()=>{if(ie.current&&clearTimeout(ie.current),p.trim().length===0){b([]),S(!1),C(!1);return}if(!(p.trim().length<2))return C(!0),ie.current=setTimeout(async()=>{try{const te=await fetch(`${ne}/search/suggestions?q=${encodeURIComponent(p.trim())}`);if(!te.ok)throw new Error("Failed to fetch suggestions");const A=await te.json();b(A.suggestions||[]),S(!0)}catch(te){console.error("Error fetching suggestions:",te),b([])}finally{C(!1)}},300),()=>{ie.current&&clearTimeout(ie.current)}},[p,ne]),N.useEffect(()=>{const te=A=>{ee.current&&!ee.current.contains(A.target)&&Y.current&&!Y.current.contains(A.target)&&S(!1),I.current&&!I.current.contains(A.target)&&(T(!1),O([]))};return document.addEventListener("mousedown",te),()=>document.removeEventListener("mousedown",te)},[]);const ae=te=>{x(""),S(!1),c(!1),re(`/product/${encodeURIComponent(te.title)}/${te.id}`)},q=te=>{if(te.preventDefault(),p.trim()){S(!1),c(!1);let A=s.search.replace(/([?&]search=[^&]*)/,"");A=A.replace(/&&/g,"&").replace(/\?&/,"?");const B=encodeURIComponent(p.trim());A.includes("category")?re(`/products${A}&search=${B}`):re(`/products?search=${B}`)}else{S(!1),c(!1);let A=s.search.replace(/([?&]search=[^&]*)/,"");A=A.replace(/&&/g,"&").replace(/\?&/,"?"),re(`/products${A}`)}},D=te=>{T(!1),O([]),c(!1);const A=new URLSearchParams;if(te.length>0){const B=te[te.length-1];te.length===1?A.set("category",B.name):A.set("subcategory",B.name)}re(`/products?${A.toString()}`)},J=te=>{Q(A=>A.includes(te)?A.filter(B=>B!==te):[...A,te])},se=(te,A=0)=>!te||te.length===0?null:A===0?r.jsx(K.div,{className:"absolute left-0 top-full mt-2 bg-white border-2 border-red-500 rounded-2xl shadow-2xl z-50 overflow-hidden",style:{minWidth:"700px",maxWidth:"900px"},initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:r.jsxs("div",{className:"flex max-h-[70vh]",children:[r.jsx("div",{className:"w-1/3 bg-gray-50 border-r border-gray-200 overflow-y-auto",children:te.map(B=>{var L,W;return r.jsxs("button",{onMouseEnter:()=>O([B]),onClick:()=>D([B]),className:`w-full px-4 py-3 text-left font-semibold transition-colors border-b border-gray-200 last:border-b-0 flex items-center justify-between group ${((L=_[0])==null?void 0:L.id)===B.id?"bg-red-500 text-white":"text-gray-800 hover:bg-red-100"}`,children:[r.jsx("span",{className:"text-sm",children:B.name}),B.children&&B.children.length>0&&r.jsx(Yi,{size:16,className:((W=_[0])==null?void 0:W.id)===B.id?"text-white":"text-gray-400"})]},B.id)})}),r.jsx("div",{className:"w-2/3 overflow-y-auto bg-white",children:_[0]&&_[0].children&&_[0].children.length>0?r.jsxs("div",{className:"p-4",children:[r.jsx("h3",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider mb-3 px-2",children:_[0].name}),r.jsx("div",{className:"grid grid-cols-2 gap-1",children:_[0].children.map(B=>{var L,W,oe;return r.jsxs("div",{className:"relative",children:[r.jsxs("button",{onMouseEnter:()=>O([_[0],B]),onClick:()=>D([_[0],B]),className:`w-full px-3 py-2 text-left text-sm rounded-lg transition-colors flex items-center justify-between group ${((L=_[1])==null?void 0:L.id)===B.id?"bg-red-500 text-white":"text-gray-700 hover:bg-gray-100"}`,children:[r.jsx("span",{children:B.name}),B.children&&B.children.length>0&&r.jsx(Yi,{size:14,className:((W=_[1])==null?void 0:W.id)===B.id?"text-white":"text-gray-400"})]}),B.children&&B.children.length>0&&((oe=_[1])==null?void 0:oe.id)===B.id&&r.jsx(K.div,{className:"absolute left-full top-0 ml-1 bg-white border-2 border-red-500 rounded-xl shadow-2xl z-50 min-w-[200px] max-h-[400px] overflow-y-auto",initial:{opacity:0,x:-10}
358,animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.15},children:B.children.map(de=>r.jsx("button",{onClick:()=>D([_[0],B,de]),className:"w-full px-4 py-2 text-left text-sm text-gray-700 hover:bg-red-500 hover:text-white transition-colors border-b border-gray-200 last:border-b-0",children:de.name},de.id))})]},B.id)})})]}):r.jsx("div",{className:"p-8 text-center text-gray-400 text-sm",children:"Passa il mouse su una categoria per vedere le sottocategorie"})})]})}):null,ge=(te,A=0,B=[])=>!te||te.length===0?null:te.map(L=>{const W=[...B,L],oe=L.children&&L.children.length>0,de=U.includes(L.id);return r.jsxs("div",{style:{marginLeft:A*12},children:[r.jsx("div",{className:"flex items-center",children:r.jsxs("button",{onClick:()=>{oe?J(L.id):D(W)},className:`flex-1 text-left px-4 py-2 text-gray-300 hover:bg-[#202020] hover:text-white active:bg-[#303030] rounded-lg transition-all flex items-center justify-between ${de?"bg-[#202020] text-white":""}`,children:[r.jsx("span",{children:L.name}),oe&&r.jsx(yl,{size:16,className:`text-gray-400 transition-transform ${de?"rotate-180":""}`})]})}),r.jsx(en,{children:oe&&de&&r.jsxs(K.div,{className:"mt-1 overflow-hidden",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},children:[r.jsxs("button",{onClick:()=>D(W),className:"w-full text-left px-4 py-2 text-red-400 hover:bg-[#202020] hover:text-red-300 active:bg-[#303030] rounded-lg transition-all text-sm",style:{marginLeft:(A+1)*12},children:["Vedi tutti in ",L.name]}),ge(L.children,A+1,W)]})})]},L.id)});return r.jsxs(K.div,{className:"w-full bg-gradient-to-r from-red-600 via-red-500 to-pink-500 h-[70px] md:h-[80px] z-[99999] sticky top-0 shadow-2xl",initial:{y:-100},animate:{y:0},transition:{duration:.5,ease:"easeOut"},children:[r.jsxs("div",{className:"h-full px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] flex justify-between items-center",children:[r.jsxs("div",{className:"flex items-center gap-8",children:[r.jsx(K.div,{whileHover:{scale:1.05},whileTap:{scale:.95},className:"cursor-pointer z-50",onClick:()=>xe("/"),children:r.jsx("img",{src:"../../imgs/logo.png",alt:"logo",className:"w-20"})}),r.jsxs(K.div,{className:"hidden lg:flex gap-6 xl:gap-8 items-center justify-center text-center",initial:{opacity:0}
358,animate:{opacity:1},transition:{delay:.2,duration:.5},children:[Ce.map((te,A)=>r.jsx(K.div,{className:"relative",initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3+A*.1},children:r.jsxs(K.button,{onClick:()=>xe(te.path),className:`text-white font-bold text-sm xl:text-md relative transition-colors ${d===te.path?"text-white drop-shadow-lg":"hover:text-white/80"}`,whileHover:{scale:1.1,y:-2},whileTap:{scale:.95},children:[te.name,d===te.path&&!s.search.includes("category")&&r.jsx(K.div,{className:"absolute -bottom-2 left-0 right-0 h-1 bg-white rounded-full shadow-lg",layoutId:"activeNav",transition:{type:"spring",stiffness:300,damping:30}})]})},te.id)),r.jsxs(K.div,{className:"relative",ref:I,initial:{y:-20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.3+Ce.length*.1},children:[r.jsxs(K.button,{onClick:()=>T(!E),onMouseEnter:()=>T(!0),className:"text-white font-bold text-sm xl:text-md relative transition-colors hover:text-white/80 flex items-center gap-1",whileHover:{scale:1.1,y:-2},whileTap:{scale:.95},children:["Scopri le categorie",r.jsx(yl,{size:16,className:`transition-transform ${E?"rotate-180":""}`}),d==="/products"&&s.search.includes("category")&&r.jsx(K.div,{className:"absolute -bottom-2 left-0 right-0 h-1 bg-white rounded-full shadow-lg",layoutId:"activeNav",transition:{type:"spring",stiffness:300,damping:30}})]}),r.jsx(en,{children:E&&r.jsx("div",{onMouseLeave:()=>{T(!1),O([])},children:se(i)})})]})]})]}),r.jsxs("div",{className:"flex items-center gap-6",children:[r.jsxs("div",{className:"hidden md:block relative",ref:ee,children:[r.jsxs(K.form,{onSubmit:q,className:"flex bg-white/20 backdrop-blur-md border-2 border-white/40 rounded-full overflow-hidden shadow-lg",initial:{x:50,opacity:0},transition:{delay:.4,duration:.5},animate:{x:0,opacity:1},children:[r.jsx("input",{type:"text",placeholder:"Cerca prodotti..",className:"ml-3 bg-transparent outline-none text-white placeholder-white/70 text-sm w-32 lg:w-48 xl:w-64",value:p,onChange:te=>x(te.target.value)}),r.jsx(K.button,{type:"submit","aria-label":"Search",className:"bg-white w-10 h-10 lg:w-12 lg:h-12 flex justify-center items-center rounded-full",whileHover:{scale:1.1,backgroundColor:"#f0f0f0"},whileTap:{scale:.9},children:r.jsx(Gb,{color:"#dc2626",size:20,className:"lg:w-6 lg:h-6"})})]}),r.jsx(en,{children:v&&(g.length>0||j)&&r.jsx(K.div,{className:"absolute top-full mt-2 w-full min-w-[300px] bg-white border-2 border-red-500 rounded-2xl overflow-hidden shadow-2xl",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:j?r.jsx("div",{className:"px-4 py-3 text-gray-600 text-sm text-center",children:"Caricamento..."}):g.map((te,A)=>r.jsxs(K.div,{className:"px-3 py-3 hover:bg-red-500 hover:text-white cursor-pointer transition-colors border-b border-gray-200 last:border-b-0 flex items-center gap-3",onClick:()=>ae(te),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:A*.05},whileHover:{x:5},children:[te.mainImg&&r.jsx("div",{className:"w-12 h-12 flex-shrink-0 rounded overflow-hidden bg-gray-100",children:r.jsx("img",{src:te.mainImg,alt:te.title,className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-gray-800 font-medium text-sm truncate group-hover:text-white",children:te.title}),te.price&&r.jsxs("div",{className:"text-gray-600 text-xs mt-1 group-hover:text-white/80",children:["€",te.price]})]})]},te.id))})})]}),r.jsx(K.button,{className:"hidden md:flex relative","aria-label":"Cart",onClick:()=>xe("/cart"),whileHover:{scale:1.1},whileTap:{scale:.95},initial:{x:50,opacity:0},animate:{x:0,opacity:1},transition:{delay:.5,duration:.5},children:r.jsxs("div",{className:"relative",children:[r.jsx(bl,{color:"white",size:24,className:"lg:w-7 lg:h-7"}),m>0&&r.jsx(K.div,{className:"absolute -top-2 -right-2 bg-yellow-400 text-red-600 text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center shadow-lg",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:m>99?"99+":m})]})})]}),r.jsxs("div",{className:"md:hidden flex items-center gap-4 z-50",children:[r.jsx(K.button,{className:"relative","aria-label":"Cart",onClick:()=>xe("/cart"),whileTap:{scale:.9},initial:{opacity:0}
358,animate:{opacity:1},transition:{delay:.3},children:r.jsxs("div",{className:"relative",children:[r.jsx(bl,{color:"white",size:24}),m>0&&r.jsx(K.div,{className:"absolute -top-2 -right-2 bg-yellow-400 text-red-600 text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center shadow-lg",initial:{scale:0},animate:{scale:1},transition:{type:"spring",stiffness:500,damping:15},children:m>99?"99+":m})]})}),r.jsx(K.button,{className:"text-white",onClick:()=>c(!l),whileTap:{scale:.9},"aria-label":"Toggle menu",children:r.jsx(en,{mode:"wait",children:l?r.jsx(K.div,{initial:{rotate:-90,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:90,opacity:0},transition:{duration:.2},children:r.jsx(vl,{size:28})},"close"):r.jsx(K.div,{initial:{rotate:90,opacity:0},animate:{rotate:0,opacity:1},exit:{rotate:-90,opacity:0},transition:{duration:.2},children:r.jsx(D6,{size:28})},"menu")})})]})]}),r.jsx(en,{children:l&&r.jsxs(r.Fragment,{children:[r.jsx(K.div,{className:"fixed inset-0 bg-black/80 z-40 lg:hidden",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>c(!1)}),r.jsx(K.div,{className:"fixed top-[70px] md:top-[80px] right-0 w-full sm:w-80 h-[calc(100vh-70px)] md:h-[calc(100vh-80px)] bg-[#111] z-50 lg:hidden overflow-y-auto",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:25,stiffness:200},children:r.jsxs("div",{className:"p-6 flex flex-col gap-6",children:[r.jsxs("div",{className:"relative",ref:Y,children:[r.jsxs("form",{onSubmit:q,className:"flex bg-[#202020] border border-red-600 rounded-lg overflow-hidden",children:[r.jsx("input",{type:"text",placeholder:"Cerca prodotti..",className:"flex-1 ml-3 bg-transparent outline-none text-white text-sm py-3",value:p,onChange:te=>x(te.target.value)}),r.jsx("button",{type:"submit",className:"bg-red-600 w-12 h-12 flex justify-center items-center active:bg-red-700",children:r.jsx(Gb,{color:"white",size:20})})]}),r.jsx(en,{children:v&&(g.length>0||j)&&r.jsx(K.div,{className:"mt-2 bg-[#202020] border border-red-600 rounded-lg overflow-hidden",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:j?r.jsx("div",{className:"px-4 py-3 text-gray-400 text-sm text-center",children:"Caricamento..."}):g.map(te=>r.jsxs("div",{className:"px-3 py-3 hover:bg-red-600 active:bg-red-700 cursor-pointer transition-colors border-b border-gray-700 last:border-b-0 flex items-center gap-3",onClick:()=>ae(te),children:[te.mainImg&&r.jsx("div",{className:"w-14 h-14 flex-shrink-0 rounded overflow-hidden bg-gray-800",children:r.jsx("img",{src:te.mainImg,alt:te.title,className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("div",{className:"text-white font-medium text-sm",children:te.title}),te.price&&r.jsxs("div",{className:"text-gray-400 text-xs mt-1",children:["€",te.price]})]})]},te.id))})})]}),r.jsx("nav",{className:"flex flex-col gap-2",children:Ce.map(te=>r.jsx("button",{onClick:()=>xe(te.path),className:`text-left px-4 py-3 rounded-lg font-bold text-lg transition-all ${d===te.path?"bg-red-600 text-white":"text-gray-300 hover:bg-[#202020] hover:text-white active:bg-[#303030]"}`,children:te.name},te.id))}),r.jsxs("div",{className:"mt-4 border-t border-gray-700 pt-4",children:[r.jsx("h3",{className:"text-white font-bold text-sm px-4 mb-2 text-gray-400",children:"CATEGORIE"}),r.jsx("div",{className:"flex flex-col gap-1",children:ge(i)})]})]})})]})})]})}function B5(){var B;N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const[t]=om(),i=t.get("category"),s=t.get("subcategory"),l=t.get("search"),[c,d]=N.useState(l||""),[f,m]=N.useState(i||"TUTTI PRODOTTI"),[p,x]=N.useState(s||""),[g,b]=N.useState("price-low"),[v,S]=N.useState(!1),j=Mt(),[C,E]=N.useState({priceRange:[0,25e3],selectedFilters:[]}),[T,_]=N.useState(1),[O,U]=N.useState([]),[Q,ee]=N.useState(!0),Y=N.useRef(!1),I=()=>({search:c||void 0,category:f!=="TUTTI PRODOTTI"?f:void 0,subcategory:p||void 0,priceMin:C.priceRange[0],priceMax:C.priceRange[1],selectedFilters:C.selectedFilters,sortBy:g,page:T,perPage:8}),{data:ie,isLoading:re,isError:ne,isFetching:xe}=Rt({queryKey:["products",I()],queryFn:async()=>{const L=new URLSearchParams,W=I();W.category&&L.append("category",W.category),W.subcategory&&L.append("subcategory",W.subcategory),L.append("priceMin",W.priceMin.toString()),W.search&&L.append("search",W.search.toString()),L.append("priceMax",W.priceMax.toString()),W.selectedFilters.forEac
358h(de=>{L.append("filter",de)}),L.append("sortBy",W.sortBy),L.append("page",W.page.toString()),L.append("perPage",W.perPage.toString());const oe=await fetch(`https://pcexpert.store/api/getData?${L.toString()}`);if(!oe.ok)throw new Error("Failed to fetch");return oe.json()},keepPreviousData:!0,staleTime:300*1e3}),{data:Ce}=Rt({queryKey:["categories"],queryFn:async()=>{const L=await fetch("https://pcexpert.store/api/categoriesd");if(!L.ok)throw new Error("Failed to fetch");return L.json()},staleTime:1800*1e3}),{data:ae}=Rt({queryKey:["filters",f,p],queryFn:async()=>{const L=new URLSearchParams;f!=="TUTTI PRODOTTI"&&L.append("category",f),p&&L.append("subcategory",p);const W=await fetch(`https://pcexpert.store/api/filters?${L.toString()}`);if(!W.ok)throw new Error("Failed to fetch filters");return W.json()},staleTime:1800*1e3}),q=(Ce==null?void 0:Ce.categories)||[],D=(ae==null?void 0:ae.filters)||[],J=N.useRef(c);N.useEffect(()=>{_(1),U([]),ee(!0)},[f,p,g,JSON.stringify(C)]),N.useEffect(()=>{J.current!==c&&(_(1),U([]),ee(!0)),J.current=c},[c]),N.useEffect(()=>{if(q.length===0)return;const L=i&&q.some(oe=>oe.name.toLowerCase()===i.toLowerCase())?i:"TUTTI PRODOTTI",W=s&&q.some(oe=>{var de;return(de=oe.children)==null?void 0:de.some(je=>je.name.toLowerCase()===s.toLowerCase())})?s:"";m(L),x(W),d(l||""),E(oe=>({...oe,selectedFilters:[]}))},[i,s,q,l]),N.useEffect(()=>{var L;ie!=null&&ie.products&&(U(T===1?ie.products:W=>{const oe=new Set(W.map(je=>je.id)),de=ie.products.filter(je=>!oe.has(je.id));return[...W,...de]}),ee(((L=ie.pagination)==null?void 0:L.hasMore)??!1),Y.current=!1)},[ie,T]),N.useEffect(()=>{const L=()=>{window.innerHeight+window.scrollY>=document.body.offsetHeight-500&&!xe&&!Y.current&&Q&&O.length>0&&(Y.current=!0,_(W=>W+1))};return window.addEventListener("scroll",L),()=>window.removeEventListener("scroll",L)},[xe,Q,O.length]);const se=[{value:"newest",label:"Più recente prima"},{value:"price-low",label:"Prezzo: Dal più basso al più alto"},{value:"price-high",label:"Prezzo: Dal più alto al più basso"},{value:"name-az",label:"Nome: dalla A alla Z"},{value:"name-za",label:"Nome: dalla Z alla A"}],ge=L=>{E(W=>{const oe=W.selectedFilters.includes(L);return{...W,selectedFilters:oe?W.selectedFilters.filter(de=>de!==L):[...W.selectedFilters,L]}})},te=()=>{E({priceRange:[0,25e3],selectedFilters:[]})},A=(L,W)=>{if(W===""){const ft=[...C.priceRange];ft[L]="",E({...C,priceRange:ft});return}let de=parseInt(W)||0;de=Math.max(0,Math.min(de,25e3));const je=[...C.priceRange];L===0?je[0]=Math.min(de,je[1]||25e3):je[1]=Math.max(de,je[0]||0),E({...C,priceRange:je})};return r.jsxs("div",{className:"overflow-x-hidden bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Prodotti – PC, Componenti e Laptop | PC Expert"}),r.jsx("meta",{name:"description",content:"Esplora il catalogo completo di PC gaming, laptop, componenti e periferiche su PC Expert. Filtra per categoria, prezzo e marca. Spedizione in tutta Italia."}),r.jsx("meta",{name:"keywords",content:"PC gaming, laptop, componenti PC, periferiche, catalogo informatica, Italia"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/products"}),r.jsx("meta",{property:"og:title",content:"Prodotti – PC, Componenti e Laptop | PC Expert"}),r.jsx("meta",{property:"og:description",content:"Esplora il catalogo completo di PC gaming, laptop, componenti e periferiche su PC Expert."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/products"}),r.jsx("meta",{property:"og:type",content:"website"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsxs("section",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] py-10",children:[r.jsx("div",{className:"bg-white rounded-lg shadow-sm p-4 mb-6",children:r.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center",children:r.jsx(nl,{color:"red",size:24})}),r.jsxs("div",{children:[r.jsxs("h2",{className:"text-lg font-bold text-gray-900",children:[f,r.jsx("strong",{className:"text-gray-700 font-medium text-sm",children:p&&` > ${p}`})]}),r.jsxs("p",{className:"text-sm text-gray-600",children:[((B=ie==null?void 0:ie.pagination)==null?void 0:B.total)||0," prodotti"]})]})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[r.jsxs("button",{onClick:()=>S(!v),className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg flex items-center gap-2 font-semibold text-gray-700",children:[r.jsx(Qj,{className:"w-4 h-4"}),"Filtri"]}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:g,onChange:L=>b(L.target.value),className:"px-4 py-2 bg-red-600 text-white font-semibold rounded-lg appearance-none pr-10 cursor-pointer",children:se.map(L=>r.jsx("option",{value:L.value,children:L.label},L.value))}),r.jsx(yl,{className:"w-5 h-5 absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-white"})]})]})]})}),v&&r.jsx("div",{className:"mb-6",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[r.jsxs("div",{className:"flex justify-between items-center mb-4",children:[r.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Filtra Prodotti"}),r.jsx("button",{onClick:te,className:"text-sm text-red-600 hover:text-red-700 font-semibold",children:"Cancella tutti"})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Prezzo"}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:"text-xs text-gray-600 mb-1 block",children:"Min (€)"}),r.jsx("input",{type:"number",value:C.priceRange[0]||"",onChange:L=>A(0,L.target.value),onFocus:L=>L.target.select(),placeholder:"0",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",min:"0",max:"25000"})]}),r.jsx("span",{className:"text-gray-400 mt-6",children:"—"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:"text-xs text-gray-600 mb-1 block",children:"Max (€)"}),r.jsx("input",{type:"number",value:C.priceRange[1]||"",onChange:L=>A(1,L.target.value),onFocus:L=>L.target.select(),placeholder:"25000",className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-transparent",min:"0",max:"25000"})]})]}),r.jsx("div",{className:"mt-4 px-2",children:r.jsxs("div",{className:"relative h-2",children:[r.jsx("div",{className:"absolute w-full h-2 bg-gray-200 rounded-lg"}),r.jsx("div",{className:"absolute h-2 bg-red-600 rounded-lg",style:{left:`${C.priceRange[0]/25e3*100}%`,right:`${100-C.priceRange[1]/25e3*100}%`}}),r.jsx("input",{type:"range",min:"0",max:"25000",step:"50",value:C.priceRange[0],onChange:L=>A(0,L.target.value),className:"absolute w-full h-2 bg-transparent appearance-none cursor-pointer pointer-events-none [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-red-600 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:shadow-md [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-red-600 [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:shadow-md",style:{zIndex:C.priceRange[0]>24900?5:3}}),r.jsx("input",{type:"range",min:"0",max:"25000",step:"50",value:C.priceRange[1],onChange:L=>A(1,L.target.value),className:"absolute w-full h-2 bg-transparent appearance-none cursor-pointer pointer-events-none [&::-webkit-slider-thumb]:pointer-events-auto [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-red-600 [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-white [&::-webkit-slider-thumb]:shadow-md [&::-moz-range-thumb]:pointer-events-auto [&::-moz-range-thumb]:appearance-none [&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-red-600 [&::-moz-range-thumb]:cursor-pointer [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-white [&::-moz-range-thumb]:shadow-md",style:{zIndex:4}})]})})]}),D.length>0&&(f!=="TUTTI PRODOTTI"||p)&&r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-gray-900 mb-3",children:"Filtri"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:D.map(L=>r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:C.selectedFilters.includes(L.name),onChange:()=>ge(L.name),className:"w-4 h-4 text-red-600 rounded focus:ring-red-500"}),r.jsx("span",{className:"text-sm text-gray-700",children:L.name})]},L.id))})]})]})]})}),re&&T===1&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent roun
358ded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento prodotti..."})]}),ne&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx("p",{className:"text-red-600 text-lg mb-4",children:"Errore nel caricamento dei prodotti"}),r.jsx("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700",children:"Riprova"})]}),!ne&&O.length===0&&!re&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx("p",{className:"text-gray-600 text-lg mb-4",children:"Nessun prodotto trovato"}),r.jsx("button",{onClick:te,className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700",children:"Cancella Filtri"})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 md:gap-6",children:O.map(L=>r.jsxs(K.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.5},onClick:()=>j(`/product/${encodeURIComponent(L.title)}/${L.id}`),className:"bg-white rounded-lg shadow-sm hover:shadow-lg transition-shadow p-4 h-full flex flex-col relative cursor-pointer",children:[(L==null?void 0:L.discount)>0&&r.jsxs("div",{className:"absolute top-2 right-2 bg-red-600 text-white px-2 py-1 rounded text-sm font-bold z-10",children:["-",L.discount,"% Sconto"]}),r.jsx("img",{src:L.mainImg,alt:L.title,className:"w-full h-48 object-contain mb-4 rounded"}),r.jsx("h3",{className:"text-left font-semibold text-gray-900 text-sm md:text-base line-clamp-2 mb-2 flex-grow",children:L.title}),r.jsx("div",{className:"flex items-baseline gap-2 mb-3",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("span",{className:"text-red-600 font-bold text-xl",children:[L.price,"€"]}),L.oldPrice>0&&r.jsxs("span",{className:"text-gray-500 line-through text-sm",children:[L.oldPrice.toFixed(2),"€"]})]})})]},L.id))}),xe&&T>1&&r.jsx("div",{className:"text-center py-8",children:r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent rounded-full animate-spin"})}),!Q&&O.length>0&&r.jsx("div",{className:"text-center py-8 text-gray-600 font-semibold",children:"Tutti i prodotti caricati"})]})]})}function H5(){N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const t=Mt(),i={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},s={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}},l=[{icon:$b,title:"Competenza Tecnica",description:"Ogni configurazione è progettata e realizzata da esperti con consolidata esperienza nel settore IT."},{icon:a6,title:"Professionalità",description:"Dall'interfaccia utente all'imballaggio, ogni dettaglio è curato nei minimi dettagli in loc de curato con precisione maniacale."},{icon:Ij,title:"Affidabilità",description:"Tutti i nostri prodotti sono garantiti, testati e certificati per assicurare prestazioni elevate."},{icon:Yj,title:"Efficienza",description:"Spedizioni rapide, tracciabili e imballaggi a prova di urto. I tuoi ordini sono gestiti in modo sicuro e affidabile in loc de I tuoi ordini sono sempre al sicuro."}],c=[{title:"PC Assemblati su Misura",description:"Per gaming, lavoro e produttività, progettati con cura e testati con rigore.",highlight:!0},{title:"Componenti Hardware",description:"Una vasta gamma di componenti selezionati, solo dei migliori brand del settore.",highlight:!1},{title:"Consulenza Tecnica",description:"Per guidarti nella scelta giusta in base alle tue esigenze e al tuo budget.",highlight:!1},{title:"Assistenza Post-Vendita",description:"Professionale, rapida e dedicata, perché la relazione non finisce con l'acquisto.",highlight:!1}];return r.jsxs("main",{className:"overflow-x-hidden bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Chi Siamo – PC Expert | Elite Company Savigliano"}),r.jsx("meta",{name:"description",content:"Scopri la storia e i valori di PC Expert, azienda specializzata in informatica e tecnologia con sede a Savigliano (CN). Qualità, esperienza e assistenza clienti."}),r.jsx("meta",{name:"keywords",content:"chi siamo, PC Expert, Elite Company, Savigliano, informatica, tecnologia"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/about"}),r.jsx("meta",{property:"og:title",content:"Chi Siamo – PC Expert | Elite Company Savigliano"}),r.jsx("meta",{property:"og:description",content:"Scopri la storia e i valori di PC Expert, azienda specializzata in informatica e tecnologia con sede a Savigliano (CN)."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/about"}),r.jsx("meta",{property:"og:type",content:"website"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("section",{className:"relative pt-10 pb-24 overflow-hidden bg-gradient-to-br from-red-200 via-white to-red-300",children:r.jsxs("div",{className:"px-4 md:px-8 lg:px-20 xl:px-40 2xl:px-44 flex flex-col md:flex-row items-center justify-between gap-10",children:[r.jsxs(K.div,{className:"flex flex-col gap-6 w-full lg:w-2/3",initial:"hidden",animate:"visible",variants:s,children:[r.jsxs(K.h1,{variants:i,className:"text-5xl sm:text-6xl md:text-7xl font-bold leading-tight text-black",children:["CHI ",r.jsx("br",{})," ",r.jsx("span",{className:"text-red-600",children:"SIAMO"})]}),r.jsx(K.p,{variants:i,className:"text-base md:text-lg text-gray-700 max-w-xl",children:"Il tuo punto di riferimento per PC Gaming, hardware e componenti di qualità. Siamo un team di esperti appassionati che trasformano la tecnologia in esperienza."})]}),r.jsx(K.div,{initial:{opacity:0,scale:.8}
358,animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},className:"hidden lg:block relative",children:r.jsx("div",{className:"bg-white/30 backdrop-blur-md p-10 rounded-3xl border border-white shadow-xl rotate-3 hover:rotate-6 transition-transform duration-500",children:r.jsx($b,{size:120,className:"text-red-600 opacity-80"})})})]})}),r.jsxs("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] -mt-10 relative z-10 pb-20",children:[r.jsxs(K.div,{initial:"hidden",animate:"visible",variants:i,className:"bg-white rounded-xl shadow-xl p-8 md:p-12 mb-12 border-t-4 border-red-600",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[r.jsx("div",{className:"w-12 h-12 bg-black rounded-full flex justify-center items-center text-white",children:r.jsx(sR,{size:24})}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"La Nostra Missione"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 text-gray-600 leading-relaxed text-lg",children:[r.jsx("p",{children:"Siamo un team di esperti appassionati del mondo IT, con anni di esperienza nel settore dell'hardware. La nostra missione è offrire ai nostri clienti non solo prodotti di qualità, ma anche consulenza personalizzata."}),r.jsx("p",{children:"Crediamo che la tecnologia debba essere accessibile a tutti. Ogni configurazione, sia per gaming che per lavoro, merita la massima attenzione ai dettagli, dalla scelta dei componenti all'assemblaggio."})]})]}),r.jsxs("div",{className:"mb-20",children:[r.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-10",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Perché Sceglierci"}),r.jsx("p",{className:"text-gray-500",children:"Quattro pilastri che definiscono il nostro modo di lavorare"})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:l.map((d,f)=>r.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{delay:f*.1},viewport:{once:!0},whileHover:{y:-10},className:"bg-white p-6 rounded-xl shadow-lg border border-gray-100 flex flex-col items-center text-center group",children:[r.jsx("div",{className:"w-16 h-16 bg-red-50 rounded-full flex items-center justify-center text-red-600 mb-6 group-hover:scale-110 transition-transform duration-300",children:r.jsx(d.icon,{size:32})}),r.jsx("h3",{className:"text-xl font-bold mb-3 group-hover:text-red-600 transition-colors",children:d.title}),r.jsx("p",{className:"text-gray-600 text-sm leading-relaxed",children:d.description})]},f))})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8 mb-20",children:[r.jsxs(K.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"lg:col-span-1 bg-gray-900 rounded-xl p-8 text-white flex flex-col justify-center",children:[r.jsx(Bj,{size:48,className:"text-red-500 mb-6"}),r.jsxs("h2",{className:"text-3xl font-bold mb-4",children:["Cosa ",r.jsx("br",{}),"Offriamo"]}),r.jsx("p",{className:"text-gray-400 mb-8",children:"Non solo vendita, ma un ecosistema completo per il tuo sistema."}),r.jsx("button",{onClick:()=>t("/contact"),className:"bg-red-600 text-white px-6 py-3 rounded-lg font-bold hover:bg-red-700 transition-colors self-start",children:"Richiedi Preventivo"})]}),r.jsx("div",{className:"lg:col-span-2 grid grid-cols-1 md:grid-cols-2 gap-4",children:c.map((d,f)=>r.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:f*.1},className:`p-6 rounded-xl shadow-sm border ${d.highlight?"bg-red-50 border-red-200":"bg-white border-gray-100"}`,children:[r.jsx("h3",{className:`font-bold text-lg mb-2 ${d.highlight?"text-red-700":"text-gray-900"}`,children:d.title}),r.jsx("p",{className:"text-gray-600 text-sm",children:d.description})]},f))})]}),r.jsxs(K.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"bg-white rounded-2xl p-8 md:p-12 text-center shadow-xl border border-gray-100 max-w-4xl mx-auto",children:[r.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Il Nostro Impegno"}),r.jsx("p",{className:"text-lg text-gray-600 mb-8 leading-relaxed",children:"Siamo più di un semplice negozio online. Siamo partner tecnologici per chi vuole solo il meglio. Che tu stia costruend
358o la tua prima build da gaming o aggiornando il setup aziendale, troverai una squadra pronta ad accompagnarti."}),r.jsx(K.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>t("/contact"),className:"bg-black text-white px-10 py-4 rounded-full font-bold text-lg hover:bg-gray-800 transition-colors shadow-lg",children:"Parla con un Esperto"})]})]})]})}function q5(){const t=Mt();return r.jsx("footer",{className:"bg-white py-12 px-6 border-t border-gray-200 px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] ",children:r.jsxs("div",{className:"max-w-full mx-auto",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-red-600 font-bold text-lg mb-4",children:"La nostra Azienda"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/about"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Chi Siamo"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/contact"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Contattaci"})})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-red-600 font-bold text-lg mb-4",children:"Informazioni"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/condizioni-di-vendita"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Condizioni Di Vendita"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/spedizione"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Spedizione"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/faq"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"FAQ"})})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-red-600 font-bold text-lg mb-4",children:"Informazioni Legali"}),r.jsxs("ul",{className:"space-y-2",children:[r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/cookiePolicy"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Cookie Policy"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/politica-di-rimborso"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Politica sui Rimborsi"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/politica-sulla-privacy-gdpr"),className:"text-gray-700 hover:text-red-600 transition-colors",children:"Politica sulla Privacy (GDPR)"})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>t("/attestato-di-iscrizione-al-registro-nazionale-a-e-e"),className:"text-gray-700 text-left hover:text-red-600 transition-colors",children:"Attestato di Iscrizione al Registro Nazionale A.E.E"})})]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-red-600 font-bold text-lg mb-4",children:"Altre Informazioni"}),r.jsxs("ul",{className:"space-y-2 text-gray-700",children:[r.jsx("li",{children:"Contatto: +39 389 511 2890"}),r.jsx("li",{children:"Email: [email protected]"}),r.jsxs("li",{children:["Sede legale: Via Torino 181, 12038",r.jsx("br",{}),"Savigliano (CN), Italia"]}),r.jsx("li",{children:"Partita Iva: IT04117740045"})]})]})]}),r.jsxs("div",{className:"flex justify-between mb-8",children:[r.jsx("div",{className:"mt-6",children:r.jsxs("div",{className:"flex gap-4",children:[r.jsx("a",{href:"https://www.instagram.com/pcexpert.store/?hl=en","aria-label":"Instagram",target:"_blank",rel:"noopener noreferrer",className:"text-gray-700 hover:text-red-600 transition-colors",children:r.jsx(A6,{size:32})}),r.jsx("a",{href:"https://www.facebook.com/profile.php?id=61583921456726","aria-label":"Facebook",target:"_blank",rel:"noopener noreferrer",className:"text-gray-700 hover:text-red-600 transition-colors",children:r.jsx(b6,{size:32})}),r.jsx("a",{href:"https://www.tiktok.com/@pcexpertstore",target:"_blank","aria-label":"TikTok",rel:"noopener noreferrer",className:"text-gray-700 hover:text-red-600 transition-colors",children:r.jsx("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r.jsx("path",{d:"M9 12a4 4 0 1 0 4 4V4a
3585 5 0 0 0 5 5"})})})]})}),r.jsx("img",{src:"../../imgs/logoBlack.png",alt:"logo",className:"w-24"})]}),r.jsxs("div",{className:"border-t border-gray-300 pt-6 flex flex-col md:flex-row justify-between items-center",children:[r.jsx("div",{className:"text-gray-700 text-sm mb-4 md:mb-0",children:"Copyright © [PC EXPERT], All rights reserved."}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"text-blue-700 font-bold text-xl",children:"VISA"}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("div",{className:"w-8 h-8 rounded-full bg-red-500 opacity-80"}),r.jsx("div",{className:"w-8 h-8 rounded-full bg-yellow-500 opacity-80 -ml-3"})]}),r.jsxs("div",{className:"text-blue-600 font-bold text-xs",children:["AMERICAN",r.jsx("br",{}),"EXPRESS"]}),r.jsx("div",{className:"text-purple-700 font-semibold text-sm",children:"PayPal"})]})]})]})})}function F5(){N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const[t,i]=N.useState(!1),[s,l]=N.useState(!1),[c,d]=N.useState({name:"",email:"",message:""}),f=g=>{d({...c,[g.target.name]:g.target.value})},m=g=>{g.preventDefault(),l(!0),Pe.post("https://pcexpert.store/api/sendContact",{name:c.name,email:c.email,message:c.message}).then(()=>{i(!0),l(!1),d({name:"",email:"",message:""})}).catch(()=>{l(!1)})},p={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},x={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.2}}};return r.jsxs("main",{className:"overflow-x-hidden bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Contattaci – PC Expert | Assistenza e Supporto"}),r.jsx("meta",{name:"description",content:"Hai bisogno di aiuto? Contatta il team di PC Expert per assistenza, preventivi o informazioni. Email: [email protected] – Tel: +39 389 511 2890."}),r.jsx("meta",{name:"keywords",content:"contatto, assistenza, supporto, PC Expert, [email protected]"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/contact"}),r.jsx("meta",{property:"og:title",content:"Contattaci – PC Expert | Assistenza e Supporto"}),r.jsx("meta",{property:"og:description",content:"Contatta il team di PC Expert per assistenza, preventivi o informazioni. Email: [email protected] – Tel: +39 389 511 2890."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/contact"}),r.jsx("meta",{property:"og:type",content:"website"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("section",{className:"relative pt-10 pb-24 overflow-hidden bg-gradient-to-br from-red-200 via-white to-red-300",children:r.jsxs("div",{className:"px-4 md:px-8 lg:px-20 xl:px-40 2xl:px-44 flex flex-col md:flex-row items-center justify-between gap-10",children:[r.jsxs(K.div,{className:"flex flex-col gap-6 w-full lg:w-2/3",initial:"hidden",animate:"visible",variants:x,children:[r.jsxs(K.h1,{variants:p,className:"text-5xl sm:text-6xl md:text-7xl font-bold leading-tight text-black",children:["PARLIAMO ",r.jsx("br",{})," ",r.jsx("span",{className:"text-red-600",children:"DI TECH"})]}),r.jsx(K.p,{variants:p,className:"text-base md:text-lg text-gray-700 max-w-xl",children:"Siamo qui per aiutarti. Che tu abbia bisogno di assistenza tecnica, di un preventivo per un PC o di semplici informazioni, scrivici senza esitazione.."})]}),r.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},className:"hidden lg:block relative",children:r.jsx("div",{className:"bg-white/30 backdrop-blur-md p-10 rounded-3xl border border-white shadow-xl rotate-3 hover:rotate-6 transition-transform duration-500",children:r.jsx(Dh,{size:120,className:"text-red-600 opacity-80"})})})]})}),r.jsx("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] -mt-10 relative z-10 pb-20",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[r.jsx(K.div,{initial:"hidden",animate:"visible",variants:p,className:"bg-white rounded-xl shadow-xl p-8 md:p-12 flex flex-col justify-between h-full",children:r.jsxs("div",{children:[r.jsx("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Come possiamo aiutarti oggi?"}),r.jsx("p",{className:"text-gray-600 mb-10 leading-relaxed",children:"Il nostro team risponde entro 24 ore lavorative. Scegli il canale che preferisci per metterti in contatto con noi."}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("a",{href:"mailto:[email protected]",className:"flex items-start gap-5 group",children:[r.jsx("div",{className:"w-14 h-14 bg-red-50 rounded-2xl flex items-center justify-center text-red-600 shadow-sm group-hover:scale-110 transition-transform duration-300",children:r.jsx(Fm,{size:28})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-gray-900 group-hover:text-red-600 transition-colors",children:"Email"}
358),r.jsx("p",{className:"text-gray-600",children:"[email protected]"}),r.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Per preventivi e informazioni generali"})]})]}),r.jsxs("a",{href:"tel:+393895112890",className:"flex items-start gap-5 group",children:[r.jsx("div",{className:"w-14 h-14 bg-red-50 rounded-2xl flex items-center justify-center text-red-600 shadow-sm group-hover:scale-110 transition-transform duration-300",children:r.jsx(Gm,{size:28})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-gray-900 group-hover:text-red-600 transition-colors",children:"Telefono"}),r.jsx("p",{className:"text-gray-600",children:"+39 389 511 2890"}),r.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"Lunedì – Venerdì, 9:00 – 18:00"})]})]}),r.jsxs("div",{className:"flex items-start gap-5 group",children:[r.jsx("div",{className:"w-14 h-14 bg-red-50 rounded-2xl flex items-center justify-center text-red-600 shadow-sm",children:r.jsx(Hj,{size:28})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Sede Operativa"}),r.jsx("p",{className:"text-gray-600",children:"Italia, Via Torino 181, 12038"}),r.jsx("p",{className:"text-gray-600",children:"Savigliano (CN)"})]})]})]})]})}),r.jsxs(K.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,delay:.2},className:"bg-white rounded-xl shadow-xl p-8 md:p-12 border-t-4 border-red-600",children:[r.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Scrivici un messaggio"}),r.jsxs("form",{onSubmit:m,className:"space-y-6",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Nome Completo"}),r.jsx("input",{type:"text",name:"name",value:c.name,onChange:f,required:!0,placeholder:"Il tuo nome",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none transition-all"})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Email"}),r.jsx("input",{type:"email",name:"email",value:c.email,onChange:f,required:!0,placeholder:"[email protected]",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none transition-all"})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Messaggio"}),r.jsx("textarea",{name:"message",value:c.message,onChange:f,required:!0,rows:"5",placeholder:"Come possiamo aiutarti oggi?",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none resize-none transition-all"})]}),r.jsx("div",{className:"pt-2",children:s?r.jsxs("button",{disabled:!0,className:"w-full bg-gray-800 text-white font-bold rounded-lg px-6 py-4 flex items-center justify-center gap-2 cursor-wait opacity-80",children:[r.jsx(Uc,{className:"animate-spin",size:20}),"Invio in corso..."]}):t?r.jsxs(K.button,{initial:{scale:.9},animate:{scale:1},className:"w-full bg-green-500 text-white font-bold rounded-lg px-6 py-4 flex items-center justify-center gap-2 cursor-default",children:[r.jsx($s,{size:20}),"Messaggio Inviato!"]}):r.jsxs(K.button,{type:"submit",whileHover:{scale:1.02,backgroundColor:"#b91c1c"},whileTap:{scale:.98},className:"w-full bg-red-600 text-white font-bold rounded-lg px-6 py-4 flex items-center justify-center gap-2 shadow-lg shadow-red-200 transition-all",children:[r.jsx($c,{size:20}),"Invia la tua richiesta"]})})]})]})]})})]})}function G5(){N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const{id:t}=im(),i=Mt(),{addToCart:s,isInCart:l}=Hl(),[c,d]=N.useState(1),[f,m]=N.useState(0),[p,x]=N.useState([]),[g,b]=N.useState(0),[v,S]=N.useState(4),[j,C]=N.useState(l),E=()=>{s(T,c),C(!0),setTimeout(()=>C(!1),2e3)},{data:T}=Rt({queryKey:["products",parseInt(t)],queryFn:async()=>(await Pe.get(`https://pcexpert.store/api/productsd/${t}`)).data});if(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),N.useEffect(()=>{const I=()=>{window.innerWidth<640?S(1):window.innerWidth<768?S(2):window.innerWidth<1024?S(3):S(4)};return I(),window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)},[]),!T)return r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsxs("div",{className:"text-center py-20",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent roun
358ded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento prodotti..."})]})});const _=Array.isArray(T.galleryImgs)?T.galleryImgs:[],O=T.mainImg?[T.mainImg,..._]:_,U=I=>{d(ie=>Math.max(1,ie+I))},Q=Math.max(0,p.length-v),ee=()=>{b(I=>Math.min(I+1,Q))},Y=()=>{b(I=>Math.max(I-1,0))};return r.jsxs("div",{className:"min-h-screen bg-gray-50",children:[r.jsxs(st,{children:[r.jsx("title",{children:T.title?`${T.title} – PC Expert`:"Prodotto – PC Expert"}),r.jsx("meta",{name:"description",content:T.description?T.description.slice(0,155):`Acquista ${T.title} su PC Expert. Spedizione in tutta Italia, garanzia inclusa.`}),r.jsx("link",{rel:"canonical",href:`https://pcexpert.store/product/${encodeURIComponent(T.title)}/${T.id}`}),r.jsx("meta",{property:"og:title",content:T.title?`${T.title} – PC Expert`:"Prodotto – PC Expert"}),r.jsx("meta",{property:"og:description",content:T.description?T.description.slice(0,155):`Acquista ${T.title} su PC Expert.`}),T.mainImg&&r.jsx("meta",{property:"og:image",content:T.mainImg}),r.jsx("meta",{property:"og:url",content:`https://pcexpert.store/product/${encodeURIComponent(T.title)}/${T.id}`}),r.jsx("meta",{property:"og:type",content:"product"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"bg-white border-b",children:r.jsx("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] py-4",children:r.jsx("div",{className:"overflow-x-auto scrollbar-hide",children:r.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600 whitespace-nowrap min-w-max",children:[r.jsx("button",{onClick:()=>i("/products"),className:"hover:text-red-600",children:"Catalogo"}),r.jsx("span",{children:"/"}),T.categorie&&r.jsxs(r.Fragment,{children:[r.jsx("button",{onClick:()=>i(`/products?category=${encodeURIComponent(T.categorie)}`),className:"hover:text-red-600",children:T.categorie}),r.jsx("span",{children:"/"})]}),T.subCategory&&r.jsxs(r.Fragment,{children:[r.jsx("button",{onClick:()=>i(`/products?category=${encodeURIComponent(T.categorie)}&subcategory=${encodeURIComponent(T.subCategory)}`),className:"hover:text-red-600",children:T.subCategory}),r.jsx("span",{children:"/"})]}),r.jsx("span",{className:"text-gray-900 font-semibold",children:T.title})]})})})}),r.jsxs("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] py-8 md:py-12",children:[r.jsx(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:"bg-white rounded-lg shadow-sm p-4 md:p-8 mb-8",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 md:gap-12",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"relative mb-4 bg-gray-50 rounded-lg overflow-hidden",children:[(T==null?void 0:T.discount)>0&&r.jsxs("div",{className:"absolute top-4 right-4 bg-red-600 text-white px-3 py-1.5 rounded-lg text-sm font-bold z-10",children:["-",T.discount,"% Sconto"]}),r.jsx("img",{src:O[f],alt:T.title,className:"w-full h-96 md:h-[500px] object-contain"})]}),r.jsx("div",{className:"grid grid-cols-4 gap-2",children:O.map((I,ie)=>r.jsx("button",{onClick:()=>m(ie),className:`border-2 rounded-lg overflow-hidden transition-all ${f===ie?"border-red-600 shadow-md":"border-gray-200 hover:border-gray-300"}`,children:r.jsx("img",{src:I,alt:`View ${ie+1}`,className:"w-full h-20 object-contain"})},ie))})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("button",{className:"text-2xl text-left md:text-3xl lg:text-4xl font-bold text-gray-900 mb-4",children:T.title}),r.jsx("div",{className:"flex items-center gap-2 mb-6",children:r.jsx("span",{className:"text-sm text-gray-600",children:T.sku?"SKU:"+T.sku:""})}),r.jsxs("div",{className:"mb-6",children:[r.jsx("div",{className:"flex items-baseline gap-3 mb-2",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("span",{className:"text-3xl md:text-4xl font-bold text-red-600",children:[T.price,"€"]}),T.oldPrice>0&&r.jsxs("span",{className:"text-xl text-gray-500 line-through",children:[T.oldPrice.toFixed(2),"€"]})]})}),T.oldPrice>0&&r.jsxs("p",{className:"text-sm text-green-600 font-semibold",children:["Save ",(T.oldPrice-T.price).toFixed(2),"€"]}),r.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"IVA inclusa nel prezzo"})]}),r.jsxs("div",{className:"flex items-center gap-2 mb-6 text-green-600 font-semibold",children:[r.jsx(cl,{className:"w-5 h-5"}),r.jsx("span",{children:"In magazzino"})]}),r.jsxs("div",{className:"mb-8",children:[r.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-3",children:"Quantità:"}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-stretch sm:items-center gap-4",children:[r.jsxs("div",{className:"bg-gray-100 flex items-center rounded-lg justify-center sm:justify-start",children:[r.jsx("button",{onClick:()=>U(-1),className:"p-3 hover:bg-gray-200 rounded-l-lg transition-colors",children:r.jsx(qj,{
358className:"w-5 h-5"})}),r.jsx("span",{className:"px-6 font-bold text-lg",children:c}),r.jsx("button",{onClick:()=>U(1),className:"p-3 hover:bg-gray-200 rounded-r-lg transition-colors",children:r.jsx(Fj,{className:"w-5 h-5"})})]}),T.id!==1810&&T.id!==1806?r.jsx("button",{onClick:()=>j?i("/cart"):E(),className:`flex-1 ${j?"bg-green-500 hover:bg-green-600 ":"bg-red-600 hover:bg-red-700"} text-white py-3 px-6 rounded-lg font-semibold text-lg  transition-colors flex items-center justify-center gap-2`,children:j?r.jsxs(r.Fragment,{children:[r.jsx(cl,{size:20}),r.jsx("span",{children:"Aggiunto!"})]}):r.jsxs(r.Fragment,{children:[r.jsx(bl,{size:20}),r.jsx("span",{children:"Aggiungi al Carrello"})]})}):r.jsxs("button",{onClick:()=>i("/contact"),className:"flex-1  bg-red-600 hover:bg-red-700 text-white py-3 px-6 rounded-lg font-semibold text-lg  transition-colors flex items-center justify-center gap-2",children:[r.jsx(bl,{size:20}),r.jsx("span",{children:"Contattaci"})]})]})]}),r.jsx("div",{className:"grid gap-4 py-6 border-t border-gray-200",children:r.jsxs("div",{className:"inline-flex items-center gap-3 px-6 py-3 bg-white border border-gray-300 rounded-md shadow-sm hover:shadow transition-shadow duration-200",children:[r.jsx("svg",{className:"w-5 h-5 text-gray-700",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})}),r.jsx("a",{href:"https://www.trustpilot.com/review/pcexpert.store?utm_medium=trustbox&utm_source=TrustBoxReviewCollector",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-gray-900 hover:text-gray-700",children:"Review us on Trustpilot"})]})})]})]})}),r.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},className:"bg-white rounded-lg shadow-sm p-6 md:p-8 mb-8",children:[r.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-4",children:"Descrizione:"}),r.jsxs("div",{className:"prose max-w-none text-gray-700",children:[T.description&&r.jsxs("section",{className:"mb-6 p-4 border rounded-lg bg-white",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-3",children:"Descrizione"}),r.jsx("div",{className:"text-gray-700 leading-relaxed whitespace-pre-wrap",children:T.description})]}),T.specs&&r.jsxs("section",{className:"mb-6 p-4 border rounded-lg bg-gray-50",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-3",children:"Specifiche tecniche"}),r.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:T.specs.split(`
359`).map((I,ie)=>I.trim()?r.jsx("li",{children:I},ie):null)})]}),T.characteristics&&r.jsxs("section",{className:"mb-6 p-4 border rounded-lg bg-gray-50",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-800 mb-3",children:"Caratteristiche principali"}),r.jsx("ul",{className:"list-disc list-inside space-y-2 text-gray-700",children:T.characteristics.split(`
360`).map((I,ie)=>I.trim()?r.jsx("li",{children:I},ie):null)})]})]})]}),p.length>0&&r.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4},className:"bg-white rounded-lg shadow-sm p-6 md:p-8",children:[r.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-gray-900 mb-6",children:"Related Products"}),r.jsxs("div",{className:"relative",children:[p.length>v&&r.jsxs(r.Fragment,{children:[r.jsx("button",{onClick:Y,disabled:g===0,className:`absolute left-0 top-1/2 -translate-y-1/2 -translate-x-2 sm:-translate-x-4 z-10 bg-white rounded-full p-1.5 sm:p-2 shadow-lg ${g===0?"opacity-50 cursor-not-allowed":"hover:bg-gray-100"}`,children:r.jsx(kc,{className:"w-4 h-4 sm:w-6 sm:h-6 text-gray-600"})}),r.jsx("button",{onClick:ee,disabled:g===Q,className:`absolute right-0 top-1/2 -translate-y-1/2 translate-x-2 sm:translate-x-4 z-10 bg-white rounded-full p-1.5 sm:p-2 shadow-lg ${g===Q?"opacity-50 cursor-not-allowed":"hover:bg-gray-100"}`,children:r.jsx(Yi,{className:"w-4 h-4 sm:w-6 sm:h-6 text-gray-600"})})]}),r.jsx("div",{className:"overflow-hidden",children:r.jsx("div",{className:"flex transition-transform duration-500 ease-in-out",style:{transform:`translateX(-${g*(100/v)}%)`},children:p.map(I=>r.jsx("div",{className:"flex-shrink-0 px-2 sm:px-3 cursor-pointer hover:scale-105 transition-all duration-300",style:{width:`${100/v}%`},onClick:()=>i(`/product/${encodeURIComponent(I.title)}/${I.id}`),children:r.jsxs("div",{className:"bg-gray-50 rounded-lg p-3 sm:p-4 hover:shadow-md transition-shadow",children:[(relatedproduct==null?void 0:relatedproduct.discount)>0&&r.jsx("div",{className:"bg-red-600 text-white px-2 py-1 rounded text-xs font-bold inline-block mb-2",children:I.discount}),r.jsx("img",{src:I.mainImg,alt:I.title,className:"w-full h-40 sm:h-48 object-cover rounded mb-3"}),r.jsx("h3",{className:"text-xs sm:text-sm font-semibold text-gray-900 line-clamp-2 mb-2 h-10 sm:h-10",children:I.title}),r.jsx("div",{className:"flex items-baseline gap-2",children:r.jsxs("div",{className:"flex gap-2",children:[r.jsxs("span",{className:"text-base sm:text-lg font-bold text-red-600",children:[I.price,"€"]}),I.oldprice>0&&r.jsxs("span",{className:"text-xs sm:text-sm text-gray-500 line-through",children:[I.oldPrice.toFixed(2),"€"]})]})})]})},I.id))})})]})]})]})]})}function I5(){const t=Mt(),{cartItems:i,updateQuantity:s,removeFromCart:l,clearCart:c,getCartTotal:d}=Hl(),{subTotal:f,total:m,shipping:p}=d(),[x,g]=N.useState(!1),b=()=>{g(!0),Pe.post("https://pcexpert.store/api/buy",{products:i}).then(v=>{g(!1),window.location.href=`${v.data.url}`})};return N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen text-black pb-20",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Carrello – PC Expert"}),r.jsx("meta",{name:"description",content:"Visualizza il tuo carrello su PC Expert. Procedi all'acquisto di PC gaming, componenti e laptop."}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx(K.div,{className:"bg-gradient-to-r from-red-600 to-red-800 py-12 px-4",initial:{opacity:0,y:-20}
360,animate:{opacity:1,y:0},transition:{duration:.5},children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs("button",{onClick:()=>t(-1),className:"flex items-center gap-2 text-white/80 hover:text-white mb-4 transition-colors",children:[r.jsx(e6,{size:20}),r.jsx("span",{children:"Torna Indietro"})]}),r.jsxs("h1",{className:"text-4xl md:text-5xl font-bold flex items-center gap-4 text-white",children:[r.jsx(Ib,{size:40}),"Il Tuo Carrello"]}),r.jsxs("p",{className:"text-white/80 mt-2",children:[i.length," ",i.length===1?"prodotto":"prodotti"," nel carrello"]})]})}),r.jsx("div",{className:"max-w-7xl mx-auto px-4 md:px-8 py-8",children:x?r.jsxs("div",{className:"text-center py-20",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent rounded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento..."})]}):i.length===0?r.jsxs(K.div,{className:"text-center py-20",initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},children:[r.jsx(Ib,{size:80,className:"mx-auto mb-6 text-gray-600"}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold mb-4",children:"Il tuo carrello è vuoto"}),r.jsx("p",{className:"text-gray-400 mb-8",children:"Aggiungi prodotti per iniziare!"}),r.jsx(K.button,{onClick:()=>t("/products"),className:"bg-red-600 hover:bg-red-700 text-white px-8 py-3 rounded-lg font-bold transition-colors",whileHover:{scale:1.05},whileTap:{scale:.95},children:"Vai al Catalogo"})]}):r.jsxs("div",{className:"grid lg:grid-cols-3 gap-8",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[r.jsx(en,{mode:"popLayout",children:i.map((v,S)=>r.jsxs(K.div,{layout:!0,initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.3,delay:S*.05},className:" border border-gray-800 rounded-lg p-4 md:p-6 hover:border-red-600 transition-colors",children:[r.jsxs("div",{className:"flex gap-4",children:[r.jsx("div",{className:"w-24 h-24 md:w-32 md:h-32 flex-shrink-0 rounded-lg overflow-hidden bg-gray-900",children:r.jsx("img",{src:v.mainImg||v.image,alt:v.title||v.name,className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex-1 flex flex-col justify-between",children:[r.jsxs("div",{className:"cursor-pointer",onClick:()=>v.type==="recon"?t(`/smartphones-ricondizionati/${v.phone_id}`):t(`/product/${encodeURIComponent(v.title)}/${v.id}`),children:[r.jsx("h3",{className:"text-lg md:text-xl font-bold mb-2",children:v.title||v.name}),v.description&&r.jsx("p",{className:"text-gray-400 text-sm mb-3 line-clamp-2",children:v.description}),r.jsxs("p",{className:"text-red-500 font-bold text-xl",children:["€",v.price.toFixed(2)]})]}),r.jsxs("div",{className:"flex items-center justify-between mt-4",children:[r.jsxs("div",{className:"flex items-center gap-2 bg-gray-200 rounded-lg p-1",children:[r.jsx(K.button,{onClick:()=>s(v.id,v.quantity-1),className:"w-8 h-8 flex items-center justify-center hover:bg-red-600 rounded transition-colors",whileTap:{scale:.9},children:r.jsx(qj,{size:16})}),r.jsx("span",{className:"w-12 text-center font-bold",children:v.quantity}),r.jsx(K.button,{onClick:()=>s(v.id,v.quantity+1),disabled:v.type==="recon"&&v.quantity>=v.stock,className:`w-8 h-8 flex items-center justify-center rounded transition-colors ${v.type==="recon"&&v.quantity>=v.stock?"opacity-30 cursor-not-allowed":"hover:bg-red-600"}`,whileTap:{scale:.9},children:r.jsx(Fj,{size:16})})]}),r.jsx(K.button,{onClick:()=>l(v.id),className:"text-red-500 hover:text-red-400 p-2",whileHover:{scale:1.1},whileTap:{scale:.9},children:r.jsx(Qb,{size:20})})]})]})]}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-800 flex justify-between items-center",children:[r.jsx("span",{className:"text-gray-400",children:"Subtotale"}),r.jsxs("span",{className:"font-bold text-lg",children:["€",(v.price*v.quantity).toFixed(2)]})]})]},v.id))}),r.jsxs(K.button,{onClick:c,className:"w-full bg-red-600 hover:bg-gray-700 text-white py-3 rounded-lg font-bold transition-colors flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:[r.jsx(Qb,{size:20}),"Svuota Carrello"]})]}),r.jsx("div",{className:"lg:col-span-1",children:r.jsxs(K.div,{className:" border border-gray-800 rounded-lg p-6 sticky top-24",initial:{opacity:0,x:20}
360,animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:[r.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Riepilogo Ordine"}),r.jsxs("div",{className:"space-y-4 mb-6",children:[r.jsxs("div",{className:"flex justify-between text-gray-400",children:[r.jsx("span",{children:"Subtotale"}),r.jsx("span",{children:f?"€"+f:""})]}),r.jsxs("div",{className:"flex justify-between text-gray-400",children:[r.jsx("span",{children:"Spedizione"}),r.jsx("span",{children:p?"€"+p:"Calcola al checkout"})]}),!i.every(v=>v.type==="recon")&&r.jsxs("div",{className:"flex justify-between text-gray-400",children:[r.jsx("span",{children:"IVA"}),r.jsx("span",{children:"Inclusa nel prezzo"})]}),r.jsxs("div",{className:"border-t border-gray-800 pt-4 flex justify-between text-xl font-bold",children:[r.jsx("span",{children:"Totale"}),r.jsx("span",{className:"text-red-500",children:m?"€"+Number(m).toFixed(2):""})]})]}),r.jsx(K.button,{className:"w-full bg-red-600 hover:bg-red-700 text-white py-4 rounded-lg font-bold text-lg transition-colors mb-4",whileHover:{scale:1.02},whileTap:{scale:.98},onClick:b,children:"Procedi al Checkout"}),r.jsx(K.button,{onClick:()=>t("/products"),className:"w-full bg-transparent border border-red-600 hover:bg-red-600 text-black hover:text-white py-3 rounded-lg font-bold transition-all",whileHover:{scale:1.02},whileTap:{scale:.98},children:"Continua gli Acquisti"}),r.jsxs("div",{className:"mt-6 pt-6 border-t border-gray-800 space-y-3 text-sm text-gray-400",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),r.jsx("span",{children:"Pagamento sicuro"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),r.jsx("span",{children:"Spedizione veloce"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 bg-green-500 rounded-full"}),r.jsx("span",{children:"Reso gratuito entro 14 giorni"})]})]})]})})]})})]})}const Q5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Cookie Policy – PC Expert"}),r.jsx("meta",{name:"description",content:"Informativa sui cookie di PC Expert (Elite Company – P.IVA IT04117740045) ai sensi del GDPR (UE) 2016/679. Scopri quali cookie utilizziamo e come gestirli."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/cookiePolicy"}),r.jsx("meta",{property:"og:title",content:"Cookie Policy – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/cookiePolicy"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Cookie Policy"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Ultimo aggiornamento: 05.10.2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:["Questa informativa è resa da ",r.jsx("strong",{children:"Elite Company – P.IVA IT04117740045"}),", titolare del trattamento, che gestisce il sito ",r.jsx("strong",{children:"PC Expert"})," (",r.jsx("a",{href:"https://pcexpert.store",className:"text-blue-600 hover:text-blue-700",children:"www.pcexpert.store"}),"), ai sensi del ",r.jsx("strong",{children:"Regolamento (UE) 2016/679 (GDPR)"}),"."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"1. Cosa sono i cookie"}),r.jsx("p",{className:"text-slate-700",children:"I cookie sono piccoli file di testo che i siti web visitati dagli utenti inviano ai loro dispositivi per essere memorizzati e poi ritrasmessi agli stessi siti alla visita successiva. Servono a migliorare l'esperienza di navigazione, abilitare funzioni tecniche o raccogliere informazioni a fini statistici o pubblicitari."})]}),r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"2. Tipologie di cookie utilizzati"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-slate-800 mb-2",children:"a) Cookie tecnici (necessari)"}),r.jsxs("p",{className:"text-slate-700",children:["Questi cookie sono essenziali per il corretto funzionamento del sito. Non richiedono il consenso dell'utente. ",r.jsx("strong",{children:"Esempi:"})," mantenimento del login, gestione del carrello, preferenze di lingua."]})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-slate-800 mb-2",children:"b) Cookie analitici (statistici)"}),r.jsx("p",{className:"text-slate-700",children:"Utilizzati per raccogliere dati aggregati e anonimi sull'utilizzo del sito. Vengono utilizzati s
360olo previo consenso dell'utente."})]}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-medium text-slate-800 mb-2",children:"c) Cookie di profilazione (marketing)"}),r.jsx("p",{className:"text-slate-700",children:"Utilizzati per tracciare la navigazione e creare profili per pubblicità mirata. Richiedono il consenso esplicito."})]})]})]}),r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"3. Gestione del consenso"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"Al primo accesso viene mostrato un banner che consente di:"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-1",children:[r.jsx("li",{children:"Accettare tutti i cookie"}),r.jsx("li",{children:"Rifiutare tutti i cookie non essenziali"}),r.jsx("li",{children:"Gestire le preferenze in modo dettagliato"})]})]}),r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"4. Cookie di terze parti"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"Alcuni servizi integrati potrebbero installare cookie gestiti da soggetti terzi:"}),r.jsxs("ul",{className:"list-none text-slate-700 space-y-1",children:[r.jsxs("li",{children:["• Google (Analytics, YouTube): ",r.jsx("a",{href:"https://policies.google.com/privacy",className:"text-blue-600 hover:text-blue-700",children:"privacy policy"})]}),r.jsxs("li",{children:["• Meta (Facebook, Instagram): ",r.jsx("a",{href:"https://www.facebook.com/policies/cookies/",className:"text-blue-600 hover:text-blue-700",children:"cookie policy"})]})]})]}),r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"5. Disabilitazione dai browser"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"È possibile disabilitare i cookie dalle impostazioni del browser:"}),r.jsxs("ul",{className:"list-none text-slate-700 space-y-1",children:[r.jsxs("li",{children:["• ",r.jsx("a",{href:"https://support.google.com/chrome/answer/95647",className:"text-blue-600 hover:text-blue-700",children:"Chrome"})]}),r.jsxs("li",{children:["• ",r.jsx("a",{href:"https://support.mozilla.org/it/kb/Eliminare%20i%20cookie",className:"text-blue-600 hover:text-blue-700",children:"Firefox"})]}),r.jsxs("li",{children:["• ",r.jsx("a",{href:"https://support.microsoft.com/it-it/microsoft-edge",className:"text-blue-600 hover:text-blue-700",children:"Edge"})]}),r.jsxs("li",{children:["• ",r.jsx("a",{href:"https://support.apple.com/it-it/HT201265",className:"text-blue-600 hover:text-blue-700",children:"Safari"})]})]}),r.jsxs("p",{className:"text-slate-700 mt-3",children:[r.jsx("strong",{children:"Attenzione:"})," la disabilitazione dei cookie tecnici può compromettere il funzionamento del sito."]})]}),r.jsxs("section",{className:"border-l-4 border-green-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"6. Diritti dell'utente"}),r.jsxs("p",{className:"text-slate-700",children:["Ai sensi degli artt. 15-22 del GDPR, l'utente può esercitare i propri diritti scrivendo a: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),$5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Politica di Reso e Rimborso – PC Expert"}),r.jsx("meta",{name:"description",content:"Leggi la politica di reso e rimborso di PC Expert. Hai diritto di recesso entro 14 giorni dalla consegna. Scopri le condizioni complete."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/politica-di-rimborso"}),r.jsx("meta",{property:"og:title",content:"Politica di Reso e Rimborso – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/politica-di-rimborso"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Politica di Reso e Rimborso"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Ultimo aggiornamento: 05.10.2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:["Da ",r.jsx("strong",{children:"PC Expert"})," la soddisfazione dei clienti è una priorità assoluta. Se non sei completamente soddisfatto del tuo acquisto, hai il diritto di richiedere un reso o un rimborso secondo le condizioni indicate di seguito."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-red-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"1. Diritto di recesso"}),r.jsxs("p",{className:"text-slate-700",children:["In conformità al D.Lgs. 206/2005 (Codice del Consumo), i clienti consumatori possono esercitare il diritto di recesso entro ",r.jsx("strong",{children:"14 giorni lavorativi"})," dalla data di consegna, senza obbligo di fornire motivazioni."]})]}),r.jsxs("section",{className:"border-l-4 border-red-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"2. Condizioni per il rimborso"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Il prodotto deve essere restituito integro e nelle stesse condizioni in cui è stato ricevuto"}),r.jsx("li",{children:"Devono essere inclusi imballaggio originale, manuali e accessori"}),r.jsx("li",{children:"Non saranno accettati resi di articoli danneggiati, usurati, privi di componenti o manomessi"}),r.jsx("li",{children:"Per prodotti personalizzati o assemblati su misura, il rimborso è possibile solo in caso di difetto tecnico comprovato o danno da trasporto"})]})]}),r.jsxs("section",{className:"border-l-4 border-red-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"3. Procedura di reso"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Per avviare la procedura è necessario inviare una richiesta scritta a: ",r.jsx("strong",{children:r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"elitec
360[email protected]"})})]}),r.jsx("p",{className:"text-slate-700 mb-2",children:"Specificando:"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-1",children:[r.jsx("li",{children:"Numero d'ordine"}),r.jsx("li",{children:"Prodotto/i da restituire"}),r.jsx("li",{children:"Motivo del reso (facoltativo)"})]})]}),r.jsxs("section",{className:"border-l-4 border-red-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"4. Spese di spedizione"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Le spese di spedizione per la restituzione sono a carico del cliente"}),r.jsxs("li",{children:["In caso di prodotto difettoso o danneggiato al momento della consegna, le spese saranno a carico di ",r.jsx("strong",{children:"PC Expert"})]})]})]}),r.jsxs("section",{className:"border-l-4 border-red-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"5. Tempistiche di rimborso"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsxs("li",{children:["Una volta ricevuto e verificato il prodotto, il rimborso sarà effettuato entro ",r.jsx("strong",{children:"14 giorni lavorativi"})]}),r.jsx("li",{children:"Il rimborso verrà processato con lo stesso metodo di pagamento utilizzato per l'acquisto"})]})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),Y5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Privacy Policy (GDPR) – PC Expert"}),r.jsx("meta",{name:"description",content:"Informativa sulla privacy di PC Expert ai sensi del Regolamento (UE) 2016/679 (GDPR). Scopri come raccogliamo e utilizziamo i tuoi dati personali."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/politica-sulla-privacy-gdpr"}),r.jsx("meta",{property:"og:title",content:"Privacy Policy (GDPR) – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/politica-sulla-privacy-gdpr"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Privacy Policy (GDPR)"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Ultimo aggiornamento: 05.10.2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:["Questa informativa descrive le modalità con cui ",r.jsx("strong",{children:"Elite Company – P.IVA IT04117740045"}),", titolare del sito ",r.jsx("strong",{children:"PC Expert"})," (",r.jsx("a",{href:"https://pcexpert.store",className:"text-blue-600 hover:text-blue-700",children:"www.pcexpert.store"}),"), raccoglie, utilizza e conserva i dati personali, in conformità al ",r.jsx("strong",{children:"Regolamento (UE) 2016/679 (GDPR)"})," e alla normativa italiana vigente."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"1. Titolare del trattamento"}),r.jsxs("p",{className:"text-slate-700",children:["Il Titolare del trattamento è ",r.jsx("strong",{children:"Elite Company (PC Expert)"}),", con i dati seguenti:"]}),r.jsxs("p",{className:"text-slate-700 mt-2",children:["Telefono: +39 389 511 2890",r.jsx("br",{}),"Email: ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"elitec
360[email protected]"}),r.jsx("br",{}),"Sede legale: Via Torino 181, 12038 Savigliano (CN), Italia"]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"2. Tipologie di dati raccolti"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Dati identificativi: nome, cognome, indirizzo di spedizione e fatturazione"}),r.jsx("li",{children:"Dati di contatto: email, numero di telefono"}),r.jsx("li",{children:"Dati di pagamento: gestiti da provider terzi certificati (es. PayPal, Stripe)"}),r.jsxs("li",{children:["Dati di navigazione: IP, log, cookie (vedi ",r.jsx("a",{href:"/cookie-policy/",className:"text-blue-600 hover:text-blue-700",children:"Cookie Policy"}),")"]})]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"3. Finalità del trattamento"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Gestione ordini e spedizioni"}),r.jsx("li",{children:"Fatturazione e adempimenti fiscali"}),r.jsx("li",{children:"Assistenza clienti"}),r.jsx("li",{children:"Analisi statistiche e miglioramento servizi"}),r.jsx("li",{children:"Marketing e newsletter (solo previo consenso)"})]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"4. Conservazione dei dati"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Documentazione fiscale: fino a 10 anni"}),r.jsx("li",{children:"Dati cliente: durata rapporto + 2 anni"}),r.jsx("li",{children:"Dati di pagamento: solo per il tempo della transazione"}),r.jsx("li",{children:"Log e cookie: 6 mesi – 2 anni"})]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"5. Comunicazione a terzi"}),r.jsx("p",{className:"text-slate-700",children:"I dati possono essere condivisi solo con corrieri, provider di pagamento, consulenti fiscali e provider di hosting, tutti nominati Responsabili del trattamento."})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"6. Trasferimento extra-UE"}),r.jsxs("p",{className:"text-slate-700",children:["Alcuni servizi (Google, PayPal, Meta) possono trasferire dati fuori UE solo con ",r.jsx("strong",{children:"Clausole Contrattuali Standard"}),"."]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"7. Diritti dell'utente"}),r.jsxs("p",{className:"text-slate-700",children:["L'utente può esercitare i diritti previsti dagli artt. 15–22 GDPR scrivendo a ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"}),"."]})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"8. Minori"}),r.jsx("p",{className:"text-slate-700",children:"Il sito non è destinato a utenti sotto i 16 anni."})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"9. Decisioni automatizzate"}),r.jsx("p",{className:"text-slate-700",children:"Non viene effettuata alcuna profilazione automatizzata con effetti giuridici."})]}),r.jsxs("section",{className:"border-l-4 border-purple-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"10. Modifiche"}),r.jsx("p",{className:"text-slate-700",children:"Eventuali aggiornamenti saranno pubblicati su questa pagina, con nuova data di aggiornamento."})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}
360),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),K5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Attestati Ufficiali – Registro A.E.E. | PC Expert"}),r.jsx("meta",{name:"description",content:"PC Expert è regolarmente iscritta al Registro Nazionale A.E.E. e al Registro Pile ai sensi dei D.Lgs. 49/2014 e 188/2008. Verifica i nostri attestati ufficiali."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/attestato-di-iscrizione-al-registro-nazionale-a-e-e"}),r.jsx("meta",{property:"og:title",content:"Attestati Ufficiali – Registro A.E.E. | PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/attestato-di-iscrizione-al-registro-nazionale-a-e-e"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Attestati Ufficiali"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Registro Nazionale A.E.E. e Registro Pile"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:[r.jsx("strong",{children:"PC Expert"}),", ",r.jsx("strong",{children:"Elite Company di Vanghelie Mihai"}),", è regolarmente iscritta ai registri nazionali previsti dalla normativa italiana per i produttori di apparecchiature elettriche ed elettroniche (A.E.E.) e per le pile e gli accumulatori, ai sensi del ",r.jsx("strong",{children:"Decreto Legislativo 49/2014"})," e del ",r.jsx("strong",{children:"Decreto Legislativo 188/2008"}),"."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-indigo-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"Registro A.E.E."}),r.jsxs("div",{className:"bg-indigo-50 rounded-lg p-4 mb-3",children:[r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Numero di iscrizione:"})," IT24070000016237"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Data di iscrizione:"})," 10/07/2024"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Camera di Commercio:"})," Cuneo"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Categoria:"})," Apparecchiature domestiche di piccole dimensioni (Codice 5.24)"]})]})]}),r.jsxs("section",{className:"border-l-4 border-indigo-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"Registro Pile"}),r.jsxs("div",{className:"bg-indigo-50 rounded-lg p-4 mb-3",children:[r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Numero di iscrizione:"})," IT24070P00009748"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Data di iscrizione:"})," 09/07/2024"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Categoria:"})," Pile e accumulatori portatili (Codici 1.3 – 1.10)"]})]})]}),r.jsxs("section",{className:"border-l-4 border-indigo-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"Certificazione e Conformità"}),r.jsx("p",{className:"text-slate-700 mb-4",children:"Questi attestati certificano la conformità dell'azienda agli obblighi previsti dalle normative italiane ed europee in materia di gestione e finanziamento dei sistemi RAEE e Pile, garantendo la massima trasparenza, tracciabilità e rispetto degli standard ambientali."}),r.jsxs("p",{className:"text-slate-700 mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN)"]}),r.jsxs("p",{className:"text-slate-700 mb-2",children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]}),r.jsxs("p",{className:"text-slate-700",children:[r.jsx("strong",{children:"Contatto ufficiale:"})," [email protected]"]})]}),r.jsxs("section",{className:"border-l-4 border-indigo-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"Scarica i documenti ufficiali"}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("a",{href:"https://pcexpert.store/pdfs/Attestato_IT24070000016237.pdf",target:"_blank",className:"block bg-blue-50 hover:bg-blue-100 text-blue-700 font-medium px-4 py-3 rounded-lg transition-colors",children:"📄 Attestato A.E.E. – Registro Nazionale dei Produttori (PDF)"}),r.jsx("a",{href:"https://pcexpert.store/pdfs/Attestato_IT24070P00009748.pdf",target:"_blank",className:"block bg-blue-50 hover:bg-blue-100 text-blue-700 font-medium px-4 py-3 rounded-lg transition-colors",children:"📄 Attestato Registro Pile – Documento di conformità (PDF)"})]}),r.jsx("p",{className:"text-sm text-slate-500 mt-4",children:"Ultimo aggiornamento: Novembre 2025 – Documenti ufficiali emessi dalla Camera di Commercio di Cuneo conformi al D.Lgs. 49/2014 e 188/2008."})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}
360),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),X5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Condizioni Generali di Vendita – PC Expert"}),r.jsx("meta",{name:"description",content:"Leggi le condizioni generali di vendita di PC Expert (Elite Company, P.IVA IT04117740045). Modalità d’acquisto, pagamenti, garanzie e diritto di recesso."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/condizioni-di-vendita"}),r.jsx("meta",{property:"og:title",content:"Condizioni Generali di Vendita – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/condizioni-di-vendita"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Condizioni Generali di Vendita"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Ultimo aggiornamento: 12.11.2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:["Le presenti ",r.jsx("strong",{children:"Condizioni Generali di Vendita"})," disciplinano gli acquisti dei prodotti offerti sul sito ",r.jsx("strong",{children:r.jsx("a",{href:"https://pcexpert.store",className:"text-blue-600 hover:text-blue-700",children:"pcexpert.store"})}),", di proprietà di ",r.jsx("strong",{children:"Elite Company di Vanghelie Mihai"}),", titolare di ",r.jsx("strong",{children:"PC Expert"}),", con sede legale in ",r.jsx("strong",{children:"Via Torino 181, Savigliano (CN)"}),", ",r.jsx("strong",{children:"Partita IVA IT04117740045"}),". L'invio di un ordine comporta la piena accettazione delle condizioni qui riportate."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-orange-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"1. Modalità di Acquisto"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Gli ordini possono essere effettuati esclusivamente online tramite il sito ",r.jsx("strong",{children:"pcexpert.store"}),"."]}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Il cliente, una volta selezionati i prodotti e completato il pagamento, riceverà via e-mail una ",r.jsx("strong",{children:"conferma d'ordine"})," contenente il riepilogo dell'acquisto, il prezzo, i tempi stimati di consegna e il numero identificativo dell'ordine."]}),r.jsx("p",{className:"text-slate-700",children:"Tutti i prodotti sono descritti nel modo più accurato possibile; eventuali differenze minime nei dati tecnici o nelle immagini non costituiscono motivo di contestazione."})]}),r.jsxs("section",{className:"border-l-4 border-orange-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"2. Prezzi e IVA"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Tutti i prezzi indicati sul sito sono ",r.jsx("strong",{children:"IVA esclusa"}),"."]}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["L'",r.jsx("strong",{children:"IVA viene calcolata automaticamente al momento del checkout"}),", prima della conferma dell'ordine."]}),r.jsx("p",{className:"text-slate-700 mb-3",children:"Eventuali promozioni o sconti sono applicati direttamente nel carrello."}),r.jsx("p",{className:"text-slate-700",children:"I prezzi possono variare senza preavviso, in base alle condizioni dei fornitori o alle variazioni del mercato hardware."})]}),r.jsxs("section",{className:"border-l-4 border-orange-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"3. Disponibilità dei Prodotti"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"PC Expert collabora con fornitori ufficiali e autorizzati a livello nazionale e internazionale."}),r.jsx("p",{className:"text-slate-700 mb-3",children:"Una volta confermato l'ordine, se il prodotto non è disponibile in magazzino, viene spedito direttamente dal fornitore senza alcun ritardo."}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["In caso di momentanea ",r.jsx("strong",{children:"indisponibilità o ritardo di fornitura"}),", il cliente verrà avvisato tempestivamente e potrà scegliere tra:"]}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-2",children:[r.jsx("li",{children:"Attendere la nuova disponibilità"}),r.jsx("li",{children:"Sostituire l'articolo con un prodotto equivalente"}),r.jsxs("li",{children:["Ricevere ",r.jsx("strong",{children:"rimborso totale immediato"})]})]})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}
360),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),Z5=()=>(N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),r.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-50 to-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Spedizione e Consegna – PC Expert"}),r.jsx("meta",{name:"description",content:"Informazioni sulle spedizioni di PC Expert: tempi di consegna da 7 a 12 giorni lavorativi, corrieri, costi e gestione degli ordini in tutta Italia."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/spedizione"}),r.jsx("meta",{property:"og:title",content:"Spedizione e Consegna – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/spedizione"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 py-12",children:r.jsxs("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-slate-900 mb-6",children:"Spedizione e Consegna"}),r.jsx("p",{className:"text-sm text-slate-500 mb-6",children:"Ultimo Aggiornamento: 12.11.2025"}),r.jsxs("div",{className:"prose prose-slate max-w-none",children:[r.jsxs("p",{className:"text-slate-700 mb-6",children:["La presente pagina descrive in modo chiaro e trasparente tutte le condizioni relative alla ",r.jsx("strong",{children:"spedizione, consegna e gestione degli ordini"})," effettuati sul sito ",r.jsx("a",{href:"https://pcexpert.store",className:"text-blue-600 hover:text-blue-700",children:"pcexpert.store"}),", di proprietà di ",r.jsx("strong",{children:"Elite Company di Vanghelie Mihai"}),"."]}),r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"1. Elaborazione degli Ordini"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Tutti gli ordini vengono ",r.jsx("strong",{children:"processati entro 2 giorni lavorativi"})," dalla conferma del pagamento."]})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"2. Tempi di Consegna"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["I tempi medi di consegna variano da ",r.jsx("strong",{children:"5 a 14 giorni lavorativi"})," a partire dalla data di elaborazione dell'ordine"]})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"3. Modalità di Spedizione"}),r.jsxs("p",{className:"text-slate-700",children:["Le spedizioni vengono effettuate tramite ",r.jsx("strong",{children:"corrieri espressi nazionali e internazionali"}),". Tutte le spedizioni sono ",r.jsx("strong",{children:"tracciabili"}),": il cliente riceverà via email il ",r.jsx("strong",{children:"numero di tracking"})," per monitorare lo stato del pacco in tempo reale."]})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"4. Costi di Spedizione"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"I costi di spedizione vengono calcolati automaticamente in fase di checkout, in base a:"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-1 mb-3",children:[r.jsx("li",{children:"peso e dimensioni del pacco"}),r.jsx("li",{children:"destinazione (Italia o altri Paesi UE)"}),r.jsx("li",{children:"eventuali supplementi per isole o zone remote"})]}),r.jsxs("p",{className:"text-slate-700",children:["Per ordini superiori a una determinata soglia, la ",r.jsx("strong",{children:"spedizione può essere gratuita"}),"."]})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"5. Consegna e Controllo del Pacco"}),r.jsx("p",{className:"text-slate-700 mb-3",children:"Al momento della consegna, il cliente è tenuto a verificare:"}),r.jsxs("ul",{className:"list-disc list-inside text-slate-700 space-y-1 mb-3",children:[r.jsx("li",{children:"che l'imballo sia integro e non presenti segni di manomissione"}),r.jsx("li",{children:"che il numero dei colli corrisponda a quanto indicato"})]}
360),r.jsxs("p",{className:"text-slate-700",children:["Eventuali ",r.jsx("strong",{children:"anomalie o danni"})," devono essere segnalati immediatamente al corriere ",r.jsx("strong",{children:"prima della firma"}),', apponendo la dicitura "',r.jsx("strong",{children:"Accetto con riserva di verifica"}),'".']})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"6. Mancata Consegna"}),r.jsxs("p",{className:"text-slate-700",children:["Nel caso di assenza del destinatario, verrà effettuato un secondo tentativo o il pacco sarà depositato presso il punto di ritiro più vicino. Trascorsi ",r.jsx("strong",{children:"7 giorni senza ritiro"}),", il pacco verrà restituito al mittente e PC Expert potrà trattenere le spese di spedizione e gestione."]})]}),r.jsxs("section",{className:"border-l-4 border-blue-500 pl-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-slate-900 mb-3",children:"7. Ritardi o Problemi nella Spedizione"}),r.jsxs("p",{className:"text-slate-700 mb-3",children:["Eventuali ritardi non imputabili a PC Expert ",r.jsx("strong",{children:"non danno diritto al rimborso immediato"}),", ma il nostro team fornirà supporto e aggiornamenti tempestivi."]}),r.jsxs("p",{className:"text-slate-700",children:["In caso di smarrimento o mancata consegna entro ",r.jsx("strong",{children:"20 giorni lavorativi"}),", verrà aperta una ",r.jsx("strong",{children:"procedura di reclamo"})," e il cliente potrà ricevere un nuovo prodotto o il ",r.jsx("strong",{children:"rimborso totale"}),"."]})]})]})]}),r.jsx("div",{className:"mt-12 pt-6 border-t border-slate-200",children:r.jsxs("div",{className:"bg-slate-50 rounded-lg p-6 text-sm text-slate-600",children:[r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Telefono:"})," +39 389 511 2890"]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Email:"})," ",r.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 hover:text-blue-700",children:"[email protected]"})]}),r.jsxs("p",{className:"mb-2",children:[r.jsx("strong",{children:"Sede legale:"})," Via Torino 181, 12038 Savigliano (CN), Italia"]}),r.jsxs("p",{children:[r.jsx("strong",{children:"Partita IVA:"})," IT04117740045"]})]})})]})})]})),J5=()=>{const[t,i]=N.useState(null),[s,l]=N.useState(!0),[c,d]=N.useState(null),[f,m]=N.useState("");N.useEffect(()=>{const S=new URLSearchParams(window.location.search).get("token");if(!S){d("Nessun codice di tracciamento fornito"),l(!1);return}m(S),p(S)},[]);const p=async v=>{try{l(!0);const S=await Pe.post("https://pcexpert.store/api/trackorder",{token:v});console.log(S.data.data),i(S.data.data),d(null)}catch{d("Ordine non trovato. Verifica il tuo link di tracciamento.")}finally{l(!1)}},x=v=>({ordered:"Ordine Effettuato",processing:"In Lavorazione",shipped:"Spedito",out_for_delivery:"In Consegna",delivered:"Consegnato"})[v]||v,g=v=>({ordered:"bg-blue-100 text-blue-800",processing:"bg-yellow-100 text-yellow-800",shipped:"bg-purple-100 text-purple-800",out_for_delivery:"bg-orange-100 text-orange-800",delivered:"bg-green-100 text-green-800"})[v]||"bg-gray-100 text-gray-800",b=v=>v?new Date(v).toLocaleDateString("it-IT",{day:"numeric",month:"short",year:"numeric"}):"In attesa";return s?r.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto mb-4"}),r.jsx("p",{className:"text-gray-600",children:"Caricamento dettagli ordine..."})]})}):c?r.jsx("div",{className:"min-h-screen bg-white flex items-center justify-center",children:r.jsxs("div",{className:"text-center max-w-md mx-auto p-6",children:[r.jsx(Oh,{className:"h-16 w-16 text-red-500 mx-auto mb-4"}),r.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Ordine Non Trovato"}),r.jsx("p",{className:"text-gray-600 mb-6",children:c}),r.jsx("button",{onClick:()=>window.location.reload(),className:"bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 transition-colors",children:"Riprova"})]})}):r.jsxs("div",{className:"min-h-screen bg-white",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Traccia il tuo Ordine – PC Expert"}),r.jsx("meta",{name:"description",content:"Monitora in tempo reale lo stato del tuo ordine su PC Expert. Inserisci il tuo codice di tracciamento per vedere gli aggiornamenti."}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:"Traccia il Tuo Ordine"}),r.jsxs("p",{className:"text-gray-600",children:["Ordine #",t.orderNumber]})]}),r.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-sm p-6 mb-8",children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"Stato Attuale"}),r.jsx("span",{className:`px-4 py-2 rounded-full text-sm font-medium ${g(t.status)}`,children:x(t.status)})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center text-gray-600 mb-2",children:[r.jsx(Hj,{className:"h-5 w-5 mr-2"}),r.jsx("span",{className:"font-medium",children:"Indirizzo di Spedizione"})]}),r.jsx("p",{className:"text-gray-900 ml-7",children:t.shippingAddress})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center text-gray-600 mb-2",children:[r.jsx(o6,{className:"h-5 w-5 mr-2"}),r.jsx("span",{className:"font-medium",children:"Consegna Stimata"})]}),r.jsx("p",{className:"text-gray-900 ml-7",children:b(new Date(new Date(t.estimatedDelivery).setDate(new Date(t.estimatedDelivery).getDate()+14)))})]})]})]}),r.jsxs("div",{className:"bg-white border border-gray-200 rounded-xl shadow-sm p-6",children:[r.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"Articoli dell'Ordine"}),r.jsxs("div",{className:"space-y-4",children:[t.items.map((v,S)=>r.jsxs("div",{className:"flex justify-between items-center py-3 border-b border-gray-100 last:border-0",children:[r.jsxs("div",{children:[r.jsx("h3",{className:"font-medium text-gray-900",children:v.name}),r.jsxs("p",{className:"text-sm text-gray-600",children:["Quantità: ",v.quantity]})]}),r.jsxs("p",{className:"font-medium text-gray-900",children:["€",(v.amount_each*v.quantity).toFixed(2)]})]},S)),r.jsx("div",{className:"pt-4 border-t border-gray-200",children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-lg font-semibold text-gray-900",children:"Totale"}),r.jsxs("span",{className:"text-lg font-semibold text-gray-900",children:["€",t.items.reduce((v,S)=>v+S.amount_each*S.quantity,0).toFixed(2)]})]})})]})]}),r.jsx("div",{className:"text-center mt-8 text-gray-600",children:r.jsx("p",{children:"Domande sul tuo ordine? Contatta il nostro team di assistenza."})})]})]})};function W5(){const[t,i]=N.useState(!1),[s,l]=N.useState([]),[c,d]=N.useState(""),[f,m]=N.useState(!1),[p,x]=N.useState(null),g=N.useRef(null),b=N.useRef(null);
360Mt();const v="https://pcexpert.store/api",S=()=>{var T;(T=g.current)==null||T.scrollIntoView({behavior:"smooth"})};N.useEffect(()=>{S()},[s]),N.useEffect(()=>{t&&b.current&&b.current.focus()},[t]),N.useEffect(()=>{t&&s.length===0&&l([{role:"assistant",content:"Ciao! 👋 Sono l'assistente virtuale. Come posso aiutarti oggi?",timestamp:new Date().toISOString()}])},[t]);const j=async()=>{if(!c.trim()||f)return;const T={role:"user",content:c,timestamp:new Date().toISOString()},_=[...s,T];l(_),d(""),m(!0);try{const O=_.map(Y=>({role:Y.role,content:Y.content})),U=await fetch(`${v}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:c,messages:O})});if(!U.ok)throw new Error("Failed to send message");const Q=await U.json(),ee={role:"assistant",content:Q.response,timestamp:Q.timestamp};l(Y=>[...Y,ee])}catch(O){console.error("Error sending message:",O);const U={role:"assistant",content:"Mi dispiace, si è verificato un errore. Riprova più tardi.",timestamp:new Date().toISOString()};l(Q=>[...Q,U])}finally{m(!1)}},C=T=>{T.key==="Enter"&&!T.shiftKey&&(T.preventDefault(),j())},E=async()=>{try{p&&await fetch(`${v}/chat/reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversation_id:p})}),l([{role:"assistant",content:"Ciao! 👋 Sono l'assistente virtuale. Come posso aiutarti oggi?",timestamp:new Date().toISOString()}]),x(null)}catch(T){console.error("Error resetting conversation:",T)}};return r.jsxs(r.Fragment,{children:[r.jsx(en,{children:r.jsx(K.a,{"aria-label":"Whatsapp",className:"fixed bottom-16 right-6 z-[9999] bg-green-600 text-white rounded-full p-2 shadow-2xl hover:bg-green-700 transition-colors",href:"https://api.whatsapp.com/send/?phone=393895112890&text&type=phone_number&app_absent=0",initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},whileHover:{scale:1.1},whileTap:{scale:.9},children:r.jsx(Gm,{size:20})})}),r.jsx(en,{children:!t&&r.jsx(K.button,{"aria-label":"Support",className:"fixed bottom-6 right-6 z-[9999] bg-red-600 text-white rounded-full p-2 shadow-2xl hover:bg-red-700 transition-colors",onClick:()=>i(!0),initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},exit:{scale:0,opacity:0},whileHover:{scale:1.1},whileTap:{scale:.9},children:r.jsx(Fb,{size:20})})}),r.jsx(en,{children:t&&r.jsxs(K.div,{className:"fixed bottom-6 right-6 z-[9999] w-96 max-w-[calc(100vw-3rem)] h-[600px] max-h-[calc(100vh-3rem)] bg-[#111] border border-red-600 rounded-2xl shadow-2xl flex flex-col overflow-hidden",initial:{scale:.8,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},exit:{scale:.8,opacity:0,y:20},transition:{type:"spring",damping:25,stiffness:200},children:[r.jsxs("div",{className:"bg-red-600 p-4 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"bg-white/20 rounded-full p-2",children:r.jsx(Fb,{size:20})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-white font-bold text-sm",children:"Assistente Virtuale"}),r.jsx("p",{className:"text-white/80 text-xs",children:"Online ora"})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(K.button,{onClick:E,className:"text-white/80 hover:text-white transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},title:"Nuova conversazione",children:r.jsx(Gj,{size:18})}),r.jsx(K.button,{onClick:()=>i(!1),className:"text-white/80 hover:text-white transition-colors",whileHover:{scale:1.1},whileTap:{scale:.9},children:r.jsx(vl,{size:20})})]})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 custom-scrollbar",children:[s.map((T,_)=>r.jsx(K.div,{className:`flex ${T.role==="user"?"justify-end":"justify-start"}`,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:_*.1},children:r.jsxs("div",{className:`max-w-[80%] rounded-2xl px-4 py-3 ${T.role==="user"?"bg-red-600 text-white":"bg-[#202020] text-white border border-gray-700"}`,children:[r.jsx("p",{className:"text-sm whitespace-pre-wrap break-words",children:T.content}),r.jsx("p",{className:`text-xs mt-1 ${T.role==="user"?"text-white/70":"text-gray-500"}`,children:new Date(T.timestamp).toLocaleTimeString("it-IT",{hour:"2-digit",minute:"2-digit"})})]})},_)),f&&r.jsx(K.div,{className:"flex justify-start",initial:{opacity:0}
360,animate:{opacity:1},children:r.jsx("div",{className:"bg-[#202020] border border-gray-700 rounded-2xl px-4 py-3",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Uc,{className:"animate-spin",size:16}),r.jsx("span",{className:"text-gray-400 text-sm",children:"Sto scrivendo..."})]})})}),r.jsx("div",{ref:g})]}),r.jsxs("div",{className:"p-4 bg-[#0a0a0a] border-t border-gray-800",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{ref:b,type:"text",value:c,onChange:T=>d(T.target.value),onKeyPress:C,placeholder:"Scrivi un messaggio...",className:"flex-1 bg-[#202020] border border-gray-700 rounded-xl px-4 py-3 text-white text-sm outline-none focus:border-red-600 transition-colors",disabled:f}),r.jsx(K.button,{onClick:j,disabled:!c.trim()||f,className:"bg-red-600 text-white rounded-xl px-4 py-3 disabled:opacity-50 disabled:cursor-not-allowed hover:bg-red-700 transition-colors",whileHover:{scale:c.trim()&&!f?1.05:1},whileTap:{scale:c.trim()&&!f?.95:1},children:f?r.jsx(Uc,{className:"animate-spin",size:20}):r.jsx($c,{size:20})})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-2 text-center",children:"Risposte limitate alle informazioni del sito"})]})]})}),r.jsx("style",{jsx:!0,children:`
361                .custom-scrollbar::-webkit-scrollbar {
362                    width: 6px;
363                }
364                .custom-scrollbar::-webkit-scrollbar-track {
365                    background: #1a1a1a;
366                    border-radius: 10px;
367                }
368                .custom-scrollbar::-webkit-scrollbar-thumb {
369                    background: #dc2626;
370                    border-radius: 10px;
371                }
372                .custom-scrollbar::-webkit-scrollbar-thumb:hover {
373                    background: #b91c1c;
374                }
375            `})]})}function eM(){const[t,i]=N.useState(!1);N.useEffect(()=>{const m=f("cookieConsent");m?m==="accepted"?c("granted"):m==="rejected"&&c("denied"):i(!0)},[]);const s=()=>{d("cookieConsent","accepted",365),i(!1),c("granted")},l=()=>{d("cookieConsent","rejected",365),i(!1),c("denied")},c=m=>{typeof window.gtag=="function"&&window.gtag("consent","update",{analytics_storage:m,ad_storage:m,ad_user_data:m,ad_personalization:m})},d=(m,p,x)=>{const g=new Date;g.setTime(g.getTime()+x*24*60*60*1e3),document.cookie=`${m}=${p};expires=${g.toUTCString()};path=/;SameSite=Lax`},f=m=>{var g;const x=`; ${document.cookie}`.split(`; ${m}=`);return x.length===2&&((g=x.pop())==null?void 0:g.split(";").shift())||null};return t?r.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t-2 border-gray-200 shadow-2xl z-50 p-4 md:p-6",children:r.jsxs("div",{className:"max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("h3",{className:"font-bold text-lg mb-2",children:"🍪 Utilizziamo i Cookie"}),r.jsxs("p",{className:"text-sm text-gray-600",children:["Utilizziamo cookie tecnici necessari per il funzionamento del sito e cookie analitici per migliorare la tua esperienza. Puoi accettare tutti i cookie o rifiutare quelli non essenziali."," ",r.jsx("a",{href:"/politica-sulla-privacy-gdpr",className:"text-red-600 underline",children:"Leggi la nostra Privacy Policy"})]})]}),r.jsxs("div",{className:"flex gap-3 flex-shrink-0",children:[r.jsx("button",{onClick:l,className:"px-4 py-2 border-2 border-gray-300 rounded-lg font-semibold hover:bg-gray-100 transition",children:"Rifiuta"}),r.jsx("button",{onClick:s,className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700 transition",children:"Accetta Tutti"})]})]})}):null}function tM(){const t=Mt(),{clearCart:i}=Hl(),[s]=om(),[l,c]=N.useState(null),[d,f]=N.useState(!0);return N.useEffect(()=>{(async()=>{const p=s.get("token");if(!p){t("/");return}try{const g=(await Pe.post("https://pcexpert.store/api/trackorder",{token:p})).data.data;c(g),window.gtag("event","conversion",{send_to:"AW-17843557111/LDTuCNDb8dkbEPelvLxC",value:g.total,currency:"EUR",transaction_id:g.orderNumber}),window.gtag("event","purchase",{transaction_id:g.orderNumber,value:g.total,currency:"EUR",shipping:0,items:g.items.map((b,v)=>({item_id:b.id||`item_${v}`,item_name:b.name||b.title,price:Number(b.price),quantity:Number(b.quantity||1)}))}),i()}catch(x){console.error("Error fetching order data:",x),t("/")}finally{f(!1)}})(),window.scrollTo({top:0,behavior:"smooth"})},[s,t,i]),d?r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-red-600"})}):l?r.jsxs("div",{className:"min-h-screen text-black pb-20",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Ordine Confermato – PC Expert"}),r.jsx("meta",{name:"description",content:"Grazie per il tuo acquisto su PC Expert. Il tuo ordine è stato ricevuto e sarà elaborato a breve."}),r.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),r.jsx(K.div,{className:"bg-gradient-to-r from-green-600 to-green-800 py-12 px-4",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsx(K.div,{initial:{scale:0},animate:{scale:1},transition:{delay:.2,type:"spring",stiffness:200},children:r.jsx($s,{size:80,className:"mx-auto mb-6 text-white"})}),r.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-4",children:"Ordine Confermato!"}),r.jsx("p",{className:"text-white/90 text-lg mb-2",children:"Grazie per il tuo acquisto. Il tuo ordine è stato ricevuto con successo."}),r.jsxs("p",{className:"text-white font-semibold text-xl",children:["Ordine #",l.orderNumber]})]})}),r.jsxs("div",{className:"max-w-4xl mx-auto px-4 md:px-8 py-12",children:[r.jsxs(K.div,{className:"border border-gray-800 rounded-lg p-6 md:p-8 mb-8",initial:{opacity:0,y:20}
375,animate:{opacity:1,y:0},transition:{delay:.3},children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("h2",{className:"text-lg font-bold mb-3",children:"Riepilogo Ordine"}),r.jsxs("div",{className:"space-y-2 text-sm",children:[r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-gray-600",children:"Numero Ordine:"}),r.jsxs("span",{className:"font-semibold",children:["#",l.orderNumber]})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-gray-600",children:"Totale:"}),r.jsxs("span",{className:"font-semibold",children:["€",l.total.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-gray-600",children:"Indirizzo di spedizione:"}),r.jsx("span",{className:"font-semibold text-right max-w-xs",children:l.shippingAddress})]}),r.jsxs("div",{className:"flex justify-between",children:[r.jsx("span",{className:"text-gray-600",children:"Consegna stimata:"}),r.jsx("span",{className:"font-semibold",children:l.estimatedDelivery})]})]})]}),r.jsx("div",{className:"bg-green-50 border border-green-200 rounded-lg p-4 mb-6",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(Fm,{size:24,className:"text-green-600 flex-shrink-0 mt-1"}),r.jsxs("div",{children:[r.jsx("p",{className:"font-semibold text-green-900 mb-1",children:"Conferma inviata via email"}),r.jsx("p",{className:"text-green-700 text-sm",children:"Ti abbiamo inviato una email di conferma con tutti i dettagli del tuo ordine."})]})]})}),r.jsx("h2",{className:"text-xl font-bold mb-4",children:"Cosa succede ora?"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs(K.div,{className:"flex gap-4 items-start",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.4},children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0",children:r.jsx("span",{className:"font-bold text-red-600",children:"1"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Elaborazione Pagamento"}),r.jsx("p",{className:"text-gray-600 text-sm",children:"Stiamo verificando il tuo pagamento e preparando l'ordine."})]})]}),r.jsxs(K.div,{className:"flex gap-4 items-start",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.5},children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0",children:r.jsx(V6,{size:20,className:"text-red-600"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Preparazione Ordine"}),r.jsx("p",{className:"text-gray-600 text-sm",children:"Il tuo ordine verrà preparato e confezionato con cura entro 24-48 ore."})]})]}),r.jsxs(K.div,{className:"flex gap-4 items-start",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6},children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-red-100 flex items-center justify-center flex-shrink-0",children:r.jsx($j,{size:20,className:"text-red-600"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-bold mb-1",children:"Spedizione"}),r.jsx("p",{className:"text-gray-600 text-sm",children:"Riceverai un codice di tracciamento via email per seguire la spedizione."})]})]})]})]}),r.jsxs(K.div,{className:"grid md:grid-cols-2 gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.7},children:[r.jsxs(K.button,{onClick:()=>t("/"),className:"bg-red-600 hover:bg-red-700 text-white py-4 rounded-lg font-bold text-lg transition-colors flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:[r.jsx(S6,{size:20}),"Torna alla Home"]}),r.jsxs(K.button,{onClick:()=>t("/products"),className:"bg-transparent border border-red-600 hover:bg-red-600 text-black hover:text-white py-4 rounded-lg font-bold text-lg transition-all flex items-center justify-center gap-2",whileHover:{scale:1.02},whileTap:{scale:.98},children:["Continua gli Acquisti",r.jsx(n6,{size:20})]})]}),r.jsxs(K.div,{className:"mt-8 border border-gray-800 rounded-lg p-6",initial:{opacity:0}
375,animate:{opacity:1},transition:{delay:.8},children:[r.jsx("h3",{className:"font-bold mb-4",children:"Hai bisogno di aiuto?"}),r.jsxs("div",{className:"space-y-3 text-sm text-gray-600",children:[r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold text-black",children:"Email:"})," [email protected]"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold text-black",children:"Telefono:"})," +39 389 511 2890"]}),r.jsxs("p",{children:[r.jsx("span",{className:"font-semibold text-black",children:"Orari:"})," Lun-Ven 9:00-18:00"]})]})]})]})]}):null}function nM(){const[t,i]=N.useState(null),s=[{question:"Quanto tempo impiega la consegna?",answer:"I tempi di consegna variano da 7 a 12 giorni lavorativi per i prodotti disponibili in magazzino. Per i PC assemblati su misura, i tempi possono estendersi fino a 10-14 giorni lavorativi per garantire test completi e assemblaggio di qualità."},{question:"Offrite garanzia sui prodotti?",answer:"Sì, tutti i nostri prodotti sono coperti da garanzia. I PC pre-assemblati hanno una garanzia di 24 mesi, mentre i singoli componenti hanno garanzie che variano da 12 a 36 mesi a seconda del produttore. Offriamo anche assistenza tecnica gratuita durante tutto il periodo di garanzia."},{question:"Posso personalizzare il mio PC gaming?",answer:"Assolutamente! Offriamo un servizio di personalizzazione completo. Puoi scegliere ogni singolo componente del tuo PC, dalla CPU alla GPU, dalla RAM allo storage. Il nostro team di esperti ti aiuterà a creare la configurazione perfetta per le tue esigenze e il tuo budget."},{question:"Quali metodi di pagamento accettate?",answer:"Accettiamo diverse forme di pagamento per la tua comodità: carte di credito e debito (Visa, Mastercard, American Express) e PayPal"},{question:"Cosa include l'assistenza post-vendita?",answer:"La nostra assistenza post-vendita include supporto tecnico gratuito via email, telefono e chat, aiuto per l'installazione e la configurazione del sistema, aggiornamenti driver e software, e risoluzione di problemi tecnici."},{question:"I PC vengono testati prima della spedizione?",answer:"Sì, ogni PC assemblato viene sottoposto a rigorosi test di qualità prima della spedizione. Testiamo stabilità del sistema, temperature, prestazioni gaming con benchmark, e compatibilità di tutti i componenti."}];return r.jsxs("main",{className:"overflow-x-hidden px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px]",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Domande Frequenti (FAQ) – PC Expert"}),r.jsx("meta",{name:"description",content:"Trova le risposte alle domande più frequenti su spedizioni, garanzie, personalizzazione PC e metodi di pagamento su PC Expert."}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/faq"}),r.jsx("meta",{property:"og:title",content:"Domande Frequenti (FAQ) – PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/faq"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsxs("div",{className:"space-y-4 py-16",children:[r.jsx("h1",{className:"font-bold text-center text-4xl mb-2",children:"FAQ"}),s.map((l,c)=>r.jsxs(K.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:c*.1},className:"border border-gray-200 rounded-lg overflow-hidden bg-white shadow-sm hover:shadow-md transition-shadow",children:[r.jsxs("button",{onClick:()=>i(t===c?null:c),className:"w-full px-6 py-5 flex justify-between items-center text-left hover:bg-gray-50 transition-colors","aria-expanded":t===c,children:[r.jsx("span",{className:"font-semibold text-gray-900 text-lg pr-8",children:l.question}),r.jsx(K.div,{animate:{rotate:t===c?180:0},transition:{duration:.3},className:"flex-shrink-0",children:r.jsx(yl,{className:"w-6 h-6 text-red-600"})})]}),r.jsx(K.div,{initial:!1,animate:{height:t===c?"auto":0,opacity:t===c?1:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:r.jsx("div",{className:"px-6 pb-5 pt-2 text-gray-600 leading-relaxed",children:l.answer})})]},c))]})]})}function iM(){Mt(),N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const t={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},i={hidden:{opacity:0}
375,visible:{opacity:1,transition:{staggerChildren:.2}}};return r.jsxs("main",{className:"overflow-x-hidden bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Riparazioni e Supporto Tecnico – PC Expert"}),r.jsx("meta",{name:"description",content:"Servizi di riparazione PC, sostituzione componenti, diagnostica hardware e supporto tecnico professionale. Contatta PC Expert a Savigliano (CN)."}),r.jsx("meta",{name:"keywords",content:"riparazione PC, supporto tecnico, diagnostica hardware, Savigliano, PC Expert"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/riparazioni"}),r.jsx("meta",{property:"og:title",content:"Riparazioni e Supporto Tecnico – PC Expert"}),r.jsx("meta",{property:"og:description",content:"Servizi di riparazione PC, sostituzione componenti e supporto tecnico professionale a Savigliano (CN)."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/riparazioni"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("section",{className:"relative pt-10 pb-20 overflow-hidden bg-gradient-to-br from-red-200 via-white to-red-300",children:r.jsxs("div",{className:"px-4 md:px-8 lg:px-20 xl:px-40 2xl:px-44 flex flex-col md:flex-row items-center justify-between gap-10",children:[r.jsxs(K.div,{className:"flex flex-col gap-6 w-full lg:w-2/3",initial:"hidden",animate:"visible",variants:i,children:[r.jsxs(K.h1,{variants:t,className:"text-5xl sm:text-6xl md:text-7xl font-bold leading-tight text-black",children:["RIPARAZIONI ",r.jsx("br",{})," ",r.jsx("span",{className:"text-red-600",children:"& ASSISTENZA"})]}),r.jsx(K.p,{variants:t,className:"text-base md:text-lg text-gray-700 max-w-2xl",children:"PC Expert offre un servizio professionale di riparazioni e assistenza tecnica per PC desktop e notebook. Interventi mirati, competenza tecnica e massima trasparenza per privati e aziende."}),r.jsxs(K.div,{variants:t,className:"flex flex-wrap gap-4 mt-4",children:[r.jsx("button",{onClick:()=>document.getElementById("contacts").scrollIntoView({behavior:"smooth"}),className:"bg-black text-white px-8 py-3 rounded-full font-semibold hover:scale-105 transition-transform",children:"Contattaci Subito"}),r.jsx("button",{onClick:()=>document.getElementById("forms").scrollIntoView({behavior:"smooth"}),className:"bg-white border border-black text-black px-8 py-3 rounded-full font-semibold hover:bg-gray-100 hover:scale-105 transition-transform",children:"Moduli Assistenza"})]})]}),r.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},className:"hidden lg:block relative",children:r.jsx("div",{className:"bg-white/30 backdrop-blur-md p-10 rounded-3xl border border-white shadow-xl",children:r.jsx(Yb,{size:120,className:"text-red-600 opacity-80"})})})]})}),r.jsxs("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] -mt-10 relative z-10 pb-20",children:[r.jsxs(K.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:t,className:"bg-white rounded-xl shadow-lg p-8 md:p-12 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center",children:r.jsx(Yb,{className:"text-red-600",size:24})}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"I Nostri Servizi"})]}),r.jsx("p",{className:"text-gray-600 mb-8 text-lg leading-relaxed",children:"Il nostro obiettivo è garantire computer affidabili, performanti e ottimizzati nel tempo. Utilizziamo strumenti professionali e componenti di qualità per ogni intervento."}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[{icon:Zf,text:"Riparazione PC desktop e notebook"},{icon:Yj,text:"Ottimizzazione prestazioni PC"},{icon:w6,text:"Sostituzione componenti hardware"},{icon:Bj,text:"Upgrade RAM e SSD"},{icon:Z6,text:"Configurazione programmi e driver"},{icon:Xf,text:"Assistenza software Windows"}].map((s,l)=>r.jsxs("div",{className:"flex items-center gap-3 p-4 bg-gray-50 rounded-lg border border-gray-100 hover:border-red-200 transition-colors",children:[r.jsx(s.icon,{className:"text-red-600",size:20}),r.jsx("span",{className:"font-medium text-gray-800",children:s.text})]},l))})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12",children:[r.jsxs(K.div,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-white rounded-xl shadow-lg overflow-hidden border-t-4 border-red-500 flex flex-col",children:[r.jsxs("div",{className:"p-8 flex-grow",children:[r.jsxs("div",{className:"flex justify-between items-start mb-4",children:[r.jsx("div",{className:"w-14 h-14 bg-red-100 rounded-2xl flex items-center justify-center text-red-600 mb-4",children:r.jsx(lR,{size:32})}),r.jsxs("div",{className:"text-right",children:[r.jsx("span",{className:"block text-3xl font-bold text-gray-900",children:"50 €"}),r.jsx("span",{className:"text-sm text-gray-500",children:"+ IVA"})]})]}),r.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Pulizia PC Completa"}),r.jsx("p",{className:"text-gray-600 mb-6",children:"Servizio dedicato alla manutenzione approfondita, ideale per migliorare temperature, silenziosità e stabilità."}),r.jsx("ul",{className:"space-y-3",children:["Smontaggio sistema di raffreddamento","Pulizia totale da polvere e residui","Sostituzione pasta termica CPU (High Performance)","Sostituzione pasta termica GPU","Cable management (riordino cavi)","Check temperature finali"].map((s,l)=>r.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700",children:[r.jsx($s,{className:"text-red-500 shrink-0",size:18}),s]},l))})]}),r.jsx("div",{className:"p-4 bg-gray-50 border-t border-gray-100 text-center text-sm text-gray-500 font-medium",children:"Consigliato ogni 12-18 mesi"})]}),r.jsxs(K.div,{initial:{opacity:0,x:20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"bg-white rounded-xl shadow-lg overflow-hidden border-t-4 border-blue-500 flex flex-col",children:[r.jsxs("div",{className:"p-8 flex-grow",children:[r.jsxs("div",{className:"flex justify-between items-start mb-4",children:[r.jsx("div",{className:"w-14 h-14 bg-blue-100 rounded-2xl flex items-center justify-center text-blue-600 mb-4",children:r.jsx(Zf,{size:32})}),r.jsxs("div",{className:"text-right",children:[r.jsx("span",{className:"block text-3xl font-bold text-gray-900",children:"80 €"}),r.jsx("span",{className:"text-sm text-gray-500",children:"+ IVA"})]})]}),r.jsx("h3",{className:"text-2xl font-bold mb-3",children:"Installazione Windows Clean"}),r.jsx("p",{className:"text-gray-600 mb-6",children:"Reinstallazione professionale del sistema operativo. Consigliato in caso di virus, rallentamenti o upgrade."}),r.jsx("ul",{className:"space-y-3",children:["Formattazione completa del disco","Installazione ultima versione Windows","Installazione driver ufficiali aggiornati","Aggiornamento BIOS (se necessario)","Ottimizzazione avvio e servizi","Backup dei dati (se richiesto)"].map((s,l)=>r.jsxs("li",{className:"flex items-start gap-3 text-sm text-gray-700",children:[r.jsx($s,{className:"text-blue-500 shrink-0",size:18}),s]},l))})]}),r.jsx("div",{className:"p-4 bg-gray-50 border-t border-gray-100 text-center text-sm text-gray-500 font-medium",children:"Il PC tornerà veloce come nuovo"})]})]}),r.jsxs("section",{id:"contacts",className:"bg-white rounded-xl shadow-lg p-8 md:p-12 mb-12 border border-gray-100",children:[r.jsxs("div",{className:"text-center max-w-3xl mx-auto mb-10",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Hai altre problematiche?"}),r.jsx("p",{className:"text-gray-600 text-lg",children:"Per qualsiasi altra esigenza o richiesta di preventivo personalizzato, contattaci senza esitazione. Un nostro tecnico specializzato ti risponderà nel più breve tempo possibile."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("a",{href:"mailto:[email protected]",className:"flex flex-col items-center p-6 bg-red-50 rounded-xl hover:bg-red-100 transition-colors group cursor-pointer",children:[r.jsx("div",{className:"bg-white p-4 rounded-full shadow-sm mb-4 group-hover:scale-110 transition-transform",children:r.jsx(Fm,{className:"text-red-600",size:32})}),r.jsx("h3",{className:"text-xl font-bold mb-1",children:"Email"}),r.jsx("p",{className:"text-red-600 font-medium",children:"elitec
375[email protected]"})]}),r.jsxs("a",{href:"tel:+393895112890",className:"flex flex-col items-center p-6 bg-gray-100 rounded-xl hover:bg-gray-200 transition-colors group cursor-pointer",children:[r.jsx("div",{className:"bg-white p-4 rounded-full shadow-sm mb-4 group-hover:scale-110 transition-transform",children:r.jsx(Gm,{className:"text-gray-800",size:32})}),r.jsx("h3",{className:"text-xl font-bold mb-1",children:"Telefono"}),r.jsx("p",{className:"text-gray-800 font-medium",children:"+39 389 511 2890"})]})]})]}),r.jsxs("section",{id:"forms",className:"bg-white rounded-xl shadow-lg p-8 md:p-12 relative overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 right-0 -mt-10 -mr-10 w-64 h-64 bg-red-50 rounded-full opacity-50 blur-3xl pointer-events-none"}),r.jsxs("div",{className:"relative z-10",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[r.jsx("div",{className:"w-12 h-12 bg-black rounded-full flex justify-center items-center text-white",children:r.jsx(Xf,{size:24})}),r.jsxs("div",{children:[r.jsx("h2",{className:"text-2xl font-bold",children:"Moduli Assistenza Tecnica"}),r.jsx("p",{className:"text-gray-500 text-sm",children:"Obbligatori per l'accettazione del dispositivo"})]})]}),r.jsx("div",{className:"bg-amber-50 border-l-4 border-amber-400 p-4 mb-8 rounded-r",children:r.jsxs("p",{className:"text-sm text-amber-800",children:[r.jsx("strong",{children:"Importante:"})," I moduli servono a tutelare sia il cliente sia il centro assistenza. Senza i moduli firmati non sarà possibile effettuare l’intervento tecnico."]})}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"text-lg font-bold mb-4 flex items-center gap-2",children:[r.jsx("span",{className:"bg-red-600 text-white w-6 h-6 rounded-full flex items-center justify-center text-xs",children:"1"}),"Scarica i documenti"]}),r.jsx("div",{className:"space-y-3 mb-8",children:[{name:"Modulo Accettazione.pdf",url:"/pdfs/Modulo_Accettazione.pdf"},{name:"Modulo Privacy.pdf",url:"/pdfs/Modulo_Privacy.pdf"},{name:"Modulo Responsabilita.pdf",url:"/pdfs/Modulo_Responsabilita.pdf"}].map((s,l)=>r.jsxs("a",{href:s.url,download:!0,className:"flex items-center justify-between p-4 bg-gray-50 border border-gray-200 rounded-lg hover:border-red-400 hover:bg-red-50 transition-all group",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Xf,{className:"text-gray-400 group-hover:text-red-500",size:20}),r.jsx("span",{className:"font-medium text-gray-700 group-hover:text-gray-900",children:s.name})]}),r.jsx(g6,{className:"text-gray-400 group-hover:text-red-600",size:18})]},l))})]}),r.jsxs("div",{children:[r.jsxs("h3",{className:"text-lg font-bold mb-4 flex items-center gap-2",children:[r.jsx("span",{className:"bg-red-600 text-white w-6 h-6 rounded-full flex items-center justify-center text-xs",children:"2"}),"Come firmare i moduli"]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{className:"p-4 rounded-xl border border-gray-200 bg-gray-50 hover:bg-white hover:shadow-md transition-all",children:[r.jsx(G6,{className:"text-gray-700 mb-3",size:24}),r.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Firma su Carta"}),r.jsxs("ol",{className:"list-decimal list-inside text-sm text-gray-600 space-y-1",children:[r.jsx("li",{children:"Scarica e stampa il PDF"}),r.jsx("li",{children:"Compila e firma a mano"}),r.jsx("li",{children:"Consegna al tecnico"})]})]}),r.jsxs("div",{className:"p-4 rounded-xl border border-gray-200 bg-gray-50 hover:bg-white hover:shadow-md transition-all",children:[r.jsx(Zf,{className:"text-red-600 mb-3",size:24}),r.jsx("h4",{className:"font-bold text-gray-900 mb-2",children:"Firma Digitale"}),r.jsxs("ol",{className:"list-decimal list-inside text-sm text-gray-600 space-y-1",children:[r.jsx("li",{children:"Apri con Adobe/App firma"}),r.jsx("li",{children:"Firma sul dispositivo"}),r.jsx("li",{children:"Invia a [email protected]"})]})]})]})]})]})]})]})]})]})}function aM(){N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const[t,i]=N.useState(!1),[s,l]=N.useState(!1),[c,d]=N.useState({name:"",email:"",message:"",privacy:!1}),f=g=>{const{name:b,value:v,type:S,checked:j}=g.target;d({...c,[b]:S==="checkbox"?j:v})},m=g=>{g.preventDefault(),l(!0),Pe.post("https://pcexpert.store/api/sendContact",{name:c.name,email:c.email,message:c.message}).then(()=>{i(!0),l(!1),d({name:"",email:"",message:"",privacy:!1})}).catch(()=>{l(!1)})},p={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6}}},x={hidden:{opacity:0}
375,visible:{opacity:1,transition:{staggerChildren:.2}}};return r.jsxs("main",{className:"overflow-x-hidden bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Richiedi un Preventivo – PC Expert"}),r.jsx("meta",{name:"description",content:"Richiedi un preventivo personalizzato per il tuo PC da gaming o workstation. Il team di PC Expert ti risponderà entro 24 ore."}),r.jsx("meta",{name:"keywords",content:"preventivo PC, PC su misura, configurazione gaming, workstation, PC Expert"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/richiedi"}),r.jsx("meta",{property:"og:title",content:"Richiedi un Preventivo – PC Expert"}),r.jsx("meta",{property:"og:description",content:"Richiedi un preventivo personalizzato per il tuo PC da gaming o workstation."}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/richiedi"}),r.jsx("meta",{property:"og:site_name",content:"PC Expert"})]}),r.jsx("section",{className:"relative pt-10 pb-20 overflow-hidden bg-gradient-to-br from-red-200 via-white to-red-300",children:r.jsxs("div",{className:"px-4 md:px-8 lg:px-20 xl:px-40 2xl:px-44 flex flex-col md:flex-row items-center justify-between gap-10",children:[r.jsxs(K.div,{className:"flex flex-col gap-6 w-full lg:w-2/3",initial:"hidden",animate:"visible",variants:x,children:[r.jsxs(K.h1,{variants:p,className:"text-5xl sm:text-6xl md:text-7xl font-bold leading-tight text-black uppercase",children:["PREVENTIVO ",r.jsx("br",{})," ",r.jsx("span",{className:"text-red-600",children:"PERSONALIZZATO"})]}),r.jsxs(K.p,{variants:p,className:"text-base md:text-lg text-gray-700 max-w-2xl",children:["Non trovi il prodotto che stai cercando sul nostro sito?",r.jsx("br",{}),"PC Expert ti offre la possibilità di richiedere un preventivo su misura per qualsiasi soluzione informatica, componente hardware o configurazione personalizzata.             "]}),r.jsx(K.div,{variants:p,className:"flex flex-wrap gap-4 mt-4",children:r.jsx("button",{onClick:()=>document.getElementById("quote-form").scrollIntoView({behavior:"smooth"}),className:"bg-black text-white px-8 py-3 rounded-full font-semibold hover:scale-105 transition-transform",children:"Richiedi il tuo preventivo"})})]}),r.jsx(K.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.8,delay:.2},className:"hidden lg:block relative",children:r.jsx("div",{className:"bg-white/30 backdrop-blur-md p-10 rounded-3xl border border-white shadow-xl rotate-3 hover:rotate-6 transition-transform duration-500",children:r.jsx(r6,{size:120,className:"text-red-600 opacity-80"})})})]})}),r.jsxs("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[180px] -mt-10 relative z-10 pb-20",children:[r.jsxs(K.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:p,className:"bg-white rounded-xl shadow-lg p-8 md:p-12 mb-8 border border-gray-100",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[r.jsx("div",{className:"w-12 h-12 bg-red-50 rounded-full flex justify-center items-center",children:r.jsx(C6,{className:"text-red-600",size:24})}),r.jsx("h2",{className:"text-2xl md:text-3xl font-bold",children:"Come Funziona"})]}),r.jsx("p",{className:"text-gray-600 text-lg leading-relaxed mb-6",children:"Descrivi ciò di cui hai bisogno: il nostro team analizzerà la richiesta e ti fornirà una proposta personalizzata nel più breve tempo possibile."}),r.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-green-50 text-green-700 font-medium rounded-lg border border-green-200",children:[r.jsx($s,{size:18}),"Il servizio è completamente gratuito e senza impegno."]})]}),r.jsxs(K.section,{id:"quote-form",initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8},className:"bg-white rounded-xl shadow-lg p-8 md:p-12 relative overflow-hidden border-t-4 border-red-600",children:[r.jsx("div",{className:"absolute top-0 right-0 -mt-10 -mr-10 w-64 h-64 bg-red-50 rounded-full opacity-50 blur-3xl pointer-events-none"}),r.jsx("div",{className:"relative z-10 max-w-3xl mx-auto",children:t?r.jsxs(K.div,{initial:{opacity:0,scale:.9}
375,animate:{opacity:1,scale:1},className:"text-center py-12",children:[r.jsx("div",{className:"w-24 h-24 bg-green-100 text-green-500 rounded-full flex items-center justify-center mx-auto mb-6",children:r.jsx($s,{size:50})}),r.jsx("h3",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Richiesta inviata con successo."}),r.jsx("p",{className:"text-gray-600 text-lg mb-2",children:"Grazie per aver contattato PC Expert."}),r.jsx("p",{className:"text-gray-600 text-lg",children:"Il nostro team analizzerà la tua richiesta e ti risponderà nel più breve tempo possibile con un preventivo personalizzato."}),r.jsx("button",{onClick:()=>i(!1),className:"mt-10 text-red-600 font-semibold hover:underline",children:"Invia una nuova richiesta"})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h2",{className:"text-3xl font-bold mb-4",children:"Invia la tua richiesta"}),r.jsx("p",{className:"text-gray-600 text-lg",children:"Compila il modulo qui sotto e descrivi liberamente il prodotto o la soluzione che stai cercando. Ti risponderemo rapidamente con una proposta chiara e dettagliata."})]}),r.jsxs("form",{onSubmit:m,className:"space-y-6",children:[r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Nome e Cognome *"}),r.jsx("input",{type:"text",name:"name",value:c.name,onChange:f,required:!0,placeholder:"Mario Rossi",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none transition-all"})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Email *"}),r.jsx("input",{type:"email",name:"email",value:c.email,onChange:f,required:!0,placeholder:"[email protected]",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none transition-all"})]})]}),r.jsxs("div",{className:"flex flex-col",children:[r.jsx("label",{className:"text-sm font-bold text-gray-700 mb-2 uppercase tracking-wide",children:"Messaggio *"}),r.jsx("textarea",{name:"message",value:c.message,onChange:f,required:!0,rows:"6",placeholder:"Descrivi in dettaglio cosa stai cercando (configurazione PC, componenti, budget, utilizzo, ecc.).",className:"w-full bg-gray-50 border border-gray-200 text-gray-900 text-sm rounded-lg focus:ring-red-600 focus:border-red-600 block p-4 outline-none resize-none transition-all"})]}),r.jsxs("div",{className:"flex items-start gap-3 mt-4",children:[r.jsx("div",{className:"flex items-center h-5",children:r.jsx("input",{id:"privacy",name:"privacy",type:"checkbox",required:!0,checked:c.privacy,onChange:f,className:"w-5 h-5 border border-gray-300 rounded bg-gray-50 focus:ring-3 focus:ring-red-300 accent-red-600 cursor-pointer"})}),r.jsxs("label",{htmlFor:"privacy",className:"text-sm text-gray-600 cursor-pointer",children:["Acconsento al trattamento dei miei dati personali ai sensi dell’informativa sulla privacy. ",r.jsx("span",{className:"text-red-600",children:"*"})]})]}),r.jsx("div",{className:"pt-4",children:s?r.jsxs("button",{disabled:!0,className:"w-full bg-gray-800 text-white font-bold rounded-lg px-6 py-4 flex items-center justify-center gap-2 cursor-wait opacity-80",children:[r.jsx(Uc,{className:"animate-spin",size:20}),"Invio in corso..."]}):r.jsxs(K.button,{type:"submit",whileHover:{scale:1.02,backgroundColor:"#b91c1c"},whileTap:{scale:.98},className:"w-full bg-red-600 text-white font-bold rounded-lg px-6 py-4 flex items-center justify-center gap-2 shadow-lg shadow-red-200 transition-all",children:[r.jsx($c,{size:20}),"Richiedi il tuo preventivo"]})})]})]})})]})]})]})}const xc="https://pcexpert.store/api";function sM(){var ie,re;N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const t=Mt(),[i,s]=N.useState(null),[l,c]=N.useState(null),[d,f]=N.useState(""),[m,p]=N.useState(""),[x,g]=N.useState("newest"),[b,v]=N.useState(!1),{data:S}=Rt({queryKey:["recon-brands"],queryFn:()=>fetch(`${xc}/recon-phones/brands`).then(ne=>ne.json()),staleTime:600*1e3}),{data:j}=Rt({queryKey:["recon-models",i],queryFn:()=>{const ne=i?`${xc}/recon-phones/models?brand_id=${i}`:`${xc}/recon-phones/models`;return fetch(ne).then(xe=>xe.json())},staleTime:600*1e3}),C=()=>{const ne=new URLSearchParams;return i&&ne.set("brand_id",String(i)),l&&ne.set("model_id",String(l)),d!==""&&ne.set("price_min",String(d)),m!==""&&ne.set("price_max",String(m)),ne.set("sort",x),ne.toString()},{data:E,isLoading:T,isError:_}=Rt({queryKey:["recon-phones",i,l,d,m,x],queryFn:()=>fetch(`${xc}/recon-phones?${C()}`).then(ne=>ne.json()),staleTime:300*1e3}),O=(S==null?void 0:S.brands)||[],U=(j==null?void 0:j.models)||[],Q=(E==null?void 0:E.phones)||[],ee=()=>{s(null),c(null),f(""),p(""),g("newest")},Y=ne=>{s(ne),c(null)},I=i||l||d!==""||m!=="";return r.jsxs("div",{className:"bg-gray-50 min-h-screen overflow-x-hidden",children:[r.jsxs(st,{children:[r.jsx("title",{children:"Smartphone Ricondizionati – Certificati e Garantiti | PC Expert"}),r.jsx("meta",{name:"description",content:"Acquista smartphone ricondizionati certificati su PC Expert. iPhone, Samsung e molto altro in condizioni Buono, Ottimo, Eccellente e Premium. Garanzia inclusa."}),r.jsx("meta",{name:"keywords",content:"smartphone ricondizionati, iPhone ricondizionato, Samsung ricondizionato, telefoni usati certificati, Italia"}),r.jsx("link",{rel:"canonical",href:"https://pcexpert.store/smartphones-ricondizionati"}),r.jsx("meta",{property:"og:title",content:"Smartphone Ricondizionati Certificati | PC Expert"}),r.jsx("meta",{property:"og:url",content:"https://pcexpert.store/smartphones-ricondizionati"}),r.jsx("meta",{property:"og:type",content:"website"})]}),r.jsx("div",{className:"bg-gradient-to-r from-gray-900 to-gray-800 text-white py-12 px-4 md:px-10 relative",children:r.jsxs("div",{className:"px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] mx-auto flex flex-col md:flex-row items-center gap-6",children:[r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx(Tc,{className:"text-red-500",size:28}),r.jsx("span",{className:"text-red-500 font-semibold text-sm uppercase tracking-widest",children:"Ricondizionati"})]}),r.jsx("h1",{className:"text-3xl md:text-4xl font-bold mb-3",children:"Smartphone Ricondizionati"}),r.jsx("p",{className:"text-gray-300 text-base md:text-lg max-w-xl",children:"Dispositivi selezionati, testati e certificati. Risparmia senza rinunciare alla qualità — con garanzia inclusa."}),r.jsx("div",{className:"flex flex-col items-start md:flex-row md:flex-wrap gap-3 mt-5",children:["Testati e Certificati","Garanzia Inclusa","Risparmia fino al 50%"].map(ne=>r.jsxs("span",{className:"flex items-center gap-1.5 bg-white/10 border border-white/20 rounded-full px-3 py-1 text-sm",children:[r.jsx(ul,{size:12,className:"text-red-400 fill-red-400"})," ",ne]},ne))})]}),r.jsx("img",{src:"../imgs/phone.png",alt:"Smartphone Ricondizionato",className:"w-36 md:w-64 absolute bottom-0 right-0 md:right-14 2xl
375:right-40"})]})}),r.jsxs("div",{className:" mx-auto px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] py-8",children:[r.jsxs("div",{className:"bg-white rounded-xl shadow-sm p-4 mb-6 flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-10 h-10 bg-red-50 rounded-full flex items-center justify-center",children:r.jsx(Tc,{size:20,color:"#dc2626"})}),r.jsxs("div",{children:[r.jsxs("p",{className:"font-bold text-gray-900 text-sm",children:[i?(ie=O.find(ne=>ne.id===i))==null?void 0:ie.name:"Tutti i Brand",l&&r.jsxs("span",{className:"text-gray-500 font-normal",children:[" › ",(re=U.find(ne=>ne.id===l))==null?void 0:re.name]})]}),r.jsxs("p",{className:"text-xs text-gray-500",children:[(E==null?void 0:E.total)??0," prodotti trovati"]})]})]}),r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[I&&r.jsxs("button",{onClick:ee,className:"flex items-center gap-1 text-sm text-red-600 font-semibold hover:text-red-700",children:[r.jsx(vl,{size:14})," Cancella filtri"]}),r.jsxs("button",{onClick:()=>v(ne=>!ne),className:"flex items-center gap-2 px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-lg text-sm font-semibold text-gray-700",children:[r.jsx(Qj,{size:16})," Filtri"]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{value:x,onChange:ne=>g(ne.target.value),className:"px-4 py-2 bg-red-600 text-white font-semibold rounded-lg appearance-none pr-10 cursor-pointer text-sm",children:[r.jsx("option",{value:"newest",children:"Più recente"}),r.jsx("option",{value:"price-low",children:"Prezzo: crescente"}),r.jsx("option",{value:"price-high",children:"Prezzo: decrescente"})]}),r.jsx(yl,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-white"})]})]})]}),b&&r.jsx(K.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-white rounded-xl shadow-sm p-6 mb-6",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-gray-900 mb-3 text-sm",children:"Brand"}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[r.jsx("button",{onClick:()=>Y(null),className:`px-3 py-1.5 rounded-lg text-sm font-medium border transition-colors ${i?"bg-white text-gray-700 border-gray-200 hover:border-red-300":"bg-red-600 text-white border-red-600"}`,children:"Tutti"}),O.map(ne=>r.jsx("button",{onClick:()=>Y(ne.id),className:`px-3 py-1.5 rounded-lg text-sm font-medium border transition-colors ${i===ne.id?"bg-red-600 text-white border-red-600":"bg-white text-gray-700 border-gray-200 hover:border-red-300"}`,children:ne.name},ne.id))]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-gray-900 mb-3 text-sm",children:"Modello"}),U.length===0?r.jsx("p",{className:"text-xs text-gray-400",children:"Seleziona un brand per filtrare il modello"}):r.jsxs("div",{className:"flex flex-wrap gap-2 max-h-32 overflow-y-auto pr-1 custom-scrollbar",children:[r.jsx("button",{onClick:()=>c(null),className:`px-3 py-1.5 rounded-lg text-sm font-medium border transition-colors ${l?"bg-white text-gray-700 border-gray-200 hover:border-red-300":"bg-red-600 text-white border-red-600"}`,children:"Tutti"}),U.map(ne=>r.jsx("button",{onClick:()=>c(ne.id),className:`px-3 py-1.5 rounded-lg text-sm font-medium border transition-colors ${l===ne.id?"bg-red-600 text-white border-red-600":"bg-white text-gray-700 border-gray-200 hover:border-red-300"}`,children:ne.name},ne.id))]})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-semibold text-gray-900 mb-3 text-sm",children:"Prezzo (€)"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"number",placeholder:"Min",value:d,onChange:ne=>f(ne.target.value===""?"":Number(ne.target.value)),className:"w-full px-3 py-2 border border-gray-200 rounded-lg text-sm focus:ring-2 focus:ring-red-500 focus:border-transparent",min:"0"}),r.jsx("span",{className:"text-gray-400",children:"—"}),r.jsx("input",{type:"number",placeholder:"Max",value:m,onChange:ne=>p(ne.target.value===""?"":Number(ne.target.value)),className:"w-full px-3 py-2 border border-gray-200 rounded-lg text-sm focus:ring-2 focus:ring-red-500 focus:border-transparent",min:"0"})]})]})]})}),T&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent roun
375ded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento..."})]}),_&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx("p",{className:"text-red-600 text-lg mb-4",children:"Errore nel caricamento dei prodotti"}),r.jsx("button",{onClick:()=>window.location.reload(),className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700",children:"Riprova"})]}),!T&&!_&&Q.length===0&&r.jsxs("div",{className:"text-center py-20",children:[r.jsx(Tc,{size:60,className:"mx-auto text-gray-200 mb-4"}),r.jsx("p",{className:"text-gray-600 text-lg mb-4",children:"Nessun prodotto trovato"}),r.jsx("button",{onClick:ee,className:"px-6 py-2 bg-red-600 text-white rounded-lg font-semibold hover:bg-red-700",children:"Cancella filtri"})]}),!T&&r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-5",children:Q.map(ne=>r.jsx(rM,{phone:ne,onClick:()=>t(`/smartphones-ricondizionati/${ne.id}`)},ne.id))})]})]})}function rM({phone:t,onClick:i}){return r.jsxs(K.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},onClick:i,className:"bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-200 p-4 flex flex-col cursor-pointer group border border-transparent hover:border-red-100",children:[r.jsxs("div",{className:"relative bg-gray-50 rounded-lg mb-3 overflow-hidden h-48 flex items-center justify-center",children:[t.main_img?r.jsx("img",{src:t.main_img,alt:t.title,className:"w-full h-full object-contain group-hover:scale-105 transition-transform duration-300"}):r.jsx(Tc,{size:64,className:"text-gray-200"}),r.jsx("span",{className:"absolute top-2 left-2 bg-red-600 text-white text-xs font-bold px-2 py-0.5 rounded-full",children:"Ricondizionato"}),!t.in_stock&&r.jsx("div",{className:"absolute inset-0 bg-white/60 flex items-center justify-center",children:r.jsx("span",{className:"bg-gray-800 text-white text-xs font-semibold px-3 py-1 rounded-full",children:"Esaurito"})})]}),t.brand_name&&r.jsxs("p",{className:"text-xs text-gray-400 font-medium mb-1",children:[t.brand_name," · ",t.model_name]}),r.jsx("h3",{className:"text-sm font-semibold text-gray-900 line-clamp-2 mb-3 flex-grow",children:t.title}),r.jsxs("div",{className:"mt-auto",children:[t.cheapest_price!=null?r.jsxs("p",{className:"text-red-600 font-bold text-xl",children:["da ",t.cheapest_price.toFixed(2),"€"]}):r.jsx("p",{className:"text-gray-400 text-sm",children:"Prezzo non disponibile"}),r.jsxs("p",{className:"text-xs text-gray-400 mt-0.5",children:[t.conditions_count," ",t.conditions_count===1?"condizione":"condizioni"," disponibili"]})]})]})}const lM="https://pcexpert.store/api",Sv=["Buono","Ottimo","Eccellente","Premium"],oM={Buono:{label:"Buono",desc:"Funziona perfettamente. Segni d'uso visibili.",accent:"text-green-700",border:"border-green-400",bg:"bg-green-50",dot:"bg-green-500"},Ottimo:{label:"Ottimo",desc:"Usato raramente. Segni minimi quasi impercettibili.",accent:"text-blue-700",border:"border-blue-400",bg:"bg-blue-50",dot:"bg-blue-500"},Eccellente:{label:"Eccellente",desc:"Come nuovo. Nessun segno d'uso apprezzabile.",accent:"text-purple-700",border:"border-purple-400",bg:"bg-purple-50",dot:"bg-purple-500"},Premium:{label:"Premium",desc:"Pari al nuovo. Completato da accessori originali.",accent:"text-amber-700",border:"border-amber-400",bg:"bg-amber-50",dot:"bg-amber-500"}};function cM(){var Ce;const{id:t}=im(),i=Mt(),{addToCart:s,cartItems:l}=Hl(),[c,d]=N.useState(0),[f,m]=N.useState(null),[p,x]=N.useState(null),[g,b]=N.useState(null),[v,S]=N.useState(!1);N.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]);const{data:j,isLoading:C,isError:E}=Rt({queryKey:["recon-phone",t],queryFn:()=>fetch(`${lM}/recon-phones/${t}`).then(ae=>ae.json()),staleTime:300*1e3});if(N.useEffect(()=>{if(!j)return;const ae=Sv.map(q=>j.conditions.find(D=>D.condition_name===q)).filter(Boolean);ae.length>0&&!f&&m(ae[0]),j.colors.length>0&&!p&&x(j.colors[0]),j.storages.length>0&&!g&&b(j.storages[0])},[j]),C)return r.jsxs(r.Fragment,{children:[r.jsx(st,{children:r.jsx("title",{children:"Caricamento... | PC Expert"})}),r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsxs("div",{className:"text-center py-20",children:[r.jsx("div",{className:"inline-block w-10 h-10 border-4 border-red-600 border-t-transparent roun
375ded-full animate-spin"}),r.jsx("p",{className:"text-gray-600 mt-3 font-semibold",children:"Caricamento..."})]})})]});if(E||!j)return r.jsxs(r.Fragment,{children:[r.jsx(st,{children:r.jsx("title",{children:"Prodotto non trovato | PC Expert"})}),r.jsx("div",{className:"min-h-screen flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-red-600 text-lg mb-4",children:"Prodotto non trovato"}),r.jsx("button",{onClick:()=>i("/smartphones-ricondizionati"),className:"bg-red-600 text-white px-6 py-2 rounded-lg hover:bg-red-700",children:"Torna ai ricondizionati"})]})})]});const T=Array.isArray(j.gallery_imgs)?j.gallery_imgs:[],_=j.main_img?[j.main_img,...T.filter(ae=>ae!==j.main_img)]:T,O=Sv.map(ae=>j.conditions.find(q=>q.condition_name===ae)).filter(Boolean),U=((f==null?void 0:f.base_price)??0)+((p==null?void 0:p.price_add)??0)+((g==null?void 0:g.price_add)??0),Q=(()=>{if(!f)return 0;if(j!=null&&j.variants&&j.variants.length>0){const ae=j.variants.find(q=>q.condition_id===f.id&&(q.color_id??null)===((p==null?void 0:p.id)??null)&&(q.storage_id??null)===((g==null?void 0:g.id)??null));return(ae==null?void 0:ae.stock)??0}return f.stock??0})(),ee=Q===0,Y=j?`recon_${j.id}_${(f==null?void 0:f.id)??0}_${(p==null?void 0:p.id)??0}_${(g==null?void 0:g.id)??0}`:null,I=Y?((Ce=l.find(ae=>ae.id===Y))==null?void 0:Ce.quantity)??0:0,ie=!ee&&f&&I>=Q,re=()=>{if(!f||ie)return;const ae={id:Y,title:[j.title,f.condition_name,g==null?void 0:g.storage_label,p==null?void 0:p.color_name].filter(Boolean).join(" · "),price:U,weight:j.weight,mainImg:j.main_img,stock:Q,type:"recon",phone_id:j.id,condition_id:f.id,color_id:(p==null?void 0:p.id)??null,storage_id:(g==null?void 0:g.id)??null};s(ae,1),S(!0),setTimeout(()=>S(!1),2500)},ne=()=>d(ae=>ae>0?ae-1:_.length-1),xe=()=>d(ae=>ae<_.length-1?ae+1:0);return r.jsxs("div",{className:"bg-gray-50 min-h-screen",children:[r.jsxs(st,{children:[r.jsx("title",{children:j.title?`${j.title} Ricondizionato | PC Expert`:"Prodotto Ricondizionato | PC Expert"}),r.jsx("meta",{name:"description",content:`Acquista ${j.title?j.title:"questo prodotto"} ricondizionato certificato. Disponibile nelle condizioni Buono, Ottimo, Eccellente e Premium con garanzia inclusa.`}),r.jsx("link",{rel:"canonical",href:`https://pcexpert.store/smartphones-ricondizionati/${j.id}`})]}),r.jsxs("div",{className:" mx-auto px-4 md:px-[8px] lg:px-[20px] xl:px-[40px] 2xl:px-[80px] lg:px-10 py-6",children:[r.jsxs("button",{onClick:()=>i("/smartphones-ricondizionati"),className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-red-600 mb-6 transition-colors",children:[r.jsx(kc,{size:16})," Smartphone Ricondizionati"]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 xl:gap-12",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-4 mb-3 relative overflow-hidden aspect-square lg:aspect-auto lg:h-[420px]",children:[_.length>0?r.jsx("img",{src:_[c],alt:j.title,className:"w-full h-full object-contain"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-50 rounded-xl",children:r.jsx("span",{className:"text-gray-300 text-4xl",children:"📱"})}),_.length>1&&r.jsxs(r.Fragment,{children:[r.jsx("button",{onClick:ne,className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-white rounded-full shadow-md flex items-center justify-center hover:shadow-lg transition",children:r.jsx(kc,{size:18,className:"text-gray-700"})}),r.jsx("button",{onClick:xe,className:"absolute right-3 top-1/2 -translate-y-1/2 w-8 h-8 bg-white rounded-full shadow-md flex items-center justify-center hover:shadow-lg transition",children:r.jsx(Yi,{size:18,className:"text-gray-700"})})]})]}),_.length>1&&r.jsx("div",{className:"flex gap-2 overflow-x-auto pb-1 custom-scrollbar",children:_.map((ae,q)=>r.jsx("button",{onClick:()=>d(q),className:`flex-shrink-0 w-14 h-14 rounded-lg overflow-hidden border-2 transition-colors ${c===q?"border-red-600":"border-gray-200 hover:border-gray-300"}`,children:r.jsx("img",{src:ae,alt:"",className:"w-full h-full object-contain"})},q))})]}),r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsxs("div",{children:[j.brand_name&&r.jsxs("p",{className:"text-xs text-gray-400 font-medium uppercase tracking-widest mb-1",children:[j.brand_name," · ",j.model_name]}),r.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-gray-900 mb-1",children:j.title}),r.jsx("span",{className:"inline-block bg-red-50 text-red-700 text-xs font-semibold px-2.5 py-0.5 rounded-full border border-red-100",children:"Ricondizionato Certificato"})]}),r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-5",children:[r.jsx("p",{className:"text-sm text-gray-500 mb-1",children:"Prezzo totale"}),r.jsxs("div",{className:"flex items-baseline gap-3",children:[r.jsxs("span",{className:"text-4xl font-bold text-red-600",children:[U.toFixed(2),"€"]}),r.jsx("span",{className:"text-sm text-gray-400",children:"IVA inclusa"})]}),f&&r.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Base: ",f.base_price.toFixed(2),"€",p&&p.price_add>0&&` + colore: +${p.price_add.toFixed(2)}€`,g&&g.price_add>0&&` + storage: +${g.price_add.toFixed(2)}€`]})]}),r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-5",children:[r.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Condizione"}),r.jsx("div",{className:"grid grid-cols-2 gap-3",children:O.map(ae=>{const q=oM[ae.condition_name]??{label:ae.condition_name,desc:"",accent:"text-gray-700",border:"border-gray-300",bg:"bg-gray-50",dot:"bg-gray-400"},D=(f==null?void 0:f.id)===ae.id,J=j.variants&&j.variants.length>0?j.variants.filter(ge=>ge.condition_id===ae.id).reduce((ge,te)=>ge+te.stock,0):ae.stock,se=J===0;return r.jsxs("button",{onClick:()=>!se&&m(ae),disabled:se,className:`relative rounded-xl border-2 p-3 text-left transition-all duration-150 ${se?"opacity-50 cursor-not-allowed border-gray-200 bg-gray-50":D?`${q.border} ${q.bg} shadow-sm`:"border-gray-200 bg-white hover:border-gray-300"}`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${q.dot}`}),r.jsx("span",{className:`font-semibold text-sm ${D?q.accent:"text-gray-800"}`,children:q.label}),D&&r.jsx(cl,{size:13,className:`ml-auto ${q.accent}`})]}),r.jsx("p",{className:"text-xs text-gray-500 leading-snug mb-2",children:q.desc}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("span",{className:`font-bold text-sm ${D?q.accent:"text-gray-700"}`,children:[ae.base_price.toFixed(2),"€"]}),r.jsx("span",{className:`text-xs font-medium px-1.5 py-0.5 rounded-full ${se?"bg-gray-100 text-gray-500":"bg-green-100 text-green-700"}`,children:se?"Esaurito":`${J} disp.`})]})]},ae.id)})})]}),j.storages.length>0&&r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-5",children:[r.jsx("h3",{className:"font-semibold text-gray-900 mb-3",children:"Storage"}),r.jsx("div",{className:"flex flex-wrap gap-2",children:j.storages.map(ae=>{const q=(g==null?void 0:g.id)===ae.id,D=!j.variants||j.variants.length===0||j.variants.some(J=>J.condition_id===(f==null?void 0:f.id)&&J.storage_id===ae.id&&J.stock>0);return r.jsxs("button",{onClick:()=>D&&b(ae),disabled:!D,className:`px-4 py-2 rounded-lg border-2 text-sm font-semibold transition-all duration-150 ${D?q?"border-red-600 bg-red-600 text-white shadow-sm":"border-gray-200 bg-white text-gray-700 hover:border-red-300":"opacity-40 cursor-not-allowed border-gray-200 bg-gray-50 text-gray-400 line-through"}`,children:[ae.storage_label,ae.price_add>0&&r.jsxs("span",{className:`ml-1.5 text-xs font-normal ${q?"text-red-100":"text-gray-400"}`,children:["+",ae.price_add.toFixed(2),"€"]})]},ae.id)})})]}),j.colors.length>0&&r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-5",children:[r.jsxs("h3",{className:"font-semibold text-gray-900 mb-1",children:["Colore",p&&r.jsxs("span",{className:"ml-2 text-sm font-normal text-gray-500",children:["— ",p.color_name,p.price_add>0&&` (+${p.price_add.toFixed(2)}€)`]})]}),r.jsx("div",{className:"flex flex-wrap gap-3 mt-3",children:j.colors.map(ae=>{const q=(p==null?void 0:p.id)===ae.id,D=!j.variants||j.variants.length===0||j.variants.some(J=>J.condition_id===(f==null?void 0:f.id)&&J.color_id===ae.id&&J.stock>0);return r.jsx("button",{onClick:()=>D&&x(ae),disabled:!D,title:`${ae.color_name}${ae.price_add>0?` (+${ae.price_add.toFixed(2)}€)`:""}${D?"":" — Esaurito"}`,className:`group relative w-9 h-9 rounded-full border-4 transition-all duration-150 flex items-center justify-center ${D?q?"border-red-600 scale-110":"border-gray-200 hover:border-gray-400":"opacity-30 curs
375or-not-allowed border-gray-200"}`,style:{backgroundColor:ae.color_hex},children:q&&r.jsx(cl,{size:14,className:parseInt(ae.color_hex.slice(1),16)>8947848?"text-gray-800":"text-white"})},ae.id)})})]}),r.jsxs("div",{className:"flex flex-col gap-3",children:[ee&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-700 bg-amber-50 border border-amber-200 rounded-xl px-4 py-3 text-sm",children:[r.jsx(Oh,{size:16,className:"flex-shrink-0"}),r.jsx("span",{children:"Questa combinazione non è disponibile. Prova un altro colore o storage."})]}),ie&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-700 bg-amber-50 border border-amber-200 rounded-xl px-4 py-3 text-sm",children:[r.jsx(Oh,{size:16,className:"flex-shrink-0"}),r.jsxs("span",{children:["Hai già ",I," ","unità"," nel carrello — corrisponde allo stock disponibile."]})]}),r.jsx(en,{mode:"wait",children:v?r.jsxs(K.button,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"w-full py-4 bg-green-600 text-white font-bold text-lg rounded-xl flex items-center justify-center gap-2",children:[r.jsx(cl,{size:20})," Aggiunto al carrello!"]},"added"):r.jsxs(K.button,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},onClick:re,disabled:ee||!f||!!ie,className:`w-full py-4 font-bold text-lg rounded-xl flex items-center justify-center gap-2 transition-colors ${ee||!f||ie?"bg-gray-200 text-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 text-white shadow-md hover:shadow-lg"}`,children:[r.jsx(bl,{size:22})," Aggiungi al carrello"]},"add")})]}),r.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{icon:r.jsx($j,{size:18,className:"text-red-600"}),title:"Spedizione rapida",sub:"Consegna in 1–3 gg"},{icon:r.jsx(Ij,{size:18,className:"text-red-600"}),title:"Garanzia inclusa",sub:"12 mesi di copertura"},{icon:r.jsx(Gj,{size:18,className:"text-red-600"}),title:"Reso gratuito",sub:"Entro 14 giorni"}].map(({icon:ae,title:q,sub:D})=>r.jsxs("div",{className:"bg-white rounded-xl shadow-sm p-3 flex flex-col items-center text-center",children:[r.jsx("div",{className:"mb-1",children:ae}),r.jsx("p",{className:"font-semibold text-xs text-gray-900",children:q}),r.jsx("p",{className:"text-xs text-gray-500",children:D})]},q))}),j.description&&r.jsxs("div",{className:"bg-white rounded-2xl shadow-sm p-5",children:[r.jsx("h3",{className:"font-semibold text-gray-900 mb-2",children:"Descrizione"}),r.jsx("p",{className:"text-gray-600 text-sm leading-relaxed whitespace-pre-line",children:j.description})]})]})]})]})]})}function uM(){const{id:t}=im(),i=Mt();return N.useEffect(()=>{if(!t){i("/products",{replace:!0});return}i(`/product/prodotto/${t}`,{replace:!0})},[t,i]),r.jsx("div",{className:"min-h-[40vh] flex items-center justify-center",children:r.jsx("p",{className:"text-gray-600 font-semibold",children:"Reindirizzamento al prodotto..."})})}const dM=new HR;function fM(){return r.jsx(FR,{client:dM,children:r.jsx(U5,{api:"https://pcexpert.store/api",children:r.jsx(P5,{children:r.jsx(aC,{children:r.jsxs("div",{className:"min-h-screen bg-white",children:[r.jsx(V5,{}),r.jsx(eM,{}),r.jsx("main",{children:r.jsxs(DT,{children:[r.jsx(nt,{path:"/",element:r.jsx(_5,{})}),r.jsx(nt,{path:"/faq",element:r.jsx(nM,{})}),r.jsx(nt,{path:"/products",element:r.jsx(B5,{})}),r.jsx(nt,{path:"/about",element:r.jsx(H5,{})}),r.jsx(nt,{path:"/contact",element:r.jsx(F5,{})}),r.jsx(nt,{path:"/product/:title/:id",element:r.jsx(G5,{})}),r.jsx(nt,{path:"/product/redirect/:id",element:r.jsx(uM,{})}),r.jsx(nt,{path:"/cart",element:r.jsx(I5,{})}),r.jsx(nt,{path:"/cookiePolicy",element:r.jsx(Q5,{})}),r.jsx(nt,{path:"/politica-di-rimborso",element:r.jsx($5,{})}),r.jsx(nt,{path:"/politica-sulla-privacy-gdpr",element:r.jsx(Y5,{})}),r.jsx(nt,{path:"/attestato-di-iscrizione-al-registro-nazionale-a-e-e",element:r.jsx(K5,{})}),r.jsx(nt,{path:"/condizioni-di-vendita",element:r.jsx(X5,{})}),r.jsx(nt,{path:"/spedizione",element:r.jsx(Z5,{})}),r.jsx(nt,{path:"/track-order",element:r.jsx(J5,{})}),r.jsx(nt,{path:"/success",element:r.jsx(tM,{})}),r.jsx(nt,{path:"/riparazioni",element:r.jsx(iM,{})}),r.jsx(nt,{path:"/richiedi",element:r.jsx(aM,{})}),r.jsx(nt,{path:"/smartphones-ricondizionati",element:r.jsx(sM,{})}),r.jsx(nt,{path:"/smartphones-ricondizionati/:id",element:r.jsx(cM,{})})]})}),r.jsx(W5,{}),r.jsx(q5,{})]})})})})})}cS.createRoot(document.getElementById("root")).render(r.jsx(N.StrictMode,{children:r.jsx(Hv,{children:r.jsx(fM,{})})}));

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.