Files
frontend/dist/assets/index-CvjPBUMw.js
2026-06-17 18:10:23 +03:00

162 lines
626 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Pm=a=>{throw TypeError(a)};var wd=(a,i,c)=>i.has(a)||Pm("Cannot "+c);var E=(a,i,c)=>(wd(a,i,"read from private field"),c?c.call(a):i.get(a)),oe=(a,i,c)=>i.has(a)?Pm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,c),J=(a,i,c,r)=>(wd(a,i,"write to private field"),r?r.call(a,c):i.set(a,c),c),we=(a,i,c)=>(wd(a,i,"access private method"),c);var Ro=(a,i,c,r)=>({set _(d){J(a,i,d,c)},get _(){return E(a,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function c(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=c(d);fetch(d.href,f)}})();function C3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Cd={exports:{}},Bc={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Im;function Sy(){if(Im)return Bc;Im=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,d,f){var h=null;if(f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),"key"in d){f={};for(var g in d)g!=="key"&&(f[g]=d[g])}else f=d;return d=f.ref,{$$typeof:a,type:r,key:h,ref:d!==void 0?d:null,props:f}}return Bc.Fragment=i,Bc.jsx=c,Bc.jsxs=c,Bc}var Ym;function Ny(){return Ym||(Ym=1,Cd.exports=Sy()),Cd.exports}var s=Ny(),Td={exports:{}},be={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Xm;function wy(){if(Xm)return be;Xm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,C={};function A(R,G,Z){this.props=R,this.context=G,this.refs=C,this.updater=Z||S}A.prototype.isReactComponent={},A.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,G,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function z(){}z.prototype=A.prototype;function M(R,G,Z){this.props=R,this.context=G,this.refs=C,this.updater=Z||S}var U=M.prototype=new z;U.constructor=M,w(U,A.prototype),U.isPureReactComponent=!0;var I=Array.isArray;function K(){}var B={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function ne(R,G,Z){var te=Z.ref;return{$$typeof:a,type:R,key:G,ref:te!==void 0?te:null,props:Z}}function ce(R,G){return ne(R.type,G,R.props)}function ue(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function he(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return G[Z]})}var ae=/\/+/g;function pe(R,G){return typeof R=="object"&&R!==null&&R.key!=null?he(""+R.key):G.toString(36)}function re(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(K,K):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,G,Z,te,ye){var Se=typeof R;(Se==="undefined"||Se==="boolean")&&(R=null);var Be=!1;if(R===null)Be=!0;else switch(Se){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(R.$$typeof){case a:case i:Be=!0;break;case v:return Be=R._init,q(Be(R._payload),G,Z,te,ye)}}if(Be)return ye=ye(R),Be=te===""?"."+pe(R,0):te,I(ye)?(Z="",Be!=null&&(Z=Be.replace(ae,"$&/")+"/"),q(ye,G,Z,"",function(us){return us})):ye!=null&&(ue(ye)&&(ye=ce(ye,Z+(ye.key==null||R&&R.key===ye.key?"":(""+ye.key).replace(ae,"$&/")+"/")+Be)),G.push(ye)),1;Be=0;var At=te===""?".":te+":";if(I(R))for(var st=0;st<R.length;st++)te=R[st],Se=At+pe(te,st),Be+=q(te,G,Z,Se,ye);else if(st=N(R),typeof st=="function")for(R=st.call(R),st=0;!(te=R.next()).done;)te=te.value,Se=At+pe(te,st++),Be+=q(te,G,Z,Se,ye);else if(Se==="object"){if(typeof R.then=="function")return q(re(R),G,Z,te,ye);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Be}function Y(R,G,Z){if(R==null)return R;var te=[],ye=0;return q(R,te,"","",function(Se){return G.call(Z,Se,ye++)}),te}function ie(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var Te=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},_e={map:Y,forEach:function(R,G,Z){Y(R,function(){G.apply(this,arguments)},Z)},count:function(R){var G=0;return Y(R,function(){G++}),G},toArray:function(R){return Y(R,function(G){return G})||[]},only:function(R){if(!ue(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return be.Activity=y,be.Children=_e,be.Component=A,be.Fragment=c,be.Profiler=d,be.PureComponent=M,be.StrictMode=r,be.Suspense=m,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,be.__COMPILER_RUNTIME={__proto__:null,c:function(R){return B.H.useMemoCache(R)}},be.cache=function(R){return function(){return R.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(R,G,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var te=w({},R.props),ye=R.key;if(G!=null)for(Se in G.key!==void 0&&(ye=""+G.key),G)!P.call(G,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&G.ref===void 0||(te[Se]=G[Se]);var Se=arguments.length-2;if(Se===1)te.children=Z;else if(1<Se){for(var Be=Array(Se),At=0;At<Se;At++)Be[At]=arguments[At+2];te.children=Be}return ne(R.type,ye,te)},be.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},be.createElement=function(R,G,Z){var te,ye={},Se=null;if(G!=null)for(te in G.key!==void 0&&(Se=""+G.key),G)P.call(G,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ye[te]=G[te]);var Be=arguments.length-2;if(Be===1)ye.children=Z;else if(1<Be){for(var At=Array(Be),st=0;st<Be;st++)At[st]=arguments[st+2];ye.children=At}if(R&&R.defaultProps)for(te in Be=R.defaultProps,Be)ye[te]===void 0&&(ye[te]=Be[te]);return ne(R,Se,ye)},be.createRef=function(){return{current:null}},be.forwardRef=function(R){return{$$typeof:g,render:R}},be.isValidElement=ue,be.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:ie}},be.memo=function(R,G){return{$$typeof:p,type:R,compare:G===void 0?null:G}},be.startTransition=function(R){var G=B.T,Z={};B.T=Z;try{var te=R(),ye=B.S;ye!==null&&ye(Z,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(K,Te)}catch(Se){Te(Se)}finally{G!==null&&Z.types!==null&&(G.types=Z.types),B.T=G}},be.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},be.use=function(R){return B.H.use(R)},be.useActionState=function(R,G,Z){return B.H.useActionState(R,G,Z)},be.useCallback=function(R,G){return B.H.useCallback(R,G)},be.useContext=function(R){return B.H.useContext(R)},be.useDebugValue=function(){},be.useDeferredValue=function(R,G){return B.H.useDeferredValue(R,G)},be.useEffect=function(R,G){return B.H.useEffect(R,G)},be.useEffectEvent=function(R){return B.H.useEffectEvent(R)},be.useId=function(){return B.H.useId()},be.useImperativeHandle=function(R,G,Z){return B.H.useImperativeHandle(R,G,Z)},be.useInsertionEffect=function(R,G){return B.H.useInsertionEffect(R,G)},be.useLayoutEffect=function(R,G){return B.H.useLayoutEffect(R,G)},be.useMemo=function(R,G){return B.H.useMemo(R,G)},be.useOptimistic=function(R,G){return B.H.useOptimistic(R,G)},be.useReducer=function(R,G,Z){return B.H.useReducer(R,G,Z)},be.useRef=function(R){return B.H.useRef(R)},be.useState=function(R){return B.H.useState(R)},be.useSyncExternalStore=function(R,G,Z){return B.H.useSyncExternalStore(R,G,Z)},be.useTransition=function(){return B.H.useTransition()},be.version="19.2.5",be}var Km;function N2(){return Km||(Km=1,Td.exports=wy()),Td.exports}var j=N2();const Mt=C3(j);var Ed={exports:{}},$c={},Rd={exports:{}},Ad={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Zm;function Cy(){return Zm||(Zm=1,(function(a){function i(q,Y){var ie=q.length;q.push(Y);e:for(;0<ie;){var Te=ie-1>>>1,_e=q[Te];if(0<d(_e,Y))q[Te]=Y,q[ie]=_e,ie=Te;else break e}}function c(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var Y=q[0],ie=q.pop();if(ie!==Y){q[0]=ie;e:for(var Te=0,_e=q.length,R=_e>>>1;Te<R;){var G=2*(Te+1)-1,Z=q[G],te=G+1,ye=q[te];if(0>d(Z,ie))te<_e&&0>d(ye,Z)?(q[Te]=ye,q[te]=ie,Te=te):(q[Te]=Z,q[G]=ie,Te=G);else if(te<_e&&0>d(ye,ie))q[Te]=ye,q[te]=ie,Te=te;else break e}}return Y}function d(q,Y){var ie=q.sortIndex-Y.sortIndex;return ie!==0?ie:q.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();a.unstable_now=function(){return h.now()-g}}var m=[],p=[],v=1,y=null,b=3,N=!1,S=!1,w=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function U(q){for(var Y=c(p);Y!==null;){if(Y.callback===null)r(p);else if(Y.startTime<=q)r(p),Y.sortIndex=Y.expirationTime,i(m,Y);else break;Y=c(p)}}function I(q){if(w=!1,U(q),!S)if(c(m)!==null)S=!0,K||(K=!0,he());else{var Y=c(p);Y!==null&&re(I,Y.startTime-q)}}var K=!1,B=-1,P=5,ne=-1;function ce(){return C?!0:!(a.unstable_now()-ne<P)}function ue(){if(C=!1,K){var q=a.unstable_now();ne=q;var Y=!0;try{e:{S=!1,w&&(w=!1,z(B),B=-1),N=!0;var ie=b;try{t:{for(U(q),y=c(m);y!==null&&!(y.expirationTime>q&&ce());){var Te=y.callback;if(typeof Te=="function"){y.callback=null,b=y.priorityLevel;var _e=Te(y.expirationTime<=q);if(q=a.unstable_now(),typeof _e=="function"){y.callback=_e,U(q),Y=!0;break t}y===c(m)&&r(m),U(q)}else r(m);y=c(m)}if(y!==null)Y=!0;else{var R=c(p);R!==null&&re(I,R.startTime-q),Y=!1}}break e}finally{y=null,b=ie,N=!1}Y=void 0}}finally{Y?he():K=!1}}}var he;if(typeof M=="function")he=function(){M(ue)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,pe=ae.port2;ae.port1.onmessage=ue,he=function(){pe.postMessage(null)}}else he=function(){A(ue,0)};function re(q,Y){B=A(function(){q(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(q){q.callback=null},a.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(q){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var ie=b;b=Y;try{return q()}finally{b=ie}},a.unstable_requestPaint=function(){C=!0},a.unstable_runWithPriority=function(q,Y){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ie=b;b=q;try{return Y()}finally{b=ie}},a.unstable_scheduleCallback=function(q,Y,ie){var Te=a.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Te+ie:Te):ie=Te,q){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ie+_e,q={id:v++,callback:Y,priorityLevel:q,startTime:ie,expirationTime:_e,sortIndex:-1},ie>Te?(q.sortIndex=ie,i(p,q),c(m)===null&&q===c(p)&&(w?(z(B),B=-1):w=!0,re(I,ie-Te))):(q.sortIndex=_e,i(m,q),S||N||(S=!0,K||(K=!0,he()))),q},a.unstable_shouldYield=ce,a.unstable_wrapCallback=function(q){var Y=b;return function(){var ie=b;b=Y;try{return q.apply(this,arguments)}finally{b=ie}}}})(Ad)),Ad}var Wm;function Ty(){return Wm||(Wm=1,Rd.exports=Cy()),Rd.exports}var Ld={exports:{}},Yt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jm;function Ey(){if(Jm)return Yt;Jm=1;var a=N2();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(m,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:m,containerInfo:p,implementation:v}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Yt.createPortal=function(m,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(m,p,null,v)},Yt.flushSync=function(m){var p=h.T,v=r.p;try{if(h.T=null,r.p=2,m)return m()}finally{h.T=p,r.p=v,r.d.f()}},Yt.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},Yt.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},Yt.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var v=p.as,y=g(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:N}):v==="script"&&r.d.X(m,{crossOrigin:y,integrity:b,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Yt.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},Yt.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=g(v,p.crossOrigin);r.d.L(m,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Yt.preloadModule=function(m,p){if(typeof m=="string")if(p){var v=g(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},Yt.requestFormReset=function(m){r.d.r(m)},Yt.unstable_batchedUpdates=function(m,p){return m(p)},Yt.useFormState=function(m,p,v){return h.H.useFormState(m,p,v)},Yt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Yt.version="19.2.5",Yt}var ep;function Ry(){if(ep)return Ld.exports;ep=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ld.exports=Ey(),Ld.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var tp;function Ay(){if(tp)return $c;tp=1;var a=Ty(),i=N2(),c=Ry();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(l=o.return,l!==null){n=l;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return m(o),e;if(u===l)return m(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=o,l=u;else{for(var _=!1,x=o.child;x;){if(x===n){_=!0,n=o,l=u;break}if(x===l){_=!0,l=o,n=u;break}x=x.sibling}if(!_){for(x=u.child;x;){if(x===n){_=!0,n=u,l=o;break}if(x===l){_=!0,l=u,n=o;break}x=x.sibling}if(!_)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function he(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case K:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case M:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var re=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Te=[],_e=-1;function R(e){return{current:e}}function G(e){0>_e||(e.current=Te[_e],Te[_e]=null,_e--)}function Z(e,t){_e++,Te[_e]=e.current,e.current=t}var te=R(null),ye=R(null),Se=R(null),Be=R(null);function At(e,t){switch(Z(Se,t),Z(ye,e),Z(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pm(t),e=_m(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(te),Z(te,e)}function st(){G(te),G(ye),G(Se)}function us(e){e.memoizedState!==null&&Z(Be,e);var t=te.current,n=_m(t,e.type);t!==n&&(Z(ye,e),Z(te,n))}function ws(e){ye.current===e&&(G(te),G(ye)),Be.current===e&&(G(Be),Mc._currentValue=ie)}var ta,na;function Ae(e){if(ta===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ta=t&&t[1]||"",na=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ta+e+na}var Jt=!1;function Cs(e,t){if(!e||Jt)return"";Jt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(H){var $=H}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(H){$=H}e.call(Q.prototype)}}else{try{throw Error()}catch(H){$=H}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(H){if(H&&$&&typeof H.stack=="string")return[H.stack,$.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),_=u[0],x=u[1];if(_&&x){var T=_.split(`
`),k=x.split(`
`);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<k.length&&!k[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===k.length)for(l=T.length-1,o=k.length-1;1<=l&&0<=o&&T[l]!==k[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==k[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==k[o]){var F=`
`+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{Jt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ae(n):""}function et(e,t){switch(e.tag){case 26:case 27:case 5:return Ae(e.type);case 16:return Ae("Lazy");case 13:return e.child!==t&&t!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return Cs(e.type,!1);case 11:return Cs(e.type.render,!1);case 1:return Cs(e.type,!0);case 31:return Ae("Activity");default:return""}}function on(e){try{var t="",n=null;do t+=et(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Ll=Object.prototype.hasOwnProperty,Ol=a.unstable_scheduleCallback,fu=a.unstable_cancelCallback,tg=a.unstable_shouldYield,ng=a.unstable_requestPaint,jn=a.unstable_now,sg=a.unstable_getCurrentPriorityLevel,P2=a.unstable_ImmediatePriority,I2=a.unstable_UserBlockingPriority,dr=a.unstable_NormalPriority,ag=a.unstable_LowPriority,Y2=a.unstable_IdlePriority,lg=a.log,ig=a.unstable_setDisableYieldValue,Qi=null,Sn=null;function sa(e){if(typeof lg=="function"&&ig(e),Sn&&typeof Sn.setStrictMode=="function")try{Sn.setStrictMode(Qi,e)}catch{}}var Nn=Math.clz32?Math.clz32:og,cg=Math.log,rg=Math.LN2;function og(e){return e>>>=0,e===0?32:31-(cg(e)/rg|0)|0}var fr=256,hr=262144,mr=4194304;function Ga(e){var t=e&42;if(t!==0)return t;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;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pr(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var o=0,u=e.suspendedLanes,_=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~u,l!==0?o=Ga(l):(_&=x,_!==0?o=Ga(_):n||(n=x&~e,n!==0&&(o=Ga(n))))):(x=l&~u,x!==0?o=Ga(x):_!==0?o=Ga(_):n||(n=l&~e,n!==0&&(o=Ga(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ug(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 X2(){var e=mr;return mr<<=1,(mr&62914560)===0&&(mr=4194304),e}function hu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ii(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function dg(e,t,n,l,o,u){var _=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,T=e.expirationTimes,k=e.hiddenUpdates;for(n=_&~n;0<n;){var F=31-Nn(n),Q=1<<F;x[F]=0,T[F]=-1;var $=k[F];if($!==null)for(k[F]=null,F=0;F<$.length;F++){var H=$[F];H!==null&&(H.lane&=-536870913)}n&=~Q}l!==0&&K2(e,l,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(_&~t))}function K2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Nn(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Z2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Nn(n),o=1<<l;o&t|e[l]&t&&(e[l]|=t),n&=~o}}function W2(e,t){var n=t&-t;return n=(n&42)!==0?1:mu(n),(n&(e.suspendedLanes|t))!==0?0:n}function mu(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 pu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function J2(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Um(e.type))}function ef(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var aa=Math.random().toString(36).slice(2),Ft="__reactFiber$"+aa,un="__reactProps$"+aa,Ml="__reactContainer$"+aa,_u="__reactEvents$"+aa,fg="__reactListeners$"+aa,hg="__reactHandles$"+aa,tf="__reactResources$"+aa,Yi="__reactMarker$"+aa;function gu(e){delete e[Ft],delete e[un],delete e[_u],delete e[fg],delete e[hg]}function zl(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ml]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[Ft])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function Dl(e){if(e=e[Ft]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function kl(e){var t=e[tf];return t||(t=e[tf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Dt(e){e[Yi]=!0}var nf=new Set,sf={};function Va(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(sf[e]=t,e=0;e<t.length;e++)nf.add(t[e])}var mg=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]*$"),af={},lf={};function pg(e){return Ll.call(lf,e)?!0:Ll.call(af,e)?!1:mg.test(e)?lf[e]=!0:(af[e]=!0,!1)}function _r(e,t,n){if(pg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function gr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Ts(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _g(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(_){n=""+_,u.call(this,_)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(_){n=""+_},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vu(e){if(!e._valueTracker){var t=cf(e)?"checked":"value";e._valueTracker=_g(e,t,""+e[t])}}function rf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=cf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function vr(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 gg=/[\n"\\]/g;function Hn(e){return e.replace(gg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yu(e,t,n,l,o,u,_,x){e.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.type=_:e.removeAttribute("type"),t!=null?_==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):_!=="submit"&&_!=="reset"||e.removeAttribute("value"),t!=null?xu(e,_,Un(t)):n!=null?xu(e,_,Un(n)):l!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Un(x):e.removeAttribute("name")}function of(e,t,n,l,o,u,_,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){vu(e);return}n=n!=null?""+Un(n):"",t=t!=null?""+Un(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(e.name=_),vu(e)}function xu(e,t,n){t==="number"&&vr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function $l(e,t,n,l){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function uf(e,t,n){if(t!=null&&(t=""+Un(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Un(n):""}function df(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(re(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Un(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),vu(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vg=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 ff(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||vg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&n[o]!==l&&ff(e,o,l)}else for(var u in t)t.hasOwnProperty(u)&&ff(e,u,t[u])}function bu(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 yg=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-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"]]),xg=/^[\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 yr(e){return xg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Es(){}var ju=null;function Su(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hl=null,ql=null;function mf(e){var t=Dl(e);if(t&&(e=t.stateNode)){var n=e[un]||null;e:switch(e=t.stateNode,t.type){case"input":if(yu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Hn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var o=l[un]||null;if(!o)throw Error(r(90));yu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&rf(l)}break e;case"textarea":uf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&$l(e,!!n.multiple,t,!1)}}}var Nu=!1;function pf(e,t,n){if(Nu)return e(t,n);Nu=!0;try{var l=e(t);return l}finally{if(Nu=!1,(Hl!==null||ql!==null)&&(io(),Hl&&(t=Hl,e=ql,ql=Hl=null,mf(t),e)))for(t=0;t<e.length;t++)mf(e[t])}}function Ki(e,t){var n=e.stateNode;if(n===null)return null;var l=n[un]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Rs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wu=!1;if(Rs)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){wu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{wu=!1}var la=null,Cu=null,xr=null;function _f(){if(xr)return xr;var e,t=Cu,n=t.length,l,o="value"in la?la.value:la.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var _=n-e;for(l=1;l<=_&&t[n-l]===o[u-l];l++);return xr=o.slice(e,1<l?1-l:void 0)}function br(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jr(){return!0}function gf(){return!1}function dn(e){function t(n,l,o,u,_){this._reactName=n,this._targetInst=o,this.type=l,this.nativeEvent=u,this.target=_,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?jr:gf,this.isPropagationStopped=gf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sr=dn(Qa),Wi=y({},Qa,{view:0,detail:0}),bg=dn(Wi),Tu,Eu,Ji,Nr=y({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Au,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!==Ji&&(Ji&&e.type==="mousemove"?(Tu=e.screenX-Ji.screenX,Eu=e.screenY-Ji.screenY):Eu=Tu=0,Ji=e),Tu)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),vf=dn(Nr),jg=y({},Nr,{dataTransfer:0}),Sg=dn(jg),Ng=y({},Wi,{relatedTarget:0}),Ru=dn(Ng),wg=y({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),Cg=dn(wg),Tg=y({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Eg=dn(Tg),Rg=y({},Qa,{data:0}),yf=dn(Rg),Ag={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lg={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"},Og={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Og[e])?!!t[e]:!1}function Au(){return Mg}var zg=y({},Wi,{key:function(e){if(e.key){var t=Ag[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Lg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Au,charCode:function(e){return e.type==="keypress"?br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dg=dn(zg),kg=y({},Nr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xf=dn(kg),Bg=y({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Au}),$g=dn(Bg),Ug=y({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hg=dn(Ug),qg=y({},Nr,{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}),Fg=dn(qg),Gg=y({},Qa,{newState:0,oldState:0}),Vg=dn(Gg),Qg=[9,13,27,32],Lu=Rs&&"CompositionEvent"in window,ec=null;Rs&&"documentMode"in document&&(ec=document.documentMode);var Pg=Rs&&"TextEvent"in window&&!ec,bf=Rs&&(!Lu||ec&&8<ec&&11>=ec),jf=" ",Sf=!1;function Nf(e,t){switch(e){case"keyup":return Qg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function Ig(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(Sf=!0,jf);case"textInput":return e=t.data,e===jf&&Sf?null:e;default:return null}}function Yg(e,t){if(Fl)return e==="compositionend"||!Lu&&Nf(e,t)?(e=_f(),xr=Cu=la=null,Fl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bf&&t.locale!=="ko"?null:t.data;default:return null}}var Xg={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 Cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xg[e.type]:t==="textarea"}function Tf(e,t,n,l){Hl?ql?ql.push(l):ql=[l]:Hl=l,t=mo(t,"onChange"),0<t.length&&(n=new Sr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var tc=null,nc=null;function Kg(e){om(e,0)}function wr(e){var t=Xi(e);if(rf(t))return e}function Ef(e,t){if(e==="change")return t}var Rf=!1;if(Rs){var Ou;if(Rs){var Mu="oninput"in document;if(!Mu){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),Mu=typeof Af.oninput=="function"}Ou=Mu}else Ou=!1;Rf=Ou&&(!document.documentMode||9<document.documentMode)}function Lf(){tc&&(tc.detachEvent("onpropertychange",Of),nc=tc=null)}function Of(e){if(e.propertyName==="value"&&wr(nc)){var t=[];Tf(t,nc,e,Su(e)),pf(Kg,t)}}function Zg(e,t,n){e==="focusin"?(Lf(),tc=t,nc=n,tc.attachEvent("onpropertychange",Of)):e==="focusout"&&Lf()}function Wg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wr(nc)}function Jg(e,t){if(e==="click")return wr(t)}function ev(e,t){if(e==="input"||e==="change")return wr(t)}function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wn=typeof Object.is=="function"?Object.is:tv;function sc(e,t){if(wn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var o=n[l];if(!Ll.call(t,o)||!wn(e[o],t[o]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zf(e,t){var n=Mf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mf(n)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vr(e.document)}return t}function zu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var nv=Rs&&"documentMode"in document&&11>=document.documentMode,Gl=null,Du=null,ac=null,ku=!1;function Bf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ku||Gl==null||Gl!==vr(l)||(l=Gl,"selectionStart"in l&&zu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ac&&sc(ac,l)||(ac=l,l=mo(Du,"onSelect"),0<l.length&&(t=new Sr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Gl)))}function Pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vl={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionrun:Pa("Transition","TransitionRun"),transitionstart:Pa("Transition","TransitionStart"),transitioncancel:Pa("Transition","TransitionCancel"),transitionend:Pa("Transition","TransitionEnd")},Bu={},$f={};Rs&&($f=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function Ia(e){if(Bu[e])return Bu[e];if(!Vl[e])return e;var t=Vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $f)return Bu[e]=t[n];return e}var Uf=Ia("animationend"),Hf=Ia("animationiteration"),qf=Ia("animationstart"),sv=Ia("transitionrun"),av=Ia("transitionstart"),lv=Ia("transitioncancel"),Ff=Ia("transitionend"),Gf=new Map,$u="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(" ");$u.push("scrollEnd");function es(e,t){Gf.set(e,t),Va(t,[e])}var Cr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=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(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qn=[],Ql=0,Uu=0;function Tr(){for(var e=Ql,t=Uu=Ql=0;t<e;){var n=qn[t];qn[t++]=null;var l=qn[t];qn[t++]=null;var o=qn[t];qn[t++]=null;var u=qn[t];if(qn[t++]=null,l!==null&&o!==null){var _=l.pending;_===null?o.next=o:(o.next=_.next,_.next=o),l.pending=o}u!==0&&Vf(n,o,u)}}function Er(e,t,n,l){qn[Ql++]=e,qn[Ql++]=t,qn[Ql++]=n,qn[Ql++]=l,Uu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Hu(e,t,n,l){return Er(e,t,n,l),Rr(e)}function Ya(e,t){return Er(e,null,null,t),Rr(e)}function Vf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-Nn(n),e=u.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=n|536870912),u):null}function Rr(e){if(50<Cc)throw Cc=0,X0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Pl={};function iv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cn(e,t,n,l){return new iv(e,t,n,l)}function qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function As(e,t){var n=e.alternate;return n===null?(n=Cn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ar(e,t,n,l,o,u){var _=0;if(l=e,typeof e=="function")qu(e)&&(_=1);else if(typeof e=="string")_=dy(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Cn(31,n,t,o),e.elementType=ne,e.lanes=u,e;case w:return Xa(n.children,o,u,t);case C:_=8,o|=24;break;case A:return e=Cn(12,n,t,o|2),e.elementType=A,e.lanes=u,e;case I:return e=Cn(13,n,t,o),e.elementType=I,e.lanes=u,e;case K:return e=Cn(19,n,t,o),e.elementType=K,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:_=10;break e;case z:_=9;break e;case U:_=11;break e;case B:_=14;break e;case P:_=16,l=null;break e}_=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Cn(_,n,t,o),t.elementType=e,t.type=l,t.lanes=u,t}function Xa(e,t,n,l){return e=Cn(7,e,l,t),e.lanes=n,e}function Fu(e,t,n){return e=Cn(6,e,null,t),e.lanes=n,e}function Pf(e){var t=Cn(18,null,null,0);return t.stateNode=e,t}function Gu(e,t,n){return t=Cn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var If=new WeakMap;function Fn(e,t){if(typeof e=="object"&&e!==null){var n=If.get(e);return n!==void 0?n:(t={value:e,source:t,stack:on(t)},If.set(e,t),t)}return{value:e,source:t,stack:on(t)}}var Il=[],Yl=0,Lr=null,lc=0,Gn=[],Vn=0,ia=null,ds=1,fs="";function Ls(e,t){Il[Yl++]=lc,Il[Yl++]=Lr,Lr=e,lc=t}function Yf(e,t,n){Gn[Vn++]=ds,Gn[Vn++]=fs,Gn[Vn++]=ia,ia=e;var l=ds;e=fs;var o=32-Nn(l)-1;l&=~(1<<o),n+=1;var u=32-Nn(t)+o;if(30<u){var _=o-o%5;u=(l&(1<<_)-1).toString(32),l>>=_,o-=_,ds=1<<32-Nn(t)+o|n<<o|l,fs=u+e}else ds=1<<u|n<<o|l,fs=e}function Vu(e){e.return!==null&&(Ls(e,1),Yf(e,1,0))}function Qu(e){for(;e===Lr;)Lr=Il[--Yl],Il[Yl]=null,lc=Il[--Yl],Il[Yl]=null;for(;e===ia;)ia=Gn[--Vn],Gn[Vn]=null,fs=Gn[--Vn],Gn[Vn]=null,ds=Gn[--Vn],Gn[Vn]=null}function Xf(e,t){Gn[Vn++]=ds,Gn[Vn++]=fs,Gn[Vn++]=ia,ds=t.id,fs=t.overflow,ia=e}var Gt=null,at=null,$e=!1,ca=null,Qn=!1,Pu=Error(r(519));function ra(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ic(Fn(t,e)),Pu}function Kf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[Ft]=e,t[un]=l,n){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(n=0;n<Ec.length;n++)Oe(Ec[n],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),of(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),df(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||hm(t.textContent,n)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.onClick!=null&&(t.onclick=Es),t=!0):t=!1,t||ra(e,!0)}function Zf(e){for(Gt=e.return;Gt;)switch(Gt.tag){case 5:case 31:case 13:Qn=!1;return;case 27:case 3:Qn=!0;return;default:Gt=Gt.return}}function Xl(e){if(e!==Gt)return!1;if(!$e)return Zf(e),$e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ud(e.type,e.memoizedProps)),n=!n),n&&at&&ra(e),Zf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));at=jm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));at=jm(e)}else t===27?(t=at,ja(e.type)?(e=pd,pd=null,at=e):at=t):at=Gt?In(e.stateNode.nextSibling):null;return!0}function Ka(){at=Gt=null,$e=!1}function Iu(){var e=ca;return e!==null&&(pn===null?pn=e:pn.push.apply(pn,e),ca=null),e}function ic(e){ca===null?ca=[e]:ca.push(e)}var Yu=R(null),Za=null,Os=null;function oa(e,t,n){Z(Yu,t._currentValue),t._currentValue=n}function Ms(e){e._currentValue=Yu.current,G(Yu)}function Xu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function Ku(e,t,n,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var _=o.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=o;for(var T=0;T<t.length;T++)if(x.context===t[T]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),Xu(u.return,n,e),l||(_=null);break e}u=x.next}}else if(o.tag===18){if(_=o.return,_===null)throw Error(r(341));_.lanes|=n,u=_.alternate,u!==null&&(u.lanes|=n),Xu(_,n,e),_=null}else _=o.child;if(_!==null)_.return=o;else for(_=o;_!==null;){if(_===e){_=null;break}if(o=_.sibling,o!==null){o.return=_.return,_=o;break}_=_.return}o=_}}function Kl(e,t,n,l){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var _=o.alternate;if(_===null)throw Error(r(387));if(_=_.memoizedProps,_!==null){var x=o.type;wn(o.pendingProps.value,_.value)||(e!==null?e.push(x):e=[x])}}else if(o===Be.current){if(_=o.alternate,_===null)throw Error(r(387));_.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Mc):e=[Mc])}o=o.return}e!==null&&Ku(t,e,n,l),t.flags|=262144}function Or(e){for(e=e.firstContext;e!==null;){if(!wn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){Za=e,Os=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Vt(e){return Wf(Za,e)}function Mr(e,t){return Za===null&&Wa(e),Wf(e,t)}function Wf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Os===null){if(e===null)throw Error(r(308));Os=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Os=Os.next=t;return n}var cv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},rv=a.unstable_scheduleCallback,ov=a.unstable_NormalPriority,Nt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zu(){return{controller:new cv,data:new Map,refCount:0}}function cc(e){e.refCount--,e.refCount===0&&rv(ov,function(){e.controller.abort()})}var rc=null,Wu=0,Zl=0,Wl=null;function uv(e,t){if(rc===null){var n=rc=[];Wu=0,Zl=td(),Wl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Wu++,t.then(Jf,Jf),t}function Jf(){if(--Wu===0&&rc!==null){Wl!==null&&(Wl.status="fulfilled");var e=rc;rc=null,Zl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dv(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),l}var eh=q.S;q.S=function(e,t){B1=jn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uv(e,t),eh!==null&&eh(e,t)};var Ja=R(null);function Ju(){var e=Ja.current;return e!==null?e:We.pooledCache}function zr(e,t){t===null?Z(Ja,Ja.current):Z(Ja,t.pool)}function th(){var e=Ju();return e===null?null:{parent:Nt._currentValue,pool:e}}var Jl=Error(r(460)),e0=Error(r(474)),Dr=Error(r(542)),kr={then:function(){}};function nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Es,Es),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e;default:if(typeof t.status=="string")t.then(Es,Es);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,lh(e),e}throw tl=t,Jl}}function el(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(tl=n,Jl):n}}var tl=null;function ah(){if(tl===null)throw Error(r(459));var e=tl;return tl=null,e}function lh(e){if(e===Jl||e===Dr)throw Error(r(483))}var ei=null,oc=0;function Br(e){var t=oc;return oc+=1,ei===null&&(ei=[]),sh(ei,e,t)}function uc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $r(e,t){throw t.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ih(e){function t(O,L){if(e){var D=O.deletions;D===null?(O.deletions=[L],O.flags|=16):D.push(L)}}function n(O,L){if(!e)return null;for(;L!==null;)t(O,L),L=L.sibling;return null}function l(O){for(var L=new Map;O!==null;)O.key!==null?L.set(O.key,O):L.set(O.index,O),O=O.sibling;return L}function o(O,L){return O=As(O,L),O.index=0,O.sibling=null,O}function u(O,L,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<L?(O.flags|=67108866,L):D):(O.flags|=67108866,L)):(O.flags|=1048576,L)}function _(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function x(O,L,D,V){return L===null||L.tag!==6?(L=Fu(D,O.mode,V),L.return=O,L):(L=o(L,D),L.return=O,L)}function T(O,L,D,V){var fe=D.type;return fe===w?F(O,L,D.props.children,V,D.key):L!==null&&(L.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===P&&el(fe)===L.type)?(L=o(L,D.props),uc(L,D),L.return=O,L):(L=Ar(D.type,D.key,D.props,null,O.mode,V),uc(L,D),L.return=O,L)}function k(O,L,D,V){return L===null||L.tag!==4||L.stateNode.containerInfo!==D.containerInfo||L.stateNode.implementation!==D.implementation?(L=Gu(D,O.mode,V),L.return=O,L):(L=o(L,D.children||[]),L.return=O,L)}function F(O,L,D,V,fe){return L===null||L.tag!==7?(L=Xa(D,O.mode,V,fe),L.return=O,L):(L=o(L,D),L.return=O,L)}function Q(O,L,D){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Fu(""+L,O.mode,D),L.return=O,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return D=Ar(L.type,L.key,L.props,null,O.mode,D),uc(D,L),D.return=O,D;case S:return L=Gu(L,O.mode,D),L.return=O,L;case P:return L=el(L),Q(O,L,D)}if(re(L)||he(L))return L=Xa(L,O.mode,D,null),L.return=O,L;if(typeof L.then=="function")return Q(O,Br(L),D);if(L.$$typeof===M)return Q(O,Mr(O,L),D);$r(O,L)}return null}function $(O,L,D,V){var fe=L!==null?L.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return fe!==null?null:x(O,L,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return D.key===fe?T(O,L,D,V):null;case S:return D.key===fe?k(O,L,D,V):null;case P:return D=el(D),$(O,L,D,V)}if(re(D)||he(D))return fe!==null?null:F(O,L,D,V,null);if(typeof D.then=="function")return $(O,L,Br(D),V);if(D.$$typeof===M)return $(O,L,Mr(O,D),V);$r(O,D)}return null}function H(O,L,D,V,fe){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return O=O.get(D)||null,x(L,O,""+V,fe);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case N:return O=O.get(V.key===null?D:V.key)||null,T(L,O,V,fe);case S:return O=O.get(V.key===null?D:V.key)||null,k(L,O,V,fe);case P:return V=el(V),H(O,L,D,V,fe)}if(re(V)||he(V))return O=O.get(D)||null,F(L,O,V,fe,null);if(typeof V.then=="function")return H(O,L,D,Br(V),fe);if(V.$$typeof===M)return H(O,L,D,Mr(L,V),fe);$r(L,V)}return null}function se(O,L,D,V){for(var fe=null,qe=null,le=L,Ne=L=0,De=null;le!==null&&Ne<D.length;Ne++){le.index>Ne?(De=le,le=null):De=le.sibling;var Fe=$(O,le,D[Ne],V);if(Fe===null){le===null&&(le=De);break}e&&le&&Fe.alternate===null&&t(O,le),L=u(Fe,L,Ne),qe===null?fe=Fe:qe.sibling=Fe,qe=Fe,le=De}if(Ne===D.length)return n(O,le),$e&&Ls(O,Ne),fe;if(le===null){for(;Ne<D.length;Ne++)le=Q(O,D[Ne],V),le!==null&&(L=u(le,L,Ne),qe===null?fe=le:qe.sibling=le,qe=le);return $e&&Ls(O,Ne),fe}for(le=l(le);Ne<D.length;Ne++)De=H(le,O,Ne,D[Ne],V),De!==null&&(e&&De.alternate!==null&&le.delete(De.key===null?Ne:De.key),L=u(De,L,Ne),qe===null?fe=De:qe.sibling=De,qe=De);return e&&le.forEach(function(Ta){return t(O,Ta)}),$e&&Ls(O,Ne),fe}function ge(O,L,D,V){if(D==null)throw Error(r(151));for(var fe=null,qe=null,le=L,Ne=L=0,De=null,Fe=D.next();le!==null&&!Fe.done;Ne++,Fe=D.next()){le.index>Ne?(De=le,le=null):De=le.sibling;var Ta=$(O,le,Fe.value,V);if(Ta===null){le===null&&(le=De);break}e&&le&&Ta.alternate===null&&t(O,le),L=u(Ta,L,Ne),qe===null?fe=Ta:qe.sibling=Ta,qe=Ta,le=De}if(Fe.done)return n(O,le),$e&&Ls(O,Ne),fe;if(le===null){for(;!Fe.done;Ne++,Fe=D.next())Fe=Q(O,Fe.value,V),Fe!==null&&(L=u(Fe,L,Ne),qe===null?fe=Fe:qe.sibling=Fe,qe=Fe);return $e&&Ls(O,Ne),fe}for(le=l(le);!Fe.done;Ne++,Fe=D.next())Fe=H(le,O,Ne,Fe.value,V),Fe!==null&&(e&&Fe.alternate!==null&&le.delete(Fe.key===null?Ne:Fe.key),L=u(Fe,L,Ne),qe===null?fe=Fe:qe.sibling=Fe,qe=Fe);return e&&le.forEach(function(jy){return t(O,jy)}),$e&&Ls(O,Ne),fe}function Ke(O,L,D,V){if(typeof D=="object"&&D!==null&&D.type===w&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case N:e:{for(var fe=D.key;L!==null;){if(L.key===fe){if(fe=D.type,fe===w){if(L.tag===7){n(O,L.sibling),V=o(L,D.props.children),V.return=O,O=V;break e}}else if(L.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===P&&el(fe)===L.type){n(O,L.sibling),V=o(L,D.props),uc(V,D),V.return=O,O=V;break e}n(O,L);break}else t(O,L);L=L.sibling}D.type===w?(V=Xa(D.props.children,O.mode,V,D.key),V.return=O,O=V):(V=Ar(D.type,D.key,D.props,null,O.mode,V),uc(V,D),V.return=O,O=V)}return _(O);case S:e:{for(fe=D.key;L!==null;){if(L.key===fe)if(L.tag===4&&L.stateNode.containerInfo===D.containerInfo&&L.stateNode.implementation===D.implementation){n(O,L.sibling),V=o(L,D.children||[]),V.return=O,O=V;break e}else{n(O,L);break}else t(O,L);L=L.sibling}V=Gu(D,O.mode,V),V.return=O,O=V}return _(O);case P:return D=el(D),Ke(O,L,D,V)}if(re(D))return se(O,L,D,V);if(he(D)){if(fe=he(D),typeof fe!="function")throw Error(r(150));return D=fe.call(D),ge(O,L,D,V)}if(typeof D.then=="function")return Ke(O,L,Br(D),V);if(D.$$typeof===M)return Ke(O,L,Mr(O,D),V);$r(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,L!==null&&L.tag===6?(n(O,L.sibling),V=o(L,D),V.return=O,O=V):(n(O,L),V=Fu(D,O.mode,V),V.return=O,O=V),_(O)):n(O,L)}return function(O,L,D,V){try{oc=0;var fe=Ke(O,L,D,V);return ei=null,fe}catch(le){if(le===Jl||le===Dr)throw le;var qe=Cn(29,le,null,O.mode);return qe.lanes=V,qe.return=O,qe}finally{}}}var nl=ih(!0),ch=ih(!1),ua=!1;function t0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function n0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=Rr(e),Vf(e,null,n),t}return Er(e,l,t,n),Rr(e)}function dc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Z2(e,n)}}function s0(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var _={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=_:u=u.next=_,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var a0=!1;function fc(){if(a0){var e=Wl;if(e!==null)throw e}}function hc(e,t,n,l){a0=!1;var o=e.updateQueue;ua=!1;var u=o.firstBaseUpdate,_=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var T=x,k=T.next;T.next=null,_===null?u=k:_.next=k,_=T;var F=e.alternate;F!==null&&(F=F.updateQueue,x=F.lastBaseUpdate,x!==_&&(x===null?F.firstBaseUpdate=k:x.next=k,F.lastBaseUpdate=T))}if(u!==null){var Q=o.baseState;_=0,F=k=T=null,x=u;do{var $=x.lane&-536870913,H=$!==x.lane;if(H?(ze&$)===$:(l&$)===$){$!==0&&$===Zl&&(a0=!0),F!==null&&(F=F.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var se=e,ge=x;$=t;var Ke=n;switch(ge.tag){case 1:if(se=ge.payload,typeof se=="function"){Q=se.call(Ke,Q,$);break e}Q=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ge.payload,$=typeof se=="function"?se.call(Ke,Q,$):se,$==null)break e;Q=y({},Q,$);break e;case 2:ua=!0}}$=x.callback,$!==null&&(e.flags|=64,H&&(e.flags|=8192),H=o.callbacks,H===null?o.callbacks=[$]:H.push($))}else H={lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},F===null?(k=F=H,T=Q):F=F.next=H,_|=$;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;H=x,x=H.next,H.next=null,o.lastBaseUpdate=H,o.shared.pending=null}}while(!0);F===null&&(T=Q),o.baseState=T,o.firstBaseUpdate=k,o.lastBaseUpdate=F,u===null&&(o.shared.lanes=0),ga|=_,e.lanes=_,e.memoizedState=Q}}function rh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function oh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)rh(n[e],t)}var ti=R(null),Ur=R(0);function uh(e,t){e=Fs,Z(Ur,e),Z(ti,t),Fs=e|t.baseLanes}function l0(){Z(Ur,Fs),Z(ti,ti.current)}function i0(){Fs=Ur.current,G(ti),G(Ur)}var Tn=R(null),Pn=null;function ha(e){var t=e.alternate;Z(yt,yt.current&1),Z(Tn,e),Pn===null&&(t===null||ti.current!==null||t.memoizedState!==null)&&(Pn=e)}function c0(e){Z(yt,yt.current),Z(Tn,e),Pn===null&&(Pn=e)}function dh(e){e.tag===22?(Z(yt,yt.current),Z(Tn,e),Pn===null&&(Pn=e)):ma()}function ma(){Z(yt,yt.current),Z(Tn,Tn.current)}function En(e){G(Tn),Pn===e&&(Pn=null),G(yt)}var yt=R(0);function Hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hd(n)||md(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zs=0,je=null,Ye=null,wt=null,qr=!1,ni=!1,sl=!1,Fr=0,mc=0,si=null,fv=0;function pt(){throw Error(r(321))}function r0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wn(e[n],t[n]))return!1;return!0}function o0(e,t,n,l,o,u){return zs=u,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Yh:N0,sl=!1,u=n(l,o),sl=!1,ni&&(u=hh(t,n,l,o)),fh(e),u}function fh(e){q.H=gc;var t=Ye!==null&&Ye.next!==null;if(zs=0,wt=Ye=je=null,qr=!1,mc=0,si=null,t)throw Error(r(300));e===null||Ct||(e=e.dependencies,e!==null&&Or(e)&&(Ct=!0))}function hh(e,t,n,l){je=e;var o=0;do{if(ni&&(si=null),mc=0,ni=!1,25<=o)throw Error(r(301));if(o+=1,wt=Ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}q.H=Xh,u=t(n,l)}while(ni);return u}function hv(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?pc(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(je.flags|=1024),t}function u0(){var e=Fr!==0;return Fr=0,e}function d0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function f0(e){if(qr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qr=!1}zs=0,wt=Ye=je=null,ni=!1,mc=Fr=0,si=null}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?je.memoizedState=wt=e:wt=wt.next=e,wt}function xt(){if(Ye===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=wt===null?je.memoizedState:wt.next;if(t!==null)wt=t,Ye=e;else{if(e===null)throw je.alternate===null?Error(r(467)):Error(r(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},wt===null?je.memoizedState=wt=e:wt=wt.next=e}return wt}function Gr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pc(e){var t=mc;return mc+=1,si===null&&(si=[]),e=sh(si,e,t),t=je,(wt===null?t.memoizedState:wt.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Yh:N0),e}function Vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pc(e);if(e.$$typeof===M)return Vt(e)}throw Error(r(438,String(e)))}function h0(e){var t=null,n=je.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=je.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Gr(),je.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ce;return t.index++,n}function Ds(e,t){return typeof t=="function"?t(e):t}function Qr(e){var t=xt();return m0(t,Ye,e)}function m0(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var o=e.baseQueue,u=l.pending;if(u!==null){if(o!==null){var _=o.next;o.next=u.next,u.next=_}t.baseQueue=o=u,l.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var x=_=null,T=null,k=t,F=!1;do{var Q=k.lane&-536870913;if(Q!==k.lane?(ze&Q)===Q:(zs&Q)===Q){var $=k.revertLane;if($===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),Q===Zl&&(F=!0);else if((zs&$)===$){k=k.next,$===Zl&&(F=!0);continue}else Q={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(x=T=Q,_=u):T=T.next=Q,je.lanes|=$,ga|=$;Q=k.action,sl&&n(u,Q),u=k.hasEagerState?k.eagerState:n(u,Q)}else $={lane:Q,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(x=T=$,_=u):T=T.next=$,je.lanes|=Q,ga|=Q;k=k.next}while(k!==null&&k!==t);if(T===null?_=u:T.next=x,!wn(u,e.memoizedState)&&(Ct=!0,F&&(n=Wl,n!==null)))throw n;e.memoizedState=u,e.baseState=_,e.baseQueue=T,l.lastRenderedState=u}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function p0(e){var t=xt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var _=o=o.next;do u=e(u,_.action),_=_.next;while(_!==o);wn(u,t.memoizedState)||(Ct=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function mh(e,t,n){var l=je,o=xt(),u=$e;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var _=!wn((Ye||o).memoizedState,n);if(_&&(o.memoizedState=n,Ct=!0),o=o.queue,v0(gh.bind(null,l,o,e),[e]),o.getSnapshot!==t||_||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,ai(9,{destroy:void 0},_h.bind(null,l,o,n,t),null),We===null)throw Error(r(349));u||(zs&127)!==0||ph(l,t,n)}return n}function ph(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t=Gr(),je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _h(e,t,n,l){t.value=n,t.getSnapshot=l,vh(t)&&yh(e)}function gh(e,t,n){return n(function(){vh(t)&&yh(e)})}function vh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wn(e,n)}catch{return!0}}function yh(e){var t=Ya(e,2);t!==null&&_n(t,e,2)}function _0(e){var t=en();if(typeof e=="function"){var n=e;if(e=n(),sl){sa(!0);try{n()}finally{sa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:e},t}function xh(e,t,n,l){return e.baseState=n,m0(e,Ye,typeof l=="function"?l:Ds)}function mv(e,t,n,l,o){if(Yr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){u.listeners.push(_)}};q.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,bh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function bh(e,t){var n=t.action,l=t.payload,o=e.state;if(t.isTransition){var u=q.T,_={};q.T=_;try{var x=n(o,l),T=q.S;T!==null&&T(_,x),jh(e,t,x)}catch(k){g0(e,t,k)}finally{u!==null&&_.types!==null&&(u.types=_.types),q.T=u}}else try{u=n(o,l),jh(e,t,u)}catch(k){g0(e,t,k)}}function jh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Sh(e,t,l)},function(l){return g0(e,t,l)}):Sh(e,t,n)}function Sh(e,t,n){t.status="fulfilled",t.value=n,Nh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,bh(e,n)))}function g0(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Nh(t),t=t.next;while(t!==l)}e.action=null}function Nh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wh(e,t){return t}function Ch(e,t){if($e){var n=We.formState;if(n!==null){e:{var l=je;if($e){if(at){t:{for(var o=at,u=Qn;o.nodeType!==8;){if(!u){o=null;break t}if(o=In(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){at=In(o.nextSibling),l=o.data==="F!";break e}}ra(l)}l=!1}l&&(t=n[0])}}return n=en(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wh,lastRenderedState:t},n.queue=l,n=Qh.bind(null,je,l),l.dispatch=n,l=_0(!1),u=S0.bind(null,je,!1,l.queue),l=en(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,n=mv.bind(null,je,o,u,n),o.dispatch=n,l.memoizedState=e,[t,n,!1]}function Th(e){var t=xt();return Eh(t,Ye,e)}function Eh(e,t,n){if(t=m0(e,t,wh)[0],e=Qr(Ds)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=pc(t)}catch(_){throw _===Jl?Dr:_}else l=t;t=xt();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(je.flags|=2048,ai(9,{destroy:void 0},pv.bind(null,o,n),null)),[l,u,e]}function pv(e,t){e.action=t}function Rh(e){var t=xt(),n=Ye;if(n!==null)return Eh(t,n,e);xt(),t=t.memoizedState,n=xt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ai(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=je.updateQueue,t===null&&(t=Gr(),je.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Ah(){return xt().memoizedState}function Pr(e,t,n,l){var o=en();je.flags|=e,o.memoizedState=ai(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ir(e,t,n,l){var o=xt();l=l===void 0?null:l;var u=o.memoizedState.inst;Ye!==null&&l!==null&&r0(l,Ye.memoizedState.deps)?o.memoizedState=ai(t,u,n,l):(je.flags|=e,o.memoizedState=ai(1|t,u,n,l))}function Lh(e,t){Pr(8390656,8,e,t)}function v0(e,t){Ir(2048,8,e,t)}function _v(e){je.flags|=4;var t=je.updateQueue;if(t===null)t=Gr(),je.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Oh(e){var t=xt().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((Ge&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Mh(e,t){return Ir(4,2,e,t)}function zh(e,t){return Ir(4,4,e,t)}function Dh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kh(e,t,n){n=n!=null?n.concat([e]):null,Ir(4,4,Dh.bind(null,t,e),n)}function y0(){}function Bh(e,t){var n=xt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&r0(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function $h(e,t){var n=xt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&r0(t,l[1]))return l[0];if(l=e(),sl){sa(!0);try{e()}finally{sa(!1)}}return n.memoizedState=[l,t],l}function x0(e,t,n){return n===void 0||(zs&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=U1(),je.lanes|=e,ga|=e,n)}function Uh(e,t,n,l){return wn(n,t)?n:ti.current!==null?(e=x0(e,n,l),wn(e,t)||(Ct=!0),e):(zs&42)===0||(zs&1073741824)!==0&&(ze&261930)===0?(Ct=!0,e.memoizedState=n):(e=U1(),je.lanes|=e,ga|=e,t)}function Hh(e,t,n,l,o){var u=Y.p;Y.p=u!==0&&8>u?u:8;var _=q.T,x={};q.T=x,S0(e,!1,t,n);try{var T=o(),k=q.S;if(k!==null&&k(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=dv(T,l);_c(e,t,F,Ln(e))}else _c(e,t,l,Ln(e))}catch(Q){_c(e,t,{then:function(){},status:"rejected",reason:Q},Ln())}finally{Y.p=u,_!==null&&x.types!==null&&(_.types=x.types),q.T=_}}function gv(){}function b0(e,t,n,l){if(e.tag!==5)throw Error(r(476));var o=qh(e).queue;Hh(e,o,t,ie,n===null?gv:function(){return Fh(e),n(l)})}function qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ds,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fh(e){var t=qh(e);t.next===null&&(t=e.alternate.memoizedState),_c(e,t.next.queue,{},Ln())}function j0(){return Vt(Mc)}function Gh(){return xt().memoizedState}function Vh(){return xt().memoizedState}function vv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ln();e=da(n);var l=fa(t,e,n);l!==null&&(_n(l,t,n),dc(l,t,n)),t={cache:Zu()},e.payload=t;return}t=t.return}}function yv(e,t,n){var l=Ln();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Yr(e)?Ph(t,n):(n=Hu(e,t,n,l),n!==null&&(_n(n,e,l),Ih(n,t,l)))}function Qh(e,t,n){var l=Ln();_c(e,t,n,l)}function _c(e,t,n,l){var o={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yr(e))Ph(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var _=t.lastRenderedState,x=u(_,n);if(o.hasEagerState=!0,o.eagerState=x,wn(x,_))return Er(e,t,o,0),We===null&&Tr(),!1}catch{}finally{}if(n=Hu(e,t,o,l),n!==null)return _n(n,e,l),Ih(n,t,l),!0}return!1}function S0(e,t,n,l){if(l={lane:2,revertLane:td(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yr(e)){if(t)throw Error(r(479))}else t=Hu(e,n,l,2),t!==null&&_n(t,e,2)}function Yr(e){var t=e.alternate;return e===je||t!==null&&t===je}function Ph(e,t){ni=qr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ih(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Z2(e,n)}}var gc={readContext:Vt,use:Vr,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};gc.useEffectEvent=pt;var Yh={readContext:Vt,use:Vr,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Vt,useEffect:Lh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Pr(4194308,4,Dh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pr(4194308,4,e,t)},useInsertionEffect:function(e,t){Pr(4,2,e,t)},useMemo:function(e,t){var n=en();t=t===void 0?null:t;var l=e();if(sl){sa(!0);try{e()}finally{sa(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=en();if(n!==void 0){var o=n(t);if(sl){sa(!0);try{n(t)}finally{sa(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=yv.bind(null,je,e),[l.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:function(e){e=_0(e);var t=e.queue,n=Qh.bind(null,je,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:y0,useDeferredValue:function(e,t){var n=en();return x0(n,e,t)},useTransition:function(){var e=_0(!1);return e=Hh.bind(null,je,e.queue,!0,!1),en().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=je,o=en();if($e){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),We===null)throw Error(r(349));(ze&127)!==0||ph(l,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Lh(gh.bind(null,l,u,e),[e]),l.flags|=2048,ai(9,{destroy:void 0},_h.bind(null,l,u,n,t),null),n},useId:function(){var e=en(),t=We.identifierPrefix;if($e){var n=fs,l=ds;n=(l&~(1<<32-Nn(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=fv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:j0,useFormState:Ch,useActionState:Ch,useOptimistic:function(e){var t=en();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=S0.bind(null,je,!0,n),n.dispatch=t,[e,t]},useMemoCache:h0,useCacheRefresh:function(){return en().memoizedState=vv.bind(null,je)},useEffectEvent:function(e){var t=en(),n={impl:e};return t.memoizedState=n,function(){if((Ge&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},N0={readContext:Vt,use:Vr,useCallback:Bh,useContext:Vt,useEffect:v0,useImperativeHandle:kh,useInsertionEffect:Mh,useLayoutEffect:zh,useMemo:$h,useReducer:Qr,useRef:Ah,useState:function(){return Qr(Ds)},useDebugValue:y0,useDeferredValue:function(e,t){var n=xt();return Uh(n,Ye.memoizedState,e,t)},useTransition:function(){var e=Qr(Ds)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:pc(e),t]},useSyncExternalStore:mh,useId:Gh,useHostTransitionStatus:j0,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var n=xt();return xh(n,Ye,e,t)},useMemoCache:h0,useCacheRefresh:Vh};N0.useEffectEvent=Oh;var Xh={readContext:Vt,use:Vr,useCallback:Bh,useContext:Vt,useEffect:v0,useImperativeHandle:kh,useInsertionEffect:Mh,useLayoutEffect:zh,useMemo:$h,useReducer:p0,useRef:Ah,useState:function(){return p0(Ds)},useDebugValue:y0,useDeferredValue:function(e,t){var n=xt();return Ye===null?x0(n,e,t):Uh(n,Ye.memoizedState,e,t)},useTransition:function(){var e=p0(Ds)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:pc(e),t]},useSyncExternalStore:mh,useId:Gh,useHostTransitionStatus:j0,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var n=xt();return Ye!==null?xh(n,Ye,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:h0,useCacheRefresh:Vh};Xh.useEffectEvent=Oh;function w0(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var C0={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Ln(),o=da(l);o.payload=t,n!=null&&(o.callback=n),t=fa(e,o,l),t!==null&&(_n(t,e,l),dc(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Ln(),o=da(l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=fa(e,o,l),t!==null&&(_n(t,e,l),dc(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ln(),l=da(n);l.tag=2,t!=null&&(l.callback=t),t=fa(e,l,n),t!==null&&(_n(t,e,n),dc(t,e,n))}};function Kh(e,t,n,l,o,u,_){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,_):t.prototype&&t.prototype.isPureReactComponent?!sc(n,l)||!sc(o,u):!0}function Zh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&C0.enqueueReplaceState(t,t.state,null)}function al(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Wh(e){Cr(e)}function Jh(e){console.error(e)}function e1(e){Cr(e)}function Xr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function t1(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function T0(e,t,n){return n=da(n),n.tag=3,n.payload={element:null},n.callback=function(){Xr(e,t)},n}function n1(e){return e=da(e),e.tag=3,e}function s1(e,t,n,l){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=l.value;e.payload=function(){return o(u)},e.callback=function(){t1(t,n,l)}}var _=n.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(e.callback=function(){t1(t,n,l),typeof o!="function"&&(va===null?va=new Set([this]):va.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function xv(e,t,n,l,o){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Kl(t,n,o,!0),n=Tn.current,n!==null){switch(n.tag){case 31:case 13:return Pn===null?co():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=o,l===kr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),W0(e,l,o)),!1;case 22:return n.flags|=65536,l===kr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),W0(e,l,o)),!1}throw Error(r(435,n.tag))}return W0(e,l,o),co(),!1}if($e)return t=Tn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Pu&&(e=Error(r(422),{cause:l}),ic(Fn(e,n)))):(l!==Pu&&(t=Error(r(423),{cause:l}),ic(Fn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Fn(l,n),o=T0(e.stateNode,l,o),s0(e,o),_t!==4&&(_t=2)),!1;var u=Error(r(520),{cause:l});if(u=Fn(u,n),wc===null?wc=[u]:wc.push(u),_t!==4&&(_t=2),t===null)return!0;l=Fn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=T0(n.stateNode,l,e),s0(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(va===null||!va.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=n1(o),s1(o,e,n,l),s0(n,o),!1}n=n.return}while(n!==null);return!1}var E0=Error(r(461)),Ct=!1;function Qt(e,t,n,l){t.child=e===null?ch(t,null,n,l):nl(t,e.child,n,l)}function a1(e,t,n,l,o){n=n.render;var u=t.ref;if("ref"in l){var _={};for(var x in l)x!=="ref"&&(_[x]=l[x])}else _=l;return Wa(t),l=o0(e,t,n,_,u,o),x=u0(),e!==null&&!Ct?(d0(e,t,o),ks(e,t,o)):($e&&x&&Vu(t),t.flags|=1,Qt(e,t,l,o),t.child)}function l1(e,t,n,l,o){if(e===null){var u=n.type;return typeof u=="function"&&!qu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,i1(e,t,u,l,o)):(e=Ar(n.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!k0(e,o)){var _=u.memoizedProps;if(n=n.compare,n=n!==null?n:sc,n(_,l)&&e.ref===t.ref)return ks(e,t,o)}return t.flags|=1,e=As(u,l),e.ref=t.ref,e.return=t,t.child=e}function i1(e,t,n,l,o){if(e!==null){var u=e.memoizedProps;if(sc(u,l)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=l=u,k0(e,o))(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,ks(e,t,o)}return R0(e,t,n,l,o)}function c1(e,t,n,l){var o=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~u}else l=0,t.child=null;return r1(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&zr(t,u!==null?u.cachePool:null),u!==null?uh(t,u):l0(),dh(t);else return l=t.lanes=536870912,r1(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(zr(t,u.cachePool),uh(t,u),ma(),t.memoizedState=null):(e!==null&&zr(t,null),l0(),ma());return Qt(e,t,o,n),t.child}function vc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function r1(e,t,n,l,o){var u=Ju();return u=u===null?null:{parent:Nt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&zr(t,null),l0(),dh(t),e!==null&&Kl(e,t,l,!0),t.childLanes=o,null}function Kr(e,t){return t=Wr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function o1(e,t,n){return nl(t,e.child,null,n),e=Kr(t,t.pendingProps),e.flags|=2,En(t),t.memoizedState=null,e}function bv(e,t,n){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if($e){if(l.mode==="hidden")return e=Kr(t,l),t.lanes=536870912,vc(null,e);if(c0(t),(e=at)?(e=bm(e,Qn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:ds,overflow:fs}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,Gt=t,at=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Kr(t,l)}var u=e.memoizedState;if(u!==null){var _=u.dehydrated;if(c0(t),o)if(t.flags&256)t.flags&=-257,t=o1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ct||Kl(e,t,n,!1),o=(n&e.childLanes)!==0,Ct||o){if(l=We,l!==null&&(_=W2(l,n),_!==0&&_!==u.retryLane))throw u.retryLane=_,Ya(e,_),_n(l,e,_),E0;co(),t=o1(e,t,n)}else e=u.treeContext,at=In(_.nextSibling),Gt=t,$e=!0,ca=null,Qn=!1,e!==null&&Xf(t,e),t=Kr(t,l),t.flags|=4096;return t}return e=As(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function R0(e,t,n,l,o){return Wa(t),n=o0(e,t,n,l,void 0,o),l=u0(),e!==null&&!Ct?(d0(e,t,o),ks(e,t,o)):($e&&l&&Vu(t),t.flags|=1,Qt(e,t,n,o),t.child)}function u1(e,t,n,l,o,u){return Wa(t),t.updateQueue=null,n=hh(t,l,n,o),fh(e),l=u0(),e!==null&&!Ct?(d0(e,t,u),ks(e,t,u)):($e&&l&&Vu(t),t.flags|=1,Qt(e,t,n,u),t.child)}function d1(e,t,n,l,o){if(Wa(t),t.stateNode===null){var u=Pl,_=n.contextType;typeof _=="object"&&_!==null&&(u=Vt(_)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=C0,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},t0(t),_=n.contextType,u.context=typeof _=="object"&&_!==null?Vt(_):Pl,u.state=t.memoizedState,_=n.getDerivedStateFromProps,typeof _=="function"&&(w0(t,n,_,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(_=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),_!==u.state&&C0.enqueueReplaceState(u,u.state,null),hc(t,l,u,o),fc(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,T=al(n,x);u.props=T;var k=u.context,F=n.contextType;_=Pl,typeof F=="object"&&F!==null&&(_=Vt(F));var Q=n.getDerivedStateFromProps;F=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||k!==_)&&Zh(t,u,l,_),ua=!1;var $=t.memoizedState;u.state=$,hc(t,l,u,o),fc(),k=t.memoizedState,x||$!==k||ua?(typeof Q=="function"&&(w0(t,n,Q,l),k=t.memoizedState),(T=ua||Kh(t,n,T,l,$,k,_))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),u.props=l,u.state=k,u.context=_,l=T):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,n0(e,t),_=t.memoizedProps,F=al(n,_),u.props=F,Q=t.pendingProps,$=u.context,k=n.contextType,T=Pl,typeof k=="object"&&k!==null&&(T=Vt(k)),x=n.getDerivedStateFromProps,(k=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(_!==Q||$!==T)&&Zh(t,u,l,T),ua=!1,$=t.memoizedState,u.state=$,hc(t,l,u,o),fc();var H=t.memoizedState;_!==Q||$!==H||ua||e!==null&&e.dependencies!==null&&Or(e.dependencies)?(typeof x=="function"&&(w0(t,n,x,l),H=t.memoizedState),(F=ua||Kh(t,n,F,l,$,H,T)||e!==null&&e.dependencies!==null&&Or(e.dependencies))?(k||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,H,T),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,H,T)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),u.props=l,u.state=H,u.context=T,l=F):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Zr(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=nl(t,e.child,null,o),t.child=nl(t,null,n,o)):Qt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=ks(e,t,o),e}function f1(e,t,n,l){return Ka(),t.flags|=256,Qt(e,t,n,l),t.child}var A0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function L0(e){return{baseLanes:e,cachePool:th()}}function O0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=An),e}function h1(e,t,n){var l=t.pendingProps,o=!1,u=(t.flags&128)!==0,_;if((_=u)||(_=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),_&&(o=!0,t.flags&=-129),_=(t.flags&32)!==0,t.flags&=-33,e===null){if($e){if(o?ha(t):ma(),(e=at)?(e=bm(e,Qn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:ds,overflow:fs}:null,retryLane:536870912,hydrationErrors:null},n=Pf(e),n.return=t,t.child=n,Gt=t,at=null)):e=null,e===null)throw ra(t);return md(e)?t.lanes=32:t.lanes=536870912,null}var x=l.children;return l=l.fallback,o?(ma(),o=t.mode,x=Wr({mode:"hidden",children:x},o),l=Xa(l,o,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,l=t.child,l.memoizedState=L0(n),l.childLanes=O0(e,_,n),t.memoizedState=A0,vc(null,l)):(ha(t),M0(t,x))}var T=e.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(u)t.flags&256?(ha(t),t.flags&=-257,t=z0(e,t,n)):t.memoizedState!==null?(ma(),t.child=e.child,t.flags|=128,t=null):(ma(),x=l.fallback,o=t.mode,l=Wr({mode:"visible",children:l.children},o),x=Xa(x,o,n,null),x.flags|=2,l.return=t,x.return=t,l.sibling=x,t.child=l,nl(t,e.child,null,n),l=t.child,l.memoizedState=L0(n),l.childLanes=O0(e,_,n),t.memoizedState=A0,t=vc(null,l));else if(ha(t),md(x)){if(_=x.nextSibling&&x.nextSibling.dataset,_)var k=_.dgst;_=k,l=Error(r(419)),l.stack="",l.digest=_,ic({value:l,source:null,stack:null}),t=z0(e,t,n)}else if(Ct||Kl(e,t,n,!1),_=(n&e.childLanes)!==0,Ct||_){if(_=We,_!==null&&(l=W2(_,n),l!==0&&l!==T.retryLane))throw T.retryLane=l,Ya(e,l),_n(_,e,l),E0;hd(x)||co(),t=z0(e,t,n)}else hd(x)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,at=In(x.nextSibling),Gt=t,$e=!0,ca=null,Qn=!1,e!==null&&Xf(t,e),t=M0(t,l.children),t.flags|=4096);return t}return o?(ma(),x=l.fallback,o=t.mode,T=e.child,k=T.sibling,l=As(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,k!==null?x=As(k,x):(x=Xa(x,o,n,null),x.flags|=2),x.return=t,l.return=t,l.sibling=x,t.child=l,vc(null,l),l=t.child,x=e.child.memoizedState,x===null?x=L0(n):(o=x.cachePool,o!==null?(T=Nt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=th(),x={baseLanes:x.baseLanes|n,cachePool:o}),l.memoizedState=x,l.childLanes=O0(e,_,n),t.memoizedState=A0,vc(e.child,l)):(ha(t),n=e.child,e=n.sibling,n=As(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(_=t.deletions,_===null?(t.deletions=[e],t.flags|=16):_.push(e)),t.child=n,t.memoizedState=null,n)}function M0(e,t){return t=Wr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Wr(e,t){return e=Cn(22,e,null,t),e.lanes=0,e}function z0(e,t,n){return nl(t,e.child,null,n),e=M0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m1(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Xu(e.return,t,n)}function D0(e,t,n,l,o,u){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:o,treeForkCount:u}:(_.isBackwards=t,_.rendering=null,_.renderingStartTime=0,_.last=l,_.tail=n,_.tailMode=o,_.treeForkCount=u)}function p1(e,t,n){var l=t.pendingProps,o=l.revealOrder,u=l.tail;l=l.children;var _=yt.current,x=(_&2)!==0;if(x?(_=_&1|2,t.flags|=128):_&=1,Z(yt,_),Qt(e,t,l,n),l=$e?lc:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&m1(e,n,t);else if(e.tag===19)m1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Hr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),D0(t,!1,o,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Hr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}D0(t,!0,n,null,u,l);break;case"together":D0(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ks(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Kl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=As(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=As(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function k0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Or(e)))}function jv(e,t,n){switch(t.tag){case 3:At(t,t.stateNode.containerInfo),oa(t,Nt,e.memoizedState.cache),Ka();break;case 27:case 5:us(t);break;case 4:At(t,t.stateNode.containerInfo);break;case 10:oa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,c0(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ha(t),t.flags|=128,null):(n&t.child.childLanes)!==0?h1(e,t,n):(ha(t),e=ks(e,t,n),e!==null?e.sibling:null);ha(t);break;case 19:var o=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Kl(e,t,n,!1),l=(n&t.childLanes)!==0),o){if(l)return p1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(yt,yt.current),l)break;return null;case 22:return t.lanes=0,c1(e,t,n,t.pendingProps);case 24:oa(t,Nt,e.memoizedState.cache)}return ks(e,t,n)}function _1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ct=!0;else{if(!k0(e,n)&&(t.flags&128)===0)return Ct=!1,jv(e,t,n);Ct=(e.flags&131072)!==0}else Ct=!1,$e&&(t.flags&1048576)!==0&&Yf(t,lc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=el(t.elementType),t.type=e,typeof e=="function")qu(e)?(l=al(e,l),t.tag=1,t=d1(null,t,e,l,n)):(t.tag=0,t=R0(null,t,e,l,n));else{if(e!=null){var o=e.$$typeof;if(o===U){t.tag=11,t=a1(null,t,e,l,n);break e}else if(o===B){t.tag=14,t=l1(null,t,e,l,n);break e}}throw t=pe(e)||e,Error(r(306,t,""))}}return t;case 0:return R0(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,o=al(l,t.pendingProps),d1(e,t,l,o,n);case 3:e:{if(At(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var u=t.memoizedState;o=u.element,n0(e,t),hc(t,l,null,n);var _=t.memoizedState;if(l=_.cache,oa(t,Nt,l),l!==u.cache&&Ku(t,[Nt],n,!0),fc(),l=_.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:_.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=f1(e,t,l,n);break e}else if(l!==o){o=Fn(Error(r(424)),t),ic(o),t=f1(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=In(e.firstChild),Gt=t,$e=!0,ca=null,Qn=!0,n=ch(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ka(),l===o){t=ks(e,t,n);break e}Qt(e,t,l,n)}t=t.child}return t;case 26:return Zr(e,t),e===null?(n=Tm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$e||(n=t.type,e=t.pendingProps,l=po(Se.current).createElement(n),l[Ft]=t,l[un]=e,Pt(l,n,e),Dt(l),t.stateNode=l):t.memoizedState=Tm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return us(t),e===null&&$e&&(l=t.stateNode=Nm(t.type,t.pendingProps,Se.current),Gt=t,Qn=!0,o=at,ja(t.type)?(pd=o,at=In(l.firstChild)):at=o),Qt(e,t,t.pendingProps.children,n),Zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$e&&((o=l=at)&&(l=Wv(l,t.type,t.pendingProps,Qn),l!==null?(t.stateNode=l,Gt=t,at=In(l.firstChild),Qn=!1,o=!0):o=!1),o||ra(t)),us(t),o=t.type,u=t.pendingProps,_=e!==null?e.memoizedProps:null,l=u.children,ud(o,u)?l=null:_!==null&&ud(o,_)&&(t.flags|=32),t.memoizedState!==null&&(o=o0(e,t,hv,null,null,n),Mc._currentValue=o),Zr(e,t),Qt(e,t,l,n),t.child;case 6:return e===null&&$e&&((e=n=at)&&(n=Jv(n,t.pendingProps,Qn),n!==null?(t.stateNode=n,Gt=t,at=null,e=!0):e=!1),e||ra(t)),null;case 13:return h1(e,t,n);case 4:return At(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=nl(t,null,l,n):Qt(e,t,l,n),t.child;case 11:return a1(e,t,t.type,t.pendingProps,n);case 7:return Qt(e,t,t.pendingProps,n),t.child;case 8:return Qt(e,t,t.pendingProps.children,n),t.child;case 12:return Qt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,oa(t,t.type,l.value),Qt(e,t,l.children,n),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Wa(t),o=Vt(o),l=l(o),t.flags|=1,Qt(e,t,l,n),t.child;case 14:return l1(e,t,t.type,t.pendingProps,n);case 15:return i1(e,t,t.type,t.pendingProps,n);case 19:return p1(e,t,n);case 31:return bv(e,t,n);case 22:return c1(e,t,n,t.pendingProps);case 24:return Wa(t),l=Vt(Nt),e===null?(o=Ju(),o===null&&(o=We,u=Zu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:l,cache:o},t0(t),oa(t,Nt,o)):((e.lanes&n)!==0&&(n0(e,t),hc(t,null,null,n),fc()),o=e.memoizedState,u=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),oa(t,Nt,l)):(l=u.cache,oa(t,Nt,l),l!==o.cache&&Ku(t,[Nt],n,!0))),Qt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Bs(e){e.flags|=4}function B0(e,t,n,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(G1())e.flags|=8192;else throw tl=kr,e0}else e.flags&=-16777217}function g1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Om(t))if(G1())e.flags|=8192;else throw tl=kr,e0}function Jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?X2():536870912,e.lanes|=t,ri|=t)}function yc(e,t){if(!$e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Sv(e,t,n){var l=t.pendingProps;switch(Qu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ms(Nt),st(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Xl(t)?Bs(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Iu())),lt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Bs(t),u!==null?(lt(t),g1(t,u)):(lt(t),B0(t,o,null,l,n))):u?u!==e.memoizedState?(Bs(t),lt(t),g1(t,u)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Bs(t),lt(t),B0(t,o,e,l,n)),null;case 27:if(ws(t),n=Se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bs(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return lt(t),null}e=te.current,Xl(t)?Kf(t):(e=Nm(o,l,n),t.stateNode=e,Bs(t))}return lt(t),null;case 5:if(ws(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Bs(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return lt(t),null}if(u=te.current,Xl(t))Kf(t);else{var _=po(Se.current);switch(u){case 1:u=_.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=_.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=_.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=_.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=_.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?_.createElement("select",{is:l.is}):_.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?_.createElement(o,{is:l.is}):_.createElement(o)}}u[Ft]=t,u[un]=l;e:for(_=t.child;_!==null;){if(_.tag===5||_.tag===6)u.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===t)break e;for(;_.sibling===null;){if(_.return===null||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}t.stateNode=u;e:switch(Pt(u,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Bs(t)}}return lt(t),B0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Bs(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=Se.current,Xl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,o=Gt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Ft]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||hm(e.nodeValue,n)),e||ra(t,!0)}else e=po(e).createTextNode(l),e[Ft]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Xl(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ft]=t}else Ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(En(t),t):(En(t),null);if((t.flags&128)!==0)throw Error(r(558))}return lt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Xl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Ft]=t}else Ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),o=!1}else o=Iu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(En(t),t):(En(t),null)}return En(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==o&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Jr(t,t.updateQueue),lt(t),null);case 4:return st(),e===null&&ld(t.stateNode.containerInfo),lt(t),null;case 10:return Ms(t.type),lt(t),null;case 19:if(G(yt),l=t.memoizedState,l===null)return lt(t),null;if(o=(t.flags&128)!==0,u=l.rendering,u===null)if(o)yc(l,!1);else{if(_t!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Hr(e),u!==null){for(t.flags|=128,yc(l,!1),e=u.updateQueue,t.updateQueue=e,Jr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qf(n,e),n=n.sibling;return Z(yt,yt.current&1|2),$e&&Ls(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jn()>ao&&(t.flags|=128,o=!0,yc(l,!1),t.lanes=4194304)}else{if(!o)if(e=Hr(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Jr(t,e),yc(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!$e)return lt(t),null}else 2*jn()-l.renderingStartTime>ao&&n!==536870912&&(t.flags|=128,o=!0,yc(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jn(),e.sibling=null,n=yt.current,Z(yt,o?n&1|2:n&1),$e&&Ls(t,l.treeForkCount),e):(lt(t),null);case 22:case 23:return En(t),i0(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&Jr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&G(Ja),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ms(Nt),lt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Nv(e,t){switch(Qu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ms(Nt),st(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ws(t),null;case 31:if(t.memoizedState!==null){if(En(t),t.alternate===null)throw Error(r(340));Ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(En(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(yt),null;case 4:return st(),null;case 10:return Ms(t.type),null;case 22:case 23:return En(t),i0(),e!==null&&G(Ja),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ms(Nt),null;case 25:return null;default:return null}}function v1(e,t){switch(Qu(t),t.tag){case 3:Ms(Nt),st();break;case 26:case 27:case 5:ws(t);break;case 4:st();break;case 31:t.memoizedState!==null&&En(t);break;case 13:En(t);break;case 19:G(yt);break;case 10:Ms(t.type);break;case 22:case 23:En(t),i0(),e!==null&&G(Ja);break;case 24:Ms(Nt)}}function xc(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var o=l.next;n=o;do{if((n.tag&e)===e){l=void 0;var u=n.create,_=n.inst;l=u(),_.destroy=l}n=n.next}while(n!==o)}}catch(x){Pe(t,t.return,x)}}function pa(e,t,n){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var u=o.next;l=u;do{if((l.tag&e)===e){var _=l.inst,x=_.destroy;if(x!==void 0){_.destroy=void 0,o=t;var T=n,k=x;try{k()}catch(F){Pe(o,T,F)}}}l=l.next}while(l!==u)}}catch(F){Pe(t,t.return,F)}}function y1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{oh(t,n)}catch(l){Pe(e,e.return,l)}}}function x1(e,t,n){n.props=al(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Pe(e,t,l)}}function bc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(o){Pe(e,t,o)}}function hs(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(o){Pe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Pe(e,t,o)}else n.current=null}function b1(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(o){Pe(e,e.return,o)}}function $0(e,t,n){try{var l=e.stateNode;Pv(l,e.type,n,t),l[un]=t}catch(o){Pe(e,e.return,o)}}function j1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ja(e.type)||e.tag===4}function U0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||j1(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&&ja(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 H0(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Es));else if(l!==4&&(l===27&&ja(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(H0(e,t,n),e=e.sibling;e!==null;)H0(e,t,n),e=e.sibling}function eo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&ja(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(eo(e,t,n),e=e.sibling;e!==null;)eo(e,t,n),e=e.sibling}function S1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Pt(t,l,n),t[Ft]=e,t[un]=n}catch(u){Pe(e,e.return,u)}}var $s=!1,Tt=!1,q0=!1,N1=typeof WeakSet=="function"?WeakSet:Set,kt=null;function wv(e,t){if(e=e.containerInfo,rd=jo,e=kf(e),zu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var o=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var _=0,x=-1,T=-1,k=0,F=0,Q=e,$=null;t:for(;;){for(var H;Q!==n||o!==0&&Q.nodeType!==3||(x=_+o),Q!==u||l!==0&&Q.nodeType!==3||(T=_+l),Q.nodeType===3&&(_+=Q.nodeValue.length),(H=Q.firstChild)!==null;)$=Q,Q=H;for(;;){if(Q===e)break t;if($===n&&++k===o&&(x=_),$===u&&++F===l&&(T=_),(H=Q.nextSibling)!==null)break;Q=$,$=Q.parentNode}Q=H}n=x===-1||T===-1?null:{start:x,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(od={focusedElem:e,selectionRange:n},jo=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var se=al(n.type,o);e=l.getSnapshotBeforeUpdate(se,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Pe(n,n.return,ge)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)fd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fd(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,kt=e;break}kt=t.return}}function w1(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Hs(e,n),l&4&&xc(5,n);break;case 1:if(Hs(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(_){Pe(n,n.return,_)}else{var o=al(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(_){Pe(n,n.return,_)}}l&64&&y1(n),l&512&&bc(n,n.return);break;case 3:if(Hs(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{oh(e,t)}catch(_){Pe(n,n.return,_)}}break;case 27:t===null&&l&4&&S1(n);case 26:case 5:Hs(e,n),t===null&&l&4&&b1(n),l&512&&bc(n,n.return);break;case 12:Hs(e,n);break;case 31:Hs(e,n),l&4&&E1(e,n);break;case 13:Hs(e,n),l&4&&R1(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=zv.bind(null,n),ey(e,n))));break;case 22:if(l=n.memoizedState!==null||$s,!l){t=t!==null&&t.memoizedState!==null||Tt,o=$s;var u=Tt;$s=l,(Tt=t)&&!u?qs(e,n,(n.subtreeFlags&8772)!==0):Hs(e,n),$s=o,Tt=u}break;case 30:break;default:Hs(e,n)}}function C1(e){var t=e.alternate;t!==null&&(e.alternate=null,C1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gu(t)),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 ct=null,fn=!1;function Us(e,t,n){for(n=n.child;n!==null;)T1(e,t,n),n=n.sibling}function T1(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Qi,n)}catch{}switch(n.tag){case 26:Tt||hs(n,t),Us(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||hs(n,t);var l=ct,o=fn;ja(n.type)&&(ct=n.stateNode,fn=!1),Us(e,t,n),Ac(n.stateNode),ct=l,fn=o;break;case 5:Tt||hs(n,t);case 6:if(l=ct,o=fn,ct=null,Us(e,t,n),ct=l,fn=o,ct!==null)if(fn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(n.stateNode)}catch(u){Pe(n,t,u)}else try{ct.removeChild(n.stateNode)}catch(u){Pe(n,t,u)}break;case 18:ct!==null&&(fn?(e=ct,ym(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),_i(e)):ym(ct,n.stateNode));break;case 4:l=ct,o=fn,ct=n.stateNode.containerInfo,fn=!0,Us(e,t,n),ct=l,fn=o;break;case 0:case 11:case 14:case 15:pa(2,n,t),Tt||pa(4,n,t),Us(e,t,n);break;case 1:Tt||(hs(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&x1(n,t,l)),Us(e,t,n);break;case 21:Us(e,t,n);break;case 22:Tt=(l=Tt)||n.memoizedState!==null,Us(e,t,n),Tt=l;break;default:Us(e,t,n)}}function E1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_i(e)}catch(n){Pe(t,t.return,n)}}}function R1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_i(e)}catch(n){Pe(t,t.return,n)}}function Cv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new N1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new N1),t;default:throw Error(r(435,e.tag))}}function to(e,t){var n=Cv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var o=Dv.bind(null,e,l);l.then(o,o)}})}function hn(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var o=n[l],u=e,_=t,x=_;e:for(;x!==null;){switch(x.tag){case 27:if(ja(x.type)){ct=x.stateNode,fn=!1;break e}break;case 5:ct=x.stateNode,fn=!1;break e;case 3:case 4:ct=x.stateNode.containerInfo,fn=!0;break e}x=x.return}if(ct===null)throw Error(r(160));T1(u,_,o),ct=null,fn=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)A1(t,e),t=t.sibling}var ts=null;function A1(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hn(t,e),mn(e),l&4&&(pa(3,e,e.return),xc(3,e),pa(5,e,e.return));break;case 1:hn(t,e),mn(e),l&512&&(Tt||n===null||hs(n,n.return)),l&64&&$s&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var o=ts;if(hn(t,e),mn(e),l&512&&(Tt||n===null||hs(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":u=o.getElementsByTagName("title")[0],(!u||u[Yi]||u[Ft]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(l),o.head.insertBefore(u,o.querySelector("head > title"))),Pt(u,l,n),u[Ft]=e,Dt(u),l=u;break e;case"link":var _=Am("link","href",o).get(l+(n.href||""));if(_){for(var x=0;x<_.length;x++)if(u=_[x],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){_.splice(x,1);break t}}u=o.createElement(l),Pt(u,l,n),o.head.appendChild(u);break;case"meta":if(_=Am("meta","content",o).get(l+(n.content||""))){for(x=0;x<_.length;x++)if(u=_[x],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){_.splice(x,1);break t}}u=o.createElement(l),Pt(u,l,n),o.head.appendChild(u);break;default:throw Error(r(468,l))}u[Ft]=e,Dt(u),l=u}e.stateNode=l}else Lm(o,e.type,e.stateNode);else e.stateNode=Rm(o,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Lm(o,e.type,e.stateNode):Rm(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&$0(e,e.memoizedProps,n.memoizedProps)}break;case 27:hn(t,e),mn(e),l&512&&(Tt||n===null||hs(n,n.return)),n!==null&&l&4&&$0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hn(t,e),mn(e),l&512&&(Tt||n===null||hs(n,n.return)),e.flags&32){o=e.stateNode;try{Ul(o,"")}catch(se){Pe(e,e.return,se)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,$0(e,o,n!==null?n.memoizedProps:o)),l&1024&&(q0=!0);break;case 6:if(hn(t,e),mn(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(se){Pe(e,e.return,se)}}break;case 3:if(vo=null,o=ts,ts=_o(t.containerInfo),hn(t,e),ts=o,mn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{_i(t.containerInfo)}catch(se){Pe(e,e.return,se)}q0&&(q0=!1,L1(e));break;case 4:l=ts,ts=_o(e.stateNode.containerInfo),hn(t,e),mn(e),ts=l;break;case 12:hn(t,e),mn(e);break;case 31:hn(t,e),mn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 13:hn(t,e),mn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(so=jn()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 22:o=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,k=$s,F=Tt;if($s=k||o,Tt=F||T,hn(t,e),Tt=F,$s=k,mn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||T||$s||Tt||ll(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(u=T.stateNode,o)_=u.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{x=T.stateNode;var Q=T.memoizedProps.style,$=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(se){Pe(T,T.return,se)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(se){Pe(T,T.return,se)}}}else if(t.tag===18){if(n===null){T=t;try{var H=T.stateNode;o?xm(H,!0):xm(T.stateNode,!1)}catch(se){Pe(T,T.return,se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,to(e,n))));break;case 19:hn(t,e),mn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,to(e,l)));break;case 30:break;case 21:break;default:hn(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(j1(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=U0(e);eo(e,u,o);break;case 5:var _=n.stateNode;n.flags&32&&(Ul(_,""),n.flags&=-33);var x=U0(e);eo(e,x,_);break;case 3:case 4:var T=n.stateNode.containerInfo,k=U0(e);H0(e,k,T);break;default:throw Error(r(161))}}catch(F){Pe(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function L1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;L1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hs(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)w1(e,t.alternate,t),t=t.sibling}function ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pa(4,t,t.return),ll(t);break;case 1:hs(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&x1(t,t.return,n),ll(t);break;case 27:Ac(t.stateNode);case 26:case 5:hs(t,t.return),ll(t);break;case 22:t.memoizedState===null&&ll(t);break;case 30:ll(t);break;default:ll(t)}e=e.sibling}}function qs(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,u=t,_=u.flags;switch(u.tag){case 0:case 11:case 15:qs(o,u,n),xc(4,u);break;case 1:if(qs(o,u,n),l=u,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(k){Pe(l,l.return,k)}if(l=u,o=l.updateQueue,o!==null){var x=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)rh(T[o],x)}catch(k){Pe(l,l.return,k)}}n&&_&64&&y1(u),bc(u,u.return);break;case 27:S1(u);case 26:case 5:qs(o,u,n),n&&l===null&&_&4&&b1(u),bc(u,u.return);break;case 12:qs(o,u,n);break;case 31:qs(o,u,n),n&&_&4&&E1(o,u);break;case 13:qs(o,u,n),n&&_&4&&R1(o,u);break;case 22:u.memoizedState===null&&qs(o,u,n),bc(u,u.return);break;case 30:break;default:qs(o,u,n)}t=t.sibling}}function F0(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&cc(n))}function G0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cc(e))}function ns(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)O1(e,t,n,l),t=t.sibling}function O1(e,t,n,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:ns(e,t,n,l),o&2048&&xc(9,t);break;case 1:ns(e,t,n,l);break;case 3:ns(e,t,n,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cc(e)));break;case 12:if(o&2048){ns(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,_=u.id,x=u.onPostCommit;typeof x=="function"&&x(_,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Pe(t,t.return,T)}}else ns(e,t,n,l);break;case 31:ns(e,t,n,l);break;case 13:ns(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,_=t.alternate,t.memoizedState!==null?u._visibility&2?ns(e,t,n,l):jc(e,t):u._visibility&2?ns(e,t,n,l):(u._visibility|=2,li(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&F0(_,t);break;case 24:ns(e,t,n,l),o&2048&&G0(t.alternate,t);break;default:ns(e,t,n,l)}}function li(e,t,n,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,_=t,x=n,T=l,k=_.flags;switch(_.tag){case 0:case 11:case 15:li(u,_,x,T,o),xc(8,_);break;case 23:break;case 22:var F=_.stateNode;_.memoizedState!==null?F._visibility&2?li(u,_,x,T,o):jc(u,_):(F._visibility|=2,li(u,_,x,T,o)),o&&k&2048&&F0(_.alternate,_);break;case 24:li(u,_,x,T,o),o&&k&2048&&G0(_.alternate,_);break;default:li(u,_,x,T,o)}t=t.sibling}}function jc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,o=l.flags;switch(l.tag){case 22:jc(n,l),o&2048&&F0(l.alternate,l);break;case 24:jc(n,l),o&2048&&G0(l.alternate,l);break;default:jc(n,l)}t=t.sibling}}var Sc=8192;function ii(e,t,n){if(e.subtreeFlags&Sc)for(e=e.child;e!==null;)M1(e,t,n),e=e.sibling}function M1(e,t,n){switch(e.tag){case 26:ii(e,t,n),e.flags&Sc&&e.memoizedState!==null&&fy(n,ts,e.memoizedState,e.memoizedProps);break;case 5:ii(e,t,n);break;case 3:case 4:var l=ts;ts=_o(e.stateNode.containerInfo),ii(e,t,n),ts=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Sc,Sc=16777216,ii(e,t,n),Sc=l):ii(e,t,n));break;default:ii(e,t,n)}}function z1(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];kt=l,k1(l,e)}z1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)D1(e),e=e.sibling}function D1(e){switch(e.tag){case 0:case 11:case 15:Nc(e),e.flags&2048&&pa(9,e,e.return);break;case 3:Nc(e);break;case 12:Nc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,no(e)):Nc(e);break;default:Nc(e)}}function no(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];kt=l,k1(l,e)}z1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pa(8,t,t.return),no(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,no(t));break;default:no(t)}e=e.sibling}}function k1(e,t){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:pa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:cc(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,kt=l;else e:for(n=e;kt!==null;){l=kt;var o=l.sibling,u=l.return;if(C1(l),l===n){kt=null;break e}if(o!==null){o.return=u,kt=o;break e}kt=u}}}var Tv={getCacheForType:function(e){var t=Vt(Nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Vt(Nt).controller.signal}},Ev=typeof WeakMap=="function"?WeakMap:Map,Ge=0,We=null,Le=null,ze=0,Qe=0,Rn=null,_a=!1,ci=!1,V0=!1,Fs=0,_t=0,ga=0,il=0,Q0=0,An=0,ri=0,wc=null,pn=null,P0=!1,so=0,B1=0,ao=1/0,lo=null,va=null,Lt=0,ya=null,oi=null,Gs=0,I0=0,Y0=null,$1=null,Cc=0,X0=null;function Ln(){return(Ge&2)!==0&&ze!==0?ze&-ze:q.T!==null?td():J2()}function U1(){if(An===0)if((ze&536870912)===0||$e){var e=hr;hr<<=1,(hr&3932160)===0&&(hr=262144),An=e}else An=536870912;return e=Tn.current,e!==null&&(e.flags|=32),An}function _n(e,t,n){(e===We&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)&&(ui(e,0),xa(e,ze,An,!1)),Ii(e,n),((Ge&2)===0||e!==We)&&(e===We&&((Ge&2)===0&&(il|=n),_t===4&&xa(e,ze,An,!1)),ms(e))}function H1(e,t,n){if((Ge&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),o=l?Lv(e,t):Z0(e,t,!0),u=l;do{if(o===0){ci&&!l&&xa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Rv(n)){o=Z0(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){t=_;e:{var x=e;o=wc;var T=x.current.memoizedState.isDehydrated;if(T&&(ui(x,_).flags|=256),_=Z0(x,_,!1),_!==2){if(V0&&!T){x.errorRecoveryDisabledLanes|=u,il|=u,o=4;break e}u=pn,pn=o,u!==null&&(pn===null?pn=u:pn.push.apply(pn,u))}o=_}if(u=!1,o!==2)continue}}if(o===1){ui(e,0),xa(e,t,0,!0);break}e:{switch(l=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:xa(l,t,An,!_a);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=so+300-jn(),10<o)){if(xa(l,t,An,!_a),pr(l,0,!0)!==0)break e;Gs=t,l.timeoutHandle=gm(q1.bind(null,l,n,pn,lo,P0,t,An,il,ri,_a,u,"Throttled",-0,0),o);break e}q1(l,n,pn,lo,P0,t,An,il,ri,_a,u,null,-0,0)}}break}while(!0);ms(e)}function q1(e,t,n,l,o,u,_,x,T,k,F,Q,$,H){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Es},M1(t,u,Q);var se=(u&62914560)===u?so-jn():(u&4194048)===u?B1-jn():0;if(se=hy(Q,se),se!==null){Gs=u,e.cancelPendingCommit=se(X1.bind(null,e,t,u,n,l,o,_,x,T,F,Q,null,$,H)),xa(e,u,_,!k);return}}X1(e,t,u,n,l,o,_,x,T)}function Rv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var o=n[l],u=o.getSnapshot;o=o.value;try{if(!wn(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xa(e,t,n,l){t&=~Q0,t&=~il,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var u=31-Nn(o),_=1<<u;l[u]=-1,o&=~_}n!==0&&K2(e,n,t)}function io(){return(Ge&6)===0?(Tc(0),!1):!0}function K0(){if(Le!==null){if(Qe===0)var e=Le.return;else e=Le,Os=Za=null,f0(e),ei=null,oc=0,e=Le;for(;e!==null;)v1(e.alternate,e),e=e.return;Le=null}}function ui(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Gs=0,K0(),We=e,Le=n=As(e.current,null),ze=t,Qe=0,Rn=null,_a=!1,ci=Pi(e,t),V0=!1,ri=An=Q0=il=ga=_t=0,pn=wc=null,P0=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Nn(l),u=1<<o;t|=e[o],l&=~u}return Fs=t,Tr(),n}function F1(e,t){je=null,q.H=gc,t===Jl||t===Dr?(t=ah(),Qe=3):t===e0?(t=ah(),Qe=4):Qe=t===E0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Rn=t,Le===null&&(_t=1,Xr(e,Fn(t,e.current)))}function G1(){var e=Tn.current;return e===null?!0:(ze&4194048)===ze?Pn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Pn:!1}function V1(){var e=q.H;return q.H=gc,e===null?gc:e}function Q1(){var e=q.A;return q.A=Tv,e}function co(){_t=4,_a||(ze&4194048)!==ze&&Tn.current!==null||(ci=!0),(ga&134217727)===0&&(il&134217727)===0||We===null||xa(We,ze,An,!1)}function Z0(e,t,n){var l=Ge;Ge|=2;var o=V1(),u=Q1();(We!==e||ze!==t)&&(lo=null,ui(e,t)),t=!1;var _=_t;e:do try{if(Qe!==0&&Le!==null){var x=Le,T=Rn;switch(Qe){case 8:K0(),_=6;break e;case 3:case 2:case 9:case 6:Tn.current===null&&(t=!0);var k=Qe;if(Qe=0,Rn=null,di(e,x,T,k),n&&ci){_=0;break e}break;default:k=Qe,Qe=0,Rn=null,di(e,x,T,k)}}Av(),_=_t;break}catch(F){F1(e,F)}while(!0);return t&&e.shellSuspendCounter++,Os=Za=null,Ge=l,q.H=o,q.A=u,Le===null&&(We=null,ze=0,Tr()),_}function Av(){for(;Le!==null;)P1(Le)}function Lv(e,t){var n=Ge;Ge|=2;var l=V1(),o=Q1();We!==e||ze!==t?(lo=null,ao=jn()+500,ui(e,t)):ci=Pi(e,t);e:do try{if(Qe!==0&&Le!==null){t=Le;var u=Rn;t:switch(Qe){case 1:Qe=0,Rn=null,di(e,t,u,1);break;case 2:case 9:if(nh(u)){Qe=0,Rn=null,I1(t);break}t=function(){Qe!==2&&Qe!==9||We!==e||(Qe=7),ms(e)},u.then(t,t);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:nh(u)?(Qe=0,Rn=null,I1(t)):(Qe=0,Rn=null,di(e,t,u,7));break;case 5:var _=null;switch(Le.tag){case 26:_=Le.memoizedState;case 5:case 27:var x=Le;if(_?Om(_):x.stateNode.complete){Qe=0,Rn=null;var T=x.sibling;if(T!==null)Le=T;else{var k=x.return;k!==null?(Le=k,ro(k)):Le=null}break t}}Qe=0,Rn=null,di(e,t,u,5);break;case 6:Qe=0,Rn=null,di(e,t,u,6);break;case 8:K0(),_t=6;break e;default:throw Error(r(462))}}Ov();break}catch(F){F1(e,F)}while(!0);return Os=Za=null,q.H=l,q.A=o,Ge=n,Le!==null?0:(We=null,ze=0,Tr(),_t)}function Ov(){for(;Le!==null&&!tg();)P1(Le)}function P1(e){var t=_1(e.alternate,e,Fs);e.memoizedProps=e.pendingProps,t===null?ro(e):Le=t}function I1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=u1(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=u1(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:f0(t);default:v1(n,t),t=Le=Qf(t,Fs),t=_1(n,t,Fs)}e.memoizedProps=e.pendingProps,t===null?ro(e):Le=t}function di(e,t,n,l){Os=Za=null,f0(t),ei=null,oc=0;var o=t.return;try{if(xv(e,o,t,n,ze)){_t=1,Xr(e,Fn(n,e.current)),Le=null;return}}catch(u){if(o!==null)throw Le=o,u;_t=1,Xr(e,Fn(n,e.current)),Le=null;return}t.flags&32768?($e||l===1?e=!0:ci||(ze&536870912)!==0?e=!1:(_a=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Y1(t,e)):ro(t)}function ro(e){var t=e;do{if((t.flags&32768)!==0){Y1(t,_a);return}e=t.return;var n=Sv(t.alternate,t,Fs);if(n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);_t===0&&(_t=5)}function Y1(e,t){do{var n=Nv(e.alternate,e);if(n!==null){n.flags&=32767,Le=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=n}while(e!==null);_t=6,Le=null}function X1(e,t,n,l,o,u,_,x,T){e.cancelPendingCommit=null;do oo();while(Lt!==0);if((Ge&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Uu,dg(e,n,u,_,x,T),e===We&&(Le=We=null,ze=0),oi=t,ya=e,Gs=n,I0=u,Y0=o,$1=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kv(dr,function(){return em(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=q.T,q.T=null,o=Y.p,Y.p=2,_=Ge,Ge|=4;try{wv(e,t,n)}finally{Ge=_,Y.p=o,q.T=l}}Lt=1,K1(),Z1(),W1()}}function K1(){if(Lt===1){Lt=0;var e=ya,t=oi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var l=Y.p;Y.p=2;var o=Ge;Ge|=4;try{A1(t,e);var u=od,_=kf(e.containerInfo),x=u.focusedElem,T=u.selectionRange;if(_!==x&&x&&x.ownerDocument&&Df(x.ownerDocument.documentElement,x)){if(T!==null&&zu(x)){var k=T.start,F=T.end;if(F===void 0&&(F=k),"selectionStart"in x)x.selectionStart=k,x.selectionEnd=Math.min(F,x.value.length);else{var Q=x.ownerDocument||document,$=Q&&Q.defaultView||window;if($.getSelection){var H=$.getSelection(),se=x.textContent.length,ge=Math.min(T.start,se),Ke=T.end===void 0?ge:Math.min(T.end,se);!H.extend&&ge>Ke&&(_=Ke,Ke=ge,ge=_);var O=zf(x,ge),L=zf(x,Ke);if(O&&L&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==L.node||H.focusOffset!==L.offset)){var D=Q.createRange();D.setStart(O.node,O.offset),H.removeAllRanges(),ge>Ke?(H.addRange(D),H.extend(L.node,L.offset)):(D.setEnd(L.node,L.offset),H.addRange(D))}}}}for(Q=[],H=x;H=H.parentNode;)H.nodeType===1&&Q.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var V=Q[x];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}jo=!!rd,od=rd=null}finally{Ge=o,Y.p=l,q.T=n}}e.current=t,Lt=2}}function Z1(){if(Lt===2){Lt=0;var e=ya,t=oi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var l=Y.p;Y.p=2;var o=Ge;Ge|=4;try{w1(e,t.alternate,t)}finally{Ge=o,Y.p=l,q.T=n}}Lt=3}}function W1(){if(Lt===4||Lt===3){Lt=0,ng();var e=ya,t=oi,n=Gs,l=$1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Lt=5:(Lt=0,oi=ya=null,J1(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(va=null),pu(n),t=t.stateNode,Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Qi,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=q.T,o=Y.p,Y.p=2,q.T=null;try{for(var u=e.onRecoverableError,_=0;_<l.length;_++){var x=l[_];u(x.value,{componentStack:x.stack})}}finally{q.T=t,Y.p=o}}(Gs&3)!==0&&oo(),ms(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===X0?Cc++:(Cc=0,X0=e):Cc=0,Tc(0)}}function J1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cc(t)))}function oo(){return K1(),Z1(),W1(),em()}function em(){if(Lt!==5)return!1;var e=ya,t=I0;I0=0;var n=pu(Gs),l=q.T,o=Y.p;try{Y.p=32>n?32:n,q.T=null,n=Y0,Y0=null;var u=ya,_=Gs;if(Lt=0,oi=ya=null,Gs=0,(Ge&6)!==0)throw Error(r(331));var x=Ge;if(Ge|=4,D1(u.current),O1(u,u.current,_,n),Ge=x,Tc(0,!1),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Qi,u)}catch{}return!0}finally{Y.p=o,q.T=l,J1(e,t)}}function tm(e,t,n){t=Fn(n,t),t=T0(e.stateNode,t,2),e=fa(e,t,2),e!==null&&(Ii(e,2),ms(e))}function Pe(e,t,n){if(e.tag===3)tm(e,e,n);else for(;t!==null;){if(t.tag===3){tm(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(va===null||!va.has(l))){e=Fn(n,e),n=n1(2),l=fa(t,n,2),l!==null&&(s1(n,l,t,e),Ii(l,2),ms(l));break}}t=t.return}}function W0(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Ev;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(n)||(V0=!0,o.add(n),e=Mv.bind(null,e,t,n),t.then(e,e))}function Mv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,We===e&&(ze&n)===n&&(_t===4||_t===3&&(ze&62914560)===ze&&300>jn()-so?(Ge&2)===0&&ui(e,0):Q0|=n,ri===ze&&(ri=0)),ms(e)}function nm(e,t){t===0&&(t=X2()),e=Ya(e,t),e!==null&&(Ii(e,t),ms(e))}function zv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nm(e,n)}function Dv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),nm(e,n)}function kv(e,t){return Ol(e,t)}var uo=null,fi=null,J0=!1,fo=!1,ed=!1,ba=0;function ms(e){e!==fi&&e.next===null&&(fi===null?uo=fi=e:fi=fi.next=e),fo=!0,J0||(J0=!0,$v())}function Tc(e,t){if(!ed&&fo){ed=!0;do for(var n=!1,l=uo;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var u=0;else{var _=l.suspendedLanes,x=l.pingedLanes;u=(1<<31-Nn(42|e)+1)-1,u&=o&~(_&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,im(l,u))}else u=ze,u=pr(l,l===We?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Pi(l,u)||(n=!0,im(l,u));l=l.next}while(n);ed=!1}}function Bv(){sm()}function sm(){fo=J0=!1;var e=0;ba!==0&&Yv()&&(e=ba);for(var t=jn(),n=null,l=uo;l!==null;){var o=l.next,u=am(l,t);u===0?(l.next=null,n===null?uo=o:n.next=o,o===null&&(fi=n)):(n=l,(e!==0||(u&3)!==0)&&(fo=!0)),l=o}Lt!==0&&Lt!==5||Tc(e),ba!==0&&(ba=0)}function am(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var _=31-Nn(u),x=1<<_,T=o[_];T===-1?((x&n)===0||(x&l)!==0)&&(o[_]=ug(x,t)):T<=t&&(e.expiredLanes|=x),u&=~x}if(t=We,n=ze,n=pr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Qe===2||Qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&fu(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&fu(l),pu(n)){case 2:case 8:n=I2;break;case 32:n=dr;break;case 268435456:n=Y2;break;default:n=dr}return l=lm.bind(null,e),n=Ol(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&fu(l),e.callbackPriority=2,e.callbackNode=null,2}function lm(e,t){if(Lt!==0&&Lt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(oo()&&e.callbackNode!==n)return null;var l=ze;return l=pr(e,e===We?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(H1(e,l,t),am(e,jn()),e.callbackNode!=null&&e.callbackNode===n?lm.bind(null,e):null)}function im(e,t){if(oo())return null;H1(e,t,!0)}function $v(){Kv(function(){(Ge&6)!==0?Ol(P2,Bv):sm()})}function td(){if(ba===0){var e=Zl;e===0&&(e=fr,fr<<=1,(fr&261888)===0&&(fr=256)),ba=e}return ba}function cm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yr(""+e)}function rm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Uv(e,t,n,l,o){if(t==="submit"&&n&&n.stateNode===o){var u=cm((o[un]||null).action),_=l.submitter;_&&(t=(t=_[un]||null)?cm(t.formAction):_.getAttribute("formAction"),t!==null&&(u=t,_=null));var x=new Sr("action","action",null,l,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ba!==0){var T=_?rm(o,_):new FormData(o);b0(n,{pending:!0,data:T,method:o.method,action:u},null,T)}}else typeof u=="function"&&(x.preventDefault(),T=_?rm(o,_):new FormData(o),b0(n,{pending:!0,data:T,method:o.method,action:u},u,T))},currentTarget:o}]})}}for(var nd=0;nd<$u.length;nd++){var sd=$u[nd],Hv=sd.toLowerCase(),qv=sd[0].toUpperCase()+sd.slice(1);es(Hv,"on"+qv)}es(Uf,"onAnimationEnd"),es(Hf,"onAnimationIteration"),es(qf,"onAnimationStart"),es("dblclick","onDoubleClick"),es("focusin","onFocus"),es("focusout","onBlur"),es(sv,"onTransitionRun"),es(av,"onTransitionStart"),es(lv,"onTransitionCancel"),es(Ff,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ec="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(" "),Fv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ec));function om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],o=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var _=l.length-1;0<=_;_--){var x=l[_],T=x.instance,k=x.currentTarget;if(x=x.listener,T!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=k;try{u(o)}catch(F){Cr(F)}o.currentTarget=null,u=T}else for(_=0;_<l.length;_++){if(x=l[_],T=x.instance,k=x.currentTarget,x=x.listener,T!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=k;try{u(o)}catch(F){Cr(F)}o.currentTarget=null,u=T}}}}function Oe(e,t){var n=t[_u];n===void 0&&(n=t[_u]=new Set);var l=e+"__bubble";n.has(l)||(um(t,e,2,!1),n.add(l))}function ad(e,t,n){var l=0;t&&(l|=4),um(n,e,l,t)}var ho="_reactListening"+Math.random().toString(36).slice(2);function ld(e){if(!e[ho]){e[ho]=!0,nf.forEach(function(n){n!=="selectionchange"&&(Fv.has(n)||ad(n,!1,e),ad(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ho]||(t[ho]=!0,ad("selectionchange",!1,t))}}function um(e,t,n,l){switch(Um(t)){case 2:var o=_y;break;case 8:o=gy;break;default:o=xd}n=o.bind(null,t,n,e),o=void 0,!wu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function id(e,t,n,l,o){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var _=l.tag;if(_===3||_===4){var x=l.stateNode.containerInfo;if(x===o)break;if(_===4)for(_=l.return;_!==null;){var T=_.tag;if((T===3||T===4)&&_.stateNode.containerInfo===o)return;_=_.return}for(;x!==null;){if(_=zl(x),_===null)return;if(T=_.tag,T===5||T===6||T===26||T===27){l=u=_;continue e}x=x.parentNode}}l=l.return}pf(function(){var k=u,F=Su(n),Q=[];e:{var $=Gf.get(e);if($!==void 0){var H=Sr,se=e;switch(e){case"keypress":if(br(n)===0)break e;case"keydown":case"keyup":H=Dg;break;case"focusin":se="focus",H=Ru;break;case"focusout":se="blur",H=Ru;break;case"beforeblur":case"afterblur":H=Ru;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Sg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=$g;break;case Uf:case Hf:case qf:H=Cg;break;case Ff:H=Hg;break;case"scroll":case"scrollend":H=bg;break;case"wheel":H=Fg;break;case"copy":case"cut":case"paste":H=Eg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=xf;break;case"toggle":case"beforetoggle":H=Vg}var ge=(t&4)!==0,Ke=!ge&&(e==="scroll"||e==="scrollend"),O=ge?$!==null?$+"Capture":null:$;ge=[];for(var L=k,D;L!==null;){var V=L;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||O===null||(V=Ki(L,O),V!=null&&ge.push(Rc(L,V,D))),Ke)break;L=L.return}0<ge.length&&($=new H($,se,null,n,F),Q.push({event:$,listeners:ge}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",$&&n!==ju&&(se=n.relatedTarget||n.fromElement)&&(zl(se)||se[Ml]))break e;if((H||$)&&($=F.window===F?F:($=F.ownerDocument)?$.defaultView||$.parentWindow:window,H?(se=n.relatedTarget||n.toElement,H=k,se=se?zl(se):null,se!==null&&(Ke=f(se),ge=se.tag,se!==Ke||ge!==5&&ge!==27&&ge!==6)&&(se=null)):(H=null,se=k),H!==se)){if(ge=vf,V="onMouseLeave",O="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(ge=xf,V="onPointerLeave",O="onPointerEnter",L="pointer"),Ke=H==null?$:Xi(H),D=se==null?$:Xi(se),$=new ge(V,L+"leave",H,n,F),$.target=Ke,$.relatedTarget=D,V=null,zl(F)===k&&(ge=new ge(O,L+"enter",se,n,F),ge.target=D,ge.relatedTarget=Ke,V=ge),Ke=V,H&&se)t:{for(ge=Gv,O=H,L=se,D=0,V=O;V;V=ge(V))D++;V=0;for(var fe=L;fe;fe=ge(fe))V++;for(;0<D-V;)O=ge(O),D--;for(;0<V-D;)L=ge(L),V--;for(;D--;){if(O===L||L!==null&&O===L.alternate){ge=O;break t}O=ge(O),L=ge(L)}ge=null}else ge=null;H!==null&&dm(Q,$,H,ge,!1),se!==null&&Ke!==null&&dm(Q,Ke,se,ge,!0)}}e:{if($=k?Xi(k):window,H=$.nodeName&&$.nodeName.toLowerCase(),H==="select"||H==="input"&&$.type==="file")var qe=Ef;else if(Cf($))if(Rf)qe=ev;else{qe=Wg;var le=Zg}else H=$.nodeName,!H||H.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?k&&bu(k.elementType)&&(qe=Ef):qe=Jg;if(qe&&(qe=qe(e,k))){Tf(Q,qe,n,F);break e}le&&le(e,$,k),e==="focusout"&&k&&$.type==="number"&&k.memoizedProps.value!=null&&xu($,"number",$.value)}switch(le=k?Xi(k):window,e){case"focusin":(Cf(le)||le.contentEditable==="true")&&(Gl=le,Du=k,ac=null);break;case"focusout":ac=Du=Gl=null;break;case"mousedown":ku=!0;break;case"contextmenu":case"mouseup":case"dragend":ku=!1,Bf(Q,n,F);break;case"selectionchange":if(nv)break;case"keydown":case"keyup":Bf(Q,n,F)}var Ne;if(Lu)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Fl?Nf(e,n)&&(De="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(De="onCompositionStart");De&&(bf&&n.locale!=="ko"&&(Fl||De!=="onCompositionStart"?De==="onCompositionEnd"&&Fl&&(Ne=_f()):(la=F,Cu="value"in la?la.value:la.textContent,Fl=!0)),le=mo(k,De),0<le.length&&(De=new yf(De,e,null,n,F),Q.push({event:De,listeners:le}),Ne?De.data=Ne:(Ne=wf(n),Ne!==null&&(De.data=Ne)))),(Ne=Pg?Ig(e,n):Yg(e,n))&&(De=mo(k,"onBeforeInput"),0<De.length&&(le=new yf("onBeforeInput","beforeinput",null,n,F),Q.push({event:le,listeners:De}),le.data=Ne)),Uv(Q,e,k,n,F)}om(Q,t)})}function Rc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mo(e,t){for(var n=t+"Capture",l=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ki(e,n),o!=null&&l.unshift(Rc(e,o,u)),o=Ki(e,t),o!=null&&l.push(Rc(e,o,u))),e.tag===3)return l;e=e.return}return[]}function Gv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dm(e,t,n,l,o){for(var u=t._reactName,_=[];n!==null&&n!==l;){var x=n,T=x.alternate,k=x.stateNode;if(x=x.tag,T!==null&&T===l)break;x!==5&&x!==26&&x!==27||k===null||(T=k,o?(k=Ki(n,u),k!=null&&_.unshift(Rc(n,k,T))):o||(k=Ki(n,u),k!=null&&_.push(Rc(n,k,T)))),n=n.return}_.length!==0&&e.push({event:t,listeners:_})}var Vv=/\r\n?/g,Qv=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(Vv,`
`).replace(Qv,"")}function hm(e,t){return t=fm(t),fm(e)===t}function Xe(e,t,n,l,o,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":gr(e,"class",l);break;case"tabIndex":gr(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":gr(e,n,l);break;case"style":hf(e,l,u);break;case"data":if(t!=="object"){gr(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=yr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&Xe(e,t,"name",o.name,o,null),Xe(e,t,"formEncType",o.formEncType,o,null),Xe(e,t,"formMethod",o.formMethod,o,null),Xe(e,t,"formTarget",o.formTarget,o,null)):(Xe(e,t,"encType",o.encType,o,null),Xe(e,t,"method",o.method,o,null),Xe(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=yr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Es);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=yr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),_r(e,"popover",l);break;case"xlinkActuate":Ts(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ts(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ts(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ts(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ts(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ts(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ts(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ts(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ts(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_r(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=yg.get(n)||n,_r(e,n,l))}}function cd(e,t,n,l,o,u){switch(n){case"style":hf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Es);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[un]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof l=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,o);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):_r(e,n,l)}}}function Pt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var _=n[u];if(_!=null)switch(u){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Xe(e,t,u,_,n,null)}}o&&Xe(e,t,"srcSet",n.srcSet,n,null),l&&Xe(e,t,"src",n.src,n,null);return;case"input":Oe("invalid",e);var x=u=_=o=null,T=null,k=null;for(l in n)if(n.hasOwnProperty(l)){var F=n[l];if(F!=null)switch(l){case"name":o=F;break;case"type":_=F;break;case"checked":T=F;break;case"defaultChecked":k=F;break;case"value":u=F;break;case"defaultValue":x=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,t));break;default:Xe(e,t,l,F,n,null)}}of(e,u,x,T,k,_,o,!1);return;case"select":Oe("invalid",e),l=_=u=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":u=x;break;case"defaultValue":_=x;break;case"multiple":l=x;default:Xe(e,t,o,x,n,null)}t=u,n=_,e.multiple=!!l,t!=null?$l(e,!!l,t,!1):n!=null&&$l(e,!!l,n,!0);return;case"textarea":Oe("invalid",e),u=o=l=null;for(_ in n)if(n.hasOwnProperty(_)&&(x=n[_],x!=null))switch(_){case"value":l=x;break;case"defaultValue":o=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Xe(e,t,_,x,n,null)}df(e,l,o,u);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Xe(e,t,T,l,n,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Ec.length;l++)Oe(Ec[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Xe(e,t,k,l,n,null)}return;default:if(bu(t)){for(F in n)n.hasOwnProperty(F)&&(l=n[F],l!==void 0&&cd(e,t,F,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&Xe(e,t,x,l,n,null))}function Pv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,_=null,x=null,T=null,k=null,F=null;for(H in n){var Q=n[H];if(n.hasOwnProperty(H)&&Q!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=Q;default:l.hasOwnProperty(H)||Xe(e,t,H,null,l,Q)}}for(var $ in l){var H=l[$];if(Q=n[$],l.hasOwnProperty($)&&(H!=null||Q!=null))switch($){case"type":u=H;break;case"name":o=H;break;case"checked":k=H;break;case"defaultChecked":F=H;break;case"value":_=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:H!==Q&&Xe(e,t,$,H,l,Q)}}yu(e,_,x,T,k,F,u,o);return;case"select":H=_=x=$=null;for(u in n)if(T=n[u],n.hasOwnProperty(u)&&T!=null)switch(u){case"value":break;case"multiple":H=T;default:l.hasOwnProperty(u)||Xe(e,t,u,null,l,T)}for(o in l)if(u=l[o],T=n[o],l.hasOwnProperty(o)&&(u!=null||T!=null))switch(o){case"value":$=u;break;case"defaultValue":x=u;break;case"multiple":_=u;default:u!==T&&Xe(e,t,o,u,l,T)}t=x,n=_,l=H,$!=null?$l(e,!!n,$,!1):!!l!=!!n&&(t!=null?$l(e,!!n,t,!0):$l(e,!!n,n?[]:"",!1));return;case"textarea":H=$=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Xe(e,t,x,null,l,o)}for(_ in l)if(o=l[_],u=n[_],l.hasOwnProperty(_)&&(o!=null||u!=null))switch(_){case"value":$=o;break;case"defaultValue":H=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Xe(e,t,_,o,l,u)}uf(e,$,H);return;case"option":for(var se in n)if($=n[se],n.hasOwnProperty(se)&&$!=null&&!l.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:Xe(e,t,se,null,l,$)}for(T in l)if($=l[T],H=n[T],l.hasOwnProperty(T)&&$!==H&&($!=null||H!=null))switch(T){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Xe(e,t,T,$,l,H)}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 ge in n)$=n[ge],n.hasOwnProperty(ge)&&$!=null&&!l.hasOwnProperty(ge)&&Xe(e,t,ge,null,l,$);for(k in l)if($=l[k],H=n[k],l.hasOwnProperty(k)&&$!==H&&($!=null||H!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,t));break;default:Xe(e,t,k,$,l,H)}return;default:if(bu(t)){for(var Ke in n)$=n[Ke],n.hasOwnProperty(Ke)&&$!==void 0&&!l.hasOwnProperty(Ke)&&cd(e,t,Ke,void 0,l,$);for(F in l)$=l[F],H=n[F],!l.hasOwnProperty(F)||$===H||$===void 0&&H===void 0||cd(e,t,F,$,l,H);return}}for(var O in n)$=n[O],n.hasOwnProperty(O)&&$!=null&&!l.hasOwnProperty(O)&&Xe(e,t,O,null,l,$);for(Q in l)$=l[Q],H=n[Q],!l.hasOwnProperty(Q)||$===H||$==null&&H==null||Xe(e,t,Q,$,l,H)}function mm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Iv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var o=n[l],u=o.transferSize,_=o.initiatorType,x=o.duration;if(u&&x&&mm(_)){for(_=0,x=o.responseEnd,l+=1;l<n.length;l++){var T=n[l],k=T.startTime;if(k>x)break;var F=T.transferSize,Q=T.initiatorType;F&&mm(Q)&&(T=T.responseEnd,_+=F*(T<x?1:(x-k)/(T-k)))}if(--l,t+=8*(u+_)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var rd=null,od=null;function po(e){return e.nodeType===9?e:e.ownerDocument}function pm(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 _m(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ud(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dd=null;function Yv(){var e=window.event;return e&&e.type==="popstate"?e===dd?!1:(dd=e,!0):(dd=null,!1)}var gm=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(Zv)}:gm;function Zv(e){setTimeout(function(){throw e})}function ja(e){return e==="head"}function ym(e,t){var n=t,l=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(o),_i(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ac(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ac(n);for(var u=n.firstChild;u;){var _=u.nextSibling,x=u.nodeName;u[Yi]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=_}}else n==="body"&&Ac(e.ownerDocument.body);n=o}while(n);_i(t)}function xm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function fd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":fd(n),gu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Wv(e,t,n,l){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Yi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=In(e.nextSibling),e===null)break}return null}function Jv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=In(e.nextSibling),e===null))return null;return e}function bm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=In(e.nextSibling),e===null))return null;return e}function hd(e){return e.data==="$?"||e.data==="$~"}function md(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ey(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function In(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var pd=null;function jm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return In(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Nm(e,t,n){switch(t=po(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ac(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gu(e)}var Yn=new Map,wm=new Set;function _o(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vs=Y.d;Y.d={f:ty,r:ny,D:sy,C:ay,L:ly,m:iy,X:ry,S:cy,M:oy};function ty(){var e=Vs.f(),t=io();return e||t}function ny(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?Fh(t):Vs.r(e)}var hi=typeof document>"u"?null:document;function Cm(e,t,n){var l=hi;if(l&&typeof t=="string"&&t){var o=Hn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),wm.has(o)||(wm.add(o),e={rel:e,crossOrigin:n,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Pt(t,"link",e),Dt(t),l.head.appendChild(t)))}}function sy(e){Vs.D(e),Cm("dns-prefetch",e,null)}function ay(e,t){Vs.C(e,t),Cm("preconnect",e,t)}function ly(e,t,n){Vs.L(e,t,n);var l=hi;if(l&&e&&t){var o='link[rel="preload"][as="'+Hn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Hn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Hn(n.imageSizes)+'"]')):o+='[href="'+Hn(e)+'"]';var u=o;switch(t){case"style":u=mi(e);break;case"script":u=pi(e)}Yn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Yn.set(u,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(Lc(u))||t==="script"&&l.querySelector(Oc(u))||(t=l.createElement("link"),Pt(t,"link",e),Dt(t),l.head.appendChild(t)))}}function iy(e,t){Vs.m(e,t);var n=hi;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Hn(l)+'"][href="'+Hn(e)+'"]',u=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=pi(e)}if(!Yn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Yn.set(u,e),n.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oc(u)))return}l=n.createElement("link"),Pt(l,"link",e),Dt(l),n.head.appendChild(l)}}}function cy(e,t,n){Vs.S(e,t,n);var l=hi;if(l&&e){var o=kl(l).hoistableStyles,u=mi(e);t=t||"default";var _=o.get(u);if(!_){var x={loading:0,preload:null};if(_=l.querySelector(Lc(u)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Yn.get(u))&&_d(e,n);var T=_=l.createElement("link");Dt(T),Pt(T,"link",e),T._p=new Promise(function(k,F){T.onload=k,T.onerror=F}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,go(_,t,l)}_={type:"stylesheet",instance:_,count:1,state:x},o.set(u,_)}}}function ry(e,t){Vs.X(e,t);var n=hi;if(n&&e){var l=kl(n).hoistableScripts,o=pi(e),u=l.get(o);u||(u=n.querySelector(Oc(o)),u||(e=y({src:e,async:!0},t),(t=Yn.get(o))&&gd(e,t),u=n.createElement("script"),Dt(u),Pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function oy(e,t){Vs.M(e,t);var n=hi;if(n&&e){var l=kl(n).hoistableScripts,o=pi(e),u=l.get(o);u||(u=n.querySelector(Oc(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Yn.get(o))&&gd(e,t),u=n.createElement("script"),Dt(u),Pt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(o,u))}}function Tm(e,t,n,l){var o=(o=Se.current)?_o(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=mi(n.href),n=kl(o).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=mi(n.href);var u=kl(o).hoistableStyles,_=u.get(e);if(_||(o=o.ownerDocument||o,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,_),(u=o.querySelector(Lc(e)))&&!u._p&&(_.instance=u,_.state.loading=5),Yn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Yn.set(e,n),u||uy(o,e,n,_.state))),t&&l===null)throw Error(r(528,""));return _}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pi(n),n=kl(o).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function mi(e){return'href="'+Hn(e)+'"'}function Lc(e){return'link[rel="stylesheet"]['+e+"]"}function Em(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function uy(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Pt(t,"link",n),Dt(t),e.head.appendChild(t))}function pi(e){return'[src="'+Hn(e)+'"]'}function Oc(e){return"script[async]"+e}function Rm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Hn(n.href)+'"]');if(l)return t.instance=l,Dt(l),l;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Dt(l),Pt(l,"style",o),go(l,n.precedence,e),t.instance=l;case"stylesheet":o=mi(n.href);var u=e.querySelector(Lc(o));if(u)return t.state.loading|=4,t.instance=u,Dt(u),u;l=Em(n),(o=Yn.get(o))&&_d(l,o),u=(e.ownerDocument||e).createElement("link"),Dt(u);var _=u;return _._p=new Promise(function(x,T){_.onload=x,_.onerror=T}),Pt(u,"link",l),t.state.loading|=4,go(u,n.precedence,e),t.instance=u;case"script":return u=pi(n.src),(o=e.querySelector(Oc(u)))?(t.instance=o,Dt(o),o):(l=n,(o=Yn.get(u))&&(l=y({},n),gd(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Dt(o),Pt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,go(l,n.precedence,e));return t.instance}function go(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,u=o,_=0;_<l.length;_++){var x=l[_];if(x.dataset.precedence===t)u=x;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _d(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vo=null;function Am(e,t,n){if(vo===null){var l=new Map,o=vo=new Map;o.set(n,l)}else o=vo,l=o.get(n),l||(l=new Map,o.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[Yi]||u[Ft]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var _=u.getAttribute(t)||"";_=e+_;var x=l.get(_);x?x.push(u):l.set(_,[u])}}return l}function Lm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function dy(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Om(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fy(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=mi(l.href),u=t.querySelector(Lc(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Dt(u);return}u=t.ownerDocument||t,l=Em(l),(o=Yn.get(o))&&_d(l,o),u=u.createElement("link"),Dt(u);var _=u;_._p=new Promise(function(x,T){_.onload=x,_.onerror=T}),Pt(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=yo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var vd=0;function hy(e,t){return e.stylesheets&&e.count===0&&bo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&vd===0&&(vd=62500*Iv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>vd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xo=null;function bo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xo=new Map,t.forEach(my,e),xo=null,yo.call(e))}function my(e,t){if(!(t.state.loading&4)){var n=xo.get(e);if(n)var l=n.get(null);else{n=new Map,xo.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var _=o[u];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(n.set(_.dataset.precedence,_),l=_)}l&&n.set(null,l)}o=t.instance,_=o.getAttribute("data-precedence"),u=n.get(_)||l,u===l&&n.set(null,o),n.set(_,o),this.count++,l=yo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Mc={$$typeof:M,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function py(e,t,n,l,o,u,_,x,T){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=hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hu(0),this.hiddenUpdates=hu(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Mm(e,t,n,l,o,u,_,x,T,k,F,Q){return e=new py(e,t,n,_,T,k,F,Q,x),t=1,u===!0&&(t|=24),u=Cn(3,null,null,t),e.current=u,u.stateNode=e,t=Zu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},t0(u),e}function zm(e){return e?(e=Pl,e):Pl}function Dm(e,t,n,l,o,u){o=zm(o),l.context===null?l.context=o:l.pendingContext=o,l=da(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=fa(e,l,t),n!==null&&(_n(n,e,t),dc(n,e,t))}function km(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yd(e,t){km(e,t),(e=e.alternate)&&km(e,t)}function Bm(e){if(e.tag===13||e.tag===31){var t=Ya(e,67108864);t!==null&&_n(t,e,67108864),yd(e,67108864)}}function $m(e){if(e.tag===13||e.tag===31){var t=Ln();t=mu(t);var n=Ya(e,t);n!==null&&_n(n,e,t),yd(e,t)}}var jo=!0;function _y(e,t,n,l){var o=q.T;q.T=null;var u=Y.p;try{Y.p=2,xd(e,t,n,l)}finally{Y.p=u,q.T=o}}function gy(e,t,n,l){var o=q.T;q.T=null;var u=Y.p;try{Y.p=8,xd(e,t,n,l)}finally{Y.p=u,q.T=o}}function xd(e,t,n,l){if(jo){var o=bd(l);if(o===null)id(e,t,l,So,n),Hm(e,l);else if(yy(o,e,t,n,l))l.stopPropagation();else if(Hm(e,l),t&4&&-1<vy.indexOf(e)){for(;o!==null;){var u=Dl(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var _=Ga(u.pendingLanes);if(_!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;_;){var T=1<<31-Nn(_);x.entanglements[1]|=T,_&=~T}ms(u),(Ge&6)===0&&(ao=jn()+500,Tc(0))}}break;case 31:case 13:x=Ya(u,2),x!==null&&_n(x,u,2),io(),yd(u,2)}if(u=bd(l),u===null&&id(e,t,l,So,n),u===o)break;o=u}o!==null&&l.stopPropagation()}else id(e,t,l,null,n)}}function bd(e){return e=Su(e),jd(e)}var So=null;function jd(e){if(So=null,e=zl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return So=e,null}function Um(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(sg()){case P2:return 2;case I2:return 8;case dr:case ag:return 32;case Y2:return 268435456;default:return 32}default:return 32}}var Sd=!1,Sa=null,Na=null,wa=null,zc=new Map,Dc=new Map,Ca=[],vy="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 Hm(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":Na=null;break;case"mouseover":case"mouseout":wa=null;break;case"pointerover":case"pointerout":zc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dc.delete(t.pointerId)}}function kc(e,t,n,l,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Dl(t),t!==null&&Bm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function yy(e,t,n,l,o){switch(t){case"focusin":return Sa=kc(Sa,e,t,n,l,o),!0;case"dragenter":return Na=kc(Na,e,t,n,l,o),!0;case"mouseover":return wa=kc(wa,e,t,n,l,o),!0;case"pointerover":var u=o.pointerId;return zc.set(u,kc(zc.get(u)||null,e,t,n,l,o)),!0;case"gotpointercapture":return u=o.pointerId,Dc.set(u,kc(Dc.get(u)||null,e,t,n,l,o)),!0}return!1}function qm(e){var t=zl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,ef(e.priority,function(){$m(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,ef(e.priority,function(){$m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function No(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bd(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ju=l,n.target.dispatchEvent(l),ju=null}else return t=Dl(n),t!==null&&Bm(t),e.blockedOn=n,!1;t.shift()}return!0}function Fm(e,t,n){No(e)&&n.delete(t)}function xy(){Sd=!1,Sa!==null&&No(Sa)&&(Sa=null),Na!==null&&No(Na)&&(Na=null),wa!==null&&No(wa)&&(wa=null),zc.forEach(Fm),Dc.forEach(Fm)}function wo(e,t){e.blockedOn===t&&(e.blockedOn=null,Sd||(Sd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,xy)))}var Co=null;function Gm(e){Co!==e&&(Co=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Co===e&&(Co=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(jd(l||n)===null)continue;break}var u=Dl(n);u!==null&&(e.splice(t,3),t-=3,b0(u,{pending:!0,data:o,method:n.method,action:l},l,o))}}))}function _i(e){function t(T){return wo(T,e)}Sa!==null&&wo(Sa,e),Na!==null&&wo(Na,e),wa!==null&&wo(wa,e),zc.forEach(t),Dc.forEach(t);for(var n=0;n<Ca.length;n++){var l=Ca[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ca.length&&(n=Ca[0],n.blockedOn===null);)qm(n),n.blockedOn===null&&Ca.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var o=n[l],u=n[l+1],_=o[un]||null;if(typeof u=="function")_||Gm(n);else if(_){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,_=u[un]||null)x=_.formAction;else if(jd(o)!==null)continue}else x=_.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),Gm(n)}}}function Vm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(_){return o=_})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Nd(e){this._internalRoot=e}To.prototype.render=Nd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Ln();Dm(n,l,e,t,null,null)},To.prototype.unmount=Nd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dm(e.current,2,null,e,null,null),io(),t[Ml]=null}};function To(e){this._internalRoot=e}To.prototype.unstable_scheduleHydration=function(e){if(e){var t=J2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ca.length&&t!==0&&t<Ca[n].priority;n++);Ca.splice(n,0,e),n===0&&qm(e)}};var Qm=i.version;if(Qm!=="19.2.5")throw Error(r(527,Qm,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var by={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eo.isDisabled&&Eo.supportsFiber)try{Qi=Eo.inject(by),Sn=Eo}catch{}}return $c.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,l="",o=Wh,u=Jh,_=e1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(_=t.onRecoverableError)),t=Mm(e,1,!1,null,null,n,l,null,o,u,_,Vm),e[Ml]=t.current,ld(e),new Nd(t)},$c.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var l=!1,o="",u=Wh,_=Jh,x=e1,T=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(_=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=Mm(e,1,!0,t,n??null,l,o,T,u,_,x,Vm),t.context=zm(null),n=t.current,l=Ln(),l=mu(l),o=da(l),o.callback=null,fa(n,o,l),n=l,t.current.lanes=n,Ii(t,n),ms(t),e[Ml]=t.current,ld(e),new To(t)},$c.version="19.2.5",$c}var np;function Ly(){if(np)return Ed.exports;np=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ed.exports=Ay(),Ed.exports}var Oy=Ly();/**
* react-router v7.14.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var sp="popstate";function ap(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function My(a={}){function i(r,d){var p;let f=(p=d.state)==null?void 0:p.masked,{pathname:h,search:g,hash:m}=f||r.location;return Wd("",{pathname:h,search:g,hash:m},d.state&&d.state.usr||null,d.state&&d.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,d){return typeof d=="string"?d:Kc(d)}return Dy(i,c,null,a)}function ut(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function is(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function zy(){return Math.random().toString(36).substring(2,10)}function lp(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Wd(a,i,c=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ui(i):i,state:c,key:i&&i.key||r||zy(),unstable_mask:d}}function Kc({pathname:a="/",search:i="",hash:c=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function Ui(a){let i={};if(a){let c=a.indexOf("#");c>=0&&(i.hash=a.substring(c),a=a.substring(0,c));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function Dy(a,i,c,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,h=d.history,g="POP",m=null,p=v();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function v(){return(h.state||{idx:null}).idx}function y(){g="POP";let C=v(),A=C==null?null:C-p;p=C,m&&m({action:g,location:w.location,delta:A})}function b(C,A){g="PUSH";let z=ap(C)?C:Wd(w.location,C,A);p=v()+1;let M=lp(z,p),U=w.createHref(z.unstable_mask||z);try{h.pushState(M,"",U)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;d.location.assign(U)}f&&m&&m({action:g,location:w.location,delta:1})}function N(C,A){g="REPLACE";let z=ap(C)?C:Wd(w.location,C,A);p=v();let M=lp(z,p),U=w.createHref(z.unstable_mask||z);h.replaceState(M,"",U),f&&m&&m({action:g,location:w.location,delta:0})}function S(C){return ky(C)}let w={get action(){return g},get location(){return a(d,h)},listen(C){if(m)throw new Error("A history only accepts one active listener");return d.addEventListener(sp,y),m=C,()=>{d.removeEventListener(sp,y),m=null}},createHref(C){return i(d,C)},createURL:S,encodeLocation(C){let A=S(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:N,go(C){return h.go(C)}};return w}function ky(a,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),ut(c,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Kc(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function T3(a,i,c="/"){return By(a,i,c,!1)}function By(a,i,c,r){let d=typeof i=="string"?Ui(i):i,f=Js(d.pathname||"/",c);if(f==null)return null;let h=E3(a);$y(h);let g=null;for(let m=0;g==null&&m<h.length;++m){let p=Xy(f);g=Iy(h[m],p,r)}return g}function E3(a,i=[],c=[],r="",d=!1){let f=(h,g,m=d,p)=>{let v={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&m)return;ut(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=ls([r,v.relativePath]),b=c.concat(v);h.children&&h.children.length>0&&(ut(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),E3(h.children,i,b,y,m)),!(h.path==null&&!h.index)&&i.push({path:y,score:Qy(y,h.index),routesMeta:b})};return a.forEach((h,g)=>{var m;if(h.path===""||!((m=h.path)!=null&&m.includes("?")))f(h,g);else for(let p of R3(h.path))f(h,g,!0,p)}),i}function R3(a){let i=a.split("/");if(i.length===0)return[];let[c,...r]=i,d=c.endsWith("?"),f=c.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let h=R3(r.join("/")),g=[];return g.push(...h.map(m=>m===""?f:[f,m].join("/"))),d&&g.push(...h),g.map(m=>a.startsWith("/")&&m===""?"/":m)}function $y(a){a.sort((i,c)=>i.score!==c.score?c.score-i.score:Py(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Uy=/^:[\w-]+$/,Hy=3,qy=2,Fy=1,Gy=10,Vy=-2,ip=a=>a==="*";function Qy(a,i){let c=a.split("/"),r=c.length;return c.some(ip)&&(r+=Vy),i&&(r+=qy),c.filter(d=>!ip(d)).reduce((d,f)=>d+(Uy.test(f)?Hy:f===""?Fy:Gy),r)}function Py(a,i){return a.length===i.length&&a.slice(0,-1).every((r,d)=>r===i[d])?a[a.length-1]-i[i.length-1]:0}function Iy(a,i,c=!1){let{routesMeta:r}=a,d={},f="/",h=[];for(let g=0;g<r.length;++g){let m=r[g],p=g===r.length-1,v=f==="/"?i:i.slice(f.length)||"/",y=Vo({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},v),b=m.route;if(!y&&p&&c&&!r[r.length-1].route.index&&(y=Vo({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},v)),!y)return null;Object.assign(d,y.params),h.push({params:d,pathname:ls([f,y.pathname]),pathnameBase:Jy(ls([f,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(f=ls([f,y.pathnameBase]))}return h}function Vo(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[c,r]=Yy(a.path,a.caseSensitive,a.end),d=i.match(c);if(!d)return null;let f=d[0],h=f.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((p,{paramName:v,isOptional:y},b)=>{if(v==="*"){let S=g[b]||"";h=f.slice(0,f.length-S.length).replace(/(.)\/+$/,"$1")}const N=g[b];return y&&!N?p[v]=void 0:p[v]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:a}}function Yy(a,i=!1,c=!0){is(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,m,p,v)=>{if(r.push({paramName:g,isOptional:m!=null}),m){let y=v.charAt(p+h.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),r]}function Xy(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return is(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Js(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=a.charAt(c);return r&&r!=="/"?null:a.slice(c)||"/"}var Ky=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Zy(a,i="/"){let{pathname:c,search:r="",hash:d=""}=typeof a=="string"?Ui(a):a,f;return c?(c=A3(c),c.startsWith("/")?f=cp(c.substring(1),"/"):f=cp(c,i)):f=i,{pathname:f,search:ex(r),hash:tx(d)}}function cp(a,i){let c=Qo(i).split("/");return a.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function Od(a,i,c,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Wy(a){return a.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function w2(a){let i=Wy(a);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Jo(a,i,c,r=!1){let d;typeof a=="string"?d=Ui(a):(d={...a},ut(!d.pathname||!d.pathname.includes("?"),Od("?","pathname","search",d)),ut(!d.pathname||!d.pathname.includes("#"),Od("#","pathname","hash",d)),ut(!d.search||!d.search.includes("#"),Od("#","search","hash",d)));let f=a===""||d.pathname==="",h=f?"/":d.pathname,g;if(h==null)g=c;else{let y=i.length-1;if(!r&&h.startsWith("..")){let b=h.split("/");for(;b[0]==="..";)b.shift(),y-=1;d.pathname=b.join("/")}g=y>=0?i[y]:"/"}let m=Zy(d,g),p=h&&h!=="/"&&h.endsWith("/"),v=(f||h===".")&&c.endsWith("/");return!m.pathname.endsWith("/")&&(p||v)&&(m.pathname+="/"),m}var A3=a=>a.replace(/\/\/+/g,"/"),ls=a=>A3(a.join("/")),Qo=a=>a.replace(/\/+$/,""),Jy=a=>Qo(a).replace(/^\/*/,"/"),ex=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,tx=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,nx=class{constructor(a,i,c,r=!1){this.status=a,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function sx(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function ax(a){let i=a.map(c=>c.route.path).filter(Boolean);return ls(i)||"/"}var L3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function O3(a,i){let c=a;if(typeof c!="string"||!Ky.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,d=!1;if(L3)try{let f=new URL(window.location.href),h=c.startsWith("//")?new URL(f.protocol+c):new URL(c),g=Js(h.pathname,i);h.origin===f.origin&&g!=null?c=g+h.search+h.hash:d=!0}catch{is(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var M3=["POST","PUT","PATCH","DELETE"];new Set(M3);var lx=["GET",...M3];new Set(lx);var Hi=j.createContext(null);Hi.displayName="DataRouter";var eu=j.createContext(null);eu.displayName="DataRouterState";var z3=j.createContext(!1);function ix(){return j.useContext(z3)}var D3=j.createContext({isTransitioning:!1});D3.displayName="ViewTransition";var cx=j.createContext(new Map);cx.displayName="Fetchers";var rx=j.createContext(null);rx.displayName="Await";var kn=j.createContext(null);kn.displayName="Navigation";var ir=j.createContext(null);ir.displayName="Location";var Jn=j.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var C2=j.createContext(null);C2.displayName="RouteError";var k3="REACT_ROUTER_ERROR",ox="REDIRECT",ux="ROUTE_ERROR_RESPONSE";function dx(a){if(a.startsWith(`${k3}:${ox}:{`))try{let i=JSON.parse(a.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 fx(a){if(a.startsWith(`${k3}:${ux}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new nx(i.status,i.statusText,i.data)}catch{}}function hx(a,{relative:i}={}){ut(qi(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=j.useContext(kn),{hash:d,pathname:f,search:h}=cr(a,{relative:i}),g=f;return c!=="/"&&(g=f==="/"?c:ls([c,f])),r.createHref({pathname:g,search:h,hash:d})}function qi(){return j.useContext(ir)!=null}function Bn(){return ut(qi(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(ir).location}var B3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $3(a){j.useContext(kn).static||j.useLayoutEffect(a)}function $n(){let{isDataRoute:a}=j.useContext(Jn);return a?Rx():mx()}function mx(){ut(qi(),"useNavigate() may be used only in the context of a <Router> component.");let a=j.useContext(Hi),{basename:i,navigator:c}=j.useContext(kn),{matches:r}=j.useContext(Jn),{pathname:d}=Bn(),f=JSON.stringify(w2(r)),h=j.useRef(!1);return $3(()=>{h.current=!0}),j.useCallback((m,p={})=>{if(is(h.current,B3),!h.current)return;if(typeof m=="number"){c.go(m);return}let v=Jo(m,JSON.parse(f),d,p.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:ls([i,v.pathname])),(p.replace?c.replace:c.push)(v,p.state,p)},[i,c,f,d,a])}var px=j.createContext(null);function _x(a){let i=j.useContext(Jn).outlet;return j.useMemo(()=>i&&j.createElement(px.Provider,{value:a},i),[i,a])}function gx(){let{matches:a}=j.useContext(Jn),i=a[a.length-1];return(i==null?void 0:i.params)??{}}function cr(a,{relative:i}={}){let{matches:c}=j.useContext(Jn),{pathname:r}=Bn(),d=JSON.stringify(w2(c));return j.useMemo(()=>Jo(a,JSON.parse(d),r,i==="path"),[a,d,r,i])}function vx(a,i){return U3(a,i)}function U3(a,i,c){var C;ut(qi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(kn),{matches:d}=j.useContext(Jn),f=d[d.length-1],h=f?f.params:{},g=f?f.pathname:"/",m=f?f.pathnameBase:"/",p=f&&f.route;{let A=p&&p.path||"";q3(g,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${A}">) 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.
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=Bn(),y;if(i){let A=typeof i=="string"?Ui(i):i;ut(m==="/"||((C=A.pathname)==null?void 0:C.startsWith(m)),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=v;let b=y.pathname||"/",N=b;if(m!=="/"){let A=m.replace(/^\//,"").split("/");N="/"+b.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=T3(a,{pathname:N});is(p||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),is(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 w=Sx(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},h,A.params),pathname:ls([m,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:ls([m,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),d,c);return i&&w?j.createElement(ir.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},w):w}function yx(){let a=Ex(),i=sx(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),c=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",a),h=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:f},"ErrorBoundary")," or"," ",j.createElement("code",{style:f},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},i),c?j.createElement("pre",{style:d},c):null,h)}var xx=j.createElement(yx,null),H3=class extends j.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const c=fx(a.digest);c&&(a=c)}let i=a!==void 0?j.createElement(Jn.Provider,{value:this.props.routeContext},j.createElement(C2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?j.createElement(bx,{error:a},i):i}};H3.contextType=z3;var Md=new WeakMap;function bx({children:a,error:i}){let{basename:c}=j.useContext(kn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=dx(i.digest);if(r){let d=Md.get(i);if(d)throw d;let f=O3(r.location,c);if(L3&&!Md.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Md.set(i,h),h}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function jx({routeContext:a,match:i,children:c}){let r=j.useContext(Hi);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement(Jn.Provider,{value:a},c)}function Sx(a,i=[],c){let r=c==null?void 0:c.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,f=r==null?void 0:r.errors;if(f!=null){let v=d.findIndex(y=>y.route.id&&(f==null?void 0:f[y.route.id])!==void 0);ut(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,v+1))}let h=!1,g=-1;if(c&&r){h=r.renderFallback;for(let v=0;v<d.length;v++){let y=d[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=v),y.route.id){let{loaderData:b,errors:N}=r,S=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||S){c.isStatic&&(h=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let m=c==null?void 0:c.onError,p=r&&m?(v,y)=>{var b,N;m(v,{location:r.location,params:((N=(b=r.matches)==null?void 0:b[0])==null?void 0:N.params)??{},unstable_pattern:ax(r.matches),errorInfo:y})}:void 0;return d.reduceRight((v,y,b)=>{let N,S=!1,w=null,C=null;r&&(N=f&&y.route.id?f[y.route.id]:void 0,w=y.route.errorElement||xx,h&&(g<0&&b===0?(q3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,C=null):g===b&&(S=!0,C=y.route.hydrateFallbackElement||null)));let A=i.concat(d.slice(0,b+1)),z=()=>{let M;return N?M=w:S?M=C:y.route.Component?M=j.createElement(y.route.Component,null):y.route.element?M=y.route.element:M=v,j.createElement(jx,{match:y,routeContext:{outlet:v,matches:A,isDataRoute:r!=null},children:M})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?j.createElement(H3,{location:r.location,revalidation:r.revalidation,component:w,error:N,children:z(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):z()},null)}function T2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nx(a){let i=j.useContext(Hi);return ut(i,T2(a)),i}function wx(a){let i=j.useContext(eu);return ut(i,T2(a)),i}function Cx(a){let i=j.useContext(Jn);return ut(i,T2(a)),i}function E2(a){let i=Cx(a),c=i.matches[i.matches.length-1];return ut(c.route.id,`${a} can only be used on routes that contain a unique "id"`),c.route.id}function Tx(){return E2("useRouteId")}function Ex(){var r;let a=j.useContext(C2),i=wx("useRouteError"),c=E2("useRouteError");return a!==void 0?a:(r=i.errors)==null?void 0:r[c]}function Rx(){let{router:a}=Nx("useNavigate"),i=E2("useNavigate"),c=j.useRef(!1);return $3(()=>{c.current=!0}),j.useCallback(async(d,f={})=>{is(c.current,B3),c.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:i,...f}))},[a,i])}var rp={};function q3(a,i,c){!i&&!rp[a]&&(rp[a]=!0,is(!1,c))}j.memo(Ax);function Ax({routes:a,future:i,state:c,isStatic:r,onError:d}){return U3(a,void 0,{state:c,isStatic:r,onError:d})}function tu({to:a,replace:i,state:c,relative:r}){ut(qi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(kn);is(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=j.useContext(Jn),{pathname:h}=Bn(),g=$n(),m=Jo(a,w2(f),h,r==="path"),p=JSON.stringify(m);return j.useEffect(()=>{g(JSON.parse(p),{replace:i,state:c,relative:r})},[g,p,r,i,c]),null}function R2(a){return _x(a.context)}function Je(a){ut(!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 Lx({basename:a="/",children:i=null,location:c,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:h}){ut(!qi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=a.replace(/^\/*/,"/"),m=j.useMemo(()=>({basename:g,navigator:d,static:f,unstable_useTransitions:h,future:{}}),[g,d,f,h]);typeof c=="string"&&(c=Ui(c));let{pathname:p="/",search:v="",hash:y="",state:b=null,key:N="default",unstable_mask:S}=c,w=j.useMemo(()=>{let C=Js(p,g);return C==null?null:{location:{pathname:C,search:v,hash:y,state:b,key:N,unstable_mask:S},navigationType:r}},[g,p,v,y,b,N,r,S]);return is(w!=null,`<Router basename="${g}"> is not able to match the URL "${p}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:j.createElement(kn.Provider,{value:m},j.createElement(ir.Provider,{children:i,value:w}))}function Ox({children:a,location:i}){return vx(Jd(a),i)}function Jd(a,i=[]){let c=[];return j.Children.forEach(a,(r,d)=>{if(!j.isValidElement(r))return;let f=[...i,d];if(r.type===j.Fragment){c.push.apply(c,Jd(r.props.children,f));return}ut(r.type===Je,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ut(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=Jd(r.props.children,f)),c.push(h)}),c}var qo="get",Fo="application/x-www-form-urlencoded";function nu(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Mx(a){return nu(a)&&a.tagName.toLowerCase()==="button"}function zx(a){return nu(a)&&a.tagName.toLowerCase()==="form"}function Dx(a){return nu(a)&&a.tagName.toLowerCase()==="input"}function kx(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Bx(a,i){return a.button===0&&(!i||i==="_self")&&!kx(a)}var Ao=null;function $x(){if(Ao===null)try{new FormData(document.createElement("form"),0),Ao=!1}catch{Ao=!0}return Ao}var Ux=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function zd(a){return a!=null&&!Ux.has(a)?(is(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fo}"`),null):a}function Hx(a,i){let c,r,d,f,h;if(zx(a)){let g=a.getAttribute("action");r=g?Js(g,i):null,c=a.getAttribute("method")||qo,d=zd(a.getAttribute("enctype"))||Fo,f=new FormData(a)}else if(Mx(a)||Dx(a)&&(a.type==="submit"||a.type==="image")){let g=a.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=a.getAttribute("formaction")||g.getAttribute("action");if(r=m?Js(m,i):null,c=a.getAttribute("formmethod")||g.getAttribute("method")||qo,d=zd(a.getAttribute("formenctype"))||zd(g.getAttribute("enctype"))||Fo,f=new FormData(g,a),!$x()){let{name:p,type:v,value:y}=a;if(v==="image"){let b=p?`${p}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else p&&f.append(p,y)}}else{if(nu(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=qo,r=null,d=Fo,h=a}return f&&d==="text/plain"&&(h=f,f=void 0),{action:r,method:c.toLowerCase(),encType:d,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function A2(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function F3(a,i,c,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:i&&Js(d.pathname,i)==="/"?d.pathname=`${Qo(i)}/_root.${r}`:d.pathname=`${Qo(d.pathname)}.${r}`,d}async function qx(a,i){if(a.id in i)return i[a.id];try{let c=await import(a.module);return i[a.id]=c,c}catch(c){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fx(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function Gx(a,i,c){let r=await Promise.all(a.map(async d=>{let f=i.routes[d.route.id];if(f){let h=await qx(f,c);return h.links?h.links():[]}return[]}));return Ix(r.flat(1).filter(Fx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function op(a,i,c,r,d,f){let h=(m,p)=>c[p]?m.route.id!==c[p].route.id:!0,g=(m,p)=>{var v;return c[p].pathname!==m.pathname||((v=c[p].route.path)==null?void 0:v.endsWith("*"))&&c[p].params["*"]!==m.params["*"]};return f==="assets"?i.filter((m,p)=>h(m,p)||g(m,p)):f==="data"?i.filter((m,p)=>{var y;let v=r.routes[m.route.id];if(!v||!v.hasLoader)return!1;if(h(m,p)||g(m,p))return!0;if(m.route.shouldRevalidate){let b=m.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((y=c[0])==null?void 0:y.params)||{},nextUrl:new URL(a,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Vx(a,i,{includeHydrateFallback:c}={}){return Qx(a.map(r=>{let d=i.routes[r.route.id];if(!d)return[];let f=[d.module];return d.clientActionModule&&(f=f.concat(d.clientActionModule)),d.clientLoaderModule&&(f=f.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function Qx(a){return[...new Set(a)]}function Px(a){let i={},c=Object.keys(a).sort();for(let r of c)i[r]=a[r];return i}function Ix(a,i){let c=new Set;return new Set(i),a.reduce((r,d)=>{let f=JSON.stringify(Px(d));return c.has(f)||(c.add(f),r.push({key:f,link:d})),r},[])}function L2(){let a=j.useContext(Hi);return A2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Yx(){let a=j.useContext(eu);return A2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var O2=j.createContext(void 0);O2.displayName="FrameworkContext";function M2(){let a=j.useContext(O2);return A2(a,"You must render this element inside a <HydratedRouter> element"),a}function Xx(a,i){let c=j.useContext(O2),[r,d]=j.useState(!1),[f,h]=j.useState(!1),{onFocus:g,onBlur:m,onMouseEnter:p,onMouseLeave:v,onTouchStart:y}=i,b=j.useRef(null);j.useEffect(()=>{if(a==="render"&&h(!0),a==="viewport"){let w=A=>{A.forEach(z=>{h(z.isIntersecting)})},C=new IntersectionObserver(w,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[a]),j.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let N=()=>{d(!0)},S=()=>{d(!1),h(!1)};return c?a!=="intent"?[f,b,{}]:[f,b,{onFocus:Uc(g,N),onBlur:Uc(m,S),onMouseEnter:Uc(p,N),onMouseLeave:Uc(v,S),onTouchStart:Uc(y,N)}]:[!1,b,{}]}function Uc(a,i){return c=>{a&&a(c),c.defaultPrevented||i(c)}}function Kx({page:a,...i}){let c=ix(),{router:r}=L2(),d=j.useMemo(()=>T3(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?c?j.createElement(Wx,{page:a,matches:d,...i}):j.createElement(Jx,{page:a,matches:d,...i}):null}function Zx(a){let{manifest:i,routeModules:c}=M2(),[r,d]=j.useState([]);return j.useEffect(()=>{let f=!1;return Gx(a,i,c).then(h=>{f||d(h)}),()=>{f=!0}},[a,i,c]),r}function Wx({page:a,matches:i,...c}){let r=Bn(),{future:d}=M2(),{basename:f}=L2(),h=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let g=F3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let v of i)typeof v.route.shouldRevalidate=="function"?m=!0:p.push(v.route.id);return m&&p.length>0&&g.searchParams.set("_routes",p.join(",")),[g.pathname+g.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,i]);return j.createElement(j.Fragment,null,h.map(g=>j.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...c})))}function Jx({page:a,matches:i,...c}){let r=Bn(),{future:d,manifest:f,routeModules:h}=M2(),{basename:g}=L2(),{loaderData:m,matches:p}=Yx(),v=j.useMemo(()=>op(a,i,p,f,r,"data"),[a,i,p,f,r]),y=j.useMemo(()=>op(a,i,p,f,r,"assets"),[a,i,p,f,r]),b=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let w=new Set,C=!1;if(i.forEach(z=>{var U;let M=f.routes[z.route.id];!M||!M.hasLoader||(!v.some(I=>I.route.id===z.route.id)&&z.route.id in m&&((U=h[z.route.id])!=null&&U.shouldRevalidate)||M.hasClientLoader?C=!0:w.add(z.route.id))}),w.size===0)return[];let A=F3(a,g,d.unstable_trailingSlashAwareDataRequests,"data");return C&&w.size>0&&A.searchParams.set("_routes",i.filter(z=>w.has(z.route.id)).map(z=>z.route.id).join(",")),[A.pathname+A.search]},[g,d.unstable_trailingSlashAwareDataRequests,m,r,f,v,i,a,h]),N=j.useMemo(()=>Vx(y,f),[y,f]),S=Zx(y);return j.createElement(j.Fragment,null,b.map(w=>j.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...c})),N.map(w=>j.createElement("link",{key:w,rel:"modulepreload",href:w,...c})),S.map(({key:w,link:C})=>j.createElement("link",{key:w,nonce:c.nonce,...C,crossOrigin:C.crossOrigin??c.crossOrigin})))}function e4(...a){return i=>{a.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var t4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{t4&&(window.__reactRouterVersion="7.14.2")}catch{}function n4({basename:a,children:i,unstable_useTransitions:c,window:r}){let d=j.useRef();d.current==null&&(d.current=My({window:r,v5Compat:!0}));let f=d.current,[h,g]=j.useState({action:f.action,location:f.location}),m=j.useCallback(p=>{c===!1?g(p):j.startTransition(()=>g(p))},[c]);return j.useLayoutEffect(()=>f.listen(m),[f,m]),j.createElement(Lx,{basename:a,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:c})}var G3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=j.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:d,reloadDocument:f,replace:h,unstable_mask:g,state:m,target:p,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:N,...S},w){let{basename:C,navigator:A,unstable_useTransitions:z}=j.useContext(kn),M=typeof v=="string"&&G3.test(v),U=O3(v,C);v=U.to;let I=hx(v,{relative:d}),K=Bn(),B=null;if(g){let re=Jo(g,[],K.unstable_mask?K.unstable_mask.pathname:"/",!0);C!=="/"&&(re.pathname=re.pathname==="/"?C:ls([C,re.pathname])),B=A.createHref(re)}let[P,ne,ce]=Xx(r,S),ue=l4(v,{replace:h,unstable_mask:g,state:m,target:p,preventScrollReset:y,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:N,unstable_useTransitions:z});function he(re){i&&i(re),re.defaultPrevented||ue(re)}let ae=!(U.isExternal||f),pe=j.createElement("a",{...S,...ce,href:(ae?B:void 0)||U.absoluteURL||I,onClick:ae?he:i,ref:e4(w,ne),target:p,"data-discover":!M&&c==="render"?"true":void 0});return P&&!M?j.createElement(j.Fragment,null,pe,j.createElement(Kx,{page:I})):pe});It.displayName="Link";var e2=j.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:d=!1,style:f,to:h,viewTransition:g,children:m,...p},v){let y=cr(h,{relative:p.relative}),b=Bn(),N=j.useContext(eu),{navigator:S,basename:w}=j.useContext(kn),C=N!=null&&u4(y)&&g===!0,A=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,z=b.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;c||(z=z.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&w&&(M=Js(M,w)||M);const U=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let I=z===A||!d&&z.startsWith(A)&&z.charAt(U)==="/",K=M!=null&&(M===A||!d&&M.startsWith(A)&&M.charAt(A.length)==="/"),B={isActive:I,isPending:K,isTransitioning:C},P=I?i:void 0,ne;typeof r=="function"?ne=r(B):ne=[r,I?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ce=typeof f=="function"?f(B):f;return j.createElement(It,{...p,"aria-current":P,className:ne,ref:v,style:ce,to:h,viewTransition:g},typeof m=="function"?m(B):m)});e2.displayName="NavLink";var s4=j.forwardRef(({discover:a="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:d,state:f,method:h=qo,action:g,onSubmit:m,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...N},S)=>{let{unstable_useTransitions:w}=j.useContext(kn),C=r4(),A=o4(g,{relative:p}),z=h.toLowerCase()==="get"?"get":"post",M=typeof g=="string"&&G3.test(g),U=I=>{if(m&&m(I),I.defaultPrevented)return;I.preventDefault();let K=I.nativeEvent.submitter,B=(K==null?void 0:K.getAttribute("formmethod"))||h,P=()=>C(K||I.currentTarget,{fetcherKey:i,method:B,navigate:c,replace:d,state:f,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});w&&c!==!1?j.startTransition(()=>P()):P()};return j.createElement("form",{ref:S,method:z,action:A,onSubmit:r?m:U,...N,"data-discover":!M&&a==="render"?"true":void 0})});s4.displayName="Form";function a4(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V3(a){let i=j.useContext(Hi);return ut(i,a4(a)),i}function l4(a,{target:i,replace:c,unstable_mask:r,state:d,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let v=$n(),y=Bn(),b=cr(a,{relative:h});return j.useCallback(N=>{if(Bx(N,i)){N.preventDefault();let S=c!==void 0?c:Kc(y)===Kc(b),w=()=>v(a,{replace:S,unstable_mask:r,state:d,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:m});p?j.startTransition(()=>w()):w()}},[y,v,b,c,r,d,i,a,f,h,g,m,p])}var i4=0,c4=()=>`__${String(++i4)}__`;function r4(){let{router:a}=V3("useSubmit"),{basename:i}=j.useContext(kn),c=Tx(),r=a.fetch,d=a.navigate;return j.useCallback(async(f,h={})=>{let{action:g,method:m,encType:p,formData:v,body:y}=Hx(f,i);if(h.navigate===!1){let b=h.fetcherKey||c4();await r(b,c,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:y,formMethod:h.method||m,formEncType:h.encType||p,flushSync:h.flushSync})}else await d(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:y,formMethod:h.method||m,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,d,i,c])}function o4(a,{relative:i}={}){let{basename:c}=j.useContext(kn),r=j.useContext(Jn);ut(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...cr(a||".",{relative:i})},h=Bn();if(a==null){f.search=h.search;let g=new URLSearchParams(f.search),m=g.getAll("index");if(m.some(v=>v==="")){g.delete("index"),m.filter(y=>y).forEach(y=>g.append("index",y));let v=g.toString();f.search=v?`?${v}`:""}}return(!a||a===".")&&d.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:ls([c,f.pathname])),Kc(f)}function u4(a,{relative:i}={}){let c=j.useContext(D3);ut(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=V3("useViewTransitionState"),d=cr(a,{relative:i});if(!c.isTransitioning)return!1;let f=Js(c.currentLocation.pathname,r)||c.currentLocation.pathname,h=Js(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Vo(d.pathname,h)!=null||Vo(d.pathname,f)!=null}const d4="_btn_8fkbu_1",f4="_primary_8fkbu_17",h4="_danger_8fkbu_27",m4="_ghost_8fkbu_37",p4="_outline_8fkbu_47",up={btn:d4,primary:f4,danger:h4,ghost:m4,outline:p4};function cn({variant:a,children:i,onClick:c,type:r="button",disabled:d}){return s.jsx("button",{type:r,className:`${up.btn} ${up[a]}`,onClick:c,disabled:d,children:i})}const _4="_field_1rkrg_1",g4="_compact_1rkrg_5",v4="_fieldError_1rkrg_9",y4="_fieldLabel_1rkrg_15",x4="_fieldInput_1rkrg_23",b4="_currency_1rkrg_49",j4="_currencyIcon_1rkrg_58",S4="_currencyRub_1rkrg_70",N4="_currencyUsdt_1rkrg_74",ps={field:_4,compact:g4,fieldError:v4,fieldLabel:y4,fieldInput:x4,currency:b4,currencyIcon:j4,currencyRub:S4,currencyUsdt:N4};function Po({label:a,value:i,currency:c,onChange:r,error:d,compact:f}){const h=!r;return s.jsxs("div",{className:f?`${ps.field} ${ps.compact}`:ps.field,children:[a&&s.jsx("div",{className:ps.fieldLabel,children:a}),s.jsxs("div",{className:ps.fieldInput,children:[s.jsx("input",{type:"text",value:i,onChange:r?g=>r(g.target.value):void 0,readOnly:h,placeholder:"0",inputMode:h?void 0:"decimal"}),s.jsxs("div",{className:ps.currency,children:[s.jsx("span",{className:`${ps.currencyIcon} ${c==="USDT"?ps.currencyUsdt:ps.currencyRub}`,children:c==="USDT"?"₮":"₽"}),c]})]}),d&&s.jsx("div",{className:ps.fieldError,children:d})]})}const w4="_swapWrap_172k4_1",C4="_compact_172k4_6",T4="_swapBtn_172k4_10",Lo={swapWrap:w4,compact:C4,swapBtn:T4};function Q3({onClick:a,compact:i}){return s.jsx("div",{className:i?`${Lo.swapWrap} ${Lo.compact}`:Lo.swapWrap,children:s.jsx("button",{type:"button",className:Lo.swapBtn,onClick:a,"aria-label":"Поменять направление",children:s.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:s.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const E4="_field_zffpb_1",R4="_label_zffpb_7",A4="_wrap_zffpb_14",L4="_input_zffpb_18",O4="_readonly_zffpb_37",M4="_copied_zffpb_44",z4="_iconCheck_zffpb_59",D4="_iconLock_zffpb_68",k4="_withToggle_zffpb_76",B4="_togglePw_zffpb_80",_s={field:E4,label:R4,wrap:A4,input:L4,readonly:O4,copied:M4,iconCheck:z4,iconLock:D4,withToggle:k4,togglePw:B4};function Ee({label:a,value:i,placeholder:c,type:r="text",onChange:d,onBlur:f,readOnly:h,required:g,icon:m}){const[p,v]=j.useState(!1),[y,b]=j.useState(!1),N=r==="password",S=N?y?"text":"password":r,w=()=>{h&&navigator.clipboard.writeText(i).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return s.jsxs("div",{className:_s.field,children:[s.jsx("label",{className:_s.label,children:a}),s.jsxs("div",{className:_s.wrap,onClick:w,children:[s.jsx("input",{className:`${_s.input} ${N?_s.withToggle:""} ${h?_s.readonly:""} ${p?_s.copied:""}`,type:S,...d?{value:i,onChange:C=>d(C.target.value)}:{defaultValue:i},placeholder:c,readOnly:h,required:g,onBlur:f}),N&&s.jsx("button",{type:"button",className:_s.togglePw,onClick:C=>{C.stopPropagation(),b(A=>!A)},"aria-label":y?"Скрыть пароль":"Показать пароль",children:y?s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94"}),s.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19"}),s.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),s.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),m==="check"&&s.jsx("span",{className:_s.iconCheck,children:"✓"}),m==="lock"&&s.jsx("span",{className:_s.iconLock,children:"🔒"})]})]})}const $4="_notification_m7zar_1",U4="_slideIn_m7zar_1",H4="_notificationWrapper_m7zar_19",q4="_closing_m7zar_24",F4="_slideOut_m7zar_1",G4="_icon_m7zar_52",V4="_success_m7zar_65",Q4="_error_m7zar_70",P4="_info_m7zar_75",I4="_warning_m7zar_80",Y4="_message_m7zar_85",X4="_close_m7zar_93",cl={notification:$4,slideIn:U4,notificationWrapper:H4,closing:q4,slideOut:F4,icon:G4,success:V4,error:Q4,info:P4,warning:I4,message:Y4,close:X4},K4={success:"✓",error:"✕",info:"i",warning:"!"};function Ss({message:a,status:i,onClose:c}){const[r,d]=j.useState(!1);function f(){d(!0)}function h(){r&&c()}return s.jsxs("div",{className:`${cl.notification} ${cl[i]} ${r?cl.closing:""}`,onAnimationEnd:h,children:[s.jsxs("div",{className:cl.notificationWrapper,children:[s.jsx("span",{className:cl.icon,children:K4[i]}),s.jsx("p",{className:cl.message,children:a})]}),s.jsx("button",{className:cl.close,onClick:f,children:"✕"})]})}const Z4="_pill_3oadq_1",W4={pill:Z4};function J4({children:a}){return s.jsx("span",{className:W4.pill,children:a})}const eb="_btn_ytb12_1",tb={btn:eb};function Zn({label:a="Подтвердить своп",onClick:i,type:c="submit",disabled:r}){return s.jsx("button",{type:c,className:tb.btn,onClick:i,disabled:r,children:a})}const nb="_field_1845i_1",sb="_label_1845i_8",ab="_trigger_1845i_15",lb="_triggerOpen_1845i_41",ib="_value_1845i_46",cb="_placeholder_1845i_50",rb="_arrow_1845i_54",ob="_arrowOpen_1845i_61",ub="_dropdown_1845i_65",db="_option_1845i_82",fb="_optionSelected_1845i_95",ss={field:nb,label:sb,trigger:ab,triggerOpen:lb,value:ib,placeholder:cb,arrow:rb,arrowOpen:ob,dropdown:ub,option:db,optionSelected:fb};function hb({value:a,options:i,onChange:c,label:r,placeholder:d="Выберите",id:f,disabled:h}){const[g,m]=j.useState(!1),p=j.useRef(null),v=i.find(y=>y.value===a);return j.useEffect(()=>{if(!g)return;const y=N=>{p.current&&!p.current.contains(N.target)&&m(!1)},b=N=>{N.key==="Escape"&&m(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",b)}},[g]),s.jsxs("div",{className:ss.field,ref:p,children:[r&&s.jsx("label",{className:ss.label,htmlFor:f,children:r}),s.jsxs("button",{type:"button",id:f,className:`${ss.trigger} ${g?ss.triggerOpen:""}`,onClick:()=>!h&&m(y=>!y),disabled:h,"aria-haspopup":"listbox","aria-expanded":g,children:[s.jsx("span",{className:v?ss.value:ss.placeholder,children:v?v.label:d}),s.jsx("span",{className:`${ss.arrow} ${g?ss.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),g&&s.jsx("ul",{className:ss.dropdown,role:"listbox",children:i.map(y=>s.jsx("li",{role:"option","aria-selected":y.value===a,className:`${ss.option} ${y.value===a?ss.optionSelected:""}`,onClick:()=>{c(y.value),m(!1)},children:y.label},String(y.value)))})]})}const mb="_wrap_1ujmu_1",pb="_fullscreen_1ujmu_9",_b="_spinner_1ujmu_15",gb="_spin_1ujmu_15",vb="_sm_1ujmu_24",yb="_md_1ujmu_30",xb="_lg_1ujmu_36",bb="_label_1ujmu_42",jb="_srOnly_1ujmu_49",gi={wrap:mb,fullscreen:pb,spinner:_b,spin:gb,sm:vb,md:yb,lg:xb,label:bb,srOnly:jb};function su({size:a="md",label:i,fullscreen:c,className:r}){const d=[gi.wrap,c?gi.fullscreen:"",r??""].filter(Boolean).join(" ");return s.jsxs("div",{className:d,role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx("span",{className:`${gi.spinner} ${gi[a]}`,"aria-hidden":"true"}),i?s.jsx("span",{className:gi.label,children:i}):null,s.jsx("span",{className:gi.srOnly,children:i??"Загрузка"})]})}const Sb="_icon_73irc_1",Nb={icon:Sb};function Wn({letter:a,color:i,logo:c,size:r=40}){return s.jsx("div",{className:Nb.icon,style:{background:c?"transparent":i,width:r,height:r,fontSize:r*.45},children:c?s.jsx("img",{src:c,alt:a,style:{width:r*.7,height:r*.7}}):a})}const wb="_section_11f1k_1",Cb="_wrap_11f1k_7",Tb="_descBlock_11f1k_16",Eb="_descText_11f1k_22",Rb="_right_11f1k_33",Ab="_glow_11f1k_37",Lb="_row_11f1k_49",Ob="_check_11f1k_87",Mb="_text_11f1k_101",gs={section:wb,wrap:Cb,descBlock:Tb,descText:Eb,right:Rb,glow:Ab,row:Lb,check:Ob,text:Mb},zb="_title_1ien9_1",Db={title:zb};function P3({children:a}){return s.jsx("h2",{className:Db.title,children:a})}const dp=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function kb(){const[a,i]=j.useState(-1);return s.jsx("section",{id:"about",className:gs.section,children:s.jsxs("div",{className:gs.wrap,children:[s.jsxs("div",{children:[s.jsx(J4,{children:"О КОМПАНИИ"}),s.jsx(P3,{children:"О нас"}),s.jsxs("div",{className:gs.descBlock,children:[s.jsx("p",{className:gs.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),s.jsx("p",{className:gs.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),s.jsxs("div",{className:gs.right,children:[s.jsx("div",{className:gs.glow}),dp.map((c,r)=>s.jsxs("div",{className:gs.row,"data-hovered":a===r||void 0,"data-last":r===dp.length-1||void 0,onMouseEnter:()=>i(r),onMouseLeave:()=>i(-1),children:[s.jsx("div",{className:gs.check,children:"✓"}),s.jsx("span",{className:gs.text,children:c})]},r))]})]})})}const Io=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],Dd=Io[0].min,fp=Io[Io.length-1].max;function Bb(a){return a<=Dd?0:a>=fp?100:(a-Dd)/(fp-Dd)*100}const $b="_title_ujt2o_1",Ub="_table_ujt2o_8",Hb="_row_ujt2o_15",qb="_range_ujt2o_31",Fb="_pct_ujt2o_36",Gb="_progressBar_ujt2o_43",Vb="_progressFill_ujt2o_51",Qb="_summary_ujt2o_58",Pb="_summaryLabel_ujt2o_73",Ib="_summaryValue_ujt2o_78",On={title:$b,table:Ub,row:Hb,range:qb,pct:Fb,progressBar:Gb,progressFill:Vb,summary:Qb,summaryLabel:Pb,summaryValue:Ib},hp=a=>a.toLocaleString("ru-RU");function I3({amount:a,progress:i,commission:c,effectiveRate:r}){return s.jsxs("div",{children:[s.jsx("div",{className:On.title,children:"КОМИССИЯ СЕРВИСА"}),s.jsx("div",{className:On.table,children:Io.map((d,f)=>s.jsxs("div",{className:On.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[s.jsxs("span",{className:On.range,children:[hp(d.min)," ",hp(d.max)," ₽"]}),s.jsxs("span",{className:On.pct,children:[d.pct,"%"]})]},f))}),s.jsx("div",{className:On.progressBar,children:s.jsx("div",{className:On.progressFill,style:{width:`${i}%`}})}),s.jsxs("div",{className:On.summary,children:[s.jsx("span",{className:On.summaryLabel,children:"Комиссия"}),s.jsxs("span",{className:On.summaryValue,children:[c.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),s.jsxs("div",{className:On.summary,children:[s.jsx("span",{className:On.summaryLabel,children:"Курс с комиссией"}),s.jsxs("span",{className:On.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Fi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},_l,La,wi,p3,Yb=(p3=class extends Fi{constructor(){super();oe(this,_l);oe(this,La);oe(this,wi);J(this,wi,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){E(this,La)||this.setEventListener(E(this,wi))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,La))==null||i.call(this),J(this,La,void 0))}setEventListener(i){var c;J(this,wi,i),(c=E(this,La))==null||c.call(this),J(this,La,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){E(this,_l)!==i&&(J(this,_l,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof E(this,_l)=="boolean"?E(this,_l):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},_l=new WeakMap,La=new WeakMap,wi=new WeakMap,p3),z2=new Yb,Xb={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Oa,S2,_3,Kb=(_3=class{constructor(){oe(this,Oa,Xb);oe(this,S2,!1)}setTimeoutProvider(a){J(this,Oa,a)}setTimeout(a,i){return E(this,Oa).setTimeout(a,i)}clearTimeout(a){E(this,Oa).clearTimeout(a)}setInterval(a,i){return E(this,Oa).setInterval(a,i)}clearInterval(a){E(this,Oa).clearInterval(a)}},Oa=new WeakMap,S2=new WeakMap,_3),pl=new Kb;function Zb(a){setTimeout(a,0)}var Wb=typeof window>"u"||"Deno"in globalThis;function ln(){}function Jb(a,i){return typeof a=="function"?a(i):a}function t2(a){return typeof a=="number"&&a>=0&&a!==1/0}function Y3(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Ha(a,i){return typeof a=="function"?a(i):a}function Dn(a,i){return typeof a=="function"?a(i):a}function mp(a,i){const{type:c="all",exact:r,fetchStatus:d,predicate:f,queryKey:h,stale:g}=a;if(h){if(r){if(i.queryHash!==D2(h,i.options))return!1}else if(!Zc(i.queryKey,h))return!1}if(c!=="all"){const m=i.isActive();if(c==="active"&&!m||c==="inactive"&&m)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||f&&!f(i))}function pp(a,i){const{exact:c,status:r,predicate:d,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(c){if(Tl(i.options.mutationKey)!==Tl(f))return!1}else if(!Zc(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||d&&!d(i))}function D2(a,i){return((i==null?void 0:i.queryKeyHashFn)||Tl)(a)}function Tl(a){return JSON.stringify(a,(i,c)=>n2(c)?Object.keys(c).sort().reduce((r,d)=>(r[d]=c[d],r),{}):c)}function Zc(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(c=>Zc(a[c],i[c])):!1}var e6=Object.prototype.hasOwnProperty;function X3(a,i,c=0){if(a===i)return a;if(c>500)return i;const r=_p(a)&&_p(i);if(!r&&!(n2(a)&&n2(i)))return i;const f=(r?a:Object.keys(a)).length,h=r?i:Object.keys(i),g=h.length,m=r?new Array(g):{};let p=0;for(let v=0;v<g;v++){const y=r?v:h[v],b=a[y],N=i[y];if(b===N){m[y]=b,(r?v<f:e6.call(a,y))&&p++;continue}if(b===null||N===null||typeof b!="object"||typeof N!="object"){m[y]=N;continue}const S=X3(b,N,c+1);m[y]=S,S===b&&p++}return f===g&&p===f?a:m}function Yo(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function _p(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function n2(a){if(!gp(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!gp(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function gp(a){return Object.prototype.toString.call(a)==="[object Object]"}function t6(a){return new Promise(i=>{pl.setTimeout(i,a)})}function s2(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?X3(a,i):i}function n6(a,i,c=0){const r=[...a,i];return c&&r.length>c?r.slice(1):r}function s6(a,i,c=0){const r=[i,...a];return c&&r.length>c?r.slice(0,-1):r}var k2=Symbol();function K3(a,i){return!a.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!a.queryFn||a.queryFn===k2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function B2(a,i){return typeof a=="function"?a(...i):!!a}function a6(a,i,c){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=i()),r||(r=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),a}var Wc=(()=>{let a=()=>Wb;return{isServer(){return a()},setIsServer(i){a=i}}})();function a2(){let a,i;const c=new Promise((d,f)=>{a=d,i=f});c.status="pending",c.catch(()=>{});function r(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},c.reject=d=>{r({status:"rejected",reason:d}),i(d)},c}var l6=Zb;function i6(){let a=[],i=0,c=g=>{g()},r=g=>{g()},d=l6;const f=g=>{i?a.push(g):d(()=>{c(g)})},h=()=>{const g=a;a=[],g.length&&d(()=>{r(()=>{g.forEach(m=>{c(m)})})})};return{batch:g=>{let m;i++;try{m=g()}finally{i--,i||h()}return m},batchCalls:g=>(...m)=>{f(()=>{g(...m)})},schedule:f,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{d=g}}}var zt=i6(),Ci,Ma,Ti,g3,c6=(g3=class extends Fi{constructor(){super();oe(this,Ci,!0);oe(this,Ma);oe(this,Ti);J(this,Ti,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,Ma)||this.setEventListener(E(this,Ti))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,Ma))==null||i.call(this),J(this,Ma,void 0))}setEventListener(i){var c;J(this,Ti,i),(c=E(this,Ma))==null||c.call(this),J(this,Ma,i(this.setOnline.bind(this)))}setOnline(i){E(this,Ci)!==i&&(J(this,Ci,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return E(this,Ci)}},Ci=new WeakMap,Ma=new WeakMap,Ti=new WeakMap,g3),Xo=new c6;function r6(a){return Math.min(1e3*2**a,3e4)}function Z3(a){return(a??"online")==="online"?Xo.isOnline():!0}var l2=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function W3(a){let i=!1,c=0,r;const d=a2(),f=()=>d.status!=="pending",h=w=>{var C;if(!f()){const A=new l2(w);b(A),(C=a.onCancel)==null||C.call(a,A)}},g=()=>{i=!0},m=()=>{i=!1},p=()=>z2.isFocused()&&(a.networkMode==="always"||Xo.isOnline())&&a.canRun(),v=()=>Z3(a.networkMode)&&a.canRun(),y=w=>{f()||(r==null||r(),d.resolve(w))},b=w=>{f()||(r==null||r(),d.reject(w))},N=()=>new Promise(w=>{var C;r=A=>{(f()||p())&&w(A)},(C=a.onPause)==null||C.call(a)}).then(()=>{var w;r=void 0,f()||(w=a.onContinue)==null||w.call(a)}),S=()=>{if(f())return;let w;const C=c===0?a.initialPromise:void 0;try{w=C??a.fn()}catch(A){w=Promise.reject(A)}Promise.resolve(w).then(y).catch(A=>{var K;if(f())return;const z=a.retry??(Wc.isServer()?0:3),M=a.retryDelay??r6,U=typeof M=="function"?M(c,A):M,I=z===!0||typeof z=="number"&&c<z||typeof z=="function"&&z(c,A);if(i||!I){b(A);return}c++,(K=a.onFail)==null||K.call(a,c,A),t6(U).then(()=>p()?void 0:N()).then(()=>{i?b(A):S()})})};return{promise:d,status:()=>d.status,cancel:h,continue:()=>(r==null||r(),d),cancelRetry:g,continueRetry:m,canStart:v,start:()=>(v()?S():N().then(S),d)}}var gl,v3,J3=(v3=class{constructor(){oe(this,gl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),t2(this.gcTime)&&J(this,gl,pl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Wc.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,gl)!==void 0&&(pl.clearTimeout(E(this,gl)),J(this,gl,void 0))}},gl=new WeakMap,v3);function o6(a){return{onFetch:(i,c)=>{var v,y,b,N,S;const r=i.options,d=(b=(y=(v=i.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=((N=i.state.data)==null?void 0:N.pages)||[],h=((S=i.state.data)==null?void 0:S.pageParams)||[];let g={pages:[],pageParams:[]},m=0;const p=async()=>{let w=!1;const C=M=>{a6(M,()=>i.signal,()=>w=!0)},A=K3(i.options,i.fetchOptions),z=async(M,U,I)=>{if(w)return Promise.reject(i.signal.reason);if(U==null&&M.pages.length)return Promise.resolve(M);const B=(()=>{const ue={client:i.client,queryKey:i.queryKey,pageParam:U,direction:I?"backward":"forward",meta:i.options.meta};return C(ue),ue})(),P=await A(B),{maxPages:ne}=i.options,ce=I?s6:n6;return{pages:ce(M.pages,P,ne),pageParams:ce(M.pageParams,U,ne)}};if(d&&f.length){const M=d==="backward",U=M?e_:i2,I={pages:f,pageParams:h},K=U(r,I);g=await z(I,K,M)}else{const M=a??f.length;do{const U=m===0?h[0]??r.initialPageParam:i2(r,g);if(m>0&&U==null)break;g=await z(g,U),m++}while(m<M)}return g};i.options.persister?i.fetchFn=()=>{var w,C;return(C=(w=i.options).persister)==null?void 0:C.call(w,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=p}}}function i2(a,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,c[r],c):void 0}function e_(a,{pages:i,pageParams:c}){var r;return i.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,i[0],i,c[0],c):void 0}function u6(a,i){return i?i2(a,i)!=null:!1}function d6(a,i){return!i||!a.getPreviousPageParam?!1:e_(a,i)!=null}var Ei,vl,Ri,Kn,yl,Ut,tr,xl,zn,t_,Is,y3,f6=(y3=class extends J3{constructor(i){super();oe(this,zn);oe(this,Ei);oe(this,vl);oe(this,Ri);oe(this,Kn);oe(this,yl);oe(this,Ut);oe(this,tr);oe(this,xl);J(this,xl,!1),J(this,tr,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,yl,i.client),J(this,Kn,E(this,yl).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,vl,yp(this.options)),this.state=i.state??E(this,vl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,Ei)}get promise(){var i;return(i=E(this,Ut))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,tr),...i},i!=null&&i._type&&J(this,Ei,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=yp(this.options);c.data!==void 0&&(this.setState(vp(c.data,c.dataUpdatedAt)),J(this,vl,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Kn).remove(this)}setData(i,c){const r=s2(this.state.data,i,this.options);return we(this,zn,Is).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i){we(this,zn,Is).call(this,{type:"setState",state:i})}cancel(i){var r,d;const c=(r=E(this,Ut))==null?void 0:r.promise;return(d=E(this,Ut))==null||d.cancel(i),c?c.then(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,vl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Dn(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===k2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Ha(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:!Y3(this.state.dataUpdatedAt,i)}onFocus(){var c;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(c=E(this,Ut))==null||c.continue()}onOnline(){var c;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(c=E(this,Ut))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,Kn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(c=>c!==i),this.observers.length||(E(this,Ut)&&(E(this,xl)||we(this,zn,t_).call(this)?E(this,Ut).cancel({revert:!0}):E(this,Ut).cancelRetry()),this.scheduleGc()),E(this,Kn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,zn,Is).call(this,{type:"invalidate"})}async fetch(i,c){var p,v,y,b,N,S,w,C,A,z,M;if(this.state.fetchStatus!=="idle"&&((p=E(this,Ut))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(E(this,Ut))return E(this,Ut).continueRetry(),E(this,Ut).promise}if(i&&this.setOptions(i),!this.options.queryFn){const U=this.observers.find(I=>I.options.queryFn);U&&this.setOptions(U.options)}const r=new AbortController,d=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(J(this,xl,!0),r.signal)})},f=()=>{const U=K3(this.options,c),K=(()=>{const B={client:E(this,yl),queryKey:this.queryKey,meta:this.meta};return d(B),B})();return J(this,xl,!1),this.options.persister?this.options.persister(U,K,this):U(K)},g=(()=>{const U={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:E(this,yl),state:this.state,fetchFn:f};return d(U),U})(),m=E(this,Ei)==="infinite"?o6(this.options.pages):this.options.behavior;m==null||m.onFetch(g,this),J(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=g.fetchOptions)==null?void 0:v.meta))&&we(this,zn,Is).call(this,{type:"fetch",meta:(y=g.fetchOptions)==null?void 0:y.meta}),J(this,Ut,W3({initialPromise:c==null?void 0:c.initialPromise,fn:g.fetchFn,onCancel:U=>{U instanceof l2&&U.revert&&this.setState({...E(this,Ri),fetchStatus:"idle"}),r.abort()},onFail:(U,I)=>{we(this,zn,Is).call(this,{type:"failed",failureCount:U,error:I})},onPause:()=>{we(this,zn,Is).call(this,{type:"pause"})},onContinue:()=>{we(this,zn,Is).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const U=await E(this,Ut).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(N=(b=E(this,Kn).config).onSuccess)==null||N.call(b,U,this),(w=(S=E(this,Kn).config).onSettled)==null||w.call(S,U,this.state.error,this),U}catch(U){if(U instanceof l2){if(U.silent)return E(this,Ut).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw we(this,zn,Is).call(this,{type:"error",error:U}),(A=(C=E(this,Kn).config).onError)==null||A.call(C,U,this),(M=(z=E(this,Kn).config).onSettled)==null||M.call(z,this.state.data,U,this),U}finally{this.scheduleGc()}}},Ei=new WeakMap,vl=new WeakMap,Ri=new WeakMap,Kn=new WeakMap,yl=new WeakMap,Ut=new WeakMap,tr=new WeakMap,xl=new WeakMap,zn=new WeakSet,t_=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Is=function(i){const c=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...n_(r.data,this.options),fetchMeta:i.meta??null};case"success":const d={...r,...vp(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Ri,i.manual?d:void 0),d;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),zt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,Kn).notify({query:this,type:"updated",action:i})})},y3);function n_(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Z3(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function vp(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function yp(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,r=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var xn,Ue,nr,an,bl,Ai,Ys,za,sr,Li,Oi,jl,Sl,Da,Mi,Ve,Ic,c2,r2,o2,u2,d2,f2,h2,a_,x3,s_=(x3=class extends Fi{constructor(i,c){super();oe(this,Ve);oe(this,xn);oe(this,Ue);oe(this,nr);oe(this,an);oe(this,bl);oe(this,Ai);oe(this,Ys);oe(this,za);oe(this,sr);oe(this,Li);oe(this,Oi);oe(this,jl);oe(this,Sl);oe(this,Da);oe(this,Mi,new Set);this.options=c,J(this,xn,i),J(this,za,null),J(this,Ys,a2()),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Ue).addObserver(this),xp(E(this,Ue),this.options)?we(this,Ve,Ic).call(this):this.updateResult(),we(this,Ve,u2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m2(E(this,Ue),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m2(E(this,Ue),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,Ve,d2).call(this),we(this,Ve,f2).call(this),E(this,Ue).removeObserver(this)}setOptions(i){const c=this.options,r=E(this,Ue);if(this.options=E(this,xn).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,E(this,Ue))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,Ve,h2).call(this),E(this,Ue).setOptions(this.options),c._defaulted&&!Yo(this.options,c)&&E(this,xn).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Ue),observer:this});const d=this.hasListeners();d&&bp(E(this,Ue),r,this.options,c)&&we(this,Ve,Ic).call(this),this.updateResult(),d&&(E(this,Ue)!==r||Dn(this.options.enabled,E(this,Ue))!==Dn(c.enabled,E(this,Ue))||Ha(this.options.staleTime,E(this,Ue))!==Ha(c.staleTime,E(this,Ue)))&&we(this,Ve,c2).call(this);const f=we(this,Ve,r2).call(this);d&&(E(this,Ue)!==r||Dn(this.options.enabled,E(this,Ue))!==Dn(c.enabled,E(this,Ue))||f!==E(this,Da))&&we(this,Ve,o2).call(this,f)}getOptimisticResult(i){const c=E(this,xn).getQueryCache().build(E(this,xn),i),r=this.createResult(c,i);return m6(this,r)&&(J(this,an,r),J(this,Ai,this.options),J(this,bl,E(this,Ue).state)),r}getCurrentResult(){return E(this,an)}trackResult(i,c){return new Proxy(i,{get:(r,d)=>(this.trackProp(d),c==null||c(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Ys).status==="pending"&&E(this,Ys).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(i){E(this,Mi).add(i)}getCurrentQuery(){return E(this,Ue)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=E(this,xn).defaultQueryOptions(i),r=E(this,xn).getQueryCache().build(E(this,xn),c);return r.fetch().then(()=>this.createResult(r,c))}fetch(i){return we(this,Ve,Ic).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,an)))}createResult(i,c){var ne;const r=E(this,Ue),d=this.options,f=E(this,an),h=E(this,bl),g=E(this,Ai),p=i!==r?i.state:E(this,nr),{state:v}=i;let y={...v},b=!1,N;if(c._optimisticResults){const ce=this.hasListeners(),ue=!ce&&xp(i,c),he=ce&&bp(i,r,c,d);(ue||he)&&(y={...y,...n_(v.data,i.options)}),c._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:C}=y;N=y.data;let A=!1;if(c.placeholderData!==void 0&&N===void 0&&C==="pending"){let ce;f!=null&&f.isPlaceholderData&&c.placeholderData===(g==null?void 0:g.placeholderData)?(ce=f.data,A=!0):ce=typeof c.placeholderData=="function"?c.placeholderData((ne=E(this,Oi))==null?void 0:ne.state.data,E(this,Oi)):c.placeholderData,ce!==void 0&&(C="success",N=s2(f==null?void 0:f.data,ce,c),b=!0)}if(c.select&&N!==void 0&&!A)if(f&&N===(h==null?void 0:h.data)&&c.select===E(this,sr))N=E(this,Li);else try{J(this,sr,c.select),N=c.select(N),N=s2(f==null?void 0:f.data,N,c),J(this,Li,N),J(this,za,null)}catch(ce){J(this,za,ce)}E(this,za)&&(S=E(this,za),N=E(this,Li),w=Date.now(),C="error");const z=y.fetchStatus==="fetching",M=C==="pending",U=C==="error",I=M&&z,K=N!==void 0,P={status:C,fetchStatus:y.fetchStatus,isPending:M,isSuccess:C==="success",isError:U,isInitialLoading:I,isLoading:I,data:N,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:w,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:z,isRefetching:z&&!M,isLoadingError:U&&!K,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:U&&K,isStale:$2(i,c),refetch:this.refetch,promise:E(this,Ys),isEnabled:Dn(c.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const ce=P.data!==void 0,ue=P.status==="error"&&!ce,he=re=>{ue?re.reject(P.error):ce&&re.resolve(P.data)},ae=()=>{const re=J(this,Ys,P.promise=a2());he(re)},pe=E(this,Ys);switch(pe.status){case"pending":i.queryHash===r.queryHash&&he(pe);break;case"fulfilled":(ue||P.data!==pe.value)&&ae();break;case"rejected":(!ue||P.error!==pe.reason)&&ae();break}}return P}updateResult(){const i=E(this,an),c=this.createResult(E(this,Ue),this.options);if(J(this,bl,E(this,Ue).state),J(this,Ai,this.options),E(this,bl).data!==void 0&&J(this,Oi,E(this,Ue)),Yo(c,i))return;J(this,an,c);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!E(this,Mi).size)return!0;const h=new Set(f??E(this,Mi));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,an)).some(g=>{const m=g;return E(this,an)[m]!==i[m]&&h.has(m)})};we(this,Ve,a_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,Ve,u2).call(this)}},xn=new WeakMap,Ue=new WeakMap,nr=new WeakMap,an=new WeakMap,bl=new WeakMap,Ai=new WeakMap,Ys=new WeakMap,za=new WeakMap,sr=new WeakMap,Li=new WeakMap,Oi=new WeakMap,jl=new WeakMap,Sl=new WeakMap,Da=new WeakMap,Mi=new WeakMap,Ve=new WeakSet,Ic=function(i){we(this,Ve,h2).call(this);let c=E(this,Ue).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(ln)),c},c2=function(){we(this,Ve,d2).call(this);const i=Ha(this.options.staleTime,E(this,Ue));if(Wc.isServer()||E(this,an).isStale||!t2(i))return;const r=Y3(E(this,an).dataUpdatedAt,i)+1;J(this,jl,pl.setTimeout(()=>{E(this,an).isStale||this.updateResult()},r))},r2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Ue)):this.options.refetchInterval)??!1},o2=function(i){we(this,Ve,f2).call(this),J(this,Da,i),!(Wc.isServer()||Dn(this.options.enabled,E(this,Ue))===!1||!t2(E(this,Da))||E(this,Da)===0)&&J(this,Sl,pl.setInterval(()=>{(this.options.refetchIntervalInBackground||z2.isFocused())&&we(this,Ve,Ic).call(this)},E(this,Da)))},u2=function(){we(this,Ve,c2).call(this),we(this,Ve,o2).call(this,we(this,Ve,r2).call(this))},d2=function(){E(this,jl)!==void 0&&(pl.clearTimeout(E(this,jl)),J(this,jl,void 0))},f2=function(){E(this,Sl)!==void 0&&(pl.clearInterval(E(this,Sl)),J(this,Sl,void 0))},h2=function(){const i=E(this,xn).getQueryCache().build(E(this,xn),this.options);if(i===E(this,Ue))return;const c=E(this,Ue);J(this,Ue,i),J(this,nr,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},a_=function(i){zt.batch(()=>{i.listeners&&this.listeners.forEach(c=>{c(E(this,an))}),E(this,xn).getQueryCache().notify({query:E(this,Ue),type:"observerResultsUpdated"})})},x3);function h6(a,i){return Dn(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Dn(i.retryOnMount,a)===!1)}function xp(a,i){return h6(a,i)||a.state.data!==void 0&&m2(a,i,i.refetchOnMount)}function m2(a,i,c){if(Dn(i.enabled,a)!==!1&&Ha(i.staleTime,a)!=="static"){const r=typeof c=="function"?c(a):c;return r==="always"||r!==!1&&$2(a,i)}return!1}function bp(a,i,c,r){return(a!==i||Dn(r.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&$2(a,c)}function $2(a,i){return Dn(i.enabled,a)!==!1&&a.isStaleByTime(Ha(i.staleTime,a))}function m6(a,i){return!Yo(a.getCurrentResult(),i)}var p6=class extends s_{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){a._type="infinite",super.setOptions(a)}getOptimisticResult(a){return a._type="infinite",super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){var S,w;const{state:c}=a,r=super.createResult(a,i),{isFetching:d,isRefetching:f,isError:h,isRefetchError:g}=r,m=(w=(S=c.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:w.direction,p=h&&m==="forward",v=d&&m==="forward",y=h&&m==="backward",b=d&&m==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:u6(i,c.data),hasPreviousPage:d6(i,c.data),isFetchNextPageError:p,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:b,isRefetchError:g&&!p&&!y,isRefetching:f&&!v&&!b}}},ar,ys,Zt,Nl,xs,Aa,b3,_6=(b3=class extends J3{constructor(i){super();oe(this,xs);oe(this,ar);oe(this,ys);oe(this,Zt);oe(this,Nl);J(this,ar,i.client),this.mutationId=i.mutationId,J(this,Zt,i.mutationCache),J(this,ys,[]),this.state=i.state||l_(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,ys).includes(i)||(E(this,ys).push(i),this.clearGcTimeout(),E(this,Zt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,ys,E(this,ys).filter(c=>c!==i)),this.scheduleGc(),E(this,Zt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,ys).length||(this.state.status==="pending"?this.scheduleGc():E(this,Zt).remove(this))}continue(){var i;return((i=E(this,Nl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,g,m,p,v,y,b,N,S,w,C,A,z,M,U,I,K,B;const c=()=>{we(this,xs,Aa).call(this,{type:"continue"})},r={client:E(this,ar),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,Nl,W3({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,ne)=>{we(this,xs,Aa).call(this,{type:"failed",failureCount:P,error:ne})},onPause:()=>{we(this,xs,Aa).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Zt).canRun(this)}));const d=this.state.status==="pending",f=!E(this,Nl).canStart();try{if(d)c();else{we(this,xs,Aa).call(this,{type:"pending",variables:i,isPaused:f}),E(this,Zt).config.onMutate&&await E(this,Zt).config.onMutate(i,this,r);const ne=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,i,r));ne!==this.state.context&&we(this,xs,Aa).call(this,{type:"pending",context:ne,variables:i,isPaused:f})}const P=await E(this,Nl).start();return await((p=(m=E(this,Zt).config).onSuccess)==null?void 0:p.call(m,P,i,this.state.context,this,r)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,P,i,this.state.context,r)),await((N=(b=E(this,Zt).config).onSettled)==null?void 0:N.call(b,P,null,this.state.variables,this.state.context,this,r)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,P,null,i,this.state.context,r)),we(this,xs,Aa).call(this,{type:"success",data:P}),P}catch(P){try{await((A=(C=E(this,Zt).config).onError)==null?void 0:A.call(C,P,i,this.state.context,this,r))}catch(ne){Promise.reject(ne)}try{await((M=(z=this.options).onError)==null?void 0:M.call(z,P,i,this.state.context,r))}catch(ne){Promise.reject(ne)}try{await((I=(U=E(this,Zt).config).onSettled)==null?void 0:I.call(U,void 0,P,this.state.variables,this.state.context,this,r))}catch(ne){Promise.reject(ne)}try{await((B=(K=this.options).onSettled)==null?void 0:B.call(K,void 0,P,i,this.state.context,r))}catch(ne){Promise.reject(ne)}throw we(this,xs,Aa).call(this,{type:"error",error:P}),P}finally{E(this,Zt).runNext(this)}}},ar=new WeakMap,ys=new WeakMap,Zt=new WeakMap,Nl=new WeakMap,xs=new WeakSet,Aa=function(i){const c=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=c(this.state),zt.batch(()=>{E(this,ys).forEach(r=>{r.onMutationUpdate(i)}),E(this,Zt).notify({mutation:this,type:"updated",action:i})})},b3);function l_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xs,as,lr,j3,g6=(j3=class extends Fi{constructor(i={}){super();oe(this,Xs);oe(this,as);oe(this,lr);this.config=i,J(this,Xs,new Set),J(this,as,new Map),J(this,lr,0)}build(i,c,r){const d=new _6({client:i,mutationCache:this,mutationId:++Ro(this,lr)._,options:i.defaultMutationOptions(c),state:r});return this.add(d),d}add(i){E(this,Xs).add(i);const c=Oo(i);if(typeof c=="string"){const r=E(this,as).get(c);r?r.push(i):E(this,as).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,Xs).delete(i)){const c=Oo(i);if(typeof c=="string"){const r=E(this,as).get(c);if(r)if(r.length>1){const d=r.indexOf(i);d!==-1&&r.splice(d,1)}else r[0]===i&&E(this,as).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){const c=Oo(i);if(typeof c=="string"){const r=E(this,as).get(c),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===i}else return!0}runNext(i){var r;const c=Oo(i);if(typeof c=="string"){const d=(r=E(this,as).get(c))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){zt.batch(()=>{E(this,Xs).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,Xs).clear(),E(this,as).clear()})}getAll(){return Array.from(E(this,Xs))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>pp(c,r))}findAll(i={}){return this.getAll().filter(c=>pp(i,c))}notify(i){zt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return zt.batch(()=>Promise.all(i.map(c=>c.continue().catch(ln))))}},Xs=new WeakMap,as=new WeakMap,lr=new WeakMap,j3);function Oo(a){var i;return(i=a.options.scope)==null?void 0:i.id}var Ks,ka,bn,Zs,Ws,Go,p2,S3,v6=(S3=class extends Fi{constructor(c,r){super();oe(this,Ws);oe(this,Ks);oe(this,ka);oe(this,bn);oe(this,Zs);J(this,Ks,c),this.setOptions(r),this.bindMethods(),we(this,Ws,Go).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var d;const r=this.options;this.options=E(this,Ks).defaultMutationOptions(c),Yo(this.options,r)||E(this,Ks).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,bn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Tl(r.mutationKey)!==Tl(this.options.mutationKey)?this.reset():((d=E(this,bn))==null?void 0:d.state.status)==="pending"&&E(this,bn).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=E(this,bn))==null||c.removeObserver(this)}onMutationUpdate(c){we(this,Ws,Go).call(this),we(this,Ws,p2).call(this,c)}getCurrentResult(){return E(this,ka)}reset(){var c;(c=E(this,bn))==null||c.removeObserver(this),J(this,bn,void 0),we(this,Ws,Go).call(this),we(this,Ws,p2).call(this)}mutate(c,r){var d;return J(this,Zs,r),(d=E(this,bn))==null||d.removeObserver(this),J(this,bn,E(this,Ks).getMutationCache().build(E(this,Ks),this.options)),E(this,bn).addObserver(this),E(this,bn).execute(c)}},Ks=new WeakMap,ka=new WeakMap,bn=new WeakMap,Zs=new WeakMap,Ws=new WeakSet,Go=function(){var r;const c=((r=E(this,bn))==null?void 0:r.state)??l_();J(this,ka,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},p2=function(c){zt.batch(()=>{var r,d,f,h,g,m,p,v;if(E(this,Zs)&&this.hasListeners()){const y=E(this,ka).variables,b=E(this,ka).context,N={client:E(this,Ks),meta:this.options.meta,mutationKey:this.options.mutationKey};if((c==null?void 0:c.type)==="success"){try{(d=(r=E(this,Zs)).onSuccess)==null||d.call(r,c.data,y,b,N)}catch(S){Promise.reject(S)}try{(h=(f=E(this,Zs)).onSettled)==null||h.call(f,c.data,null,y,b,N)}catch(S){Promise.reject(S)}}else if((c==null?void 0:c.type)==="error"){try{(m=(g=E(this,Zs)).onError)==null||m.call(g,c.error,y,b,N)}catch(S){Promise.reject(S)}try{(v=(p=E(this,Zs)).onSettled)==null||v.call(p,void 0,c.error,y,b,N)}catch(S){Promise.reject(S)}}}this.listeners.forEach(y=>{y(E(this,ka))})})},S3),bs,N3,y6=(N3=class extends Fi{constructor(i={}){super();oe(this,bs);this.config=i,J(this,bs,new Map)}build(i,c,r){const d=c.queryKey,f=c.queryHash??D2(d,c);let h=this.get(f);return h||(h=new f6({client:i,queryKey:d,queryHash:f,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(d)}),this.add(h)),h}add(i){E(this,bs).has(i.queryHash)||(E(this,bs).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=E(this,bs).get(i.queryHash);c&&(i.destroy(),c===i&&E(this,bs).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){zt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,bs).get(i)}getAll(){return[...E(this,bs).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>mp(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>mp(i,r)):c}notify(i){zt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){zt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){zt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},bs=new WeakMap,N3),vt,Ba,$a,zi,Di,Ua,ki,Bi,w3,x6=(w3=class{constructor(a={}){oe(this,vt);oe(this,Ba);oe(this,$a);oe(this,zi);oe(this,Di);oe(this,Ua);oe(this,ki);oe(this,Bi);J(this,vt,a.queryCache||new y6),J(this,Ba,a.mutationCache||new g6),J(this,$a,a.defaultOptions||{}),J(this,zi,new Map),J(this,Di,new Map),J(this,Ua,0)}mount(){Ro(this,Ua)._++,E(this,Ua)===1&&(J(this,ki,z2.subscribe(async a=>{a&&(await this.resumePausedMutations(),E(this,vt).onFocus())})),J(this,Bi,Xo.subscribe(async a=>{a&&(await this.resumePausedMutations(),E(this,vt).onOnline())})))}unmount(){var a,i;Ro(this,Ua)._--,E(this,Ua)===0&&((a=E(this,ki))==null||a.call(this),J(this,ki,void 0),(i=E(this,Bi))==null||i.call(this),J(this,Bi,void 0))}isFetching(a){return E(this,vt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return E(this,Ba).findAll({...a,status:"pending"}).length}getQueryData(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=E(this,vt).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),c=E(this,vt).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(Ha(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return E(this,vt).findAll(a).map(({queryKey:i,state:c})=>{const r=c.data;return[i,r]})}setQueryData(a,i,c){const r=this.defaultQueryOptions({queryKey:a}),d=E(this,vt).get(r.queryHash),f=d==null?void 0:d.state.data,h=Jb(i,f);if(h!==void 0)return E(this,vt).build(this,r).setData(h,{...c,manual:!0})}setQueriesData(a,i,c){return zt.batch(()=>E(this,vt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=E(this,vt).get(i.queryHash))==null?void 0:c.state}removeQueries(a){const i=E(this,vt);zt.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=E(this,vt);return zt.batch(()=>(c.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const c={revert:!0,...i},r=zt.batch(()=>E(this,vt).findAll(a).map(d=>d.cancel(c)));return Promise.all(r).then(ln).catch(ln)}invalidateQueries(a,i={}){return zt.batch(()=>(E(this,vt).findAll(a).forEach(c=>{c.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=zt.batch(()=>E(this,vt).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,c);return c.throwOnError||(f=f.catch(ln)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(ln)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=E(this,vt).build(this,i);return c.isStaleByTime(Ha(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(ln).catch(ln)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(ln).catch(ln)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Xo.isOnline()?E(this,Ba).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,vt)}getMutationCache(){return E(this,Ba)}getDefaultOptions(){return E(this,$a)}setDefaultOptions(a){J(this,$a,a)}setQueryDefaults(a,i){E(this,zi).set(Tl(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...E(this,zi).values()],c={};return i.forEach(r=>{Zc(a,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(a,i){E(this,Di).set(Tl(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...E(this,Di).values()],c={};return i.forEach(r=>{Zc(a,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...E(this,$a).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=D2(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===k2&&(i.enabled=!1),i}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...E(this,$a).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){E(this,vt).clear(),E(this,Ba).clear()}},vt=new WeakMap,Ba=new WeakMap,$a=new WeakMap,zi=new WeakMap,Di=new WeakMap,Ua=new WeakMap,ki=new WeakMap,Bi=new WeakMap,w3),i_=j.createContext(void 0),Wt=a=>{const i=j.useContext(i_);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},b6=({client:a,children:i})=>(j.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),s.jsx(i_.Provider,{value:a,children:i})),c_=j.createContext(!1),j6=()=>j.useContext(c_);c_.Provider;function S6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var N6=j.createContext(S6()),w6=()=>j.useContext(N6),C6=(a,i,c)=>{const r=c!=null&&c.state.error&&typeof a.throwOnError=="function"?B2(a.throwOnError,[c.state.error,c]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(i.isReset()||(a.retryOnMount=!1))},T6=a=>{j.useEffect(()=>{a.clearReset()},[a])},E6=({result:a,errorResetBoundary:i,throwOnError:c,query:r,suspense:d})=>a.isError&&!i.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||B2(c,[a.error,r])),R6=a=>{if(a.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>c(r(...d)):c(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},A6=(a,i)=>a.isLoading&&a.isFetching&&!i,L6=(a,i)=>(a==null?void 0:a.suspense)&&i.isPending,jp=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function r_(a,i,c){var b,N,S,w;const r=j6(),d=w6(),f=Wt(),h=f.defaultQueryOptions(a);(N=(b=f.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||N.call(b,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",R6(h),C6(h,d,g),T6(d);const m=!f.getQueryCache().get(h.queryHash),[p]=j.useState(()=>new i(f,h)),v=p.getOptimisticResult(h),y=!r&&a.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(C=>{const A=y?p.subscribe(zt.batchCalls(C)):ln;return p.updateResult(),A},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),j.useEffect(()=>{p.setOptions(h)},[h,p]),L6(h,v))throw jp(h,p,d);if(E6({result:v,errorResetBoundary:d,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw v.error;if((w=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||w.call(S,h,v),h.experimental_prefetchInRender&&!Wc.isServer()&&A6(v,r)){const C=m?jp(h,p,d):g==null?void 0:g.promise;C==null||C.catch(ln).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?v:p.trackResult(v)}function St(a,i){return r_(a,s_)}function mt(a,i){const c=Wt(),[r]=j.useState(()=>new v6(c,a));j.useEffect(()=>{r.setOptions(a)},[r,a]);const d=j.useSyncExternalStore(j.useCallback(h=>r.subscribe(zt.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=j.useCallback((h,g)=>{r.mutate(h,g).catch(ln)},[r]);if(d.error&&B2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function O6(a,i){return r_(a,p6)}const o_="https://app.auth.elcsa.ru/v1";let Yc=null,ml=null;function U2(){Yc=null,ml=null}function rn(){return Yc?Promise.resolve(Yc):ml||(ml=fetch(`${o_}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(Yc=a.token,ml=null,Yc)).catch(a=>{throw ml=null,a}),ml)}const M6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:U2,getCsrfToken:rn},Symbol.toStringTag,{value:"Module"})),z6="modulepreload",D6=function(a){return"/"+a},Sp={},k6=function(i,c,r){let d=Promise.resolve();if(c&&c.length>0){let h=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),m=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=h(c.map(p=>{if(p=D6(p),p in Sp)return;Sp[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":z6,v||(b.as="script"),b.crossOrigin="",b.href=p,m&&b.setAttribute("nonce",m),document.head.appendChild(b),v)return new Promise((N,S)=>{b.addEventListener("load",N),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return d.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return i().catch(f)})};let kd=null;const Rt={get:()=>kd,set:a=>{kd=a},clear:()=>{kd=null}},B6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function rs(){const{getCsrfToken:a}=await k6(async()=>{const{getCsrfToken:d}=await Promise.resolve().then(()=>M6);return{getCsrfToken:d}},[]),i=await a(),c=await fetch(B6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!c.ok)throw new Error("Unauthorized");const r=await c.json();return r.access_token&&Rt.set(r.access_token),r.access_token??r.result??!0}const $6="https://app.payment.elcsa.ru";async function Gi(a,i,c){const r=await rn(),d=await fetch(`${$6}${a}`,{...i,credentials:"include",headers:{"X-CSRF-Token":r,...i.headers}});if(d.status===401&&c)try{return await rs(),Gi(a,i,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function U6(){return Gi("/payment/config",{},!0)}function H6(a){return Gi(`/payment/quote?usdt_amount=${a}`,{},!0)}function q6(a){return Gi(`/payment/quote/rub?total_rub=${a}`,{},!0)}function F6(a){return Gi("/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}const _2=20;function G6(a,i=_2){return Gi(`/payment/orders?offset=${a}&limit=${i}`,{},!0)}function V6(){return St({queryKey:["payment","config"],queryFn:U6,staleTime:6e4})}function Q6(a){return St({queryKey:["payment","quote",a],queryFn:()=>H6(a),enabled:a>0,staleTime:3e4,retry:!1})}function P6(a){return St({queryKey:["payment","quote","rub",a],queryFn:()=>q6(a),enabled:a>0,staleTime:3e4,retry:!1})}function I6(){return mt({mutationFn:F6,onSuccess:a=>{const i=a.order.itpay_payment_qr_url_desktop;i&&(window.location.href=i)}})}function Y6(){return O6({queryKey:["payment","orders"],queryFn:({pageParam:a})=>G6(a),initialPageParam:0,getNextPageParam:(a,i)=>{if(!(a.orders.length<_2))return i.length*_2},staleTime:3e4})}function js(a,i){const[c,r]=j.useState(a);return j.useEffect(()=>{const d=setTimeout(()=>r(a),i);return()=>clearTimeout(d)},[a,i]),c}const X6=new Date("2026-05-21T00:00:00").getTime(),u_=80,K6=21,Bd=5e3,Np="Сумма слишком большая и превышает 600 000 ₽",wp=a=>a.replace(/[^0-9.]/g,"");function d_({rateFallback:a=0}={}){const[i,c]=j.useState("usdt_to_rub"),[r,d]=j.useState("1000"),[f,h]=j.useState(String(Bd)),{data:g}=V6(),m=Number(g==null?void 0:g.usdt_exchange_rate)||a,p=Number(g==null?void 0:g.gas_fee)||K6,v=i==="usdt_to_rub",y=Number.parseFloat(r)||0,b=js(y,400),{data:N,isError:S}=Q6(v?b:0),w=Number.parseFloat(f)||0,C=js(w,400),{data:A,isError:z}=P6(v?0:C),M=!v&&w>0&&w<Bd,U=(N==null?void 0:N.total_price)??"",I=Number(U)||0,K=(A==null?void 0:A.usdt_amount)??"",B=Number(K)||0,P=v?Number(N==null?void 0:N.service_fee)||0:Number(A==null?void 0:A.service_fee)||0,ne=v?I:w,ce=v?y>0?I/y:0:B>0?w/B:0;function ue(){c(pe=>pe==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const he=v?{value:r,currency:"USDT",onChange:pe=>d(wp(pe)),error:S?Np:void 0}:{value:f,currency:"RUB",onChange:pe=>h(wp(pe)),error:M?`Минимальная сумма: ${Bd.toLocaleString("ru-RU")}`:z?Np:void 0};return{isUsdtToRub:v,gasPriceRub:p,configUsdtRate:m,convert:he,pay:v?{value:U,currency:"RUB"}:{value:K,currency:"USDT"},onSwap:ue,commission:{amount:ne,progress:Bb(ne),commission:P,effectiveRate:ce},numUsdt:y,usdtFromRubNum:B,rubTotal:U,rubTotalNum:I,numRubInput:w,usdtFromRub:K,rubBelowMin:M}}const de={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",REGISTER_TEST:"/register-test",CONVERTER_TEST:"/converter-test",PROFILE:"/profile",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc",STAKING:"/staking",POOLS:"/pools",RESTORE_PASSWORD:"/restore-password",PUBLICHNAYA_OFERTA:"/publichnaya-oferta",POLITIKA_PERSONALNYH_DANNYH:"/politika-personalnyh-dannyh",POLITIKA_COOKIE:"/politika-cookie",SOGLASIE_PERSONALNYH_DANNYH:"/soglasie-personalnyh-dannyh",REESTR_PD_RKN:"/reestr-pd-rkn",TRANSACTIONS:"/transactions"},Z6="_section_tz8mb_1",W6="_wrap_tz8mb_6",J6="_header_tz8mb_17",ej="_subtitle_tz8mb_26",tj="_pills_tz8mb_33",nj="_pill_tz8mb_33",sj="_pillValue_tz8mb_47",aj="_body_tz8mb_57",lj="_tabs_tz8mb_63",ij="_tab_tz8mb_63",cj="_payBtn_tz8mb_95",Mn={section:Z6,wrap:W6,header:J6,subtitle:ej,pills:tj,pill:nj,pillValue:sj,body:aj,tabs:lj,tab:ij,payBtn:cj};function rj(){const{gasPriceRub:a,configUsdtRate:i,convert:c,pay:r,onSwap:d,commission:f}=d_({rateFallback:u_});return s.jsx("section",{className:Mn.section,id:"converter",children:s.jsxs("div",{className:Mn.wrap,children:[s.jsxs("div",{className:Mn.header,children:[s.jsxs("div",{children:[s.jsx(P3,{children:"Конвертация"}),s.jsx("div",{className:Mn.subtitle,children:"Данные обновляются в реальном времени"})]}),s.jsxs("div",{className:Mn.pills,children:[s.jsxs("div",{className:Mn.pill,children:["Цена газа в RUB ",s.jsxs("span",{className:Mn.pillValue,children:[a.toFixed(2)," RUB"]})]}),s.jsxs("div",{className:Mn.pill,children:["USDT/RUB ",s.jsxs("span",{className:Mn.pillValue,children:[i.toFixed(2)," ₽"]})]})]})]}),s.jsxs("div",{className:Mn.body,children:[s.jsxs("div",{children:[s.jsx("div",{className:Mn.tabs,children:s.jsx("div",{className:Mn.tab,"data-active":!0,children:"КУПИТЬ"})}),s.jsx(Po,{compact:!0,...c}),s.jsx(Q3,{compact:!0,onClick:d}),s.jsx(Po,{compact:!0,...r})]}),s.jsx(I3,{...f})]}),s.jsx(It,{to:de.CONVERTER,className:Mn.payBtn,children:"Перейти к оплате"})]})})}const oj="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.827%201.094a3.733%203.733%200%2000-3.733%203.733v6.533a3.733%203.733%200%20003.733%203.734h6.533a3.733%203.733%200%20003.734-3.734V4.827a3.733%203.733%200%2000-3.734-3.733H4.827zm5.454%207a2.187%202.187%200%2011-4.375%200%202.187%202.187%200%20014.375%200zm1.313%200a3.5%203.5%200%2011-7%200%203.5%203.5%200%20017%200zm.469-2.938a1.25%201.25%200%20100-2.5%201.25%201.25%200%20000%202.5z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",uj="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.108%207.617C5.4%205.768%208.262%204.55%209.694%203.961c4.088-1.682%204.938-1.974%205.492-1.984.68-.011.86.551.804%201.137-.221%202.302-1.18%207.887-1.668%2010.465-.43%202.277-1.958%201.292-3.338.397-1.296-.84-2.028-1.362-3.286-2.182-1.453-.947-.511-1.467.317-2.318.217-.223%203.984-3.61%204.057-3.918.06-.256-.167-.333-.373-.286-.13.029-2.2%201.382-6.21%204.058-.588.399-1.12.593-1.597.583-.66-.014-2.26-.583-3.88-1.492-.097-.277.399-.53%201.096-.804z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",dj="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.733%2011.784c-.708-1.191-1.221-2.408-1.221-3.823%200-3.566%202.905-6.457%206.488-6.457%203.583%200%206.488%202.891%206.488%206.457%200%203.565-2.905%206.456-6.488%206.456-1.332%200-2.496-.452-3.64-1.079-.734.18-1.468.362-2.2.55.195-.7.387-1.402.573-2.104zM0%2016s2.944-.768%204.147-1.06A7.995%207.995%200%20008%2015.92c4.418%200%208-3.564%208-7.96S12.418%200%208%200%200%203.564%200%207.96c0%201.479.405%202.862%201.11%204.048C.929%2012.693%200%2016%200%2016zm8.118-6.637a501.25%20501.25%200%2000-1.265-1.26c-.545-.576-.646-1.11-.392-1.298l.52-.298a.675.675%200%2000.248-.924l-.78-1.344a.681.681%200%2000-.928-.248L5%204.29c-1.685.968.271%204.078%201.09%204.892l.944.94c.818.814%203.943%202.76%204.916%201.084l.3-.517a.674.674%200%2000-.249-.924l-1.35-.776a.682.682%200%2000-.929.247l-.3.517c-.188.252-.725.152-1.305-.39z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",fj="_footer_1qm30_1",hj="_top_1qm30_11",mj="_col_1qm30_18",pj="_heading_1qm30_35",_j="_companyName_1qm30_44",gj="_phone_1qm30_51",vj="_email_1qm30_58",yj="_socialIcons_1qm30_62",xj="_socialLink_1qm30_67",bj="_divider_1qm30_94",jj="_bottom_1qm30_99",Xt={footer:fj,top:hj,col:mj,heading:pj,companyName:_j,phone:gj,email:vj,socialIcons:yj,socialLink:xj,divider:bj,bottom:jj},Sj=[{href:"#",icon:uj,label:"Telegram"},{href:"#",icon:dj,label:"WhatsApp"},{href:"#",icon:oj,label:"Instagram"}];function Al(){return s.jsxs("footer",{className:Xt.footer,children:[s.jsxs("div",{className:Xt.top,children:[s.jsxs("div",{className:Xt.col,children:[s.jsx("p",{className:Xt.companyName,children:"ООО «ЭКСА»"}),s.jsx("p",{children:"ИНН 9810001062"}),s.jsx("p",{children:"ОГРН 1257800060990"})]}),s.jsxs("div",{className:Xt.col,children:[s.jsx("h4",{className:Xt.heading,children:"О компании"}),s.jsx(It,{to:de.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),s.jsx(It,{to:de.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),s.jsx(It,{to:de.POLITIKA_COOKIE,children:"Политика cookie"}),s.jsx(It,{to:de.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),s.jsx(It,{to:de.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),s.jsxs("div",{className:Xt.col,children:[s.jsx("p",{className:Xt.phone,children:"+7 (812) 123-33-23"}),s.jsx("h4",{className:Xt.heading,children:"Адрес"}),s.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),s.jsx("a",{href:"mailto:support@elcsa.ru",className:Xt.email,children:"support@elcsa.ru"})]}),s.jsxs("div",{className:Xt.col,children:[s.jsx("h4",{className:Xt.heading,children:"Мы в соцсетях"}),s.jsx("div",{className:Xt.socialIcons,children:Sj.map(({href:a,icon:i,label:c})=>s.jsx("a",{href:a,className:Xt.socialLink,"aria-label":c,children:s.jsx("img",{src:i,alt:c})},c))})]})]}),s.jsx("div",{className:Xt.divider}),s.jsxs("div",{className:Xt.bottom,children:[s.jsx("p",{children:"© 2026. Все права защищены."}),s.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const Ns="/assets/logo-full-white-DEb7oTyu.png",Nj="_nav_5011x_1",wj="_logo_5011x_16",Cj="_right_5011x_22",Tj="_link_5011x_28",Ej="_btn_5011x_47",Hc={nav:Nj,logo:wj,right:Cj,link:Tj,btn:Ej};function Vi(){return s.jsxs("nav",{className:Hc.nav,children:[s.jsx("a",{className:Hc.logo,href:"/",children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsxs("div",{className:Hc.right,children:[s.jsx("a",{className:Hc.link,href:"#about",children:"О нас"}),s.jsx(It,{className:Hc.btn,to:de.WALLET,children:"Личный кабинет"})]})]})}const Rj="_flow_1oxsf_1",Aj="_card_1oxsf_7",Lj="_cardRub_1oxsf_17",Oj="_cardEksa_1oxsf_27",Mj="_cardUsdt_1oxsf_37",zj="_eksaLogo_1oxsf_47",Dj="_ghost_1oxsf_54",kj="_ghostBtc_1oxsf_69",Bj="_ghostEth_1oxsf_74",$j="_logoCircle_1oxsf_79",Uj="_logoRub_1oxsf_90",Hj="_logoUsdt_1oxsf_95",qj="_badge_1oxsf_100",Fj="_badgeRub_1oxsf_113",Gj="_badgeUsdt_1oxsf_117",Vj="_status_1oxsf_121",Qj="_statusDot_1oxsf_132",Pj="_path_1oxsf_139",dt={flow:Rj,card:Aj,cardRub:Lj,cardEksa:Oj,cardUsdt:Mj,eksaLogo:zj,ghost:Dj,ghostBtc:kj,ghostEth:Bj,logoCircle:$j,logoRub:Uj,logoUsdt:Hj,badge:qj,badgeRub:Fj,badgeUsdt:Gj,status:Vj,statusDot:Qj,path:Pj};function Ij(){return s.jsxs("div",{className:dt.flow,children:[s.jsx("div",{className:`${dt.ghost} ${dt.ghostBtc}`,children:s.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),s.jsx("div",{className:`${dt.ghost} ${dt.ghostEth}`,children:s.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),s.jsxs("div",{className:`${dt.card} ${dt.cardRub}`,children:[s.jsx("div",{className:`${dt.logoCircle} ${dt.logoRub}`,children:"₽"}),s.jsx("div",{className:`${dt.badge} ${dt.badgeRub}`,children:"10 000 ₽"})]}),s.jsx("div",{className:`${dt.card} ${dt.cardEksa}`,children:s.jsx("img",{src:Ns,alt:"ЭКСА",className:dt.eksaLogo})}),s.jsxs("div",{className:`${dt.card} ${dt.cardUsdt}`,children:[s.jsx("div",{className:`${dt.logoCircle} ${dt.logoUsdt}`,children:"₮"}),s.jsx("div",{className:`${dt.badge} ${dt.badgeUsdt}`,children:"≈ 125.3 USDT"}),s.jsxs("div",{className:dt.status,children:[s.jsx("span",{className:dt.statusDot})," ✓ Зачислено"]})]}),s.jsxs("svg",{className:dt.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[s.jsx("defs",{children:s.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),s.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),s.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:2,strokeDasharray:"8 6",fill:"none"}),s.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:8,strokeDasharray:"8 6",opacity:.08,fill:"none"}),s.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),s.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),s.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),s.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),s.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),s.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}function Yj(a){const[i,c]=j.useState(Date.now());j.useEffect(()=>{const f=setInterval(()=>c(Date.now()),1e3);return()=>clearInterval(f)},[]);const r=Math.max(0,a-i),d=f=>String(f).padStart(2,"0");return{d:d(Math.floor(r/864e5)),h:d(Math.floor(r%864e5/36e5)),m:d(Math.floor(r%36e5/6e4)),s:d(Math.floor(r%6e4/1e3))}}const Xj="_label_ikzdd_1",Kj="_row_ikzdd_8",Zj="_unit_ikzdd_14",Wj="_num_ikzdd_21",Jj="_lbl_ikzdd_29",qc={label:Xj,row:Kj,unit:Zj,num:Wj,lbl:Jj},e5=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function t5({target:a}){const i=Yj(a);return s.jsxs("div",{children:[s.jsx("div",{className:qc.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),s.jsx("div",{className:qc.row,children:e5.map(([c,r])=>s.jsxs("div",{className:qc.unit,children:[s.jsx("div",{className:qc.num,children:i[c]}),s.jsx("div",{className:qc.lbl,children:r})]},c))})]})}const n5="_card_17ihg_51",s5="_statusPill_17ihg_84",a5="_statusDot_17ihg_99",l5="_flowRow_17ihg_107",i5="_curBlock_17ihg_114",c5="_curIcon_17ihg_122",r5="_rub_17ihg_133",o5="_usdt_17ihg_141",u5="_flowLine_17ihg_150",d5="_curAmount_17ihg_154",f5="_curLabel_17ihg_163",h5="_curCheck_17ihg_171",m5="_bridge_17ihg_182",p5="_bridgeLine_17ihg_191",_5="_bridgeLabel_17ihg_198",g5="_divider_17ihg_206",v5="_details_17ihg_212",y5="_detailRow_17ihg_220",x5="_detailLabel_17ihg_229",b5="_detailValue_17ihg_235",j5="_green_17ihg_242",Ie={card:n5,statusPill:s5,statusDot:a5,flowRow:l5,curBlock:i5,curIcon:c5,rub:r5,usdt:o5,flowLine:u5,curAmount:d5,curLabel:f5,curCheck:h5,bridge:m5,bridgeLine:p5,bridgeLabel:_5,divider:g5,details:v5,detailRow:y5,detailLabel:x5,detailValue:b5,green:j5};function S5(){return s.jsxs("div",{className:Ie.card,children:[s.jsxs("div",{className:Ie.statusPill,children:[s.jsx("span",{className:Ie.statusDot}),"Операция завершена"]}),s.jsxs("div",{className:Ie.flowRow,children:[s.jsxs("div",{className:Ie.curBlock,children:[s.jsx("div",{className:`${Ie.curIcon} ${Ie.rub}`,children:"₽"}),s.jsx("div",{className:Ie.curAmount,children:"10 000 ₽"}),s.jsx("div",{className:Ie.curLabel,children:"Отправлено"})]}),s.jsxs("div",{className:Ie.bridge,children:[s.jsx("div",{className:Ie.bridgeLine,children:s.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[s.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ie.flowLine}),s.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),s.jsx("div",{className:Ie.bridgeLabel,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("div",{className:Ie.bridgeLine,children:s.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[s.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ie.flowLine}),s.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),s.jsxs("div",{className:Ie.curBlock,children:[s.jsx("div",{className:`${Ie.curIcon} ${Ie.usdt}`,children:"₮"}),s.jsx("div",{className:Ie.curAmount,children:"125.3 USDT"}),s.jsxs("div",{className:Ie.curCheck,children:[s.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),s.jsx("div",{className:Ie.divider}),s.jsxs("div",{className:Ie.details,children:[s.jsxs("div",{className:Ie.detailRow,children:[s.jsx("span",{className:Ie.detailLabel,children:"Курс"}),s.jsxs("span",{className:Ie.detailValue,children:[u_.toFixed(2)," ₽ / USDT"]})]}),s.jsxs("div",{className:Ie.detailRow,children:[s.jsx("span",{className:Ie.detailLabel,children:"Комиссия"}),s.jsx("span",{className:`${Ie.detailValue} ${Ie.green}`,children:"0%"})]})]})]})}const N5="_hero_mnobr_1",w5="_content_mnobr_33",C5="_left_mnobr_45",T5="_desktop_mnobr_52",E5="_mobile_mnobr_56",R5="_right_mnobr_60",A5="_title_mnobr_67",L5="_line2_mnobr_74",O5="_reflection_mnobr_85",M5="_cta_mnobr_96",vs={hero:N5,content:w5,left:C5,desktop:T5,mobile:E5,right:R5,title:A5,line2:L5,reflection:O5,cta:M5};function z5(){return s.jsx("section",{className:vs.hero,children:s.jsxs("div",{className:vs.content,children:[s.jsxs("div",{className:vs.left,children:[s.jsx("div",{className:vs.desktop,children:s.jsx(Ij,{})}),s.jsx("div",{className:vs.mobile,children:s.jsx(S5,{})})]}),s.jsxs("div",{className:vs.right,children:[s.jsxs("h1",{className:vs.title,children:["Ваш мост",s.jsx("span",{className:vs.reflection,"aria-hidden":"true",children:"Ваш мост"}),s.jsxs("span",{className:vs.line2,children:["в мир",s.jsx("br",{}),"цифровых",s.jsx("br",{}),"активов"]})]}),s.jsxs("div",{children:[s.jsx(t5,{target:X6}),s.jsx("a",{href:"#converter",className:vs.cta,children:"Попробовать калькулятор"})]})]})]})})}const D5=[{name:"Bitcoin",ticker:"BTC",cls:"btc",icon:"₿",speed:30,color:"rgba(247,147,26,0.8)",fee:"~0.0001 BTC",confirm:"~10 мин"},{name:"Ethereum",ticker:"ETH",cls:"eth",icon:"Ξ",speed:60,color:"rgba(98,126,234,0.8)",fee:"~215 Gwei",confirm:"~15 сек"},{name:"Tron",ticker:"TRX",cls:"trx",icon:"◈",speed:90,color:"rgba(255,6,10,0.8)",fee:"~1 TRX",confirm:"~3 сек"},{name:"Solana",ticker:"SOL",cls:"sol",icon:"◎",speed:98,color:"rgba(153,69,255,0.8)",fee:"~0.000005 SOL",confirm:"~1 сек"},{name:"BSC Chain",ticker:"BNB",cls:"bnb",icon:"◆",speed:88,color:"rgba(243,186,47,0.8)",fee:"~0.0005 BNB",confirm:"~3 сек"}],k5="_section_10lhb_1",B5="_wrap_10lhb_6",$5="_title_10lhb_11",U5="_tableWrap_10lhb_18",H5="_table_10lhb_18",q5="_name_10lhb_52",F5="_icon_10lhb_58",G5="_icon_btc_10lhb_71",V5="_icon_eth_10lhb_75",Q5="_icon_trx_10lhb_79",P5="_icon_sol_10lhb_83",I5="_icon_bnb_10lhb_87",Y5="_label_10lhb_91",X5="_ticker_10lhb_96",K5="_speedBar_10lhb_102",Z5="_speedFill_10lhb_110",W5="_fee_10lhb_115",J5="_confirm_10lhb_121",e8="_footnote_10lhb_126",tn={section:k5,wrap:B5,title:$5,tableWrap:U5,table:H5,name:q5,icon:F5,icon_btc:G5,icon_eth:V5,icon_trx:Q5,icon_sol:P5,icon_bnb:I5,label:Y5,ticker:X5,speedBar:K5,speedFill:Z5,fee:W5,confirm:J5,footnote:e8};function t8(){return s.jsx("section",{className:tn.section,children:s.jsxs("div",{className:tn.wrap,children:[s.jsx("h2",{className:tn.title,children:"Поддерживаемые сети"}),s.jsx("div",{className:tn.tableWrap,children:s.jsxs("table",{className:tn.table,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Сеть"}),s.jsx("th",{children:"Скорость"}),s.jsx("th",{children:"Комиссия"}),s.jsx("th",{children:"Подтверждение"})]})}),s.jsx("tbody",{children:D5.map(a=>s.jsxs("tr",{children:[s.jsx("td",{children:s.jsxs("div",{className:tn.name,children:[s.jsx("div",{className:`${tn.icon} ${tn[`icon_${a.cls}`]}`,children:a.icon}),s.jsx("span",{className:tn.label,children:a.name}),s.jsx("span",{className:tn.ticker,children:a.ticker})]})}),s.jsx("td",{children:s.jsx("div",{className:tn.speedBar,children:s.jsx("div",{className:tn.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),s.jsx("td",{children:s.jsx("span",{className:tn.fee,children:a.fee})}),s.jsx("td",{children:s.jsx("span",{className:tn.confirm,children:a.confirm})})]},a.ticker))})]})}),s.jsx("div",{className:tn.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function n8(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsxs("main",{children:[s.jsx(z5,{}),s.jsx(kb,{}),s.jsx(rj,{}),s.jsx(t8,{})]}),s.jsx(Al,{})]})}async function g2(a,i,c){const r=await rn(),d=Rt.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...i.headers},h=await fetch(`${o_}${a}`,{...i,credentials:"include",headers:f});if(h.status===401&&c)try{return await rs(),g2(a,i,!1)}catch{throw Rt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}const rr={get:a=>g2(a,{},!0),post:(a,i)=>g2(a,{method:"POST",body:JSON.stringify(i)},!0)};function s8(a){return rr.post("/auth/registration/start",a)}function a8(a){return rr.post("/auth/registration/complete",a)}function l8(a){return rr.post("/auth/login/start",a)}function i8(a){return rr.post("/auth/login/complete",a)}async function c8(){const a=await rn();return rr.post("/auth/logout",{_csrf:a})}const or="https://app.users.elcsa.ru";async function H2(){const a=await rn(),i=Rt.get();return{"X-CSRF-Token":a,...i?{Authorization:`Bearer ${i}`}:{}}}async function r8(){const a=await H2(),i=await fetch(`${or}/me/`,{credentials:"include",headers:a}),c=await i.json();if(!i.ok)throw c;return c}async function o8(a){const i=await H2(),c=await fetch(`${or}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(a)}),r=await c.json();if(!c.ok)throw r;return r}async function u8(a){const i=await rn(),c=await fetch(`${or}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}async function d8(a){const i=await H2(),c=await fetch(`${or}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify({phone:a})});if(!c.ok)throw await c.json().catch(()=>({}))}async function f8(a){const i=await rn(),c=await fetch(`${or}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}function ea(a){return St({queryKey:["me"],queryFn:r8,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function h8(){const a=Wt();return mt({mutationFn:o8,onSuccess:i=>{a.setQueryData(["me"],i)}})}function m8(){const a=Wt();return mt({mutationFn:d8,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const au=["auth"];function p8(){return St({queryKey:au,queryFn:rs,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function f_(){const{data:a,isLoading:i,isError:c}=p8();return{isAuthenticated:!!a&&!c,isLoading:i}}const _8="https://app.b2b.elcsa.ru";async function ur(a,i,c){const r=await rn(),d=await fetch(`${_8}${a}`,{...i,credentials:"include",headers:{"X-CSRF-Token":r,...i.headers}});if(d.status===401&&c)try{return await rs(),ur(a,i,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function g8(a){return ur("/purchase-requests",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}function v8(a=50,i=0){return ur(`/purchase-requests?limit=${a}&offset=${i}`,{},!0)}function y8(){return ur("/v1/organizations/wallets",{},!0)}function x8(){return ur("/v1/organizations/wallets/balances",{},!0)}function b8(){const a=Wt();return mt({mutationFn:g8,onSuccess:()=>{a.invalidateQueries({queryKey:["b2b","purchase-requests"]})}})}function h_(){return St({queryKey:["b2b","purchase-requests"],queryFn:()=>v8(),staleTime:3e4})}const m_="https://app.cryptowallet.elcsa.ru",q2=["ETH","BSC","BTC","TRX","SOL"];async function Fa(a,i=!0){const c=await rn(),r=Rt.get(),d=await fetch(`${m_}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await rs(),Fa(a,!1)}catch{throw Rt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function os(a,i,c=!0,r={}){const d=await rn(),f=Rt.get(),h=await fetch(`${m_}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(h.status===401&&c)try{return await rs(),os(a,i,!1,r)}catch{throw Rt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}async function j8(){return(await Fa("/api/wallets")).data}async function S8(a){return(await Fa(`/api/wallets/${a}/balance`)).data}async function N8(a){return(await Fa(`/api/prices?symbols=${a.join(",")}`)).data}async function w8(a,i){return os(`/api/wallets/${a}/send`,i)}async function C8(){return(await Fa("/api/wallets/portfolio")).data}const T8={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function p_(a,i){const c=a==null?void 0:a.toUpperCase();return q2.includes(c)?c:(i?T8[i.toUpperCase()]:void 0)??null}function Ko(a){const i=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(i)?i:0}function Cp(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:Ko(a.usd_price),usdValue:Ko(a.usd_value)}}function E8(a,i){const c={};for(const[r,d]of Object.entries(a.tokens??{}))c[r]=Cp(d);return{chain:i,address:a.address,native:Cp(a.native),tokens:c,totalUsd:Ko(a.total_usd),stale:!1,lastUpdated:0}}async function __(){const a=await x8(),i={};for(const c of a.items??[]){const r=p_(c.chain,c.native_symbol);r&&(i[r]=E8(c,r))}return{totalUsd:Ko(a.total_usd),hasErrors:!!a.has_errors,perChain:i}}const R8={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function A8(a){const c=(await __()).perChain[a];return c?{chain:a,address:c.address,native:c.native,tokens:c.tokens}:{chain:a,address:"",native:R8,tokens:{}}}async function L8(){const a=await y8(),i=[];for(const c of a??[]){const r=p_(c.chain);r&&i.push({chain:r,address:c.address,derivationPath:c.derivation_path})}return i}async function O8(){return(await Fa("/api/tokens")).data}async function M8(){var i;const a=await Fa("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((i=a.data)==null?void 0:i.tokens)??a.tokens??{}}async function z8(a){var r;const i=new URLSearchParams({fromChain:a.fromChain,toChain:a.toChain,fromToken:a.fromToken,toToken:a.toToken,fromAmount:a.fromAmount,fromAddress:a.fromAddress,toAddress:a.toAddress,slippage:String(a.slippage)}).toString(),c=await Fa(`/api/jumper/quote-best?${i}`);return((r=c.data)==null?void 0:r.body)??c.body??c}async function D8(a){var c;const i=await os("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((c=i.data)==null?void 0:c.data)??i}async function k8(a){return os("/api/relay/quote",a)}async function B8(a){return os("/api/relay/execute/swap",a)}async function $8(a,i){const c=`relay-${a.toLowerCase()}-${Date.now()}`;return os(`/api/wallets/${a}/sign-raw-evm-tx`,i,!0,{"Idempotency-Key":c})}async function U8(a){return os("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function g_(a){return(await os("/api/wallets/TRX/swap/quote",a)).data}async function H8(a){return os("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function q8(){await os("/api/wallets/create",{})}async function F8(){return(await os("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function F2(){const{data:a}=ea();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Jc(a){const{isLegal:i,ready:c}=F2();return St({queryKey:["wallet","balance",a,i?"org":"self"],queryFn:i?()=>A8(a):()=>S8(a),enabled:i?c:!0,staleTime:3e4})}function G8(a){return St({queryKey:["wallet","prices",a.join(",")],queryFn:()=>N8(a),staleTime:300*1e3})}function V8(){return mt({mutationFn:({chain:a,...i})=>w8(a,i)})}function lu(){const{isLegal:a,ready:i}=F2();return St({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?L8:j8,enabled:a?i:!0,staleTime:600*1e3})}function iu(){const{isLegal:a,ready:i}=F2();return St({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?__:C8,enabled:a?i:!0,staleTime:3e4})}function Q8(){return St({queryKey:["wallet","tokens"],queryFn:O8,staleTime:600*1e3})}function P8(){return St({queryKey:["wallet","jumper","tokens"],queryFn:M8,staleTime:600*1e3})}function I8(){return mt({mutationFn:a=>z8(a)})}function Y8(){return mt({mutationFn:a=>D8(a)})}function X8(){return mt({mutationFn:q8})}function K8(){return St({queryKey:["wallet","mnemonic"],queryFn:F8,staleTime:1/0,retry:!1})}function v_(a){return St({queryKey:["relay","quote",a==null?void 0:a.originChainId,a==null?void 0:a.destinationChainId,a==null?void 0:a.originCurrency,a==null?void 0:a.destinationCurrency,a==null?void 0:a.amount],queryFn:()=>k8(a),enabled:!!a,staleTime:1e4})}function Z8(){return mt({mutationFn:a=>B8(a)})}function W8(){return mt({mutationFn:({chain:a,txData:i})=>a==="SOL"?U8(i):$8(a,i)})}function J8(a){return St({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>g_(a),enabled:!!a,staleTime:1e4})}function e7(){return mt({mutationFn:g_})}function t7(){return mt({mutationFn:a=>H8(a)})}const n7="_card_1kfaj_1",s7="_label_1kfaj_18",a7="_amount_1kfaj_27",l7="_actions_1kfaj_41",i7="_btn_1kfaj_46",rl={card:n7,label:s7,amount:a7,actions:l7,btn:i7},c7="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='309.147797pt'%20height='144.859221pt'%20viewBox='0%200%20309.147797%20144.859221'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-8.181291,146.963747)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M685%201459%20c-328%20-55%20-585%20-344%20-602%20-679%20-14%20-267%20104%20-496%20334%20-643%20282%20-183%20645%20-142%20888%2098%2098%2096%20128%20143%20325%20490%2084%20149%20172%20300%20195%20336%20180%20279%20488%20420%20765%20350%20253%20-64%20426%20-222%20507%20-466%2024%20-70%2027%20-96%2027%20-205%200%20-109%20-3%20-135%20-27%20-207%20-49%20-148%20-167%20-293%20-306%20-377%20-261%20-159%20-617%20-110%20-830%20114%20-30%2032%20-73%2089%20-96%20126%20-43%2070%20-75%2094%20-75%2055%200%20-29%20113%20-194%20163%20-236%20141%20-122%20290%20-185%20453%20-193%20126%20-6%20219%2010%20318%2053%20206%2089%20356%20258%20426%20480%2030%2095%2031%20257%202%20367%20-37%20138%20-111%20259%20-219%20357%20-81%2075%20-234%20154%20-338%20176%20-249%2052%20-515%20-37%20-697%20-234%20-76%20-82%20-145%20-187%20-283%20-436%20-161%20-288%20-191%20-340%20-242%20-412%20-81%20-115%20-208%20-214%20-342%20-266%20-64%20-25%20-94%20-31%20-189%20-35%20-146%20-6%20-213%208%20-341%2070%20-88%2042%20-117%2062%20-181%20127%20-166%20169%20-236%20408%20-181%20623%2063%20245%20223%20419%20461%20499%20211%2071%20430%2028%20628%20-124%2055%20-41%20134%20-138%20184%20-222%2026%20-43%2048%20-52%2048%20-20%200%2019%20-53%20108%20-101%20170%20-147%20193%20-433%20305%20-674%20264z'/%3e%3cpath%20d='M2339%201018%20c-51%20-95%20-108%20-198%20-126%20-228%20-18%20-30%20-33%20-61%20-33%20-69%200%20-13%2053%20-102%20191%20-323%2040%20-65%2059%20-87%2073%20-85%2026%203%20198%20279%20183%20293%20-8%209%20-85%20-89%20-132%20-168%20-26%20-44%20-49%20-77%20-51%20-75%20-17%2016%20-174%20280%20-170%20285%203%203%2042%20-16%2087%20-42%2077%20-45%2082%20-47%20105%20-31%2030%2020%2032%2039%202%2031%20-17%20-4%20-51%2012%20-125%2057%20-57%2034%20-103%2067%20-103%2074%200%2019%20194%20374%20204%20375%209%200%2048%20-66%20158%20-272%2048%20-90%2054%20-98%2070%20-82%209%209%20-1%2037%20-46%20124%20-96%20187%20-166%20308%20-180%20308%20-7%200%20-55%20-78%20-107%20-172z'/%3e%3cpath%20d='M688%201083%20l-3%20-38%20-57%20-3%20c-50%20-3%20-58%20-6%20-58%20-22%200%20-16%207%20-20%2030%20-20%20l30%200%20-2%20-247%20-3%20-248%20-27%20-3%20c-30%20-4%20-38%20-26%20-12%20-36%209%20-3%2035%20-6%2059%20-6%2043%200%2044%200%2047%20-37%202%20-27%208%20-39%2021%20-41%2014%20-3%2017%204%2017%2037%200%2037%203%2041%2024%2041%2021%200%2025%20-5%2028%20-37%204%20-52%2032%20-52%2036%20-2%203%2036%205%2037%2050%2044%2059%209%2093%2026%20125%2065%2054%2063%2048%20152%20-15%20214%20l-40%2040%2021%2037%20c12%2020%2021%2049%2021%2063%200%2065%20-58%20137%20-120%20151%20-23%205%20-30%2012%20-30%2030%200%2034%20-10%2055%20-26%2055%20-8%200%20-14%20-10%20-14%20-24%200%20-39%20-11%20-56%20-35%20-56%20-20%200%20-24%206%20-27%2037%20-2%2026%20-8%2039%20-20%2041%20-13%202%20-17%20-5%20-20%20-35z%20m176%20-97%20c42%20-18%2066%20-51%2066%20-94%200%20-76%20-42%20-102%20-165%20-102%20l-85%200%200%20105%200%20105%2075%200%20c42%200%2090%20-6%20109%20-14z%20m67%20-253%20c41%20-24%2062%20-83%2049%20-133%20-19%20-72%20-87%20-103%20-218%20-98%20l-77%203%20-3%20109%20c-1%2061%200%20116%202%20123%208%2021%20210%2018%20247%20-4z'/%3e%3c/g%3e%3c/svg%3e",r7="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='735.823910pt'%20height='388.545063pt'%20viewBox='0%200%20735.823910%20388.545063'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-7.217511,405.779758)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M1798%204049%20c-430%20-42%20-842%20-238%20-1148%20-548%20-301%20-304%20-486%20-664%20-555%20-1081%20-25%20-154%20-31%20-424%20-11%20-560%2078%20-530%20310%20-943%20721%20-1283%20108%20-89%20335%20-218%20495%20-280%20396%20-155%20886%20-166%201300%20-28%20135%2045%20358%20157%20475%20239%20266%20185%20495%20448%20625%20720%2024%2050%2047%2092%2050%2092%203%200%2034%20-57%2070%20-127%20192%20-377%20514%20-681%20905%20-855%20474%20-212%201031%20-221%201510%20-26%20569%20233%20990%20720%201136%201313%20126%20515%2051%201029%20-217%201487%20-254%20433%20-705%20771%20-1187%20887%20-194%2047%20-261%2055%20-447%2055%20-245%201%20-433%20-30%20-660%20-109%20-263%20-91%20-537%20-269%20-741%20-481%20-117%20-122%20-269%20-344%20-338%20-492%20-14%20-29%20-27%20-52%20-31%20-52%20-3%200%20-21%2030%20-39%2068%20-103%20210%20-277%20437%20-456%20595%20-395%20347%20-927%20517%20-1457%20466z%20m432%20-83%20c648%20-87%201206%20-513%201457%20-1113%2058%20-139%2070%20-143%20109%20-40%2086%20229%20283%20517%20465%20681%20172%20156%20423%20309%20613%20375%20241%2085%20441%20116%20686%20108%20197%20-7%20344%20-32%20523%20-91%20549%20-180%20993%20-630%201176%20-1194%2072%20-221%2086%20-314%2086%20-587%20-1%20-268%20-10%20-343%20-70%20-540%20-168%20-552%20-569%20-985%20-1113%20-1199%20-194%20-76%20-520%20-130%20-722%20-120%20-606%2032%20-1137%20334%20-1468%20835%20-54%2082%20-134%20237%20-172%20334%20-46%20115%20-55%20113%20-110%20-22%20-174%20-433%20-499%20-773%20-932%20-978%20-184%20-87%20-403%20-143%20-642%20-165%20-291%20-26%20-662%2047%20-937%20185%20-449%20225%20-784%20611%20-938%201082%20-71%20216%20-86%20314%20-86%20583%200%20183%204%20256%2018%20330%2091%20489%20342%20897%20733%201191%20256%20193%20549%20309%20889%20352%2076%2010%20340%205%20435%20-7z'/%3e%3cpath%20d='M5120%202656%20c0%20-459%20-2%20-515%20-16%20-520%20-9%20-3%20-78%20-6%20-155%20-6%20l-139%200%200%20-55%200%20-55%20155%200%20156%200%20-3%20-127%20-3%20-128%20-150%20-5%20-150%20-5%20-3%20-47%20-3%20-48%20155%200%20156%200%202%20-327%203%20-328%2055%200%2055%200%203%20327%202%20328%20363%202%20362%203%200%2045%200%2045%20-360%205%20-360%205%20-3%20127%20-3%20126%20383%204%20383%204%2082%2027%20c246%2082%20396%20288%20395%20542%200%20234%20-134%20436%20-345%20522%20-109%2045%20-207%2053%20-629%2053%20l-388%200%200%20-514z%20m940%20375%20c171%20-60%20266%20-168%20306%20-351%2052%20-230%20-99%20-468%20-337%20-531%20-47%20-13%20-722%20-26%20-765%20-15%20l-24%206%200%20461%200%20461%20378%20-4%20c362%20-4%20380%20-5%20442%20-27z'/%3e%3cpath%20d='M1199%203044%20c-5%20-7%20-8%20-75%20-7%20-155%20l3%20-144%20300%20-5%20300%20-5%203%20-317%202%20-318%20190%200%20c174%200%20190%201%20191%2018%200%209%201%20152%202%20317%20l2%20300%20303%203%20302%202%200%20155%20c0%20117%20-3%20155%20-12%20156%20-7%200%20-363%201%20-791%202%20-571%201%20-781%20-1%20-788%20-9z'/%3e%3cpath%20d='M1555%202404%20c-279%20-30%20-473%20-77%20-561%20-137%20-209%20-141%2095%20-294%20668%20-336%2064%20-5%20121%20-12%20127%20-15%208%20-5%2011%20-136%2011%20-437%20l0%20-429%20193%202%20192%203%203%20433%20c2%20403%203%20432%2020%20432%209%200%2082%207%20162%2015%20357%2035%20609%20109%20668%20195%2077%20115%20-127%20217%20-528%20264%20-240%2028%20-269%2029%20-276%2011%20-4%20-9%20-3%20-20%202%20-25%205%20-5%2070%20-14%20144%20-20%20276%20-23%20501%20-75%20562%20-129%2043%20-39%2033%20-63%20-45%20-100%20-321%20-157%20-1451%20-161%20-1799%20-8%20-68%2030%20-94%2062%20-75%2092%2040%2062%20261%20118%20577%20145%2074%207%20139%2015%20143%2019%204%204%205%2015%201%2024%20-7%2020%20-13%2020%20-189%201z'/%3e%3cpath%20d='M3365%202095%20c-30%20-30%20-31%20-54%20-4%20-89%2040%20-50%20119%20-21%20119%2044%200%2064%20-70%2091%20-115%2045z'/%3e%3cpath%20d='M3726%202099%20c-52%20-41%20-24%20-119%2044%20-119%2031%200%2044%208%2059%2037%2017%2033%2014%2051%20-14%2078%20-30%2030%20-54%2031%20-89%204z'/%3e%3cpath%20d='M4100%202113%20c-42%20-17%20-53%20-80%20-19%20-114%2028%20-28%2076%20-22%20102%2013%2018%2024%2019%2030%207%2058%20-16%2039%20-53%2057%20-90%2043z'/%3e%3c/g%3e%3c/svg%3e";function o7(){const{data:a,isLoading:i}=iu(),c=i||!a||a.totalUsd==null?"$—":`$${a.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return s.jsxs("div",{className:rl.card,children:[s.jsxs("div",{className:rl.left,children:[s.jsx("div",{className:rl.label,children:"Общий баланс"}),s.jsx("div",{className:rl.amount,children:c})]}),s.jsxs("div",{className:rl.actions,children:[s.jsxs(It,{to:de.CONVERTER,className:rl.btn,type:"button",children:[s.jsx("img",{src:r7,alt:"swap"}),"Пополнить кошелёк"]}),s.jsxs(It,{to:de.SWAP,className:rl.btn,type:"button",children:[s.jsx("img",{src:c7,alt:"topup"}),"Своп / Бридж"]})]})]})}const u7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%206H15C16.6569%206%2018%207.34315%2018%209C18%2010.6569%2016.6569%2012%2015%2012M10%206V12M10%206H7M10%206V3M15%2012H10M15%2012C16.6569%2012%2018%2013.3431%2018%2015C18%2016.6569%2016.6569%2018%2015%2018H10M10%2012V18M10%2018H7M10%2018V21M13%206V3M13%2021V18'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",d7="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",f7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%205.22265C7.17671%205.08355%207.33282%205%207.5%205H18.5C18.6844%205%2018.8538%205.10149%2018.9408%205.26407C19.0278%205.42665%2019.0183%205.62392%2018.916%205.77735L16.916%208.77735C16.8233%208.91645%2016.6672%209%2016.5%209H5.5C5.3156%209%205.14617%208.89851%205.05916%208.73593C4.97215%208.57335%204.98169%208.37608%205.08398%208.22265L7.08398%205.22265ZM7.76759%206L6.43426%208H16.2324L17.5657%206H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2015.2226C7.17671%2015.0836%207.33282%2015%207.5%2015H18.5C18.6844%2015%2018.8538%2015.1015%2018.9408%2015.2641C19.0278%2015.4267%2019.0183%2015.6239%2018.916%2015.7774L16.916%2018.7774C16.8233%2018.9164%2016.6672%2019%2016.5%2019H5.5C5.3156%2019%205.14617%2018.8985%205.05916%2018.7359C4.97215%2018.5734%204.98169%2018.3761%205.08398%2018.2226L7.08398%2015.2226ZM7.76759%2016L6.43426%2018H16.2324L17.5657%2016H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2013.7774C7.17671%2013.9164%207.33282%2014%207.5%2014H18.5C18.6844%2014%2018.8538%2013.8985%2018.9408%2013.7359C19.0278%2013.5733%2019.0183%2013.3761%2018.916%2013.2226L16.916%2010.2226C16.8233%2010.0836%2016.6672%2010%2016.5%2010H5.5C5.3156%2010%205.14617%2010.1015%205.05916%2010.2641C4.97215%2010.4267%204.98169%2010.6239%205.08398%2010.7774L7.08398%2013.7774ZM7.76759%2013L6.43426%2011H16.2324L17.5657%2013H7.76759Z'%20fill='%23fff'/%3e%3c/svg%3e",h7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.6109%204.68601C4.72546%204.54406%204.90822%204.47575%205.0878%204.50778L16.575%206.55656C16.6715%206.57377%2016.7608%206.61896%2016.8318%206.68651L19.3446%209.07676C19.5379%209.26064%2019.5528%209.5639%2019.3784%209.76583L11.122%2019.3268C11.0084%2019.4583%2010.8347%2019.5214%2010.6632%2019.4935C10.4917%2019.4656%2010.347%2019.3506%2010.281%2019.1898L4.53742%205.18979C4.46819%205.02103%204.49635%204.82796%204.6109%204.68601ZM6.19646%206.59904L10.4853%2017.053L11.2894%2010.6786L6.19646%206.59904ZM12.2688%2010.9045L11.4468%2017.4207L17.7491%2010.1226L12.2688%2010.9045ZM17.9075%209.08986L13.7298%209.68594L16.4453%207.69901L17.9075%209.08986ZM15.2483%207.33573L6.84451%205.83688L11.8343%209.83381L15.2483%207.33573Z'%20fill='%23fff'/%3e%3c/svg%3e",m7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2026.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%202496%202496'%20style='enable-background:new%200%200%202496%202496;'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23F0B90B;'%20d='M1248,0c689.3,0,1248,558.7,1248,1248s-558.7,1248-1248,1248%20S0,1937.3,0,1248S558.7,0,1248,0L1248,0z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M685.9,1248l0.9,330l280.4,165v193.2l-444.5-260.7v-524L685.9,1248L685.9,1248z%20M685.9,918v192.3%20l-163.3-96.6V821.4l163.3-96.6l164.1,96.6L685.9,918L685.9,918z%20M1084.3,821.4l163.3-96.6l164.1,96.6L1247.6,918L1084.3,821.4%20L1084.3,821.4z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M803.9,1509.6v-193.2l163.3,96.6v192.3L803.9,1509.6L803.9,1509.6z%20M1084.3,1812.2l163.3,96.6%20l164.1-96.6v192.3l-164.1,96.6l-163.3-96.6V1812.2L1084.3,1812.2z%20M1645.9,821.4l163.3-96.6l164.1,96.6v192.3l-164.1,96.6V918%20L1645.9,821.4L1645.9,821.4L1645.9,821.4z%20M1809.2,1578l0.9-330l163.3-96.6v524l-444.5,260.7v-193.2L1809.2,1578L1809.2,1578%20L1809.2,1578z'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='1692.1,1509.6%201528.8,1605.3%201528.8,1413%201692.1,1316.4%201692.1,1509.6%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M1692.1,986.4l0.9,193.2l-281.2,165v330.8l-163.3,95.7l-163.3-95.7v-330.8l-281.2-165V986.4%20L968,889.8l279.5,165.8l281.2-165.8l164.1,96.6H1692.1L1692.1,986.4z%20M803.9,656.5l443.7-261.6l444.5,261.6l-163.3,96.6%20l-281.2-165.8L967.2,753.1L803.9,656.5L803.9,656.5z'/%3e%3c/g%3e%3c/svg%3e",p7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='151'%20height='172'%20viewBox='0%200%20151%20172'%20fill='none'%3e%3cpath%20d='M144.518%2039.2113L82.214%203.03438C80.1932%201.87961%2077.9919%201.28418%2075.7545%201.28418C73.5352%201.28418%2071.3158%201.87961%2069.3311%203.03438L7.00937%2039.2474C3.05788%2041.5569%200.585938%2045.8151%200.585938%2050.4162V122.842C0.585938%20127.443%203.05788%20131.756%207.00937%20134.047L18.2143%20140.561L34.5616%20150.052L38.2243%20139.965L71.8932%2047.1143C72.2%2046.2121%2071.5504%2045.2378%2070.54%2045.2378H54.752C53.5792%2045.2378%2052.4966%2045.9775%2052.1177%2047.0782L21.8951%20130.474L12.2961%20124.899C11.5743%20124.484%2011.1232%20123.708%2011.1232%20122.878V50.4162C11.1232%2049.5862%2011.5743%2048.8103%2012.2961%2048.3953L74.6178%2012.1824C74.9606%2011.9658%2075.3756%2011.8756%2075.7725%2011.8756C76.1875%2011.8756%2076.5665%2011.9839%2076.9454%2012.1824L139.285%2048.3953C140.007%2048.8103%20140.458%2049.5862%20140.458%2050.4162V122.842C140.458%20123.672%20140.007%20124.448%20139.285%20124.863L129.794%20130.384L104.822%2061.4768C104.371%2060.2137%20102.639%2060.2137%20102.188%2061.4768L93.9602%2084.1392C93.7257%2084.7707%2093.7257%2085.4744%2093.9602%2086.0879L113.447%20139.875L106.969%20143.646L91.0192%2099.6023C90.5681%2098.3393%2088.8359%2098.3393%2088.3848%2099.6023L80.1571%20122.265C79.9225%20122.896%2079.9225%20123.6%2080.1571%20124.213L90.6403%20153.137L76.9634%20161.094C76.6206%20161.311%2076.2056%20161.401%2075.7906%20161.401C75.3756%20161.401%2074.9967%20161.293%2074.6178%20161.094L61.1033%20153.227L99.5537%2047.1323C99.8965%2046.1941%2099.2108%2045.2017%2098.2365%2045.2017H82.4486C81.2758%2045.2017%2080.1932%2045.9414%2079.8142%2047.0421L44.756%20143.718L41.0932%20153.805L57.4405%20163.295L69.3672%20170.224C71.3519%20171.379%2073.5713%20171.974%2075.7906%20171.974C78.0099%20171.974%2080.2292%20171.379%2082.214%20170.224L144.554%20134.011C148.541%20131.701%20150.977%20127.443%20150.977%20122.806V50.4162C150.977%2045.8151%20148.505%2041.5028%20144.554%2039.2113H144.518Z'%20fill='white'/%3e%3c/svg%3e",_7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FDDE00;}%20.st1{fill:%233C2D0C;}%20.st2{fill:%23E78C19;}%20.st3{fill:%23EFB99D;}%20.st4{fill:%23FBFBFB;}%20.st5{fill:%23E72D36;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20class='st1'%20d='M131.4,181c0,0-13.2,16.7-8.8,92.2c0,0-28.9,74-19.1,111.8c9.8,37.7,48,35.8,48,35.8s61.3,53.9,108.3,6.4%20c47.1-47.6-39.2-231.9-39.2-231.9l-10.8-63.7c0,0-11.8,9.3-10.3,70.6s-24,18.1-24,18.1L131.4,181z'/%3e%3cpath%20class='st2'%20d='M136.3,247.7l-16.2,45.6l-5.9,31.9c0,0-20.1,71.1,62.8,70.1c0,0,64.7,57.9,106.9,19.1l11.3-12.3l19.6-30.4%20l32.4-96.6c0,0-10.3-66.2-75.5-93.6c0,0-5.4-2.9-15.2,1c0,0-27-60.8-44.1-53.4c0,0-14.7,7.8-2,67.7l-23,10.3%20c0,0-25.2-47.8-48.5-38.2C117.2,177.6,136.3,247.7,136.3,247.7z'/%3e%3cpath%20class='st3'%20d='M220.1,158.9l2,26.5c0,0,1.5,15.2,17.6,9.8c4.6-1.5,8.6-4.7,8.2-9.9c-0.3-3.9-3-7.5-4.8-10.8%20c-3.3-6.3-6-13-9.9-19.1c-2-3.1-6.1-10-10.6-9.2C222.6,146.2,219.2,145.2,220.1,158.9z'/%3e%3cpath%20class='st3'%20d='M149.3,188.7c0.3-0.2,6.9-8.5,20.6,11.7c13.7,20.2,12.3,17.6,12.3,17.6s7.4,8.1-7.7,18.5%20c-3.3,2.4-6.9,4.4-10.7,6c-2.4,0.9-4.9,1.4-7.4,1.4c-2.9-0.1-4.2-1.6-4.9-4.3c-2.3-8.8-4.9-17.6-6.2-26.6%20C144.3,206,142.3,193.2,149.3,188.7z'/%3e%3cpath%20class='st4'%20d='M308.5,229.4c0,4.8-7,8.7-15.7,8.7c-8.7,0-15.7-3.9-15.7-8.7s7.2-11.9,15.8-11.9S308.5,224.6,308.5,229.4z'/%3e%3cellipse%20transform='matrix(0.4925%20-0.8703%200.8703%200.4925%20-121.8385%20314.1253)'%20class='st4'%20cx='208.4'%20cy='261.5'%20rx='17.1'%20ry='11'/%3e%3cpath%20class='st4'%20d='M240.2,306.7l42.9-22.3c0,0,53.4-27.9,66.4-6.4s0,54.4,0,54.4s-5.6,38.5-44.9,41.9l-21.1,2.9l-27,0.7%20c0,0-43.4,2.5-75.3-21.1l-10.1-12.3c0,0-20.3-27.9-6.1-48s62.8,11,62.8,11S234.6,311.2,240.2,306.7z'/%3e%3ccircle%20class='st5'%20cx='337.5'%20cy='185.2'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='314.7'%20cy='159.9'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='278.2'%20cy='151.8'%20r='10.3'/%3e%3cpath%20class='st5'%20d='M286.3,78.8c2.2,30.4-2.2,57.9-9.6,57.9s-17.2-29.7-17.2-57.9c0-11.6,6.1-13.5,13.5-13.5%20C280.5,65.3,285.5,67.2,286.3,78.8z'/%3e%3cpath%20class='st5'%20d='M354.5,97.7c-11.2,28.3-27.1,51.2-33.7,48c-6.6-3.2-2.6-34.2,9.7-59.6c5.1-10.5,11.4-9.5,18-6.3%20C355.1,83.1,358.8,86.9,354.5,97.7z'/%3e%3cpath%20class='st5'%20d='M403.3,152.9c-24.7,17.9-50.3,28.7-54.2,22.4c-3.9-6.3,16.2-30.2,40.1-45.1c9.9-6.1,14.7-1.9,18.6,4.3%20C411.6,140.8,412.7,146,403.3,152.9z'/%3e%3cpath%20d='M238.2,276.8c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C252.5,278.8,246,276.2,238.2,276.8z'/%3e%3cpath%20d='M292.4,263.4c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C306.8,265.4,300.2,262.8,292.4,263.4z'/%3e%3cpath%20d='M310.2,279.3c0,0-21.5,6.3-20.2,18.4s27.2,18.4,27.2,18.4s7,2.8,11-3.9c4-6.6,9.9-15.6,8.3-28.5%20C336.5,283.7,336,274.1,310.2,279.3z'/%3e%3c/svg%3e",g7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20336.41%20337.42'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23f0b90b;stroke:%23f0b90b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M168.2.71l41.5,42.5L105.2,147.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M231.2,63.71l41.5,42.5L105.2,273.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M42.2,126.71l41.5,42.5-41.5,41.5L.7,169.21Z'/%3e%3cpath%20class='cls-1'%20d='M294.2,126.71l41.5,42.5L168.2,336.71l-41.5-41.5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",v7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Creator:%20CorelDRAW%202019%20(64-Bit)%20--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='100%25'%20height='100%25'%20version='1.1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20image-rendering='optimizeQuality'%20fill-rule='evenodd'%20clip-rule='evenodd'%20viewBox='0%200%20444.44%20444.44'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3e%3cg%20id='Layer_x0020_1'%3e%3cmetadata%20id='CorelCorpID_0Corel-Layer'/%3e%3cpath%20fill='%23F5AC37'%20fill-rule='nonzero'%20d='M222.22%200c122.74,0%20222.22,99.5%20222.22,222.22%200,122.74%20-99.48,222.22%20-222.22,222.22%20-122.72,0%20-222.22,-99.49%20-222.22,-222.22%200,-122.72%2099.5,-222.22%20222.22,-222.22z'/%3e%3cpath%20fill='%23FEFEFD'%20fill-rule='nonzero'%20d='M230.41%20237.91l84.44%200c1.8,0%202.65,0%202.78,-2.36%200.69,-8.59%200.69,-17.23%200,-25.83%200,-1.67%20-0.83,-2.36%20-2.64,-2.36l-168.05%200c-2.08,0%20-2.64,0.69%20-2.64,2.64l0%2024.72c0,3.19%200,3.19%203.33,3.19l82.78%200zm77.79%20-59.44c0.24,-0.63%200.24,-1.32%200,-1.94%20-1.41,-3.07%20-3.08,-6%20-5.02,-8.75%20-2.92,-4.7%20-6.36,-9.03%20-10.28,-12.92%20-1.85,-2.35%20-3.99,-4.46%20-6.39,-6.25%20-12.02,-10.23%20-26.31,-17.47%20-41.67,-21.11%20-7.75,-1.74%20-15.67,-2.57%20-23.61,-2.5l-74.58%200c-2.08,0%20-2.36,0.83%20-2.36,2.64l0%2049.3c0,2.08%200,2.64%202.64,2.64l160.27%200c0,0%201.39,-0.28%201.67,-1.11l-0.68%200zm0%2088.33c-2.36,-0.26%20-4.74,-0.26%20-7.1,0l-154.02%200c-2.08,0%20-2.78,0%20-2.78,2.78l0%2048.2c0,2.22%200,2.78%202.78,2.78l71.11%200c3.4,0.26%206.8,0.02%2010.13,-0.69%2010.32,-0.74%2020.47,-2.98%2030.15,-6.67%203.52,-1.22%206.92,-2.81%2010.13,-4.72l0.97%200c16.67,-8.67%2030.21,-22.29%2038.75,-39.01%200,0%200.97,-2.1%20-0.12,-2.65zm-191.81%2078.75l0%20-0.83%200%20-32.36%200%20-10.97%200%20-32.64c0,-1.81%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-26.39%2032.22%200c1.8,0%202.5,0%202.5,-2.36l0%20-26.11c0,-1.67%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-24.44c0,-1.53%200,-1.94%202.22,-1.94l29.86%200c2.08,0%202.64,0%202.64,-2.64l0%20-74.86c0,-2.22%200,-2.78%202.78,-2.78l104.16%200c7.56,0.3%2015.07,1.13%2022.5,2.5%2015.31,2.83%2030.02,8.3%2043.47,16.11%208.92,5.25%2017.13,11.59%2024.44,18.89%205.5,5.71%2010.46,11.89%2014.86,18.47%204.37,6.67%208,13.8%2010.85,21.25%200.35,1.94%202.21,3.25%204.15,2.92l24.86%200c3.19,0%203.19,0%203.33,3.06l0%2022.78c0,2.22%20-0.83,2.78%20-3.06,2.78l-19.17%200c-1.94,0%20-2.5,0%20-2.36,2.5%200.76,8.46%200.76,16.95%200,25.41%200,2.36%200,2.64%202.65,2.64l21.93%200c0.97,1.25%200,2.5%200,3.76%200.14,1.61%200.14,3.24%200,4.85l0%2016.81c0,2.36%20-0.69,3.06%20-2.78,3.06l-26.25%200c-1.83,-0.35%20-3.61,0.82%20-4.03,2.64%20-6.25,16.25%20-16.25,30.82%20-29.17,42.5%20-4.72,4.25%20-9.68,8.25%20-14.86,11.94%20-5.56,3.2%20-10.97,6.53%20-16.67,9.17%20-10.49,4.72%20-21.49,8.2%20-32.78,10.41%20-10.72,1.92%20-21.59,2.79%20-32.5,2.64l-96.39%200%200%20-0.14z'/%3e%3c/g%3e%3c/svg%3e",y7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%202000%202000'%20width='2500'%20height='2500'%3e%3cg%20fill='%23c2a633'%3e%3cpath%20d='M1024%20659H881.12v281.69h224.79v117.94H881.12v281.67H1031c38.51%200%20316.16%204.35%20315.73-327.72S1077.44%20659%201024%20659z'/%3e%3cpath%20d='M1000%200C447.71%200%200%20447.71%200%201000s447.71%201000%201000%201000%201000-447.71%201000-1000S1552.29%200%201000%200zm39.29%201540.1H677.14v-481.46H549.48V940.7h127.65V459.21h310.82c73.53%200%20560.56-15.27%20560.56%20549.48%200%20574.09-509.21%20531.41-509.21%20531.41z'/%3e%3c/g%3e%3c/svg%3e",x7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='katman_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20800%20800'%20style='enable-background:new%200%200%20800%20800;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23141726;}%20.st1{fill:url(%23SVGID_1_);}%20.st2{fill:url(%23SVGID_2_);}%20.st3{fill:url(%23SVGID_3_);}%20.st4{fill:url(%23SVGID_4_);}%20.st5{fill:url(%23SVGID_5_);}%20.st6{fill:url(%23SVGID_6_);}%20%3c/style%3e%3ccircle%20class='st0'%20cx='400'%20cy='400'%20r='400'/%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='574.9257'%20y1='665.8727'%20x2='248.5257'%20y2='142.3127'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M536,568.9c-66.8-108.5-166.4-170-289.4-195.6c-43.5-9-87.2-8.9-129.4,7.7c-28.9,11.4-33.3,23.4-19.7,53.7%20c92.4-21.9,178.4-1.5,258.9,45c81.1,46.9,141.6,112.2,169.1,205c38.6-11.8,43.6-18.3,34.3-54.2C554.3,609.4,547.4,587.4,536,568.9%20L536,568.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='572.5896'%20y1='667.3303'%20x2='246.1996'%20y2='143.7703'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M609.1,480.6c-85.8-125-207.3-194.9-355.8-218.3c-39.3-6.2-79.4-4.5-116.2,14.3c-17.6,9-33.2,20.5-37.4,44.9%20c115.8-31.9,219.7-3.7,317.5,53c98.3,57,175.1,133.5,205,251.1c20.8-18.4,24.5-41,19.1-62C633.9,534.8,625.5,504.5,609.1,480.6%20L609.1,480.6z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='577.0148'%20y1='664.5671'%20x2='250.6247'%20y2='141.0071'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M105,488.6c7.3,16.2,12.1,34.5,23,47.6c5.5,6.7,22.2,4.1,33.8,5.7c1.8,0.2,3.6,0.5,5.4,0.7%20c102.9,15.3,184.1,65.1,242.1,152c3.4,5.1,8.9,12.7,13.4,12.7c17.4-0.1,34.9-2.8,52.5-4.5C449,557.5,232.8,438.3,105,488.6%20L105,488.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='569.0272'%20y1='669.5518'%20x2='242.6272'%20y2='145.9917'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st4'%20d='M656.6,366.7C599.9,287.4,521.7,234.6,432.9,197c-61.5-26.1-125.2-41.8-192.8-33.7%20c-23.4,2.8-45.3,9.5-63.4,24.7c230.9,5.8,404.6,105.8,524,303.3c0.2-13.1,2.2-27.7-2.6-39.5C686.1,422.5,674.7,392,656.6,366.7z'/%3e%3clinearGradient%20id='SVGID_5_'%20gradientUnits='userSpaceOnUse'%20x1='571.6973'%20y1='667.8917'%20x2='245.2973'%20y2='144.3317'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st5'%20d='M709.8,325.3c-47-178.9-238-265-379.2-221.4C482.7,133.9,607.5,206.4,709.8,325.3z'/%3e%3clinearGradient%20id='SVGID_6_'%20gradientUnits='userSpaceOnUse'%20x1='579.0382'%20y1='663.3111'%20x2='252.6482'%20y2='139.7511'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st6'%20d='M155.4,583.9c54.6,69.3,124,109.7,213,122.8C334.4,643.2,214.6,574.5,155.4,583.9L155.4,583.9z'/%3e%3c/svg%3e",b7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037.8%2043.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%232a5ada;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M18.9,0l-4,2.3L4,8.6,0,10.9V32.7L4,35l11,6.3,4,2.3,4-2.3L33.8,35l4-2.3V10.9l-4-2.3L22.9,2.3ZM8,28.1V15.5L18.9,9.2l10.9,6.3V28.1L18.9,34.4Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",j7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD15C;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3cpath%20class='st0'%20d='M512,256c0,141.4-114.6,256-256,256S0,397.4,0,256S114.6,0,256,0S512,114.6,512,256z'/%3e%3cpath%20class='st1'%20d='M193.5,152.3c-10.4,1.5-4.6,10.4-4.6,10.4l-0.3,2.5c14.9,25.7,39.5,52.7,64.6,70.7c18.5,13.2,32.3,32.7,39,54.9%20c6.6,21.9,5.4,44.6-3.2,62.2c-10.4,21.2-30.1,33.5-55.3,34.7c-25.1,1.2-54.9-8.7-88.6-29.4c-0.3,0.8-0.7,1.6-1.1,2.3%20c29.2,30.1,63,48.1,98.1,52.2c35.5,4.2,71.9-5.8,102.7-27.9c-0.8,0-1.4-0.2-1.9-0.5C446.5,298.8,276.9,140.4,193.5,152.3%20L193.5,152.3z'/%3e%3cpath%20d='M462.6,267.4c-0.1-1.9-0.2-4.2-0.6-6.9c-1.3-10.5-5.5-26.6-17.7-43.7c-0.6-0.8-1.2-1.6-1.8-2.4c-0.1-0.2-0.3-0.4-0.4-0.6%20c-0.5-0.7-1.1-1.4-1.6-2.1c0,0-0.1-0.1-0.1-0.1c-0.6-0.7-1.2-1.5-1.8-2.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.5-0.6-1.1-1.3-1.6-1.9%20c-0.1-0.1-0.1-0.1-0.2-0.2c-0.6-0.7-1.2-1.3-1.8-2c-0.1-0.1-0.3-0.3-0.4-0.4c-0.5-0.6-1-1.1-1.5-1.6c-0.1-0.1-0.2-0.2-0.2-0.3%20c-0.6-0.6-1.2-1.2-1.7-1.7c-0.1-0.1-0.2-0.2-0.4-0.4c-0.5-0.5-1-1-1.5-1.4c-0.1-0.1-0.2-0.2-0.3-0.3c-0.6-0.5-1.1-1-1.7-1.5%20c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.4-1-0.8-1.4-1.2c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.5-1.1-0.9-1.6-1.3c-0.1-0.1-0.2-0.2-0.3-0.3%20c-0.4-0.4-0.9-0.7-1.3-1.1c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.4-1-0.8-1.5-1.1c-0.1-0.1-0.2-0.2-0.3-0.2c-0.4-0.3-0.8-0.6-1.2-0.9%20c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.3-0.9-0.6-1.4-1c-0.1-0.1-0.2-0.2-0.4-0.2c-0.4-0.2-0.7-0.5-1-0.7c-0.2-0.1-0.3-0.2-0.5-0.3%20c-0.4-0.2-0.8-0.5-1.1-0.7c-0.2-0.1-0.4-0.2-0.5-0.3c-0.3-0.2-0.5-0.3-0.8-0.5c-0.2-0.1-0.4-0.2-0.6-0.3c-0.2-0.1-0.5-0.3-0.7-0.4%20c-0.3-0.2-0.6-0.4-1-0.5c-0.2-0.1-0.3-0.2-0.5-0.3c-0.2-0.1-0.4-0.2-0.7-0.3c-0.1-0.1-0.2-0.1-0.3-0.2c-0.4-0.2-0.9-0.5-1.3-0.7%20c0,0-0.1,0-0.1,0c-2.7-4.8-5.7-9.6-8.9-14.4c-37.3-54.6-78.2-81.1-124.9-81.2h-0.2c-19.8,0-37.9,4.5-53,8.9c-4.3,1.3-8.8,2.6-13.1,4%20c-11,3.4-21.4,6.7-30.3,8.1c-5.6,0.9-10,3-13.1,6.2c-2.8,3-4.5,7.1-5,12.1c-1,9.7,2.5,22.8,10.1,37.8c15.3,30.4,44.6,63.9,74.6,85.4%20c3.5,2.5,6.7,5.2,9.7,8.2c-0.6,0.1-1.2,0.2-1.9,0.3c-23.5,3.4-35.8,28.6-40.7,42.3c-1.3,3.6,2.2,6.8,5.8,5.5%20c14.6-4.9,44.3-12.9,61-2.6c0.1,0,0.3-0.1,0.4-0.1c3,15,1.6,29.8-4.1,41.3c-7.5,15.1-21.8,24-40.3,24.9%20c-21.8,1.1-48.6-8.2-79.7-27.6l-0.5-0.3c-0.3-0.1-0.6-0.3-0.8-0.5c24.2-27.5,9.9-69.9,4.3-83.8c-0.7-1.8-3.3-1.8-4.3-0.1%20c-13,22.1-39.8,20.4-39.3,46.7c0,0,0,0,0-0.1c-20.4-16.6-35.6,5.5-61,2.2c-2-0.3-3.5,1.7-2.5,3.4c7.7,13.3,33.5,52.3,71.6,47.9%20l-1.8,1.3l6.8,7.5c33.3,36.7,72.9,58.7,114.6,63.6c6,0.7,12,1.1,18,1.1c34.9,0,69.6-11.7,99.4-33.9c34.2-25.4,57.9-61.3,66.8-101%20c3-13.2,4.2-26.4,3.7-39.5c7.5-3,15.7,0.3,22.2,4.7c0.1,0,0.1,0.1,0.2,0.1c0.3,0.2,0.5,0.4,0.8,0.5c0.1,0,0.1,0.1,0.2,0.1%20c0.8,0.5,1.5,1.1,2.2,1.6c0.1,0.1,0.3,0.2,0.4,0.3c0.2,0.1,0.3,0.3,0.5,0.4c0.2,0.1,0.3,0.3,0.5,0.4c0.1,0.1,0.3,0.2,0.4,0.4%20c0.3,0.2,0.6,0.5,0.8,0.7c0.1,0.1,0.2,0.2,0.3,0.2c0.2,0.2,0.4,0.4,0.6,0.5c0.1,0.1,0.2,0.2,0.3,0.3c0.2,0.2,0.4,0.3,0.6,0.5%20c0.1,0.1,0.2,0.1,0.2,0.2c0.2,0.2,0.5,0.5,0.7,0.7c0.1,0.1,0.2,0.1,0.2,0.2c0.5,0.4,1.1,0.5,1.6,0.5%20C461.7,269.5,462.7,268.6,462.6,267.4z%20M342.9,384.5c0.5,0.3,1.1,0.4,1.9,0.5c-30.8,22.2-67.2,32.1-102.7,27.9%20c-35.2-4.1-68.9-22.1-98.1-52.2c0.4-0.8,0.8-1.5,1.1-2.3c33.7,20.7,63.5,30.6,88.6,29.4c25.2-1.2,44.9-13.6,55.3-34.7%20c8.7-17.6,9.8-40.2,3.2-62.2c-6.7-22.2-20.5-41.7-39-54.9c-25.2-18-49.7-45-64.6-70.7l0.3-2.5c0,0-5.8-8.9,4.6-10.4%20C276.9,140.4,446.5,298.8,342.9,384.5z'/%3e%3cpath%20class='st1'%20d='M280.3,146.5c-2.9-4.1-8.7-15.1,9.3-15.1c18,0,45.4,20.3,51,27.8c-1.7,4.6-13.3,5.6-19.1,5.2%20s-15.6-1.4-23.2-5.2C290.8,155.6,283.2,150.6,280.3,146.5z'/%3e%3c/svg%3e",S7="/assets/popcat-DOGy5LFs.svg",N7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23E6DAFE;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20d='M303.4,228.5c0,20.7-16.7,37.5-37.4,37.5v37.5c41.3,0,74.7-33.5,74.7-74.9s-33.5-74.9-74.7-74.9c-13.6,0-26.4,3.6-37.4,10%20c-22.3,12.9-37.4,37.2-37.4,64.9v187.3l33.6,33.7l3.8,3.8V228.5c0-20.7,16.7-37.5,37.4-37.5S303.4,207.9,303.4,228.5z'/%3e%3cpath%20d='M266,78.7c-27.2,0-52.7,7.3-74.7,20.1c-14.1,8.1-26.7,18.5-37.4,30.7c-23.2,26.4-37.4,61.1-37.4,99.1v112.4l37.4,37.5V228.5%20c0-33.3,14.4-63.2,37.4-83.8c10.8-9.7,23.4-17.3,37.4-22.2c11.7-4.2,24.3-6.4,37.4-6.4c61.9,0,112.1,50.3,112.1,112.4%20S327.9,340.9,266,340.9v37.5c82.5,0,149.4-67.1,149.4-149.8S348.5,78.7,266,78.7z'/%3e%3c/svg%3e",w7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2032%2036.9'%20style='enable-background:new%200%200%2032%2036.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='32.95'%20y1='26.3048'%20x2='-0.9788'%20y2='12.7367'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M30.3,13.9v12.9L16,35L1.7,26.7V10.2L16,1.9l11,6.4l1.7-1L16,0L0,9.2v18.5l16,9.2l16-9.2V12.9L30.3,13.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='32.2949'%20y1='27.9428'%20x2='-1.6339'%20y2='14.3747'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M12,26.8H9.6v-8h8c0.8,0,1.5-0.3,2-0.9c0.5-0.5,0.8-1.3,0.8-2c0-0.4-0.1-0.7-0.2-1.1c-0.1-0.3-0.4-0.7-0.6-0.9%20c-0.3-0.3-0.6-0.5-0.9-0.6S18,13,17.6,13h-8v-2.4h8c1.4,0,2.7,0.6,3.7,1.6c1,1,1.6,2.3,1.6,3.7c0,1.1-0.3,2.1-0.9,3%20c-0.6,0.8-1.4,1.5-2.3,1.9c-0.9,0.3-1.9,0.4-2.9,0.4H12V26.8z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='35.6876'%20y1='19.4591'%20x2='1.7588'%20y2='5.891'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M22.8,26.6H20l-2.2-3.8c0.9-0.1,1.7-0.2,2.5-0.5L22.8,26.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='32.0678'%20y1='28.5037'%20x2='-1.861'%20y2='14.9356'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M28.7,11.2l1.7,0.9l1.7-0.9V9.2l-1.7-1l-1.7,1V11.2z'/%3e%3c/svg%3e",C7="/assets/uni-C5oaqT41.svg",T7="data:image/svg+xml,%3csvg%20width='96'%20height='96'%20viewBox='0%200%2096%2096'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48%2095C73.9574%2095%2095%2073.9574%2095%2048C95%2022.0426%2073.9574%201%2048%201C22.0426%201%201%2022.0426%201%2048C1%2073.9574%2022.0426%2095%2048%2095Z'%20fill='%230B53BF'/%3e%3cpath%20d='M56.4609%2013.7778V19.8291C68.5341%2023.4716%2077.3759%2034.6928%2077.3759%2047.9997C77.3759%2061.3066%2068.5341%2072.5278%2056.4609%2076.1703V82.2216C71.8534%2078.4616%2083.2509%2064.5672%2083.2509%2047.9997C83.2509%2031.4322%2071.8534%2017.5378%2056.4609%2013.7778Z'%20fill='white'/%3e%3cpath%20d='M18.625%2047.9997C18.625%2034.6928%2027.4669%2023.4716%2039.54%2019.8291V13.7778C24.1475%2017.5378%2012.75%2031.4322%2012.75%2047.9997C12.75%2064.5672%2024.1475%2078.4616%2039.54%2082.2216V76.1703C27.4669%2072.5572%2018.625%2061.3066%2018.625%2047.9997Z'%20fill='white'/%3e%3cpath%20d='M60.6319%2054.5506C60.6319%2042.5362%2041.8025%2047.4713%2041.8025%2040.8325C41.8025%2038.4531%2043.7119%2036.9256%2047.3544%2036.9256C51.7019%2036.9256%2053.2%2039.0406%2053.67%2041.89H59.6625C59.1279%2036.5426%2056.0588%2033.1662%2050.9382%2032.1604V27.4375H45.0632V31.9918C39.4534%2032.7062%2035.9275%2035.973%2035.9275%2040.8325C35.9275%2052.9056%2054.7863%2048.3819%2054.7863%2054.9031C54.7863%2057.3706%2052.4069%2059.0156%2048.3825%2059.0156C43.1244%2059.0156%2041.3913%2056.695%2040.745%2053.4931H34.8994C35.2781%2059.3502%2038.8897%2063.0159%2045.0632%2063.9307V68.5625H50.9382V63.9923C56.9633%2063.2139%2060.6319%2059.7089%2060.6319%2054.5506Z'%20fill='white'/%3e%3c/svg%3e",E7="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20339.43%20295.27'%3e%3ctitle%3etether-usdt-logo%3c/title%3e%3cpath%20d='M62.15,1.45l-61.89,130a2.52,2.52,0,0,0,.54,2.94L167.95,294.56a2.55,2.55,0,0,0,3.53,0L338.63,134.4a2.52,2.52,0,0,0,.54-2.94l-61.89-130A2.5,2.5,0,0,0,275,0H64.45a2.5,2.5,0,0,0-2.3,1.45h0Z'%20style='fill:%2350af95;fill-rule:evenodd'/%3e%3cpath%20d='M191.19,144.8v0c-1.2.09-7.4,0.46-21.23,0.46-11,0-18.81-.33-21.55-0.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25,74.24-18.15v28.91c2.78,0.2,10.74.67,21.74,0.67,13.2,0,19.81-.55,21-0.66v-28.9c42.42,1.89,74.08,9.29,74.08,18.13s-31.65,16.24-74.08,18.12h0Zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11,2.21-84.29,11.74-84.29,23.16s36.18,20.94,84.29,23.16v82.9h42.78V151.83c48-2.21,84.12-11.73,84.12-23.14s-36.09-20.93-84.12-23.15h0Zm0,0h0Z'%20style='fill:%23fff;fill-rule:evenodd'/%3e%3c/svg%3e",R7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20696.8%20697.9'%20style='enable-background:new%200%200%20696.8%20697.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='716.2648'%20y1='102.511'%20x2='-52.0246'%20y2='621.5151'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M348.4,697.9c-92.3-0.1-180.9-36.8-246.2-102.2C36.9,530.3,0.1,441.5,0,349c0.1-92.6,36.9-181.3,102.2-246.7%20C167.5,36.9,256.1,0.1,348.4,0c92.3,0.1,180.9,36.9,246.2,102.3c65.3,65.4,102.1,154.1,102.2,246.7%20c-0.1,92.6-36.9,181.3-102.2,246.7S440.7,697.9,348.4,697.9z%20M348.4,26.9c-85.2,0.1-166.9,34-227.2,94.4%20C60.9,181.6,26.9,263.5,26.8,349c0.1,85.4,34,167.4,94.3,227.8c60.3,60.4,142,94.3,227.3,94.3c85.2,0,167-33.9,227.3-94.3%20C636,516.3,669.9,434.4,670,349c-0.1-85.4-34.1-167.3-94.3-227.7C515.3,60.9,433.6,26.9,348.4,26.9L348.4,26.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='697.22'%20y1='140.5214'%20x2='60.6977'%20y2='570.4864'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M392.4,642.7c-76.5-0.1-149.8-30.5-203.9-84.7c-54.1-54.2-84.6-127.7-84.7-204.4%20c0.1-76.7,30.6-150.2,84.7-204.4C242.6,95,315.9,64.5,392.4,64.5c76.5,0.1,149.8,30.5,203.9,84.7c54.1,54.2,84.6,127.7,84.7,204.4%20c-0.1,76.7-30.6,150.2-84.7,204.4C542.3,612.2,468.9,642.7,392.4,642.7z%20M392.4,85.3c-71,0.1-139,28.3-189.2,78.6%20s-78.4,118.5-78.6,189.6c0.1,71.1,28.4,139.3,78.6,189.6c50.2,50.3,118.2,78.5,189.2,78.6c71-0.1,139-28.3,189.2-78.6%20c50.2-50.3,78.5-118.5,78.6-189.6c-0.1-71.1-28.4-139.3-78.6-189.6C531.4,113.7,463.4,85.4,392.4,85.3L392.4,85.3z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='678.1428'%20y1='178.4569'%20x2='173.4188'%20y2='519.3949'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M436.5,587.5c-60.7,0-118.8-24.2-161.7-67.2c-42.9-43-67.1-101.3-67.1-162.1c0.1-60.8,24.2-119.1,67.1-162.1%20s101.1-67.1,161.7-67.2c60.7,0,118.8,24.2,161.7,67.2c42.9,43,67,101.3,67.1,162.1c-0.1,60.8-24.2,119.1-67.1,162.1%20C555.3,563.3,497.1,587.5,436.5,587.5L436.5,587.5z%20M436.5,144c-56.7,0-111.1,22.6-151.2,62.8c-40.1,40.2-62.7,94.7-62.8,151.5%20c0.1,56.8,22.7,111.3,62.8,151.5s94.5,62.8,151.2,62.8c56.7,0,111.1-22.6,151.2-62.8c40.1-40.2,62.7-94.7,62.8-151.5%20c-0.1-56.9-22.7-111.4-62.8-151.5C547.5,166.6,493.2,144,436.5,144L436.5,144z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='659.0872'%20y1='216.4527'%20x2='286.1323'%20y2='468.3527'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M480.5,532.3c-44.8,0-87.8-17.9-119.5-49.6c-31.7-31.8-49.5-74.8-49.6-119.7c0.1-44.9,17.9-88,49.6-119.8%20c31.7-31.8,74.7-49.6,119.5-49.7c44.8,0,87.8,17.9,119.5,49.7c31.7,31.8,49.5,74.8,49.6,119.8c-0.1,44.9-17.9,88-49.6,119.7%20C568.3,514.4,525.3,532.3,480.5,532.3L480.5,532.3z%20M480.5,202.5c-42.5,0-83.2,17-113.2,47c-30,30.1-46.9,70.9-47,113.4%20c0.1,42.6,17,83.3,47,113.4c30,30.1,70.7,47,113.2,47c42.4,0,83.1-16.9,113.2-47c30-30.1,46.9-70.9,47-113.4%20c-0.1-42.6-17-83.4-47-113.4C563.7,219.4,523,202.5,480.5,202.5z'/%3e%3c/svg%3e",A7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20style='enable-background:new%200%200%20600%20600;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EFBFA8;}%20%3c/style%3e%3cpath%20class='st0'%20d='M300,0C134.3,0,0,134.3,0,300s134.3,300,300,300s300-134.3,300-300S465.7,0,300,0z%20M449,347%20c-13-29-61-93-131-86c-73,8-156,49-180,109c-37-29-5-79,17-102c-5-22,9-70,17-90c3-17,17-29,24-32c-1-12,20-18,30-20l1-2%20c3-9,6-20,32-28c22-8,42,12,50,23c2-6,10-15,18-8c72,11,96,90,100,127c14,10,43,36,50,60c7,29-1,35-11,43l-2,2%20C459,349,453,349,449,347z%20M435,378c-15.7,65.8-68.5,116.3-135,129c-42,0-109-66-128-97c-39-3-30-23-21-32l-5-2c18-42,69-92,169-104%20c55-7,97,32,122,72C438,357,437,371,435,378z%20M216,328c6,15,24,39,50,11C264,331,250,317,216,328z%20M256,470c-4-6,20-9,32-10l16-4%20c3-13-3-14-6-13c-24,2-22-26-16-35c7-8,22-5,27-4c5,2,13,0,16-1c15-1,14,17,11,26c-1,12-18,16-26,16c-1,9,1,13,3,13l34,8%20c13,5,6,6,0,7c-17-11-29-7-37-5l-6,2c-14-5-29-4-35-2C266,471,259,475,256,470z%20M345,344c1-12,13-32,48-14C388,342,371,361,345,344z%20'/%3e%3c/svg%3e",it={BTC:u7,ETH:d7,SOL:f7,TRX:h7,BNB:m7,ARB:p7,BONK:_7,BUSD:g7,DAI:v7,DOGE:y7,JUP:x7,LINK:b7,ORCA:j7,POPCAT:S7,PYTH:N7,RAY:w7,UNI:C7,USDC:T7,USDT:E7,W:R7,WIF:A7};function y_(a){return it[a.toUpperCase()]}function ot(a,i=8){const c=typeof a=="number"?a.toString():a,r=c.indexOf(".");return r===-1?c:c.slice(0,r+1+i)}const L7=[{ticker:"BTC",name:"Bitcoin",logo:it.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:it.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:it.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:it.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:it.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],O7={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},M7={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},x_="#2A2D3A";function b_(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function j_(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function S_(a){return L7.find(i=>i.ticker===a)}function N_(a,i){const c=O7[a],r=S_(c);return{id:`${a}-${c}`,chain:a,ticker:c,name:M7[a],logo:y_(c)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??x_,price:j_(i.usdPrice),change:0,bal:ot(i.formatted),usd:b_(i.usdValue),usdValue:i.usdValue,fav:!1}}function w_(a,i,c){const r=S_(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:(r==null?void 0:r.name)??i,logo:y_(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??x_,price:j_(c.usdPrice),change:0,bal:ot(c.formatted),usd:b_(c.usdValue),usdValue:c.usdValue,fav:!1}}function Tp(a){return parseFloat(a.formatted)>0}function z7(a){const{data:i,isLoading:c}=Jc(a);if(!i)return{rows:[],isLoading:c};const r=N_(a,i.native),d=Object.entries(i.tokens??{}).map(([f,h])=>w_(a,f,h));return{rows:[r,...d],isLoading:c}}function D7(){var r;const{data:a,isLoading:i}=iu();if(!a)return{rows:[],isLoading:i};const c=[];for(const d of q2){const f=(r=a.perChain)==null?void 0:r[d];if(!f)continue;const h=[];f.native&&Tp(f.native)&&h.push(N_(d,f.native));for(const[g,m]of Object.entries(f.tokens??{}))Tp(m)&&h.push(w_(d,g,m));h.sort((g,m)=>(m.usdValue??0)-(g.usdValue??0)),c.push(...h)}return{rows:c,isLoading:i}}const k7={ETH:["USDT","USDC","DAI","WBTC","LINK","UNI"],BSC:["USDT","USDC","BUSD","WBNB","DOGE"],BTC:[],TRX:["USDT","USDC"],SOL:["USDC","USDT","RAY","BONK","JTO","PYTH","WIF","JUP","ORCA","MNGO","MSOL","STSOL","SAMO","ATLAS"]},B7={ETH:{label:"Ethereum",nativeSymbol:"ETH",hasToken:!0,hasFeeTier:!0,addressPlaceholder:"0x…",unit:"wei",color:"#627EEA",nativeDecimals:18},BSC:{label:"BSC Chain",nativeSymbol:"BSC",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"0x…",unit:"wei",color:"#F3BA2F",nativeDecimals:18},BTC:{label:"Bitcoin",nativeSymbol:"BTC",hasToken:!1,hasFeeTier:!0,addressPlaceholder:"bc1q…",unit:"satoshi",color:"#F7931A",nativeDecimals:8},TRX:{label:"Tron",nativeSymbol:"TRX",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"T…",unit:"sun",color:"#FF060A",nativeDecimals:6},SOL:{label:"Solana",nativeSymbol:"SOL",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"Fg3R…",unit:"lamport",color:"#9945FF",nativeDecimals:9}},$7={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},U7="_overlay_1hejd_1",H7="_dialog_1hejd_14",q7="_dialogIn_1hejd_1",F7="_header_1hejd_37",G7="_title_1hejd_44",V7="_close_1hejd_50",Q7="_selectsRow_1hejd_72",P7="_selectGroup_1hejd_79",I7="_selectLabel_1hejd_83",Y7="_selectTrigger_1hejd_93",X7="_selectTriggerOpen_1hejd_112",K7="_selectValue_1hejd_117",Z7="_chevron_1hejd_125",W7="_chevronOpen_1hejd_131",J7="_tokenDot_1hejd_137",eS="_speedDot_1hejd_158",tS="_speedDot_slow_1hejd_165",nS="_speedDot_normal_1hejd_170",sS="_speedDot_fast_1hejd_175",aS="_dropdown_1hejd_182",lS="_dropdownItem_1hejd_195",iS="_dropdownItemActive_1hejd_215",cS="_dropdownTicker_1hejd_220",rS="_dropdownName_1hejd_225",oS="_field_1hejd_233",uS="_fieldLabel_1hejd_237",dS="_input_1hejd_247",fS="_amountWrap_1hejd_283",hS="_amountInput_1hejd_287",mS="_amountTicker_1hejd_291",pS="_maxHint_1hejd_304",_S="_maxBtn_1hejd_314",gS="_errorMsg_1hejd_333",vS="_submitBtn_1hejd_346",me={overlay:U7,dialog:H7,dialogIn:q7,header:F7,title:G7,close:V7,selectsRow:Q7,selectGroup:P7,selectLabel:I7,selectTrigger:Y7,selectTriggerOpen:X7,selectValue:K7,chevron:Z7,chevronOpen:W7,tokenDot:J7,speedDot:eS,speedDot_slow:tS,speedDot_normal:nS,speedDot_fast:sS,dropdown:aS,dropdownItem:lS,dropdownItemActive:iS,dropdownTicker:cS,dropdownName:rS,field:oS,fieldLabel:uS,input:dS,amountWrap:fS,amountInput:hS,amountTicker:mS,maxHint:pS,maxBtn:_S,errorMsg:gS,submitBtn:vS},Ep=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function yS(a){var i;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const c=a;if(typeof c.message=="string")return c.message;if(typeof c.error=="string")return c.error;if(Array.isArray(c.detail)&&((i=c.detail[0])!=null&&i.msg))return String(c.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function xS({open:a,onClose:i,network:c,tokens:r=[],initialToken:d=""}){var he;const f=B7[c],h=k7[c],[g,m]=j.useState(d),[p,v]=j.useState("normal"),[y,b]=j.useState(""),[N,S]=j.useState(""),[w,C]=j.useState(null),A=V8(),z=((he=Ep.find(ae=>ae.value===p))==null?void 0:he.label)??"Нормально",M=g===""?f.nativeSymbol:g,U=r.find(ae=>ae.ticker===(g===""?f.nativeSymbol:g));if(j.useEffect(()=>{m(d)},[d]),j.useEffect(()=>{m("")},[c]),j.useEffect(()=>{A.isSuccess&&i()},[A.isSuccess,i]),j.useEffect(()=>{if(!a){b(""),S(""),C(null),A.reset();return}const ae=pe=>{pe.key==="Escape"&&i()};return document.addEventListener("keydown",ae),()=>document.removeEventListener("keydown",ae)},[a,i]),!a)return null;const I=f.hasToken,K=f.hasFeeTier,B=I||K,P=I&&K?2:1;function ne(){w?C(null):i()}function ce(ae,pe){const[re,q=""]=ae.split("."),Y=q.slice(0,pe).padEnd(pe,"0");return(BigInt(re||"0")*10n**BigInt(pe)+BigInt(Y||"0")).toString()}function ue(){const pe=g===""?ce(N,f.nativeDecimals):N;A.mutate({chain:c,to:y,amount:pe,...g?{token:g}:{},...f.hasFeeTier?{feeTier:p}:{}})}return s.jsx("div",{className:me.overlay,onClick:ne,children:s.jsxs("div",{className:me.dialog,onClick:ae=>ae.stopPropagation(),children:[s.jsxs("div",{className:me.header,children:[s.jsxs("div",{className:me.headerLeft,children:[s.jsx("span",{className:me.chainDot,style:{background:f.color}}),s.jsxs("span",{className:me.title,children:["Отправить · ",f.label]})]}),s.jsx("button",{className:me.close,onClick:i,type:"button","aria-label":"Закрыть",children:s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:s.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),B&&s.jsxs("div",{className:me.selectsRow,style:{gridTemplateColumns:`repeat(${P}, 1fr)`},children:[I&&s.jsxs("div",{className:me.selectGroup,children:[s.jsx("label",{className:me.selectLabel,children:"Токен"}),s.jsxs("button",{type:"button",className:`${me.selectTrigger} ${w==="token"?me.selectTriggerOpen:""}`,onClick:()=>C(ae=>ae==="token"?null:"token"),children:[s.jsx("span",{className:me.tokenDot,style:{background:f.color},children:M[0]}),s.jsx("span",{className:me.selectValue,children:M}),s.jsx("svg",{className:`${me.chevron} ${w==="token"?me.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:s.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),w==="token"&&s.jsxs("div",{className:me.dropdown,children:[s.jsxs("button",{type:"button",className:`${me.dropdownItem} ${g===""?me.dropdownItemActive:""}`,onClick:()=>{m(""),C(null)},children:[s.jsx("span",{className:me.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),s.jsx("span",{className:me.dropdownTicker,children:f.nativeSymbol}),s.jsx("span",{className:me.dropdownName,children:"Нативный"})]}),h.map(ae=>s.jsxs("button",{type:"button",className:`${me.dropdownItem} ${g===ae?me.dropdownItemActive:""}`,onClick:()=>{m(ae),C(null)},children:[s.jsx("span",{className:me.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:ae[0]}),s.jsx("span",{className:me.dropdownTicker,children:ae})]},ae))]})]}),K&&s.jsxs("div",{className:me.selectGroup,children:[s.jsx("label",{className:me.selectLabel,children:"Скорость"}),s.jsxs("button",{type:"button",className:`${me.selectTrigger} ${w==="speed"?me.selectTriggerOpen:""}`,onClick:()=>C(ae=>ae==="speed"?null:"speed"),children:[s.jsx("span",{className:`${me.speedDot} ${me[`speedDot_${p}`]}`}),s.jsx("span",{className:me.selectValue,children:z}),s.jsx("svg",{className:`${me.chevron} ${w==="speed"?me.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:s.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),w==="speed"&&s.jsx("div",{className:me.dropdown,children:Ep.map(ae=>s.jsxs("button",{type:"button",className:`${me.dropdownItem} ${ae.value===p?me.dropdownItemActive:""}`,onClick:()=>{v(ae.value),C(null)},children:[s.jsx("span",{className:`${me.speedDot} ${me[`speedDot_${ae.value}`]}`}),s.jsx("span",{children:ae.label})]},ae.value))})]})]}),s.jsxs("div",{className:me.field,children:[s.jsx("label",{className:me.fieldLabel,children:"Адрес кошелька"}),s.jsx("input",{className:me.input,type:"text",placeholder:f.addressPlaceholder,value:y,onChange:ae=>b(ae.target.value),autoComplete:"off",spellCheck:!1})]}),s.jsxs("div",{className:me.field,children:[s.jsx("label",{className:me.fieldLabel,children:"Количество"}),s.jsxs("div",{className:me.amountWrap,children:[s.jsx("input",{className:`${me.input} ${me.amountInput}`,type:"number",placeholder:"0.00",value:N,onChange:ae=>S(ae.target.value),min:"0",step:"any"}),s.jsx("span",{className:me.amountTicker,children:M})]}),U&&s.jsxs("div",{className:me.maxHint,children:["Макс:"," ",s.jsxs("button",{type:"button",className:me.maxBtn,onClick:()=>S(U.bal),children:[U.bal," ",M]})]})]}),A.isError&&s.jsx("div",{className:me.errorMsg,children:yS(A.error)}),s.jsx("button",{className:me.submitBtn,type:"button",disabled:A.isPending,onClick:ue,children:A.isPending?"Отправка…":"Отправить"})]})})}var bS=Object.defineProperty,Zo=Object.getOwnPropertySymbols,C_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,Rp=(a,i,c)=>i in a?bS(a,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[i]=c,v2=(a,i)=>{for(var c in i||(i={}))C_.call(i,c)&&Rp(a,c,i[c]);if(Zo)for(var c of Zo(i))T_.call(i,c)&&Rp(a,c,i[c]);return a},y2=(a,i)=>{var c={};for(var r in a)C_.call(a,r)&&i.indexOf(r)<0&&(c[r]=a[r]);if(a!=null&&Zo)for(var r of Zo(a))i.indexOf(r)<0&&T_.call(a,r)&&(c[r]=a[r]);return c};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var El;(a=>{const i=class Me{constructor(m,p,v,y){if(this.version=m,this.errorCorrectionLevel=p,this.modules=[],this.isFunction=[],m<Me.MIN_VERSION||m>Me.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=m*4+17;let b=[];for(let S=0;S<this.size;S++)b.push(!1);for(let S=0;S<this.size;S++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const N=this.addEccAndInterleave(v);if(this.drawCodewords(N),y==-1){let S=1e9;for(let w=0;w<8;w++){this.applyMask(w),this.drawFormatBits(w);const C=this.getPenaltyScore();C<S&&(y=w,S=C),this.applyMask(w)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(m,p){const v=a.QrSegment.makeSegments(m);return Me.encodeSegments(v,p)}static encodeBinary(m,p){const v=a.QrSegment.makeBytes(m);return Me.encodeSegments([v],p)}static encodeSegments(m,p,v=1,y=40,b=-1,N=!0){if(!(Me.MIN_VERSION<=v&&v<=y&&y<=Me.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let S,w;for(S=v;;S++){const M=Me.getNumDataCodewords(S,p)*8,U=h.getTotalBits(m,S);if(U<=M){w=U;break}if(S>=y)throw new RangeError("Data too long")}for(const M of[Me.Ecc.MEDIUM,Me.Ecc.QUARTILE,Me.Ecc.HIGH])N&&w<=Me.getNumDataCodewords(S,M)*8&&(p=M);let C=[];for(const M of m){c(M.mode.modeBits,4,C),c(M.numChars,M.mode.numCharCountBits(S),C);for(const U of M.getData())C.push(U)}d(C.length==w);const A=Me.getNumDataCodewords(S,p)*8;d(C.length<=A),c(0,Math.min(4,A-C.length),C),c(0,(8-C.length%8)%8,C),d(C.length%8==0);for(let M=236;C.length<A;M^=253)c(M,8,C);let z=[];for(;z.length*8<C.length;)z.push(0);return C.forEach((M,U)=>z[U>>>3]|=M<<7-(U&7)),new Me(S,p,z,b)}getModule(m,p){return 0<=m&&m<this.size&&0<=p&&p<this.size&&this.modules[p][m]}getModules(){return this.modules}drawFunctionPatterns(){for(let v=0;v<this.size;v++)this.setFunctionModule(6,v,v%2==0),this.setFunctionModule(v,6,v%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const m=this.getAlignmentPatternPositions(),p=m.length;for(let v=0;v<p;v++)for(let y=0;y<p;y++)v==0&&y==0||v==0&&y==p-1||v==p-1&&y==0||this.drawAlignmentPattern(m[v],m[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(m){const p=this.errorCorrectionLevel.formatBits<<3|m;let v=p;for(let b=0;b<10;b++)v=v<<1^(v>>>9)*1335;const y=(p<<10|v)^21522;d(y>>>15==0);for(let b=0;b<=5;b++)this.setFunctionModule(8,b,r(y,b));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let b=9;b<15;b++)this.setFunctionModule(14-b,8,r(y,b));for(let b=0;b<8;b++)this.setFunctionModule(this.size-1-b,8,r(y,b));for(let b=8;b<15;b++)this.setFunctionModule(8,this.size-15+b,r(y,b));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let m=this.version;for(let v=0;v<12;v++)m=m<<1^(m>>>11)*7973;const p=this.version<<12|m;d(p>>>18==0);for(let v=0;v<18;v++){const y=r(p,v),b=this.size-11+v%3,N=Math.floor(v/3);this.setFunctionModule(b,N,y),this.setFunctionModule(N,b,y)}}drawFinderPattern(m,p){for(let v=-4;v<=4;v++)for(let y=-4;y<=4;y++){const b=Math.max(Math.abs(y),Math.abs(v)),N=m+y,S=p+v;0<=N&&N<this.size&&0<=S&&S<this.size&&this.setFunctionModule(N,S,b!=2&&b!=4)}}drawAlignmentPattern(m,p){for(let v=-2;v<=2;v++)for(let y=-2;y<=2;y++)this.setFunctionModule(m+y,p+v,Math.max(Math.abs(y),Math.abs(v))!=1)}setFunctionModule(m,p,v){this.modules[p][m]=v,this.isFunction[p][m]=!0}addEccAndInterleave(m){const p=this.version,v=this.errorCorrectionLevel;if(m.length!=Me.getNumDataCodewords(p,v))throw new RangeError("Invalid argument");const y=Me.NUM_ERROR_CORRECTION_BLOCKS[v.ordinal][p],b=Me.ECC_CODEWORDS_PER_BLOCK[v.ordinal][p],N=Math.floor(Me.getNumRawDataModules(p)/8),S=y-N%y,w=Math.floor(N/y);let C=[];const A=Me.reedSolomonComputeDivisor(b);for(let M=0,U=0;M<y;M++){let I=m.slice(U,U+w-b+(M<S?0:1));U+=I.length;const K=Me.reedSolomonComputeRemainder(I,A);M<S&&I.push(0),C.push(I.concat(K))}let z=[];for(let M=0;M<C[0].length;M++)C.forEach((U,I)=>{(M!=w-b||I>=S)&&z.push(U[M])});return d(z.length==N),z}drawCodewords(m){if(m.length!=Math.floor(Me.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let p=0;for(let v=this.size-1;v>=1;v-=2){v==6&&(v=5);for(let y=0;y<this.size;y++)for(let b=0;b<2;b++){const N=v-b,w=(v+1&2)==0?this.size-1-y:y;!this.isFunction[w][N]&&p<m.length*8&&(this.modules[w][N]=r(m[p>>>3],7-(p&7)),p++)}}d(p==m.length*8)}applyMask(m){if(m<0||m>7)throw new RangeError("Mask value out of range");for(let p=0;p<this.size;p++)for(let v=0;v<this.size;v++){let y;switch(m){case 0:y=(v+p)%2==0;break;case 1:y=p%2==0;break;case 2:y=v%3==0;break;case 3:y=(v+p)%3==0;break;case 4:y=(Math.floor(v/3)+Math.floor(p/2))%2==0;break;case 5:y=v*p%2+v*p%3==0;break;case 6:y=(v*p%2+v*p%3)%2==0;break;case 7:y=((v+p)%2+v*p%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[p][v]&&y&&(this.modules[p][v]=!this.modules[p][v])}}getPenaltyScore(){let m=0;for(let b=0;b<this.size;b++){let N=!1,S=0,w=[0,0,0,0,0,0,0];for(let C=0;C<this.size;C++)this.modules[b][C]==N?(S++,S==5?m+=Me.PENALTY_N1:S>5&&m++):(this.finderPenaltyAddHistory(S,w),N||(m+=this.finderPenaltyCountPatterns(w)*Me.PENALTY_N3),N=this.modules[b][C],S=1);m+=this.finderPenaltyTerminateAndCount(N,S,w)*Me.PENALTY_N3}for(let b=0;b<this.size;b++){let N=!1,S=0,w=[0,0,0,0,0,0,0];for(let C=0;C<this.size;C++)this.modules[C][b]==N?(S++,S==5?m+=Me.PENALTY_N1:S>5&&m++):(this.finderPenaltyAddHistory(S,w),N||(m+=this.finderPenaltyCountPatterns(w)*Me.PENALTY_N3),N=this.modules[C][b],S=1);m+=this.finderPenaltyTerminateAndCount(N,S,w)*Me.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let N=0;N<this.size-1;N++){const S=this.modules[b][N];S==this.modules[b][N+1]&&S==this.modules[b+1][N]&&S==this.modules[b+1][N+1]&&(m+=Me.PENALTY_N2)}let p=0;for(const b of this.modules)p=b.reduce((N,S)=>N+(S?1:0),p);const v=this.size*this.size,y=Math.ceil(Math.abs(p*20-v*10)/v)-1;return d(0<=y&&y<=9),m+=y*Me.PENALTY_N4,d(0<=m&&m<=2568888),m}getAlignmentPatternPositions(){if(this.version==1)return[];{const m=Math.floor(this.version/7)+2,p=this.version==32?26:Math.ceil((this.version*4+4)/(m*2-2))*2;let v=[6];for(let y=this.size-7;v.length<m;y-=p)v.splice(1,0,y);return v}}static getNumRawDataModules(m){if(m<Me.MIN_VERSION||m>Me.MAX_VERSION)throw new RangeError("Version number out of range");let p=(16*m+128)*m+64;if(m>=2){const v=Math.floor(m/7)+2;p-=(25*v-10)*v-55,m>=7&&(p-=36)}return d(208<=p&&p<=29648),p}static getNumDataCodewords(m,p){return Math.floor(Me.getNumRawDataModules(m)/8)-Me.ECC_CODEWORDS_PER_BLOCK[p.ordinal][m]*Me.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][m]}static reedSolomonComputeDivisor(m){if(m<1||m>255)throw new RangeError("Degree out of range");let p=[];for(let y=0;y<m-1;y++)p.push(0);p.push(1);let v=1;for(let y=0;y<m;y++){for(let b=0;b<p.length;b++)p[b]=Me.reedSolomonMultiply(p[b],v),b+1<p.length&&(p[b]^=p[b+1]);v=Me.reedSolomonMultiply(v,2)}return p}static reedSolomonComputeRemainder(m,p){let v=p.map(y=>0);for(const y of m){const b=y^v.shift();v.push(0),p.forEach((N,S)=>v[S]^=Me.reedSolomonMultiply(N,b))}return v}static reedSolomonMultiply(m,p){if(m>>>8||p>>>8)throw new RangeError("Byte out of range");let v=0;for(let y=7;y>=0;y--)v=v<<1^(v>>>7)*285,v^=(p>>>y&1)*m;return d(v>>>8==0),v}finderPenaltyCountPatterns(m){const p=m[1];d(p<=this.size*3);const v=p>0&&m[2]==p&&m[3]==p*3&&m[4]==p&&m[5]==p;return(v&&m[0]>=p*4&&m[6]>=p?1:0)+(v&&m[6]>=p*4&&m[0]>=p?1:0)}finderPenaltyTerminateAndCount(m,p,v){return m&&(this.finderPenaltyAddHistory(p,v),p=0),p+=this.size,this.finderPenaltyAddHistory(p,v),this.finderPenaltyCountPatterns(v)}finderPenaltyAddHistory(m,p){p[0]==0&&(m+=this.size),p.pop(),p.unshift(m)}};i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a.QrCode=i;function c(g,m,p){if(m<0||m>31||g>>>m)throw new RangeError("Value out of range");for(let v=m-1;v>=0;v--)p.push(g>>>v&1)}function r(g,m){return(g>>>m&1)!=0}function d(g){if(!g)throw new Error("Assertion error")}const f=class gt{constructor(m,p,v){if(this.mode=m,this.numChars=p,this.bitData=v,p<0)throw new RangeError("Invalid argument");this.bitData=v.slice()}static makeBytes(m){let p=[];for(const v of m)c(v,8,p);return new gt(gt.Mode.BYTE,m.length,p)}static makeNumeric(m){if(!gt.isNumeric(m))throw new RangeError("String contains non-numeric characters");let p=[];for(let v=0;v<m.length;){const y=Math.min(m.length-v,3);c(parseInt(m.substring(v,v+y),10),y*3+1,p),v+=y}return new gt(gt.Mode.NUMERIC,m.length,p)}static makeAlphanumeric(m){if(!gt.isAlphanumeric(m))throw new RangeError("String contains unencodable characters in alphanumeric mode");let p=[],v;for(v=0;v+2<=m.length;v+=2){let y=gt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(v))*45;y+=gt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(v+1)),c(y,11,p)}return v<m.length&&c(gt.ALPHANUMERIC_CHARSET.indexOf(m.charAt(v)),6,p),new gt(gt.Mode.ALPHANUMERIC,m.length,p)}static makeSegments(m){return m==""?[]:gt.isNumeric(m)?[gt.makeNumeric(m)]:gt.isAlphanumeric(m)?[gt.makeAlphanumeric(m)]:[gt.makeBytes(gt.toUtf8ByteArray(m))]}static makeEci(m){let p=[];if(m<0)throw new RangeError("ECI assignment value out of range");if(m<128)c(m,8,p);else if(m<16384)c(2,2,p),c(m,14,p);else if(m<1e6)c(6,3,p),c(m,21,p);else throw new RangeError("ECI assignment value out of range");return new gt(gt.Mode.ECI,0,p)}static isNumeric(m){return gt.NUMERIC_REGEX.test(m)}static isAlphanumeric(m){return gt.ALPHANUMERIC_REGEX.test(m)}getData(){return this.bitData.slice()}static getTotalBits(m,p){let v=0;for(const y of m){const b=y.mode.numCharCountBits(p);if(y.numChars>=1<<b)return 1/0;v+=4+b+y.bitData.length}return v}static toUtf8ByteArray(m){m=encodeURI(m);let p=[];for(let v=0;v<m.length;v++)m.charAt(v)!="%"?p.push(m.charCodeAt(v)):(p.push(parseInt(m.substring(v+1,v+3),16)),v+=2);return p}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let h=f;a.QrSegment=f})(El||(El={}));(a=>{(i=>{const c=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};c.LOW=new c(0,1),c.MEDIUM=new c(1,0),c.QUARTILE=new c(2,3),c.HIGH=new c(3,2),i.Ecc=c})(a.QrCode||(a.QrCode={}))})(El||(El={}));(a=>{(i=>{const c=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};c.NUMERIC=new c(1,[10,12,14]),c.ALPHANUMERIC=new c(2,[9,11,13]),c.BYTE=new c(4,[8,16,16]),c.KANJI=new c(8,[8,10,12]),c.ECI=new c(7,[0,0,0]),i.Mode=c})(a.QrSegment||(a.QrSegment={}))})(El||(El={}));var Ni=El;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var jS={L:Ni.QrCode.Ecc.LOW,M:Ni.QrCode.Ecc.MEDIUM,Q:Ni.QrCode.Ecc.QUARTILE,H:Ni.QrCode.Ecc.HIGH},E_=128,R_="L",A_="#FFFFFF",L_="#000000",O_=!1,M_=1,SS=4,NS=0,wS=.1;function z_(a,i=0){const c=[];return a.forEach(function(r,d){let f=null;r.forEach(function(h,g){if(!h&&f!==null){c.push(`M${f+i} ${d+i}h${g-f}v1H${f+i}z`),f=null;return}if(g===r.length-1){if(!h)return;f===null?c.push(`M${g+i},${d+i} h1v1H${g+i}z`):c.push(`M${f+i},${d+i} h${g+1-f}v1H${f+i}z`);return}h&&f===null&&(f=g)})}),c.join("")}function D_(a,i){return a.slice().map((c,r)=>r<i.y||r>=i.y+i.h?c:c.map((d,f)=>f<i.x||f>=i.x+i.w?d:!1))}function CS(a,i,c,r){if(r==null)return null;const d=a.length+c*2,f=Math.floor(i*wS),h=d/i,g=(r.width||f)*h,m=(r.height||f)*h,p=r.x==null?a.length/2-g/2:r.x*h,v=r.y==null?a.length/2-m/2:r.y*h,y=r.opacity==null?1:r.opacity;let b=null;if(r.excavate){let S=Math.floor(p),w=Math.floor(v),C=Math.ceil(g+p-S),A=Math.ceil(m+v-w);b={x:S,y:w,w:C,h:A}}const N=r.crossOrigin;return{x:p,y:v,h:m,w:g,excavation:b,opacity:y,crossOrigin:N}}function TS(a,i){return i!=null?Math.max(Math.floor(i),0):a?SS:NS}function k_({value:a,level:i,minVersion:c,includeMargin:r,marginSize:d,imageSettings:f,size:h,boostLevel:g}){let m=Mt.useMemo(()=>{const S=(Array.isArray(a)?a:[a]).reduce((w,C)=>(w.push(...Ni.QrSegment.makeSegments(C)),w),[]);return Ni.QrCode.encodeSegments(S,jS[i],c,void 0,void 0,g)},[a,i,c,g]);const{cells:p,margin:v,numCells:y,calculatedImageSettings:b}=Mt.useMemo(()=>{let N=m.getModules();const S=TS(r,d),w=N.length+S*2,C=CS(N,h,S,f);return{cells:N,margin:S,numCells:w,calculatedImageSettings:C}},[m,h,f,r,d]);return{qrcode:m,margin:v,cells:p,numCells:y,calculatedImageSettings:b}}var ES=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),RS=Mt.forwardRef(function(i,c){const r=i,{value:d,size:f=E_,level:h=R_,bgColor:g=A_,fgColor:m=L_,includeMargin:p=O_,minVersion:v=M_,boostLevel:y,marginSize:b,imageSettings:N}=r,w=y2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:C}=w,A=y2(w,["style"]),z=N==null?void 0:N.src,M=Mt.useRef(null),U=Mt.useRef(null),I=Mt.useCallback(pe=>{M.current=pe,typeof c=="function"?c(pe):c&&(c.current=pe)},[c]),[K,B]=Mt.useState(!1),{margin:P,cells:ne,numCells:ce,calculatedImageSettings:ue}=k_({value:d,level:h,minVersion:v,boostLevel:y,includeMargin:p,marginSize:b,imageSettings:N,size:f});Mt.useEffect(()=>{if(M.current!=null){const pe=M.current,re=pe.getContext("2d");if(!re)return;let q=ne;const Y=U.current,ie=ue!=null&&Y!==null&&Y.complete&&Y.naturalHeight!==0&&Y.naturalWidth!==0;ie&&ue.excavation!=null&&(q=D_(ne,ue.excavation));const Te=window.devicePixelRatio||1;pe.height=pe.width=f*Te;const _e=f/ce*Te;re.scale(_e,_e),re.fillStyle=g,re.fillRect(0,0,ce,ce),re.fillStyle=m,ES?re.fill(new Path2D(z_(q,P))):ne.forEach(function(R,G){R.forEach(function(Z,te){Z&&re.fillRect(te+P,G+P,1,1)})}),ue&&(re.globalAlpha=ue.opacity),ie&&re.drawImage(Y,ue.x+P,ue.y+P,ue.w,ue.h)}}),Mt.useEffect(()=>{B(!1)},[z]);const he=v2({height:f,width:f},C);let ae=null;return z!=null&&(ae=Mt.createElement("img",{src:z,key:z,style:{display:"none"},onLoad:()=>{B(!0)},ref:U,crossOrigin:ue==null?void 0:ue.crossOrigin})),Mt.createElement(Mt.Fragment,null,Mt.createElement("canvas",v2({style:he,height:f,width:f,ref:I,role:"img"},A)),ae)});RS.displayName="QRCodeCanvas";var B_=Mt.forwardRef(function(i,c){const r=i,{value:d,size:f=E_,level:h=R_,bgColor:g=A_,fgColor:m=L_,includeMargin:p=O_,minVersion:v=M_,boostLevel:y,title:b,marginSize:N,imageSettings:S}=r,w=y2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:C,cells:A,numCells:z,calculatedImageSettings:M}=k_({value:d,level:h,minVersion:v,boostLevel:y,includeMargin:p,marginSize:N,imageSettings:S,size:f});let U=A,I=null;S!=null&&M!=null&&(M.excavation!=null&&(U=D_(A,M.excavation)),I=Mt.createElement("image",{href:S.src,height:M.h,width:M.w,x:M.x+C,y:M.y+C,preserveAspectRatio:"none",opacity:M.opacity,crossOrigin:M.crossOrigin}));const K=z_(U,C);return Mt.createElement("svg",v2({height:f,width:f,viewBox:`0 0 ${z} ${z}`,ref:c,role:"img"},w),!!b&&Mt.createElement("title",null,b),Mt.createElement("path",{fill:g,d:`M0,0 h${z}v${z}H0z`,shapeRendering:"crispEdges"}),Mt.createElement("path",{fill:m,d:K,shapeRendering:"crispEdges"}),I)});B_.displayName="QRCodeSVG";const AS="_overlay_1nlll_6",LS="_dialog_1nlll_18",OS="_header_1nlll_27",MS="_title_1nlll_34",zS="_closeBtn_1nlll_40",DS="_body_1nlll_55",kS="_qrWrap_1nlll_62",BS="_label_1nlll_71",$S="_fieldRow_1nlll_77",US="_addressInput_1nlll_82",HS="_copyBtn_1nlll_101",qS="_copyBtnDone_1nlll_127",FS="_skeleton_1nlll_132",GS="_error_1nlll_145",gn={overlay:AS,dialog:LS,header:OS,title:MS,closeBtn:zS,body:DS,qrWrap:kS,label:BS,fieldRow:$S,addressInput:US,copyBtn:HS,copyBtnDone:qS,skeleton:FS,error:GS},VS={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function QS({open:a,onClose:i,chain:c}){const{data:r,isLoading:d,isError:f}=lu(),[h,g]=j.useState(!1);if(j.useEffect(()=>{if(!a)return;function b(N){N.key==="Escape"&&i()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,i]),j.useEffect(()=>{a||g(!1)},[a]),!a)return null;const m=r==null?void 0:r.find(b=>b.chain===c),p=(m==null?void 0:m.address)??"";function v(){p&&navigator.clipboard.writeText(p).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})}function y(b){b.target===b.currentTarget&&i()}return s.jsx("div",{className:gn.overlay,onMouseDown:y,children:s.jsxs("div",{className:gn.dialog,children:[s.jsxs("div",{className:gn.header,children:[s.jsxs("span",{className:gn.title,children:["Получить ",VS[c]]}),s.jsx("button",{className:gn.closeBtn,type:"button",onClick:i,"aria-label":"Закрыть",children:"✕"})]}),s.jsxs("div",{className:gn.body,children:[d&&s.jsx("div",{className:gn.skeleton}),f&&s.jsx("p",{className:gn.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&s.jsxs(s.Fragment,{children:[s.jsxs("label",{className:gn.label,children:["Ваш ",c,"-адрес"]}),s.jsxs("div",{className:gn.fieldRow,children:[s.jsx("input",{className:gn.addressInput,type:"text",readOnly:!0,value:p,onFocus:b=>b.target.select()}),s.jsx("button",{className:`${gn.copyBtn} ${h?gn.copyBtnDone:""}`,type:"button",onClick:v,disabled:!p,children:h?"Скопировано!":"Копировать"})]}),p&&s.jsx("div",{className:gn.qrWrap,children:s.jsx(B_,{value:p,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const PS="_wrap_uur6k_1",IS="_loading_uur6k_9",YS="_table_uur6k_14",XS="_thStar_uur6k_44",KS="_groupHeader_uur6k_49",ZS="_groupHeaderInner_uur6k_58",WS="_groupLabel_uur6k_66",JS="_groupIcon_uur6k_77",e9="_groupTotal_uur6k_83",t9="_mobileGroupHeader_uur6k_90",n9="_right_uur6k_99",s9="_center_uur6k_103",a9="_btnGroup_uur6k_108",l9="_star_uur6k_114",i9="_starOn_uur6k_129",c9="_tokId_uur6k_133",r9="_tokLogo_uur6k_139",o9="_price_uur6k_174",u9="_balCol_uur6k_201",d9="_sendBtn_uur6k_214",f9="_receiveBtn_uur6k_237",h9="_noFont_uur6k_260",m9="_mobileList_uur6k_265",p9="_card_uur6k_269",_9="_cardInfo_uur6k_281",g9="_cardTop_uur6k_286",v9="_cardTicker_uur6k_293",y9="_cardName_uur6k_299",x9="_cardBalCrypto_uur6k_305",b9="_cardBot_uur6k_312",j9="_cardPrice_uur6k_318",S9="_cardBalUsd_uur6k_330",N9="_mobileActions_uur6k_351",xe={wrap:PS,loading:IS,table:YS,thStar:XS,groupHeader:KS,groupHeaderInner:ZS,groupLabel:WS,groupIcon:JS,groupTotal:e9,mobileGroupHeader:t9,right:n9,center:s9,btnGroup:a9,star:l9,starOn:i9,tokId:c9,tokLogo:r9,price:o9,balCol:u9,sendBtn:d9,receiveBtn:f9,noFont:h9,mobileList:m9,card:p9,cardInfo:_9,cardTop:g9,cardTicker:v9,cardName:y9,cardBalCrypto:x9,cardBot:b9,cardPrice:j9,cardBalUsd:S9,mobileActions:N9},Ap={BTC:{label:"Bitcoin",icon:it.BTC},ETH:{label:"Ethereum",icon:it.ETH},SOL:{label:"Solana",icon:it.SOL},TRX:{label:"Tron",icon:it.TRX},BSC:{label:"BNB Chain",icon:it.BNB}};function Lp(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function w9(a){const i=[],c=new Map;for(const r of a){const d=r.chain??"ETH";let f=c.get(d);f||(f={chain:d,rows:[],totalUsd:0},c.set(d,f),i.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return i}function Op(a){return a.id??a.ticker}function $_({rows:a,isLoading:i,fallbackChain:c="ETH",groupByChain:r=!1}){const[d,f]=j.useState({}),[h,g]=j.useState({open:!1,network:"ETH"}),[m,p]=j.useState({open:!1,chain:"ETH"});function v(B){return B.chain??$7[B.ticker]??c}function y(B){g({open:!0,network:v(B)})}function b(){g(B=>({...B,open:!1}))}function N(B){p({open:!0,chain:v(B)})}function S(){p(B=>({...B,open:!1}))}function w(B){f(P=>({...P,[B]:!P[B]}))}const C=s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),A=s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function z(B){const P=Op(B);return s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("button",{className:`${xe.star} ${d[P]?xe.starOn:""}`,onClick:()=>w(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"})}),s.jsx("td",{children:s.jsxs("div",{className:xe.tokId,children:[s.jsx("div",{className:xe.tokLogo,style:{background:B.color},children:B.logo?s.jsx("img",{src:B.logo,alt:B.ticker,className:""}):B.ticker[0]}),s.jsxs("div",{className:xe.balCol,children:[s.jsx("b",{className:xe.cardTicker,children:B.ticker}),s.jsx("span",{className:xe.noFont,children:B.name})]})]})}),s.jsx("td",{className:xe.right,children:s.jsx("span",{className:xe.price,children:B.price})}),s.jsx("td",{className:xe.right,children:s.jsxs("div",{className:xe.balCol,children:[s.jsx("b",{children:B.bal}),s.jsx("span",{children:B.usd})]})}),s.jsx("td",{className:xe.center,children:s.jsxs("div",{className:xe.btnGroup,children:[s.jsxs("button",{className:xe.receiveBtn,type:"button",onClick:ne=>{ne.stopPropagation(),N(B)},children:[A,"Получить"]}),s.jsxs("button",{className:xe.sendBtn,type:"button",onClick:ne=>{ne.stopPropagation(),y(B)},children:[C,"Отправить"]})]})})]},P)}function M(B){const P=Op(B);return s.jsxs("div",{className:xe.card,children:[s.jsx("button",{className:`${xe.star} ${d[P]?xe.starOn:""}`,onClick:()=>w(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"}),s.jsx("div",{className:xe.tokLogo,style:{background:B.color},children:B.logo?s.jsx("img",{src:B.logo,alt:B.ticker,className:""}):B.ticker[0]}),s.jsxs("div",{className:xe.cardInfo,children:[s.jsxs("div",{className:xe.cardTop,children:[s.jsxs("div",{children:[s.jsx("span",{className:xe.cardTicker,children:B.ticker}),s.jsx("span",{className:xe.cardName,children:B.name})]}),s.jsx("span",{className:xe.cardBalCrypto,children:B.bal})]}),s.jsxs("div",{className:xe.cardBot,children:[s.jsx("span",{className:xe.cardPrice,children:B.price}),s.jsx("span",{className:xe.cardBalUsd,children:B.usd})]})]})]},P)}function U(B){const P=Ap[B.chain];return s.jsx("tr",{className:xe.groupHeader,children:s.jsx("td",{colSpan:5,children:s.jsxs("div",{className:xe.groupHeaderInner,children:[s.jsxs("span",{className:xe.groupLabel,children:[s.jsx("img",{src:P.icon,alt:"",className:xe.groupIcon}),P.label]}),s.jsx("span",{className:xe.groupTotal,children:Lp(B.totalUsd)})]})})},`h-${B.chain}`)}function I(B){const P=Ap[B.chain];return s.jsxs("div",{className:xe.mobileGroupHeader,children:[s.jsxs("span",{className:xe.groupLabel,children:[s.jsx("img",{src:P.icon,alt:"",className:xe.groupIcon}),P.label]}),s.jsx("span",{className:xe.groupTotal,children:Lp(B.totalUsd)})]},`mh-${B.chain}`)}const K=r?w9(a):null;return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:`${xe.wrap} ${i?xe.loading:""}`,children:[s.jsxs("table",{className:xe.table,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:xe.thStar,children:"☆"}),s.jsx("th",{children:"Токены"}),s.jsx("th",{className:xe.right,children:"Цена"}),s.jsx("th",{className:xe.right,children:"Баланс"}),s.jsx("th",{className:xe.center})]})}),s.jsx("tbody",{children:K?K.map(B=>s.jsxs(j.Fragment,{children:[U(B),B.rows.map(z)]},B.chain)):a.map(z)})]}),s.jsx("div",{className:xe.mobileList,children:K?K.map(B=>s.jsxs(j.Fragment,{children:[I(B),B.rows.map(M)]},B.chain)):a.map(M)})]}),s.jsxs("div",{className:xe.mobileActions,children:[s.jsxs("button",{className:xe.receiveBtn,type:"button",onClick:()=>a[0]&&N(a[0]),children:[A,"Получить"]}),s.jsxs("button",{className:xe.sendBtn,type:"button",onClick:()=>a[0]&&y(a[0]),children:[C,"Отправить"]})]}),s.jsx(xS,{open:h.open,onClose:b,network:h.network,tokens:a}),s.jsx(QS,{open:m.open,onClose:S,chain:m.chain})]})}function C9({chain:a}){const{rows:i,isLoading:c}=z7(a);return s.jsx($_,{rows:i,isLoading:c,fallbackChain:a})}function T9(){const{rows:a,isLoading:i}=D7();return s.jsx($_,{rows:a,isLoading:i,groupByChain:!0})}const E9="_nav_ip34n_1",R9="_logo_ip34n_11",A9="_ticker_ip34n_16",L9="_tick_ip34n_16",O9="_accountWrapper_ip34n_42",M9="_account_ip34n_42",z9="_dropdown_ip34n_56",D9="_dropdownItem_ip34n_70",k9="_danger_ip34n_89",B9="_avatar_ip34n_93",Kt={nav:E9,logo:R9,ticker:A9,tick:L9,accountWrapper:O9,account:M9,dropdown:z9,dropdownItem:D9,danger:k9,avatar:B9},Mp=["BTC","ETH","SOL"],$9=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function U9(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function cu(){var b;const[a,i]=j.useState(!1),[c,r]=j.useState(!1),d=j.useRef(null),f=$n(),h=Wt(),{data:g}=ea(),{data:m}=G8(Mp),p=g?[g.first_name,g.middle_name].filter(Boolean).map($9).join(" "):"",{mutate:v}=mt({mutationFn:c8,onSuccess:()=>{Rt.clear(),h.clear(),h.setQueryData(au,null),f(de.HOME)},onError:()=>r(!0)});j.useEffect(()=>{function N(S){d.current&&!d.current.contains(S.target)&&i(!1)}return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);function y(){v(),i(!1)}return s.jsxs(s.Fragment,{children:[s.jsxs("nav",{className:Kt.nav,children:[s.jsx("a",{href:"/",className:Kt.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("div",{className:Kt.ticker,children:Mp.map(N=>{var S;return s.jsxs("div",{className:Kt.tick,children:[s.jsx("b",{children:N}),s.jsx("span",{children:U9((S=m==null?void 0:m[N])==null?void 0:S.usd)})]},N)})}),s.jsxs("div",{className:Kt.accountWrapper,ref:d,children:[s.jsxs("button",{className:Kt.account,onClick:()=>i(N=>!N),children:[g!=null&&g.avatar_link?s.jsx("img",{src:g.avatar_link,alt:"",className:Kt.avatar}):s.jsx("div",{className:Kt.avatar}),s.jsx("span",{children:p||((b=g==null?void 0:g.legal_entity)==null?void 0:b.name)||"Test account"})]}),a&&s.jsxs("div",{className:Kt.dropdown,children:[s.jsx(It,{to:de.PROFILE,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Личный кабинет"}),s.jsx(It,{to:de.WALLET,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Кошелёк"}),s.jsx(It,{to:de.STAKING,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Стейкинг"}),s.jsx(It,{to:de.POOLS,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Пулы"}),s.jsx(It,{to:de.TRANSACTIONS,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Транзакции"}),s.jsx("button",{className:`${Kt.dropdownItem} ${Kt.danger}`,onClick:y,children:"Выйти"})]})]})]}),c&&s.jsx(Ss,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const H9="_tabs_1ne0a_1",q9="_tab_1ne0a_1",F9="_active_1ne0a_31",G9="_icon_1ne0a_37",ol={tabs:H9,tab:q9,active:F9,icon:G9},V9=[{chain:"BTC",label:"BTC",icon:it.BTC},{chain:"ETH",label:"ETH",icon:it.ETH},{chain:"SOL",label:"SOL",icon:it.SOL},{chain:"TRX",label:"TRX",icon:it.TRX},{chain:"BSC",label:"BSC",icon:it.BNB}],Q9=s.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),s.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),s.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function P9(){return s.jsxs("div",{className:ol.tabs,children:[s.jsxs(e2,{to:"/wallet",end:!0,className:({isActive:a})=>`${ol.tab} ${a?ol.active:""}`,children:[s.jsx("span",{className:ol.icon,children:Q9}),s.jsx("span",{children:"Все монеты"})]}),V9.map(a=>s.jsxs(e2,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:i})=>`${ol.tab} ${i?ol.active:""}`,children:[s.jsx("img",{src:a.icon,alt:a.label,className:ol.icon}),s.jsx("span",{children:a.label})]},a.chain))]})}const I9="_page_10fz2_1",Y9="_main_10fz2_8",X9="_glow_10fz2_17",K9="_error_10fz2_29",Z9="_noWallet_10fz2_38",Fc={page:I9,main:Y9,glow:X9,error:K9,noWallet:Z9};function zp(){var y;const{data:a,isLoading:i,isError:c}=ea(),{error:r}=iu(),{mutate:d,isPending:f}=X8(),h=$n(),{chain:g}=gx(),m=(y=r==null?void 0:r.error)==null?void 0:y.includes("No wallets");if(i)return null;if(c)return s.jsx("div",{className:Fc.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return s.jsx(tu,{to:de.KYC,replace:!0});const p=g==null?void 0:g.toUpperCase(),v=p&&q2.includes(p)?p:void 0;return s.jsxs("div",{className:Fc.page,children:[s.jsx(cu,{}),s.jsxs("main",{className:Fc.main,children:[s.jsx("div",{className:Fc.glow}),m?s.jsxs("div",{className:Fc.noWallet,children:[s.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),s.jsx(cn,{variant:"outline",onClick:()=>d(void 0,{onSuccess:()=>h(de.SEED_PHRASE)}),disabled:f,children:f?"Создание...":"Создать кошелёк"})]}):s.jsxs(s.Fragment,{children:[s.jsx(o7,{}),s.jsx(P9,{}),v?s.jsx(C9,{chain:v}):s.jsx(T9,{})]})]})]})}const U_=it.BTC,H_=it.ETH,q_=it.SOL,F_=it.TRX,G_=it.ARB,x2={BTC:{symbol:"BTC",letter:"₿",logo:U_,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:H_,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:q_,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:F_,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:G_,color:"#4A6DFF",network:"ARBITRUM",balance:0,usdRate:.92,decimals:18},USDC:{symbol:"USDC",letter:"$",color:"#2775CA",network:"SOLANA",balance:0,usdRate:1,decimals:6},USDT:{symbol:"USDT",letter:"$",color:"#26A17B",network:"ETHEREUM",balance:0,usdRate:1,decimals:6}},W9=Object.values(x2),b2={BTC:{letter:"₿",logo:U_,color:"#F7931A"},ETH:{letter:"E",logo:H_,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:q_,color:"#9945FF"},TRX:{letter:"T",logo:F_,color:"#FF060A"},ARB:{letter:"A",logo:G_,color:"#4A6DFF"},USDC:{letter:"$",color:"#2775CA"},USDT:{letter:"$",color:"#26A17B"},DAI:{letter:"D",color:"#F5AC37"},BUSD:{letter:"B",color:"#F0B90B"},WBTC:{letter:"W",color:"#F7931A"},LINK:{letter:"L",color:"#2A5ADA"},UNI:{letter:"U",color:"#FF007A"},WBNB:{letter:"W",color:"#F3BA2F"},DOGE:{letter:"D",color:"#C2A633"},JUP:{letter:"J",color:"#C7A52D"},WIF:{letter:"W",color:"#9333EA"},BONK:{letter:"B",color:"#FF8C00"},RAY:{letter:"R",color:"#5AC4BE"},ORCA:{letter:"O",color:"#1B8EF2"},PYTH:{letter:"P",color:"#8B5CF6"},JTO:{letter:"J",color:"#06B6D4"},W:{letter:"W",color:"#6B7280"},PUMP:{letter:"P",color:"#00D4AA"},POPCAT:{letter:"P",color:"#FF6B6B"},TRUMP:{letter:"T",color:"#E63946"},PENGU:{letter:"P",color:"#60A5FA"}},J9={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function V_(a){const i=[],c=J9[a.chain]??a.chain,r=b2[c];i.push({symbol:c,letter:(r==null?void 0:r.letter)??c[0],color:(r==null?void 0:r.color)??"#888",logo:r==null?void 0:r.logo,network:a.chain,balance:parseFloat(a.native.formatted),usdRate:a.native.usdPrice,decimals:a.native.decimals});for(const[d,f]of Object.entries(a.tokens??{})){const h=b2[d];i.push({symbol:d,letter:(h==null?void 0:h.letter)??d[0],color:(h==null?void 0:h.color)??"#888",logo:h==null?void 0:h.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return i}const Dp=82.2578;function Q_(){const[a,i]=j.useState("0"),[c,r]=j.useState(x2.SOL),[d,f]=j.useState(x2.USDC),[h,g]=j.useState(!1),m=parseFloat(a)||0,p=(m*Dp).toFixed(4),v=(m*c.usdRate).toFixed(2),y=(m*Dp*d.usdRate).toFixed(2);function b(C){i(C)}function N(C){i((c.balance*C/100).toFixed(4))}function S(){r(d),f(c)}function w(){g(!0),setTimeout(()=>g(!1),400)}return{fromAmount:a,toAmount:p,fromUsd:v,toUsd:y,fromToken:c,toToken:d,isRefreshing:h,setFromAmount:b,setPercent:N,swapTokens:S,refreshRate:w,setFromToken:r,setToToken:f}}const eN="_wrap_18yiu_1",tN="_trigger_18yiu_6",nN="_name_18yiu_22",sN="_chevron_18yiu_29",aN="_chevronOpen_18yiu_37",lN="_dropdown_18yiu_41",iN="_dropdownWrapper_18yiu_47",cN="_option_18yiu_60",rN="_optionActive_18yiu_78",oN="_optionInfo_18yiu_82",uN="_optionSymbol_18yiu_90",dN="_optionNetwork_18yiu_96",fN="_check_18yiu_103",hN="_triggerCompact_18yiu_110",mN="_nameCompact_18yiu_116",nn={wrap:eN,trigger:tN,name:nN,chevron:sN,chevronOpen:aN,dropdown:lN,dropdownWrapper:iN,option:cN,optionActive:rN,optionInfo:oN,optionSymbol:uN,optionNetwork:dN,check:fN,triggerCompact:hN,nameCompact:mN};function kp({value:a,options:i,onChange:c,compact:r=!1}){const[d,f]=j.useState(!1),h=j.useRef(null);j.useEffect(()=>{function m(p){h.current&&!h.current.contains(p.target)&&f(!1)}return document.addEventListener("mousedown",m),()=>document.removeEventListener("mousedown",m)},[]);function g(m){c(m),f(!1)}return s.jsxs("div",{className:nn.wrap,ref:h,children:[s.jsxs("button",{className:`${nn.trigger} ${r?nn.triggerCompact:""}`,onClick:()=>f(m=>!m),children:[s.jsx(Wn,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),s.jsx("span",{className:`${nn.name} ${r?nn.nameCompact:""}`,children:a.symbol}),s.jsx("span",{className:`${nn.chevron} ${d?nn.chevronOpen:""}`,children:"▾"})]}),d&&s.jsx("div",{className:nn.dropdownWrapper,children:s.jsx("div",{className:nn.dropdown,children:i.map(m=>s.jsxs("button",{className:`${nn.option} ${m.symbol===a.symbol?nn.optionActive:""}`,onClick:()=>g(m),children:[s.jsx(Wn,{letter:m.letter,color:m.color,logo:m.logo,size:32}),s.jsxs("div",{className:nn.optionInfo,children:[s.jsx("span",{className:nn.optionSymbol,children:m.symbol}),s.jsx("span",{className:nn.optionNetwork,children:m.network})]}),m.symbol===a.symbol&&s.jsx("span",{className:nn.check,children:"✓"})]},m.symbol))})})]})}const pN="_wrapper_19brp_1",_N="_pillsOuter_19brp_8",gN="_card_19brp_13",vN="_top_19brp_20",yN="_label_19brp_33",xN="_networkPills_19brp_54",bN="_networkBtn_19brp_60",jN="_networkBtnActive_19brp_79",SN="_pillsInner_19brp_85",NN="_pill_19brp_8",wN="_selectTop_19brp_109",CN="_selectMid_19brp_113",TN="_mid_19brp_118",EN="_input_19brp_126",RN="_display_19brp_142",AN="_int_19brp_151",LN="_dec_19brp_156",ON="_bottom_19brp_161",MN="_usd_19brp_167",zN="_balance_19brp_176",DN="_max_19brp_184",bt={wrapper:pN,pillsOuter:_N,card:gN,top:vN,label:yN,networkPills:xN,networkBtn:bN,networkBtnActive:jN,pillsInner:SN,pill:NN,selectTop:wN,selectMid:CN,mid:TN,input:EN,display:RN,int:AN,dec:LN,bottom:ON,usd:MN,balance:zN,max:DN},kN=["ETH","BSC","TRX","SOL"],BN=[25,50,100];function Wo({mode:a,token:i,tokenOptions:c,amount:r,usd:d,onTokenChange:f,onAmountChange:h,onSetPercent:g,selectedNetwork:m,onNetworkChange:p,hideNetworkSelect:v}){const[y,b]=ot(r,8).split("."),N=g&&s.jsx(s.Fragment,{children:BN.map(S=>s.jsxs("button",{className:bt.pill,onClick:()=>g(S),children:[S,"%"]},S))});return s.jsxs("div",{className:bt.wrapper,children:[a==="from"&&N&&s.jsx("div",{className:bt.pillsOuter,children:N}),s.jsxs("div",{className:bt.card,children:[s.jsxs("div",{className:bt.top,children:[s.jsx("div",{className:bt.label,children:a==="from"&&!v&&s.jsx("div",{className:bt.networkPills,children:kN.map(S=>s.jsx("button",{className:`${bt.networkBtn} ${S===m?bt.networkBtnActive:""}`,onClick:()=>p==null?void 0:p(S),children:S},S))})}),a==="from"&&N&&s.jsx("div",{className:bt.pillsInner,children:N}),s.jsx("div",{className:bt.selectTop,children:s.jsx(kp,{value:i,options:c,onChange:f,compact:!0})})]}),s.jsxs("div",{className:bt.mid,children:[a==="from"?s.jsx("input",{className:bt.input,type:"text",value:r,onChange:S=>{const w=S.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(w)||w==="")&&(h==null||h(w))},placeholder:"0"}):s.jsxs("div",{className:bt.display,children:[s.jsx("span",{className:bt.int,children:y}),b&&s.jsxs("span",{className:bt.dec,children:[".",b]})]}),s.jsx("div",{className:bt.selectMid,children:s.jsx(kp,{value:i,options:c,onChange:f})})]}),s.jsxs("div",{className:bt.bottom,children:[d&&s.jsxs("span",{className:bt.usd,children:["≈ $",d]}),s.jsxs("span",{className:bt.balance,children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[s.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),s.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),ot(i.balance,8),a==="from"&&g&&s.jsx("button",{className:bt.max,onClick:()=>g(100),children:"МАКС"})]})]})]})]})}const $N="_wrap_wqzoz_1",UN="_line_wqzoz_11",HN="_circle_wqzoz_19",$d={wrap:$N,line:UN,circle:HN};function qN({onClick:a}){const[i,c]=j.useState(!1);function r(){c(!0),setTimeout(()=>c(!1),300),a()}return s.jsxs("div",{className:$d.wrap,children:[s.jsx("div",{className:$d.line}),s.jsx("button",{className:$d.circle,style:{transform:i?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const FN="_panel_16d4z_1",GN="_row_16d4z_10",VN="_label_16d4z_22",QN="_value_16d4z_30",PN="_link_16d4z_36",Gc={panel:FN,row:GN,label:VN,value:QN,link:PN};function IN({gasFee:a}){const i=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1}];return s.jsx("div",{className:Gc.panel,children:i.map(({label:c,value:r,link:d})=>s.jsxs("div",{className:Gc.row,children:[s.jsx("span",{className:Gc.label,children:c}),s.jsx("span",{className:`${Gc.value} ${d?Gc.link:""}`,children:r})]},c))})}const YN="_overlay_2rqh7_1",XN="_card_2rqh7_12",KN="_header_2rqh7_24",ZN="_title_2rqh7_30",WN="_closeBtn_2rqh7_36",JN="_flow_2rqh7_51",ew="_token_2rqh7_57",tw="_tokenLabel_2rqh7_67",nw="_tokenAmount_2rqh7_75",sw="_tokenUsd_2rqh7_81",aw="_arrow_2rqh7_86",lw="_details_2rqh7_93",iw="_row_2rqh7_99",cw="_rowLabel_2rqh7_105",rw="_rowValue_2rqh7_110",ow="_impact_2rqh7_116",uw="_warning_2rqh7_120",dw="_confirmBtn_2rqh7_132",Ze={overlay:YN,card:XN,header:KN,title:ZN,closeBtn:WN,flow:JN,token:ew,tokenLabel:tw,tokenAmount:nw,tokenUsd:sw,arrow:aw,details:lw,row:iw,rowLabel:cw,rowValue:rw,impact:ow,warning:uw,confirmBtn:dw};function fw({data:a,insufficientBalance:i,onConfirm:c,onClose:r}){const{details:d,fees:f}=a,{currencyIn:h,currencyOut:g,totalImpact:m,rate:p}=d,v=parseFloat(m.percent),y=parseFloat(p).toFixed(4);return s.jsx("div",{className:Ze.overlay,onClick:r,children:s.jsxs("div",{className:Ze.card,onClick:b=>b.stopPropagation(),children:[s.jsxs("div",{className:Ze.header,children:[s.jsx("span",{className:Ze.title,children:"Подтвердить своп"}),s.jsx("button",{className:Ze.closeBtn,onClick:r,children:"×"})]}),s.jsxs("div",{className:Ze.flow,children:[s.jsxs("div",{className:Ze.token,children:[s.jsx("span",{className:Ze.tokenLabel,children:"Отдаёте"}),s.jsxs("span",{className:Ze.tokenAmount,children:[h.amountFormatted," ",h.currency.symbol]}),s.jsxs("span",{className:Ze.tokenUsd,children:["≈ $",h.amountUsd]})]}),s.jsx("div",{className:Ze.arrow,children:"↓"}),s.jsxs("div",{className:Ze.token,children:[s.jsx("span",{className:Ze.tokenLabel,children:"Получаете"}),s.jsxs("span",{className:Ze.tokenAmount,children:[g.amountFormatted," ",g.currency.symbol]}),s.jsxs("span",{className:Ze.tokenUsd,children:["≈ $",g.amountUsd]})]})]}),s.jsxs("div",{className:Ze.details,children:[s.jsxs("div",{className:Ze.row,children:[s.jsx("span",{className:Ze.rowLabel,children:"Курс"}),s.jsxs("span",{className:Ze.rowValue,children:["1 ",h.currency.symbol," = ",y," ",g.currency.symbol]})]}),s.jsxs("div",{className:Ze.row,children:[s.jsx("span",{className:Ze.rowLabel,children:"Комиссия сети"}),s.jsxs("span",{className:Ze.rowValue,children:["$",f.gas.amountUsd]})]}),s.jsxs("div",{className:Ze.row,children:[s.jsx("span",{className:Ze.rowLabel,children:"Влияние на цену"}),s.jsxs("span",{className:`${Ze.rowValue} ${v<0?Ze.impact:""}`,children:[m.percent,"%"]})]})]}),i&&s.jsx("p",{className:Ze.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),s.jsx("button",{className:Ze.confirmBtn,onClick:c,children:"Подтвердить"})]})})}const hw="_overlay_1rpvx_1",mw="_card_1rpvx_12",pw="_header_1rpvx_24",_w="_title_1rpvx_30",gw="_closeBtn_1rpvx_36",vw="_flow_1rpvx_51",yw="_token_1rpvx_57",xw="_tokenLabel_1rpvx_67",bw="_tokenAmount_1rpvx_75",jw="_minOut_1rpvx_81",Sw="_arrow_1rpvx_86",Nw="_details_1rpvx_93",ww="_row_1rpvx_99",Cw="_rowLabel_1rpvx_105",Tw="_rowValue_1rpvx_110",Ew="_warning_1rpvx_116",Rw="_confirmBtn_1rpvx_128",Et={overlay:hw,card:mw,header:pw,title:_w,closeBtn:gw,flow:vw,token:yw,tokenLabel:xw,tokenAmount:bw,minOut:jw,arrow:Sw,details:Nw,row:ww,rowLabel:Cw,rowValue:Tw,warning:Ew,confirmBtn:Rw};function Aw({quote:a,fromSymbol:i,toSymbol:c,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:h}){const{expectedOutFormatted:g,minOutFormatted:m,fees:p}=a;return s.jsx("div",{className:Et.overlay,onClick:h,children:s.jsxs("div",{className:Et.card,onClick:v=>v.stopPropagation(),children:[s.jsxs("div",{className:Et.header,children:[s.jsx("span",{className:Et.title,children:"Подтвердить своп"}),s.jsx("button",{className:Et.closeBtn,onClick:h,children:"×"})]}),s.jsxs("div",{className:Et.flow,children:[s.jsxs("div",{className:Et.token,children:[s.jsx("span",{className:Et.tokenLabel,children:"Отдаёте"}),s.jsxs("span",{className:Et.tokenAmount,children:[r," ",i]})]}),s.jsx("div",{className:Et.arrow,children:"↓"}),s.jsxs("div",{className:Et.token,children:[s.jsx("span",{className:Et.tokenLabel,children:"Получаете"}),s.jsxs("span",{className:Et.tokenAmount,children:[g," ",c]}),s.jsxs("span",{className:Et.minOut,children:["Минимум: ",m," ",c]})]})]}),s.jsx("div",{className:Et.details,children:s.jsxs("div",{className:Et.row,children:[s.jsx("span",{className:Et.rowLabel,children:"Комиссия сети"}),s.jsxs("span",{className:Et.rowValue,children:[p.network.amountFormatted," ",p.network.asset," (≈$",p.network.amountUsd,")"]})]})}),d&&s.jsx("p",{className:Et.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),s.jsx("button",{className:Et.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const Lw="_form_1fk2f_1",Ow={form:Lw},Mw={ETH:1,BSC:56,SOL:792703809},Bp={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function $p(a){return Bp[a]??Bp.DEFAULT}function zw(){var na,Ae,Jt,Cs;const a=$n(),i=Wt(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:h,setPercent:g,swapTokens:m,setFromToken:p,setToToken:v}=Q_(),[y,b]=j.useState("ETH"),[N,S]=j.useState(null),[w,C]=j.useState(null),[A,z]=j.useState(null),M=y==="TRX",{data:U}=Jc(y),I=U?V_(U):W9;j.useEffect(()=>{I.length!==0&&(p(et=>I.find(on=>on.symbol===et.symbol)??I[0]),v(et=>I.find(on=>on.symbol===et.symbol)??I[1]??I[0]))},[U,y]);const K=js(c,500),{data:B}=lu(),{data:P}=Q8(),ne=parseFloat(K),ce=Mw[y],ue=(na=B==null?void 0:B.find(et=>et.chain===y))==null?void 0:na.address,he=((Ae=P==null?void 0:P.find(et=>et.chain===y&&et.symbol===d.symbol))==null?void 0:Ae.contract)??$p(y),ae=((Jt=P==null?void 0:P.find(et=>et.chain===y&&et.symbol===f.symbol))==null?void 0:Jt.contract)??$p(y),pe=!M&&ce&&ue&&ne>0?{user:ue,recipient:ue,originChainId:ce,destinationChainId:ce,originCurrency:he,destinationCurrency:ae,amount:Math.round(ne*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:re}=v_(pe),{mutate:q,isPending:Y}=Z8(),{mutate:ie,isPending:Te}=W8(),_e=M&&ne>0?{from:d.symbol,to:f.symbol,amountHuman:K}:null,{data:R}=J8(_e),{mutate:G,isPending:Z}=e7(),{mutate:te,isPending:ye}=t7(),Se=Te||ye,Be=(parseFloat(c)||0)>d.balance,At=M?(R==null?void 0:R.expectedOutFormatted)??"0":(re==null?void 0:re.details.currencyOut.amountFormatted)??"0",st=M||re==null?void 0:re.details.currencyOut.amountUsd,us=M?(Cs=R==null?void 0:R.fees.network.amountUsd)==null?void 0:Cs.toString():re==null?void 0:re.fees.gas.amountUsd,ws=M?ne<=0||Z:!pe||Y;function ta(){if(M){if(!_e)return;G(_e,{onSuccess:et=>C(et)})}else{if(!pe)return;q(pe,{onSuccess:et=>S(et)})}}return s.jsxs("div",{className:Ow.form,children:[s.jsx(Wo,{mode:"from",token:d,tokenOptions:I,amount:c,usd:r,onAmountChange:h,onSetPercent:g,onTokenChange:p,selectedNetwork:y,onNetworkChange:b}),s.jsx(qN,{onClick:m}),s.jsx(Wo,{mode:"to",token:f,tokenOptions:I,amount:At,usd:st,onTokenChange:v}),s.jsx(IN,{gasFee:us}),s.jsx(Zn,{label:Y||Z?"Загрузка...":void 0,onClick:ta,disabled:ws}),N&&s.jsx(fw,{data:N,insufficientBalance:Be,onClose:()=>S(null),onConfirm:()=>{var on,Ll;const et=(Ll=(on=N.steps[0])==null?void 0:on.items[0])==null?void 0:Ll.data;et&&(z(null),ie({chain:y,txData:et},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",y]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(de.WALLET)},onError:Ol=>{z(Ol instanceof Error?Ol.message:"Не удалось подписать транзакцию")}})),S(null)}}),w&&s.jsx(Aw,{quote:w,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:c,insufficientBalance:Be,onClose:()=>C(null),onConfirm:()=>{z(null),te(w.quoteId,{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance","TRX"]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(de.WALLET)},onError:et=>{z(et instanceof Error?et.message:"Не удалось выполнить свап")}}),C(null)}}),Se&&s.jsx(Ss,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),A&&s.jsx(Ss,{status:"error",message:A,onClose:()=>z(null)})]})}const Dw="_tabs_1sxhr_1",kw="_tab_1sxhr_1",Bw="_active_1sxhr_19",$w="_inactive_1sxhr_24",ul={tabs:Dw,tab:kw,active:Bw,inactive:$w};function P_({active:a}){const i=$n();return s.jsxs("div",{className:ul.tabs,children:[s.jsx("button",{className:`${ul.tab} ${a==="swap"?ul.active:ul.inactive}`,onClick:()=>i(de.SWAP),children:"СВОП"}),s.jsx("button",{className:`${ul.tab} ${a==="bridge"?ul.active:ul.inactive}`,onClick:()=>i(de.BRIDGE),children:"БРИДЖ"})]})}const Uw="_content_1pe49_1",Hw={content:Uw};function qw(){return s.jsxs(s.Fragment,{children:[s.jsx(P_,{active:"swap"}),s.jsx("div",{className:Hw.content,children:s.jsx(zw,{})})]})}function cs(a,i){const[c,r=""]=a.split("."),d=r.slice(0,i).padEnd(i,"0");return`${c}${d}`.replace(/^0+(?=\d)/,"")||"0"}function er(a,i){const c=a.padStart(i+1,"0"),r=c.slice(0,c.length-i),d=c.slice(c.length-i).replace(/0+$/,"");return d?`${r}.${d}`:r}const Fw="_wrap_njjv3_1",Gw="_label_njjv3_9",Vw="_select_njjv3_18",Ud={wrap:Fw,label:Gw,select:Vw};function Up({label:a,value:i,onChange:c,options:r}){return s.jsxs("div",{className:Ud.wrap,children:[s.jsx("span",{className:Ud.label,children:a}),s.jsx("select",{className:Ud.select,value:i,onChange:d=>c(d.target.value),children:r.map(d=>s.jsx("option",{value:d,children:d},d))})]})}const Qw="_overlay_13tuw_1",Pw="_card_13tuw_12",Iw="_header_13tuw_24",Yw="_title_13tuw_30",Xw="_closeBtn_13tuw_36",Kw="_flow_13tuw_51",Zw="_token_13tuw_57",Ww="_tokenLabel_13tuw_67",Jw="_tokenAmount_13tuw_75",eC="_minOut_13tuw_81",tC="_arrow_13tuw_86",nC="_details_13tuw_93",sC="_row_13tuw_99",aC="_rowLabel_13tuw_105",lC="_rowValue_13tuw_110",iC="_warning_13tuw_116",cC="_confirmBtn_13tuw_128",ft={overlay:Qw,card:Pw,header:Iw,title:Yw,closeBtn:Xw,flow:Kw,token:Zw,tokenLabel:Ww,tokenAmount:Jw,minOut:eC,arrow:tC,details:nC,row:sC,rowLabel:aC,rowValue:lC,warning:iC,confirmBtn:cC};function rC({quote:a,fromAmountHuman:i,insufficientBalance:c,isExecuting:r,onConfirm:d,onClose:f}){const{action:h,estimate:g,toolDetails:m}=a,p=h.toToken.symbol,v=h.fromToken.symbol,y=ot(er(g.toAmount,h.toToken.decimals),8),b=ot(er(g.toAmountMin,h.toToken.decimals),8),N=(g.feeCosts??[]).reduce((S,w)=>S+(parseFloat(w.amountUSD)||0),0).toFixed(2);return s.jsx("div",{className:ft.overlay,onClick:f,children:s.jsxs("div",{className:ft.card,onClick:S=>S.stopPropagation(),children:[s.jsxs("div",{className:ft.header,children:[s.jsx("span",{className:ft.title,children:"Подтвердить бридж"}),s.jsx("button",{className:ft.closeBtn,onClick:f,children:"×"})]}),s.jsxs("div",{className:ft.flow,children:[s.jsxs("div",{className:ft.token,children:[s.jsx("span",{className:ft.tokenLabel,children:"Отдаёте"}),s.jsxs("span",{className:ft.tokenAmount,children:[i," ",v]})]}),s.jsx("div",{className:ft.arrow,children:"↓"}),s.jsxs("div",{className:ft.token,children:[s.jsx("span",{className:ft.tokenLabel,children:"Получаете"}),s.jsxs("span",{className:ft.tokenAmount,children:[y," ",p]}),s.jsxs("span",{className:ft.minOut,children:["Минимум: ",b," ",p]})]})]}),s.jsxs("div",{className:ft.details,children:[s.jsxs("div",{className:ft.row,children:[s.jsx("span",{className:ft.rowLabel,children:"Комиссия"}),s.jsxs("span",{className:ft.rowValue,children:["≈$",N]})]}),s.jsxs("div",{className:ft.row,children:[s.jsx("span",{className:ft.rowLabel,children:"Мост"}),s.jsx("span",{className:ft.rowValue,children:m.name})]})]}),c&&s.jsx("p",{className:ft.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),s.jsx("button",{className:ft.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const oC="_form_htwuf_1",Hp={form:oC},Hd=["ETH","BSC","SOL","TRX","BTC"],Si={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},uC=Object.fromEntries(Object.entries(Si).map(([a,i])=>[i,a])),qp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function dC(a){const i=b2[a.symbol];return{symbol:a.symbol,letter:(i==null?void 0:i.letter)??a.symbol[0],color:(i==null?void 0:i.color)??"#888",logo:a.logoURI??(i==null?void 0:i.logo),network:uC[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function fC(a){const i={};for(const c of V_(a))i[c.symbol]=c.balance;return i}function hC(){var us,ws,ta,na;const a=$n(),i=Wt(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:h,setPercent:g,setFromToken:m,setToToken:p}=Q_(),[v,y]=j.useState("ETH"),[b,N]=j.useState("BSC"),[S,w]=j.useState(null),[C,A]=j.useState(null),{data:z}=P8(),{data:M}=Jc(v),{data:U}=Jc(b),{data:I}=lu(),{mutate:K,isPending:B}=I8(),{mutate:P,isPending:ne}=Y8();function ce(Ae,Jt){const Cs=((z==null?void 0:z[Si[Ae]])??[]).map(dC);if(!Jt)return Cs;const et=fC(Jt);return Cs.map(on=>et[on.symbol]!=null?{...on,balance:et[on.symbol]}:on)}const ue=ce(v,M),he=ce(b,U);j.useEffect(()=>{ue.length!==0&&m(Ae=>ue.find(Jt=>Jt.symbol===Ae.symbol)??ue[0])},[z,M,v]),j.useEffect(()=>{he.length!==0&&p(Ae=>he.find(Jt=>Jt.symbol===Ae.symbol)??he[0])},[z,U,b]);const ae=parseFloat(c),pe=(ae||0)>d.balance,re=(us=z==null?void 0:z[Si[v]])==null?void 0:us.find(Ae=>Ae.symbol===d.symbol),q=(ws=z==null?void 0:z[Si[b]])==null?void 0:ws.find(Ae=>Ae.symbol===f.symbol),Y=(ta=I==null?void 0:I.find(Ae=>Ae.chain===v))==null?void 0:ta.address,ie=(na=I==null?void 0:I.find(Ae=>Ae.chain===b))==null?void 0:na.address,Te=re&&q&&Y&&ie&&ae>0?{fromChain:Si[v],toChain:Si[b],fromToken:re.address,toToken:q.address,fromAmount:cs(c,d.decimals),fromAddress:Y,toAddress:ie,slippage:.005}:null,_e=js(c,500),R=parseFloat(_e),G=qp[v],Z=qp[b],te=re&&q&&Y&&ie&&G&&Z&&R>0?{user:Y,recipient:ie,originChainId:G,destinationChainId:Z,originCurrency:re.address,destinationCurrency:q.address,amount:cs(_e,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:ye}=v_(te),Se=ye?ye.details.currencyOut.amountFormatted:S?ot(er(S.estimate.toAmount,S.action.toToken.decimals),8):"0";function Be(Ae){y(Ae),Ae===b&&N(Hd.find(Jt=>Jt!==Ae)??b)}function At(){Te&&(A(null),K(Te,{onSuccess:Ae=>w(Ae),onError:Ae=>A(Ae instanceof Error?Ae.message:"Не удалось получить котировку")}))}function st(){S&&(A(null),P({provider:"jumper",fromChain:S.action.fromChainId,toChain:S.action.toChainId,fromToken:S.action.fromToken.address,toToken:S.action.toToken.address,fromAmount:S.action.fromAmount,fromAddress:S.action.fromAddress,toAddress:S.action.toAddress,acceptedMinOut:S.estimate.toAmountMin},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",v]}),i.invalidateQueries({queryKey:["wallet","balance",b]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),w(null),a(de.WALLET)},onError:Ae=>A(Ae instanceof Error?Ae.message:"Не удалось выполнить бридж")}))}return z?s.jsxs("div",{className:Hp.form,children:[s.jsx(Up,{label:"ИЗ",value:v,onChange:Be,options:Hd}),s.jsx(Wo,{mode:"from",token:d,tokenOptions:ue,amount:c,usd:r,onAmountChange:h,onSetPercent:g,onTokenChange:m,hideNetworkSelect:!0}),s.jsx(Up,{label:"В",value:b,onChange:N,options:Hd.filter(Ae=>Ae!==v)}),s.jsx(Wo,{mode:"to",token:f,tokenOptions:he,amount:Se,onTokenChange:p,hideNetworkSelect:!0}),s.jsx(Zn,{label:B?"Загрузка...":"Подтвердить бридж",onClick:At,disabled:!Te||B}),S&&s.jsx(rC,{quote:S,fromAmountHuman:c,insufficientBalance:pe,isExecuting:ne,onConfirm:st,onClose:()=>w(null)}),C&&s.jsx(Ss,{status:"error",message:C,onClose:()=>A(null)})]}):s.jsx("div",{className:Hp.form})}const mC="_content_1pe49_1",pC={content:mC};function _C(){return s.jsxs(s.Fragment,{children:[s.jsx(P_,{active:"bridge"}),s.jsx("div",{className:pC.content,children:s.jsx(hC,{})})]})}var j2=function(a,i){return j2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(c[d]=r[d])},j2(a,i)};function gC(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");j2(a,i);function c(){this.constructor=a}a.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var Ht=function(){return Ht=Object.assign||function(i){for(var c,r=1,d=arguments.length;r<d;r++){c=arguments[r];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i},Ht.apply(this,arguments)};var qd,Fp;function vC(){if(Fp)return qd;Fp=1;var a=!1,i,c,r,d,f,h,g,m,p,v,y,b,N,S,w;function C(){if(!a){a=!0;var z=navigator.userAgent,M=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(z),U=/(Mac OS X)|(Windows)|(Linux)/.exec(z);if(b=/\b(iPhone|iP[ao]d)/.exec(z),N=/\b(iP[ao]d)/.exec(z),v=/Android/i.exec(z),S=/FBAN\/\w+;/i.exec(z),w=/Mobile/i.exec(z),y=!!/Win64/.exec(z),M){i=M[1]?parseFloat(M[1]):M[5]?parseFloat(M[5]):NaN,i&&document&&document.documentMode&&(i=document.documentMode);var I=/(?:Trident\/(\d+.\d+))/.exec(z);h=I?parseFloat(I[1])+4:i,c=M[2]?parseFloat(M[2]):NaN,r=M[3]?parseFloat(M[3]):NaN,d=M[4]?parseFloat(M[4]):NaN,d?(M=/(?:Chrome\/(\d+\.\d+))/.exec(z),f=M&&M[1]?parseFloat(M[1]):NaN):f=NaN}else i=c=r=f=d=NaN;if(U){if(U[1]){var K=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(z);g=K?parseFloat(K[1].replace("_",".")):!0}else g=!1;m=!!U[2],p=!!U[3]}else g=m=p=!1}}var A={ie:function(){return C()||i},ieCompatibilityMode:function(){return C()||h>i},ie64:function(){return A.ie()&&y},firefox:function(){return C()||c},opera:function(){return C()||r},webkit:function(){return C()||d},safari:function(){return A.webkit()},chrome:function(){return C()||f},windows:function(){return C()||m},osx:function(){return C()||g},linux:function(){return C()||p},iphone:function(){return C()||b},mobile:function(){return C()||b||N||v||w},nativeApp:function(){return C()||S},android:function(){return C()||v},ipad:function(){return C()||N}};return qd=A,qd}var Fd,Gp;function yC(){if(Gp)return Fd;Gp=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),i={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return Fd=i,Fd}var Gd,Vp;function xC(){if(Vp)return Gd;Vp=1;var a=yC(),i;a.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function c(r,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,h=f in document;if(!h){var g=document.createElement("div");g.setAttribute(f,"return;"),h=typeof g[f]=="function"}return!h&&i&&r==="wheel"&&(h=document.implementation.hasFeature("Events.wheel","3.0")),h}return Gd=c,Gd}var Vd,Qp;function bC(){if(Qp)return Vd;Qp=1;var a=vC(),i=xC(),c=10,r=40,d=800;function f(h){var g=0,m=0,p=0,v=0;return"detail"in h&&(m=h.detail),"wheelDelta"in h&&(m=-h.wheelDelta/120),"wheelDeltaY"in h&&(m=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(g=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(g=m,m=0),p=g*c,v=m*c,"deltaY"in h&&(v=h.deltaY),"deltaX"in h&&(p=h.deltaX),(p||v)&&h.deltaMode&&(h.deltaMode==1?(p*=r,v*=r):(p*=d,v*=d)),p&&!g&&(g=p<1?-1:1),v&&!m&&(m=v<1?-1:1),{spinX:g,spinY:m,pixelX:p,pixelY:v}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},Vd=f,Vd}var Qd,Pp;function jC(){return Pp||(Pp=1,Qd=bC()),Qd}var SC=jC();const NC=C3(SC);function wC(a,i,c,r,d,f){f===void 0&&(f=0);var h=$i(a,i,f),g=h.width,m=h.height,p=Math.min(g,c),v=Math.min(m,r);return p>v*d?{width:v*d,height:v}:{width:p,height:p/d}}function CC(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function Vc(a,i,c,r,d){d===void 0&&(d=0);var f=$i(i.width,i.height,d),h=f.width,g=f.height;return{x:Ip(a.x,h,c.width,r),y:Ip(a.y,g,c.height,r)}}function Ip(a,i,c,r){var d=Math.abs(i*r/2-c/2);return ru(a,-d,d)}function Yp(a,i){return Math.sqrt(Math.pow(a.y-i.y,2)+Math.pow(a.x-i.x,2))}function Xp(a,i){return Math.atan2(i.y-a.y,i.x-a.x)*180/Math.PI}function TC(a,i,c,r,d,f,h){f===void 0&&(f=0),h===void 0&&(h=!0);var g=h?EC:RC,m=$i(i.width,i.height,f),p=$i(i.naturalWidth,i.naturalHeight,f),v={x:g(100,((m.width-c.width/d)/2-a.x/d)/m.width*100),y:g(100,((m.height-c.height/d)/2-a.y/d)/m.height*100),width:g(100,c.width/m.width*100/d),height:g(100,c.height/m.height*100/d)},y=Math.round(g(p.width,v.width*p.width/100)),b=Math.round(g(p.height,v.height*p.height/100)),N=p.width>=p.height*r,S=N?{width:Math.round(b*r),height:b}:{width:y,height:Math.round(y/r)},w=Ht(Ht({},S),{x:Math.round(g(p.width-S.width,v.x*p.width/100)),y:Math.round(g(p.height-S.height,v.y*p.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:w}}function EC(a,i){return Math.min(a,Math.max(0,i))}function RC(a,i){return i}function AC(a,i,c,r,d,f){var h=$i(i.width,i.height,c),g=ru(r.width/h.width*(100/a.width),d,f),m={x:g*h.width/2-r.width/2-h.width*g*(a.x/100),y:g*h.height/2-r.height/2-h.height*g*(a.y/100)};return{crop:m,zoom:g}}function LC(a,i,c){var r=CC(i);return c.height>c.width?c.height/(a.height*r):c.width/(a.width*r)}function OC(a,i,c,r,d,f){c===void 0&&(c=0);var h=$i(i.naturalWidth,i.naturalHeight,c),g=ru(LC(a,i,r),d,f),m=r.height>r.width?r.height/a.height:r.width/a.width,p={x:((h.width-a.width)/2-a.x)*m,y:((h.height-a.height)/2-a.y)*m};return{crop:p,zoom:g}}function Kp(a,i){return{x:(i.x+a.x)/2,y:(i.y+a.y)/2}}function MC(a){return a*Math.PI/180}function $i(a,i,c){var r=MC(c);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*i),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*i)}}function ru(a,i,c){return Math.min(Math.max(a,i),c)}function Mo(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return a.filter(function(c){return typeof c=="string"&&c.length>0}).join(" ").trim()}var zC=`.reactEasyCrop_Container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,DC=1,kC=3,BC=1,$C=(function(a){gC(i,a);function i(){var c=a!==null&&a.apply(this,arguments)||this;return c.cropperRef=j.createRef(),c.imageRef=j.createRef(),c.videoRef=j.createRef(),c.containerPosition={x:0,y:0},c.containerRef=null,c.styleRef=null,c.containerRect=null,c.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},c.dragStartPosition={x:0,y:0},c.dragStartCrop={x:0,y:0},c.gestureZoomStart=0,c.gestureRotationStart=0,c.isTouching=!1,c.lastPinchDistance=0,c.lastPinchRotation=0,c.rafDragTimeout=null,c.rafPinchTimeout=null,c.wheelTimer=null,c.currentDoc=typeof document<"u"?document:null,c.currentWindow=typeof window<"u"?window:null,c.resizeObserver=null,c.previousCropSize=null,c.isInitialized=!1,c.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},c.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!c.containerRef)){var r=!0;c.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}c.computeSizes()}),c.resizeObserver.observe(c.containerRef)}},c.preventZoomSafari=function(r){return r.preventDefault()},c.cleanEvents=function(){c.currentDoc&&(c.currentDoc.removeEventListener("mousemove",c.onMouseMove),c.currentDoc.removeEventListener("mouseup",c.onDragStopped),c.currentDoc.removeEventListener("touchmove",c.onTouchMove),c.currentDoc.removeEventListener("touchend",c.onDragStopped),c.currentDoc.removeEventListener("gesturechange",c.onGestureChange),c.currentDoc.removeEventListener("gestureend",c.onGestureEnd),c.currentDoc.removeEventListener("scroll",c.onScroll))},c.clearScrollEvent=function(){c.containerRef&&c.containerRef.removeEventListener("wheel",c.onWheel),c.wheelTimer&&clearTimeout(c.wheelTimer)},c.onMediaLoad=function(){var r=c.computeSizes();r&&(c.previousCropSize=r,c.emitCropData(),c.setInitialCrop(r),c.isInitialized=!0),c.props.onMediaLoaded&&c.props.onMediaLoaded(c.mediaSize)},c.setInitialCrop=function(r){if(c.props.initialCroppedAreaPercentages){var d=AC(c.props.initialCroppedAreaPercentages,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=d.crop,h=d.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(h)}else if(c.props.initialCroppedAreaPixels){var g=OC(c.props.initialCroppedAreaPixels,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=g.crop,h=g.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(h)}},c.computeSizes=function(){var r,d,f,h,g,m,p=c.imageRef.current||c.videoRef.current;if(p&&c.containerRef){c.containerRect=c.containerRef.getBoundingClientRect(),c.saveContainerPosition();var v=c.containerRect.width/c.containerRect.height,y=((r=c.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=c.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,b=((f=c.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((h=c.videoRef.current)===null||h===void 0?void 0:h.videoHeight)||0,N=p.offsetWidth<y||p.offsetHeight<b,S=y/b,w=void 0;if(N)switch(c.state.mediaObjectFit){default:case"contain":w=v>S?{width:c.containerRect.height*S,height:c.containerRect.height}:{width:c.containerRect.width,height:c.containerRect.width/S};break;case"horizontal-cover":w={width:c.containerRect.width,height:c.containerRect.width/S};break;case"vertical-cover":w={width:c.containerRect.height*S,height:c.containerRect.height};break}else w={width:p.offsetWidth,height:p.offsetHeight};c.mediaSize=Ht(Ht({},w),{naturalWidth:y,naturalHeight:b}),c.props.setMediaSize&&c.props.setMediaSize(c.mediaSize);var C=c.props.cropSize?c.props.cropSize:wC(c.mediaSize.width,c.mediaSize.height,c.containerRect.width,c.containerRect.height,c.props.aspect,c.props.rotation);return(((g=c.state.cropSize)===null||g===void 0?void 0:g.height)!==C.height||((m=c.state.cropSize)===null||m===void 0?void 0:m.width)!==C.width)&&c.props.onCropSizeChange&&c.props.onCropSizeChange(C),c.setState({cropSize:C},c.recomputeCropPosition),c.props.setCropSize&&c.props.setCropSize(C),C}},c.saveContainerPosition=function(){if(c.containerRef){var r=c.containerRef.getBoundingClientRect();c.containerPosition={x:r.left,y:r.top}}},c.onMouseDown=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("mousemove",c.onMouseMove),c.currentDoc.addEventListener("mouseup",c.onDragStopped),c.saveContainerPosition(),c.onDragStart(i.getMousePoint(r)))},c.onMouseMove=function(r){return c.onDrag(i.getMousePoint(r))},c.onScroll=function(r){c.currentDoc&&(r.preventDefault(),c.saveContainerPosition())},c.onTouchStart=function(r){c.currentDoc&&(c.isTouching=!0,!(c.props.onTouchRequest&&!c.props.onTouchRequest(r))&&(c.currentDoc.addEventListener("touchmove",c.onTouchMove,{passive:!1}),c.currentDoc.addEventListener("touchend",c.onDragStopped),c.saveContainerPosition(),r.touches.length===2?c.onPinchStart(r):r.touches.length===1&&c.onDragStart(i.getTouchPoint(r.touches[0]))))},c.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?c.onPinchMove(r):r.touches.length===1&&c.onDrag(i.getTouchPoint(r.touches[0]))},c.onGestureStart=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("gesturechange",c.onGestureChange),c.currentDoc.addEventListener("gestureend",c.onGestureEnd),c.gestureZoomStart=c.props.zoom,c.gestureRotationStart=c.props.rotation)},c.onGestureChange=function(r){if(r.preventDefault(),!c.isTouching){var d=i.getMousePoint(r),f=c.gestureZoomStart-1+r.scale;if(c.setNewZoom(f,d,{shouldUpdatePosition:!0}),c.props.onRotationChange){var h=c.gestureRotationStart+r.rotation;c.props.onRotationChange(h)}}},c.onGestureEnd=function(r){c.cleanEvents()},c.onDragStart=function(r){var d,f,h=r.x,g=r.y;c.dragStartPosition={x:h,y:g},c.dragStartCrop=Ht({},c.props.crop),(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d)},c.onDrag=function(r){var d=r.x,f=r.y;c.currentWindow&&(c.rafDragTimeout&&c.currentWindow.cancelAnimationFrame(c.rafDragTimeout),c.rafDragTimeout=c.currentWindow.requestAnimationFrame(function(){if(c.state.cropSize&&!(d===void 0||f===void 0)){var h=d-c.dragStartPosition.x,g=f-c.dragStartPosition.y,m={x:c.dragStartCrop.x+h,y:c.dragStartCrop.y+g},p=c.props.restrictPosition?Vc(m,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):m;c.props.onCropChange(p)}}))},c.onDragStopped=function(){var r,d;c.isTouching=!1,c.cleanEvents(),c.emitCropData(),(d=(r=c.props).onInteractionEnd)===null||d===void 0||d.call(r)},c.onWheel=function(r){if(c.currentWindow&&!(c.props.onWheelRequest&&!c.props.onWheelRequest(r))){r.preventDefault();var d=i.getMousePoint(r),f=NC(r).pixelY,h=c.props.zoom-f*c.props.zoomSpeed/200;c.setNewZoom(h,d,{shouldUpdatePosition:!0}),c.state.hasWheelJustStarted||c.setState({hasWheelJustStarted:!0},function(){var g,m;return(m=(g=c.props).onInteractionStart)===null||m===void 0?void 0:m.call(g)}),c.wheelTimer&&clearTimeout(c.wheelTimer),c.wheelTimer=c.currentWindow.setTimeout(function(){return c.setState({hasWheelJustStarted:!1},function(){var g,m;return(m=(g=c.props).onInteractionEnd)===null||m===void 0?void 0:m.call(g)})},250)}},c.getPointOnContainer=function(r,d){var f=r.x,h=r.y;if(!c.containerRect)throw new Error("The Cropper is not mounted");return{x:c.containerRect.width/2-(f-d.x),y:c.containerRect.height/2-(h-d.y)}},c.getPointOnMedia=function(r){var d=r.x,f=r.y,h=c.props,g=h.crop,m=h.zoom;return{x:(d+g.x)/m,y:(f+g.y)/m}},c.setNewZoom=function(r,d,f){var h=f===void 0?{}:f,g=h.shouldUpdatePosition,m=g===void 0?!0:g;if(!(!c.state.cropSize||!c.props.onZoomChange)){var p=ru(r,c.props.minZoom,c.props.maxZoom);if(m){var v=c.getPointOnContainer(d,c.containerPosition),y=c.getPointOnMedia(v),b={x:y.x*p-v.x,y:y.y*p-v.y},N=c.props.restrictPosition?Vc(b,c.mediaSize,c.state.cropSize,p,c.props.rotation):b;c.props.onCropChange(N)}c.props.onZoomChange(p)}},c.getCropData=function(){if(!c.state.cropSize)return null;var r=c.props.restrictPosition?Vc(c.props.crop,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):c.props.crop;return TC(r,c.mediaSize,c.state.cropSize,c.getAspect(),c.props.zoom,c.props.rotation,c.props.restrictPosition)},c.emitCropData=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropComplete&&c.props.onCropComplete(d,f),c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.emitCropAreaChange=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.recomputeCropPosition=function(){var r,d;if(c.state.cropSize){var f=c.props.crop;if(c.isInitialized&&(!((r=c.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=c.previousCropSize)===null||d===void 0)&&d.height)){var h=Math.abs(c.previousCropSize.width-c.state.cropSize.width)>1e-6||Math.abs(c.previousCropSize.height-c.state.cropSize.height)>1e-6;if(h){var g=c.state.cropSize.width/c.previousCropSize.width,m=c.state.cropSize.height/c.previousCropSize.height;f={x:c.props.crop.x*g,y:c.props.crop.y*m}}}var p=c.props.restrictPosition?Vc(f,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):f;c.previousCropSize=c.state.cropSize,c.props.onCropChange(p),c.emitCropData()}},c.onKeyDown=function(r){var d,f,h=c.props,g=h.crop,m=h.onCropChange,p=h.keyboardStep,v=h.zoom,y=h.rotation,b=p;if(c.state.cropSize){r.shiftKey&&(b*=.2);var N=Ht({},g);switch(r.key){case"ArrowUp":N.y-=b,r.preventDefault();break;case"ArrowDown":N.y+=b,r.preventDefault();break;case"ArrowLeft":N.x-=b,r.preventDefault();break;case"ArrowRight":N.x+=b,r.preventDefault();break;default:return}c.props.restrictPosition&&(N=Vc(N,c.mediaSize,c.state.cropSize,v,y)),r.repeat||(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d),m(N)}},c.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}c.emitCropData(),(f=(d=c.props).onInteractionEnd)===null||f===void 0||f.call(d)},c}return i.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=zC,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},i.prototype.componentWillUnmount=function(){var c,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(c=this.resizeObserver)===null||c===void 0||c.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},i.prototype.componentDidUpdate=function(c){var r,d,f,h,g,m,p,v,y;c.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):c.aspect!==this.props.aspect?this.computeSizes():c.objectFit!==this.props.objectFit?this.computeSizes():c.zoom!==this.props.zoom?this.recomputeCropPosition():((r=c.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=c.cropSize)===null||f===void 0?void 0:f.width)!==((h=this.props.cropSize)===null||h===void 0?void 0:h.width)?this.computeSizes():(((g=c.crop)===null||g===void 0?void 0:g.x)!==((m=this.props.crop)===null||m===void 0?void 0:m.x)||((p=c.crop)===null||p===void 0?void 0:p.y)!==((v=this.props.crop)===null||v===void 0?void 0:v.y))&&this.emitCropAreaChange(),c.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),c.video!==this.props.video&&((y=this.videoRef.current)===null||y===void 0||y.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},i.prototype.getAspect=function(){var c=this.props,r=c.cropSize,d=c.aspect;return r?r.width/r.height:d},i.prototype.getObjectFit=function(){var c,r,d,f;if(this.props.objectFit==="cover"){var h=this.imageRef.current||this.videoRef.current;if(h&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var g=this.containerRect.width/this.containerRect.height,m=((c=this.imageRef.current)===null||c===void 0?void 0:c.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,p=((d=this.imageRef.current)===null||d===void 0?void 0:d.naturalHeight)||((f=this.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,v=m/p;return v<g?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},i.prototype.onPinchStart=function(c){var r=i.getTouchPoint(c.touches[0]),d=i.getTouchPoint(c.touches[1]);this.lastPinchDistance=Yp(r,d),this.lastPinchRotation=Xp(r,d),this.onDragStart(Kp(r,d))},i.prototype.onPinchMove=function(c){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=i.getTouchPoint(c.touches[0]),f=i.getTouchPoint(c.touches[1]),h=Kp(d,f);this.onDrag(h),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var g=Yp(d,f),m=r.props.zoom*(g/r.lastPinchDistance);r.setNewZoom(m,h,{shouldUpdatePosition:!1}),r.lastPinchDistance=g;var p=Xp(d,f),v=r.props.rotation+(p-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(v),r.lastPinchRotation=p})}},i.prototype.render=function(){var c=this,r,d=this.props,f=d.image,h=d.video,g=d.mediaProps,m=d.cropperProps,p=d.transform,v=d.crop,y=v.x,b=v.y,N=d.rotation,S=d.zoom,w=d.cropShape,C=d.showGrid,A=d.roundCropAreaPixels,z=d.style,M=z.containerStyle,U=z.cropAreaStyle,I=z.mediaStyle,K=d.classes,B=K.containerClassName,P=K.cropAreaClassName,ne=K.mediaClassName,ce=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return j.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(he){return c.containerRef=he},"data-testid":"container",style:M,className:Mo("reactEasyCrop_Container",B)},f?j.createElement("img",Ht({alt:"",className:Mo("reactEasyCrop_Image",ce==="contain"&&"reactEasyCrop_Contain",ce==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ce==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ne)},g,{src:f,ref:this.imageRef,style:Ht(Ht({},I),{transform:p||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):h&&j.createElement("video",Ht({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Mo("reactEasyCrop_Video",ce==="contain"&&"reactEasyCrop_Contain",ce==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ce==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ne)},g,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Ht(Ht({},I),{transform:p||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(h)?h:[{src:h}]).map(function(ue){return j.createElement("source",Ht({key:ue.src},ue))})),this.state.cropSize&&j.createElement("div",Ht({ref:this.cropperRef,style:Ht(Ht({},U),{width:A?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:A?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Mo("reactEasyCrop_CropArea",w==="round"&&"reactEasyCrop_CropAreaRound",C&&"reactEasyCrop_CropAreaGrid",P)},m)))},i.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:kC,minZoom:DC,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:BC},i.getMousePoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i.getTouchPoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i})(j.Component);function UC(a){return new Promise((i,c)=>{const r=new Image;r.onload=()=>i(r),r.onerror=()=>c(new Error("Не удалось загрузить изображение")),r.src=a})}async function HC(a,i,c=512){const r=await UC(a),d=document.createElement("canvas");d.width=c,d.height=c;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,i.x,i.y,i.width,i.height,0,0,c,c),new Promise((h,g)=>{d.toBlob(m=>{m?h(m):g(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const qC="_backdrop_1cfz6_1",FC="_card_1cfz6_12",GC="_title_1cfz6_25",VC="_cropArea_1cfz6_31",QC="_controls_1cfz6_40",PC="_zoom_1cfz6_52",IC="_actions_1cfz6_57",YC="_error_1cfz6_63",Ea={backdrop:qC,card:FC,title:GC,cropArea:VC,controls:QC,zoom:PC,actions:IC,error:YC};function XC({imageSrc:a,isSaving:i,onCancel:c,onConfirm:r}){const[d,f]=j.useState({x:0,y:0}),[h,g]=j.useState(1),[m,p]=j.useState(null),[v,y]=j.useState(null),b=j.useCallback((S,w)=>{p(w)},[]);j.useEffect(()=>{const S=w=>{w.key==="Escape"&&!i&&c()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[c,i]);const N=async()=>{if(m){y(null);try{const S=await HC(a,m);await r(S)}catch{y("Не удалось обрезать изображение")}}};return s.jsx("div",{className:Ea.backdrop,onClick:i?void 0:c,children:s.jsxs("div",{className:Ea.card,onClick:S=>S.stopPropagation(),children:[s.jsx("h3",{className:Ea.title,children:"Выберите область аватара"}),s.jsx("div",{className:Ea.cropArea,children:s.jsx($C,{image:a,crop:d,zoom:h,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:g,onCropComplete:b})}),s.jsxs("div",{className:Ea.controls,children:[s.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),s.jsx("input",{id:"avatar-zoom",className:Ea.zoom,type:"range",min:1,max:3,step:.01,value:h,onChange:S=>g(Number(S.target.value))})]}),v&&s.jsx("span",{className:Ea.error,children:v}),s.jsxs("div",{className:Ea.actions,children:[s.jsx(cn,{variant:"ghost",onClick:c,disabled:i,children:"Отмена"}),s.jsx(cn,{variant:"primary",onClick:N,disabled:i||!m,children:i?"Загрузка...":"Сохранить"})]})]})})}const KC="_col_1gh35_1",ZC="_avatar_1gh35_10",WC="_avatarImg_1gh35_30",JC="_error_1gh35_37",eT="_overlay_1gh35_43",tT="_addPhoto_1gh35_68",vi={col:KC,avatar:ZC,avatarImg:WC,error:JC,overlay:eT,addPhoto:tT};function nT(a){return new Promise((i,c)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");i(f>=0?d.slice(f+1):d)},r.onerror=()=>c(r.error),r.readAsDataURL(a)})}function sT(){const{data:a}=ea(),{mutateAsync:i,isPending:c}=h8(),r=j.useRef(null),[d,f]=j.useState(null),[h,g]=j.useState(!1),[m,p]=j.useState(null),v=(a==null?void 0:a.avatar_link)??null,y=v&&!h;j.useEffect(()=>{g(!1)},[v]),j.useEffect(()=>()=>{m&&URL.revokeObjectURL(m)},[m]);const b=()=>{var C;c||(C=r.current)==null||C.click()},N=C=>{var z;const A=(z=C.target.files)==null?void 0:z[0];C.target.value="",A&&(f(null),p(URL.createObjectURL(A)))},S=()=>{m&&URL.revokeObjectURL(m),p(null)},w=async C=>{try{const A=await nT(C);await i({photo_base64:A,decoded_bytes:String(C.size)}),S()}catch{f("Не удалось загрузить фото"),S()}};return s.jsxs("div",{className:vi.col,children:[s.jsxs("div",{className:vi.avatar,onClick:b,children:[y?s.jsx("img",{src:v,alt:"avatar",className:vi.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",v),g(!0)}}):s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"8",r:"4"}),s.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),s.jsx("div",{className:vi.overlay,children:s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z"}),s.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),s.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:N,hidden:!0}),s.jsx("div",{className:vi.addPhoto,children:s.jsx(cn,{variant:"ghost",onClick:b,disabled:c,children:c?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&s.jsx("span",{className:vi.error,children:d}),m&&s.jsx(XC,{imageSrc:m,isSaving:c,onCancel:S,onConfirm:w})]})}const aT="_card_17od5_1",lT="_title_17od5_8",iT="_actions_17od5_17",Pd={card:aT,title:lT,actions:iT};function wl({title:a,children:i,actions:c}){return s.jsxs("div",{className:Pd.card,children:[s.jsx("div",{className:Pd.title,children:a}),i,c&&s.jsx("div",{className:Pd.actions,children:c})]})}const cT="_page_h0psp_1",rT="_kycBanner_h0psp_8",oT="_main_h0psp_19",uT="_profileTop_h0psp_29",dT="_userInfo_h0psp_33",fT="_sections_h0psp_37",hT="_grid2_h0psp_44",mT="_grid1_h0psp_50",pT="_mnemonicRow_h0psp_56",_T="_mnemonicInfo_h0psp_63",gT="_mnemonicIcon_h0psp_69",vT="_mnemonicText_h0psp_73",yT="_userName_h0psp_105",xT="_userBalance_h0psp_112",qt={page:cT,kycBanner:rT,main:oT,profileTop:uT,userInfo:dT,sections:fT,grid2:hT,grid1:mT,mnemonicRow:pT,mnemonicInfo:_T,mnemonicIcon:gT,mnemonicText:vT,userName:yT,userBalance:xT};function bT({data:a,fullName:i,phone:c,onPhoneChange:r,onPhoneBlur:d}){return s.jsxs(s.Fragment,{children:[s.jsx(wl,{title:"Личные данные",children:s.jsxs("div",{className:qt.grid2,children:[s.jsx(Ee,{label:"Полное ФИО",value:i,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),s.jsx(Ee,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),s.jsx(Ee,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),s.jsx(Ee,{label:"Номер телефона",value:c,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),s.jsx(wl,{title:"Верификация",children:s.jsxs("div",{className:qt.grid2,children:[s.jsx(Ee,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),s.jsx(Ee,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]})}function jT({data:a}){const i=a.legal_entity;return i?s.jsxs(s.Fragment,{children:[s.jsx(wl,{title:"Данные организации",children:s.jsxs("div",{className:qt.grid2,children:[s.jsx(Ee,{label:"Наименование",value:i.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),s.jsx(Ee,{label:"Краткое наименование",value:i.short_name??"",placeholder:"Ромашка",readOnly:!0}),s.jsx(Ee,{label:"ИНН",value:i.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),s.jsx(Ee,{label:"ОГРН",value:i.ogrn??"",placeholder:"1027700132195",readOnly:!0}),s.jsx(Ee,{label:"КПП",value:i.kpp??"",placeholder:"770801001",readOnly:!0}),s.jsx(Ee,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),s.jsx(wl,{title:"Адреса",children:s.jsxs("div",{className:qt.grid2,children:[s.jsx(Ee,{label:"Юридический адрес",value:i.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),s.jsx(Ee,{label:"Фактический адрес",value:i.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),s.jsx(wl,{title:"Контакты и верификация",children:s.jsxs("div",{className:qt.grid2,children:[s.jsx(Ee,{label:"Контактное лицо",value:i.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),s.jsx(Ee,{label:"Контактный телефон",value:i.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),s.jsx(Ee,{label:"Статус",value:i.status??"",placeholder:"active",readOnly:!0}),s.jsx(Ee,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function ST(){var M;const{data:a}=ea(),{data:i,isLoading:c}=iu(),{data:r}=lu(),d=m8(),f=$n(),[h,g]=j.useState(""),[m,p]=j.useState(""),[v,y]=j.useState(null);j.useEffect(()=>{(a==null?void 0:a.phone)!=null&&(g(a.phone),p(a.phone))},[a==null?void 0:a.phone]);function b(U){g(U.replace(/[^\d+\s()-]/g,""))}function N(){const U=h.trim();U===m||d.isPending||d.mutate(U,{onSuccess:()=>{p(U),y({status:"success",message:"Номер телефона обновлён"})},onError:()=>{y({status:"error",message:"Не удалось обновить номер телефона"})}})}const S=U=>U?U[0].toUpperCase()+U.slice(1).toLowerCase():"",w=a?[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(S).join(" "):"",C=!!a&&a.account_type!=="individual",A=C?((M=a==null?void 0:a.legal_entity)==null?void 0:M.name)??"":w,z=c||!i||i.totalUsd==null?"$—":`$${i.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return s.jsxs("div",{className:qt.page,children:[s.jsx(cu,{}),a&&!a.kyc_verified&&s.jsx("div",{className:qt.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"}),s.jsxs("main",{className:qt.main,children:[s.jsxs("div",{className:qt.profileTop,children:[s.jsx(sT,{}),s.jsxs("div",{className:qt.userInfo,children:[s.jsx("span",{className:qt.userName,children:A}),s.jsx("span",{className:qt.userBalance,children:z})]})]}),s.jsxs("div",{className:qt.sections,children:[a&&(C?s.jsx(jT,{data:a}):s.jsx(bT,{data:a,fullName:w,phone:h,onPhoneChange:b,onPhoneBlur:N})),s.jsx(wl,{title:"Безопасность",actions:s.jsxs(s.Fragment,{children:[s.jsx(cn,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),s.jsx(cn,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:s.jsx("div",{className:qt.grid1,children:r==null?void 0:r.map(({chain:U,address:I})=>s.jsx(Ee,{label:`Адрес ${U}`,readOnly:!0,icon:"lock",value:I,placeholder:"—"},U))})}),s.jsx(wl,{title:"Мнемоника",children:s.jsxs("div",{className:qt.mnemonicRow,children:[s.jsxs("div",{className:qt.mnemonicInfo,children:[s.jsx("span",{className:qt.mnemonicIcon,children:"🔑"}),s.jsx("span",{className:qt.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),s.jsx(cn,{variant:"danger",onClick:()=>f(de.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})]})]}),v&&s.jsx(Ss,{status:v.status,message:v.message,onClose:()=>y(null)})]})}const NT="_card_1erii_1",wT="_logo_1erii_10",CT="_title_1erii_20",TT="_twoCol_1erii_29",ET="_leftCol_1erii_36",RT="_rightCol_1erii_42",AT="_codeHint_1erii_48",LT="_error_1erii_55",OT="_submitWrapper_1erii_62",MT="_footer_1erii_66",zT="_forgot_1erii_73",DT="_divider_1erii_88",Xn={card:NT,logo:wT,title:CT,twoCol:TT,leftCol:ET,rightCol:RT,codeHint:AT,error:LT,submitWrapper:OT,footer:MT,forgot:zT,divider:DT};function Zp(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function kT(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[h,g]=j.useState(!1),m=Wt(),p=$n(),v=mt({mutationFn:l8,onSuccess:()=>g(!0)}),y=mt({mutationFn:i8,onSuccess:async({access_token:w})=>{U2(),m.clear(),w&&Rt.set(w),await m.invalidateQueries({queryKey:au}),p(de.PROFILE)}}),b=()=>{a&&v.mutate({email:a})},N=w=>{w.preventDefault(),y.mutate({email:a,password:c,code:d})},S=(v.isError?Zp(v.error):null)??(y.isError?Zp(y.error):null);return{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:h,isLoadingCode:v.isPending,isLoadingSubmit:y.isPending,error:S,handleRequestCode:b,handleSubmit:N}}function BT(){const{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:h,isLoadingCode:g,isLoadingSubmit:m,error:p,handleRequestCode:v,handleSubmit:y}=kT(),b=$n();return s.jsxs("form",{className:Xn.card,onSubmit:y,children:[s.jsx("div",{className:Xn.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("h1",{className:Xn.title,children:"Войти в кошелёк ЭКСА"}),s.jsxs("div",{className:Xn.twoCol,children:[s.jsxs("div",{className:Xn.leftCol,children:[s.jsx(Ee,{label:"Адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),s.jsx(Ee,{label:"Пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0})]}),s.jsxs("div",{className:Xn.rightCol,children:[s.jsx(cn,{variant:"ghost",type:"button",onClick:v,disabled:h||g,children:g?"Отправка...":h?"Код отправлен":"Получить код на email"}),s.jsx("span",{className:Xn.codeHint,children:"Код не пришёл"}),s.jsx(Ee,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),p&&s.jsx("p",{className:Xn.error,children:p}),s.jsx("div",{className:Xn.submitWrapper,children:s.jsx(Zn,{label:m?"Вход...":"Войти",disabled:m})}),s.jsxs("div",{className:Xn.footer,children:[s.jsx("a",{className:Xn.forgot,onClick:()=>b(de.RESTORE_PASSWORD),children:"Забыли пароль?"}),s.jsx("div",{className:Xn.divider,children:s.jsx("span",{children:"или"})}),s.jsx(cn,{variant:"outline",type:"button",onClick:()=>b(de.REGISTER),children:"Создать новый кошелёк"})]})]})}const $T="_page_a6ygb_1",UT={page:$T};function HT(){return s.jsx("div",{className:UT.page,children:s.jsx(BT,{})})}function Wp(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function qT(){const a=$n(),i=Wt(),[c,r]=j.useState(""),[d,f]=j.useState(""),[h,g]=j.useState(""),[m,p]=j.useState(""),[v,y]=j.useState(!1),[b,N]=j.useState(null),S=mt({mutationFn:s8,onSuccess:()=>y(!0)}),w=mt({mutationFn:a8,onSuccess:async({access_token:M})=>{U2(),i.clear(),M&&Rt.set(M),await i.invalidateQueries({queryKey:au}),a(de.WALLET)}}),C=()=>{c&&S.mutate({email:c})},A=M=>{if(M.preventDefault(),d!==h){N("Пароли не совпадают");return}N(null),w.mutate({email:c,password:d,confirm_password:h,code:m})},z=b??(S.isError?Wp(S.error):null)??(w.isError?Wp(w.error):null);return{email:c,setEmail:r,password:d,setPassword:f,confirmPassword:h,setConfirmPassword:g,verificationCode:m,setVerificationCode:p,codeSent:v,isLoadingCode:S.isPending,isLoadingSubmit:w.isPending,error:z,handleRequestCode:C,handleSubmit:A}}const FT="_card_4lgff_1",GT="_logo_4lgff_10",VT="_title_4lgff_20",QT="_typeSelect_4lgff_29",PT="_back_4lgff_39",IT="_legalInfo_4lgff_55",YT="_legalIntro_4lgff_61",XT="_docsBlock_4lgff_67",KT="_emailBlock_4lgff_68",ZT="_docsLabel_4lgff_74",WT="_docsList_4lgff_80",JT="_emailLink_4lgff_94",eE="_legalDone_4lgff_105",tE="_legalDoneTitle_4lgff_113",nE="_legalDoneText_4lgff_119",sE="_twoCol_4lgff_125",aE="_leftCol_4lgff_132",lE="_rightCol_4lgff_138",iE="_codeHint_4lgff_149",cE="_error_4lgff_156",rE="_submitWrapper_4lgff_163",oE="_legal_4lgff_55",rt={card:FT,logo:GT,title:VT,typeSelect:QT,back:PT,legalInfo:IT,legalIntro:YT,docsBlock:XT,emailBlock:KT,docsLabel:ZT,docsList:WT,emailLink:JT,legalDone:eE,legalDoneTitle:tE,legalDoneText:nE,twoCol:sE,leftCol:aE,rightCol:lE,codeHint:iE,error:cE,submitWrapper:rE,legal:oE};function uE(){const{email:a,setEmail:i,password:c,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:h,setVerificationCode:g,codeSent:m,isLoadingCode:p,isLoadingSubmit:v,error:y,handleRequestCode:b,handleSubmit:N}=qT();return s.jsxs("form",{onSubmit:N,children:[s.jsxs("div",{className:rt.twoCol,children:[s.jsxs("div",{className:rt.leftCol,children:[s.jsx(Ee,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),s.jsx(Ee,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0}),s.jsx(Ee,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),s.jsxs("div",{className:rt.rightCol,children:[s.jsx(cn,{variant:"ghost",type:"button",onClick:b,disabled:m||p,children:p?"Отправка...":m?"Код отправлен":"Получить проверочный код"}),s.jsx("span",{className:rt.codeHint,children:"Код не пришёл"}),s.jsx(Ee,{label:"Ввести код",type:"text",value:h,onChange:g,placeholder:"000 000",required:!0})]})]}),y&&s.jsx("p",{className:rt.error,children:y}),s.jsx("div",{className:rt.submitWrapper,children:s.jsx(Zn,{label:v?"Создание...":"Создать",disabled:v})}),s.jsxs("p",{className:rt.legal,children:["Нажимая «Создать», вы принимаете",s.jsx("br",{}),s.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",s.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const Jp="support@elcsa.ru",dE=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function fE(){const[a,i]=j.useState(!1);return a?s.jsxs("div",{className:rt.legalDone,children:[s.jsx("h2",{className:rt.legalDoneTitle,children:"Спасибо!"}),s.jsx("p",{className:rt.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):s.jsxs("div",{className:rt.legalInfo,children:[s.jsx("p",{className:rt.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),s.jsxs("div",{className:rt.docsBlock,children:[s.jsx("span",{className:rt.docsLabel,children:"Необходимые документы"}),s.jsx("ul",{className:rt.docsList,children:dE.map(c=>s.jsx("li",{children:c},c))})]}),s.jsxs("div",{className:rt.emailBlock,children:[s.jsx("span",{className:rt.docsLabel,children:"Адрес для отправки документов"}),s.jsx("a",{href:`mailto:${Jp}`,className:rt.emailLink,children:Jp})]}),s.jsx("div",{className:rt.submitWrapper,children:s.jsx(Zn,{label:"Документы отправлены",type:"button",onClick:()=>i(!0)})})]})}function hE(){const[a,i]=j.useState(null);return s.jsxs("div",{className:rt.card,children:[s.jsx("div",{className:rt.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("h1",{className:rt.title,children:"Создать кошелёк ЭКСА"}),a===null?s.jsxs("div",{className:rt.typeSelect,children:[s.jsx(cn,{variant:"primary",onClick:()=>i("individual"),children:"Зарегистрироваться как физическое лицо"}),s.jsx(cn,{variant:"outline",onClick:()=>i("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button",className:rt.back,onClick:()=>i(null),children:"← Назад к выбору"}),a==="individual"?s.jsx(uE,{}):s.jsx(fE,{})]})]})}const mE="_page_a6ygb_1",pE={page:mE};function _E(){return s.jsx("div",{className:pE.page,children:s.jsx(hE,{})})}const gE="_page_1bkwz_1",vE="_card_1bkwz_9",yE="_logo_1bkwz_18",xE="_title_1bkwz_28",bE="_typeSwitch_1bkwz_38",jE="_typeOption_1bkwz_49",SE="_typeOptionActive_1bkwz_66",NE="_twoCol_1bkwz_71",wE="_leftCol_1bkwz_78",CE="_rightCol_1bkwz_84",TE="_codeHint_1bkwz_90",EE="_backButton_1bkwz_98",RE="_documentsSubtitle_1bkwz_131",AE="_documentsList_1bkwz_137",LE="_documentItem_1bkwz_146",OE="_documentName_1bkwz_157",ME="_attachButton_1bkwz_163",zE="_fileInput_1bkwz_181",DE="_submitWrapper_1bkwz_192",kE="_legal_1bkwz_196",tt={page:gE,card:vE,logo:yE,title:xE,typeSwitch:bE,typeOption:jE,typeOptionActive:SE,twoCol:NE,leftCol:wE,rightCol:CE,codeHint:TE,backButton:EE,documentsSubtitle:RE,documentsList:AE,documentItem:LE,documentName:OE,attachButton:ME,fileInput:zE,submitWrapper:DE,legal:kE},BE=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function $E(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[h,g]=j.useState(""),[m,p]=j.useState("individual"),[v,y]=j.useState("info"),b=m==="legal",N=w=>{w.preventDefault(),y("documents")},S=w=>{w.preventDefault()};return s.jsx("div",{className:tt.page,children:v==="info"?s.jsxs("form",{className:tt.card,onSubmit:N,children:[s.jsx("div",{className:tt.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("h1",{className:tt.title,children:"Создать кошелёк ЭКСА"}),s.jsxs("div",{className:tt.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[s.jsx("button",{type:"button",role:"tab","aria-selected":!b,className:`${tt.typeOption} ${b?"":tt.typeOptionActive}`,onClick:()=>p("individual"),children:"Физическое лицо"}),s.jsx("button",{type:"button",role:"tab","aria-selected":b,className:`${tt.typeOption} ${b?tt.typeOptionActive:""}`,onClick:()=>p("legal"),children:"Юридическое лицо"})]}),s.jsxs("div",{className:tt.twoCol,children:[s.jsxs("div",{className:tt.leftCol,children:[s.jsx(Ee,{label:b?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:b?"name@company.ru":"example@mail.ru"}),s.jsx(Ee,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••"}),s.jsx(Ee,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),s.jsxs("div",{className:tt.rightCol,children:[s.jsx(cn,{variant:"ghost",type:"button",children:"Получить проверочный код"}),s.jsx("span",{className:tt.codeHint,children:"Код не пришёл"}),s.jsx(Ee,{label:"Ввести код",type:"text",value:h,onChange:g,placeholder:"000 000"})]})]}),s.jsx("div",{className:tt.submitWrapper,children:s.jsx(Zn,{label:"Создать"})}),s.jsxs("p",{className:tt.legal,children:["Нажимая «Создать», вы принимаете",s.jsx("br",{}),s.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",s.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):s.jsxs("form",{className:tt.card,onSubmit:S,children:[s.jsx("div",{className:tt.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("button",{type:"button",className:tt.backButton,onClick:()=>y("info"),children:"← Назад к данным"}),s.jsx("h1",{className:tt.title,children:"Прикрепите документы"}),s.jsx("p",{className:tt.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),s.jsx("ul",{className:tt.documentsList,children:BE.map(w=>s.jsxs("li",{className:tt.documentItem,children:[s.jsx("span",{className:tt.documentName,children:w}),s.jsxs("label",{className:tt.attachButton,children:["Прикрепить",s.jsx("input",{type:"file",className:tt.fileInput,multiple:!0})]})]},w))}),s.jsx("div",{className:tt.submitWrapper,children:s.jsx(Zn,{label:"Создать аккаунт"})})]})})}const UE="_page_cc0zl_1",HE="_wrap_cc0zl_9",qE="_header_cc0zl_20",FE="_title_cc0zl_24",GE="_subtitle_cc0zl_29",VE="_body_cc0zl_37",QE="_formCol_cc0zl_43",PE="_hint_cc0zl_49",IE="_infoCol_cc0zl_56",YE="_infoTitle_cc0zl_61",XE="_infoRow_cc0zl_68",KE="_infoLabel_cc0zl_84",ZE="_infoValue_cc0zl_89",WE="_note_cc0zl_95",JE="_submitBtn_cc0zl_102",jt={page:UE,wrap:HE,header:qE,title:FE,subtitle:GE,body:VE,formCol:QE,hint:PE,infoCol:IE,infoTitle:YE,infoRow:XE,infoLabel:KE,infoValue:ZE,note:WE,submitBtn:JE},Id=5e5,e3=.03,zo=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function eR(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),h=Number(a.replace(/\D/g,""))||0,g=h>0&&h<Id,m=h*e3,p=y=>{const b=y.replace(/\D/g,"");i(b?zo(Number(b)):"")},v=y=>{y.preventDefault()};return s.jsx("div",{className:jt.page,children:s.jsxs("form",{className:jt.wrap,onSubmit:v,children:[s.jsxs("div",{className:jt.header,children:[s.jsx("h1",{className:jt.title,children:"Оставить заявку"}),s.jsx("p",{className:jt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),s.jsxs("div",{className:jt.body,children:[s.jsxs("div",{className:jt.formCol,children:[s.jsx(Ee,{label:"Объём заявки, ₽",type:"text",value:a,onChange:p,placeholder:"от 500 000"}),g&&s.jsxs("p",{className:jt.hint,children:["Минимальный объём заявки — ",zo(Id)," ₽"]}),s.jsx(Ee,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),s.jsx(Ee,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),s.jsxs("div",{className:jt.infoCol,children:[s.jsx("div",{className:jt.infoTitle,children:"УСЛОВИЯ"}),s.jsxs("div",{className:jt.infoRow,children:[s.jsx("span",{className:jt.infoLabel,children:"Минимальный объём"}),s.jsxs("span",{className:jt.infoValue,children:[zo(Id)," ₽"]})]}),s.jsxs("div",{className:jt.infoRow,children:[s.jsx("span",{className:jt.infoLabel,children:"Примерная комиссия"}),s.jsxs("span",{className:jt.infoValue,children:[(e3*100).toFixed(0)," %"]})]}),s.jsxs("div",{className:jt.infoRow,"data-accent":!0,children:[s.jsx("span",{className:jt.infoLabel,children:"Комиссия с объёма"}),s.jsx("span",{className:jt.infoValue,children:h>0?`${zo(m)}`:"—"})]}),s.jsx("p",{className:jt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),s.jsx("button",{type:"submit",className:jt.submitBtn,disabled:g,children:"Оставить заявку"})]})})}const tR="Сумма для конвертации слишком мала. Увеличьте сумму и попробуйте снова.";function nR(){const a=d_(),[i,c]=j.useState(!1),[r,d]=j.useState(null),{mutate:f,isPending:h}=I6();function g(){d(null),f(a.isUsdtToRub?{usdt_amount:a.numUsdt,usdt_exchange_rate:1,gas_fee:1,total_price:a.rubTotalNum}:{usdt_amount:a.usdtFromRubNum,usdt_exchange_rate:1,gas_fee:1,total_price:a.numRubInput},{onError:()=>d({status:"error",message:tR})})}const m=a.isUsdtToRub?!a.rubTotal||h||!i:!a.usdtFromRub||h||!i||a.rubBelowMin;return{...a,agreed:i,setAgreed:c,onPay:g,isPending:h,isPayDisabled:m,notification:r,dismissNotification:()=>d(null)}}const sR="_wrap_6xfms_1",aR="_box_6xfms_12",lR="_text_6xfms_39",iR="_link_6xfms_46",cR="_required_6xfms_51",Qc={wrap:sR,box:aR,text:lR,link:iR,required:cR};function rR({checked:a,onToggle:i}){return s.jsxs("button",{type:"button",className:Qc.wrap,onClick:i,"aria-pressed":a,children:[s.jsx("span",{className:Qc.box,"data-checked":a||void 0,children:s.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:s.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),s.jsxs("span",{className:Qc.text,children:["Я ознакомлен и согласен с"," ",s.jsx("a",{href:"/publichnaya-oferta",className:Qc.link,target:"_blank",rel:"noopener noreferrer",onClick:c=>c.stopPropagation(),children:"публичной офертой"}),". Вся деятельность компании соответствует законодательству Российской Федерации.",s.jsx("br",{}),s.jsx("span",{className:Qc.required,children:"ОБЯЗАТЕЛЬНОЕ ПОЛЕ"})]})]})}const oR="_wrap_1senc_1",uR="_header_1senc_8",dR="_title_1senc_17",fR="_subtitle_1senc_22",hR="_pills_1senc_29",mR="_pill_1senc_29",pR="_pillValue_1senc_43",_R="_body_1senc_53",gR="_tabs_1senc_59",vR="_tab_1senc_59",yR="_bottom_1senc_91",xR="_payBtn_1senc_99",vn={wrap:oR,header:uR,title:dR,subtitle:fR,pills:hR,pill:mR,pillValue:pR,body:_R,tabs:gR,tab:vR,bottom:yR,payBtn:xR};function bR(){const{isUsdtToRub:a,gasPriceRub:i,configUsdtRate:c,convert:r,pay:d,onSwap:f,commission:h,agreed:g,setAgreed:m,onPay:p,isPending:v,isPayDisabled:y,notification:b,dismissNotification:N}=nR();return s.jsxs("div",{className:vn.wrap,children:[s.jsxs("div",{className:vn.header,children:[s.jsxs("div",{children:[s.jsx("h1",{className:vn.title,children:"Конвертация"}),s.jsx("div",{className:vn.subtitle,children:"Данные обновляются в реальном времени"})]}),s.jsxs("div",{className:vn.pills,children:[s.jsxs("div",{className:vn.pill,children:["Цена газа в RUB ",s.jsxs("span",{className:vn.pillValue,children:[i.toFixed(2)," RUB"]})]}),s.jsxs("div",{className:vn.pill,children:["USDT/RUB ",s.jsxs("span",{className:vn.pillValue,children:[c.toFixed(2)," ₽"]})]})]})]}),s.jsxs("div",{className:vn.body,children:[s.jsxs("div",{children:[s.jsx("div",{className:vn.tabs,children:s.jsx("div",{className:vn.tab,"data-active":!0,children:"КУПИТЬ"})}),s.jsx(Po,{label:a?"Конвертируете":"Платите",...r}),s.jsx(Q3,{onClick:f}),s.jsx(Po,{label:a?"Платите":"Конвертируете",...d})]}),s.jsx(I3,{...h})]}),s.jsx("div",{className:vn.bottom,children:s.jsx(rR,{checked:g,onToggle:()=>m(!g)})}),s.jsx("button",{type:"button",className:vn.payBtn,onClick:p,disabled:y,children:v?"Обработка...":"Оплатить"}),b&&s.jsx(Ss,{status:b.status,message:b.message,onClose:N})]})}const jR="_wrap_12wuz_1",SR="_header_12wuz_12",NR="_title_12wuz_16",wR="_subtitle_12wuz_21",CR="_body_12wuz_29",TR="_formCol_12wuz_35",ER="_hint_12wuz_41",RR="_infoCol_12wuz_48",AR="_infoTitle_12wuz_53",LR="_infoRow_12wuz_60",OR="_infoLabel_12wuz_76",MR="_infoValue_12wuz_81",zR="_note_12wuz_87",DR="_submitBtn_12wuz_94",nt={wrap:jR,header:SR,title:NR,subtitle:wR,body:CR,formCol:TR,hint:ER,infoCol:RR,infoTitle:AR,infoRow:LR,infoLabel:OR,infoValue:MR,note:zR,submitBtn:DR},Yd=5e5,Pc=[{days:3,rate:.05},{days:4,rate:.04636},{days:5,rate:.04273},{days:6,rate:.03909},{days:7,rate:.03545},{days:8,rate:.03182},{days:9,rate:.02818},{days:10,rate:.02455},{days:11,rate:.02091},{days:12,rate:.01727},{days:13,rate:.01364},{days:14,rate:.01}],Ra=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0}),kR=a=>{var i,c,r,d;return{name:((c=(i=a==null?void 0:a.match(/Имя:\s*([^;]+)/))==null?void 0:i[1])==null?void 0:c.trim())??"",contact:((d=(r=a==null?void 0:a.match(/Контакт:\s*([^;]+)/))==null?void 0:r[1])==null?void 0:d.trim())??""}},BR=a=>a.reduce((i,c)=>!i||(c.created_at??"")>(i.created_at??"")?c:i,null),Xd=a=>{const i=a%10,c=a%100;return i===1&&c!==11?`${a} день`:i>=2&&i<=4&&(c<10||c>=20)?`${a} дня`:`${a} дней`};function $R(){var K;const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[h,g]=j.useState(Pc[0].days),[m,p]=j.useState(null),{mutate:v,isPending:y}=b8(),{data:b}=h_(),[N,S]=j.useState(!1);j.useEffect(()=>{if(N||!b)return;const B=BR(b.items);if(!B)return;const P=kR(B.comment);P.name&&r(P.name),P.contact&&f(P.contact),S(!0)},[N,b]);const w=Number(a.replace(/\D/g,""))||0,C=w>0&&w<Yd,A=((K=Pc.find(B=>B.days===h))==null?void 0:K.rate)??Pc[0].rate,z=w*A,M=w+z,U=B=>{const P=B.replace(/\D/g,"");i(P?Ra(Number(P)):"")},I=B=>{if(B.preventDefault(),w===0||C||y)return;const P=[c&&`Имя: ${c}`,d&&`Контакт: ${d}`,`Срок ожидания: ${Xd(h)}`,`Сумма: ${Ra(w)}`,`Комиссия: ≈${Ra(z)}`,`Итого: ≈${Ra(M)}`].filter(Boolean).join("; ");v({usdt_amount:w,comment:P},{onSuccess:()=>{p("success"),i(""),r(""),f(""),g(Pc[0].days)},onError:()=>p("error")})};return s.jsxs("form",{className:nt.wrap,onSubmit:I,children:[s.jsxs("div",{className:nt.header,children:[s.jsx("h1",{className:nt.title,children:"Оставить заявку"}),s.jsx("p",{className:nt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),s.jsxs("div",{className:nt.body,children:[s.jsxs("div",{className:nt.formCol,children:[s.jsx(Ee,{label:"Объём заявки, ₽",type:"text",value:a,onChange:U,placeholder:"от 500 000"}),C&&s.jsxs("p",{className:nt.hint,children:["Минимальный объём заявки — ",Ra(Yd)," ₽"]}),s.jsx(hb,{id:"term",label:"Срок ожидания операции",value:h,onChange:g,options:Pc.map(B=>({value:B.days,label:`${Xd(B.days)} — комиссия ${(B.rate*100).toFixed(3)} %`}))}),s.jsx(Ee,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),s.jsx(Ee,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),s.jsxs("div",{className:nt.infoCol,children:[s.jsx("div",{className:nt.infoTitle,children:"УСЛОВИЯ"}),s.jsxs("div",{className:nt.infoRow,children:[s.jsx("span",{className:nt.infoLabel,children:"Минимальный объём"}),s.jsxs("span",{className:nt.infoValue,children:[Ra(Yd)," ₽"]})]}),s.jsxs("div",{className:nt.infoRow,children:[s.jsx("span",{className:nt.infoLabel,children:"Срок ожидания"}),s.jsx("span",{className:nt.infoValue,children:Xd(h)})]}),s.jsxs("div",{className:nt.infoRow,children:[s.jsx("span",{className:nt.infoLabel,children:"Ставка комиссии"}),s.jsxs("span",{className:nt.infoValue,children:[(A*100).toFixed(3)," %"]})]}),s.jsxs("div",{className:nt.infoRow,children:[s.jsx("span",{className:nt.infoLabel,children:"Сумма комиссии"}),s.jsx("span",{className:nt.infoValue,children:w>0?`${Ra(z)}`:"—"})]}),s.jsxs("div",{className:nt.infoRow,"data-accent":!0,children:[s.jsx("span",{className:nt.infoLabel,children:"Итого к оплате"}),s.jsx("span",{className:nt.infoValue,children:w>0?`${Ra(M)}`:"—"})]}),s.jsx("p",{className:nt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),s.jsx("button",{type:"submit",className:nt.submitBtn,disabled:C||w===0||y,children:y?"Отправляем...":"Оставить заявку"}),m&&s.jsx(Ss,{status:m,message:m==="success"?"Заявка отправлена":"Не удалось отправить заявку",onClose:()=>p(null)})]})}function UR(){const{data:a,isLoading:i}=ea();return i?s.jsx(su,{fullscreen:!0,size:"lg",label:"Загрузка данных аккаунта"}):!!a&&a.account_type!=="individual"?s.jsx($R,{}):s.jsx(bR,{})}const t3=52;function HR(a){const[i,c]=j.useState(!1),[r,d]=j.useState(t3),[f,h]=j.useState(!1),g=j.useRef(null),m=j.useCallback(()=>{g.current&&clearInterval(g.current),d(t3),g.current=setInterval(()=>{d(y=>y<=1?(clearInterval(g.current),c(!0),0):y-1)},1e3)},[]);j.useEffect(()=>(m(),()=>{g.current&&clearInterval(g.current)}),[m]);const p=j.useCallback(()=>{c(y=>y?(m(),!1):(g.current&&clearInterval(g.current),!0))},[m]),v=j.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{h(!0),setTimeout(()=>h(!1),1500)})},[a]);return{hidden:i,countdown:r,copied:f,handleHide:p,handleCopy:v}}const qR="_content_o6p8v_1",FR="_titleRow_o6p8v_6",GR="_title_o6p8v_6",VR="_titleButtons_o6p8v_19",QR="_btnFixed_o6p8v_26",PR="_subtitle_o6p8v_34",IR="_countdown_o6p8v_42",YR="_seedGrid_o6p8v_47",XR="_seedCard_o6p8v_54",KR="_seedNum_o6p8v_73",ZR="_seedWord_o6p8v_80",WR="_seedWordHidden_o6p8v_88",JR="_warning_o6p8v_93",eA="_warningIcon_o6p8v_101",tA="_warningText_o6p8v_107",nA="_profileLinkRow_o6p8v_115",sA="_profileLink_o6p8v_115",Bt={content:qR,titleRow:FR,title:GR,titleButtons:VR,btnFixed:QR,subtitle:PR,countdown:IR,seedGrid:YR,seedCard:XR,seedNum:KR,seedWord:ZR,seedWordHidden:WR,warning:JR,warningIcon:eA,warningText:tA,profileLinkRow:nA,profileLink:sA};function aA({words:a}){const{hidden:i,countdown:c,copied:r,handleHide:d,handleCopy:f}=HR(a);return s.jsxs("div",{className:Bt.content,children:[s.jsxs("div",{className:Bt.titleRow,children:[s.jsx("h1",{className:Bt.title,children:"СИД ФРАЗА"}),s.jsxs("div",{className:Bt.titleButtons,children:[s.jsx("div",{className:Bt.btnFixed,children:s.jsx(cn,{variant:"outline",onClick:d,children:i?"ПОКАЗАТЬ":"СКРЫТЬ"})}),s.jsx("div",{className:Bt.btnFixed,children:s.jsx(cn,{variant:"outline",onClick:f,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!i&&s.jsxs("div",{className:Bt.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",s.jsx("span",{className:Bt.countdown,children:c}),"С"]}),s.jsx("div",{className:Bt.seedGrid,children:a.map((h,g)=>s.jsxs("div",{className:Bt.seedCard,children:[s.jsxs("span",{className:Bt.seedNum,children:[g+1,"."]}),s.jsx("span",{className:`${Bt.seedWord} ${i?Bt.seedWordHidden:""}`,children:i?"•••••":h})]},g))}),s.jsxs("div",{className:Bt.warning,children:[s.jsx("span",{className:Bt.warningIcon,children:"⚠️"}),s.jsx("p",{className:Bt.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),s.jsx("div",{className:Bt.profileLinkRow,children:s.jsx(It,{to:de.PROFILE,className:Bt.profileLink,children:"Перейти в профиль"})})]})}const lA="_page_1mk6w_1",iA="_main_1mk6w_8",cA="_glow_1mk6w_17",Kd={page:lA,main:iA,glow:cA};function rA(){const{data:a,isLoading:i}=K8(),c=a?a.split(" "):[];return s.jsxs("div",{className:Kd.page,children:[s.jsx(cu,{}),s.jsxs("main",{className:Kd.main,children:[s.jsx("div",{className:Kd.glow}),!i&&s.jsx(aA,{words:c})]})]})}const oA="https://app.kyc.elcsa.ru";function uA(){return I_(!0)}async function I_(a){const i=await rn(),c=await fetch(`${oA}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify({})});if(c.status===401&&a)try{return await rs(),I_(!1)}catch{throw Rt.clear(),new Error("Unauthorized")}const r=await c.json();if(!c.ok)throw r;return r}function dA(){const a=mt({mutationFn:uA});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const fA="_backdrop_1do7s_1",hA="_modal_1do7s_12",mA="_closeBtn_1do7s_22",pA="_body_1do7s_40",_A="_qrBlock_1do7s_47",gA="_qrImage_1do7s_55",vA="_linkBtn_1do7s_63",dl={backdrop:fA,modal:hA,closeBtn:mA,body:pA,qrBlock:_A,qrImage:gA,linkBtn:vA};function yA({data:a,onClose:i}){return s.jsx("div",{className:dl.backdrop,onClick:i,children:s.jsxs("div",{className:dl.modal,onClick:c=>c.stopPropagation(),children:[s.jsx("button",{className:dl.closeBtn,onClick:i,type:"button",children:"×"}),s.jsx("div",{className:dl.body,children:s.jsxs("div",{className:dl.qrBlock,children:[s.jsx("img",{className:dl.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),s.jsx("a",{className:dl.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const xA="_card_omb8e_1",bA="_logo_omb8e_13",jA="_iconWrapper_omb8e_21",SA="_description_omb8e_34",NA="_buttonWrapper_omb8e_42",wA="_error_omb8e_47",yi={card:xA,logo:bA,iconWrapper:jA,description:SA,buttonWrapper:NA,error:wA};function CA(){const{trigger:a,data:i,isLoading:c,isError:r}=dA(),d=$n(),f=Wt(),{data:h}=ea({refetchInterval:i?5e3:!1});j.useEffect(()=>{h!=null&&h.kyc_verified&&d(de.SEED_PHRASE,{replace:!0})},[h==null?void 0:h.kyc_verified,d]);const g=()=>{f.invalidateQueries({queryKey:["me"]})};return s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:yi.card,children:[s.jsx("div",{className:yi.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("div",{className:yi.iconWrapper,children:s.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("path",{d:"M12 2L3 6v6c0 5.25 3.75 10.15 9 11.35C17.25 22.15 21 17.25 21 12V6l-9-4z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),s.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),s.jsx("p",{className:yi.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),s.jsx("div",{className:yi.buttonWrapper,children:s.jsx(Zn,{label:c?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:c})}),r&&s.jsx("p",{className:yi.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),i&&s.jsx(yA,{data:i,onClose:g})]})}const TA="_page_6lnfw_1",EA={page:TA};function RA(){const{data:a,isLoading:i}=ea();return i?null:a!=null&&a.kyc_verified?s.jsx(tu,{to:de.PROFILE,replace:!0}):s.jsx("div",{className:EA.page,children:s.jsx(CA,{})})}const AA="_card_mzeuq_1",LA="_logo_mzeuq_10",OA="_title_mzeuq_20",MA="_fields_mzeuq_29",zA="_emailRow_mzeuq_35",DA="_error_mzeuq_41",kA="_submitWrapper_mzeuq_48",BA="_footer_mzeuq_52",$A="_back_mzeuq_58",Qs={card:AA,logo:LA,title:OA,fields:MA,emailRow:zA,error:DA,submitWrapper:kA,footer:BA,back:$A};function UA(){const[a,i]=j.useState(""),[c,r]=j.useState(!1),[d,f]=j.useState(!1),[h,g]=j.useState(""),[m,p]=j.useState(""),[v,y]=j.useState(""),[b,N]=j.useState(""),[S,w]=j.useState(!1),[C,A]=j.useState(null),z=$n();async function M(){N(""),f(!0);try{await u8({email:a}),r(!0),A({status:"success",message:`Код отправлен на ${a}`})}catch{A({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function U(I){if(I.preventDefault(),N(""),m!==v){N("Пароли не совпадают");return}w(!0);try{await f8({email:a,code:h,new_password:m,confirm_password:v}),z(de.LOGIN)}catch{N("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{w(!1)}}return s.jsxs(s.Fragment,{children:[s.jsxs("form",{className:Qs.card,onSubmit:U,children:[s.jsx("div",{className:Qs.logo,children:s.jsx("img",{src:Ns,alt:"ЭКСА"})}),s.jsx("h1",{className:Qs.title,children:"Восстановление пароля"}),s.jsxs("div",{className:Qs.fields,children:[s.jsxs("div",{className:Qs.emailRow,children:[s.jsx(Ee,{label:"E-Mail",type:"email",value:a,onChange:i,placeholder:"example@mail.com",required:!0}),s.jsx(Zn,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:M})]}),c&&s.jsxs(s.Fragment,{children:[s.jsx(Ee,{label:"Код с почты",type:"text",value:h,onChange:g,placeholder:"000 000",required:!0}),s.jsx(Ee,{label:"Новый пароль",type:"password",value:m,onChange:p,placeholder:"••••••••",required:!0}),s.jsx(Ee,{label:"Повторить пароль",type:"password",value:v,onChange:y,placeholder:"••••••••",required:!0})]})]}),b&&s.jsx("p",{className:Qs.error,children:b}),c&&s.jsx("div",{className:Qs.submitWrapper,children:s.jsx(Zn,{label:S?"Сохранение...":"Изменить пароль",disabled:S})}),s.jsx("div",{className:Qs.footer,children:s.jsx("a",{className:Qs.back,onClick:()=>z(de.LOGIN),children:"Вернуться ко входу"})})]}),C&&s.jsx(Ss,{status:C.status,message:C.message,onClose:()=>A(null)})]})}const HA="_page_6lnfw_1",qA={page:HA};function FA(){return s.jsx("div",{className:qA.page,children:s.jsx(UA,{})})}const GA="_main_1fqml_1",VA="_container_1fqml_7",QA="_title_1fqml_13",PA="_subtitle_1fqml_21",IA="_section_1fqml_29",YA="_sectionTitle_1fqml_33",XA="_definitions_1fqml_42",KA="_definition_1fqml_42",ZA="_requisites_1fqml_56",Re={main:GA,container:VA,title:QA,subtitle:PA,section:IA,sectionTitle:YA,definitions:XA,definition:KA,requisites:ZA};function WA(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsx("main",{className:Re.main,children:s.jsxs("div",{className:Re.container,children:[s.jsx("h1",{className:Re.title,children:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ"}),s.jsx("h2",{className:Re.subtitle,children:"ООО БИТФОРС"}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"Агентский договор"}),s.jsx("p",{children:"Настоящая оферта на заключение агентского договора (далее Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."}),s.jsx("p",{children:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"Основные понятия и определения действующего договора"}),s.jsxs("div",{className:Re.definitions,children:[s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Агент"})," юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Принципал"})," сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Агентский договор"})," соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Личный кабинета Агента"})," ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Отчетный период"})," период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Отчет о сумме начислений (Отчет)"})," отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."]}),s.jsxs("div",{className:Re.definition,children:[s.jsx("strong",{children:"Оферта (Договор)"})," настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."]})]})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"1. Акцепт оферты и заключение агентского договора"}),s.jsx("p",{children:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."}),s.jsx("p",{children:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."}),s.jsx("p",{children:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"2. Общие положения"}),s.jsx("p",{children:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."}),s.jsx("p",{children:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"3. Предмет договора"}),s.jsx("p",{children:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."}),s.jsx("p",{children:"По настоящему Договору Агент совершает следующие действия:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;"}),s.jsx("li",{children:"Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."})]}),s.jsx("p",{children:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."}),s.jsx("p",{children:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"4. Права и обязанности сторон"}),s.jsx("p",{children:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."}),s.jsx("p",{children:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."}),s.jsx("p",{children:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"5. Агентское вознаграждение и порядок оплаты"}),s.jsx("p",{children:"Сумма вознаграждения Агента по настоящему Договору составляет:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"8% от 5 000 до 30 000 рублей"}),s.jsx("li",{children:"6% от 30 000 до 100 000 рублей"}),s.jsx("li",{children:"4% от 100 000 до 600 000 рублей"})]}),s.jsx("p",{children:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."}),s.jsx("p",{children:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"6. Ответственность сторон"}),s.jsx("p",{children:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."}),s.jsx("p",{children:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"7. Форс-мажор"}),s.jsx("p",{children:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."}),s.jsx("p",{children:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"8. Конфиденциальность"}),s.jsx("p",{children:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"9. Изменение и прекращение договора"}),s.jsx("p",{children:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."}),s.jsx("p",{children:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."}),s.jsx("p",{children:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"10. Заключительные положения"}),s.jsx("p",{children:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."}),s.jsx("p",{children:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."}),s.jsx("p",{children:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."})]}),s.jsxs("section",{className:Re.section,children:[s.jsx("h3",{className:Re.sectionTitle,children:"Реквизиты сторон"}),s.jsxs("div",{className:Re.requisites,children:[s.jsx("p",{children:"Общество с ограниченной ответственностью «БИТФОРС»"}),s.jsx("p",{children:"196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н"}),s.jsx("p",{children:"ИНН / КПП: 9810001062 / 781001001"}),s.jsx("p",{children:"ОГРН: 1257800060990"}),s.jsx("p",{children:"ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000"}),s.jsx("p",{children:"Руководитель: Кленин Михаил Васильевич"}),s.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),s.jsx("p",{children:'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"'}),s.jsx("p",{children:"Корреспондентский счет: 30101810600000000786"}),s.jsx("p",{children:"БИК: 044030786"}),s.jsx("p",{children:"Расчетный счет: 40702810632250004861"})]})]})]})}),s.jsx(Al,{})]})}const JA="_main_14e6d_1",eL="_container_14e6d_7",tL="_title_14e6d_13",nL="_subtitle_14e6d_21",sL="_section_14e6d_29",aL="_sectionTitle_14e6d_33",lL="_subSectionTitle_14e6d_42",iL="_definitions_14e6d_50",cL="_definition_14e6d_50",rL="_list_14e6d_64",oL="_goalsList_14e6d_75",uL="_goal_14e6d_75",dL="_contacts_14e6d_105",X={main:JA,container:eL,title:tL,subtitle:nL,section:sL,sectionTitle:aL,subSectionTitle:lL,definitions:iL,definition:cL,list:rL,goalsList:oL,goal:uL,contacts:dL};function fL(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsx("main",{className:X.main,children:s.jsxs("div",{className:X.container,children:[s.jsx("h1",{className:X.title,children:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),s.jsx("h2",{className:X.subtitle,children:"ООО «БИТФОРС»"}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"1. Общие положения"}),s.jsx("p",{children:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."}),s.jsx("p",{children:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."}),s.jsx("p",{children:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."}),s.jsx("h4",{className:X.subSectionTitle,children:"1.4. Основные понятия"}),s.jsxs("div",{className:X.definitions,children:[s.jsxs("div",{className:X.definition,children:[s.jsx("strong",{children:"Автоматизированная обработка персональных данных"})," — обработка персональных данных с помощью средств вычислительной техники."]}),s.jsxs("div",{className:X.definition,children:[s.jsx("strong",{children:"Обработка персональных данных"})," — любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."]}),s.jsxs("div",{className:X.definition,children:[s.jsx("strong",{children:"Оператор"})," — юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."]}),s.jsxs("div",{className:X.definition,children:[s.jsx("strong",{children:"Персональные данные"})," — любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."]}),s.jsxs("div",{className:X.definition,children:[s.jsx("strong",{children:"Пользователь"})," — любой посетитель веб-сайта https://bitforce-foundation.ru."]})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"2. Сведения об операторе"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),s.jsx("li",{children:"Сокращенное наименование: ООО «БИТФОРС»"}),s.jsx("li",{children:"ИНН: 9810001062"}),s.jsx("li",{children:"ОГРН: 1257800060990"}),s.jsx("li",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),s.jsx("li",{children:"Электронная почта: company@bitforcefoundation.ru"}),s.jsx("li",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"3. Общие цели обработки персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"3.1.1. Основная деятельность:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Предоставление услуг по конвертации иного имущества"}),s.jsx("li",{children:"Осуществление операций на криптовалютных рынках"}),s.jsx("li",{children:"Предоставление услуг в области блокчейн технологий"}),s.jsx("li",{children:"Обеспечение функционирования интернет-платформы и мобильных приложений"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"3.1.2. Обеспечение безопасности:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Предотвращение мошенничества и отмывания денежных средств"}),s.jsx("li",{children:"Обеспечение безопасности платежных операций"}),s.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),s.jsx("li",{children:"Идентификация и верификация клиентов"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"3.1.3. Соблюдение законодательства:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Исполнение требований российского и международного законодательства"}),s.jsx("li",{children:"Взаимодействие с контролирующими и правоохранительными органами"}),s.jsx("li",{children:"Ведение обязательной отчетности и документооборота"}),s.jsx("li",{children:"Соблюдение налогового законодательства"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"4. Цели сбора персональных данных"}),s.jsxs("div",{className:X.goalsList,children:[s.jsxs("div",{className:X.goal,children:[s.jsx("strong",{children:"Регистрация и идентификация пользователей:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Создание учетной записи на веб-сайте"}),s.jsx("li",{children:"Верификация личности в соответствии с требованиями законодательства"}),s.jsx("li",{children:"Подтверждение права на осуществление операций"})]})]}),s.jsxs("div",{className:X.goal,children:[s.jsx("strong",{children:"Обработка платежей и финансовых операций:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Осуществление операций по конвертации криптовалют"}),s.jsx("li",{children:"Проведение расчетов и переводов денежных средств"}),s.jsx("li",{children:"Ведение учета и истории транзакций"})]})]}),s.jsxs("div",{className:X.goal,children:[s.jsx("strong",{children:"Коммуникация с клиентами:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"Предоставление технической поддержки"}),s.jsx("li",{children:"Уведомления о состоянии операций и счетов"}),s.jsx("li",{children:"Информирование об изменениях в условиях предоставления услуг"})]})]})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"5. Правовые основания обработки персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"5.1.1. Согласие субъекта персональных данных:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Обработка персональных данных в маркетинговых целях"}),s.jsx("li",{children:"Использование файлов cookie и метрик"}),s.jsx("li",{children:"Персонализация сервисов и предложений"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"5.1.2. Необходимость исполнения договора:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Регистрация и ведение учетных записей пользователей"}),s.jsx("li",{children:"Осуществление финансовых операций и переводов"}),s.jsx("li",{children:"Предоставление доступа к платформе и сервисам"}),s.jsx("li",{children:"Техническая поддержка и обслуживание клиентов"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"5.1.3. Соблюдение правовой обязанности:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Выполнение требований валютного законодательства"}),s.jsx("li",{children:"Противодействие легализации доходов, полученных преступным путем"}),s.jsx("li",{children:"Соблюдение требований по налоговому учету и отчетности"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"6. Объем и категории обрабатываемых персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"6.1.1. Пользователи веб-сайта и мобильного приложения:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Зарегистрированные пользователи"}),s.jsx("li",{children:"Посетители сайта без регистрации"}),s.jsx("li",{children:"Потенциальные клиенты"}),s.jsx("li",{children:"Бывшие клиенты"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"6.2.1. Идентификационные данные:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Фамилия, имя, отчество"}),s.jsx("li",{children:"Дата рождения"}),s.jsx("li",{children:"Гражданство"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"6.2.3. Контактная информация:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),s.jsx("li",{children:"Адреса электронной почты"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"6.2.4. Финансовая информация:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Номера банковских счетов и карт"}),s.jsx("li",{children:"Реквизиты кошельков криптовалют"}),s.jsx("li",{children:"История операций и транзакций"}),s.jsx("li",{children:"Данные о доходах и источниках средств"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"6.2.5. Техническая информация:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"IP-адреса устройств"}),s.jsx("li",{children:"Данные о браузере и операционной системе"}),s.jsx("li",{children:"Файлы cookie и локальное хранилище"}),s.jsx("li",{children:"Логи действий на сайте"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"7. Порядок и условия обработки персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"7.1. Принципы обработки персональных данных:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Обработка осуществляется на законной и справедливой основе"}),s.jsx("li",{children:"Обработка ограничивается достижением конкретных, заранее определенных целей"}),s.jsx("li",{children:"Содержание и объем данных соответствуют заявленным целям"}),s.jsx("li",{children:"Обрабатываемые персональные данные являются точными и актуальными"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"7.4. Сроки обработки персональных данных:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей"}),s.jsx("li",{children:"После достижения целей персональные данные подлежат уничтожению или обезличиванию"}),s.jsx("li",{children:"Сроки хранения определяются требованиями законодательства"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"7.5. Места обработки персональных данных:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Основные серверы и хранилища данных расположены на территории Российской Федерации"}),s.jsx("li",{children:"Резервные копии могут храниться в дата-центрах на территории РФ"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"8. Актуализация, исправление, удаление и уничтожение персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"8.2.2. Процедура исправления:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Рассмотрение запроса в течение 30 дней"}),s.jsx("li",{children:"Проверка обоснованности требования об исправлении"}),s.jsx("li",{children:"Внесение изменений во все информационные системы"}),s.jsx("li",{children:"Уведомление субъекта о проведенных исправлениях"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"8.3.2. Процедура удаления:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Проверка наличия законных оснований для продолжения обработки"}),s.jsx("li",{children:"Удаление из всех информационных систем и баз данных"}),s.jsx("li",{children:"Удаление резервных копий (кроме архивных)"}),s.jsx("li",{children:"Уведомление субъекта о выполненном удалении"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"9. Ответы на запросы субъектов персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"9.1.1. Право на информацию:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Подтверждение факта обработки персональных данных"}),s.jsx("li",{children:"Правовые основания и цели обработки"}),s.jsx("li",{children:"Применяемые способы обработки"}),s.jsx("li",{children:"Наименование и местонахождение оператора"}),s.jsx("li",{children:"Лица, имеющие доступ к персональным данным"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"9.2.2. Сроки рассмотрения:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Срок рассмотрения запроса составляет 30 дней с момента получения"}),s.jsx("li",{children:"Срок может быть продлен на 30 дней при большом объеме информации"}),s.jsx("li",{children:"О продлении срока субъект уведомляется в течение 30 дней"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"9.4. Плата за предоставление информации:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Первый запрос в течение года обрабатывается бесплатно"}),s.jsx("li",{children:"За повторные запросы может взиматься плата в размере расходов"}),s.jsx("li",{children:"Субъект уведомляется о размере платы до предоставления информации"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"10. Обеспечение безопасности персональных данных"}),s.jsx("h4",{className:X.subSectionTitle,children:"10.1. Правовые меры:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),s.jsx("li",{children:"Принятие локальных актов по вопросам обработки персональных данных"}),s.jsx("li",{children:"Ознакомление работников с требованиями законодательства"}),s.jsx("li",{children:"Применение мер ответственности за нарушение требований"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"10.3. Технические меры:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Предотвращение несанкционированного доступа к персональным данным"}),s.jsx("li",{children:"Своевременное обнаружение фактов несанкционированного доступа"}),s.jsx("li",{children:"Возможность незамедлительного восстановления персональных данных"}),s.jsx("li",{children:"Постоянный контроль за обеспечением уровня защищенности"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"10.4. Конкретные технические решения:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Использование сертифицированных средств защиты информации"}),s.jsx("li",{children:"Шифрование персональных данных при передаче и хранении"}),s.jsx("li",{children:"Применение межсетевых экранов и систем обнаружения вторжений"}),s.jsx("li",{children:"Резервное копирование и обеспечение отказоустойчивости"}),s.jsx("li",{children:"Антивирусная защита и обновление программного обеспечения"})]})]}),s.jsxs("section",{className:X.section,children:[s.jsx("h3",{className:X.sectionTitle,children:"12. Заключительные положения"}),s.jsx("h4",{className:X.subSectionTitle,children:"12.2. Жалобы и обращения:"}),s.jsxs("ul",{className:X.list,children:[s.jsx("li",{children:"Субъекты персональных данных могут обратиться к Оператору по вопросам обработки"}),s.jsx("li",{children:"Жалобы рассматриваются в установленном законом порядке"}),s.jsx("li",{children:"При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"})]}),s.jsx("h4",{className:X.subSectionTitle,children:"12.4. Контактная информация для обращений:"}),s.jsxs("p",{className:X.contacts,children:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н",s.jsx("br",{}),"Электронная почта: company@bitforcefoundation.ru"]})]})]})}),s.jsx(Al,{})]})}const hL="_main_iq2qw_1",mL="_container_iq2qw_7",pL="_title_iq2qw_13",_L="_section_iq2qw_21",gL="_sectionTitle_iq2qw_25",vL="_subSectionTitle_iq2qw_34",yL="_list_iq2qw_42",xL="_info_iq2qw_57",bL="_example_iq2qw_71",jL="_warning_iq2qw_81",ee={main:hL,container:mL,title:pL,section:_L,sectionTitle:gL,subSectionTitle:vL,list:yL,info:xL,example:bL,warning:jL};function SL(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsx("main",{className:ee.main,children:s.jsxs("div",{className:ee.container,children:[s.jsx("h1",{className:ee.title,children:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE"}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Общие положения и терминология"}),s.jsx("p",{children:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."}),s.jsx("p",{children:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."}),s.jsx("p",{children:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Оператор персональных данных"}),s.jsx("p",{children:"Оператором персональных данных, содержащихся в файлах cookie, является:"}),s.jsxs("div",{className:ee.info,children:[s.jsx("p",{children:"ООО «БИТФОРС»"}),s.jsx("p",{children:"ИНН: 9810001062"}),s.jsx("p",{children:"ОГРН: 1257800060990"}),s.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"})]}),s.jsx("p",{children:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Категории файлов cookie и их назначение"}),s.jsx("h4",{className:ee.subSectionTitle,children:"1. Строго необходимые (технические) файлы cookie"}),s.jsx("p",{children:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."}),s.jsx("p",{children:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."}),s.jsx("p",{className:ee.example,children:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."}),s.jsx("h4",{className:ee.subSectionTitle,children:"2. Функциональные файлы cookie"}),s.jsx("p",{children:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."}),s.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."}),s.jsx("p",{className:ee.example,children:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."}),s.jsx("h4",{className:ee.subSectionTitle,children:"3. Аналитические файлы cookie"}),s.jsx("p",{children:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."}),s.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных."}),s.jsx("h4",{className:ee.subSectionTitle,children:"4. Маркетинговые файлы cookie"}),s.jsx("p",{children:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."}),s.jsx("p",{children:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."}),s.jsx("p",{className:ee.example,children:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Правовые основания обработки персональных данных"}),s.jsx("p",{children:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"}),s.jsxs("ul",{className:ee.list,children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Согласие субъекта персональных данных"})," — для функциональных, аналитических и маркетинговых файлов cookie"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Заключение и исполнение договора"})," — для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Законные интересы оператора"})," — в исключительных случаях, когда отсутствуют иные основания"]})]})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Порядок получения согласия"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Принципы получения согласия:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Согласие должно быть получено до начала обработки персональных данных"}),s.jsx("li",{children:"Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса"}),s.jsx("li",{children:"Предоставляется возможность выбора категорий файлов cookie"}),s.jsx("li",{children:"Используются активные формулировки вместо пассивных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Критерии действительного согласия:"}),s.jsxs("ul",{className:ee.list,children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Добровольность"})," — согласие дается по свободной воле субъекта"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Конкретность"})," — четко определены цели обработки"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Информированность"})," — предоставлена полная информация об обработке"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Однозначность"})," — согласие выражено в недвусмысленной форме"]})]})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Сторонние файлы cookie"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Использование сторонних сервисов:"}),s.jsx("p",{children:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Яндекс.Метрика (ООО «ЯНДЕКС», Россия)"}),s.jsx("li",{children:"Социальные сети и сервисы интеграции"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Обеспечение защиты:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Получено согласие на передачу"}),s.jsx("li",{children:"Применяются дополнительные меры защиты данных"}),s.jsx("li",{children:"Контролируется соблюдение принципов обработки персональных данных получателями"})]})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Сроки обработки и хранения"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Категории по срокам хранения:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Сеансовые cookie — удаляются автоматически при закрытии браузера"}),s.jsx("li",{children:"Постоянные cookie — хранятся установленный период или до удаления пользователем"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Конкретные сроки:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Необходимые файлы cookie — до 12 месяцев"}),s.jsx("li",{children:"Функциональные файлы cookie — до 12 месяцев"}),s.jsx("li",{children:"Аналитические файлы cookie — до 24 месяцев"}),s.jsx("li",{children:"Маркетинговые файлы cookie — до 24 месяцев"})]}),s.jsx("p",{children:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Права субъектов персональных данных"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Право на информацию:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Получение информации о обработке персональных данных"}),s.jsx("li",{children:"Сведения о правовых основаниях и целях обработки"}),s.jsx("li",{children:"Информация о сроках обработки и составе данных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Право на доступ:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Получение подтверждения факта обработки"}),s.jsx("li",{children:"Ознакомление с обрабатываемыми персональными данными"}),s.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Право на уточнение, блокирование, удаление:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Требование уточнения неточных данных"}),s.jsx("li",{children:"Блокирование недостоверных данных"}),s.jsx("li",{children:"Удаление незаконно полученных данных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Право на отзыв согласия:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Отзыв согласия в любое время"}),s.jsx("li",{children:"Прекращение обработки после отзыва согласия"}),s.jsx("li",{children:"Сохранение права на обжалование действий оператора"})]})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Способы управления файлами cookie"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Управление через настройки сайта:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Использование баннера согласия на файлы cookie"}),s.jsx("li",{children:"Изменение настроек в любое время через интерфейс сайта"}),s.jsx("li",{children:"Отзыв согласия на использование отдельных категорий файлов cookie"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Управление через браузер:"}),s.jsx("p",{children:"Большинство браузеров позволяют контролировать файлы cookie:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Блокировка — запрет установки новых файлов cookie"}),s.jsx("li",{children:"Удаление — очистка существующих файлов cookie"}),s.jsx("li",{children:"Уведомления — получение предупреждений при установке файлов cookie"}),s.jsx("li",{children:"Селективная настройка — разрешение файлов cookie только для определенных сайтов"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Инструкции для популярных браузеров:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie"}),s.jsx("li",{children:"Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie"}),s.jsx("li",{children:"Safari: Настройки → Конфиденциальность → Файлы cookie"}),s.jsx("li",{children:"Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"})]}),s.jsx("p",{className:ee.warning,children:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Меры безопасности"}),s.jsx("p",{children:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"}),s.jsx("h4",{className:ee.subSectionTitle,children:"Правовые меры:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),s.jsx("li",{children:"Ознакомление сотрудников с требованиями законодательства"}),s.jsx("li",{children:"Заключение соглашений о неразглашении персональных данных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Организационные меры:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Определение перечня лиц, допущенных к обработке персональных данных"}),s.jsx("li",{children:"Установление правил доступа к персональным данным"}),s.jsx("li",{children:"Контроль за соблюдением требований по защите персональных данных"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Технические меры:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Использование средств защиты информации"}),s.jsx("li",{children:"Применение криптографических средств защиты"}),s.jsx("li",{children:"Обеспечение целостности и доступности персональных данных"}),s.jsx("li",{children:"Регулярное обновление систем защиты информации"})]})]}),s.jsxs("section",{className:ee.section,children:[s.jsx("h3",{className:ee.sectionTitle,children:"Контактная информация и обращения"}),s.jsx("p",{children:"Для реализации прав субъекта персональных данных обращайтесь к нам:"}),s.jsxs("div",{className:ee.info,children:[s.jsx("p",{children:"ООО «БИТФОРС»"}),s.jsx("p",{children:"ИНН: 9810001062"}),s.jsx("p",{children:"ОГРН: 1257800060990"}),s.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"}),s.jsx("p",{children:"Email компании: company@bitforcefoundation.ru"})]}),s.jsx("h4",{className:ee.subSectionTitle,children:"Порядок рассмотрения обращений:"}),s.jsxs("ul",{className:ee.list,children:[s.jsx("li",{children:"Срок рассмотрения обращений — до 30 дней с момента получения"}),s.jsx("li",{children:"Обращения рассматриваются в письменной форме"}),s.jsx("li",{children:"Ответ направляется способом, указанным в обращении"}),s.jsx("li",{children:"При отказе в удовлетворении требований указываются мотивированные основания"})]})]})]})}),s.jsx(Al,{})]})}const NL="_main_9j8kd_1",wL="_container_9j8kd_7",CL="_title_9j8kd_13",TL="_subtitle_9j8kd_21",EL="_section_9j8kd_29",RL="_sectionTitle_9j8kd_33",AL="_subSectionTitle_9j8kd_42",LL="_list_9j8kd_50",OL="_info_9j8kd_65",ML="_contacts_9j8kd_79",zL="_confirmation_9j8kd_92",W={main:NL,container:wL,title:CL,subtitle:TL,section:EL,sectionTitle:RL,subSectionTitle:AL,list:LL,info:OL,contacts:ML,confirmation:zL};function DL(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsx("main",{className:W.main,children:s.jsxs("div",{className:W.container,children:[s.jsx("h1",{className:W.title,children:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),s.jsx("h2",{className:W.subtitle,children:"ООО «БИТФОРС»"}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"Преамбула"}),s.jsx("p",{children:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"1. Сведения об операторе"}),s.jsxs("div",{className:W.info,children:[s.jsx("p",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),s.jsx("p",{children:"ИНН: 9810001062"}),s.jsx("p",{children:"ОГРН: 1257800060990"}),s.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),s.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),s.jsx("p",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"2. Правовые основания обработки"}),s.jsx("p",{children:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."}),s.jsx("p",{children:"Согласие дается добровольно, своей волей и в своих интересах."}),s.jsx("p",{children:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"3. Цели обработки персональных данных"}),s.jsx("h4",{className:W.subSectionTitle,children:"3.1. Основные цели:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении"}),s.jsx("li",{children:"Идентификация и верификация личности в соответствии с требованиями законодательства"}),s.jsx("li",{children:"Предоставление услуг по обмену криптовалют и электронных денежных средств"}),s.jsx("li",{children:"Проведение финансовых операций, переводов и расчетов"}),s.jsx("li",{children:"Ведение учета и истории операций"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"3.2. Дополнительные цели:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Обеспечение безопасности операций и предотвращение мошенничества"}),s.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),s.jsx("li",{children:"Соблюдение требований валютного, налогового и иного применимого законодательства"}),s.jsx("li",{children:"Предоставление технической поддержки и клиентского сервиса"}),s.jsx("li",{children:"Рассылка уведомлений о состоянии операций и изменениях в условиях"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"3.3. Маркетинговые цели (при дополнительном согласии):"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Направление информационных и рекламных материалов"}),s.jsx("li",{children:"Проведение маркетинговых исследований и опросов"}),s.jsx("li",{children:"Персонализация предложений и услуг"}),s.jsx("li",{children:"Анализ предпочтений и поведения для улучшения сервисов"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"3.4. Аналитические цели:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Анализ использования веб-сайта и мобильного приложения"}),s.jsx("li",{children:"Улучшение качества предоставляемых услуг"}),s.jsx("li",{children:"Разработка новых продуктов и сервисов"}),s.jsx("li",{children:"Создание статистических отчетов в обезличенном виде"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"4. Перечень персональных данных"}),s.jsx("h4",{className:W.subSectionTitle,children:"4.1. Идентификационные данные:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Фамилия, имя, отчество"}),s.jsx("li",{children:"Дата рождения"}),s.jsx("li",{children:"Гражданство"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"4.2. Документы, удостоверяющие личность:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Серия и номер паспорта гражданина Российской Федерации"}),s.jsx("li",{children:"Дата выдачи и код подразделения"}),s.jsx("li",{children:"Адрес регистрации по месту жительства"}),s.jsx("li",{children:"Цифровые копии (сканы) документов"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"4.3. Контактная информация:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),s.jsx("li",{children:"Адреса электронной почты"}),s.jsx("li",{children:"Почтовые адреса (фактического проживания, для корреспонденции)"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"4.4. Финансовая информация:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Номера банковских счетов и реквизиты банковских карт"}),s.jsx("li",{children:"Реквизиты криптовалютных кошельков и адресов"}),s.jsx("li",{children:"Информация о доходах и источниках происхождения денежных средств"}),s.jsx("li",{children:"История финансовых операций и транзакций"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"4.5. Техническая информация:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"IP-адреса устройств, с которых осуществляется доступ к сервисам"}),s.jsx("li",{children:"Информация о браузере, операционной системе и устройстве"}),s.jsx("li",{children:"Файлы cookie и данные локального хранилища"}),s.jsx("li",{children:"Логи действий и история использования сервисов"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"4.6. Дополнительная информация:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Фотографии для процедур верификации"}),s.jsx("li",{children:"Видеозаписи процедур видеоидентификации"}),s.jsx("li",{children:"Биометрические данные (при использовании соответствующих технологий)"}),s.jsx("li",{children:"Информация о семейном положении и профессиональной деятельности"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"5. Перечень действий с персональными данными"}),s.jsx("p",{children:"Согласие распространяется на следующие действия (операции) с персональными данными:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Сбор, запись и первичная обработка персональных данных"}),s.jsx("li",{children:"Накопление и систематизация в базах данных"}),s.jsx("li",{children:"Создание резервных копий и архивирование"}),s.jsx("li",{children:"Извлечение, использование и анализ данных"}),s.jsx("li",{children:"Уточнение, обновление и актуализация информации"}),s.jsx("li",{children:"Передача данных третьим лицам"}),s.jsx("li",{children:"Обезличивание и удаление данных"}),s.jsx("li",{children:"Автоматизированная обработка и профилирование"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"6. Лица, которым могут быть переданы персональные данные"}),s.jsx("h4",{className:W.subSectionTitle,children:"6.1. Сотрудники Оператора:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Уполномоченные сотрудники, непосредственно участвующие в обработке"}),s.jsx("li",{children:"Сотрудники службы безопасности и комплаенса"}),s.jsx("li",{children:"Сотрудники технической поддержки"}),s.jsx("li",{children:"Руководящий состав в рамках их полномочий"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"6.2. Государственные и муниципальные органы:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Федеральная служба по финансовому мониторингу"}),s.jsx("li",{children:"Федеральная налоговая служба"}),s.jsx("li",{children:"Правоохранительные органы (при наличии законных требований)"}),s.jsx("li",{children:"Суды и органы исполнения судебных решений"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"6.3. Партнеры и контрагенты:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Банки и платежные системы"}),s.jsx("li",{children:"Операторы электронных денежных средств"}),s.jsx("li",{children:"Поставщики технологических решений"}),s.jsx("li",{children:"Аудиторские и консалтинговые организации"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"7. Сроки обработки персональных данных"}),s.jsx("h4",{className:W.subSectionTitle,children:"7.1. Общие принципы:"}),s.jsx("p",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."}),s.jsx("h4",{className:W.subSectionTitle,children:"7.2. Конкретные сроки обработки:"}),s.jsxs("ul",{className:W.list,children:[s.jsxs("li",{children:[s.jsx("strong",{children:"Данные активных клиентов:"})," в течение всего периода отношений плюс 5 лет после прекращения"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Данные для идентификации:"})," 5 лет с момента прекращения отношений"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Финансовая информация:"})," 5 лет с даты совершения операции"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Маркетинговые данные:"})," до отзыва согласия, но не более 3 лет"]}),s.jsxs("li",{children:[s.jsx("strong",{children:"Техническая информация:"})," 1 год для безопасности, 6 месяцев для логов"]})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"8. Права субъекта персональных данных"}),s.jsx("h4",{className:W.subSectionTitle,children:"8.1. Право на информацию:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Получение подтверждения факта обработки персональных данных"}),s.jsx("li",{children:"Получение информации о целях и способах обработки"}),s.jsx("li",{children:"Информация о сроках обработки и составе данных"}),s.jsx("li",{children:"Сведения о лицах, которым передаются данные"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"8.2. Право на доступ:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Получение копий обрабатываемых персональных данных"}),s.jsx("li",{children:"Ознакомление с историей обработки и изменений"}),s.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"8.3. Право на исправление и удаление:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Требование исправления неточных или неполных данных"}),s.jsx("li",{children:"Требование удаления персональных данных при наличии оснований"}),s.jsx("li",{children:"Удаление данных после отзыва согласия"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"8.4. Право на отзыв согласия:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Согласие может быть отозвано в любое время"}),s.jsx("li",{children:"Отзыв оформляется в письменной форме"}),s.jsx("li",{children:"После отзыва обработка прекращается в разумные сроки"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"8.5. Право на обжалование:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Обращение к Оператору с жалобами на действия по обработке данных"}),s.jsx("li",{children:"Обращение в Роскомнадзор или его территориальные органы"}),s.jsx("li",{children:"Обращение в суд для защиты нарушенных прав"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"8.6. Порядок реализации прав:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Обращения направляются на адрес: company@bitforcefoundation.ru"}),s.jsx("li",{children:"Обращения рассматриваются в течение 30 дней"}),s.jsx("li",{children:"При необходимости срок может быть продлен на 30 дней"})]})]}),s.jsxs("section",{className:W.section,children:[s.jsx("h3",{className:W.sectionTitle,children:"9. Заключительные положения"}),s.jsx("h4",{className:W.subSectionTitle,children:"9.1. Действие согласия:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Согласие действует с момента его предоставления"}),s.jsx("li",{children:"Согласие действует до его отзыва или до достижения целей обработки"}),s.jsx("li",{children:"При существенных изменениях целей требуется новое согласие"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"9.2. Форма предоставления согласия:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Согласие может быть предоставлено в письменной форме"}),s.jsx("li",{children:"Согласие может быть предоставлено в электронной форме"}),s.jsx("li",{children:"Согласие может выражаться путем совершения конклюдентных действий"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"9.3. Последствия непредоставления согласия:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Отказ в предоставлении согласия может повлечь невозможность регистрации"}),s.jsx("li",{children:"Отказ может ограничить доступ к отдельным услугам"}),s.jsx("li",{children:"Отказ в согласии на маркетинг не влияет на основные услуги"}),s.jsx("li",{children:"Субъект вправе предоставить частичное согласие"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"9.4. Контактная информация:"}),s.jsxs("div",{className:W.contacts,children:[s.jsx("p",{children:"Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н"}),s.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),s.jsx("p",{children:"Ответственное лицо: Кленин Михаил Васильевич"}),s.jsx("p",{children:"Официальный сайт: https://bitforce-foundation.ru"})]}),s.jsx("h4",{className:W.subSectionTitle,children:"9.5. Подтверждение понимания:"}),s.jsx("p",{className:W.confirmation,children:"Предоставляя настоящее согласие, я подтверждаю, что:"}),s.jsxs("ul",{className:W.list,children:[s.jsx("li",{children:"Ознакомлен с содержанием согласия и понимаю его значение"}),s.jsx("li",{children:"Понимаю цели и способы обработки моих персональных данных"}),s.jsx("li",{children:"Знаю о своих правах и способах их реализации"}),s.jsx("li",{children:"Согласие предоставляется добровольно и осознанно"}),s.jsx("li",{children:"Имею возможность отозвать согласие в любое время"})]})]})]})}),s.jsx(Al,{})]})}const kL="_main_2hruc_1",BL="_container_2hruc_7",$L="_title_2hruc_13",UL="_subtitle_2hruc_21",HL="_section_2hruc_29",qL="_sectionTitle_2hruc_33",FL="_description_2hruc_42",GL="_info_2hruc_49",VL="_linkBlock_2hruc_56",QL="_button_2hruc_64",PL="_operatorInfo_2hruc_81",sn={main:kL,container:BL,title:$L,subtitle:UL,section:HL,sectionTitle:qL,description:FL,info:GL,linkBlock:VL,button:QL,operatorInfo:PL};function IL(){return s.jsxs(s.Fragment,{children:[s.jsx(Vi,{}),s.jsx("main",{className:sn.main,children:s.jsxs("div",{className:sn.container,children:[s.jsx("h1",{className:sn.title,children:"Реестр операторов персональных данных"}),s.jsx("h2",{className:sn.subtitle,children:"ООО «БИТФОРС»"}),s.jsxs("section",{className:sn.section,children:[s.jsx("p",{className:sn.description,children:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."}),s.jsx("p",{className:sn.info,children:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"}),s.jsx("div",{className:sn.linkBlock,children:s.jsx("a",{href:"https://pd.rkn.gov.ru/operators-registry/operators-list/?act=search&name_full=%D0%91%D0%B8%D1%82%D1%84%D0%BE%D1%80%D1%81&inn=9810001062&regn=",target:"_blank",rel:"noopener noreferrer",className:sn.button,children:"Открыть реестр Роскомнадзора"})}),s.jsx("p",{className:sn.info,children:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."})]}),s.jsxs("section",{className:sn.section,children:[s.jsx("h3",{className:sn.sectionTitle,children:"Информация об операторе"}),s.jsxs("div",{className:sn.operatorInfo,children:[s.jsxs("p",{children:[s.jsx("strong",{children:"Наименование:"})," ООО «БИТФОРС»"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"ИНН:"})," 9810001062"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"ОГРН:"})," 1257800060990"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Юридический адрес:"})," 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Контактная информация:"})," company@bitforcefoundation.ru"]})]})]}),s.jsxs("section",{className:sn.section,children:[s.jsx("h3",{className:sn.sectionTitle,children:"О Роскомнадзоре"}),s.jsx("p",{children:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."}),s.jsx("p",{children:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."})]})]})}),s.jsx(Al,{})]})}function n3(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function YL(a){return a?a.length<=16?a:`${a.slice(0,8)}${a.slice(-6)}`:"—"}function s3(a){return Number(a).toLocaleString("ru-RU")}const XL={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},KL="_badge_1d3cq_1",ZL="_status_pending_1d3cq_10",WL="_status_completed_1d3cq_15",JL="_status_money_accepted_1d3cq_20",eO="_status_web3_processing_1d3cq_25",tO="_status_web3_hash_error_1d3cq_30",nO="_status_web3_balance_problem_1d3cq_35",sO="_status_receipt_error_1d3cq_40",aO="_status_usdt_delivered_1d3cq_45",a3={badge:KL,status_pending:ZL,status_completed:WL,status_money_accepted:JL,status_web3_processing:eO,status_web3_hash_error:tO,status_web3_balance_problem:nO,status_receipt_error:sO,status_usdt_delivered:aO};function l3({status:a}){return s.jsx("span",{className:`${a3.badge} ${a3[`status_${a}`]??""}`,children:XL[a]??a})}const lO="_button_1q7wx_1",iO={button:lO};function cO({value:a}){const[i,c]=j.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{c(!0),setTimeout(()=>c(!1),1500)})}return s.jsx("button",{className:iO.button,onClick:r,type:"button",title:"Скопировать",children:i?s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),s.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const rO="_item_1ymly_1",oO="_summary_1ymly_8",uO="_summaryLeft_1ymly_25",dO="_summaryDate_1ymly_34",fO="_summaryRight_1ymly_41",hO="_amount_1ymly_48",mO="_totalAmount_1ymly_56",pO="_chevron_1ymly_64",_O="_chevronOpen_1ymly_70",gO="_bodyOuter_1ymly_74",vO="_bodyOuterOpen_1ymly_80",yO="_bodyInner_1ymly_84",xO="_body_1ymly_74",bO="_col_1ymly_96",jO="_colTitle_1ymly_101",SO="_infoRow_1ymly_110",NO="_infoRowTotal_1ymly_123",wO="_infoLabel_1ymly_128",CO="_infoValue_1ymly_129",TO="_infoValueRow_1ymly_148",EO="_infoLink_1ymly_154",He={item:rO,summary:oO,summaryLeft:uO,summaryDate:dO,summaryRight:fO,amount:hO,totalAmount:mO,chevron:pO,chevronOpen:_O,bodyOuter:gO,bodyOuterOpen:vO,bodyInner:yO,body:xO,col:bO,colTitle:jO,infoRow:SO,infoRowTotal:NO,infoLabel:wO,infoValue:CO,infoValueRow:TO,infoLink:EO};function RO({item:a}){const[i,c]=j.useState(!1),{order:r,payment:d}=a;return s.jsxs("div",{className:He.item,children:[s.jsxs("button",{className:He.summary,onClick:()=>c(f=>!f),type:"button","aria-expanded":i,children:[s.jsxs("div",{className:He.summaryLeft,children:[s.jsx("span",{className:He.summaryDate,children:n3(r.created_at)}),d&&s.jsx(l3,{status:d.status})]}),s.jsxs("div",{className:He.summaryRight,children:[s.jsxs("span",{className:He.amount,children:[r.usdt_amount," USDT"]}),s.jsxs("span",{className:He.totalAmount,children:[s3(r.total_price)," ₽"]}),s.jsx("svg",{className:`${He.chevron} ${i?He.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),s.jsx("div",{className:`${He.bodyOuter} ${i?He.bodyOuterOpen:""}`,children:s.jsx("div",{className:He.bodyInner,children:s.jsxs("div",{className:He.body,children:[s.jsxs("div",{className:He.col,children:[s.jsx("p",{className:He.colTitle,children:"Заказ"}),s.jsx(fl,{label:"Сумма USDT",value:`${r.usdt_amount} USDT`}),s.jsx(fl,{label:"Курс обмена",value:`1 USDT = ${r.usdt_exchange_rate}`}),s.jsx(fl,{label:"Сервисный сбор",value:`${r.service_fee} USDT`}),s.jsx(fl,{label:"Комиссия за газ",value:`${r.gas_fee} USDT`}),s.jsx(fl,{label:"Итого к оплате",value:`${s3(r.total_price)}`,emphasised:!0})]}),s.jsxs("div",{className:He.col,children:[s.jsx("p",{className:He.colTitle,children:"Платёж"}),d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:He.infoRow,children:[s.jsx("span",{className:He.infoLabel,children:"Статус"}),s.jsx(l3,{status:d.status})]}),s.jsx(fl,{label:"Оплачено",value:d.itpay_paid_amount||"—"}),s.jsx(fl,{label:"Истекает",value:n3(d.expired_date)}),s.jsxs("div",{className:He.infoRow,children:[s.jsx("span",{className:He.infoLabel,children:"Хэш транзакции"}),s.jsxs("span",{className:He.infoValueRow,children:[s.jsx("span",{className:He.infoValue,title:d.web3_transaction_hash||void 0,children:YL(d.web3_transaction_hash)}),d.web3_transaction_hash&&s.jsx(cO,{value:d.web3_transaction_hash})]})]}),s.jsxs("div",{className:He.infoRow,children:[s.jsx("span",{className:He.infoLabel,children:"Чек"}),d.receipt_cloudekassir_link?s.jsx("a",{href:d.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:He.infoLink,children:"Открыть →"}):s.jsx("span",{className:He.infoValue,children:"—"})]})]}):s.jsx("div",{className:He.infoRow,children:s.jsx("span",{className:He.infoValue,children:"—"})})]})]})})})]})}function fl({label:a,value:i,emphasised:c}){return s.jsxs("div",{className:`${He.infoRow} ${c?He.infoRowTotal:""}`,children:[s.jsx("span",{className:He.infoLabel,children:a}),s.jsx("span",{className:He.infoValue,children:i})]})}const AO="_list_gxp0d_1",LO="_empty_gxp0d_9",OO="_status_gxp0d_16",MO="_statusError_gxp0d_23",zO="_loadMore_gxp0d_30",DO="_loadMoreBtn_gxp0d_38",xi={list:AO,empty:LO,status:OO,statusError:MO,loadMore:zO,loadMoreBtn:DO};function kO(){const{data:a,isLoading:i,isError:c,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=Y6(),h=(a==null?void 0:a.pages.flatMap(g=>g.orders))??[];return i?s.jsx("p",{className:xi.status,children:"Загрузка..."}):c?s.jsx("p",{className:xi.statusError,children:"Не удалось загрузить транзакции. Попробуйте обновить страницу."}):h.length===0?s.jsx("p",{className:xi.empty,children:"У вас пока нет транзакций."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:xi.list,children:h.map(g=>s.jsx(RO,{item:g},g.order.id))}),d&&s.jsx("div",{className:xi.loadMore,children:s.jsx("button",{className:xi.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const BO="_status_1yzxr_1",$O="_statusError_1yzxr_8",UO="_empty_1yzxr_15",HO="_tableWrap_1yzxr_22",qO="_table_1yzxr_22",FO="_mono_1yzxr_53",GO="_statusBadge_1yzxr_57",Ps={status:BO,statusError:$O,empty:UO,tableWrap:HO,table:qO,mono:FO,statusBadge:GO};function i3(a,i){return a?`${a} ${i}`:"—"}function VO(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleString("ru-RU")}function QO(){const{data:a,isLoading:i,isError:c}=h_();return i?s.jsx("p",{className:Ps.status,children:"Загрузка..."}):c?s.jsx("p",{className:Ps.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?s.jsx("p",{className:Ps.empty,children:"У вас пока нет заявок."}):s.jsx("div",{className:Ps.tableWrap,children:s.jsxs("table",{className:Ps.table,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"USDT"}),s.jsx("th",{children:"Сумма ₽"}),s.jsx("th",{children:"Курс"}),s.jsx("th",{children:"Статус"}),s.jsx("th",{children:"Создана"})]})}),s.jsx("tbody",{children:a.items.map(r=>s.jsxs("tr",{children:[s.jsx("td",{className:Ps.mono,children:i3(r.usdt_amount,"USDT")}),s.jsx("td",{className:Ps.mono,children:i3(r.rub_amount,"₽")}),s.jsx("td",{className:Ps.mono,children:r.exchange_rate??"—"}),s.jsx("td",{children:s.jsx("span",{className:Ps.statusBadge,children:r.status})}),s.jsx("td",{children:VO(r.created_at)})]},r.id))})]})})}const PO="_inner_1umld_1",IO="_glow_1umld_9",YO="_title_1umld_21",XO="_tabs_1umld_30",KO="_tab_1umld_30",bi={inner:PO,glow:IO,title:YO,tabs:XO,tab:KO};function ZO(){const{data:a}=ea(),[i,c]=j.useState("transactions"),r=!!a&&a.account_type!=="individual",d=r?i:"transactions";return s.jsxs("div",{className:bi.inner,children:[s.jsx("div",{className:bi.glow}),s.jsx("h1",{className:bi.title,children:"Транзакции"}),r&&s.jsxs("div",{className:bi.tabs,children:[s.jsx("button",{type:"button",className:bi.tab,"data-active":d==="transactions"||void 0,onClick:()=>c("transactions"),children:"Транзакции"}),s.jsx("button",{type:"button",className:bi.tab,"data-active":d==="requests"||void 0,onClick:()=>c("requests"),children:"Заявки"})]}),d==="transactions"?s.jsx(kO,{}):s.jsx(QO,{})]})}const Y_={ETH:{symbol:"ETH",aprLabel:"APR",protocol:"Lido"},SOL:{symbol:"SOL",aprLabel:"APY",protocol:"Нативный"}},WO=[{chain:"ETH",label:"ETH · Lido"},{chain:"SOL",label:"SOL · нативный"}],JO={active:{label:"Активна",variant:"active"},activating:{label:"Активируется",variant:"muted"},deactivating:{label:"Деактивация",variant:"muted"},inactive:{label:"Завершена",variant:"ready"}},eM="_toggle_xc9o8_1",tM="_tab_xc9o8_6",nM="_active_xc9o8_18",sM="_inactive_xc9o8_23",Do={toggle:eM,tab:tM,active:nM,inactive:sM};function aM({value:a,onChange:i}){return s.jsx("div",{className:Do.toggle,children:WO.map(({chain:c,label:r})=>s.jsx("button",{className:`${Do.tab} ${a===c?Do.active:Do.inactive}`,onClick:()=>i(c),children:r},c))})}const X_="https://app.cryptowallet.elcsa.ru",Cl={ETH:18,SOL:9};async function G2(a,i=!0){const c=await rn(),r=Rt.get(),d=await fetch(`${X_}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await rs(),G2(a,!1)}catch{throw Rt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function qa(a,i,c=!0,r={}){const d=await rn(),f=Rt.get(),h=await fetch(`${X_}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(h.status===401&&c)try{return await rs(),qa(a,i,!1,r)}catch{throw Rt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}function ou(){return{"Idempotency-Key":crypto.randomUUID()}}async function lM(a,i){const c=cs(i,Cl[a]);if(a==="ETH"){const h=(await qa("/api/wallets/ETH/stake/quote",{amount:c})).data;return{chain:a,amountHuman:h.amountWeiHuman,feeHuman:h.appFeeWeiHuman,afterFeeHuman:h.stakeAmountWeiHuman,resultHuman:h.expectedStEthWeiHuman,aprPercent:h.aprPercent}}const d=(await qa("/api/wallets/SOL/stake/quote",{amount:c})).data;return{chain:a,amountHuman:d.amountLamportsHuman,feeHuman:d.appFeeLamportsHuman,afterFeeHuman:d.stakeLamportsHuman,resultHuman:d.stakeLamportsHuman,aprPercent:d.estApyPercent,validator:d.validator}}async function iM(a,i){const c=cs(i,Cl[a]);await qa(`/api/wallets/${a}/stake`,{amount:c},!0,ou())}async function cM(){return(await G2("/api/wallets/ETH/stake/positions")).data}async function rM(){return(await G2("/api/wallets/SOL/stake/positions")).data}async function oM(a,i){const c=cs(a,Cl.ETH);return(await qa("/api/wallets/ETH/unstake",{amount:c,mode:i},!0,ou())).data}async function uM(a){return(await qa("/api/wallets/SOL/unstake",{stakeAccount:a},!0,ou())).data}async function dM(a){await qa("/api/wallets/ETH/unstake/claim",{requestId:a},!0,ou())}async function fM(a,i){return(await qa(`/api/wallets/${a}/op-cost`,{token:a,amountHuman:i})).data}function Xc(a){if(a&&typeof a=="object"&&"error"in a){const i=a.error;if(typeof i=="string")return i}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — войдите снова.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function hM(a,i){if(a.chain==="ETH"){const r=BigInt(cs(a.stEthBalanceWeiHuman,Cl.ETH)),d=BigInt(cs(i,Cl.ETH));return{...a,stEthBalanceWeiHuman:er((r+d).toString(),Cl.ETH),optimistic:!0}}const c={stakeAccount:"pending",lamportsHuman:i,state:"activating",validator:a.validator,optimistic:!0};return{...a,positions:[c,...a.positions]}}function mM(a,i){const c=parseFloat(i);return St({queryKey:["staking","quote",a,i],queryFn:()=>lM(a,i),enabled:Number.isFinite(c)&&c>0,staleTime:15e3,retry:!1})}function pM(a,i){const c=parseFloat(i);return St({queryKey:["staking","op-cost",a,i],queryFn:()=>fM(a,i),enabled:Number.isFinite(c)&&c>0,staleTime:15e3,retry:!1})}function _M(a){return St({queryKey:["staking","positions",a],queryFn:()=>a==="ETH"?cM():rM(),staleTime:3e4,retry:!1})}function gM(){const a=Wt();return mt({mutationFn:({chain:i,amountHuman:c})=>iM(i,c),onMutate:async({chain:i,amountHuman:c})=>{const r=["staking","positions",i];await a.cancelQueries({queryKey:r});const d=a.getQueryData(r);return d&&a.setQueryData(r,hM(d,c)),{key:r,previous:d}},onError:(i,c,r)=>{r!=null&&r.previous&&a.setQueryData(r.key,r.previous)},onSettled:(i,c,{chain:r})=>{a.invalidateQueries({queryKey:["wallet","balance",r]}),setTimeout(()=>{a.invalidateQueries({queryKey:["staking","positions",r]}),a.invalidateQueries({queryKey:["wallet","balance",r]})},6e3)}})}function vM(){const a=Wt();return mt({mutationFn:i=>i.chain==="ETH"?oM(i.amountHuman,i.mode):uM(i.stakeAccount),onSuccess:(i,c)=>{a.invalidateQueries({queryKey:["staking","positions",c.chain]}),a.invalidateQueries({queryKey:["wallet","balance",c.chain]})}})}function yM(){const a=Wt();return mt({mutationFn:i=>dM(i),onSuccess:()=>{a.invalidateQueries({queryKey:["staking","positions","ETH"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const xM="_panel_jl9ez_1",bM="_row_jl9ez_13",jM="_label_jl9ez_26",SM="_value_jl9ez_31",NM="_success_jl9ez_39",wM="_highlight_jl9ez_43",CM="_rowTotal_jl9ez_48",TM="_valueLg_jl9ez_55",hl={panel:xM,row:bM,label:jM,value:SM,success:NM,highlight:wM,rowTotal:CM,valueLg:TM};function EM({rows:a,loading:i}){return s.jsx("div",{className:hl.panel,"data-loading":i?"true":void 0,children:a.map(({label:c,value:r,accent:d,emphasis:f})=>s.jsxs("div",{className:`${hl.row} ${f?hl.rowTotal:""}`,children:[s.jsx("span",{className:hl.label,children:c}),s.jsx("span",{className:`${hl.value} ${f?hl.valueLg:""} ${d?hl[d]:""}`,children:r})]},c))})}const RM="_wrapper_1y6dk_1",AM="_pillsOuter_1y6dk_7",LM="_card_1y6dk_12",OM="_top_1y6dk_19",MM="_tag_1y6dk_27",zM="_right_1y6dk_35",DM="_apr_1y6dk_41",kM="_pillsInner_1y6dk_52",BM="_pill_1y6dk_7",$M="_mid_1y6dk_75",UM="_input_1y6dk_83",HM="_token_1y6dk_99",qM="_bottom_1y6dk_109",FM="_balance_1y6dk_116",GM="_max_1y6dk_124",VM="_hint_1y6dk_139",QM="_stakeBtn_1y6dk_147",PM="_stakeBtnDisabled_1y6dk_151",$t={wrapper:RM,pillsOuter:AM,card:LM,top:OM,tag:MM,right:zM,apr:DM,pillsInner:kM,pill:BM,mid:$M,input:UM,token:HM,bottom:qM,balance:FM,max:GM,hint:VM,stakeBtn:QM,stakeBtnDisabled:PM},IM=[25,50,100],ji="—";function YM(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function XM(a,i,c,r,d){var A,z;const f=a.symbol==="ETH",h=`Годовая доходность (${a.aprLabel})`,g=i?`${ot(i.feeHuman,8)} ${a.symbol}`:ji,m=(i==null?void 0:i.aprPercent)!=null?`${i.aprPercent}%`:ji,p=f?"Вы получите":"Делегируется валидатору",v=i?f?`${ot(i.resultHuman,8)} stETH`:`${ot(i.resultHuman,8)} SOL`:ji,y=(z=(A=c==null?void 0:c.balance)==null?void 0:A.gas)==null?void 0:z.needReserve,b=y!=null&&parseFloat(String(y))||0,N=y!=null?`${ot(String(y),8)} ${a.symbol}`:ji,S=Math.max(0,r-b),w=y!=null&&r>0?`${ot(S.toString(),8)} ${a.symbol}`:ji,C=d>0&&r>0?YM(r*d):ji;return[{label:"Сетевой сбор (газ)",value:N},{label:"Сумма в стейкинг",value:w},{label:"Комиссия сервиса (0.7%)",value:g},{label:h,value:m,accent:"success"},{label:"Итого к списанию",value:C},{label:p,value:v,accent:"highlight",emphasis:!0}]}function KM({chain:a,amount:i,onAmountChange:c,onStake:r,isStaking:d}){var ce,ue;const f=Y_[a],h=Cl[a],{data:g}=Jc(a),m=(g==null?void 0:g.native.formatted)??"0",p=parseFloat(m)||0,v=js(i,400),{data:y,isError:b}=pM(a,v),N=((ue=(ce=y==null?void 0:y.balance)==null?void 0:ce.gas)==null?void 0:ue.needReserve)!=null?String(y.balance.gas.needReserve):null;function S(he){if((parseFloat(he)||0)<=0)return"0";if(N!=null){const pe=BigInt(cs(he,h)),re=BigInt(cs(N,h)),q=pe>re?pe-re:0n;return er(q.toString(),h)}return b?he:"0"}const w=S(i),C=S(v),A=parseFloat(w)||0,{data:z,isFetching:M}=mM(a,C),U=parseFloat(i)||0,I=U>0&&U<=p,K=I&&N!=null&&A<=0,B=I&&A>0&&!d,P=he=>{he>=100?c(m):c((p*he/100).toString())},ne=s.jsx(s.Fragment,{children:IM.map(he=>s.jsxs("button",{className:$t.pill,onClick:()=>P(he),"aria-label":`${he}% от баланса`,children:[he,"%"]},he))});return s.jsxs("div",{className:$t.wrapper,children:[s.jsx("div",{className:$t.pillsOuter,children:ne}),s.jsxs("div",{className:$t.card,children:[s.jsxs("div",{className:$t.top,children:[s.jsx("span",{className:$t.tag,children:"Сумма к списанию"}),s.jsxs("div",{className:$t.right,children:[s.jsxs("span",{className:$t.apr,children:[f.aprLabel," ",(z==null?void 0:z.aprPercent)!=null?`${z.aprPercent}%`:"—"]}),s.jsx("div",{className:$t.pillsInner,children:ne})]})]}),s.jsxs("div",{className:$t.mid,children:[s.jsx("input",{className:$t.input,type:"text",inputMode:"decimal",value:i,onChange:he=>{const ae=he.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(ae)||ae==="")&&c(ae)},placeholder:"0","aria-label":`Сумма к списанию в ${f.symbol}`}),s.jsxs("div",{className:$t.token,children:[s.jsx(Wn,{letter:f.symbol[0],color:"var(--grad-center)",logo:it[f.symbol],size:28}),s.jsx("span",{children:f.symbol})]})]}),s.jsx("div",{className:$t.bottom,children:s.jsxs("span",{className:$t.balance,children:["Баланс: ",ot(m,6)," ",f.symbol,s.jsx("button",{className:$t.max,onClick:()=>P(100),"aria-label":"Использовать весь баланс",children:"МАКС"})]})}),s.jsx(EM,{rows:XM(f,z,y,U,(g==null?void 0:g.native.usdPrice)??0),loading:M}),K&&s.jsx("p",{className:$t.hint,children:"Сумма меньше сетевого сбора (газ)."}),s.jsx("div",{className:`${$t.stakeBtn} ${B?"":$t.stakeBtnDisabled}`,children:s.jsx(Zn,{label:d?"Отправка…":"Застейкать",type:"button",onClick:()=>r(w),disabled:!B})})]})]})}const ZM="_notice_y8uqt_1",WM="_icon_y8uqt_14",JM="_compact_y8uqt_29",Zd={notice:ZM,icon:WM,compact:JM};function K_({compact:a}){return s.jsxs("div",{className:`${Zd.notice} ${a?Zd.compact:""}`,children:[s.jsx("span",{className:Zd.icon,"aria-hidden":"true",children:"!"}),s.jsx("span",{children:"Вывод средств из стейкинга может занимать до 2 недель."})]})}const ez="_panel_156jb_1",tz="_inner_156jb_8",nz="_body_156jb_16",sz="_head_156jb_45",az="_title_156jb_51",lz="_total_156jb_59",iz="_totalUnit_156jb_65",cz="_subhead_156jb_70",rz="_list_156jb_79",oz="_pos_156jb_85",uz="_pending_156jb_93",dz="_reqCard_156jb_108",fz="_posTop_156jb_112",hz="_coin_156jb_120",mz="_amount_156jb_129",pz="_meta_156jb_136",_z="_badge_156jb_143",gz="_badgeActive_156jb_151",vz="_badgeReady_156jb_156",yz="_badgeMuted_156jb_161",xz="_btn_156jb_166",bz="_btnPrimary_156jb_189",jz="_note_156jb_201",Sz="_empty_156jb_208",Nz="_emptyState_156jb_215",wz="_emptyIcon_156jb_227",Cz="_emptyTitle_156jb_239",Tz="_emptyText_156jb_246",ve={panel:ez,inner:tz,body:nz,head:sz,title:az,total:lz,totalUnit:iz,subhead:cz,list:rz,pos:oz,pending:uz,reqCard:dz,posTop:fz,coin:hz,amount:mz,meta:pz,badge:_z,badgeActive:gz,badgeReady:vz,badgeMuted:yz,btn:xz,btnPrimary:bz,note:jz,empty:Sz,emptyState:Nz,emptyIcon:wz,emptyTitle:Cz,emptyText:Tz};function Ez({chain:a,onUnstakeEth:i,onUnstakeSol:c,onClaim:r,unstakePending:d,claimPending:f}){var C;const{data:h,isLoading:g,isError:m,error:p}=_M(a),v={active:ve.badgeActive,ready:ve.badgeReady,muted:ve.badgeMuted},y=(h==null?void 0:h.chain)==="ETH"?h.stEthBalanceWeiHuman:(h==null?void 0:h.chain)==="SOL"?h.positions.reduce((A,z)=>A+(parseFloat(z.lamportsHuman)||0),0).toString():"0",b=a==="ETH"?"stETH":"SOL",N=(h==null?void 0:h.chain)==="ETH"&&(parseFloat(h.stEthBalanceWeiHuman)||0)<1e-11&&h.withdrawalRequests.length===0,S=(h==null?void 0:h.chain)==="SOL"&&h.positions.length===0,w=N||S;return console.log(w,h==null?void 0:h.chain,h),s.jsx("div",{className:ve.panel,children:s.jsxs("div",{className:ve.inner,children:[s.jsxs("div",{className:ve.head,children:[s.jsx("span",{className:ve.title,children:"Мои позиции"}),s.jsxs("div",{className:ve.total,children:[ot(m?"0":y,6)," ",s.jsx("span",{className:ve.totalUnit,children:b})]})]}),s.jsxs("div",{className:ve.body,children:[!g&&!m&&!w&&s.jsx(K_,{compact:!0}),g&&s.jsx(su,{label:"Загрузка позиций"}),m&&s.jsx("div",{className:ve.empty,children:Xc(p)}),!g&&!m&&(w||(h==null?void 0:h.chain)==="ETH"&&(parseFloat(h.stEthBalanceWeiHuman)||0)<1e-14)&&s.jsxs("div",{className:ve.emptyState,children:[s.jsx("span",{className:ve.emptyIcon,"aria-hidden":!0,children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M3 7.5 12 3l9 4.5-9 4.5z"}),s.jsx("path",{d:"M3 12.5 12 17l9-4.5"}),s.jsx("path",{d:"M3 16.5 12 21l9-4.5"})]})}),s.jsx("p",{className:ve.emptyTitle,children:"Активных позиций пока нет"}),s.jsx("p",{className:ve.emptyText,children:"На данный момент у Вас нет активных позиций стейкинга."})]}),!m&&(h==null?void 0:h.chain)==="ETH"&&!w&&s.jsxs(s.Fragment,{children:[(parseFloat(h.stEthBalanceWeiHuman)||0)>1e-14&&s.jsx("div",{className:ve.list,children:s.jsxs("div",{className:`${ve.pos} ${h.optimistic?ve.pending:""}`,children:[s.jsxs("div",{className:ve.posTop,children:[s.jsxs("span",{className:ve.coin,children:[s.jsx(Wn,{letter:"E",color:"var(--grad-center)",logo:it.ETH,size:24}),"stETH"]}),s.jsxs("span",{className:`${ve.badge} ${ve.badgeActive}`,children:["Активна",h.aprPercent!=null?` · APR ${h.aprPercent}%`:""]})]}),s.jsx("div",{className:ve.amount,children:ot(h.stEthBalanceWeiHuman,8)}),s.jsx("button",{className:ve.btn,onClick:()=>i(h.stEthBalanceWeiHuman),disabled:d,children:"Вывести"})]})}),(parseFloat((C=h.withdrawalRequests[0])==null?void 0:C.amountStEthWeiHuman)||0)>1e-14&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:ve.subhead,children:"Заявки на вывод"}),s.jsx("div",{className:ve.list,children:h.withdrawalRequests.map(A=>{const z=A.isFinalized&&!A.isClaimed;return s.jsxs("div",{className:`${ve.pos} ${z?ve.reqCard:""}`,children:[s.jsxs("div",{className:ve.posTop,children:[s.jsxs("span",{className:ve.coin,children:["Заявка #",A.requestId]}),s.jsx("span",{className:`${ve.badge} ${A.isClaimed?ve.badgeMuted:z?ve.badgeReady:ve.badgeMuted}`,children:A.isClaimed?"Выведено":z?"Готово к выводу":"В очереди"})]}),s.jsxs("div",{className:ve.amount,children:[ot(A.amountStEthWeiHuman,8)," ETH"]}),z?s.jsx("button",{className:`${ve.btn} ${ve.btnPrimary}`,onClick:()=>r(A.requestId),disabled:f,children:"Забрать ETH"}):A.isClaimed?null:s.jsx("div",{className:ve.note,children:"Ожидает финализации в Lido"})]},A.requestId)})})]})]}),!m&&(h==null?void 0:h.chain)==="SOL"&&!w&&s.jsx("div",{className:ve.list,children:h.positions.map(A=>{const z=JO[A.state];return s.jsxs("div",{className:`${ve.pos} ${A.optimistic?ve.pending:""}`,children:[s.jsxs("div",{className:ve.posTop,children:[s.jsxs("span",{className:ve.coin,children:[s.jsx(Wn,{letter:"S",color:"var(--grad-center)",logo:it.SOL,size:24}),"SOL"]}),s.jsx("span",{className:`${ve.badge} ${v[z.variant]}`,children:z.label})]}),s.jsx("div",{className:ve.amount,children:ot(A.lamportsHuman,8)}),s.jsxs("div",{className:ve.meta,children:["Валидатор: ",A.validator," · ",A.stakeAccount]}),A.state==="active"&&s.jsx("button",{className:ve.btn,onClick:()=>c(A),disabled:d,children:"Вывести"}),A.state==="inactive"&&s.jsx("button",{className:`${ve.btn} ${ve.btnPrimary}`,onClick:()=>c(A),disabled:d,children:"Вывести средства"}),A.state==="deactivating"&&s.jsx("div",{className:ve.note,children:"Разблокируется через 12 эпохи"}),A.state==="activating"&&s.jsx("div",{className:ve.note,children:"Активируется…"})]},A.stakeAccount)})})]})]})})}const Rz="_overlay_17qoe_1",Az="_card_17qoe_13",Lz="_header_17qoe_25",Oz="_title_17qoe_31",Mz="_closeBtn_17qoe_37",zz="_token_17qoe_52",Dz="_tokenLabel_17qoe_62",kz="_tokenAmount_17qoe_70",Bz="_modes_17qoe_77",$z="_mode_17qoe_77",Uz="_modeActive_17qoe_101",Hz="_modeTitle_17qoe_106",qz="_modeDesc_17qoe_112",Fz="_solNote_17qoe_118",Gz="_confirmBtn_17qoe_125",Ot={overlay:Rz,card:Az,header:Lz,title:Oz,closeBtn:Mz,token:zz,tokenLabel:Dz,tokenAmount:kz,modes:Bz,mode:$z,modeActive:Uz,modeTitle:Hz,modeDesc:qz,solNote:Fz,confirmBtn:Gz};function c3({chain:a,symbol:i,amount:c,solState:r,pending:d,onConfirm:f,onClose:h}){const[g,m]=j.useState("swap");j.useEffect(()=>{function b(N){N.key==="Escape"&&h()}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[h]);const p=a==="SOL"&&r==="inactive",v=d?"Отправка…":a==="ETH"?"Подтвердить вывод":p?"Вывести средства":"Запустить деактивацию",y=a==="SOL"||a==="ETH"&&g==="queue";return s.jsx("div",{className:Ot.overlay,onClick:h,children:s.jsxs("div",{className:Ot.card,onClick:b=>b.stopPropagation(),children:[s.jsxs("div",{className:Ot.header,children:[s.jsx("span",{className:Ot.title,children:"Вывод из стейкинга"}),s.jsx("button",{className:Ot.closeBtn,onClick:h,children:"×"})]}),s.jsxs("div",{className:Ot.token,children:[s.jsx("span",{className:Ot.tokenLabel,children:"Сумма"}),s.jsxs("span",{className:Ot.tokenAmount,children:[c," ",a==="ETH"?"stETH":i]})]}),a==="ETH"&&s.jsxs("div",{className:Ot.modes,children:[s.jsxs("button",{className:`${Ot.mode} ${g==="swap"?Ot.modeActive:""}`,onClick:()=>m("swap"),children:[s.jsx("span",{className:Ot.modeTitle,children:"Мгновенно"}),s.jsx("span",{className:Ot.modeDesc,children:"Своп stETH → ETH через Curve"})]}),s.jsxs("button",{className:`${Ot.mode} ${g==="queue"?Ot.modeActive:""}`,onClick:()=>m("queue"),children:[s.jsx("span",{className:Ot.modeTitle,children:"Очередь"}),s.jsx("span",{className:Ot.modeDesc,children:"Заявка в Lido Withdrawal Queue"})]})]}),a==="SOL"&&!p&&s.jsx("p",{className:Ot.solNote,children:"Средства разблокируются через 12 эпохи. После завершения вернитесь и подтвердите вывод."}),y&&s.jsx(K_,{}),s.jsx("button",{className:Ot.confirmBtn,onClick:()=>f(a==="ETH"?g:void 0),disabled:d,children:v})]})})}const Vz="_widget_wxtkp_1",Qz="_grid_wxtkp_7",r3={widget:Vz,grid:Qz};function Pz(){const[a,i]=j.useState("ETH"),[c,r]=j.useState(""),[d,f]=j.useState(null),[h,g]=j.useState(null),m=gM(),p=vM(),v=yM();function y(w){i(w),r("")}function b(w){m.mutate({chain:a,amountHuman:w},{onSuccess:()=>{g({status:"success",message:`Стейкинг ${ot(w,6)} ${Y_[a].symbol} выполнен`}),r("")},onError:C=>g({status:"error",message:Xc(C)})})}function N(w){if((d==null?void 0:d.kind)==="eth"){const C=w??"swap";p.mutate({chain:"ETH",amountHuman:d.amount,mode:C},{onSuccess:()=>{f(null),g({status:"success",message:C==="queue"?"Заявка на вывод добавлена в очередь Lido":"Вывод stETH → ETH выполнен"})},onError:A=>g({status:"error",message:Xc(A)})})}else(d==null?void 0:d.kind)==="sol"&&p.mutate({chain:"SOL",stakeAccount:d.position.stakeAccount},{onSuccess:C=>{f(null);const A="action"in C&&C.action==="withdraw";g({status:"success",message:A?"Средства выведены на кошелёк":"Деактивация запущена — вывод через 12 эпохи"})},onError:C=>g({status:"error",message:Xc(C)})})}function S(w){v.mutate(w,{onSuccess:()=>g({status:"success",message:"ETH забран на кошелёк"}),onError:C=>g({status:"error",message:Xc(C)})})}return s.jsxs("div",{className:r3.widget,children:[s.jsx(aM,{value:a,onChange:y}),s.jsxs("div",{className:r3.grid,children:[s.jsx(KM,{chain:a,amount:c,onAmountChange:r,onStake:b,isStaking:m.isPending}),s.jsx(Ez,{chain:a,onUnstakeEth:w=>f({kind:"eth",amount:w}),onUnstakeSol:w=>f({kind:"sol",position:w}),onClaim:S,unstakePending:p.isPending,claimPending:v.isPending})]}),(d==null?void 0:d.kind)==="eth"&&s.jsx(c3,{chain:"ETH",symbol:"ETH",amount:d.amount,pending:p.isPending,onConfirm:N,onClose:()=>f(null)}),(d==null?void 0:d.kind)==="sol"&&s.jsx(c3,{chain:"SOL",symbol:"SOL",amount:d.position.lamportsHuman,solState:d.position.state,pending:p.isPending,onConfirm:N,onClose:()=>f(null)}),h&&s.jsx(Ss,{status:h.status,message:h.message,onClose:()=>g(null)})]})}const Iz="_page_1j4fk_1",Yz="_head_1j4fk_8",Xz="_title_1j4fk_12",Kz="_subtitle_1j4fk_19",ko={page:Iz,head:Yz,title:Xz,subtitle:Kz};function Zz(){return s.jsxs("div",{className:ko.page,children:[s.jsxs("header",{className:ko.head,children:[s.jsx("h1",{className:ko.title,children:"Стейкинг"}),s.jsx("p",{className:ko.subtitle,children:"Зарабатывайте на хранении ETH и SOL. Комиссия сервиса — 0.7%."})]}),s.jsx(Pz,{})]})}const Z_="https://app.cryptowallet.elcsa.ru";async function V2(a,i=!0){const c=await rn(),r=Rt.get(),d=await fetch(`${Z_}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await rs(),V2(a,!1)}catch{throw Rt.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function uu(a,i,c=!0,r={}){const d=await rn(),f=Rt.get(),h=await fetch(`${Z_}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(h.status===401&&c)try{return await rs(),uu(a,i,!1,r)}catch{throw Rt.clear(),new Error("Unauthorized")}const g=await h.json();if(!h.ok)throw g;return g}function W_(){return{"Idempotency-Key":crypto.randomUUID()}}async function Wz(){return(await V2("/api/wallets/ETH/lp/pools")).data}function J_(a){const{pool:i,amount0Human:c,amount1Human:r,priceLower:d,priceUpper:f,slippageBps:h,useNativeEth:g}=a;return{pool:i.poolAddress,priceLower:d,priceUpper:f,amount0Desired:cs(c||"0",i.decimals0),amount1Desired:cs(r||"0",i.decimals1),...h!=null?{slippageBps:h}:{},...g!=null?{useNativeEth:g}:{}}}async function Jz(a){return(await uu("/api/wallets/ETH/lp/quote",J_(a))).data}async function eD(a){return(await uu("/api/wallets/ETH/lp/add",J_(a),!0,W_())).data}async function tD(a,i=100){return(await uu("/api/wallets/ETH/lp/remove",{tokenId:a,percent:i},!0,W_())).data}async function nD(){return(await V2("/api/wallets/ETH/lp/positions")).data}function Bo(a){if(a&&typeof a=="object"&&"error"in a){const i=a.error;if(typeof i=="string")return i}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — войдите снова.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function sD(){return St({queryKey:["pools","list"],queryFn:Wz,staleTime:3e4,retry:!1})}function aD(){return St({queryKey:["pools","positions"],queryFn:nD,staleTime:3e4,retry:!1})}function lD(a){const i=a!=null&&a.priceLower>0&&a.priceUpper>0&&(parseFloat(a.amount0Human)>0||parseFloat(a.amount1Human)>0);return St({queryKey:["pools","quote",a==null?void 0:a.pool.poolAddress,a==null?void 0:a.priceLower,a==null?void 0:a.priceUpper,a==null?void 0:a.amount0Human,a==null?void 0:a.amount1Human,a==null?void 0:a.slippageBps,a==null?void 0:a.useNativeEth],queryFn:()=>Jz(a),enabled:i,staleTime:15e3,retry:!1})}function iD(){const a=Wt();return mt({mutationFn:i=>eD(i),onSettled:()=>{a.invalidateQueries({queryKey:["wallet","balance","ETH"]}),setTimeout(()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})},6e3)}})}function cD(){const a=Wt();return mt({mutationFn:({tokenId:i,percent:c})=>tD(i,c),onSuccess:()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}function Rl(a){return it[{WETH:"ETH",WBTC:"BTC"}[a]??a]}function du(a){return`${a/1e4}%`}const rD="_card_qsmby_1",oD="_head_qsmby_8",uD="_title_qsmby_12",dD="_scroll_qsmby_20",fD="_message_qsmby_24",hD="_table_qsmby_31",mD="_thLeft_qsmby_48",pD="_row_qsmby_52",_D="_rowSelected_qsmby_53",gD="_tdLeft_qsmby_75",vD="_tdAction_qsmby_79",yD="_mono_qsmby_83",xD="_apr_qsmby_87",bD="_pair_qsmby_92",jD="_icons_qsmby_98",SD="_pairName_qsmby_108",ND="_fee_qsmby_113",wD="_btn_qsmby_123",CD="_btnSelected_qsmby_124",ht={card:rD,head:oD,title:uD,scroll:dD,message:fD,table:hD,thLeft:mD,row:pD,rowSelected:_D,tdLeft:gD,tdAction:vD,mono:yD,apr:xD,pair:bD,icons:jD,pairName:SD,fee:ND,btn:wD,btnSelected:CD},eg="—";function o3(a){return a==null?eg:a>=1e6?`$${(a/1e6).toFixed(2)}M`:a>=1e3?`$${(a/1e3).toFixed(2)}K`:`$${a.toFixed(2)}`}function TD(a){return a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function ED({symbol0:a,symbol1:i}){return s.jsxs("span",{className:ht.pair,children:[s.jsxs("span",{className:ht.icons,children:[s.jsx(Wn,{letter:a[0],color:"var(--grad-center)",logo:Rl(a),size:24}),s.jsx(Wn,{letter:i[0],color:"var(--grad-edge)",logo:Rl(i),size:24})]}),s.jsxs("span",{className:ht.pairName,children:[a,"/",i]})]})}function RD({pools:a,selected:i,onSelect:c,loading:r,error:d}){return s.jsxs("div",{className:ht.card,children:[s.jsx("div",{className:ht.head,children:s.jsx("span",{className:ht.title,children:"Курируемые пулы"})}),r&&s.jsx(su,{label:"Загрузка пулов"}),!r&&d&&s.jsx("div",{className:ht.message,children:d}),!r&&!d&&a.length===0&&s.jsx("div",{className:ht.message,children:"Курируемых пулов пока нет."}),!r&&!d&&a.length>0&&s.jsx("div",{className:ht.scroll,children:s.jsxs("table",{className:ht.table,children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{className:ht.thLeft,children:"Пул"}),s.jsx("th",{children:"Комиссия"}),s.jsx("th",{children:"Цена"}),s.jsx("th",{children:"TVL"}),s.jsx("th",{children:"Объём 24ч"}),s.jsx("th",{children:"APR"}),s.jsx("th",{"aria-label":"Действие"})]})}),s.jsx("tbody",{children:a.map(f=>{const h=f.poolAddress===i;return s.jsxs("tr",{className:h?ht.rowSelected:ht.row,onClick:()=>c(f.poolAddress),children:[s.jsx("td",{className:ht.tdLeft,children:s.jsx(ED,{symbol0:f.symbol0,symbol1:f.symbol1})}),s.jsx("td",{children:s.jsx("span",{className:ht.fee,children:du(f.feeTier)})}),s.jsx("td",{className:ht.mono,children:TD(f.currentPrice)}),s.jsx("td",{className:ht.mono,children:o3(f.tvlUSD)}),s.jsx("td",{className:ht.mono,children:o3(f.volumeUSD24h)}),s.jsx("td",{className:`${ht.mono} ${ht.apr}`,children:f.aprPercent!=null?`${f.aprPercent}%`:eg}),s.jsx("td",{className:ht.tdAction,children:s.jsx("button",{type:"button",className:h?ht.btnSelected:ht.btn,onClick:g=>{g.stopPropagation(),c(f.poolAddress)},children:h?"Выбран":"Выбрать"})})]},f.poolAddress)})})]})})]})}const AD="_card_qmcpx_1",LD="_top_qmcpx_8",OD="_pair_qmcpx_16",MD="_icons_qmcpx_25",zD="_fee_qmcpx_34",DD="_tag_qmcpx_43",kD="_amounts_qmcpx_53",BD="_amountRow_qmcpx_60",$D="_amountInput_qmcpx_71",UD="_token_qmcpx_87",HD="_range_qmcpx_97",qD="_priceField_qmcpx_104",FD="_slippage_qmcpx_105",GD="_priceLabel_qmcpx_115",VD="_priceInput_qmcpx_121",QD="_options_qmcpx_137",PD="_toggle_qmcpx_149",ID="_quote_qmcpx_165",YD="_quoteRow_qmcpx_172",XD="_quoteLabel_qmcpx_185",KD="_quoteValue_qmcpx_190",ZD="_success_qmcpx_198",WD="_warning_qmcpx_202",JD="_submit_qmcpx_210",ek="_placeholder_qmcpx_215",tk="_placeholderIcon_qmcpx_227",nk="_placeholderTitle_qmcpx_239",sk="_placeholderText_qmcpx_246",Ce={card:AD,top:LD,pair:OD,icons:MD,fee:zD,tag:DD,amounts:kD,amountRow:BD,amountInput:$D,token:UD,range:HD,priceField:qD,slippage:FD,priceLabel:GD,priceInput:VD,options:QD,toggle:PD,quote:ID,quoteRow:YD,quoteLabel:XD,quoteValue:KD,success:ZD,warning:WD,submit:JD,placeholder:ek,placeholderIcon:tk,placeholderTitle:nk,placeholderText:sk},$o="—",Q2=/^(\d+\.?\d*|\.?\d*)$/;function u3({symbol:a,value:i,color:c,onChange:r}){return s.jsxs("div",{className:Ce.amountRow,children:[s.jsx("input",{className:Ce.amountInput,type:"text",inputMode:"decimal",value:i,onChange:d=>{const f=d.target.value;(Q2.test(f)||f==="")&&r(f)},placeholder:"0","aria-label":`Сумма ${a}`}),s.jsxs("div",{className:Ce.token,children:[s.jsx(Wn,{letter:a[0],color:c,logo:Rl(a),size:28}),s.jsx("span",{children:a})]})]})}function d3({label:a,value:i,onChange:c}){return s.jsxs("label",{className:Ce.priceField,children:[s.jsx("span",{className:Ce.priceLabel,children:a}),s.jsx("input",{className:Ce.priceInput,type:"text",inputMode:"decimal",value:i,onChange:r=>{const d=r.target.value;(Q2.test(d)||d==="")&&c(d)},placeholder:"0"})]})}function ak({pool:a,quote:i,quoteFetching:c,pending:r,amount0:d,amount1:f,priceLower:h,priceUpper:g,slippage:m,useNativeEth:p,onAmount0Change:v,onAmount1Change:y,onPriceLowerChange:b,onPriceUpperChange:N,onSlippageChange:S,onUseNativeEthChange:w,onSubmit:C}){if(!a)return s.jsx("div",{className:Ce.card,children:s.jsxs("div",{className:Ce.placeholder,children:[s.jsx("span",{className:Ce.placeholderIcon,"aria-hidden":!0,children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"9",cy:"9",r:"5"}),s.jsx("circle",{cx:"15",cy:"15",r:"5"})]})}),s.jsx("p",{className:Ce.placeholderTitle,children:"Выберите пул"}),s.jsx("p",{className:Ce.placeholderText,children:"Выберите пул в таблице выше, чтобы внести ликвидность."})]})});const A=i==null?void 0:i.balance,z=(A==null?void 0:A.sufficient)===!1,M=(i==null?void 0:i.aprPercent)!=null?`${i.aprPercent}%`:$o,U=(i==null?void 0:i.appFeeTotalUsd)!=null?`$${i.appFeeTotalUsd.toFixed(2)}`:$o,I=i?ot(i.amount0DesiredHuman,8):$o,K=i?ot(i.amount1DesiredHuman,8):$o,B=A&&A.token1.sufficient===!1?A.token1:A==null?void 0:A.token0,P=!!i&&!z&&!r;return s.jsxs("div",{className:Ce.card,children:[s.jsxs("div",{className:Ce.top,children:[s.jsxs("span",{className:Ce.pair,children:[s.jsxs("span",{className:Ce.icons,children:[s.jsx(Wn,{letter:a.symbol0[0],color:"var(--grad-center)",logo:Rl(a.symbol0),size:24}),s.jsx(Wn,{letter:a.symbol1[0],color:"var(--grad-edge)",logo:Rl(a.symbol1),size:24})]}),a.symbol0,"/",a.symbol1]}),s.jsx("span",{className:Ce.fee,children:du(a.feeTier)})]}),s.jsx("span",{className:Ce.tag,children:"Суммы взноса"}),s.jsxs("div",{className:Ce.amounts,children:[s.jsx(u3,{symbol:a.symbol0,value:d,color:"var(--grad-center)",onChange:v}),s.jsx(u3,{symbol:a.symbol1,value:f,color:"var(--grad-edge)",onChange:y})]}),s.jsxs("span",{className:Ce.tag,children:["Диапазон цен (",a.symbol1," за ",a.symbol0,")"]}),s.jsxs("div",{className:Ce.range,children:[s.jsx(d3,{label:"Мин.",value:h,onChange:b}),s.jsx(d3,{label:"Макс.",value:g,onChange:N})]}),s.jsxs("div",{className:Ce.options,children:[s.jsxs("label",{className:Ce.slippage,children:[s.jsx("span",{className:Ce.priceLabel,children:"Проскальзывание, %"}),s.jsx("input",{className:Ce.priceInput,type:"text",inputMode:"decimal",value:m,onChange:ne=>{const ce=ne.target.value;(Q2.test(ce)||ce==="")&&S(ce)},placeholder:"1"})]}),s.jsxs("label",{className:Ce.toggle,children:[s.jsx("input",{type:"checkbox",checked:p,onChange:ne=>w(ne.target.checked)}),s.jsx("span",{children:"Использовать нативный ETH"})]})]}),s.jsxs("div",{className:Ce.quote,"data-loading":c?"true":void 0,children:[s.jsxs("div",{className:Ce.quoteRow,children:[s.jsxs("span",{className:Ce.quoteLabel,children:["Взнос ",a.symbol0]}),s.jsx("span",{className:Ce.quoteValue,children:I})]}),s.jsxs("div",{className:Ce.quoteRow,children:[s.jsxs("span",{className:Ce.quoteLabel,children:["Взнос ",a.symbol1]}),s.jsx("span",{className:Ce.quoteValue,children:K})]}),s.jsxs("div",{className:Ce.quoteRow,children:[s.jsx("span",{className:Ce.quoteLabel,children:"Комиссия сервиса (0.7%)"}),s.jsx("span",{className:Ce.quoteValue,children:U})]}),s.jsxs("div",{className:Ce.quoteRow,children:[s.jsx("span",{className:Ce.quoteLabel,children:"Годовая доходность (APR)"}),s.jsx("span",{className:`${Ce.quoteValue} ${Ce.success}`,children:M})]})]}),z&&s.jsxs("p",{className:Ce.warning,children:["Недостаточно средств",B?`: не хватает ${B.symbol}`:"",". Пополните баланс."]}),s.jsx("div",{className:Ce.submit,children:s.jsx(Zn,{label:r?"Отправка…":"Внести в пул",type:"button",onClick:C,disabled:!P})})]})}const lk="_panel_morh3_1",ik="_inner_morh3_8",ck="_body_morh3_15",rk="_head_morh3_41",ok="_title_morh3_47",uk="_total_morh3_55",dk="_totalUnit_morh3_61",fk="_list_morh3_66",hk="_message_morh3_72",mk="_pos_morh3_79",pk="_posTop_morh3_86",_k="_coin_morh3_94",gk="_icons_morh3_103",vk="_fee_morh3_112",yk="_badge_morh3_121",xk="_badgeActive_morh3_129",bk="_badgeWarn_morh3_134",jk="_rows_morh3_139",Sk="_row_morh3_139",Nk="_label_morh3_153",wk="_value_morh3_158",Ck="_success_morh3_166",Tk="_btn_morh3_170",Ek="_emptyState_morh3_193",Rk="_emptyIcon_morh3_205",Ak="_emptyTitle_morh3_217",Lk="_emptyText_morh3_224",ke={panel:lk,inner:ik,body:ck,head:rk,title:ok,total:uk,totalUnit:dk,list:fk,message:hk,pos:mk,posTop:pk,coin:_k,icons:gk,fee:vk,badge:yk,badgeActive:xk,badgeWarn:bk,rows:jk,row:Sk,label:Nk,value:wk,success:Ck,btn:Tk,emptyState:Ek,emptyIcon:Rk,emptyTitle:Ak,emptyText:Lk};function Ok({positions:a,onRemove:i,removePending:c,isLoading:r,error:d}){const f=a.length===0;return s.jsx("div",{className:ke.panel,children:s.jsxs("div",{className:ke.inner,children:[s.jsxs("div",{className:ke.head,children:[s.jsx("span",{className:ke.title,children:"Мои позиции"}),s.jsxs("div",{className:ke.total,children:[a.length," ",s.jsx("span",{className:ke.totalUnit,children:"NFT"})]})]}),s.jsxs("div",{className:ke.body,children:[r&&s.jsx(su,{label:"Загрузка позиций"}),!r&&d&&s.jsx("div",{className:ke.message,children:d}),!r&&!d&&f&&s.jsxs("div",{className:ke.emptyState,children:[s.jsx("span",{className:ke.emptyIcon,"aria-hidden":!0,children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"9",cy:"9",r:"5"}),s.jsx("circle",{cx:"15",cy:"15",r:"5"})]})}),s.jsx("p",{className:ke.emptyTitle,children:"Активных позиций пока нет"}),s.jsx("p",{className:ke.emptyText,children:"На данный момент у Вас нет позиций в пулах ликвидности."})]}),!r&&!d&&!f&&s.jsx("div",{className:ke.list,children:a.map(h=>s.jsxs("div",{className:ke.pos,children:[s.jsxs("div",{className:ke.posTop,children:[s.jsxs("span",{className:ke.coin,children:[s.jsxs("span",{className:ke.icons,children:[s.jsx(Wn,{letter:h.symbol0[0],color:"var(--grad-center)",logo:Rl(h.symbol0),size:24}),s.jsx(Wn,{letter:h.symbol1[0],color:"var(--grad-edge)",logo:Rl(h.symbol1),size:24})]}),h.symbol0,"/",h.symbol1,s.jsx("span",{className:ke.fee,children:du(h.feeTier)})]}),s.jsx("span",{className:`${ke.badge} ${h.inRange?ke.badgeActive:ke.badgeWarn}`,children:h.inRange?"В диапазоне":"Вне диапазона ⚠️"})]}),s.jsxs("div",{className:ke.rows,children:[s.jsxs("div",{className:ke.row,children:[s.jsx("span",{className:ke.label,children:"Диапазон цен"}),s.jsxs("span",{className:ke.value,children:[h.priceLower," ",h.priceUpper]})]}),s.jsxs("div",{className:ke.row,children:[s.jsx("span",{className:ke.label,children:h.symbol0}),s.jsx("span",{className:ke.value,children:ot(h.currentAmount0Human,8)})]}),s.jsxs("div",{className:ke.row,children:[s.jsx("span",{className:ke.label,children:h.symbol1}),s.jsx("span",{className:ke.value,children:ot(h.currentAmount1Human,8)})]}),s.jsxs("div",{className:ke.row,children:[s.jsx("span",{className:ke.label,children:"Комиссии к выводу"}),s.jsxs("span",{className:`${ke.value} ${ke.success}`,children:[ot(h.feesOwed0Human,8)," ",h.symbol0," · ",ot(h.feesOwed1Human,8)," ",h.symbol1]})]})]}),s.jsx("button",{className:ke.btn,onClick:()=>i(h.tokenId),disabled:c,children:"Вывести"})]},h.tokenId))})]})]})})}const Mk="_overlay_mbhaz_1",zk="_card_mbhaz_13",Dk="_header_mbhaz_25",kk="_title_mbhaz_31",Bk="_closeBtn_mbhaz_37",$k="_token_mbhaz_52",Uk="_tokenLabel_mbhaz_62",Hk="_tokenAmount_mbhaz_70",qk="_tokenMeta_mbhaz_77",Fk="_modes_mbhaz_83",Gk="_mode_mbhaz_83",Vk="_modeActive_mbhaz_107",Qk="_note_mbhaz_112",Pk="_confirmBtn_mbhaz_119",yn={overlay:Mk,card:zk,header:Dk,title:kk,closeBtn:Bk,token:$k,tokenLabel:Uk,tokenAmount:Hk,tokenMeta:qk,modes:Fk,mode:Gk,modeActive:Vk,note:Qk,confirmBtn:Pk},Ik=[25,50,100];function Yk({position:a,pending:i,onConfirm:c,onClose:r}){const[d,f]=j.useState(100);return j.useEffect(()=>{function h(g){g.key==="Escape"&&r()}return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[r]),s.jsx("div",{className:yn.overlay,onClick:r,children:s.jsxs("div",{className:yn.card,onClick:h=>h.stopPropagation(),children:[s.jsxs("div",{className:yn.header,children:[s.jsx("span",{className:yn.title,children:"Вывод ликвидности"}),s.jsx("button",{className:yn.closeBtn,onClick:r,children:"×"})]}),s.jsxs("div",{className:yn.token,children:[s.jsx("span",{className:yn.tokenLabel,children:"Позиция"}),s.jsxs("span",{className:yn.tokenAmount,children:[a.symbol0,"/",a.symbol1]}),s.jsxs("span",{className:yn.tokenMeta,children:[du(a.feeTier)," · #",a.tokenId]})]}),s.jsx("div",{className:yn.modes,children:Ik.map(h=>s.jsxs("button",{className:`${yn.mode} ${d===h?yn.modeActive:""}`,onClick:()=>f(h),children:[h,"%"]},h))}),d===100&&s.jsx("p",{className:yn.note,children:"При выводе 100% позиция (NFT) будет сожжена."}),s.jsx("button",{className:yn.confirmBtn,onClick:()=>c(d),disabled:i,children:i?"Отправка…":"Подтвердить вывод"})]})})}const Xk="_widget_q8g10_1",Kk="_grid_q8g10_7",f3={widget:Xk,grid:Kk},h3=.05;function Zk(){var Te;const a=sD(),i=aD(),c=iD(),r=cD(),d=a.data??[],f=((Te=i.data)==null?void 0:Te.positions)??[],[h,g]=j.useState(null),[m,p]=j.useState(""),[v,y]=j.useState(""),[b,N]=j.useState(""),[S,w]=j.useState(""),[C,A]=j.useState("1"),[z,M]=j.useState(!0),[U,I]=j.useState(null),[K,B]=j.useState(null),P=d.find(_e=>_e.poolAddress===h)??null;function ne(_e){g(_e);const R=d.find(G=>G.poolAddress===_e);R&&(N((R.currentPrice*(1-h3)).toFixed(2)),w((R.currentPrice*(1+h3)).toFixed(2))),p(""),y("")}const ce=js(m,400),ue=js(v,400),he=js(b,400),ae=js(S,400),pe=js(C,400),re=j.useMemo(()=>{if(!P)return null;const _e=parseFloat(pe);return{pool:P,amount0Human:ce,amount1Human:ue,priceLower:parseFloat(he)||0,priceUpper:parseFloat(ae)||0,slippageBps:Number.isFinite(_e)?Math.round(_e*100):void 0,useNativeEth:z}},[P,ce,ue,he,ae,pe,z]),q=lD(re);function Y(){if(!P)return;const _e=parseFloat(C),R={pool:P,amount0Human:m,amount1Human:v,priceLower:parseFloat(b)||0,priceUpper:parseFloat(S)||0,slippageBps:Number.isFinite(_e)?Math.round(_e*100):void 0,useNativeEth:z};c.mutate(R,{onSuccess:()=>{B({status:"success",message:`Депозит в пул ${P.symbol0}/${P.symbol1} выполнен`}),p(""),y("")},onError:G=>B({status:"error",message:Bo(G)})})}function ie(_e){U&&r.mutate({tokenId:U.tokenId,percent:_e},{onSuccess:()=>{I(null),B({status:"success",message:"Ликвидность выведена на кошелёк"})},onError:R=>B({status:"error",message:Bo(R)})})}return s.jsxs("div",{className:f3.widget,children:[s.jsx(RD,{pools:d,selected:h,onSelect:ne,loading:a.isLoading,error:a.isError?Bo(a.error):null}),s.jsxs("div",{className:f3.grid,children:[s.jsx(ak,{pool:P,quote:q.data,quoteFetching:q.isFetching,pending:c.isPending,amount0:m,amount1:v,priceLower:b,priceUpper:S,slippage:C,useNativeEth:z,onAmount0Change:p,onAmount1Change:y,onPriceLowerChange:N,onPriceUpperChange:w,onSlippageChange:A,onUseNativeEthChange:M,onSubmit:Y}),s.jsx(Ok,{positions:f,onRemove:_e=>I(f.find(R=>R.tokenId===_e)??null),removePending:r.isPending,isLoading:i.isLoading,error:i.isError?Bo(i.error):null})]}),U&&s.jsx(Yk,{position:U,pending:r.isPending,onConfirm:ie,onClose:()=>I(null)}),K&&s.jsx(Ss,{status:K.status,message:K.message,onClose:()=>B(null)})]})}const Wk="_page_1j4fk_1",Jk="_head_1j4fk_8",eB="_title_1j4fk_12",tB="_subtitle_1j4fk_19",Uo={page:Wk,head:Jk,title:eB,subtitle:tB};function nB(){return s.jsxs("div",{className:Uo.page,children:[s.jsxs("header",{className:Uo.head,children:[s.jsx("h1",{className:Uo.title,children:"Пулы"}),s.jsx("p",{className:Uo.subtitle,children:"Ликвидность в пулах Uniswap v3 (ETH). Комиссия сервиса на депозит — 0.7%."})]}),s.jsx(Zk,{})]})}const sB="_page_uz94v_1",aB="_main_uz94v_8",lB="_center_uz94v_13",Ho={page:sB,main:aB,center:lB};function m3({footer:a=!1,center:i=!1}){return s.jsxs("div",{className:Ho.page,children:[s.jsx(cu,{}),s.jsx("main",{className:i?`${Ho.main} ${Ho.center}`:Ho.main,children:s.jsx(R2,{})}),a&&s.jsx(Al,{})]})}function iB(){const{pathname:a}=Bn();return j.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function cB(){const{isAuthenticated:a,isLoading:i}=f_(),c=Bn();return i?null:a?s.jsx(R2,{}):s.jsx(tu,{to:de.LOGIN,state:{from:c},replace:!0})}function rB(){var d,f;const{isAuthenticated:a,isLoading:i}=f_(),r=((f=(d=Bn().state)==null?void 0:d.from)==null?void 0:f.pathname)??de.WALLET;return i?null:a?s.jsx(tu,{to:r,replace:!0}):s.jsx(R2,{})}function oB(){return s.jsxs(n4,{children:[s.jsx(iB,{}),s.jsxs(Ox,{children:[s.jsx(Je,{path:de.HOME,element:s.jsx(n8,{})}),s.jsx(Je,{path:de.PUBLICHNAYA_OFERTA,element:s.jsx(WA,{})}),s.jsx(Je,{path:de.POLITIKA_PERSONALNYH_DANNYH,element:s.jsx(fL,{})}),s.jsx(Je,{path:de.POLITIKA_COOKIE,element:s.jsx(SL,{})}),s.jsx(Je,{path:de.SOGLASIE_PERSONALNYH_DANNYH,element:s.jsx(DL,{})}),s.jsx(Je,{path:de.REESTR_PD_RKN,element:s.jsx(IL,{})}),s.jsx(Je,{path:de.REGISTER_TEST,element:s.jsx($E,{})}),s.jsx(Je,{path:de.CONVERTER_TEST,element:s.jsx(eR,{})}),s.jsxs(Je,{element:s.jsx(rB,{}),children:[s.jsx(Je,{path:de.LOGIN,element:s.jsx(HT,{})}),s.jsx(Je,{path:de.REGISTER,element:s.jsx(_E,{})}),s.jsx(Je,{path:de.RESTORE_PASSWORD,element:s.jsx(FA,{})})]}),s.jsxs(Je,{element:s.jsx(cB,{}),children:[s.jsx(Je,{element:s.jsx(m3,{footer:!0,center:!0}),children:s.jsx(Je,{path:de.CONVERTER,element:s.jsx(UR,{})})}),s.jsxs(Je,{element:s.jsx(m3,{footer:!0}),children:[s.jsx(Je,{path:de.SWAP,element:s.jsx(qw,{})}),s.jsx(Je,{path:de.BRIDGE,element:s.jsx(_C,{})}),s.jsx(Je,{path:de.TRANSACTIONS,element:s.jsx(ZO,{})}),s.jsx(Je,{path:de.STAKING,element:s.jsx(Zz,{})}),s.jsx(Je,{path:de.POOLS,element:s.jsx(nB,{})})]}),s.jsx(Je,{path:de.WALLET,element:s.jsx(zp,{})}),s.jsx(Je,{path:de.WALLET_CHAIN,element:s.jsx(zp,{})}),s.jsx(Je,{path:de.PROFILE,element:s.jsx(ST,{})}),s.jsx(Je,{path:de.SEED_PHRASE,element:s.jsx(rA,{})}),s.jsx(Je,{path:de.KYC,element:s.jsx(RA,{})})]})]})]})}const uB=new x6({defaultOptions:{queries:{retry:!1}}});function dB({children:a}){return s.jsx(b6,{client:uB,children:a})}function fB(){return s.jsx(dB,{children:s.jsx(oB,{})})}Oy.createRoot(document.getElementById("root")).render(s.jsx(j.StrictMode,{children:s.jsx(fB,{})}));