Files
frontend/dist/assets/index-j51OSC_x.js
2026-07-01 16:59:00 +03:00

162 lines
616 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 Km=a=>{throw TypeError(a)};var Ed=(a,l,i)=>l.has(a)||Km("Cannot "+i);var T=(a,l,i)=>(Ed(a,l,"read from private field"),i?i.call(a):l.get(a)),ie=(a,l,i)=>l.has(a)?Km("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(a):l.set(a,i),Z=(a,l,i,r)=>(Ed(a,l,"write to private field"),r?r.call(a,i):l.set(a,i),i),we=(a,l,i)=>(Ed(a,l,"access private method"),i);var Ac=(a,l,i,r)=>({set _(d){Z(a,l,d,i)},get _(){return T(a,l,r)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.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 m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function i(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=i(d);fetch(d.href,f)}})();function O3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Td={exports:{}},$o={};/**
* @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 Zm;function Ay(){if(Zm)return $o;Zm=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,d,f){var m=null;if(f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+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:m,ref:d!==void 0?d:null,props:f}}return $o.Fragment=l,$o.jsx=i,$o.jsxs=i,$o}var Wm;function Ly(){return Wm||(Wm=1,Td.exports=Ay()),Td.exports}var o=Ly(),kd={exports:{}},xe={};/**
* @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 Jm;function Oy(){if(Jm)return xe;Jm=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function j(k){return k===null||typeof k!="object"?null:(k=b&&k[b]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,C={};function R(k,V,K){this.props=k,this.context=V,this.refs=C,this.updater=K||w}R.prototype.isReactComponent={},R.prototype.setState=function(k,V){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,V,"setState")},R.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function M(){}M.prototype=R.prototype;function O(k,V,K){this.props=k,this.context=V,this.refs=C,this.updater=K||w}var H=O.prototype=new M;H.constructor=O,N(H,R.prototype),H.isPureReactComponent=!0;var I=Array.isArray;function X(){}var $={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function J(k,V,K){var W=K.ref;return{$$typeof:a,type:k,key:V,ref:W!==void 0?W:null,props:K}}function ue(k,V){return J(k.type,V,k.props)}function re(k){return typeof k=="object"&&k!==null&&k.$$typeof===a}function ce(k){var V={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(K){return V[K]})}var te=/\/+/g;function he(k,V){return typeof k=="object"&&k!==null&&k.key!=null?ce(""+k.key):V.toString(36)}function ne(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(X,X):(k.status="pending",k.then(function(V){k.status==="pending"&&(k.status="fulfilled",k.value=V)},function(V){k.status==="pending"&&(k.status="rejected",k.reason=V)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,V,K,W,ye){var ge=typeof k;(ge==="undefined"||ge==="boolean")&&(k=null);var Le=!1;if(k===null)Le=!0;else switch(ge){case"bigint":case"string":case"number":Le=!0;break;case"object":switch(k.$$typeof){case a:case l:Le=!0;break;case v:return Le=k._init,q(Le(k._payload),V,K,W,ye)}}if(Le)return ye=ye(k),Le=W===""?"."+he(k,0):W,I(ye)?(K="",Le!=null&&(K=Le.replace(te,"$&/")+"/"),q(ye,V,K,"",function(xa){return xa})):ye!=null&&(re(ye)&&(ye=ue(ye,K+(ye.key==null||k&&k.key===ye.key?"":(""+ye.key).replace(te,"$&/")+"/")+Le)),V.push(ye)),1;Le=0;var Tt=W===""?".":W+":";if(I(k))for(var et=0;et<k.length;et++)W=k[et],ge=Tt+he(W,et),Le+=q(W,V,K,ge,ye);else if(et=j(k),typeof et=="function")for(k=et.call(k),et=0;!(W=k.next()).done;)W=W.value,ge=Tt+he(W,et++),Le+=q(W,V,K,ge,ye);else if(ge==="object"){if(typeof k.then=="function")return q(ne(k),V,K,W,ye);throw V=String(k),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Le}function Y(k,V,K){if(k==null)return k;var W=[],ye=0;return q(k,W,"","",function(ge){return V.call(K,ge,ye++)}),W}function ae(k){if(k._status===-1){var V=k._result;V=V(),V.then(function(K){(k._status===0||k._status===-1)&&(k._status=1,k._result=K)},function(K){(k._status===0||k._status===-1)&&(k._status=2,k._result=K)}),k._status===-1&&(k._status=0,k._result=V)}if(k._status===1)return k._result.default;throw k._result}var de=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},_e={map:Y,forEach:function(k,V,K){Y(k,function(){V.apply(this,arguments)},K)},count:function(k){var V=0;return Y(k,function(){V++}),V},toArray:function(k){return Y(k,function(V){return V})||[]},only:function(k){if(!re(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return xe.Activity=y,xe.Children=_e,xe.Component=R,xe.Fragment=i,xe.Profiler=d,xe.PureComponent=O,xe.StrictMode=r,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,xe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return $.H.useMemoCache(k)}},xe.cache=function(k){return function(){return k.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(k,V,K){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var W=N({},k.props),ye=k.key;if(V!=null)for(ge in V.key!==void 0&&(ye=""+V.key),V)!P.call(V,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&V.ref===void 0||(W[ge]=V[ge]);var ge=arguments.length-2;if(ge===1)W.children=K;else if(1<ge){for(var Le=Array(ge),Tt=0;Tt<ge;Tt++)Le[Tt]=arguments[Tt+2];W.children=Le}return J(k.type,ye,W)},xe.createContext=function(k){return k={$$typeof:m,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:f,_context:k},k},xe.createElement=function(k,V,K){var W,ye={},ge=null;if(V!=null)for(W in V.key!==void 0&&(ge=""+V.key),V)P.call(V,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ye[W]=V[W]);var Le=arguments.length-2;if(Le===1)ye.children=K;else if(1<Le){for(var Tt=Array(Le),et=0;et<Le;et++)Tt[et]=arguments[et+2];ye.children=Tt}if(k&&k.defaultProps)for(W in Le=k.defaultProps,Le)ye[W]===void 0&&(ye[W]=Le[W]);return J(k,ge,ye)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(k){return{$$typeof:g,render:k}},xe.isValidElement=re,xe.lazy=function(k){return{$$typeof:v,_payload:{_status:-1,_result:k},_init:ae}},xe.memo=function(k,V){return{$$typeof:p,type:k,compare:V===void 0?null:V}},xe.startTransition=function(k){var V=$.T,K={};$.T=K;try{var W=k(),ye=$.S;ye!==null&&ye(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(X,de)}catch(ge){de(ge)}finally{V!==null&&K.types!==null&&(V.types=K.types),$.T=V}},xe.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},xe.use=function(k){return $.H.use(k)},xe.useActionState=function(k,V,K){return $.H.useActionState(k,V,K)},xe.useCallback=function(k,V){return $.H.useCallback(k,V)},xe.useContext=function(k){return $.H.useContext(k)},xe.useDebugValue=function(){},xe.useDeferredValue=function(k,V){return $.H.useDeferredValue(k,V)},xe.useEffect=function(k,V){return $.H.useEffect(k,V)},xe.useEffectEvent=function(k){return $.H.useEffectEvent(k)},xe.useId=function(){return $.H.useId()},xe.useImperativeHandle=function(k,V,K){return $.H.useImperativeHandle(k,V,K)},xe.useInsertionEffect=function(k,V){return $.H.useInsertionEffect(k,V)},xe.useLayoutEffect=function(k,V){return $.H.useLayoutEffect(k,V)},xe.useMemo=function(k,V){return $.H.useMemo(k,V)},xe.useOptimistic=function(k,V){return $.H.useOptimistic(k,V)},xe.useReducer=function(k,V,K){return $.H.useReducer(k,V,K)},xe.useRef=function(k){return $.H.useRef(k)},xe.useState=function(k){return $.H.useState(k)},xe.useSyncExternalStore=function(k,V,K){return $.H.useSyncExternalStore(k,V,K)},xe.useTransition=function(){return $.H.useTransition()},xe.version="19.2.5",xe}var ep;function C2(){return ep||(ep=1,kd.exports=Oy()),kd.exports}var S=C2();const At=O3(S);var Rd={exports:{}},Uo={},Ad={exports:{}},Ld={};/**
* @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 tp;function My(){return tp||(tp=1,(function(a){function l(q,Y){var ae=q.length;q.push(Y);e:for(;0<ae;){var de=ae-1>>>1,_e=q[de];if(0<d(_e,Y))q[de]=Y,q[ae]=_e,ae=de;else break e}}function i(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var Y=q[0],ae=q.pop();if(ae!==Y){q[0]=ae;e:for(var de=0,_e=q.length,k=_e>>>1;de<k;){var V=2*(de+1)-1,K=q[V],W=V+1,ye=q[W];if(0>d(K,ae))W<_e&&0>d(ye,K)?(q[de]=ye,q[W]=ae,de=W):(q[de]=K,q[V]=ae,de=V);else if(W<_e&&0>d(ye,ae))q[de]=ye,q[W]=ae,de=W;else break e}}return Y}function d(q,Y){var ae=q.sortIndex-Y.sortIndex;return ae!==0?ae: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 m=Date,g=m.now();a.unstable_now=function(){return m.now()-g}}var h=[],p=[],v=1,y=null,b=3,j=!1,w=!1,N=!1,C=!1,R=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function H(q){for(var Y=i(p);Y!==null;){if(Y.callback===null)r(p);else if(Y.startTime<=q)r(p),Y.sortIndex=Y.expirationTime,l(h,Y);else break;Y=i(p)}}function I(q){if(N=!1,H(q),!w)if(i(h)!==null)w=!0,X||(X=!0,ce());else{var Y=i(p);Y!==null&&ne(I,Y.startTime-q)}}var X=!1,$=-1,P=5,J=-1;function ue(){return C?!0:!(a.unstable_now()-J<P)}function re(){if(C=!1,X){var q=a.unstable_now();J=q;var Y=!0;try{e:{w=!1,N&&(N=!1,M($),$=-1),j=!0;var ae=b;try{t:{for(H(q),y=i(h);y!==null&&!(y.expirationTime>q&&ue());){var de=y.callback;if(typeof de=="function"){y.callback=null,b=y.priorityLevel;var _e=de(y.expirationTime<=q);if(q=a.unstable_now(),typeof _e=="function"){y.callback=_e,H(q),Y=!0;break t}y===i(h)&&r(h),H(q)}else r(h);y=i(h)}if(y!==null)Y=!0;else{var k=i(p);k!==null&&ne(I,k.startTime-q),Y=!1}}break e}finally{y=null,b=ae,j=!1}Y=void 0}}finally{Y?ce():X=!1}}}var ce;if(typeof O=="function")ce=function(){O(re)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,he=te.port2;te.port1.onmessage=re,ce=function(){he.postMessage(null)}}else ce=function(){R(re,0)};function ne(q,Y){$=R(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 ae=b;b=Y;try{return q()}finally{b=ae}},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 ae=b;b=q;try{return Y()}finally{b=ae}},a.unstable_scheduleCallback=function(q,Y,ae){var de=a.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?de+ae:de):ae=de,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=ae+_e,q={id:v++,callback:Y,priorityLevel:q,startTime:ae,expirationTime:_e,sortIndex:-1},ae>de?(q.sortIndex=ae,l(p,q),i(h)===null&&q===i(p)&&(N?(M($),$=-1):N=!0,ne(I,ae-de))):(q.sortIndex=_e,l(h,q),w||j||(w=!0,X||(X=!0,ce()))),q},a.unstable_shouldYield=ue,a.unstable_wrapCallback=function(q){var Y=b;return function(){var ae=b;b=Y;try{return q.apply(this,arguments)}finally{b=ae}}}})(Ld)),Ld}var np;function zy(){return np||(np=1,Ad.exports=My()),Ad.exports}var Od={exports:{}},Qt={};/**
* @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 ap;function Dy(){if(ap)return Qt;ap=1;var a=C2();function l(h){var p="https://react.dev/errors/"+h;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 #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(h,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:h,containerInfo:p,implementation:v}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Qt.createPortal=function(h,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(l(299));return f(h,p,null,v)},Qt.flushSync=function(h){var p=m.T,v=r.p;try{if(m.T=null,r.p=2,h)return h()}finally{m.T=p,r.p=v,r.d.f()}},Qt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Qt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Qt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,y=g(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:j}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Qt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);r.d.M(h,{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(h)},Qt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=g(v,p.crossOrigin);r.d.L(h,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})}},Qt.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=g(p.as,p.crossOrigin);r.d.m(h,{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(h)},Qt.requestFormReset=function(h){r.d.r(h)},Qt.unstable_batchedUpdates=function(h,p){return h(p)},Qt.useFormState=function(h,p,v){return m.H.useFormState(h,p,v)},Qt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Qt.version="19.2.5",Qt}var sp;function By(){if(sp)return Od.exports;sp=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(l){console.error(l)}}return a(),Od.exports=Dy(),Od.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 lp;function $y(){if(lp)return Uo;lp=1;var a=zy(),l=C2(),i=By();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 m(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 h(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,s=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(s=c.return,s!==null){n=s;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return h(c),e;if(u===s)return h(c),t;u=u.sibling}throw Error(r(188))}if(n.return!==s.return)n=c,s=u;else{for(var _=!1,x=c.child;x;){if(x===n){_=!0,n=c,s=u;break}if(x===s){_=!0,s=c,n=u;break}x=x.sibling}if(!_){for(x=u.child;x;){if(x===n){_=!0,n=u,s=c;break}if(x===s){_=!0,s=u,n=c;break}x=x.sibling}if(!_)throw Error(r(189))}}if(n.alternate!==s)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"),j=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),O=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case X:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case O:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case H:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:he(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return he(e(t))}catch{}}return null}var ne=Array.isArray,q=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},de=[],_e=-1;function k(e){return{current:e}}function V(e){0>_e||(e.current=de[_e],de[_e]=null,_e--)}function K(e,t){_e++,de[_e]=e.current,e.current=t}var W=k(null),ye=k(null),ge=k(null),Le=k(null);function Tt(e,t){switch(K(ge,t),K(ye,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ym(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ym(t),e=bm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(W),K(W,e)}function et(){V(W),V(ye),V(ge)}function xa(e){e.memoizedState!==null&&K(Le,e);var t=W.current,n=bm(t,e.type);t!==n&&(K(ye,e),K(W,n))}function ts(e){ye.current===e&&(V(W),V(ye)),Le.current===e&&(V(Le),Mo._currentValue=ae)}var Gs,Vs;function Mn(e){if(Gs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gs=t&&t[1]||"",Vs=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Gs+e+Vs}var Sa=!1;function ja(e,t){if(!e||Sa)return"";Sa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={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(U){var B=U}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(U){B=U}e.call(Q.prototype)}}else{try{throw Error()}catch(U){B=U}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(U){if(U&&B&&typeof U.stack=="string")return[U.stack,B.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),_=u[0],x=u[1];if(_&&x){var E=_.split(`
`),D=x.split(`
`);for(c=s=0;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;for(;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;if(s===E.length||c===D.length)for(s=E.length-1,c=D.length-1;1<=s&&0<=c&&E[s]!==D[c];)c--;for(;1<=s&&0<=c;s--,c--)if(E[s]!==D[c]){if(s!==1||c!==1)do if(s--,c--,0>c||E[s]!==D[c]){var F=`
`+E[s].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=s&&0<=c);break}}}finally{Sa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Mn(n):""}function Qs(e,t){switch(e.tag){case 26:case 27:case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return e.child!==t&&t!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return ja(e.type,!1);case 11:return ja(e.type.render,!1);case 1:return ja(e.type,!0);case 31:return Mn("Activity");default:return""}}function ns(e){try{var t="",n=null;do t+=Qs(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var wa=Object.prototype.hasOwnProperty,ze=a.unstable_scheduleCallback,Xt=a.unstable_cancelCallback,Ke=a.unstable_shouldYield,Xn=a.unstable_requestPaint,gt=a.unstable_now,hr=a.unstable_getCurrentPriorityLevel,K2=a.unstable_ImmediatePriority,Z2=a.unstable_UserBlockingPriority,mr=a.unstable_NormalPriority,fg=a.unstable_LowPriority,W2=a.unstable_IdlePriority,hg=a.log,mg=a.unstable_setDisableYieldValue,Qi=null,_n=null;function as(e){if(typeof hg=="function"&&mg(e),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(Qi,e)}catch{}}var gn=Math.clz32?Math.clz32:gg,pg=Math.log,_g=Math.LN2;function gg(e){return e>>>=0,e===0?32:31-(pg(e)/_g|0)|0}var pr=256,_r=262144,gr=4194304;function Ps(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 vr(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var c=0,u=e.suspendedLanes,_=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?c=Ps(s):(_&=x,_!==0?c=Ps(_):n||(n=x&~e,n!==0&&(c=Ps(n))))):(x=s&~u,x!==0?c=Ps(x):_!==0?c=Ps(_):n||(n=s&~e,n!==0&&(c=Ps(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vg(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 J2(){var e=gr;return gr<<=1,(gr&62914560)===0&&(gr=4194304),e}function pu(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 yg(e,t,n,s,c,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,E=e.expirationTimes,D=e.hiddenUpdates;for(n=_&~n;0<n;){var F=31-gn(n),Q=1<<F;x[F]=0,E[F]=-1;var B=D[F];if(B!==null)for(D[F]=null,F=0;F<B.length;F++){var U=B[F];U!==null&&(U.lane&=-536870913)}n&=~Q}s!==0&&ef(e,s,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(_&~t))}function ef(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-gn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function tf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-gn(n),c=1<<s;c&t|e[s]&t&&(e[s]|=t),n&=~c}}function nf(e,t){var n=t&-t;return n=(n&42)!==0?1:_u(n),(n&(e.suspendedLanes|t))!==0?0:n}function _u(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 gu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function af(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Gm(e.type))}function sf(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var ss=Math.random().toString(36).slice(2),Ht="__reactFiber$"+ss,nn="__reactProps$"+ss,Ml="__reactContainer$"+ss,vu="__reactEvents$"+ss,bg="__reactListeners$"+ss,xg="__reactHandles$"+ss,lf="__reactResources$"+ss,Yi="__reactMarker$"+ss;function yu(e){delete e[Ht],delete e[nn],delete e[vu],delete e[bg],delete e[xg]}function zl(e){var t=e[Ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ml]||n[Ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[Ht])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function Dl(e){if(e=e[Ht]||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 Bl(e){var t=e[lf];return t||(t=e[lf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ot(e){e[Yi]=!0}var of=new Set,rf={};function Is(e,t){$l(e,t),$l(e+"Capture",t)}function $l(e,t){for(rf[e]=t,e=0;e<t.length;e++)of.add(t[e])}var Sg=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]*$"),cf={},uf={};function jg(e){return wa.call(uf,e)?!0:wa.call(cf,e)?!1:Sg.test(e)?uf[e]=!0:(cf[e]=!0,!1)}function yr(e,t,n){if(jg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function br(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 Na(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function zn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wg(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(_){n=""+_,u.call(this,_)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(_){n=""+_},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bu(e){if(!e._valueTracker){var t=df(e)?"checked":"value";e._valueTracker=wg(e,t,""+e[t])}}function ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=df(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function xr(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 Ng=/[\n"\\]/g;function Dn(e){return e.replace(Ng,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xu(e,t,n,s,c,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=""+zn(t)):e.value!==""+zn(t)&&(e.value=""+zn(t)):_!=="submit"&&_!=="reset"||e.removeAttribute("value"),t!=null?Su(e,_,zn(t)):n!=null?Su(e,_,zn(n)):s!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+zn(x):e.removeAttribute("name")}function hf(e,t,n,s,c,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)){bu(e);return}n=n!=null?""+zn(n):"",t=t!=null?""+zn(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(e.name=_),bu(e)}function Su(e,t,n){t==="number"&&xr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ul(e,t,n,s){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&s&&(e[n].defaultSelected=!0)}else{for(n=""+zn(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function mf(e,t,n){if(t!=null&&(t=""+zn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+zn(n):""}function pf(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(ne(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=zn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),bu(e)}function Hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Cg=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 _f(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||Cg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function gf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&n[c]!==s&&_f(e,c,s)}else for(var u in t)t.hasOwnProperty(u)&&_f(e,u,t[u])}function ju(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 Eg=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"]]),Tg=/^[\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 Sr(e){return Tg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ca(){}var wu=null;function Nu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ql=null,Fl=null;function vf(e){var t=Dl(e);if(t&&(e=t.stateNode)){var n=e[nn]||null;e:switch(e=t.stateNode,t.type){case"input":if(xu(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="'+Dn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var c=s[nn]||null;if(!c)throw Error(r(90));xu(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&ff(s)}break e;case"textarea":mf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ul(e,!!n.multiple,t,!1)}}}var Cu=!1;function yf(e,t,n){if(Cu)return e(t,n);Cu=!0;try{var s=e(t);return s}finally{if(Cu=!1,(ql!==null||Fl!==null)&&(cc(),ql&&(t=ql,e=Fl,Fl=ql=null,vf(t),e)))for(t=0;t<e.length;t++)vf(e[t])}}function Ki(e,t){var n=e.stateNode;if(n===null)return null;var s=n[nn]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Eu=!1;if(Ea)try{var Zi={};Object.defineProperty(Zi,"passive",{get:function(){Eu=!0}}),window.addEventListener("test",Zi,Zi),window.removeEventListener("test",Zi,Zi)}catch{Eu=!1}var ls=null,Tu=null,jr=null;function bf(){if(jr)return jr;var e,t=Tu,n=t.length,s,c="value"in ls?ls.value:ls.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var _=n-e;for(s=1;s<=_&&t[n-s]===c[u-s];s++);return jr=c.slice(e,1<s?1-s:void 0)}function wr(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 Nr(){return!0}function xf(){return!1}function an(e){function t(n,s,c,u,_){this._reactName=n,this._targetInst=c,this.type=s,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)?Nr:xf,this.isPropagationStopped=xf,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=Nr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Nr)},persist:function(){},isPersistent:Nr}),t}var Ys={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cr=an(Ys),Wi=y({},Ys,{view:0,detail:0}),kg=an(Wi),ku,Ru,Ji,Er=y({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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"?(ku=e.screenX-Ji.screenX,Ru=e.screenY-Ji.screenY):Ru=ku=0,Ji=e),ku)},movementY:function(e){return"movementY"in e?e.movementY:Ru}}),Sf=an(Er),Rg=y({},Er,{dataTransfer:0}),Ag=an(Rg),Lg=y({},Wi,{relatedTarget:0}),Au=an(Lg),Og=y({},Ys,{animationName:0,elapsedTime:0,pseudoElement:0}),Mg=an(Og),zg=y({},Ys,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dg=an(zg),Bg=y({},Ys,{data:0}),jf=an(Bg),$g={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ug={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"},Hg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Hg[e])?!!t[e]:!1}function Lu(){return qg}var Fg=y({},Wi,{key:function(e){if(e.key){var t=$g[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(e){return e.type==="keypress"?wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gg=an(Fg),Vg=y({},Er,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wf=an(Vg),Qg=y({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),Pg=an(Qg),Ig=y({},Ys,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=an(Ig),Xg=y({},Er,{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}),Kg=an(Xg),Zg=y({},Ys,{newState:0,oldState:0}),Wg=an(Zg),Jg=[9,13,27,32],Ou=Ea&&"CompositionEvent"in window,eo=null;Ea&&"documentMode"in document&&(eo=document.documentMode);var ev=Ea&&"TextEvent"in window&&!eo,Nf=Ea&&(!Ou||eo&&8<eo&&11>=eo),Cf=" ",Ef=!1;function Tf(e,t){switch(e){case"keyup":return Jg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function tv(e,t){switch(e){case"compositionend":return kf(t);case"keypress":return t.which!==32?null:(Ef=!0,Cf);case"textInput":return e=t.data,e===Cf&&Ef?null:e;default:return null}}function nv(e,t){if(Gl)return e==="compositionend"||!Ou&&Tf(e,t)?(e=bf(),jr=Tu=ls=null,Gl=!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 Nf&&t.locale!=="ko"?null:t.data;default:return null}}var av={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 Rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!av[e.type]:t==="textarea"}function Af(e,t,n,s){ql?Fl?Fl.push(s):Fl=[s]:ql=s,t=_c(t,"onChange"),0<t.length&&(n=new Cr("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var to=null,no=null;function sv(e){hm(e,0)}function Tr(e){var t=Xi(e);if(ff(t))return e}function Lf(e,t){if(e==="change")return t}var Of=!1;if(Ea){var Mu;if(Ea){var zu="oninput"in document;if(!zu){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),zu=typeof Mf.oninput=="function"}Mu=zu}else Mu=!1;Of=Mu&&(!document.documentMode||9<document.documentMode)}function zf(){to&&(to.detachEvent("onpropertychange",Df),no=to=null)}function Df(e){if(e.propertyName==="value"&&Tr(no)){var t=[];Af(t,no,e,Nu(e)),yf(sv,t)}}function lv(e,t,n){e==="focusin"?(zf(),to=t,no=n,to.attachEvent("onpropertychange",Df)):e==="focusout"&&zf()}function iv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Tr(no)}function ov(e,t){if(e==="click")return Tr(t)}function rv(e,t){if(e==="input"||e==="change")return Tr(t)}function cv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vn=typeof Object.is=="function"?Object.is:cv;function ao(e,t){if(vn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var c=n[s];if(!wa.call(t,c)||!vn(e[c],t[c]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $f(e,t){var n=Bf(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bf(n)}}function Uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xr(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=xr(e.document)}return t}function Du(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 uv=Ea&&"documentMode"in document&&11>=document.documentMode,Vl=null,Bu=null,so=null,$u=!1;function qf(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$u||Vl==null||Vl!==xr(s)||(s=Vl,"selectionStart"in s&&Du(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),so&&ao(so,s)||(so=s,s=_c(Bu,"onSelect"),0<s.length&&(t=new Cr("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Vl)))}function Xs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ql={animationend:Xs("Animation","AnimationEnd"),animationiteration:Xs("Animation","AnimationIteration"),animationstart:Xs("Animation","AnimationStart"),transitionrun:Xs("Transition","TransitionRun"),transitionstart:Xs("Transition","TransitionStart"),transitioncancel:Xs("Transition","TransitionCancel"),transitionend:Xs("Transition","TransitionEnd")},Uu={},Ff={};Ea&&(Ff=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function Ks(e){if(Uu[e])return Uu[e];if(!Ql[e])return e;var t=Ql[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ff)return Uu[e]=t[n];return e}var Gf=Ks("animationend"),Vf=Ks("animationiteration"),Qf=Ks("animationstart"),dv=Ks("transitionrun"),fv=Ks("transitionstart"),hv=Ks("transitioncancel"),Pf=Ks("transitionend"),If=new Map,Hu="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(" ");Hu.push("scrollEnd");function Kn(e,t){If.set(e,t),Is(t,[e])}var kr=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)},Bn=[],Pl=0,qu=0;function Rr(){for(var e=Pl,t=qu=Pl=0;t<e;){var n=Bn[t];Bn[t++]=null;var s=Bn[t];Bn[t++]=null;var c=Bn[t];Bn[t++]=null;var u=Bn[t];if(Bn[t++]=null,s!==null&&c!==null){var _=s.pending;_===null?c.next=c:(c.next=_.next,_.next=c),s.pending=c}u!==0&&Yf(n,c,u)}}function Ar(e,t,n,s){Bn[Pl++]=e,Bn[Pl++]=t,Bn[Pl++]=n,Bn[Pl++]=s,qu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Fu(e,t,n,s){return Ar(e,t,n,s),Lr(e)}function Zs(e,t){return Ar(e,null,null,t),Lr(e)}function Yf(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-gn(n),e=u.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=n|536870912),u):null}function Lr(e){if(50<Eo)throw Eo=0,Z0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function mv(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,s){return new mv(e,t,n,s)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ta(e,t){var n=e.alternate;return n===null?(n=yn(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 Xf(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 Or(e,t,n,s,c,u){var _=0;if(s=e,typeof e=="function")Gu(e)&&(_=1);else if(typeof e=="string")_=yy(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=yn(31,n,t,c),e.elementType=J,e.lanes=u,e;case N:return Ws(n.children,c,u,t);case C:_=8,c|=24;break;case R:return e=yn(12,n,t,c|2),e.elementType=R,e.lanes=u,e;case I:return e=yn(13,n,t,c),e.elementType=I,e.lanes=u,e;case X:return e=yn(19,n,t,c),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:_=10;break e;case M:_=9;break e;case H:_=11;break e;case $:_=14;break e;case P:_=16,s=null;break e}_=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=yn(_,n,t,c),t.elementType=e,t.type=s,t.lanes=u,t}function Ws(e,t,n,s){return e=yn(7,e,s,t),e.lanes=n,e}function Vu(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function Kf(e){var t=yn(18,null,null,0);return t.stateNode=e,t}function Qu(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Zf=new WeakMap;function $n(e,t){if(typeof e=="object"&&e!==null){var n=Zf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ns(t)},Zf.set(e,t),t)}return{value:e,source:t,stack:ns(t)}}var Yl=[],Xl=0,Mr=null,lo=0,Un=[],Hn=0,is=null,ra=1,ca="";function ka(e,t){Yl[Xl++]=lo,Yl[Xl++]=Mr,Mr=e,lo=t}function Wf(e,t,n){Un[Hn++]=ra,Un[Hn++]=ca,Un[Hn++]=is,is=e;var s=ra;e=ca;var c=32-gn(s)-1;s&=~(1<<c),n+=1;var u=32-gn(t)+c;if(30<u){var _=c-c%5;u=(s&(1<<_)-1).toString(32),s>>=_,c-=_,ra=1<<32-gn(t)+c|n<<c|s,ca=u+e}else ra=1<<u|n<<c|s,ca=e}function Pu(e){e.return!==null&&(ka(e,1),Wf(e,1,0))}function Iu(e){for(;e===Mr;)Mr=Yl[--Xl],Yl[Xl]=null,lo=Yl[--Xl],Yl[Xl]=null;for(;e===is;)is=Un[--Hn],Un[Hn]=null,ca=Un[--Hn],Un[Hn]=null,ra=Un[--Hn],Un[Hn]=null}function Jf(e,t){Un[Hn++]=ra,Un[Hn++]=ca,Un[Hn++]=is,ra=t.id,ca=t.overflow,is=e}var qt=null,tt=null,Oe=!1,os=null,qn=!1,Yu=Error(r(519));function rs(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw io($n(t,e)),Yu}function eh(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[Ht]=e,t[nn]=s,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<ko.length;n++)Ee(ko[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),hf(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),pf(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||gm(t.textContent,n)?(s.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),s.onScroll!=null&&Ee("scroll",t),s.onScrollEnd!=null&&Ee("scrollend",t),s.onClick!=null&&(t.onclick=Ca),t=!0):t=!1,t||rs(e,!0)}function th(e){for(qt=e.return;qt;)switch(qt.tag){case 5:case 31:case 13:qn=!1;return;case 27:case 3:qn=!0;return;default:qt=qt.return}}function Kl(e){if(e!==qt)return!1;if(!Oe)return th(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||fd(e.type,e.memoizedProps)),n=!n),n&&tt&&rs(e),th(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));tt=Cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));tt=Cm(e)}else t===27?(t=tt,Ss(e.type)?(e=gd,gd=null,tt=e):tt=t):tt=qt?Gn(e.stateNode.nextSibling):null;return!0}function Js(){tt=qt=null,Oe=!1}function Xu(){var e=os;return e!==null&&(rn===null?rn=e:rn.push.apply(rn,e),os=null),e}function io(e){os===null?os=[e]:os.push(e)}var Ku=k(null),el=null,Ra=null;function cs(e,t,n){K(Ku,t._currentValue),t._currentValue=n}function Aa(e){e._currentValue=Ku.current,V(Ku)}function Zu(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Wu(e,t,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var _=c.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=c;for(var E=0;E<t.length;E++)if(x.context===t[E]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),Zu(u.return,n,e),s||(_=null);break e}u=x.next}}else if(c.tag===18){if(_=c.return,_===null)throw Error(r(341));_.lanes|=n,u=_.alternate,u!==null&&(u.lanes|=n),Zu(_,n,e),_=null}else _=c.child;if(_!==null)_.return=c;else for(_=c;_!==null;){if(_===e){_=null;break}if(c=_.sibling,c!==null){c.return=_.return,_=c;break}_=_.return}c=_}}function Zl(e,t,n,s){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var _=c.alternate;if(_===null)throw Error(r(387));if(_=_.memoizedProps,_!==null){var x=c.type;vn(c.pendingProps.value,_.value)||(e!==null?e.push(x):e=[x])}}else if(c===Le.current){if(_=c.alternate,_===null)throw Error(r(387));_.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Mo):e=[Mo])}c=c.return}e!==null&&Wu(t,e,n,s),t.flags|=262144}function zr(e){for(e=e.firstContext;e!==null;){if(!vn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,Ra=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return nh(el,e)}function Dr(e,t){return el===null&&tl(e),nh(e,t)}function nh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ra===null){if(e===null)throw Error(r(308));Ra=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ra=Ra.next=t;return n}var pv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_v=a.unstable_scheduleCallback,gv=a.unstable_NormalPriority,St={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ju(){return{controller:new pv,data:new Map,refCount:0}}function oo(e){e.refCount--,e.refCount===0&&_v(gv,function(){e.controller.abort()})}var ro=null,e0=0,Wl=0,Jl=null;function vv(e,t){if(ro===null){var n=ro=[];e0=0,Wl=ad(),Jl={status:"pending",value:void 0,then:function(s){n.push(s)}}}return e0++,t.then(ah,ah),t}function ah(){if(--e0===0&&ro!==null){Jl!==null&&(Jl.status="fulfilled");var e=ro;ro=null,Wl=0,Jl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yv(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),s}var sh=q.S;q.S=function(e,t){q1=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vv(e,t),sh!==null&&sh(e,t)};var nl=k(null);function t0(){var e=nl.current;return e!==null?e:Xe.pooledCache}function Br(e,t){t===null?K(nl,nl.current):K(nl,t.pool)}function lh(){var e=t0();return e===null?null:{parent:St._currentValue,pool:e}}var ei=Error(r(460)),n0=Error(r(474)),$r=Error(r(542)),Ur={then:function(){}};function ih(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ca,Ca),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ch(e),e;default:if(typeof t.status=="string")t.then(Ca,Ca);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ch(e),e}throw sl=t,ei}}function al(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sl=n,ei):n}}var sl=null;function rh(){if(sl===null)throw Error(r(459));var e=sl;return sl=null,e}function ch(e){if(e===ei||e===$r)throw Error(r(483))}var ti=null,co=0;function Hr(e){var t=co;return co+=1,ti===null&&(ti=[]),oh(ti,e,t)}function uo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qr(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 uh(e){function t(L,A){if(e){var z=L.deletions;z===null?(L.deletions=[A],L.flags|=16):z.push(A)}}function n(L,A){if(!e)return null;for(;A!==null;)t(L,A),A=A.sibling;return null}function s(L){for(var A=new Map;L!==null;)L.key!==null?A.set(L.key,L):A.set(L.index,L),L=L.sibling;return A}function c(L,A){return L=Ta(L,A),L.index=0,L.sibling=null,L}function u(L,A,z){return L.index=z,e?(z=L.alternate,z!==null?(z=z.index,z<A?(L.flags|=67108866,A):z):(L.flags|=67108866,A)):(L.flags|=1048576,A)}function _(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function x(L,A,z,G){return A===null||A.tag!==6?(A=Vu(z,L.mode,G),A.return=L,A):(A=c(A,z),A.return=L,A)}function E(L,A,z,G){var oe=z.type;return oe===N?F(L,A,z.props.children,G,z.key):A!==null&&(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&al(oe)===A.type)?(A=c(A,z.props),uo(A,z),A.return=L,A):(A=Or(z.type,z.key,z.props,null,L.mode,G),uo(A,z),A.return=L,A)}function D(L,A,z,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==z.containerInfo||A.stateNode.implementation!==z.implementation?(A=Qu(z,L.mode,G),A.return=L,A):(A=c(A,z.children||[]),A.return=L,A)}function F(L,A,z,G,oe){return A===null||A.tag!==7?(A=Ws(z,L.mode,G,oe),A.return=L,A):(A=c(A,z),A.return=L,A)}function Q(L,A,z){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Vu(""+A,L.mode,z),A.return=L,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case j:return z=Or(A.type,A.key,A.props,null,L.mode,z),uo(z,A),z.return=L,z;case w:return A=Qu(A,L.mode,z),A.return=L,A;case P:return A=al(A),Q(L,A,z)}if(ne(A)||ce(A))return A=Ws(A,L.mode,z,null),A.return=L,A;if(typeof A.then=="function")return Q(L,Hr(A),z);if(A.$$typeof===O)return Q(L,Dr(L,A),z);qr(L,A)}return null}function B(L,A,z,G){var oe=A!==null?A.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return oe!==null?null:x(L,A,""+z,G);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===oe?E(L,A,z,G):null;case w:return z.key===oe?D(L,A,z,G):null;case P:return z=al(z),B(L,A,z,G)}if(ne(z)||ce(z))return oe!==null?null:F(L,A,z,G,null);if(typeof z.then=="function")return B(L,A,Hr(z),G);if(z.$$typeof===O)return B(L,A,Dr(L,z),G);qr(L,z)}return null}function U(L,A,z,G,oe){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return L=L.get(z)||null,x(A,L,""+G,oe);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case j:return L=L.get(G.key===null?z:G.key)||null,E(A,L,G,oe);case w:return L=L.get(G.key===null?z:G.key)||null,D(A,L,G,oe);case P:return G=al(G),U(L,A,z,G,oe)}if(ne(G)||ce(G))return L=L.get(z)||null,F(A,L,G,oe,null);if(typeof G.then=="function")return U(L,A,z,Hr(G),oe);if(G.$$typeof===O)return U(L,A,z,Dr(A,G),oe);qr(A,G)}return null}function ee(L,A,z,G){for(var oe=null,Be=null,se=A,je=A=0,Ae=null;se!==null&&je<z.length;je++){se.index>je?(Ae=se,se=null):Ae=se.sibling;var $e=B(L,se,z[je],G);if($e===null){se===null&&(se=Ae);break}e&&se&&$e.alternate===null&&t(L,se),A=u($e,A,je),Be===null?oe=$e:Be.sibling=$e,Be=$e,se=Ae}if(je===z.length)return n(L,se),Oe&&ka(L,je),oe;if(se===null){for(;je<z.length;je++)se=Q(L,z[je],G),se!==null&&(A=u(se,A,je),Be===null?oe=se:Be.sibling=se,Be=se);return Oe&&ka(L,je),oe}for(se=s(se);je<z.length;je++)Ae=U(se,L,je,z[je],G),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?je:Ae.key),A=u(Ae,A,je),Be===null?oe=Ae:Be.sibling=Ae,Be=Ae);return e&&se.forEach(function(Es){return t(L,Es)}),Oe&&ka(L,je),oe}function me(L,A,z,G){if(z==null)throw Error(r(151));for(var oe=null,Be=null,se=A,je=A=0,Ae=null,$e=z.next();se!==null&&!$e.done;je++,$e=z.next()){se.index>je?(Ae=se,se=null):Ae=se.sibling;var Es=B(L,se,$e.value,G);if(Es===null){se===null&&(se=Ae);break}e&&se&&Es.alternate===null&&t(L,se),A=u(Es,A,je),Be===null?oe=Es:Be.sibling=Es,Be=Es,se=Ae}if($e.done)return n(L,se),Oe&&ka(L,je),oe;if(se===null){for(;!$e.done;je++,$e=z.next())$e=Q(L,$e.value,G),$e!==null&&(A=u($e,A,je),Be===null?oe=$e:Be.sibling=$e,Be=$e);return Oe&&ka(L,je),oe}for(se=s(se);!$e.done;je++,$e=z.next())$e=U(se,L,je,$e.value,G),$e!==null&&(e&&$e.alternate!==null&&se.delete($e.key===null?je:$e.key),A=u($e,A,je),Be===null?oe=$e:Be.sibling=$e,Be=$e);return e&&se.forEach(function(Ry){return t(L,Ry)}),Oe&&ka(L,je),oe}function Ye(L,A,z,G){if(typeof z=="object"&&z!==null&&z.type===N&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:e:{for(var oe=z.key;A!==null;){if(A.key===oe){if(oe=z.type,oe===N){if(A.tag===7){n(L,A.sibling),G=c(A,z.props.children),G.return=L,L=G;break e}}else if(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===P&&al(oe)===A.type){n(L,A.sibling),G=c(A,z.props),uo(G,z),G.return=L,L=G;break e}n(L,A);break}else t(L,A);A=A.sibling}z.type===N?(G=Ws(z.props.children,L.mode,G,z.key),G.return=L,L=G):(G=Or(z.type,z.key,z.props,null,L.mode,G),uo(G,z),G.return=L,L=G)}return _(L);case w:e:{for(oe=z.key;A!==null;){if(A.key===oe)if(A.tag===4&&A.stateNode.containerInfo===z.containerInfo&&A.stateNode.implementation===z.implementation){n(L,A.sibling),G=c(A,z.children||[]),G.return=L,L=G;break e}else{n(L,A);break}else t(L,A);A=A.sibling}G=Qu(z,L.mode,G),G.return=L,L=G}return _(L);case P:return z=al(z),Ye(L,A,z,G)}if(ne(z))return ee(L,A,z,G);if(ce(z)){if(oe=ce(z),typeof oe!="function")throw Error(r(150));return z=oe.call(z),me(L,A,z,G)}if(typeof z.then=="function")return Ye(L,A,Hr(z),G);if(z.$$typeof===O)return Ye(L,A,Dr(L,z),G);qr(L,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,A!==null&&A.tag===6?(n(L,A.sibling),G=c(A,z),G.return=L,L=G):(n(L,A),G=Vu(z,L.mode,G),G.return=L,L=G),_(L)):n(L,A)}return function(L,A,z,G){try{co=0;var oe=Ye(L,A,z,G);return ti=null,oe}catch(se){if(se===ei||se===$r)throw se;var Be=yn(29,se,null,L.mode);return Be.lanes=G,Be.return=L,Be}finally{}}}var ll=uh(!0),dh=uh(!1),us=!1;function a0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function s0(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 ds(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fs(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(He&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=Lr(e),Yf(e,null,n),t}return Ar(e,s,t,n),Lr(e)}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,tf(e,n)}}function l0(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var c=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?c=u=_:u=u.next=_,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var i0=!1;function ho(){if(i0){var e=Jl;if(e!==null)throw e}}function mo(e,t,n,s){i0=!1;var c=e.updateQueue;us=!1;var u=c.firstBaseUpdate,_=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var E=x,D=E.next;E.next=null,_===null?u=D:_.next=D,_=E;var F=e.alternate;F!==null&&(F=F.updateQueue,x=F.lastBaseUpdate,x!==_&&(x===null?F.firstBaseUpdate=D:x.next=D,F.lastBaseUpdate=E))}if(u!==null){var Q=c.baseState;_=0,F=D=E=null,x=u;do{var B=x.lane&-536870913,U=B!==x.lane;if(U?(Re&B)===B:(s&B)===B){B!==0&&B===Wl&&(i0=!0),F!==null&&(F=F.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ee=e,me=x;B=t;var Ye=n;switch(me.tag){case 1:if(ee=me.payload,typeof ee=="function"){Q=ee.call(Ye,Q,B);break e}Q=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=me.payload,B=typeof ee=="function"?ee.call(Ye,Q,B):ee,B==null)break e;Q=y({},Q,B);break e;case 2:us=!0}}B=x.callback,B!==null&&(e.flags|=64,U&&(e.flags|=8192),U=c.callbacks,U===null?c.callbacks=[B]:U.push(B))}else U={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},F===null?(D=F=U,E=Q):F=F.next=U,_|=B;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;U=x,x=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);F===null&&(E=Q),c.baseState=E,c.firstBaseUpdate=D,c.lastBaseUpdate=F,u===null&&(c.shared.lanes=0),gs|=_,e.lanes=_,e.memoizedState=Q}}function fh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function hh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)fh(n[e],t)}var ni=k(null),Fr=k(0);function mh(e,t){e=Ha,K(Fr,e),K(ni,t),Ha=e|t.baseLanes}function o0(){K(Fr,Ha),K(ni,ni.current)}function r0(){Ha=Fr.current,V(ni),V(Fr)}var bn=k(null),Fn=null;function hs(e){var t=e.alternate;K(vt,vt.current&1),K(bn,e),Fn===null&&(t===null||ni.current!==null||t.memoizedState!==null)&&(Fn=e)}function c0(e){K(vt,vt.current),K(bn,e),Fn===null&&(Fn=e)}function ph(e){e.tag===22?(K(vt,vt.current),K(bn,e),Fn===null&&(Fn=e)):ms()}function ms(){K(vt,vt.current),K(bn,bn.current)}function xn(e){V(bn),Fn===e&&(Fn=null),V(vt)}var vt=k(0);function Gr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pd(n)||_d(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 La=0,Se=null,Pe=null,jt=null,Vr=!1,ai=!1,il=!1,Qr=0,po=0,si=null,bv=0;function dt(){throw Error(r(321))}function u0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vn(e[n],t[n]))return!1;return!0}function d0(e,t,n,s,c,u){return La=u,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Wh:C0,il=!1,u=n(s,c),il=!1,ai&&(u=gh(t,n,s,c)),_h(e),u}function _h(e){q.H=vo;var t=Pe!==null&&Pe.next!==null;if(La=0,jt=Pe=Se=null,Vr=!1,po=0,si=null,t)throw Error(r(300));e===null||wt||(e=e.dependencies,e!==null&&zr(e)&&(wt=!0))}function gh(e,t,n,s){Se=e;var c=0;do{if(ai&&(si=null),po=0,ai=!1,25<=c)throw Error(r(301));if(c+=1,jt=Pe=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=Jh,u=t(n,s)}while(ai);return u}function xv(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?_o(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Se.flags|=1024),t}function f0(){var e=Qr!==0;return Qr=0,e}function h0(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function m0(e){if(Vr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vr=!1}La=0,jt=Pe=Se=null,ai=!1,po=Qr=0,si=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jt===null?Se.memoizedState=jt=e:jt=jt.next=e,jt}function yt(){if(Pe===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=jt===null?Se.memoizedState:jt.next;if(t!==null)jt=t,Pe=e;else{if(e===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},jt===null?Se.memoizedState=jt=e:jt=jt.next=e}return jt}function Pr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _o(e){var t=po;return po+=1,si===null&&(si=[]),e=oh(si,e,t),t=Se,(jt===null?t.memoizedState:jt.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Wh:C0),e}function Ir(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return _o(e);if(e.$$typeof===O)return Ft(e)}throw Error(r(438,String(e)))}function p0(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=Se.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Pr(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ue;return t.index++,n}function Oa(e,t){return typeof t=="function"?t(e):t}function Yr(e){var t=yt();return _0(t,Pe,e)}function _0(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=e.baseQueue,u=s.pending;if(u!==null){if(c!==null){var _=c.next;c.next=u.next,u.next=_}t.baseQueue=c=u,s.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var x=_=null,E=null,D=t,F=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(Re&Q)===Q:(La&Q)===Q){var B=D.revertLane;if(B===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===Wl&&(F=!0);else if((La&B)===B){D=D.next,B===Wl&&(F=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(x=E=Q,_=u):E=E.next=Q,Se.lanes|=B,gs|=B;Q=D.action,il&&n(u,Q),u=D.hasEagerState?D.eagerState:n(u,Q)}else B={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(x=E=B,_=u):E=E.next=B,Se.lanes|=Q,gs|=Q;D=D.next}while(D!==null&&D!==t);if(E===null?_=u:E.next=x,!vn(u,e.memoizedState)&&(wt=!0,F&&(n=Jl,n!==null)))throw n;e.memoizedState=u,e.baseState=_,e.baseQueue=E,s.lastRenderedState=u}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function g0(e){var t=yt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var _=c=c.next;do u=e(u,_.action),_=_.next;while(_!==c);vn(u,t.memoizedState)||(wt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function vh(e,t,n){var s=Se,c=yt(),u=Oe;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var _=!vn((Pe||c).memoizedState,n);if(_&&(c.memoizedState=n,wt=!0),c=c.queue,b0(xh.bind(null,s,c,e),[e]),c.getSnapshot!==t||_||jt!==null&&jt.memoizedState.tag&1){if(s.flags|=2048,li(9,{destroy:void 0},bh.bind(null,s,c,n,t),null),Xe===null)throw Error(r(349));u||(La&127)!==0||yh(s,t,n)}return n}function yh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=Pr(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function bh(e,t,n,s){t.value=n,t.getSnapshot=s,Sh(t)&&jh(e)}function xh(e,t,n){return n(function(){Sh(t)&&jh(e)})}function Sh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vn(e,n)}catch{return!0}}function jh(e){var t=Zs(e,2);t!==null&&cn(t,e,2)}function v0(e){var t=Kt();if(typeof e=="function"){var n=e;if(e=n(),il){as(!0);try{n()}finally{as(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:e},t}function wh(e,t,n,s){return e.baseState=n,_0(e,Pe,typeof s=="function"?s:Oa)}function Sv(e,t,n,s,c){if(Zr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:c,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,s(u),n=t.pending,n===null?(u.next=t.pending=u,Nh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Nh(e,t){var n=t.action,s=t.payload,c=e.state;if(t.isTransition){var u=q.T,_={};q.T=_;try{var x=n(c,s),E=q.S;E!==null&&E(_,x),Ch(e,t,x)}catch(D){y0(e,t,D)}finally{u!==null&&_.types!==null&&(u.types=_.types),q.T=u}}else try{u=n(c,s),Ch(e,t,u)}catch(D){y0(e,t,D)}}function Ch(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Eh(e,t,s)},function(s){return y0(e,t,s)}):Eh(e,t,n)}function Eh(e,t,n){t.status="fulfilled",t.value=n,Th(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Nh(e,n)))}function y0(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Th(t),t=t.next;while(t!==s)}e.action=null}function Th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kh(e,t){return t}function Rh(e,t){if(Oe){var n=Xe.formState;if(n!==null){e:{var s=Se;if(Oe){if(tt){t:{for(var c=tt,u=qn;c.nodeType!==8;){if(!u){c=null;break t}if(c=Gn(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){tt=Gn(c.nextSibling),s=c.data==="F!";break e}}rs(s)}s=!1}s&&(t=n[0])}}return n=Kt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kh,lastRenderedState:t},n.queue=s,n=Xh.bind(null,Se,s),s.dispatch=n,s=v0(!1),u=N0.bind(null,Se,!1,s.queue),s=Kt(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,n=Sv.bind(null,Se,c,u,n),c.dispatch=n,s.memoizedState=e,[t,n,!1]}function Ah(e){var t=yt();return Lh(t,Pe,e)}function Lh(e,t,n){if(t=_0(e,t,kh)[0],e=Yr(Oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=_o(t)}catch(_){throw _===ei?$r:_}else s=t;t=yt();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,li(9,{destroy:void 0},jv.bind(null,c,n),null)),[s,u,e]}function jv(e,t){e.action=t}function Oh(e){var t=yt(),n=Pe;if(n!==null)return Lh(t,n,e);yt(),t=t.memoizedState,n=yt();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function li(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Pr(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Mh(){return yt().memoizedState}function Xr(e,t,n,s){var c=Kt();Se.flags|=e,c.memoizedState=li(1|t,{destroy:void 0},n,s===void 0?null:s)}function Kr(e,t,n,s){var c=yt();s=s===void 0?null:s;var u=c.memoizedState.inst;Pe!==null&&s!==null&&u0(s,Pe.memoizedState.deps)?c.memoizedState=li(t,u,n,s):(Se.flags|=e,c.memoizedState=li(1|t,u,n,s))}function zh(e,t){Xr(8390656,8,e,t)}function b0(e,t){Kr(2048,8,e,t)}function wv(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Pr(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Dh(e){var t=yt().memoizedState;return wv({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return Kr(4,2,e,t)}function $h(e,t){return Kr(4,4,e,t)}function Uh(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 Hh(e,t,n){n=n!=null?n.concat([e]):null,Kr(4,4,Uh.bind(null,t,e),n)}function x0(){}function qh(e,t){var n=yt();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&u0(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Fh(e,t){var n=yt();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&u0(t,s[1]))return s[0];if(s=e(),il){as(!0);try{e()}finally{as(!1)}}return n.memoizedState=[s,t],s}function S0(e,t,n){return n===void 0||(La&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=G1(),Se.lanes|=e,gs|=e,n)}function Gh(e,t,n,s){return vn(n,t)?n:ni.current!==null?(e=S0(e,n,s),vn(e,t)||(wt=!0),e):(La&42)===0||(La&1073741824)!==0&&(Re&261930)===0?(wt=!0,e.memoizedState=n):(e=G1(),Se.lanes|=e,gs|=e,t)}function Vh(e,t,n,s,c){var u=Y.p;Y.p=u!==0&&8>u?u:8;var _=q.T,x={};q.T=x,N0(e,!1,t,n);try{var E=c(),D=q.S;if(D!==null&&D(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var F=yv(E,s);go(e,t,F,wn(e))}else go(e,t,s,wn(e))}catch(Q){go(e,t,{then:function(){},status:"rejected",reason:Q},wn())}finally{Y.p=u,_!==null&&x.types!==null&&(_.types=x.types),q.T=_}}function Nv(){}function j0(e,t,n,s){if(e.tag!==5)throw Error(r(476));var c=Qh(e).queue;Vh(e,c,t,ae,n===null?Nv:function(){return Ph(e),n(s)})}function Qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ph(e){var t=Qh(e);t.next===null&&(t=e.alternate.memoizedState),go(e,t.next.queue,{},wn())}function w0(){return Ft(Mo)}function Ih(){return yt().memoizedState}function Yh(){return yt().memoizedState}function Cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=wn();e=ds(n);var s=fs(t,e,n);s!==null&&(cn(s,t,n),fo(s,t,n)),t={cache:Ju()},e.payload=t;return}t=t.return}}function Ev(e,t,n){var s=wn();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zr(e)?Kh(t,n):(n=Fu(e,t,n,s),n!==null&&(cn(n,e,s),Zh(n,t,s)))}function Xh(e,t,n){var s=wn();go(e,t,n,s)}function go(e,t,n,s){var c={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zr(e))Kh(t,c);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(c.hasEagerState=!0,c.eagerState=x,vn(x,_))return Ar(e,t,c,0),Xe===null&&Rr(),!1}catch{}finally{}if(n=Fu(e,t,c,s),n!==null)return cn(n,e,s),Zh(n,t,s),!0}return!1}function N0(e,t,n,s){if(s={lane:2,revertLane:ad(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Zr(e)){if(t)throw Error(r(479))}else t=Fu(e,n,s,2),t!==null&&cn(t,e,2)}function Zr(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Kh(e,t){ai=Vr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zh(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,tf(e,n)}}var vo={readContext:Ft,use:Ir,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};vo.useEffectEvent=dt;var Wh={readContext:Ft,use:Ir,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Xr(4194308,4,Uh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xr(4194308,4,e,t)},useInsertionEffect:function(e,t){Xr(4,2,e,t)},useMemo:function(e,t){var n=Kt();t=t===void 0?null:t;var s=e();if(il){as(!0);try{e()}finally{as(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Kt();if(n!==void 0){var c=n(t);if(il){as(!0);try{n(t)}finally{as(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=Ev.bind(null,Se,e),[s.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=v0(e);var t=e.queue,n=Xh.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:x0,useDeferredValue:function(e,t){var n=Kt();return S0(n,e,t)},useTransition:function(){var e=v0(!1);return e=Vh.bind(null,Se,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=Se,c=Kt();if(Oe){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Xe===null)throw Error(r(349));(Re&127)!==0||yh(s,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,zh(xh.bind(null,s,u,e),[e]),s.flags|=2048,li(9,{destroy:void 0},bh.bind(null,s,u,n,t),null),n},useId:function(){var e=Kt(),t=Xe.identifierPrefix;if(Oe){var n=ca,s=ra;n=(s&~(1<<32-gn(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Qr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:w0,useFormState:Rh,useActionState:Rh,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=N0.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:p0,useCacheRefresh:function(){return Kt().memoizedState=Cv.bind(null,Se)},useEffectEvent:function(e){var t=Kt(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},C0={readContext:Ft,use:Ir,useCallback:qh,useContext:Ft,useEffect:b0,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:$h,useMemo:Fh,useReducer:Yr,useRef:Mh,useState:function(){return Yr(Oa)},useDebugValue:x0,useDeferredValue:function(e,t){var n=yt();return Gh(n,Pe.memoizedState,e,t)},useTransition:function(){var e=Yr(Oa)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:_o(e),t]},useSyncExternalStore:vh,useId:Ih,useHostTransitionStatus:w0,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var n=yt();return wh(n,Pe,e,t)},useMemoCache:p0,useCacheRefresh:Yh};C0.useEffectEvent=Dh;var Jh={readContext:Ft,use:Ir,useCallback:qh,useContext:Ft,useEffect:b0,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:$h,useMemo:Fh,useReducer:g0,useRef:Mh,useState:function(){return g0(Oa)},useDebugValue:x0,useDeferredValue:function(e,t){var n=yt();return Pe===null?S0(n,e,t):Gh(n,Pe.memoizedState,e,t)},useTransition:function(){var e=g0(Oa)[0],t=yt().memoizedState;return[typeof e=="boolean"?e:_o(e),t]},useSyncExternalStore:vh,useId:Ih,useHostTransitionStatus:w0,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var n=yt();return Pe!==null?wh(n,Pe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:p0,useCacheRefresh:Yh};Jh.useEffectEvent=Dh;function E0(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var T0={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=wn(),c=ds(s);c.payload=t,n!=null&&(c.callback=n),t=fs(e,c,s),t!==null&&(cn(t,e,s),fo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=wn(),c=ds(s);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=fs(e,c,s),t!==null&&(cn(t,e,s),fo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wn(),s=ds(n);s.tag=2,t!=null&&(s.callback=t),t=fs(e,s,n),t!==null&&(cn(t,e,n),fo(t,e,n))}};function e1(e,t,n,s,c,u,_){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,_):t.prototype&&t.prototype.isPureReactComponent?!ao(n,s)||!ao(c,u):!0}function t1(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&T0.enqueueReplaceState(t,t.state,null)}function ol(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function n1(e){kr(e)}function a1(e){console.error(e)}function s1(e){kr(e)}function Wr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function l1(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function k0(e,t,n){return n=ds(n),n.tag=3,n.payload={element:null},n.callback=function(){Wr(e,t)},n}function i1(e){return e=ds(e),e.tag=3,e}function o1(e,t,n,s){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=s.value;e.payload=function(){return c(u)},e.callback=function(){l1(t,n,s)}}var _=n.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(e.callback=function(){l1(t,n,s),typeof c!="function"&&(vs===null?vs=new Set([this]):vs.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Tv(e,t,n,s,c){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Zl(t,n,c,!0),n=bn.current,n!==null){switch(n.tag){case 31:case 13:return Fn===null?uc():n.alternate===null&&ft===0&&(ft=3),n.flags&=-257,n.flags|=65536,n.lanes=c,s===Ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),ed(e,s,c)),!1;case 22:return n.flags|=65536,s===Ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),ed(e,s,c)),!1}throw Error(r(435,n.tag))}return ed(e,s,c),uc(),!1}if(Oe)return t=bn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==Yu&&(e=Error(r(422),{cause:s}),io($n(e,n)))):(s!==Yu&&(t=Error(r(423),{cause:s}),io($n(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=$n(s,n),c=k0(e.stateNode,s,c),l0(e,c),ft!==4&&(ft=2)),!1;var u=Error(r(520),{cause:s});if(u=$n(u,n),Co===null?Co=[u]:Co.push(u),ft!==4&&(ft=2),t===null)return!0;s=$n(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=k0(n.stateNode,s,e),l0(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"&&(vs===null||!vs.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=i1(c),o1(c,e,n,s),l0(n,c),!1}n=n.return}while(n!==null);return!1}var R0=Error(r(461)),wt=!1;function Gt(e,t,n,s){t.child=e===null?dh(t,null,n,s):ll(t,e.child,n,s)}function r1(e,t,n,s,c){n=n.render;var u=t.ref;if("ref"in s){var _={};for(var x in s)x!=="ref"&&(_[x]=s[x])}else _=s;return tl(t),s=d0(e,t,n,_,u,c),x=f0(),e!==null&&!wt?(h0(e,t,c),Ma(e,t,c)):(Oe&&x&&Pu(t),t.flags|=1,Gt(e,t,s,c),t.child)}function c1(e,t,n,s,c){if(e===null){var u=n.type;return typeof u=="function"&&!Gu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,u1(e,t,u,s,c)):(e=Or(n.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!$0(e,c)){var _=u.memoizedProps;if(n=n.compare,n=n!==null?n:ao,n(_,s)&&e.ref===t.ref)return Ma(e,t,c)}return t.flags|=1,e=Ta(u,s),e.ref=t.ref,e.return=t,t.child=e}function u1(e,t,n,s,c){if(e!==null){var u=e.memoizedProps;if(ao(u,s)&&e.ref===t.ref)if(wt=!1,t.pendingProps=s=u,$0(e,c))(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,Ma(e,t,c)}return A0(e,t,n,s,c)}function d1(e,t,n,s){var c=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;s=c&~u}else s=0,t.child=null;return f1(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Br(t,u!==null?u.cachePool:null),u!==null?mh(t,u):o0(),ph(t);else return s=t.lanes=536870912,f1(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(Br(t,u.cachePool),mh(t,u),ms(),t.memoizedState=null):(e!==null&&Br(t,null),o0(),ms());return Gt(e,t,c,n),t.child}function yo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function f1(e,t,n,s,c){var u=t0();return u=u===null?null:{parent:St._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Br(t,null),o0(),ph(t),e!==null&&Zl(e,t,s,!0),t.childLanes=c,null}function Jr(e,t){return t=tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function h1(e,t,n){return ll(t,e.child,null,n),e=Jr(t,t.pendingProps),e.flags|=2,xn(t),t.memoizedState=null,e}function kv(e,t,n){var s=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(s.mode==="hidden")return e=Jr(t,s),t.lanes=536870912,yo(null,e);if(c0(t),(e=tt)?(e=Nm(e,qn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:is!==null?{id:ra,overflow:ca}:null,retryLane:536870912,hydrationErrors:null},n=Kf(e),n.return=t,t.child=n,qt=t,tt=null)):e=null,e===null)throw rs(t);return t.lanes=536870912,null}return Jr(t,s)}var u=e.memoizedState;if(u!==null){var _=u.dehydrated;if(c0(t),c)if(t.flags&256)t.flags&=-257,t=h1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(wt||Zl(e,t,n,!1),c=(n&e.childLanes)!==0,wt||c){if(s=Xe,s!==null&&(_=nf(s,n),_!==0&&_!==u.retryLane))throw u.retryLane=_,Zs(e,_),cn(s,e,_),R0;uc(),t=h1(e,t,n)}else e=u.treeContext,tt=Gn(_.nextSibling),qt=t,Oe=!0,os=null,qn=!1,e!==null&&Jf(t,e),t=Jr(t,s),t.flags|=4096;return t}return e=Ta(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ec(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 A0(e,t,n,s,c){return tl(t),n=d0(e,t,n,s,void 0,c),s=f0(),e!==null&&!wt?(h0(e,t,c),Ma(e,t,c)):(Oe&&s&&Pu(t),t.flags|=1,Gt(e,t,n,c),t.child)}function m1(e,t,n,s,c,u){return tl(t),t.updateQueue=null,n=gh(t,s,n,c),_h(e),s=f0(),e!==null&&!wt?(h0(e,t,u),Ma(e,t,u)):(Oe&&s&&Pu(t),t.flags|=1,Gt(e,t,n,u),t.child)}function p1(e,t,n,s,c){if(tl(t),t.stateNode===null){var u=Il,_=n.contextType;typeof _=="object"&&_!==null&&(u=Ft(_)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=T0,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},a0(t),_=n.contextType,u.context=typeof _=="object"&&_!==null?Ft(_):Il,u.state=t.memoizedState,_=n.getDerivedStateFromProps,typeof _=="function"&&(E0(t,n,_,s),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&&T0.enqueueReplaceState(u,u.state,null),mo(t,s,u,c),ho(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,E=ol(n,x);u.props=E;var D=u.context,F=n.contextType;_=Il,typeof F=="object"&&F!==null&&(_=Ft(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||D!==_)&&t1(t,u,s,_),us=!1;var B=t.memoizedState;u.state=B,mo(t,s,u,c),ho(),D=t.memoizedState,x||B!==D||us?(typeof Q=="function"&&(E0(t,n,Q,s),D=t.memoizedState),(E=us||e1(t,n,E,s,B,D,_))?(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=s,t.memoizedState=D),u.props=s,u.state=D,u.context=_,s=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,s0(e,t),_=t.memoizedProps,F=ol(n,_),u.props=F,Q=t.pendingProps,B=u.context,D=n.contextType,E=Il,typeof D=="object"&&D!==null&&(E=Ft(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(_!==Q||B!==E)&&t1(t,u,s,E),us=!1,B=t.memoizedState,u.state=B,mo(t,s,u,c),ho();var U=t.memoizedState;_!==Q||B!==U||us||e!==null&&e.dependencies!==null&&zr(e.dependencies)?(typeof x=="function"&&(E0(t,n,x,s),U=t.memoizedState),(F=us||e1(t,n,F,s,B,U,E)||e!==null&&e.dependencies!==null&&zr(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,U,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,U,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=U),u.props=s,u.state=U,u.context=E,s=F):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,ec(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=ll(t,e.child,null,c),t.child=ll(t,null,n,c)):Gt(e,t,n,c),t.memoizedState=u.state,e=t.child):e=Ma(e,t,c),e}function _1(e,t,n,s){return Js(),t.flags|=256,Gt(e,t,n,s),t.child}var L0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function O0(e){return{baseLanes:e,cachePool:lh()}}function M0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=jn),e}function g1(e,t,n){var s=t.pendingProps,c=!1,u=(t.flags&128)!==0,_;if((_=u)||(_=e!==null&&e.memoizedState===null?!1:(vt.current&2)!==0),_&&(c=!0,t.flags&=-129),_=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(c?hs(t):ms(),(e=tt)?(e=Nm(e,qn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:is!==null?{id:ra,overflow:ca}:null,retryLane:536870912,hydrationErrors:null},n=Kf(e),n.return=t,t.child=n,qt=t,tt=null)):e=null,e===null)throw rs(t);return _d(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,c?(ms(),c=t.mode,x=tc({mode:"hidden",children:x},c),s=Ws(s,c,n,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=O0(n),s.childLanes=M0(e,_,n),t.memoizedState=L0,yo(null,s)):(hs(t),z0(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(u)t.flags&256?(hs(t),t.flags&=-257,t=D0(e,t,n)):t.memoizedState!==null?(ms(),t.child=e.child,t.flags|=128,t=null):(ms(),x=s.fallback,c=t.mode,s=tc({mode:"visible",children:s.children},c),x=Ws(x,c,n,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,ll(t,e.child,null,n),s=t.child,s.memoizedState=O0(n),s.childLanes=M0(e,_,n),t.memoizedState=L0,t=yo(null,s));else if(hs(t),_d(x)){if(_=x.nextSibling&&x.nextSibling.dataset,_)var D=_.dgst;_=D,s=Error(r(419)),s.stack="",s.digest=_,io({value:s,source:null,stack:null}),t=D0(e,t,n)}else if(wt||Zl(e,t,n,!1),_=(n&e.childLanes)!==0,wt||_){if(_=Xe,_!==null&&(s=nf(_,n),s!==0&&s!==E.retryLane))throw E.retryLane=s,Zs(e,s),cn(_,e,s),R0;pd(x)||uc(),t=D0(e,t,n)}else pd(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,tt=Gn(x.nextSibling),qt=t,Oe=!0,os=null,qn=!1,e!==null&&Jf(t,e),t=z0(t,s.children),t.flags|=4096);return t}return c?(ms(),x=s.fallback,c=t.mode,E=e.child,D=E.sibling,s=Ta(E,{mode:"hidden",children:s.children}),s.subtreeFlags=E.subtreeFlags&65011712,D!==null?x=Ta(D,x):(x=Ws(x,c,n,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,yo(null,s),s=t.child,x=e.child.memoizedState,x===null?x=O0(n):(c=x.cachePool,c!==null?(E=St._currentValue,c=c.parent!==E?{parent:E,pool:E}:c):c=lh(),x={baseLanes:x.baseLanes|n,cachePool:c}),s.memoizedState=x,s.childLanes=M0(e,_,n),t.memoizedState=L0,yo(e.child,s)):(hs(t),n=e.child,e=n.sibling,n=Ta(n,{mode:"visible",children:s.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 z0(e,t){return t=tc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tc(e,t){return e=yn(22,e,null,t),e.lanes=0,e}function D0(e,t,n){return ll(t,e.child,null,n),e=z0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v1(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Zu(e.return,t,n)}function B0(e,t,n,s,c,u){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:c,treeForkCount:u}:(_.isBackwards=t,_.rendering=null,_.renderingStartTime=0,_.last=s,_.tail=n,_.tailMode=c,_.treeForkCount=u)}function y1(e,t,n){var s=t.pendingProps,c=s.revealOrder,u=s.tail;s=s.children;var _=vt.current,x=(_&2)!==0;if(x?(_=_&1|2,t.flags|=128):_&=1,K(vt,_),Gt(e,t,s,n),s=Oe?lo:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&v1(e,n,t);else if(e.tag===19)v1(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(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Gr(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),B0(t,!1,c,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Gr(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}B0(t,!0,n,null,u,s);break;case"together":B0(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Ma(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),gs|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Zl(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=Ta(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ta(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zr(e)))}function Rv(e,t,n){switch(t.tag){case 3:Tt(t,t.stateNode.containerInfo),cs(t,St,e.memoizedState.cache),Js();break;case 27:case 5:xa(t);break;case 4:Tt(t,t.stateNode.containerInfo);break;case 10:cs(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,c0(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(hs(t),t.flags|=128,null):(n&t.child.childLanes)!==0?g1(e,t,n):(hs(t),e=Ma(e,t,n),e!==null?e.sibling:null);hs(t);break;case 19:var c=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Zl(e,t,n,!1),s=(n&t.childLanes)!==0),c){if(s)return y1(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),K(vt,vt.current),s)break;return null;case 22:return t.lanes=0,d1(e,t,n,t.pendingProps);case 24:cs(t,St,e.memoizedState.cache)}return Ma(e,t,n)}function b1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)wt=!0;else{if(!$0(e,n)&&(t.flags&128)===0)return wt=!1,Rv(e,t,n);wt=(e.flags&131072)!==0}else wt=!1,Oe&&(t.flags&1048576)!==0&&Wf(t,lo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=al(t.elementType),t.type=e,typeof e=="function")Gu(e)?(s=ol(e,s),t.tag=1,t=p1(null,t,e,s,n)):(t.tag=0,t=A0(null,t,e,s,n));else{if(e!=null){var c=e.$$typeof;if(c===H){t.tag=11,t=r1(null,t,e,s,n);break e}else if(c===$){t.tag=14,t=c1(null,t,e,s,n);break e}}throw t=he(e)||e,Error(r(306,t,""))}}return t;case 0:return A0(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,c=ol(s,t.pendingProps),p1(e,t,s,c,n);case 3:e:{if(Tt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;c=u.element,s0(e,t),mo(t,s,null,n);var _=t.memoizedState;if(s=_.cache,cs(t,St,s),s!==u.cache&&Wu(t,[St],n,!0),ho(),s=_.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:_.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=_1(e,t,s,n);break e}else if(s!==c){c=$n(Error(r(424)),t),io(c),t=_1(e,t,s,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(tt=Gn(e.firstChild),qt=t,Oe=!0,os=null,qn=!0,n=dh(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Js(),s===c){t=Ma(e,t,n);break e}Gt(e,t,s,n)}t=t.child}return t;case 26:return ec(e,t),e===null?(n=Am(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,s=gc(ge.current).createElement(n),s[Ht]=t,s[nn]=e,Vt(s,n,e),Ot(s),t.stateNode=s):t.memoizedState=Am(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xa(t),e===null&&Oe&&(s=t.stateNode=Tm(t.type,t.pendingProps,ge.current),qt=t,qn=!0,c=tt,Ss(t.type)?(gd=c,tt=Gn(s.firstChild)):tt=c),Gt(e,t,t.pendingProps.children,n),ec(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((c=s=tt)&&(s=iy(s,t.type,t.pendingProps,qn),s!==null?(t.stateNode=s,qt=t,tt=Gn(s.firstChild),qn=!1,c=!0):c=!1),c||rs(t)),xa(t),c=t.type,u=t.pendingProps,_=e!==null?e.memoizedProps:null,s=u.children,fd(c,u)?s=null:_!==null&&fd(c,_)&&(t.flags|=32),t.memoizedState!==null&&(c=d0(e,t,xv,null,null,n),Mo._currentValue=c),ec(e,t),Gt(e,t,s,n),t.child;case 6:return e===null&&Oe&&((e=n=tt)&&(n=oy(n,t.pendingProps,qn),n!==null?(t.stateNode=n,qt=t,tt=null,e=!0):e=!1),e||rs(t)),null;case 13:return g1(e,t,n);case 4:return Tt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=ll(t,null,s,n):Gt(e,t,s,n),t.child;case 11:return r1(e,t,t.type,t.pendingProps,n);case 7:return Gt(e,t,t.pendingProps,n),t.child;case 8:return Gt(e,t,t.pendingProps.children,n),t.child;case 12:return Gt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,cs(t,t.type,s.value),Gt(e,t,s.children,n),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,tl(t),c=Ft(c),s=s(c),t.flags|=1,Gt(e,t,s,n),t.child;case 14:return c1(e,t,t.type,t.pendingProps,n);case 15:return u1(e,t,t.type,t.pendingProps,n);case 19:return y1(e,t,n);case 31:return kv(e,t,n);case 22:return d1(e,t,n,t.pendingProps);case 24:return tl(t),s=Ft(St),e===null?(c=t0(),c===null&&(c=Xe,u=Ju(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:s,cache:c},a0(t),cs(t,St,c)):((e.lanes&n)!==0&&(s0(e,t),mo(t,null,null,n),ho()),c=e.memoizedState,u=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),cs(t,St,s)):(s=u.cache,cs(t,St,s),s!==c.cache&&Wu(t,[St],n,!0))),Gt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function za(e){e.flags|=4}function U0(e,t,n,s,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(I1())e.flags|=8192;else throw sl=Ur,n0}else e.flags&=-16777217}function x1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Dm(t))if(I1())e.flags|=8192;else throw sl=Ur,n0}function nc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?J2():536870912,e.lanes|=t,ci|=t)}function bo(e,t){if(!Oe)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Av(e,t,n){var s=t.pendingProps;switch(Iu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Aa(St),et(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?za(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xu())),nt(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(za(t),u!==null?(nt(t),x1(t,u)):(nt(t),U0(t,c,null,s,n))):u?u!==e.memoizedState?(za(t),nt(t),x1(t,u)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&za(t),nt(t),U0(t,c,e,s,n)),null;case 27:if(ts(t),n=ge.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&za(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return nt(t),null}e=W.current,Kl(t)?eh(t):(e=Tm(c,s,n),t.stateNode=e,za(t))}return nt(t),null;case 5:if(ts(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&za(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return nt(t),null}if(u=W.current,Kl(t))eh(t);else{var _=gc(ge.current);switch(u){case 1:u=_.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=_.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=_.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=_.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=_.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?_.createElement("select",{is:s.is}):_.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?_.createElement(c,{is:s.is}):_.createElement(c)}}u[Ht]=t,u[nn]=s;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(Vt(u,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&za(t)}}return nt(t),U0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&za(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=ge.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,c=qt,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[Ht]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||gm(e.nodeValue,n)),e||rs(t,!0)}else e=gc(e).createTextNode(s),e[Ht]=t,t.stateNode=e}return nt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Kl(t),n!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ht]=t}else Js(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else n=Xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xn(t),t):(xn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return nt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Kl(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[Ht]=t}else Js(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),c=!1}else c=Xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(xn(t),t):(xn(t),null)}return xn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==c&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),nc(t,t.updateQueue),nt(t),null);case 4:return et(),e===null&&od(t.stateNode.containerInfo),nt(t),null;case 10:return Aa(t.type),nt(t),null;case 19:if(V(vt),s=t.memoizedState,s===null)return nt(t),null;if(c=(t.flags&128)!==0,u=s.rendering,u===null)if(c)bo(s,!1);else{if(ft!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Gr(e),u!==null){for(t.flags|=128,bo(s,!1),e=u.updateQueue,t.updateQueue=e,nc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Xf(n,e),n=n.sibling;return K(vt,vt.current&1|2),Oe&&ka(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&gt()>oc&&(t.flags|=128,c=!0,bo(s,!1),t.lanes=4194304)}else{if(!c)if(e=Gr(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,nc(t,e),bo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Oe)return nt(t),null}else 2*gt()-s.renderingStartTime>oc&&n!==536870912&&(t.flags|=128,c=!0,bo(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=gt(),e.sibling=null,n=vt.current,K(vt,c?n&1|2:n&1),Oe&&ka(t,s.treeForkCount),e):(nt(t),null);case 22:case 23:return xn(t),r0(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),n=t.updateQueue,n!==null&&nc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&V(nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Aa(St),nt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Lv(e,t){switch(Iu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Aa(St),et(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ts(t),null;case 31:if(t.memoizedState!==null){if(xn(t),t.alternate===null)throw Error(r(340));Js()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Js()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(vt),null;case 4:return et(),null;case 10:return Aa(t.type),null;case 22:case 23:return xn(t),r0(),e!==null&&V(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Aa(St),null;case 25:return null;default:return null}}function S1(e,t){switch(Iu(t),t.tag){case 3:Aa(St),et();break;case 26:case 27:case 5:ts(t);break;case 4:et();break;case 31:t.memoizedState!==null&&xn(t);break;case 13:xn(t);break;case 19:V(vt);break;case 10:Aa(t.type);break;case 22:case 23:xn(t),r0(),e!==null&&V(nl);break;case 24:Aa(St)}}function xo(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){s=void 0;var u=n.create,_=n.inst;s=u(),_.destroy=s}n=n.next}while(n!==c)}}catch(x){Ve(t,t.return,x)}}function ps(e,t,n){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var u=c.next;s=u;do{if((s.tag&e)===e){var _=s.inst,x=_.destroy;if(x!==void 0){_.destroy=void 0,c=t;var E=n,D=x;try{D()}catch(F){Ve(c,E,F)}}}s=s.next}while(s!==u)}}catch(F){Ve(t,t.return,F)}}function j1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{hh(t,n)}catch(s){Ve(e,e.return,s)}}}function w1(e,t,n){n.props=ol(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Ve(e,t,s)}}function So(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(c){Ve(e,t,c)}}function ua(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Ve(e,t,c)}else n.current=null}function N1(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(c){Ve(e,e.return,c)}}function H0(e,t,n){try{var s=e.stateNode;ey(s,e.type,n,t),s[nn]=t}catch(c){Ve(e,e.return,c)}}function C1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ss(e.type)||e.tag===4}function q0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C1(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&&Ss(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 F0(e,t,n){var s=e.tag;if(s===5||s===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=Ca));else if(s!==4&&(s===27&&Ss(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(F0(e,t,n),e=e.sibling;e!==null;)F0(e,t,n),e=e.sibling}function ac(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&Ss(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function E1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Vt(t,s,n),t[Ht]=e,t[nn]=n}catch(u){Ve(e,e.return,u)}}var Da=!1,Nt=!1,G0=!1,T1=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function Ov(e,t){if(e=e.containerInfo,ud=wc,e=Hf(e),Du(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var c=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var _=0,x=-1,E=-1,D=0,F=0,Q=e,B=null;t:for(;;){for(var U;Q!==n||c!==0&&Q.nodeType!==3||(x=_+c),Q!==u||s!==0&&Q.nodeType!==3||(E=_+s),Q.nodeType===3&&(_+=Q.nodeValue.length),(U=Q.firstChild)!==null;)B=Q,Q=U;for(;;){if(Q===e)break t;if(B===n&&++D===c&&(x=_),B===u&&++F===s&&(E=_),(U=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=U}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(dd={focusedElem:e,selectionRange:n},wc=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,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++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var ee=ol(n.type,c);e=s.getSnapshotBeforeUpdate(ee,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(me){Ve(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)md(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(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,Mt=e;break}Mt=t.return}}function k1(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:$a(e,n),s&4&&xo(5,n);break;case 1:if($a(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(_){Ve(n,n.return,_)}else{var c=ol(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(_){Ve(n,n.return,_)}}s&64&&j1(n),s&512&&So(n,n.return);break;case 3:if($a(e,n),s&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{hh(e,t)}catch(_){Ve(n,n.return,_)}}break;case 27:t===null&&s&4&&E1(n);case 26:case 5:$a(e,n),t===null&&s&4&&N1(n),s&512&&So(n,n.return);break;case 12:$a(e,n);break;case 31:$a(e,n),s&4&&L1(e,n);break;case 13:$a(e,n),s&4&&O1(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Fv.bind(null,n),ry(e,n))));break;case 22:if(s=n.memoizedState!==null||Da,!s){t=t!==null&&t.memoizedState!==null||Nt,c=Da;var u=Nt;Da=s,(Nt=t)&&!u?Ua(e,n,(n.subtreeFlags&8772)!==0):$a(e,n),Da=c,Nt=u}break;case 30:break;default:$a(e,n)}}function R1(e){var t=e.alternate;t!==null&&(e.alternate=null,R1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&yu(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 st=null,sn=!1;function Ba(e,t,n){for(n=n.child;n!==null;)A1(e,t,n),n=n.sibling}function A1(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Qi,n)}catch{}switch(n.tag){case 26:Nt||ua(n,t),Ba(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Nt||ua(n,t);var s=st,c=sn;Ss(n.type)&&(st=n.stateNode,sn=!1),Ba(e,t,n),Ao(n.stateNode),st=s,sn=c;break;case 5:Nt||ua(n,t);case 6:if(s=st,c=sn,st=null,Ba(e,t,n),st=s,sn=c,st!==null)if(sn)try{(st.nodeType===9?st.body:st.nodeName==="HTML"?st.ownerDocument.body:st).removeChild(n.stateNode)}catch(u){Ve(n,t,u)}else try{st.removeChild(n.stateNode)}catch(u){Ve(n,t,u)}break;case 18:st!==null&&(sn?(e=st,jm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),gi(e)):jm(st,n.stateNode));break;case 4:s=st,c=sn,st=n.stateNode.containerInfo,sn=!0,Ba(e,t,n),st=s,sn=c;break;case 0:case 11:case 14:case 15:ps(2,n,t),Nt||ps(4,n,t),Ba(e,t,n);break;case 1:Nt||(ua(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&w1(n,t,s)),Ba(e,t,n);break;case 21:Ba(e,t,n);break;case 22:Nt=(s=Nt)||n.memoizedState!==null,Ba(e,t,n),Nt=s;break;default:Ba(e,t,n)}}function L1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gi(e)}catch(n){Ve(t,t.return,n)}}}function O1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gi(e)}catch(n){Ve(t,t.return,n)}}function Mv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new T1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new T1),t;default:throw Error(r(435,e.tag))}}function sc(e,t){var n=Mv(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var c=Gv.bind(null,e,s);s.then(c,c)}})}function ln(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var c=n[s],u=e,_=t,x=_;e:for(;x!==null;){switch(x.tag){case 27:if(Ss(x.type)){st=x.stateNode,sn=!1;break e}break;case 5:st=x.stateNode,sn=!1;break e;case 3:case 4:st=x.stateNode.containerInfo,sn=!0;break e}x=x.return}if(st===null)throw Error(r(160));A1(u,_,c),st=null,sn=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)M1(t,e),t=t.sibling}var Zn=null;function M1(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ln(t,e),on(e),s&4&&(ps(3,e,e.return),xo(3,e),ps(5,e,e.return));break;case 1:ln(t,e),on(e),s&512&&(Nt||n===null||ua(n,n.return)),s&64&&Da&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var c=Zn;if(ln(t,e),on(e),s&512&&(Nt||n===null||ua(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":u=c.getElementsByTagName("title")[0],(!u||u[Yi]||u[Ht]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(s),c.head.insertBefore(u,c.querySelector("head > title"))),Vt(u,s,n),u[Ht]=e,Ot(u),s=u;break e;case"link":var _=Mm("link","href",c).get(s+(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=c.createElement(s),Vt(u,s,n),c.head.appendChild(u);break;case"meta":if(_=Mm("meta","content",c).get(s+(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=c.createElement(s),Vt(u,s,n),c.head.appendChild(u);break;default:throw Error(r(468,s))}u[Ht]=e,Ot(u),s=u}e.stateNode=s}else zm(c,e.type,e.stateNode);else e.stateNode=Om(c,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?zm(c,e.type,e.stateNode):Om(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&H0(e,e.memoizedProps,n.memoizedProps)}break;case 27:ln(t,e),on(e),s&512&&(Nt||n===null||ua(n,n.return)),n!==null&&s&4&&H0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ln(t,e),on(e),s&512&&(Nt||n===null||ua(n,n.return)),e.flags&32){c=e.stateNode;try{Hl(c,"")}catch(ee){Ve(e,e.return,ee)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,H0(e,c,n!==null?n.memoizedProps:c)),s&1024&&(G0=!0);break;case 6:if(ln(t,e),on(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(ee){Ve(e,e.return,ee)}}break;case 3:if(bc=null,c=Zn,Zn=vc(t.containerInfo),ln(t,e),Zn=c,on(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{gi(t.containerInfo)}catch(ee){Ve(e,e.return,ee)}G0&&(G0=!1,z1(e));break;case 4:s=Zn,Zn=vc(e.stateNode.containerInfo),ln(t,e),on(e),Zn=s;break;case 12:ln(t,e),on(e);break;case 31:ln(t,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sc(e,s)));break;case 13:ln(t,e),on(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ic=gt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sc(e,s)));break;case 22:c=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,D=Da,F=Nt;if(Da=D||c,Nt=F||E,ln(t,e),Nt=F,Da=D,on(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||E||Da||Nt||rl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(u=E.stateNode,c)_=u.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{x=E.stateNode;var Q=E.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ee){Ve(E,E.return,ee)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=c?"":E.memoizedProps}catch(ee){Ve(E,E.return,ee)}}}else if(t.tag===18){if(n===null){E=t;try{var U=E.stateNode;c?wm(U,!0):wm(E.stateNode,!1)}catch(ee){Ve(E,E.return,ee)}}}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}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,sc(e,n))));break;case 19:ln(t,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sc(e,s)));break;case 30:break;case 21:break;default:ln(t,e),on(e)}}function on(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(C1(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var c=n.stateNode,u=q0(e);ac(e,u,c);break;case 5:var _=n.stateNode;n.flags&32&&(Hl(_,""),n.flags&=-33);var x=q0(e);ac(e,x,_);break;case 3:case 4:var E=n.stateNode.containerInfo,D=q0(e);F0(e,D,E);break;default:throw Error(r(161))}}catch(F){Ve(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function z1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;z1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function $a(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)k1(e,t.alternate,t),t=t.sibling}function rl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ps(4,t,t.return),rl(t);break;case 1:ua(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&w1(t,t.return,n),rl(t);break;case 27:Ao(t.stateNode);case 26:case 5:ua(t,t.return),rl(t);break;case 22:t.memoizedState===null&&rl(t);break;case 30:rl(t);break;default:rl(t)}e=e.sibling}}function Ua(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,u=t,_=u.flags;switch(u.tag){case 0:case 11:case 15:Ua(c,u,n),xo(4,u);break;case 1:if(Ua(c,u,n),s=u,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(D){Ve(s,s.return,D)}if(s=u,c=s.updateQueue,c!==null){var x=s.stateNode;try{var E=c.shared.hiddenCallbacks;if(E!==null)for(c.shared.hiddenCallbacks=null,c=0;c<E.length;c++)fh(E[c],x)}catch(D){Ve(s,s.return,D)}}n&&_&64&&j1(u),So(u,u.return);break;case 27:E1(u);case 26:case 5:Ua(c,u,n),n&&s===null&&_&4&&N1(u),So(u,u.return);break;case 12:Ua(c,u,n);break;case 31:Ua(c,u,n),n&&_&4&&L1(c,u);break;case 13:Ua(c,u,n),n&&_&4&&O1(c,u);break;case 22:u.memoizedState===null&&Ua(c,u,n),So(u,u.return);break;case 30:break;default:Ua(c,u,n)}t=t.sibling}}function V0(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&&oo(n))}function Q0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oo(e))}function Wn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)D1(e,t,n,s),t=t.sibling}function D1(e,t,n,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Wn(e,t,n,s),c&2048&&xo(9,t);break;case 1:Wn(e,t,n,s);break;case 3:Wn(e,t,n,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oo(e)));break;case 12:if(c&2048){Wn(e,t,n,s),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(E){Ve(t,t.return,E)}}else Wn(e,t,n,s);break;case 31:Wn(e,t,n,s);break;case 13:Wn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,_=t.alternate,t.memoizedState!==null?u._visibility&2?Wn(e,t,n,s):jo(e,t):u._visibility&2?Wn(e,t,n,s):(u._visibility|=2,ii(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),c&2048&&V0(_,t);break;case 24:Wn(e,t,n,s),c&2048&&Q0(t.alternate,t);break;default:Wn(e,t,n,s)}}function ii(e,t,n,s,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,_=t,x=n,E=s,D=_.flags;switch(_.tag){case 0:case 11:case 15:ii(u,_,x,E,c),xo(8,_);break;case 23:break;case 22:var F=_.stateNode;_.memoizedState!==null?F._visibility&2?ii(u,_,x,E,c):jo(u,_):(F._visibility|=2,ii(u,_,x,E,c)),c&&D&2048&&V0(_.alternate,_);break;case 24:ii(u,_,x,E,c),c&&D&2048&&Q0(_.alternate,_);break;default:ii(u,_,x,E,c)}t=t.sibling}}function jo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,c=s.flags;switch(s.tag){case 22:jo(n,s),c&2048&&V0(s.alternate,s);break;case 24:jo(n,s),c&2048&&Q0(s.alternate,s);break;default:jo(n,s)}t=t.sibling}}var wo=8192;function oi(e,t,n){if(e.subtreeFlags&wo)for(e=e.child;e!==null;)B1(e,t,n),e=e.sibling}function B1(e,t,n){switch(e.tag){case 26:oi(e,t,n),e.flags&wo&&e.memoizedState!==null&&by(n,Zn,e.memoizedState,e.memoizedProps);break;case 5:oi(e,t,n);break;case 3:case 4:var s=Zn;Zn=vc(e.stateNode.containerInfo),oi(e,t,n),Zn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=wo,wo=16777216,oi(e,t,n),wo=s):oi(e,t,n));break;default:oi(e,t,n)}}function $1(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 No(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Mt=s,H1(s,e)}$1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)U1(e),e=e.sibling}function U1(e){switch(e.tag){case 0:case 11:case 15:No(e),e.flags&2048&&ps(9,e,e.return);break;case 3:No(e);break;case 12:No(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lc(e)):No(e);break;default:No(e)}}function lc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];Mt=s,H1(s,e)}$1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ps(8,t,t.return),lc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,lc(t));break;default:lc(t)}e=e.sibling}}function H1(e,t){for(;Mt!==null;){var n=Mt;switch(n.tag){case 0:case 11:case 15:ps(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:oo(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Mt=s;else e:for(n=e;Mt!==null;){s=Mt;var c=s.sibling,u=s.return;if(R1(s),s===n){Mt=null;break e}if(c!==null){c.return=u,Mt=c;break e}Mt=u}}}var zv={getCacheForType:function(e){var t=Ft(St),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ft(St).controller.signal}},Dv=typeof WeakMap=="function"?WeakMap:Map,He=0,Xe=null,Ce=null,Re=0,Ge=0,Sn=null,_s=!1,ri=!1,P0=!1,Ha=0,ft=0,gs=0,cl=0,I0=0,jn=0,ci=0,Co=null,rn=null,Y0=!1,ic=0,q1=0,oc=1/0,rc=null,vs=null,kt=0,ys=null,ui=null,qa=0,X0=0,K0=null,F1=null,Eo=0,Z0=null;function wn(){return(He&2)!==0&&Re!==0?Re&-Re:q.T!==null?ad():af()}function G1(){if(jn===0)if((Re&536870912)===0||Oe){var e=_r;_r<<=1,(_r&3932160)===0&&(_r=262144),jn=e}else jn=536870912;return e=bn.current,e!==null&&(e.flags|=32),jn}function cn(e,t,n){(e===Xe&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(di(e,0),bs(e,Re,jn,!1)),Ii(e,n),((He&2)===0||e!==Xe)&&(e===Xe&&((He&2)===0&&(cl|=n),ft===4&&bs(e,Re,jn,!1)),da(e))}function V1(e,t,n){if((He&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),c=s?Uv(e,t):J0(e,t,!0),u=s;do{if(c===0){ri&&!s&&bs(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Bv(n)){c=J0(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){t=_;e:{var x=e;c=Co;var E=x.current.memoizedState.isDehydrated;if(E&&(di(x,_).flags|=256),_=J0(x,_,!1),_!==2){if(P0&&!E){x.errorRecoveryDisabledLanes|=u,cl|=u,c=4;break e}u=rn,rn=c,u!==null&&(rn===null?rn=u:rn.push.apply(rn,u))}c=_}if(u=!1,c!==2)continue}}if(c===1){di(e,0),bs(e,t,0,!0);break}e:{switch(s=e,u=c,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:bs(s,t,jn,!_s);break e;case 2:rn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=ic+300-gt(),10<c)){if(bs(s,t,jn,!_s),vr(s,0,!0)!==0)break e;qa=t,s.timeoutHandle=xm(Q1.bind(null,s,n,rn,rc,Y0,t,jn,cl,ci,_s,u,"Throttled",-0,0),c);break e}Q1(s,n,rn,rc,Y0,t,jn,cl,ci,_s,u,null,-0,0)}}break}while(!0);da(e)}function Q1(e,t,n,s,c,u,_,x,E,D,F,Q,B,U){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:Ca},B1(t,u,Q);var ee=(u&62914560)===u?ic-gt():(u&4194048)===u?q1-gt():0;if(ee=xy(Q,ee),ee!==null){qa=u,e.cancelPendingCommit=ee(J1.bind(null,e,t,u,n,s,c,_,x,E,F,Q,null,B,U)),bs(e,u,_,!D);return}}J1(e,t,u,n,s,c,_,x,E)}function Bv(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 s=0;s<n.length;s++){var c=n[s],u=c.getSnapshot;c=c.value;try{if(!vn(u(),c))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 bs(e,t,n,s){t&=~I0,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var u=31-gn(c),_=1<<u;s[u]=-1,c&=~_}n!==0&&ef(e,n,t)}function cc(){return(He&6)===0?(To(0),!1):!0}function W0(){if(Ce!==null){if(Ge===0)var e=Ce.return;else e=Ce,Ra=el=null,m0(e),ti=null,co=0,e=Ce;for(;e!==null;)S1(e.alternate,e),e=e.return;Ce=null}}function di(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ay(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),qa=0,W0(),Xe=e,Ce=n=Ta(e.current,null),Re=t,Ge=0,Sn=null,_s=!1,ri=Pi(e,t),P0=!1,ci=jn=I0=cl=gs=ft=0,rn=Co=null,Y0=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-gn(s),u=1<<c;t|=e[c],s&=~u}return Ha=t,Rr(),n}function P1(e,t){Se=null,q.H=vo,t===ei||t===$r?(t=rh(),Ge=3):t===n0?(t=rh(),Ge=4):Ge=t===R0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Sn=t,Ce===null&&(ft=1,Wr(e,$n(t,e.current)))}function I1(){var e=bn.current;return e===null?!0:(Re&4194048)===Re?Fn===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Fn:!1}function Y1(){var e=q.H;return q.H=vo,e===null?vo:e}function X1(){var e=q.A;return q.A=zv,e}function uc(){ft=4,_s||(Re&4194048)!==Re&&bn.current!==null||(ri=!0),(gs&134217727)===0&&(cl&134217727)===0||Xe===null||bs(Xe,Re,jn,!1)}function J0(e,t,n){var s=He;He|=2;var c=Y1(),u=X1();(Xe!==e||Re!==t)&&(rc=null,di(e,t)),t=!1;var _=ft;e:do try{if(Ge!==0&&Ce!==null){var x=Ce,E=Sn;switch(Ge){case 8:W0(),_=6;break e;case 3:case 2:case 9:case 6:bn.current===null&&(t=!0);var D=Ge;if(Ge=0,Sn=null,fi(e,x,E,D),n&&ri){_=0;break e}break;default:D=Ge,Ge=0,Sn=null,fi(e,x,E,D)}}$v(),_=ft;break}catch(F){P1(e,F)}while(!0);return t&&e.shellSuspendCounter++,Ra=el=null,He=s,q.H=c,q.A=u,Ce===null&&(Xe=null,Re=0,Rr()),_}function $v(){for(;Ce!==null;)K1(Ce)}function Uv(e,t){var n=He;He|=2;var s=Y1(),c=X1();Xe!==e||Re!==t?(rc=null,oc=gt()+500,di(e,t)):ri=Pi(e,t);e:do try{if(Ge!==0&&Ce!==null){t=Ce;var u=Sn;t:switch(Ge){case 1:Ge=0,Sn=null,fi(e,t,u,1);break;case 2:case 9:if(ih(u)){Ge=0,Sn=null,Z1(t);break}t=function(){Ge!==2&&Ge!==9||Xe!==e||(Ge=7),da(e)},u.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:ih(u)?(Ge=0,Sn=null,Z1(t)):(Ge=0,Sn=null,fi(e,t,u,7));break;case 5:var _=null;switch(Ce.tag){case 26:_=Ce.memoizedState;case 5:case 27:var x=Ce;if(_?Dm(_):x.stateNode.complete){Ge=0,Sn=null;var E=x.sibling;if(E!==null)Ce=E;else{var D=x.return;D!==null?(Ce=D,dc(D)):Ce=null}break t}}Ge=0,Sn=null,fi(e,t,u,5);break;case 6:Ge=0,Sn=null,fi(e,t,u,6);break;case 8:W0(),ft=6;break e;default:throw Error(r(462))}}Hv();break}catch(F){P1(e,F)}while(!0);return Ra=el=null,q.H=s,q.A=c,He=n,Ce!==null?0:(Xe=null,Re=0,Rr(),ft)}function Hv(){for(;Ce!==null&&!Ke();)K1(Ce)}function K1(e){var t=b1(e.alternate,e,Ha);e.memoizedProps=e.pendingProps,t===null?dc(e):Ce=t}function Z1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=m1(n,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=m1(n,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:m0(t);default:S1(n,t),t=Ce=Xf(t,Ha),t=b1(n,t,Ha)}e.memoizedProps=e.pendingProps,t===null?dc(e):Ce=t}function fi(e,t,n,s){Ra=el=null,m0(t),ti=null,co=0;var c=t.return;try{if(Tv(e,c,t,n,Re)){ft=1,Wr(e,$n(n,e.current)),Ce=null;return}}catch(u){if(c!==null)throw Ce=c,u;ft=1,Wr(e,$n(n,e.current)),Ce=null;return}t.flags&32768?(Oe||s===1?e=!0:ri||(Re&536870912)!==0?e=!1:(_s=e=!0,(s===2||s===9||s===3||s===6)&&(s=bn.current,s!==null&&s.tag===13&&(s.flags|=16384))),W1(t,e)):dc(t)}function dc(e){var t=e;do{if((t.flags&32768)!==0){W1(t,_s);return}e=t.return;var n=Av(t.alternate,t,Ha);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);ft===0&&(ft=5)}function W1(e,t){do{var n=Lv(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);ft=6,Ce=null}function J1(e,t,n,s,c,u,_,x,E){e.cancelPendingCommit=null;do fc();while(kt!==0);if((He&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=qu,yg(e,n,u,_,x,E),e===Xe&&(Ce=Xe=null,Re=0),ui=t,ys=e,qa=n,X0=u,K0=c,F1=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vv(mr,function(){return sm(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=q.T,q.T=null,c=Y.p,Y.p=2,_=He,He|=4;try{Ov(e,t,n)}finally{He=_,Y.p=c,q.T=s}}kt=1,em(),tm(),nm()}}function em(){if(kt===1){kt=0;var e=ys,t=ui,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var s=Y.p;Y.p=2;var c=He;He|=4;try{M1(t,e);var u=dd,_=Hf(e.containerInfo),x=u.focusedElem,E=u.selectionRange;if(_!==x&&x&&x.ownerDocument&&Uf(x.ownerDocument.documentElement,x)){if(E!==null&&Du(x)){var D=E.start,F=E.end;if(F===void 0&&(F=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(F,x.value.length);else{var Q=x.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var U=B.getSelection(),ee=x.textContent.length,me=Math.min(E.start,ee),Ye=E.end===void 0?me:Math.min(E.end,ee);!U.extend&&me>Ye&&(_=Ye,Ye=me,me=_);var L=$f(x,me),A=$f(x,Ye);if(L&&A&&(U.rangeCount!==1||U.anchorNode!==L.node||U.anchorOffset!==L.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var z=Q.createRange();z.setStart(L.node,L.offset),U.removeAllRanges(),me>Ye?(U.addRange(z),U.extend(A.node,A.offset)):(z.setEnd(A.node,A.offset),U.addRange(z))}}}}for(Q=[],U=x;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var G=Q[x];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}wc=!!ud,dd=ud=null}finally{He=c,Y.p=s,q.T=n}}e.current=t,kt=2}}function tm(){if(kt===2){kt=0;var e=ys,t=ui,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var s=Y.p;Y.p=2;var c=He;He|=4;try{k1(e,t.alternate,t)}finally{He=c,Y.p=s,q.T=n}}kt=3}}function nm(){if(kt===4||kt===3){kt=0,Xn();var e=ys,t=ui,n=qa,s=F1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?kt=5:(kt=0,ui=ys=null,am(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(vs=null),gu(n),t=t.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Qi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=q.T,c=Y.p,Y.p=2,q.T=null;try{for(var u=e.onRecoverableError,_=0;_<s.length;_++){var x=s[_];u(x.value,{componentStack:x.stack})}}finally{q.T=t,Y.p=c}}(qa&3)!==0&&fc(),da(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Z0?Eo++:(Eo=0,Z0=e):Eo=0,To(0)}}function am(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oo(t)))}function fc(){return em(),tm(),nm(),sm()}function sm(){if(kt!==5)return!1;var e=ys,t=X0;X0=0;var n=gu(qa),s=q.T,c=Y.p;try{Y.p=32>n?32:n,q.T=null,n=K0,K0=null;var u=ys,_=qa;if(kt=0,ui=ys=null,qa=0,(He&6)!==0)throw Error(r(331));var x=He;if(He|=4,U1(u.current),D1(u,u.current,_,n),He=x,To(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Qi,u)}catch{}return!0}finally{Y.p=c,q.T=s,am(e,t)}}function lm(e,t,n){t=$n(n,t),t=k0(e.stateNode,t,2),e=fs(e,t,2),e!==null&&(Ii(e,2),da(e))}function Ve(e,t,n){if(e.tag===3)lm(e,e,n);else for(;t!==null;){if(t.tag===3){lm(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(vs===null||!vs.has(s))){e=$n(n,e),n=i1(2),s=fs(t,n,2),s!==null&&(o1(n,s,t,e),Ii(s,2),da(s));break}}t=t.return}}function ed(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new Dv;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(n)||(P0=!0,c.add(n),e=qv.bind(null,e,t,n),t.then(e,e))}function qv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xe===e&&(Re&n)===n&&(ft===4||ft===3&&(Re&62914560)===Re&&300>gt()-ic?(He&2)===0&&di(e,0):I0|=n,ci===Re&&(ci=0)),da(e)}function im(e,t){t===0&&(t=J2()),e=Zs(e,t),e!==null&&(Ii(e,t),da(e))}function Fv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),im(e,n)}function Gv(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),im(e,n)}function Vv(e,t){return ze(e,t)}var hc=null,hi=null,td=!1,mc=!1,nd=!1,xs=0;function da(e){e!==hi&&e.next===null&&(hi===null?hc=hi=e:hi=hi.next=e),mc=!0,td||(td=!0,Pv())}function To(e,t){if(!nd&&mc){nd=!0;do for(var n=!1,s=hc;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var u=0;else{var _=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-gn(42|e)+1)-1,u&=c&~(_&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,um(s,u))}else u=Re,u=vr(s,s===Xe?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Pi(s,u)||(n=!0,um(s,u));s=s.next}while(n);nd=!1}}function Qv(){om()}function om(){mc=td=!1;var e=0;xs!==0&&ny()&&(e=xs);for(var t=gt(),n=null,s=hc;s!==null;){var c=s.next,u=rm(s,t);u===0?(s.next=null,n===null?hc=c:n.next=c,c===null&&(hi=n)):(n=s,(e!==0||(u&3)!==0)&&(mc=!0)),s=c}kt!==0&&kt!==5||To(e),xs!==0&&(xs=0)}function rm(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var _=31-gn(u),x=1<<_,E=c[_];E===-1?((x&n)===0||(x&s)!==0)&&(c[_]=vg(x,t)):E<=t&&(e.expiredLanes|=x),u&=~x}if(t=Xe,n=Re,n=vr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Xt(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Pi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Xt(s),gu(n)){case 2:case 8:n=Z2;break;case 32:n=mr;break;case 268435456:n=W2;break;default:n=mr}return s=cm.bind(null,e),n=ze(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Xt(s),e.callbackPriority=2,e.callbackNode=null,2}function cm(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fc()&&e.callbackNode!==n)return null;var s=Re;return s=vr(e,e===Xe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(V1(e,s,t),rm(e,gt()),e.callbackNode!=null&&e.callbackNode===n?cm.bind(null,e):null)}function um(e,t){if(fc())return null;V1(e,t,!0)}function Pv(){sy(function(){(He&6)!==0?ze(K2,Qv):om()})}function ad(){if(xs===0){var e=Wl;e===0&&(e=pr,pr<<=1,(pr&261888)===0&&(pr=256)),xs=e}return xs}function dm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sr(""+e)}function fm(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 Iv(e,t,n,s,c){if(t==="submit"&&n&&n.stateNode===c){var u=dm((c[nn]||null).action),_=s.submitter;_&&(t=(t=_[nn]||null)?dm(t.formAction):_.getAttribute("formAction"),t!==null&&(u=t,_=null));var x=new Cr("action","action",null,s,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(xs!==0){var E=_?fm(c,_):new FormData(c);j0(n,{pending:!0,data:E,method:c.method,action:u},null,E)}}else typeof u=="function"&&(x.preventDefault(),E=_?fm(c,_):new FormData(c),j0(n,{pending:!0,data:E,method:c.method,action:u},u,E))},currentTarget:c}]})}}for(var sd=0;sd<Hu.length;sd++){var ld=Hu[sd],Yv=ld.toLowerCase(),Xv=ld[0].toUpperCase()+ld.slice(1);Kn(Yv,"on"+Xv)}Kn(Gf,"onAnimationEnd"),Kn(Vf,"onAnimationIteration"),Kn(Qf,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(dv,"onTransitionRun"),Kn(fv,"onTransitionStart"),Kn(hv,"onTransitionCancel"),Kn(Pf,"onTransitionEnd"),$l("onMouseEnter",["mouseout","mouseover"]),$l("onMouseLeave",["mouseout","mouseover"]),$l("onPointerEnter",["pointerout","pointerover"]),$l("onPointerLeave",["pointerout","pointerover"]),Is("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Is("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Is("onBeforeInput",["compositionend","keypress","textInput","paste"]),Is("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Is("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Is("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="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(" "),Kv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ko));function hm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],c=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var _=s.length-1;0<=_;_--){var x=s[_],E=x.instance,D=x.currentTarget;if(x=x.listener,E!==u&&c.isPropagationStopped())break e;u=x,c.currentTarget=D;try{u(c)}catch(F){kr(F)}c.currentTarget=null,u=E}else for(_=0;_<s.length;_++){if(x=s[_],E=x.instance,D=x.currentTarget,x=x.listener,E!==u&&c.isPropagationStopped())break e;u=x,c.currentTarget=D;try{u(c)}catch(F){kr(F)}c.currentTarget=null,u=E}}}}function Ee(e,t){var n=t[vu];n===void 0&&(n=t[vu]=new Set);var s=e+"__bubble";n.has(s)||(mm(t,e,2,!1),n.add(s))}function id(e,t,n){var s=0;t&&(s|=4),mm(n,e,s,t)}var pc="_reactListening"+Math.random().toString(36).slice(2);function od(e){if(!e[pc]){e[pc]=!0,of.forEach(function(n){n!=="selectionchange"&&(Kv.has(n)||id(n,!1,e),id(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pc]||(t[pc]=!0,id("selectionchange",!1,t))}}function mm(e,t,n,s){switch(Gm(t)){case 2:var c=wy;break;case 8:c=Ny;break;default:c=Sd}n=c.bind(null,t,n,e),c=void 0,!Eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function rd(e,t,n,s,c){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var _=s.tag;if(_===3||_===4){var x=s.stateNode.containerInfo;if(x===c)break;if(_===4)for(_=s.return;_!==null;){var E=_.tag;if((E===3||E===4)&&_.stateNode.containerInfo===c)return;_=_.return}for(;x!==null;){if(_=zl(x),_===null)return;if(E=_.tag,E===5||E===6||E===26||E===27){s=u=_;continue e}x=x.parentNode}}s=s.return}yf(function(){var D=u,F=Nu(n),Q=[];e:{var B=If.get(e);if(B!==void 0){var U=Cr,ee=e;switch(e){case"keypress":if(wr(n)===0)break e;case"keydown":case"keyup":U=Gg;break;case"focusin":ee="focus",U=Au;break;case"focusout":ee="blur",U=Au;break;case"beforeblur":case"afterblur":U=Au;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":U=Sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Pg;break;case Gf:case Vf:case Qf:U=Mg;break;case Pf:U=Yg;break;case"scroll":case"scrollend":U=kg;break;case"wheel":U=Kg;break;case"copy":case"cut":case"paste":U=Dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=wf;break;case"toggle":case"beforetoggle":U=Wg}var me=(t&4)!==0,Ye=!me&&(e==="scroll"||e==="scrollend"),L=me?B!==null?B+"Capture":null:B;me=[];for(var A=D,z;A!==null;){var G=A;if(z=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||z===null||L===null||(G=Ki(A,L),G!=null&&me.push(Ro(A,G,z))),Ye)break;A=A.return}0<me.length&&(B=new U(B,ee,null,n,F),Q.push({event:B,listeners:me}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",B&&n!==wu&&(ee=n.relatedTarget||n.fromElement)&&(zl(ee)||ee[Ml]))break e;if((U||B)&&(B=F.window===F?F:(B=F.ownerDocument)?B.defaultView||B.parentWindow:window,U?(ee=n.relatedTarget||n.toElement,U=D,ee=ee?zl(ee):null,ee!==null&&(Ye=f(ee),me=ee.tag,ee!==Ye||me!==5&&me!==27&&me!==6)&&(ee=null)):(U=null,ee=D),U!==ee)){if(me=Sf,G="onMouseLeave",L="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(me=wf,G="onPointerLeave",L="onPointerEnter",A="pointer"),Ye=U==null?B:Xi(U),z=ee==null?B:Xi(ee),B=new me(G,A+"leave",U,n,F),B.target=Ye,B.relatedTarget=z,G=null,zl(F)===D&&(me=new me(L,A+"enter",ee,n,F),me.target=z,me.relatedTarget=Ye,G=me),Ye=G,U&&ee)t:{for(me=Zv,L=U,A=ee,z=0,G=L;G;G=me(G))z++;G=0;for(var oe=A;oe;oe=me(oe))G++;for(;0<z-G;)L=me(L),z--;for(;0<G-z;)A=me(A),G--;for(;z--;){if(L===A||A!==null&&L===A.alternate){me=L;break t}L=me(L),A=me(A)}me=null}else me=null;U!==null&&pm(Q,B,U,me,!1),ee!==null&&Ye!==null&&pm(Q,Ye,ee,me,!0)}}e:{if(B=D?Xi(D):window,U=B.nodeName&&B.nodeName.toLowerCase(),U==="select"||U==="input"&&B.type==="file")var Be=Lf;else if(Rf(B))if(Of)Be=rv;else{Be=iv;var se=lv}else U=B.nodeName,!U||U.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?D&&ju(D.elementType)&&(Be=Lf):Be=ov;if(Be&&(Be=Be(e,D))){Af(Q,Be,n,F);break e}se&&se(e,B,D),e==="focusout"&&D&&B.type==="number"&&D.memoizedProps.value!=null&&Su(B,"number",B.value)}switch(se=D?Xi(D):window,e){case"focusin":(Rf(se)||se.contentEditable==="true")&&(Vl=se,Bu=D,so=null);break;case"focusout":so=Bu=Vl=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,qf(Q,n,F);break;case"selectionchange":if(uv)break;case"keydown":case"keyup":qf(Q,n,F)}var je;if(Ou)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Gl?Tf(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(Nf&&n.locale!=="ko"&&(Gl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Gl&&(je=bf()):(ls=F,Tu="value"in ls?ls.value:ls.textContent,Gl=!0)),se=_c(D,Ae),0<se.length&&(Ae=new jf(Ae,e,null,n,F),Q.push({event:Ae,listeners:se}),je?Ae.data=je:(je=kf(n),je!==null&&(Ae.data=je)))),(je=ev?tv(e,n):nv(e,n))&&(Ae=_c(D,"onBeforeInput"),0<Ae.length&&(se=new jf("onBeforeInput","beforeinput",null,n,F),Q.push({event:se,listeners:Ae}),se.data=je)),Iv(Q,e,D,n,F)}hm(Q,t)})}function Ro(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _c(e,t){for(var n=t+"Capture",s=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=Ki(e,n),c!=null&&s.unshift(Ro(e,c,u)),c=Ki(e,t),c!=null&&s.push(Ro(e,c,u))),e.tag===3)return s;e=e.return}return[]}function Zv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function pm(e,t,n,s,c){for(var u=t._reactName,_=[];n!==null&&n!==s;){var x=n,E=x.alternate,D=x.stateNode;if(x=x.tag,E!==null&&E===s)break;x!==5&&x!==26&&x!==27||D===null||(E=D,c?(D=Ki(n,u),D!=null&&_.unshift(Ro(n,D,E))):c||(D=Ki(n,u),D!=null&&_.push(Ro(n,D,E)))),n=n.return}_.length!==0&&e.push({event:t,listeners:_})}var Wv=/\r\n?/g,Jv=/\u0000|\uFFFD/g;function _m(e){return(typeof e=="string"?e:""+e).replace(Wv,`
`).replace(Jv,"")}function gm(e,t){return t=_m(t),_m(e)===t}function Ie(e,t,n,s,c,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Hl(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Hl(e,""+s);break;case"className":br(e,"class",s);break;case"tabIndex":br(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":br(e,n,s);break;case"style":gf(e,s,u);break;case"data":if(t!=="object"){br(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Sr(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="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"&&Ie(e,t,"name",c.name,c,null),Ie(e,t,"formEncType",c.formEncType,c,null),Ie(e,t,"formMethod",c.formMethod,c,null),Ie(e,t,"formTarget",c.formTarget,c,null)):(Ie(e,t,"encType",c.encType,c,null),Ie(e,t,"method",c.method,c,null),Ie(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Sr(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=Ca);break;case"onScroll":s!=null&&Ee("scroll",e);break;case"onScrollEnd":s!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=Sr(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),yr(e,"popover",s);break;case"xlinkActuate":Na(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Na(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Na(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Na(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Na(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Na(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Na(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":yr(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Eg.get(n)||n,yr(e,n,s))}}function cd(e,t,n,s,c,u){switch(n){case"style":gf(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Hl(e,s):(typeof s=="number"||typeof s=="bigint")&&Hl(e,""+s);break;case"onScroll":s!=null&&Ee("scroll",e);break;case"onScrollEnd":s!=null&&Ee("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[nn]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,c);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):yr(e,n,s)}}}function Vt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var s=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var _=n[u];if(_!=null)switch(u){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,u,_,n,null)}}c&&Ie(e,t,"srcSet",n.srcSet,n,null),s&&Ie(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var x=u=_=c=null,E=null,D=null;for(s in n)if(n.hasOwnProperty(s)){var F=n[s];if(F!=null)switch(s){case"name":c=F;break;case"type":_=F;break;case"checked":E=F;break;case"defaultChecked":D=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:Ie(e,t,s,F,n,null)}}hf(e,u,x,E,D,_,c,!1);return;case"select":Ee("invalid",e),s=_=u=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":u=x;break;case"defaultValue":_=x;break;case"multiple":s=x;default:Ie(e,t,c,x,n,null)}t=u,n=_,e.multiple=!!s,t!=null?Ul(e,!!s,t,!1):n!=null&&Ul(e,!!s,n,!0);return;case"textarea":Ee("invalid",e),u=c=s=null;for(_ in n)if(n.hasOwnProperty(_)&&(x=n[_],x!=null))switch(_){case"value":s=x;break;case"defaultValue":c=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ie(e,t,_,x,n,null)}pf(e,s,c,u);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(s=n[E],s!=null))switch(E){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ie(e,t,E,s,n,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(s=0;s<ko.length;s++)Ee(ko[s],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(D in n)if(n.hasOwnProperty(D)&&(s=n[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,D,s,n,null)}return;default:if(ju(t)){for(F in n)n.hasOwnProperty(F)&&(s=n[F],s!==void 0&&cd(e,t,F,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Ie(e,t,x,s,n,null))}function ey(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,_=null,x=null,E=null,D=null,F=null;for(U in n){var Q=n[U];if(n.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=Q;default:s.hasOwnProperty(U)||Ie(e,t,U,null,s,Q)}}for(var B in s){var U=s[B];if(Q=n[B],s.hasOwnProperty(B)&&(U!=null||Q!=null))switch(B){case"type":u=U;break;case"name":c=U;break;case"checked":D=U;break;case"defaultChecked":F=U;break;case"value":_=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Q&&Ie(e,t,B,U,s,Q)}}xu(e,_,x,E,D,F,u,c);return;case"select":U=_=x=B=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":U=E;default:s.hasOwnProperty(u)||Ie(e,t,u,null,s,E)}for(c in s)if(u=s[c],E=n[c],s.hasOwnProperty(c)&&(u!=null||E!=null))switch(c){case"value":B=u;break;case"defaultValue":x=u;break;case"multiple":_=u;default:u!==E&&Ie(e,t,c,u,s,E)}t=x,n=_,s=U,B!=null?Ul(e,!!n,B,!1):!!s!=!!n&&(t!=null?Ul(e,!!n,t,!0):Ul(e,!!n,n?[]:"",!1));return;case"textarea":U=B=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ie(e,t,x,null,s,c)}for(_ in s)if(c=s[_],u=n[_],s.hasOwnProperty(_)&&(c!=null||u!=null))switch(_){case"value":B=c;break;case"defaultValue":U=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==u&&Ie(e,t,_,c,s,u)}mf(e,B,U);return;case"option":for(var ee in n)if(B=n[ee],n.hasOwnProperty(ee)&&B!=null&&!s.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Ie(e,t,ee,null,s,B)}for(E in s)if(B=s[E],U=n[E],s.hasOwnProperty(E)&&B!==U&&(B!=null||U!=null))switch(E){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ie(e,t,E,B,s,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var me in n)B=n[me],n.hasOwnProperty(me)&&B!=null&&!s.hasOwnProperty(me)&&Ie(e,t,me,null,s,B);for(D in s)if(B=s[D],U=n[D],s.hasOwnProperty(D)&&B!==U&&(B!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:Ie(e,t,D,B,s,U)}return;default:if(ju(t)){for(var Ye in n)B=n[Ye],n.hasOwnProperty(Ye)&&B!==void 0&&!s.hasOwnProperty(Ye)&&cd(e,t,Ye,void 0,s,B);for(F in s)B=s[F],U=n[F],!s.hasOwnProperty(F)||B===U||B===void 0&&U===void 0||cd(e,t,F,B,s,U);return}}for(var L in n)B=n[L],n.hasOwnProperty(L)&&B!=null&&!s.hasOwnProperty(L)&&Ie(e,t,L,null,s,B);for(Q in s)B=s[Q],U=n[Q],!s.hasOwnProperty(Q)||B===U||B==null&&U==null||Ie(e,t,Q,B,s,U)}function vm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ty(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var c=n[s],u=c.transferSize,_=c.initiatorType,x=c.duration;if(u&&x&&vm(_)){for(_=0,x=c.responseEnd,s+=1;s<n.length;s++){var E=n[s],D=E.startTime;if(D>x)break;var F=E.transferSize,Q=E.initiatorType;F&&vm(Q)&&(E=E.responseEnd,_+=F*(E<x?1:(x-D)/(E-D)))}if(--s,t+=8*(u+_)/(c.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 ud=null,dd=null;function gc(e){return e.nodeType===9?e:e.ownerDocument}function ym(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 bm(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 fd(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 hd=null;function ny(){var e=window.event;return e&&e.type==="popstate"?e===hd?!1:(hd=e,!0):(hd=null,!1)}var xm=typeof setTimeout=="function"?setTimeout:void 0,ay=typeof clearTimeout=="function"?clearTimeout:void 0,Sm=typeof Promise=="function"?Promise:void 0,sy=typeof queueMicrotask=="function"?queueMicrotask:typeof Sm<"u"?function(e){return Sm.resolve(null).then(e).catch(ly)}:xm;function ly(e){setTimeout(function(){throw e})}function Ss(e){return e==="head"}function jm(e,t){var n=t,s=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(c),gi(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Ao(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ao(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"&&Ao(e.ownerDocument.body);n=c}while(n);gi(t)}function wm(e,t){var n=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function md(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":md(n),yu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iy(e,t,n,s){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){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!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function oy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gn(e.nextSibling),e===null))return null;return e}function Nm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gn(e.nextSibling),e===null))return null;return e}function pd(e){return e.data==="$?"||e.data==="$~"}function _d(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ry(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Gn(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 gd=null;function Cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Em(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 Tm(e,t,n){switch(t=gc(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 Ao(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);yu(e)}var Vn=new Map,km=new Set;function vc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Fa=Y.d;Y.d={f:cy,r:uy,D:dy,C:fy,L:hy,m:my,X:_y,S:py,M:gy};function cy(){var e=Fa.f(),t=cc();return e||t}function uy(e){var t=Dl(e);t!==null&&t.tag===5&&t.type==="form"?Ph(t):Fa.r(e)}var mi=typeof document>"u"?null:document;function Rm(e,t,n){var s=mi;if(s&&typeof t=="string"&&t){var c=Dn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),km.has(c)||(km.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),Vt(t,"link",e),Ot(t),s.head.appendChild(t)))}}function dy(e){Fa.D(e),Rm("dns-prefetch",e,null)}function fy(e,t){Fa.C(e,t),Rm("preconnect",e,t)}function hy(e,t,n){Fa.L(e,t,n);var s=mi;if(s&&e&&t){var c='link[rel="preload"][as="'+Dn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Dn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Dn(n.imageSizes)+'"]')):c+='[href="'+Dn(e)+'"]';var u=c;switch(t){case"style":u=pi(e);break;case"script":u=_i(e)}Vn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Vn.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(Lo(u))||t==="script"&&s.querySelector(Oo(u))||(t=s.createElement("link"),Vt(t,"link",e),Ot(t),s.head.appendChild(t)))}}function my(e,t){Fa.m(e,t);var n=mi;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Dn(s)+'"][href="'+Dn(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=_i(e)}if(!Vn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Vn.set(u,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Oo(u)))return}s=n.createElement("link"),Vt(s,"link",e),Ot(s),n.head.appendChild(s)}}}function py(e,t,n){Fa.S(e,t,n);var s=mi;if(s&&e){var c=Bl(s).hoistableStyles,u=pi(e);t=t||"default";var _=c.get(u);if(!_){var x={loading:0,preload:null};if(_=s.querySelector(Lo(u)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vn.get(u))&&vd(e,n);var E=_=s.createElement("link");Ot(E),Vt(E,"link",e),E._p=new Promise(function(D,F){E.onload=D,E.onerror=F}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,yc(_,t,s)}_={type:"stylesheet",instance:_,count:1,state:x},c.set(u,_)}}}function _y(e,t){Fa.X(e,t);var n=mi;if(n&&e){var s=Bl(n).hoistableScripts,c=_i(e),u=s.get(c);u||(u=n.querySelector(Oo(c)),u||(e=y({src:e,async:!0},t),(t=Vn.get(c))&&yd(e,t),u=n.createElement("script"),Ot(u),Vt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function gy(e,t){Fa.M(e,t);var n=mi;if(n&&e){var s=Bl(n).hoistableScripts,c=_i(e),u=s.get(c);u||(u=n.querySelector(Oo(c)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Vn.get(c))&&yd(e,t),u=n.createElement("script"),Ot(u),Vt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function Am(e,t,n,s){var c=(c=ge.current)?vc(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=pi(n.href),n=Bl(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=pi(n.href);var u=Bl(c).hoistableStyles,_=u.get(e);if(_||(c=c.ownerDocument||c,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,_),(u=c.querySelector(Lo(e)))&&!u._p&&(_.instance=u,_.state.loading=5),Vn.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},Vn.set(e,n),u||vy(c,e,n,_.state))),t&&s===null)throw Error(r(528,""));return _}if(t&&s!==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=_i(n),n=Bl(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function pi(e){return'href="'+Dn(e)+'"'}function Lo(e){return'link[rel="stylesheet"]['+e+"]"}function Lm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function vy(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Vt(t,"link",n),Ot(t),e.head.appendChild(t))}function _i(e){return'[src="'+Dn(e)+'"]'}function Oo(e){return"script[async]"+e}function Om(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Dn(n.href)+'"]');if(s)return t.instance=s,Ot(s),s;var c=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ot(s),Vt(s,"style",c),yc(s,n.precedence,e),t.instance=s;case"stylesheet":c=pi(n.href);var u=e.querySelector(Lo(c));if(u)return t.state.loading|=4,t.instance=u,Ot(u),u;s=Lm(n),(c=Vn.get(c))&&vd(s,c),u=(e.ownerDocument||e).createElement("link"),Ot(u);var _=u;return _._p=new Promise(function(x,E){_.onload=x,_.onerror=E}),Vt(u,"link",s),t.state.loading|=4,yc(u,n.precedence,e),t.instance=u;case"script":return u=_i(n.src),(c=e.querySelector(Oo(u)))?(t.instance=c,Ot(c),c):(s=n,(c=Vn.get(u))&&(s=y({},n),yd(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ot(c),Vt(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,yc(s,n.precedence,e));return t.instance}function yc(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,_=0;_<s.length;_++){var x=s[_];if(x.dataset.precedence===t)u=x;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function vd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bc=null;function Mm(e,t,n){if(bc===null){var s=new Map,c=bc=new Map;c.set(n,s)}else c=bc,s=c.get(n),s||(s=new Map,c.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[Yi]||u[Ht]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var _=u.getAttribute(t)||"";_=e+_;var x=s.get(_);x?x.push(u):s.set(_,[u])}}return s}function zm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function yy(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 Dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function by(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=pi(s.href),u=t.querySelector(Lo(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Ot(u);return}u=t.ownerDocument||t,s=Lm(s),(c=Vn.get(c))&&vd(s,c),u=u.createElement("link"),Ot(u);var _=u;_._p=new Promise(function(x,E){_.onload=x,_.onerror=E}),Vt(u,"link",s),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=xc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var bd=0;function xy(e,t){return e.stylesheets&&e.count===0&&jc(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&bd===0&&(bd=62500*ty());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jc(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>bd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function xc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Sc=null;function jc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sc=new Map,t.forEach(Sy,e),Sc=null,xc.call(e))}function Sy(e,t){if(!(t.state.loading&4)){var n=Sc.get(e);if(n)var s=n.get(null);else{n=new Map,Sc.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var _=c[u];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(n.set(_.dataset.precedence,_),s=_)}s&&n.set(null,s)}c=t.instance,_=c.getAttribute("data-precedence"),u=n.get(_)||s,u===s&&n.set(null,c),n.set(_,c),this.count++,s=xc.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Mo={$$typeof:O,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function jy(e,t,n,s,c,u,_,x,E){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=pu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pu(0),this.hiddenUpdates=pu(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Bm(e,t,n,s,c,u,_,x,E,D,F,Q){return e=new jy(e,t,n,_,E,D,F,Q,x),t=1,u===!0&&(t|=24),u=yn(3,null,null,t),e.current=u,u.stateNode=e,t=Ju(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},a0(u),e}function $m(e){return e?(e=Il,e):Il}function Um(e,t,n,s,c,u){c=$m(c),s.context===null?s.context=c:s.pendingContext=c,s=ds(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=fs(e,s,t),n!==null&&(cn(n,e,t),fo(n,e,t))}function Hm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xd(e,t){Hm(e,t),(e=e.alternate)&&Hm(e,t)}function qm(e){if(e.tag===13||e.tag===31){var t=Zs(e,67108864);t!==null&&cn(t,e,67108864),xd(e,67108864)}}function Fm(e){if(e.tag===13||e.tag===31){var t=wn();t=_u(t);var n=Zs(e,t);n!==null&&cn(n,e,t),xd(e,t)}}var wc=!0;function wy(e,t,n,s){var c=q.T;q.T=null;var u=Y.p;try{Y.p=2,Sd(e,t,n,s)}finally{Y.p=u,q.T=c}}function Ny(e,t,n,s){var c=q.T;q.T=null;var u=Y.p;try{Y.p=8,Sd(e,t,n,s)}finally{Y.p=u,q.T=c}}function Sd(e,t,n,s){if(wc){var c=jd(s);if(c===null)rd(e,t,s,Nc,n),Vm(e,s);else if(Ey(c,e,t,n,s))s.stopPropagation();else if(Vm(e,s),t&4&&-1<Cy.indexOf(e)){for(;c!==null;){var u=Dl(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var _=Ps(u.pendingLanes);if(_!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;_;){var E=1<<31-gn(_);x.entanglements[1]|=E,_&=~E}da(u),(He&6)===0&&(oc=gt()+500,To(0))}}break;case 31:case 13:x=Zs(u,2),x!==null&&cn(x,u,2),cc(),xd(u,2)}if(u=jd(s),u===null&&rd(e,t,s,Nc,n),u===c)break;c=u}c!==null&&s.stopPropagation()}else rd(e,t,s,null,n)}}function jd(e){return e=Nu(e),wd(e)}var Nc=null;function wd(e){if(Nc=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=m(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 Nc=e,null}function Gm(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(hr()){case K2:return 2;case Z2:return 8;case mr:case fg:return 32;case W2:return 268435456;default:return 32}default:return 32}}var Nd=!1,js=null,ws=null,Ns=null,zo=new Map,Do=new Map,Cs=[],Cy="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 Vm(e,t){switch(e){case"focusin":case"focusout":js=null;break;case"dragenter":case"dragleave":ws=null;break;case"mouseover":case"mouseout":Ns=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Do.delete(t.pointerId)}}function Bo(e,t,n,s,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[c]},t!==null&&(t=Dl(t),t!==null&&qm(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Ey(e,t,n,s,c){switch(t){case"focusin":return js=Bo(js,e,t,n,s,c),!0;case"dragenter":return ws=Bo(ws,e,t,n,s,c),!0;case"mouseover":return Ns=Bo(Ns,e,t,n,s,c),!0;case"pointerover":var u=c.pointerId;return zo.set(u,Bo(zo.get(u)||null,e,t,n,s,c)),!0;case"gotpointercapture":return u=c.pointerId,Do.set(u,Bo(Do.get(u)||null,e,t,n,s,c)),!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=m(n),t!==null){e.blockedOn=t,sf(e.priority,function(){Fm(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,sf(e.priority,function(){Fm(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 Cc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jd(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);wu=s,n.target.dispatchEvent(s),wu=null}else return t=Dl(n),t!==null&&qm(t),e.blockedOn=n,!1;t.shift()}return!0}function Pm(e,t,n){Cc(e)&&n.delete(t)}function Ty(){Nd=!1,js!==null&&Cc(js)&&(js=null),ws!==null&&Cc(ws)&&(ws=null),Ns!==null&&Cc(Ns)&&(Ns=null),zo.forEach(Pm),Do.forEach(Pm)}function Ec(e,t){e.blockedOn===t&&(e.blockedOn=null,Nd||(Nd=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ty)))}var Tc=null;function Im(e){Tc!==e&&(Tc=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Tc===e&&(Tc=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(wd(s||n)===null)continue;break}var u=Dl(n);u!==null&&(e.splice(t,3),t-=3,j0(u,{pending:!0,data:c,method:n.method,action:s},s,c))}}))}function gi(e){function t(E){return Ec(E,e)}js!==null&&Ec(js,e),ws!==null&&Ec(ws,e),Ns!==null&&Ec(Ns,e),zo.forEach(t),Do.forEach(t);for(var n=0;n<Cs.length;n++){var s=Cs[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Cs.length&&(n=Cs[0],n.blockedOn===null);)Qm(n),n.blockedOn===null&&Cs.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var c=n[s],u=n[s+1],_=c[nn]||null;if(typeof u=="function")_||Im(n);else if(_){var x=null;if(u&&u.hasAttribute("formAction")){if(c=u,_=u[nn]||null)x=_.formAction;else if(wd(c)!==null)continue}else x=_.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),Im(n)}}}function Ym(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(_){return c=_})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),s||setTimeout(n,20)}function n(){if(!s&&!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 s=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Cd(e){this._internalRoot=e}kc.prototype.render=Cd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=wn();Um(n,s,e,t,null,null)},kc.prototype.unmount=Cd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Um(e.current,2,null,e,null,null),cc(),t[Ml]=null}};function kc(e){this._internalRoot=e}kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=af();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cs.length&&t!==0&&t<Cs[n].priority;n++);Cs.splice(n,0,e),n===0&&Qm(e)}};var Xm=l.version;if(Xm!=="19.2.5")throw Error(r(527,Xm,"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 ky={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{Qi=Rc.inject(ky),_n=Rc}catch{}}return Uo.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",c=n1,u=a1,_=s1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(_=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,s,null,c,u,_,Ym),e[Ml]=t.current,od(e),new Cd(t)},Uo.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,c="",u=n1,_=a1,x=s1,E=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=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&&(E=n.formState)),t=Bm(e,1,!0,t,n??null,s,c,E,u,_,x,Ym),t.context=$m(null),n=t.current,s=wn(),s=_u(s),c=ds(s),c.callback=null,fs(n,c,s),n=s,t.current.lanes=n,Ii(t,n),da(t),e[Ml]=t.current,od(e),new kc(t)},Uo.version="19.2.5",Uo}var ip;function Uy(){if(ip)return Rd.exports;ip=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(l){console.error(l)}}return a(),Rd.exports=$y(),Rd.exports}var Hy=Uy();/**
* 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 op="popstate";function rp(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function qy(a={}){function l(r,d){var p;let f=(p=d.state)==null?void 0:p.masked,{pathname:m,search:g,hash:h}=f||r.location;return Jd("",{pathname:m,search:g,hash:h},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 i(r,d){return typeof d=="string"?d:Xo(d)}return Gy(l,i,null,a)}function ct(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function sa(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function Fy(){return Math.random().toString(36).substring(2,10)}function cp(a,l){return{usr:a.state,key:a.key,idx:l,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Jd(a,l,i=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?qi(l):l,state:i,key:l&&l.key||r||Fy(),unstable_mask:d}}function Xo({pathname:a="/",search:l="",hash:i=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function qi(a){let l={};if(a){let i=a.indexOf("#");i>=0&&(l.hash=a.substring(i),a=a.substring(0,i));let r=a.indexOf("?");r>=0&&(l.search=a.substring(r),a=a.substring(0,r)),a&&(l.pathname=a)}return l}function Gy(a,l,i,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,m=d.history,g="POP",h=null,p=v();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function v(){return(m.state||{idx:null}).idx}function y(){g="POP";let C=v(),R=C==null?null:C-p;p=C,h&&h({action:g,location:N.location,delta:R})}function b(C,R){g="PUSH";let M=rp(C)?C:Jd(N.location,C,R);p=v()+1;let O=cp(M,p),H=N.createHref(M.unstable_mask||M);try{m.pushState(O,"",H)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;d.location.assign(H)}f&&h&&h({action:g,location:N.location,delta:1})}function j(C,R){g="REPLACE";let M=rp(C)?C:Jd(N.location,C,R);p=v();let O=cp(M,p),H=N.createHref(M.unstable_mask||M);m.replaceState(O,"",H),f&&h&&h({action:g,location:N.location,delta:0})}function w(C){return Vy(C)}let N={get action(){return g},get location(){return a(d,m)},listen(C){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(op,y),h=C,()=>{d.removeEventListener(op,y),h=null}},createHref(C){return l(d,C)},createURL:w,encodeLocation(C){let R=w(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:b,replace:j,go(C){return m.go(C)}};return N}function Vy(a,l=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),ct(i,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Xo(a);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function M3(a,l,i="/"){return Qy(a,l,i,!1)}function Qy(a,l,i,r){let d=typeof l=="string"?qi(l):l,f=Ja(d.pathname||"/",i);if(f==null)return null;let m=z3(a);Py(m);let g=null;for(let h=0;g==null&&h<m.length;++h){let p=a4(f);g=t4(m[h],p,r)}return g}function z3(a,l=[],i=[],r="",d=!1){let f=(m,g,h=d,p)=>{let v={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:g,route:m};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&h)return;ct(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=aa([r,v.relativePath]),b=i.concat(v);m.children&&m.children.length>0&&(ct(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),z3(m.children,l,b,y,h)),!(m.path==null&&!m.index)&&l.push({path:y,score:Jy(y,m.index),routesMeta:b})};return a.forEach((m,g)=>{var h;if(m.path===""||!((h=m.path)!=null&&h.includes("?")))f(m,g);else for(let p of D3(m.path))f(m,g,!0,p)}),l}function D3(a){let l=a.split("/");if(l.length===0)return[];let[i,...r]=l,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let m=D3(r.join("/")),g=[];return g.push(...m.map(h=>h===""?f:[f,h].join("/"))),d&&g.push(...m),g.map(h=>a.startsWith("/")&&h===""?"/":h)}function Py(a){a.sort((l,i)=>l.score!==i.score?i.score-l.score:e4(l.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var Iy=/^:[\w-]+$/,Yy=3,Xy=2,Ky=1,Zy=10,Wy=-2,up=a=>a==="*";function Jy(a,l){let i=a.split("/"),r=i.length;return i.some(up)&&(r+=Wy),l&&(r+=Xy),i.filter(d=>!up(d)).reduce((d,f)=>d+(Iy.test(f)?Yy:f===""?Ky:Zy),r)}function e4(a,l){return a.length===l.length&&a.slice(0,-1).every((r,d)=>r===l[d])?a[a.length-1]-l[l.length-1]:0}function t4(a,l,i=!1){let{routesMeta:r}=a,d={},f="/",m=[];for(let g=0;g<r.length;++g){let h=r[g],p=g===r.length-1,v=f==="/"?l:l.slice(f.length)||"/",y=Kc({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},v),b=h.route;if(!y&&p&&i&&!r[r.length-1].route.index&&(y=Kc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!y)return null;Object.assign(d,y.params),m.push({params:d,pathname:aa([f,y.pathname]),pathnameBase:o4(aa([f,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(f=aa([f,y.pathnameBase]))}return m}function Kc(a,l){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,r]=n4(a.path,a.caseSensitive,a.end),d=l.match(i);if(!d)return null;let f=d[0],m=f.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((p,{paramName:v,isOptional:y},b)=>{if(v==="*"){let w=g[b]||"";m=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const j=g[b];return y&&!j?p[v]=void 0:p[v]=(j||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:m,pattern:a}}function n4(a,l=!1,i=!0){sa(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,(m,g,h,p,v)=>{if(r.push({paramName:g,isOptional:h!=null}),h){let y=v.charAt(p+m.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,l?void 0:"i"),r]}function a4(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return sa(!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 (${l}).`),a}}function Ja(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let i=l.endsWith("/")?l.length-1:l.length,r=a.charAt(i);return r&&r!=="/"?null:a.slice(i)||"/"}var s4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function l4(a,l="/"){let{pathname:i,search:r="",hash:d=""}=typeof a=="string"?qi(a):a,f;return i?(i=B3(i),i.startsWith("/")?f=dp(i.substring(1),"/"):f=dp(i,l)):f=l,{pathname:f,search:r4(r),hash:c4(d)}}function dp(a,l){let i=Zc(l).split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function Md(a,l,i,r){return`Cannot include a '${a}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function i4(a){return a.filter((l,i)=>i===0||l.route.path&&l.route.path.length>0)}function E2(a){let l=i4(a);return l.map((i,r)=>r===l.length-1?i.pathname:i.pathnameBase)}function su(a,l,i,r=!1){let d;typeof a=="string"?d=qi(a):(d={...a},ct(!d.pathname||!d.pathname.includes("?"),Md("?","pathname","search",d)),ct(!d.pathname||!d.pathname.includes("#"),Md("#","pathname","hash",d)),ct(!d.search||!d.search.includes("#"),Md("#","search","hash",d)));let f=a===""||d.pathname==="",m=f?"/":d.pathname,g;if(m==null)g=i;else{let y=l.length-1;if(!r&&m.startsWith("..")){let b=m.split("/");for(;b[0]==="..";)b.shift(),y-=1;d.pathname=b.join("/")}g=y>=0?l[y]:"/"}let h=l4(d,g),p=m&&m!=="/"&&m.endsWith("/"),v=(f||m===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(p||v)&&(h.pathname+="/"),h}var B3=a=>a.replace(/\/\/+/g,"/"),aa=a=>B3(a.join("/")),Zc=a=>a.replace(/\/+$/,""),o4=a=>Zc(a).replace(/^\/*/,"/"),r4=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,c4=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,u4=class{constructor(a,l,i,r=!1){this.status=a,this.statusText=l||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function d4(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function f4(a){let l=a.map(i=>i.route.path).filter(Boolean);return aa(l)||"/"}var $3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function U3(a,l){let i=a;if(typeof i!="string"||!s4.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,d=!1;if($3)try{let f=new URL(window.location.href),m=i.startsWith("//")?new URL(f.protocol+i):new URL(i),g=Ja(m.pathname,l);m.origin===f.origin&&g!=null?i=g+m.search+m.hash:d=!0}catch{sa(!1,`<Link to="${i}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var H3=["POST","PUT","PATCH","DELETE"];new Set(H3);var h4=["GET",...H3];new Set(h4);var Fi=S.createContext(null);Fi.displayName="DataRouter";var lu=S.createContext(null);lu.displayName="DataRouterState";var q3=S.createContext(!1);function m4(){return S.useContext(q3)}var F3=S.createContext({isTransitioning:!1});F3.displayName="ViewTransition";var p4=S.createContext(new Map);p4.displayName="Fetchers";var _4=S.createContext(null);_4.displayName="Await";var An=S.createContext(null);An.displayName="Navigation";var ir=S.createContext(null);ir.displayName="Location";var Yn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Yn.displayName="Route";var T2=S.createContext(null);T2.displayName="RouteError";var G3="REACT_ROUTER_ERROR",g4="REDIRECT",v4="ROUTE_ERROR_RESPONSE";function y4(a){if(a.startsWith(`${G3}:${g4}:{`))try{let l=JSON.parse(a.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function b4(a){if(a.startsWith(`${G3}:${v4}:{`))try{let l=JSON.parse(a.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new u4(l.status,l.statusText,l.data)}catch{}}function x4(a,{relative:l}={}){ct(Gi(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=S.useContext(An),{hash:d,pathname:f,search:m}=or(a,{relative:l}),g=f;return i!=="/"&&(g=f==="/"?i:aa([i,f])),r.createHref({pathname:g,search:m,hash:d})}function Gi(){return S.useContext(ir)!=null}function mn(){return ct(Gi(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(ir).location}var V3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Q3(a){S.useContext(An).static||S.useLayoutEffect(a)}function Ln(){let{isDataRoute:a}=S.useContext(Yn);return a?B4():S4()}function S4(){ct(Gi(),"useNavigate() may be used only in the context of a <Router> component.");let a=S.useContext(Fi),{basename:l,navigator:i}=S.useContext(An),{matches:r}=S.useContext(Yn),{pathname:d}=mn(),f=JSON.stringify(E2(r)),m=S.useRef(!1);return Q3(()=>{m.current=!0}),S.useCallback((h,p={})=>{if(sa(m.current,V3),!m.current)return;if(typeof h=="number"){i.go(h);return}let v=su(h,JSON.parse(f),d,p.relative==="path");a==null&&l!=="/"&&(v.pathname=v.pathname==="/"?l:aa([l,v.pathname])),(p.replace?i.replace:i.push)(v,p.state,p)},[l,i,f,d,a])}var j4=S.createContext(null);function w4(a){let l=S.useContext(Yn).outlet;return S.useMemo(()=>l&&S.createElement(j4.Provider,{value:a},l),[l,a])}function N4(){let{matches:a}=S.useContext(Yn),l=a[a.length-1];return(l==null?void 0:l.params)??{}}function or(a,{relative:l}={}){let{matches:i}=S.useContext(Yn),{pathname:r}=mn(),d=JSON.stringify(E2(i));return S.useMemo(()=>su(a,JSON.parse(d),r,l==="path"),[a,d,r,l])}function C4(a,l){return P3(a,l)}function P3(a,l,i){var C;ct(Gi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(An),{matches:d}=S.useContext(Yn),f=d[d.length-1],m=f?f.params:{},g=f?f.pathname:"/",h=f?f.pathnameBase:"/",p=f&&f.route;{let R=p&&p.path||"";Y3(g,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let v=mn(),y;if(l){let R=typeof l=="string"?qi(l):l;ct(h==="/"||((C=R.pathname)==null?void 0:C.startsWith(h)),`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 "${h}" but pathname "${R.pathname}" was given in the \`location\` prop.`),y=R}else y=v;let b=y.pathname||"/",j=b;if(h!=="/"){let R=h.replace(/^\//,"").split("/");j="/"+b.replace(/^\//,"").split("/").slice(R.length).join("/")}let w=M3(a,{pathname:j});sa(p||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),sa(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.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 N=A4(w&&w.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:aa([h,r.encodeLocation?r.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?h:aa([h,r.encodeLocation?r.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),d,i);return l&&N?S.createElement(ir.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},N):N}function E4(){let a=D4(),l=d4(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),i=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},m=null;return console.error("Error handled by React Router default ErrorBoundary:",a),m=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},l),i?S.createElement("pre",{style:d},i):null,m)}var T4=S.createElement(E4,null),I3=class extends S.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,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){this.props.onError?this.props.onError(a,l):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 i=b4(a.digest);i&&(a=i)}let l=a!==void 0?S.createElement(Yn.Provider,{value:this.props.routeContext},S.createElement(T2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?S.createElement(k4,{error:a},l):l}};I3.contextType=q3;var zd=new WeakMap;function k4({children:a,error:l}){let{basename:i}=S.useContext(An);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let r=y4(l.digest);if(r){let d=zd.get(l);if(d)throw d;let f=U3(r.location,i);if($3&&!zd.get(l))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw zd.set(l,m),m}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function R4({routeContext:a,match:l,children:i}){let r=S.useContext(Fi);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),S.createElement(Yn.Provider,{value:a},i)}function A4(a,l=[],i){let r=i==null?void 0:i.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(l.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);ct(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 m=!1,g=-1;if(i&&r){m=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:j}=r,w=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!j||j[y.route.id]===void 0);if(y.route.lazy||w){i.isStatic&&(m=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let h=i==null?void 0:i.onError,p=r&&h?(v,y)=>{var b,j;h(v,{location:r.location,params:((j=(b=r.matches)==null?void 0:b[0])==null?void 0:j.params)??{},unstable_pattern:f4(r.matches),errorInfo:y})}:void 0;return d.reduceRight((v,y,b)=>{let j,w=!1,N=null,C=null;r&&(j=f&&y.route.id?f[y.route.id]:void 0,N=y.route.errorElement||T4,m&&(g<0&&b===0?(Y3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,C=null):g===b&&(w=!0,C=y.route.hydrateFallbackElement||null)));let R=l.concat(d.slice(0,b+1)),M=()=>{let O;return j?O=N:w?O=C:y.route.Component?O=S.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=v,S.createElement(R4,{match:y,routeContext:{outlet:v,matches:R,isDataRoute:r!=null},children:O})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?S.createElement(I3,{location:r.location,revalidation:r.revalidation,component:N,error:j,children:M(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):M()},null)}function k2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function L4(a){let l=S.useContext(Fi);return ct(l,k2(a)),l}function O4(a){let l=S.useContext(lu);return ct(l,k2(a)),l}function M4(a){let l=S.useContext(Yn);return ct(l,k2(a)),l}function R2(a){let l=M4(a),i=l.matches[l.matches.length-1];return ct(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function z4(){return R2("useRouteId")}function D4(){var r;let a=S.useContext(T2),l=O4("useRouteError"),i=R2("useRouteError");return a!==void 0?a:(r=l.errors)==null?void 0:r[i]}function B4(){let{router:a}=L4("useNavigate"),l=R2("useNavigate"),i=S.useRef(!1);return Q3(()=>{i.current=!0}),S.useCallback(async(d,f={})=>{sa(i.current,V3),i.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:l,...f}))},[a,l])}var fp={};function Y3(a,l,i){!l&&!fp[a]&&(fp[a]=!0,sa(!1,i))}S.memo($4);function $4({routes:a,future:l,state:i,isStatic:r,onError:d}){return P3(a,void 0,{state:i,isStatic:r,onError:d})}function Bi({to:a,replace:l,state:i,relative:r}){ct(Gi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=S.useContext(An);sa(!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}=S.useContext(Yn),{pathname:m}=mn(),g=Ln(),h=su(a,E2(f),m,r==="path"),p=JSON.stringify(h);return S.useEffect(()=>{g(JSON.parse(p),{replace:l,state:i,relative:r})},[g,p,r,l,i]),null}function iu(a){return w4(a.context)}function Ue(a){ct(!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 U4({basename:a="/",children:l=null,location:i,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:m}){ct(!Gi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=a.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:g,navigator:d,static:f,unstable_useTransitions:m,future:{}}),[g,d,f,m]);typeof i=="string"&&(i=qi(i));let{pathname:p="/",search:v="",hash:y="",state:b=null,key:j="default",unstable_mask:w}=i,N=S.useMemo(()=>{let C=Ja(p,g);return C==null?null:{location:{pathname:C,search:v,hash:y,state:b,key:j,unstable_mask:w},navigationType:r}},[g,p,v,y,b,j,r,w]);return sa(N!=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.`),N==null?null:S.createElement(An.Provider,{value:h},S.createElement(ir.Provider,{children:l,value:N}))}function H4({children:a,location:l}){return C4(e2(a),l)}function e2(a,l=[]){let i=[];return S.Children.forEach(a,(r,d)=>{if(!S.isValidElement(r))return;let f=[...l,d];if(r.type===S.Fragment){i.push.apply(i,e2(r.props.children,f));return}ct(r.type===Ue,`[${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>`),ct(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={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&&(m.children=e2(r.props.children,f)),i.push(m)}),i}var Qc="get",Pc="application/x-www-form-urlencoded";function ou(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function q4(a){return ou(a)&&a.tagName.toLowerCase()==="button"}function F4(a){return ou(a)&&a.tagName.toLowerCase()==="form"}function G4(a){return ou(a)&&a.tagName.toLowerCase()==="input"}function V4(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Q4(a,l){return a.button===0&&(!l||l==="_self")&&!V4(a)}var Lc=null;function P4(){if(Lc===null)try{new FormData(document.createElement("form"),0),Lc=!1}catch{Lc=!0}return Lc}var I4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dd(a){return a!=null&&!I4.has(a)?(sa(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Pc}"`),null):a}function Y4(a,l){let i,r,d,f,m;if(F4(a)){let g=a.getAttribute("action");r=g?Ja(g,l):null,i=a.getAttribute("method")||Qc,d=Dd(a.getAttribute("enctype"))||Pc,f=new FormData(a)}else if(q4(a)||G4(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 h=a.getAttribute("formaction")||g.getAttribute("action");if(r=h?Ja(h,l):null,i=a.getAttribute("formmethod")||g.getAttribute("method")||Qc,d=Dd(a.getAttribute("formenctype"))||Dd(g.getAttribute("enctype"))||Pc,f=new FormData(g,a),!P4()){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(ou(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Qc,r=null,d=Pc,m=a}return f&&d==="text/plain"&&(m=f,f=void 0),{action:r,method:i.toLowerCase(),encType:d,formData:f,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function A2(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function X3(a,l,i,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return i?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:l&&Ja(d.pathname,l)==="/"?d.pathname=`${Zc(l)}/_root.${r}`:d.pathname=`${Zc(d.pathname)}.${r}`,d}async function X4(a,l){if(a.id in l)return l[a.id];try{let i=await import(a.module);return l[a.id]=i,i}catch(i){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function K4(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 Z4(a,l,i){let r=await Promise.all(a.map(async d=>{let f=l.routes[d.route.id];if(f){let m=await X4(f,i);return m.links?m.links():[]}return[]}));return tb(r.flat(1).filter(K4).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function hp(a,l,i,r,d,f){let m=(h,p)=>i[p]?h.route.id!==i[p].route.id:!0,g=(h,p)=>{var v;return i[p].pathname!==h.pathname||((v=i[p].route.path)==null?void 0:v.endsWith("*"))&&i[p].params["*"]!==h.params["*"]};return f==="assets"?l.filter((h,p)=>m(h,p)||g(h,p)):f==="data"?l.filter((h,p)=>{var y;let v=r.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(m(h,p)||g(h,p))return!0;if(h.route.shouldRevalidate){let b=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((y=i[0])==null?void 0:y.params)||{},nextUrl:new URL(a,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function W4(a,l,{includeHydrateFallback:i}={}){return J4(a.map(r=>{let d=l.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)),i&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function J4(a){return[...new Set(a)]}function eb(a){let l={},i=Object.keys(a).sort();for(let r of i)l[r]=a[r];return l}function tb(a,l){let i=new Set;return new Set(l),a.reduce((r,d)=>{let f=JSON.stringify(eb(d));return i.has(f)||(i.add(f),r.push({key:f,link:d})),r},[])}function L2(){let a=S.useContext(Fi);return A2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function nb(){let a=S.useContext(lu);return A2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var O2=S.createContext(void 0);O2.displayName="FrameworkContext";function M2(){let a=S.useContext(O2);return A2(a,"You must render this element inside a <HydratedRouter> element"),a}function ab(a,l){let i=S.useContext(O2),[r,d]=S.useState(!1),[f,m]=S.useState(!1),{onFocus:g,onBlur:h,onMouseEnter:p,onMouseLeave:v,onTouchStart:y}=l,b=S.useRef(null);S.useEffect(()=>{if(a==="render"&&m(!0),a==="viewport"){let N=R=>{R.forEach(M=>{m(M.isIntersecting)})},C=new IntersectionObserver(N,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[a]),S.useEffect(()=>{if(r){let N=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(N)}}},[r]);let j=()=>{d(!0)},w=()=>{d(!1),m(!1)};return i?a!=="intent"?[f,b,{}]:[f,b,{onFocus:Ho(g,j),onBlur:Ho(h,w),onMouseEnter:Ho(p,j),onMouseLeave:Ho(v,w),onTouchStart:Ho(y,j)}]:[!1,b,{}]}function Ho(a,l){return i=>{a&&a(i),i.defaultPrevented||l(i)}}function sb({page:a,...l}){let i=m4(),{router:r}=L2(),d=S.useMemo(()=>M3(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?i?S.createElement(ib,{page:a,matches:d,...l}):S.createElement(ob,{page:a,matches:d,...l}):null}function lb(a){let{manifest:l,routeModules:i}=M2(),[r,d]=S.useState([]);return S.useEffect(()=>{let f=!1;return Z4(a,l,i).then(m=>{f||d(m)}),()=>{f=!0}},[a,l,i]),r}function ib({page:a,matches:l,...i}){let r=mn(),{future:d}=M2(),{basename:f}=L2(),m=S.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let g=X3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,p=[];for(let v of l)typeof v.route.shouldRevalidate=="function"?h=!0:p.push(v.route.id);return h&&p.length>0&&g.searchParams.set("_routes",p.join(",")),[g.pathname+g.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,l]);return S.createElement(S.Fragment,null,m.map(g=>S.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...i})))}function ob({page:a,matches:l,...i}){let r=mn(),{future:d,manifest:f,routeModules:m}=M2(),{basename:g}=L2(),{loaderData:h,matches:p}=nb(),v=S.useMemo(()=>hp(a,l,p,f,r,"data"),[a,l,p,f,r]),y=S.useMemo(()=>hp(a,l,p,f,r,"assets"),[a,l,p,f,r]),b=S.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let N=new Set,C=!1;if(l.forEach(M=>{var H;let O=f.routes[M.route.id];!O||!O.hasLoader||(!v.some(I=>I.route.id===M.route.id)&&M.route.id in h&&((H=m[M.route.id])!=null&&H.shouldRevalidate)||O.hasClientLoader?C=!0:N.add(M.route.id))}),N.size===0)return[];let R=X3(a,g,d.unstable_trailingSlashAwareDataRequests,"data");return C&&N.size>0&&R.searchParams.set("_routes",l.filter(M=>N.has(M.route.id)).map(M=>M.route.id).join(",")),[R.pathname+R.search]},[g,d.unstable_trailingSlashAwareDataRequests,h,r,f,v,l,a,m]),j=S.useMemo(()=>W4(y,f),[y,f]),w=lb(y);return S.createElement(S.Fragment,null,b.map(N=>S.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...i})),j.map(N=>S.createElement("link",{key:N,rel:"modulepreload",href:N,...i})),w.map(({key:N,link:C})=>S.createElement("link",{key:N,nonce:i.nonce,...C,crossOrigin:C.crossOrigin??i.crossOrigin})))}function rb(...a){return l=>{a.forEach(i=>{typeof i=="function"?i(l):i!=null&&(i.current=l)})}}var cb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cb&&(window.__reactRouterVersion="7.14.2")}catch{}function ub({basename:a,children:l,unstable_useTransitions:i,window:r}){let d=S.useRef();d.current==null&&(d.current=qy({window:r,v5Compat:!0}));let f=d.current,[m,g]=S.useState({action:f.action,location:f.location}),h=S.useCallback(p=>{i===!1?g(p):S.startTransition(()=>g(p))},[i]);return S.useLayoutEffect(()=>f.listen(h),[f,h]),S.createElement(U4,{basename:a,children:l,location:m.location,navigationType:m.action,navigator:f,unstable_useTransitions:i})}var K3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kn=S.forwardRef(function({onClick:l,discover:i="render",prefetch:r="none",relative:d,reloadDocument:f,replace:m,unstable_mask:g,state:h,target:p,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:j,...w},N){let{basename:C,navigator:R,unstable_useTransitions:M}=S.useContext(An),O=typeof v=="string"&&K3.test(v),H=U3(v,C);v=H.to;let I=x4(v,{relative:d}),X=mn(),$=null;if(g){let ne=su(g,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);C!=="/"&&(ne.pathname=ne.pathname==="/"?C:aa([C,ne.pathname])),$=R.createHref(ne)}let[P,J,ue]=ab(r,w),re=hb(v,{replace:m,unstable_mask:g,state:h,target:p,preventScrollReset:y,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:j,unstable_useTransitions:M});function ce(ne){l&&l(ne),ne.defaultPrevented||re(ne)}let te=!(H.isExternal||f),he=S.createElement("a",{...w,...ue,href:(te?$:void 0)||H.absoluteURL||I,onClick:te?ce:l,ref:rb(N,J),target:p,"data-discover":!O&&i==="render"?"true":void 0});return P&&!O?S.createElement(S.Fragment,null,he,S.createElement(sb,{page:I})):he});kn.displayName="Link";var $i=S.forwardRef(function({"aria-current":l="page",caseSensitive:i=!1,className:r="",end:d=!1,style:f,to:m,viewTransition:g,children:h,...p},v){let y=or(m,{relative:p.relative}),b=mn(),j=S.useContext(lu),{navigator:w,basename:N}=S.useContext(An),C=j!=null&&vb(y)&&g===!0,R=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,M=b.pathname,O=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;i||(M=M.toLowerCase(),O=O?O.toLowerCase():null,R=R.toLowerCase()),O&&N&&(O=Ja(O,N)||O);const H=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let I=M===R||!d&&M.startsWith(R)&&M.charAt(H)==="/",X=O!=null&&(O===R||!d&&O.startsWith(R)&&O.charAt(R.length)==="/"),$={isActive:I,isPending:X,isTransitioning:C},P=I?l:void 0,J;typeof r=="function"?J=r($):J=[r,I?"active":null,X?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ue=typeof f=="function"?f($):f;return S.createElement(kn,{...p,"aria-current":P,className:J,ref:v,style:ue,to:m,viewTransition:g},typeof h=="function"?h($):h)});$i.displayName="NavLink";var db=S.forwardRef(({discover:a="render",fetcherKey:l,navigate:i,reloadDocument:r,replace:d,state:f,method:m=Qc,action:g,onSubmit:h,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...j},w)=>{let{unstable_useTransitions:N}=S.useContext(An),C=_b(),R=gb(g,{relative:p}),M=m.toLowerCase()==="get"?"get":"post",O=typeof g=="string"&&K3.test(g),H=I=>{if(h&&h(I),I.defaultPrevented)return;I.preventDefault();let X=I.nativeEvent.submitter,$=(X==null?void 0:X.getAttribute("formmethod"))||m,P=()=>C(X||I.currentTarget,{fetcherKey:l,method:$,navigate:i,replace:d,state:f,relative:p,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});N&&i!==!1?S.startTransition(()=>P()):P()};return S.createElement("form",{ref:w,method:M,action:R,onSubmit:r?h:H,...j,"data-discover":!O&&a==="render"?"true":void 0})});db.displayName="Form";function fb(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Z3(a){let l=S.useContext(Fi);return ct(l,fb(a)),l}function hb(a,{target:l,replace:i,unstable_mask:r,state:d,preventScrollReset:f,relative:m,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:p}={}){let v=Ln(),y=mn(),b=or(a,{relative:m});return S.useCallback(j=>{if(Q4(j,l)){j.preventDefault();let w=i!==void 0?i:Xo(y)===Xo(b),N=()=>v(a,{replace:w,unstable_mask:r,state:d,preventScrollReset:f,relative:m,viewTransition:g,unstable_defaultShouldRevalidate:h});p?S.startTransition(()=>N()):N()}},[y,v,b,i,r,d,l,a,f,m,g,h,p])}var mb=0,pb=()=>`__${String(++mb)}__`;function _b(){let{router:a}=Z3("useSubmit"),{basename:l}=S.useContext(An),i=z4(),r=a.fetch,d=a.navigate;return S.useCallback(async(f,m={})=>{let{action:g,method:h,encType:p,formData:v,body:y}=Y4(f,l);if(m.navigate===!1){let b=m.fetcherKey||pb();await r(b,i,m.action||g,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:v,body:y,formMethod:m.method||h,formEncType:m.encType||p,flushSync:m.flushSync})}else await d(m.action||g,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:v,body:y,formMethod:m.method||h,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:i,flushSync:m.flushSync,viewTransition:m.viewTransition})},[r,d,l,i])}function gb(a,{relative:l}={}){let{basename:i}=S.useContext(An),r=S.useContext(Yn);ct(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...or(a||".",{relative:l})},m=mn();if(a==null){f.search=m.search;let g=new URLSearchParams(f.search),h=g.getAll("index");if(h.some(v=>v==="")){g.delete("index"),h.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"),i!=="/"&&(f.pathname=f.pathname==="/"?i:aa([i,f.pathname])),Xo(f)}function vb(a,{relative:l}={}){let i=S.useContext(F3);ct(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Z3("useViewTransitionState"),d=or(a,{relative:l});if(!i.isTransitioning)return!1;let f=Ja(i.currentLocation.pathname,r)||i.currentLocation.pathname,m=Ja(i.nextLocation.pathname,r)||i.nextLocation.pathname;return Kc(d.pathname,m)!=null||Kc(d.pathname,f)!=null}const yb="_btn_8fkbu_1",bb="_primary_8fkbu_17",xb="_danger_8fkbu_27",Sb="_ghost_8fkbu_37",jb="_outline_8fkbu_47",mp={btn:yb,primary:bb,danger:xb,ghost:Sb,outline:jb};function Rn({variant:a,children:l,onClick:i,type:r="button",disabled:d}){return o.jsx("button",{type:r,className:`${mp.btn} ${mp[a]}`,onClick:i,disabled:d,children:l})}const wb="_field_1rkrg_1",Nb="_compact_1rkrg_5",Cb="_fieldError_1rkrg_9",Eb="_fieldLabel_1rkrg_15",Tb="_fieldInput_1rkrg_23",kb="_currency_1rkrg_49",Rb="_currencyIcon_1rkrg_58",Ab="_currencyRub_1rkrg_70",Lb="_currencyUsdt_1rkrg_74",fa={field:wb,compact:Nb,fieldError:Cb,fieldLabel:Eb,fieldInput:Tb,currency:kb,currencyIcon:Rb,currencyRub:Ab,currencyUsdt:Lb};function pp({label:a,value:l,currency:i,onChange:r,error:d,compact:f}){const m=!r;return o.jsxs("div",{className:f?`${fa.field} ${fa.compact}`:fa.field,children:[a&&o.jsx("div",{className:fa.fieldLabel,children:a}),o.jsxs("div",{className:fa.fieldInput,children:[o.jsx("input",{type:"text",value:l,onChange:r?g=>r(g.target.value):void 0,readOnly:m,placeholder:"0",inputMode:m?void 0:"decimal"}),o.jsxs("div",{className:fa.currency,children:[o.jsx("span",{className:`${fa.currencyIcon} ${i==="USDT"?fa.currencyUsdt:fa.currencyRub}`,children:i==="USDT"?"₮":"₽"}),i]})]}),d&&o.jsx("div",{className:fa.fieldError,children:d})]})}const Ob="_swapWrap_172k4_1",Mb="_compact_172k4_6",zb="_swapBtn_172k4_10",Oc={swapWrap:Ob,compact:Mb,swapBtn:zb};function Db({onClick:a,compact:l}){return o.jsx("div",{className:l?`${Oc.swapWrap} ${Oc.compact}`:Oc.swapWrap,children:o.jsx("button",{type:"button",className:Oc.swapBtn,onClick:a,"aria-label":"Поменять направление",children:o.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:o.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const Bb="_field_zffpb_1",$b="_label_zffpb_7",Ub="_wrap_zffpb_14",Hb="_input_zffpb_18",qb="_readonly_zffpb_37",Fb="_copied_zffpb_44",Gb="_iconCheck_zffpb_59",Vb="_iconLock_zffpb_68",Qb="_withToggle_zffpb_76",Pb="_togglePw_zffpb_80",ha={field:Bb,label:$b,wrap:Ub,input:Hb,readonly:qb,copied:Fb,iconCheck:Gb,iconLock:Vb,withToggle:Qb,togglePw:Pb};function ke({label:a,value:l,placeholder:i,type:r="text",onChange:d,onBlur:f,readOnly:m,required:g,icon:h}){const[p,v]=S.useState(!1),[y,b]=S.useState(!1),j=r==="password",w=j?y?"text":"password":r,N=()=>{m&&navigator.clipboard.writeText(l).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return o.jsxs("div",{className:ha.field,children:[o.jsx("label",{className:ha.label,children:a}),o.jsxs("div",{className:ha.wrap,onClick:N,children:[o.jsx("input",{className:`${ha.input} ${j?ha.withToggle:""} ${m?ha.readonly:""} ${p?ha.copied:""}`,type:w,...d?{value:l,onChange:C=>d(C.target.value)}:{defaultValue:l},placeholder:i,readOnly:m,required:g,onBlur:f}),j&&o.jsx("button",{type:"button",className:ha.togglePw,onClick:C=>{C.stopPropagation(),b(R=>!R)},"aria-label":y?"Скрыть пароль":"Показать пароль",children:y?o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.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"}),o.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"}),o.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):o.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),o.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),h==="check"&&o.jsx("span",{className:ha.iconCheck,children:"✓"}),h==="lock"&&o.jsx("span",{className:ha.iconLock,children:"🔒"})]})]})}const Ib="_notification_159u2_1",Yb="_slideIn_159u2_1",Xb="_notificationWrapper_159u2_19",Kb="_content_159u2_24",Zb="_closing_159u2_30",Wb="_slideOut_159u2_1",Jb="_icon_159u2_58",ex="_success_159u2_71",tx="_error_159u2_76",nx="_info_159u2_81",ax="_warning_159u2_86",sx="_title_159u2_91",lx="_message_159u2_99",ix="_close_159u2_107",Ga={notification:Ib,slideIn:Yb,notificationWrapper:Xb,content:Kb,closing:Zb,slideOut:Wb,icon:Jb,success:ex,error:tx,info:nx,warning:ax,title:sx,message:lx,close:ix},ox={success:"✓",error:"✕",info:"i",warning:"!"},rx={success:"Успех",error:"Ошибка",info:"Информация",warning:"Внимание"};function es({message:a,status:l,onClose:i,title:r,duration:d}){const[f,m]=S.useState(!1),g=S.useRef(null);function h(){m(!0)}function p(){f&&i()}function v(){g.current!==null&&(clearTimeout(g.current),g.current=null)}function y(){d&&(v(),g.current=setTimeout(()=>m(!0),d))}S.useEffect(()=>{y();function w(N){N.key==="Escape"&&m(!0)}return window.addEventListener("keydown",w),()=>{v(),window.removeEventListener("keydown",w)}},[d]);const b=r??rx[l],j=l==="error"||l==="warning"?"assertive":"polite";return o.jsxs("div",{className:`${Ga.notification} ${Ga[l]} ${f?Ga.closing:""}`,onAnimationEnd:p,onMouseEnter:v,onMouseLeave:y,role:"alert","aria-live":j,children:[o.jsxs("div",{className:Ga.notificationWrapper,children:[o.jsx("span",{className:Ga.icon,children:ox[l]}),o.jsxs("div",{className:Ga.content,children:[o.jsx("p",{className:Ga.title,children:b}),o.jsx("p",{className:Ga.message,children:a})]})]}),o.jsx("button",{className:Ga.close,onClick:h,"aria-label":"Закрыть",children:"✕"})]})}const cx="_pill_3oadq_1",ux={pill:cx};function dx({children:a}){return o.jsx("span",{className:ux.pill,children:a})}const fx="_btn_ytb12_1",hx={btn:fx};function In({label:a="Подтвердить своп",onClick:l,type:i="submit",disabled:r}){return o.jsx("button",{type:i,className:hx.btn,onClick:l,disabled:r,children:a})}const mx="_field_1845i_1",px="_label_1845i_8",_x="_trigger_1845i_15",gx="_triggerOpen_1845i_41",vx="_value_1845i_46",yx="_placeholder_1845i_50",bx="_arrow_1845i_54",xx="_arrowOpen_1845i_61",Sx="_dropdown_1845i_65",jx="_option_1845i_82",wx="_optionSelected_1845i_95",Jn={field:mx,label:px,trigger:_x,triggerOpen:gx,value:vx,placeholder:yx,arrow:bx,arrowOpen:xx,dropdown:Sx,option:jx,optionSelected:wx};function z2({value:a,options:l,onChange:i,label:r,placeholder:d="Выберите",id:f,disabled:m}){const[g,h]=S.useState(!1),p=S.useRef(null),v=l.find(y=>y.value===a);return S.useEffect(()=>{if(!g)return;const y=j=>{p.current&&!p.current.contains(j.target)&&h(!1)},b=j=>{j.key==="Escape"&&h(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",b)}},[g]),o.jsxs("div",{className:Jn.field,ref:p,children:[r&&o.jsx("label",{className:Jn.label,htmlFor:f,children:r}),o.jsxs("button",{type:"button",id:f,className:`${Jn.trigger} ${g?Jn.triggerOpen:""}`,onClick:()=>!m&&h(y=>!y),disabled:m,"aria-haspopup":"listbox","aria-expanded":g,children:[o.jsx("span",{className:v?Jn.value:Jn.placeholder,children:v?v.label:d}),o.jsx("span",{className:`${Jn.arrow} ${g?Jn.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),g&&o.jsx("ul",{className:Jn.dropdown,role:"listbox",children:l.map(y=>o.jsx("li",{role:"option","aria-selected":y.value===a,className:`${Jn.option} ${y.value===a?Jn.optionSelected:""}`,onClick:()=>{i(y.value),h(!1)},children:y.label},String(y.value)))})]})}const Nx="_wrap_19cox_1",Cx="_fullscreen_19cox_9",Ex="_overlay_19cox_15",Tx="_overlayFadeIn_19cox_1",kx="_spinner_19cox_33",Rx="_spin_19cox_33",Ax="_sm_19cox_42",Lx="_md_19cox_48",Ox="_lg_19cox_54",Mx="_label_19cox_60",zx="_srOnly_19cox_67",ul={wrap:Nx,fullscreen:Cx,overlay:Ex,overlayFadeIn:Tx,spinner:kx,spin:Rx,sm:Ax,md:Lx,lg:Ox,label:Mx,srOnly:zx};function On({size:a="md",label:l,fullscreen:i,overlay:r,className:d}){const f=[ul.wrap,i?ul.fullscreen:"",r?ul.overlay:"",d??""].filter(Boolean).join(" ");return o.jsxs("div",{className:f,role:"status","aria-live":"polite","aria-busy":"true",children:[o.jsx("span",{className:`${ul.spinner} ${ul[a]}`,"aria-hidden":"true"}),l?o.jsx("span",{className:ul.label,children:l}):null,o.jsx("span",{className:ul.srOnly,children:l??"Загрузка"})]})}const Dx="_icon_73irc_1",Bx={icon:Dx};function kl({letter:a,color:l,logo:i,size:r=40}){return o.jsx("div",{className:Bx.icon,style:{background:i?"transparent":l,width:r,height:r,fontSize:r*.45},children:i?o.jsx("img",{src:i,alt:a,style:{width:r*.7,height:r*.7}}):a})}const $x="_section_11f1k_1",Ux="_wrap_11f1k_7",Hx="_descBlock_11f1k_16",qx="_descText_11f1k_22",Fx="_right_11f1k_33",Gx="_glow_11f1k_37",Vx="_row_11f1k_49",Qx="_check_11f1k_87",Px="_text_11f1k_101",ma={section:$x,wrap:Ux,descBlock:Hx,descText:qx,right:Fx,glow:Gx,row:Vx,check:Qx,text:Px},Ix="_title_1ien9_1",Yx={title:Ix};function W3({children:a}){return o.jsx("h2",{className:Yx.title,children:a})}const _p=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function Xx(){const[a,l]=S.useState(-1);return o.jsx("section",{id:"about",className:ma.section,children:o.jsxs("div",{className:ma.wrap,children:[o.jsxs("div",{children:[o.jsx(dx,{children:"О КОМПАНИИ"}),o.jsx(W3,{children:"О нас"}),o.jsxs("div",{className:ma.descBlock,children:[o.jsx("p",{className:ma.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),o.jsx("p",{className:ma.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),o.jsxs("div",{className:ma.right,children:[o.jsx("div",{className:ma.glow}),_p.map((i,r)=>o.jsxs("div",{className:ma.row,"data-hovered":a===r||void 0,"data-last":r===_p.length-1||void 0,onMouseEnter:()=>l(r),onMouseLeave:()=>l(-1),children:[o.jsx("div",{className:ma.check,children:"✓"}),o.jsx("span",{className:ma.text,children:i})]},r))]})]})})}const Wc=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],Bd=Wc[0].min,gp=Wc[Wc.length-1].max;function Kx(a){return a<=Bd?0:a>=gp?100:(a-Bd)/(gp-Bd)*100}const Zx="_title_ujt2o_1",Wx="_table_ujt2o_8",Jx="_row_ujt2o_15",e6="_range_ujt2o_31",t6="_pct_ujt2o_36",n6="_progressBar_ujt2o_43",a6="_progressFill_ujt2o_51",s6="_summary_ujt2o_58",l6="_summaryLabel_ujt2o_73",i6="_summaryValue_ujt2o_78",Nn={title:Zx,table:Wx,row:Jx,range:e6,pct:t6,progressBar:n6,progressFill:a6,summary:s6,summaryLabel:l6,summaryValue:i6},vp=a=>a.toLocaleString("ru-RU");function o6({amount:a,progress:l,commission:i,effectiveRate:r}){return o.jsxs("div",{children:[o.jsx("div",{className:Nn.title,children:"КОМИССИЯ СЕРВИСА"}),o.jsx("div",{className:Nn.table,children:Wc.map((d,f)=>o.jsxs("div",{className:Nn.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[o.jsxs("span",{className:Nn.range,children:[vp(d.min)," ",vp(d.max)," ₽"]}),o.jsxs("span",{className:Nn.pct,children:[d.pct,"%"]})]},f))}),o.jsx("div",{className:Nn.progressBar,children:o.jsx("div",{className:Nn.progressFill,style:{width:`${l}%`}})}),o.jsxs("div",{className:Nn.summary,children:[o.jsx("span",{className:Nn.summaryLabel,children:"Комиссия"}),o.jsxs("span",{className:Nn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),o.jsxs("div",{className:Nn.summary,children:[o.jsx("span",{className:Nn.summaryLabel,children:"Курс с комиссией"}),o.jsxs("span",{className:Nn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Vi=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(){}},vl,Rs,wi,S3,r6=(S3=class extends Vi{constructor(){super();ie(this,vl);ie(this,Rs);ie(this,wi);Z(this,wi,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){T(this,Rs)||this.setEventListener(T(this,wi))}onUnsubscribe(){var l;this.hasListeners()||((l=T(this,Rs))==null||l.call(this),Z(this,Rs,void 0))}setEventListener(l){var i;Z(this,wi,l),(i=T(this,Rs))==null||i.call(this),Z(this,Rs,l(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(l){T(this,vl)!==l&&(Z(this,vl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){var l;return typeof T(this,vl)=="boolean"?T(this,vl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},vl=new WeakMap,Rs=new WeakMap,wi=new WeakMap,S3),D2=new r6,c6={setTimeout:(a,l)=>setTimeout(a,l),clearTimeout:a=>clearTimeout(a),setInterval:(a,l)=>setInterval(a,l),clearInterval:a=>clearInterval(a)},As,N2,j3,u6=(j3=class{constructor(){ie(this,As,c6);ie(this,N2,!1)}setTimeoutProvider(a){Z(this,As,a)}setTimeout(a,l){return T(this,As).setTimeout(a,l)}clearTimeout(a){T(this,As).clearTimeout(a)}setInterval(a,l){return T(this,As).setInterval(a,l)}clearInterval(a){T(this,As).clearInterval(a)}},As=new WeakMap,N2=new WeakMap,j3),gl=new u6;function d6(a){setTimeout(a,0)}var f6=typeof window>"u"||"Deno"in globalThis;function en(){}function h6(a,l){return typeof a=="function"?a(l):a}function t2(a){return typeof a=="number"&&a>=0&&a!==1/0}function J3(a,l){return Math.max(a+(l||0)-Date.now(),0)}function Hs(a,l){return typeof a=="function"?a(l):a}function Tn(a,l){return typeof a=="function"?a(l):a}function yp(a,l){const{type:i="all",exact:r,fetchStatus:d,predicate:f,queryKey:m,stale:g}=a;if(m){if(r){if(l.queryHash!==B2(m,l.options))return!1}else if(!Ko(l.queryKey,m))return!1}if(i!=="all"){const h=l.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof g=="boolean"&&l.isStale()!==g||d&&d!==l.state.fetchStatus||f&&!f(l))}function bp(a,l){const{exact:i,status:r,predicate:d,mutationKey:f}=a;if(f){if(!l.options.mutationKey)return!1;if(i){if(Rl(l.options.mutationKey)!==Rl(f))return!1}else if(!Ko(l.options.mutationKey,f))return!1}return!(r&&l.state.status!==r||d&&!d(l))}function B2(a,l){return((l==null?void 0:l.queryKeyHashFn)||Rl)(a)}function Rl(a){return JSON.stringify(a,(l,i)=>n2(i)?Object.keys(i).sort().reduce((r,d)=>(r[d]=i[d],r),{}):i)}function Ko(a,l){return a===l?!0:typeof a!=typeof l?!1:a&&l&&typeof a=="object"&&typeof l=="object"?Object.keys(l).every(i=>Ko(a[i],l[i])):!1}var m6=Object.prototype.hasOwnProperty;function e_(a,l,i=0){if(a===l)return a;if(i>500)return l;const r=xp(a)&&xp(l);if(!r&&!(n2(a)&&n2(l)))return l;const f=(r?a:Object.keys(a)).length,m=r?l:Object.keys(l),g=m.length,h=r?new Array(g):{};let p=0;for(let v=0;v<g;v++){const y=r?v:m[v],b=a[y],j=l[y];if(b===j){h[y]=b,(r?v<f:m6.call(a,y))&&p++;continue}if(b===null||j===null||typeof b!="object"||typeof j!="object"){h[y]=j;continue}const w=e_(b,j,i+1);h[y]=w,w===b&&p++}return f===g&&p===f?a:h}function Jc(a,l){if(!l||Object.keys(a).length!==Object.keys(l).length)return!1;for(const i in a)if(a[i]!==l[i])return!1;return!0}function xp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function n2(a){if(!Sp(a))return!1;const l=a.constructor;if(l===void 0)return!0;const i=l.prototype;return!(!Sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Sp(a){return Object.prototype.toString.call(a)==="[object Object]"}function p6(a){return new Promise(l=>{gl.setTimeout(l,a)})}function a2(a,l,i){return typeof i.structuralSharing=="function"?i.structuralSharing(a,l):i.structuralSharing!==!1?e_(a,l):l}function _6(a,l,i=0){const r=[...a,l];return i&&r.length>i?r.slice(1):r}function g6(a,l,i=0){const r=[l,...a];return i&&r.length>i?r.slice(0,-1):r}var $2=Symbol();function t_(a,l){return!a.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!a.queryFn||a.queryFn===$2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function U2(a,l){return typeof a=="function"?a(...l):!!a}function v6(a,l,i){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=l()),r||(r=!0,d.aborted?i():d.addEventListener("abort",i,{once:!0})),d)}),a}var Zo=(()=>{let a=()=>f6;return{isServer(){return a()},setIsServer(l){a=l}}})();function s2(){let a,l;const i=new Promise((d,f)=>{a=d,l=f});i.status="pending",i.catch(()=>{});function r(d){Object.assign(i,d),delete i.resolve,delete i.reject}return i.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},i.reject=d=>{r({status:"rejected",reason:d}),l(d)},i}var y6=d6;function b6(){let a=[],l=0,i=g=>{g()},r=g=>{g()},d=y6;const f=g=>{l?a.push(g):d(()=>{i(g)})},m=()=>{const g=a;a=[],g.length&&d(()=>{r(()=>{g.forEach(h=>{i(h)})})})};return{batch:g=>{let h;l++;try{h=g()}finally{l--,l||m()}return h},batchCalls:g=>(...h)=>{f(()=>{g(...h)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{d=g}}}var Lt=b6(),Ni,Ls,Ci,w3,x6=(w3=class extends Vi{constructor(){super();ie(this,Ni,!0);ie(this,Ls);ie(this,Ci);Z(this,Ci,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Ls)||this.setEventListener(T(this,Ci))}onUnsubscribe(){var l;this.hasListeners()||((l=T(this,Ls))==null||l.call(this),Z(this,Ls,void 0))}setEventListener(l){var i;Z(this,Ci,l),(i=T(this,Ls))==null||i.call(this),Z(this,Ls,l(this.setOnline.bind(this)))}setOnline(l){T(this,Ni)!==l&&(Z(this,Ni,l),this.listeners.forEach(r=>{r(l)}))}isOnline(){return T(this,Ni)}},Ni=new WeakMap,Ls=new WeakMap,Ci=new WeakMap,w3),eu=new x6;function S6(a){return Math.min(1e3*2**a,3e4)}function n_(a){return(a??"online")==="online"?eu.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 a_(a){let l=!1,i=0,r;const d=s2(),f=()=>d.status!=="pending",m=N=>{var C;if(!f()){const R=new l2(N);b(R),(C=a.onCancel)==null||C.call(a,R)}},g=()=>{l=!0},h=()=>{l=!1},p=()=>D2.isFocused()&&(a.networkMode==="always"||eu.isOnline())&&a.canRun(),v=()=>n_(a.networkMode)&&a.canRun(),y=N=>{f()||(r==null||r(),d.resolve(N))},b=N=>{f()||(r==null||r(),d.reject(N))},j=()=>new Promise(N=>{var C;r=R=>{(f()||p())&&N(R)},(C=a.onPause)==null||C.call(a)}).then(()=>{var N;r=void 0,f()||(N=a.onContinue)==null||N.call(a)}),w=()=>{if(f())return;let N;const C=i===0?a.initialPromise:void 0;try{N=C??a.fn()}catch(R){N=Promise.reject(R)}Promise.resolve(N).then(y).catch(R=>{var X;if(f())return;const M=a.retry??(Zo.isServer()?0:3),O=a.retryDelay??S6,H=typeof O=="function"?O(i,R):O,I=M===!0||typeof M=="number"&&i<M||typeof M=="function"&&M(i,R);if(l||!I){b(R);return}i++,(X=a.onFail)==null||X.call(a,i,R),p6(H).then(()=>p()?void 0:j()).then(()=>{l?b(R):w()})})};return{promise:d,status:()=>d.status,cancel:m,continue:()=>(r==null||r(),d),cancelRetry:g,continueRetry:h,canStart:v,start:()=>(v()?w():j().then(w),d)}}var yl,N3,s_=(N3=class{constructor(){ie(this,yl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),t2(this.gcTime)&&Z(this,yl,gl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Zo.isServer()?1/0:300*1e3))}clearGcTimeout(){T(this,yl)!==void 0&&(gl.clearTimeout(T(this,yl)),Z(this,yl,void 0))}},yl=new WeakMap,N3);function j6(a){return{onFetch:(l,i)=>{var v,y,b,j,w;const r=l.options,d=(b=(y=(v=l.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=((j=l.state.data)==null?void 0:j.pages)||[],m=((w=l.state.data)==null?void 0:w.pageParams)||[];let g={pages:[],pageParams:[]},h=0;const p=async()=>{let N=!1;const C=O=>{v6(O,()=>l.signal,()=>N=!0)},R=t_(l.options,l.fetchOptions),M=async(O,H,I)=>{if(N)return Promise.reject(l.signal.reason);if(H==null&&O.pages.length)return Promise.resolve(O);const $=(()=>{const re={client:l.client,queryKey:l.queryKey,pageParam:H,direction:I?"backward":"forward",meta:l.options.meta};return C(re),re})(),P=await R($),{maxPages:J}=l.options,ue=I?g6:_6;return{pages:ue(O.pages,P,J),pageParams:ue(O.pageParams,H,J)}};if(d&&f.length){const O=d==="backward",H=O?l_:i2,I={pages:f,pageParams:m},X=H(r,I);g=await M(I,X,O)}else{const O=a??f.length;do{const H=h===0?m[0]??r.initialPageParam:i2(r,g);if(h>0&&H==null)break;g=await M(g,H),h++}while(h<O)}return g};l.options.persister?l.fetchFn=()=>{var N,C;return(C=(N=l.options).persister)==null?void 0:C.call(N,p,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},i)}:l.fetchFn=p}}}function i2(a,{pages:l,pageParams:i}){const r=l.length-1;return l.length>0?a.getNextPageParam(l[r],l,i[r],i):void 0}function l_(a,{pages:l,pageParams:i}){var r;return l.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,l[0],l,i[0],i):void 0}function w6(a,l){return l?i2(a,l)!=null:!1}function N6(a,l){return!l||!a.getPreviousPageParam?!1:l_(a,l)!=null}var Ei,bl,Ti,Pn,xl,Bt,tr,Sl,En,i_,Ia,C3,C6=(C3=class extends s_{constructor(l){super();ie(this,En);ie(this,Ei);ie(this,bl);ie(this,Ti);ie(this,Pn);ie(this,xl);ie(this,Bt);ie(this,tr);ie(this,Sl);Z(this,Sl,!1),Z(this,tr,l.defaultOptions),this.setOptions(l.options),this.observers=[],Z(this,xl,l.client),Z(this,Pn,T(this,xl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,Z(this,bl,wp(this.options)),this.state=l.state??T(this,bl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,Ei)}get promise(){var l;return(l=T(this,Bt))==null?void 0:l.promise}setOptions(l){if(this.options={...T(this,tr),...l},l!=null&&l._type&&Z(this,Ei,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=wp(this.options);i.data!==void 0&&(this.setState(jp(i.data,i.dataUpdatedAt)),Z(this,bl,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Pn).remove(this)}setData(l,i){const r=a2(this.state.data,l,this.options);return we(this,En,Ia).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(l){we(this,En,Ia).call(this,{type:"setState",state:l})}cancel(l){var r,d;const i=(r=T(this,Bt))==null?void 0:r.promise;return(d=T(this,Bt))==null||d.cancel(l),i?i.then(en).catch(en):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,bl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Tn(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Hs(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!J3(this.state.dataUpdatedAt,l)}onFocus(){var i;const l=this.observers.find(r=>r.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(i=T(this,Bt))==null||i.continue()}onOnline(){var i;const l=this.observers.find(r=>r.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(i=T(this,Bt))==null||i.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),T(this,Pn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(T(this,Bt)&&(T(this,Sl)||we(this,En,i_).call(this)?T(this,Bt).cancel({revert:!0}):T(this,Bt).cancelRetry()),this.scheduleGc()),T(this,Pn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,En,Ia).call(this,{type:"invalidate"})}async fetch(l,i){var p,v,y,b,j,w,N,C,R,M,O;if(this.state.fetchStatus!=="idle"&&((p=T(this,Bt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(T(this,Bt))return T(this,Bt).continueRetry(),T(this,Bt).promise}if(l&&this.setOptions(l),!this.options.queryFn){const H=this.observers.find(I=>I.options.queryFn);H&&this.setOptions(H.options)}const r=new AbortController,d=H=>{Object.defineProperty(H,"signal",{enumerable:!0,get:()=>(Z(this,Sl,!0),r.signal)})},f=()=>{const H=t_(this.options,i),X=(()=>{const $={client:T(this,xl),queryKey:this.queryKey,meta:this.meta};return d($),$})();return Z(this,Sl,!1),this.options.persister?this.options.persister(H,X,this):H(X)},g=(()=>{const H={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:T(this,xl),state:this.state,fetchFn:f};return d(H),H})(),h=T(this,Ei)==="infinite"?j6(this.options.pages):this.options.behavior;h==null||h.onFetch(g,this),Z(this,Ti,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=g.fetchOptions)==null?void 0:v.meta))&&we(this,En,Ia).call(this,{type:"fetch",meta:(y=g.fetchOptions)==null?void 0:y.meta}),Z(this,Bt,a_({initialPromise:i==null?void 0:i.initialPromise,fn:g.fetchFn,onCancel:H=>{H instanceof l2&&H.revert&&this.setState({...T(this,Ti),fetchStatus:"idle"}),r.abort()},onFail:(H,I)=>{we(this,En,Ia).call(this,{type:"failed",failureCount:H,error:I})},onPause:()=>{we(this,En,Ia).call(this,{type:"pause"})},onContinue:()=>{we(this,En,Ia).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const H=await T(this,Bt).start();if(H===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(H),(j=(b=T(this,Pn).config).onSuccess)==null||j.call(b,H,this),(N=(w=T(this,Pn).config).onSettled)==null||N.call(w,H,this.state.error,this),H}catch(H){if(H instanceof l2){if(H.silent)return T(this,Bt).promise;if(H.revert){if(this.state.data===void 0)throw H;return this.state.data}}throw we(this,En,Ia).call(this,{type:"error",error:H}),(R=(C=T(this,Pn).config).onError)==null||R.call(C,H,this),(O=(M=T(this,Pn).config).onSettled)==null||O.call(M,this.state.data,H,this),H}finally{this.scheduleGc()}}},Ei=new WeakMap,bl=new WeakMap,Ti=new WeakMap,Pn=new WeakMap,xl=new WeakMap,Bt=new WeakMap,tr=new WeakMap,Sl=new WeakMap,En=new WeakSet,i_=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ia=function(l){const i=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...o_(r.data,this.options),fetchMeta:l.meta??null};case"success":const d={...r,...jp(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Z(this,Ti,l.manual?d:void 0),d;case"error":const f=l.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,...l.state}}};this.state=i(this.state),Lt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Pn).notify({query:this,type:"updated",action:l})})},C3);function o_(a,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:n_(l.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function jp(a,l){return{data:a,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wp(a){const l=typeof a.initialData=="function"?a.initialData():a.initialData,i=l!==void 0,r=i?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var fn,Me,nr,Jt,jl,ki,Ya,Os,ar,Ri,Ai,wl,Nl,Ms,Li,Fe,Po,o2,r2,c2,u2,d2,f2,h2,c_,E3,r_=(E3=class extends Vi{constructor(l,i){super();ie(this,Fe);ie(this,fn);ie(this,Me);ie(this,nr);ie(this,Jt);ie(this,jl);ie(this,ki);ie(this,Ya);ie(this,Os);ie(this,ar);ie(this,Ri);ie(this,Ai);ie(this,wl);ie(this,Nl);ie(this,Ms);ie(this,Li,new Set);this.options=i,Z(this,fn,l),Z(this,Os,null),Z(this,Ya,s2()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Me).addObserver(this),Np(T(this,Me),this.options)?we(this,Fe,Po).call(this):this.updateResult(),we(this,Fe,u2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m2(T(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m2(T(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,Fe,d2).call(this),we(this,Fe,f2).call(this),T(this,Me).removeObserver(this)}setOptions(l){const i=this.options,r=T(this,Me);if(this.options=T(this,fn).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Tn(this.options.enabled,T(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,Fe,h2).call(this),T(this,Me).setOptions(this.options),i._defaulted&&!Jc(this.options,i)&&T(this,fn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Me),observer:this});const d=this.hasListeners();d&&Cp(T(this,Me),r,this.options,i)&&we(this,Fe,Po).call(this),this.updateResult(),d&&(T(this,Me)!==r||Tn(this.options.enabled,T(this,Me))!==Tn(i.enabled,T(this,Me))||Hs(this.options.staleTime,T(this,Me))!==Hs(i.staleTime,T(this,Me)))&&we(this,Fe,o2).call(this);const f=we(this,Fe,r2).call(this);d&&(T(this,Me)!==r||Tn(this.options.enabled,T(this,Me))!==Tn(i.enabled,T(this,Me))||f!==T(this,Ms))&&we(this,Fe,c2).call(this,f)}getOptimisticResult(l){const i=T(this,fn).getQueryCache().build(T(this,fn),l),r=this.createResult(i,l);return T6(this,r)&&(Z(this,Jt,r),Z(this,ki,this.options),Z(this,jl,T(this,Me).state)),r}getCurrentResult(){return T(this,Jt)}trackResult(l,i){return new Proxy(l,{get:(r,d)=>(this.trackProp(d),i==null||i(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,Ya).status==="pending"&&T(this,Ya).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(l){T(this,Li).add(l)}getCurrentQuery(){return T(this,Me)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=T(this,fn).defaultQueryOptions(l),r=T(this,fn).getQueryCache().build(T(this,fn),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(l){return we(this,Fe,Po).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,Jt)))}createResult(l,i){var J;const r=T(this,Me),d=this.options,f=T(this,Jt),m=T(this,jl),g=T(this,ki),p=l!==r?l.state:T(this,nr),{state:v}=l;let y={...v},b=!1,j;if(i._optimisticResults){const ue=this.hasListeners(),re=!ue&&Np(l,i),ce=ue&&Cp(l,r,i,d);(re||ce)&&(y={...y,...o_(v.data,l.options)}),i._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:N,status:C}=y;j=y.data;let R=!1;if(i.placeholderData!==void 0&&j===void 0&&C==="pending"){let ue;f!=null&&f.isPlaceholderData&&i.placeholderData===(g==null?void 0:g.placeholderData)?(ue=f.data,R=!0):ue=typeof i.placeholderData=="function"?i.placeholderData((J=T(this,Ai))==null?void 0:J.state.data,T(this,Ai)):i.placeholderData,ue!==void 0&&(C="success",j=a2(f==null?void 0:f.data,ue,i),b=!0)}if(i.select&&j!==void 0&&!R)if(f&&j===(m==null?void 0:m.data)&&i.select===T(this,ar))j=T(this,Ri);else try{Z(this,ar,i.select),j=i.select(j),j=a2(f==null?void 0:f.data,j,i),Z(this,Ri,j),Z(this,Os,null)}catch(ue){Z(this,Os,ue)}T(this,Os)&&(w=T(this,Os),j=T(this,Ri),N=Date.now(),C="error");const M=y.fetchStatus==="fetching",O=C==="pending",H=C==="error",I=O&&M,X=j!==void 0,P={status:C,fetchStatus:y.fetchStatus,isPending:O,isSuccess:C==="success",isError:H,isInitialLoading:I,isLoading:I,data:j,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:N,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:M,isRefetching:M&&!O,isLoadingError:H&&!X,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:H&&X,isStale:H2(l,i),refetch:this.refetch,promise:T(this,Ya),isEnabled:Tn(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const ue=P.data!==void 0,re=P.status==="error"&&!ue,ce=ne=>{re?ne.reject(P.error):ue&&ne.resolve(P.data)},te=()=>{const ne=Z(this,Ya,P.promise=s2());ce(ne)},he=T(this,Ya);switch(he.status){case"pending":l.queryHash===r.queryHash&&ce(he);break;case"fulfilled":(re||P.data!==he.value)&&te();break;case"rejected":(!re||P.error!==he.reason)&&te();break}}return P}updateResult(){const l=T(this,Jt),i=this.createResult(T(this,Me),this.options);if(Z(this,jl,T(this,Me).state),Z(this,ki,this.options),T(this,jl).data!==void 0&&Z(this,Ai,T(this,Me)),Jc(i,l))return;Z(this,Jt,i);const r=()=>{if(!l)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!T(this,Li).size)return!0;const m=new Set(f??T(this,Li));return this.options.throwOnError&&m.add("error"),Object.keys(T(this,Jt)).some(g=>{const h=g;return T(this,Jt)[h]!==l[h]&&m.has(h)})};we(this,Fe,c_).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,Fe,u2).call(this)}},fn=new WeakMap,Me=new WeakMap,nr=new WeakMap,Jt=new WeakMap,jl=new WeakMap,ki=new WeakMap,Ya=new WeakMap,Os=new WeakMap,ar=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,wl=new WeakMap,Nl=new WeakMap,Ms=new WeakMap,Li=new WeakMap,Fe=new WeakSet,Po=function(l){we(this,Fe,h2).call(this);let i=T(this,Me).fetch(this.options,l);return l!=null&&l.throwOnError||(i=i.catch(en)),i},o2=function(){we(this,Fe,d2).call(this);const l=Hs(this.options.staleTime,T(this,Me));if(Zo.isServer()||T(this,Jt).isStale||!t2(l))return;const r=J3(T(this,Jt).dataUpdatedAt,l)+1;Z(this,wl,gl.setTimeout(()=>{T(this,Jt).isStale||this.updateResult()},r))},r2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Me)):this.options.refetchInterval)??!1},c2=function(l){we(this,Fe,f2).call(this),Z(this,Ms,l),!(Zo.isServer()||Tn(this.options.enabled,T(this,Me))===!1||!t2(T(this,Ms))||T(this,Ms)===0)&&Z(this,Nl,gl.setInterval(()=>{(this.options.refetchIntervalInBackground||D2.isFocused())&&we(this,Fe,Po).call(this)},T(this,Ms)))},u2=function(){we(this,Fe,o2).call(this),we(this,Fe,c2).call(this,we(this,Fe,r2).call(this))},d2=function(){T(this,wl)!==void 0&&(gl.clearTimeout(T(this,wl)),Z(this,wl,void 0))},f2=function(){T(this,Nl)!==void 0&&(gl.clearInterval(T(this,Nl)),Z(this,Nl,void 0))},h2=function(){const l=T(this,fn).getQueryCache().build(T(this,fn),this.options);if(l===T(this,Me))return;const i=T(this,Me);Z(this,Me,l),Z(this,nr,l.state),this.hasListeners()&&(i==null||i.removeObserver(this),l.addObserver(this))},c_=function(l){Lt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(T(this,Jt))}),T(this,fn).getQueryCache().notify({query:T(this,Me),type:"observerResultsUpdated"})})},E3);function E6(a,l){return Tn(l.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Tn(l.retryOnMount,a)===!1)}function Np(a,l){return E6(a,l)||a.state.data!==void 0&&m2(a,l,l.refetchOnMount)}function m2(a,l,i){if(Tn(l.enabled,a)!==!1&&Hs(l.staleTime,a)!=="static"){const r=typeof i=="function"?i(a):i;return r==="always"||r!==!1&&H2(a,l)}return!1}function Cp(a,l,i,r){return(a!==l||Tn(r.enabled,a)===!1)&&(!i.suspense||a.state.status!=="error")&&H2(a,i)}function H2(a,l){return Tn(l.enabled,a)!==!1&&a.isStaleByTime(Hs(l.staleTime,a))}function T6(a,l){return!Jc(a.getCurrentResult(),l)}var k6=class extends r_{constructor(a,l){super(a,l)}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,l){var w,N;const{state:i}=a,r=super.createResult(a,l),{isFetching:d,isRefetching:f,isError:m,isRefetchError:g}=r,h=(N=(w=i.fetchMeta)==null?void 0:w.fetchMore)==null?void 0:N.direction,p=m&&h==="forward",v=d&&h==="forward",y=m&&h==="backward",b=d&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:w6(l,i.data),hasPreviousPage:N6(l,i.data),isFetchNextPageError:p,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:b,isRefetchError:g&&!p&&!y,isRefetching:f&&!v&&!b}}},sr,_a,It,Cl,ga,ks,T3,R6=(T3=class extends s_{constructor(l){super();ie(this,ga);ie(this,sr);ie(this,_a);ie(this,It);ie(this,Cl);Z(this,sr,l.client),this.mutationId=l.mutationId,Z(this,It,l.mutationCache),Z(this,_a,[]),this.state=l.state||u_(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){T(this,_a).includes(l)||(T(this,_a).push(l),this.clearGcTimeout(),T(this,It).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){Z(this,_a,T(this,_a).filter(i=>i!==l)),this.scheduleGc(),T(this,It).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){T(this,_a).length||(this.state.status==="pending"?this.scheduleGc():T(this,It).remove(this))}continue(){var l;return((l=T(this,Cl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var m,g,h,p,v,y,b,j,w,N,C,R,M,O,H,I,X,$;const i=()=>{we(this,ga,ks).call(this,{type:"continue"})},r={client:T(this,sr),meta:this.options.meta,mutationKey:this.options.mutationKey};Z(this,Cl,a_({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,J)=>{we(this,ga,ks).call(this,{type:"failed",failureCount:P,error:J})},onPause:()=>{we(this,ga,ks).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,It).canRun(this)}));const d=this.state.status==="pending",f=!T(this,Cl).canStart();try{if(d)i();else{we(this,ga,ks).call(this,{type:"pending",variables:l,isPaused:f}),T(this,It).config.onMutate&&await T(this,It).config.onMutate(l,this,r);const J=await((g=(m=this.options).onMutate)==null?void 0:g.call(m,l,r));J!==this.state.context&&we(this,ga,ks).call(this,{type:"pending",context:J,variables:l,isPaused:f})}const P=await T(this,Cl).start();return await((p=(h=T(this,It).config).onSuccess)==null?void 0:p.call(h,P,l,this.state.context,this,r)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,P,l,this.state.context,r)),await((j=(b=T(this,It).config).onSettled)==null?void 0:j.call(b,P,null,this.state.variables,this.state.context,this,r)),await((N=(w=this.options).onSettled)==null?void 0:N.call(w,P,null,l,this.state.context,r)),we(this,ga,ks).call(this,{type:"success",data:P}),P}catch(P){try{await((R=(C=T(this,It).config).onError)==null?void 0:R.call(C,P,l,this.state.context,this,r))}catch(J){Promise.reject(J)}try{await((O=(M=this.options).onError)==null?void 0:O.call(M,P,l,this.state.context,r))}catch(J){Promise.reject(J)}try{await((I=(H=T(this,It).config).onSettled)==null?void 0:I.call(H,void 0,P,this.state.variables,this.state.context,this,r))}catch(J){Promise.reject(J)}try{await(($=(X=this.options).onSettled)==null?void 0:$.call(X,void 0,P,l,this.state.context,r))}catch(J){Promise.reject(J)}throw we(this,ga,ks).call(this,{type:"error",error:P}),P}finally{T(this,It).runNext(this)}}},sr=new WeakMap,_a=new WeakMap,It=new WeakMap,Cl=new WeakMap,ga=new WeakSet,ks=function(l){const i=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Lt.batch(()=>{T(this,_a).forEach(r=>{r.onMutationUpdate(l)}),T(this,It).notify({mutation:this,type:"updated",action:l})})},T3);function u_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xa,na,lr,k3,A6=(k3=class extends Vi{constructor(l={}){super();ie(this,Xa);ie(this,na);ie(this,lr);this.config=l,Z(this,Xa,new Set),Z(this,na,new Map),Z(this,lr,0)}build(l,i,r){const d=new R6({client:l,mutationCache:this,mutationId:++Ac(this,lr)._,options:l.defaultMutationOptions(i),state:r});return this.add(d),d}add(l){T(this,Xa).add(l);const i=Mc(l);if(typeof i=="string"){const r=T(this,na).get(i);r?r.push(l):T(this,na).set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(T(this,Xa).delete(l)){const i=Mc(l);if(typeof i=="string"){const r=T(this,na).get(i);if(r)if(r.length>1){const d=r.indexOf(l);d!==-1&&r.splice(d,1)}else r[0]===l&&T(this,na).delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Mc(l);if(typeof i=="string"){const r=T(this,na).get(i),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===l}else return!0}runNext(l){var r;const i=Mc(l);if(typeof i=="string"){const d=(r=T(this,na).get(i))==null?void 0:r.find(f=>f!==l&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Lt.batch(()=>{T(this,Xa).forEach(l=>{this.notify({type:"removed",mutation:l})}),T(this,Xa).clear(),T(this,na).clear()})}getAll(){return Array.from(T(this,Xa))}find(l){const i={exact:!0,...l};return this.getAll().find(r=>bp(i,r))}findAll(l={}){return this.getAll().filter(i=>bp(l,i))}notify(l){Lt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Lt.batch(()=>Promise.all(l.map(i=>i.continue().catch(en))))}},Xa=new WeakMap,na=new WeakMap,lr=new WeakMap,k3);function Mc(a){var l;return(l=a.options.scope)==null?void 0:l.id}var Ka,zs,hn,Za,Wa,Ic,p2,R3,L6=(R3=class extends Vi{constructor(i,r){super();ie(this,Wa);ie(this,Ka);ie(this,zs);ie(this,hn);ie(this,Za);Z(this,Ka,i),this.setOptions(r),this.bindMethods(),we(this,Wa,Ic).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var d;const r=this.options;this.options=T(this,Ka).defaultMutationOptions(i),Jc(this.options,r)||T(this,Ka).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,hn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Rl(r.mutationKey)!==Rl(this.options.mutationKey)?this.reset():((d=T(this,hn))==null?void 0:d.state.status)==="pending"&&T(this,hn).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=T(this,hn))==null||i.removeObserver(this)}onMutationUpdate(i){we(this,Wa,Ic).call(this),we(this,Wa,p2).call(this,i)}getCurrentResult(){return T(this,zs)}reset(){var i;(i=T(this,hn))==null||i.removeObserver(this),Z(this,hn,void 0),we(this,Wa,Ic).call(this),we(this,Wa,p2).call(this)}mutate(i,r){var d;return Z(this,Za,r),(d=T(this,hn))==null||d.removeObserver(this),Z(this,hn,T(this,Ka).getMutationCache().build(T(this,Ka),this.options)),T(this,hn).addObserver(this),T(this,hn).execute(i)}},Ka=new WeakMap,zs=new WeakMap,hn=new WeakMap,Za=new WeakMap,Wa=new WeakSet,Ic=function(){var r;const i=((r=T(this,hn))==null?void 0:r.state)??u_();Z(this,zs,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},p2=function(i){Lt.batch(()=>{var r,d,f,m,g,h,p,v;if(T(this,Za)&&this.hasListeners()){const y=T(this,zs).variables,b=T(this,zs).context,j={client:T(this,Ka),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(d=(r=T(this,Za)).onSuccess)==null||d.call(r,i.data,y,b,j)}catch(w){Promise.reject(w)}try{(m=(f=T(this,Za)).onSettled)==null||m.call(f,i.data,null,y,b,j)}catch(w){Promise.reject(w)}}else if((i==null?void 0:i.type)==="error"){try{(h=(g=T(this,Za)).onError)==null||h.call(g,i.error,y,b,j)}catch(w){Promise.reject(w)}try{(v=(p=T(this,Za)).onSettled)==null||v.call(p,void 0,i.error,y,b,j)}catch(w){Promise.reject(w)}}}this.listeners.forEach(y=>{y(T(this,zs))})})},R3),va,A3,O6=(A3=class extends Vi{constructor(l={}){super();ie(this,va);this.config=l,Z(this,va,new Map)}build(l,i,r){const d=i.queryKey,f=i.queryHash??B2(d,i);let m=this.get(f);return m||(m=new C6({client:l,queryKey:d,queryHash:f,options:l.defaultQueryOptions(i),state:r,defaultOptions:l.getQueryDefaults(d)}),this.add(m)),m}add(l){T(this,va).has(l.queryHash)||(T(this,va).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=T(this,va).get(l.queryHash);i&&(l.destroy(),i===l&&T(this,va).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Lt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return T(this,va).get(l)}getAll(){return[...T(this,va).values()]}find(l){const i={exact:!0,...l};return this.getAll().find(r=>yp(i,r))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(r=>yp(l,r)):i}notify(l){Lt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Lt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Lt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},va=new WeakMap,A3),pt,Ds,Bs,Oi,Mi,$s,zi,Di,L3,M6=(L3=class{constructor(a={}){ie(this,pt);ie(this,Ds);ie(this,Bs);ie(this,Oi);ie(this,Mi);ie(this,$s);ie(this,zi);ie(this,Di);Z(this,pt,a.queryCache||new O6),Z(this,Ds,a.mutationCache||new A6),Z(this,Bs,a.defaultOptions||{}),Z(this,Oi,new Map),Z(this,Mi,new Map),Z(this,$s,0)}mount(){Ac(this,$s)._++,T(this,$s)===1&&(Z(this,zi,D2.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,pt).onFocus())})),Z(this,Di,eu.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,pt).onOnline())})))}unmount(){var a,l;Ac(this,$s)._--,T(this,$s)===0&&((a=T(this,zi))==null||a.call(this),Z(this,zi,void 0),(l=T(this,Di))==null||l.call(this),Z(this,Di,void 0))}isFetching(a){return T(this,pt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return T(this,Ds).findAll({...a,status:"pending"}).length}getQueryData(a){var i;const l=this.defaultQueryOptions({queryKey:a});return(i=T(this,pt).get(l.queryHash))==null?void 0:i.state.data}ensureQueryData(a){const l=this.defaultQueryOptions(a),i=T(this,pt).build(this,l),r=i.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&i.isStaleByTime(Hs(l.staleTime,i))&&this.prefetchQuery(l),Promise.resolve(r))}getQueriesData(a){return T(this,pt).findAll(a).map(({queryKey:l,state:i})=>{const r=i.data;return[l,r]})}setQueryData(a,l,i){const r=this.defaultQueryOptions({queryKey:a}),d=T(this,pt).get(r.queryHash),f=d==null?void 0:d.state.data,m=h6(l,f);if(m!==void 0)return T(this,pt).build(this,r).setData(m,{...i,manual:!0})}setQueriesData(a,l,i){return Lt.batch(()=>T(this,pt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,l,i)]))}getQueryState(a){var i;const l=this.defaultQueryOptions({queryKey:a});return(i=T(this,pt).get(l.queryHash))==null?void 0:i.state}removeQueries(a){const l=T(this,pt);Lt.batch(()=>{l.findAll(a).forEach(i=>{l.remove(i)})})}resetQueries(a,l){const i=T(this,pt);return Lt.batch(()=>(i.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},l)))}cancelQueries(a,l={}){const i={revert:!0,...l},r=Lt.batch(()=>T(this,pt).findAll(a).map(d=>d.cancel(i)));return Promise.all(r).then(en).catch(en)}invalidateQueries(a,l={}){return Lt.batch(()=>(T(this,pt).findAll(a).forEach(i=>{i.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"},l)))}refetchQueries(a,l={}){const i={...l,cancelRefetch:l.cancelRefetch??!0},r=Lt.batch(()=>T(this,pt).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,i);return i.throwOnError||(f=f.catch(en)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(en)}fetchQuery(a){const l=this.defaultQueryOptions(a);l.retry===void 0&&(l.retry=!1);const i=T(this,pt).build(this,l);return i.isStaleByTime(Hs(l.staleTime,i))?i.fetch(l):Promise.resolve(i.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(en).catch(en)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(en).catch(en)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return eu.isOnline()?T(this,Ds).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,pt)}getMutationCache(){return T(this,Ds)}getDefaultOptions(){return T(this,Bs)}setDefaultOptions(a){Z(this,Bs,a)}setQueryDefaults(a,l){T(this,Oi).set(Rl(a),{queryKey:a,defaultOptions:l})}getQueryDefaults(a){const l=[...T(this,Oi).values()],i={};return l.forEach(r=>{Ko(a,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(a,l){T(this,Mi).set(Rl(a),{mutationKey:a,defaultOptions:l})}getMutationDefaults(a){const l=[...T(this,Mi).values()],i={};return l.forEach(r=>{Ko(a,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(a){if(a._defaulted)return a;const l={...T(this,Bs).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return l.queryHash||(l.queryHash=B2(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===$2&&(l.enabled=!1),l}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...T(this,Bs).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){T(this,pt).clear(),T(this,Ds).clear()}},pt=new WeakMap,Ds=new WeakMap,Bs=new WeakMap,Oi=new WeakMap,Mi=new WeakMap,$s=new WeakMap,zi=new WeakMap,Di=new WeakMap,L3),d_=S.createContext(void 0),Yt=a=>{const l=S.useContext(d_);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},z6=({client:a,children:l})=>(S.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),o.jsx(d_.Provider,{value:a,children:l})),f_=S.createContext(!1),D6=()=>S.useContext(f_);f_.Provider;function B6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var $6=S.createContext(B6()),U6=()=>S.useContext($6),H6=(a,l,i)=>{const r=i!=null&&i.state.error&&typeof a.throwOnError=="function"?U2(a.throwOnError,[i.state.error,i]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(l.isReset()||(a.retryOnMount=!1))},q6=a=>{S.useEffect(()=>{a.clearReset()},[a])},F6=({result:a,errorResetBoundary:l,throwOnError:i,query:r,suspense:d})=>a.isError&&!l.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||U2(i,[a.error,r])),G6=a=>{if(a.suspense){const i=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>i(r(...d)):i(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},V6=(a,l)=>a.isLoading&&a.isFetching&&!l,Q6=(a,l)=>(a==null?void 0:a.suspense)&&l.isPending,Ep=(a,l,i)=>l.fetchOptimistic(a).catch(()=>{i.clearReset()});function h_(a,l,i){var b,j,w,N;const r=D6(),d=U6(),f=Yt(),m=f.defaultQueryOptions(a);(j=(b=f.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||j.call(b,m);const g=f.getQueryCache().get(m.queryHash);m._optimisticResults=r?"isRestoring":"optimistic",G6(m),H6(m,d,g),q6(d);const h=!f.getQueryCache().get(m.queryHash),[p]=S.useState(()=>new l(f,m)),v=p.getOptimisticResult(m),y=!r&&a.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(C=>{const R=y?p.subscribe(Lt.batchCalls(C)):en;return p.updateResult(),R},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),S.useEffect(()=>{p.setOptions(m)},[m,p]),Q6(m,v))throw Ep(m,p,d);if(F6({result:v,errorResetBoundary:d,throwOnError:m.throwOnError,query:g,suspense:m.suspense}))throw v.error;if((N=(w=f.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||N.call(w,m,v),m.experimental_prefetchInRender&&!Zo.isServer()&&V6(v,r)){const C=h?Ep(m,p,d):g==null?void 0:g.promise;C==null||C.catch(en).finally(()=>{p.updateResult()})}return m.notifyOnChangeProps?v:p.trackResult(v)}function Et(a,l){return h_(a,r_)}function _t(a,l){const i=Yt(),[r]=S.useState(()=>new L6(i,a));S.useEffect(()=>{r.setOptions(a)},[r,a]);const d=S.useSyncExternalStore(S.useCallback(m=>r.subscribe(Lt.batchCalls(m)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=S.useCallback((m,g)=>{r.mutate(m,g).catch(en)},[r]);if(d.error&&U2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function P6(a,l){return h_(a,k6)}const m_="https://app.auth.elcsa.ru/v1";let Io=null,_l=null;function q2(){Io=null,_l=null}function tn(){return Io?Promise.resolve(Io):_l||(_l=fetch(`${m_}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(Io=a.token,_l=null,Io)).catch(a=>{throw _l=null,a}),_l)}const I6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:q2,getCsrfToken:tn},Symbol.toStringTag,{value:"Module"})),Y6="modulepreload",X6=function(a){return"/"+a},Tp={},K6=function(l,i,r){let d=Promise.resolve();if(i&&i.length>0){let m=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]"),h=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=m(i.map(p=>{if(p=X6(p),p in Tp)return;Tp[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":Y6,v||(b.as="script"),b.crossOrigin="",b.href=p,h&&b.setAttribute("nonce",h),document.head.appendChild(b),v)return new Promise((j,w)=>{b.addEventListener("load",j),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(m){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=m,window.dispatchEvent(g),!g.defaultPrevented)throw m}return d.then(m=>{for(const g of m||[])g.status==="rejected"&&f(g.reason);return l().catch(f)})};let $d=null;const Ct={get:()=>$d,set:a=>{$d=a},clear:()=>{$d=null}},Z6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function ia(){const{getCsrfToken:a,clearCsrfCache:l}=await K6(async()=>{const{getCsrfToken:f,clearCsrfCache:m}=await Promise.resolve().then(()=>I6);return{getCsrfToken:f,clearCsrfCache:m}},[]);l();const i=await a(),r=await fetch(Z6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!r.ok)throw new Error("Unauthorized");const d=await r.json();return d.access_token&&Ct.set(d.access_token),d.access_token??d.result??!0}const W6="https://app.payment.elcsa.ru";async function rr(a,l,i){const r=await tn(),d=await fetch(`${W6}${a}`,{...l,credentials:"include",headers:{"X-CSRF-Token":r,...l.headers}});if(d.status===401&&i)try{return await ia(),rr(a,l,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function J6(){return rr("/payment/config",{},!0)}function e5(a){return rr(`/payment/quote?usdt_amount=${a}`,{},!0)}function t5(a){return rr(`/payment/quote/rub?total_rub=${a}`,{},!0)}const _2=20;function n5(a,l=_2){return rr(`/payment/payments?offset=${a}&limit=${l}`,{},!0)}function a5(){return Et({queryKey:["payment","config"],queryFn:J6,staleTime:6e4})}function s5(a){return Et({queryKey:["payment","quote",a],queryFn:()=>e5(a),enabled:a>0,staleTime:3e4,retry:!1})}function p_(a){return Et({queryKey:["payment","quote","rub",a],queryFn:()=>t5(a),enabled:a>0,staleTime:3e4,retry:!1})}function l5(){return P6({queryKey:["payment","operations"],queryFn:({pageParam:a})=>n5(a),initialPageParam:0,getNextPageParam:(a,l)=>{if(!(a.operations.length<_2))return l.length*_2},staleTime:3e4})}function ya(a,l){const[i,r]=S.useState(a);return S.useEffect(()=>{const d=setTimeout(()=>r(a),l);return()=>clearTimeout(d)},[a,l]),i}const __=80,i5=21,Yc=5e3,kp="Сумма слишком большая и превышает 600 000 ₽",Rp=a=>a.replace(/[^0-9.]/g,"");function o5({rateFallback:a=0}={}){const[l,i]=S.useState("usdt_to_rub"),[r,d]=S.useState("1000"),[f,m]=S.useState(String(Yc)),{data:g}=a5(),h=Number(g==null?void 0:g.usdt_exchange_rate)||a,p=Number(g==null?void 0:g.gas_fee)||i5,v=l==="usdt_to_rub",y=Number.parseFloat(r)||0,b=ya(y,400),{data:j,isError:w}=s5(v?b:0),N=Number.parseFloat(f)||0,C=ya(N,400),{data:R,isError:M}=p_(v?0:C),O=!v&&N>0&&N<Yc,H=(j==null?void 0:j.total_price)??"",I=Number(H)||0,X=(R==null?void 0:R.usdt_amount)??"",$=Number(X)||0,P=v?Number(j==null?void 0:j.service_fee)||0:Number(R==null?void 0:R.service_fee)||0,J=v?I:N,ue=v?y>0?I/y:0:$>0?N/$:0;function re(){i(he=>he==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const ce=v?{value:r,currency:"USDT",onChange:he=>d(Rp(he)),error:w?kp:void 0}:{value:f,currency:"RUB",onChange:he=>m(Rp(he)),error:O?`Минимальная сумма: ${Yc.toLocaleString("ru-RU")}`:M?kp:void 0};return{isUsdtToRub:v,gasPriceRub:p,configUsdtRate:h,convert:ce,pay:v?{value:H,currency:"RUB"}:{value:X,currency:"USDT"},onSwap:re,commission:{amount:J,progress:Kx(J),commission:P,effectiveRate:ue},numUsdt:y,usdtFromRubNum:$,rubTotal:H,rubTotalNum:I,numRubInput:N,usdtFromRub:X,rubBelowMin:O}}const le={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",PROFILE_DETAILS:"/profile/details",PROFILE_SECURITY:"/profile/security",PROFILE_MNEMONIC:"/profile/mnemonic",PROFILE_TRANSACTIONS:"/profile/transactions",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"},r5="_section_tz8mb_1",c5="_wrap_tz8mb_6",u5="_header_tz8mb_17",d5="_subtitle_tz8mb_26",f5="_pills_tz8mb_33",h5="_pill_tz8mb_33",m5="_pillValue_tz8mb_47",p5="_body_tz8mb_57",_5="_tabs_tz8mb_63",g5="_tab_tz8mb_63",v5="_payBtn_tz8mb_95",Cn={section:r5,wrap:c5,header:u5,subtitle:d5,pills:f5,pill:h5,pillValue:m5,body:p5,tabs:_5,tab:g5,payBtn:v5};function y5(){const{gasPriceRub:a,configUsdtRate:l,convert:i,pay:r,onSwap:d,commission:f}=o5({rateFallback:__});return o.jsx("section",{className:Cn.section,id:"converter",children:o.jsxs("div",{className:Cn.wrap,children:[o.jsxs("div",{className:Cn.header,children:[o.jsxs("div",{children:[o.jsx(W3,{children:"Конвертация"}),o.jsx("div",{className:Cn.subtitle,children:"Данные обновляются в реальном времени"})]}),o.jsxs("div",{className:Cn.pills,children:[o.jsxs("div",{className:Cn.pill,children:["Цена газа в RUB ",o.jsxs("span",{className:Cn.pillValue,children:[a.toFixed(2)," RUB"]})]}),o.jsxs("div",{className:Cn.pill,children:["USDT/RUB ",o.jsxs("span",{className:Cn.pillValue,children:[l.toFixed(2)," ₽"]})]})]})]}),o.jsxs("div",{className:Cn.body,children:[o.jsxs("div",{children:[o.jsx("div",{className:Cn.tabs,children:o.jsx("div",{className:Cn.tab,"data-active":!0,children:"КУПИТЬ"})}),o.jsx(pp,{compact:!0,...i}),o.jsx(Db,{compact:!0,onClick:d}),o.jsx(pp,{compact:!0,...r})]}),o.jsx(o6,{...f})]}),o.jsx(kn,{to:le.CONVERTER,className:Cn.payBtn,children:"Перейти к оплате"})]})})}const b5="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",x5="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",S5="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",j5="_footer_1qm30_1",w5="_top_1qm30_11",N5="_col_1qm30_18",C5="_heading_1qm30_35",E5="_companyName_1qm30_44",T5="_phone_1qm30_51",k5="_email_1qm30_58",R5="_socialIcons_1qm30_62",A5="_socialLink_1qm30_67",L5="_divider_1qm30_94",O5="_bottom_1qm30_99",Pt={footer:j5,top:w5,col:N5,heading:C5,companyName:E5,phone:T5,email:k5,socialIcons:R5,socialLink:A5,divider:L5,bottom:O5},M5=[{href:"https://t.me/+UU4vqX4ENMJhMjBi",icon:x5,label:"Telegram"},{href:"#",icon:S5,label:"WhatsApp"},{href:"#",icon:b5,label:"Instagram"}];function Fs(){return o.jsxs("footer",{className:Pt.footer,children:[o.jsxs("div",{className:Pt.top,children:[o.jsxs("div",{className:Pt.col,children:[o.jsx("p",{className:Pt.companyName,children:"ООО «ЭКСА»"}),o.jsx("p",{children:"ИНН 9810001062"}),o.jsx("p",{children:"ОГРН 1257800060990"})]}),o.jsxs("div",{className:Pt.col,children:[o.jsx("h4",{className:Pt.heading,children:"О компании"}),o.jsx(kn,{to:le.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),o.jsx(kn,{to:le.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),o.jsx(kn,{to:le.POLITIKA_COOKIE,children:"Политика cookie"}),o.jsx(kn,{to:le.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),o.jsx(kn,{to:le.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),o.jsxs("div",{className:Pt.col,children:[o.jsx("p",{className:Pt.phone,children:"+7 (812) 123-33-23"}),o.jsx("h4",{className:Pt.heading,children:"Адрес"}),o.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),o.jsx("a",{href:"mailto:support@elcsa.ru",className:Pt.email,children:"support@elcsa.ru"})]}),o.jsxs("div",{className:Pt.col,children:[o.jsx("h4",{className:Pt.heading,children:"Мы в соцсетях"}),o.jsx("div",{className:Pt.socialIcons,children:M5.map(({href:a,icon:l,label:i})=>o.jsx("a",{href:a,className:Pt.socialLink,"aria-label":i,children:o.jsx("img",{src:l,alt:i})},i))})]})]}),o.jsx("div",{className:Pt.divider}),o.jsxs("div",{className:Pt.bottom,children:[o.jsx("p",{children:"© 2026. Все права защищены."}),o.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const ba="/assets/logo-full-white-DEb7oTyu.png",z5="_nav_5011x_1",D5="_logo_5011x_16",B5="_right_5011x_22",$5="_link_5011x_28",U5="_btn_5011x_47",qo={nav:z5,logo:D5,right:B5,link:$5,btn:U5};function Ll(){return o.jsxs("nav",{className:qo.nav,children:[o.jsx("a",{className:qo.logo,href:"/",children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsxs("div",{className:qo.right,children:[o.jsx("a",{className:qo.link,href:"#about",children:"О нас"}),o.jsx(kn,{className:qo.btn,to:le.WALLET,children:"Личный кабинет"})]})]})}const H5="_flow_1oxsf_1",q5="_card_1oxsf_7",F5="_cardRub_1oxsf_17",G5="_cardEksa_1oxsf_27",V5="_cardUsdt_1oxsf_37",Q5="_eksaLogo_1oxsf_47",P5="_ghost_1oxsf_54",I5="_ghostBtc_1oxsf_69",Y5="_ghostEth_1oxsf_74",X5="_logoCircle_1oxsf_79",K5="_logoRub_1oxsf_90",Z5="_logoUsdt_1oxsf_95",W5="_badge_1oxsf_100",J5="_badgeRub_1oxsf_113",e8="_badgeUsdt_1oxsf_117",t8="_status_1oxsf_121",n8="_statusDot_1oxsf_132",a8="_path_1oxsf_139",ut={flow:H5,card:q5,cardRub:F5,cardEksa:G5,cardUsdt:V5,eksaLogo:Q5,ghost:P5,ghostBtc:I5,ghostEth:Y5,logoCircle:X5,logoRub:K5,logoUsdt:Z5,badge:W5,badgeRub:J5,badgeUsdt:e8,status:t8,statusDot:n8,path:a8};function s8(){return o.jsxs("div",{className:ut.flow,children:[o.jsx("div",{className:`${ut.ghost} ${ut.ghostBtc}`,children:o.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),o.jsx("div",{className:`${ut.ghost} ${ut.ghostEth}`,children:o.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),o.jsxs("div",{className:`${ut.card} ${ut.cardRub}`,children:[o.jsx("div",{className:`${ut.logoCircle} ${ut.logoRub}`,children:"₽"}),o.jsx("div",{className:`${ut.badge} ${ut.badgeRub}`,children:"10 000 ₽"})]}),o.jsx("div",{className:`${ut.card} ${ut.cardEksa}`,children:o.jsx("img",{src:ba,alt:"ЭКСА",className:ut.eksaLogo})}),o.jsxs("div",{className:`${ut.card} ${ut.cardUsdt}`,children:[o.jsx("div",{className:`${ut.logoCircle} ${ut.logoUsdt}`,children:"₮"}),o.jsx("div",{className:`${ut.badge} ${ut.badgeUsdt}`,children:"≈ 125.3 USDT"}),o.jsxs("div",{className:ut.status,children:[o.jsx("span",{className:ut.statusDot})," ✓ Зачислено"]})]}),o.jsxs("svg",{className:ut.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[o.jsx("defs",{children:o.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[o.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),o.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),o.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"}),o.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"}),o.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),o.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),o.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),o.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),o.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),o.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}const l8="_card_17ihg_51",i8="_statusPill_17ihg_84",o8="_statusDot_17ihg_99",r8="_flowRow_17ihg_107",c8="_curBlock_17ihg_114",u8="_curIcon_17ihg_122",d8="_rub_17ihg_133",f8="_usdt_17ihg_141",h8="_flowLine_17ihg_150",m8="_curAmount_17ihg_154",p8="_curLabel_17ihg_163",_8="_curCheck_17ihg_171",g8="_bridge_17ihg_182",v8="_bridgeLine_17ihg_191",y8="_bridgeLabel_17ihg_198",b8="_divider_17ihg_206",x8="_details_17ihg_212",S8="_detailRow_17ihg_220",j8="_detailLabel_17ihg_229",w8="_detailValue_17ihg_235",N8="_green_17ihg_242",Qe={card:l8,statusPill:i8,statusDot:o8,flowRow:r8,curBlock:c8,curIcon:u8,rub:d8,usdt:f8,flowLine:h8,curAmount:m8,curLabel:p8,curCheck:_8,bridge:g8,bridgeLine:v8,bridgeLabel:y8,divider:b8,details:x8,detailRow:S8,detailLabel:j8,detailValue:w8,green:N8};function C8(){return o.jsxs("div",{className:Qe.card,children:[o.jsxs("div",{className:Qe.statusPill,children:[o.jsx("span",{className:Qe.statusDot}),"Операция завершена"]}),o.jsxs("div",{className:Qe.flowRow,children:[o.jsxs("div",{className:Qe.curBlock,children:[o.jsx("div",{className:`${Qe.curIcon} ${Qe.rub}`,children:"₽"}),o.jsx("div",{className:Qe.curAmount,children:"10 000 ₽"}),o.jsx("div",{className:Qe.curLabel,children:"Отправлено"})]}),o.jsxs("div",{className:Qe.bridge,children:[o.jsx("div",{className:Qe.bridgeLine,children:o.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[o.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Qe.flowLine}),o.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),o.jsx("div",{className:Qe.bridgeLabel,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("div",{className:Qe.bridgeLine,children:o.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[o.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Qe.flowLine}),o.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),o.jsxs("div",{className:Qe.curBlock,children:[o.jsx("div",{className:`${Qe.curIcon} ${Qe.usdt}`,children:"₮"}),o.jsx("div",{className:Qe.curAmount,children:"125.3 USDT"}),o.jsxs("div",{className:Qe.curCheck,children:[o.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:o.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),o.jsx("div",{className:Qe.divider}),o.jsxs("div",{className:Qe.details,children:[o.jsxs("div",{className:Qe.detailRow,children:[o.jsx("span",{className:Qe.detailLabel,children:"Курс"}),o.jsxs("span",{className:Qe.detailValue,children:[__.toFixed(2)," ₽ / USDT"]})]}),o.jsxs("div",{className:Qe.detailRow,children:[o.jsx("span",{className:Qe.detailLabel,children:"Комиссия"}),o.jsx("span",{className:`${Qe.detailValue} ${Qe.green}`,children:"0%"})]})]})]})}const E8="_hero_mnobr_1",T8="_content_mnobr_33",k8="_left_mnobr_45",R8="_desktop_mnobr_52",A8="_mobile_mnobr_56",L8="_right_mnobr_60",O8="_title_mnobr_67",M8="_line2_mnobr_74",z8="_reflection_mnobr_85",D8="_cta_mnobr_96",pa={hero:E8,content:T8,left:k8,desktop:R8,mobile:A8,right:L8,title:O8,line2:M8,reflection:z8,cta:D8};function B8(){return o.jsx("section",{className:pa.hero,children:o.jsxs("div",{className:pa.content,children:[o.jsxs("div",{className:pa.left,children:[o.jsx("div",{className:pa.desktop,children:o.jsx(s8,{})}),o.jsx("div",{className:pa.mobile,children:o.jsx(C8,{})})]}),o.jsxs("div",{className:pa.right,children:[o.jsxs("h1",{className:pa.title,children:["Ваш мост",o.jsx("span",{className:pa.reflection,"aria-hidden":"true",children:"Ваш мост"}),o.jsxs("span",{className:pa.line2,children:["в мир",o.jsx("br",{}),"цифровых",o.jsx("br",{}),"активов"]})]}),o.jsx("div",{children:o.jsx("a",{href:"#converter",className:pa.cta,children:"Попробовать калькулятор"})})]})]})})}const $8=[{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 сек"}],U8="_section_10lhb_1",H8="_wrap_10lhb_6",q8="_title_10lhb_11",F8="_tableWrap_10lhb_18",G8="_table_10lhb_18",V8="_name_10lhb_52",Q8="_icon_10lhb_58",P8="_icon_btc_10lhb_71",I8="_icon_eth_10lhb_75",Y8="_icon_trx_10lhb_79",X8="_icon_sol_10lhb_83",K8="_icon_bnb_10lhb_87",Z8="_label_10lhb_91",W8="_ticker_10lhb_96",J8="_speedBar_10lhb_102",e7="_speedFill_10lhb_110",t7="_fee_10lhb_115",n7="_confirm_10lhb_121",a7="_footnote_10lhb_126",Zt={section:U8,wrap:H8,title:q8,tableWrap:F8,table:G8,name:V8,icon:Q8,icon_btc:P8,icon_eth:I8,icon_trx:Y8,icon_sol:X8,icon_bnb:K8,label:Z8,ticker:W8,speedBar:J8,speedFill:e7,fee:t7,confirm:n7,footnote:a7};function s7(){return o.jsx("section",{className:Zt.section,children:o.jsxs("div",{className:Zt.wrap,children:[o.jsx("h2",{className:Zt.title,children:"Поддерживаемые сети"}),o.jsx("div",{className:Zt.tableWrap,children:o.jsxs("table",{className:Zt.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Сеть"}),o.jsx("th",{children:"Скорость"}),o.jsx("th",{children:"Комиссия"}),o.jsx("th",{children:"Подтверждение"})]})}),o.jsx("tbody",{children:$8.map(a=>o.jsxs("tr",{children:[o.jsx("td",{children:o.jsxs("div",{className:Zt.name,children:[o.jsx("div",{className:`${Zt.icon} ${Zt[`icon_${a.cls}`]}`,children:a.icon}),o.jsx("span",{className:Zt.label,children:a.name}),o.jsx("span",{className:Zt.ticker,children:a.ticker})]})}),o.jsx("td",{children:o.jsx("div",{className:Zt.speedBar,children:o.jsx("div",{className:Zt.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),o.jsx("td",{children:o.jsx("span",{className:Zt.fee,children:a.fee})}),o.jsx("td",{children:o.jsx("span",{className:Zt.confirm,children:a.confirm})})]},a.ticker))})]})}),o.jsx("div",{className:Zt.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function l7(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsxs("main",{children:[o.jsx(B8,{}),o.jsx(Xx,{}),o.jsx(y5,{}),o.jsx(s7,{})]}),o.jsx(Fs,{})]})}async function g2(a,l,i){const r=await tn(),d=Ct.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...l.headers},m=await fetch(`${m_}${a}`,{...l,credentials:"include",headers:f});if(m.status===401&&i)try{return await ia(),g2(a,l,!1)}catch{throw Ct.clear(),new Error("Unauthorized")}const g=await m.json();if(!m.ok)throw g;return g}const cr={get:a=>g2(a,{},!0),post:(a,l)=>g2(a,{method:"POST",body:JSON.stringify(l)},!0)};function i7(a){return cr.post("/auth/registration/start",a)}function o7(a){return cr.post("/auth/registration/complete",a)}function r7(a){return cr.post("/auth/login/start",a)}function c7(a){return cr.post("/auth/login/complete",a)}async function u7(){const a=await tn();return cr.post("/auth/logout",{_csrf:a})}const ur="https://app.users.elcsa.ru";async function F2(){const a=await tn(),l=Ct.get();return{"X-CSRF-Token":a,...l?{Authorization:`Bearer ${l}`}:{}}}async function d7(){const a=await F2(),l=await fetch(`${ur}/me/`,{credentials:"include",headers:a}),i=await l.json();if(!l.ok)throw i;return i}async function f7(a){const l=await F2(),i=await fetch(`${ur}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...l},body:JSON.stringify(a)}),r=await i.json();if(!i.ok)throw r;return r}async function h7(a){const l=await tn(),i=await fetch(`${ur}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}async function m7(a){const l=await F2(),i=await fetch(`${ur}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...l},body:JSON.stringify({phone:a})});if(!i.ok)throw await i.json().catch(()=>({}))}async function p7(a){const l=await tn(),i=await fetch(`${ur}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}const _7=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function g_(a){return a.account_type!=="individual"}function v_(a){return[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(_7).join(" ")}function g7(a){var l;return g_(a)?((l=a.legal_entity)==null?void 0:l.name)??"":v_(a)}function pn(a){return Et({queryKey:["me"],queryFn:d7,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function v7(){const a=Yt();return _t({mutationFn:f7,onSuccess:l=>{a.setQueryData(["me"],l)}})}function y7(){const a=Yt();return _t({mutationFn:m7,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const ru=["auth"];function b7(){return Et({queryKey:ru,queryFn:ia,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function y_(){const{data:a,isLoading:l,isError:i}=b7();return{isAuthenticated:!!a&&!i,isLoading:l}}const x7="https://app.b2b.elcsa.ru";async function dr(a,l,i){const r=await tn(),d=await fetch(`${x7}${a}`,{...l,credentials:"include",headers:{"X-CSRF-Token":r,...l.headers}});if(d.status===401&&i)try{return await ia(),dr(a,l,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function S7(a){return dr("/purchase-requests",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}function j7(a=50,l=0){return dr(`/purchase-requests?limit=${a}&offset=${l}`,{},!0)}function w7(){return dr("/v1/organizations/wallets",{},!0)}function N7(){return dr("/v1/organizations/wallets/balances",{},!0)}function C7(){const a=Yt();return _t({mutationFn:S7,onSuccess:()=>{a.invalidateQueries({queryKey:["b2b","purchase-requests"]})}})}function b_(){return Et({queryKey:["b2b","purchase-requests"],queryFn:()=>j7(),staleTime:3e4})}const v2=5e5,Wo=[{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}],Us=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function y2(a){const l=a%10,i=a%100;return l===1&&i!==11?`${a} день`:l>=2&&l<=4&&(i<10||i>=20)?`${a} дня`:`${a} дней`}function E7(a){var l;return((l=Wo.find(i=>i.days===a))==null?void 0:l.rate)??Wo[0].rate}function T7(a,l){const i=E7(l),r=a*i;return{rate:i,commission:r,total:a+r}}function k7(a){const{name:l,contact:i,days:r,amount:d,commission:f,total:m}=a;return[l&&`Имя: ${l}`,i&&`Контакт: ${i}`,`Срок ожидания: ${y2(r)}`,`Сумма: ${Us(d)}`,`Комиссия: ≈${Us(f)}`,`Итого: ≈${Us(m)}`].filter(Boolean).join("; ")}function R7(a){var l,i,r,d;return{name:((i=(l=a==null?void 0:a.match(/Имя:\s*([^;]+)/))==null?void 0:l[1])==null?void 0:i.trim())??"",contact:((d=(r=a==null?void 0:a.match(/Контакт:\s*([^;]+)/))==null?void 0:r[1])==null?void 0:d.trim())??""}}function A7(a){return a.reduce((l,i)=>!l||(i.created_at??"")>(l.created_at??"")?i:l,null)}const x_="https://app.cryptowallet.elcsa.ru",G2=["ETH","BSC","BTC","TRX","SOL"];async function Ol(a,l=!0){const i=await tn(),r=Ct.get(),d=await fetch(`${x_}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ia(),Ol(a,!1)}catch{throw Ct.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function oa(a,l,i=!0,r={}){const d=await tn(),f=Ct.get(),m=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(l)});if(m.status===401&&i)try{return await ia(),oa(a,l,!1,r)}catch{throw Ct.clear(),new Error("Unauthorized")}const g=await m.json();if(!m.ok)throw g;return g}async function L7(){return(await Ol("/api/wallets")).data}async function O7(a){return(await Ol(`/api/wallets/${a}/balance`)).data}async function M7(a,l){return oa(`/api/wallets/${a}/send`,l)}async function z7(){return(await Ol("/api/wallets/portfolio")).data}const D7={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function S_(a,l){const i=a==null?void 0:a.toUpperCase();return G2.includes(i)?i:(l?D7[l.toUpperCase()]:void 0)??null}function tu(a){const l=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(l)?l:0}function Ap(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:tu(a.usd_price),usdValue:tu(a.usd_value)}}function B7(a,l){const i={};for(const[r,d]of Object.entries(a.tokens??{}))i[r]=Ap(d);return{chain:l,address:a.address,native:Ap(a.native),tokens:i,totalUsd:tu(a.total_usd),stale:!1,lastUpdated:0}}async function j_(){const a=await N7(),l={};for(const i of a.items??[]){const r=S_(i.chain,i.native_symbol);r&&(l[r]=B7(i,r))}return{totalUsd:tu(a.total_usd),hasErrors:!!a.has_errors,perChain:l}}const $7={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function U7(a){const i=(await j_()).perChain[a];return i?{chain:a,address:i.address,native:i.native,tokens:i.tokens}:{chain:a,address:"",native:$7,tokens:{}}}async function H7(){const a=await w7(),l=[];for(const i of a??[]){const r=S_(i.chain);r&&l.push({chain:r,address:i.address,derivationPath:i.derivation_path})}return l}async function q7(){return(await Ol("/api/tokens")).data}async function F7(){var l;const a=await Ol("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((l=a.data)==null?void 0:l.tokens)??a.tokens??{}}async function G7(a){var r;const l=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(),i=await Ol(`/api/jumper/quote-best?${l}`);return((r=i.data)==null?void 0:r.body)??i.body??i}async function V7(a){var i;const l=await oa("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((i=l.data)==null?void 0:i.data)??l}async function Q7(a){return oa("/api/relay/quote",a)}async function P7(a){return oa("/api/relay/execute/swap",a)}async function I7(a,l){const i=`relay-${a.toLowerCase()}-${Date.now()}`;return oa(`/api/wallets/${a}/sign-raw-evm-tx`,l,!0,{"Idempotency-Key":i})}async function Y7(a){return oa("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function w_(a){return(await oa("/api/wallets/TRX/swap/quote",a)).data}async function X7(a){return oa("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function K7(){await oa("/api/wallets/create",{})}async function Z7(){return(await oa("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function V2(){const{data:a}=pn();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Ui(a){const{isLegal:l,ready:i}=V2();return Et({queryKey:["wallet","balance",a,l?"org":"self"],queryFn:l?()=>U7(a):()=>O7(a),enabled:i,staleTime:3e4})}function W7(){return _t({mutationFn:({chain:a,...l})=>M7(a,l)})}function cu(){const{isLegal:a,ready:l}=V2();return Et({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?H7:L7,enabled:l,staleTime:600*1e3})}function uu(){const{isLegal:a,ready:l}=V2();return Et({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?j_:z7,enabled:l,staleTime:3e4})}function J7(){return Et({queryKey:["wallet","tokens"],queryFn:q7,staleTime:600*1e3})}function e9(){return Et({queryKey:["wallet","jumper","tokens"],queryFn:F7,staleTime:600*1e3})}function t9(){return _t({mutationFn:a=>G7(a)})}function n9(){return _t({mutationFn:a=>V7(a)})}function a9(){return _t({mutationFn:K7})}function N_(a=!0){return Et({queryKey:["wallet","mnemonic"],queryFn:Z7,staleTime:1/0,retry:!1,enabled:a})}function C_(a){return Et({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:()=>Q7(a),enabled:!!a,staleTime:1e4})}function s9(){return _t({mutationFn:a=>P7(a)})}function l9(){return _t({mutationFn:({chain:a,txData:l})=>a==="SOL"?Y7(l):I7(a,l)})}function i9(a){return Et({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>w_(a),enabled:!!a,staleTime:1e4})}function o9(){return _t({mutationFn:w_})}function r9(){return _t({mutationFn:a=>X7(a)})}const c9="_card_2hfzd_1",u9="_label_2hfzd_18",d9="_amountRow_2hfzd_27",f9="_amount_2hfzd_27",h9="_toggle_2hfzd_40",m9="_actions_2hfzd_69",p9="_btn_2hfzd_74",Va={card:c9,label:u9,amountRow:d9,amount:f9,toggle:h9,actions:m9,btn:p9},_9="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",g9="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 v9(){var h;const{data:a,isLoading:l}=uu(),[i,r]=S.useState("usd"),d=p_(i==="rub"?Yc:0),f=Number((h=d.data)==null?void 0:h.usdt_exchange_rate)||0,m=l||!a||a.totalUsd==null?null:a.totalUsd;let g;return i==="usd"?g=m==null?"$—":`$${m.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:g=m==null||f<=0?"— ₽":`${(m*f).toLocaleString("ru-RU",{minimumFractionDigits:2,maximumFractionDigits:2})} ₽`,o.jsxs("div",{className:Va.card,children:[o.jsxs("div",{className:Va.left,children:[o.jsx("div",{className:Va.label,children:"Общий баланс"}),o.jsxs("div",{className:Va.amountRow,children:[o.jsx("div",{className:Va.amount,children:g}),o.jsx("button",{type:"button",className:Va.toggle,onClick:()=>r(p=>p==="usd"?"rub":"usd"),"aria-label":"Переключить валюту",children:i==="usd"?"₽":"$"})]})]}),o.jsxs("div",{className:Va.actions,children:[o.jsxs(kn,{to:le.CONVERTER,className:Va.btn,type:"button",children:[o.jsx("img",{src:g9,alt:"swap"}),"Пополнить кошелёк"]}),o.jsxs(kn,{to:le.SWAP,className:Va.btn,type:"button",children:[o.jsx("img",{src:_9,alt:"topup"}),"Своп / Бридж"]})]})]})}const y9="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",b9="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",x9="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",S9="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",j9="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",w9="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",N9="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",C9="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",E9="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",T9="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",k9="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",R9="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",A9="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",L9="/assets/popcat-DOGy5LFs.svg",O9="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",M9="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",z9="/assets/uni-C5oaqT41.svg",D9="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",B9="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",$9="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",U9="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",rt={BTC:y9,ETH:b9,SOL:x9,TRX:S9,BNB:j9,ARB:w9,BONK:N9,BUSD:C9,DAI:E9,DOGE:T9,JUP:k9,LINK:R9,ORCA:A9,POPCAT:L9,PYTH:O9,RAY:M9,UNI:z9,USDC:D9,USDT:B9,W:$9,WIF:U9};function E_(a){return rt[a.toUpperCase()]}function Je(a,l=8){const i=typeof a=="number"?a.toString():a,r=i.indexOf(".");return r===-1?i:i.slice(0,r+1+l)}const H9=[{ticker:"BTC",name:"Bitcoin",logo:rt.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:rt.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:rt.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:rt.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:rt.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],q9={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},F9={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},T_="#2A2D3A";function k_(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function R_(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function A_(a){return H9.find(l=>l.ticker===a)}function L_(a,l){const i=q9[a],r=A_(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:F9[a],logo:E_(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??T_,price:R_(l.usdPrice),change:0,bal:Je(l.formatted),usd:k_(l.usdValue),usdValue:l.usdValue,fav:!1}}function O_(a,l,i){const r=A_(l);return{id:`${a}-${l}`,chain:a,ticker:l,name:(r==null?void 0:r.name)??l,logo:E_(l)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??T_,price:R_(i.usdPrice),change:0,bal:Je(i.formatted),usd:k_(i.usdValue),usdValue:i.usdValue,fav:!1}}function Lp(a){return parseFloat(a.formatted)>0}function G9(a){const{data:l,isLoading:i}=Ui(a);if(!l)return{rows:[],isLoading:i};const r=L_(a,l.native),d=Object.entries(l.tokens??{}).map(([f,m])=>O_(a,f,m));return{rows:[r,...d],isLoading:i}}function V9(){var f;const{data:a,isLoading:l}=uu(),{data:i}=pn(),r=(i==null?void 0:i.account_type)==="legal_entity";if(!a)return{rows:[],isLoading:l};const d=[];for(const m of G2){const g=(f=a.perChain)==null?void 0:f[m];if(!g)continue;const h=[];g.native&&(r||Lp(g.native))&&h.push(L_(m,g.native));for(const[p,v]of Object.entries(g.tokens??{}))!r&&!Lp(v)||h.push(O_(m,p,v));h.sort((p,v)=>(v.usdValue??0)-(p.usdValue??0)),d.push(...h)}return{rows:d,isLoading:l}}const Q9={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"]},P9={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}},I9={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},Y9="_overlay_1hejd_1",X9="_dialog_1hejd_14",K9="_dialogIn_1hejd_1",Z9="_header_1hejd_37",W9="_title_1hejd_44",J9="_close_1hejd_50",eS="_selectsRow_1hejd_72",tS="_selectGroup_1hejd_79",nS="_selectLabel_1hejd_83",aS="_selectTrigger_1hejd_93",sS="_selectTriggerOpen_1hejd_112",lS="_selectValue_1hejd_117",iS="_chevron_1hejd_125",oS="_chevronOpen_1hejd_131",rS="_tokenDot_1hejd_137",cS="_speedDot_1hejd_158",uS="_speedDot_slow_1hejd_165",dS="_speedDot_normal_1hejd_170",fS="_speedDot_fast_1hejd_175",hS="_dropdown_1hejd_182",mS="_dropdownItem_1hejd_195",pS="_dropdownItemActive_1hejd_215",_S="_dropdownTicker_1hejd_220",gS="_dropdownName_1hejd_225",vS="_field_1hejd_233",yS="_fieldLabel_1hejd_237",bS="_input_1hejd_247",xS="_amountWrap_1hejd_283",SS="_amountInput_1hejd_287",jS="_amountTicker_1hejd_291",wS="_maxHint_1hejd_304",NS="_maxBtn_1hejd_314",CS="_errorMsg_1hejd_333",ES="_submitBtn_1hejd_346",fe={overlay:Y9,dialog:X9,dialogIn:K9,header:Z9,title:W9,close:J9,selectsRow:eS,selectGroup:tS,selectLabel:nS,selectTrigger:aS,selectTriggerOpen:sS,selectValue:lS,chevron:iS,chevronOpen:oS,tokenDot:rS,speedDot:cS,speedDot_slow:uS,speedDot_normal:dS,speedDot_fast:fS,dropdown:hS,dropdownItem:mS,dropdownItemActive:pS,dropdownTicker:_S,dropdownName:gS,field:vS,fieldLabel:yS,input:bS,amountWrap:xS,amountInput:SS,amountTicker:jS,maxHint:wS,maxBtn:NS,errorMsg:CS,submitBtn:ES},Op=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function TS(a){var l;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const i=a;if(typeof i.message=="string")return i.message;if(typeof i.error=="string")return i.error;if(Array.isArray(i.detail)&&((l=i.detail[0])!=null&&l.msg))return String(i.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function kS({open:a,onClose:l,network:i,tokens:r=[],initialToken:d=""}){var ce;const f=P9[i],m=Q9[i],[g,h]=S.useState(d),[p,v]=S.useState("normal"),[y,b]=S.useState(""),[j,w]=S.useState(""),[N,C]=S.useState(null),R=W7(),M=((ce=Op.find(te=>te.value===p))==null?void 0:ce.label)??"Нормально",O=g===""?f.nativeSymbol:g,H=r.find(te=>te.ticker===(g===""?f.nativeSymbol:g));if(S.useEffect(()=>{h(d)},[d]),S.useEffect(()=>{h("")},[i]),S.useEffect(()=>{R.isSuccess&&l()},[R.isSuccess,l]),S.useEffect(()=>{if(!a){b(""),w(""),C(null),R.reset();return}const te=he=>{he.key==="Escape"&&l()};return document.addEventListener("keydown",te),()=>document.removeEventListener("keydown",te)},[a,l]),!a)return null;const I=f.hasToken,X=f.hasFeeTier,$=I||X,P=I&&X?2:1;function J(){N?C(null):l()}function ue(te,he){const[ne,q=""]=te.split("."),Y=q.slice(0,he).padEnd(he,"0");return(BigInt(ne||"0")*10n**BigInt(he)+BigInt(Y||"0")).toString()}function re(){const he=g===""?ue(j,f.nativeDecimals):j;R.mutate({chain:i,to:y,amount:he,...g?{token:g}:{},...f.hasFeeTier?{feeTier:p}:{}})}return o.jsx("div",{className:fe.overlay,onClick:J,children:o.jsxs("div",{className:fe.dialog,onClick:te=>te.stopPropagation(),children:[o.jsxs("div",{className:fe.header,children:[o.jsxs("div",{className:fe.headerLeft,children:[o.jsx("span",{className:fe.chainDot,style:{background:f.color}}),o.jsxs("span",{className:fe.title,children:["Отправить · ",f.label]})]}),o.jsx("button",{className:fe.close,onClick:l,type:"button","aria-label":"Закрыть",children:o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:o.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),$&&o.jsxs("div",{className:fe.selectsRow,style:{gridTemplateColumns:`repeat(${P}, 1fr)`},children:[I&&o.jsxs("div",{className:fe.selectGroup,children:[o.jsx("label",{className:fe.selectLabel,children:"Токен"}),o.jsxs("button",{type:"button",className:`${fe.selectTrigger} ${N==="token"?fe.selectTriggerOpen:""}`,onClick:()=>C(te=>te==="token"?null:"token"),children:[o.jsx("span",{className:fe.tokenDot,style:{background:f.color},children:O[0]}),o.jsx("span",{className:fe.selectValue,children:O}),o.jsx("svg",{className:`${fe.chevron} ${N==="token"?fe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),N==="token"&&o.jsxs("div",{className:fe.dropdown,children:[o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${g===""?fe.dropdownItemActive:""}`,onClick:()=>{h(""),C(null)},children:[o.jsx("span",{className:fe.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),o.jsx("span",{className:fe.dropdownTicker,children:f.nativeSymbol}),o.jsx("span",{className:fe.dropdownName,children:"Нативный"})]}),m.map(te=>o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${g===te?fe.dropdownItemActive:""}`,onClick:()=>{h(te),C(null)},children:[o.jsx("span",{className:fe.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:te[0]}),o.jsx("span",{className:fe.dropdownTicker,children:te})]},te))]})]}),X&&o.jsxs("div",{className:fe.selectGroup,children:[o.jsx("label",{className:fe.selectLabel,children:"Скорость"}),o.jsxs("button",{type:"button",className:`${fe.selectTrigger} ${N==="speed"?fe.selectTriggerOpen:""}`,onClick:()=>C(te=>te==="speed"?null:"speed"),children:[o.jsx("span",{className:`${fe.speedDot} ${fe[`speedDot_${p}`]}`}),o.jsx("span",{className:fe.selectValue,children:M}),o.jsx("svg",{className:`${fe.chevron} ${N==="speed"?fe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:o.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),N==="speed"&&o.jsx("div",{className:fe.dropdown,children:Op.map(te=>o.jsxs("button",{type:"button",className:`${fe.dropdownItem} ${te.value===p?fe.dropdownItemActive:""}`,onClick:()=>{v(te.value),C(null)},children:[o.jsx("span",{className:`${fe.speedDot} ${fe[`speedDot_${te.value}`]}`}),o.jsx("span",{children:te.label})]},te.value))})]})]}),o.jsxs("div",{className:fe.field,children:[o.jsx("label",{className:fe.fieldLabel,children:"Адрес кошелька"}),o.jsx("input",{className:fe.input,type:"text",placeholder:f.addressPlaceholder,value:y,onChange:te=>b(te.target.value),autoComplete:"off",spellCheck:!1})]}),o.jsxs("div",{className:fe.field,children:[o.jsx("label",{className:fe.fieldLabel,children:"Количество"}),o.jsxs("div",{className:fe.amountWrap,children:[o.jsx("input",{className:`${fe.input} ${fe.amountInput}`,type:"number",placeholder:"0.00",value:j,onChange:te=>w(te.target.value),min:"0",step:"any"}),o.jsx("span",{className:fe.amountTicker,children:O})]}),H&&o.jsxs("div",{className:fe.maxHint,children:["Макс:"," ",o.jsxs("button",{type:"button",className:fe.maxBtn,onClick:()=>w(H.bal),children:[H.bal," ",O]})]})]}),R.isError&&o.jsx("div",{className:fe.errorMsg,children:TS(R.error)}),o.jsx("button",{className:fe.submitBtn,type:"button",disabled:R.isPending,onClick:re,children:R.isPending?"Отправка…":"Отправить"})]})})}var RS=Object.defineProperty,nu=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,z_=Object.prototype.propertyIsEnumerable,Mp=(a,l,i)=>l in a?RS(a,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[l]=i,b2=(a,l)=>{for(var i in l||(l={}))M_.call(l,i)&&Mp(a,i,l[i]);if(nu)for(var i of nu(l))z_.call(l,i)&&Mp(a,i,l[i]);return a},x2=(a,l)=>{var i={};for(var r in a)M_.call(a,r)&&l.indexOf(r)<0&&(i[r]=a[r]);if(a!=null&&nu)for(var r of nu(a))l.indexOf(r)<0&&z_.call(a,r)&&(i[r]=a[r]);return i};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var Al;(a=>{const l=class Te{constructor(h,p,v,y){if(this.version=h,this.errorCorrectionLevel=p,this.modules=[],this.isFunction=[],h<Te.MIN_VERSION||h>Te.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=h*4+17;let b=[];for(let w=0;w<this.size;w++)b.push(!1);for(let w=0;w<this.size;w++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const j=this.addEccAndInterleave(v);if(this.drawCodewords(j),y==-1){let w=1e9;for(let N=0;N<8;N++){this.applyMask(N),this.drawFormatBits(N);const C=this.getPenaltyScore();C<w&&(y=N,w=C),this.applyMask(N)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(h,p){const v=a.QrSegment.makeSegments(h);return Te.encodeSegments(v,p)}static encodeBinary(h,p){const v=a.QrSegment.makeBytes(h);return Te.encodeSegments([v],p)}static encodeSegments(h,p,v=1,y=40,b=-1,j=!0){if(!(Te.MIN_VERSION<=v&&v<=y&&y<=Te.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let w,N;for(w=v;;w++){const O=Te.getNumDataCodewords(w,p)*8,H=m.getTotalBits(h,w);if(H<=O){N=H;break}if(w>=y)throw new RangeError("Data too long")}for(const O of[Te.Ecc.MEDIUM,Te.Ecc.QUARTILE,Te.Ecc.HIGH])j&&N<=Te.getNumDataCodewords(w,O)*8&&(p=O);let C=[];for(const O of h){i(O.mode.modeBits,4,C),i(O.numChars,O.mode.numCharCountBits(w),C);for(const H of O.getData())C.push(H)}d(C.length==N);const R=Te.getNumDataCodewords(w,p)*8;d(C.length<=R),i(0,Math.min(4,R-C.length),C),i(0,(8-C.length%8)%8,C),d(C.length%8==0);for(let O=236;C.length<R;O^=253)i(O,8,C);let M=[];for(;M.length*8<C.length;)M.push(0);return C.forEach((O,H)=>M[H>>>3]|=O<<7-(H&7)),new Te(w,p,M,b)}getModule(h,p){return 0<=h&&h<this.size&&0<=p&&p<this.size&&this.modules[p][h]}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 h=this.getAlignmentPatternPositions(),p=h.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(h[v],h[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const p=this.errorCorrectionLevel.formatBits<<3|h;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 h=this.version;for(let v=0;v<12;v++)h=h<<1^(h>>>11)*7973;const p=this.version<<12|h;d(p>>>18==0);for(let v=0;v<18;v++){const y=r(p,v),b=this.size-11+v%3,j=Math.floor(v/3);this.setFunctionModule(b,j,y),this.setFunctionModule(j,b,y)}}drawFinderPattern(h,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)),j=h+y,w=p+v;0<=j&&j<this.size&&0<=w&&w<this.size&&this.setFunctionModule(j,w,b!=2&&b!=4)}}drawAlignmentPattern(h,p){for(let v=-2;v<=2;v++)for(let y=-2;y<=2;y++)this.setFunctionModule(h+y,p+v,Math.max(Math.abs(y),Math.abs(v))!=1)}setFunctionModule(h,p,v){this.modules[p][h]=v,this.isFunction[p][h]=!0}addEccAndInterleave(h){const p=this.version,v=this.errorCorrectionLevel;if(h.length!=Te.getNumDataCodewords(p,v))throw new RangeError("Invalid argument");const y=Te.NUM_ERROR_CORRECTION_BLOCKS[v.ordinal][p],b=Te.ECC_CODEWORDS_PER_BLOCK[v.ordinal][p],j=Math.floor(Te.getNumRawDataModules(p)/8),w=y-j%y,N=Math.floor(j/y);let C=[];const R=Te.reedSolomonComputeDivisor(b);for(let O=0,H=0;O<y;O++){let I=h.slice(H,H+N-b+(O<w?0:1));H+=I.length;const X=Te.reedSolomonComputeRemainder(I,R);O<w&&I.push(0),C.push(I.concat(X))}let M=[];for(let O=0;O<C[0].length;O++)C.forEach((H,I)=>{(O!=N-b||I>=w)&&M.push(H[O])});return d(M.length==j),M}drawCodewords(h){if(h.length!=Math.floor(Te.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 j=v-b,N=(v+1&2)==0?this.size-1-y:y;!this.isFunction[N][j]&&p<h.length*8&&(this.modules[N][j]=r(h[p>>>3],7-(p&7)),p++)}}d(p==h.length*8)}applyMask(h){if(h<0||h>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(h){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 h=0;for(let b=0;b<this.size;b++){let j=!1,w=0,N=[0,0,0,0,0,0,0];for(let C=0;C<this.size;C++)this.modules[b][C]==j?(w++,w==5?h+=Te.PENALTY_N1:w>5&&h++):(this.finderPenaltyAddHistory(w,N),j||(h+=this.finderPenaltyCountPatterns(N)*Te.PENALTY_N3),j=this.modules[b][C],w=1);h+=this.finderPenaltyTerminateAndCount(j,w,N)*Te.PENALTY_N3}for(let b=0;b<this.size;b++){let j=!1,w=0,N=[0,0,0,0,0,0,0];for(let C=0;C<this.size;C++)this.modules[C][b]==j?(w++,w==5?h+=Te.PENALTY_N1:w>5&&h++):(this.finderPenaltyAddHistory(w,N),j||(h+=this.finderPenaltyCountPatterns(N)*Te.PENALTY_N3),j=this.modules[C][b],w=1);h+=this.finderPenaltyTerminateAndCount(j,w,N)*Te.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let j=0;j<this.size-1;j++){const w=this.modules[b][j];w==this.modules[b][j+1]&&w==this.modules[b+1][j]&&w==this.modules[b+1][j+1]&&(h+=Te.PENALTY_N2)}let p=0;for(const b of this.modules)p=b.reduce((j,w)=>j+(w?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),h+=y*Te.PENALTY_N4,d(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,p=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let v=[6];for(let y=this.size-7;v.length<h;y-=p)v.splice(1,0,y);return v}}static getNumRawDataModules(h){if(h<Te.MIN_VERSION||h>Te.MAX_VERSION)throw new RangeError("Version number out of range");let p=(16*h+128)*h+64;if(h>=2){const v=Math.floor(h/7)+2;p-=(25*v-10)*v-55,h>=7&&(p-=36)}return d(208<=p&&p<=29648),p}static getNumDataCodewords(h,p){return Math.floor(Te.getNumRawDataModules(h)/8)-Te.ECC_CODEWORDS_PER_BLOCK[p.ordinal][h]*Te.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let p=[];for(let y=0;y<h-1;y++)p.push(0);p.push(1);let v=1;for(let y=0;y<h;y++){for(let b=0;b<p.length;b++)p[b]=Te.reedSolomonMultiply(p[b],v),b+1<p.length&&(p[b]^=p[b+1]);v=Te.reedSolomonMultiply(v,2)}return p}static reedSolomonComputeRemainder(h,p){let v=p.map(y=>0);for(const y of h){const b=y^v.shift();v.push(0),p.forEach((j,w)=>v[w]^=Te.reedSolomonMultiply(j,b))}return v}static reedSolomonMultiply(h,p){if(h>>>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)*h;return d(v>>>8==0),v}finderPenaltyCountPatterns(h){const p=h[1];d(p<=this.size*3);const v=p>0&&h[2]==p&&h[3]==p*3&&h[4]==p&&h[5]==p;return(v&&h[0]>=p*4&&h[6]>=p?1:0)+(v&&h[6]>=p*4&&h[0]>=p?1:0)}finderPenaltyTerminateAndCount(h,p,v){return h&&(this.finderPenaltyAddHistory(p,v),p=0),p+=this.size,this.finderPenaltyAddHistory(p,v),this.finderPenaltyCountPatterns(v)}finderPenaltyAddHistory(h,p){p[0]==0&&(h+=this.size),p.pop(),p.unshift(h)}};l.MIN_VERSION=1,l.MAX_VERSION=40,l.PENALTY_N1=3,l.PENALTY_N2=3,l.PENALTY_N3=40,l.PENALTY_N4=10,l.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]],l.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=l;function i(g,h,p){if(h<0||h>31||g>>>h)throw new RangeError("Value out of range");for(let v=h-1;v>=0;v--)p.push(g>>>v&1)}function r(g,h){return(g>>>h&1)!=0}function d(g){if(!g)throw new Error("Assertion error")}const f=class mt{constructor(h,p,v){if(this.mode=h,this.numChars=p,this.bitData=v,p<0)throw new RangeError("Invalid argument");this.bitData=v.slice()}static makeBytes(h){let p=[];for(const v of h)i(v,8,p);return new mt(mt.Mode.BYTE,h.length,p)}static makeNumeric(h){if(!mt.isNumeric(h))throw new RangeError("String contains non-numeric characters");let p=[];for(let v=0;v<h.length;){const y=Math.min(h.length-v,3);i(parseInt(h.substring(v,v+y),10),y*3+1,p),v+=y}return new mt(mt.Mode.NUMERIC,h.length,p)}static makeAlphanumeric(h){if(!mt.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let p=[],v;for(v=0;v+2<=h.length;v+=2){let y=mt.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v))*45;y+=mt.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v+1)),i(y,11,p)}return v<h.length&&i(mt.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v)),6,p),new mt(mt.Mode.ALPHANUMERIC,h.length,p)}static makeSegments(h){return h==""?[]:mt.isNumeric(h)?[mt.makeNumeric(h)]:mt.isAlphanumeric(h)?[mt.makeAlphanumeric(h)]:[mt.makeBytes(mt.toUtf8ByteArray(h))]}static makeEci(h){let p=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)i(h,8,p);else if(h<16384)i(2,2,p),i(h,14,p);else if(h<1e6)i(6,3,p),i(h,21,p);else throw new RangeError("ECI assignment value out of range");return new mt(mt.Mode.ECI,0,p)}static isNumeric(h){return mt.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return mt.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,p){let v=0;for(const y of h){const b=y.mode.numCharCountBits(p);if(y.numChars>=1<<b)return 1/0;v+=4+b+y.bitData.length}return v}static toUtf8ByteArray(h){h=encodeURI(h);let p=[];for(let v=0;v<h.length;v++)h.charAt(v)!="%"?p.push(h.charCodeAt(v)):(p.push(parseInt(h.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 m=f;a.QrSegment=f})(Al||(Al={}));(a=>{(l=>{const i=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};i.LOW=new i(0,1),i.MEDIUM=new i(1,0),i.QUARTILE=new i(2,3),i.HIGH=new i(3,2),l.Ecc=i})(a.QrCode||(a.QrCode={}))})(Al||(Al={}));(a=>{(l=>{const i=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};i.NUMERIC=new i(1,[10,12,14]),i.ALPHANUMERIC=new i(2,[9,11,13]),i.BYTE=new i(4,[8,16,16]),i.KANJI=new i(8,[8,10,12]),i.ECI=new i(7,[0,0,0]),l.Mode=i})(a.QrSegment||(a.QrSegment={}))})(Al||(Al={}));var Si=Al;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var AS={L:Si.QrCode.Ecc.LOW,M:Si.QrCode.Ecc.MEDIUM,Q:Si.QrCode.Ecc.QUARTILE,H:Si.QrCode.Ecc.HIGH},D_=128,B_="L",$_="#FFFFFF",U_="#000000",H_=!1,q_=1,LS=4,OS=0,MS=.1;function F_(a,l=0){const i=[];return a.forEach(function(r,d){let f=null;r.forEach(function(m,g){if(!m&&f!==null){i.push(`M${f+l} ${d+l}h${g-f}v1H${f+l}z`),f=null;return}if(g===r.length-1){if(!m)return;f===null?i.push(`M${g+l},${d+l} h1v1H${g+l}z`):i.push(`M${f+l},${d+l} h${g+1-f}v1H${f+l}z`);return}m&&f===null&&(f=g)})}),i.join("")}function G_(a,l){return a.slice().map((i,r)=>r<l.y||r>=l.y+l.h?i:i.map((d,f)=>f<l.x||f>=l.x+l.w?d:!1))}function zS(a,l,i,r){if(r==null)return null;const d=a.length+i*2,f=Math.floor(l*MS),m=d/l,g=(r.width||f)*m,h=(r.height||f)*m,p=r.x==null?a.length/2-g/2:r.x*m,v=r.y==null?a.length/2-h/2:r.y*m,y=r.opacity==null?1:r.opacity;let b=null;if(r.excavate){let w=Math.floor(p),N=Math.floor(v),C=Math.ceil(g+p-w),R=Math.ceil(h+v-N);b={x:w,y:N,w:C,h:R}}const j=r.crossOrigin;return{x:p,y:v,h,w:g,excavation:b,opacity:y,crossOrigin:j}}function DS(a,l){return l!=null?Math.max(Math.floor(l),0):a?LS:OS}function V_({value:a,level:l,minVersion:i,includeMargin:r,marginSize:d,imageSettings:f,size:m,boostLevel:g}){let h=At.useMemo(()=>{const w=(Array.isArray(a)?a:[a]).reduce((N,C)=>(N.push(...Si.QrSegment.makeSegments(C)),N),[]);return Si.QrCode.encodeSegments(w,AS[l],i,void 0,void 0,g)},[a,l,i,g]);const{cells:p,margin:v,numCells:y,calculatedImageSettings:b}=At.useMemo(()=>{let j=h.getModules();const w=DS(r,d),N=j.length+w*2,C=zS(j,m,w,f);return{cells:j,margin:w,numCells:N,calculatedImageSettings:C}},[h,m,f,r,d]);return{qrcode:h,margin:v,cells:p,numCells:y,calculatedImageSettings:b}}var BS=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),$S=At.forwardRef(function(l,i){const r=l,{value:d,size:f=D_,level:m=B_,bgColor:g=$_,fgColor:h=U_,includeMargin:p=H_,minVersion:v=q_,boostLevel:y,marginSize:b,imageSettings:j}=r,N=x2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:C}=N,R=x2(N,["style"]),M=j==null?void 0:j.src,O=At.useRef(null),H=At.useRef(null),I=At.useCallback(he=>{O.current=he,typeof i=="function"?i(he):i&&(i.current=he)},[i]),[X,$]=At.useState(!1),{margin:P,cells:J,numCells:ue,calculatedImageSettings:re}=V_({value:d,level:m,minVersion:v,boostLevel:y,includeMargin:p,marginSize:b,imageSettings:j,size:f});At.useEffect(()=>{if(O.current!=null){const he=O.current,ne=he.getContext("2d");if(!ne)return;let q=J;const Y=H.current,ae=re!=null&&Y!==null&&Y.complete&&Y.naturalHeight!==0&&Y.naturalWidth!==0;ae&&re.excavation!=null&&(q=G_(J,re.excavation));const de=window.devicePixelRatio||1;he.height=he.width=f*de;const _e=f/ue*de;ne.scale(_e,_e),ne.fillStyle=g,ne.fillRect(0,0,ue,ue),ne.fillStyle=h,BS?ne.fill(new Path2D(F_(q,P))):J.forEach(function(k,V){k.forEach(function(K,W){K&&ne.fillRect(W+P,V+P,1,1)})}),re&&(ne.globalAlpha=re.opacity),ae&&ne.drawImage(Y,re.x+P,re.y+P,re.w,re.h)}}),At.useEffect(()=>{$(!1)},[M]);const ce=b2({height:f,width:f},C);let te=null;return M!=null&&(te=At.createElement("img",{src:M,key:M,style:{display:"none"},onLoad:()=>{$(!0)},ref:H,crossOrigin:re==null?void 0:re.crossOrigin})),At.createElement(At.Fragment,null,At.createElement("canvas",b2({style:ce,height:f,width:f,ref:I,role:"img"},R)),te)});$S.displayName="QRCodeCanvas";var Q_=At.forwardRef(function(l,i){const r=l,{value:d,size:f=D_,level:m=B_,bgColor:g=$_,fgColor:h=U_,includeMargin:p=H_,minVersion:v=q_,boostLevel:y,title:b,marginSize:j,imageSettings:w}=r,N=x2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:C,cells:R,numCells:M,calculatedImageSettings:O}=V_({value:d,level:m,minVersion:v,boostLevel:y,includeMargin:p,marginSize:j,imageSettings:w,size:f});let H=R,I=null;w!=null&&O!=null&&(O.excavation!=null&&(H=G_(R,O.excavation)),I=At.createElement("image",{href:w.src,height:O.h,width:O.w,x:O.x+C,y:O.y+C,preserveAspectRatio:"none",opacity:O.opacity,crossOrigin:O.crossOrigin}));const X=F_(H,C);return At.createElement("svg",b2({height:f,width:f,viewBox:`0 0 ${M} ${M}`,ref:i,role:"img"},N),!!b&&At.createElement("title",null,b),At.createElement("path",{fill:g,d:`M0,0 h${M}v${M}H0z`,shapeRendering:"crispEdges"}),At.createElement("path",{fill:h,d:X,shapeRendering:"crispEdges"}),I)});Q_.displayName="QRCodeSVG";const US="_overlay_1nlll_6",HS="_dialog_1nlll_18",qS="_header_1nlll_27",FS="_title_1nlll_34",GS="_closeBtn_1nlll_40",VS="_body_1nlll_55",QS="_qrWrap_1nlll_62",PS="_label_1nlll_71",IS="_fieldRow_1nlll_77",YS="_addressInput_1nlll_82",XS="_copyBtn_1nlll_101",KS="_copyBtnDone_1nlll_127",ZS="_skeleton_1nlll_132",WS="_error_1nlll_145",un={overlay:US,dialog:HS,header:qS,title:FS,closeBtn:GS,body:VS,qrWrap:QS,label:PS,fieldRow:IS,addressInput:YS,copyBtn:XS,copyBtnDone:KS,skeleton:ZS,error:WS},JS={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function ej({open:a,onClose:l,chain:i}){const{data:r,isLoading:d,isError:f}=cu(),[m,g]=S.useState(!1);if(S.useEffect(()=>{if(!a)return;function b(j){j.key==="Escape"&&l()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,l]),S.useEffect(()=>{a||g(!1)},[a]),!a)return null;const h=r==null?void 0:r.find(b=>b.chain===i),p=(h==null?void 0:h.address)??"";function v(){p&&navigator.clipboard.writeText(p).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})}function y(b){b.target===b.currentTarget&&l()}return o.jsx("div",{className:un.overlay,onMouseDown:y,children:o.jsxs("div",{className:un.dialog,children:[o.jsxs("div",{className:un.header,children:[o.jsxs("span",{className:un.title,children:["Получить ",JS[i]]}),o.jsx("button",{className:un.closeBtn,type:"button",onClick:l,"aria-label":"Закрыть",children:"✕"})]}),o.jsxs("div",{className:un.body,children:[d&&o.jsx("div",{className:un.skeleton}),f&&o.jsx("p",{className:un.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&o.jsxs(o.Fragment,{children:[o.jsxs("label",{className:un.label,children:["Ваш ",i,"-адрес"]}),o.jsxs("div",{className:un.fieldRow,children:[o.jsx("input",{className:un.addressInput,type:"text",readOnly:!0,value:p,onFocus:b=>b.target.select()}),o.jsx("button",{className:`${un.copyBtn} ${m?un.copyBtnDone:""}`,type:"button",onClick:v,disabled:!p,children:m?"Скопировано!":"Копировать"})]}),p&&o.jsx("div",{className:un.qrWrap,children:o.jsx(Q_,{value:p,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const tj="_wrap_uur6k_1",nj="_loading_uur6k_9",aj="_table_uur6k_14",sj="_thStar_uur6k_44",lj="_groupHeader_uur6k_49",ij="_groupHeaderInner_uur6k_58",oj="_groupLabel_uur6k_66",rj="_groupIcon_uur6k_77",cj="_groupTotal_uur6k_83",uj="_mobileGroupHeader_uur6k_90",dj="_right_uur6k_99",fj="_center_uur6k_103",hj="_btnGroup_uur6k_108",mj="_star_uur6k_114",pj="_starOn_uur6k_129",_j="_tokId_uur6k_133",gj="_tokLogo_uur6k_139",vj="_price_uur6k_174",yj="_balCol_uur6k_201",bj="_sendBtn_uur6k_214",xj="_receiveBtn_uur6k_237",Sj="_noFont_uur6k_260",jj="_mobileList_uur6k_265",wj="_card_uur6k_269",Nj="_cardInfo_uur6k_281",Cj="_cardTop_uur6k_286",Ej="_cardTicker_uur6k_293",Tj="_cardName_uur6k_299",kj="_cardBalCrypto_uur6k_305",Rj="_cardBot_uur6k_312",Aj="_cardPrice_uur6k_318",Lj="_cardBalUsd_uur6k_330",Oj="_mobileActions_uur6k_351",ve={wrap:tj,loading:nj,table:aj,thStar:sj,groupHeader:lj,groupHeaderInner:ij,groupLabel:oj,groupIcon:rj,groupTotal:cj,mobileGroupHeader:uj,right:dj,center:fj,btnGroup:hj,star:mj,starOn:pj,tokId:_j,tokLogo:gj,price:vj,balCol:yj,sendBtn:bj,receiveBtn:xj,noFont:Sj,mobileList:jj,card:wj,cardInfo:Nj,cardTop:Cj,cardTicker:Ej,cardName:Tj,cardBalCrypto:kj,cardBot:Rj,cardPrice:Aj,cardBalUsd:Lj,mobileActions:Oj},zp={BTC:{label:"Bitcoin",icon:rt.BTC},ETH:{label:"Ethereum",icon:rt.ETH},SOL:{label:"Solana",icon:rt.SOL},TRX:{label:"Tron",icon:rt.TRX},BSC:{label:"BNB Chain",icon:rt.BNB}};function Dp(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Mj(a){const l=[],i=new Map;for(const r of a){const d=r.chain??"ETH";let f=i.get(d);f||(f={chain:d,rows:[],totalUsd:0},i.set(d,f),l.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return l}function Bp(a){return a.id??a.ticker}function P_({rows:a,isLoading:l,fallbackChain:i="ETH",groupByChain:r=!1}){const[d,f]=S.useState({}),[m,g]=S.useState({open:!1,network:"ETH"}),[h,p]=S.useState({open:!1,chain:"ETH"});function v($){return $.chain??I9[$.ticker]??i}function y($){g({open:!0,network:v($)})}function b(){g($=>({...$,open:!1}))}function j($){p({open:!0,chain:v($)})}function w(){p($=>({...$,open:!1}))}function N($){f(P=>({...P,[$]:!P[$]}))}const C=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),R=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function M($){const P=Bp($);return o.jsxs("tr",{children:[o.jsx("td",{children:o.jsx("button",{className:`${ve.star} ${d[P]?ve.starOn:""}`,onClick:()=>N(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"})}),o.jsx("td",{children:o.jsxs("div",{className:ve.tokId,children:[o.jsx("div",{className:ve.tokLogo,style:{background:$.color},children:$.logo?o.jsx("img",{src:$.logo,alt:$.ticker,className:""}):$.ticker[0]}),o.jsxs("div",{className:ve.balCol,children:[o.jsx("b",{className:ve.cardTicker,children:$.ticker}),o.jsx("span",{className:ve.noFont,children:$.name})]})]})}),o.jsx("td",{className:ve.right,children:o.jsx("span",{className:ve.price,children:$.price})}),o.jsx("td",{className:ve.right,children:o.jsxs("div",{className:ve.balCol,children:[o.jsx("b",{children:$.bal}),o.jsx("span",{children:$.usd})]})}),o.jsx("td",{className:ve.center,children:o.jsxs("div",{className:ve.btnGroup,children:[o.jsxs("button",{className:ve.receiveBtn,type:"button",onClick:J=>{J.stopPropagation(),j($)},children:[R,"Получить"]}),o.jsxs("button",{className:ve.sendBtn,type:"button",onClick:J=>{J.stopPropagation(),y($)},children:[C,"Отправить"]})]})})]},P)}function O($){const P=Bp($);return o.jsxs("div",{className:ve.card,children:[o.jsx("button",{className:`${ve.star} ${d[P]?ve.starOn:""}`,onClick:()=>N(P),type:"button","aria-label":d[P]?"Убрать из избранного":"В избранное",children:"★"}),o.jsx("div",{className:ve.tokLogo,style:{background:$.color},children:$.logo?o.jsx("img",{src:$.logo,alt:$.ticker,className:""}):$.ticker[0]}),o.jsxs("div",{className:ve.cardInfo,children:[o.jsxs("div",{className:ve.cardTop,children:[o.jsxs("div",{children:[o.jsx("span",{className:ve.cardTicker,children:$.ticker}),o.jsx("span",{className:ve.cardName,children:$.name})]}),o.jsx("span",{className:ve.cardBalCrypto,children:$.bal})]}),o.jsxs("div",{className:ve.cardBot,children:[o.jsx("span",{className:ve.cardPrice,children:$.price}),o.jsx("span",{className:ve.cardBalUsd,children:$.usd})]})]})]},P)}function H($){const P=zp[$.chain];return o.jsx("tr",{className:ve.groupHeader,children:o.jsx("td",{colSpan:5,children:o.jsxs("div",{className:ve.groupHeaderInner,children:[o.jsxs("span",{className:ve.groupLabel,children:[o.jsx("img",{src:P.icon,alt:"",className:ve.groupIcon}),P.label]}),o.jsx("span",{className:ve.groupTotal,children:Dp($.totalUsd)})]})})},`h-${$.chain}`)}function I($){const P=zp[$.chain];return o.jsxs("div",{className:ve.mobileGroupHeader,children:[o.jsxs("span",{className:ve.groupLabel,children:[o.jsx("img",{src:P.icon,alt:"",className:ve.groupIcon}),P.label]}),o.jsx("span",{className:ve.groupTotal,children:Dp($.totalUsd)})]},`mh-${$.chain}`)}const X=r?Mj(a):null;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:`${ve.wrap} ${l?ve.loading:""}`,children:[o.jsxs("table",{className:ve.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{className:ve.thStar,children:"☆"}),o.jsx("th",{children:"Токены"}),o.jsx("th",{className:ve.right,children:"Цена"}),o.jsx("th",{className:ve.right,children:"Баланс"}),o.jsx("th",{className:ve.center})]})}),o.jsx("tbody",{children:X?X.map($=>o.jsxs(S.Fragment,{children:[H($),$.rows.map(M)]},$.chain)):a.map(M)})]}),o.jsx("div",{className:ve.mobileList,children:X?X.map($=>o.jsxs(S.Fragment,{children:[I($),$.rows.map(O)]},$.chain)):a.map(O)})]}),o.jsxs("div",{className:ve.mobileActions,children:[o.jsxs("button",{className:ve.receiveBtn,type:"button",onClick:()=>a[0]&&j(a[0]),children:[R,"Получить"]}),o.jsxs("button",{className:ve.sendBtn,type:"button",onClick:()=>a[0]&&y(a[0]),children:[C,"Отправить"]})]}),o.jsx(kS,{open:m.open,onClose:b,network:m.network,tokens:a}),o.jsx(ej,{open:h.open,onClose:w,chain:h.chain})]})}function zj({chain:a}){const{rows:l,isLoading:i}=G9(a);return o.jsx(P_,{rows:l,isLoading:i,fallbackChain:a})}function Dj(){const{rows:a,isLoading:l}=V9();return o.jsx(P_,{rows:a,isLoading:l,groupByChain:!0})}const Bj="_nav_16wm3_1",$j="_logo_16wm3_12",Uj="_menu_16wm3_18",Hj="_menuLink_16wm3_28",qj="_menuLinkActive_16wm3_44",Fj="_right_16wm3_60",Gj="_accountWrapper_16wm3_66",Vj="_account_16wm3_66",Qj="_avatar_16wm3_86",Pj="_dropdown_16wm3_94",Ij="_dropdownItem_16wm3_120",Yj="_danger_16wm3_139",Xj="_burger_16wm3_144",Kj="_burgerOpen_16wm3_181",Zj="_mobileMenu_16wm3_195",Wj="_mobileMenuOpen_16wm3_212",Jj="_mobileLink_16wm3_217",ew="_mobileLinkActive_16wm3_245",bt={nav:Bj,logo:$j,menu:Uj,menuLink:Hj,menuLinkActive:qj,right:Fj,accountWrapper:Gj,account:Vj,avatar:Qj,dropdown:Pj,dropdownItem:Ij,danger:Yj,burger:Xj,burgerOpen:Kj,mobileMenu:Zj,mobileMenuOpen:Wj,mobileLink:Jj,mobileLinkActive:ew},tw=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"",Ud=[{to:le.PROFILE,label:"Личный кабинет"},{to:le.WALLET,label:"Кошелёк"},{to:le.STAKING,label:"Стейкинг"},{to:le.POOLS,label:"Пулы"}];function Q2(){var j;const[a,l]=S.useState(!1),[i,r]=S.useState(!1),[d,f]=S.useState(!1),m=S.useRef(null),g=Ln(),h=Yt(),{data:p}=pn(),v=p?[p.first_name,p.middle_name].filter(Boolean).map(tw).join(" "):"",{mutate:y}=_t({mutationFn:u7,onSuccess:()=>{Ct.clear(),h.clear(),h.setQueryData(ru,null),g(le.HOME)},onError:()=>f(!0)});S.useEffect(()=>{function w(N){m.current&&!m.current.contains(N.target)&&l(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]),S.useEffect(()=>(document.body.style.overflow=i?"hidden":"",()=>{document.body.style.overflow=""}),[i]);function b(){y(),l(!1),r(!1)}return o.jsxs(o.Fragment,{children:[o.jsxs("nav",{className:bt.nav,children:[o.jsx("a",{href:"/",className:bt.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("div",{className:bt.menu,children:Ud.map(w=>o.jsx($i,{to:w.to,className:({isActive:N})=>`${bt.menuLink} ${N?bt.menuLinkActive:""}`,children:w.label},w.to))}),o.jsxs("div",{className:bt.right,children:[o.jsxs("div",{className:bt.accountWrapper,ref:m,children:[o.jsxs("button",{className:bt.account,onClick:()=>l(w=>!w),children:[p!=null&&p.avatar_link?o.jsx("img",{src:p.avatar_link,alt:"",className:bt.avatar}):o.jsx("div",{className:bt.avatar}),o.jsx("span",{children:v||((j=p==null?void 0:p.legal_entity)==null?void 0:j.name)||""})]}),a&&o.jsx("div",{className:bt.dropdown,children:o.jsx("button",{className:`${bt.dropdownItem} ${bt.danger}`,onClick:b,children:"Выйти"})})]}),o.jsxs("button",{className:`${bt.burger} ${i?bt.burgerOpen:""}`,onClick:()=>r(w=>!w),"aria-label":"Меню","aria-expanded":i,children:[o.jsx("span",{}),o.jsx("span",{}),o.jsx("span",{})]})]})]}),o.jsxs("div",{className:`${bt.mobileMenu} ${i?bt.mobileMenuOpen:""}`,children:[Ud.map((w,N)=>o.jsx($i,{to:w.to,onClick:()=>r(!1),style:{transitionDelay:i?`${.08+N*.05}s`:"0s"},className:({isActive:C})=>`${bt.mobileLink} ${C?bt.mobileLinkActive:""}`,children:w.label},w.to)),o.jsx("button",{className:`${bt.mobileLink} ${bt.danger}`,style:{transitionDelay:i?`${.08+Ud.length*.05}s`:"0s"},onClick:b,children:"Выйти"})]}),d&&o.jsx(es,{status:"error",title:"Ошибка сервера",message:"Произошла ошибка сервера",onClose:()=>f(!1),duration:5e3})]})}const nw="_tabs_1ne0a_1",aw="_tab_1ne0a_1",sw="_active_1ne0a_31",lw="_icon_1ne0a_37",dl={tabs:nw,tab:aw,active:sw,icon:lw},iw=[{chain:"BTC",label:"BTC",icon:rt.BTC},{chain:"ETH",label:"ETH",icon:rt.ETH},{chain:"SOL",label:"SOL",icon:rt.SOL},{chain:"TRX",label:"TRX",icon:rt.TRX},{chain:"BSC",label:"BSC",icon:rt.BNB}],ow=o.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),o.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),o.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function rw(){return o.jsxs("div",{className:dl.tabs,children:[o.jsxs($i,{to:"/wallet",end:!0,className:({isActive:a})=>`${dl.tab} ${a?dl.active:""}`,children:[o.jsx("span",{className:dl.icon,children:ow}),o.jsx("span",{children:"Все монеты"})]}),iw.map(a=>o.jsxs($i,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:l})=>`${dl.tab} ${l?dl.active:""}`,children:[o.jsx("img",{src:a.icon,alt:a.label,className:dl.icon}),o.jsx("span",{children:a.label})]},a.chain))]})}const cw="_page_10fz2_1",uw="_main_10fz2_8",dw="_glow_10fz2_17",fw="_error_10fz2_29",hw="_noWallet_10fz2_38",Fo={page:cw,main:uw,glow:dw,error:fw,noWallet:hw};function $p(){var b;const{data:a,isLoading:l,isError:i}=pn(),{error:r,isLoading:d}=uu(),{mutate:f,isPending:m}=a9(),g=Ln(),{chain:h}=N4(),p=(b=r==null?void 0:r.error)==null?void 0:b.includes("No wallets");if(i)return o.jsx("div",{className:Fo.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return o.jsx(Bi,{to:le.KYC,replace:!0});const v=h==null?void 0:h.toUpperCase(),y=v&&G2.includes(v)?v:void 0;return o.jsxs("div",{className:Fo.page,children:[o.jsx(Q2,{}),o.jsxs("main",{className:Fo.main,children:[o.jsx("div",{className:Fo.glow}),l||d?o.jsx(On,{fullscreen:!0,label:"Загрузка"}):p?o.jsxs("div",{className:Fo.noWallet,children:[o.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),o.jsx(Rn,{variant:"outline",onClick:()=>f(void 0,{onSuccess:()=>g(le.SEED_PHRASE)}),disabled:m,children:m?"Создание...":"Создать кошелёк"})]}):o.jsxs(o.Fragment,{children:[o.jsx(v9,{}),o.jsx(rw,{}),y?o.jsx(zj,{chain:y}):o.jsx(Dj,{})]})]})]})}const I_=rt.BTC,Y_=rt.ETH,X_=rt.SOL,K_=rt.TRX,Z_=rt.ARB,S2={BTC:{symbol:"BTC",letter:"₿",logo:I_,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:Y_,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:X_,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:K_,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:Z_,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}},mw=Object.values(S2),j2={BTC:{letter:"₿",logo:I_,color:"#F7931A"},ETH:{letter:"E",logo:Y_,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:X_,color:"#9945FF"},TRX:{letter:"T",logo:K_,color:"#FF060A"},ARB:{letter:"A",logo:Z_,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"}},pw={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function W_(a){const l=[],i=pw[a.chain]??a.chain,r=j2[i];l.push({symbol:i,letter:(r==null?void 0:r.letter)??i[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 m=j2[d];l.push({symbol:d,letter:(m==null?void 0:m.letter)??d[0],color:(m==null?void 0:m.color)??"#888",logo:m==null?void 0:m.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return l}const Up=82.2578;function J_(){const[a,l]=S.useState("0"),[i,r]=S.useState(S2.SOL),[d,f]=S.useState(S2.USDC),[m,g]=S.useState(!1),h=parseFloat(a)||0,p=(h*Up).toFixed(4),v=(h*i.usdRate).toFixed(2),y=(h*Up*d.usdRate).toFixed(2);function b(C){l(C)}function j(C){const R=C>=100?99:C;l((i.balance*R/100).toFixed(4))}function w(){r(d),f(i)}function N(){g(!0),setTimeout(()=>g(!1),400)}return{fromAmount:a,toAmount:p,fromUsd:v,toUsd:y,fromToken:i,toToken:d,isRefreshing:m,setFromAmount:b,setPercent:j,swapTokens:w,refreshRate:N,setFromToken:r,setToToken:f}}const _w="_wrap_18yiu_1",gw="_trigger_18yiu_6",vw="_name_18yiu_22",yw="_chevron_18yiu_29",bw="_chevronOpen_18yiu_37",xw="_dropdown_18yiu_41",Sw="_dropdownWrapper_18yiu_47",jw="_option_18yiu_60",ww="_optionActive_18yiu_78",Nw="_optionInfo_18yiu_82",Cw="_optionSymbol_18yiu_90",Ew="_optionNetwork_18yiu_96",Tw="_check_18yiu_103",kw="_triggerCompact_18yiu_110",Rw="_nameCompact_18yiu_116",Wt={wrap:_w,trigger:gw,name:vw,chevron:yw,chevronOpen:bw,dropdown:xw,dropdownWrapper:Sw,option:jw,optionActive:ww,optionInfo:Nw,optionSymbol:Cw,optionNetwork:Ew,check:Tw,triggerCompact:kw,nameCompact:Rw};function Hp({value:a,options:l,onChange:i,compact:r=!1}){const[d,f]=S.useState(!1),m=S.useRef(null);S.useEffect(()=>{function h(p){m.current&&!m.current.contains(p.target)&&f(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);function g(h){i(h),f(!1)}return o.jsxs("div",{className:Wt.wrap,ref:m,children:[o.jsxs("button",{className:`${Wt.trigger} ${r?Wt.triggerCompact:""}`,onClick:()=>f(h=>!h),children:[o.jsx(kl,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),o.jsx("span",{className:`${Wt.name} ${r?Wt.nameCompact:""}`,children:a.symbol}),o.jsx("span",{className:`${Wt.chevron} ${d?Wt.chevronOpen:""}`,children:"▾"})]}),d&&o.jsx("div",{className:Wt.dropdownWrapper,children:o.jsx("div",{className:Wt.dropdown,children:l.map(h=>o.jsxs("button",{className:`${Wt.option} ${h.symbol===a.symbol?Wt.optionActive:""}`,onClick:()=>g(h),children:[o.jsx(kl,{letter:h.letter,color:h.color,logo:h.logo,size:32}),o.jsxs("div",{className:Wt.optionInfo,children:[o.jsx("span",{className:Wt.optionSymbol,children:h.symbol}),o.jsx("span",{className:Wt.optionNetwork,children:h.network})]}),h.symbol===a.symbol&&o.jsx("span",{className:Wt.check,children:"✓"})]},h.symbol))})})]})}const Aw="_wrapper_19brp_1",Lw="_pillsOuter_19brp_8",Ow="_card_19brp_13",Mw="_top_19brp_20",zw="_label_19brp_33",Dw="_networkPills_19brp_54",Bw="_networkBtn_19brp_60",$w="_networkBtnActive_19brp_79",Uw="_pillsInner_19brp_85",Hw="_pill_19brp_8",qw="_selectTop_19brp_109",Fw="_selectMid_19brp_113",Gw="_mid_19brp_118",Vw="_input_19brp_126",Qw="_display_19brp_142",Pw="_int_19brp_151",Iw="_dec_19brp_156",Yw="_bottom_19brp_161",Xw="_usd_19brp_167",Kw="_balance_19brp_176",Zw="_max_19brp_184",xt={wrapper:Aw,pillsOuter:Lw,card:Ow,top:Mw,label:zw,networkPills:Dw,networkBtn:Bw,networkBtnActive:$w,pillsInner:Uw,pill:Hw,selectTop:qw,selectMid:Fw,mid:Gw,input:Vw,display:Qw,int:Pw,dec:Iw,bottom:Yw,usd:Xw,balance:Kw,max:Zw},Ww=["ETH","BSC","TRX","SOL"],Jw=[25,50,100];function au({mode:a,token:l,tokenOptions:i,amount:r,usd:d,onTokenChange:f,onAmountChange:m,onSetPercent:g,selectedNetwork:h,onNetworkChange:p,hideNetworkSelect:v}){const[y,b]=Je(r,8).split("."),j=g&&o.jsx(o.Fragment,{children:Jw.map(w=>o.jsxs("button",{className:xt.pill,onClick:()=>g(w),children:[w,"%"]},w))});return o.jsxs("div",{className:xt.wrapper,children:[a==="from"&&j&&o.jsx("div",{className:xt.pillsOuter,children:j}),o.jsxs("div",{className:xt.card,children:[o.jsxs("div",{className:xt.top,children:[o.jsx("div",{className:xt.label,children:a==="from"&&!v&&o.jsx("div",{className:xt.networkPills,children:Ww.map(w=>o.jsx("button",{className:`${xt.networkBtn} ${w===h?xt.networkBtnActive:""}`,onClick:()=>p==null?void 0:p(w),children:w},w))})}),a==="from"&&j&&o.jsx("div",{className:xt.pillsInner,children:j}),o.jsx("div",{className:xt.selectTop,children:o.jsx(Hp,{value:l,options:i,onChange:f,compact:!0})})]}),o.jsxs("div",{className:xt.mid,children:[a==="from"?o.jsx("input",{className:xt.input,type:"text",value:r,onChange:w=>{const N=w.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(N)||N==="")&&(m==null||m(N))},placeholder:"0"}):o.jsxs("div",{className:xt.display,children:[o.jsx("span",{className:xt.int,children:y}),b&&o.jsxs("span",{className:xt.dec,children:[".",b]})]}),o.jsx("div",{className:xt.selectMid,children:o.jsx(Hp,{value:l,options:i,onChange:f})})]}),o.jsxs("div",{className:xt.bottom,children:[d&&o.jsxs("span",{className:xt.usd,children:["≈ $",d]}),o.jsxs("span",{className:xt.balance,children:[o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[o.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),o.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),Je(l.balance,8),a==="from"&&g&&o.jsx("button",{className:xt.max,onClick:()=>g(100),children:"МАКС"})]})]})]})]})}const eN="_wrap_wqzoz_1",tN="_line_wqzoz_11",nN="_circle_wqzoz_19",Hd={wrap:eN,line:tN,circle:nN};function aN({onClick:a}){const[l,i]=S.useState(!1);function r(){i(!0),setTimeout(()=>i(!1),300),a()}return o.jsxs("div",{className:Hd.wrap,children:[o.jsx("div",{className:Hd.line}),o.jsx("button",{className:Hd.circle,style:{transform:l?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const sN="_panel_16d4z_1",lN="_row_16d4z_10",iN="_label_16d4z_22",oN="_value_16d4z_30",rN="_link_16d4z_36",Go={panel:sN,row:lN,label:iN,value:oN,link:rN};function cN({gasFee:a,serviceFee:l,serviceFeeToken:i}){const r=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1},{label:"СЕРВИСНЫЙ СБОР",value:l?`$${l}`:"—",link:!1},{label:i?`СЕРВИСНЫЙ СБОР (${i.symbol})`:"СЕРВИСНЫЙ СБОР В ТОКЕНАХ",value:i?Je(i.amount,8):"—",link:!1}];return o.jsx("div",{className:Go.panel,children:r.map(({label:d,value:f,link:m})=>o.jsxs("div",{className:Go.row,children:[o.jsx("span",{className:Go.label,children:d}),o.jsx("span",{className:`${Go.value} ${m?Go.link:""}`,children:f})]},d))})}const uN="_overlay_7i74m_1",dN="_closing_7i74m_13",fN="_card_7i74m_17",hN="_header_7i74m_54",mN="_title_7i74m_60",pN="_closeBtn_7i74m_66",_N="_flow_7i74m_81",gN="_token_7i74m_87",vN="_tokenLabel_7i74m_97",yN="_tokenAmount_7i74m_105",bN="_tokenUsd_7i74m_111",xN="_arrow_7i74m_116",SN="_details_7i74m_123",jN="_row_7i74m_129",wN="_rowLabel_7i74m_135",NN="_rowValue_7i74m_140",CN="_impact_7i74m_146",EN="_warning_7i74m_150",TN="_confirmBtn_7i74m_162",qe={overlay:uN,closing:dN,card:fN,header:hN,title:mN,closeBtn:pN,flow:_N,token:gN,tokenLabel:vN,tokenAmount:yN,tokenUsd:bN,arrow:xN,details:SN,row:jN,rowLabel:wN,rowValue:NN,impact:CN,warning:EN,confirmBtn:TN};function kN({data:a,insufficientBalance:l,onConfirm:i,onClose:r}){const{details:d,fees:f}=a,{currencyIn:m,currencyOut:g,totalImpact:h,rate:p}=d,[v,y]=S.useState(!1),b=S.useRef("close"),j=parseFloat(h.percent),w=parseFloat(p).toFixed(4);function N(){b.current="close",y(!0)}function C(){b.current="confirm",y(!0)}function R(){v&&(b.current==="confirm"?i():r())}return o.jsx("div",{className:`${qe.overlay} ${v?qe.closing:""}`,onClick:N,children:o.jsxs("div",{className:`${qe.card} ${v?qe.closing:""}`,onClick:M=>M.stopPropagation(),onAnimationEnd:R,children:[o.jsxs("div",{className:qe.header,children:[o.jsx("span",{className:qe.title,children:"Подтвердить своп"}),o.jsx("button",{className:qe.closeBtn,onClick:N,children:"×"})]}),o.jsxs("div",{className:qe.flow,children:[o.jsxs("div",{className:qe.token,children:[o.jsx("span",{className:qe.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:qe.tokenAmount,children:[m.amountFormatted," ",m.currency.symbol]}),o.jsxs("span",{className:qe.tokenUsd,children:["≈ $",m.amountUsd]})]}),o.jsx("div",{className:qe.arrow,children:"↓"}),o.jsxs("div",{className:qe.token,children:[o.jsx("span",{className:qe.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:qe.tokenAmount,children:[g.amountFormatted," ",g.currency.symbol]}),o.jsxs("span",{className:qe.tokenUsd,children:["≈ $",g.amountUsd]})]})]}),o.jsxs("div",{className:qe.details,children:[o.jsxs("div",{className:qe.row,children:[o.jsx("span",{className:qe.rowLabel,children:"Курс"}),o.jsxs("span",{className:qe.rowValue,children:["1 ",m.currency.symbol," = ",w," ",g.currency.symbol]})]}),o.jsxs("div",{className:qe.row,children:[o.jsx("span",{className:qe.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:qe.rowValue,children:["$",f.gas.amountUsd]})]}),o.jsxs("div",{className:qe.row,children:[o.jsx("span",{className:qe.rowLabel,children:"Влияние на цену"}),o.jsxs("span",{className:`${qe.rowValue} ${j<0?qe.impact:""}`,children:[h.percent,"%"]})]})]}),l&&o.jsx("p",{className:qe.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:qe.confirmBtn,onClick:C,children:"Подтвердить"})]})})}const RN="_overlay_1gvk2_1",AN="_closing_1gvk2_13",LN="_card_1gvk2_17",ON="_header_1gvk2_54",MN="_title_1gvk2_60",zN="_closeBtn_1gvk2_66",DN="_flow_1gvk2_81",BN="_token_1gvk2_87",$N="_tokenLabel_1gvk2_97",UN="_tokenAmount_1gvk2_105",HN="_minOut_1gvk2_111",qN="_arrow_1gvk2_116",FN="_details_1gvk2_123",GN="_row_1gvk2_129",VN="_rowLabel_1gvk2_135",QN="_rowValue_1gvk2_140",PN="_warning_1gvk2_146",IN="_confirmBtn_1gvk2_158",ht={overlay:RN,closing:AN,card:LN,header:ON,title:MN,closeBtn:zN,flow:DN,token:BN,tokenLabel:$N,tokenAmount:UN,minOut:HN,arrow:qN,details:FN,row:GN,rowLabel:VN,rowValue:QN,warning:PN,confirmBtn:IN};function YN({quote:a,fromSymbol:l,toSymbol:i,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:m}){const{expectedOutFormatted:g,minOutFormatted:h,fees:p}=a,[v,y]=S.useState(!1),b=S.useRef("close");function j(){b.current="close",y(!0)}function w(){b.current="confirm",y(!0)}function N(){v&&(b.current==="confirm"?f():m())}return o.jsx("div",{className:`${ht.overlay} ${v?ht.closing:""}`,onClick:j,children:o.jsxs("div",{className:`${ht.card} ${v?ht.closing:""}`,onClick:C=>C.stopPropagation(),onAnimationEnd:N,children:[o.jsxs("div",{className:ht.header,children:[o.jsx("span",{className:ht.title,children:"Подтвердить своп"}),o.jsx("button",{className:ht.closeBtn,onClick:j,children:"×"})]}),o.jsxs("div",{className:ht.flow,children:[o.jsxs("div",{className:ht.token,children:[o.jsx("span",{className:ht.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:ht.tokenAmount,children:[r," ",l]})]}),o.jsx("div",{className:ht.arrow,children:"↓"}),o.jsxs("div",{className:ht.token,children:[o.jsx("span",{className:ht.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:ht.tokenAmount,children:[g," ",i]}),o.jsxs("span",{className:ht.minOut,children:["Минимум: ",h," ",i]})]})]}),o.jsx("div",{className:ht.details,children:o.jsxs("div",{className:ht.row,children:[o.jsx("span",{className:ht.rowLabel,children:"Комиссия сети"}),o.jsxs("span",{className:ht.rowValue,children:[p.network.amountFormatted," ",p.network.asset," (≈$",p.network.amountUsd,")"]})]})}),d&&o.jsx("p",{className:ht.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),o.jsx("button",{className:ht.confirmBtn,onClick:w,children:"Подтвердить"})]})})}const XN="_form_1fk2f_1",KN={form:XN},ZN={ETH:1,BSC:56,SOL:792703809},qp={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function Fp(a){return qp[a]??qp.DEFAULT}function WN(){var Sa,ja,Qs,ns,wa,ze,Xt;const a=Ln(),l=Yt(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:m,setPercent:g,swapTokens:h,setFromToken:p,setToToken:v}=J_(),[y,b]=S.useState("ETH"),[j,w]=S.useState(null),[N,C]=S.useState(null),[R,M]=S.useState(null),O=y==="TRX",{data:H}=Ui(y),I=H?W_(H):mw;S.useEffect(()=>{I.length!==0&&(p(Ke=>I.find(Xn=>Xn.symbol===Ke.symbol)??I[0]),v(Ke=>I.find(Xn=>Xn.symbol===Ke.symbol)??I[1]??I[0]))},[H,y]);const X=ya(i,500),{data:$}=cu(),{data:P}=J7(),J=parseFloat(X),ue=ZN[y],re=(Sa=$==null?void 0:$.find(Ke=>Ke.chain===y))==null?void 0:Sa.address,ce=((ja=P==null?void 0:P.find(Ke=>Ke.chain===y&&Ke.symbol===d.symbol))==null?void 0:ja.contract)??Fp(y),te=((Qs=P==null?void 0:P.find(Ke=>Ke.chain===y&&Ke.symbol===f.symbol))==null?void 0:Qs.contract)??Fp(y),he=!O&&ue&&re&&J>0?{user:re,recipient:re,originChainId:ue,destinationChainId:ue,originCurrency:ce,destinationCurrency:te,amount:Math.round(J*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:ne}=C_(he),{mutate:q,isPending:Y}=s9(),{mutate:ae,isPending:de}=l9(),_e=O&&J>0?{from:d.symbol,to:f.symbol,amountHuman:X}:null,{data:k}=i9(_e),{mutate:V,isPending:K}=o9(),{mutate:W,isPending:ye}=r9(),ge=de||ye,Le=(parseFloat(i)||0)>d.balance,Tt=O?(k==null?void 0:k.expectedOutFormatted)??"0":(ne==null?void 0:ne.details.currencyOut.amountFormatted)??"0",et=O||ne==null?void 0:ne.details.currencyOut.amountUsd,xa=O?(ns=k==null?void 0:k.fees.network.amountUsd)==null?void 0:ns.toString():ne==null?void 0:ne.fees.gas.amountUsd,ts=(ze=(wa=ne==null?void 0:ne.appCommission)==null?void 0:wa.usd)==null?void 0:ze.toString(),Gs=(Xt=ne==null?void 0:ne.appCommission)==null?void 0:Xt.inToken,Vs=O?J<=0||K:!he||Y;function Mn(){if(O){if(!_e)return;V(_e,{onSuccess:Ke=>C(Ke)})}else{if(!he)return;q(he,{onSuccess:Ke=>w(Ke)})}}return o.jsxs("div",{className:KN.form,children:[o.jsx(au,{mode:"from",token:d,tokenOptions:I,amount:i,usd:r,onAmountChange:m,onSetPercent:g,onTokenChange:p,selectedNetwork:y,onNetworkChange:b}),o.jsx(aN,{onClick:h}),o.jsx(au,{mode:"to",token:f,tokenOptions:I,amount:Tt,usd:et,onTokenChange:v}),o.jsx(cN,{gasFee:xa,serviceFee:ts,serviceFeeToken:Gs}),o.jsx(In,{label:Y||K?"Загрузка...":void 0,onClick:Mn,disabled:Vs}),j&&o.jsx(kN,{data:j,insufficientBalance:Le,onClose:()=>w(null),onConfirm:()=>{var Xn,gt;const Ke=(gt=(Xn=j.steps[0])==null?void 0:Xn.items[0])==null?void 0:gt.data;Ke&&(M(null),ae({chain:y,txData:Ke},{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance",y]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),a(`${le.WALLET}/${y.toLowerCase()}`)},onError:hr=>{M(hr instanceof Error?hr.message:"Не удалось подписать транзакцию")}})),w(null)}}),N&&o.jsx(YN,{quote:N,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:i,insufficientBalance:Le,onClose:()=>C(null),onConfirm:()=>{M(null),W(N.quoteId,{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance","TRX"]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),a(`${le.WALLET}/${y.toLowerCase()}`)},onError:Ke=>{M(Ke instanceof Error?Ke.message:"Не удалось выполнить свап")}}),C(null)}}),ge&&o.jsx(es,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),R&&o.jsx(es,{status:"error",message:R,onClose:()=>M(null),duration:5e3})]})}const JN="_tabs_1sxhr_1",eC="_tab_1sxhr_1",tC="_active_1sxhr_19",nC="_inactive_1sxhr_24",fl={tabs:JN,tab:eC,active:tC,inactive:nC};function eg({active:a}){const l=Ln();return o.jsxs("div",{className:fl.tabs,children:[o.jsx("button",{className:`${fl.tab} ${a==="swap"?fl.active:fl.inactive}`,onClick:()=>l(le.SWAP),children:"СВОП"}),o.jsx("button",{className:`${fl.tab} ${a==="bridge"?fl.active:fl.inactive}`,onClick:()=>l(le.BRIDGE),children:"БРИДЖ"})]})}const aC="_content_1pe49_1",sC={content:aC};function lC(){return o.jsxs(o.Fragment,{children:[o.jsx(eg,{active:"swap"}),o.jsx("div",{className:sC.content,children:o.jsx(WN,{})})]})}function la(a,l){const[i,r=""]=a.split("."),d=r.slice(0,l).padEnd(l,"0");return`${i}${d}`.replace(/^0+(?=\d)/,"")||"0"}function Jo(a,l){const i=a.padStart(l+1,"0"),r=i.slice(0,i.length-l),d=i.slice(i.length-l).replace(/0+$/,"");return d?`${r}.${d}`:r}const iC="_wrap_1zbpm_1",oC="_label_1zbpm_9",rC="_select_1zbpm_19",qd={wrap:iC,label:oC,select:rC};function Gp({label:a,value:l,onChange:i,options:r}){return o.jsxs("div",{className:qd.wrap,children:[o.jsx("span",{className:qd.label,children:a}),o.jsx("div",{className:qd.select,children:o.jsx(z2,{value:l,onChange:i,options:r.map(d=>({value:d,label:d}))})})]})}const cC="_panel_1dg55_1",uC="_row_1dg55_10",dC="_label_1dg55_22",fC="_value_1dg55_30",zc={panel:cC,row:uC,label:dC,value:fC};function hC({serviceFee:a,serviceFeeToken:l}){const i=[{label:"СЕРВИСНЫЙ СБОР",value:a?`$${a}`:"—"},{label:l?`СЕРВИСНЫЙ СБОР (${l.symbol})`:"СЕРВИСНЫЙ СБОР В ТОКЕНАХ",value:l?Je(l.amount,8):"—"}];return o.jsx("div",{className:zc.panel,children:i.map(({label:r,value:d})=>o.jsxs("div",{className:zc.row,children:[o.jsx("span",{className:zc.label,children:r}),o.jsx("span",{className:zc.value,children:d})]},r))})}const mC="_overlay_lnhqe_1",pC="_closing_lnhqe_13",_C="_card_lnhqe_17",gC="_header_lnhqe_54",vC="_title_lnhqe_60",yC="_closeBtn_lnhqe_66",bC="_flow_lnhqe_81",xC="_token_lnhqe_87",SC="_tokenLabel_lnhqe_97",jC="_tokenAmount_lnhqe_105",wC="_minOut_lnhqe_111",NC="_arrow_lnhqe_116",CC="_details_lnhqe_123",EC="_row_lnhqe_129",TC="_rowLabel_lnhqe_135",kC="_rowValue_lnhqe_140",RC="_warning_lnhqe_146",AC="_confirmBtn_lnhqe_158",at={overlay:mC,closing:pC,card:_C,header:gC,title:vC,closeBtn:yC,flow:bC,token:xC,tokenLabel:SC,tokenAmount:jC,minOut:wC,arrow:NC,details:CC,row:EC,rowLabel:TC,rowValue:kC,warning:RC,confirmBtn:AC};function LC({quote:a,fromAmountHuman:l,insufficientBalance:i,isExecuting:r,onConfirm:d,onClose:f}){const{action:m,estimate:g,toolDetails:h}=a,p=m.toToken.symbol,v=m.fromToken.symbol,[y,b]=S.useState(!1);function j(){b(!0)}function w(){y&&f()}const N=Je(Jo(g.toAmount,m.toToken.decimals),8),C=Je(Jo(g.toAmountMin,m.toToken.decimals),8),R=(g.feeCosts??[]).reduce((M,O)=>M+(parseFloat(O.amountUSD)||0),0).toFixed(2);return o.jsx("div",{className:`${at.overlay} ${y?at.closing:""}`,onClick:j,children:o.jsxs("div",{className:`${at.card} ${y?at.closing:""}`,onClick:M=>M.stopPropagation(),onAnimationEnd:w,children:[o.jsxs("div",{className:at.header,children:[o.jsx("span",{className:at.title,children:"Подтвердить бридж"}),o.jsx("button",{className:at.closeBtn,onClick:j,children:"×"})]}),o.jsxs("div",{className:at.flow,children:[o.jsxs("div",{className:at.token,children:[o.jsx("span",{className:at.tokenLabel,children:"Отдаёте"}),o.jsxs("span",{className:at.tokenAmount,children:[l," ",v]})]}),o.jsx("div",{className:at.arrow,children:"↓"}),o.jsxs("div",{className:at.token,children:[o.jsx("span",{className:at.tokenLabel,children:"Получаете"}),o.jsxs("span",{className:at.tokenAmount,children:[N," ",p]}),o.jsxs("span",{className:at.minOut,children:["Минимум: ",C," ",p]})]})]}),o.jsxs("div",{className:at.details,children:[o.jsxs("div",{className:at.row,children:[o.jsx("span",{className:at.rowLabel,children:"Комиссия"}),o.jsxs("span",{className:at.rowValue,children:["≈$",R]})]}),o.jsxs("div",{className:at.row,children:[o.jsx("span",{className:at.rowLabel,children:"Мост"}),o.jsx("span",{className:at.rowValue,children:h.name})]})]}),i&&o.jsx("p",{className:at.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),o.jsx("button",{className:at.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const OC="_form_htwuf_1",Vp={form:OC},Fd=["ETH","BSC","SOL","TRX","BTC"],xi={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},MC=Object.fromEntries(Object.entries(xi).map(([a,l])=>[l,a])),Qp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function zC(a){const l=j2[a.symbol];return{symbol:a.symbol,letter:(l==null?void 0:l.letter)??a.symbol[0],color:(l==null?void 0:l.color)??"#888",logo:a.logoURI??(l==null?void 0:l.logo),network:MC[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function DC(a){const l={};for(const i of W_(a))l[i.symbol]=i.balance;return l}function BC(){var Vs,Mn,Sa,ja,Qs,ns,wa;const a=Ln(),l=Yt(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:m,setPercent:g,setFromToken:h,setToToken:p}=J_(),[v,y]=S.useState("ETH"),[b,j]=S.useState("BSC"),[w,N]=S.useState(null),[C,R]=S.useState(null),{data:M,isLoading:O}=e9(),{data:H}=Ui(v),{data:I}=Ui(b),{data:X}=cu(),{mutate:$,isPending:P}=t9(),{mutate:J,isPending:ue}=n9();function re(ze,Xt){const Ke=((M==null?void 0:M[xi[ze]])??[]).map(zC);if(!Xt)return Ke;const Xn=DC(Xt);return Ke.map(gt=>Xn[gt.symbol]!=null?{...gt,balance:Xn[gt.symbol]}:gt)}const ce=re(v,H),te=re(b,I);S.useEffect(()=>{ce.length!==0&&h(ze=>ce.find(Xt=>Xt.symbol===ze.symbol)??ce[0])},[M,H,v]),S.useEffect(()=>{te.length!==0&&p(ze=>te.find(Xt=>Xt.symbol===ze.symbol)??te[0])},[M,I,b]);const he=parseFloat(i),ne=(he||0)>d.balance,q=(Vs=M==null?void 0:M[xi[v]])==null?void 0:Vs.find(ze=>ze.symbol===d.symbol),Y=(Mn=M==null?void 0:M[xi[b]])==null?void 0:Mn.find(ze=>ze.symbol===f.symbol),ae=(Sa=X==null?void 0:X.find(ze=>ze.chain===v))==null?void 0:Sa.address,de=(ja=X==null?void 0:X.find(ze=>ze.chain===b))==null?void 0:ja.address,_e=q&&Y&&ae&&de&&he>0?{fromChain:xi[v],toChain:xi[b],fromToken:q.address,toToken:Y.address,fromAmount:la(i,d.decimals),fromAddress:ae,toAddress:de,slippage:.005}:null,k=ya(i,500),V=parseFloat(k),K=Qp[v],W=Qp[b],ye=q&&Y&&ae&&de&&K&&W&&V>0?{user:ae,recipient:de,originChainId:K,destinationChainId:W,originCurrency:q.address,destinationCurrency:Y.address,amount:la(k,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:ge}=C_(ye),Le=(ns=(Qs=ge==null?void 0:ge.appCommission)==null?void 0:Qs.usd)==null?void 0:ns.toString(),Tt=(wa=ge==null?void 0:ge.appCommission)==null?void 0:wa.inToken,et=ge?ge.details.currencyOut.amountFormatted:w?Je(Jo(w.estimate.toAmount,w.action.toToken.decimals),8):"0";function xa(ze){y(ze),ze===b&&j(Fd.find(Xt=>Xt!==ze)??b)}function ts(){_e&&(R(null),$(_e,{onSuccess:ze=>N(ze),onError:ze=>R(ze instanceof Error?ze.message:"Не удалось получить котировку")}))}function Gs(){w&&(R(null),J({provider:"jumper",fromChain:w.action.fromChainId,toChain:w.action.toChainId,fromToken:w.action.fromToken.address,toToken:w.action.toToken.address,fromAmount:w.action.fromAmount,fromAddress:w.action.fromAddress,toAddress:w.action.toAddress,acceptedMinOut:w.estimate.toAmountMin},{onSuccess:()=>{l.invalidateQueries({queryKey:["wallet","balance",v]}),l.invalidateQueries({queryKey:["wallet","balance",b]}),l.invalidateQueries({queryKey:["wallet","portfolio"]}),N(null),a(le.WALLET_CHAIN.replace(":chain",b.toLowerCase()))},onError:ze=>R(ze instanceof Error?ze.message:"Не удалось выполнить бридж")}))}return O||!M?o.jsx("div",{className:Vp.form,children:o.jsx(On,{fullscreen:!0,label:"Загрузка"})}):o.jsxs("div",{className:Vp.form,children:[o.jsx(Gp,{label:"ИЗ",value:v,onChange:xa,options:Fd}),o.jsx(au,{mode:"from",token:d,tokenOptions:ce,amount:i,usd:r,onAmountChange:m,onSetPercent:g,onTokenChange:h,hideNetworkSelect:!0}),o.jsx(Gp,{label:"В",value:b,onChange:j,options:Fd.filter(ze=>ze!==v)}),o.jsx(au,{mode:"to",token:f,tokenOptions:te,amount:et,onTokenChange:p,hideNetworkSelect:!0}),o.jsx(hC,{serviceFee:Le,serviceFeeToken:Tt}),o.jsx(In,{label:P?"Загрузка...":"Подтвердить бридж",onClick:ts,disabled:!_e||P}),w&&o.jsx(LC,{quote:w,fromAmountHuman:i,insufficientBalance:ne,isExecuting:ue,onConfirm:Gs,onClose:()=>N(null)}),C&&o.jsx(es,{status:"error",message:C,onClose:()=>R(null),duration:5e3})]})}const $C="_content_1pe49_1",UC={content:$C};function HC(){return o.jsxs(o.Fragment,{children:[o.jsx(eg,{active:"bridge"}),o.jsx("div",{className:UC.content,children:o.jsx(BC,{})})]})}var w2=function(a,l){return w2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(i[d]=r[d])},w2(a,l)};function qC(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");w2(a,l);function i(){this.constructor=a}a.prototype=l===null?Object.create(l):(i.prototype=l.prototype,new i)}var $t=function(){return $t=Object.assign||function(l){for(var i,r=1,d=arguments.length;r<d;r++){i=arguments[r];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(l[f]=i[f])}return l},$t.apply(this,arguments)};var Gd,Pp;function FC(){if(Pp)return Gd;Pp=1;var a=!1,l,i,r,d,f,m,g,h,p,v,y,b,j,w,N;function C(){if(!a){a=!0;var M=navigator.userAgent,O=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(M),H=/(Mac OS X)|(Windows)|(Linux)/.exec(M);if(b=/\b(iPhone|iP[ao]d)/.exec(M),j=/\b(iP[ao]d)/.exec(M),v=/Android/i.exec(M),w=/FBAN\/\w+;/i.exec(M),N=/Mobile/i.exec(M),y=!!/Win64/.exec(M),O){l=O[1]?parseFloat(O[1]):O[5]?parseFloat(O[5]):NaN,l&&document&&document.documentMode&&(l=document.documentMode);var I=/(?:Trident\/(\d+.\d+))/.exec(M);m=I?parseFloat(I[1])+4:l,i=O[2]?parseFloat(O[2]):NaN,r=O[3]?parseFloat(O[3]):NaN,d=O[4]?parseFloat(O[4]):NaN,d?(O=/(?:Chrome\/(\d+\.\d+))/.exec(M),f=O&&O[1]?parseFloat(O[1]):NaN):f=NaN}else l=i=r=f=d=NaN;if(H){if(H[1]){var X=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(M);g=X?parseFloat(X[1].replace("_",".")):!0}else g=!1;h=!!H[2],p=!!H[3]}else g=h=p=!1}}var R={ie:function(){return C()||l},ieCompatibilityMode:function(){return C()||m>l},ie64:function(){return R.ie()&&y},firefox:function(){return C()||i},opera:function(){return C()||r},webkit:function(){return C()||d},safari:function(){return R.webkit()},chrome:function(){return C()||f},windows:function(){return C()||h},osx:function(){return C()||g},linux:function(){return C()||p},iphone:function(){return C()||b},mobile:function(){return C()||b||j||v||N},nativeApp:function(){return C()||w},android:function(){return C()||v},ipad:function(){return C()||j}};return Gd=R,Gd}var Vd,Ip;function GC(){if(Ip)return Vd;Ip=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),l={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return Vd=l,Vd}var Qd,Yp;function VC(){if(Yp)return Qd;Yp=1;var a=GC(),l;a.canUseDOM&&(l=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 i(r,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,m=f in document;if(!m){var g=document.createElement("div");g.setAttribute(f,"return;"),m=typeof g[f]=="function"}return!m&&l&&r==="wheel"&&(m=document.implementation.hasFeature("Events.wheel","3.0")),m}return Qd=i,Qd}var Pd,Xp;function QC(){if(Xp)return Pd;Xp=1;var a=FC(),l=VC(),i=10,r=40,d=800;function f(m){var g=0,h=0,p=0,v=0;return"detail"in m&&(h=m.detail),"wheelDelta"in m&&(h=-m.wheelDelta/120),"wheelDeltaY"in m&&(h=-m.wheelDeltaY/120),"wheelDeltaX"in m&&(g=-m.wheelDeltaX/120),"axis"in m&&m.axis===m.HORIZONTAL_AXIS&&(g=h,h=0),p=g*i,v=h*i,"deltaY"in m&&(v=m.deltaY),"deltaX"in m&&(p=m.deltaX),(p||v)&&m.deltaMode&&(m.deltaMode==1?(p*=r,v*=r):(p*=d,v*=d)),p&&!g&&(g=p<1?-1:1),v&&!h&&(h=v<1?-1:1),{spinX:g,spinY:h,pixelX:p,pixelY:v}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":l("wheel")?"wheel":"mousewheel"},Pd=f,Pd}var Id,Kp;function PC(){return Kp||(Kp=1,Id=QC()),Id}var IC=PC();const YC=O3(IC);function XC(a,l,i,r,d,f){f===void 0&&(f=0);var m=Hi(a,l,f),g=m.width,h=m.height,p=Math.min(g,i),v=Math.min(h,r);return p>v*d?{width:v*d,height:v}:{width:p,height:p/d}}function KC(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function Vo(a,l,i,r,d){d===void 0&&(d=0);var f=Hi(l.width,l.height,d),m=f.width,g=f.height;return{x:Zp(a.x,m,i.width,r),y:Zp(a.y,g,i.height,r)}}function Zp(a,l,i,r){var d=Math.abs(l*r/2-i/2);return du(a,-d,d)}function Wp(a,l){return Math.sqrt(Math.pow(a.y-l.y,2)+Math.pow(a.x-l.x,2))}function Jp(a,l){return Math.atan2(l.y-a.y,l.x-a.x)*180/Math.PI}function ZC(a,l,i,r,d,f,m){f===void 0&&(f=0),m===void 0&&(m=!0);var g=m?WC:JC,h=Hi(l.width,l.height,f),p=Hi(l.naturalWidth,l.naturalHeight,f),v={x:g(100,((h.width-i.width/d)/2-a.x/d)/h.width*100),y:g(100,((h.height-i.height/d)/2-a.y/d)/h.height*100),width:g(100,i.width/h.width*100/d),height:g(100,i.height/h.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)),j=p.width>=p.height*r,w=j?{width:Math.round(b*r),height:b}:{width:y,height:Math.round(y/r)},N=$t($t({},w),{x:Math.round(g(p.width-w.width,v.x*p.width/100)),y:Math.round(g(p.height-w.height,v.y*p.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:N}}function WC(a,l){return Math.min(a,Math.max(0,l))}function JC(a,l){return l}function eE(a,l,i,r,d,f){var m=Hi(l.width,l.height,i),g=du(r.width/m.width*(100/a.width),d,f),h={x:g*m.width/2-r.width/2-m.width*g*(a.x/100),y:g*m.height/2-r.height/2-m.height*g*(a.y/100)};return{crop:h,zoom:g}}function tE(a,l,i){var r=KC(l);return i.height>i.width?i.height/(a.height*r):i.width/(a.width*r)}function nE(a,l,i,r,d,f){i===void 0&&(i=0);var m=Hi(l.naturalWidth,l.naturalHeight,i),g=du(tE(a,l,r),d,f),h=r.height>r.width?r.height/a.height:r.width/a.width,p={x:((m.width-a.width)/2-a.x)*h,y:((m.height-a.height)/2-a.y)*h};return{crop:p,zoom:g}}function e3(a,l){return{x:(l.x+a.x)/2,y:(l.y+a.y)/2}}function aE(a){return a*Math.PI/180}function Hi(a,l,i){var r=aE(i);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*l),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*l)}}function du(a,l,i){return Math.min(Math.max(a,l),i)}function Dc(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return a.filter(function(i){return typeof i=="string"&&i.length>0}).join(" ").trim()}var sE=`.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;
}
`,lE=1,iE=3,oE=1,rE=(function(a){qC(l,a);function l(){var i=a!==null&&a.apply(this,arguments)||this;return i.cropperRef=S.createRef(),i.imageRef=S.createRef(),i.videoRef=S.createRef(),i.containerPosition={x:0,y:0},i.containerRef=null,i.styleRef=null,i.containerRect=null,i.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},i.dragStartPosition={x:0,y:0},i.dragStartCrop={x:0,y:0},i.gestureZoomStart=0,i.gestureRotationStart=0,i.isTouching=!1,i.lastPinchDistance=0,i.lastPinchRotation=0,i.rafDragTimeout=null,i.rafPinchTimeout=null,i.wheelTimer=null,i.currentDoc=typeof document<"u"?document:null,i.currentWindow=typeof window<"u"?window:null,i.resizeObserver=null,i.previousCropSize=null,i.isInitialized=!1,i.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},i.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!i.containerRef)){var r=!0;i.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}i.computeSizes()}),i.resizeObserver.observe(i.containerRef)}},i.preventZoomSafari=function(r){return r.preventDefault()},i.cleanEvents=function(){i.currentDoc&&(i.currentDoc.removeEventListener("mousemove",i.onMouseMove),i.currentDoc.removeEventListener("mouseup",i.onDragStopped),i.currentDoc.removeEventListener("touchmove",i.onTouchMove),i.currentDoc.removeEventListener("touchend",i.onDragStopped),i.currentDoc.removeEventListener("gesturechange",i.onGestureChange),i.currentDoc.removeEventListener("gestureend",i.onGestureEnd),i.currentDoc.removeEventListener("scroll",i.onScroll))},i.clearScrollEvent=function(){i.containerRef&&i.containerRef.removeEventListener("wheel",i.onWheel),i.wheelTimer&&clearTimeout(i.wheelTimer)},i.onMediaLoad=function(){var r=i.computeSizes();r&&(i.previousCropSize=r,i.emitCropData(),i.setInitialCrop(r),i.isInitialized=!0),i.props.onMediaLoaded&&i.props.onMediaLoaded(i.mediaSize)},i.setInitialCrop=function(r){if(i.props.initialCroppedAreaPercentages){var d=eE(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=d.crop,m=d.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(m)}else if(i.props.initialCroppedAreaPixels){var g=nE(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=g.crop,m=g.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(m)}},i.computeSizes=function(){var r,d,f,m,g,h,p=i.imageRef.current||i.videoRef.current;if(p&&i.containerRef){i.containerRect=i.containerRef.getBoundingClientRect(),i.saveContainerPosition();var v=i.containerRect.width/i.containerRect.height,y=((r=i.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=i.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,b=((f=i.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((m=i.videoRef.current)===null||m===void 0?void 0:m.videoHeight)||0,j=p.offsetWidth<y||p.offsetHeight<b,w=y/b,N=void 0;if(j)switch(i.state.mediaObjectFit){default:case"contain":N=v>w?{width:i.containerRect.height*w,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/w};break;case"horizontal-cover":N={width:i.containerRect.width,height:i.containerRect.width/w};break;case"vertical-cover":N={width:i.containerRect.height*w,height:i.containerRect.height};break}else N={width:p.offsetWidth,height:p.offsetHeight};i.mediaSize=$t($t({},N),{naturalWidth:y,naturalHeight:b}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var C=i.props.cropSize?i.props.cropSize:XC(i.mediaSize.width,i.mediaSize.height,i.containerRect.width,i.containerRect.height,i.props.aspect,i.props.rotation);return(((g=i.state.cropSize)===null||g===void 0?void 0:g.height)!==C.height||((h=i.state.cropSize)===null||h===void 0?void 0:h.width)!==C.width)&&i.props.onCropSizeChange&&i.props.onCropSizeChange(C),i.setState({cropSize:C},i.recomputeCropPosition),i.props.setCropSize&&i.props.setCropSize(C),C}},i.saveContainerPosition=function(){if(i.containerRef){var r=i.containerRef.getBoundingClientRect();i.containerPosition={x:r.left,y:r.top}}},i.onMouseDown=function(r){i.currentDoc&&(r.preventDefault(),i.currentDoc.addEventListener("mousemove",i.onMouseMove),i.currentDoc.addEventListener("mouseup",i.onDragStopped),i.saveContainerPosition(),i.onDragStart(l.getMousePoint(r)))},i.onMouseMove=function(r){return i.onDrag(l.getMousePoint(r))},i.onScroll=function(r){i.currentDoc&&(r.preventDefault(),i.saveContainerPosition())},i.onTouchStart=function(r){i.currentDoc&&(i.isTouching=!0,!(i.props.onTouchRequest&&!i.props.onTouchRequest(r))&&(i.currentDoc.addEventListener("touchmove",i.onTouchMove,{passive:!1}),i.currentDoc.addEventListener("touchend",i.onDragStopped),i.saveContainerPosition(),r.touches.length===2?i.onPinchStart(r):r.touches.length===1&&i.onDragStart(l.getTouchPoint(r.touches[0]))))},i.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?i.onPinchMove(r):r.touches.length===1&&i.onDrag(l.getTouchPoint(r.touches[0]))},i.onGestureStart=function(r){i.currentDoc&&(r.preventDefault(),i.currentDoc.addEventListener("gesturechange",i.onGestureChange),i.currentDoc.addEventListener("gestureend",i.onGestureEnd),i.gestureZoomStart=i.props.zoom,i.gestureRotationStart=i.props.rotation)},i.onGestureChange=function(r){if(r.preventDefault(),!i.isTouching){var d=l.getMousePoint(r),f=i.gestureZoomStart-1+r.scale;if(i.setNewZoom(f,d,{shouldUpdatePosition:!0}),i.props.onRotationChange){var m=i.gestureRotationStart+r.rotation;i.props.onRotationChange(m)}}},i.onGestureEnd=function(r){i.cleanEvents()},i.onDragStart=function(r){var d,f,m=r.x,g=r.y;i.dragStartPosition={x:m,y:g},i.dragStartCrop=$t({},i.props.crop),(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d)},i.onDrag=function(r){var d=r.x,f=r.y;i.currentWindow&&(i.rafDragTimeout&&i.currentWindow.cancelAnimationFrame(i.rafDragTimeout),i.rafDragTimeout=i.currentWindow.requestAnimationFrame(function(){if(i.state.cropSize&&!(d===void 0||f===void 0)){var m=d-i.dragStartPosition.x,g=f-i.dragStartPosition.y,h={x:i.dragStartCrop.x+m,y:i.dragStartCrop.y+g},p=i.props.restrictPosition?Vo(h,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):h;i.props.onCropChange(p)}}))},i.onDragStopped=function(){var r,d;i.isTouching=!1,i.cleanEvents(),i.emitCropData(),(d=(r=i.props).onInteractionEnd)===null||d===void 0||d.call(r)},i.onWheel=function(r){if(i.currentWindow&&!(i.props.onWheelRequest&&!i.props.onWheelRequest(r))){r.preventDefault();var d=l.getMousePoint(r),f=YC(r).pixelY,m=i.props.zoom-f*i.props.zoomSpeed/200;i.setNewZoom(m,d,{shouldUpdatePosition:!0}),i.state.hasWheelJustStarted||i.setState({hasWheelJustStarted:!0},function(){var g,h;return(h=(g=i.props).onInteractionStart)===null||h===void 0?void 0:h.call(g)}),i.wheelTimer&&clearTimeout(i.wheelTimer),i.wheelTimer=i.currentWindow.setTimeout(function(){return i.setState({hasWheelJustStarted:!1},function(){var g,h;return(h=(g=i.props).onInteractionEnd)===null||h===void 0?void 0:h.call(g)})},250)}},i.getPointOnContainer=function(r,d){var f=r.x,m=r.y;if(!i.containerRect)throw new Error("The Cropper is not mounted");return{x:i.containerRect.width/2-(f-d.x),y:i.containerRect.height/2-(m-d.y)}},i.getPointOnMedia=function(r){var d=r.x,f=r.y,m=i.props,g=m.crop,h=m.zoom;return{x:(d+g.x)/h,y:(f+g.y)/h}},i.setNewZoom=function(r,d,f){var m=f===void 0?{}:f,g=m.shouldUpdatePosition,h=g===void 0?!0:g;if(!(!i.state.cropSize||!i.props.onZoomChange)){var p=du(r,i.props.minZoom,i.props.maxZoom);if(h){var v=i.getPointOnContainer(d,i.containerPosition),y=i.getPointOnMedia(v),b={x:y.x*p-v.x,y:y.y*p-v.y},j=i.props.restrictPosition?Vo(b,i.mediaSize,i.state.cropSize,p,i.props.rotation):b;i.props.onCropChange(j)}i.props.onZoomChange(p)}},i.getCropData=function(){if(!i.state.cropSize)return null;var r=i.props.restrictPosition?Vo(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop;return ZC(r,i.mediaSize,i.state.cropSize,i.getAspect(),i.props.zoom,i.props.rotation,i.props.restrictPosition)},i.emitCropData=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropComplete&&i.props.onCropComplete(d,f),i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.emitCropAreaChange=function(){var r=i.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;i.props.onCropAreaChange&&i.props.onCropAreaChange(d,f)}},i.recomputeCropPosition=function(){var r,d;if(i.state.cropSize){var f=i.props.crop;if(i.isInitialized&&(!((r=i.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=i.previousCropSize)===null||d===void 0)&&d.height)){var m=Math.abs(i.previousCropSize.width-i.state.cropSize.width)>1e-6||Math.abs(i.previousCropSize.height-i.state.cropSize.height)>1e-6;if(m){var g=i.state.cropSize.width/i.previousCropSize.width,h=i.state.cropSize.height/i.previousCropSize.height;f={x:i.props.crop.x*g,y:i.props.crop.y*h}}}var p=i.props.restrictPosition?Vo(f,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):f;i.previousCropSize=i.state.cropSize,i.props.onCropChange(p),i.emitCropData()}},i.onKeyDown=function(r){var d,f,m=i.props,g=m.crop,h=m.onCropChange,p=m.keyboardStep,v=m.zoom,y=m.rotation,b=p;if(i.state.cropSize){r.shiftKey&&(b*=.2);var j=$t({},g);switch(r.key){case"ArrowUp":j.y-=b,r.preventDefault();break;case"ArrowDown":j.y+=b,r.preventDefault();break;case"ArrowLeft":j.x-=b,r.preventDefault();break;case"ArrowRight":j.x+=b,r.preventDefault();break;default:return}i.props.restrictPosition&&(j=Vo(j,i.mediaSize,i.state.cropSize,v,y)),r.repeat||(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d),h(j)}},i.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}i.emitCropData(),(f=(d=i.props).onInteractionEnd)===null||f===void 0||f.call(d)},i}return l.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=sE,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))},l.prototype.componentWillUnmount=function(){var i,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(i=this.resizeObserver)===null||i===void 0||i.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())},l.prototype.componentDidUpdate=function(i){var r,d,f,m,g,h,p,v,y;i.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):i.aspect!==this.props.aspect?this.computeSizes():i.objectFit!==this.props.objectFit?this.computeSizes():i.zoom!==this.props.zoom?this.recomputeCropPosition():((r=i.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=i.cropSize)===null||f===void 0?void 0:f.width)!==((m=this.props.cropSize)===null||m===void 0?void 0:m.width)?this.computeSizes():(((g=i.crop)===null||g===void 0?void 0:g.x)!==((h=this.props.crop)===null||h===void 0?void 0:h.x)||((p=i.crop)===null||p===void 0?void 0:p.y)!==((v=this.props.crop)===null||v===void 0?void 0:v.y))&&this.emitCropAreaChange(),i.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),i.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)},l.prototype.getAspect=function(){var i=this.props,r=i.cropSize,d=i.aspect;return r?r.width/r.height:d},l.prototype.getObjectFit=function(){var i,r,d,f;if(this.props.objectFit==="cover"){var m=this.imageRef.current||this.videoRef.current;if(m&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var g=this.containerRect.width/this.containerRect.height,h=((i=this.imageRef.current)===null||i===void 0?void 0:i.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=h/p;return v<g?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},l.prototype.onPinchStart=function(i){var r=l.getTouchPoint(i.touches[0]),d=l.getTouchPoint(i.touches[1]);this.lastPinchDistance=Wp(r,d),this.lastPinchRotation=Jp(r,d),this.onDragStart(e3(r,d))},l.prototype.onPinchMove=function(i){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=l.getTouchPoint(i.touches[0]),f=l.getTouchPoint(i.touches[1]),m=e3(d,f);this.onDrag(m),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var g=Wp(d,f),h=r.props.zoom*(g/r.lastPinchDistance);r.setNewZoom(h,m,{shouldUpdatePosition:!1}),r.lastPinchDistance=g;var p=Jp(d,f),v=r.props.rotation+(p-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(v),r.lastPinchRotation=p})}},l.prototype.render=function(){var i=this,r,d=this.props,f=d.image,m=d.video,g=d.mediaProps,h=d.cropperProps,p=d.transform,v=d.crop,y=v.x,b=v.y,j=d.rotation,w=d.zoom,N=d.cropShape,C=d.showGrid,R=d.roundCropAreaPixels,M=d.style,O=M.containerStyle,H=M.cropAreaStyle,I=M.mediaStyle,X=d.classes,$=X.containerClassName,P=X.cropAreaClassName,J=X.mediaClassName,ue=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return S.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(ce){return i.containerRef=ce},"data-testid":"container",style:O,className:Dc("reactEasyCrop_Container",$)},f?S.createElement("img",$t({alt:"",className:Dc("reactEasyCrop_Image",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",J)},g,{src:f,ref:this.imageRef,style:$t($t({},I),{transform:p||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(j,"deg) scale(").concat(w,")")}),onLoad:this.onMediaLoad})):m&&S.createElement("video",$t({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Dc("reactEasyCrop_Video",ue==="contain"&&"reactEasyCrop_Contain",ue==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",ue==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",J)},g,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:$t($t({},I),{transform:p||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(j,"deg) scale(").concat(w,")")}),controls:!1}),(Array.isArray(m)?m:[{src:m}]).map(function(re){return S.createElement("source",$t({key:re.src},re))})),this.state.cropSize&&S.createElement("div",$t({ref:this.cropperRef,style:$t($t({},H),{width:R?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:R?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Dc("reactEasyCrop_CropArea",N==="round"&&"reactEasyCrop_CropAreaRound",C&&"reactEasyCrop_CropAreaGrid",P)},h)))},l.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:iE,minZoom:lE,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:oE},l.getMousePoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},l.getTouchPoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},l})(S.Component);function cE(a){return new Promise((l,i)=>{const r=new Image;r.onload=()=>l(r),r.onerror=()=>i(new Error("Не удалось загрузить изображение")),r.src=a})}async function uE(a,l,i=512){const r=await cE(a),d=document.createElement("canvas");d.width=i,d.height=i;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,l.x,l.y,l.width,l.height,0,0,i,i),new Promise((m,g)=>{d.toBlob(h=>{h?m(h):g(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const dE="_backdrop_1cfz6_1",fE="_card_1cfz6_12",hE="_title_1cfz6_25",mE="_cropArea_1cfz6_31",pE="_controls_1cfz6_40",_E="_zoom_1cfz6_52",gE="_actions_1cfz6_57",vE="_error_1cfz6_63",Ts={backdrop:dE,card:fE,title:hE,cropArea:mE,controls:pE,zoom:_E,actions:gE,error:vE};function yE({imageSrc:a,isSaving:l,onCancel:i,onConfirm:r}){const[d,f]=S.useState({x:0,y:0}),[m,g]=S.useState(1),[h,p]=S.useState(null),[v,y]=S.useState(null),b=S.useCallback((w,N)=>{p(N)},[]);S.useEffect(()=>{const w=N=>{N.key==="Escape"&&!l&&i()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[i,l]);const j=async()=>{if(h){y(null);try{const w=await uE(a,h);await r(w)}catch{y("Не удалось обрезать изображение")}}};return o.jsx("div",{className:Ts.backdrop,onClick:l?void 0:i,children:o.jsxs("div",{className:Ts.card,onClick:w=>w.stopPropagation(),children:[o.jsx("h3",{className:Ts.title,children:"Выберите область аватара"}),o.jsx("div",{className:Ts.cropArea,children:o.jsx(rE,{image:a,crop:d,zoom:m,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:g,onCropComplete:b})}),o.jsxs("div",{className:Ts.controls,children:[o.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),o.jsx("input",{id:"avatar-zoom",className:Ts.zoom,type:"range",min:1,max:3,step:.01,value:m,onChange:w=>g(Number(w.target.value))})]}),v&&o.jsx("span",{className:Ts.error,children:v}),o.jsxs("div",{className:Ts.actions,children:[o.jsx(Rn,{variant:"ghost",onClick:i,disabled:l,children:"Отмена"}),o.jsx(Rn,{variant:"primary",onClick:j,disabled:l||!h,children:l?"Загрузка...":"Сохранить"})]})]})})}const bE="_col_nam4n_1",xE="_avatar_nam4n_10",SE="_avatarImg_nam4n_31",jE="_error_nam4n_38",wE="_overlay_nam4n_44",NE="_addPhoto_nam4n_69",vi={col:bE,avatar:xE,avatarImg:SE,error:jE,overlay:wE,addPhoto:NE};function CE(a){return new Promise((l,i)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");l(f>=0?d.slice(f+1):d)},r.onerror=()=>i(r.error),r.readAsDataURL(a)})}function EE(){const{data:a}=pn(),{mutateAsync:l,isPending:i}=v7(),r=S.useRef(null),[d,f]=S.useState(null),[m,g]=S.useState(!1),[h,p]=S.useState(null),v=(a==null?void 0:a.avatar_link)??null,y=v&&!m;S.useEffect(()=>{g(!1)},[v]),S.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const b=()=>{var C;i||(C=r.current)==null||C.click()},j=C=>{var M;const R=(M=C.target.files)==null?void 0:M[0];C.target.value="",R&&(f(null),p(URL.createObjectURL(R)))},w=()=>{h&&URL.revokeObjectURL(h),p(null)},N=async C=>{try{const R=await CE(C);await l({photo_base64:R,decoded_bytes:String(C.size)}),w()}catch{f("Не удалось загрузить фото"),w()}};return o.jsxs("div",{className:vi.col,children:[o.jsxs("div",{className:vi.avatar,onClick:b,children:[y?o.jsx("img",{src:v,alt:"avatar",className:vi.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",v),g(!0)}}):o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"8",r:"4"}),o.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),o.jsx("div",{className:vi.overlay,children:o.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.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"}),o.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),o.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:j,hidden:!0}),o.jsx("div",{className:vi.addPhoto,children:o.jsx(Rn,{variant:"ghost",onClick:b,disabled:i,children:i?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&o.jsx("span",{className:vi.error,children:d}),h&&o.jsx(yE,{imageSrc:h,isSaving:i,onCancel:w,onConfirm:N})]})}const TE="_card_17od5_1",kE="_title_17od5_8",RE="_actions_17od5_17",Yd={card:TE,title:kE,actions:RE};function El({title:a,children:l,actions:i}){return o.jsxs("div",{className:Yd.card,children:[o.jsx("div",{className:Yd.title,children:a}),l,i&&o.jsx("div",{className:Yd.actions,children:i})]})}function AE(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}const LE="_profileTop_1107i_2",OE="_userInfo_1107i_6",ME="_userName_1107i_26",zE="_userBalance_1107i_33",Bc={profileTop:LE,userInfo:OE,userName:ME,userBalance:zE};function DE(){const{data:a}=pn(),{data:l}=uu(),i=a?g7(a):"";return o.jsxs("div",{className:Bc.profileTop,children:[o.jsx(EE,{}),o.jsxs("div",{className:Bc.userInfo,children:[o.jsx("span",{className:Bc.userName,children:i}),o.jsx("span",{className:Bc.userBalance,children:AE(l==null?void 0:l.totalUsd)})]})]})}const BE="_menu_nxjwi_1",$E="_summary_nxjwi_7",UE="_nav_nxjwi_11",HE="_item_nxjwi_17",qE="_itemActive_nxjwi_35",FE="_select_nxjwi_42",hl={menu:BE,summary:$E,nav:UE,item:HE,itemActive:qE,select:FE},Xc=[{to:le.PROFILE_DETAILS,label:"Данные профиля"},{to:le.PROFILE_SECURITY,label:"Безопасность"},{to:le.PROFILE_TRANSACTIONS,label:"Транзакции"},{to:le.PROFILE_MNEMONIC,label:"Мнемоническая фраза"}],GE=Xc.map(({to:a,label:l})=>({value:a,label:l}));function VE(){var r;const a=Ln(),{pathname:l}=mn(),i=((r=Xc.find(d=>l.startsWith(d.to)))==null?void 0:r.to)??Xc[0].to;return o.jsxs("aside",{className:hl.menu,children:[o.jsx("div",{className:hl.summary,children:o.jsx(DE,{})}),o.jsx("div",{className:hl.select,children:o.jsx(z2,{value:i,options:GE,onChange:d=>a(d),label:"Раздел профиля"})}),o.jsx("nav",{className:hl.nav,children:Xc.map(({to:d,label:f})=>o.jsx($i,{to:d,className:({isActive:m})=>m?`${hl.item} ${hl.itemActive}`:hl.item,children:f},d))})]})}function QE(a){const l=y7(),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,g]=S.useState(null);S.useEffect(()=>{a!=null&&(r(a),f(a))},[a]);function h(v){r(v.replace(/[^\d+\s()-]/g,""))}function p(){const v=i.trim();v===d||l.isPending||l.mutate(v,{onSuccess:()=>{f(v),g({status:"success",message:"Номер телефона обновлён"})},onError:()=>{g({status:"error",message:"Не удалось обновить номер телефона"})}})}return{phone:i,onPhoneChange:h,onPhoneBlur:p,notification:m,dismissNotification:()=>g(null)}}const PE="_grid2_1y7u3_1",IE="_grid1_1y7u3_7",ji={grid2:PE,grid1:IE};function YE({data:a}){const l=v_(a),{phone:i,onPhoneChange:r,onPhoneBlur:d,notification:f,dismissNotification:m}=QE(a.phone);return o.jsxs(o.Fragment,{children:[o.jsx(El,{title:"Личные данные",children:o.jsxs("div",{className:ji.grid2,children:[o.jsx(ke,{label:"Полное ФИО",value:l,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),o.jsx(ke,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),o.jsx(ke,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),o.jsx(ke,{label:"Номер телефона",value:i,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),o.jsx(El,{title:"Верификация",children:o.jsxs("div",{className:ji.grid2,children:[o.jsx(ke,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(ke,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})}),f&&o.jsx(es,{status:f.status,message:f.message,onClose:m,duration:5e3})]})}function XE({data:a}){const l=a.legal_entity;return l?o.jsxs(o.Fragment,{children:[o.jsx(El,{title:"Данные организации",children:o.jsxs("div",{className:ji.grid2,children:[o.jsx(ke,{label:"Наименование",value:l.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),o.jsx(ke,{label:"Краткое наименование",value:l.short_name??"",placeholder:"Ромашка",readOnly:!0}),o.jsx(ke,{label:"ИНН",value:l.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),o.jsx(ke,{label:"ОГРН",value:l.ogrn??"",placeholder:"1027700132195",readOnly:!0}),o.jsx(ke,{label:"КПП",value:l.kpp??"",placeholder:"770801001",readOnly:!0}),o.jsx(ke,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),o.jsx(El,{title:"Адреса",children:o.jsxs("div",{className:ji.grid2,children:[o.jsx(ke,{label:"Юридический адрес",value:l.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),o.jsx(ke,{label:"Фактический адрес",value:l.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),o.jsx(El,{title:"Контакты и верификация",children:o.jsxs("div",{className:ji.grid2,children:[o.jsx(ke,{label:"Контактное лицо",value:l.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),o.jsx(ke,{label:"Контактный телефон",value:l.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),o.jsx(ke,{label:"Статус",value:l.status??"",placeholder:"active",readOnly:!0}),o.jsx(ke,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function KE(){const{data:a}=pn();return a?g_(a)?o.jsx(XE,{data:a}):o.jsx(YE,{data:a}):null}function ZE(){const{data:a}=cu();return o.jsx(El,{title:"Безопасность",children:o.jsx("div",{className:ji.grid1,children:a==null?void 0:a.map(({chain:l,address:i})=>o.jsx(ke,{label:`Адрес ${l}`,readOnly:!0,icon:"lock",value:i,placeholder:"—"},l))})})}const WE="_kycBanner_2th6o_1",JE={kycBanner:WE};function eT(){const{data:a}=pn();return!a||a.kyc_verified?null:o.jsx("div",{className:JE.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"})}const tT="_page_wlsc9_1",nT="_menu_wlsc9_12",aT="_content_wlsc9_16",Xd={page:tT,menu:nT,content:aT};function sT(){return o.jsxs("div",{className:Xd.page,children:[o.jsx("div",{className:Xd.menu,children:o.jsx(VE,{})}),o.jsxs("main",{className:Xd.content,children:[o.jsx(eT,{}),o.jsx(iu,{})]})]})}function lT(){const{isLoading:a}=pn();return a?o.jsx(On,{fullscreen:!0,label:"Загрузка"}):o.jsx(KE,{})}function iT(){const{isLoading:a}=pn();return a?o.jsx(On,{fullscreen:!0,label:"Загрузка"}):o.jsx(ZE,{})}const t3=52;function oT(a){const[l,i]=S.useState(!1),[r,d]=S.useState(t3),[f,m]=S.useState(!1),g=S.useRef(null),h=S.useCallback(()=>{g.current&&clearInterval(g.current),d(t3),g.current=setInterval(()=>{d(y=>y<=1?(clearInterval(g.current),i(!0),0):y-1)},1e3)},[]);S.useEffect(()=>(h(),()=>{g.current&&clearInterval(g.current)}),[h]);const p=S.useCallback(()=>{i(y=>y?(h(),!1):(g.current&&clearInterval(g.current),!0))},[h]),v=S.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{m(!0),setTimeout(()=>m(!1),1500)})},[a]);return{hidden:l,countdown:r,copied:f,handleHide:p,handleCopy:v}}const rT="_content_o6p8v_1",cT="_titleRow_o6p8v_6",uT="_title_o6p8v_6",dT="_titleButtons_o6p8v_19",fT="_btnFixed_o6p8v_26",hT="_subtitle_o6p8v_34",mT="_countdown_o6p8v_42",pT="_seedGrid_o6p8v_47",_T="_seedCard_o6p8v_54",gT="_seedNum_o6p8v_73",vT="_seedWord_o6p8v_80",yT="_seedWordHidden_o6p8v_88",bT="_warning_o6p8v_93",xT="_warningIcon_o6p8v_101",ST="_warningText_o6p8v_107",jT="_profileLinkRow_o6p8v_115",wT="_profileLink_o6p8v_115",zt={content:rT,titleRow:cT,title:uT,titleButtons:dT,btnFixed:fT,subtitle:hT,countdown:mT,seedGrid:pT,seedCard:_T,seedNum:gT,seedWord:vT,seedWordHidden:yT,warning:bT,warningIcon:xT,warningText:ST,profileLinkRow:jT,profileLink:wT};function tg({words:a,showProfileLink:l=!0}){const{hidden:i,countdown:r,copied:d,handleHide:f,handleCopy:m}=oT(a);return o.jsxs("div",{className:zt.content,children:[o.jsxs("div",{className:zt.titleRow,children:[o.jsx("h1",{className:zt.title,children:"СИД ФРАЗА"}),o.jsxs("div",{className:zt.titleButtons,children:[o.jsx("div",{className:zt.btnFixed,children:o.jsx(Rn,{variant:"outline",onClick:f,children:i?"ПОКАЗАТЬ":"СКРЫТЬ"})}),o.jsx("div",{className:zt.btnFixed,children:o.jsx(Rn,{variant:"outline",onClick:m,children:d?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!i&&o.jsxs("div",{className:zt.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",o.jsx("span",{className:zt.countdown,children:r}),"С"]}),o.jsx("div",{className:zt.seedGrid,children:a.map((g,h)=>o.jsxs("div",{className:zt.seedCard,children:[o.jsxs("span",{className:zt.seedNum,children:[h+1,"."]}),o.jsx("span",{className:`${zt.seedWord} ${i?zt.seedWordHidden:""}`,children:i?"•••••":g})]},h))}),o.jsxs("div",{className:zt.warning,children:[o.jsx("span",{className:zt.warningIcon,children:"⚠️"}),o.jsx("p",{className:zt.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),l&&o.jsx("div",{className:zt.profileLinkRow,children:o.jsx(kn,{to:le.PROFILE,className:zt.profileLink,children:"Перейти в профиль"})})]})}const NT="_hint_1wz0k_1",CT={hint:NT};function ET(){const[a,l]=S.useState(!1),{data:i,isLoading:r}=N_(a);if(!a)return o.jsx(El,{title:"Мнемоническая фраза",actions:o.jsx(Rn,{variant:"danger",onClick:()=>l(!0),children:"Показать мнемонику"}),children:o.jsx("p",{className:CT.hint,children:"Сид-фраза из 12 слов для восстановления кошелька. Никогда не передавайте её третьим лицам."})});if(r)return o.jsx(On,{fullscreen:!0,label:"Загрузка"});const d=i?i.split(" "):[];return o.jsx(tg,{words:d,showProfileLink:!1})}function er(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function TT(a){return a?a.length<=16?a:`${a.slice(0,8)}${a.slice(-6)}`:"—"}function P2(a){return Number(a).toLocaleString("ru-RU")}const kT={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},RT="_badge_1d3cq_1",AT="_status_pending_1d3cq_10",LT="_status_completed_1d3cq_15",OT="_status_money_accepted_1d3cq_20",MT="_status_web3_processing_1d3cq_25",zT="_status_web3_hash_error_1d3cq_30",DT="_status_web3_balance_problem_1d3cq_35",BT="_status_receipt_error_1d3cq_40",$T="_status_usdt_delivered_1d3cq_45",n3={badge:RT,status_pending:AT,status_completed:LT,status_money_accepted:OT,status_web3_processing:MT,status_web3_hash_error:zT,status_web3_balance_problem:DT,status_receipt_error:BT,status_usdt_delivered:$T};function ng({status:a}){return o.jsx("span",{className:`${n3.badge} ${n3[`status_${a}`]??""}`,children:kT[a]??a})}const UT={created:"Создан",waiting_usdt:"Ожидание USDT",usdt_underpaid:"USDT недоплачен",usdt_received:"USDT получен",wallet_error:"Ошибка кошелька",payout_processing:"Выплата в обработке",payout_completed:"Выплата завершена",payout_failed:"Выплата не прошла",cancelled:"Отменён",expired:"Истёк"},HT="_badge_lkcaw_1",qT="_status_usdt_received_lkcaw_11",FT="_status_payout_completed_lkcaw_12",GT="_status_created_lkcaw_18",VT="_status_waiting_usdt_lkcaw_23",QT="_status_payout_processing_lkcaw_24",PT="_status_usdt_underpaid_lkcaw_30",IT="_status_wallet_error_lkcaw_31",YT="_status_payout_failed_lkcaw_32",XT="_status_expired_lkcaw_33",KT="_status_cancelled_lkcaw_39",a3={badge:HT,status_usdt_received:qT,status_payout_completed:FT,status_created:GT,status_waiting_usdt:VT,status_payout_processing:QT,status_usdt_underpaid:PT,status_wallet_error:IT,status_payout_failed:YT,status_expired:XT,status_cancelled:KT};function ag({status:a}){return o.jsx("span",{className:`${a3.badge} ${a3[`status_${a}`]??""}`,children:UT[a]??a})}const ZT="_button_1q7wx_1",WT={button:ZT};function JT({value:a}){const[l,i]=S.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})}return o.jsx("button",{className:WT.button,onClick:r,type:"button",title:"Скопировать",children:l?o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"20 6 9 17 4 12"})}):o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),o.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const ek="_item_3k64v_1",tk="_summary_3k64v_8",nk="_summaryLeft_3k64v_25",ak="_opType_3k64v_34",sk="_summaryDate_3k64v_46",lk="_summaryRight_3k64v_53",ik="_amount_3k64v_60",ok="_totalAmount_3k64v_68",rk="_chevron_3k64v_76",ck="_chevronOpen_3k64v_82",uk="_bodyOuter_3k64v_86",dk="_bodyOuterOpen_3k64v_92",fk="_bodyInner_3k64v_96",hk="_body_3k64v_86",mk="_col_3k64v_108",pk="_colTitle_3k64v_113",_k="_infoRow_3k64v_122",gk="_infoRowTotal_3k64v_135",vk="_infoLabel_3k64v_140",yk="_infoValue_3k64v_141",bk="_infoValueRow_3k64v_160",xk="_infoLink_3k64v_166",be={item:ek,summary:tk,summaryLeft:nk,opType:ak,summaryDate:sk,summaryRight:lk,amount:ik,totalAmount:ok,chevron:rk,chevronOpen:ck,bodyOuter:uk,bodyOuterOpen:dk,bodyInner:fk,body:hk,col:mk,colTitle:pk,infoRow:_k,infoRowTotal:gk,infoLabel:vk,infoValue:yk,infoValueRow:bk,infoLink:xk};function Sk({op:a}){const[l,i]=S.useState(!1);return(a.type==="withdrawal"||!a.payment)&&!!a.withdrawal&&a.withdrawal?o.jsx(s3,{isOpen:l,onToggle:()=>i(d=>!d),summary:Nk(a.withdrawal),children:Ck(a.withdrawal)}):a.payment?o.jsx(s3,{isOpen:l,onToggle:()=>i(d=>!d),summary:jk(a.payment),children:wk(a.payment)}):null}function s3({isOpen:a,onToggle:l,summary:i,children:r}){return o.jsxs("div",{className:be.item,children:[o.jsxs("button",{className:be.summary,onClick:l,type:"button","aria-expanded":a,children:[i,o.jsx("svg",{className:`${be.chevron} ${a?be.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:o.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),o.jsx("div",{className:`${be.bodyOuter} ${a?be.bodyOuterOpen:""}`,children:o.jsx("div",{className:be.bodyInner,children:o.jsx("div",{className:be.body,children:r})})})]})}function jk(a){return o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:be.summaryLeft,children:[o.jsx("span",{className:be.opType,children:"Платёж"}),o.jsx("span",{className:be.summaryDate,children:er(a.created_at)}),a.status&&o.jsx(ng,{status:a.status})]}),o.jsx("span",{className:be.summaryRight,children:a.itpay_paid_amount&&o.jsxs("span",{className:be.totalAmount,children:[P2(a.itpay_paid_amount)," ₽"]})})]})}function wk(a){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:be.col,children:[o.jsx("p",{className:be.colTitle,children:"Платёж"}),o.jsxs("div",{className:be.infoRow,children:[o.jsx("span",{className:be.infoLabel,children:"Статус"}),a.status?o.jsx(ng,{status:a.status}):o.jsx("span",{className:be.infoValue,children:"—"})]}),o.jsx(ta,{label:"Оплачено",value:a.itpay_paid_amount||"—"}),o.jsx(ta,{label:"Истекает",value:er(a.expired_date??"")})]}),o.jsxs("div",{className:be.col,children:[o.jsx("p",{className:be.colTitle,children:"Транзакция"}),o.jsxs("div",{className:be.infoRow,children:[o.jsx("span",{className:be.infoLabel,children:"Хэш транзакции"}),o.jsxs("span",{className:be.infoValueRow,children:[o.jsx("span",{className:be.infoValue,title:a.web3_transaction_hash||void 0,children:TT(a.web3_transaction_hash??"")}),a.web3_transaction_hash&&o.jsx(JT,{value:a.web3_transaction_hash})]})]}),o.jsxs("div",{className:be.infoRow,children:[o.jsx("span",{className:be.infoLabel,children:"Чек"}),a.receipt_cloudekassir_link?o.jsx("a",{href:a.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:be.infoLink,children:"Открыть →"}):o.jsx("span",{className:be.infoValue,children:"—"})]})]})]})}function Nk(a){return o.jsxs(o.Fragment,{children:[o.jsxs("span",{className:be.summaryLeft,children:[o.jsx("span",{className:be.opType,children:"Вывод СБП"}),o.jsx("span",{className:be.summaryDate,children:er(a.created_at??"")}),a.status&&o.jsx(ag,{status:a.status})]}),o.jsxs("span",{className:be.summaryRight,children:[a.usdt_amount&&o.jsxs("span",{className:be.amount,children:[a.usdt_amount," USDT"]}),a.rub_amount&&o.jsxs("span",{className:be.totalAmount,children:[P2(a.rub_amount)," ₽"]})]})]})}function Ck(a){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:be.col,children:[o.jsx("p",{className:be.colTitle,children:"Вывод (СБП)"}),o.jsxs("div",{className:be.infoRow,children:[o.jsx("span",{className:be.infoLabel,children:"Статус"}),a.status?o.jsx(ag,{status:a.status}):o.jsx("span",{className:be.infoValue,children:"—"})]}),o.jsx(ta,{label:"Банк",value:a.bank_name||"—"}),o.jsx(ta,{label:"Телефон",value:a.phone||"—"}),o.jsx(ta,{label:"Создан",value:er(a.payout_created_at??a.created_at??"")}),o.jsx(ta,{label:"Завершён",value:er(a.payout_completed_at??"")}),a.provider_error&&o.jsx(ta,{label:"Ошибка",value:a.provider_error})]}),o.jsxs("div",{className:be.col,children:[o.jsx("p",{className:be.colTitle,children:"Суммы"}),o.jsx(ta,{label:"Сумма USDT",value:a.usdt_amount?`${a.usdt_amount} USDT`:"—"}),o.jsx(ta,{label:"Курс обмена",value:a.usdt_exchange_rate?`1 USDT = ${a.usdt_exchange_rate}`:"—"}),o.jsx(ta,{label:"Сервисный сбор",value:a.service_fee_usdt?`${a.service_fee_usdt} USDT`:"—"}),o.jsx(ta,{label:"Сумма к выводу",value:a.rub_amount?`${P2(a.rub_amount)}`:"—",emphasised:!0})]})]})}function ta({label:a,value:l,emphasised:i}){return o.jsxs("div",{className:`${be.infoRow} ${i?be.infoRowTotal:""}`,children:[o.jsx("span",{className:be.infoLabel,children:a}),o.jsx("span",{className:be.infoValue,children:l})]})}const Ek="_list_gxp0d_1",Tk="_empty_gxp0d_9",kk="_statusError_gxp0d_23",Rk="_loadMore_gxp0d_30",Ak="_loadMoreBtn_gxp0d_38",Qo={list:Ek,empty:Tk,statusError:kk,loadMore:Rk,loadMoreBtn:Ak};function Lk(){const{data:a,isLoading:l,isError:i,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=l5(),m=(a==null?void 0:a.pages.flatMap(g=>g.operations))??[];return l?o.jsx(On,{fullscreen:!0,label:"Загрузка"}):i?o.jsx("p",{className:Qo.statusError,children:"Не удалось загрузить операции. Попробуйте обновить страницу."}):m.length===0?o.jsx("p",{className:Qo.empty,children:"У вас пока нет операций."}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Qo.list,children:m.map((g,h)=>{var p,v;return o.jsx(Sk,{op:g},((p=g.payment)==null?void 0:p.id)??((v=g.withdrawal)==null?void 0:v.id)??h)})}),d&&o.jsx("div",{className:Qo.loadMore,children:o.jsx("button",{className:Qo.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const Ok="_status_1yzxr_1",Mk="_statusError_1yzxr_8",zk="_empty_1yzxr_15",Dk="_tableWrap_1yzxr_22",Bk="_table_1yzxr_22",$k="_mono_1yzxr_53",Uk="_statusBadge_1yzxr_57",Qa={status:Ok,statusError:Mk,empty:zk,tableWrap:Dk,table:Bk,mono:$k,statusBadge:Uk};function l3(a,l){return a?`${a} ${l}`:"—"}function Hk(a){if(!a)return"—";const l=new Date(a);return Number.isNaN(l.getTime())?"—":l.toLocaleString("ru-RU")}function qk(){const{data:a,isLoading:l,isError:i}=b_();return l?o.jsx("p",{className:Qa.status,children:"Загрузка..."}):i?o.jsx("p",{className:Qa.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?o.jsx("p",{className:Qa.empty,children:"У вас пока нет заявок."}):o.jsx("div",{className:Qa.tableWrap,children:o.jsxs("table",{className:Qa.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"USDT"}),o.jsx("th",{children:"Сумма ₽"}),o.jsx("th",{children:"Курс"}),o.jsx("th",{children:"Статус"}),o.jsx("th",{children:"Создана"})]})}),o.jsx("tbody",{children:a.items.map(r=>o.jsxs("tr",{children:[o.jsx("td",{className:Qa.mono,children:l3(r.usdt_amount,"USDT")}),o.jsx("td",{className:Qa.mono,children:l3(r.rub_amount,"₽")}),o.jsx("td",{className:Qa.mono,children:r.exchange_rate??"—"}),o.jsx("td",{children:o.jsx("span",{className:Qa.statusBadge,children:r.status})}),o.jsx("td",{children:Hk(r.created_at)})]},r.id))})]})})}const Fk="_panel_11333_1",Gk="_tabs_11333_6",Vk="_tab_11333_6",$c={panel:Fk,tabs:Gk,tab:Vk};function Qk(){const{data:a,isLoading:l}=pn(),[i,r]=S.useState("transactions");if(l)return o.jsx(On,{fullscreen:!0,label:"Загрузка"});const d=!!a&&a.account_type!=="individual",f=d?i:"transactions";return o.jsxs("div",{className:$c.panel,children:[d&&o.jsxs("div",{className:$c.tabs,children:[o.jsx("button",{type:"button",className:$c.tab,"data-active":f==="transactions"||void 0,onClick:()=>r("transactions"),children:"Транзакции"}),o.jsx("button",{type:"button",className:$c.tab,"data-active":f==="requests"||void 0,onClick:()=>r("requests"),children:"Заявки"})]}),f==="transactions"?o.jsx(Lk,{}):o.jsx(qk,{})]})}function Pk(){return o.jsx(Qk,{})}const Ik="_card_1erii_1",Yk="_logo_1erii_10",Xk="_title_1erii_20",Kk="_twoCol_1erii_29",Zk="_leftCol_1erii_36",Wk="_rightCol_1erii_42",Jk="_codeHint_1erii_48",eR="_error_1erii_55",tR="_submitWrapper_1erii_62",nR="_footer_1erii_66",aR="_forgot_1erii_73",sR="_divider_1erii_88",Qn={card:Ik,logo:Yk,title:Xk,twoCol:Kk,leftCol:Zk,rightCol:Wk,codeHint:Jk,error:eR,submitWrapper:tR,footer:nR,forgot:aR,divider:sR};function i3(a){var i,r;const l=a;return((r=(i=l==null?void 0:l.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function lR(){const[a,l]=S.useState(""),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,g]=S.useState(!1),h=Yt(),p=Ln(),v=_t({mutationFn:r7,onSuccess:()=>g(!0)}),y=_t({mutationFn:c7,onSuccess:async({access_token:N})=>{q2(),h.clear(),N&&Ct.set(N),await h.invalidateQueries({queryKey:ru}),p(le.PROFILE)}}),b=()=>{a&&v.mutate({email:a})},j=N=>{N.preventDefault(),y.mutate({email:a,password:i,code:d})},w=(v.isError?i3(v.error):null)??(y.isError?i3(y.error):null);return{email:a,setEmail:l,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:m,isLoadingCode:v.isPending,isLoadingSubmit:y.isPending,error:w,handleRequestCode:b,handleSubmit:j}}function iR(){const{email:a,setEmail:l,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:m,isLoadingCode:g,isLoadingSubmit:h,error:p,handleRequestCode:v,handleSubmit:y}=lR(),b=Ln();return o.jsxs("form",{className:Qn.card,onSubmit:y,children:[o.jsx("div",{className:Qn.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("h1",{className:Qn.title,children:"Войти в кошелёк ЭКСА"}),o.jsxs("div",{className:Qn.twoCol,children:[o.jsxs("div",{className:Qn.leftCol,children:[o.jsx(ke,{label:"Адрес электронной почты",type:"email",value:a,onChange:l,placeholder:"example@mail.ru",required:!0}),o.jsx(ke,{label:"Пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:Qn.rightCol,children:[o.jsx(Rn,{variant:"ghost",type:"button",onClick:v,disabled:m||g,children:g?"Отправка...":m?"Код отправлен":"Получить код на email"}),o.jsx("span",{className:Qn.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),p&&o.jsx("p",{className:Qn.error,children:p}),o.jsx("div",{className:Qn.submitWrapper,children:o.jsx(In,{label:h?"Вход...":"Войти",disabled:h})}),o.jsxs("div",{className:Qn.footer,children:[o.jsx("a",{className:Qn.forgot,onClick:()=>b(le.RESTORE_PASSWORD),children:"Забыли пароль?"}),o.jsx("div",{className:Qn.divider,children:o.jsx("span",{children:"или"})}),o.jsx(Rn,{variant:"outline",type:"button",onClick:()=>b(le.REGISTER),children:"Создать новый кошелёк"})]})]})}const oR="_page_a6ygb_1",rR={page:oR};function cR(){return o.jsx("div",{className:rR.page,children:o.jsx(iR,{})})}function o3(a){var i,r;const l=a;return((r=(i=l==null?void 0:l.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function uR(){const a=Ln(),l=Yt(),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,g]=S.useState(""),[h,p]=S.useState(""),[v,y]=S.useState(!1),[b,j]=S.useState(null),w=_t({mutationFn:i7,onSuccess:()=>y(!0)}),N=_t({mutationFn:o7,onSuccess:async({access_token:O})=>{q2(),l.clear(),O&&Ct.set(O),await l.invalidateQueries({queryKey:ru}),a(le.WALLET)}}),C=()=>{i&&w.mutate({email:i})},R=O=>{if(O.preventDefault(),d!==m){j("Пароли не совпадают");return}j(null),N.mutate({email:i,password:d,confirm_password:m,code:h})},M=b??(w.isError?o3(w.error):null)??(N.isError?o3(N.error):null);return{email:i,setEmail:r,password:d,setPassword:f,confirmPassword:m,setConfirmPassword:g,verificationCode:h,setVerificationCode:p,codeSent:v,isLoadingCode:w.isPending,isLoadingSubmit:N.isPending,error:M,handleRequestCode:C,handleSubmit:R}}const dR="_card_4lgff_1",fR="_logo_4lgff_10",hR="_title_4lgff_20",mR="_typeSelect_4lgff_29",pR="_back_4lgff_39",_R="_legalInfo_4lgff_55",gR="_legalIntro_4lgff_61",vR="_docsBlock_4lgff_67",yR="_emailBlock_4lgff_68",bR="_docsLabel_4lgff_74",xR="_docsList_4lgff_80",SR="_emailLink_4lgff_94",jR="_legalDone_4lgff_105",wR="_legalDoneTitle_4lgff_113",NR="_legalDoneText_4lgff_119",CR="_twoCol_4lgff_125",ER="_leftCol_4lgff_132",TR="_rightCol_4lgff_138",kR="_codeHint_4lgff_149",RR="_error_4lgff_156",AR="_submitWrapper_4lgff_163",LR="_legal_4lgff_55",it={card:dR,logo:fR,title:hR,typeSelect:mR,back:pR,legalInfo:_R,legalIntro:gR,docsBlock:vR,emailBlock:yR,docsLabel:bR,docsList:xR,emailLink:SR,legalDone:jR,legalDoneTitle:wR,legalDoneText:NR,twoCol:CR,leftCol:ER,rightCol:TR,codeHint:kR,error:RR,submitWrapper:AR,legal:LR};function OR(){const{email:a,setEmail:l,password:i,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:m,setVerificationCode:g,codeSent:h,isLoadingCode:p,isLoadingSubmit:v,error:y,handleRequestCode:b,handleSubmit:j}=uR();return o.jsxs("form",{onSubmit:j,children:[o.jsxs("div",{className:it.twoCol,children:[o.jsxs("div",{className:it.leftCol,children:[o.jsx(ke,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:l,placeholder:"example@mail.ru",required:!0}),o.jsx(ke,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0}),o.jsx(ke,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),o.jsxs("div",{className:it.rightCol,children:[o.jsx(Rn,{variant:"ghost",type:"button",onClick:b,disabled:h||p,children:p?"Отправка...":h?"Код отправлен":"Получить проверочный код"}),o.jsx("span",{className:it.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:m,onChange:g,placeholder:"000 000",required:!0})]})]}),y&&o.jsx("p",{className:it.error,children:y}),o.jsx("div",{className:it.submitWrapper,children:o.jsx(In,{label:v?"Создание...":"Создать",disabled:v})}),o.jsxs("p",{className:it.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const r3="support@elcsa.ru",MR=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function zR(){const[a,l]=S.useState(!1);return a?o.jsxs("div",{className:it.legalDone,children:[o.jsx("h2",{className:it.legalDoneTitle,children:"Спасибо!"}),o.jsx("p",{className:it.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):o.jsxs("div",{className:it.legalInfo,children:[o.jsx("p",{className:it.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),o.jsxs("div",{className:it.docsBlock,children:[o.jsx("span",{className:it.docsLabel,children:"Необходимые документы"}),o.jsx("ul",{className:it.docsList,children:MR.map(i=>o.jsx("li",{children:i},i))})]}),o.jsxs("div",{className:it.emailBlock,children:[o.jsx("span",{className:it.docsLabel,children:"Адрес для отправки документов"}),o.jsx("a",{href:`mailto:${r3}`,className:it.emailLink,children:r3})]}),o.jsx("div",{className:it.submitWrapper,children:o.jsx(In,{label:"Документы отправлены",type:"button",onClick:()=>l(!0)})})]})}function DR(){const[a,l]=S.useState(null);return o.jsxs("div",{className:it.card,children:[o.jsx("div",{className:it.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("h1",{className:it.title,children:"Создать кошелёк ЭКСА"}),a===null?o.jsxs("div",{className:it.typeSelect,children:[o.jsx(Rn,{variant:"primary",onClick:()=>l("individual"),children:"Зарегистрироваться как физическое лицо"}),o.jsx(Rn,{variant:"outline",onClick:()=>l("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):o.jsxs(o.Fragment,{children:[o.jsx("button",{type:"button",className:it.back,onClick:()=>l(null),children:"← Назад к выбору"}),a==="individual"?o.jsx(OR,{}):o.jsx(zR,{})]})]})}const BR="_page_a6ygb_1",$R={page:BR};function UR(){return o.jsx("div",{className:$R.page,children:o.jsx(DR,{})})}const HR="_page_1bkwz_1",qR="_card_1bkwz_9",FR="_logo_1bkwz_18",GR="_title_1bkwz_28",VR="_typeSwitch_1bkwz_38",QR="_typeOption_1bkwz_49",PR="_typeOptionActive_1bkwz_66",IR="_twoCol_1bkwz_71",YR="_leftCol_1bkwz_78",XR="_rightCol_1bkwz_84",KR="_codeHint_1bkwz_90",ZR="_backButton_1bkwz_98",WR="_documentsSubtitle_1bkwz_131",JR="_documentsList_1bkwz_137",eA="_documentItem_1bkwz_146",tA="_documentName_1bkwz_157",nA="_attachButton_1bkwz_163",aA="_fileInput_1bkwz_181",sA="_submitWrapper_1bkwz_192",lA="_legal_1bkwz_196",Ze={page:HR,card:qR,logo:FR,title:GR,typeSwitch:VR,typeOption:QR,typeOptionActive:PR,twoCol:IR,leftCol:YR,rightCol:XR,codeHint:KR,backButton:ZR,documentsSubtitle:WR,documentsList:JR,documentItem:eA,documentName:tA,attachButton:nA,fileInput:aA,submitWrapper:sA,legal:lA},iA=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function oA(){const[a,l]=S.useState(""),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,g]=S.useState(""),[h,p]=S.useState("individual"),[v,y]=S.useState("info"),b=h==="legal",j=N=>{N.preventDefault(),y("documents")},w=N=>{N.preventDefault()};return o.jsx("div",{className:Ze.page,children:v==="info"?o.jsxs("form",{className:Ze.card,onSubmit:j,children:[o.jsx("div",{className:Ze.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("h1",{className:Ze.title,children:"Создать кошелёк ЭКСА"}),o.jsxs("div",{className:Ze.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[o.jsx("button",{type:"button",role:"tab","aria-selected":!b,className:`${Ze.typeOption} ${b?"":Ze.typeOptionActive}`,onClick:()=>p("individual"),children:"Физическое лицо"}),o.jsx("button",{type:"button",role:"tab","aria-selected":b,className:`${Ze.typeOption} ${b?Ze.typeOptionActive:""}`,onClick:()=>p("legal"),children:"Юридическое лицо"})]}),o.jsxs("div",{className:Ze.twoCol,children:[o.jsxs("div",{className:Ze.leftCol,children:[o.jsx(ke,{label:b?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:l,placeholder:b?"name@company.ru":"example@mail.ru"}),o.jsx(ke,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••"}),o.jsx(ke,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),o.jsxs("div",{className:Ze.rightCol,children:[o.jsx(Rn,{variant:"ghost",type:"button",children:"Получить проверочный код"}),o.jsx("span",{className:Ze.codeHint,children:"Код не пришёл"}),o.jsx(ke,{label:"Ввести код",type:"text",value:m,onChange:g,placeholder:"000 000"})]})]}),o.jsx("div",{className:Ze.submitWrapper,children:o.jsx(In,{label:"Создать"})}),o.jsxs("p",{className:Ze.legal,children:["Нажимая «Создать», вы принимаете",o.jsx("br",{}),o.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",o.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):o.jsxs("form",{className:Ze.card,onSubmit:w,children:[o.jsx("div",{className:Ze.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("button",{type:"button",className:Ze.backButton,onClick:()=>y("info"),children:"← Назад к данным"}),o.jsx("h1",{className:Ze.title,children:"Прикрепите документы"}),o.jsx("p",{className:Ze.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),o.jsx("ul",{className:Ze.documentsList,children:iA.map(N=>o.jsxs("li",{className:Ze.documentItem,children:[o.jsx("span",{className:Ze.documentName,children:N}),o.jsxs("label",{className:Ze.attachButton,children:["Прикрепить",o.jsx("input",{type:"file",className:Ze.fileInput,multiple:!0})]})]},N))}),o.jsx("div",{className:Ze.submitWrapper,children:o.jsx(In,{label:"Создать аккаунт"})})]})})}function rA(){const[a,l]=S.useState(""),[i,r]=S.useState(""),[d,f]=S.useState(""),[m,g]=S.useState(Wo[0].days),[h,p]=S.useState(null),{mutate:v,isPending:y}=C7(),{data:b}=b_(),[j,w]=S.useState(!1);S.useEffect(()=>{if(j||!b)return;const $=A7(b.items);if(!$)return;const P=R7($.comment);P.name&&r(P.name),P.contact&&f(P.contact),w(!0)},[j,b]);const N=Number(a.replace(/\D/g,""))||0,C=N>0&&N<v2,{rate:R,commission:M,total:O}=T7(N,m),H=$=>{const P=$.replace(/\D/g,"");l(P?Us(Number(P)):"")},I=N>0&&!C&&!y;return{amount:a,name:i,contact:d,days:m,setName:r,setContact:f,setDays:g,onAmountChange:H,numAmount:N,belowMin:C,rate:R,commission:M,total:O,onSubmit:$=>{if($.preventDefault(),!I)return;const P=k7({name:i,contact:d,days:m,amount:N,commission:M,total:O});v({rub_amount:N,comment:P},{onSuccess:()=>{p("success"),l(""),r(""),f(""),g(Wo[0].days)},onError:()=>p("error")})},isPending:y,canSubmit:I,notice:h,dismissNotice:()=>p(null)}}const cA="_wrap_12wuz_1",uA="_header_12wuz_12",dA="_title_12wuz_16",fA="_subtitle_12wuz_21",hA="_body_12wuz_29",mA="_formCol_12wuz_35",pA="_hint_12wuz_41",_A="_infoCol_12wuz_48",gA="_infoTitle_12wuz_53",vA="_infoRow_12wuz_60",yA="_infoLabel_12wuz_76",bA="_infoValue_12wuz_81",xA="_note_12wuz_87",SA="_submitBtn_12wuz_94",We={wrap:cA,header:uA,title:dA,subtitle:fA,body:hA,formCol:mA,hint:pA,infoCol:_A,infoTitle:gA,infoRow:vA,infoLabel:yA,infoValue:bA,note:xA,submitBtn:SA};function jA(){const{amount:a,name:l,contact:i,days:r,setName:d,setContact:f,setDays:m,onAmountChange:g,numAmount:h,belowMin:p,rate:v,commission:y,total:b,onSubmit:j,isPending:w,canSubmit:N,notice:C,dismissNotice:R}=rA();return o.jsxs("form",{className:We.wrap,onSubmit:j,children:[o.jsxs("div",{className:We.header,children:[o.jsx("h1",{className:We.title,children:"Оставить заявку"}),o.jsx("p",{className:We.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),o.jsxs("div",{className:We.body,children:[o.jsxs("div",{className:We.formCol,children:[o.jsx(ke,{label:"Объём заявки, ₽",type:"text",value:a,onChange:g,placeholder:"от 500 000"}),p&&o.jsxs("p",{className:We.hint,children:["Минимальный объём заявки — ",Us(v2)," ₽"]}),o.jsx(z2,{id:"term",label:"Срок ожидания операции",value:r,onChange:m,options:Wo.map(M=>({value:M.days,label:`${y2(M.days)} — комиссия ${(M.rate*100).toFixed(3)} %`}))}),o.jsx(ke,{label:"Как к вам обращаться",type:"text",value:l,onChange:d,placeholder:"Имя"}),o.jsx(ke,{label:"Email или телефон для связи",type:"text",value:i,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),o.jsxs("div",{className:We.infoCol,children:[o.jsx("div",{className:We.infoTitle,children:"УСЛОВИЯ"}),o.jsxs("div",{className:We.infoRow,children:[o.jsx("span",{className:We.infoLabel,children:"Минимальный объём"}),o.jsxs("span",{className:We.infoValue,children:[Us(v2)," ₽"]})]}),o.jsxs("div",{className:We.infoRow,children:[o.jsx("span",{className:We.infoLabel,children:"Срок ожидания"}),o.jsx("span",{className:We.infoValue,children:y2(r)})]}),o.jsxs("div",{className:We.infoRow,children:[o.jsx("span",{className:We.infoLabel,children:"Ставка комиссии"}),o.jsxs("span",{className:We.infoValue,children:[(v*100).toFixed(3)," %"]})]}),o.jsxs("div",{className:We.infoRow,children:[o.jsx("span",{className:We.infoLabel,children:"Сумма комиссии"}),o.jsx("span",{className:We.infoValue,children:h>0?`${Us(y)}`:"—"})]}),o.jsxs("div",{className:We.infoRow,"data-accent":!0,children:[o.jsx("span",{className:We.infoLabel,children:"Итого к оплате"}),o.jsx("span",{className:We.infoValue,children:h>0?`${Us(b)}`:"—"})]}),o.jsx("p",{className:We.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),o.jsx("button",{type:"submit",className:We.submitBtn,disabled:!N,children:w?"Отправляем...":"Оставить заявку"}),C&&o.jsx(es,{status:C,message:C==="success"?"Заявка отправлена":"Не удалось отправить заявку",onClose:R,duration:5e3})]})}const wA="_notice_a6bcd_1",NA="_title_a6bcd_11",CA="_text_a6bcd_16",Kd={notice:wA,title:NA,text:CA};function EA(){const{data:a,isLoading:l}=pn();return l?o.jsx(On,{fullscreen:!0,size:"lg",label:"Загрузка данных аккаунта"}):!!a&&a.account_type!=="individual"?o.jsx(jA,{}):o.jsxs("div",{className:Kd.notice,children:[o.jsx("h1",{className:Kd.title,children:"Покупка временно недоступна"}),o.jsx("p",{className:Kd.text,children:"В настоящий момент покупка валюты невозможна. Мы работаем над восстановлением сервиса — попробуйте, пожалуйста, позже."})]})}const TA="_page_1mk6w_1",kA="_main_1mk6w_8",RA="_glow_1mk6w_17",Zd={page:TA,main:kA,glow:RA};function AA(){const{data:a,isLoading:l}=N_(),i=a?a.split(" "):[];return o.jsxs("div",{className:Zd.page,children:[o.jsx(Q2,{}),o.jsxs("main",{className:Zd.main,children:[o.jsx("div",{className:Zd.glow}),!l&&o.jsx(tg,{words:i})]})]})}const LA="https://app.kyc.elcsa.ru";function OA(){return sg(!0)}async function sg(a){const l=await tn(),i=await fetch(`${LA}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":l},body:JSON.stringify({})});if(i.status===401&&a)try{return await ia(),sg(!1)}catch{throw Ct.clear(),new Error("Unauthorized")}const r=await i.json();if(!i.ok)throw r;return r}function MA(){const a=_t({mutationFn:OA});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const zA="_backdrop_1do7s_1",DA="_modal_1do7s_12",BA="_closeBtn_1do7s_22",$A="_body_1do7s_40",UA="_qrBlock_1do7s_47",HA="_qrImage_1do7s_55",qA="_linkBtn_1do7s_63",ml={backdrop:zA,modal:DA,closeBtn:BA,body:$A,qrBlock:UA,qrImage:HA,linkBtn:qA};function FA({data:a,onClose:l}){return o.jsx("div",{className:ml.backdrop,onClick:l,children:o.jsxs("div",{className:ml.modal,onClick:i=>i.stopPropagation(),children:[o.jsx("button",{className:ml.closeBtn,onClick:l,type:"button",children:"×"}),o.jsx("div",{className:ml.body,children:o.jsxs("div",{className:ml.qrBlock,children:[o.jsx("img",{className:ml.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),o.jsx("a",{className:ml.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const GA="_card_omb8e_1",VA="_logo_omb8e_13",QA="_iconWrapper_omb8e_21",PA="_description_omb8e_34",IA="_buttonWrapper_omb8e_42",YA="_error_omb8e_47",yi={card:GA,logo:VA,iconWrapper:QA,description:PA,buttonWrapper:IA,error:YA};function XA(){const{trigger:a,data:l,isLoading:i,isError:r}=MA(),d=Ln(),f=Yt(),{data:m}=pn({refetchInterval:l?5e3:!1});S.useEffect(()=>{m!=null&&m.kyc_verified&&d(le.SEED_PHRASE,{replace:!0})},[m==null?void 0:m.kyc_verified,d]);const g=()=>{f.invalidateQueries({queryKey:["me"]})};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:yi.card,children:[o.jsx("div",{className:yi.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("div",{className:yi.iconWrapper,children:o.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.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"}),o.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),o.jsx("p",{className:yi.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),o.jsx("div",{className:yi.buttonWrapper,children:o.jsx(In,{label:i?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:i})}),r&&o.jsx("p",{className:yi.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),l&&o.jsx(FA,{data:l,onClose:g})]})}const KA="_page_6lnfw_1",ZA={page:KA};function WA(){const{data:a,isLoading:l}=pn();return l?null:a!=null&&a.kyc_verified?o.jsx(Bi,{to:le.PROFILE,replace:!0}):o.jsx("div",{className:ZA.page,children:o.jsx(XA,{})})}const JA="_card_mzeuq_1",eL="_logo_mzeuq_10",tL="_title_mzeuq_20",nL="_fields_mzeuq_29",aL="_emailRow_mzeuq_35",sL="_error_mzeuq_41",lL="_submitWrapper_mzeuq_48",iL="_footer_mzeuq_52",oL="_back_mzeuq_58",Pa={card:JA,logo:eL,title:tL,fields:nL,emailRow:aL,error:sL,submitWrapper:lL,footer:iL,back:oL};function rL(){const[a,l]=S.useState(""),[i,r]=S.useState(!1),[d,f]=S.useState(!1),[m,g]=S.useState(""),[h,p]=S.useState(""),[v,y]=S.useState(""),[b,j]=S.useState(""),[w,N]=S.useState(!1),[C,R]=S.useState(null),M=Ln();async function O(){j(""),f(!0);try{await h7({email:a}),r(!0),R({status:"success",message:`Код отправлен на ${a}`})}catch{R({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function H(I){if(I.preventDefault(),j(""),h!==v){j("Пароли не совпадают");return}N(!0);try{await p7({email:a,code:m,new_password:h,confirm_password:v}),M(le.LOGIN)}catch{j("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{N(!1)}}return o.jsxs(o.Fragment,{children:[o.jsxs("form",{className:Pa.card,onSubmit:H,children:[o.jsx("div",{className:Pa.logo,children:o.jsx("img",{src:ba,alt:"ЭКСА"})}),o.jsx("h1",{className:Pa.title,children:"Восстановление пароля"}),o.jsxs("div",{className:Pa.fields,children:[o.jsxs("div",{className:Pa.emailRow,children:[o.jsx(ke,{label:"E-Mail",type:"email",value:a,onChange:l,placeholder:"example@mail.com",required:!0}),o.jsx(In,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:O})]}),i&&o.jsxs(o.Fragment,{children:[o.jsx(ke,{label:"Код с почты",type:"text",value:m,onChange:g,placeholder:"000 000",required:!0}),o.jsx(ke,{label:"Новый пароль",type:"password",value:h,onChange:p,placeholder:"••••••••",required:!0}),o.jsx(ke,{label:"Повторить пароль",type:"password",value:v,onChange:y,placeholder:"••••••••",required:!0})]})]}),b&&o.jsx("p",{className:Pa.error,children:b}),i&&o.jsx("div",{className:Pa.submitWrapper,children:o.jsx(In,{label:w?"Сохранение...":"Изменить пароль",disabled:w})}),o.jsx("div",{className:Pa.footer,children:o.jsx("a",{className:Pa.back,onClick:()=>M(le.LOGIN),children:"Вернуться ко входу"})})]}),C&&o.jsx(es,{status:C.status,message:C.message,onClose:()=>R(null),duration:5e3})]})}const cL="_page_6lnfw_1",uL={page:cL};function dL(){return o.jsx("div",{className:uL.page,children:o.jsx(rL,{})})}const fL="_main_1a6x9_4",hL="_container_1a6x9_12",mL="_title_1a6x9_18",pL="_subtitle_1a6x9_26",_L="_section_1a6x9_34",gL="_sectionTitle_1a6x9_38",vL="_subheading_1a6x9_47",yL="_text_1a6x9_55",bL="_example_1a6x9_62",xL="_warning_1a6x9_73",SL="_emphasis_1a6x9_83",jL="_list_1a6x9_87",wL="_definitions_1a6x9_102",NL="_definition_1a6x9_102",CL="_goals_1a6x9_117",EL="_goal_1a6x9_117",TL="_infoBox_1a6x9_2",kL="_linkBlock_1a6x9_166",RL="_button_1a6x9_174",Ut={main:fL,container:hL,title:mL,subtitle:pL,section:_L,sectionTitle:gL,subheading:vL,text:yL,example:bL,warning:xL,emphasis:SL,list:jL,definitions:wL,definition:NL,goals:CL,goal:EL,infoBox:TL,linkBlock:kL,button:RL};function c3(a){return typeof a=="string"?a:o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:a.strong}),a.text?` ${a.text}`:null]})}function AL({block:a}){switch(a.kind){case"text":return o.jsx("p",{className:a.variant?`${Ut.text} ${Ut[a.variant]}`:Ut.text,children:a.text});case"subheading":return o.jsx("h4",{className:Ut.subheading,children:a.text});case"list":return o.jsx("ul",{className:Ut.list,children:a.items.map((l,i)=>o.jsx("li",{children:c3(l)},i))});case"definitions":return o.jsx("div",{className:Ut.definitions,children:a.items.map((l,i)=>o.jsxs("div",{className:Ut.definition,children:[o.jsx("strong",{children:l.term})," ",l.text]},i))});case"goals":return o.jsx("div",{className:Ut.goals,children:a.items.map((l,i)=>o.jsxs("div",{className:Ut.goal,children:[o.jsx("strong",{children:l.title}),o.jsx("ul",{children:l.items.map((r,d)=>o.jsx("li",{children:r},d))})]},i))});case"infoBox":return o.jsx("div",{className:Ut.infoBox,children:a.lines.map((l,i)=>o.jsx("p",{children:c3(l)},i))});case"link":return o.jsx("div",{className:Ut.linkBlock,children:o.jsx("a",{href:a.href,target:"_blank",rel:"noopener noreferrer",className:Ut.button,children:a.text})})}}function fr({doc:a}){return o.jsx("main",{className:Ut.main,children:o.jsxs("div",{className:Ut.container,children:[o.jsx("h1",{className:Ut.title,children:a.title}),a.subtitle&&o.jsx("h2",{className:Ut.subtitle,children:a.subtitle}),a.sections.map((l,i)=>o.jsxs("section",{className:Ut.section,children:[l.title&&o.jsx("h3",{className:Ut.sectionTitle,children:l.title}),l.blocks.map((r,d)=>o.jsx(AL,{block:r},d))]},i))]})})}const LL={title:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ",subtitle:"ООО БИТФОРС",sections:[{title:"Агентский договор",blocks:[{kind:"text",text:"Настоящая оферта на заключение агентского договора (далее Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."},{kind:"text",text:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."}]},{title:"Основные понятия и определения действующего договора",blocks:[{kind:"definitions",items:[{term:"Агент",text:" юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."},{term:"Принципал",text:" сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."},{term:"Агентский договор",text:" соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."},{term:"Личный кабинета Агента",text:" ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."},{term:"Отчетный период",text:" период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."},{term:"Отчет о сумме начислений (Отчет)",text:" отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."},{term:"Оферта (Договор)",text:" настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."}]}]},{title:"1. Акцепт оферты и заключение агентского договора",blocks:[{kind:"text",text:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."},{kind:"text",text:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."},{kind:"text",text:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."}]},{title:"2. Общие положения",blocks:[{kind:"text",text:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."},{kind:"text",text:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."}]},{title:"3. Предмет договора",blocks:[{kind:"text",text:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."},{kind:"text",text:"По настоящему Договору Агент совершает следующие действия:"},{kind:"list",items:["Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;","Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."]},{kind:"text",text:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."},{kind:"text",text:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."}]},{title:"4. Права и обязанности сторон",blocks:[{kind:"text",text:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."},{kind:"text",text:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."},{kind:"text",text:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."}]},{title:"5. Агентское вознаграждение и порядок оплаты",blocks:[{kind:"text",text:"Сумма вознаграждения Агента по настоящему Договору составляет:"},{kind:"list",items:["8% от 5 000 до 30 000 рублей","6% от 30 000 до 100 000 рублей","4% от 100 000 до 600 000 рублей"]},{kind:"text",text:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."},{kind:"text",text:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."}]},{title:"6. Ответственность сторон",blocks:[{kind:"text",text:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."},{kind:"text",text:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."}]},{title:"7. Форс-мажор",blocks:[{kind:"text",text:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."},{kind:"text",text:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."}]},{title:"8. Конфиденциальность",blocks:[{kind:"text",text:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."}]},{title:"9. Изменение и прекращение договора",blocks:[{kind:"text",text:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."},{kind:"text",text:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."},{kind:"text",text:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."}]},{title:"10. Заключительные положения",blocks:[{kind:"text",text:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."},{kind:"text",text:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."},{kind:"text",text:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."}]},{title:"Реквизиты сторон",blocks:[{kind:"infoBox",lines:["Общество с ограниченной ответственностью «БИТФОРС»","196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н","ИНН / КПП: 9810001062 / 781001001","ОГРН: 1257800060990","ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000","Руководитель: Кленин Михаил Васильевич","Электронная почта: company@bitforcefoundation.ru",'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"',"Корреспондентский счет: 30101810600000000786","БИК: 044030786","Расчетный счет: 40702810632250004861"]}]}]};function OL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsx(fr,{doc:LL}),o.jsx(Fs,{})]})}const ML={title:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"1. Общие положения",blocks:[{kind:"text",text:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."},{kind:"text",text:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."},{kind:"text",text:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."},{kind:"subheading",text:"1.4. Основные понятия"},{kind:"definitions",items:[{term:"Автоматизированная обработка персональных данных",text:"— обработка персональных данных с помощью средств вычислительной техники."},{term:"Обработка персональных данных",text:"— любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."},{term:"Оператор",text:"— юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."},{term:"Персональные данные",text:"— любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."},{term:"Пользователь",text:"— любой посетитель веб-сайта https://bitforce-foundation.ru."}]}]},{title:"2. Сведения об операторе",blocks:[{kind:"list",items:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","Сокращенное наименование: ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"3. Общие цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1.1. Основная деятельность:"},{kind:"list",items:["Предоставление услуг по конвертации иного имущества","Осуществление операций на криптовалютных рынках","Предоставление услуг в области блокчейн технологий","Обеспечение функционирования интернет-платформы и мобильных приложений"]},{kind:"subheading",text:"3.1.2. Обеспечение безопасности:"},{kind:"list",items:["Предотвращение мошенничества и отмывания денежных средств","Обеспечение безопасности платежных операций","Выполнение требований по противодействию легализации доходов","Идентификация и верификация клиентов"]},{kind:"subheading",text:"3.1.3. Соблюдение законодательства:"},{kind:"list",items:["Исполнение требований российского и международного законодательства","Взаимодействие с контролирующими и правоохранительными органами","Ведение обязательной отчетности и документооборота","Соблюдение налогового законодательства"]}]},{title:"4. Цели сбора персональных данных",blocks:[{kind:"goals",items:[{title:"Регистрация и идентификация пользователей:",items:["Создание учетной записи на веб-сайте","Верификация личности в соответствии с требованиями законодательства","Подтверждение права на осуществление операций"]},{title:"Обработка платежей и финансовых операций:",items:["Осуществление операций по конвертации криптовалют","Проведение расчетов и переводов денежных средств","Ведение учета и истории транзакций"]},{title:"Коммуникация с клиентами:",items:["Предоставление технической поддержки","Уведомления о состоянии операций и счетов","Информирование об изменениях в условиях предоставления услуг"]}]}]},{title:"5. Правовые основания обработки персональных данных",blocks:[{kind:"subheading",text:"5.1.1. Согласие субъекта персональных данных:"},{kind:"list",items:["Обработка персональных данных в маркетинговых целях","Использование файлов cookie и метрик","Персонализация сервисов и предложений"]},{kind:"subheading",text:"5.1.2. Необходимость исполнения договора:"},{kind:"list",items:["Регистрация и ведение учетных записей пользователей","Осуществление финансовых операций и переводов","Предоставление доступа к платформе и сервисам","Техническая поддержка и обслуживание клиентов"]},{kind:"subheading",text:"5.1.3. Соблюдение правовой обязанности:"},{kind:"list",items:["Выполнение требований валютного законодательства","Противодействие легализации доходов, полученных преступным путем","Соблюдение требований по налоговому учету и отчетности"]}]},{title:"6. Объем и категории обрабатываемых персональных данных",blocks:[{kind:"subheading",text:"6.1.1. Пользователи веб-сайта и мобильного приложения:"},{kind:"list",items:["Зарегистрированные пользователи","Посетители сайта без регистрации","Потенциальные клиенты","Бывшие клиенты"]},{kind:"subheading",text:"6.2.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"6.2.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты"]},{kind:"subheading",text:"6.2.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и карт","Реквизиты кошельков криптовалют","История операций и транзакций","Данные о доходах и источниках средств"]},{kind:"subheading",text:"6.2.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств","Данные о браузере и операционной системе","Файлы cookie и локальное хранилище","Логи действий на сайте"]}]},{title:"7. Порядок и условия обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Принципы обработки персональных данных:"},{kind:"list",items:["Обработка осуществляется на законной и справедливой основе","Обработка ограничивается достижением конкретных, заранее определенных целей","Содержание и объем данных соответствуют заявленным целям","Обрабатываемые персональные данные являются точными и актуальными"]},{kind:"subheading",text:"7.4. Сроки обработки персональных данных:"},{kind:"list",items:["Персональные данные обрабатываются в течение времени, необходимого для достижения целей","После достижения целей персональные данные подлежат уничтожению или обезличиванию","Сроки хранения определяются требованиями законодательства"]},{kind:"subheading",text:"7.5. Места обработки персональных данных:"},{kind:"list",items:["Основные серверы и хранилища данных расположены на территории Российской Федерации","Резервные копии могут храниться в дата-центрах на территории РФ"]}]},{title:"8. Актуализация, исправление, удаление и уничтожение персональных данных",blocks:[{kind:"subheading",text:"8.2.2. Процедура исправления:"},{kind:"list",items:["Рассмотрение запроса в течение 30 дней","Проверка обоснованности требования об исправлении","Внесение изменений во все информационные системы","Уведомление субъекта о проведенных исправлениях"]},{kind:"subheading",text:"8.3.2. Процедура удаления:"},{kind:"list",items:["Проверка наличия законных оснований для продолжения обработки","Удаление из всех информационных систем и баз данных","Удаление резервных копий (кроме архивных)","Уведомление субъекта о выполненном удалении"]}]},{title:"9. Ответы на запросы субъектов персональных данных",blocks:[{kind:"subheading",text:"9.1.1. Право на информацию:"},{kind:"list",items:["Подтверждение факта обработки персональных данных","Правовые основания и цели обработки","Применяемые способы обработки","Наименование и местонахождение оператора","Лица, имеющие доступ к персональным данным"]},{kind:"subheading",text:"9.2.2. Сроки рассмотрения:"},{kind:"list",items:["Срок рассмотрения запроса составляет 30 дней с момента получения","Срок может быть продлен на 30 дней при большом объеме информации","О продлении срока субъект уведомляется в течение 30 дней"]},{kind:"subheading",text:"9.4. Плата за предоставление информации:"},{kind:"list",items:["Первый запрос в течение года обрабатывается бесплатно","За повторные запросы может взиматься плата в размере расходов","Субъект уведомляется о размере платы до предоставления информации"]}]},{title:"10. Обеспечение безопасности персональных данных",blocks:[{kind:"subheading",text:"10.1. Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Принятие локальных актов по вопросам обработки персональных данных","Ознакомление работников с требованиями законодательства","Применение мер ответственности за нарушение требований"]},{kind:"subheading",text:"10.3. Технические меры:"},{kind:"list",items:["Предотвращение несанкционированного доступа к персональным данным","Своевременное обнаружение фактов несанкционированного доступа","Возможность незамедлительного восстановления персональных данных","Постоянный контроль за обеспечением уровня защищенности"]},{kind:"subheading",text:"10.4. Конкретные технические решения:"},{kind:"list",items:["Использование сертифицированных средств защиты информации","Шифрование персональных данных при передаче и хранении","Применение межсетевых экранов и систем обнаружения вторжений","Резервное копирование и обеспечение отказоустойчивости","Антивирусная защита и обновление программного обеспечения"]}]},{title:"12. Заключительные положения",blocks:[{kind:"subheading",text:"12.2. Жалобы и обращения:"},{kind:"list",items:["Субъекты персональных данных могут обратиться к Оператору по вопросам обработки","Жалобы рассматриваются в установленном законом порядке","При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"]},{kind:"subheading",text:"12.4. Контактная информация для обращений:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru"]}]}]};function zL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsx(fr,{doc:ML}),o.jsx(Fs,{})]})}const DL={title:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE",sections:[{title:"Общие положения и терминология",blocks:[{kind:"text",text:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."},{kind:"text",text:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."},{kind:"text",text:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."}]},{title:"Оператор персональных данных",blocks:[{kind:"text",text:"Оператором персональных данных, содержащихся в файлах cookie, является:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"]},{kind:"text",text:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."}]},{title:"Категории файлов cookie и их назначение",blocks:[{kind:"subheading",text:"1. Строго необходимые (технические) файлы cookie"},{kind:"text",text:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."},{kind:"text",text:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."},{kind:"text",variant:"example",text:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."},{kind:"subheading",text:"2. Функциональные файлы cookie"},{kind:"text",text:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."},{kind:"text",variant:"example",text:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."},{kind:"subheading",text:"3. Аналитические файлы cookie"},{kind:"text",text:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."},{kind:"text",text:"Обработка осуществляется на основании согласия субъекта персональных данных."},{kind:"subheading",text:"4. Маркетинговые файлы cookie"},{kind:"text",text:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."},{kind:"text",text:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."},{kind:"text",variant:"example",text:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."}]},{title:"Правовые основания обработки персональных данных",blocks:[{kind:"text",text:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"},{kind:"list",items:[{strong:"Согласие субъекта персональных данных",text:"— для функциональных, аналитических и маркетинговых файлов cookie"},{strong:"Заключение и исполнение договора",text:"— для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"},{strong:"Законные интересы оператора",text:"— в исключительных случаях, когда отсутствуют иные основания"}]}]},{title:"Порядок получения согласия",blocks:[{kind:"subheading",text:"Принципы получения согласия:"},{kind:"list",items:["Согласие должно быть получено до начала обработки персональных данных","Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса","Предоставляется возможность выбора категорий файлов cookie","Используются активные формулировки вместо пассивных"]},{kind:"subheading",text:"Критерии действительного согласия:"},{kind:"list",items:[{strong:"Добровольность",text:"— согласие дается по свободной воле субъекта"},{strong:"Конкретность",text:"— четко определены цели обработки"},{strong:"Информированность",text:"— предоставлена полная информация об обработке"},{strong:"Однозначность",text:"— согласие выражено в недвусмысленной форме"}]}]},{title:"Сторонние файлы cookie",blocks:[{kind:"subheading",text:"Использование сторонних сервисов:"},{kind:"text",text:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"},{kind:"list",items:["Яндекс.Метрика (ООО «ЯНДЕКС», Россия)","Социальные сети и сервисы интеграции"]},{kind:"subheading",text:"Обеспечение защиты:"},{kind:"list",items:["Получено согласие на передачу","Применяются дополнительные меры защиты данных","Контролируется соблюдение принципов обработки персональных данных получателями"]}]},{title:"Сроки обработки и хранения",blocks:[{kind:"subheading",text:"Категории по срокам хранения:"},{kind:"list",items:["Сеансовые cookie — удаляются автоматически при закрытии браузера","Постоянные cookie — хранятся установленный период или до удаления пользователем"]},{kind:"subheading",text:"Конкретные сроки:"},{kind:"list",items:["Необходимые файлы cookie — до 12 месяцев","Функциональные файлы cookie — до 12 месяцев","Аналитические файлы cookie — до 24 месяцев","Маркетинговые файлы cookie — до 24 месяцев"]},{kind:"text",text:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."}]},{title:"Права субъектов персональных данных",blocks:[{kind:"subheading",text:"Право на информацию:"},{kind:"list",items:["Получение информации о обработке персональных данных","Сведения о правовых основаниях и целях обработки","Информация о сроках обработки и составе данных"]},{kind:"subheading",text:"Право на доступ:"},{kind:"list",items:["Получение подтверждения факта обработки","Ознакомление с обрабатываемыми персональными данными","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"Право на уточнение, блокирование, удаление:"},{kind:"list",items:["Требование уточнения неточных данных","Блокирование недостоверных данных","Удаление незаконно полученных данных"]},{kind:"subheading",text:"Право на отзыв согласия:"},{kind:"list",items:["Отзыв согласия в любое время","Прекращение обработки после отзыва согласия","Сохранение права на обжалование действий оператора"]}]},{title:"Способы управления файлами cookie",blocks:[{kind:"subheading",text:"Управление через настройки сайта:"},{kind:"list",items:["Использование баннера согласия на файлы cookie","Изменение настроек в любое время через интерфейс сайта","Отзыв согласия на использование отдельных категорий файлов cookie"]},{kind:"subheading",text:"Управление через браузер:"},{kind:"text",text:"Большинство браузеров позволяют контролировать файлы cookie:"},{kind:"list",items:["Блокировка — запрет установки новых файлов cookie","Удаление — очистка существующих файлов cookie","Уведомления — получение предупреждений при установке файлов cookie","Селективная настройка — разрешение файлов cookie только для определенных сайтов"]},{kind:"subheading",text:"Инструкции для популярных браузеров:"},{kind:"list",items:["Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie","Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie","Safari: Настройки → Конфиденциальность → Файлы cookie","Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"]},{kind:"text",variant:"warning",text:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."}]},{title:"Меры безопасности",blocks:[{kind:"text",text:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"},{kind:"subheading",text:"Правовые меры:"},{kind:"list",items:["Назначение ответственного за организацию обработки персональных данных","Ознакомление сотрудников с требованиями законодательства","Заключение соглашений о неразглашении персональных данных"]},{kind:"subheading",text:"Организационные меры:"},{kind:"list",items:["Определение перечня лиц, допущенных к обработке персональных данных","Установление правил доступа к персональным данным","Контроль за соблюдением требований по защите персональных данных"]},{kind:"subheading",text:"Технические меры:"},{kind:"list",items:["Использование средств защиты информации","Применение криптографических средств защиты","Обеспечение целостности и доступности персональных данных","Регулярное обновление систем защиты информации"]}]},{title:"Контактная информация и обращения",blocks:[{kind:"text",text:"Для реализации прав субъекта персональных данных обращайтесь к нам:"},{kind:"infoBox",lines:["ООО «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н","Email компании: company@bitforcefoundation.ru"]},{kind:"subheading",text:"Порядок рассмотрения обращений:"},{kind:"list",items:["Срок рассмотрения обращений — до 30 дней с момента получения","Обращения рассматриваются в письменной форме","Ответ направляется способом, указанным в обращении","При отказе в удовлетворении требований указываются мотивированные основания"]}]}]};function BL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsx(fr,{doc:DL}),o.jsx(Fs,{})]})}const $L={title:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ",subtitle:"ООО «БИТФОРС»",sections:[{title:"Преамбула",blocks:[{kind:"text",text:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."}]},{title:"1. Сведения об операторе",blocks:[{kind:"infoBox",lines:["Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»","ИНН: 9810001062","ОГРН: 1257800060990","Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н","Электронная почта: company@bitforcefoundation.ru","Веб-сайт: https://bitforce-foundation.ru"]}]},{title:"2. Правовые основания обработки",blocks:[{kind:"text",text:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."},{kind:"text",text:"Согласие дается добровольно, своей волей и в своих интересах."},{kind:"text",text:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."}]},{title:"3. Цели обработки персональных данных",blocks:[{kind:"subheading",text:"3.1. Основные цели:"},{kind:"list",items:["Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении","Идентификация и верификация личности в соответствии с требованиями законодательства","Предоставление услуг по обмену криптовалют и электронных денежных средств","Проведение финансовых операций, переводов и расчетов","Ведение учета и истории операций"]},{kind:"subheading",text:"3.2. Дополнительные цели:"},{kind:"list",items:["Обеспечение безопасности операций и предотвращение мошенничества","Выполнение требований по противодействию легализации доходов","Соблюдение требований валютного, налогового и иного применимого законодательства","Предоставление технической поддержки и клиентского сервиса","Рассылка уведомлений о состоянии операций и изменениях в условиях"]},{kind:"subheading",text:"3.3. Маркетинговые цели (при дополнительном согласии):"},{kind:"list",items:["Направление информационных и рекламных материалов","Проведение маркетинговых исследований и опросов","Персонализация предложений и услуг","Анализ предпочтений и поведения для улучшения сервисов"]},{kind:"subheading",text:"3.4. Аналитические цели:"},{kind:"list",items:["Анализ использования веб-сайта и мобильного приложения","Улучшение качества предоставляемых услуг","Разработка новых продуктов и сервисов","Создание статистических отчетов в обезличенном виде"]}]},{title:"4. Перечень персональных данных",blocks:[{kind:"subheading",text:"4.1. Идентификационные данные:"},{kind:"list",items:["Фамилия, имя, отчество","Дата рождения","Гражданство"]},{kind:"subheading",text:"4.2. Документы, удостоверяющие личность:"},{kind:"list",items:["Серия и номер паспорта гражданина Российской Федерации","Дата выдачи и код подразделения","Адрес регистрации по месту жительства","Цифровые копии (сканы) документов"]},{kind:"subheading",text:"4.3. Контактная информация:"},{kind:"list",items:["Номера телефонов (мобильный, домашний, рабочий)","Адреса электронной почты","Почтовые адреса (фактического проживания, для корреспонденции)"]},{kind:"subheading",text:"4.4. Финансовая информация:"},{kind:"list",items:["Номера банковских счетов и реквизиты банковских карт","Реквизиты криптовалютных кошельков и адресов","Информация о доходах и источниках происхождения денежных средств","История финансовых операций и транзакций"]},{kind:"subheading",text:"4.5. Техническая информация:"},{kind:"list",items:["IP-адреса устройств, с которых осуществляется доступ к сервисам","Информация о браузере, операционной системе и устройстве","Файлы cookie и данные локального хранилища","Логи действий и история использования сервисов"]},{kind:"subheading",text:"4.6. Дополнительная информация:"},{kind:"list",items:["Фотографии для процедур верификации","Видеозаписи процедур видеоидентификации","Биометрические данные (при использовании соответствующих технологий)","Информация о семейном положении и профессиональной деятельности"]}]},{title:"5. Перечень действий с персональными данными",blocks:[{kind:"text",text:"Согласие распространяется на следующие действия (операции) с персональными данными:"},{kind:"list",items:["Сбор, запись и первичная обработка персональных данных","Накопление и систематизация в базах данных","Создание резервных копий и архивирование","Извлечение, использование и анализ данных","Уточнение, обновление и актуализация информации","Передача данных третьим лицам","Обезличивание и удаление данных","Автоматизированная обработка и профилирование"]}]},{title:"6. Лица, которым могут быть переданы персональные данные",blocks:[{kind:"subheading",text:"6.1. Сотрудники Оператора:"},{kind:"list",items:["Уполномоченные сотрудники, непосредственно участвующие в обработке","Сотрудники службы безопасности и комплаенса","Сотрудники технической поддержки","Руководящий состав в рамках их полномочий"]},{kind:"subheading",text:"6.2. Государственные и муниципальные органы:"},{kind:"list",items:["Федеральная служба по финансовому мониторингу","Федеральная налоговая служба","Правоохранительные органы (при наличии законных требований)","Суды и органы исполнения судебных решений"]},{kind:"subheading",text:"6.3. Партнеры и контрагенты:"},{kind:"list",items:["Банки и платежные системы","Операторы электронных денежных средств","Поставщики технологических решений","Аудиторские и консалтинговые организации"]}]},{title:"7. Сроки обработки персональных данных",blocks:[{kind:"subheading",text:"7.1. Общие принципы:"},{kind:"text",text:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."},{kind:"subheading",text:"7.2. Конкретные сроки обработки:"},{kind:"list",items:[{strong:"Данные активных клиентов:",text:"в течение всего периода отношений плюс 5 лет после прекращения"},{strong:"Данные для идентификации:",text:"5 лет с момента прекращения отношений"},{strong:"Финансовая информация:",text:"5 лет с даты совершения операции"},{strong:"Маркетинговые данные:",text:"до отзыва согласия, но не более 3 лет"},{strong:"Техническая информация:",text:"1 год для безопасности, 6 месяцев для логов"}]}]},{title:"8. Права субъекта персональных данных",blocks:[{kind:"subheading",text:"8.1. Право на информацию:"},{kind:"list",items:["Получение подтверждения факта обработки персональных данных","Получение информации о целях и способах обработки","Информация о сроках обработки и составе данных","Сведения о лицах, которым передаются данные"]},{kind:"subheading",text:"8.2. Право на доступ:"},{kind:"list",items:["Получение копий обрабатываемых персональных данных","Ознакомление с историей обработки и изменений","Получение информации об источниках персональных данных"]},{kind:"subheading",text:"8.3. Право на исправление и удаление:"},{kind:"list",items:["Требование исправления неточных или неполных данных","Требование удаления персональных данных при наличии оснований","Удаление данных после отзыва согласия"]},{kind:"subheading",text:"8.4. Право на отзыв согласия:"},{kind:"list",items:["Согласие может быть отозвано в любое время","Отзыв оформляется в письменной форме","После отзыва обработка прекращается в разумные сроки"]},{kind:"subheading",text:"8.5. Право на обжалование:"},{kind:"list",items:["Обращение к Оператору с жалобами на действия по обработке данных","Обращение в Роскомнадзор или его территориальные органы","Обращение в суд для защиты нарушенных прав"]},{kind:"subheading",text:"8.6. Порядок реализации прав:"},{kind:"list",items:["Обращения направляются на адрес: company@bitforcefoundation.ru","Обращения рассматриваются в течение 30 дней","При необходимости срок может быть продлен на 30 дней"]}]},{title:"9. Заключительные положения",blocks:[{kind:"subheading",text:"9.1. Действие согласия:"},{kind:"list",items:["Согласие действует с момента его предоставления","Согласие действует до его отзыва или до достижения целей обработки","При существенных изменениях целей требуется новое согласие"]},{kind:"subheading",text:"9.2. Форма предоставления согласия:"},{kind:"list",items:["Согласие может быть предоставлено в письменной форме","Согласие может быть предоставлено в электронной форме","Согласие может выражаться путем совершения конклюдентных действий"]},{kind:"subheading",text:"9.3. Последствия непредоставления согласия:"},{kind:"list",items:["Отказ в предоставлении согласия может повлечь невозможность регистрации","Отказ может ограничить доступ к отдельным услугам","Отказ в согласии на маркетинг не влияет на основные услуги","Субъект вправе предоставить частичное согласие"]},{kind:"subheading",text:"9.4. Контактная информация:"},{kind:"infoBox",lines:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н","Электронная почта: company@bitforcefoundation.ru","Ответственное лицо: Кленин Михаил Васильевич","Официальный сайт: https://bitforce-foundation.ru"]},{kind:"subheading",text:"9.5. Подтверждение понимания:"},{kind:"text",variant:"emphasis",text:"Предоставляя настоящее согласие, я подтверждаю, что:"},{kind:"list",items:["Ознакомлен с содержанием согласия и понимаю его значение","Понимаю цели и способы обработки моих персональных данных","Знаю о своих правах и способах их реализации","Согласие предоставляется добровольно и осознанно","Имею возможность отозвать согласие в любое время"]}]}]};function UL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsx(fr,{doc:$L}),o.jsx(Fs,{})]})}const HL={title:"Реестр операторов персональных данных",subtitle:"ООО «БИТФОРС»",sections:[{blocks:[{kind:"text",text:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."},{kind:"text",text:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"},{kind:"link",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=",text:"Открыть реестр Роскомнадзора"},{kind:"text",text:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."}]},{title:"Информация об операторе",blocks:[{kind:"infoBox",lines:[{strong:"Наименование:",text:"ООО «БИТФОРС»"},{strong:"ИНН:",text:"9810001062"},{strong:"ОГРН:",text:"1257800060990"},{strong:"Юридический адрес:",text:"196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"},{strong:"Контактная информация:",text:"company@bitforcefoundation.ru"}]}]},{title:"О Роскомнадзоре",blocks:[{kind:"text",text:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."},{kind:"text",text:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."}]}]};function qL(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsx(fr,{doc:HL}),o.jsx(Fs,{})]})}const lg={ETH:{symbol:"ETH",aprLabel:"APR",protocol:"Lido"},SOL:{symbol:"SOL",aprLabel:"APY",protocol:"Нативный"}},FL=[{chain:"ETH",label:"ETH · Lido"},{chain:"SOL",label:"SOL · нативный"}],GL={active:{label:"Активна",variant:"active"},activating:{label:"Активируется",variant:"muted"},deactivating:{label:"Деактивация",variant:"muted"},inactive:{label:"Завершена",variant:"ready"}},VL="_toggle_xc9o8_1",QL="_tab_xc9o8_6",PL="_active_xc9o8_18",IL="_inactive_xc9o8_23",Uc={toggle:VL,tab:QL,active:PL,inactive:IL};function YL({value:a,onChange:l}){return o.jsx("div",{className:Uc.toggle,children:FL.map(({chain:i,label:r})=>o.jsx("button",{className:`${Uc.tab} ${a===i?Uc.active:Uc.inactive}`,onClick:()=>l(i),children:r},i))})}const ig="https://app.cryptowallet.elcsa.ru",Tl={ETH:18,SOL:9};async function I2(a,l=!0){const i=await tn(),r=Ct.get(),d=await fetch(`${ig}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ia(),I2(a,!1)}catch{throw Ct.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function qs(a,l,i=!0,r={}){const d=await tn(),f=Ct.get(),m=await fetch(`${ig}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(l)});if(m.status===401&&i)try{return await ia(),qs(a,l,!1,r)}catch{throw Ct.clear(),new Error("Unauthorized")}const g=await m.json();if(!m.ok)throw g;return g}function fu(){return{"Idempotency-Key":crypto.randomUUID()}}async function XL(a,l){const i=la(l,Tl[a]);if(a==="ETH"){const m=(await qs("/api/wallets/ETH/stake/quote",{amount:i})).data;return{chain:a,amountHuman:m.amountWeiHuman,feeHuman:m.appFeeWeiHuman,afterFeeHuman:m.stakeAmountWeiHuman,resultHuman:m.expectedStEthWeiHuman,aprPercent:m.aprPercent}}const d=(await qs("/api/wallets/SOL/stake/quote",{amount:i})).data;return{chain:a,amountHuman:d.amountLamportsHuman,feeHuman:d.appFeeLamportsHuman,afterFeeHuman:d.stakeLamportsHuman,resultHuman:d.stakeLamportsHuman,aprPercent:d.estApyPercent,validator:d.validator}}async function KL(a,l){const i=la(l,Tl[a]);await qs(`/api/wallets/${a}/stake`,{amount:i},!0,fu())}async function ZL(){return(await I2("/api/wallets/ETH/stake/positions")).data}async function WL(){return(await I2("/api/wallets/SOL/stake/positions")).data}async function JL(a,l){const i=la(a,Tl.ETH);return(await qs("/api/wallets/ETH/unstake",{amount:i,mode:l},!0,fu())).data}async function eO(a){return(await qs("/api/wallets/SOL/unstake",{stakeAccount:a},!0,fu())).data}async function tO(a){await qs("/api/wallets/ETH/unstake/claim",{requestId:a},!0,fu())}async function nO(a,l){return(await qs(`/api/wallets/${a}/op-cost`,{token:a,amountHuman:l})).data}function Yo(a){if(a&&typeof a=="object"&&"error"in a){const l=a.error;if(typeof l=="string")return l}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function aO(a,l){if(a.chain==="ETH"){const r=BigInt(la(a.stEthBalanceWeiHuman,Tl.ETH)),d=BigInt(la(l,Tl.ETH));return{...a,stEthBalanceWeiHuman:Jo((r+d).toString(),Tl.ETH),optimistic:!0}}const i={stakeAccount:"pending",lamportsHuman:l,state:"activating",validator:a.validator,optimistic:!0};return{...a,positions:[i,...a.positions]}}function sO(a,l){const i=parseFloat(l);return Et({queryKey:["staking","quote",a,l],queryFn:()=>XL(a,l),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function lO(a,l){const i=parseFloat(l);return Et({queryKey:["staking","op-cost",a,l],queryFn:()=>nO(a,l),enabled:Number.isFinite(i)&&i>0,staleTime:15e3,retry:!1})}function iO(a){return Et({queryKey:["staking","positions",a],queryFn:()=>a==="ETH"?ZL():WL(),staleTime:3e4,retry:!1})}function oO(){const a=Yt();return _t({mutationFn:({chain:l,amountHuman:i})=>KL(l,i),onMutate:async({chain:l,amountHuman:i})=>{const r=["staking","positions",l];await a.cancelQueries({queryKey:r});const d=a.getQueryData(r);return d&&a.setQueryData(r,aO(d,i)),{key:r,previous:d}},onError:(l,i,r)=>{r!=null&&r.previous&&a.setQueryData(r.key,r.previous)},onSettled:(l,i,{chain:r})=>{a.invalidateQueries({queryKey:["wallet","balance",r]}),setTimeout(()=>{a.invalidateQueries({queryKey:["staking","positions",r]}),a.invalidateQueries({queryKey:["wallet","balance",r]})},6e3)}})}function rO(){const a=Yt();return _t({mutationFn:l=>l.chain==="ETH"?JL(l.amountHuman,l.mode):eO(l.stakeAccount),onSuccess:(l,i)=>{a.invalidateQueries({queryKey:["staking","positions",i.chain]}),a.invalidateQueries({queryKey:["wallet","balance",i.chain]})}})}function cO(){const a=Yt();return _t({mutationFn:l=>tO(l),onSuccess:()=>{a.invalidateQueries({queryKey:["staking","positions","ETH"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const uO="_panel_jl9ez_1",dO="_row_jl9ez_13",fO="_label_jl9ez_26",hO="_value_jl9ez_31",mO="_success_jl9ez_39",pO="_highlight_jl9ez_43",_O="_rowTotal_jl9ez_48",gO="_valueLg_jl9ez_55",pl={panel:uO,row:dO,label:fO,value:hO,success:mO,highlight:pO,rowTotal:_O,valueLg:gO};function vO({rows:a,loading:l}){return o.jsx("div",{className:pl.panel,"data-loading":l?"true":void 0,children:a.map(({label:i,value:r,accent:d,emphasis:f})=>o.jsxs("div",{className:`${pl.row} ${f?pl.rowTotal:""}`,children:[o.jsx("span",{className:pl.label,children:i}),o.jsx("span",{className:`${pl.value} ${f?pl.valueLg:""} ${d?pl[d]:""}`,children:r})]},i))})}const yO="_wrapper_1y6dk_1",bO="_pillsOuter_1y6dk_7",xO="_card_1y6dk_12",SO="_top_1y6dk_19",jO="_tag_1y6dk_27",wO="_right_1y6dk_35",NO="_apr_1y6dk_41",CO="_pillsInner_1y6dk_52",EO="_pill_1y6dk_7",TO="_mid_1y6dk_75",kO="_input_1y6dk_83",RO="_token_1y6dk_99",AO="_bottom_1y6dk_109",LO="_balance_1y6dk_116",OO="_max_1y6dk_124",MO="_hint_1y6dk_139",zO="_stakeBtn_1y6dk_147",DO="_stakeBtnDisabled_1y6dk_151",Dt={wrapper:yO,pillsOuter:bO,card:xO,top:SO,tag:jO,right:wO,apr:NO,pillsInner:CO,pill:EO,mid:TO,input:kO,token:RO,bottom:AO,balance:LO,max:OO,hint:MO,stakeBtn:zO,stakeBtnDisabled:DO},BO=[25,50,100],bi="—";function u3(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function $O(a,l,i,r,d){var M,O,H;const f=a.symbol==="ETH",m=`Годовая доходность (${a.aprLabel})`,g=(M=i==null?void 0:i.appCommission)==null?void 0:M.usd,h=g!=null?u3(g):bi,p=(l==null?void 0:l.aprPercent)!=null?`${l.aprPercent}%`:bi,v=f?"Вы получите":"Делегируется валидатору",y=l?f?`${Je(l.resultHuman,8)} stETH`:`${Je(l.resultHuman,8)} SOL`:bi,b=(H=(O=i==null?void 0:i.balance)==null?void 0:O.gas)==null?void 0:H.needReserve,j=b!=null&&parseFloat(String(b))||0,w=b!=null?`${Je(String(b),8)} ${a.symbol}`:bi,N=Math.max(0,r-j),C=b!=null&&r>0?`${Je(N.toString(),8)} ${a.symbol}`:bi,R=d>0&&r>0?u3(r*d):bi;return[{label:"Сетевой сбор (газ)",value:w},{label:"Сумма в стейкинг",value:C},{label:"Комиссия сервиса (0.7%)",value:h},{label:m,value:p,accent:"success"},{label:"Итого к списанию",value:R},{label:v,value:y,accent:"highlight",emphasis:!0}]}function UO({chain:a,amount:l,onAmountChange:i,onStake:r,isStaking:d}){var ue,re;const f=lg[a],m=Tl[a],{data:g}=Ui(a),h=(g==null?void 0:g.native.formatted)??"0",p=parseFloat(h)||0,v=ya(l,400),{data:y,isError:b}=lO(a,v),j=((re=(ue=y==null?void 0:y.balance)==null?void 0:ue.gas)==null?void 0:re.needReserve)!=null?String(y.balance.gas.needReserve):null;function w(ce){if((parseFloat(ce)||0)<=0)return"0";if(j!=null){const he=BigInt(la(ce,m)),ne=BigInt(la(j,m)),q=he>ne?he-ne:0n;return Jo(q.toString(),m)}return b?ce:"0"}const N=w(l),C=w(v),R=parseFloat(N)||0,{data:M,isFetching:O}=sO(a,C),H=parseFloat(l)||0,I=H>0&&H<=p,X=I&&j!=null&&R<=0,$=I&&R>0&&!d,P=ce=>{ce>=100?i(h):i((p*ce/100).toString())},J=o.jsx(o.Fragment,{children:BO.map(ce=>o.jsxs("button",{className:Dt.pill,onClick:()=>P(ce),"aria-label":`${ce}% от баланса`,children:[ce,"%"]},ce))});return o.jsxs("div",{className:Dt.wrapper,children:[o.jsx("div",{className:Dt.pillsOuter,children:J}),o.jsxs("div",{className:Dt.card,children:[o.jsxs("div",{className:Dt.top,children:[o.jsx("span",{className:Dt.tag,children:"Сумма к списанию"}),o.jsxs("div",{className:Dt.right,children:[o.jsxs("span",{className:Dt.apr,children:[f.aprLabel," ",(M==null?void 0:M.aprPercent)!=null?`${M.aprPercent}%`:"—"]}),o.jsx("div",{className:Dt.pillsInner,children:J})]})]}),o.jsxs("div",{className:Dt.mid,children:[o.jsx("input",{className:Dt.input,type:"text",inputMode:"decimal",value:l,onChange:ce=>{const te=ce.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(te)||te==="")&&i(te)},placeholder:"0","aria-label":`Сумма к списанию в ${f.symbol}`}),o.jsxs("div",{className:Dt.token,children:[o.jsx(kl,{letter:f.symbol[0],color:"var(--grad-center)",logo:rt[f.symbol],size:28}),o.jsx("span",{children:f.symbol})]})]}),o.jsx("div",{className:Dt.bottom,children:o.jsxs("span",{className:Dt.balance,children:["Баланс: ",Je(h,6)," ",f.symbol,o.jsx("button",{className:Dt.max,onClick:()=>P(100),"aria-label":"Использовать весь баланс",children:"МАКС"})]})}),o.jsx(vO,{rows:$O(f,M,y,H,(g==null?void 0:g.native.usdPrice)??0),loading:O}),X&&o.jsx("p",{className:Dt.hint,children:"Сумма меньше сетевого сбора (газ)."}),o.jsx("div",{className:`${Dt.stakeBtn} ${$?"":Dt.stakeBtnDisabled}`,children:o.jsx(In,{label:d?"Отправка…":"Застейкать",type:"button",onClick:()=>r(N),disabled:!$})})]})]})}const HO="_notice_y8uqt_1",qO="_icon_y8uqt_14",FO="_compact_y8uqt_29",Wd={notice:HO,icon:qO,compact:FO};function og({compact:a}){return o.jsxs("div",{className:`${Wd.notice} ${a?Wd.compact:""}`,children:[o.jsx("span",{className:Wd.icon,"aria-hidden":"true",children:"!"}),o.jsx("span",{children:"Вывод средств из стейкинга может занимать до 2 недель."})]})}const GO="_panel_156jb_1",VO="_inner_156jb_8",QO="_body_156jb_16",PO="_head_156jb_45",IO="_title_156jb_51",YO="_total_156jb_59",XO="_totalUnit_156jb_65",KO="_subhead_156jb_70",ZO="_list_156jb_79",WO="_pos_156jb_85",JO="_pending_156jb_93",eM="_reqCard_156jb_108",tM="_posTop_156jb_112",nM="_coin_156jb_120",aM="_amount_156jb_129",sM="_meta_156jb_136",lM="_badge_156jb_143",iM="_badgeActive_156jb_151",oM="_badgeReady_156jb_156",rM="_badgeMuted_156jb_161",cM="_btn_156jb_166",uM="_btnPrimary_156jb_189",dM="_note_156jb_201",fM="_empty_156jb_208",hM="_emptyState_156jb_215",mM="_emptyIcon_156jb_227",pM="_emptyTitle_156jb_239",_M="_emptyText_156jb_246",pe={panel:GO,inner:VO,body:QO,head:PO,title:IO,total:YO,totalUnit:XO,subhead:KO,list:ZO,pos:WO,pending:JO,reqCard:eM,posTop:tM,coin:nM,amount:aM,meta:sM,badge:lM,badgeActive:iM,badgeReady:oM,badgeMuted:rM,btn:cM,btnPrimary:uM,note:dM,empty:fM,emptyState:hM,emptyIcon:mM,emptyTitle:pM,emptyText:_M};function gM({chain:a,onUnstakeEth:l,onUnstakeSol:i,onClaim:r,unstakePending:d,claimPending:f}){var C;const{data:m,isLoading:g,isError:h,error:p}=iO(a),v={active:pe.badgeActive,ready:pe.badgeReady,muted:pe.badgeMuted},y=(m==null?void 0:m.chain)==="ETH"?m.stEthBalanceWeiHuman:(m==null?void 0:m.chain)==="SOL"?m.positions.reduce((R,M)=>R+(parseFloat(M.lamportsHuman)||0),0).toString():"0",b=a==="ETH"?"stETH":"SOL",j=(m==null?void 0:m.chain)==="ETH"&&(parseFloat(m.stEthBalanceWeiHuman)||0)<1e-11&&m.withdrawalRequests.length===0,w=(m==null?void 0:m.chain)==="SOL"&&m.positions.length===0,N=j||w;return o.jsx("div",{className:pe.panel,children:o.jsxs("div",{className:pe.inner,children:[o.jsxs("div",{className:pe.head,children:[o.jsx("span",{className:pe.title,children:"Мои позиции"}),o.jsxs("div",{className:pe.total,children:[Je(h?"0":y,6)," ",o.jsx("span",{className:pe.totalUnit,children:b})]})]}),o.jsxs("div",{className:pe.body,children:[!g&&!h&&!N&&o.jsx(og,{compact:!0}),g&&o.jsx(On,{label:"Загрузка позиций"}),h&&o.jsx("div",{className:pe.empty,children:Yo(p)}),!g&&!h&&(N||(m==null?void 0:m.chain)==="ETH"&&(parseFloat(m.stEthBalanceWeiHuman)||0)<1e-14)&&o.jsxs("div",{className:pe.emptyState,children:[o.jsx("span",{className:pe.emptyIcon,"aria-hidden":!0,children:o.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("path",{d:"M3 7.5 12 3l9 4.5-9 4.5z"}),o.jsx("path",{d:"M3 12.5 12 17l9-4.5"}),o.jsx("path",{d:"M3 16.5 12 21l9-4.5"})]})}),o.jsx("p",{className:pe.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:pe.emptyText,children:"На данный момент у Вас нет активных позиций стейкинга."})]}),!h&&(m==null?void 0:m.chain)==="ETH"&&!N&&o.jsxs(o.Fragment,{children:[(parseFloat(m.stEthBalanceWeiHuman)||0)>1e-14&&o.jsx("div",{className:pe.list,children:o.jsxs("div",{className:`${pe.pos} ${m.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(kl,{letter:"E",color:"var(--grad-center)",logo:rt.ETH,size:24}),"stETH"]}),o.jsxs("span",{className:`${pe.badge} ${pe.badgeActive}`,children:["Активна",m.aprPercent!=null?` · APR ${m.aprPercent}%`:""]})]}),o.jsx("div",{className:pe.amount,children:Je(m.stEthBalanceWeiHuman,8)}),o.jsx("button",{className:pe.btn,onClick:()=>l(m.stEthBalanceWeiHuman),disabled:d,children:"Вывести"})]})}),(parseFloat((C=m.withdrawalRequests[0])==null?void 0:C.amountStEthWeiHuman)||0)>1e-14&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:pe.subhead,children:"Заявки на вывод"}),o.jsx("div",{className:pe.list,children:m.withdrawalRequests.map(R=>{const M=R.isFinalized&&!R.isClaimed;return o.jsxs("div",{className:`${pe.pos} ${M?pe.reqCard:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:["Заявка #",R.requestId]}),o.jsx("span",{className:`${pe.badge} ${R.isClaimed?pe.badgeMuted:M?pe.badgeReady:pe.badgeMuted}`,children:R.isClaimed?"Выведено":M?"Готово к выводу":"В очереди"})]}),o.jsxs("div",{className:pe.amount,children:[Je(R.amountStEthWeiHuman,8)," ETH"]}),M?o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>r(R.requestId),disabled:f,children:"Забрать ETH"}):R.isClaimed?null:o.jsx("div",{className:pe.note,children:"Ожидает финализации в Lido"})]},R.requestId)})})]})]}),!h&&(m==null?void 0:m.chain)==="SOL"&&!N&&o.jsx("div",{className:pe.list,children:m.positions.map(R=>{const M=GL[R.state];return o.jsxs("div",{className:`${pe.pos} ${R.optimistic?pe.pending:""}`,children:[o.jsxs("div",{className:pe.posTop,children:[o.jsxs("span",{className:pe.coin,children:[o.jsx(kl,{letter:"S",color:"var(--grad-center)",logo:rt.SOL,size:24}),"SOL"]}),o.jsx("span",{className:`${pe.badge} ${v[M.variant]}`,children:M.label})]}),o.jsx("div",{className:pe.amount,children:Je(R.lamportsHuman,8)}),o.jsxs("div",{className:pe.meta,children:["Валидатор: ",R.validator," · ",R.stakeAccount]}),R.state==="active"&&o.jsx("button",{className:pe.btn,onClick:()=>i(R),disabled:d,children:"Вывести"}),R.state==="inactive"&&o.jsx("button",{className:`${pe.btn} ${pe.btnPrimary}`,onClick:()=>i(R),disabled:d,children:"Вывести средства"}),R.state==="deactivating"&&o.jsx("div",{className:pe.note,children:"Разблокируется через 12 эпохи"}),R.state==="activating"&&o.jsx("div",{className:pe.note,children:"Активируется…"})]},R.stakeAccount)})})]})]})})}const vM="_overlay_17qoe_1",yM="_card_17qoe_13",bM="_header_17qoe_25",xM="_title_17qoe_31",SM="_closeBtn_17qoe_37",jM="_token_17qoe_52",wM="_tokenLabel_17qoe_62",NM="_tokenAmount_17qoe_70",CM="_modes_17qoe_77",EM="_mode_17qoe_77",TM="_modeActive_17qoe_101",kM="_modeTitle_17qoe_106",RM="_modeDesc_17qoe_112",AM="_solNote_17qoe_118",LM="_confirmBtn_17qoe_125",Rt={overlay:vM,card:yM,header:bM,title:xM,closeBtn:SM,token:jM,tokenLabel:wM,tokenAmount:NM,modes:CM,mode:EM,modeActive:TM,modeTitle:kM,modeDesc:RM,solNote:AM,confirmBtn:LM};function d3({chain:a,symbol:l,amount:i,solState:r,pending:d,onConfirm:f,onClose:m}){const[g,h]=S.useState("swap");S.useEffect(()=>{function b(j){j.key==="Escape"&&m()}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[m]);const p=a==="SOL"&&r==="inactive",v=d?"Отправка…":a==="ETH"?"Подтвердить вывод":p?"Вывести средства":"Запустить деактивацию",y=a==="SOL"||a==="ETH"&&g==="queue";return o.jsx("div",{className:Rt.overlay,onClick:m,children:o.jsxs("div",{className:Rt.card,onClick:b=>b.stopPropagation(),children:[o.jsxs("div",{className:Rt.header,children:[o.jsx("span",{className:Rt.title,children:"Вывод из стейкинга"}),o.jsx("button",{className:Rt.closeBtn,onClick:m,children:"×"})]}),o.jsxs("div",{className:Rt.token,children:[o.jsx("span",{className:Rt.tokenLabel,children:"Сумма"}),o.jsxs("span",{className:Rt.tokenAmount,children:[i," ",a==="ETH"?"stETH":l]})]}),a==="ETH"&&o.jsxs("div",{className:Rt.modes,children:[o.jsxs("button",{className:`${Rt.mode} ${g==="swap"?Rt.modeActive:""}`,onClick:()=>h("swap"),children:[o.jsx("span",{className:Rt.modeTitle,children:"Мгновенно"}),o.jsx("span",{className:Rt.modeDesc,children:"Своп stETH → ETH через Curve"})]}),o.jsxs("button",{className:`${Rt.mode} ${g==="queue"?Rt.modeActive:""}`,onClick:()=>h("queue"),children:[o.jsx("span",{className:Rt.modeTitle,children:"Очередь"}),o.jsx("span",{className:Rt.modeDesc,children:"Заявка в Lido Withdrawal Queue"})]})]}),a==="SOL"&&!p&&o.jsx("p",{className:Rt.solNote,children:"Средства разблокируются через 12 эпохи. После завершения вернитесь и подтвердите вывод."}),y&&o.jsx(og,{}),o.jsx("button",{className:Rt.confirmBtn,onClick:()=>f(a==="ETH"?g:void 0),disabled:d,children:v})]})})}const OM="_widget_wxtkp_1",MM="_grid_wxtkp_7",f3={widget:OM,grid:MM};function zM(){const[a,l]=S.useState("ETH"),[i,r]=S.useState(""),[d,f]=S.useState(null),[m,g]=S.useState(null),h=oO(),p=rO(),v=cO();function y(N){l(N),r("")}function b(N){h.mutate({chain:a,amountHuman:N},{onSuccess:()=>{g({status:"success",message:`Стейкинг ${Je(N,6)} ${lg[a].symbol} выполнен`}),r("")},onError:C=>g({status:"error",message:Yo(C)})})}function j(N){if((d==null?void 0:d.kind)==="eth"){const C=N??"swap";p.mutate({chain:"ETH",amountHuman:d.amount,mode:C},{onSuccess:()=>{f(null),g({status:"success",message:C==="queue"?"Заявка на вывод добавлена в очередь Lido":"Вывод stETH → ETH выполнен"})},onError:R=>g({status:"error",message:Yo(R)})})}else(d==null?void 0:d.kind)==="sol"&&p.mutate({chain:"SOL",stakeAccount:d.position.stakeAccount},{onSuccess:C=>{f(null);const R="action"in C&&C.action==="withdraw";g({status:"success",message:R?"Средства выведены на кошелёк":"Деактивация запущена — вывод через 12 эпохи"})},onError:C=>g({status:"error",message:Yo(C)})})}function w(N){v.mutate(N,{onSuccess:()=>g({status:"success",message:"ETH забран на кошелёк"}),onError:C=>g({status:"error",message:Yo(C)})})}return o.jsxs("div",{className:f3.widget,children:[o.jsx(YL,{value:a,onChange:y}),o.jsxs("div",{className:f3.grid,children:[o.jsx(UO,{chain:a,amount:i,onAmountChange:r,onStake:b,isStaking:h.isPending}),o.jsx(gM,{chain:a,onUnstakeEth:N=>f({kind:"eth",amount:N}),onUnstakeSol:N=>f({kind:"sol",position:N}),onClaim:w,unstakePending:p.isPending,claimPending:v.isPending})]}),(d==null?void 0:d.kind)==="eth"&&o.jsx(d3,{chain:"ETH",symbol:"ETH",amount:d.amount,pending:p.isPending,onConfirm:j,onClose:()=>f(null)}),(d==null?void 0:d.kind)==="sol"&&o.jsx(d3,{chain:"SOL",symbol:"SOL",amount:d.position.lamportsHuman,solState:d.position.state,pending:p.isPending,onConfirm:j,onClose:()=>f(null)}),m&&o.jsx(es,{status:m.status,message:m.message,onClose:()=>g(null),duration:5e3})]})}const DM="_page_1j4fk_1",BM="_head_1j4fk_8",$M="_title_1j4fk_12",UM="_subtitle_1j4fk_19",Hc={page:DM,head:BM,title:$M,subtitle:UM};function HM(){return o.jsxs("div",{className:Hc.page,children:[o.jsxs("header",{className:Hc.head,children:[o.jsx("h1",{className:Hc.title,children:"Стейкинг"}),o.jsx("p",{className:Hc.subtitle,children:"Выберите сеть и укажите, сколько монет хотите застейкать. Ваши средства отправляются в стейкинг и начинают приносить доход (APR). Все ваши вклады видны в блоке «Мои позиции», откуда их можно вывести вместе с накопленной наградой. Учтите, что вывод средств занимает некоторое время. Комиссия сервиса — 0.7%."})]}),o.jsx(zM,{})]})}const rg="https://app.cryptowallet.elcsa.ru";async function Y2(a,l=!0){const i=await tn(),r=Ct.get(),d=await fetch(`${rg}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&l)try{return await ia(),Y2(a,!1)}catch{throw Ct.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function hu(a,l,i=!0,r={}){const d=await tn(),f=Ct.get(),m=await fetch(`${rg}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(l)});if(m.status===401&&i)try{return await ia(),hu(a,l,!1,r)}catch{throw Ct.clear(),new Error("Unauthorized")}const g=await m.json();if(!m.ok)throw g;return g}function cg(){return{"Idempotency-Key":crypto.randomUUID()}}async function qM(){return(await Y2("/api/wallets/ETH/lp/pools")).data}function ug(a){const{pool:l,amount0Human:i,amount1Human:r,priceLower:d,priceUpper:f,slippageBps:m,useNativeEth:g}=a;return{pool:l.poolAddress,priceLower:d,priceUpper:f,amount0Desired:la(i||"0",l.decimals0),amount1Desired:la(r||"0",l.decimals1),...m!=null?{slippageBps:m}:{},...g!=null?{useNativeEth:g}:{}}}async function FM(a){return(await hu("/api/wallets/ETH/lp/quote",ug(a))).data}async function GM(a){return(await hu("/api/wallets/ETH/lp/add",ug(a),!0,cg())).data}async function VM(a,l=100){return(await hu("/api/wallets/ETH/lp/remove",{tokenId:a,percent:l},!0,cg())).data}async function QM(){return(await Y2("/api/wallets/ETH/lp/positions")).data}function qc(a){if(a&&typeof a=="object"&&"error"in a){const l=a.error;if(typeof l=="string")return l}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — перезагрузите страницу.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function PM(){return Et({queryKey:["pools","list"],queryFn:qM,staleTime:3e4,retry:!1})}function IM(){return Et({queryKey:["pools","positions"],queryFn:QM,staleTime:3e4,retry:!1})}function YM(a){const l=a!=null&&a.priceLower>0&&a.priceUpper>0&&(parseFloat(a.amount0Human)>0||parseFloat(a.amount1Human)>0);return Et({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:()=>FM(a),enabled:l,staleTime:15e3,retry:!1})}function XM(){const a=Yt();return _t({mutationFn:l=>GM(l),onSettled:()=>{setTimeout(()=>{a.invalidateQueries({queryKey:["wallet","balance","ETH"]}),a.invalidateQueries({queryKey:["pools","positions"]})},1500),setTimeout(()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})},6e3)}})}function KM(){const a=Yt();return _t({mutationFn:({tokenId:l,percent:i})=>VM(l,i),onSuccess:()=>{a.invalidateQueries({queryKey:["pools","positions"]}),a.invalidateQueries({queryKey:["wallet","balance","ETH"]})}})}const ZM={WETH:"ETH",WBTC:"BTC"};function ot(a){return ZM[a]??a}function mu(a){return`${a/1e4}%`}const WM="_card_1uvgu_1",JM="_head_1uvgu_8",ez="_title_1uvgu_12",tz="_scroll_1uvgu_20",nz="_message_1uvgu_24",az="_spinnerWrap_1uvgu_31",sz="_table_1uvgu_38",lz="_thLeft_1uvgu_55",iz="_sortable_1uvgu_59",oz="_arrow_1uvgu_69",rz="_row_1uvgu_73",cz="_rowSelected_1uvgu_74",uz="_tdLeft_1uvgu_96",dz="_tdAction_1uvgu_100",fz="_mono_1uvgu_104",hz="_apr_1uvgu_108",mz="_pairName_1uvgu_113",pz="_fee_1uvgu_118",_z="_btn_1uvgu_128",gz="_btnSelected_1uvgu_129",lt={card:WM,head:JM,title:ez,scroll:tz,message:nz,spinnerWrap:az,table:sz,thLeft:lz,sortable:iz,arrow:oz,row:rz,rowSelected:cz,tdLeft:uz,tdAction:dz,mono:fz,apr:hz,pairName:mz,fee:pz,btn:_z,btnSelected:gz},dg="—";function h3(a){return a==null?dg:a>=1e6?`$${(a/1e6).toFixed(2)}M`:a>=1e3?`$${(a/1e3).toFixed(2)}K`:`$${a.toFixed(2)}`}function vz(a){return a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}function yz(a){return a==null?dg:`${parseFloat(a.toFixed(3))}%`}function m3(a){return`${ot(a.symbol0)}/${ot(a.symbol1)}`}function bz(a,l,i,r){if(i==="pair"){const g=m3(a).localeCompare(m3(l));return r==="asc"?g:-g}const d=a[i],f=l[i];if(d==null&&f==null)return 0;if(d==null)return 1;if(f==null)return-1;const m=d-f;return r==="asc"?m:-m}function xz({pools:a,selected:l,onSelect:i,loading:r,error:d}){const[f,m]=S.useState(null),[g,h]=S.useState(null);function p(j){if(f!==j){m(j),h("desc");return}g==="desc"?h("asc"):g==="asc"?(m(null),h(null)):h("desc")}const v=S.useMemo(()=>!f||!g?a:[...a].sort((j,w)=>bz(j,w,f,g)),[a,f,g]);function y(j){return f!==j||!g?"":g==="desc"?" ▼":" ▲"}const b=[{key:"pair",label:"Пул",align:"left"},{key:"feeTier",label:"Комиссия",align:"right"},{key:"currentPrice",label:"Цена",align:"right"},{key:"tvlUSD",label:"TVL",align:"right"},{key:"volumeUSD24h",label:"Объём 24ч",align:"right"},{key:"aprPercent",label:"APR",align:"right"}];return o.jsxs("div",{className:lt.card,children:[o.jsx("div",{className:lt.head,children:o.jsx("span",{className:lt.title,children:"Курируемые пулы"})}),r&&o.jsx("div",{className:lt.spinnerWrap,children:o.jsx(On,{label:"Загрузка пулов"})}),!r&&d&&o.jsx("div",{className:lt.message,children:d}),!r&&!d&&a.length===0&&o.jsx("div",{className:lt.message,children:"Курируемых пулов пока нет."}),!r&&!d&&a.length>0&&o.jsx("div",{className:lt.scroll,children:o.jsxs("table",{className:lt.table,children:[o.jsx("thead",{children:o.jsxs("tr",{children:[b.map(j=>o.jsxs("th",{className:`${lt.sortable} ${j.align==="left"?lt.thLeft:""}`,onClick:()=>p(j.key),"aria-sort":f===j.key?g==="asc"?"ascending":"descending":"none",children:[j.label,o.jsx("span",{className:lt.arrow,children:y(j.key)})]},j.key)),o.jsx("th",{"aria-label":"Действие"})]})}),o.jsx("tbody",{children:v.map(j=>{const w=j.poolAddress===l;return o.jsxs("tr",{className:w?lt.rowSelected:lt.row,onClick:()=>i(j.poolAddress),children:[o.jsx("td",{className:lt.tdLeft,children:o.jsxs("span",{className:lt.pairName,children:[ot(j.symbol0),"/",ot(j.symbol1)]})}),o.jsx("td",{children:o.jsx("span",{className:lt.fee,children:mu(j.feeTier)})}),o.jsx("td",{className:lt.mono,children:vz(j.currentPrice)}),o.jsx("td",{className:lt.mono,children:h3(j.tvlUSD)}),o.jsx("td",{className:lt.mono,children:h3(j.volumeUSD24h)}),o.jsx("td",{className:`${lt.mono} ${lt.apr}`,children:yz(j.aprPercent)}),o.jsx("td",{className:lt.tdAction,children:o.jsx("button",{type:"button",className:w?lt.btnSelected:lt.btn,onClick:N=>{N.stopPropagation(),i(j.poolAddress)},children:w?"Выбран":"Выбрать"})})]},j.poolAddress)})})]})})]})}const Sz="_card_9umyw_1",jz="_top_9umyw_8",wz="_pair_9umyw_16",Nz="_fee_9umyw_25",Cz="_tag_9umyw_34",Ez="_amounts_9umyw_44",Tz="_amountField_9umyw_51",kz="_balance_9umyw_57",Rz="_amountRow_9umyw_64",Az="_amountInput_9umyw_75",Lz="_token_9umyw_91",Oz="_range_9umyw_101",Mz="_priceField_9umyw_108",zz="_priceLabel_9umyw_118",Dz="_priceInput_9umyw_124",Bz="_quote_9umyw_140",$z="_quoteRow_9umyw_147",Uz="_quoteLabel_9umyw_160",Hz="_quoteValue_9umyw_165",qz="_feeValue_9umyw_173",Fz="_success_9umyw_178",Gz="_warning_9umyw_182",Vz="_submit_9umyw_190",Qz="_placeholder_9umyw_195",Pz="_placeholderTitle_9umyw_207",Iz="_placeholderText_9umyw_214",Ne={card:Sz,top:jz,pair:wz,fee:Nz,tag:Cz,amounts:Ez,amountField:Tz,balance:kz,amountRow:Rz,amountInput:Az,token:Lz,range:Oz,priceField:Mz,priceLabel:zz,priceInput:Dz,quote:Bz,quoteRow:$z,quoteLabel:Uz,quoteValue:Hz,feeValue:qz,success:Fz,warning:Gz,submit:Vz,placeholder:Qz,placeholderTitle:Pz,placeholderText:Iz},Fc="—",X2=/^(\d+\.?\d*|\.?\d*)$/;function p3(a,l){var i;return a?ot(l)===a.chain?a.native.formatted:((i=a.tokens[l])==null?void 0:i.formatted)??"0":"0"}function _3({symbol:a,value:l,onChange:i,balance:r}){return o.jsxs("div",{className:Ne.amountField,children:[o.jsxs("div",{className:Ne.amountRow,children:[o.jsx("input",{className:Ne.amountInput,type:"text",inputMode:"decimal",value:l,onChange:d=>{const f=d.target.value;(X2.test(f)||f==="")&&i(f)},placeholder:"0","aria-label":`Сумма ${a}`}),o.jsx("div",{className:Ne.token,children:o.jsx("span",{children:a})})]}),o.jsxs("span",{className:Ne.balance,children:["Баланс: ",Je(r,6)," ",a]})]})}function g3({label:a,value:l,onChange:i}){return o.jsxs("label",{className:Ne.priceField,children:[o.jsx("span",{className:Ne.priceLabel,children:a}),o.jsx("input",{className:Ne.priceInput,type:"text",inputMode:"decimal",value:l,onChange:r=>{const d=r.target.value;(X2.test(d)||d==="")&&i(d)},placeholder:"0"})]})}function Yz({pool:a,quote:l,quoteFetching:i,pending:r,amount0:d,amount1:f,priceLower:m,priceUpper:g,slippage:h,onAmount0Change:p,onAmount1Change:v,onPriceLowerChange:y,onPriceUpperChange:b,onSlippageChange:j,onSubmit:w}){const{data:N}=Ui("ETH");if(!a)return o.jsx("div",{className:Ne.card,children:o.jsxs("div",{className:Ne.placeholder,children:[o.jsx("p",{className:Ne.placeholderTitle,children:"Выберите пул"}),o.jsx("p",{className:Ne.placeholderText,children:"Выберите пул в таблице выше, чтобы внести ликвидность."})]})});const C=l==null?void 0:l.balance,R=(C==null?void 0:C.sufficient)===!1,M=(l==null?void 0:l.aprPercent)!=null?`${l.aprPercent}%`:Fc,O=(l==null?void 0:l.appFeeTotalUsd)!=null?`$${l.appFeeTotalUsd.toFixed(2)}`:Fc,H=l?Je(l.amount0DesiredHuman,8):Fc,I=l?Je(l.amount1DesiredHuman,8):Fc,X=C&&C.token1.sufficient===!1?C.token1:C==null?void 0:C.token0,$=!!l&&!R&&!r;return o.jsxs("div",{className:Ne.card,children:[o.jsxs("div",{className:Ne.top,children:[o.jsxs("span",{className:Ne.pair,children:[ot(a.symbol0),"/",ot(a.symbol1)]}),o.jsx("span",{className:Ne.fee,children:mu(a.feeTier)})]}),o.jsx("span",{className:Ne.tag,children:"Суммы взноса"}),o.jsxs("div",{className:Ne.amounts,children:[o.jsx(_3,{symbol:ot(a.symbol0),value:d,onChange:p,balance:p3(N,a.symbol0)}),o.jsx(_3,{symbol:ot(a.symbol1),value:f,onChange:v,balance:p3(N,a.symbol1)})]}),o.jsxs("span",{className:Ne.tag,children:["Диапазон цен (",ot(a.symbol1)," за ",ot(a.symbol0),")"]}),o.jsxs("div",{className:Ne.range,children:[o.jsx(g3,{label:"Мин.",value:m,onChange:y}),o.jsx(g3,{label:"Макс.",value:g,onChange:b}),o.jsxs("label",{className:Ne.priceField,children:[o.jsx("span",{className:Ne.priceLabel,children:"Проскальзывание, %"}),o.jsx("input",{className:Ne.priceInput,type:"text",inputMode:"decimal",value:h,onChange:P=>{const J=P.target.value;(X2.test(J)||J==="")&&j(J)},placeholder:"1"})]})]}),o.jsxs("div",{className:Ne.quote,"data-loading":i?"true":void 0,children:[o.jsxs("div",{className:Ne.quoteRow,children:[o.jsxs("span",{className:Ne.quoteLabel,children:["Взнос ",ot(a.symbol0)]}),o.jsx("span",{className:Ne.quoteValue,children:H})]}),o.jsxs("div",{className:Ne.quoteRow,children:[o.jsxs("span",{className:Ne.quoteLabel,children:["Взнос ",ot(a.symbol1)]}),o.jsx("span",{className:Ne.quoteValue,children:I})]}),o.jsxs("div",{className:Ne.quoteRow,children:[o.jsx("span",{className:Ne.quoteLabel,children:"Комиссия сервиса (0.7%)"}),o.jsx("span",{className:`${Ne.quoteValue} ${Ne.feeValue}`,children:O})]}),o.jsxs("div",{className:Ne.quoteRow,children:[o.jsx("span",{className:Ne.quoteLabel,children:"Годовая доходность (APR)"}),o.jsx("span",{className:`${Ne.quoteValue} ${Ne.success}`,children:M})]})]}),R&&o.jsxs("p",{className:Ne.warning,children:["Недостаточно средств",X?`: не хватает ${ot(X.symbol)}`:"",". Пополните баланс."]}),o.jsx("div",{className:Ne.submit,children:o.jsx(In,{label:r?"Отправка…":"Внести в пул",type:"button",onClick:w,disabled:!$})})]})}const Xz="_panel_1yqb9_1",Kz="_inner_1yqb9_8",Zz="_body_1yqb9_15",Wz="_head_1yqb9_60",Jz="_title_1yqb9_66",eD="_total_1yqb9_74",tD="_totalUnit_1yqb9_80",nD="_list_1yqb9_85",aD="_message_1yqb9_91",sD="_pos_1yqb9_98",lD="_posTop_1yqb9_105",iD="_coin_1yqb9_113",oD="_fee_1yqb9_122",rD="_badge_1yqb9_131",cD="_badgeActive_1yqb9_139",uD="_badgeWarn_1yqb9_144",dD="_rows_1yqb9_149",fD="_row_1yqb9_149",hD="_label_1yqb9_163",mD="_value_1yqb9_168",pD="_success_1yqb9_176",_D="_btn_1yqb9_180",gD="_emptyState_1yqb9_203",vD="_emptyTitle_1yqb9_215",yD="_emptyText_1yqb9_222",De={panel:Xz,inner:Kz,body:Zz,head:Wz,title:Jz,total:eD,totalUnit:tD,list:nD,message:aD,pos:sD,posTop:lD,coin:iD,fee:oD,badge:rD,badgeActive:cD,badgeWarn:uD,rows:dD,row:fD,label:hD,value:mD,success:pD,btn:_D,emptyState:gD,emptyTitle:vD,emptyText:yD};function bD({positions:a,onRemove:l,removePending:i,isLoading:r,error:d}){const f=a.length===0;return o.jsx("div",{className:De.panel,children:o.jsxs("div",{className:De.inner,children:[o.jsxs("div",{className:De.head,children:[o.jsx("span",{className:De.title,children:"Мои позиции"}),o.jsxs("div",{className:De.total,children:[a.length," ",o.jsx("span",{className:De.totalUnit,children:"NFT"})]})]}),o.jsxs("div",{className:De.body,children:[r&&o.jsx(On,{label:"Загрузка позиций"}),!r&&d&&o.jsx("div",{className:De.message,children:d}),!r&&!d&&f&&o.jsxs("div",{className:De.emptyState,children:[o.jsx("p",{className:De.emptyTitle,children:"Активных позиций пока нет"}),o.jsx("p",{className:De.emptyText,children:"На данный момент у Вас нет позиций в пулах ликвидности."})]}),!r&&!d&&!f&&o.jsx("div",{className:De.list,children:a.map(m=>o.jsxs("div",{className:De.pos,children:[o.jsxs("div",{className:De.posTop,children:[o.jsxs("span",{className:De.coin,children:[ot(m.symbol0),"/",ot(m.symbol1),o.jsx("span",{className:De.fee,children:mu(m.feeTier)})]}),o.jsx("span",{className:`${De.badge} ${m.inRange?De.badgeActive:De.badgeWarn}`,children:m.inRange?"В диапазоне":"Вне диапазона"})]}),o.jsxs("div",{className:De.rows,children:[o.jsxs("div",{className:De.row,children:[o.jsx("span",{className:De.label,children:"Диапазон цен"}),o.jsxs("span",{className:De.value,children:[m.priceLower," ",m.priceUpper]})]}),o.jsxs("div",{className:De.row,children:[o.jsx("span",{className:De.label,children:ot(m.symbol0)}),o.jsx("span",{className:De.value,children:Je(m.currentAmount0Human,8)})]}),o.jsxs("div",{className:De.row,children:[o.jsx("span",{className:De.label,children:ot(m.symbol1)}),o.jsx("span",{className:De.value,children:Je(m.currentAmount1Human,8)})]}),o.jsxs("div",{className:De.row,children:[o.jsx("span",{className:De.label,children:"Комиссии к выводу"}),o.jsxs("span",{className:`${De.value} ${De.success}`,children:[Je(m.feesOwed0Human,8)," ",ot(m.symbol0)," · ",Je(m.feesOwed1Human,8)," ",ot(m.symbol1)]})]})]}),o.jsx("button",{className:De.btn,onClick:()=>l(m.tokenId),disabled:i,children:"Вывести"})]},m.tokenId))})]})]})})}const xD="_overlay_mbhaz_1",SD="_card_mbhaz_13",jD="_header_mbhaz_25",wD="_title_mbhaz_31",ND="_closeBtn_mbhaz_37",CD="_token_mbhaz_52",ED="_tokenLabel_mbhaz_62",TD="_tokenAmount_mbhaz_70",kD="_tokenMeta_mbhaz_77",RD="_modes_mbhaz_83",AD="_mode_mbhaz_83",LD="_modeActive_mbhaz_107",OD="_note_mbhaz_112",MD="_confirmBtn_mbhaz_119",dn={overlay:xD,card:SD,header:jD,title:wD,closeBtn:ND,token:CD,tokenLabel:ED,tokenAmount:TD,tokenMeta:kD,modes:RD,mode:AD,modeActive:LD,note:OD,confirmBtn:MD},zD=[25,50,100];function DD({position:a,pending:l,onConfirm:i,onClose:r}){const[d,f]=S.useState(100);return S.useEffect(()=>{function m(g){g.key==="Escape"&&r()}return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),o.jsx("div",{className:dn.overlay,onClick:r,children:o.jsxs("div",{className:dn.card,onClick:m=>m.stopPropagation(),children:[o.jsxs("div",{className:dn.header,children:[o.jsx("span",{className:dn.title,children:"Вывод ликвидности"}),o.jsx("button",{className:dn.closeBtn,onClick:r,children:"×"})]}),o.jsxs("div",{className:dn.token,children:[o.jsx("span",{className:dn.tokenLabel,children:"Позиция"}),o.jsxs("span",{className:dn.tokenAmount,children:[ot(a.symbol0),"/",ot(a.symbol1)]}),o.jsxs("span",{className:dn.tokenMeta,children:[mu(a.feeTier)," · #",a.tokenId]})]}),o.jsx("div",{className:dn.modes,children:zD.map(m=>o.jsxs("button",{className:`${dn.mode} ${d===m?dn.modeActive:""}`,onClick:()=>f(m),children:[m,"%"]},m))}),d===100&&o.jsx("p",{className:dn.note,children:"При выводе 100% позиция (NFT) будет сожжена."}),o.jsx("button",{className:dn.confirmBtn,onClick:()=>i(d),disabled:l,children:l?"Отправка…":"Подтвердить вывод"})]})})}const BD="_widget_za8nj_1",$D="_grid_za8nj_7",v3={widget:BD,grid:$D},y3=.05;function UD(){var ae;const a=PM(),l=IM(),i=XM(),r=KM(),d=a.data??[],f=((ae=l.data)==null?void 0:ae.positions)??[],[m,g]=S.useState(null),[h,p]=S.useState(""),[v,y]=S.useState(""),[b,j]=S.useState(""),[w,N]=S.useState(""),[C,R]=S.useState("1"),M=!1,[O,H]=S.useState(null),[I,X]=S.useState(null),$=d.find(de=>de.poolAddress===m)??null;function P(de){g(de);const _e=d.find(k=>k.poolAddress===de);_e&&(j((_e.currentPrice*(1-y3)).toFixed(2)),N((_e.currentPrice*(1+y3)).toFixed(2))),p(""),y("")}S.useEffect(()=>{!m&&d.length>0&&P(d[0].poolAddress)},[d,m]);const J=ya(h,400),ue=ya(v,400),re=ya(b,400),ce=ya(w,400),te=ya(C,400),he=S.useMemo(()=>{if(!$)return null;const de=parseFloat(te);return{pool:$,amount0Human:J,amount1Human:ue,priceLower:parseFloat(re)||0,priceUpper:parseFloat(ce)||0,slippageBps:Number.isFinite(de)?Math.round(de*100):void 0,useNativeEth:M}},[$,J,ue,re,ce,te,M]),ne=YM(he);function q(){if(!$)return;const de=parseFloat(C),_e={pool:$,amount0Human:h,amount1Human:v,priceLower:parseFloat(b)||0,priceUpper:parseFloat(w)||0,slippageBps:Number.isFinite(de)?Math.round(de*100):void 0,useNativeEth:M};X({status:"info",message:"Внесение в пул может занять несколько минут…"}),i.mutate(_e,{onSuccess:()=>{X({status:"success",message:`Депозит в пул ${ot($.symbol0)}/${ot($.symbol1)} выполнен`}),p(""),y("")},onError:k=>X({status:"error",message:qc(k)})})}function Y(de){O&&r.mutate({tokenId:O.tokenId,percent:de},{onSuccess:()=>{H(null),X({status:"success",message:"Ликвидность выведена на кошелёк"})},onError:_e=>X({status:"error",message:qc(_e)})})}return o.jsxs("div",{className:v3.widget,children:[o.jsx(xz,{pools:d,selected:m,onSelect:P,loading:a.isLoading,error:a.isError?qc(a.error):null}),o.jsxs("div",{className:v3.grid,children:[o.jsx(Yz,{pool:$,quote:ne.data,quoteFetching:ne.isFetching,pending:i.isPending,amount0:h,amount1:v,priceLower:b,priceUpper:w,slippage:C,onAmount0Change:p,onAmount1Change:y,onPriceLowerChange:j,onPriceUpperChange:N,onSlippageChange:R,onSubmit:q}),o.jsx(bD,{positions:f,onRemove:de=>H(f.find(_e=>_e.tokenId===de)??null),removePending:r.isPending,isLoading:l.isLoading,error:l.isError?qc(l.error):null})]}),O&&o.jsx(DD,{position:O,pending:r.isPending,onConfirm:Y,onClose:()=>H(null)}),I&&o.jsx(es,{status:I.status,message:I.message,onClose:()=>X(null),duration:5e3})]})}const HD="_page_1j4fk_1",qD="_head_1j4fk_8",FD="_title_1j4fk_12",GD="_subtitle_1j4fk_19",Gc={page:HD,head:qD,title:FD,subtitle:GD};function VD(){return o.jsxs("div",{className:Gc.page,children:[o.jsxs("header",{className:Gc.head,children:[o.jsx("h1",{className:Gc.title,children:"Пулы"}),o.jsx("p",{className:Gc.subtitle,children:"Выберите пул из списка, укажите, количество каждого токена, и задайте диапазон цен, в котором ваши деньги будут работать. Пока цена остаётся в этом диапазоне, вы зарабатываете на комиссиях с каждой сделки в пуле (это и есть APR). Внесённая позиция учитывается как NFT в блоке «Мои позиции», откуда её можно вывести вместе с накопленными комиссиями. Комиссия сервиса на депозит — 0.7%."})]}),o.jsx(UD,{})]})}const QD="_page_1f1vh_1",PD="_rain_1f1vh_14",ID="_drop_1f1vh_21",YD="_content_1f1vh_49",XD="_code_1f1vh_56",KD="_digit_1f1vh_63",ZD="_coin_1f1vh_73",WD="_title_1f1vh_90",JD="_subtitle_1f1vh_97",eB="_button_1f1vh_104",ea={page:QD,rain:PD,drop:ID,content:YD,code:XD,digit:KD,coin:ZD,title:WD,subtitle:JD,button:eB},b3=[{letter:"₿",color:"#f7931a"},{letter:"Ξ",color:"#627eea"},{letter:"₮",color:"#26a17b"},{letter:"◎",color:"#9945ff"},{letter:"$",color:"#2775ca"},{letter:"₽",color:"#4a6dff"},{letter:"Ʉ",color:"#00d4ff"}],tB=[{left:6,size:34,delay:0,duration:7.5},{left:18,size:26,delay:2.1,duration:9},{left:29,size:44,delay:4.3,duration:6.5},{left:41,size:22,delay:1.2,duration:10},{left:54,size:38,delay:3.4,duration:8},{left:67,size:28,delay:.6,duration:9.5},{left:78,size:48,delay:2.8,duration:7},{left:88,size:24,delay:5,duration:8.5},{left:95,size:32,delay:1.7,duration:9.2}];function nB(){return o.jsxs(o.Fragment,{children:[o.jsx(Ll,{}),o.jsxs("main",{className:ea.page,children:[o.jsx("div",{className:ea.rain,"aria-hidden":"true",children:tB.map((a,l)=>{const i=b3[l%b3.length];return o.jsx("span",{className:ea.drop,style:{left:`${a.left}%`,animationDelay:`${a.delay}s`,animationDuration:`${a.duration}s`},children:o.jsx(kl,{letter:i.letter,color:i.color,size:a.size})},l)})}),o.jsxs("div",{className:ea.content,children:[o.jsxs("div",{className:ea.code,"aria-hidden":"true",children:[o.jsx("span",{className:ea.digit,children:"4"}),o.jsx("span",{className:ea.coin,children:o.jsx(kl,{letter:"₿",color:"#f7931a",size:140})}),o.jsx("span",{className:ea.digit,children:"4"})]}),o.jsx("h1",{className:ea.title,children:"Такой страницы не существует"}),o.jsx("p",{className:ea.subtitle,children:"Похоже, курс этого маршрута обнулился. Проверьте адрес или вернитесь на главную."}),o.jsx(kn,{to:le.HOME,className:ea.button,children:"На главную"})]})]}),o.jsx(Fs,{})]})}const aB="_page_uz94v_1",sB="_main_uz94v_8",lB="_center_uz94v_13",Vc={page:aB,main:sB,center:lB};function x3({footer:a=!1,center:l=!1}){return o.jsxs("div",{className:Vc.page,children:[o.jsx(Q2,{}),o.jsx("main",{className:l?`${Vc.main} ${Vc.center}`:Vc.main,children:o.jsx(iu,{})}),a&&o.jsx(Fs,{})]})}function iB(){const{pathname:a}=mn();return S.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function oB(){const{isAuthenticated:a,isLoading:l}=y_(),i=mn();return l?o.jsx(On,{overlay:!0,size:"lg",label:"Загрузка"}):a?o.jsx(iu,{}):o.jsx(Bi,{to:le.LOGIN,state:{from:i},replace:!0})}function rB(){var d,f;const{isAuthenticated:a,isLoading:l}=y_(),r=((f=(d=mn().state)==null?void 0:d.from)==null?void 0:f.pathname)??le.WALLET;return l?o.jsx(On,{overlay:!0,size:"lg",label:"Загрузка"}):a?o.jsx(Bi,{to:r,replace:!0}):o.jsx(iu,{})}function cB(){return o.jsxs(ub,{children:[o.jsx(iB,{}),o.jsxs(H4,{children:[o.jsx(Ue,{path:le.HOME,element:o.jsx(l7,{})}),o.jsx(Ue,{path:le.PUBLICHNAYA_OFERTA,element:o.jsx(OL,{})}),o.jsx(Ue,{path:le.POLITIKA_PERSONALNYH_DANNYH,element:o.jsx(zL,{})}),o.jsx(Ue,{path:le.POLITIKA_COOKIE,element:o.jsx(BL,{})}),o.jsx(Ue,{path:le.SOGLASIE_PERSONALNYH_DANNYH,element:o.jsx(UL,{})}),o.jsx(Ue,{path:le.REESTR_PD_RKN,element:o.jsx(qL,{})}),o.jsx(Ue,{path:le.REGISTER_TEST,element:o.jsx(oA,{})}),o.jsxs(Ue,{element:o.jsx(rB,{}),children:[o.jsx(Ue,{path:le.LOGIN,element:o.jsx(cR,{})}),o.jsx(Ue,{path:le.REGISTER,element:o.jsx(UR,{})}),o.jsx(Ue,{path:le.RESTORE_PASSWORD,element:o.jsx(dL,{})})]}),o.jsxs(Ue,{element:o.jsx(oB,{}),children:[o.jsx(Ue,{element:o.jsx(x3,{footer:!0,center:!0}),children:o.jsx(Ue,{path:le.CONVERTER,element:o.jsx(EA,{})})}),o.jsxs(Ue,{element:o.jsx(x3,{footer:!0}),children:[o.jsx(Ue,{path:le.SWAP,element:o.jsx(lC,{})}),o.jsx(Ue,{path:le.BRIDGE,element:o.jsx(HC,{})}),o.jsx(Ue,{path:le.STAKING,element:o.jsx(HM,{})}),o.jsx(Ue,{path:le.POOLS,element:o.jsx(VD,{})}),o.jsxs(Ue,{path:le.PROFILE,element:o.jsx(sT,{}),children:[o.jsx(Ue,{index:!0,element:o.jsx(Bi,{to:"details",replace:!0})}),o.jsx(Ue,{path:"details",element:o.jsx(lT,{})}),o.jsx(Ue,{path:"security",element:o.jsx(iT,{})}),o.jsx(Ue,{path:"mnemonic",element:o.jsx(ET,{})}),o.jsx(Ue,{path:"transactions",element:o.jsx(Pk,{})})]})]}),o.jsx(Ue,{path:le.TRANSACTIONS,element:o.jsx(Bi,{to:le.PROFILE_TRANSACTIONS,replace:!0})}),o.jsx(Ue,{path:le.WALLET,element:o.jsx($p,{})}),o.jsx(Ue,{path:le.WALLET_CHAIN,element:o.jsx($p,{})}),o.jsx(Ue,{path:le.SEED_PHRASE,element:o.jsx(AA,{})}),o.jsx(Ue,{path:le.KYC,element:o.jsx(WA,{})})]}),o.jsx(Ue,{path:"*",element:o.jsx(nB,{})})]})]})}const uB=new M6({defaultOptions:{queries:{retry:!1}}});function dB({children:a}){return o.jsx(z6,{client:uB,children:a})}function fB(){return o.jsx(dB,{children:o.jsx(cB,{})})}Hy.createRoot(document.getElementById("root")).render(o.jsx(S.StrictMode,{children:o.jsx(fB,{})}));