Files
frontend/dist/assets/index-D__qMdwn.js
2026-06-10 18:34:41 +03:00

162 lines
586 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
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 gm=a=>{throw TypeError(a)};var ed=(a,c,i)=>c.has(a)||gm("Cannot "+i);var C=(a,c,i)=>(ed(a,c,"read from private field"),i?i.call(a):c.get(a)),ie=(a,c,i)=>c.has(a)?gm("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(a):c.set(a,i),W=(a,c,i,r)=>(ed(a,c,"write to private field"),r?r.call(a,i):c.set(a,i),i),je=(a,c,i)=>(ed(a,c,"access private method"),i);var uo=(a,c,i,r)=>({set _(d){W(a,c,d,i)},get _(){return C(a,c,r)}});(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.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 _ of f.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&r(_)}).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 Xp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var td={exports:{}},jc={};/**
* @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 ym;function Bg(){if(ym)return jc;ym=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function i(r,d,f){var _=null;if(f!==void 0&&(_=""+f),d.key!==void 0&&(_=""+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:_,ref:d!==void 0?d:null,props:f}}return jc.Fragment=c,jc.jsx=i,jc.jsxs=i,jc}var xm;function kg(){return xm||(xm=1,td.exports=Bg()),td.exports}var l=kg(),nd={exports:{}},ge={};/**
* @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 bm;function Ug(){if(bm)return ge;bm=1;var a=Symbol.for("react.transitional.element"),c=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"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function z(R,V,P){this.props=R,this.context=V,this.refs=T,this.updater=P||S}z.prototype.isReactComponent={},z.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,V,"setState")},z.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function H(){}H.prototype=z.prototype;function O(R,V,P){this.props=R,this.context=V,this.refs=T,this.updater=P||S}var k=O.prototype=new H;k.constructor=O,E(k,z.prototype),k.isPureReactComponent=!0;var Y=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function ae(R,V,P){var te=P.ref;return{$$typeof:a,type:R,key:V,ref:te!==void 0?te:null,props:P}}function me(R,V){return ae(R.type,V,R.props)}function he(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function Ce(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(P){return V[P]})}var re=/\/+/g;function ve(R,V){return typeof R=="object"&&R!==null&&R.key!=null?Ce(""+R.key):V.toString(36)}function ue(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(J,J):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function $(R,V,P,te,pe){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var De=!1;if(R===null)De=!0;else switch(xe){case"bigint":case"string":case"number":De=!0;break;case"object":switch(R.$$typeof){case a:case c:De=!0;break;case v:return De=R._init,$(De(R._payload),V,P,te,pe)}}if(De)return pe=pe(R),De=te===""?"."+ve(R,0):te,Y(pe)?(P="",De!=null&&(P=De.replace(re,"$&/")+"/"),$(pe,V,P,"",function(Wn){return Wn})):pe!=null&&(he(pe)&&(pe=me(pe,P+(pe.key==null||R&&R.key===pe.key?"":(""+pe.key).replace(re,"$&/")+"/")+De)),V.push(pe)),1;De=0;var jt=te===""?".":te+":";if(Y(R))for(var Je=0;Je<R.length;Je++)te=R[Je],xe=jt+ve(te,Je),De+=$(te,V,P,xe,pe);else if(Je=N(R),typeof Je=="function")for(R=Je.call(R),Je=0;!(te=R.next()).done;)te=te.value,xe=jt+ve(te,Je++),De+=$(te,V,P,xe,pe);else if(xe==="object"){if(typeof R.then=="function")return $(ue(R),V,P,te,pe);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return De}function X(R,V,P){if(R==null)return R;var te=[],pe=0;return $(R,te,"","",function(xe){return V.call(P,xe,pe++)}),te}function se(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(P){(R._status===0||R._status===-1)&&(R._status=1,R._result=P)},function(P){(R._status===0||R._status===-1)&&(R._status=2,R._result=P)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var Ee=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Te={map:X,forEach:function(R,V,P){X(R,function(){V.apply(this,arguments)},P)},count:function(R){var V=0;return X(R,function(){V++}),V},toArray:function(R){return X(R,function(V){return V})||[]},only:function(R){if(!he(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ge.Activity=y,ge.Children=Te,ge.Component=z,ge.Fragment=i,ge.Profiler=d,ge.PureComponent=O,ge.StrictMode=r,ge.Suspense=h,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ge.__COMPILER_RUNTIME={__proto__:null,c:function(R){return q.H.useMemoCache(R)}},ge.cache=function(R){return function(){return R.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(R,V,P){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var te=E({},R.props),pe=R.key;if(V!=null)for(xe in V.key!==void 0&&(pe=""+V.key),V)!I.call(V,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&V.ref===void 0||(te[xe]=V[xe]);var xe=arguments.length-2;if(xe===1)te.children=P;else if(1<xe){for(var De=Array(xe),jt=0;jt<xe;jt++)De[jt]=arguments[jt+2];te.children=De}return ae(R.type,pe,te)},ge.createContext=function(R){return R={$$typeof:_,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ge.createElement=function(R,V,P){var te,pe={},xe=null;if(V!=null)for(te in V.key!==void 0&&(xe=""+V.key),V)I.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(pe[te]=V[te]);var De=arguments.length-2;if(De===1)pe.children=P;else if(1<De){for(var jt=Array(De),Je=0;Je<De;Je++)jt[Je]=arguments[Je+2];pe.children=jt}if(R&&R.defaultProps)for(te in De=R.defaultProps,De)pe[te]===void 0&&(pe[te]=De[te]);return ae(R,xe,pe)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(R){return{$$typeof:g,render:R}},ge.isValidElement=he,ge.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:se}},ge.memo=function(R,V){return{$$typeof:m,type:R,compare:V===void 0?null:V}},ge.startTransition=function(R){var V=q.T,P={};q.T=P;try{var te=R(),pe=q.S;pe!==null&&pe(P,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(J,Ee)}catch(xe){Ee(xe)}finally{V!==null&&P.types!==null&&(V.types=P.types),q.T=V}},ge.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ge.use=function(R){return q.H.use(R)},ge.useActionState=function(R,V,P){return q.H.useActionState(R,V,P)},ge.useCallback=function(R,V){return q.H.useCallback(R,V)},ge.useContext=function(R){return q.H.useContext(R)},ge.useDebugValue=function(){},ge.useDeferredValue=function(R,V){return q.H.useDeferredValue(R,V)},ge.useEffect=function(R,V){return q.H.useEffect(R,V)},ge.useEffectEvent=function(R){return q.H.useEffectEvent(R)},ge.useId=function(){return q.H.useId()},ge.useImperativeHandle=function(R,V,P){return q.H.useImperativeHandle(R,V,P)},ge.useInsertionEffect=function(R,V){return q.H.useInsertionEffect(R,V)},ge.useLayoutEffect=function(R,V){return q.H.useLayoutEffect(R,V)},ge.useMemo=function(R,V){return q.H.useMemo(R,V)},ge.useOptimistic=function(R,V){return q.H.useOptimistic(R,V)},ge.useReducer=function(R,V,P){return q.H.useReducer(R,V,P)},ge.useRef=function(R){return q.H.useRef(R)},ge.useState=function(R){return q.H.useState(R)},ge.useSyncExternalStore=function(R,V,P){return q.H.useSyncExternalStore(R,V,P)},ge.useTransition=function(){return q.H.useTransition()},ge.version="19.2.5",ge}var jm;function Jd(){return jm||(jm=1,nd.exports=Ug()),nd.exports}var j=Jd();const Nt=Xp(j);var ld={exports:{}},Sc={},ad={exports:{}},sd={};/**
* @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 Sm;function Hg(){return Sm||(Sm=1,(function(a){function c($,X){var se=$.length;$.push(X);e:for(;0<se;){var Ee=se-1>>>1,Te=$[Ee];if(0<d(Te,X))$[Ee]=X,$[se]=Te,se=Ee;else break e}}function i($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var X=$[0],se=$.pop();if(se!==X){$[0]=se;e:for(var Ee=0,Te=$.length,R=Te>>>1;Ee<R;){var V=2*(Ee+1)-1,P=$[V],te=V+1,pe=$[te];if(0>d(P,se))te<Te&&0>d(pe,P)?($[Ee]=pe,$[te]=se,Ee=te):($[Ee]=P,$[V]=se,Ee=V);else if(te<Te&&0>d(pe,se))$[Ee]=pe,$[te]=se,Ee=te;else break e}}return X}function d($,X){var se=$.sortIndex-X.sortIndex;return se!==0?se:$.id-X.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 _=Date,g=_.now();a.unstable_now=function(){return _.now()-g}}var h=[],m=[],v=1,y=null,b=3,N=!1,S=!1,E=!1,T=!1,z=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k($){for(var X=i(m);X!==null;){if(X.callback===null)r(m);else if(X.startTime<=$)r(m),X.sortIndex=X.expirationTime,c(h,X);else break;X=i(m)}}function Y($){if(E=!1,k($),!S)if(i(h)!==null)S=!0,J||(J=!0,Ce());else{var X=i(m);X!==null&&ue(Y,X.startTime-$)}}var J=!1,q=-1,I=5,ae=-1;function me(){return T?!0:!(a.unstable_now()-ae<I)}function he(){if(T=!1,J){var $=a.unstable_now();ae=$;var X=!0;try{e:{S=!1,E&&(E=!1,H(q),q=-1),N=!0;var se=b;try{t:{for(k($),y=i(h);y!==null&&!(y.expirationTime>$&&me());){var Ee=y.callback;if(typeof Ee=="function"){y.callback=null,b=y.priorityLevel;var Te=Ee(y.expirationTime<=$);if($=a.unstable_now(),typeof Te=="function"){y.callback=Te,k($),X=!0;break t}y===i(h)&&r(h),k($)}else r(h);y=i(h)}if(y!==null)X=!0;else{var R=i(m);R!==null&&ue(Y,R.startTime-$),X=!1}}break e}finally{y=null,b=se,N=!1}X=void 0}}finally{X?Ce():J=!1}}}var Ce;if(typeof O=="function")Ce=function(){O(he)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ve=re.port2;re.port1.onmessage=he,Ce=function(){ve.postMessage(null)}}else Ce=function(){z(he,0)};function ue($,X){q=z(function(){$(a.unstable_now())},X)}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($){$.callback=null},a.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<$?Math.floor(1e3/$):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function($){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var se=b;b=X;try{return $()}finally{b=se}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var se=b;b=$;try{return X()}finally{b=se}},a.unstable_scheduleCallback=function($,X,se){var Ee=a.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Ee+se:Ee):se=Ee,$){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=se+Te,$={id:v++,callback:X,priorityLevel:$,startTime:se,expirationTime:Te,sortIndex:-1},se>Ee?($.sortIndex=se,c(m,$),i(h)===null&&$===i(m)&&(E?(H(q),q=-1):E=!0,ue(Y,se-Ee))):($.sortIndex=Te,c(h,$),S||N||(S=!0,J||(J=!0,Ce()))),$},a.unstable_shouldYield=me,a.unstable_wrapCallback=function($){var X=b;return function(){var se=b;b=X;try{return $.apply(this,arguments)}finally{b=se}}}})(sd)),sd}var Nm;function $g(){return Nm||(Nm=1,ad.exports=Hg()),ad.exports}var id={exports:{}},Ut={};/**
* @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 wm;function qg(){if(wm)return Ut;wm=1;var a=Jd();function c(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" 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(c(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,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var _=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ut.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(c(299));return f(h,m,null,v)},Ut.flushSync=function(h){var m=_.T,v=r.p;try{if(_.T=null,r.p=2,h)return h()}finally{_.T=m,r.p=v,r.d.f()}},Ut.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},Ut.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Ut.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:N}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ut.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=g(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},Ut.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin);r.d.L(h,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ut.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=g(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},Ut.requestFormReset=function(h){r.d.r(h)},Ut.unstable_batchedUpdates=function(h,m){return h(m)},Ut.useFormState=function(h,m,v){return _.H.useFormState(h,m,v)},Ut.useFormStatus=function(){return _.H.useHostTransitionStatus()},Ut.version="19.2.5",Ut}var Cm;function Gg(){if(Cm)return id.exports;Cm=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(c){console.error(c)}}return a(),id.exports=qg(),id.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 Em;function Fg(){if(Em)return Sc;Em=1;var a=$g(),c=Jd(),i=Gg();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 _(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 m(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 o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return h(o),e;if(u===s)return h(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==s.return)n=o,s=u;else{for(var p=!1,x=o.child;x;){if(x===n){p=!0,n=o,s=u;break}if(x===s){p=!0,s=o,n=u;break}x=x.sibling}if(!p){for(x=u.child;x;){if(x===n){p=!0,n=u,s=o;break}if(x===s){p=!0,s=u,n=o;break}x=x.sibling}if(!p)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"),N=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function Ce(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var re=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case z:return"Profiler";case T:return"StrictMode";case Y:return"Suspense";case J:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case O:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var ue=Array.isArray,$=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Ee=[],Te=-1;function R(e){return{current:e}}function V(e){0>Te||(e.current=Ee[Te],Ee[Te]=null,Te--)}function P(e,t){Te++,Ee[Te]=e.current,e.current=t}var te=R(null),pe=R(null),xe=R(null),De=R(null);function jt(e,t){switch(P(xe,t),P(pe,e),P(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?q1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=q1(t),e=G1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),P(te,e)}function Je(){V(te),V(pe),V(xe)}function Wn(e){e.memoizedState!==null&&P(De,e);var t=te.current,n=G1(t,e.type);t!==n&&(P(pe,e),P(te,n))}function fl(e){pe.current===e&&(V(te),V(pe)),De.current===e&&(V(De),gc._currentValue=se)}var Gl,Fl;function we(e){if(Gl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Gl=t&&t[1]||"",Fl=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Gl+e+Fl}var qt=!1;function hl(e,t){if(!e||qt)return"";qt=!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 o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),p=u[0],x=u[1];if(p&&x){var w=p.split(`
`),L=x.split(`
`);for(o=s=0;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(s===w.length||o===L.length)for(s=w.length-1,o=L.length-1;1<=s&&0<=o&&w[s]!==L[o];)o--;for(;1<=s&&0<=o;s--,o--)if(w[s]!==L[o]){if(s!==1||o!==1)do if(s--,o--,0>o||w[s]!==L[o]){var G=`
`+w[s].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=s&&0<=o);break}}}finally{qt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?we(n):""}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we("Lazy");case 13:return e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return hl(e.type,!1);case 11:return hl(e.type.render,!1);case 1:return hl(e.type,!0);case 31:return we("Activity");default:return""}}function Kt(e){try{var t="",n=null;do t+=Pe(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var vs=Object.prototype.hasOwnProperty,gs=a.unstable_scheduleCallback,qo=a.unstable_cancelCallback,m_=a.unstable_shouldYield,p_=a.unstable_requestPaint,dn=a.unstable_now,__=a.unstable_getCurrentPriorityLevel,g2=a.unstable_ImmediatePriority,y2=a.unstable_UserBlockingPriority,Xc=a.unstable_NormalPriority,v_=a.unstable_LowPriority,x2=a.unstable_IdlePriority,g_=a.log,y_=a.unstable_setDisableYieldValue,Ai=null,fn=null;function Vl(e){if(typeof g_=="function"&&y_(e),fn&&typeof fn.setStrictMode=="function")try{fn.setStrictMode(Ai,e)}catch{}}var hn=Math.clz32?Math.clz32:j_,x_=Math.log,b_=Math.LN2;function j_(e){return e>>>=0,e===0?32:31-(x_(e)/b_|0)|0}var Ic=256,Zc=262144,Pc=4194304;function Aa(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 Kc(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var o=0,u=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?o=Aa(s):(p&=x,p!==0?o=Aa(p):n||(n=x&~e,n!==0&&(o=Aa(n))))):(x=s&~u,x!==0?o=Aa(x):p!==0?o=Aa(p):n||(n=s&~e,n!==0&&(o=Aa(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Mi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function S_(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 b2(){var e=Pc;return Pc<<=1,(Pc&62914560)===0&&(Pc=4194304),e}function Go(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N_(e,t,n,s,o,u){var p=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,w=e.expirationTimes,L=e.hiddenUpdates;for(n=p&~n;0<n;){var G=31-hn(n),Q=1<<G;x[G]=0,w[G]=-1;var B=L[G];if(B!==null)for(L[G]=null,G=0;G<B.length;G++){var U=B[G];U!==null&&(U.lane&=-536870913)}n&=~Q}s!==0&&j2(e,s,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function j2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-hn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function S2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-hn(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}function N2(e,t){var n=t&-t;return n=(n&42)!==0?1:Fo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Fo(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 Vo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function w2(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:dm(e.type))}function C2(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var Ql=Math.random().toString(36).slice(2),zt="__reactFiber$"+Ql,Wt="__reactProps$"+Ql,ys="__reactContainer$"+Ql,Qo="__reactEvents$"+Ql,w_="__reactListeners$"+Ql,C_="__reactHandles$"+Ql,E2="__reactResources$"+Ql,zi="__reactMarker$"+Ql;function Yo(e){delete e[zt],delete e[Wt],delete e[Qo],delete e[w_],delete e[C_]}function xs(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ys]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Z1(e);e!==null;){if(n=e[zt])return n;e=Z1(e)}return t}e=n,n=e.parentNode}return null}function bs(e){if(e=e[zt]||e[ys]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Di(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function js(e){var t=e[E2];return t||(t=e[E2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[zi]=!0}var T2=new Set,R2={};function Ma(e,t){Ss(e,t),Ss(e+"Capture",t)}function Ss(e,t){for(R2[e]=t,e=0;e<t.length;e++)T2.add(t[e])}var E_=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]*$"),A2={},M2={};function T_(e){return vs.call(M2,e)?!0:vs.call(A2,e)?!1:E_.test(e)?M2[e]=!0:(A2[e]=!0,!1)}function Wc(e,t,n){if(T_(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 Jc(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 ml(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 Tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function R_(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 o=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(p){n=""+p,u.call(this,p)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(p){n=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xo(e){if(!e._valueTracker){var t=O2(e)?"checked":"value";e._valueTracker=R_(e,t,""+e[t])}}function z2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=O2(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function er(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 A_=/[\n"\\]/g;function Rn(e){return e.replace(A_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Io(e,t,n,s,o,u,p,x){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tn(t)):e.value!==""+Tn(t)&&(e.value=""+Tn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?Zo(e,p,Tn(t)):n!=null?Zo(e,p,Tn(n)):s!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Tn(x):e.removeAttribute("name")}function D2(e,t,n,s,o,u,p,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)){Xo(e);return}n=n!=null?""+Tn(n):"",t=t!=null?""+Tn(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Xo(e)}function Zo(e,t,n){t==="number"&&er(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ns(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function L2(e,t,n){if(t!=null&&(t=""+Tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Tn(n):""}function B2(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(ue(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Tn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),Xo(e)}function ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var M_=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 k2(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||M_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function U2(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 o in t)s=t[o],t.hasOwnProperty(o)&&n[o]!==s&&k2(e,o,s)}else for(var u in t)t.hasOwnProperty(u)&&k2(e,u,t[u])}function Po(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 O_=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"]]),z_=/^[\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 tr(e){return z_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function pl(){}var Ko=null;function Wo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cs=null,Es=null;function H2(e){var t=bs(e);if(t&&(e=t.stateNode)){var n=e[Wt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Io(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="'+Rn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=s[Wt]||null;if(!o)throw Error(r(90));Io(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&z2(s)}break e;case"textarea":L2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ns(e,!!n.multiple,t,!1)}}}var Jo=!1;function $2(e,t,n){if(Jo)return e(t,n);Jo=!0;try{var s=e(t);return s}finally{if(Jo=!1,(Cs!==null||Es!==null)&&(Gr(),Cs&&(t=Cs,e=Es,Es=Cs=null,H2(t),e)))for(t=0;t<e.length;t++)H2(e[t])}}function Li(e,t){var n=e.stateNode;if(n===null)return null;var s=n[Wt]||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 _l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eu=!1;if(_l)try{var Bi={};Object.defineProperty(Bi,"passive",{get:function(){eu=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{eu=!1}var Yl=null,tu=null,nr=null;function q2(){if(nr)return nr;var e,t=tu,n=t.length,s,o="value"in Yl?Yl.value:Yl.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var p=n-e;for(s=1;s<=p&&t[n-s]===o[u-s];s++);return nr=o.slice(e,1<s?1-s:void 0)}function lr(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 ar(){return!0}function G2(){return!1}function Jt(e){function t(n,s,o,u,p){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=p,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)?ar:G2,this.isPropagationStopped=G2,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=ar)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sr=Jt(Oa),ki=y({},Oa,{view:0,detail:0}),D_=Jt(ki),nu,lu,Ui,ir=y({},ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:su,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!==Ui&&(Ui&&e.type==="mousemove"?(nu=e.screenX-Ui.screenX,lu=e.screenY-Ui.screenY):lu=nu=0,Ui=e),nu)},movementY:function(e){return"movementY"in e?e.movementY:lu}}),F2=Jt(ir),L_=y({},ir,{dataTransfer:0}),B_=Jt(L_),k_=y({},ki,{relatedTarget:0}),au=Jt(k_),U_=y({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),H_=Jt(U_),$_=y({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q_=Jt($_),G_=y({},Oa,{data:0}),V2=Jt(G_),F_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V_={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"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Y_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q_[e])?!!t[e]:!1}function su(){return Y_}var X_=y({},ki,{key:function(e){if(e.key){var t=F_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=lr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?V_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:su,charCode:function(e){return e.type==="keypress"?lr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?lr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),I_=Jt(X_),Z_=y({},ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Q2=Jt(Z_),P_=y({},ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:su}),K_=Jt(P_),W_=y({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),J_=Jt(W_),ev=y({},ir,{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}),tv=Jt(ev),nv=y({},Oa,{newState:0,oldState:0}),lv=Jt(nv),av=[9,13,27,32],iu=_l&&"CompositionEvent"in window,Hi=null;_l&&"documentMode"in document&&(Hi=document.documentMode);var sv=_l&&"TextEvent"in window&&!Hi,Y2=_l&&(!iu||Hi&&8<Hi&&11>=Hi),X2=" ",I2=!1;function Z2(e,t){switch(e){case"keyup":return av.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ts=!1;function iv(e,t){switch(e){case"compositionend":return P2(t);case"keypress":return t.which!==32?null:(I2=!0,X2);case"textInput":return e=t.data,e===X2&&I2?null:e;default:return null}}function cv(e,t){if(Ts)return e==="compositionend"||!iu&&Z2(e,t)?(e=q2(),nr=tu=Yl=null,Ts=!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 Y2&&t.locale!=="ko"?null:t.data;default:return null}}var rv={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 K2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rv[e.type]:t==="textarea"}function W2(e,t,n,s){Cs?Es?Es.push(s):Es=[s]:Cs=s,t=Zr(t,"onChange"),0<t.length&&(n=new sr("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var $i=null,qi=null;function ov(e){L1(e,0)}function cr(e){var t=Di(e);if(z2(t))return e}function J2(e,t){if(e==="change")return t}var ef=!1;if(_l){var cu;if(_l){var ru="oninput"in document;if(!ru){var tf=document.createElement("div");tf.setAttribute("oninput","return;"),ru=typeof tf.oninput=="function"}cu=ru}else cu=!1;ef=cu&&(!document.documentMode||9<document.documentMode)}function nf(){$i&&($i.detachEvent("onpropertychange",lf),qi=$i=null)}function lf(e){if(e.propertyName==="value"&&cr(qi)){var t=[];W2(t,qi,e,Wo(e)),$2(ov,t)}}function uv(e,t,n){e==="focusin"?(nf(),$i=t,qi=n,$i.attachEvent("onpropertychange",lf)):e==="focusout"&&nf()}function dv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cr(qi)}function fv(e,t){if(e==="click")return cr(t)}function hv(e,t){if(e==="input"||e==="change")return cr(t)}function mv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mn=typeof Object.is=="function"?Object.is:mv;function Gi(e,t){if(mn(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 o=n[s];if(!vs.call(t,o)||!mn(e[o],t[o]))return!1}return!0}function af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sf(e,t){var n=af(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=af(n)}}function cf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=er(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=er(e.document)}return t}function ou(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 pv=_l&&"documentMode"in document&&11>=document.documentMode,Rs=null,uu=null,Fi=null,du=!1;function of(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;du||Rs==null||Rs!==er(s)||(s=Rs,"selectionStart"in s&&ou(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}),Fi&&Gi(Fi,s)||(Fi=s,s=Zr(uu,"onSelect"),0<s.length&&(t=new sr("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Rs)))}function za(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var As={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},fu={},uf={};_l&&(uf=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);function Da(e){if(fu[e])return fu[e];if(!As[e])return e;var t=As[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in uf)return fu[e]=t[n];return e}var df=Da("animationend"),ff=Da("animationiteration"),hf=Da("animationstart"),_v=Da("transitionrun"),vv=Da("transitionstart"),gv=Da("transitioncancel"),mf=Da("transitionend"),pf=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 Gn(e,t){pf.set(e,t),Ma(t,[e])}var rr=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)},An=[],Ms=0,mu=0;function or(){for(var e=Ms,t=mu=Ms=0;t<e;){var n=An[t];An[t++]=null;var s=An[t];An[t++]=null;var o=An[t];An[t++]=null;var u=An[t];if(An[t++]=null,s!==null&&o!==null){var p=s.pending;p===null?o.next=o:(o.next=p.next,p.next=o),s.pending=o}u!==0&&_f(n,o,u)}}function ur(e,t,n,s){An[Ms++]=e,An[Ms++]=t,An[Ms++]=n,An[Ms++]=s,mu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function pu(e,t,n,s){return ur(e,t,n,s),dr(e)}function La(e,t){return ur(e,null,null,t),dr(e)}function _f(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var o=!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||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-hn(n),e=u.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=n|536870912),u):null}function dr(e){if(50<dc)throw dc=0,N0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Os={};function yv(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 pn(e,t,n,s){return new yv(e,t,n,s)}function _u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vl(e,t){var n=e.alternate;return n===null?(n=pn(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 vf(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 fr(e,t,n,s,o,u){var p=0;if(s=e,typeof e=="function")_u(e)&&(p=1);else if(typeof e=="string")p=Ng(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=pn(31,n,t,o),e.elementType=ae,e.lanes=u,e;case E:return Ba(n.children,o,u,t);case T:p=8,o|=24;break;case z:return e=pn(12,n,t,o|2),e.elementType=z,e.lanes=u,e;case Y:return e=pn(13,n,t,o),e.elementType=Y,e.lanes=u,e;case J:return e=pn(19,n,t,o),e.elementType=J,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:p=10;break e;case H:p=9;break e;case k:p=11;break e;case q:p=14;break e;case I:p=16,s=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=pn(p,n,t,o),t.elementType=e,t.type=s,t.lanes=u,t}function Ba(e,t,n,s){return e=pn(7,e,s,t),e.lanes=n,e}function vu(e,t,n){return e=pn(6,e,null,t),e.lanes=n,e}function gf(e){var t=pn(18,null,null,0);return t.stateNode=e,t}function gu(e,t,n){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yf=new WeakMap;function Mn(e,t){if(typeof e=="object"&&e!==null){var n=yf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Kt(t)},yf.set(e,t),t)}return{value:e,source:t,stack:Kt(t)}}var zs=[],Ds=0,hr=null,Vi=0,On=[],zn=0,Xl=null,Jn=1,el="";function gl(e,t){zs[Ds++]=Vi,zs[Ds++]=hr,hr=e,Vi=t}function xf(e,t,n){On[zn++]=Jn,On[zn++]=el,On[zn++]=Xl,Xl=e;var s=Jn;e=el;var o=32-hn(s)-1;s&=~(1<<o),n+=1;var u=32-hn(t)+o;if(30<u){var p=o-o%5;u=(s&(1<<p)-1).toString(32),s>>=p,o-=p,Jn=1<<32-hn(t)+o|n<<o|s,el=u+e}else Jn=1<<u|n<<o|s,el=e}function yu(e){e.return!==null&&(gl(e,1),xf(e,1,0))}function xu(e){for(;e===hr;)hr=zs[--Ds],zs[Ds]=null,Vi=zs[--Ds],zs[Ds]=null;for(;e===Xl;)Xl=On[--zn],On[zn]=null,el=On[--zn],On[zn]=null,Jn=On[--zn],On[zn]=null}function bf(e,t){On[zn++]=Jn,On[zn++]=el,On[zn++]=Xl,Jn=t.id,el=t.overflow,Xl=e}var Dt=null,et=null,Le=!1,Il=null,Dn=!1,bu=Error(r(519));function Zl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qi(Mn(t,e)),bu}function jf(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[zt]=e,t[Wt]=s,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<hc.length;n++)Ae(hc[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),D2(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),B2(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||H1(t.textContent,n)?(s.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),s.onScroll!=null&&Ae("scroll",t),s.onScrollEnd!=null&&Ae("scrollend",t),s.onClick!=null&&(t.onclick=pl),t=!0):t=!1,t||Zl(e,!0)}function Sf(e){for(Dt=e.return;Dt;)switch(Dt.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:Dt=Dt.return}}function Ls(e){if(e!==Dt)return!1;if(!Le)return Sf(e),Le=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||H0(e.type,e.memoizedProps)),n=!n),n&&et&&Zl(e),Sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));et=I1(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));et=I1(e)}else t===27?(t=et,oa(e.type)?(e=V0,V0=null,et=e):et=t):et=Dt?Bn(e.stateNode.nextSibling):null;return!0}function ka(){et=Dt=null,Le=!1}function ju(){var e=Il;return e!==null&&(ln===null?ln=e:ln.push.apply(ln,e),Il=null),e}function Qi(e){Il===null?Il=[e]:Il.push(e)}var Su=R(null),Ua=null,yl=null;function Pl(e,t,n){P(Su,t._currentValue),t._currentValue=n}function xl(e){e._currentValue=Su.current,V(Su)}function Nu(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 o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var p=o.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=o;for(var w=0;w<t.length;w++)if(x.context===t[w]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),Nu(u.return,n,e),s||(p=null);break e}u=x.next}}else if(o.tag===18){if(p=o.return,p===null)throw Error(r(341));p.lanes|=n,u=p.alternate,u!==null&&(u.lanes|=n),Nu(p,n,e),p=null}else p=o.child;if(p!==null)p.return=o;else for(p=o;p!==null;){if(p===e){p=null;break}if(o=p.sibling,o!==null){o.return=p.return,p=o;break}p=p.return}o=p}}function Bs(e,t,n,s){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var p=o.alternate;if(p===null)throw Error(r(387));if(p=p.memoizedProps,p!==null){var x=o.type;mn(o.pendingProps.value,p.value)||(e!==null?e.push(x):e=[x])}}else if(o===De.current){if(p=o.alternate,p===null)throw Error(r(387));p.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(gc):e=[gc])}o=o.return}e!==null&&wu(t,e,n,s),t.flags|=262144}function mr(e){for(e=e.firstContext;e!==null;){if(!mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ha(e){Ua=e,yl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return Nf(Ua,e)}function pr(e,t){return Ua===null&&Ha(e),Nf(e,t)}function Nf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},yl===null){if(e===null)throw Error(r(308));yl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yl=yl.next=t;return n}var xv=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()})}},bv=a.unstable_scheduleCallback,jv=a.unstable_NormalPriority,vt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new xv,data:new Map,refCount:0}}function Yi(e){e.refCount--,e.refCount===0&&bv(jv,function(){e.controller.abort()})}var Xi=null,Eu=0,ks=0,Us=null;function Sv(e,t){if(Xi===null){var n=Xi=[];Eu=0,ks=A0(),Us={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Eu++,t.then(wf,wf),t}function wf(){if(--Eu===0&&Xi!==null){Us!==null&&(Us.status="fulfilled");var e=Xi;Xi=null,ks=0,Us=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Nv(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),s}var Cf=$.S;$.S=function(e,t){o1=dn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Sv(e,t),Cf!==null&&Cf(e,t)};var $a=R(null);function Tu(){var e=$a.current;return e!==null?e:Ze.pooledCache}function _r(e,t){t===null?P($a,$a.current):P($a,t.pool)}function Ef(){var e=Tu();return e===null?null:{parent:vt._currentValue,pool:e}}var Hs=Error(r(460)),Ru=Error(r(474)),vr=Error(r(542)),gr={then:function(){}};function Tf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(pl,pl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mf(e),e;default:if(typeof t.status=="string")t.then(pl,pl);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Mf(e),e}throw Ga=t,Hs}}function qa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ga=n,Hs):n}}var Ga=null;function Af(){if(Ga===null)throw Error(r(459));var e=Ga;return Ga=null,e}function Mf(e){if(e===Hs||e===vr)throw Error(r(483))}var $s=null,Ii=0;function yr(e){var t=Ii;return Ii+=1,$s===null&&($s=[]),Rf($s,e,t)}function Zi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xr(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 Of(e){function t(M,A){if(e){var D=M.deletions;D===null?(M.deletions=[A],M.flags|=16):D.push(A)}}function n(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function s(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function o(M,A){return M=vl(M,A),M.index=0,M.sibling=null,M}function u(M,A,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<A?(M.flags|=67108866,A):D):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function p(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,A,D,F){return A===null||A.tag!==6?(A=vu(D,M.mode,F),A.return=M,A):(A=o(A,D),A.return=M,A)}function w(M,A,D,F){var ce=D.type;return ce===E?G(M,A,D.props.children,F,D.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===I&&qa(ce)===A.type)?(A=o(A,D.props),Zi(A,D),A.return=M,A):(A=fr(D.type,D.key,D.props,null,M.mode,F),Zi(A,D),A.return=M,A)}function L(M,A,D,F){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=gu(D,M.mode,F),A.return=M,A):(A=o(A,D.children||[]),A.return=M,A)}function G(M,A,D,F,ce){return A===null||A.tag!==7?(A=Ba(D,M.mode,F,ce),A.return=M,A):(A=o(A,D),A.return=M,A)}function Q(M,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=vu(""+A,M.mode,D),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return D=fr(A.type,A.key,A.props,null,M.mode,D),Zi(D,A),D.return=M,D;case S:return A=gu(A,M.mode,D),A.return=M,A;case I:return A=qa(A),Q(M,A,D)}if(ue(A)||Ce(A))return A=Ba(A,M.mode,D,null),A.return=M,A;if(typeof A.then=="function")return Q(M,yr(A),D);if(A.$$typeof===O)return Q(M,pr(M,A),D);xr(M,A)}return null}function B(M,A,D,F){var ce=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ce!==null?null:x(M,A,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return D.key===ce?w(M,A,D,F):null;case S:return D.key===ce?L(M,A,D,F):null;case I:return D=qa(D),B(M,A,D,F)}if(ue(D)||Ce(D))return ce!==null?null:G(M,A,D,F,null);if(typeof D.then=="function")return B(M,A,yr(D),F);if(D.$$typeof===O)return B(M,A,pr(M,D),F);xr(M,D)}return null}function U(M,A,D,F,ce){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return M=M.get(D)||null,x(A,M,""+F,ce);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case N:return M=M.get(F.key===null?D:F.key)||null,w(A,M,F,ce);case S:return M=M.get(F.key===null?D:F.key)||null,L(A,M,F,ce);case I:return F=qa(F),U(M,A,D,F,ce)}if(ue(F)||Ce(F))return M=M.get(D)||null,G(A,M,F,ce,null);if(typeof F.then=="function")return U(M,A,D,yr(F),ce);if(F.$$typeof===O)return U(M,A,D,pr(A,F),ce);xr(A,F)}return null}function ne(M,A,D,F){for(var ce=null,Ue=null,le=A,be=A=0,ze=null;le!==null&&be<D.length;be++){le.index>be?(ze=le,le=null):ze=le.sibling;var He=B(M,le,D[be],F);if(He===null){le===null&&(le=ze);break}e&&le&&He.alternate===null&&t(M,le),A=u(He,A,be),Ue===null?ce=He:Ue.sibling=He,Ue=He,le=ze}if(be===D.length)return n(M,le),Le&&gl(M,be),ce;if(le===null){for(;be<D.length;be++)le=Q(M,D[be],F),le!==null&&(A=u(le,A,be),Ue===null?ce=le:Ue.sibling=le,Ue=le);return Le&&gl(M,be),ce}for(le=s(le);be<D.length;be++)ze=U(le,M,be,D[be],F),ze!==null&&(e&&ze.alternate!==null&&le.delete(ze.key===null?be:ze.key),A=u(ze,A,be),Ue===null?ce=ze:Ue.sibling=ze,Ue=ze);return e&&le.forEach(function(ma){return t(M,ma)}),Le&&gl(M,be),ce}function fe(M,A,D,F){if(D==null)throw Error(r(151));for(var ce=null,Ue=null,le=A,be=A=0,ze=null,He=D.next();le!==null&&!He.done;be++,He=D.next()){le.index>be?(ze=le,le=null):ze=le.sibling;var ma=B(M,le,He.value,F);if(ma===null){le===null&&(le=ze);break}e&&le&&ma.alternate===null&&t(M,le),A=u(ma,A,be),Ue===null?ce=ma:Ue.sibling=ma,Ue=ma,le=ze}if(He.done)return n(M,le),Le&&gl(M,be),ce;if(le===null){for(;!He.done;be++,He=D.next())He=Q(M,He.value,F),He!==null&&(A=u(He,A,be),Ue===null?ce=He:Ue.sibling=He,Ue=He);return Le&&gl(M,be),ce}for(le=s(le);!He.done;be++,He=D.next())He=U(le,M,be,He.value,F),He!==null&&(e&&He.alternate!==null&&le.delete(He.key===null?be:He.key),A=u(He,A,be),Ue===null?ce=He:Ue.sibling=He,Ue=He);return e&&le.forEach(function(Lg){return t(M,Lg)}),Le&&gl(M,be),ce}function Xe(M,A,D,F){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case N:e:{for(var ce=D.key;A!==null;){if(A.key===ce){if(ce=D.type,ce===E){if(A.tag===7){n(M,A.sibling),F=o(A,D.props.children),F.return=M,M=F;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===I&&qa(ce)===A.type){n(M,A.sibling),F=o(A,D.props),Zi(F,D),F.return=M,M=F;break e}n(M,A);break}else t(M,A);A=A.sibling}D.type===E?(F=Ba(D.props.children,M.mode,F,D.key),F.return=M,M=F):(F=fr(D.type,D.key,D.props,null,M.mode,F),Zi(F,D),F.return=M,M=F)}return p(M);case S:e:{for(ce=D.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(M,A.sibling),F=o(A,D.children||[]),F.return=M,M=F;break e}else{n(M,A);break}else t(M,A);A=A.sibling}F=gu(D,M.mode,F),F.return=M,M=F}return p(M);case I:return D=qa(D),Xe(M,A,D,F)}if(ue(D))return ne(M,A,D,F);if(Ce(D)){if(ce=Ce(D),typeof ce!="function")throw Error(r(150));return D=ce.call(D),fe(M,A,D,F)}if(typeof D.then=="function")return Xe(M,A,yr(D),F);if(D.$$typeof===O)return Xe(M,A,pr(M,D),F);xr(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(M,A.sibling),F=o(A,D),F.return=M,M=F):(n(M,A),F=vu(D,M.mode,F),F.return=M,M=F),p(M)):n(M,A)}return function(M,A,D,F){try{Ii=0;var ce=Xe(M,A,D,F);return $s=null,ce}catch(le){if(le===Hs||le===vr)throw le;var Ue=pn(29,le,null,M.mode);return Ue.lanes=F,Ue.return=M,Ue}finally{}}}var Fa=Of(!0),zf=Of(!1),Kl=!1;function Au(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(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 Wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Jl(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,($e&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=dr(e),_f(e,null,n),t}return ur(e,s,t,n),dr(e)}function Pi(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,S2(e,n)}}function Ou(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=p:u=u.next=p,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:s.baseState,firstBaseUpdate:o,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 zu=!1;function Ki(){if(zu){var e=Us;if(e!==null)throw e}}function Wi(e,t,n,s){zu=!1;var o=e.updateQueue;Kl=!1;var u=o.firstBaseUpdate,p=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var w=x,L=w.next;w.next=null,p===null?u=L:p.next=L,p=w;var G=e.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==p&&(x===null?G.firstBaseUpdate=L:x.next=L,G.lastBaseUpdate=w))}if(u!==null){var Q=o.baseState;p=0,G=L=w=null,x=u;do{var B=x.lane&-536870913,U=B!==x.lane;if(U?(Oe&B)===B:(s&B)===B){B!==0&&B===ks&&(zu=!0),G!==null&&(G=G.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ne=e,fe=x;B=t;var Xe=n;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){Q=ne.call(Xe,Q,B);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,B=typeof ne=="function"?ne.call(Xe,Q,B):ne,B==null)break e;Q=y({},Q,B);break e;case 2:Kl=!0}}B=x.callback,B!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[B]:U.push(B))}else U={lane:B,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(L=G=U,w=Q):G=G.next=U,p|=B;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;U=x,x=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);G===null&&(w=Q),o.baseState=w,o.firstBaseUpdate=L,o.lastBaseUpdate=G,u===null&&(o.shared.lanes=0),aa|=p,e.lanes=p,e.memoizedState=Q}}function Df(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Lf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Df(n[e],t)}var qs=R(null),br=R(0);function Bf(e,t){e=Rl,P(br,e),P(qs,t),Rl=e|t.baseLanes}function Du(){P(br,Rl),P(qs,qs.current)}function Lu(){Rl=br.current,V(qs),V(br)}var _n=R(null),Ln=null;function ea(e){var t=e.alternate;P(ft,ft.current&1),P(_n,e),Ln===null&&(t===null||qs.current!==null||t.memoizedState!==null)&&(Ln=e)}function Bu(e){P(ft,ft.current),P(_n,e),Ln===null&&(Ln=e)}function kf(e){e.tag===22?(P(ft,ft.current),P(_n,e),Ln===null&&(Ln=e)):ta()}function ta(){P(ft,ft.current),P(_n,_n.current)}function vn(e){V(_n),Ln===e&&(Ln=null),V(ft)}var ft=R(0);function jr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||G0(n)||F0(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 bl=0,ye=null,Qe=null,gt=null,Sr=!1,Gs=!1,Va=!1,Nr=0,Ji=0,Fs=null,wv=0;function rt(){throw Error(r(321))}function ku(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mn(e[n],t[n]))return!1;return!0}function Uu(e,t,n,s,o,u){return bl=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?xh:Ju,Va=!1,u=n(s,o),Va=!1,Gs&&(u=Hf(t,n,s,o)),Uf(e),u}function Uf(e){$.H=nc;var t=Qe!==null&&Qe.next!==null;if(bl=0,gt=Qe=ye=null,Sr=!1,Ji=0,Fs=null,t)throw Error(r(300));e===null||yt||(e=e.dependencies,e!==null&&mr(e)&&(yt=!0))}function Hf(e,t,n,s){ye=e;var o=0;do{if(Gs&&(Fs=null),Ji=0,Gs=!1,25<=o)throw Error(r(301));if(o+=1,gt=Qe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}$.H=bh,u=t(n,s)}while(Gs);return u}function Cv(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?ec(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(ye.flags|=1024),t}function Hu(){var e=Nr!==0;return Nr=0,e}function $u(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function qu(e){if(Sr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Sr=!1}bl=0,gt=Qe=ye=null,Gs=!1,Ji=Nr=0,Fs=null}function Gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?ye.memoizedState=gt=e:gt=gt.next=e,gt}function ht(){if(Qe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=gt===null?ye.memoizedState:gt.next;if(t!==null)gt=t,Qe=e;else{if(e===null)throw ye.alternate===null?Error(r(467)):Error(r(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},gt===null?ye.memoizedState=gt=e:gt=gt.next=e}return gt}function wr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ec(e){var t=Ji;return Ji+=1,Fs===null&&(Fs=[]),e=Rf(Fs,e,t),t=ye,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?xh:Ju),e}function Cr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ec(e);if(e.$$typeof===O)return Lt(e)}throw Error(r(438,String(e)))}function Gu(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=ye.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wr(),ye.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]=me;return t.index++,n}function jl(e,t){return typeof t=="function"?t(e):t}function Er(e){var t=ht();return Fu(t,Qe,e)}function Fu(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var o=e.baseQueue,u=s.pending;if(u!==null){if(o!==null){var p=o.next;o.next=u.next,u.next=p}t.baseQueue=o=u,s.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var x=p=null,w=null,L=t,G=!1;do{var Q=L.lane&-536870913;if(Q!==L.lane?(Oe&Q)===Q:(bl&Q)===Q){var B=L.revertLane;if(B===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Q===ks&&(G=!0);else if((bl&B)===B){L=L.next,B===ks&&(G=!0);continue}else Q={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(x=w=Q,p=u):w=w.next=Q,ye.lanes|=B,aa|=B;Q=L.action,Va&&n(u,Q),u=L.hasEagerState?L.eagerState:n(u,Q)}else B={lane:Q,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(x=w=B,p=u):w=w.next=B,ye.lanes|=Q,aa|=Q;L=L.next}while(L!==null&&L!==t);if(w===null?p=u:w.next=x,!mn(u,e.memoizedState)&&(yt=!0,G&&(n=Us,n!==null)))throw n;e.memoizedState=u,e.baseState=p,e.baseQueue=w,s.lastRenderedState=u}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Vu(e){var t=ht(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var p=o=o.next;do u=e(u,p.action),p=p.next;while(p!==o);mn(u,t.memoizedState)||(yt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function $f(e,t,n){var s=ye,o=ht(),u=Le;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!mn((Qe||o).memoizedState,n);if(p&&(o.memoizedState=n,yt=!0),o=o.queue,Xu(Ff.bind(null,s,o,e),[e]),o.getSnapshot!==t||p||gt!==null&&gt.memoizedState.tag&1){if(s.flags|=2048,Vs(9,{destroy:void 0},Gf.bind(null,s,o,n,t),null),Ze===null)throw Error(r(349));u||(bl&127)!==0||qf(s,t,n)}return n}function qf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=wr(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gf(e,t,n,s){t.value=n,t.getSnapshot=s,Vf(t)&&Qf(e)}function Ff(e,t,n){return n(function(){Vf(t)&&Qf(e)})}function Vf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mn(e,n)}catch{return!0}}function Qf(e){var t=La(e,2);t!==null&&an(t,e,2)}function Qu(e){var t=Gt();if(typeof e=="function"){var n=e;if(e=n(),Va){Vl(!0);try{n()}finally{Vl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:e},t}function Yf(e,t,n,s){return e.baseState=n,Fu(e,Qe,typeof s=="function"?s:jl)}function Ev(e,t,n,s,o){if(Ar(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){u.listeners.push(p)}};$.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,Xf(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Xf(e,t){var n=t.action,s=t.payload,o=e.state;if(t.isTransition){var u=$.T,p={};$.T=p;try{var x=n(o,s),w=$.S;w!==null&&w(p,x),If(e,t,x)}catch(L){Yu(e,t,L)}finally{u!==null&&p.types!==null&&(u.types=p.types),$.T=u}}else try{u=n(o,s),If(e,t,u)}catch(L){Yu(e,t,L)}}function If(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){Zf(e,t,s)},function(s){return Yu(e,t,s)}):Zf(e,t,n)}function Zf(e,t,n){t.status="fulfilled",t.value=n,Pf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xf(e,n)))}function Yu(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,Pf(t),t=t.next;while(t!==s)}e.action=null}function Pf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kf(e,t){return t}function Wf(e,t){if(Le){var n=Ze.formState;if(n!==null){e:{var s=ye;if(Le){if(et){t:{for(var o=et,u=Dn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Bn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){et=Bn(o.nextSibling),s=o.data==="F!";break e}}Zl(s)}s=!1}s&&(t=n[0])}}return n=Gt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kf,lastRenderedState:t},n.queue=s,n=vh.bind(null,ye,s),s.dispatch=n,s=Qu(!1),u=Wu.bind(null,ye,!1,s.queue),s=Gt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,n=Ev.bind(null,ye,o,u,n),o.dispatch=n,s.memoizedState=e,[t,n,!1]}function Jf(e){var t=ht();return eh(t,Qe,e)}function eh(e,t,n){if(t=Fu(e,t,Kf)[0],e=Er(jl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ec(t)}catch(p){throw p===Hs?vr:p}else s=t;t=ht();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,Vs(9,{destroy:void 0},Tv.bind(null,o,n),null)),[s,u,e]}function Tv(e,t){e.action=t}function th(e){var t=ht(),n=Qe;if(n!==null)return eh(t,n,e);ht(),t=t.memoizedState,n=ht();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Vs(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=ye.updateQueue,t===null&&(t=wr(),ye.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 nh(){return ht().memoizedState}function Tr(e,t,n,s){var o=Gt();ye.flags|=e,o.memoizedState=Vs(1|t,{destroy:void 0},n,s===void 0?null:s)}function Rr(e,t,n,s){var o=ht();s=s===void 0?null:s;var u=o.memoizedState.inst;Qe!==null&&s!==null&&ku(s,Qe.memoizedState.deps)?o.memoizedState=Vs(t,u,n,s):(ye.flags|=e,o.memoizedState=Vs(1|t,u,n,s))}function lh(e,t){Tr(8390656,8,e,t)}function Xu(e,t){Rr(2048,8,e,t)}function Rv(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=wr(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ah(e){var t=ht().memoizedState;return Rv({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function sh(e,t){return Rr(4,2,e,t)}function ih(e,t){return Rr(4,4,e,t)}function ch(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 rh(e,t,n){n=n!=null?n.concat([e]):null,Rr(4,4,ch.bind(null,t,e),n)}function Iu(){}function oh(e,t){var n=ht();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&ku(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function uh(e,t){var n=ht();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&ku(t,s[1]))return s[0];if(s=e(),Va){Vl(!0);try{e()}finally{Vl(!1)}}return n.memoizedState=[s,t],s}function Zu(e,t,n){return n===void 0||(bl&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=d1(),ye.lanes|=e,aa|=e,n)}function dh(e,t,n,s){return mn(n,t)?n:qs.current!==null?(e=Zu(e,n,s),mn(e,t)||(yt=!0),e):(bl&42)===0||(bl&1073741824)!==0&&(Oe&261930)===0?(yt=!0,e.memoizedState=n):(e=d1(),ye.lanes|=e,aa|=e,t)}function fh(e,t,n,s,o){var u=X.p;X.p=u!==0&&8>u?u:8;var p=$.T,x={};$.T=x,Wu(e,!1,t,n);try{var w=o(),L=$.S;if(L!==null&&L(x,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var G=Nv(w,s);tc(e,t,G,xn(e))}else tc(e,t,s,xn(e))}catch(Q){tc(e,t,{then:function(){},status:"rejected",reason:Q},xn())}finally{X.p=u,p!==null&&x.types!==null&&(p.types=x.types),$.T=p}}function Av(){}function Pu(e,t,n,s){if(e.tag!==5)throw Error(r(476));var o=hh(e).queue;fh(e,o,t,se,n===null?Av:function(){return mh(e),n(s)})}function hh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mh(e){var t=hh(e);t.next===null&&(t=e.alternate.memoizedState),tc(e,t.next.queue,{},xn())}function Ku(){return Lt(gc)}function ph(){return ht().memoizedState}function _h(){return ht().memoizedState}function Mv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xn();e=Wl(n);var s=Jl(t,e,n);s!==null&&(an(s,t,n),Pi(s,t,n)),t={cache:Cu()},e.payload=t;return}t=t.return}}function Ov(e,t,n){var s=xn();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ar(e)?gh(t,n):(n=pu(e,t,n,s),n!==null&&(an(n,e,s),yh(n,t,s)))}function vh(e,t,n){var s=xn();tc(e,t,n,s)}function tc(e,t,n,s){var o={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ar(e))gh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var p=t.lastRenderedState,x=u(p,n);if(o.hasEagerState=!0,o.eagerState=x,mn(x,p))return ur(e,t,o,0),Ze===null&&or(),!1}catch{}finally{}if(n=pu(e,t,o,s),n!==null)return an(n,e,s),yh(n,t,s),!0}return!1}function Wu(e,t,n,s){if(s={lane:2,revertLane:A0(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ar(e)){if(t)throw Error(r(479))}else t=pu(e,n,s,2),t!==null&&an(t,e,2)}function Ar(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function gh(e,t){Gs=Sr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yh(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,S2(e,n)}}var nc={readContext:Lt,use:Cr,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};nc.useEffectEvent=rt;var xh={readContext:Lt,use:Cr,useCallback:function(e,t){return Gt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:lh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Tr(4194308,4,ch.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tr(4194308,4,e,t)},useInsertionEffect:function(e,t){Tr(4,2,e,t)},useMemo:function(e,t){var n=Gt();t=t===void 0?null:t;var s=e();if(Va){Vl(!0);try{e()}finally{Vl(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Gt();if(n!==void 0){var o=n(t);if(Va){Vl(!0);try{n(t)}finally{Vl(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=Ov.bind(null,ye,e),[s.memoizedState,e]},useRef:function(e){var t=Gt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qu(e);var t=e.queue,n=vh.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Iu,useDeferredValue:function(e,t){var n=Gt();return Zu(n,e,t)},useTransition:function(){var e=Qu(!1);return e=fh.bind(null,ye,e.queue,!0,!1),Gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=ye,o=Gt();if(Le){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ze===null)throw Error(r(349));(Oe&127)!==0||qf(s,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,lh(Ff.bind(null,s,u,e),[e]),s.flags|=2048,Vs(9,{destroy:void 0},Gf.bind(null,s,u,n,t),null),n},useId:function(){var e=Gt(),t=Ze.identifierPrefix;if(Le){var n=el,s=Jn;n=(s&~(1<<32-hn(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=wv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ku,useFormState:Wf,useActionState:Wf,useOptimistic:function(e){var t=Gt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Wu.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:Gu,useCacheRefresh:function(){return Gt().memoizedState=Mv.bind(null,ye)},useEffectEvent:function(e){var t=Gt(),n={impl:e};return t.memoizedState=n,function(){if(($e&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Ju={readContext:Lt,use:Cr,useCallback:oh,useContext:Lt,useEffect:Xu,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ih,useMemo:uh,useReducer:Er,useRef:nh,useState:function(){return Er(jl)},useDebugValue:Iu,useDeferredValue:function(e,t){var n=ht();return dh(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Er(jl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:ec(e),t]},useSyncExternalStore:$f,useId:ph,useHostTransitionStatus:Ku,useFormState:Jf,useActionState:Jf,useOptimistic:function(e,t){var n=ht();return Yf(n,Qe,e,t)},useMemoCache:Gu,useCacheRefresh:_h};Ju.useEffectEvent=ah;var bh={readContext:Lt,use:Cr,useCallback:oh,useContext:Lt,useEffect:Xu,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ih,useMemo:uh,useReducer:Vu,useRef:nh,useState:function(){return Vu(jl)},useDebugValue:Iu,useDeferredValue:function(e,t){var n=ht();return Qe===null?Zu(n,e,t):dh(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Vu(jl)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:ec(e),t]},useSyncExternalStore:$f,useId:ph,useHostTransitionStatus:Ku,useFormState:th,useActionState:th,useOptimistic:function(e,t){var n=ht();return Qe!==null?Yf(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:_h};bh.useEffectEvent=ah;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=xn(),o=Wl(s);o.payload=t,n!=null&&(o.callback=n),t=Jl(e,o,s),t!==null&&(an(t,e,s),Pi(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=xn(),o=Wl(s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Jl(e,o,s),t!==null&&(an(t,e,s),Pi(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xn(),s=Wl(n);s.tag=2,t!=null&&(s.callback=t),t=Jl(e,s,n),t!==null&&(an(t,e,n),Pi(t,e,n))}};function jh(e,t,n,s,o,u,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,p):t.prototype&&t.prototype.isPureReactComponent?!Gi(n,s)||!Gi(o,u):!0}function Sh(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 Qa(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 o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Nh(e){rr(e)}function wh(e){console.error(e)}function Ch(e){rr(e)}function Mr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Eh(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function n0(e,t,n){return n=Wl(n),n.tag=3,n.payload={element:null},n.callback=function(){Mr(e,t)},n}function Th(e){return e=Wl(e),e.tag=3,e}function Rh(e,t,n,s){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;e.payload=function(){return o(u)},e.callback=function(){Eh(t,n,s)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Eh(t,n,s),typeof o!="function"&&(sa===null?sa=new Set([this]):sa.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function zv(e,t,n,s,o){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Bs(t,n,o,!0),n=_n.current,n!==null){switch(n.tag){case 31:case 13:return Ln===null?Fr():n.alternate===null&&ot===0&&(ot=3),n.flags&=-257,n.flags|=65536,n.lanes=o,s===gr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),E0(e,s,o)),!1;case 22:return n.flags|=65536,s===gr?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)),E0(e,s,o)),!1}throw Error(r(435,n.tag))}return E0(e,s,o),Fr(),!1}if(Le)return t=_n.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==bu&&(e=Error(r(422),{cause:s}),Qi(Mn(e,n)))):(s!==bu&&(t=Error(r(423),{cause:s}),Qi(Mn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Mn(s,n),o=n0(e.stateNode,s,o),Ou(e,o),ot!==4&&(ot=2)),!1;var u=Error(r(520),{cause:s});if(u=Mn(u,n),uc===null?uc=[u]:uc.push(u),ot!==4&&(ot=2),t===null)return!0;s=Mn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=n0(n.stateNode,s,e),Ou(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"&&(sa===null||!sa.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Th(o),Rh(o,e,n,s),Ou(n,o),!1}n=n.return}while(n!==null);return!1}var l0=Error(r(461)),yt=!1;function Bt(e,t,n,s){t.child=e===null?zf(t,null,n,s):Fa(t,e.child,n,s)}function Ah(e,t,n,s,o){n=n.render;var u=t.ref;if("ref"in s){var p={};for(var x in s)x!=="ref"&&(p[x]=s[x])}else p=s;return Ha(t),s=Uu(e,t,n,p,u,o),x=Hu(),e!==null&&!yt?($u(e,t,o),Sl(e,t,o)):(Le&&x&&yu(t),t.flags|=1,Bt(e,t,s,o),t.child)}function Mh(e,t,n,s,o){if(e===null){var u=n.type;return typeof u=="function"&&!_u(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Oh(e,t,u,s,o)):(e=fr(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!d0(e,o)){var p=u.memoizedProps;if(n=n.compare,n=n!==null?n:Gi,n(p,s)&&e.ref===t.ref)return Sl(e,t,o)}return t.flags|=1,e=vl(u,s),e.ref=t.ref,e.return=t,t.child=e}function Oh(e,t,n,s,o){if(e!==null){var u=e.memoizedProps;if(Gi(u,s)&&e.ref===t.ref)if(yt=!1,t.pendingProps=s=u,d0(e,o))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,Sl(e,t,o)}return a0(e,t,n,s,o)}function zh(e,t,n,s){var o=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,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,t.child=null;return Dh(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_r(t,u!==null?u.cachePool:null),u!==null?Bf(t,u):Du(),kf(t);else return s=t.lanes=536870912,Dh(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(_r(t,u.cachePool),Bf(t,u),ta(),t.memoizedState=null):(e!==null&&_r(t,null),Du(),ta());return Bt(e,t,o,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Dh(e,t,n,s,o){var u=Tu();return u=u===null?null:{parent:vt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&_r(t,null),Du(),kf(t),e!==null&&Bs(e,t,s,!0),t.childLanes=o,null}function Or(e,t){return t=Dr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lh(e,t,n){return Fa(t,e.child,null,n),e=Or(t,t.pendingProps),e.flags|=2,vn(t),t.memoizedState=null,e}function Dv(e,t,n){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(s.mode==="hidden")return e=Or(t,s),t.lanes=536870912,lc(null,e);if(Bu(t),(e=et)?(e=X1(e,Dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xl!==null?{id:Jn,overflow:el}:null,retryLane:536870912,hydrationErrors:null},n=gf(e),n.return=t,t.child=n,Dt=t,et=null)):e=null,e===null)throw Zl(t);return t.lanes=536870912,null}return Or(t,s)}var u=e.memoizedState;if(u!==null){var p=u.dehydrated;if(Bu(t),o)if(t.flags&256)t.flags&=-257,t=Lh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(yt||Bs(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(s=Ze,s!==null&&(p=N2(s,n),p!==0&&p!==u.retryLane))throw u.retryLane=p,La(e,p),an(s,e,p),l0;Fr(),t=Lh(e,t,n)}else e=u.treeContext,et=Bn(p.nextSibling),Dt=t,Le=!0,Il=null,Dn=!1,e!==null&&bf(t,e),t=Or(t,s),t.flags|=4096;return t}return e=vl(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function a0(e,t,n,s,o){return Ha(t),n=Uu(e,t,n,s,void 0,o),s=Hu(),e!==null&&!yt?($u(e,t,o),Sl(e,t,o)):(Le&&s&&yu(t),t.flags|=1,Bt(e,t,n,o),t.child)}function Bh(e,t,n,s,o,u){return Ha(t),t.updateQueue=null,n=Hf(t,s,n,o),Uf(e),s=Hu(),e!==null&&!yt?($u(e,t,u),Sl(e,t,u)):(Le&&s&&yu(t),t.flags|=1,Bt(e,t,n,u),t.child)}function kh(e,t,n,s,o){if(Ha(t),t.stateNode===null){var u=Os,p=n.contextType;typeof p=="object"&&p!==null&&(u=Lt(p)),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={},Au(t),p=n.contextType,u.context=typeof p=="object"&&p!==null?Lt(p):Os,u.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(e0(t,n,p,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(p=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),p!==u.state&&t0.enqueueReplaceState(u,u.state,null),Wi(t,s,u,o),Ki(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,w=Qa(n,x);u.props=w;var L=u.context,G=n.contextType;p=Os,typeof G=="object"&&G!==null&&(p=Lt(G));var Q=n.getDerivedStateFromProps;G=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,G||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||L!==p)&&Sh(t,u,s,p),Kl=!1;var B=t.memoizedState;u.state=B,Wi(t,s,u,o),Ki(),L=t.memoizedState,x||B!==L||Kl?(typeof Q=="function"&&(e0(t,n,Q,s),L=t.memoizedState),(w=Kl||jh(t,n,w,s,B,L,p))?(G||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=L),u.props=s,u.state=L,u.context=p,s=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Mu(e,t),p=t.memoizedProps,G=Qa(n,p),u.props=G,Q=t.pendingProps,B=u.context,L=n.contextType,w=Os,typeof L=="object"&&L!==null&&(w=Lt(L)),x=n.getDerivedStateFromProps,(L=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==Q||B!==w)&&Sh(t,u,s,w),Kl=!1,B=t.memoizedState,u.state=B,Wi(t,s,u,o),Ki();var U=t.memoizedState;p!==Q||B!==U||Kl||e!==null&&e.dependencies!==null&&mr(e.dependencies)?(typeof x=="function"&&(e0(t,n,x,s),U=t.memoizedState),(G=Kl||jh(t,n,G,s,B,U,w)||e!==null&&e.dependencies!==null&&mr(e.dependencies))?(L||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,U,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,U,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=U),u.props=s,u.state=U,u.context=w,s=G):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,zr(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=Fa(t,e.child,null,o),t.child=Fa(t,null,n,o)):Bt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Sl(e,t,o),e}function Uh(e,t,n,s){return ka(),t.flags|=256,Bt(e,t,n,s),t.child}var s0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function i0(e){return{baseLanes:e,cachePool:Ef()}}function c0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=yn),e}function Hh(e,t,n){var s=t.pendingProps,o=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(o?ea(t):ta(),(e=et)?(e=X1(e,Dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xl!==null?{id:Jn,overflow:el}:null,retryLane:536870912,hydrationErrors:null},n=gf(e),n.return=t,t.child=n,Dt=t,et=null)):e=null,e===null)throw Zl(t);return F0(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(ta(),o=t.mode,x=Dr({mode:"hidden",children:x},o),s=Ba(s,o,n,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=i0(n),s.childLanes=c0(e,p,n),t.memoizedState=s0,lc(null,s)):(ea(t),r0(t,x))}var w=e.memoizedState;if(w!==null&&(x=w.dehydrated,x!==null)){if(u)t.flags&256?(ea(t),t.flags&=-257,t=o0(e,t,n)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),x=s.fallback,o=t.mode,s=Dr({mode:"visible",children:s.children},o),x=Ba(x,o,n,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,Fa(t,e.child,null,n),s=t.child,s.memoizedState=i0(n),s.childLanes=c0(e,p,n),t.memoizedState=s0,t=lc(null,s));else if(ea(t),F0(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var L=p.dgst;p=L,s=Error(r(419)),s.stack="",s.digest=p,Qi({value:s,source:null,stack:null}),t=o0(e,t,n)}else if(yt||Bs(e,t,n,!1),p=(n&e.childLanes)!==0,yt||p){if(p=Ze,p!==null&&(s=N2(p,n),s!==0&&s!==w.retryLane))throw w.retryLane=s,La(e,s),an(p,e,s),l0;G0(x)||Fr(),t=o0(e,t,n)}else G0(x)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,et=Bn(x.nextSibling),Dt=t,Le=!0,Il=null,Dn=!1,e!==null&&bf(t,e),t=r0(t,s.children),t.flags|=4096);return t}return o?(ta(),x=s.fallback,o=t.mode,w=e.child,L=w.sibling,s=vl(w,{mode:"hidden",children:s.children}),s.subtreeFlags=w.subtreeFlags&65011712,L!==null?x=vl(L,x):(x=Ba(x,o,n,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,lc(null,s),s=t.child,x=e.child.memoizedState,x===null?x=i0(n):(o=x.cachePool,o!==null?(w=vt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Ef(),x={baseLanes:x.baseLanes|n,cachePool:o}),s.memoizedState=x,s.childLanes=c0(e,p,n),t.memoizedState=s0,lc(e.child,s)):(ea(t),n=e.child,e=n.sibling,n=vl(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function r0(e,t){return t=Dr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Dr(e,t){return e=pn(22,e,null,t),e.lanes=0,e}function o0(e,t,n){return Fa(t,e.child,null,n),e=r0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $h(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Nu(e.return,t,n)}function u0(e,t,n,s,o,u){var p=e.memoizedState;p===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o,treeForkCount:u}:(p.isBackwards=t,p.rendering=null,p.renderingStartTime=0,p.last=s,p.tail=n,p.tailMode=o,p.treeForkCount=u)}function qh(e,t,n){var s=t.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var p=ft.current,x=(p&2)!==0;if(x?(p=p&1|2,t.flags|=128):p&=1,P(ft,p),Bt(e,t,s,n),s=Le?Vi:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$h(e,n,t);else if(e.tag===19)$h(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&jr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),u0(t,!1,o,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&jr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}u0(t,!0,n,null,u,s);break;case"together":u0(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),aa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Bs(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=vl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function d0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mr(e)))}function Lv(e,t,n){switch(t.tag){case 3:jt(t,t.stateNode.containerInfo),Pl(t,vt,e.memoizedState.cache),ka();break;case 27:case 5:Wn(t);break;case 4:jt(t,t.stateNode.containerInfo);break;case 10:Pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(ea(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Hh(e,t,n):(ea(t),e=Sl(e,t,n),e!==null?e.sibling:null);ea(t);break;case 19:var o=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Bs(e,t,n,!1),s=(n&t.childLanes)!==0),o){if(s)return qh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),P(ft,ft.current),s)break;return null;case 22:return t.lanes=0,zh(e,t,n,t.pendingProps);case 24:Pl(t,vt,e.memoizedState.cache)}return Sl(e,t,n)}function Gh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!d0(e,n)&&(t.flags&128)===0)return yt=!1,Lv(e,t,n);yt=(e.flags&131072)!==0}else yt=!1,Le&&(t.flags&1048576)!==0&&xf(t,Vi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=qa(t.elementType),t.type=e,typeof e=="function")_u(e)?(s=Qa(e,s),t.tag=1,t=kh(null,t,e,s,n)):(t.tag=0,t=a0(null,t,e,s,n));else{if(e!=null){var o=e.$$typeof;if(o===k){t.tag=11,t=Ah(null,t,e,s,n);break e}else if(o===q){t.tag=14,t=Mh(null,t,e,s,n);break e}}throw t=ve(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,o=Qa(s,t.pendingProps),kh(e,t,s,o,n);case 3:e:{if(jt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;o=u.element,Mu(e,t),Wi(t,s,null,n);var p=t.memoizedState;if(s=p.cache,Pl(t,vt,s),s!==u.cache&&wu(t,[vt],n,!0),Ki(),s=p.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Uh(e,t,s,n);break e}else if(s!==o){o=Mn(Error(r(424)),t),Qi(o),t=Uh(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(et=Bn(e.firstChild),Dt=t,Le=!0,Il=null,Dn=!0,n=zf(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ka(),s===o){t=Sl(e,t,n);break e}Bt(e,t,s,n)}t=t.child}return t;case 26:return zr(e,t),e===null?(n=J1(t.type,null,t.pendingProps,null))?t.memoizedState=n:Le||(n=t.type,e=t.pendingProps,s=Pr(xe.current).createElement(n),s[zt]=t,s[Wt]=e,kt(s,n,e),Ct(s),t.stateNode=s):t.memoizedState=J1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Wn(t),e===null&&Le&&(s=t.stateNode=P1(t.type,t.pendingProps,xe.current),Dt=t,Dn=!0,o=et,oa(t.type)?(V0=o,et=Bn(s.firstChild)):et=o),Bt(e,t,t.pendingProps.children,n),zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((o=s=et)&&(s=dg(s,t.type,t.pendingProps,Dn),s!==null?(t.stateNode=s,Dt=t,et=Bn(s.firstChild),Dn=!1,o=!0):o=!1),o||Zl(t)),Wn(t),o=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,s=u.children,H0(o,u)?s=null:p!==null&&H0(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Uu(e,t,Cv,null,null,n),gc._currentValue=o),zr(e,t),Bt(e,t,s,n),t.child;case 6:return e===null&&Le&&((e=n=et)&&(n=fg(n,t.pendingProps,Dn),n!==null?(t.stateNode=n,Dt=t,et=null,e=!0):e=!1),e||Zl(t)),null;case 13:return Hh(e,t,n);case 4:return jt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Fa(t,null,s,n):Bt(e,t,s,n),t.child;case 11:return Ah(e,t,t.type,t.pendingProps,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,Pl(t,t.type,s.value),Bt(e,t,s.children,n),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Ha(t),o=Lt(o),s=s(o),t.flags|=1,Bt(e,t,s,n),t.child;case 14:return Mh(e,t,t.type,t.pendingProps,n);case 15:return Oh(e,t,t.type,t.pendingProps,n);case 19:return qh(e,t,n);case 31:return Dv(e,t,n);case 22:return zh(e,t,n,t.pendingProps);case 24:return Ha(t),s=Lt(vt),e===null?(o=Tu(),o===null&&(o=Ze,u=Cu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:s,cache:o},Au(t),Pl(t,vt,o)):((e.lanes&n)!==0&&(Mu(e,t),Wi(t,null,null,n),Ki()),o=e.memoizedState,u=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Pl(t,vt,s)):(s=u.cache,Pl(t,vt,s),s!==o.cache&&wu(t,[vt],n,!0))),Bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Nl(e){e.flags|=4}function f0(e,t,n,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(p1())e.flags|=8192;else throw Ga=gr,Ru}else e.flags&=-16777217}function Fh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!am(t))if(p1())e.flags|=8192;else throw Ga=gr,Ru}function Lr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?b2():536870912,e.lanes|=t,Is|=t)}function ac(e,t){if(!Le)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 tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function Bv(e,t,n){var s=t.pendingProps;switch(xu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),xl(vt),Je(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ls(t)?Nl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ju())),tt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Nl(t),u!==null?(tt(t),Fh(t,u)):(tt(t),f0(t,o,null,s,n))):u?u!==e.memoizedState?(Nl(t),tt(t),Fh(t,u)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Nl(t),tt(t),f0(t,o,e,s,n)),null;case 27:if(fl(t),n=xe.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Nl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return tt(t),null}e=te.current,Ls(t)?jf(t):(e=P1(o,s,n),t.stateNode=e,Nl(t))}return tt(t),null;case 5:if(fl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Nl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return tt(t),null}if(u=te.current,Ls(t))jf(t);else{var p=Pr(xe.current);switch(u){case 1:u=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=p.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?p.createElement("select",{is:s.is}):p.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?p.createElement(o,{is:s.is}):p.createElement(o)}}u[zt]=t,u[Wt]=s;e:for(p=t.child;p!==null;){if(p.tag===5||p.tag===6)u.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===t)break e;for(;p.sibling===null;){if(p.return===null||p.return===t)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}t.stateNode=u;e:switch(kt(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Nl(t)}}return tt(t),f0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Nl(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=xe.current,Ls(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,o=Dt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[zt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||H1(e.nodeValue,n)),e||Zl(t,!0)}else e=Pr(e).createTextNode(s),e[zt]=t,t.stateNode=e}return tt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Ls(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[zt]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else n=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vn(t),t):(vn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return tt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ls(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[zt]=t}else ka(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),o=!1}else o=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(vn(t),t):(vn(t),null)}return vn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lr(t,t.updateQueue),tt(t),null);case 4:return Je(),e===null&&D0(t.stateNode.containerInfo),tt(t),null;case 10:return xl(t.type),tt(t),null;case 19:if(V(ft),s=t.memoizedState,s===null)return tt(t),null;if(o=(t.flags&128)!==0,u=s.rendering,u===null)if(o)ac(s,!1);else{if(ot!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=jr(e),u!==null){for(t.flags|=128,ac(s,!1),e=u.updateQueue,t.updateQueue=e,Lr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vf(n,e),n=n.sibling;return P(ft,ft.current&1|2),Le&&gl(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&dn()>$r&&(t.flags|=128,o=!0,ac(s,!1),t.lanes=4194304)}else{if(!o)if(e=jr(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Lr(t,e),ac(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Le)return tt(t),null}else 2*dn()-s.renderingStartTime>$r&&n!==536870912&&(t.flags|=128,o=!0,ac(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=dn(),e.sibling=null,n=ft.current,P(ft,o?n&1|2:n&1),Le&&gl(t,s.treeForkCount),e):(tt(t),null);case 22:case 23:return vn(t),Lu(),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&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),n=t.updateQueue,n!==null&&Lr(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($a),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xl(vt),tt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function kv(e,t){switch(xu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xl(vt),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fl(t),null;case 31:if(t.memoizedState!==null){if(vn(t),t.alternate===null)throw Error(r(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ka()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(ft),null;case 4:return Je(),null;case 10:return xl(t.type),null;case 22:case 23:return vn(t),Lu(),e!==null&&V($a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xl(vt),null;case 25:return null;default:return null}}function Vh(e,t){switch(xu(t),t.tag){case 3:xl(vt),Je();break;case 26:case 27:case 5:fl(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&vn(t);break;case 13:vn(t);break;case 19:V(ft);break;case 10:xl(t.type);break;case 22:case 23:vn(t),Lu(),e!==null&&V($a);break;case 24:xl(vt)}}function sc(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var o=s.next;n=o;do{if((n.tag&e)===e){s=void 0;var u=n.create,p=n.inst;s=u(),p.destroy=s}n=n.next}while(n!==o)}}catch(x){Fe(t,t.return,x)}}function na(e,t,n){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&e)===e){var p=s.inst,x=p.destroy;if(x!==void 0){p.destroy=void 0,o=t;var w=n,L=x;try{L()}catch(G){Fe(o,w,G)}}}s=s.next}while(s!==u)}}catch(G){Fe(t,t.return,G)}}function Qh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Lf(t,n)}catch(s){Fe(e,e.return,s)}}}function Yh(e,t,n){n.props=Qa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Fe(e,t,s)}}function ic(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(o){Fe(e,t,o)}}function tl(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(o){Fe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Fe(e,t,o)}else n.current=null}function Xh(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(o){Fe(e,e.return,o)}}function h0(e,t,n){try{var s=e.stateNode;sg(s,e.type,n,t),s[Wt]=t}catch(o){Fe(e,e.return,o)}}function Ih(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&oa(e.type)||e.tag===4}function m0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ih(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&&oa(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 p0(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=pl));else if(s!==4&&(s===27&&oa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(p0(e,t,n),e=e.sibling;e!==null;)p0(e,t,n),e=e.sibling}function Br(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&&oa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Br(e,t,n),e=e.sibling;e!==null;)Br(e,t,n),e=e.sibling}function Zh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);kt(t,s,n),t[zt]=e,t[Wt]=n}catch(u){Fe(e,e.return,u)}}var wl=!1,xt=!1,_0=!1,Ph=typeof WeakSet=="function"?WeakSet:Set,Et=null;function Uv(e,t){if(e=e.containerInfo,k0=lo,e=rf(e),ou(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 o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var p=0,x=-1,w=-1,L=0,G=0,Q=e,B=null;t:for(;;){for(var U;Q!==n||o!==0&&Q.nodeType!==3||(x=p+o),Q!==u||s!==0&&Q.nodeType!==3||(w=p+s),Q.nodeType===3&&(p+=Q.nodeValue.length),(U=Q.firstChild)!==null;)B=Q,Q=U;for(;;){if(Q===e)break t;if(B===n&&++L===o&&(x=p),B===u&&++G===s&&(w=p),(U=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=U}n=x===-1||w===-1?null:{start:x,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(U0={focusedElem:e,selectionRange:n},lo=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var ne=Qa(n.type,o);e=s.getSnapshotBeforeUpdate(ne,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Fe(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)q0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":q0(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,Et=e;break}Et=t.return}}function Kh(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:El(e,n),s&4&&sc(5,n);break;case 1:if(El(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Fe(n,n.return,p)}else{var o=Qa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Fe(n,n.return,p)}}s&64&&Qh(n),s&512&&ic(n,n.return);break;case 3:if(El(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{Lf(e,t)}catch(p){Fe(n,n.return,p)}}break;case 27:t===null&&s&4&&Zh(n);case 26:case 5:El(e,n),t===null&&s&4&&Xh(n),s&512&&ic(n,n.return);break;case 12:El(e,n);break;case 31:El(e,n),s&4&&e1(e,n);break;case 13:El(e,n),s&4&&t1(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Xv.bind(null,n),hg(e,n))));break;case 22:if(s=n.memoizedState!==null||wl,!s){t=t!==null&&t.memoizedState!==null||xt,o=wl;var u=xt;wl=s,(xt=t)&&!u?Tl(e,n,(n.subtreeFlags&8772)!==0):El(e,n),wl=o,xt=u}break;case 30:break;default:El(e,n)}}function Wh(e){var t=e.alternate;t!==null&&(e.alternate=null,Wh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yo(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 lt=null,en=!1;function Cl(e,t,n){for(n=n.child;n!==null;)Jh(e,t,n),n=n.sibling}function Jh(e,t,n){if(fn&&typeof fn.onCommitFiberUnmount=="function")try{fn.onCommitFiberUnmount(Ai,n)}catch{}switch(n.tag){case 26:xt||tl(n,t),Cl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:xt||tl(n,t);var s=lt,o=en;oa(n.type)&&(lt=n.stateNode,en=!1),Cl(e,t,n),pc(n.stateNode),lt=s,en=o;break;case 5:xt||tl(n,t);case 6:if(s=lt,o=en,lt=null,Cl(e,t,n),lt=s,en=o,lt!==null)if(en)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(n.stateNode)}catch(u){Fe(n,t,u)}else try{lt.removeChild(n.stateNode)}catch(u){Fe(n,t,u)}break;case 18:lt!==null&&(en?(e=lt,Q1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ni(e)):Q1(lt,n.stateNode));break;case 4:s=lt,o=en,lt=n.stateNode.containerInfo,en=!0,Cl(e,t,n),lt=s,en=o;break;case 0:case 11:case 14:case 15:na(2,n,t),xt||na(4,n,t),Cl(e,t,n);break;case 1:xt||(tl(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Yh(n,t,s)),Cl(e,t,n);break;case 21:Cl(e,t,n);break;case 22:xt=(s=xt)||n.memoizedState!==null,Cl(e,t,n),xt=s;break;default:Cl(e,t,n)}}function e1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ni(e)}catch(n){Fe(t,t.return,n)}}}function t1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ni(e)}catch(n){Fe(t,t.return,n)}}function Hv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ph),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ph),t;default:throw Error(r(435,e.tag))}}function kr(e,t){var n=Hv(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var o=Iv.bind(null,e,s);s.then(o,o)}})}function tn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s],u=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 27:if(oa(x.type)){lt=x.stateNode,en=!1;break e}break;case 5:lt=x.stateNode,en=!1;break e;case 3:case 4:lt=x.stateNode.containerInfo,en=!0;break e}x=x.return}if(lt===null)throw Error(r(160));Jh(u,p,o),lt=null,en=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)n1(t,e),t=t.sibling}var Fn=null;function n1(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(t,e),nn(e),s&4&&(na(3,e,e.return),sc(3,e),na(5,e,e.return));break;case 1:tn(t,e),nn(e),s&512&&(xt||n===null||tl(n,n.return)),s&64&&wl&&(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 o=Fn;if(tn(t,e),nn(e),s&512&&(xt||n===null||tl(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,o=o.ownerDocument||o;t:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[zi]||u[zt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),kt(u,s,n),u[zt]=e,Ct(u),s=u;break e;case"link":var p=nm("link","href",o).get(s+(n.href||""));if(p){for(var x=0;x<p.length;x++)if(u=p[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)){p.splice(x,1);break t}}u=o.createElement(s),kt(u,s,n),o.head.appendChild(u);break;case"meta":if(p=nm("meta","content",o).get(s+(n.content||""))){for(x=0;x<p.length;x++)if(u=p[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)){p.splice(x,1);break t}}u=o.createElement(s),kt(u,s,n),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[zt]=e,Ct(u),s=u}e.stateNode=s}else lm(o,e.type,e.stateNode);else e.stateNode=tm(o,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?lm(o,e.type,e.stateNode):tm(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&h0(e,e.memoizedProps,n.memoizedProps)}break;case 27:tn(t,e),nn(e),s&512&&(xt||n===null||tl(n,n.return)),n!==null&&s&4&&h0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(tn(t,e),nn(e),s&512&&(xt||n===null||tl(n,n.return)),e.flags&32){o=e.stateNode;try{ws(o,"")}catch(ne){Fe(e,e.return,ne)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,h0(e,o,n!==null?n.memoizedProps:o)),s&1024&&(_0=!0);break;case 6:if(tn(t,e),nn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(ne){Fe(e,e.return,ne)}}break;case 3:if(Jr=null,o=Fn,Fn=Kr(t.containerInfo),tn(t,e),Fn=o,nn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ni(t.containerInfo)}catch(ne){Fe(e,e.return,ne)}_0&&(_0=!1,l1(e));break;case 4:s=Fn,Fn=Kr(e.stateNode.containerInfo),tn(t,e),nn(e),Fn=s;break;case 12:tn(t,e),nn(e);break;case 31:tn(t,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kr(e,s)));break;case 13:tn(t,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Hr=dn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kr(e,s)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,L=wl,G=xt;if(wl=L||o,xt=G||w,tn(t,e),xt=G,wl=L,nn(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||wl||xt||Ya(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(u=w.stateNode,o)p=u.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{x=w.stateNode;var Q=w.memoizedProps.style,B=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(ne){Fe(w,w.return,ne)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(ne){Fe(w,w.return,ne)}}}else if(t.tag===18){if(n===null){w=t;try{var U=w.stateNode;o?Y1(U,!0):Y1(w.stateNode,!1)}catch(ne){Fe(w,w.return,ne)}}}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,kr(e,n))));break;case 19:tn(t,e),nn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kr(e,s)));break;case 30:break;case 21:break;default:tn(t,e),nn(e)}}function nn(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(Ih(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=m0(e);Br(e,u,o);break;case 5:var p=n.stateNode;n.flags&32&&(ws(p,""),n.flags&=-33);var x=m0(e);Br(e,x,p);break;case 3:case 4:var w=n.stateNode.containerInfo,L=m0(e);p0(e,L,w);break;default:throw Error(r(161))}}catch(G){Fe(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function l1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;l1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Kh(e,t.alternate,t),t=t.sibling}function Ya(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:na(4,t,t.return),Ya(t);break;case 1:tl(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Yh(t,t.return,n),Ya(t);break;case 27:pc(t.stateNode);case 26:case 5:tl(t,t.return),Ya(t);break;case 22:t.memoizedState===null&&Ya(t);break;case 30:Ya(t);break;default:Ya(t)}e=e.sibling}}function Tl(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,u=t,p=u.flags;switch(u.tag){case 0:case 11:case 15:Tl(o,u,n),sc(4,u);break;case 1:if(Tl(o,u,n),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Fe(s,s.return,L)}if(s=u,o=s.updateQueue,o!==null){var x=s.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)Df(w[o],x)}catch(L){Fe(s,s.return,L)}}n&&p&64&&Qh(u),ic(u,u.return);break;case 27:Zh(u);case 26:case 5:Tl(o,u,n),n&&s===null&&p&4&&Xh(u),ic(u,u.return);break;case 12:Tl(o,u,n);break;case 31:Tl(o,u,n),n&&p&4&&e1(o,u);break;case 13:Tl(o,u,n),n&&p&4&&t1(o,u);break;case 22:u.memoizedState===null&&Tl(o,u,n),ic(u,u.return);break;case 30:break;default:Tl(o,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&&Yi(n))}function g0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e))}function Vn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)a1(e,t,n,s),t=t.sibling}function a1(e,t,n,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Vn(e,t,n,s),o&2048&&sc(9,t);break;case 1:Vn(e,t,n,s);break;case 3:Vn(e,t,n,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yi(e)));break;case 12:if(o&2048){Vn(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,x=u.onPostCommit;typeof x=="function"&&x(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Fe(t,t.return,w)}}else Vn(e,t,n,s);break;case 31:Vn(e,t,n,s);break;case 13:Vn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?Vn(e,t,n,s):cc(e,t):u._visibility&2?Vn(e,t,n,s):(u._visibility|=2,Qs(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&v0(p,t);break;case 24:Vn(e,t,n,s),o&2048&&g0(t.alternate,t);break;default:Vn(e,t,n,s)}}function Qs(e,t,n,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,p=t,x=n,w=s,L=p.flags;switch(p.tag){case 0:case 11:case 15:Qs(u,p,x,w,o),sc(8,p);break;case 23:break;case 22:var G=p.stateNode;p.memoizedState!==null?G._visibility&2?Qs(u,p,x,w,o):cc(u,p):(G._visibility|=2,Qs(u,p,x,w,o)),o&&L&2048&&v0(p.alternate,p);break;case 24:Qs(u,p,x,w,o),o&&L&2048&&g0(p.alternate,p);break;default:Qs(u,p,x,w,o)}t=t.sibling}}function cc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,o=s.flags;switch(s.tag){case 22:cc(n,s),o&2048&&v0(s.alternate,s);break;case 24:cc(n,s),o&2048&&g0(s.alternate,s);break;default:cc(n,s)}t=t.sibling}}var rc=8192;function Ys(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;e!==null;)s1(e,t,n),e=e.sibling}function s1(e,t,n){switch(e.tag){case 26:Ys(e,t,n),e.flags&rc&&e.memoizedState!==null&&wg(n,Fn,e.memoizedState,e.memoizedProps);break;case 5:Ys(e,t,n);break;case 3:case 4:var s=Fn;Fn=Kr(e.stateNode.containerInfo),Ys(e,t,n),Fn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=rc,rc=16777216,Ys(e,t,n),rc=s):Ys(e,t,n));break;default:Ys(e,t,n)}}function i1(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 oc(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];Et=s,r1(s,e)}i1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)c1(e),e=e.sibling}function c1(e){switch(e.tag){case 0:case 11:case 15:oc(e),e.flags&2048&&na(9,e,e.return);break;case 3:oc(e);break;case 12:oc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ur(e)):oc(e);break;default:oc(e)}}function Ur(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];Et=s,r1(s,e)}i1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:na(8,t,t.return),Ur(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ur(t));break;default:Ur(t)}e=e.sibling}}function r1(e,t){for(;Et!==null;){var n=Et;switch(n.tag){case 0:case 11:case 15:na(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:Yi(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Et=s;else e:for(n=e;Et!==null;){s=Et;var o=s.sibling,u=s.return;if(Wh(s),s===n){Et=null;break e}if(o!==null){o.return=u,Et=o;break e}Et=u}}}var $v={getCacheForType:function(e){var t=Lt(vt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Lt(vt).controller.signal}},qv=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ze=null,Re=null,Oe=0,Ge=0,gn=null,la=!1,Xs=!1,y0=!1,Rl=0,ot=0,aa=0,Xa=0,x0=0,yn=0,Is=0,uc=null,ln=null,b0=!1,Hr=0,o1=0,$r=1/0,qr=null,sa=null,St=0,ia=null,Zs=null,Al=0,j0=0,S0=null,u1=null,dc=0,N0=null;function xn(){return($e&2)!==0&&Oe!==0?Oe&-Oe:$.T!==null?A0():w2()}function d1(){if(yn===0)if((Oe&536870912)===0||Le){var e=Zc;Zc<<=1,(Zc&3932160)===0&&(Zc=262144),yn=e}else yn=536870912;return e=_n.current,e!==null&&(e.flags|=32),yn}function an(e,t,n){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Ps(e,0),ca(e,Oe,yn,!1)),Oi(e,n),(($e&2)===0||e!==Ze)&&(e===Ze&&(($e&2)===0&&(Xa|=n),ot===4&&ca(e,Oe,yn,!1)),nl(e))}function f1(e,t,n){if(($e&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Mi(e,t),o=s?Vv(e,t):C0(e,t,!0),u=s;do{if(o===0){Xs&&!s&&ca(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Gv(n)){o=C0(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var x=e;o=uc;var w=x.current.memoizedState.isDehydrated;if(w&&(Ps(x,p).flags|=256),p=C0(x,p,!1),p!==2){if(y0&&!w){x.errorRecoveryDisabledLanes|=u,Xa|=u,o=4;break e}u=ln,ln=o,u!==null&&(ln===null?ln=u:ln.push.apply(ln,u))}o=p}if(u=!1,o!==2)continue}}if(o===1){Ps(e,0),ca(e,t,0,!0);break}e:{switch(s=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ca(s,t,yn,!la);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Hr+300-dn(),10<o)){if(ca(s,t,yn,!la),Kc(s,0,!0)!==0)break e;Al=t,s.timeoutHandle=F1(h1.bind(null,s,n,ln,qr,b0,t,yn,Xa,Is,la,u,"Throttled",-0,0),o);break e}h1(s,n,ln,qr,b0,t,yn,Xa,Is,la,u,null,-0,0)}}break}while(!0);nl(e)}function h1(e,t,n,s,o,u,p,x,w,L,G,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:pl},s1(t,u,Q);var ne=(u&62914560)===u?Hr-dn():(u&4194048)===u?o1-dn():0;if(ne=Cg(Q,ne),ne!==null){Al=u,e.cancelPendingCommit=ne(b1.bind(null,e,t,u,n,s,o,p,x,w,G,Q,null,B,U)),ca(e,u,p,!L);return}}b1(e,t,u,n,s,o,p,x,w)}function Gv(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 o=n[s],u=o.getSnapshot;o=o.value;try{if(!mn(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ca(e,t,n,s){t&=~x0,t&=~Xa,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var u=31-hn(o),p=1<<u;s[u]=-1,o&=~p}n!==0&&j2(e,n,t)}function Gr(){return($e&6)===0?(fc(0),!1):!0}function w0(){if(Re!==null){if(Ge===0)var e=Re.return;else e=Re,yl=Ua=null,qu(e),$s=null,Ii=0,e=Re;for(;e!==null;)Vh(e.alternate,e),e=e.return;Re=null}}function Ps(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,rg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Al=0,w0(),Ze=e,Re=n=vl(e.current,null),Oe=t,Ge=0,gn=null,la=!1,Xs=Mi(e,t),y0=!1,Is=yn=x0=Xa=aa=ot=0,ln=uc=null,b0=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-hn(s),u=1<<o;t|=e[o],s&=~u}return Rl=t,or(),n}function m1(e,t){ye=null,$.H=nc,t===Hs||t===vr?(t=Af(),Ge=3):t===Ru?(t=Af(),Ge=4):Ge=t===l0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,Re===null&&(ot=1,Mr(e,Mn(t,e.current)))}function p1(){var e=_n.current;return e===null?!0:(Oe&4194048)===Oe?Ln===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===Ln:!1}function _1(){var e=$.H;return $.H=nc,e===null?nc:e}function v1(){var e=$.A;return $.A=$v,e}function Fr(){ot=4,la||(Oe&4194048)!==Oe&&_n.current!==null||(Xs=!0),(aa&134217727)===0&&(Xa&134217727)===0||Ze===null||ca(Ze,Oe,yn,!1)}function C0(e,t,n){var s=$e;$e|=2;var o=_1(),u=v1();(Ze!==e||Oe!==t)&&(qr=null,Ps(e,t)),t=!1;var p=ot;e:do try{if(Ge!==0&&Re!==null){var x=Re,w=gn;switch(Ge){case 8:w0(),p=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(t=!0);var L=Ge;if(Ge=0,gn=null,Ks(e,x,w,L),n&&Xs){p=0;break e}break;default:L=Ge,Ge=0,gn=null,Ks(e,x,w,L)}}Fv(),p=ot;break}catch(G){m1(e,G)}while(!0);return t&&e.shellSuspendCounter++,yl=Ua=null,$e=s,$.H=o,$.A=u,Re===null&&(Ze=null,Oe=0,or()),p}function Fv(){for(;Re!==null;)g1(Re)}function Vv(e,t){var n=$e;$e|=2;var s=_1(),o=v1();Ze!==e||Oe!==t?(qr=null,$r=dn()+500,Ps(e,t)):Xs=Mi(e,t);e:do try{if(Ge!==0&&Re!==null){t=Re;var u=gn;t:switch(Ge){case 1:Ge=0,gn=null,Ks(e,t,u,1);break;case 2:case 9:if(Tf(u)){Ge=0,gn=null,y1(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),nl(e)},u.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Tf(u)?(Ge=0,gn=null,y1(t)):(Ge=0,gn=null,Ks(e,t,u,7));break;case 5:var p=null;switch(Re.tag){case 26:p=Re.memoizedState;case 5:case 27:var x=Re;if(p?am(p):x.stateNode.complete){Ge=0,gn=null;var w=x.sibling;if(w!==null)Re=w;else{var L=x.return;L!==null?(Re=L,Vr(L)):Re=null}break t}}Ge=0,gn=null,Ks(e,t,u,5);break;case 6:Ge=0,gn=null,Ks(e,t,u,6);break;case 8:w0(),ot=6;break e;default:throw Error(r(462))}}Qv();break}catch(G){m1(e,G)}while(!0);return yl=Ua=null,$.H=s,$.A=o,$e=n,Re!==null?0:(Ze=null,Oe=0,or(),ot)}function Qv(){for(;Re!==null&&!m_();)g1(Re)}function g1(e){var t=Gh(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,t===null?Vr(e):Re=t}function y1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bh(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=Bh(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:qu(t);default:Vh(n,t),t=Re=vf(t,Rl),t=Gh(n,t,Rl)}e.memoizedProps=e.pendingProps,t===null?Vr(e):Re=t}function Ks(e,t,n,s){yl=Ua=null,qu(t),$s=null,Ii=0;var o=t.return;try{if(zv(e,o,t,n,Oe)){ot=1,Mr(e,Mn(n,e.current)),Re=null;return}}catch(u){if(o!==null)throw Re=o,u;ot=1,Mr(e,Mn(n,e.current)),Re=null;return}t.flags&32768?(Le||s===1?e=!0:Xs||(Oe&536870912)!==0?e=!1:(la=e=!0,(s===2||s===9||s===3||s===6)&&(s=_n.current,s!==null&&s.tag===13&&(s.flags|=16384))),x1(t,e)):Vr(t)}function Vr(e){var t=e;do{if((t.flags&32768)!==0){x1(t,la);return}e=t.return;var n=Bv(t.alternate,t,Rl);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);ot===0&&(ot=5)}function x1(e,t){do{var n=kv(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);ot=6,Re=null}function b1(e,t,n,s,o,u,p,x,w){e.cancelPendingCommit=null;do Qr();while(St!==0);if(($e&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=mu,N_(e,n,u,p,x,w),e===Ze&&(Re=Ze=null,Oe=0),Zs=t,ia=e,Al=n,j0=u,S0=o,u1=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zv(Xc,function(){return C1(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=$.T,$.T=null,o=X.p,X.p=2,p=$e,$e|=4;try{Uv(e,t,n)}finally{$e=p,X.p=o,$.T=s}}St=1,j1(),S1(),N1()}}function j1(){if(St===1){St=0;var e=ia,t=Zs,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=$.T,$.T=null;var s=X.p;X.p=2;var o=$e;$e|=4;try{n1(t,e);var u=U0,p=rf(e.containerInfo),x=u.focusedElem,w=u.selectionRange;if(p!==x&&x&&x.ownerDocument&&cf(x.ownerDocument.documentElement,x)){if(w!==null&&ou(x)){var L=w.start,G=w.end;if(G===void 0&&(G=L),"selectionStart"in x)x.selectionStart=L,x.selectionEnd=Math.min(G,x.value.length);else{var Q=x.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var U=B.getSelection(),ne=x.textContent.length,fe=Math.min(w.start,ne),Xe=w.end===void 0?fe:Math.min(w.end,ne);!U.extend&&fe>Xe&&(p=Xe,Xe=fe,fe=p);var M=sf(x,fe),A=sf(x,Xe);if(M&&A&&(U.rangeCount!==1||U.anchorNode!==M.node||U.anchorOffset!==M.offset||U.focusNode!==A.node||U.focusOffset!==A.offset)){var D=Q.createRange();D.setStart(M.node,M.offset),U.removeAllRanges(),fe>Xe?(U.addRange(D),U.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),U.addRange(D))}}}}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 F=Q[x];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}lo=!!k0,U0=k0=null}finally{$e=o,X.p=s,$.T=n}}e.current=t,St=2}}function S1(){if(St===2){St=0;var e=ia,t=Zs,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=$.T,$.T=null;var s=X.p;X.p=2;var o=$e;$e|=4;try{Kh(e,t.alternate,t)}finally{$e=o,X.p=s,$.T=n}}St=3}}function N1(){if(St===4||St===3){St=0,p_();var e=ia,t=Zs,n=Al,s=u1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Zs=ia=null,w1(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(sa=null),Vo(n),t=t.stateNode,fn&&typeof fn.onCommitFiberRoot=="function")try{fn.onCommitFiberRoot(Ai,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=$.T,o=X.p,X.p=2,$.T=null;try{for(var u=e.onRecoverableError,p=0;p<s.length;p++){var x=s[p];u(x.value,{componentStack:x.stack})}}finally{$.T=t,X.p=o}}(Al&3)!==0&&Qr(),nl(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===N0?dc++:(dc=0,N0=e):dc=0,fc(0)}}function w1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yi(t)))}function Qr(){return j1(),S1(),N1(),C1()}function C1(){if(St!==5)return!1;var e=ia,t=j0;j0=0;var n=Vo(Al),s=$.T,o=X.p;try{X.p=32>n?32:n,$.T=null,n=S0,S0=null;var u=ia,p=Al;if(St=0,Zs=ia=null,Al=0,($e&6)!==0)throw Error(r(331));var x=$e;if($e|=4,c1(u.current),a1(u,u.current,p,n),$e=x,fc(0,!1),fn&&typeof fn.onPostCommitFiberRoot=="function")try{fn.onPostCommitFiberRoot(Ai,u)}catch{}return!0}finally{X.p=o,$.T=s,w1(e,t)}}function E1(e,t,n){t=Mn(n,t),t=n0(e.stateNode,t,2),e=Jl(e,t,2),e!==null&&(Oi(e,2),nl(e))}function Fe(e,t,n){if(e.tag===3)E1(e,e,n);else for(;t!==null;){if(t.tag===3){E1(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(sa===null||!sa.has(s))){e=Mn(n,e),n=Th(2),s=Jl(t,n,2),s!==null&&(Rh(n,s,t,e),Oi(s,2),nl(s));break}}t=t.return}}function E0(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new qv;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(y0=!0,o.add(n),e=Yv.bind(null,e,t,n),t.then(e,e))}function Yv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(Oe&n)===n&&(ot===4||ot===3&&(Oe&62914560)===Oe&&300>dn()-Hr?($e&2)===0&&Ps(e,0):x0|=n,Is===Oe&&(Is=0)),nl(e)}function T1(e,t){t===0&&(t=b2()),e=La(e,t),e!==null&&(Oi(e,t),nl(e))}function Xv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T1(e,n)}function Iv(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.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),T1(e,n)}function Zv(e,t){return gs(e,t)}var Yr=null,Ws=null,T0=!1,Xr=!1,R0=!1,ra=0;function nl(e){e!==Ws&&e.next===null&&(Ws===null?Yr=Ws=e:Ws=Ws.next=e),Xr=!0,T0||(T0=!0,Kv())}function fc(e,t){if(!R0&&Xr){R0=!0;do for(var n=!1,s=Yr;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var p=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-hn(42|e)+1)-1,u&=o&~(p&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,O1(s,u))}else u=Oe,u=Kc(s,s===Ze?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Mi(s,u)||(n=!0,O1(s,u));s=s.next}while(n);R0=!1}}function Pv(){R1()}function R1(){Xr=T0=!1;var e=0;ra!==0&&cg()&&(e=ra);for(var t=dn(),n=null,s=Yr;s!==null;){var o=s.next,u=A1(s,t);u===0?(s.next=null,n===null?Yr=o:n.next=o,o===null&&(Ws=n)):(n=s,(e!==0||(u&3)!==0)&&(Xr=!0)),s=o}St!==0&&St!==5||fc(e),ra!==0&&(ra=0)}function A1(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-hn(u),x=1<<p,w=o[p];w===-1?((x&n)===0||(x&s)!==0)&&(o[p]=S_(x,t)):w<=t&&(e.expiredLanes|=x),u&=~x}if(t=Ze,n=Oe,n=Kc(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&&qo(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Mi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&qo(s),Vo(n)){case 2:case 8:n=y2;break;case 32:n=Xc;break;case 268435456:n=x2;break;default:n=Xc}return s=M1.bind(null,e),n=gs(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&qo(s),e.callbackPriority=2,e.callbackNode=null,2}function M1(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Qr()&&e.callbackNode!==n)return null;var s=Oe;return s=Kc(e,e===Ze?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(f1(e,s,t),A1(e,dn()),e.callbackNode!=null&&e.callbackNode===n?M1.bind(null,e):null)}function O1(e,t){if(Qr())return null;f1(e,t,!0)}function Kv(){og(function(){($e&6)!==0?gs(g2,Pv):R1()})}function A0(){if(ra===0){var e=ks;e===0&&(e=Ic,Ic<<=1,(Ic&261888)===0&&(Ic=256)),ra=e}return ra}function z1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tr(""+e)}function D1(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 Wv(e,t,n,s,o){if(t==="submit"&&n&&n.stateNode===o){var u=z1((o[Wt]||null).action),p=s.submitter;p&&(t=(t=p[Wt]||null)?z1(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var x=new sr("action","action",null,s,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ra!==0){var w=p?D1(o,p):new FormData(o);Pu(n,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(x.preventDefault(),w=p?D1(o,p):new FormData(o),Pu(n,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var M0=0;M0<hu.length;M0++){var O0=hu[M0],Jv=O0.toLowerCase(),eg=O0[0].toUpperCase()+O0.slice(1);Gn(Jv,"on"+eg)}Gn(df,"onAnimationEnd"),Gn(ff,"onAnimationIteration"),Gn(hf,"onAnimationStart"),Gn("dblclick","onDoubleClick"),Gn("focusin","onFocus"),Gn("focusout","onBlur"),Gn(_v,"onTransitionRun"),Gn(vv,"onTransitionStart"),Gn(gv,"onTransitionCancel"),Gn(mf,"onTransitionEnd"),Ss("onMouseEnter",["mouseout","mouseover"]),Ss("onMouseLeave",["mouseout","mouseover"]),Ss("onPointerEnter",["pointerout","pointerover"]),Ss("onPointerLeave",["pointerout","pointerover"]),Ma("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ma("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ma("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ma("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ma("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hc="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(" "),tg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hc));function L1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var p=s.length-1;0<=p;p--){var x=s[p],w=x.instance,L=x.currentTarget;if(x=x.listener,w!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=L;try{u(o)}catch(G){rr(G)}o.currentTarget=null,u=w}else for(p=0;p<s.length;p++){if(x=s[p],w=x.instance,L=x.currentTarget,x=x.listener,w!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=L;try{u(o)}catch(G){rr(G)}o.currentTarget=null,u=w}}}}function Ae(e,t){var n=t[Qo];n===void 0&&(n=t[Qo]=new Set);var s=e+"__bubble";n.has(s)||(B1(t,e,2,!1),n.add(s))}function z0(e,t,n){var s=0;t&&(s|=4),B1(n,e,s,t)}var Ir="_reactListening"+Math.random().toString(36).slice(2);function D0(e){if(!e[Ir]){e[Ir]=!0,T2.forEach(function(n){n!=="selectionchange"&&(tg.has(n)||z0(n,!1,e),z0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ir]||(t[Ir]=!0,z0("selectionchange",!1,t))}}function B1(e,t,n,s){switch(dm(t)){case 2:var o=Rg;break;case 8:o=Ag;break;default:o=Z0}n=o.bind(null,t,n,e),o=void 0,!eu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function L0(e,t,n,s,o){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var x=s.stateNode.containerInfo;if(x===o)break;if(p===4)for(p=s.return;p!==null;){var w=p.tag;if((w===3||w===4)&&p.stateNode.containerInfo===o)return;p=p.return}for(;x!==null;){if(p=xs(x),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){s=u=p;continue e}x=x.parentNode}}s=s.return}$2(function(){var L=u,G=Wo(n),Q=[];e:{var B=pf.get(e);if(B!==void 0){var U=sr,ne=e;switch(e){case"keypress":if(lr(n)===0)break e;case"keydown":case"keyup":U=I_;break;case"focusin":ne="focus",U=au;break;case"focusout":ne="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=F2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=B_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=K_;break;case df:case ff:case hf:U=H_;break;case mf:U=J_;break;case"scroll":case"scrollend":U=D_;break;case"wheel":U=tv;break;case"copy":case"cut":case"paste":U=q_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Q2;break;case"toggle":case"beforetoggle":U=lv}var fe=(t&4)!==0,Xe=!fe&&(e==="scroll"||e==="scrollend"),M=fe?B!==null?B+"Capture":null:B;fe=[];for(var A=L,D;A!==null;){var F=A;if(D=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||D===null||M===null||(F=Li(A,M),F!=null&&fe.push(mc(A,F,D))),Xe)break;A=A.return}0<fe.length&&(B=new U(B,ne,null,n,G),Q.push({event:B,listeners:fe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",B&&n!==Ko&&(ne=n.relatedTarget||n.fromElement)&&(xs(ne)||ne[ys]))break e;if((U||B)&&(B=G.window===G?G:(B=G.ownerDocument)?B.defaultView||B.parentWindow:window,U?(ne=n.relatedTarget||n.toElement,U=L,ne=ne?xs(ne):null,ne!==null&&(Xe=f(ne),fe=ne.tag,ne!==Xe||fe!==5&&fe!==27&&fe!==6)&&(ne=null)):(U=null,ne=L),U!==ne)){if(fe=F2,F="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=Q2,F="onPointerLeave",M="onPointerEnter",A="pointer"),Xe=U==null?B:Di(U),D=ne==null?B:Di(ne),B=new fe(F,A+"leave",U,n,G),B.target=Xe,B.relatedTarget=D,F=null,xs(G)===L&&(fe=new fe(M,A+"enter",ne,n,G),fe.target=D,fe.relatedTarget=Xe,F=fe),Xe=F,U&&ne)t:{for(fe=ng,M=U,A=ne,D=0,F=M;F;F=fe(F))D++;F=0;for(var ce=A;ce;ce=fe(ce))F++;for(;0<D-F;)M=fe(M),D--;for(;0<F-D;)A=fe(A),F--;for(;D--;){if(M===A||A!==null&&M===A.alternate){fe=M;break t}M=fe(M),A=fe(A)}fe=null}else fe=null;U!==null&&k1(Q,B,U,fe,!1),ne!==null&&Xe!==null&&k1(Q,Xe,ne,fe,!0)}}e:{if(B=L?Di(L):window,U=B.nodeName&&B.nodeName.toLowerCase(),U==="select"||U==="input"&&B.type==="file")var Ue=J2;else if(K2(B))if(ef)Ue=hv;else{Ue=dv;var le=uv}else U=B.nodeName,!U||U.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&Po(L.elementType)&&(Ue=J2):Ue=fv;if(Ue&&(Ue=Ue(e,L))){W2(Q,Ue,n,G);break e}le&&le(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&Zo(B,"number",B.value)}switch(le=L?Di(L):window,e){case"focusin":(K2(le)||le.contentEditable==="true")&&(Rs=le,uu=L,Fi=null);break;case"focusout":Fi=uu=Rs=null;break;case"mousedown":du=!0;break;case"contextmenu":case"mouseup":case"dragend":du=!1,of(Q,n,G);break;case"selectionchange":if(pv)break;case"keydown":case"keyup":of(Q,n,G)}var be;if(iu)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Ts?Z2(e,n)&&(ze="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ze="onCompositionStart");ze&&(Y2&&n.locale!=="ko"&&(Ts||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Ts&&(be=q2()):(Yl=G,tu="value"in Yl?Yl.value:Yl.textContent,Ts=!0)),le=Zr(L,ze),0<le.length&&(ze=new V2(ze,e,null,n,G),Q.push({event:ze,listeners:le}),be?ze.data=be:(be=P2(n),be!==null&&(ze.data=be)))),(be=sv?iv(e,n):cv(e,n))&&(ze=Zr(L,"onBeforeInput"),0<ze.length&&(le=new V2("onBeforeInput","beforeinput",null,n,G),Q.push({event:le,listeners:ze}),le.data=be)),Wv(Q,e,L,n,G)}L1(Q,t)})}function mc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zr(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Li(e,n),o!=null&&s.unshift(mc(e,o,u)),o=Li(e,t),o!=null&&s.push(mc(e,o,u))),e.tag===3)return s;e=e.return}return[]}function ng(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function k1(e,t,n,s,o){for(var u=t._reactName,p=[];n!==null&&n!==s;){var x=n,w=x.alternate,L=x.stateNode;if(x=x.tag,w!==null&&w===s)break;x!==5&&x!==26&&x!==27||L===null||(w=L,o?(L=Li(n,u),L!=null&&p.unshift(mc(n,L,w))):o||(L=Li(n,u),L!=null&&p.push(mc(n,L,w)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var lg=/\r\n?/g,ag=/\u0000|\uFFFD/g;function U1(e){return(typeof e=="string"?e:""+e).replace(lg,`
`).replace(ag,"")}function H1(e,t){return t=U1(t),U1(e)===t}function Ye(e,t,n,s,o,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||ws(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&ws(e,""+s);break;case"className":Jc(e,"class",s);break;case"tabIndex":Jc(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Jc(e,n,s);break;case"style":U2(e,s,u);break;case"data":if(t!=="object"){Jc(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=tr(""+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"&&Ye(e,t,"name",o.name,o,null),Ye(e,t,"formEncType",o.formEncType,o,null),Ye(e,t,"formMethod",o.formMethod,o,null),Ye(e,t,"formTarget",o.formTarget,o,null)):(Ye(e,t,"encType",o.encType,o,null),Ye(e,t,"method",o.method,o,null),Ye(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=tr(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=pl);break;case"onScroll":s!=null&&Ae("scroll",e);break;case"onScrollEnd":s!=null&&Ae("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(o.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=tr(""+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":Ae("beforetoggle",e),Ae("toggle",e),Wc(e,"popover",s);break;case"xlinkActuate":ml(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":ml(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":ml(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":ml(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":ml(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":ml(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":ml(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":ml(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":ml(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Wc(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=O_.get(n)||n,Wc(e,n,s))}}function B0(e,t,n,s,o,u){switch(n){case"style":U2(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(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?ws(e,s):(typeof s=="number"||typeof s=="bigint")&&ws(e,""+s);break;case"onScroll":s!=null&&Ae("scroll",e);break;case"onScrollEnd":s!=null&&Ae("scrollend",e);break;case"onClick":s!=null&&(e.onclick=pl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!R2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[Wt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,o);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):Wc(e,n,s)}}}function kt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var s=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var p=n[u];if(p!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ye(e,t,u,p,n,null)}}o&&Ye(e,t,"srcSet",n.srcSet,n,null),s&&Ye(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var x=u=p=o=null,w=null,L=null;for(s in n)if(n.hasOwnProperty(s)){var G=n[s];if(G!=null)switch(s){case"name":o=G;break;case"type":p=G;break;case"checked":w=G;break;case"defaultChecked":L=G;break;case"value":u=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:Ye(e,t,s,G,n,null)}}D2(e,u,x,w,L,p,o,!1);return;case"select":Ae("invalid",e),s=p=u=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":u=x;break;case"defaultValue":p=x;break;case"multiple":s=x;default:Ye(e,t,o,x,n,null)}t=u,n=p,e.multiple=!!s,t!=null?Ns(e,!!s,t,!1):n!=null&&Ns(e,!!s,n,!0);return;case"textarea":Ae("invalid",e),u=o=s=null;for(p in n)if(n.hasOwnProperty(p)&&(x=n[p],x!=null))switch(p){case"value":s=x;break;case"defaultValue":o=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ye(e,t,p,x,n,null)}B2(e,s,o,u);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(s=n[w],s!=null))switch(w){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ye(e,t,w,s,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(s=0;s<hc.length;s++)Ae(hc[s],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("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(L in n)if(n.hasOwnProperty(L)&&(s=n[L],s!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ye(e,t,L,s,n,null)}return;default:if(Po(t)){for(G in n)n.hasOwnProperty(G)&&(s=n[G],s!==void 0&&B0(e,t,G,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Ye(e,t,x,s,n,null))}function sg(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 o=null,u=null,p=null,x=null,w=null,L=null,G=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":w=Q;default:s.hasOwnProperty(U)||Ye(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":o=U;break;case"checked":L=U;break;case"defaultChecked":G=U;break;case"value":p=U;break;case"defaultValue":x=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Q&&Ye(e,t,B,U,s,Q)}}Io(e,p,x,w,L,G,u,o);return;case"select":U=p=x=B=null;for(u in n)if(w=n[u],n.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":U=w;default:s.hasOwnProperty(u)||Ye(e,t,u,null,s,w)}for(o in s)if(u=s[o],w=n[o],s.hasOwnProperty(o)&&(u!=null||w!=null))switch(o){case"value":B=u;break;case"defaultValue":x=u;break;case"multiple":p=u;default:u!==w&&Ye(e,t,o,u,s,w)}t=x,n=p,s=U,B!=null?Ns(e,!!n,B,!1):!!s!=!!n&&(t!=null?Ns(e,!!n,t,!0):Ns(e,!!n,n?[]:"",!1));return;case"textarea":U=B=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ye(e,t,x,null,s,o)}for(p in s)if(o=s[p],u=n[p],s.hasOwnProperty(p)&&(o!=null||u!=null))switch(p){case"value":B=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Ye(e,t,p,o,s,u)}L2(e,B,U);return;case"option":for(var ne in n)if(B=n[ne],n.hasOwnProperty(ne)&&B!=null&&!s.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ye(e,t,ne,null,s,B)}for(w in s)if(B=s[w],U=n[w],s.hasOwnProperty(w)&&B!==U&&(B!=null||U!=null))switch(w){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ye(e,t,w,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 fe in n)B=n[fe],n.hasOwnProperty(fe)&&B!=null&&!s.hasOwnProperty(fe)&&Ye(e,t,fe,null,s,B);for(L in s)if(B=s[L],U=n[L],s.hasOwnProperty(L)&&B!==U&&(B!=null||U!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:Ye(e,t,L,B,s,U)}return;default:if(Po(t)){for(var Xe in n)B=n[Xe],n.hasOwnProperty(Xe)&&B!==void 0&&!s.hasOwnProperty(Xe)&&B0(e,t,Xe,void 0,s,B);for(G in s)B=s[G],U=n[G],!s.hasOwnProperty(G)||B===U||B===void 0&&U===void 0||B0(e,t,G,B,s,U);return}}for(var M in n)B=n[M],n.hasOwnProperty(M)&&B!=null&&!s.hasOwnProperty(M)&&Ye(e,t,M,null,s,B);for(Q in s)B=s[Q],U=n[Q],!s.hasOwnProperty(Q)||B===U||B==null&&U==null||Ye(e,t,Q,B,s,U)}function $1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ig(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var o=n[s],u=o.transferSize,p=o.initiatorType,x=o.duration;if(u&&x&&$1(p)){for(p=0,x=o.responseEnd,s+=1;s<n.length;s++){var w=n[s],L=w.startTime;if(L>x)break;var G=w.transferSize,Q=w.initiatorType;G&&$1(Q)&&(w=w.responseEnd,p+=G*(w<x?1:(x-L)/(w-L)))}if(--s,t+=8*(u+p)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var k0=null,U0=null;function Pr(e){return e.nodeType===9?e:e.ownerDocument}function q1(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 G1(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 H0(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 $0=null;function cg(){var e=window.event;return e&&e.type==="popstate"?e===$0?!1:($0=e,!0):($0=null,!1)}var F1=typeof setTimeout=="function"?setTimeout:void 0,rg=typeof clearTimeout=="function"?clearTimeout:void 0,V1=typeof Promise=="function"?Promise:void 0,og=typeof queueMicrotask=="function"?queueMicrotask:typeof V1<"u"?function(e){return V1.resolve(null).then(e).catch(ug)}:F1;function ug(e){setTimeout(function(){throw e})}function oa(e){return e==="head"}function Q1(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(o),ni(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")pc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,pc(n);for(var u=n.firstChild;u;){var p=u.nextSibling,x=u.nodeName;u[zi]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=p}}else n==="body"&&pc(e.ownerDocument.body);n=o}while(n);ni(t)}function Y1(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 q0(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":q0(n),Yo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function dg(e,t,n,s){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Bn(e.nextSibling),e===null)break}return null}function fg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Bn(e.nextSibling),e===null))return null;return e}function X1(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bn(e.nextSibling),e===null))return null;return e}function G0(e){return e.data==="$?"||e.data==="$~"}function F0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hg(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 Bn(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 V0=null;function I1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Bn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Z1(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 P1(e,t,n){switch(t=Pr(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 pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yo(e)}var kn=new Map,K1=new Set;function Kr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ml=X.d;X.d={f:mg,r:pg,D:_g,C:vg,L:gg,m:yg,X:bg,S:xg,M:jg};function mg(){var e=Ml.f(),t=Gr();return e||t}function pg(e){var t=bs(e);t!==null&&t.tag===5&&t.type==="form"?mh(t):Ml.r(e)}var Js=typeof document>"u"?null:document;function W1(e,t,n){var s=Js;if(s&&typeof t=="string"&&t){var o=Rn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),K1.has(o)||(K1.add(o),e={rel:e,crossOrigin:n,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),kt(t,"link",e),Ct(t),s.head.appendChild(t)))}}function _g(e){Ml.D(e),W1("dns-prefetch",e,null)}function vg(e,t){Ml.C(e,t),W1("preconnect",e,t)}function gg(e,t,n){Ml.L(e,t,n);var s=Js;if(s&&e&&t){var o='link[rel="preload"][as="'+Rn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Rn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Rn(n.imageSizes)+'"]')):o+='[href="'+Rn(e)+'"]';var u=o;switch(t){case"style":u=ei(e);break;case"script":u=ti(e)}kn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),kn.set(u,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(_c(u))||t==="script"&&s.querySelector(vc(u))||(t=s.createElement("link"),kt(t,"link",e),Ct(t),s.head.appendChild(t)))}}function yg(e,t){Ml.m(e,t);var n=Js;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Rn(s)+'"][href="'+Rn(e)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ti(e)}if(!kn.has(u)&&(e=y({rel:"modulepreload",href:e},t),kn.set(u,e),n.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(vc(u)))return}s=n.createElement("link"),kt(s,"link",e),Ct(s),n.head.appendChild(s)}}}function xg(e,t,n){Ml.S(e,t,n);var s=Js;if(s&&e){var o=js(s).hoistableStyles,u=ei(e);t=t||"default";var p=o.get(u);if(!p){var x={loading:0,preload:null};if(p=s.querySelector(_c(u)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kn.get(u))&&Q0(e,n);var w=p=s.createElement("link");Ct(w),kt(w,"link",e),w._p=new Promise(function(L,G){w.onload=L,w.onerror=G}),w.addEventListener("load",function(){x.loading|=1}),w.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Wr(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:x},o.set(u,p)}}}function bg(e,t){Ml.X(e,t);var n=Js;if(n&&e){var s=js(n).hoistableScripts,o=ti(e),u=s.get(o);u||(u=n.querySelector(vc(o)),u||(e=y({src:e,async:!0},t),(t=kn.get(o))&&Y0(e,t),u=n.createElement("script"),Ct(u),kt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function jg(e,t){Ml.M(e,t);var n=Js;if(n&&e){var s=js(n).hoistableScripts,o=ti(e),u=s.get(o);u||(u=n.querySelector(vc(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=kn.get(o))&&Y0(e,t),u=n.createElement("script"),Ct(u),kt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function J1(e,t,n,s){var o=(o=xe.current)?Kr(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ei(n.href),n=js(o).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=ei(n.href);var u=js(o).hoistableStyles,p=u.get(e);if(p||(o=o.ownerDocument||o,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,p),(u=o.querySelector(_c(e)))&&!u._p&&(p.instance=u,p.state.loading=5),kn.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},kn.set(e,n),u||Sg(o,e,n,p.state))),t&&s===null)throw Error(r(528,""));return p}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=ti(n),n=js(o).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 ei(e){return'href="'+Rn(e)+'"'}function _c(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Sg(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}),kt(t,"link",n),Ct(t),e.head.appendChild(t))}function ti(e){return'[src="'+Rn(e)+'"]'}function vc(e){return"script[async]"+e}function tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Rn(n.href)+'"]');if(s)return t.instance=s,Ct(s),s;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Ct(s),kt(s,"style",o),Wr(s,n.precedence,e),t.instance=s;case"stylesheet":o=ei(n.href);var u=e.querySelector(_c(o));if(u)return t.state.loading|=4,t.instance=u,Ct(u),u;s=em(n),(o=kn.get(o))&&Q0(s,o),u=(e.ownerDocument||e).createElement("link"),Ct(u);var p=u;return p._p=new Promise(function(x,w){p.onload=x,p.onerror=w}),kt(u,"link",s),t.state.loading|=4,Wr(u,n.precedence,e),t.instance=u;case"script":return u=ti(n.src),(o=e.querySelector(vc(u)))?(t.instance=o,Ct(o),o):(s=n,(o=kn.get(u))&&(s=y({},n),Y0(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),Ct(o),kt(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,Wr(s,n.precedence,e));return t.instance}function Wr(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,p=0;p<s.length;p++){var x=s[p];if(x.dataset.precedence===t)u=x;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Q0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Y0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Jr=null;function nm(e,t,n){if(Jr===null){var s=new Map,o=Jr=new Map;o.set(n,s)}else o=Jr,s=o.get(n),s||(s=new Map,o.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[zi]||u[zt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var x=s.get(p);x?x.push(u):s.set(p,[u])}}return s}function lm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Ng(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 am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wg(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 o=ei(s.href),u=t.querySelector(_c(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=eo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Ct(u);return}u=t.ownerDocument||t,s=em(s),(o=kn.get(o))&&Q0(s,o),u=u.createElement("link"),Ct(u);var p=u;p._p=new Promise(function(x,w){p.onload=x,p.onerror=w}),kt(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=eo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var X0=0;function Cg(e,t){return e.stylesheets&&e.count===0&&no(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&no(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&X0===0&&(X0=62500*ig());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&no(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>X0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function eo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)no(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var to=null;function no(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,to=new Map,t.forEach(Eg,e),to=null,eo.call(e))}function Eg(e,t){if(!(t.state.loading&4)){var n=to.get(e);if(n)var s=n.get(null);else{n=new Map,to.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var p=o[u];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),s=p)}s&&n.set(null,s)}o=t.instance,p=o.getAttribute("data-precedence"),u=n.get(p)||s,u===s&&n.set(null,o),n.set(p,o),this.count++,s=eo.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var gc={$$typeof:O,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Tg(e,t,n,s,o,u,p,x,w){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=Go(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Go(0),this.hiddenUpdates=Go(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function sm(e,t,n,s,o,u,p,x,w,L,G,Q){return e=new Tg(e,t,n,p,w,L,G,Q,x),t=1,u===!0&&(t|=24),u=pn(3,null,null,t),e.current=u,u.stateNode=e,t=Cu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},Au(u),e}function im(e){return e?(e=Os,e):Os}function cm(e,t,n,s,o,u){o=im(o),s.context===null?s.context=o:s.pendingContext=o,s=Wl(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Jl(e,s,t),n!==null&&(an(n,e,t),Pi(n,e,t))}function rm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function I0(e,t){rm(e,t),(e=e.alternate)&&rm(e,t)}function om(e){if(e.tag===13||e.tag===31){var t=La(e,67108864);t!==null&&an(t,e,67108864),I0(e,67108864)}}function um(e){if(e.tag===13||e.tag===31){var t=xn();t=Fo(t);var n=La(e,t);n!==null&&an(n,e,t),I0(e,t)}}var lo=!0;function Rg(e,t,n,s){var o=$.T;$.T=null;var u=X.p;try{X.p=2,Z0(e,t,n,s)}finally{X.p=u,$.T=o}}function Ag(e,t,n,s){var o=$.T;$.T=null;var u=X.p;try{X.p=8,Z0(e,t,n,s)}finally{X.p=u,$.T=o}}function Z0(e,t,n,s){if(lo){var o=P0(s);if(o===null)L0(e,t,s,ao,n),fm(e,s);else if(Og(o,e,t,n,s))s.stopPropagation();else if(fm(e,s),t&4&&-1<Mg.indexOf(e)){for(;o!==null;){var u=bs(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=Aa(u.pendingLanes);if(p!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;p;){var w=1<<31-hn(p);x.entanglements[1]|=w,p&=~w}nl(u),($e&6)===0&&($r=dn()+500,fc(0))}}break;case 31:case 13:x=La(u,2),x!==null&&an(x,u,2),Gr(),I0(u,2)}if(u=P0(s),u===null&&L0(e,t,s,ao,n),u===o)break;o=u}o!==null&&s.stopPropagation()}else L0(e,t,s,null,n)}}function P0(e){return e=Wo(e),K0(e)}var ao=null;function K0(e){if(ao=null,e=xs(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=_(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 ao=e,null}function dm(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(__()){case g2:return 2;case y2:return 8;case Xc:case v_:return 32;case x2:return 268435456;default:return 32}default:return 32}}var W0=!1,ua=null,da=null,fa=null,yc=new Map,xc=new Map,ha=[],Mg="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 fm(e,t){switch(e){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":fa=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function bc(e,t,n,s,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},t!==null&&(t=bs(t),t!==null&&om(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Og(e,t,n,s,o){switch(t){case"focusin":return ua=bc(ua,e,t,n,s,o),!0;case"dragenter":return da=bc(da,e,t,n,s,o),!0;case"mouseover":return fa=bc(fa,e,t,n,s,o),!0;case"pointerover":var u=o.pointerId;return yc.set(u,bc(yc.get(u)||null,e,t,n,s,o)),!0;case"gotpointercapture":return u=o.pointerId,xc.set(u,bc(xc.get(u)||null,e,t,n,s,o)),!0}return!1}function hm(e){var t=xs(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=_(n),t!==null){e.blockedOn=t,C2(e.priority,function(){um(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,C2(e.priority,function(){um(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function so(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=P0(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);Ko=s,n.target.dispatchEvent(s),Ko=null}else return t=bs(n),t!==null&&om(t),e.blockedOn=n,!1;t.shift()}return!0}function mm(e,t,n){so(e)&&n.delete(t)}function zg(){W0=!1,ua!==null&&so(ua)&&(ua=null),da!==null&&so(da)&&(da=null),fa!==null&&so(fa)&&(fa=null),yc.forEach(mm),xc.forEach(mm)}function io(e,t){e.blockedOn===t&&(e.blockedOn=null,W0||(W0=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,zg)))}var co=null;function pm(e){co!==e&&(co=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){co===e&&(co=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(K0(s||n)===null)continue;break}var u=bs(n);u!==null&&(e.splice(t,3),t-=3,Pu(u,{pending:!0,data:o,method:n.method,action:s},s,o))}}))}function ni(e){function t(w){return io(w,e)}ua!==null&&io(ua,e),da!==null&&io(da,e),fa!==null&&io(fa,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<ha.length;n++){var s=ha[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)hm(n),n.blockedOn===null&&ha.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var o=n[s],u=n[s+1],p=o[Wt]||null;if(typeof u=="function")p||pm(n);else if(p){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,p=u[Wt]||null)x=p.formAction;else if(K0(o)!==null)continue}else x=p.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),pm(n)}}}function _m(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(p){return o=p})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=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,o=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),o!==null&&(o(),o=null)}}}function J0(e){this._internalRoot=e}ro.prototype.render=J0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=xn();cm(n,s,e,t,null,null)},ro.prototype.unmount=J0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cm(e.current,2,null,e,null,null),Gr(),t[ys]=null}};function ro(e){this._internalRoot=e}ro.prototype.unstable_scheduleHydration=function(e){if(e){var t=w2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&hm(e)}};var vm=c.version;if(vm!=="19.2.5")throw Error(r(527,vm,"19.2.5"));X.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=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Dg={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oo.isDisabled&&oo.supportsFiber)try{Ai=oo.inject(Dg),fn=oo}catch{}}return Sc.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",o=Nh,u=wh,p=Ch;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError)),t=sm(e,1,!1,null,null,n,s,null,o,u,p,_m),e[ys]=t.current,D0(e),new J0(t)},Sc.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,o="",u=Nh,p=wh,x=Ch,w=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=sm(e,1,!0,t,n??null,s,o,w,u,p,x,_m),t.context=im(null),n=t.current,s=xn(),s=Fo(s),o=Wl(s),o.callback=null,Jl(n,o,s),n=s,t.current.lanes=n,Oi(t,n),nl(t),e[ys]=t.current,D0(e),new ro(t)},Sc.version="19.2.5",Sc}var Tm;function Vg(){if(Tm)return ld.exports;Tm=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(c){console.error(c)}}return a(),ld.exports=Fg(),ld.exports}var Qg=Vg();/**
* 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 Rm="popstate";function Am(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function Yg(a={}){function c(r,d){var m;let f=(m=d.state)==null?void 0:m.masked,{pathname:_,search:g,hash:h}=f||r.location;return Cd("",{pathname:_,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:Dc(d)}return Ig(c,i,null,a)}function st(a,c){if(a===!1||a===null||typeof a>"u")throw new Error(c)}function In(a,c){if(!a){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Xg(){return Math.random().toString(36).substring(2,10)}function Mm(a,c){return{usr:a.state,key:a.key,idx:c,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Cd(a,c,i=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof c=="string"?Ni(c):c,state:i,key:c&&c.key||r||Xg(),unstable_mask:d}}function Dc({pathname:a="/",search:c="",hash:i=""}){return c&&c!=="?"&&(a+=c.charAt(0)==="?"?c:"?"+c),i&&i!=="#"&&(a+=i.charAt(0)==="#"?i:"#"+i),a}function Ni(a){let c={};if(a){let i=a.indexOf("#");i>=0&&(c.hash=a.substring(i),a=a.substring(0,i));let r=a.indexOf("?");r>=0&&(c.search=a.substring(r),a=a.substring(0,r)),a&&(c.pathname=a)}return c}function Ig(a,c,i,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,_=d.history,g="POP",h=null,m=v();m==null&&(m=0,_.replaceState({..._.state,idx:m},""));function v(){return(_.state||{idx:null}).idx}function y(){g="POP";let T=v(),z=T==null?null:T-m;m=T,h&&h({action:g,location:E.location,delta:z})}function b(T,z){g="PUSH";let H=Am(T)?T:Cd(E.location,T,z);m=v()+1;let O=Mm(H,m),k=E.createHref(H.unstable_mask||H);try{_.pushState(O,"",k)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;d.location.assign(k)}f&&h&&h({action:g,location:E.location,delta:1})}function N(T,z){g="REPLACE";let H=Am(T)?T:Cd(E.location,T,z);m=v();let O=Mm(H,m),k=E.createHref(H.unstable_mask||H);_.replaceState(O,"",k),f&&h&&h({action:g,location:E.location,delta:0})}function S(T){return Zg(T)}let E={get action(){return g},get location(){return a(d,_)},listen(T){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(Rm,y),h=T,()=>{d.removeEventListener(Rm,y),h=null}},createHref(T){return c(d,T)},createURL:S,encodeLocation(T){let z=S(T);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:b,replace:N,go(T){return _.go(T)}};return E}function Zg(a,c=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),st(i,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Dc(a);return r=r.replace(/ $/,"%20"),!c&&r.startsWith("//")&&(r=i+r),new URL(r,i)}function Ip(a,c,i="/"){return Pg(a,c,i,!1)}function Pg(a,c,i,r){let d=typeof c=="string"?Ni(c):c,f=$l(d.pathname||"/",i);if(f==null)return null;let _=Zp(a);Kg(_);let g=null;for(let h=0;g==null&&h<_.length;++h){let m=ry(f);g=iy(_[h],m,r)}return g}function Zp(a,c=[],i=[],r="",d=!1){let f=(_,g,h=d,m)=>{let v={relativePath:m===void 0?_.path||"":m,caseSensitive:_.caseSensitive===!0,childrenIndex:g,route:_};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&h)return;st(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=Xn([r,v.relativePath]),b=i.concat(v);_.children&&_.children.length>0&&(st(_.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Zp(_.children,c,b,y,h)),!(_.path==null&&!_.index)&&c.push({path:y,score:ay(y,_.index),routesMeta:b})};return a.forEach((_,g)=>{var h;if(_.path===""||!((h=_.path)!=null&&h.includes("?")))f(_,g);else for(let m of Pp(_.path))f(_,g,!0,m)}),c}function Pp(a){let c=a.split("/");if(c.length===0)return[];let[i,...r]=c,d=i.endsWith("?"),f=i.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let _=Pp(r.join("/")),g=[];return g.push(..._.map(h=>h===""?f:[f,h].join("/"))),d&&g.push(..._),g.map(h=>a.startsWith("/")&&h===""?"/":h)}function Kg(a){a.sort((c,i)=>c.score!==i.score?i.score-c.score:sy(c.routesMeta.map(r=>r.childrenIndex),i.routesMeta.map(r=>r.childrenIndex)))}var Wg=/^:[\w-]+$/,Jg=3,ey=2,ty=1,ny=10,ly=-2,Om=a=>a==="*";function ay(a,c){let i=a.split("/"),r=i.length;return i.some(Om)&&(r+=ly),c&&(r+=ey),i.filter(d=>!Om(d)).reduce((d,f)=>d+(Wg.test(f)?Jg:f===""?ty:ny),r)}function sy(a,c){return a.length===c.length&&a.slice(0,-1).every((r,d)=>r===c[d])?a[a.length-1]-c[c.length-1]:0}function iy(a,c,i=!1){let{routesMeta:r}=a,d={},f="/",_=[];for(let g=0;g<r.length;++g){let h=r[g],m=g===r.length-1,v=f==="/"?c:c.slice(f.length)||"/",y=bo({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},v),b=h.route;if(!y&&m&&i&&!r[r.length-1].route.index&&(y=bo({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!y)return null;Object.assign(d,y.params),_.push({params:d,pathname:Xn([f,y.pathname]),pathnameBase:fy(Xn([f,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(f=Xn([f,y.pathnameBase]))}return _}function bo(a,c){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[i,r]=cy(a.path,a.caseSensitive,a.end),d=c.match(i);if(!d)return null;let f=d[0],_=f.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:y},b)=>{if(v==="*"){let S=g[b]||"";_=f.slice(0,f.length-S.length).replace(/(.)\/+$/,"$1")}const N=g[b];return y&&!N?m[v]=void 0:m[v]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:_,pattern:a}}function cy(a,c=!1,i=!0){In(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,(_,g,h,m,v)=>{if(r.push({paramName:g,isOptional:h!=null}),h){let y=v.charAt(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,c?void 0:"i"),r]}function ry(a){try{return a.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return In(!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 (${c}).`),a}}function $l(a,c){if(c==="/")return a;if(!a.toLowerCase().startsWith(c.toLowerCase()))return null;let i=c.endsWith("/")?c.length-1:c.length,r=a.charAt(i);return r&&r!=="/"?null:a.slice(i)||"/"}var oy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function uy(a,c="/"){let{pathname:i,search:r="",hash:d=""}=typeof a=="string"?Ni(a):a,f;return i?(i=Kp(i),i.startsWith("/")?f=zm(i.substring(1),"/"):f=zm(i,c)):f=c,{pathname:f,search:hy(r),hash:my(d)}}function zm(a,c){let i=jo(c).split("/");return a.split("/").forEach(d=>{d===".."?i.length>1&&i.pop():d!=="."&&i.push(d)}),i.length>1?i.join("/"):"/"}function cd(a,c,i,r){return`Cannot include a '${a}' character in a manually specified \`to.${c}\` 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 dy(a){return a.filter((c,i)=>i===0||c.route.path&&c.route.path.length>0)}function e2(a){let c=dy(a);return c.map((i,r)=>r===c.length-1?i.pathname:i.pathnameBase)}function Oo(a,c,i,r=!1){let d;typeof a=="string"?d=Ni(a):(d={...a},st(!d.pathname||!d.pathname.includes("?"),cd("?","pathname","search",d)),st(!d.pathname||!d.pathname.includes("#"),cd("#","pathname","hash",d)),st(!d.search||!d.search.includes("#"),cd("#","search","hash",d)));let f=a===""||d.pathname==="",_=f?"/":d.pathname,g;if(_==null)g=i;else{let y=c.length-1;if(!r&&_.startsWith("..")){let b=_.split("/");for(;b[0]==="..";)b.shift(),y-=1;d.pathname=b.join("/")}g=y>=0?c[y]:"/"}let h=uy(d,g),m=_&&_!=="/"&&_.endsWith("/"),v=(f||_===".")&&i.endsWith("/");return!h.pathname.endsWith("/")&&(m||v)&&(h.pathname+="/"),h}var Kp=a=>a.replace(/\/\/+/g,"/"),Xn=a=>Kp(a.join("/")),jo=a=>a.replace(/\/+$/,""),fy=a=>jo(a).replace(/^\/*/,"/"),hy=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,my=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,py=class{constructor(a,c,i,r=!1){this.status=a,this.statusText=c||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}};function _y(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function vy(a){let c=a.map(i=>i.route.path).filter(Boolean);return Xn(c)||"/"}var Wp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jp(a,c){let i=a;if(typeof i!="string"||!oy.test(i))return{absoluteURL:void 0,isExternal:!1,to:i};let r=i,d=!1;if(Wp)try{let f=new URL(window.location.href),_=i.startsWith("//")?new URL(f.protocol+i):new URL(i),g=$l(_.pathname,c);_.origin===f.origin&&g!=null?i=g+_.search+_.hash:d=!0}catch{In(!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 e3=["POST","PUT","PATCH","DELETE"];new Set(e3);var gy=["GET",...e3];new Set(gy);var wi=j.createContext(null);wi.displayName="DataRouter";var zo=j.createContext(null);zo.displayName="DataRouterState";var t3=j.createContext(!1);function yy(){return j.useContext(t3)}var n3=j.createContext({isTransitioning:!1});n3.displayName="ViewTransition";var xy=j.createContext(new Map);xy.displayName="Fetchers";var by=j.createContext(null);by.displayName="Await";var wn=j.createContext(null);wn.displayName="Navigation";var Gc=j.createContext(null);Gc.displayName="Location";var qn=j.createContext({outlet:null,matches:[],isDataRoute:!1});qn.displayName="Route";var t2=j.createContext(null);t2.displayName="RouteError";var l3="REACT_ROUTER_ERROR",jy="REDIRECT",Sy="ROUTE_ERROR_RESPONSE";function Ny(a){if(a.startsWith(`${l3}:${jy}:{`))try{let c=JSON.parse(a.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function wy(a){if(a.startsWith(`${l3}:${Sy}:{`))try{let c=JSON.parse(a.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new py(c.status,c.statusText,c.data)}catch{}}function Cy(a,{relative:c}={}){st(Ci(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:r}=j.useContext(wn),{hash:d,pathname:f,search:_}=Fc(a,{relative:c}),g=f;return i!=="/"&&(g=f==="/"?i:Xn([i,f])),r.createHref({pathname:g,search:_,hash:d})}function Ci(){return j.useContext(Gc)!=null}function Cn(){return st(Ci(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Gc).location}var a3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s3(a){j.useContext(wn).static||j.useLayoutEffect(a)}function En(){let{isDataRoute:a}=j.useContext(qn);return a?Gy():Ey()}function Ey(){st(Ci(),"useNavigate() may be used only in the context of a <Router> component.");let a=j.useContext(wi),{basename:c,navigator:i}=j.useContext(wn),{matches:r}=j.useContext(qn),{pathname:d}=Cn(),f=JSON.stringify(e2(r)),_=j.useRef(!1);return s3(()=>{_.current=!0}),j.useCallback((h,m={})=>{if(In(_.current,a3),!_.current)return;if(typeof h=="number"){i.go(h);return}let v=Oo(h,JSON.parse(f),d,m.relative==="path");a==null&&c!=="/"&&(v.pathname=v.pathname==="/"?c:Xn([c,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[c,i,f,d,a])}var Ty=j.createContext(null);function Ry(a){let c=j.useContext(qn).outlet;return j.useMemo(()=>c&&j.createElement(Ty.Provider,{value:a},c),[c,a])}function Ay(){let{matches:a}=j.useContext(qn),c=a[a.length-1];return(c==null?void 0:c.params)??{}}function Fc(a,{relative:c}={}){let{matches:i}=j.useContext(qn),{pathname:r}=Cn(),d=JSON.stringify(e2(i));return j.useMemo(()=>Oo(a,JSON.parse(d),r,c==="path"),[a,d,r,c])}function My(a,c){return i3(a,c)}function i3(a,c,i){var T;st(Ci(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(wn),{matches:d}=j.useContext(qn),f=d[d.length-1],_=f?f.params:{},g=f?f.pathname:"/",h=f?f.pathnameBase:"/",m=f&&f.route;{let z=m&&m.path||"";r3(g,!m||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let v=Cn(),y;if(c){let z=typeof c=="string"?Ni(c):c;st(h==="/"||((T=z.pathname)==null?void 0:T.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 "${z.pathname}" was given in the \`location\` prop.`),y=z}else y=v;let b=y.pathname||"/",N=b;if(h!=="/"){let z=h.replace(/^\//,"").split("/");N="/"+b.replace(/^\//,"").split("/").slice(z.length).join("/")}let S=Ip(a,{pathname:N});In(m||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),In(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=By(S&&S.map(z=>Object.assign({},z,{params:Object.assign({},_,z.params),pathname:Xn([h,r.encodeLocation?r.encodeLocation(z.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?h:Xn([h,r.encodeLocation?r.encodeLocation(z.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),d,i);return c&&E?j.createElement(Gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},E):E}function Oy(){let a=qy(),c=_y(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},_=null;return console.error("Error handled by React Router default ErrorBoundary:",a),_=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:f},"ErrorBoundary")," or"," ",j.createElement("code",{style:f},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},c),i?j.createElement("pre",{style:d},i):null,_)}var zy=j.createElement(Oy,null),c3=class extends j.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,c){return c.location!==a.location||c.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:c.error,location:c.location,revalidation:a.revalidation||c.revalidation}}componentDidCatch(a,c){this.props.onError?this.props.onError(a,c):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=wy(a.digest);i&&(a=i)}let c=a!==void 0?j.createElement(qn.Provider,{value:this.props.routeContext},j.createElement(t2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?j.createElement(Dy,{error:a},c):c}};c3.contextType=t3;var rd=new WeakMap;function Dy({children:a,error:c}){let{basename:i}=j.useContext(wn);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let r=Ny(c.digest);if(r){let d=rd.get(c);if(d)throw d;let f=Jp(r.location,i);if(Wp&&!rd.get(c))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const _=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw rd.set(c,_),_}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function Ly({routeContext:a,match:c,children:i}){let r=j.useContext(wi);return r&&r.static&&r.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=c.route.id),j.createElement(qn.Provider,{value:a},i)}function By(a,c=[],i){let r=i==null?void 0:i.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(c.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);st(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 _=!1,g=-1;if(i&&r){_=r.renderFallback;for(let v=0;v<d.length;v++){let y=d[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=v),y.route.id){let{loaderData:b,errors:N}=r,S=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||S){i.isStatic&&(_=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let h=i==null?void 0:i.onError,m=r&&h?(v,y)=>{var b,N;h(v,{location:r.location,params:((N=(b=r.matches)==null?void 0:b[0])==null?void 0:N.params)??{},unstable_pattern:vy(r.matches),errorInfo:y})}:void 0;return d.reduceRight((v,y,b)=>{let N,S=!1,E=null,T=null;r&&(N=f&&y.route.id?f[y.route.id]:void 0,E=y.route.errorElement||zy,_&&(g<0&&b===0?(r3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,T=null):g===b&&(S=!0,T=y.route.hydrateFallbackElement||null)));let z=c.concat(d.slice(0,b+1)),H=()=>{let O;return N?O=E:S?O=T:y.route.Component?O=j.createElement(y.route.Component,null):y.route.element?O=y.route.element:O=v,j.createElement(Ly,{match:y,routeContext:{outlet:v,matches:z,isDataRoute:r!=null},children:O})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?j.createElement(c3,{location:r.location,revalidation:r.revalidation,component:E,error:N,children:H(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:m}):H()},null)}function n2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ky(a){let c=j.useContext(wi);return st(c,n2(a)),c}function Uy(a){let c=j.useContext(zo);return st(c,n2(a)),c}function Hy(a){let c=j.useContext(qn);return st(c,n2(a)),c}function l2(a){let c=Hy(a),i=c.matches[c.matches.length-1];return st(i.route.id,`${a} can only be used on routes that contain a unique "id"`),i.route.id}function $y(){return l2("useRouteId")}function qy(){var r;let a=j.useContext(t2),c=Uy("useRouteError"),i=l2("useRouteError");return a!==void 0?a:(r=c.errors)==null?void 0:r[i]}function Gy(){let{router:a}=ky("useNavigate"),c=l2("useNavigate"),i=j.useRef(!1);return s3(()=>{i.current=!0}),j.useCallback(async(d,f={})=>{In(i.current,a3),i.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:c,...f}))},[a,c])}var Dm={};function r3(a,c,i){!c&&!Dm[a]&&(Dm[a]=!0,In(!1,i))}j.memo(Fy);function Fy({routes:a,future:c,state:i,isStatic:r,onError:d}){return i3(a,void 0,{state:i,isStatic:r,onError:d})}function Do({to:a,replace:c,state:i,relative:r}){st(Ci(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(wn);In(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=j.useContext(qn),{pathname:_}=Cn(),g=En(),h=Oo(a,e2(f),_,r==="path"),m=JSON.stringify(h);return j.useEffect(()=>{g(JSON.parse(m),{replace:c,state:i,relative:r})},[g,m,r,c,i]),null}function a2(a){return Ry(a.context)}function nt(a){st(!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 Vy({basename:a="/",children:c=null,location:i,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:_}){st(!Ci(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=a.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:g,navigator:d,static:f,unstable_useTransitions:_,future:{}}),[g,d,f,_]);typeof i=="string"&&(i=Ni(i));let{pathname:m="/",search:v="",hash:y="",state:b=null,key:N="default",unstable_mask:S}=i,E=j.useMemo(()=>{let T=$l(m,g);return T==null?null:{location:{pathname:T,search:v,hash:y,state:b,key:N,unstable_mask:S},navigationType:r}},[g,m,v,y,b,N,r,S]);return In(E!=null,`<Router basename="${g}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:j.createElement(wn.Provider,{value:h},j.createElement(Gc.Provider,{children:c,value:E}))}function Qy({children:a,location:c}){return My(Ed(a),c)}function Ed(a,c=[]){let i=[];return j.Children.forEach(a,(r,d)=>{if(!j.isValidElement(r))return;let f=[...c,d];if(r.type===j.Fragment){i.push.apply(i,Ed(r.props.children,f));return}st(r.type===nt,`[${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>`),st(!r.props.index||!r.props.children,"An index route cannot have child routes.");let _={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&&(_.children=Ed(r.props.children,f)),i.push(_)}),i}var go="get",yo="application/x-www-form-urlencoded";function Lo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Yy(a){return Lo(a)&&a.tagName.toLowerCase()==="button"}function Xy(a){return Lo(a)&&a.tagName.toLowerCase()==="form"}function Iy(a){return Lo(a)&&a.tagName.toLowerCase()==="input"}function Zy(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Py(a,c){return a.button===0&&(!c||c==="_self")&&!Zy(a)}var fo=null;function Ky(){if(fo===null)try{new FormData(document.createElement("form"),0),fo=!1}catch{fo=!0}return fo}var Wy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function od(a){return a!=null&&!Wy.has(a)?(In(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yo}"`),null):a}function Jy(a,c){let i,r,d,f,_;if(Xy(a)){let g=a.getAttribute("action");r=g?$l(g,c):null,i=a.getAttribute("method")||go,d=od(a.getAttribute("enctype"))||yo,f=new FormData(a)}else if(Yy(a)||Iy(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?$l(h,c):null,i=a.getAttribute("formmethod")||g.getAttribute("method")||go,d=od(a.getAttribute("formenctype"))||od(g.getAttribute("enctype"))||yo,f=new FormData(g,a),!Ky()){let{name:m,type:v,value:y}=a;if(v==="image"){let b=m?`${m}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else m&&f.append(m,y)}}else{if(Lo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=go,r=null,d=yo,_=a}return f&&d==="text/plain"&&(_=f,f=void 0),{action:r,method:i.toLowerCase(),encType:d,formData:f,body:_}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function s2(a,c){if(a===!1||a===null||typeof a>"u")throw new Error(c)}function o3(a,c,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}`:c&&$l(d.pathname,c)==="/"?d.pathname=`${jo(c)}/_root.${r}`:d.pathname=`${jo(d.pathname)}.${r}`,d}async function e4(a,c){if(a.id in c)return c[a.id];try{let i=await import(a.module);return c[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 t4(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 n4(a,c,i){let r=await Promise.all(a.map(async d=>{let f=c.routes[d.route.id];if(f){let _=await e4(f,i);return _.links?_.links():[]}return[]}));return i4(r.flat(1).filter(t4).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Lm(a,c,i,r,d,f){let _=(h,m)=>i[m]?h.route.id!==i[m].route.id:!0,g=(h,m)=>{var v;return i[m].pathname!==h.pathname||((v=i[m].route.path)==null?void 0:v.endsWith("*"))&&i[m].params["*"]!==h.params["*"]};return f==="assets"?c.filter((h,m)=>_(h,m)||g(h,m)):f==="data"?c.filter((h,m)=>{var y;let v=r.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(_(h,m)||g(h,m))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 l4(a,c,{includeHydrateFallback:i}={}){return a4(a.map(r=>{let d=c.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 a4(a){return[...new Set(a)]}function s4(a){let c={},i=Object.keys(a).sort();for(let r of i)c[r]=a[r];return c}function i4(a,c){let i=new Set;return new Set(c),a.reduce((r,d)=>{let f=JSON.stringify(s4(d));return i.has(f)||(i.add(f),r.push({key:f,link:d})),r},[])}function i2(){let a=j.useContext(wi);return s2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function c4(){let a=j.useContext(zo);return s2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var c2=j.createContext(void 0);c2.displayName="FrameworkContext";function r2(){let a=j.useContext(c2);return s2(a,"You must render this element inside a <HydratedRouter> element"),a}function r4(a,c){let i=j.useContext(c2),[r,d]=j.useState(!1),[f,_]=j.useState(!1),{onFocus:g,onBlur:h,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=c,b=j.useRef(null);j.useEffect(()=>{if(a==="render"&&_(!0),a==="viewport"){let E=z=>{z.forEach(H=>{_(H.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[a]),j.useEffect(()=>{if(r){let E=setTimeout(()=>{_(!0)},100);return()=>{clearTimeout(E)}}},[r]);let N=()=>{d(!0)},S=()=>{d(!1),_(!1)};return i?a!=="intent"?[f,b,{}]:[f,b,{onFocus:Nc(g,N),onBlur:Nc(h,S),onMouseEnter:Nc(m,N),onMouseLeave:Nc(v,S),onTouchStart:Nc(y,N)}]:[!1,b,{}]}function Nc(a,c){return i=>{a&&a(i),i.defaultPrevented||c(i)}}function o4({page:a,...c}){let i=yy(),{router:r}=i2(),d=j.useMemo(()=>Ip(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?i?j.createElement(d4,{page:a,matches:d,...c}):j.createElement(f4,{page:a,matches:d,...c}):null}function u4(a){let{manifest:c,routeModules:i}=r2(),[r,d]=j.useState([]);return j.useEffect(()=>{let f=!1;return n4(a,c,i).then(_=>{f||d(_)}),()=>{f=!0}},[a,c,i]),r}function d4({page:a,matches:c,...i}){let r=Cn(),{future:d}=r2(),{basename:f}=i2(),_=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let g=o3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,m=[];for(let v of c)typeof v.route.shouldRevalidate=="function"?h=!0:m.push(v.route.id);return h&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,c]);return j.createElement(j.Fragment,null,_.map(g=>j.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...i})))}function f4({page:a,matches:c,...i}){let r=Cn(),{future:d,manifest:f,routeModules:_}=r2(),{basename:g}=i2(),{loaderData:h,matches:m}=c4(),v=j.useMemo(()=>Lm(a,c,m,f,r,"data"),[a,c,m,f,r]),y=j.useMemo(()=>Lm(a,c,m,f,r,"assets"),[a,c,m,f,r]),b=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let E=new Set,T=!1;if(c.forEach(H=>{var k;let O=f.routes[H.route.id];!O||!O.hasLoader||(!v.some(Y=>Y.route.id===H.route.id)&&H.route.id in h&&((k=_[H.route.id])!=null&&k.shouldRevalidate)||O.hasClientLoader?T=!0:E.add(H.route.id))}),E.size===0)return[];let z=o3(a,g,d.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&z.searchParams.set("_routes",c.filter(H=>E.has(H.route.id)).map(H=>H.route.id).join(",")),[z.pathname+z.search]},[g,d.unstable_trailingSlashAwareDataRequests,h,r,f,v,c,a,_]),N=j.useMemo(()=>l4(y,f),[y,f]),S=u4(y);return j.createElement(j.Fragment,null,b.map(E=>j.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...i})),N.map(E=>j.createElement("link",{key:E,rel:"modulepreload",href:E,...i})),S.map(({key:E,link:T})=>j.createElement("link",{key:E,nonce:i.nonce,...T,crossOrigin:T.crossOrigin??i.crossOrigin})))}function h4(...a){return c=>{a.forEach(i=>{typeof i=="function"?i(c):i!=null&&(i.current=c)})}}var m4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{m4&&(window.__reactRouterVersion="7.14.2")}catch{}function p4({basename:a,children:c,unstable_useTransitions:i,window:r}){let d=j.useRef();d.current==null&&(d.current=Yg({window:r,v5Compat:!0}));let f=d.current,[_,g]=j.useState({action:f.action,location:f.location}),h=j.useCallback(m=>{i===!1?g(m):j.startTransition(()=>g(m))},[i]);return j.useLayoutEffect(()=>f.listen(h),[f,h]),j.createElement(Vy,{basename:a,children:c,location:_.location,navigationType:_.action,navigator:f,unstable_useTransitions:i})}var u3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,It=j.forwardRef(function({onClick:c,discover:i="render",prefetch:r="none",relative:d,reloadDocument:f,replace:_,unstable_mask:g,state:h,target:m,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:N,...S},E){let{basename:T,navigator:z,unstable_useTransitions:H}=j.useContext(wn),O=typeof v=="string"&&u3.test(v),k=Jp(v,T);v=k.to;let Y=Cy(v,{relative:d}),J=Cn(),q=null;if(g){let ue=Oo(g,[],J.unstable_mask?J.unstable_mask.pathname:"/",!0);T!=="/"&&(ue.pathname=ue.pathname==="/"?T:Xn([T,ue.pathname])),q=z.createHref(ue)}let[I,ae,me]=r4(r,S),he=g4(v,{replace:_,unstable_mask:g,state:h,target:m,preventScrollReset:y,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:N,unstable_useTransitions:H});function Ce(ue){c&&c(ue),ue.defaultPrevented||he(ue)}let re=!(k.isExternal||f),ve=j.createElement("a",{...S,...me,href:(re?q:void 0)||k.absoluteURL||Y,onClick:re?Ce:c,ref:h4(E,ae),target:m,"data-discover":!O&&i==="render"?"true":void 0});return I&&!O?j.createElement(j.Fragment,null,ve,j.createElement(o4,{page:Y})):ve});It.displayName="Link";var Td=j.forwardRef(function({"aria-current":c="page",caseSensitive:i=!1,className:r="",end:d=!1,style:f,to:_,viewTransition:g,children:h,...m},v){let y=Fc(_,{relative:m.relative}),b=Cn(),N=j.useContext(zo),{navigator:S,basename:E}=j.useContext(wn),T=N!=null&&S4(y)&&g===!0,z=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,H=b.pathname,O=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;i||(H=H.toLowerCase(),O=O?O.toLowerCase():null,z=z.toLowerCase()),O&&E&&(O=$l(O,E)||O);const k=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Y=H===z||!d&&H.startsWith(z)&&H.charAt(k)==="/",J=O!=null&&(O===z||!d&&O.startsWith(z)&&O.charAt(z.length)==="/"),q={isActive:Y,isPending:J,isTransitioning:T},I=Y?c:void 0,ae;typeof r=="function"?ae=r(q):ae=[r,Y?"active":null,J?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let me=typeof f=="function"?f(q):f;return j.createElement(It,{...m,"aria-current":I,className:ae,ref:v,style:me,to:_,viewTransition:g},typeof h=="function"?h(q):h)});Td.displayName="NavLink";var _4=j.forwardRef(({discover:a="render",fetcherKey:c,navigate:i,reloadDocument:r,replace:d,state:f,method:_=go,action:g,onSubmit:h,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...N},S)=>{let{unstable_useTransitions:E}=j.useContext(wn),T=b4(),z=j4(g,{relative:m}),H=_.toLowerCase()==="get"?"get":"post",O=typeof g=="string"&&u3.test(g),k=Y=>{if(h&&h(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,q=(J==null?void 0:J.getAttribute("formmethod"))||_,I=()=>T(J||Y.currentTarget,{fetcherKey:c,method:q,navigate:i,replace:d,state:f,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});E&&i!==!1?j.startTransition(()=>I()):I()};return j.createElement("form",{ref:S,method:H,action:z,onSubmit:r?h:k,...N,"data-discover":!O&&a==="render"?"true":void 0})});_4.displayName="Form";function v4(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d3(a){let c=j.useContext(wi);return st(c,v4(a)),c}function g4(a,{target:c,replace:i,unstable_mask:r,state:d,preventScrollReset:f,relative:_,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let v=En(),y=Cn(),b=Fc(a,{relative:_});return j.useCallback(N=>{if(Py(N,c)){N.preventDefault();let S=i!==void 0?i:Dc(y)===Dc(b),E=()=>v(a,{replace:S,unstable_mask:r,state:d,preventScrollReset:f,relative:_,viewTransition:g,unstable_defaultShouldRevalidate:h});m?j.startTransition(()=>E()):E()}},[y,v,b,i,r,d,c,a,f,_,g,h,m])}var y4=0,x4=()=>`__${String(++y4)}__`;function b4(){let{router:a}=d3("useSubmit"),{basename:c}=j.useContext(wn),i=$y(),r=a.fetch,d=a.navigate;return j.useCallback(async(f,_={})=>{let{action:g,method:h,encType:m,formData:v,body:y}=Jy(f,c);if(_.navigate===!1){let b=_.fetcherKey||x4();await r(b,i,_.action||g,{unstable_defaultShouldRevalidate:_.unstable_defaultShouldRevalidate,preventScrollReset:_.preventScrollReset,formData:v,body:y,formMethod:_.method||h,formEncType:_.encType||m,flushSync:_.flushSync})}else await d(_.action||g,{unstable_defaultShouldRevalidate:_.unstable_defaultShouldRevalidate,preventScrollReset:_.preventScrollReset,formData:v,body:y,formMethod:_.method||h,formEncType:_.encType||m,replace:_.replace,state:_.state,fromRouteId:i,flushSync:_.flushSync,viewTransition:_.viewTransition})},[r,d,c,i])}function j4(a,{relative:c}={}){let{basename:i}=j.useContext(wn),r=j.useContext(qn);st(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...Fc(a||".",{relative:c})},_=Cn();if(a==null){f.search=_.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:Xn([i,f.pathname])),Dc(f)}function S4(a,{relative:c}={}){let i=j.useContext(n3);st(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=d3("useViewTransitionState"),d=Fc(a,{relative:c});if(!i.isTransitioning)return!1;let f=$l(i.currentLocation.pathname,r)||i.currentLocation.pathname,_=$l(i.nextLocation.pathname,r)||i.nextLocation.pathname;return bo(d.pathname,_)!=null||bo(d.pathname,f)!=null}const N4="_btn_8fkbu_1",w4="_primary_8fkbu_17",C4="_danger_8fkbu_27",E4="_ghost_8fkbu_37",T4="_outline_8fkbu_47",Bm={btn:N4,primary:w4,danger:C4,ghost:E4,outline:T4};function Zt({variant:a,children:c,onClick:i,type:r="button",disabled:d}){return l.jsx("button",{type:r,className:`${Bm.btn} ${Bm[a]}`,onClick:i,disabled:d,children:c})}const R4="_field_1rkrg_1",A4="_compact_1rkrg_5",M4="_fieldError_1rkrg_9",O4="_fieldLabel_1rkrg_15",z4="_fieldInput_1rkrg_23",D4="_currency_1rkrg_49",L4="_currencyIcon_1rkrg_58",B4="_currencyRub_1rkrg_70",k4="_currencyUsdt_1rkrg_74",ll={field:R4,compact:A4,fieldError:M4,fieldLabel:O4,fieldInput:z4,currency:D4,currencyIcon:L4,currencyRub:B4,currencyUsdt:k4};function So({label:a,value:c,currency:i,onChange:r,error:d,compact:f}){const _=!r;return l.jsxs("div",{className:f?`${ll.field} ${ll.compact}`:ll.field,children:[a&&l.jsx("div",{className:ll.fieldLabel,children:a}),l.jsxs("div",{className:ll.fieldInput,children:[l.jsx("input",{type:"text",value:c,onChange:r?g=>r(g.target.value):void 0,readOnly:_,placeholder:"0",inputMode:_?void 0:"decimal"}),l.jsxs("div",{className:ll.currency,children:[l.jsx("span",{className:`${ll.currencyIcon} ${i==="USDT"?ll.currencyUsdt:ll.currencyRub}`,children:i==="USDT"?"₮":"₽"}),i]})]}),d&&l.jsx("div",{className:ll.fieldError,children:d})]})}const U4="_swapWrap_172k4_1",H4="_compact_172k4_6",$4="_swapBtn_172k4_10",ho={swapWrap:U4,compact:H4,swapBtn:$4};function f3({onClick:a,compact:c}){return l.jsx("div",{className:c?`${ho.swapWrap} ${ho.compact}`:ho.swapWrap,children:l.jsx("button",{type:"button",className:ho.swapBtn,onClick:a,"aria-label":"Поменять направление",children:l.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:l.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const q4="_field_zffpb_1",G4="_label_zffpb_7",F4="_wrap_zffpb_14",V4="_input_zffpb_18",Q4="_readonly_zffpb_37",Y4="_copied_zffpb_44",X4="_iconCheck_zffpb_59",I4="_iconLock_zffpb_68",Z4="_withToggle_zffpb_76",P4="_togglePw_zffpb_80",al={field:q4,label:G4,wrap:F4,input:V4,readonly:Q4,copied:Y4,iconCheck:X4,iconLock:I4,withToggle:Z4,togglePw:P4};function Se({label:a,value:c,placeholder:i,type:r="text",onChange:d,onBlur:f,readOnly:_,required:g,icon:h}){const[m,v]=j.useState(!1),[y,b]=j.useState(!1),N=r==="password",S=N?y?"text":"password":r,E=()=>{_&&navigator.clipboard.writeText(c).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return l.jsxs("div",{className:al.field,children:[l.jsx("label",{className:al.label,children:a}),l.jsxs("div",{className:al.wrap,onClick:E,children:[l.jsx("input",{className:`${al.input} ${N?al.withToggle:""} ${_?al.readonly:""} ${m?al.copied:""}`,type:S,...d?{value:c,onChange:T=>d(T.target.value)}:{defaultValue:c},placeholder:i,readOnly:_,required:g,onBlur:f}),N&&l.jsx("button",{type:"button",className:al.togglePw,onClick:T=>{T.stopPropagation(),b(z=>!z)},"aria-label":y?"Скрыть пароль":"Показать пароль",children:y?l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[l.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"}),l.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"}),l.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),l.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),h==="check"&&l.jsx("span",{className:al.iconCheck,children:"✓"}),h==="lock"&&l.jsx("span",{className:al.iconLock,children:"🔒"})]})]})}const K4="_notification_m7zar_1",W4="_slideIn_m7zar_1",J4="_notificationWrapper_m7zar_19",ex="_closing_m7zar_24",tx="_slideOut_m7zar_1",nx="_icon_m7zar_52",lx="_success_m7zar_65",ax="_error_m7zar_70",sx="_info_m7zar_75",ix="_warning_m7zar_80",cx="_message_m7zar_85",rx="_close_m7zar_93",Ia={notification:K4,slideIn:W4,notificationWrapper:J4,closing:ex,slideOut:tx,icon:nx,success:lx,error:ax,info:sx,warning:ix,message:cx,close:rx},ox={success:"✓",error:"✕",info:"i",warning:"!"};function Ta({message:a,status:c,onClose:i}){const[r,d]=j.useState(!1);function f(){d(!0)}function _(){r&&i()}return l.jsxs("div",{className:`${Ia.notification} ${Ia[c]} ${r?Ia.closing:""}`,onAnimationEnd:_,children:[l.jsxs("div",{className:Ia.notificationWrapper,children:[l.jsx("span",{className:Ia.icon,children:ox[c]}),l.jsx("p",{className:Ia.message,children:a})]}),l.jsx("button",{className:Ia.close,onClick:f,children:"✕"})]})}const ux="_pill_3oadq_1",dx={pill:ux};function fx({children:a}){return l.jsx("span",{className:dx.pill,children:a})}const hx="_btn_ytb12_1",mx={btn:hx};function ul({label:a="Подтвердить своп",onClick:c,type:i="submit",disabled:r}){return l.jsx("button",{type:i,className:mx.btn,onClick:c,disabled:r,children:a})}const px="_field_1845i_1",_x="_label_1845i_8",vx="_trigger_1845i_15",gx="_triggerOpen_1845i_41",yx="_value_1845i_46",xx="_placeholder_1845i_50",bx="_arrow_1845i_54",jx="_arrowOpen_1845i_61",Sx="_dropdown_1845i_65",Nx="_option_1845i_82",wx="_optionSelected_1845i_95",Qn={field:px,label:_x,trigger:vx,triggerOpen:gx,value:yx,placeholder:xx,arrow:bx,arrowOpen:jx,dropdown:Sx,option:Nx,optionSelected:wx};function Cx({value:a,options:c,onChange:i,label:r,placeholder:d="Выберите",id:f,disabled:_}){const[g,h]=j.useState(!1),m=j.useRef(null),v=c.find(y=>y.value===a);return j.useEffect(()=>{if(!g)return;const y=N=>{m.current&&!m.current.contains(N.target)&&h(!1)},b=N=>{N.key==="Escape"&&h(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",b)}},[g]),l.jsxs("div",{className:Qn.field,ref:m,children:[r&&l.jsx("label",{className:Qn.label,htmlFor:f,children:r}),l.jsxs("button",{type:"button",id:f,className:`${Qn.trigger} ${g?Qn.triggerOpen:""}`,onClick:()=>!_&&h(y=>!y),disabled:_,"aria-haspopup":"listbox","aria-expanded":g,children:[l.jsx("span",{className:v?Qn.value:Qn.placeholder,children:v?v.label:d}),l.jsx("span",{className:`${Qn.arrow} ${g?Qn.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),g&&l.jsx("ul",{className:Qn.dropdown,role:"listbox",children:c.map(y=>l.jsx("li",{role:"option","aria-selected":y.value===a,className:`${Qn.option} ${y.value===a?Qn.optionSelected:""}`,onClick:()=>{i(y.value),h(!1)},children:y.label},String(y.value)))})]})}const Ex="_wrap_1ujmu_1",Tx="_fullscreen_1ujmu_9",Rx="_spinner_1ujmu_15",Ax="_spin_1ujmu_15",Mx="_sm_1ujmu_24",Ox="_md_1ujmu_30",zx="_lg_1ujmu_36",Dx="_label_1ujmu_42",Lx="_srOnly_1ujmu_49",li={wrap:Ex,fullscreen:Tx,spinner:Rx,spin:Ax,sm:Mx,md:Ox,lg:zx,label:Dx,srOnly:Lx};function Bx({size:a="md",label:c,fullscreen:i,className:r}){const d=[li.wrap,i?li.fullscreen:"",r??""].filter(Boolean).join(" ");return l.jsxs("div",{className:d,role:"status","aria-live":"polite","aria-busy":"true",children:[l.jsx("span",{className:`${li.spinner} ${li[a]}`,"aria-hidden":"true"}),c?l.jsx("span",{className:li.label,children:c}):null,l.jsx("span",{className:li.srOnly,children:c??"Загрузка"})]})}const kx="_icon_73irc_1",Ux={icon:kx};function km({letter:a,color:c,logo:i,size:r=40}){return l.jsx("div",{className:Ux.icon,style:{background:i?"transparent":c,width:r,height:r,fontSize:r*.45},children:i?l.jsx("img",{src:i,alt:a,style:{width:r*.7,height:r*.7}}):a})}const Hx="_section_11f1k_1",$x="_wrap_11f1k_7",qx="_descBlock_11f1k_16",Gx="_descText_11f1k_22",Fx="_right_11f1k_33",Vx="_glow_11f1k_37",Qx="_row_11f1k_49",Yx="_check_11f1k_87",Xx="_text_11f1k_101",sl={section:Hx,wrap:$x,descBlock:qx,descText:Gx,right:Fx,glow:Vx,row:Qx,check:Yx,text:Xx},Ix="_title_1ien9_1",Zx={title:Ix};function h3({children:a}){return l.jsx("h2",{className:Zx.title,children:a})}const Um=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function Px(){const[a,c]=j.useState(-1);return l.jsx("section",{id:"about",className:sl.section,children:l.jsxs("div",{className:sl.wrap,children:[l.jsxs("div",{children:[l.jsx(fx,{children:"О КОМПАНИИ"}),l.jsx(h3,{children:"О нас"}),l.jsxs("div",{className:sl.descBlock,children:[l.jsx("p",{className:sl.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),l.jsx("p",{className:sl.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),l.jsxs("div",{className:sl.right,children:[l.jsx("div",{className:sl.glow}),Um.map((i,r)=>l.jsxs("div",{className:sl.row,"data-hovered":a===r||void 0,"data-last":r===Um.length-1||void 0,onMouseEnter:()=>c(r),onMouseLeave:()=>c(-1),children:[l.jsx("div",{className:sl.check,children:"✓"}),l.jsx("span",{className:sl.text,children:i})]},r))]})]})})}const No=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],ud=No[0].min,Hm=No[No.length-1].max;function Kx(a){return a<=ud?0:a>=Hm?100:(a-ud)/(Hm-ud)*100}const Wx="_title_ujt2o_1",Jx="_table_ujt2o_8",e6="_row_ujt2o_15",t6="_range_ujt2o_31",n6="_pct_ujt2o_36",l6="_progressBar_ujt2o_43",a6="_progressFill_ujt2o_51",s6="_summary_ujt2o_58",i6="_summaryLabel_ujt2o_73",c6="_summaryValue_ujt2o_78",bn={title:Wx,table:Jx,row:e6,range:t6,pct:n6,progressBar:l6,progressFill:a6,summary:s6,summaryLabel:i6,summaryValue:c6},$m=a=>a.toLocaleString("ru-RU");function m3({amount:a,progress:c,commission:i,effectiveRate:r}){return l.jsxs("div",{children:[l.jsx("div",{className:bn.title,children:"КОМИССИЯ СЕРВИСА"}),l.jsx("div",{className:bn.table,children:No.map((d,f)=>l.jsxs("div",{className:bn.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[l.jsxs("span",{className:bn.range,children:[$m(d.min)," ",$m(d.max)," ₽"]}),l.jsxs("span",{className:bn.pct,children:[d.pct,"%"]})]},f))}),l.jsx("div",{className:bn.progressBar,children:l.jsx("div",{className:bn.progressFill,style:{width:`${c}%`}})}),l.jsxs("div",{className:bn.summary,children:[l.jsx("span",{className:bn.summaryLabel,children:"Комиссия"}),l.jsxs("span",{className:bn.summaryValue,children:[i.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),l.jsxs("div",{className:bn.summary,children:[l.jsx("span",{className:bn.summaryLabel,children:"Курс с комиссией"}),l.jsxs("span",{className:bn.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Ei=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(){}},ns,ga,ui,Bp,r6=(Bp=class extends Ei{constructor(){super();ie(this,ns);ie(this,ga);ie(this,ui);W(this,ui,c=>{if(typeof window<"u"&&window.addEventListener){const i=()=>c();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){C(this,ga)||this.setEventListener(C(this,ui))}onUnsubscribe(){var c;this.hasListeners()||((c=C(this,ga))==null||c.call(this),W(this,ga,void 0))}setEventListener(c){var i;W(this,ui,c),(i=C(this,ga))==null||i.call(this),W(this,ga,c(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(c){C(this,ns)!==c&&(W(this,ns,c),this.onFocus())}onFocus(){const c=this.isFocused();this.listeners.forEach(i=>{i(c)})}isFocused(){var c;return typeof C(this,ns)=="boolean"?C(this,ns):((c=globalThis.document)==null?void 0:c.visibilityState)!=="hidden"}},ns=new WeakMap,ga=new WeakMap,ui=new WeakMap,Bp),o2=new r6,o6={setTimeout:(a,c)=>setTimeout(a,c),clearTimeout:a=>clearTimeout(a),setInterval:(a,c)=>setInterval(a,c),clearInterval:a=>clearInterval(a)},ya,Wd,kp,u6=(kp=class{constructor(){ie(this,ya,o6);ie(this,Wd,!1)}setTimeoutProvider(a){W(this,ya,a)}setTimeout(a,c){return C(this,ya).setTimeout(a,c)}clearTimeout(a){C(this,ya).clearTimeout(a)}setInterval(a,c){return C(this,ya).setInterval(a,c)}clearInterval(a){C(this,ya).clearInterval(a)}},ya=new WeakMap,Wd=new WeakMap,kp),ts=new u6;function d6(a){setTimeout(a,0)}var f6=typeof window>"u"||"Deno"in globalThis;function Xt(){}function h6(a,c){return typeof a=="function"?a(c):a}function Rd(a){return typeof a=="number"&&a>=0&&a!==1/0}function p3(a,c){return Math.max(a+(c||0)-Date.now(),0)}function Ea(a,c){return typeof a=="function"?a(c):a}function Nn(a,c){return typeof a=="function"?a(c):a}function qm(a,c){const{type:i="all",exact:r,fetchStatus:d,predicate:f,queryKey:_,stale:g}=a;if(_){if(r){if(c.queryHash!==u2(_,c.options))return!1}else if(!Lc(c.queryKey,_))return!1}if(i!=="all"){const h=c.isActive();if(i==="active"&&!h||i==="inactive"&&h)return!1}return!(typeof g=="boolean"&&c.isStale()!==g||d&&d!==c.state.fetchStatus||f&&!f(c))}function Gm(a,c){const{exact:i,status:r,predicate:d,mutationKey:f}=a;if(f){if(!c.options.mutationKey)return!1;if(i){if(fs(c.options.mutationKey)!==fs(f))return!1}else if(!Lc(c.options.mutationKey,f))return!1}return!(r&&c.state.status!==r||d&&!d(c))}function u2(a,c){return((c==null?void 0:c.queryKeyHashFn)||fs)(a)}function fs(a){return JSON.stringify(a,(c,i)=>Ad(i)?Object.keys(i).sort().reduce((r,d)=>(r[d]=i[d],r),{}):i)}function Lc(a,c){return a===c?!0:typeof a!=typeof c?!1:a&&c&&typeof a=="object"&&typeof c=="object"?Object.keys(c).every(i=>Lc(a[i],c[i])):!1}var m6=Object.prototype.hasOwnProperty;function _3(a,c,i=0){if(a===c)return a;if(i>500)return c;const r=Fm(a)&&Fm(c);if(!r&&!(Ad(a)&&Ad(c)))return c;const f=(r?a:Object.keys(a)).length,_=r?c:Object.keys(c),g=_.length,h=r?new Array(g):{};let m=0;for(let v=0;v<g;v++){const y=r?v:_[v],b=a[y],N=c[y];if(b===N){h[y]=b,(r?v<f:m6.call(a,y))&&m++;continue}if(b===null||N===null||typeof b!="object"||typeof N!="object"){h[y]=N;continue}const S=_3(b,N,i+1);h[y]=S,S===b&&m++}return f===g&&m===f?a:h}function wo(a,c){if(!c||Object.keys(a).length!==Object.keys(c).length)return!1;for(const i in a)if(a[i]!==c[i])return!1;return!0}function Fm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ad(a){if(!Vm(a))return!1;const c=a.constructor;if(c===void 0)return!0;const i=c.prototype;return!(!Vm(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Vm(a){return Object.prototype.toString.call(a)==="[object Object]"}function p6(a){return new Promise(c=>{ts.setTimeout(c,a)})}function Md(a,c,i){return typeof i.structuralSharing=="function"?i.structuralSharing(a,c):i.structuralSharing!==!1?_3(a,c):c}function _6(a,c,i=0){const r=[...a,c];return i&&r.length>i?r.slice(1):r}function v6(a,c,i=0){const r=[c,...a];return i&&r.length>i?r.slice(0,-1):r}var d2=Symbol();function v3(a,c){return!a.queryFn&&(c!=null&&c.initialPromise)?()=>c.initialPromise:!a.queryFn||a.queryFn===d2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function f2(a,c){return typeof a=="function"?a(...c):!!a}function g6(a,c,i){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=c()),r||(r=!0,d.aborted?i():d.addEventListener("abort",i,{once:!0})),d)}),a}var Bc=(()=>{let a=()=>f6;return{isServer(){return a()},setIsServer(c){a=c}}})();function Od(){let a,c;const i=new Promise((d,f)=>{a=d,c=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}),c(d)},i}var y6=d6;function x6(){let a=[],c=0,i=g=>{g()},r=g=>{g()},d=y6;const f=g=>{c?a.push(g):d(()=>{i(g)})},_=()=>{const g=a;a=[],g.length&&d(()=>{r(()=>{g.forEach(h=>{i(h)})})})};return{batch:g=>{let h;c++;try{h=g()}finally{c--,c||_()}return h},batchCalls:g=>(...h)=>{f(()=>{g(...h)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{d=g}}}var wt=x6(),di,xa,fi,Up,b6=(Up=class extends Ei{constructor(){super();ie(this,di,!0);ie(this,xa);ie(this,fi);W(this,fi,c=>{if(typeof window<"u"&&window.addEventListener){const i=()=>c(!0),r=()=>c(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,xa)||this.setEventListener(C(this,fi))}onUnsubscribe(){var c;this.hasListeners()||((c=C(this,xa))==null||c.call(this),W(this,xa,void 0))}setEventListener(c){var i;W(this,fi,c),(i=C(this,xa))==null||i.call(this),W(this,xa,c(this.setOnline.bind(this)))}setOnline(c){C(this,di)!==c&&(W(this,di,c),this.listeners.forEach(r=>{r(c)}))}isOnline(){return C(this,di)}},di=new WeakMap,xa=new WeakMap,fi=new WeakMap,Up),Co=new b6;function j6(a){return Math.min(1e3*2**a,3e4)}function g3(a){return(a??"online")==="online"?Co.isOnline():!0}var zd=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function y3(a){let c=!1,i=0,r;const d=Od(),f=()=>d.status!=="pending",_=E=>{var T;if(!f()){const z=new zd(E);b(z),(T=a.onCancel)==null||T.call(a,z)}},g=()=>{c=!0},h=()=>{c=!1},m=()=>o2.isFocused()&&(a.networkMode==="always"||Co.isOnline())&&a.canRun(),v=()=>g3(a.networkMode)&&a.canRun(),y=E=>{f()||(r==null||r(),d.resolve(E))},b=E=>{f()||(r==null||r(),d.reject(E))},N=()=>new Promise(E=>{var T;r=z=>{(f()||m())&&E(z)},(T=a.onPause)==null||T.call(a)}).then(()=>{var E;r=void 0,f()||(E=a.onContinue)==null||E.call(a)}),S=()=>{if(f())return;let E;const T=i===0?a.initialPromise:void 0;try{E=T??a.fn()}catch(z){E=Promise.reject(z)}Promise.resolve(E).then(y).catch(z=>{var J;if(f())return;const H=a.retry??(Bc.isServer()?0:3),O=a.retryDelay??j6,k=typeof O=="function"?O(i,z):O,Y=H===!0||typeof H=="number"&&i<H||typeof H=="function"&&H(i,z);if(c||!Y){b(z);return}i++,(J=a.onFail)==null||J.call(a,i,z),p6(k).then(()=>m()?void 0:N()).then(()=>{c?b(z):S()})})};return{promise:d,status:()=>d.status,cancel:_,continue:()=>(r==null||r(),d),cancelRetry:g,continueRetry:h,canStart:v,start:()=>(v()?S():N().then(S),d)}}var ls,Hp,x3=(Hp=class{constructor(){ie(this,ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Rd(this.gcTime)&&W(this,ls,ts.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Bc.isServer()?1/0:300*1e3))}clearGcTimeout(){C(this,ls)!==void 0&&(ts.clearTimeout(C(this,ls)),W(this,ls,void 0))}},ls=new WeakMap,Hp);function S6(a){return{onFetch:(c,i)=>{var v,y,b,N,S;const r=c.options,d=(b=(y=(v=c.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=((N=c.state.data)==null?void 0:N.pages)||[],_=((S=c.state.data)==null?void 0:S.pageParams)||[];let g={pages:[],pageParams:[]},h=0;const m=async()=>{let E=!1;const T=O=>{g6(O,()=>c.signal,()=>E=!0)},z=v3(c.options,c.fetchOptions),H=async(O,k,Y)=>{if(E)return Promise.reject(c.signal.reason);if(k==null&&O.pages.length)return Promise.resolve(O);const q=(()=>{const he={client:c.client,queryKey:c.queryKey,pageParam:k,direction:Y?"backward":"forward",meta:c.options.meta};return T(he),he})(),I=await z(q),{maxPages:ae}=c.options,me=Y?v6:_6;return{pages:me(O.pages,I,ae),pageParams:me(O.pageParams,k,ae)}};if(d&&f.length){const O=d==="backward",k=O?b3:Dd,Y={pages:f,pageParams:_},J=k(r,Y);g=await H(Y,J,O)}else{const O=a??f.length;do{const k=h===0?_[0]??r.initialPageParam:Dd(r,g);if(h>0&&k==null)break;g=await H(g,k),h++}while(h<O)}return g};c.options.persister?c.fetchFn=()=>{var E,T;return(T=(E=c.options).persister)==null?void 0:T.call(E,m,{client:c.client,queryKey:c.queryKey,meta:c.options.meta,signal:c.signal},i)}:c.fetchFn=m}}}function Dd(a,{pages:c,pageParams:i}){const r=c.length-1;return c.length>0?a.getNextPageParam(c[r],c,i[r],i):void 0}function b3(a,{pages:c,pageParams:i}){var r;return c.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,c[0],c,i[0],i):void 0}function N6(a,c){return c?Dd(a,c)!=null:!1}function w6(a,c){return!c||!a.getPreviousPageParam?!1:b3(a,c)!=null}var hi,as,mi,Hn,ss,Rt,kc,is,Sn,j3,Dl,$p,C6=($p=class extends x3{constructor(c){super();ie(this,Sn);ie(this,hi);ie(this,as);ie(this,mi);ie(this,Hn);ie(this,ss);ie(this,Rt);ie(this,kc);ie(this,is);W(this,is,!1),W(this,kc,c.defaultOptions),this.setOptions(c.options),this.observers=[],W(this,ss,c.client),W(this,Hn,C(this,ss).getQueryCache()),this.queryKey=c.queryKey,this.queryHash=c.queryHash,W(this,as,Ym(this.options)),this.state=c.state??C(this,as),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,hi)}get promise(){var c;return(c=C(this,Rt))==null?void 0:c.promise}setOptions(c){if(this.options={...C(this,kc),...c},c!=null&&c._type&&W(this,hi,c._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Ym(this.options);i.data!==void 0&&(this.setState(Qm(i.data,i.dataUpdatedAt)),W(this,as,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Hn).remove(this)}setData(c,i){const r=Md(this.state.data,c,this.options);return je(this,Sn,Dl).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(c){je(this,Sn,Dl).call(this,{type:"setState",state:c})}cancel(c){var r,d;const i=(r=C(this,Rt))==null?void 0:r.promise;return(d=C(this,Rt))==null||d.cancel(c),i?i.then(Xt).catch(Xt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,as)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(c=>Nn(c.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===d2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(c=>Ea(c.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(c=>c.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(c=0){return this.state.data===void 0?!0:c==="static"?!1:this.state.isInvalidated?!0:!p3(this.state.dataUpdatedAt,c)}onFocus(){var i;const c=this.observers.find(r=>r.shouldFetchOnWindowFocus());c==null||c.refetch({cancelRefetch:!1}),(i=C(this,Rt))==null||i.continue()}onOnline(){var i;const c=this.observers.find(r=>r.shouldFetchOnReconnect());c==null||c.refetch({cancelRefetch:!1}),(i=C(this,Rt))==null||i.continue()}addObserver(c){this.observers.includes(c)||(this.observers.push(c),this.clearGcTimeout(),C(this,Hn).notify({type:"observerAdded",query:this,observer:c}))}removeObserver(c){this.observers.includes(c)&&(this.observers=this.observers.filter(i=>i!==c),this.observers.length||(C(this,Rt)&&(C(this,is)||je(this,Sn,j3).call(this)?C(this,Rt).cancel({revert:!0}):C(this,Rt).cancelRetry()),this.scheduleGc()),C(this,Hn).notify({type:"observerRemoved",query:this,observer:c}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||je(this,Sn,Dl).call(this,{type:"invalidate"})}async fetch(c,i){var m,v,y,b,N,S,E,T,z,H,O;if(this.state.fetchStatus!=="idle"&&((m=C(this,Rt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(C(this,Rt))return C(this,Rt).continueRetry(),C(this,Rt).promise}if(c&&this.setOptions(c),!this.options.queryFn){const k=this.observers.find(Y=>Y.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(W(this,is,!0),r.signal)})},f=()=>{const k=v3(this.options,i),J=(()=>{const q={client:C(this,ss),queryKey:this.queryKey,meta:this.meta};return d(q),q})();return W(this,is,!1),this.options.persister?this.options.persister(k,J,this):k(J)},g=(()=>{const k={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:C(this,ss),state:this.state,fetchFn:f};return d(k),k})(),h=C(this,hi)==="infinite"?S6(this.options.pages):this.options.behavior;h==null||h.onFetch(g,this),W(this,mi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=g.fetchOptions)==null?void 0:v.meta))&&je(this,Sn,Dl).call(this,{type:"fetch",meta:(y=g.fetchOptions)==null?void 0:y.meta}),W(this,Rt,y3({initialPromise:i==null?void 0:i.initialPromise,fn:g.fetchFn,onCancel:k=>{k instanceof zd&&k.revert&&this.setState({...C(this,mi),fetchStatus:"idle"}),r.abort()},onFail:(k,Y)=>{je(this,Sn,Dl).call(this,{type:"failed",failureCount:k,error:Y})},onPause:()=>{je(this,Sn,Dl).call(this,{type:"pause"})},onContinue:()=>{je(this,Sn,Dl).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const k=await C(this,Rt).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(N=(b=C(this,Hn).config).onSuccess)==null||N.call(b,k,this),(E=(S=C(this,Hn).config).onSettled)==null||E.call(S,k,this.state.error,this),k}catch(k){if(k instanceof zd){if(k.silent)return C(this,Rt).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw je(this,Sn,Dl).call(this,{type:"error",error:k}),(z=(T=C(this,Hn).config).onError)==null||z.call(T,k,this),(O=(H=C(this,Hn).config).onSettled)==null||O.call(H,this.state.data,k,this),k}finally{this.scheduleGc()}}},hi=new WeakMap,as=new WeakMap,mi=new WeakMap,Hn=new WeakMap,ss=new WeakMap,Rt=new WeakMap,kc=new WeakMap,is=new WeakMap,Sn=new WeakSet,j3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Dl=function(c){const i=r=>{switch(c.type){case"failed":return{...r,fetchFailureCount:c.failureCount,fetchFailureReason:c.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...S3(r.data,this.options),fetchMeta:c.meta??null};case"success":const d={...r,...Qm(c.data,c.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!c.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,mi,c.manual?d:void 0),d;case"error":const f=c.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,...c.state}}};this.state=i(this.state),wt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Hn).notify({query:this,type:"updated",action:c})})},$p);function S3(a,c){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:g3(c.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Qm(a,c){return{data:a,dataUpdatedAt:c??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ym(a){const c=typeof a.initialData=="function"?a.initialData():a.initialData,i=c!==void 0,r=i?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:c,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 on,Be,Uc,Yt,cs,pi,Ll,ba,Hc,_i,vi,rs,os,ja,gi,qe,Oc,Ld,Bd,kd,Ud,Hd,$d,qd,w3,qp,N3=(qp=class extends Ei{constructor(c,i){super();ie(this,qe);ie(this,on);ie(this,Be);ie(this,Uc);ie(this,Yt);ie(this,cs);ie(this,pi);ie(this,Ll);ie(this,ba);ie(this,Hc);ie(this,_i);ie(this,vi);ie(this,rs);ie(this,os);ie(this,ja);ie(this,gi,new Set);this.options=i,W(this,on,c),W(this,ba,null),W(this,Ll,Od()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,Be).addObserver(this),Xm(C(this,Be),this.options)?je(this,qe,Oc).call(this):this.updateResult(),je(this,qe,Ud).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gd(C(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gd(C(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,je(this,qe,Hd).call(this),je(this,qe,$d).call(this),C(this,Be).removeObserver(this)}setOptions(c){const i=this.options,r=C(this,Be);if(this.options=C(this,on).defaultQueryOptions(c),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,C(this,Be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");je(this,qe,qd).call(this),C(this,Be).setOptions(this.options),i._defaulted&&!wo(this.options,i)&&C(this,on).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Be),observer:this});const d=this.hasListeners();d&&Im(C(this,Be),r,this.options,i)&&je(this,qe,Oc).call(this),this.updateResult(),d&&(C(this,Be)!==r||Nn(this.options.enabled,C(this,Be))!==Nn(i.enabled,C(this,Be))||Ea(this.options.staleTime,C(this,Be))!==Ea(i.staleTime,C(this,Be)))&&je(this,qe,Ld).call(this);const f=je(this,qe,Bd).call(this);d&&(C(this,Be)!==r||Nn(this.options.enabled,C(this,Be))!==Nn(i.enabled,C(this,Be))||f!==C(this,ja))&&je(this,qe,kd).call(this,f)}getOptimisticResult(c){const i=C(this,on).getQueryCache().build(C(this,on),c),r=this.createResult(i,c);return T6(this,r)&&(W(this,Yt,r),W(this,pi,this.options),W(this,cs,C(this,Be).state)),r}getCurrentResult(){return C(this,Yt)}trackResult(c,i){return new Proxy(c,{get:(r,d)=>(this.trackProp(d),i==null||i(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Ll).status==="pending"&&C(this,Ll).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(c){C(this,gi).add(c)}getCurrentQuery(){return C(this,Be)}refetch({...c}={}){return this.fetch({...c})}fetchOptimistic(c){const i=C(this,on).defaultQueryOptions(c),r=C(this,on).getQueryCache().build(C(this,on),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(c){return je(this,qe,Oc).call(this,{...c,cancelRefetch:c.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Yt)))}createResult(c,i){var ae;const r=C(this,Be),d=this.options,f=C(this,Yt),_=C(this,cs),g=C(this,pi),m=c!==r?c.state:C(this,Uc),{state:v}=c;let y={...v},b=!1,N;if(i._optimisticResults){const me=this.hasListeners(),he=!me&&Xm(c,i),Ce=me&&Im(c,r,i,d);(he||Ce)&&(y={...y,...S3(v.data,c.options)}),i._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:T}=y;N=y.data;let z=!1;if(i.placeholderData!==void 0&&N===void 0&&T==="pending"){let me;f!=null&&f.isPlaceholderData&&i.placeholderData===(g==null?void 0:g.placeholderData)?(me=f.data,z=!0):me=typeof i.placeholderData=="function"?i.placeholderData((ae=C(this,vi))==null?void 0:ae.state.data,C(this,vi)):i.placeholderData,me!==void 0&&(T="success",N=Md(f==null?void 0:f.data,me,i),b=!0)}if(i.select&&N!==void 0&&!z)if(f&&N===(_==null?void 0:_.data)&&i.select===C(this,Hc))N=C(this,_i);else try{W(this,Hc,i.select),N=i.select(N),N=Md(f==null?void 0:f.data,N,i),W(this,_i,N),W(this,ba,null)}catch(me){W(this,ba,me)}C(this,ba)&&(S=C(this,ba),N=C(this,_i),E=Date.now(),T="error");const H=y.fetchStatus==="fetching",O=T==="pending",k=T==="error",Y=O&&H,J=N!==void 0,I={status:T,fetchStatus:y.fetchStatus,isPending:O,isSuccess:T==="success",isError:k,isInitialLoading:Y,isLoading:Y,data:N,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:c.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:H,isRefetching:H&&!O,isLoadingError:k&&!J,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:k&&J,isStale:h2(c,i),refetch:this.refetch,promise:C(this,Ll),isEnabled:Nn(i.enabled,c)!==!1};if(this.options.experimental_prefetchInRender){const me=I.data!==void 0,he=I.status==="error"&&!me,Ce=ue=>{he?ue.reject(I.error):me&&ue.resolve(I.data)},re=()=>{const ue=W(this,Ll,I.promise=Od());Ce(ue)},ve=C(this,Ll);switch(ve.status){case"pending":c.queryHash===r.queryHash&&Ce(ve);break;case"fulfilled":(he||I.data!==ve.value)&&re();break;case"rejected":(!he||I.error!==ve.reason)&&re();break}}return I}updateResult(){const c=C(this,Yt),i=this.createResult(C(this,Be),this.options);if(W(this,cs,C(this,Be).state),W(this,pi,this.options),C(this,cs).data!==void 0&&W(this,vi,C(this,Be)),wo(i,c))return;W(this,Yt,i);const r=()=>{if(!c)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!C(this,gi).size)return!0;const _=new Set(f??C(this,gi));return this.options.throwOnError&&_.add("error"),Object.keys(C(this,Yt)).some(g=>{const h=g;return C(this,Yt)[h]!==c[h]&&_.has(h)})};je(this,qe,w3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&je(this,qe,Ud).call(this)}},on=new WeakMap,Be=new WeakMap,Uc=new WeakMap,Yt=new WeakMap,cs=new WeakMap,pi=new WeakMap,Ll=new WeakMap,ba=new WeakMap,Hc=new WeakMap,_i=new WeakMap,vi=new WeakMap,rs=new WeakMap,os=new WeakMap,ja=new WeakMap,gi=new WeakMap,qe=new WeakSet,Oc=function(c){je(this,qe,qd).call(this);let i=C(this,Be).fetch(this.options,c);return c!=null&&c.throwOnError||(i=i.catch(Xt)),i},Ld=function(){je(this,qe,Hd).call(this);const c=Ea(this.options.staleTime,C(this,Be));if(Bc.isServer()||C(this,Yt).isStale||!Rd(c))return;const r=p3(C(this,Yt).dataUpdatedAt,c)+1;W(this,rs,ts.setTimeout(()=>{C(this,Yt).isStale||this.updateResult()},r))},Bd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,Be)):this.options.refetchInterval)??!1},kd=function(c){je(this,qe,$d).call(this),W(this,ja,c),!(Bc.isServer()||Nn(this.options.enabled,C(this,Be))===!1||!Rd(C(this,ja))||C(this,ja)===0)&&W(this,os,ts.setInterval(()=>{(this.options.refetchIntervalInBackground||o2.isFocused())&&je(this,qe,Oc).call(this)},C(this,ja)))},Ud=function(){je(this,qe,Ld).call(this),je(this,qe,kd).call(this,je(this,qe,Bd).call(this))},Hd=function(){C(this,rs)!==void 0&&(ts.clearTimeout(C(this,rs)),W(this,rs,void 0))},$d=function(){C(this,os)!==void 0&&(ts.clearInterval(C(this,os)),W(this,os,void 0))},qd=function(){const c=C(this,on).getQueryCache().build(C(this,on),this.options);if(c===C(this,Be))return;const i=C(this,Be);W(this,Be,c),W(this,Uc,c.state),this.hasListeners()&&(i==null||i.removeObserver(this),c.addObserver(this))},w3=function(c){wt.batch(()=>{c.listeners&&this.listeners.forEach(i=>{i(C(this,Yt))}),C(this,on).getQueryCache().notify({query:C(this,Be),type:"observerResultsUpdated"})})},qp);function E6(a,c){return Nn(c.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Nn(c.retryOnMount,a)===!1)}function Xm(a,c){return E6(a,c)||a.state.data!==void 0&&Gd(a,c,c.refetchOnMount)}function Gd(a,c,i){if(Nn(c.enabled,a)!==!1&&Ea(c.staleTime,a)!=="static"){const r=typeof i=="function"?i(a):i;return r==="always"||r!==!1&&h2(a,c)}return!1}function Im(a,c,i,r){return(a!==c||Nn(r.enabled,a)===!1)&&(!i.suspense||a.state.status!=="error")&&h2(a,i)}function h2(a,c){return Nn(c.enabled,a)!==!1&&a.isStaleByTime(Ea(c.staleTime,a))}function T6(a,c){return!wo(a.getCurrentResult(),c)}var R6=class extends N3{constructor(a,c){super(a,c)}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,c){var S,E;const{state:i}=a,r=super.createResult(a,c),{isFetching:d,isRefetching:f,isError:_,isRefetchError:g}=r,h=(E=(S=i.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:E.direction,m=_&&h==="forward",v=d&&h==="forward",y=_&&h==="backward",b=d&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:N6(c,i.data),hasPreviousPage:w6(c,i.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:b,isRefetchError:g&&!m&&!y,isRefetching:f&&!v&&!b}}},$c,cl,$t,us,rl,va,Gp,A6=(Gp=class extends x3{constructor(c){super();ie(this,rl);ie(this,$c);ie(this,cl);ie(this,$t);ie(this,us);W(this,$c,c.client),this.mutationId=c.mutationId,W(this,$t,c.mutationCache),W(this,cl,[]),this.state=c.state||C3(),this.setOptions(c.options),this.scheduleGc()}setOptions(c){this.options=c,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(c){C(this,cl).includes(c)||(C(this,cl).push(c),this.clearGcTimeout(),C(this,$t).notify({type:"observerAdded",mutation:this,observer:c}))}removeObserver(c){W(this,cl,C(this,cl).filter(i=>i!==c)),this.scheduleGc(),C(this,$t).notify({type:"observerRemoved",mutation:this,observer:c})}optionalRemove(){C(this,cl).length||(this.state.status==="pending"?this.scheduleGc():C(this,$t).remove(this))}continue(){var c;return((c=C(this,us))==null?void 0:c.continue())??this.execute(this.state.variables)}async execute(c){var _,g,h,m,v,y,b,N,S,E,T,z,H,O,k,Y,J,q;const i=()=>{je(this,rl,va).call(this,{type:"continue"})},r={client:C(this,$c),meta:this.options.meta,mutationKey:this.options.mutationKey};W(this,us,y3({fn:()=>this.options.mutationFn?this.options.mutationFn(c,r):Promise.reject(new Error("No mutationFn found")),onFail:(I,ae)=>{je(this,rl,va).call(this,{type:"failed",failureCount:I,error:ae})},onPause:()=>{je(this,rl,va).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,$t).canRun(this)}));const d=this.state.status==="pending",f=!C(this,us).canStart();try{if(d)i();else{je(this,rl,va).call(this,{type:"pending",variables:c,isPaused:f}),C(this,$t).config.onMutate&&await C(this,$t).config.onMutate(c,this,r);const ae=await((g=(_=this.options).onMutate)==null?void 0:g.call(_,c,r));ae!==this.state.context&&je(this,rl,va).call(this,{type:"pending",context:ae,variables:c,isPaused:f})}const I=await C(this,us).start();return await((m=(h=C(this,$t).config).onSuccess)==null?void 0:m.call(h,I,c,this.state.context,this,r)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,I,c,this.state.context,r)),await((N=(b=C(this,$t).config).onSettled)==null?void 0:N.call(b,I,null,this.state.variables,this.state.context,this,r)),await((E=(S=this.options).onSettled)==null?void 0:E.call(S,I,null,c,this.state.context,r)),je(this,rl,va).call(this,{type:"success",data:I}),I}catch(I){try{await((z=(T=C(this,$t).config).onError)==null?void 0:z.call(T,I,c,this.state.context,this,r))}catch(ae){Promise.reject(ae)}try{await((O=(H=this.options).onError)==null?void 0:O.call(H,I,c,this.state.context,r))}catch(ae){Promise.reject(ae)}try{await((Y=(k=C(this,$t).config).onSettled)==null?void 0:Y.call(k,void 0,I,this.state.variables,this.state.context,this,r))}catch(ae){Promise.reject(ae)}try{await((q=(J=this.options).onSettled)==null?void 0:q.call(J,void 0,I,c,this.state.context,r))}catch(ae){Promise.reject(ae)}throw je(this,rl,va).call(this,{type:"error",error:I}),I}finally{C(this,$t).runNext(this)}}},$c=new WeakMap,cl=new WeakMap,$t=new WeakMap,us=new WeakMap,rl=new WeakSet,va=function(c){const i=r=>{switch(c.type){case"failed":return{...r,failureCount:c.failureCount,failureReason:c.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:c.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:c.isPaused,status:"pending",variables:c.variables,submittedAt:Date.now()};case"success":return{...r,data:c.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:c.error,failureCount:r.failureCount+1,failureReason:c.error,isPaused:!1,status:"error"}}};this.state=i(this.state),wt.batch(()=>{C(this,cl).forEach(r=>{r.onMutationUpdate(c)}),C(this,$t).notify({mutation:this,type:"updated",action:c})})},Gp);function C3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bl,Yn,qc,Fp,M6=(Fp=class extends Ei{constructor(c={}){super();ie(this,Bl);ie(this,Yn);ie(this,qc);this.config=c,W(this,Bl,new Set),W(this,Yn,new Map),W(this,qc,0)}build(c,i,r){const d=new A6({client:c,mutationCache:this,mutationId:++uo(this,qc)._,options:c.defaultMutationOptions(i),state:r});return this.add(d),d}add(c){C(this,Bl).add(c);const i=mo(c);if(typeof i=="string"){const r=C(this,Yn).get(i);r?r.push(c):C(this,Yn).set(i,[c])}this.notify({type:"added",mutation:c})}remove(c){if(C(this,Bl).delete(c)){const i=mo(c);if(typeof i=="string"){const r=C(this,Yn).get(i);if(r)if(r.length>1){const d=r.indexOf(c);d!==-1&&r.splice(d,1)}else r[0]===c&&C(this,Yn).delete(i)}}this.notify({type:"removed",mutation:c})}canRun(c){const i=mo(c);if(typeof i=="string"){const r=C(this,Yn).get(i),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===c}else return!0}runNext(c){var r;const i=mo(c);if(typeof i=="string"){const d=(r=C(this,Yn).get(i))==null?void 0:r.find(f=>f!==c&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){wt.batch(()=>{C(this,Bl).forEach(c=>{this.notify({type:"removed",mutation:c})}),C(this,Bl).clear(),C(this,Yn).clear()})}getAll(){return Array.from(C(this,Bl))}find(c){const i={exact:!0,...c};return this.getAll().find(r=>Gm(i,r))}findAll(c={}){return this.getAll().filter(i=>Gm(c,i))}notify(c){wt.batch(()=>{this.listeners.forEach(i=>{i(c)})})}resumePausedMutations(){const c=this.getAll().filter(i=>i.state.isPaused);return wt.batch(()=>Promise.all(c.map(i=>i.continue().catch(Xt))))}},Bl=new WeakMap,Yn=new WeakMap,qc=new WeakMap,Fp);function mo(a){var c;return(c=a.options.scope)==null?void 0:c.id}var kl,Sa,un,Ul,Hl,xo,Fd,Vp,O6=(Vp=class extends Ei{constructor(i,r){super();ie(this,Hl);ie(this,kl);ie(this,Sa);ie(this,un);ie(this,Ul);W(this,kl,i),this.setOptions(r),this.bindMethods(),je(this,Hl,xo).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=C(this,kl).defaultMutationOptions(i),wo(this.options,r)||C(this,kl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,un),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&fs(r.mutationKey)!==fs(this.options.mutationKey)?this.reset():((d=C(this,un))==null?void 0:d.state.status)==="pending"&&C(this,un).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=C(this,un))==null||i.removeObserver(this)}onMutationUpdate(i){je(this,Hl,xo).call(this),je(this,Hl,Fd).call(this,i)}getCurrentResult(){return C(this,Sa)}reset(){var i;(i=C(this,un))==null||i.removeObserver(this),W(this,un,void 0),je(this,Hl,xo).call(this),je(this,Hl,Fd).call(this)}mutate(i,r){var d;return W(this,Ul,r),(d=C(this,un))==null||d.removeObserver(this),W(this,un,C(this,kl).getMutationCache().build(C(this,kl),this.options)),C(this,un).addObserver(this),C(this,un).execute(i)}},kl=new WeakMap,Sa=new WeakMap,un=new WeakMap,Ul=new WeakMap,Hl=new WeakSet,xo=function(){var r;const i=((r=C(this,un))==null?void 0:r.state)??C3();W(this,Sa,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Fd=function(i){wt.batch(()=>{var r,d,f,_,g,h,m,v;if(C(this,Ul)&&this.hasListeners()){const y=C(this,Sa).variables,b=C(this,Sa).context,N={client:C(this,kl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(d=(r=C(this,Ul)).onSuccess)==null||d.call(r,i.data,y,b,N)}catch(S){Promise.reject(S)}try{(_=(f=C(this,Ul)).onSettled)==null||_.call(f,i.data,null,y,b,N)}catch(S){Promise.reject(S)}}else if((i==null?void 0:i.type)==="error"){try{(h=(g=C(this,Ul)).onError)==null||h.call(g,i.error,y,b,N)}catch(S){Promise.reject(S)}try{(v=(m=C(this,Ul)).onSettled)==null||v.call(m,void 0,i.error,y,b,N)}catch(S){Promise.reject(S)}}}this.listeners.forEach(y=>{y(C(this,Sa))})})},Vp),ol,Qp,z6=(Qp=class extends Ei{constructor(c={}){super();ie(this,ol);this.config=c,W(this,ol,new Map)}build(c,i,r){const d=i.queryKey,f=i.queryHash??u2(d,i);let _=this.get(f);return _||(_=new C6({client:c,queryKey:d,queryHash:f,options:c.defaultQueryOptions(i),state:r,defaultOptions:c.getQueryDefaults(d)}),this.add(_)),_}add(c){C(this,ol).has(c.queryHash)||(C(this,ol).set(c.queryHash,c),this.notify({type:"added",query:c}))}remove(c){const i=C(this,ol).get(c.queryHash);i&&(c.destroy(),i===c&&C(this,ol).delete(c.queryHash),this.notify({type:"removed",query:c}))}clear(){wt.batch(()=>{this.getAll().forEach(c=>{this.remove(c)})})}get(c){return C(this,ol).get(c)}getAll(){return[...C(this,ol).values()]}find(c){const i={exact:!0,...c};return this.getAll().find(r=>qm(i,r))}findAll(c={}){const i=this.getAll();return Object.keys(c).length>0?i.filter(r=>qm(c,r)):i}notify(c){wt.batch(()=>{this.listeners.forEach(i=>{i(c)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(c=>{c.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(c=>{c.onOnline()})})}},ol=new WeakMap,Qp),dt,Na,wa,yi,xi,Ca,bi,ji,Yp,D6=(Yp=class{constructor(a={}){ie(this,dt);ie(this,Na);ie(this,wa);ie(this,yi);ie(this,xi);ie(this,Ca);ie(this,bi);ie(this,ji);W(this,dt,a.queryCache||new z6),W(this,Na,a.mutationCache||new M6),W(this,wa,a.defaultOptions||{}),W(this,yi,new Map),W(this,xi,new Map),W(this,Ca,0)}mount(){uo(this,Ca)._++,C(this,Ca)===1&&(W(this,bi,o2.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,dt).onFocus())})),W(this,ji,Co.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,dt).onOnline())})))}unmount(){var a,c;uo(this,Ca)._--,C(this,Ca)===0&&((a=C(this,bi))==null||a.call(this),W(this,bi,void 0),(c=C(this,ji))==null||c.call(this),W(this,ji,void 0))}isFetching(a){return C(this,dt).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return C(this,Na).findAll({...a,status:"pending"}).length}getQueryData(a){var i;const c=this.defaultQueryOptions({queryKey:a});return(i=C(this,dt).get(c.queryHash))==null?void 0:i.state.data}ensureQueryData(a){const c=this.defaultQueryOptions(a),i=C(this,dt).build(this,c),r=i.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&i.isStaleByTime(Ea(c.staleTime,i))&&this.prefetchQuery(c),Promise.resolve(r))}getQueriesData(a){return C(this,dt).findAll(a).map(({queryKey:c,state:i})=>{const r=i.data;return[c,r]})}setQueryData(a,c,i){const r=this.defaultQueryOptions({queryKey:a}),d=C(this,dt).get(r.queryHash),f=d==null?void 0:d.state.data,_=h6(c,f);if(_!==void 0)return C(this,dt).build(this,r).setData(_,{...i,manual:!0})}setQueriesData(a,c,i){return wt.batch(()=>C(this,dt).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,c,i)]))}getQueryState(a){var i;const c=this.defaultQueryOptions({queryKey:a});return(i=C(this,dt).get(c.queryHash))==null?void 0:i.state}removeQueries(a){const c=C(this,dt);wt.batch(()=>{c.findAll(a).forEach(i=>{c.remove(i)})})}resetQueries(a,c){const i=C(this,dt);return wt.batch(()=>(i.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},c)))}cancelQueries(a,c={}){const i={revert:!0,...c},r=wt.batch(()=>C(this,dt).findAll(a).map(d=>d.cancel(i)));return Promise.all(r).then(Xt).catch(Xt)}invalidateQueries(a,c={}){return wt.batch(()=>(C(this,dt).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"},c)))}refetchQueries(a,c={}){const i={...c,cancelRefetch:c.cancelRefetch??!0},r=wt.batch(()=>C(this,dt).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,i);return i.throwOnError||(f=f.catch(Xt)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Xt)}fetchQuery(a){const c=this.defaultQueryOptions(a);c.retry===void 0&&(c.retry=!1);const i=C(this,dt).build(this,c);return i.isStaleByTime(Ea(c.staleTime,i))?i.fetch(c):Promise.resolve(i.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Xt).catch(Xt)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Xt).catch(Xt)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Co.isOnline()?C(this,Na).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,dt)}getMutationCache(){return C(this,Na)}getDefaultOptions(){return C(this,wa)}setDefaultOptions(a){W(this,wa,a)}setQueryDefaults(a,c){C(this,yi).set(fs(a),{queryKey:a,defaultOptions:c})}getQueryDefaults(a){const c=[...C(this,yi).values()],i={};return c.forEach(r=>{Lc(a,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(a,c){C(this,xi).set(fs(a),{mutationKey:a,defaultOptions:c})}getMutationDefaults(a){const c=[...C(this,xi).values()],i={};return c.forEach(r=>{Lc(a,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(a){if(a._defaulted)return a;const c={...C(this,wa).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return c.queryHash||(c.queryHash=u2(c.queryKey,c)),c.refetchOnReconnect===void 0&&(c.refetchOnReconnect=c.networkMode!=="always"),c.throwOnError===void 0&&(c.throwOnError=!!c.suspense),!c.networkMode&&c.persister&&(c.networkMode="offlineFirst"),c.queryFn===d2&&(c.enabled=!1),c}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...C(this,wa).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){C(this,dt).clear(),C(this,Na).clear()}},dt=new WeakMap,Na=new WeakMap,wa=new WeakMap,yi=new WeakMap,xi=new WeakMap,Ca=new WeakMap,bi=new WeakMap,ji=new WeakMap,Yp),E3=j.createContext(void 0),Zn=a=>{const c=j.useContext(E3);if(!c)throw new Error("No QueryClient set, use QueryClientProvider to set one");return c},L6=({client:a,children:c})=>(j.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),l.jsx(E3.Provider,{value:a,children:c})),T3=j.createContext(!1),B6=()=>j.useContext(T3);T3.Provider;function k6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var U6=j.createContext(k6()),H6=()=>j.useContext(U6),$6=(a,c,i)=>{const r=i!=null&&i.state.error&&typeof a.throwOnError=="function"?f2(a.throwOnError,[i.state.error,i]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(c.isReset()||(a.retryOnMount=!1))},q6=a=>{j.useEffect(()=>{a.clearReset()},[a])},G6=({result:a,errorResetBoundary:c,throwOnError:i,query:r,suspense:d})=>a.isError&&!c.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||f2(i,[a.error,r])),F6=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,c)=>a.isLoading&&a.isFetching&&!c,Q6=(a,c)=>(a==null?void 0:a.suspense)&&c.isPending,Zm=(a,c,i)=>c.fetchOptimistic(a).catch(()=>{i.clearReset()});function R3(a,c,i){var b,N,S,E;const r=B6(),d=H6(),f=Zn(),_=f.defaultQueryOptions(a);(N=(b=f.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||N.call(b,_);const g=f.getQueryCache().get(_.queryHash);_._optimisticResults=r?"isRestoring":"optimistic",F6(_),$6(_,d,g),q6(d);const h=!f.getQueryCache().get(_.queryHash),[m]=j.useState(()=>new c(f,_)),v=m.getOptimisticResult(_),y=!r&&a.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(T=>{const z=y?m.subscribe(wt.batchCalls(T)):Xt;return m.updateResult(),z},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),j.useEffect(()=>{m.setOptions(_)},[_,m]),Q6(_,v))throw Zm(_,m,d);if(G6({result:v,errorResetBoundary:d,throwOnError:_.throwOnError,query:g,suspense:_.suspense}))throw v.error;if((E=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,_,v),_.experimental_prefetchInRender&&!Bc.isServer()&&V6(v,r)){const T=h?Zm(_,m,d):g==null?void 0:g.promise;T==null||T.catch(Xt).finally(()=>{m.updateResult()})}return _.notifyOnChangeProps?v:m.trackResult(v)}function Pt(a,c){return R3(a,N3)}function Ot(a,c){const i=Zn(),[r]=j.useState(()=>new O6(i,a));j.useEffect(()=>{r.setOptions(a)},[r,a]);const d=j.useSyncExternalStore(j.useCallback(_=>r.subscribe(wt.batchCalls(_)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=j.useCallback((_,g)=>{r.mutate(_,g).catch(Xt)},[r]);if(d.error&&f2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function Y6(a,c){return R3(a,R6)}const A3="https://app.auth.elcsa.ru/v1";let zc=null,es=null;function m2(){zc=null,es=null}function Pn(){return zc?Promise.resolve(zc):es||(es=fetch(`${A3}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(zc=a.token,es=null,zc)).catch(a=>{throw es=null,a}),es)}const X6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:m2,getCsrfToken:Pn},Symbol.toStringTag,{value:"Module"})),I6="modulepreload",Z6=function(a){return"/"+a},Pm={},P6=function(c,i,r){let d=Promise.resolve();if(i&&i.length>0){let _=function(m){return Promise.all(m.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=_(i.map(m=>{if(m=Z6(m),m in Pm)return;Pm[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":I6,v||(b.as="script"),b.crossOrigin="",b.href=m,h&&b.setAttribute("nonce",h),document.head.appendChild(b),v)return new Promise((N,S)=>{b.addEventListener("load",N),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(_){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=_,window.dispatchEvent(g),!g.defaultPrevented)throw _}return d.then(_=>{for(const g of _||[])g.status==="rejected"&&f(g.reason);return c().catch(f)})};let dd=null;const $n={get:()=>dd,set:a=>{dd=a},clear:()=>{dd=null}},K6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function ps(){const{getCsrfToken:a}=await P6(async()=>{const{getCsrfToken:d}=await Promise.resolve().then(()=>X6);return{getCsrfToken:d}},[]),c=await a(),i=await fetch(K6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":c}});if(!i.ok)throw new Error("Unauthorized");const r=await i.json();return r.access_token&&$n.set(r.access_token),r.access_token??r.result??!0}const W6="https://app.payment.elcsa.ru";async function Ti(a,c,i){const r=await Pn(),d=await fetch(`${W6}${a}`,{...c,credentials:"include",headers:{"X-CSRF-Token":r,...c.headers}});if(d.status===401&&i)try{return await ps(),Ti(a,c,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function J6(){return Ti("/payment/config",{},!0)}function e5(a){return Ti(`/payment/quote?usdt_amount=${a}`,{},!0)}function t5(a){return Ti(`/payment/quote/rub?total_rub=${a}`,{},!0)}function n5(a){return Ti("/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}const Vd=20;function l5(a,c=Vd){return Ti(`/payment/orders?offset=${a}&limit=${c}`,{},!0)}function a5(){return Pt({queryKey:["payment","config"],queryFn:J6,staleTime:6e4})}function s5(a){return Pt({queryKey:["payment","quote",a],queryFn:()=>e5(a),enabled:a>0,staleTime:3e4,retry:!1})}function i5(a){return Pt({queryKey:["payment","quote","rub",a],queryFn:()=>t5(a),enabled:a>0,staleTime:3e4,retry:!1})}function c5(){return Ot({mutationFn:n5,onSuccess:a=>{const c=a.order.itpay_payment_qr_url_desktop;c&&(window.location.href=c)}})}function r5(){return Y6({queryKey:["payment","orders"],queryFn:({pageParam:a})=>l5(a),initialPageParam:0,getNextPageParam:(a,c)=>{if(!(a.orders.length<Vd))return c.length*Vd},staleTime:3e4})}function Eo(a,c){const[i,r]=j.useState(a);return j.useEffect(()=>{const d=setTimeout(()=>r(a),c);return()=>clearTimeout(d)},[a,c]),i}const o5=new Date("2026-05-21T00:00:00").getTime(),M3=80,u5=21,fd=1e4,Km="Сумма слишком большая и превышает 600 000 ₽",Wm=a=>a.replace(/[^0-9.]/g,"");function O3({rateFallback:a=0}={}){const[c,i]=j.useState("usdt_to_rub"),[r,d]=j.useState("1000"),[f,_]=j.useState(String(fd)),{data:g}=a5(),h=Number(g==null?void 0:g.usdt_exchange_rate)||a,m=Number(g==null?void 0:g.gas_fee)||u5,v=c==="usdt_to_rub",y=Number.parseFloat(r)||0,b=Eo(y,400),{data:N,isError:S}=s5(v?b:0),E=Number.parseFloat(f)||0,T=Eo(E,400),{data:z,isError:H}=i5(v?0:T),O=!v&&E>0&&E<fd,k=(N==null?void 0:N.total_price)??"",Y=Number(k)||0,J=(z==null?void 0:z.usdt_amount)??"",q=Number(J)||0,I=v?Number(N==null?void 0:N.service_fee)||0:Number(z==null?void 0:z.service_fee)||0,ae=v?Y:E,me=v?y>0?Y/y:0:q>0?E/q:0;function he(){i(ve=>ve==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const Ce=v?{value:r,currency:"USDT",onChange:ve=>d(Wm(ve)),error:S?Km:void 0}:{value:f,currency:"RUB",onChange:ve=>_(Wm(ve)),error:O?`Минимальная сумма: ${fd.toLocaleString("ru-RU")}`:H?Km:void 0};return{isUsdtToRub:v,gasPriceRub:m,configUsdtRate:h,convert:Ce,pay:v?{value:k,currency:"RUB"}:{value:J,currency:"USDT"},onSwap:he,commission:{amount:ae,progress:Kx(ae),commission:I,effectiveRate:me},numUsdt:y,usdtFromRubNum:q,rubTotal:k,rubTotalNum:Y,numRubInput:E,usdtFromRub:J,rubBelowMin:O}}const de={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",REGISTER_TEST:"/register-test",CONVERTER_TEST:"/converter-test",PROFILE:"/profile",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc",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"},d5="_section_tz8mb_1",f5="_wrap_tz8mb_6",h5="_header_tz8mb_17",m5="_subtitle_tz8mb_26",p5="_pills_tz8mb_33",_5="_pill_tz8mb_33",v5="_pillValue_tz8mb_47",g5="_body_tz8mb_57",y5="_tabs_tz8mb_63",x5="_tab_tz8mb_63",b5="_payBtn_tz8mb_95",jn={section:d5,wrap:f5,header:h5,subtitle:m5,pills:p5,pill:_5,pillValue:v5,body:g5,tabs:y5,tab:x5,payBtn:b5};function j5(){const{gasPriceRub:a,configUsdtRate:c,convert:i,pay:r,onSwap:d,commission:f}=O3({rateFallback:M3});return l.jsx("section",{className:jn.section,id:"converter",children:l.jsxs("div",{className:jn.wrap,children:[l.jsxs("div",{className:jn.header,children:[l.jsxs("div",{children:[l.jsx(h3,{children:"Конвертация"}),l.jsx("div",{className:jn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:jn.pills,children:[l.jsxs("div",{className:jn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:jn.pillValue,children:[a.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:jn.pill,children:["USDT/RUB ",l.jsxs("span",{className:jn.pillValue,children:[c.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:jn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:jn.tabs,children:l.jsx("div",{className:jn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(So,{compact:!0,...i}),l.jsx(f3,{compact:!0,onClick:d}),l.jsx(So,{compact:!0,...r})]}),l.jsx(m3,{...f})]}),l.jsx(It,{to:de.CONVERTER,className:jn.payBtn,children:"Перейти к оплате"})]})})}const 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='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",N5="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",w5="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",C5="_footer_1qm30_1",E5="_top_1qm30_11",T5="_col_1qm30_18",R5="_heading_1qm30_35",A5="_companyName_1qm30_44",M5="_phone_1qm30_51",O5="_email_1qm30_58",z5="_socialIcons_1qm30_62",D5="_socialLink_1qm30_67",L5="_divider_1qm30_94",B5="_bottom_1qm30_99",Ht={footer:C5,top:E5,col:T5,heading:R5,companyName:A5,phone:M5,email:O5,socialIcons:z5,socialLink:D5,divider:L5,bottom:B5},k5=[{href:"#",icon:N5,label:"Telegram"},{href:"#",icon:w5,label:"WhatsApp"},{href:"#",icon:S5,label:"Instagram"}];function _s(){return l.jsxs("footer",{className:Ht.footer,children:[l.jsxs("div",{className:Ht.top,children:[l.jsxs("div",{className:Ht.col,children:[l.jsx("p",{className:Ht.companyName,children:"ООО «ЭКСА»"}),l.jsx("p",{children:"ИНН 9810001062"}),l.jsx("p",{children:"ОГРН 1257800060990"})]}),l.jsxs("div",{className:Ht.col,children:[l.jsx("h4",{className:Ht.heading,children:"О компании"}),l.jsx(It,{to:de.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),l.jsx(It,{to:de.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),l.jsx(It,{to:de.POLITIKA_COOKIE,children:"Политика cookie"}),l.jsx(It,{to:de.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),l.jsx(It,{to:de.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),l.jsxs("div",{className:Ht.col,children:[l.jsx("p",{className:Ht.phone,children:"+7 (812) 123-33-23"}),l.jsx("h4",{className:Ht.heading,children:"Адрес"}),l.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),l.jsx("a",{href:"mailto:support@elcsa.ru",className:Ht.email,children:"support@elcsa.ru"})]}),l.jsxs("div",{className:Ht.col,children:[l.jsx("h4",{className:Ht.heading,children:"Мы в соцсетях"}),l.jsx("div",{className:Ht.socialIcons,children:k5.map(({href:a,icon:c,label:i})=>l.jsx("a",{href:a,className:Ht.socialLink,"aria-label":i,children:l.jsx("img",{src:c,alt:i})},i))})]})]}),l.jsx("div",{className:Ht.divider}),l.jsxs("div",{className:Ht.bottom,children:[l.jsx("p",{children:"© 2026. Все права защищены."}),l.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const dl="/assets/logo-full-white-DEb7oTyu.png",U5="_nav_5011x_1",H5="_logo_5011x_16",$5="_right_5011x_22",q5="_link_5011x_28",G5="_btn_5011x_47",wc={nav:U5,logo:H5,right:$5,link:q5,btn:G5};function Ri(){return l.jsxs("nav",{className:wc.nav,children:[l.jsx("a",{className:wc.logo,href:"/",children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsxs("div",{className:wc.right,children:[l.jsx("a",{className:wc.link,href:"#about",children:"О нас"}),l.jsx(It,{className:wc.btn,to:de.WALLET,children:"Личный кабинет"})]})]})}const F5="_flow_1oxsf_1",V5="_card_1oxsf_7",Q5="_cardRub_1oxsf_17",Y5="_cardEksa_1oxsf_27",X5="_cardUsdt_1oxsf_37",I5="_eksaLogo_1oxsf_47",Z5="_ghost_1oxsf_54",P5="_ghostBtc_1oxsf_69",K5="_ghostEth_1oxsf_74",W5="_logoCircle_1oxsf_79",J5="_logoRub_1oxsf_90",eb="_logoUsdt_1oxsf_95",tb="_badge_1oxsf_100",nb="_badgeRub_1oxsf_113",lb="_badgeUsdt_1oxsf_117",ab="_status_1oxsf_121",sb="_statusDot_1oxsf_132",ib="_path_1oxsf_139",it={flow:F5,card:V5,cardRub:Q5,cardEksa:Y5,cardUsdt:X5,eksaLogo:I5,ghost:Z5,ghostBtc:P5,ghostEth:K5,logoCircle:W5,logoRub:J5,logoUsdt:eb,badge:tb,badgeRub:nb,badgeUsdt:lb,status:ab,statusDot:sb,path:ib};function cb(){return l.jsxs("div",{className:it.flow,children:[l.jsx("div",{className:`${it.ghost} ${it.ghostBtc}`,children:l.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),l.jsx("div",{className:`${it.ghost} ${it.ghostEth}`,children:l.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),l.jsxs("div",{className:`${it.card} ${it.cardRub}`,children:[l.jsx("div",{className:`${it.logoCircle} ${it.logoRub}`,children:"₽"}),l.jsx("div",{className:`${it.badge} ${it.badgeRub}`,children:"10 000 ₽"})]}),l.jsx("div",{className:`${it.card} ${it.cardEksa}`,children:l.jsx("img",{src:dl,alt:"ЭКСА",className:it.eksaLogo})}),l.jsxs("div",{className:`${it.card} ${it.cardUsdt}`,children:[l.jsx("div",{className:`${it.logoCircle} ${it.logoUsdt}`,children:"₮"}),l.jsx("div",{className:`${it.badge} ${it.badgeUsdt}`,children:"≈ 125.3 USDT"}),l.jsxs("div",{className:it.status,children:[l.jsx("span",{className:it.statusDot})," ✓ Зачислено"]})]}),l.jsxs("svg",{className:it.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),l.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),l.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"}),l.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"}),l.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),l.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),l.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),l.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),l.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),l.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}function rb(a){const[c,i]=j.useState(Date.now());j.useEffect(()=>{const f=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(f)},[]);const r=Math.max(0,a-c),d=f=>String(f).padStart(2,"0");return{d:d(Math.floor(r/864e5)),h:d(Math.floor(r%864e5/36e5)),m:d(Math.floor(r%36e5/6e4)),s:d(Math.floor(r%6e4/1e3))}}const ob="_label_ikzdd_1",ub="_row_ikzdd_8",db="_unit_ikzdd_14",fb="_num_ikzdd_21",hb="_lbl_ikzdd_29",Cc={label:ob,row:ub,unit:db,num:fb,lbl:hb},mb=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function pb({target:a}){const c=rb(a);return l.jsxs("div",{children:[l.jsx("div",{className:Cc.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),l.jsx("div",{className:Cc.row,children:mb.map(([i,r])=>l.jsxs("div",{className:Cc.unit,children:[l.jsx("div",{className:Cc.num,children:c[i]}),l.jsx("div",{className:Cc.lbl,children:r})]},i))})]})}const _b="_card_17ihg_51",vb="_statusPill_17ihg_84",gb="_statusDot_17ihg_99",yb="_flowRow_17ihg_107",xb="_curBlock_17ihg_114",bb="_curIcon_17ihg_122",jb="_rub_17ihg_133",Sb="_usdt_17ihg_141",Nb="_flowLine_17ihg_150",wb="_curAmount_17ihg_154",Cb="_curLabel_17ihg_163",Eb="_curCheck_17ihg_171",Tb="_bridge_17ihg_182",Rb="_bridgeLine_17ihg_191",Ab="_bridgeLabel_17ihg_198",Mb="_divider_17ihg_206",Ob="_details_17ihg_212",zb="_detailRow_17ihg_220",Db="_detailLabel_17ihg_229",Lb="_detailValue_17ihg_235",Bb="_green_17ihg_242",Ve={card:_b,statusPill:vb,statusDot:gb,flowRow:yb,curBlock:xb,curIcon:bb,rub:jb,usdt:Sb,flowLine:Nb,curAmount:wb,curLabel:Cb,curCheck:Eb,bridge:Tb,bridgeLine:Rb,bridgeLabel:Ab,divider:Mb,details:Ob,detailRow:zb,detailLabel:Db,detailValue:Lb,green:Bb};function kb(){return l.jsxs("div",{className:Ve.card,children:[l.jsxs("div",{className:Ve.statusPill,children:[l.jsx("span",{className:Ve.statusDot}),"Операция завершена"]}),l.jsxs("div",{className:Ve.flowRow,children:[l.jsxs("div",{className:Ve.curBlock,children:[l.jsx("div",{className:`${Ve.curIcon} ${Ve.rub}`,children:"₽"}),l.jsx("div",{className:Ve.curAmount,children:"10 000 ₽"}),l.jsx("div",{className:Ve.curLabel,children:"Отправлено"})]}),l.jsxs("div",{className:Ve.bridge,children:[l.jsx("div",{className:Ve.bridgeLine,children:l.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[l.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ve.flowLine}),l.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),l.jsx("div",{className:Ve.bridgeLabel,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("div",{className:Ve.bridgeLine,children:l.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[l.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Ve.flowLine}),l.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),l.jsxs("div",{className:Ve.curBlock,children:[l.jsx("div",{className:`${Ve.curIcon} ${Ve.usdt}`,children:"₮"}),l.jsx("div",{className:Ve.curAmount,children:"125.3 USDT"}),l.jsxs("div",{className:Ve.curCheck,children:[l.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),l.jsx("div",{className:Ve.divider}),l.jsxs("div",{className:Ve.details,children:[l.jsxs("div",{className:Ve.detailRow,children:[l.jsx("span",{className:Ve.detailLabel,children:"Курс"}),l.jsxs("span",{className:Ve.detailValue,children:[M3.toFixed(2)," ₽ / USDT"]})]}),l.jsxs("div",{className:Ve.detailRow,children:[l.jsx("span",{className:Ve.detailLabel,children:"Комиссия"}),l.jsx("span",{className:`${Ve.detailValue} ${Ve.green}`,children:"0%"})]})]})]})}const Ub="_hero_mnobr_1",Hb="_content_mnobr_33",$b="_left_mnobr_45",qb="_desktop_mnobr_52",Gb="_mobile_mnobr_56",Fb="_right_mnobr_60",Vb="_title_mnobr_67",Qb="_line2_mnobr_74",Yb="_reflection_mnobr_85",Xb="_cta_mnobr_96",il={hero:Ub,content:Hb,left:$b,desktop:qb,mobile:Gb,right:Fb,title:Vb,line2:Qb,reflection:Yb,cta:Xb};function Ib(){return l.jsx("section",{className:il.hero,children:l.jsxs("div",{className:il.content,children:[l.jsxs("div",{className:il.left,children:[l.jsx("div",{className:il.desktop,children:l.jsx(cb,{})}),l.jsx("div",{className:il.mobile,children:l.jsx(kb,{})})]}),l.jsxs("div",{className:il.right,children:[l.jsxs("h1",{className:il.title,children:["Ваш мост",l.jsx("span",{className:il.reflection,"aria-hidden":"true",children:"Ваш мост"}),l.jsxs("span",{className:il.line2,children:["в мир",l.jsx("br",{}),"цифровых",l.jsx("br",{}),"активов"]})]}),l.jsxs("div",{children:[l.jsx(pb,{target:o5}),l.jsx("a",{href:"#converter",className:il.cta,children:"Попробовать калькулятор"})]})]})]})})}const Zb=[{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 сек"}],Pb="_section_10lhb_1",Kb="_wrap_10lhb_6",Wb="_title_10lhb_11",Jb="_tableWrap_10lhb_18",e8="_table_10lhb_18",t8="_name_10lhb_52",n8="_icon_10lhb_58",l8="_icon_btc_10lhb_71",a8="_icon_eth_10lhb_75",s8="_icon_trx_10lhb_79",i8="_icon_sol_10lhb_83",c8="_icon_bnb_10lhb_87",r8="_label_10lhb_91",o8="_ticker_10lhb_96",u8="_speedBar_10lhb_102",d8="_speedFill_10lhb_110",f8="_fee_10lhb_115",h8="_confirm_10lhb_121",m8="_footnote_10lhb_126",Ft={section:Pb,wrap:Kb,title:Wb,tableWrap:Jb,table:e8,name:t8,icon:n8,icon_btc:l8,icon_eth:a8,icon_trx:s8,icon_sol:i8,icon_bnb:c8,label:r8,ticker:o8,speedBar:u8,speedFill:d8,fee:f8,confirm:h8,footnote:m8};function p8(){return l.jsx("section",{className:Ft.section,children:l.jsxs("div",{className:Ft.wrap,children:[l.jsx("h2",{className:Ft.title,children:"Поддерживаемые сети"}),l.jsx("div",{className:Ft.tableWrap,children:l.jsxs("table",{className:Ft.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Сеть"}),l.jsx("th",{children:"Скорость"}),l.jsx("th",{children:"Комиссия"}),l.jsx("th",{children:"Подтверждение"})]})}),l.jsx("tbody",{children:Zb.map(a=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsxs("div",{className:Ft.name,children:[l.jsx("div",{className:`${Ft.icon} ${Ft[`icon_${a.cls}`]}`,children:a.icon}),l.jsx("span",{className:Ft.label,children:a.name}),l.jsx("span",{className:Ft.ticker,children:a.ticker})]})}),l.jsx("td",{children:l.jsx("div",{className:Ft.speedBar,children:l.jsx("div",{className:Ft.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),l.jsx("td",{children:l.jsx("span",{className:Ft.fee,children:a.fee})}),l.jsx("td",{children:l.jsx("span",{className:Ft.confirm,children:a.confirm})})]},a.ticker))})]})}),l.jsx("div",{className:Ft.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function _8(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsxs("main",{children:[l.jsx(Ib,{}),l.jsx(Px,{}),l.jsx(j5,{}),l.jsx(p8,{})]}),l.jsx(_s,{})]})}async function Qd(a,c,i){const r=await Pn(),d=$n.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...c.headers},_=await fetch(`${A3}${a}`,{...c,credentials:"include",headers:f});if(_.status===401&&i)try{return await ps(),Qd(a,c,!1)}catch{throw $n.clear(),new Error("Unauthorized")}const g=await _.json();if(!_.ok)throw g;return g}const Vc={get:a=>Qd(a,{},!0),post:(a,c)=>Qd(a,{method:"POST",body:JSON.stringify(c)},!0)};function v8(a){return Vc.post("/auth/registration/start",a)}function g8(a){return Vc.post("/auth/registration/complete",a)}function y8(a){return Vc.post("/auth/login/start",a)}function x8(a){return Vc.post("/auth/login/complete",a)}async function b8(){const a=await Pn();return Vc.post("/auth/logout",{_csrf:a})}const Qc="https://app.users.elcsa.ru";async function p2(){const a=await Pn(),c=$n.get();return{"X-CSRF-Token":a,...c?{Authorization:`Bearer ${c}`}:{}}}async function j8(){const a=await p2(),c=await fetch(`${Qc}/me/`,{credentials:"include",headers:a}),i=await c.json();if(!c.ok)throw i;return i}async function S8(a){const c=await p2(),i=await fetch(`${Qc}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...c},body:JSON.stringify(a)}),r=await i.json();if(!i.ok)throw r;return r}async function N8(a){const c=await Pn(),i=await fetch(`${Qc}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":c},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}async function w8(a){const c=await p2(),i=await fetch(`${Qc}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...c},body:JSON.stringify({phone:a})});if(!i.ok)throw await i.json().catch(()=>({}))}async function C8(a){const c=await Pn(),i=await fetch(`${Qc}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":c},body:JSON.stringify(a)});if(!i.ok)throw await i.json().catch(()=>({}))}function ql(a){return Pt({queryKey:["me"],queryFn:j8,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function E8(){const a=Zn();return Ot({mutationFn:S8,onSuccess:c=>{a.setQueryData(["me"],c)}})}function T8(){const a=Zn();return Ot({mutationFn:w8,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const Bo=["auth"];function R8(){return Pt({queryKey:Bo,queryFn:ps,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function z3(){const{data:a,isLoading:c,isError:i}=R8();return{isAuthenticated:!!a&&!i,isLoading:c}}const A8="https://app.b2b.elcsa.ru";async function Yc(a,c,i){const r=await Pn(),d=await fetch(`${A8}${a}`,{...c,credentials:"include",headers:{"X-CSRF-Token":r,...c.headers}});if(d.status===401&&i)try{return await ps(),Yc(a,c,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function M8(a){return Yc("/purchase-requests",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}function O8(a=50,c=0){return Yc(`/purchase-requests?limit=${a}&offset=${c}`,{},!0)}function z8(){return Yc("/v1/organizations/wallets",{},!0)}function D8(){return Yc("/v1/organizations/wallets/balances",{},!0)}function L8(){const a=Zn();return Ot({mutationFn:M8,onSuccess:()=>{a.invalidateQueries({queryKey:["b2b","purchase-requests"]})}})}function B8(){return Pt({queryKey:["b2b","purchase-requests"],queryFn:()=>O8(),staleTime:3e4})}const D3="https://app.cryptowallet.elcsa.ru",_2=["ETH","BSC","BTC","TRX","SOL"];async function Ra(a,c=!0){const i=await Pn(),r=$n.get(),d=await fetch(`${D3}${a}`,{credentials:"include",headers:{"X-CSRF-Token":i,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&c)try{return await ps(),Ra(a,!1)}catch{throw $n.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function Kn(a,c,i=!0,r={}){const d=await Pn(),f=$n.get(),_=await fetch(`${D3}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(c)});if(_.status===401&&i)try{return await ps(),Kn(a,c,!1,r)}catch{throw $n.clear(),new Error("Unauthorized")}const g=await _.json();if(!_.ok)throw g;return g}async function k8(){return(await Ra("/api/wallets")).data}async function U8(a){return(await Ra(`/api/wallets/${a}/balance`)).data}async function H8(a){return(await Ra(`/api/prices?symbols=${a.join(",")}`)).data}async function $8(a,c){return Kn(`/api/wallets/${a}/send`,c)}async function q8(){return(await Ra("/api/wallets/portfolio")).data}const G8={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function L3(a,c){const i=a==null?void 0:a.toUpperCase();return _2.includes(i)?i:(c?G8[c.toUpperCase()]:void 0)??null}function To(a){const c=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(c)?c:0}function Jm(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:To(a.usd_price),usdValue:To(a.usd_value)}}function F8(a,c){const i={};for(const[r,d]of Object.entries(a.tokens??{}))i[r]=Jm(d);return{chain:c,address:a.address,native:Jm(a.native),tokens:i,totalUsd:To(a.total_usd),stale:!1,lastUpdated:0}}async function B3(){const a=await D8(),c={};for(const i of a.items??[]){const r=L3(i.chain,i.native_symbol);r&&(c[r]=F8(i,r))}return{totalUsd:To(a.total_usd),hasErrors:!!a.has_errors,perChain:c}}const V8={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function Q8(a){const i=(await B3()).perChain[a];return i?{chain:a,address:i.address,native:i.native,tokens:i.tokens}:{chain:a,address:"",native:V8,tokens:{}}}async function Y8(){const a=await z8(),c=[];for(const i of a??[]){const r=L3(i.chain);r&&c.push({chain:r,address:i.address,derivationPath:i.derivation_path})}return c}async function X8(){return(await Ra("/api/tokens")).data}async function I8(){var c;const a=await Ra("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((c=a.data)==null?void 0:c.tokens)??a.tokens??{}}async function Z8(a){var r;const c=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 Ra(`/api/jumper/quote-best?${c}`);return((r=i.data)==null?void 0:r.body)??i.body??i}async function P8(a){var i;const c=await Kn("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((i=c.data)==null?void 0:i.data)??c}async function K8(a){return Kn("/api/relay/quote",a)}async function W8(a){return Kn("/api/relay/execute/swap",a)}async function J8(a,c){const i=`relay-${a.toLowerCase()}-${Date.now()}`;return Kn(`/api/wallets/${a}/sign-raw-evm-tx`,c,!0,{"Idempotency-Key":i})}async function ej(a){return Kn("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function k3(a){return(await Kn("/api/wallets/TRX/swap/quote",a)).data}async function tj(a){return Kn("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function nj(){await Kn("/api/wallets/create",{})}async function lj(){return(await Kn("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function v2(){const{data:a}=ql();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Ro(a){const{isLegal:c,ready:i}=v2();return Pt({queryKey:["wallet","balance",a,c?"org":"self"],queryFn:c?()=>Q8(a):()=>U8(a),enabled:c?i:!0,staleTime:3e4})}function aj(a){return Pt({queryKey:["wallet","prices",a.join(",")],queryFn:()=>H8(a),staleTime:300*1e3})}function sj(){return Ot({mutationFn:({chain:a,...c})=>$8(a,c)})}function ko(){const{isLegal:a,ready:c}=v2();return Pt({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?Y8:k8,enabled:a?c:!0,staleTime:600*1e3})}function Uo(){const{isLegal:a,ready:c}=v2();return Pt({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?B3:q8,enabled:a?c:!0,staleTime:3e4})}function ij(){return Pt({queryKey:["wallet","tokens"],queryFn:X8,staleTime:600*1e3})}function cj(){return Pt({queryKey:["wallet","jumper","tokens"],queryFn:I8,staleTime:600*1e3})}function rj(){return Ot({mutationFn:a=>Z8(a)})}function oj(){return Ot({mutationFn:a=>P8(a)})}function uj(){return Ot({mutationFn:nj})}function dj(){return Pt({queryKey:["wallet","mnemonic"],queryFn:lj,staleTime:1/0,retry:!1})}function U3(a){return Pt({queryKey:["relay","quote",a==null?void 0:a.originChainId,a==null?void 0:a.destinationChainId,a==null?void 0:a.originCurrency,a==null?void 0:a.destinationCurrency,a==null?void 0:a.amount],queryFn:()=>K8(a),enabled:!!a,staleTime:1e4})}function fj(){return Ot({mutationFn:a=>W8(a)})}function hj(){return Ot({mutationFn:({chain:a,txData:c})=>a==="SOL"?ej(c):J8(a,c)})}function mj(a){return Pt({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>k3(a),enabled:!!a,staleTime:1e4})}function pj(){return Ot({mutationFn:k3})}function _j(){return Ot({mutationFn:a=>tj(a)})}const vj="_card_1kfaj_1",gj="_label_1kfaj_18",yj="_amount_1kfaj_27",xj="_actions_1kfaj_41",bj="_btn_1kfaj_46",Za={card:vj,label:gj,amount:yj,actions:xj,btn:bj},jj="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",Sj="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 Nj(){const{data:a,isLoading:c}=Uo(),i=c||!a||a.totalUsd==null?"$—":`$${a.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:Za.card,children:[l.jsxs("div",{className:Za.left,children:[l.jsx("div",{className:Za.label,children:"Общий баланс"}),l.jsx("div",{className:Za.amount,children:i})]}),l.jsxs("div",{className:Za.actions,children:[l.jsxs(It,{to:de.CONVERTER,className:Za.btn,type:"button",children:[l.jsx("img",{src:Sj,alt:"swap"}),"Пополнить кошелёк"]}),l.jsxs(It,{to:de.SWAP,className:Za.btn,type:"button",children:[l.jsx("img",{src:jj,alt:"topup"}),"Своп / Бридж"]})]})]})}const wj="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",Cj="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",Ej="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",Tj="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",Rj="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",Aj="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",Mj="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",Oj="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",zj="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",Dj="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",Lj="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",Bj="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",kj="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",Uj="/assets/popcat-DOGy5LFs.svg",Hj="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",$j="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",qj="/assets/uni-C5oaqT41.svg",Gj="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",Fj="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",Vj="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",Qj="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",_t={BTC:wj,ETH:Cj,SOL:Ej,TRX:Tj,BNB:Rj,ARB:Aj,BONK:Mj,BUSD:Oj,DAI:zj,DOGE:Dj,JUP:Lj,LINK:Bj,ORCA:kj,POPCAT:Uj,PYTH:Hj,RAY:$j,UNI:qj,USDC:Gj,USDT:Fj,W:Vj,WIF:Qj};function H3(a){return _t[a.toUpperCase()]}function hs(a,c=8){const i=typeof a=="number"?a.toString():a,r=i.indexOf(".");return r===-1?i:i.slice(0,r+1+c)}const Yj=[{ticker:"BTC",name:"Bitcoin",logo:_t.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:_t.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:_t.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:_t.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:_t.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],Xj={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},Ij={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},$3="#2A2D3A";function q3(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function G3(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function F3(a){return Yj.find(c=>c.ticker===a)}function V3(a,c){const i=Xj[a],r=F3(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:Ij[a],logo:H3(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??$3,price:G3(c.usdPrice),change:0,bal:hs(c.formatted),usd:q3(c.usdValue),usdValue:c.usdValue,fav:!1}}function Q3(a,c,i){const r=F3(c);return{id:`${a}-${c}`,chain:a,ticker:c,name:(r==null?void 0:r.name)??c,logo:H3(c)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??$3,price:G3(i.usdPrice),change:0,bal:hs(i.formatted),usd:q3(i.usdValue),usdValue:i.usdValue,fav:!1}}function ep(a){return parseFloat(a.formatted)>0}function Zj(a){const{data:c,isLoading:i}=Ro(a);if(!c)return{rows:[],isLoading:i};const r=V3(a,c.native),d=Object.entries(c.tokens??{}).map(([f,_])=>Q3(a,f,_));return{rows:[r,...d],isLoading:i}}function Pj(){var r;const{data:a,isLoading:c}=Uo();if(!a)return{rows:[],isLoading:c};const i=[];for(const d of _2){const f=(r=a.perChain)==null?void 0:r[d];if(!f)continue;const _=[];f.native&&ep(f.native)&&_.push(V3(d,f.native));for(const[g,h]of Object.entries(f.tokens??{}))ep(h)&&_.push(Q3(d,g,h));_.sort((g,h)=>(h.usdValue??0)-(g.usdValue??0)),i.push(..._)}return{rows:i,isLoading:c}}const Kj={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"]},Wj={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}},Jj={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},e7="_overlay_1hejd_1",t7="_dialog_1hejd_14",n7="_dialogIn_1hejd_1",l7="_header_1hejd_37",a7="_title_1hejd_44",s7="_close_1hejd_50",i7="_selectsRow_1hejd_72",c7="_selectGroup_1hejd_79",r7="_selectLabel_1hejd_83",o7="_selectTrigger_1hejd_93",u7="_selectTriggerOpen_1hejd_112",d7="_selectValue_1hejd_117",f7="_chevron_1hejd_125",h7="_chevronOpen_1hejd_131",m7="_tokenDot_1hejd_137",p7="_speedDot_1hejd_158",_7="_speedDot_slow_1hejd_165",v7="_speedDot_normal_1hejd_170",g7="_speedDot_fast_1hejd_175",y7="_dropdown_1hejd_182",x7="_dropdownItem_1hejd_195",b7="_dropdownItemActive_1hejd_215",j7="_dropdownTicker_1hejd_220",S7="_dropdownName_1hejd_225",N7="_field_1hejd_233",w7="_fieldLabel_1hejd_237",C7="_input_1hejd_247",E7="_amountWrap_1hejd_283",T7="_amountInput_1hejd_287",R7="_amountTicker_1hejd_291",A7="_maxHint_1hejd_304",M7="_maxBtn_1hejd_314",O7="_errorMsg_1hejd_333",z7="_submitBtn_1hejd_346",oe={overlay:e7,dialog:t7,dialogIn:n7,header:l7,title:a7,close:s7,selectsRow:i7,selectGroup:c7,selectLabel:r7,selectTrigger:o7,selectTriggerOpen:u7,selectValue:d7,chevron:f7,chevronOpen:h7,tokenDot:m7,speedDot:p7,speedDot_slow:_7,speedDot_normal:v7,speedDot_fast:g7,dropdown:y7,dropdownItem:x7,dropdownItemActive:b7,dropdownTicker:j7,dropdownName:S7,field:N7,fieldLabel:w7,input:C7,amountWrap:E7,amountInput:T7,amountTicker:R7,maxHint:A7,maxBtn:M7,errorMsg:O7,submitBtn:z7},tp=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function D7(a){var c;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)&&((c=i.detail[0])!=null&&c.msg))return String(i.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function L7({open:a,onClose:c,network:i,tokens:r=[],initialToken:d=""}){var Ce;const f=Wj[i],_=Kj[i],[g,h]=j.useState(d),[m,v]=j.useState("normal"),[y,b]=j.useState(""),[N,S]=j.useState(""),[E,T]=j.useState(null),z=sj(),H=((Ce=tp.find(re=>re.value===m))==null?void 0:Ce.label)??"Нормально",O=g===""?f.nativeSymbol:g,k=r.find(re=>re.ticker===(g===""?f.nativeSymbol:g));if(j.useEffect(()=>{h(d)},[d]),j.useEffect(()=>{h("")},[i]),j.useEffect(()=>{z.isSuccess&&c()},[z.isSuccess,c]),j.useEffect(()=>{if(!a){b(""),S(""),T(null),z.reset();return}const re=ve=>{ve.key==="Escape"&&c()};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[a,c]),!a)return null;const Y=f.hasToken,J=f.hasFeeTier,q=Y||J,I=Y&&J?2:1;function ae(){E?T(null):c()}function me(re,ve){const[ue,$=""]=re.split("."),X=$.slice(0,ve).padEnd(ve,"0");return(BigInt(ue||"0")*10n**BigInt(ve)+BigInt(X||"0")).toString()}function he(){const ve=g===""?me(N,f.nativeDecimals):N;z.mutate({chain:i,to:y,amount:ve,...g?{token:g}:{},...f.hasFeeTier?{feeTier:m}:{}})}return l.jsx("div",{className:oe.overlay,onClick:ae,children:l.jsxs("div",{className:oe.dialog,onClick:re=>re.stopPropagation(),children:[l.jsxs("div",{className:oe.header,children:[l.jsxs("div",{className:oe.headerLeft,children:[l.jsx("span",{className:oe.chainDot,style:{background:f.color}}),l.jsxs("span",{className:oe.title,children:["Отправить · ",f.label]})]}),l.jsx("button",{className:oe.close,onClick:c,type:"button","aria-label":"Закрыть",children:l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),q&&l.jsxs("div",{className:oe.selectsRow,style:{gridTemplateColumns:`repeat(${I}, 1fr)`},children:[Y&&l.jsxs("div",{className:oe.selectGroup,children:[l.jsx("label",{className:oe.selectLabel,children:"Токен"}),l.jsxs("button",{type:"button",className:`${oe.selectTrigger} ${E==="token"?oe.selectTriggerOpen:""}`,onClick:()=>T(re=>re==="token"?null:"token"),children:[l.jsx("span",{className:oe.tokenDot,style:{background:f.color},children:O[0]}),l.jsx("span",{className:oe.selectValue,children:O}),l.jsx("svg",{className:`${oe.chevron} ${E==="token"?oe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:l.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),E==="token"&&l.jsxs("div",{className:oe.dropdown,children:[l.jsxs("button",{type:"button",className:`${oe.dropdownItem} ${g===""?oe.dropdownItemActive:""}`,onClick:()=>{h(""),T(null)},children:[l.jsx("span",{className:oe.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),l.jsx("span",{className:oe.dropdownTicker,children:f.nativeSymbol}),l.jsx("span",{className:oe.dropdownName,children:"Нативный"})]}),_.map(re=>l.jsxs("button",{type:"button",className:`${oe.dropdownItem} ${g===re?oe.dropdownItemActive:""}`,onClick:()=>{h(re),T(null)},children:[l.jsx("span",{className:oe.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:re[0]}),l.jsx("span",{className:oe.dropdownTicker,children:re})]},re))]})]}),J&&l.jsxs("div",{className:oe.selectGroup,children:[l.jsx("label",{className:oe.selectLabel,children:"Скорость"}),l.jsxs("button",{type:"button",className:`${oe.selectTrigger} ${E==="speed"?oe.selectTriggerOpen:""}`,onClick:()=>T(re=>re==="speed"?null:"speed"),children:[l.jsx("span",{className:`${oe.speedDot} ${oe[`speedDot_${m}`]}`}),l.jsx("span",{className:oe.selectValue,children:H}),l.jsx("svg",{className:`${oe.chevron} ${E==="speed"?oe.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:l.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),E==="speed"&&l.jsx("div",{className:oe.dropdown,children:tp.map(re=>l.jsxs("button",{type:"button",className:`${oe.dropdownItem} ${re.value===m?oe.dropdownItemActive:""}`,onClick:()=>{v(re.value),T(null)},children:[l.jsx("span",{className:`${oe.speedDot} ${oe[`speedDot_${re.value}`]}`}),l.jsx("span",{children:re.label})]},re.value))})]})]}),l.jsxs("div",{className:oe.field,children:[l.jsx("label",{className:oe.fieldLabel,children:"Адрес кошелька"}),l.jsx("input",{className:oe.input,type:"text",placeholder:f.addressPlaceholder,value:y,onChange:re=>b(re.target.value),autoComplete:"off",spellCheck:!1})]}),l.jsxs("div",{className:oe.field,children:[l.jsx("label",{className:oe.fieldLabel,children:"Количество"}),l.jsxs("div",{className:oe.amountWrap,children:[l.jsx("input",{className:`${oe.input} ${oe.amountInput}`,type:"number",placeholder:"0.00",value:N,onChange:re=>S(re.target.value),min:"0",step:"any"}),l.jsx("span",{className:oe.amountTicker,children:O})]}),k&&l.jsxs("div",{className:oe.maxHint,children:["Макс:"," ",l.jsxs("button",{type:"button",className:oe.maxBtn,onClick:()=>S(k.bal),children:[k.bal," ",O]})]})]}),z.isError&&l.jsx("div",{className:oe.errorMsg,children:D7(z.error)}),l.jsx("button",{className:oe.submitBtn,type:"button",disabled:z.isPending,onClick:he,children:z.isPending?"Отправка…":"Отправить"})]})})}var B7=Object.defineProperty,Ao=Object.getOwnPropertySymbols,Y3=Object.prototype.hasOwnProperty,X3=Object.prototype.propertyIsEnumerable,np=(a,c,i)=>c in a?B7(a,c,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[c]=i,Yd=(a,c)=>{for(var i in c||(c={}))Y3.call(c,i)&&np(a,i,c[i]);if(Ao)for(var i of Ao(c))X3.call(c,i)&&np(a,i,c[i]);return a},Xd=(a,c)=>{var i={};for(var r in a)Y3.call(a,r)&&c.indexOf(r)<0&&(i[r]=a[r]);if(a!=null&&Ao)for(var r of Ao(a))c.indexOf(r)<0&&X3.call(a,r)&&(i[r]=a[r]);return i};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var ms;(a=>{const c=class Me{constructor(h,m,v,y){if(this.version=h,this.errorCorrectionLevel=m,this.modules=[],this.isFunction=[],h<Me.MIN_VERSION||h>Me.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let b=[];for(let S=0;S<this.size;S++)b.push(!1);for(let S=0;S<this.size;S++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const N=this.addEccAndInterleave(v);if(this.drawCodewords(N),y==-1){let S=1e9;for(let E=0;E<8;E++){this.applyMask(E),this.drawFormatBits(E);const T=this.getPenaltyScore();T<S&&(y=E,S=T),this.applyMask(E)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(h,m){const v=a.QrSegment.makeSegments(h);return Me.encodeSegments(v,m)}static encodeBinary(h,m){const v=a.QrSegment.makeBytes(h);return Me.encodeSegments([v],m)}static encodeSegments(h,m,v=1,y=40,b=-1,N=!0){if(!(Me.MIN_VERSION<=v&&v<=y&&y<=Me.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let S,E;for(S=v;;S++){const O=Me.getNumDataCodewords(S,m)*8,k=_.getTotalBits(h,S);if(k<=O){E=k;break}if(S>=y)throw new RangeError("Data too long")}for(const O of[Me.Ecc.MEDIUM,Me.Ecc.QUARTILE,Me.Ecc.HIGH])N&&E<=Me.getNumDataCodewords(S,O)*8&&(m=O);let T=[];for(const O of h){i(O.mode.modeBits,4,T),i(O.numChars,O.mode.numCharCountBits(S),T);for(const k of O.getData())T.push(k)}d(T.length==E);const z=Me.getNumDataCodewords(S,m)*8;d(T.length<=z),i(0,Math.min(4,z-T.length),T),i(0,(8-T.length%8)%8,T),d(T.length%8==0);for(let O=236;T.length<z;O^=253)i(O,8,T);let H=[];for(;H.length*8<T.length;)H.push(0);return T.forEach((O,k)=>H[k>>>3]|=O<<7-(k&7)),new Me(S,m,H,b)}getModule(h,m){return 0<=h&&h<this.size&&0<=m&&m<this.size&&this.modules[m][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(),m=h.length;for(let v=0;v<m;v++)for(let y=0;y<m;y++)v==0&&y==0||v==0&&y==m-1||v==m-1&&y==0||this.drawAlignmentPattern(h[v],h[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const m=this.errorCorrectionLevel.formatBits<<3|h;let v=m;for(let b=0;b<10;b++)v=v<<1^(v>>>9)*1335;const y=(m<<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 m=this.version<<12|h;d(m>>>18==0);for(let v=0;v<18;v++){const y=r(m,v),b=this.size-11+v%3,N=Math.floor(v/3);this.setFunctionModule(b,N,y),this.setFunctionModule(N,b,y)}}drawFinderPattern(h,m){for(let v=-4;v<=4;v++)for(let y=-4;y<=4;y++){const b=Math.max(Math.abs(y),Math.abs(v)),N=h+y,S=m+v;0<=N&&N<this.size&&0<=S&&S<this.size&&this.setFunctionModule(N,S,b!=2&&b!=4)}}drawAlignmentPattern(h,m){for(let v=-2;v<=2;v++)for(let y=-2;y<=2;y++)this.setFunctionModule(h+y,m+v,Math.max(Math.abs(y),Math.abs(v))!=1)}setFunctionModule(h,m,v){this.modules[m][h]=v,this.isFunction[m][h]=!0}addEccAndInterleave(h){const m=this.version,v=this.errorCorrectionLevel;if(h.length!=Me.getNumDataCodewords(m,v))throw new RangeError("Invalid argument");const y=Me.NUM_ERROR_CORRECTION_BLOCKS[v.ordinal][m],b=Me.ECC_CODEWORDS_PER_BLOCK[v.ordinal][m],N=Math.floor(Me.getNumRawDataModules(m)/8),S=y-N%y,E=Math.floor(N/y);let T=[];const z=Me.reedSolomonComputeDivisor(b);for(let O=0,k=0;O<y;O++){let Y=h.slice(k,k+E-b+(O<S?0:1));k+=Y.length;const J=Me.reedSolomonComputeRemainder(Y,z);O<S&&Y.push(0),T.push(Y.concat(J))}let H=[];for(let O=0;O<T[0].length;O++)T.forEach((k,Y)=>{(O!=E-b||Y>=S)&&H.push(k[O])});return d(H.length==N),H}drawCodewords(h){if(h.length!=Math.floor(Me.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let m=0;for(let v=this.size-1;v>=1;v-=2){v==6&&(v=5);for(let y=0;y<this.size;y++)for(let b=0;b<2;b++){const N=v-b,E=(v+1&2)==0?this.size-1-y:y;!this.isFunction[E][N]&&m<h.length*8&&(this.modules[E][N]=r(h[m>>>3],7-(m&7)),m++)}}d(m==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let m=0;m<this.size;m++)for(let v=0;v<this.size;v++){let y;switch(h){case 0:y=(v+m)%2==0;break;case 1:y=m%2==0;break;case 2:y=v%3==0;break;case 3:y=(v+m)%3==0;break;case 4:y=(Math.floor(v/3)+Math.floor(m/2))%2==0;break;case 5:y=v*m%2+v*m%3==0;break;case 6:y=(v*m%2+v*m%3)%2==0;break;case 7:y=((v+m)%2+v*m%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[m][v]&&y&&(this.modules[m][v]=!this.modules[m][v])}}getPenaltyScore(){let h=0;for(let b=0;b<this.size;b++){let N=!1,S=0,E=[0,0,0,0,0,0,0];for(let T=0;T<this.size;T++)this.modules[b][T]==N?(S++,S==5?h+=Me.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,E),N||(h+=this.finderPenaltyCountPatterns(E)*Me.PENALTY_N3),N=this.modules[b][T],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,E)*Me.PENALTY_N3}for(let b=0;b<this.size;b++){let N=!1,S=0,E=[0,0,0,0,0,0,0];for(let T=0;T<this.size;T++)this.modules[T][b]==N?(S++,S==5?h+=Me.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,E),N||(h+=this.finderPenaltyCountPatterns(E)*Me.PENALTY_N3),N=this.modules[T][b],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,E)*Me.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let N=0;N<this.size-1;N++){const S=this.modules[b][N];S==this.modules[b][N+1]&&S==this.modules[b+1][N]&&S==this.modules[b+1][N+1]&&(h+=Me.PENALTY_N2)}let m=0;for(const b of this.modules)m=b.reduce((N,S)=>N+(S?1:0),m);const v=this.size*this.size,y=Math.ceil(Math.abs(m*20-v*10)/v)-1;return d(0<=y&&y<=9),h+=y*Me.PENALTY_N4,d(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,m=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-=m)v.splice(1,0,y);return v}}static getNumRawDataModules(h){if(h<Me.MIN_VERSION||h>Me.MAX_VERSION)throw new RangeError("Version number out of range");let m=(16*h+128)*h+64;if(h>=2){const v=Math.floor(h/7)+2;m-=(25*v-10)*v-55,h>=7&&(m-=36)}return d(208<=m&&m<=29648),m}static getNumDataCodewords(h,m){return Math.floor(Me.getNumRawDataModules(h)/8)-Me.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h]*Me.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let m=[];for(let y=0;y<h-1;y++)m.push(0);m.push(1);let v=1;for(let y=0;y<h;y++){for(let b=0;b<m.length;b++)m[b]=Me.reedSolomonMultiply(m[b],v),b+1<m.length&&(m[b]^=m[b+1]);v=Me.reedSolomonMultiply(v,2)}return m}static reedSolomonComputeRemainder(h,m){let v=m.map(y=>0);for(const y of h){const b=y^v.shift();v.push(0),m.forEach((N,S)=>v[S]^=Me.reedSolomonMultiply(N,b))}return v}static reedSolomonMultiply(h,m){if(h>>>8||m>>>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^=(m>>>y&1)*h;return d(v>>>8==0),v}finderPenaltyCountPatterns(h){const m=h[1];d(m<=this.size*3);const v=m>0&&h[2]==m&&h[3]==m*3&&h[4]==m&&h[5]==m;return(v&&h[0]>=m*4&&h[6]>=m?1:0)+(v&&h[6]>=m*4&&h[0]>=m?1:0)}finderPenaltyTerminateAndCount(h,m,v){return h&&(this.finderPenaltyAddHistory(m,v),m=0),m+=this.size,this.finderPenaltyAddHistory(m,v),this.finderPenaltyCountPatterns(v)}finderPenaltyAddHistory(h,m){m[0]==0&&(h+=this.size),m.pop(),m.unshift(h)}};c.MIN_VERSION=1,c.MAX_VERSION=40,c.PENALTY_N1=3,c.PENALTY_N2=3,c.PENALTY_N3=40,c.PENALTY_N4=10,c.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]],c.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=c;function i(g,h,m){if(h<0||h>31||g>>>h)throw new RangeError("Value out of range");for(let v=h-1;v>=0;v--)m.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 ut{constructor(h,m,v){if(this.mode=h,this.numChars=m,this.bitData=v,m<0)throw new RangeError("Invalid argument");this.bitData=v.slice()}static makeBytes(h){let m=[];for(const v of h)i(v,8,m);return new ut(ut.Mode.BYTE,h.length,m)}static makeNumeric(h){if(!ut.isNumeric(h))throw new RangeError("String contains non-numeric characters");let m=[];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,m),v+=y}return new ut(ut.Mode.NUMERIC,h.length,m)}static makeAlphanumeric(h){if(!ut.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let m=[],v;for(v=0;v+2<=h.length;v+=2){let y=ut.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v))*45;y+=ut.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v+1)),i(y,11,m)}return v<h.length&&i(ut.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v)),6,m),new ut(ut.Mode.ALPHANUMERIC,h.length,m)}static makeSegments(h){return h==""?[]:ut.isNumeric(h)?[ut.makeNumeric(h)]:ut.isAlphanumeric(h)?[ut.makeAlphanumeric(h)]:[ut.makeBytes(ut.toUtf8ByteArray(h))]}static makeEci(h){let m=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)i(h,8,m);else if(h<16384)i(2,2,m),i(h,14,m);else if(h<1e6)i(6,3,m),i(h,21,m);else throw new RangeError("ECI assignment value out of range");return new ut(ut.Mode.ECI,0,m)}static isNumeric(h){return ut.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return ut.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,m){let v=0;for(const y of h){const b=y.mode.numCharCountBits(m);if(y.numChars>=1<<b)return 1/0;v+=4+b+y.bitData.length}return v}static toUtf8ByteArray(h){h=encodeURI(h);let m=[];for(let v=0;v<h.length;v++)h.charAt(v)!="%"?m.push(h.charCodeAt(v)):(m.push(parseInt(h.substring(v+1,v+3),16)),v+=2);return m}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let _=f;a.QrSegment=f})(ms||(ms={}));(a=>{(c=>{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),c.Ecc=i})(a.QrCode||(a.QrCode={}))})(ms||(ms={}));(a=>{(c=>{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]),c.Mode=i})(a.QrSegment||(a.QrSegment={}))})(ms||(ms={}));var oi=ms;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var k7={L:oi.QrCode.Ecc.LOW,M:oi.QrCode.Ecc.MEDIUM,Q:oi.QrCode.Ecc.QUARTILE,H:oi.QrCode.Ecc.HIGH},I3=128,Z3="L",P3="#FFFFFF",K3="#000000",W3=!1,J3=1,U7=4,H7=0,$7=.1;function e_(a,c=0){const i=[];return a.forEach(function(r,d){let f=null;r.forEach(function(_,g){if(!_&&f!==null){i.push(`M${f+c} ${d+c}h${g-f}v1H${f+c}z`),f=null;return}if(g===r.length-1){if(!_)return;f===null?i.push(`M${g+c},${d+c} h1v1H${g+c}z`):i.push(`M${f+c},${d+c} h${g+1-f}v1H${f+c}z`);return}_&&f===null&&(f=g)})}),i.join("")}function t_(a,c){return a.slice().map((i,r)=>r<c.y||r>=c.y+c.h?i:i.map((d,f)=>f<c.x||f>=c.x+c.w?d:!1))}function q7(a,c,i,r){if(r==null)return null;const d=a.length+i*2,f=Math.floor(c*$7),_=d/c,g=(r.width||f)*_,h=(r.height||f)*_,m=r.x==null?a.length/2-g/2:r.x*_,v=r.y==null?a.length/2-h/2:r.y*_,y=r.opacity==null?1:r.opacity;let b=null;if(r.excavate){let S=Math.floor(m),E=Math.floor(v),T=Math.ceil(g+m-S),z=Math.ceil(h+v-E);b={x:S,y:E,w:T,h:z}}const N=r.crossOrigin;return{x:m,y:v,h,w:g,excavation:b,opacity:y,crossOrigin:N}}function G7(a,c){return c!=null?Math.max(Math.floor(c),0):a?U7:H7}function n_({value:a,level:c,minVersion:i,includeMargin:r,marginSize:d,imageSettings:f,size:_,boostLevel:g}){let h=Nt.useMemo(()=>{const S=(Array.isArray(a)?a:[a]).reduce((E,T)=>(E.push(...oi.QrSegment.makeSegments(T)),E),[]);return oi.QrCode.encodeSegments(S,k7[c],i,void 0,void 0,g)},[a,c,i,g]);const{cells:m,margin:v,numCells:y,calculatedImageSettings:b}=Nt.useMemo(()=>{let N=h.getModules();const S=G7(r,d),E=N.length+S*2,T=q7(N,_,S,f);return{cells:N,margin:S,numCells:E,calculatedImageSettings:T}},[h,_,f,r,d]);return{qrcode:h,margin:v,cells:m,numCells:y,calculatedImageSettings:b}}var F7=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),V7=Nt.forwardRef(function(c,i){const r=c,{value:d,size:f=I3,level:_=Z3,bgColor:g=P3,fgColor:h=K3,includeMargin:m=W3,minVersion:v=J3,boostLevel:y,marginSize:b,imageSettings:N}=r,E=Xd(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:T}=E,z=Xd(E,["style"]),H=N==null?void 0:N.src,O=Nt.useRef(null),k=Nt.useRef(null),Y=Nt.useCallback(ve=>{O.current=ve,typeof i=="function"?i(ve):i&&(i.current=ve)},[i]),[J,q]=Nt.useState(!1),{margin:I,cells:ae,numCells:me,calculatedImageSettings:he}=n_({value:d,level:_,minVersion:v,boostLevel:y,includeMargin:m,marginSize:b,imageSettings:N,size:f});Nt.useEffect(()=>{if(O.current!=null){const ve=O.current,ue=ve.getContext("2d");if(!ue)return;let $=ae;const X=k.current,se=he!=null&&X!==null&&X.complete&&X.naturalHeight!==0&&X.naturalWidth!==0;se&&he.excavation!=null&&($=t_(ae,he.excavation));const Ee=window.devicePixelRatio||1;ve.height=ve.width=f*Ee;const Te=f/me*Ee;ue.scale(Te,Te),ue.fillStyle=g,ue.fillRect(0,0,me,me),ue.fillStyle=h,F7?ue.fill(new Path2D(e_($,I))):ae.forEach(function(R,V){R.forEach(function(P,te){P&&ue.fillRect(te+I,V+I,1,1)})}),he&&(ue.globalAlpha=he.opacity),se&&ue.drawImage(X,he.x+I,he.y+I,he.w,he.h)}}),Nt.useEffect(()=>{q(!1)},[H]);const Ce=Yd({height:f,width:f},T);let re=null;return H!=null&&(re=Nt.createElement("img",{src:H,key:H,style:{display:"none"},onLoad:()=>{q(!0)},ref:k,crossOrigin:he==null?void 0:he.crossOrigin})),Nt.createElement(Nt.Fragment,null,Nt.createElement("canvas",Yd({style:Ce,height:f,width:f,ref:Y,role:"img"},z)),re)});V7.displayName="QRCodeCanvas";var l_=Nt.forwardRef(function(c,i){const r=c,{value:d,size:f=I3,level:_=Z3,bgColor:g=P3,fgColor:h=K3,includeMargin:m=W3,minVersion:v=J3,boostLevel:y,title:b,marginSize:N,imageSettings:S}=r,E=Xd(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:T,cells:z,numCells:H,calculatedImageSettings:O}=n_({value:d,level:_,minVersion:v,boostLevel:y,includeMargin:m,marginSize:N,imageSettings:S,size:f});let k=z,Y=null;S!=null&&O!=null&&(O.excavation!=null&&(k=t_(z,O.excavation)),Y=Nt.createElement("image",{href:S.src,height:O.h,width:O.w,x:O.x+T,y:O.y+T,preserveAspectRatio:"none",opacity:O.opacity,crossOrigin:O.crossOrigin}));const J=e_(k,T);return Nt.createElement("svg",Yd({height:f,width:f,viewBox:`0 0 ${H} ${H}`,ref:i,role:"img"},E),!!b&&Nt.createElement("title",null,b),Nt.createElement("path",{fill:g,d:`M0,0 h${H}v${H}H0z`,shapeRendering:"crispEdges"}),Nt.createElement("path",{fill:h,d:J,shapeRendering:"crispEdges"}),Y)});l_.displayName="QRCodeSVG";const Q7="_overlay_1nlll_6",Y7="_dialog_1nlll_18",X7="_header_1nlll_27",I7="_title_1nlll_34",Z7="_closeBtn_1nlll_40",P7="_body_1nlll_55",K7="_qrWrap_1nlll_62",W7="_label_1nlll_71",J7="_fieldRow_1nlll_77",e9="_addressInput_1nlll_82",t9="_copyBtn_1nlll_101",n9="_copyBtnDone_1nlll_127",l9="_skeleton_1nlll_132",a9="_error_1nlll_145",sn={overlay:Q7,dialog:Y7,header:X7,title:I7,closeBtn:Z7,body:P7,qrWrap:K7,label:W7,fieldRow:J7,addressInput:e9,copyBtn:t9,copyBtnDone:n9,skeleton:l9,error:a9},s9={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function i9({open:a,onClose:c,chain:i}){const{data:r,isLoading:d,isError:f}=ko(),[_,g]=j.useState(!1);if(j.useEffect(()=>{if(!a)return;function b(N){N.key==="Escape"&&c()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,c]),j.useEffect(()=>{a||g(!1)},[a]),!a)return null;const h=r==null?void 0:r.find(b=>b.chain===i),m=(h==null?void 0:h.address)??"";function v(){m&&navigator.clipboard.writeText(m).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})}function y(b){b.target===b.currentTarget&&c()}return l.jsx("div",{className:sn.overlay,onMouseDown:y,children:l.jsxs("div",{className:sn.dialog,children:[l.jsxs("div",{className:sn.header,children:[l.jsxs("span",{className:sn.title,children:["Получить ",s9[i]]}),l.jsx("button",{className:sn.closeBtn,type:"button",onClick:c,"aria-label":"Закрыть",children:"✕"})]}),l.jsxs("div",{className:sn.body,children:[d&&l.jsx("div",{className:sn.skeleton}),f&&l.jsx("p",{className:sn.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&l.jsxs(l.Fragment,{children:[l.jsxs("label",{className:sn.label,children:["Ваш ",i,"-адрес"]}),l.jsxs("div",{className:sn.fieldRow,children:[l.jsx("input",{className:sn.addressInput,type:"text",readOnly:!0,value:m,onFocus:b=>b.target.select()}),l.jsx("button",{className:`${sn.copyBtn} ${_?sn.copyBtnDone:""}`,type:"button",onClick:v,disabled:!m,children:_?"Скопировано!":"Копировать"})]}),m&&l.jsx("div",{className:sn.qrWrap,children:l.jsx(l_,{value:m,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const c9="_wrap_uur6k_1",r9="_loading_uur6k_9",o9="_table_uur6k_14",u9="_thStar_uur6k_44",d9="_groupHeader_uur6k_49",f9="_groupHeaderInner_uur6k_58",h9="_groupLabel_uur6k_66",m9="_groupIcon_uur6k_77",p9="_groupTotal_uur6k_83",_9="_mobileGroupHeader_uur6k_90",v9="_right_uur6k_99",g9="_center_uur6k_103",y9="_btnGroup_uur6k_108",x9="_star_uur6k_114",b9="_starOn_uur6k_129",j9="_tokId_uur6k_133",S9="_tokLogo_uur6k_139",N9="_price_uur6k_174",w9="_balCol_uur6k_201",C9="_sendBtn_uur6k_214",E9="_receiveBtn_uur6k_237",T9="_noFont_uur6k_260",R9="_mobileList_uur6k_265",A9="_card_uur6k_269",M9="_cardInfo_uur6k_281",O9="_cardTop_uur6k_286",z9="_cardTicker_uur6k_293",D9="_cardName_uur6k_299",L9="_cardBalCrypto_uur6k_305",B9="_cardBot_uur6k_312",k9="_cardPrice_uur6k_318",U9="_cardBalUsd_uur6k_330",H9="_mobileActions_uur6k_351",_e={wrap:c9,loading:r9,table:o9,thStar:u9,groupHeader:d9,groupHeaderInner:f9,groupLabel:h9,groupIcon:m9,groupTotal:p9,mobileGroupHeader:_9,right:v9,center:g9,btnGroup:y9,star:x9,starOn:b9,tokId:j9,tokLogo:S9,price:N9,balCol:w9,sendBtn:C9,receiveBtn:E9,noFont:T9,mobileList:R9,card:A9,cardInfo:M9,cardTop:O9,cardTicker:z9,cardName:D9,cardBalCrypto:L9,cardBot:B9,cardPrice:k9,cardBalUsd:U9,mobileActions:H9},lp={BTC:{label:"Bitcoin",icon:_t.BTC},ETH:{label:"Ethereum",icon:_t.ETH},SOL:{label:"Solana",icon:_t.SOL},TRX:{label:"Tron",icon:_t.TRX},BSC:{label:"BNB Chain",icon:_t.BNB}};function ap(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function $9(a){const c=[],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),c.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return c}function sp(a){return a.id??a.ticker}function a_({rows:a,isLoading:c,fallbackChain:i="ETH",groupByChain:r=!1}){const[d,f]=j.useState({}),[_,g]=j.useState({open:!1,network:"ETH"}),[h,m]=j.useState({open:!1,chain:"ETH"});function v(q){return q.chain??Jj[q.ticker]??i}function y(q){g({open:!0,network:v(q)})}function b(){g(q=>({...q,open:!1}))}function N(q){m({open:!0,chain:v(q)})}function S(){m(q=>({...q,open:!1}))}function E(q){f(I=>({...I,[q]:!I[q]}))}const T=l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),z=l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function H(q){const I=sp(q);return l.jsxs("tr",{children:[l.jsx("td",{children:l.jsx("button",{className:`${_e.star} ${d[I]?_e.starOn:""}`,onClick:()=>E(I),type:"button","aria-label":d[I]?"Убрать из избранного":"В избранное",children:"★"})}),l.jsx("td",{children:l.jsxs("div",{className:_e.tokId,children:[l.jsx("div",{className:_e.tokLogo,style:{background:q.color},children:q.logo?l.jsx("img",{src:q.logo,alt:q.ticker,className:""}):q.ticker[0]}),l.jsxs("div",{className:_e.balCol,children:[l.jsx("b",{className:_e.cardTicker,children:q.ticker}),l.jsx("span",{className:_e.noFont,children:q.name})]})]})}),l.jsx("td",{className:_e.right,children:l.jsx("span",{className:_e.price,children:q.price})}),l.jsx("td",{className:_e.right,children:l.jsxs("div",{className:_e.balCol,children:[l.jsx("b",{children:q.bal}),l.jsx("span",{children:q.usd})]})}),l.jsx("td",{className:_e.center,children:l.jsxs("div",{className:_e.btnGroup,children:[l.jsxs("button",{className:_e.receiveBtn,type:"button",onClick:ae=>{ae.stopPropagation(),N(q)},children:[z,"Получить"]}),l.jsxs("button",{className:_e.sendBtn,type:"button",onClick:ae=>{ae.stopPropagation(),y(q)},children:[T,"Отправить"]})]})})]},I)}function O(q){const I=sp(q);return l.jsxs("div",{className:_e.card,children:[l.jsx("button",{className:`${_e.star} ${d[I]?_e.starOn:""}`,onClick:()=>E(I),type:"button","aria-label":d[I]?"Убрать из избранного":"В избранное",children:"★"}),l.jsx("div",{className:_e.tokLogo,style:{background:q.color},children:q.logo?l.jsx("img",{src:q.logo,alt:q.ticker,className:""}):q.ticker[0]}),l.jsxs("div",{className:_e.cardInfo,children:[l.jsxs("div",{className:_e.cardTop,children:[l.jsxs("div",{children:[l.jsx("span",{className:_e.cardTicker,children:q.ticker}),l.jsx("span",{className:_e.cardName,children:q.name})]}),l.jsx("span",{className:_e.cardBalCrypto,children:q.bal})]}),l.jsxs("div",{className:_e.cardBot,children:[l.jsx("span",{className:_e.cardPrice,children:q.price}),l.jsx("span",{className:_e.cardBalUsd,children:q.usd})]})]})]},I)}function k(q){const I=lp[q.chain];return l.jsx("tr",{className:_e.groupHeader,children:l.jsx("td",{colSpan:5,children:l.jsxs("div",{className:_e.groupHeaderInner,children:[l.jsxs("span",{className:_e.groupLabel,children:[l.jsx("img",{src:I.icon,alt:"",className:_e.groupIcon}),I.label]}),l.jsx("span",{className:_e.groupTotal,children:ap(q.totalUsd)})]})})},`h-${q.chain}`)}function Y(q){const I=lp[q.chain];return l.jsxs("div",{className:_e.mobileGroupHeader,children:[l.jsxs("span",{className:_e.groupLabel,children:[l.jsx("img",{src:I.icon,alt:"",className:_e.groupIcon}),I.label]}),l.jsx("span",{className:_e.groupTotal,children:ap(q.totalUsd)})]},`mh-${q.chain}`)}const J=r?$9(a):null;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:`${_e.wrap} ${c?_e.loading:""}`,children:[l.jsxs("table",{className:_e.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:_e.thStar,children:"☆"}),l.jsx("th",{children:"Токены"}),l.jsx("th",{className:_e.right,children:"Цена"}),l.jsx("th",{className:_e.right,children:"Баланс"}),l.jsx("th",{className:_e.center})]})}),l.jsx("tbody",{children:J?J.map(q=>l.jsxs(j.Fragment,{children:[k(q),q.rows.map(H)]},q.chain)):a.map(H)})]}),l.jsx("div",{className:_e.mobileList,children:J?J.map(q=>l.jsxs(j.Fragment,{children:[Y(q),q.rows.map(O)]},q.chain)):a.map(O)})]}),l.jsxs("div",{className:_e.mobileActions,children:[l.jsxs("button",{className:_e.receiveBtn,type:"button",onClick:()=>a[0]&&N(a[0]),children:[z,"Получить"]}),l.jsxs("button",{className:_e.sendBtn,type:"button",onClick:()=>a[0]&&y(a[0]),children:[T,"Отправить"]})]}),l.jsx(L7,{open:_.open,onClose:b,network:_.network,tokens:a}),l.jsx(i9,{open:h.open,onClose:S,chain:h.chain})]})}function q9({chain:a}){const{rows:c,isLoading:i}=Zj(a);return l.jsx(a_,{rows:c,isLoading:i,fallbackChain:a})}function G9(){const{rows:a,isLoading:c}=Pj();return l.jsx(a_,{rows:a,isLoading:c,groupByChain:!0})}const F9="_nav_ip34n_1",V9="_logo_ip34n_11",Q9="_ticker_ip34n_16",Y9="_tick_ip34n_16",X9="_accountWrapper_ip34n_42",I9="_account_ip34n_42",Z9="_dropdown_ip34n_56",P9="_dropdownItem_ip34n_70",K9="_danger_ip34n_89",W9="_avatar_ip34n_93",cn={nav:F9,logo:V9,ticker:Q9,tick:Y9,accountWrapper:X9,account:I9,dropdown:Z9,dropdownItem:P9,danger:K9,avatar:W9},ip=["BTC","ETH","SOL"],J9=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function eS(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function Ho(){const[a,c]=j.useState(!1),[i,r]=j.useState(!1),d=j.useRef(null),f=En(),_=Zn(),{data:g}=ql(),{data:h}=aj(ip),m=g?[g.first_name,g.middle_name].filter(Boolean).map(J9).join(" "):"",{mutate:v}=Ot({mutationFn:b8,onSuccess:()=>{$n.clear(),_.clear(),_.setQueryData(Bo,null),f(de.HOME)},onError:()=>r(!0)});j.useEffect(()=>{function b(N){d.current&&!d.current.contains(N.target)&&c(!1)}return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);function y(){v(),c(!1)}return l.jsxs(l.Fragment,{children:[l.jsxs("nav",{className:cn.nav,children:[l.jsx("a",{href:"/",className:cn.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("div",{className:cn.ticker,children:ip.map(b=>{var N;return l.jsxs("div",{className:cn.tick,children:[l.jsx("b",{children:b}),l.jsx("span",{children:eS((N=h==null?void 0:h[b])==null?void 0:N.usd)})]},b)})}),l.jsxs("div",{className:cn.accountWrapper,ref:d,children:[l.jsxs("button",{className:cn.account,onClick:()=>c(b=>!b),children:[g!=null&&g.avatar_link?l.jsx("img",{src:g.avatar_link,alt:"",className:cn.avatar}):l.jsx("div",{className:cn.avatar}),l.jsx("span",{children:m||"Test account"})]}),a&&l.jsxs("div",{className:cn.dropdown,children:[l.jsx(It,{to:de.PROFILE,className:cn.dropdownItem,onClick:()=>c(!1),children:"Личный кабинет"}),l.jsx(It,{to:de.WALLET,className:cn.dropdownItem,onClick:()=>c(!1),children:"Кошелёк"}),l.jsx(It,{to:de.TRANSACTIONS,className:cn.dropdownItem,onClick:()=>c(!1),children:"Транзакции"}),l.jsx("button",{className:`${cn.dropdownItem} ${cn.danger}`,onClick:y,children:"Выйти"})]})]})]}),i&&l.jsx(Ta,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const tS="_tabs_1ne0a_1",nS="_tab_1ne0a_1",lS="_active_1ne0a_31",aS="_icon_1ne0a_37",Pa={tabs:tS,tab:nS,active:lS,icon:aS},sS=[{chain:"BTC",label:"BTC",icon:_t.BTC},{chain:"ETH",label:"ETH",icon:_t.ETH},{chain:"SOL",label:"SOL",icon:_t.SOL},{chain:"TRX",label:"TRX",icon:_t.TRX},{chain:"BSC",label:"BSC",icon:_t.BNB}],iS=l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),l.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),l.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function cS(){return l.jsxs("div",{className:Pa.tabs,children:[l.jsxs(Td,{to:"/wallet",end:!0,className:({isActive:a})=>`${Pa.tab} ${a?Pa.active:""}`,children:[l.jsx("span",{className:Pa.icon,children:iS}),l.jsx("span",{children:"Все монеты"})]}),sS.map(a=>l.jsxs(Td,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:c})=>`${Pa.tab} ${c?Pa.active:""}`,children:[l.jsx("img",{src:a.icon,alt:a.label,className:Pa.icon}),l.jsx("span",{children:a.label})]},a.chain))]})}const rS="_page_10fz2_1",oS="_main_10fz2_8",uS="_glow_10fz2_17",dS="_error_10fz2_29",fS="_noWallet_10fz2_38",Ec={page:rS,main:oS,glow:uS,error:dS,noWallet:fS};function cp(){var y;const{data:a,isLoading:c,isError:i}=ql(),{error:r}=Uo(),{mutate:d,isPending:f}=uj(),_=En(),{chain:g}=Ay(),h=(y=r==null?void 0:r.error)==null?void 0:y.includes("No wallets");if(c)return null;if(i)return l.jsx("div",{className:Ec.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return l.jsx(Do,{to:de.KYC,replace:!0});const m=g==null?void 0:g.toUpperCase(),v=m&&_2.includes(m)?m:void 0;return l.jsxs("div",{className:Ec.page,children:[l.jsx(Ho,{}),l.jsxs("main",{className:Ec.main,children:[l.jsx("div",{className:Ec.glow}),h?l.jsxs("div",{className:Ec.noWallet,children:[l.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),l.jsx(Zt,{variant:"outline",onClick:()=>d(void 0,{onSuccess:()=>_(de.SEED_PHRASE)}),disabled:f,children:f?"Создание...":"Создать кошелёк"})]}):l.jsxs(l.Fragment,{children:[l.jsx(Nj,{}),l.jsx(cS,{}),v?l.jsx(q9,{chain:v}):l.jsx(G9,{})]})]})]})}const s_=_t.BTC,i_=_t.ETH,c_=_t.SOL,r_=_t.TRX,o_=_t.ARB,Id={BTC:{symbol:"BTC",letter:"₿",logo:s_,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:i_,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:c_,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:r_,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:o_,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}},hS=Object.values(Id),Zd={BTC:{letter:"₿",logo:s_,color:"#F7931A"},ETH:{letter:"E",logo:i_,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:c_,color:"#9945FF"},TRX:{letter:"T",logo:r_,color:"#FF060A"},ARB:{letter:"A",logo:o_,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"}},mS={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function u_(a){const c=[],i=mS[a.chain]??a.chain,r=Zd[i];c.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 _=Zd[d];c.push({symbol:d,letter:(_==null?void 0:_.letter)??d[0],color:(_==null?void 0:_.color)??"#888",logo:_==null?void 0:_.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return c}const rp=82.2578;function d_(){const[a,c]=j.useState("0"),[i,r]=j.useState(Id.SOL),[d,f]=j.useState(Id.USDC),[_,g]=j.useState(!1),h=parseFloat(a)||0,m=(h*rp).toFixed(4),v=(h*i.usdRate).toFixed(2),y=(h*rp*d.usdRate).toFixed(2);function b(T){c(T)}function N(T){c((i.balance*T/100).toFixed(4))}function S(){r(d),f(i)}function E(){g(!0),setTimeout(()=>g(!1),400)}return{fromAmount:a,toAmount:m,fromUsd:v,toUsd:y,fromToken:i,toToken:d,isRefreshing:_,setFromAmount:b,setPercent:N,swapTokens:S,refreshRate:E,setFromToken:r,setToToken:f}}const pS="_wrap_18yiu_1",_S="_trigger_18yiu_6",vS="_name_18yiu_22",gS="_chevron_18yiu_29",yS="_chevronOpen_18yiu_37",xS="_dropdown_18yiu_41",bS="_dropdownWrapper_18yiu_47",jS="_option_18yiu_60",SS="_optionActive_18yiu_78",NS="_optionInfo_18yiu_82",wS="_optionSymbol_18yiu_90",CS="_optionNetwork_18yiu_96",ES="_check_18yiu_103",TS="_triggerCompact_18yiu_110",RS="_nameCompact_18yiu_116",Vt={wrap:pS,trigger:_S,name:vS,chevron:gS,chevronOpen:yS,dropdown:xS,dropdownWrapper:bS,option:jS,optionActive:SS,optionInfo:NS,optionSymbol:wS,optionNetwork:CS,check:ES,triggerCompact:TS,nameCompact:RS};function op({value:a,options:c,onChange:i,compact:r=!1}){const[d,f]=j.useState(!1),_=j.useRef(null);j.useEffect(()=>{function h(m){_.current&&!_.current.contains(m.target)&&f(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);function g(h){i(h),f(!1)}return l.jsxs("div",{className:Vt.wrap,ref:_,children:[l.jsxs("button",{className:`${Vt.trigger} ${r?Vt.triggerCompact:""}`,onClick:()=>f(h=>!h),children:[l.jsx(km,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),l.jsx("span",{className:`${Vt.name} ${r?Vt.nameCompact:""}`,children:a.symbol}),l.jsx("span",{className:`${Vt.chevron} ${d?Vt.chevronOpen:""}`,children:"▾"})]}),d&&l.jsx("div",{className:Vt.dropdownWrapper,children:l.jsx("div",{className:Vt.dropdown,children:c.map(h=>l.jsxs("button",{className:`${Vt.option} ${h.symbol===a.symbol?Vt.optionActive:""}`,onClick:()=>g(h),children:[l.jsx(km,{letter:h.letter,color:h.color,logo:h.logo,size:32}),l.jsxs("div",{className:Vt.optionInfo,children:[l.jsx("span",{className:Vt.optionSymbol,children:h.symbol}),l.jsx("span",{className:Vt.optionNetwork,children:h.network})]}),h.symbol===a.symbol&&l.jsx("span",{className:Vt.check,children:"✓"})]},h.symbol))})})]})}const AS="_wrapper_19brp_1",MS="_pillsOuter_19brp_8",OS="_card_19brp_13",zS="_top_19brp_20",DS="_label_19brp_33",LS="_networkPills_19brp_54",BS="_networkBtn_19brp_60",kS="_networkBtnActive_19brp_79",US="_pillsInner_19brp_85",HS="_pill_19brp_8",$S="_selectTop_19brp_109",qS="_selectMid_19brp_113",GS="_mid_19brp_118",FS="_input_19brp_126",VS="_display_19brp_142",QS="_int_19brp_151",YS="_dec_19brp_156",XS="_bottom_19brp_161",IS="_usd_19brp_167",ZS="_balance_19brp_176",PS="_max_19brp_184",mt={wrapper:AS,pillsOuter:MS,card:OS,top:zS,label:DS,networkPills:LS,networkBtn:BS,networkBtnActive:kS,pillsInner:US,pill:HS,selectTop:$S,selectMid:qS,mid:GS,input:FS,display:VS,int:QS,dec:YS,bottom:XS,usd:IS,balance:ZS,max:PS},KS=["ETH","BSC","TRX","SOL"],WS=[25,50,100];function Mo({mode:a,token:c,tokenOptions:i,amount:r,usd:d,onTokenChange:f,onAmountChange:_,onSetPercent:g,selectedNetwork:h,onNetworkChange:m,hideNetworkSelect:v}){const[y,b]=hs(r,8).split("."),N=g&&l.jsx(l.Fragment,{children:WS.map(S=>l.jsxs("button",{className:mt.pill,onClick:()=>g(S),children:[S,"%"]},S))});return l.jsxs("div",{className:mt.wrapper,children:[a==="from"&&N&&l.jsx("div",{className:mt.pillsOuter,children:N}),l.jsxs("div",{className:mt.card,children:[l.jsxs("div",{className:mt.top,children:[l.jsx("div",{className:mt.label,children:a==="from"&&!v&&l.jsx("div",{className:mt.networkPills,children:KS.map(S=>l.jsx("button",{className:`${mt.networkBtn} ${S===h?mt.networkBtnActive:""}`,onClick:()=>m==null?void 0:m(S),children:S},S))})}),a==="from"&&N&&l.jsx("div",{className:mt.pillsInner,children:N}),l.jsx("div",{className:mt.selectTop,children:l.jsx(op,{value:c,options:i,onChange:f,compact:!0})})]}),l.jsxs("div",{className:mt.mid,children:[a==="from"?l.jsx("input",{className:mt.input,type:"text",value:r,onChange:S=>{const E=S.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(E)||E==="")&&(_==null||_(E))},placeholder:"0"}):l.jsxs("div",{className:mt.display,children:[l.jsx("span",{className:mt.int,children:y}),b&&l.jsxs("span",{className:mt.dec,children:[".",b]})]}),l.jsx("div",{className:mt.selectMid,children:l.jsx(op,{value:c,options:i,onChange:f})})]}),l.jsxs("div",{className:mt.bottom,children:[d&&l.jsxs("span",{className:mt.usd,children:["≈ $",d]}),l.jsxs("span",{className:mt.balance,children:[l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[l.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),l.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),hs(c.balance,8),a==="from"&&g&&l.jsx("button",{className:mt.max,onClick:()=>g(100),children:"МАКС"})]})]})]})]})}const JS="_wrap_wqzoz_1",eN="_line_wqzoz_11",tN="_circle_wqzoz_19",hd={wrap:JS,line:eN,circle:tN};function nN({onClick:a}){const[c,i]=j.useState(!1);function r(){i(!0),setTimeout(()=>i(!1),300),a()}return l.jsxs("div",{className:hd.wrap,children:[l.jsx("div",{className:hd.line}),l.jsx("button",{className:hd.circle,style:{transform:c?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const lN="_panel_16d4z_1",aN="_row_16d4z_10",sN="_label_16d4z_22",iN="_value_16d4z_30",cN="_link_16d4z_36",Tc={panel:lN,row:aN,label:sN,value:iN,link:cN};function rN({gasFee:a}){const c=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1}];return l.jsx("div",{className:Tc.panel,children:c.map(({label:i,value:r,link:d})=>l.jsxs("div",{className:Tc.row,children:[l.jsx("span",{className:Tc.label,children:i}),l.jsx("span",{className:`${Tc.value} ${d?Tc.link:""}`,children:r})]},i))})}const oN="_overlay_2rqh7_1",uN="_card_2rqh7_12",dN="_header_2rqh7_24",fN="_title_2rqh7_30",hN="_closeBtn_2rqh7_36",mN="_flow_2rqh7_51",pN="_token_2rqh7_57",_N="_tokenLabel_2rqh7_67",vN="_tokenAmount_2rqh7_75",gN="_tokenUsd_2rqh7_81",yN="_arrow_2rqh7_86",xN="_details_2rqh7_93",bN="_row_2rqh7_99",jN="_rowLabel_2rqh7_105",SN="_rowValue_2rqh7_110",NN="_impact_2rqh7_116",wN="_warning_2rqh7_120",CN="_confirmBtn_2rqh7_132",Ie={overlay:oN,card:uN,header:dN,title:fN,closeBtn:hN,flow:mN,token:pN,tokenLabel:_N,tokenAmount:vN,tokenUsd:gN,arrow:yN,details:xN,row:bN,rowLabel:jN,rowValue:SN,impact:NN,warning:wN,confirmBtn:CN};function EN({data:a,insufficientBalance:c,onConfirm:i,onClose:r}){const{details:d,fees:f}=a,{currencyIn:_,currencyOut:g,totalImpact:h,rate:m}=d,v=parseFloat(h.percent),y=parseFloat(m).toFixed(4);return l.jsx("div",{className:Ie.overlay,onClick:r,children:l.jsxs("div",{className:Ie.card,onClick:b=>b.stopPropagation(),children:[l.jsxs("div",{className:Ie.header,children:[l.jsx("span",{className:Ie.title,children:"Подтвердить своп"}),l.jsx("button",{className:Ie.closeBtn,onClick:r,children:"×"})]}),l.jsxs("div",{className:Ie.flow,children:[l.jsxs("div",{className:Ie.token,children:[l.jsx("span",{className:Ie.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:Ie.tokenAmount,children:[_.amountFormatted," ",_.currency.symbol]}),l.jsxs("span",{className:Ie.tokenUsd,children:["≈ $",_.amountUsd]})]}),l.jsx("div",{className:Ie.arrow,children:"↓"}),l.jsxs("div",{className:Ie.token,children:[l.jsx("span",{className:Ie.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:Ie.tokenAmount,children:[g.amountFormatted," ",g.currency.symbol]}),l.jsxs("span",{className:Ie.tokenUsd,children:["≈ $",g.amountUsd]})]})]}),l.jsxs("div",{className:Ie.details,children:[l.jsxs("div",{className:Ie.row,children:[l.jsx("span",{className:Ie.rowLabel,children:"Курс"}),l.jsxs("span",{className:Ie.rowValue,children:["1 ",_.currency.symbol," = ",y," ",g.currency.symbol]})]}),l.jsxs("div",{className:Ie.row,children:[l.jsx("span",{className:Ie.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:Ie.rowValue,children:["$",f.gas.amountUsd]})]}),l.jsxs("div",{className:Ie.row,children:[l.jsx("span",{className:Ie.rowLabel,children:"Влияние на цену"}),l.jsxs("span",{className:`${Ie.rowValue} ${v<0?Ie.impact:""}`,children:[h.percent,"%"]})]})]}),c&&l.jsx("p",{className:Ie.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:Ie.confirmBtn,onClick:i,children:"Подтвердить"})]})})}const TN="_overlay_1rpvx_1",RN="_card_1rpvx_12",AN="_header_1rpvx_24",MN="_title_1rpvx_30",ON="_closeBtn_1rpvx_36",zN="_flow_1rpvx_51",DN="_token_1rpvx_57",LN="_tokenLabel_1rpvx_67",BN="_tokenAmount_1rpvx_75",kN="_minOut_1rpvx_81",UN="_arrow_1rpvx_86",HN="_details_1rpvx_93",$N="_row_1rpvx_99",qN="_rowLabel_1rpvx_105",GN="_rowValue_1rpvx_110",FN="_warning_1rpvx_116",VN="_confirmBtn_1rpvx_128",bt={overlay:TN,card:RN,header:AN,title:MN,closeBtn:ON,flow:zN,token:DN,tokenLabel:LN,tokenAmount:BN,minOut:kN,arrow:UN,details:HN,row:$N,rowLabel:qN,rowValue:GN,warning:FN,confirmBtn:VN};function QN({quote:a,fromSymbol:c,toSymbol:i,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:_}){const{expectedOutFormatted:g,minOutFormatted:h,fees:m}=a;return l.jsx("div",{className:bt.overlay,onClick:_,children:l.jsxs("div",{className:bt.card,onClick:v=>v.stopPropagation(),children:[l.jsxs("div",{className:bt.header,children:[l.jsx("span",{className:bt.title,children:"Подтвердить своп"}),l.jsx("button",{className:bt.closeBtn,onClick:_,children:"×"})]}),l.jsxs("div",{className:bt.flow,children:[l.jsxs("div",{className:bt.token,children:[l.jsx("span",{className:bt.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:bt.tokenAmount,children:[r," ",c]})]}),l.jsx("div",{className:bt.arrow,children:"↓"}),l.jsxs("div",{className:bt.token,children:[l.jsx("span",{className:bt.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:bt.tokenAmount,children:[g," ",i]}),l.jsxs("span",{className:bt.minOut,children:["Минимум: ",h," ",i]})]})]}),l.jsx("div",{className:bt.details,children:l.jsxs("div",{className:bt.row,children:[l.jsx("span",{className:bt.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:bt.rowValue,children:[m.network.amountFormatted," ",m.network.asset," (≈$",m.network.amountUsd,")"]})]})}),d&&l.jsx("p",{className:bt.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:bt.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const YN="_form_1fk2f_1",XN={form:YN},IN={ETH:1,BSC:56,SOL:792703809},up={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function dp(a){return up[a]??up.DEFAULT}function ZN(){var Fl,we,qt,hl;const a=En(),c=Zn(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:_,setPercent:g,swapTokens:h,setFromToken:m,setToToken:v}=d_(),[y,b]=j.useState("ETH"),[N,S]=j.useState(null),[E,T]=j.useState(null),[z,H]=j.useState(null),O=y==="TRX",{data:k}=Ro(y),Y=k?u_(k):hS;j.useEffect(()=>{Y.length!==0&&(m(Pe=>Y.find(Kt=>Kt.symbol===Pe.symbol)??Y[0]),v(Pe=>Y.find(Kt=>Kt.symbol===Pe.symbol)??Y[1]??Y[0]))},[k,y]);const J=Eo(i,500),{data:q}=ko(),{data:I}=ij(),ae=parseFloat(J),me=IN[y],he=(Fl=q==null?void 0:q.find(Pe=>Pe.chain===y))==null?void 0:Fl.address,Ce=((we=I==null?void 0:I.find(Pe=>Pe.chain===y&&Pe.symbol===d.symbol))==null?void 0:we.contract)??dp(y),re=((qt=I==null?void 0:I.find(Pe=>Pe.chain===y&&Pe.symbol===f.symbol))==null?void 0:qt.contract)??dp(y),ve=!O&&me&&he&&ae>0?{user:he,recipient:he,originChainId:me,destinationChainId:me,originCurrency:Ce,destinationCurrency:re,amount:Math.round(ae*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:ue}=U3(ve),{mutate:$,isPending:X}=fj(),{mutate:se,isPending:Ee}=hj(),Te=O&&ae>0?{from:d.symbol,to:f.symbol,amountHuman:J}:null,{data:R}=mj(Te),{mutate:V,isPending:P}=pj(),{mutate:te,isPending:pe}=_j(),xe=Ee||pe,De=(parseFloat(i)||0)>d.balance,jt=O?(R==null?void 0:R.expectedOutFormatted)??"0":(ue==null?void 0:ue.details.currencyOut.amountFormatted)??"0",Je=O||ue==null?void 0:ue.details.currencyOut.amountUsd,Wn=O?(hl=R==null?void 0:R.fees.network.amountUsd)==null?void 0:hl.toString():ue==null?void 0:ue.fees.gas.amountUsd,fl=O?ae<=0||P:!ve||X;function Gl(){if(O){if(!Te)return;V(Te,{onSuccess:Pe=>T(Pe)})}else{if(!ve)return;$(ve,{onSuccess:Pe=>S(Pe)})}}return l.jsxs("div",{className:XN.form,children:[l.jsx(Mo,{mode:"from",token:d,tokenOptions:Y,amount:i,usd:r,onAmountChange:_,onSetPercent:g,onTokenChange:m,selectedNetwork:y,onNetworkChange:b}),l.jsx(nN,{onClick:h}),l.jsx(Mo,{mode:"to",token:f,tokenOptions:Y,amount:jt,usd:Je,onTokenChange:v}),l.jsx(rN,{gasFee:Wn}),l.jsx(ul,{label:X||P?"Загрузка...":void 0,onClick:Gl,disabled:fl}),N&&l.jsx(EN,{data:N,insufficientBalance:De,onClose:()=>S(null),onConfirm:()=>{var Kt,vs;const Pe=(vs=(Kt=N.steps[0])==null?void 0:Kt.items[0])==null?void 0:vs.data;Pe&&(H(null),se({chain:y,txData:Pe},{onSuccess:()=>{c.invalidateQueries({queryKey:["wallet","balance",y]}),c.invalidateQueries({queryKey:["wallet","portfolio"]}),a(de.WALLET)},onError:gs=>{H(gs instanceof Error?gs.message:"Не удалось подписать транзакцию")}})),S(null)}}),E&&l.jsx(QN,{quote:E,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:i,insufficientBalance:De,onClose:()=>T(null),onConfirm:()=>{H(null),te(E.quoteId,{onSuccess:()=>{c.invalidateQueries({queryKey:["wallet","balance","TRX"]}),c.invalidateQueries({queryKey:["wallet","portfolio"]}),a(de.WALLET)},onError:Pe=>{H(Pe instanceof Error?Pe.message:"Не удалось выполнить свап")}}),T(null)}}),xe&&l.jsx(Ta,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),z&&l.jsx(Ta,{status:"error",message:z,onClose:()=>H(null)})]})}const PN="_tabs_1sxhr_1",KN="_tab_1sxhr_1",WN="_active_1sxhr_19",JN="_inactive_1sxhr_24",Ka={tabs:PN,tab:KN,active:WN,inactive:JN};function f_({active:a}){const c=En();return l.jsxs("div",{className:Ka.tabs,children:[l.jsx("button",{className:`${Ka.tab} ${a==="swap"?Ka.active:Ka.inactive}`,onClick:()=>c(de.SWAP),children:"СВОП"}),l.jsx("button",{className:`${Ka.tab} ${a==="bridge"?Ka.active:Ka.inactive}`,onClick:()=>c(de.BRIDGE),children:"БРИДЖ"})]})}const ew="_content_1pe49_1",tw={content:ew};function nw(){return l.jsxs(l.Fragment,{children:[l.jsx(f_,{active:"swap"}),l.jsx("div",{className:tw.content,children:l.jsx(ZN,{})})]})}function fp(a,c){const[i,r=""]=a.split("."),d=r.slice(0,c).padEnd(c,"0");return`${i}${d}`.replace(/^0+(?=\d)/,"")||"0"}function Pd(a,c){const i=a.padStart(c+1,"0"),r=i.slice(0,i.length-c),d=i.slice(i.length-c).replace(/0+$/,"");return d?`${r}.${d}`:r}const lw="_wrap_njjv3_1",aw="_label_njjv3_9",sw="_select_njjv3_18",md={wrap:lw,label:aw,select:sw};function hp({label:a,value:c,onChange:i,options:r}){return l.jsxs("div",{className:md.wrap,children:[l.jsx("span",{className:md.label,children:a}),l.jsx("select",{className:md.select,value:c,onChange:d=>i(d.target.value),children:r.map(d=>l.jsx("option",{value:d,children:d},d))})]})}const iw="_overlay_13tuw_1",cw="_card_13tuw_12",rw="_header_13tuw_24",ow="_title_13tuw_30",uw="_closeBtn_13tuw_36",dw="_flow_13tuw_51",fw="_token_13tuw_57",hw="_tokenLabel_13tuw_67",mw="_tokenAmount_13tuw_75",pw="_minOut_13tuw_81",_w="_arrow_13tuw_86",vw="_details_13tuw_93",gw="_row_13tuw_99",yw="_rowLabel_13tuw_105",xw="_rowValue_13tuw_110",bw="_warning_13tuw_116",jw="_confirmBtn_13tuw_128",ct={overlay:iw,card:cw,header:rw,title:ow,closeBtn:uw,flow:dw,token:fw,tokenLabel:hw,tokenAmount:mw,minOut:pw,arrow:_w,details:vw,row:gw,rowLabel:yw,rowValue:xw,warning:bw,confirmBtn:jw};function Sw({quote:a,fromAmountHuman:c,insufficientBalance:i,isExecuting:r,onConfirm:d,onClose:f}){const{action:_,estimate:g,toolDetails:h}=a,m=_.toToken.symbol,v=_.fromToken.symbol,y=hs(Pd(g.toAmount,_.toToken.decimals),8),b=hs(Pd(g.toAmountMin,_.toToken.decimals),8),N=(g.feeCosts??[]).reduce((S,E)=>S+(parseFloat(E.amountUSD)||0),0).toFixed(2);return l.jsx("div",{className:ct.overlay,onClick:f,children:l.jsxs("div",{className:ct.card,onClick:S=>S.stopPropagation(),children:[l.jsxs("div",{className:ct.header,children:[l.jsx("span",{className:ct.title,children:"Подтвердить бридж"}),l.jsx("button",{className:ct.closeBtn,onClick:f,children:"×"})]}),l.jsxs("div",{className:ct.flow,children:[l.jsxs("div",{className:ct.token,children:[l.jsx("span",{className:ct.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:ct.tokenAmount,children:[c," ",v]})]}),l.jsx("div",{className:ct.arrow,children:"↓"}),l.jsxs("div",{className:ct.token,children:[l.jsx("span",{className:ct.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:ct.tokenAmount,children:[y," ",m]}),l.jsxs("span",{className:ct.minOut,children:["Минимум: ",b," ",m]})]})]}),l.jsxs("div",{className:ct.details,children:[l.jsxs("div",{className:ct.row,children:[l.jsx("span",{className:ct.rowLabel,children:"Комиссия"}),l.jsxs("span",{className:ct.rowValue,children:["≈$",N]})]}),l.jsxs("div",{className:ct.row,children:[l.jsx("span",{className:ct.rowLabel,children:"Мост"}),l.jsx("span",{className:ct.rowValue,children:h.name})]})]}),i&&l.jsx("p",{className:ct.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),l.jsx("button",{className:ct.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const Nw="_form_htwuf_1",mp={form:Nw},pd=["ETH","BSC","SOL","TRX","BTC"],ri={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},ww=Object.fromEntries(Object.entries(ri).map(([a,c])=>[c,a])),pp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function Cw(a){const c=Zd[a.symbol];return{symbol:a.symbol,letter:(c==null?void 0:c.letter)??a.symbol[0],color:(c==null?void 0:c.color)??"#888",logo:a.logoURI??(c==null?void 0:c.logo),network:ww[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function Ew(a){const c={};for(const i of u_(a))c[i.symbol]=i.balance;return c}function Tw(){var Wn,fl,Gl,Fl;const a=En(),c=Zn(),{fromAmount:i,fromUsd:r,fromToken:d,toToken:f,setFromAmount:_,setPercent:g,setFromToken:h,setToToken:m}=d_(),[v,y]=j.useState("ETH"),[b,N]=j.useState("BSC"),[S,E]=j.useState(null),[T,z]=j.useState(null),{data:H}=cj(),{data:O}=Ro(v),{data:k}=Ro(b),{data:Y}=ko(),{mutate:J,isPending:q}=rj(),{mutate:I,isPending:ae}=oj();function me(we,qt){const hl=((H==null?void 0:H[ri[we]])??[]).map(Cw);if(!qt)return hl;const Pe=Ew(qt);return hl.map(Kt=>Pe[Kt.symbol]!=null?{...Kt,balance:Pe[Kt.symbol]}:Kt)}const he=me(v,O),Ce=me(b,k);j.useEffect(()=>{he.length!==0&&h(we=>he.find(qt=>qt.symbol===we.symbol)??he[0])},[H,O,v]),j.useEffect(()=>{Ce.length!==0&&m(we=>Ce.find(qt=>qt.symbol===we.symbol)??Ce[0])},[H,k,b]);const re=parseFloat(i),ve=(re||0)>d.balance,ue=(Wn=H==null?void 0:H[ri[v]])==null?void 0:Wn.find(we=>we.symbol===d.symbol),$=(fl=H==null?void 0:H[ri[b]])==null?void 0:fl.find(we=>we.symbol===f.symbol),X=(Gl=Y==null?void 0:Y.find(we=>we.chain===v))==null?void 0:Gl.address,se=(Fl=Y==null?void 0:Y.find(we=>we.chain===b))==null?void 0:Fl.address,Ee=ue&&$&&X&&se&&re>0?{fromChain:ri[v],toChain:ri[b],fromToken:ue.address,toToken:$.address,fromAmount:fp(i,d.decimals),fromAddress:X,toAddress:se,slippage:.005}:null,Te=Eo(i,500),R=parseFloat(Te),V=pp[v],P=pp[b],te=ue&&$&&X&&se&&V&&P&&R>0?{user:X,recipient:se,originChainId:V,destinationChainId:P,originCurrency:ue.address,destinationCurrency:$.address,amount:fp(Te,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:pe}=U3(te),xe=pe?pe.details.currencyOut.amountFormatted:S?hs(Pd(S.estimate.toAmount,S.action.toToken.decimals),8):"0";function De(we){y(we),we===b&&N(pd.find(qt=>qt!==we)??b)}function jt(){Ee&&(z(null),J(Ee,{onSuccess:we=>E(we),onError:we=>z(we instanceof Error?we.message:"Не удалось получить котировку")}))}function Je(){S&&(z(null),I({provider:"jumper",fromChain:S.action.fromChainId,toChain:S.action.toChainId,fromToken:S.action.fromToken.address,toToken:S.action.toToken.address,fromAmount:S.action.fromAmount,fromAddress:S.action.fromAddress,toAddress:S.action.toAddress,acceptedMinOut:S.estimate.toAmountMin},{onSuccess:()=>{c.invalidateQueries({queryKey:["wallet","balance",v]}),c.invalidateQueries({queryKey:["wallet","balance",b]}),c.invalidateQueries({queryKey:["wallet","portfolio"]}),E(null),a(de.WALLET)},onError:we=>z(we instanceof Error?we.message:"Не удалось выполнить бридж")}))}return H?l.jsxs("div",{className:mp.form,children:[l.jsx(hp,{label:"ИЗ",value:v,onChange:De,options:pd}),l.jsx(Mo,{mode:"from",token:d,tokenOptions:he,amount:i,usd:r,onAmountChange:_,onSetPercent:g,onTokenChange:h,hideNetworkSelect:!0}),l.jsx(hp,{label:"В",value:b,onChange:N,options:pd.filter(we=>we!==v)}),l.jsx(Mo,{mode:"to",token:f,tokenOptions:Ce,amount:xe,onTokenChange:m,hideNetworkSelect:!0}),l.jsx(ul,{label:q?"Загрузка...":"Подтвердить бридж",onClick:jt,disabled:!Ee||q}),S&&l.jsx(Sw,{quote:S,fromAmountHuman:i,insufficientBalance:ve,isExecuting:ae,onConfirm:Je,onClose:()=>E(null)}),T&&l.jsx(Ta,{status:"error",message:T,onClose:()=>z(null)})]}):l.jsx("div",{className:mp.form})}const Rw="_content_1pe49_1",Aw={content:Rw};function Mw(){return l.jsxs(l.Fragment,{children:[l.jsx(f_,{active:"bridge"}),l.jsx("div",{className:Aw.content,children:l.jsx(Tw,{})})]})}var Kd=function(a,c){return Kd=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])},Kd(a,c)};function Ow(a,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");Kd(a,c);function i(){this.constructor=a}a.prototype=c===null?Object.create(c):(i.prototype=c.prototype,new i)}var At=function(){return At=Object.assign||function(c){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)&&(c[f]=i[f])}return c},At.apply(this,arguments)};var _d,_p;function zw(){if(_p)return _d;_p=1;var a=!1,c,i,r,d,f,_,g,h,m,v,y,b,N,S,E;function T(){if(!a){a=!0;var H=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(H),k=/(Mac OS X)|(Windows)|(Linux)/.exec(H);if(b=/\b(iPhone|iP[ao]d)/.exec(H),N=/\b(iP[ao]d)/.exec(H),v=/Android/i.exec(H),S=/FBAN\/\w+;/i.exec(H),E=/Mobile/i.exec(H),y=!!/Win64/.exec(H),O){c=O[1]?parseFloat(O[1]):O[5]?parseFloat(O[5]):NaN,c&&document&&document.documentMode&&(c=document.documentMode);var Y=/(?:Trident\/(\d+.\d+))/.exec(H);_=Y?parseFloat(Y[1])+4:c,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(H),f=O&&O[1]?parseFloat(O[1]):NaN):f=NaN}else c=i=r=f=d=NaN;if(k){if(k[1]){var J=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(H);g=J?parseFloat(J[1].replace("_",".")):!0}else g=!1;h=!!k[2],m=!!k[3]}else g=h=m=!1}}var z={ie:function(){return T()||c},ieCompatibilityMode:function(){return T()||_>c},ie64:function(){return z.ie()&&y},firefox:function(){return T()||i},opera:function(){return T()||r},webkit:function(){return T()||d},safari:function(){return z.webkit()},chrome:function(){return T()||f},windows:function(){return T()||h},osx:function(){return T()||g},linux:function(){return T()||m},iphone:function(){return T()||b},mobile:function(){return T()||b||N||v||E},nativeApp:function(){return T()||S},android:function(){return T()||v},ipad:function(){return T()||N}};return _d=z,_d}var vd,vp;function Dw(){if(vp)return vd;vp=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),c={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return vd=c,vd}var gd,gp;function Lw(){if(gp)return gd;gp=1;var a=Dw(),c;a.canUseDOM&&(c=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,_=f in document;if(!_){var g=document.createElement("div");g.setAttribute(f,"return;"),_=typeof g[f]=="function"}return!_&&c&&r==="wheel"&&(_=document.implementation.hasFeature("Events.wheel","3.0")),_}return gd=i,gd}var yd,yp;function Bw(){if(yp)return yd;yp=1;var a=zw(),c=Lw(),i=10,r=40,d=800;function f(_){var g=0,h=0,m=0,v=0;return"detail"in _&&(h=_.detail),"wheelDelta"in _&&(h=-_.wheelDelta/120),"wheelDeltaY"in _&&(h=-_.wheelDeltaY/120),"wheelDeltaX"in _&&(g=-_.wheelDeltaX/120),"axis"in _&&_.axis===_.HORIZONTAL_AXIS&&(g=h,h=0),m=g*i,v=h*i,"deltaY"in _&&(v=_.deltaY),"deltaX"in _&&(m=_.deltaX),(m||v)&&_.deltaMode&&(_.deltaMode==1?(m*=r,v*=r):(m*=d,v*=d)),m&&!g&&(g=m<1?-1:1),v&&!h&&(h=v<1?-1:1),{spinX:g,spinY:h,pixelX:m,pixelY:v}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":c("wheel")?"wheel":"mousewheel"},yd=f,yd}var xd,xp;function kw(){return xp||(xp=1,xd=Bw()),xd}var Uw=kw();const Hw=Xp(Uw);function $w(a,c,i,r,d,f){f===void 0&&(f=0);var _=Si(a,c,f),g=_.width,h=_.height,m=Math.min(g,i),v=Math.min(h,r);return m>v*d?{width:v*d,height:v}:{width:m,height:m/d}}function qw(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function Rc(a,c,i,r,d){d===void 0&&(d=0);var f=Si(c.width,c.height,d),_=f.width,g=f.height;return{x:bp(a.x,_,i.width,r),y:bp(a.y,g,i.height,r)}}function bp(a,c,i,r){var d=Math.abs(c*r/2-i/2);return $o(a,-d,d)}function jp(a,c){return Math.sqrt(Math.pow(a.y-c.y,2)+Math.pow(a.x-c.x,2))}function Sp(a,c){return Math.atan2(c.y-a.y,c.x-a.x)*180/Math.PI}function Gw(a,c,i,r,d,f,_){f===void 0&&(f=0),_===void 0&&(_=!0);var g=_?Fw:Vw,h=Si(c.width,c.height,f),m=Si(c.naturalWidth,c.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(m.width,v.width*m.width/100)),b=Math.round(g(m.height,v.height*m.height/100)),N=m.width>=m.height*r,S=N?{width:Math.round(b*r),height:b}:{width:y,height:Math.round(y/r)},E=At(At({},S),{x:Math.round(g(m.width-S.width,v.x*m.width/100)),y:Math.round(g(m.height-S.height,v.y*m.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:E}}function Fw(a,c){return Math.min(a,Math.max(0,c))}function Vw(a,c){return c}function Qw(a,c,i,r,d,f){var _=Si(c.width,c.height,i),g=$o(r.width/_.width*(100/a.width),d,f),h={x:g*_.width/2-r.width/2-_.width*g*(a.x/100),y:g*_.height/2-r.height/2-_.height*g*(a.y/100)};return{crop:h,zoom:g}}function Yw(a,c,i){var r=qw(c);return i.height>i.width?i.height/(a.height*r):i.width/(a.width*r)}function Xw(a,c,i,r,d,f){i===void 0&&(i=0);var _=Si(c.naturalWidth,c.naturalHeight,i),g=$o(Yw(a,c,r),d,f),h=r.height>r.width?r.height/a.height:r.width/a.width,m={x:((_.width-a.width)/2-a.x)*h,y:((_.height-a.height)/2-a.y)*h};return{crop:m,zoom:g}}function Np(a,c){return{x:(c.x+a.x)/2,y:(c.y+a.y)/2}}function Iw(a){return a*Math.PI/180}function Si(a,c,i){var r=Iw(i);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*c),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*c)}}function $o(a,c,i){return Math.min(Math.max(a,c),i)}function po(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];return a.filter(function(i){return typeof i=="string"&&i.length>0}).join(" ").trim()}var Zw=`.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;
}
`,Pw=1,Kw=3,Ww=1,Jw=(function(a){Ow(c,a);function c(){var i=a!==null&&a.apply(this,arguments)||this;return i.cropperRef=j.createRef(),i.imageRef=j.createRef(),i.videoRef=j.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=Qw(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=d.crop,_=d.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(_)}else if(i.props.initialCroppedAreaPixels){var g=Xw(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,r,i.props.minZoom,i.props.maxZoom),f=g.crop,_=g.zoom;i.props.onCropChange(f),i.props.onZoomChange&&i.props.onZoomChange(_)}},i.computeSizes=function(){var r,d,f,_,g,h,m=i.imageRef.current||i.videoRef.current;if(m&&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)||((_=i.videoRef.current)===null||_===void 0?void 0:_.videoHeight)||0,N=m.offsetWidth<y||m.offsetHeight<b,S=y/b,E=void 0;if(N)switch(i.state.mediaObjectFit){default:case"contain":E=v>S?{width:i.containerRect.height*S,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/S};break;case"horizontal-cover":E={width:i.containerRect.width,height:i.containerRect.width/S};break;case"vertical-cover":E={width:i.containerRect.height*S,height:i.containerRect.height};break}else E={width:m.offsetWidth,height:m.offsetHeight};i.mediaSize=At(At({},E),{naturalWidth:y,naturalHeight:b}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var T=i.props.cropSize?i.props.cropSize:$w(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)!==T.height||((h=i.state.cropSize)===null||h===void 0?void 0:h.width)!==T.width)&&i.props.onCropSizeChange&&i.props.onCropSizeChange(T),i.setState({cropSize:T},i.recomputeCropPosition),i.props.setCropSize&&i.props.setCropSize(T),T}},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(c.getMousePoint(r)))},i.onMouseMove=function(r){return i.onDrag(c.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(c.getTouchPoint(r.touches[0]))))},i.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?i.onPinchMove(r):r.touches.length===1&&i.onDrag(c.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=c.getMousePoint(r),f=i.gestureZoomStart-1+r.scale;if(i.setNewZoom(f,d,{shouldUpdatePosition:!0}),i.props.onRotationChange){var _=i.gestureRotationStart+r.rotation;i.props.onRotationChange(_)}}},i.onGestureEnd=function(r){i.cleanEvents()},i.onDragStart=function(r){var d,f,_=r.x,g=r.y;i.dragStartPosition={x:_,y:g},i.dragStartCrop=At({},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 _=d-i.dragStartPosition.x,g=f-i.dragStartPosition.y,h={x:i.dragStartCrop.x+_,y:i.dragStartCrop.y+g},m=i.props.restrictPosition?Rc(h,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):h;i.props.onCropChange(m)}}))},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=c.getMousePoint(r),f=Hw(r).pixelY,_=i.props.zoom-f*i.props.zoomSpeed/200;i.setNewZoom(_,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,_=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-(_-d.y)}},i.getPointOnMedia=function(r){var d=r.x,f=r.y,_=i.props,g=_.crop,h=_.zoom;return{x:(d+g.x)/h,y:(f+g.y)/h}},i.setNewZoom=function(r,d,f){var _=f===void 0?{}:f,g=_.shouldUpdatePosition,h=g===void 0?!0:g;if(!(!i.state.cropSize||!i.props.onZoomChange)){var m=$o(r,i.props.minZoom,i.props.maxZoom);if(h){var v=i.getPointOnContainer(d,i.containerPosition),y=i.getPointOnMedia(v),b={x:y.x*m-v.x,y:y.y*m-v.y},N=i.props.restrictPosition?Rc(b,i.mediaSize,i.state.cropSize,m,i.props.rotation):b;i.props.onCropChange(N)}i.props.onZoomChange(m)}},i.getCropData=function(){if(!i.state.cropSize)return null;var r=i.props.restrictPosition?Rc(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop;return Gw(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 _=Math.abs(i.previousCropSize.width-i.state.cropSize.width)>1e-6||Math.abs(i.previousCropSize.height-i.state.cropSize.height)>1e-6;if(_){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 m=i.props.restrictPosition?Rc(f,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):f;i.previousCropSize=i.state.cropSize,i.props.onCropChange(m),i.emitCropData()}},i.onKeyDown=function(r){var d,f,_=i.props,g=_.crop,h=_.onCropChange,m=_.keyboardStep,v=_.zoom,y=_.rotation,b=m;if(i.state.cropSize){r.shiftKey&&(b*=.2);var N=At({},g);switch(r.key){case"ArrowUp":N.y-=b,r.preventDefault();break;case"ArrowDown":N.y+=b,r.preventDefault();break;case"ArrowLeft":N.x-=b,r.preventDefault();break;case"ArrowRight":N.x+=b,r.preventDefault();break;default:return}i.props.restrictPosition&&(N=Rc(N,i.mediaSize,i.state.cropSize,v,y)),r.repeat||(f=(d=i.props).onInteractionStart)===null||f===void 0||f.call(d),h(N)}},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 c.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=Zw,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))},c.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())},c.prototype.componentDidUpdate=function(i){var r,d,f,_,g,h,m,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)!==((_=this.props.cropSize)===null||_===void 0?void 0:_.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)||((m=i.crop)===null||m===void 0?void 0:m.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)},c.prototype.getAspect=function(){var i=this.props,r=i.cropSize,d=i.aspect;return r?r.width/r.height:d},c.prototype.getObjectFit=function(){var i,r,d,f;if(this.props.objectFit==="cover"){var _=this.imageRef.current||this.videoRef.current;if(_&&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,m=((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/m;return v<g?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},c.prototype.onPinchStart=function(i){var r=c.getTouchPoint(i.touches[0]),d=c.getTouchPoint(i.touches[1]);this.lastPinchDistance=jp(r,d),this.lastPinchRotation=Sp(r,d),this.onDragStart(Np(r,d))},c.prototype.onPinchMove=function(i){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=c.getTouchPoint(i.touches[0]),f=c.getTouchPoint(i.touches[1]),_=Np(d,f);this.onDrag(_),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var g=jp(d,f),h=r.props.zoom*(g/r.lastPinchDistance);r.setNewZoom(h,_,{shouldUpdatePosition:!1}),r.lastPinchDistance=g;var m=Sp(d,f),v=r.props.rotation+(m-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(v),r.lastPinchRotation=m})}},c.prototype.render=function(){var i=this,r,d=this.props,f=d.image,_=d.video,g=d.mediaProps,h=d.cropperProps,m=d.transform,v=d.crop,y=v.x,b=v.y,N=d.rotation,S=d.zoom,E=d.cropShape,T=d.showGrid,z=d.roundCropAreaPixels,H=d.style,O=H.containerStyle,k=H.cropAreaStyle,Y=H.mediaStyle,J=d.classes,q=J.containerClassName,I=J.cropAreaClassName,ae=J.mediaClassName,me=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return j.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(Ce){return i.containerRef=Ce},"data-testid":"container",style:O,className:po("reactEasyCrop_Container",q)},f?j.createElement("img",At({alt:"",className:po("reactEasyCrop_Image",me==="contain"&&"reactEasyCrop_Contain",me==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",me==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ae)},g,{src:f,ref:this.imageRef,style:At(At({},Y),{transform:m||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):_&&j.createElement("video",At({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:po("reactEasyCrop_Video",me==="contain"&&"reactEasyCrop_Contain",me==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",me==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",ae)},g,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:At(At({},Y),{transform:m||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(_)?_:[{src:_}]).map(function(he){return j.createElement("source",At({key:he.src},he))})),this.state.cropSize&&j.createElement("div",At({ref:this.cropperRef,style:At(At({},k),{width:z?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:z?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:po("reactEasyCrop_CropArea",E==="round"&&"reactEasyCrop_CropAreaRound",T&&"reactEasyCrop_CropAreaGrid",I)},h)))},c.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Kw,minZoom:Pw,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Ww},c.getMousePoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},c.getTouchPoint=function(i){return{x:Number(i.clientX),y:Number(i.clientY)}},c})(j.Component);function eC(a){return new Promise((c,i)=>{const r=new Image;r.onload=()=>c(r),r.onerror=()=>i(new Error("Не удалось загрузить изображение")),r.src=a})}async function tC(a,c,i=512){const r=await eC(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,c.x,c.y,c.width,c.height,0,0,i,i),new Promise((_,g)=>{d.toBlob(h=>{h?_(h):g(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const nC="_backdrop_1cfz6_1",lC="_card_1cfz6_12",aC="_title_1cfz6_25",sC="_cropArea_1cfz6_31",iC="_controls_1cfz6_40",cC="_zoom_1cfz6_52",rC="_actions_1cfz6_57",oC="_error_1cfz6_63",pa={backdrop:nC,card:lC,title:aC,cropArea:sC,controls:iC,zoom:cC,actions:rC,error:oC};function uC({imageSrc:a,isSaving:c,onCancel:i,onConfirm:r}){const[d,f]=j.useState({x:0,y:0}),[_,g]=j.useState(1),[h,m]=j.useState(null),[v,y]=j.useState(null),b=j.useCallback((S,E)=>{m(E)},[]);j.useEffect(()=>{const S=E=>{E.key==="Escape"&&!c&&i()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[i,c]);const N=async()=>{if(h){y(null);try{const S=await tC(a,h);await r(S)}catch{y("Не удалось обрезать изображение")}}};return l.jsx("div",{className:pa.backdrop,onClick:c?void 0:i,children:l.jsxs("div",{className:pa.card,onClick:S=>S.stopPropagation(),children:[l.jsx("h3",{className:pa.title,children:"Выберите область аватара"}),l.jsx("div",{className:pa.cropArea,children:l.jsx(Jw,{image:a,crop:d,zoom:_,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:g,onCropComplete:b})}),l.jsxs("div",{className:pa.controls,children:[l.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),l.jsx("input",{id:"avatar-zoom",className:pa.zoom,type:"range",min:1,max:3,step:.01,value:_,onChange:S=>g(Number(S.target.value))})]}),v&&l.jsx("span",{className:pa.error,children:v}),l.jsxs("div",{className:pa.actions,children:[l.jsx(Zt,{variant:"ghost",onClick:i,disabled:c,children:"Отмена"}),l.jsx(Zt,{variant:"primary",onClick:N,disabled:c||!h,children:c?"Загрузка...":"Сохранить"})]})]})})}const dC="_col_1gh35_1",fC="_avatar_1gh35_10",hC="_avatarImg_1gh35_30",mC="_error_1gh35_37",pC="_overlay_1gh35_43",_C="_addPhoto_1gh35_68",ai={col:dC,avatar:fC,avatarImg:hC,error:mC,overlay:pC,addPhoto:_C};function vC(a){return new Promise((c,i)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");c(f>=0?d.slice(f+1):d)},r.onerror=()=>i(r.error),r.readAsDataURL(a)})}function gC(){const{data:a}=ql(),{mutateAsync:c,isPending:i}=E8(),r=j.useRef(null),[d,f]=j.useState(null),[_,g]=j.useState(!1),[h,m]=j.useState(null),v=(a==null?void 0:a.avatar_link)??null,y=v&&!_;j.useEffect(()=>{g(!1)},[v]),j.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const b=()=>{var T;i||(T=r.current)==null||T.click()},N=T=>{var H;const z=(H=T.target.files)==null?void 0:H[0];T.target.value="",z&&(f(null),m(URL.createObjectURL(z)))},S=()=>{h&&URL.revokeObjectURL(h),m(null)},E=async T=>{try{const z=await vC(T);await c({photo_base64:z,decoded_bytes:String(T.size)}),S()}catch{f("Не удалось загрузить фото"),S()}};return l.jsxs("div",{className:ai.col,children:[l.jsxs("div",{className:ai.avatar,onClick:b,children:[y?l.jsx("img",{src:v,alt:"avatar",className:ai.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",v),g(!0)}}):l.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("circle",{cx:"12",cy:"8",r:"4"}),l.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),l.jsx("div",{className:ai.overlay,children:l.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[l.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"}),l.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),l.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:N,hidden:!0}),l.jsx("div",{className:ai.addPhoto,children:l.jsx(Zt,{variant:"ghost",onClick:b,disabled:i,children:i?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&l.jsx("span",{className:ai.error,children:d}),h&&l.jsx(uC,{imageSrc:h,isSaving:i,onCancel:S,onConfirm:E})]})}const yC="_card_17od5_1",xC="_title_17od5_8",bC="_actions_17od5_17",bd={card:yC,title:xC,actions:bC};function ds({title:a,children:c,actions:i}){return l.jsxs("div",{className:bd.card,children:[l.jsx("div",{className:bd.title,children:a}),c,i&&l.jsx("div",{className:bd.actions,children:i})]})}const jC="_page_h0psp_1",SC="_kycBanner_h0psp_8",NC="_main_h0psp_19",wC="_profileTop_h0psp_29",CC="_userInfo_h0psp_33",EC="_sections_h0psp_37",TC="_grid2_h0psp_44",RC="_grid1_h0psp_50",AC="_mnemonicRow_h0psp_56",MC="_mnemonicInfo_h0psp_63",OC="_mnemonicIcon_h0psp_69",zC="_mnemonicText_h0psp_73",DC="_userName_h0psp_105",LC="_userBalance_h0psp_112",Mt={page:jC,kycBanner:SC,main:NC,profileTop:wC,userInfo:CC,sections:EC,grid2:TC,grid1:RC,mnemonicRow:AC,mnemonicInfo:MC,mnemonicIcon:OC,mnemonicText:zC,userName:DC,userBalance:LC};function BC({data:a,fullName:c,phone:i,onPhoneChange:r,onPhoneBlur:d}){return l.jsxs(l.Fragment,{children:[l.jsx(ds,{title:"Личные данные",children:l.jsxs("div",{className:Mt.grid2,children:[l.jsx(Se,{label:"Полное ФИО",value:c,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),l.jsx(Se,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),l.jsx(Se,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),l.jsx(Se,{label:"Номер телефона",value:i,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),l.jsx(ds,{title:"Верификация",children:l.jsxs("div",{className:Mt.grid2,children:[l.jsx(Se,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(Se,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]})}function kC({data:a}){const c=a.legal_entity;return c?l.jsxs(l.Fragment,{children:[l.jsx(ds,{title:"Данные организации",children:l.jsxs("div",{className:Mt.grid2,children:[l.jsx(Se,{label:"Наименование",value:c.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),l.jsx(Se,{label:"Краткое наименование",value:c.short_name??"",placeholder:"Ромашка",readOnly:!0}),l.jsx(Se,{label:"ИНН",value:c.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(Se,{label:"ОГРН",value:c.ogrn??"",placeholder:"1027700132195",readOnly:!0}),l.jsx(Se,{label:"КПП",value:c.kpp??"",placeholder:"770801001",readOnly:!0}),l.jsx(Se,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),l.jsx(ds,{title:"Адреса",children:l.jsxs("div",{className:Mt.grid2,children:[l.jsx(Se,{label:"Юридический адрес",value:c.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),l.jsx(Se,{label:"Фактический адрес",value:c.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),l.jsx(ds,{title:"Контакты и верификация",children:l.jsxs("div",{className:Mt.grid2,children:[l.jsx(Se,{label:"Контактное лицо",value:c.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),l.jsx(Se,{label:"Контактный телефон",value:c.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),l.jsx(Se,{label:"Статус",value:c.status??"",placeholder:"active",readOnly:!0}),l.jsx(Se,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function UC(){var O;const{data:a}=ql(),{data:c,isLoading:i}=Uo(),{data:r}=ko(),d=T8(),f=En(),[_,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(null);j.useEffect(()=>{(a==null?void 0:a.phone)!=null&&(g(a.phone),m(a.phone))},[a==null?void 0:a.phone]);function b(k){g(k.replace(/[^\d+\s()-]/g,""))}function N(){const k=_.trim();k===h||d.isPending||d.mutate(k,{onSuccess:()=>{m(k),y({status:"success",message:"Номер телефона обновлён"})},onError:()=>{y({status:"error",message:"Не удалось обновить номер телефона"})}})}const S=k=>k?k[0].toUpperCase()+k.slice(1).toLowerCase():"",E=a?[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(S).join(" "):"",T=!!a&&a.account_type!=="individual",z=T?((O=a==null?void 0:a.legal_entity)==null?void 0:O.name)??"":E,H=i||!c||c.totalUsd==null?"$—":`$${c.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:Mt.page,children:[l.jsx(Ho,{}),a&&!a.kyc_verified&&l.jsx("div",{className:Mt.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"}),l.jsxs("main",{className:Mt.main,children:[l.jsxs("div",{className:Mt.profileTop,children:[l.jsx(gC,{}),l.jsxs("div",{className:Mt.userInfo,children:[l.jsx("span",{className:Mt.userName,children:z}),l.jsx("span",{className:Mt.userBalance,children:H})]})]}),l.jsxs("div",{className:Mt.sections,children:[a&&(T?l.jsx(kC,{data:a}):l.jsx(BC,{data:a,fullName:E,phone:_,onPhoneChange:b,onPhoneBlur:N})),l.jsx(ds,{title:"Безопасность",actions:l.jsxs(l.Fragment,{children:[l.jsx(Zt,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),l.jsx(Zt,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:l.jsx("div",{className:Mt.grid1,children:r==null?void 0:r.map(({chain:k,address:Y})=>l.jsx(Se,{label:`Адрес ${k}`,readOnly:!0,icon:"lock",value:Y,placeholder:"—"},k))})}),l.jsx(ds,{title:"Мнемоника",children:l.jsxs("div",{className:Mt.mnemonicRow,children:[l.jsxs("div",{className:Mt.mnemonicInfo,children:[l.jsx("span",{className:Mt.mnemonicIcon,children:"🔑"}),l.jsx("span",{className:Mt.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),l.jsx(Zt,{variant:"danger",onClick:()=>f(de.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})]})]}),v&&l.jsx(Ta,{status:v.status,message:v.message,onClose:()=>y(null)})]})}const HC="_card_1erii_1",$C="_logo_1erii_10",qC="_title_1erii_20",GC="_twoCol_1erii_29",FC="_leftCol_1erii_36",VC="_rightCol_1erii_42",QC="_codeHint_1erii_48",YC="_error_1erii_55",XC="_submitWrapper_1erii_62",IC="_footer_1erii_66",ZC="_forgot_1erii_73",PC="_divider_1erii_88",Un={card:HC,logo:$C,title:qC,twoCol:GC,leftCol:FC,rightCol:VC,codeHint:QC,error:YC,submitWrapper:XC,footer:IC,forgot:ZC,divider:PC};function wp(a){var i,r;const c=a;return((r=(i=c==null?void 0:c.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function KC(){const[a,c]=j.useState(""),[i,r]=j.useState(""),[d,f]=j.useState(""),[_,g]=j.useState(!1),h=Zn(),m=En(),v=Ot({mutationFn:y8,onSuccess:()=>g(!0)}),y=Ot({mutationFn:x8,onSuccess:async({access_token:E})=>{m2(),h.clear(),E&&$n.set(E),await h.invalidateQueries({queryKey:Bo}),m(de.PROFILE)}}),b=()=>{a&&v.mutate({email:a})},N=E=>{E.preventDefault(),y.mutate({email:a,password:i,code:d})},S=(v.isError?wp(v.error):null)??(y.isError?wp(y.error):null);return{email:a,setEmail:c,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:_,isLoadingCode:v.isPending,isLoadingSubmit:y.isPending,error:S,handleRequestCode:b,handleSubmit:N}}function WC(){const{email:a,setEmail:c,password:i,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:_,isLoadingCode:g,isLoadingSubmit:h,error:m,handleRequestCode:v,handleSubmit:y}=KC(),b=En();return l.jsxs("form",{className:Un.card,onSubmit:y,children:[l.jsx("div",{className:Un.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("h1",{className:Un.title,children:"Войти в кошелёк ЭКСА"}),l.jsxs("div",{className:Un.twoCol,children:[l.jsxs("div",{className:Un.leftCol,children:[l.jsx(Se,{label:"Адрес электронной почты",type:"email",value:a,onChange:c,placeholder:"example@mail.ru",required:!0}),l.jsx(Se,{label:"Пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:Un.rightCol,children:[l.jsx(Zt,{variant:"ghost",type:"button",onClick:v,disabled:_||g,children:g?"Отправка...":_?"Код отправлен":"Получить код на email"}),l.jsx("span",{className:Un.codeHint,children:"Код не пришёл"}),l.jsx(Se,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),m&&l.jsx("p",{className:Un.error,children:m}),l.jsx("div",{className:Un.submitWrapper,children:l.jsx(ul,{label:h?"Вход...":"Войти",disabled:h})}),l.jsxs("div",{className:Un.footer,children:[l.jsx("a",{className:Un.forgot,onClick:()=>b(de.RESTORE_PASSWORD),children:"Забыли пароль?"}),l.jsx("div",{className:Un.divider,children:l.jsx("span",{children:"или"})}),l.jsx(Zt,{variant:"outline",type:"button",onClick:()=>b(de.REGISTER),children:"Создать новый кошелёк"})]})]})}const JC="_page_a6ygb_1",eE={page:JC};function tE(){return l.jsx("div",{className:eE.page,children:l.jsx(WC,{})})}function Cp(a){var i,r;const c=a;return((r=(i=c==null?void 0:c.detail)==null?void 0:i[0])==null?void 0:r.msg)??"Произошла ошибка"}function nE(){const a=En(),c=Zn(),[i,r]=j.useState(""),[d,f]=j.useState(""),[_,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(!1),[b,N]=j.useState(null),S=Ot({mutationFn:v8,onSuccess:()=>y(!0)}),E=Ot({mutationFn:g8,onSuccess:async({access_token:O})=>{m2(),c.clear(),O&&$n.set(O),await c.invalidateQueries({queryKey:Bo}),a(de.WALLET)}}),T=()=>{i&&S.mutate({email:i})},z=O=>{if(O.preventDefault(),d!==_){N("Пароли не совпадают");return}N(null),E.mutate({email:i,password:d,confirm_password:_,code:h})},H=b??(S.isError?Cp(S.error):null)??(E.isError?Cp(E.error):null);return{email:i,setEmail:r,password:d,setPassword:f,confirmPassword:_,setConfirmPassword:g,verificationCode:h,setVerificationCode:m,codeSent:v,isLoadingCode:S.isPending,isLoadingSubmit:E.isPending,error:H,handleRequestCode:T,handleSubmit:z}}const lE="_card_4lgff_1",aE="_logo_4lgff_10",sE="_title_4lgff_20",iE="_typeSelect_4lgff_29",cE="_back_4lgff_39",rE="_legalInfo_4lgff_55",oE="_legalIntro_4lgff_61",uE="_docsBlock_4lgff_67",dE="_emailBlock_4lgff_68",fE="_docsLabel_4lgff_74",hE="_docsList_4lgff_80",mE="_emailLink_4lgff_94",pE="_legalDone_4lgff_105",_E="_legalDoneTitle_4lgff_113",vE="_legalDoneText_4lgff_119",gE="_twoCol_4lgff_125",yE="_leftCol_4lgff_132",xE="_rightCol_4lgff_138",bE="_codeHint_4lgff_149",jE="_error_4lgff_156",SE="_submitWrapper_4lgff_163",NE="_legal_4lgff_55",at={card:lE,logo:aE,title:sE,typeSelect:iE,back:cE,legalInfo:rE,legalIntro:oE,docsBlock:uE,emailBlock:dE,docsLabel:fE,docsList:hE,emailLink:mE,legalDone:pE,legalDoneTitle:_E,legalDoneText:vE,twoCol:gE,leftCol:yE,rightCol:xE,codeHint:bE,error:jE,submitWrapper:SE,legal:NE};function wE(){const{email:a,setEmail:c,password:i,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:_,setVerificationCode:g,codeSent:h,isLoadingCode:m,isLoadingSubmit:v,error:y,handleRequestCode:b,handleSubmit:N}=nE();return l.jsxs("form",{onSubmit:N,children:[l.jsxs("div",{className:at.twoCol,children:[l.jsxs("div",{className:at.leftCol,children:[l.jsx(Se,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:c,placeholder:"example@mail.ru",required:!0}),l.jsx(Se,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••",required:!0}),l.jsx(Se,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:at.rightCol,children:[l.jsx(Zt,{variant:"ghost",type:"button",onClick:b,disabled:h||m,children:m?"Отправка...":h?"Код отправлен":"Получить проверочный код"}),l.jsx("span",{className:at.codeHint,children:"Код не пришёл"}),l.jsx(Se,{label:"Ввести код",type:"text",value:_,onChange:g,placeholder:"000 000",required:!0})]})]}),y&&l.jsx("p",{className:at.error,children:y}),l.jsx("div",{className:at.submitWrapper,children:l.jsx(ul,{label:v?"Создание...":"Создать",disabled:v})}),l.jsxs("p",{className:at.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const Ep="support@elcsa.ru",CE=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function EE(){const[a,c]=j.useState(!1);return a?l.jsxs("div",{className:at.legalDone,children:[l.jsx("h2",{className:at.legalDoneTitle,children:"Спасибо!"}),l.jsx("p",{className:at.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):l.jsxs("div",{className:at.legalInfo,children:[l.jsx("p",{className:at.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),l.jsxs("div",{className:at.docsBlock,children:[l.jsx("span",{className:at.docsLabel,children:"Необходимые документы"}),l.jsx("ul",{className:at.docsList,children:CE.map(i=>l.jsx("li",{children:i},i))})]}),l.jsxs("div",{className:at.emailBlock,children:[l.jsx("span",{className:at.docsLabel,children:"Адрес для отправки документов"}),l.jsx("a",{href:`mailto:${Ep}`,className:at.emailLink,children:Ep})]}),l.jsx("div",{className:at.submitWrapper,children:l.jsx(ul,{label:"Документы отправлены",type:"button",onClick:()=>c(!0)})})]})}function TE(){const[a,c]=j.useState(null);return l.jsxs("div",{className:at.card,children:[l.jsx("div",{className:at.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("h1",{className:at.title,children:"Создать кошелёк ЭКСА"}),a===null?l.jsxs("div",{className:at.typeSelect,children:[l.jsx(Zt,{variant:"primary",onClick:()=>c("individual"),children:"Зарегистрироваться как физическое лицо"}),l.jsx(Zt,{variant:"outline",onClick:()=>c("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:at.back,onClick:()=>c(null),children:"← Назад к выбору"}),a==="individual"?l.jsx(wE,{}):l.jsx(EE,{})]})]})}const RE="_page_a6ygb_1",AE={page:RE};function ME(){return l.jsx("div",{className:AE.page,children:l.jsx(TE,{})})}const OE="_page_1bkwz_1",zE="_card_1bkwz_9",DE="_logo_1bkwz_18",LE="_title_1bkwz_28",BE="_typeSwitch_1bkwz_38",kE="_typeOption_1bkwz_49",UE="_typeOptionActive_1bkwz_66",HE="_twoCol_1bkwz_71",$E="_leftCol_1bkwz_78",qE="_rightCol_1bkwz_84",GE="_codeHint_1bkwz_90",FE="_backButton_1bkwz_98",VE="_documentsSubtitle_1bkwz_131",QE="_documentsList_1bkwz_137",YE="_documentItem_1bkwz_146",XE="_documentName_1bkwz_157",IE="_attachButton_1bkwz_163",ZE="_fileInput_1bkwz_181",PE="_submitWrapper_1bkwz_192",KE="_legal_1bkwz_196",Ke={page:OE,card:zE,logo:DE,title:LE,typeSwitch:BE,typeOption:kE,typeOptionActive:UE,twoCol:HE,leftCol:$E,rightCol:qE,codeHint:GE,backButton:FE,documentsSubtitle:VE,documentsList:QE,documentItem:YE,documentName:XE,attachButton:IE,fileInput:ZE,submitWrapper:PE,legal:KE},WE=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function JE(){const[a,c]=j.useState(""),[i,r]=j.useState(""),[d,f]=j.useState(""),[_,g]=j.useState(""),[h,m]=j.useState("individual"),[v,y]=j.useState("info"),b=h==="legal",N=E=>{E.preventDefault(),y("documents")},S=E=>{E.preventDefault()};return l.jsx("div",{className:Ke.page,children:v==="info"?l.jsxs("form",{className:Ke.card,onSubmit:N,children:[l.jsx("div",{className:Ke.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("h1",{className:Ke.title,children:"Создать кошелёк ЭКСА"}),l.jsxs("div",{className:Ke.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[l.jsx("button",{type:"button",role:"tab","aria-selected":!b,className:`${Ke.typeOption} ${b?"":Ke.typeOptionActive}`,onClick:()=>m("individual"),children:"Физическое лицо"}),l.jsx("button",{type:"button",role:"tab","aria-selected":b,className:`${Ke.typeOption} ${b?Ke.typeOptionActive:""}`,onClick:()=>m("legal"),children:"Юридическое лицо"})]}),l.jsxs("div",{className:Ke.twoCol,children:[l.jsxs("div",{className:Ke.leftCol,children:[l.jsx(Se,{label:b?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:c,placeholder:b?"name@company.ru":"example@mail.ru"}),l.jsx(Se,{label:"Придумайте пароль",type:"password",value:i,onChange:r,placeholder:"••••••••"}),l.jsx(Se,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),l.jsxs("div",{className:Ke.rightCol,children:[l.jsx(Zt,{variant:"ghost",type:"button",children:"Получить проверочный код"}),l.jsx("span",{className:Ke.codeHint,children:"Код не пришёл"}),l.jsx(Se,{label:"Ввести код",type:"text",value:_,onChange:g,placeholder:"000 000"})]})]}),l.jsx("div",{className:Ke.submitWrapper,children:l.jsx(ul,{label:"Создать"})}),l.jsxs("p",{className:Ke.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):l.jsxs("form",{className:Ke.card,onSubmit:S,children:[l.jsx("div",{className:Ke.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("button",{type:"button",className:Ke.backButton,onClick:()=>y("info"),children:"← Назад к данным"}),l.jsx("h1",{className:Ke.title,children:"Прикрепите документы"}),l.jsx("p",{className:Ke.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),l.jsx("ul",{className:Ke.documentsList,children:WE.map(E=>l.jsxs("li",{className:Ke.documentItem,children:[l.jsx("span",{className:Ke.documentName,children:E}),l.jsxs("label",{className:Ke.attachButton,children:["Прикрепить",l.jsx("input",{type:"file",className:Ke.fileInput,multiple:!0})]})]},E))}),l.jsx("div",{className:Ke.submitWrapper,children:l.jsx(ul,{label:"Создать аккаунт"})})]})})}const eT="_page_cc0zl_1",tT="_wrap_cc0zl_9",nT="_header_cc0zl_20",lT="_title_cc0zl_24",aT="_subtitle_cc0zl_29",sT="_body_cc0zl_37",iT="_formCol_cc0zl_43",cT="_hint_cc0zl_49",rT="_infoCol_cc0zl_56",oT="_infoTitle_cc0zl_61",uT="_infoRow_cc0zl_68",dT="_infoLabel_cc0zl_84",fT="_infoValue_cc0zl_89",hT="_note_cc0zl_95",mT="_submitBtn_cc0zl_102",pt={page:eT,wrap:tT,header:nT,title:lT,subtitle:aT,body:sT,formCol:iT,hint:cT,infoCol:rT,infoTitle:oT,infoRow:uT,infoLabel:dT,infoValue:fT,note:hT,submitBtn:mT},jd=5e5,Tp=.03,_o=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function pT(){const[a,c]=j.useState(""),[i,r]=j.useState(""),[d,f]=j.useState(""),_=Number(a.replace(/\D/g,""))||0,g=_>0&&_<jd,h=_*Tp,m=y=>{const b=y.replace(/\D/g,"");c(b?_o(Number(b)):"")},v=y=>{y.preventDefault()};return l.jsx("div",{className:pt.page,children:l.jsxs("form",{className:pt.wrap,onSubmit:v,children:[l.jsxs("div",{className:pt.header,children:[l.jsx("h1",{className:pt.title,children:"Оставить заявку"}),l.jsx("p",{className:pt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:pt.body,children:[l.jsxs("div",{className:pt.formCol,children:[l.jsx(Se,{label:"Объём заявки, ₽",type:"text",value:a,onChange:m,placeholder:"от 500 000"}),g&&l.jsxs("p",{className:pt.hint,children:["Минимальный объём заявки — ",_o(jd)," ₽"]}),l.jsx(Se,{label:"Как к вам обращаться",type:"text",value:i,onChange:r,placeholder:"Имя"}),l.jsx(Se,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:pt.infoCol,children:[l.jsx("div",{className:pt.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:pt.infoRow,children:[l.jsx("span",{className:pt.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:pt.infoValue,children:[_o(jd)," ₽"]})]}),l.jsxs("div",{className:pt.infoRow,children:[l.jsx("span",{className:pt.infoLabel,children:"Примерная комиссия"}),l.jsxs("span",{className:pt.infoValue,children:[(Tp*100).toFixed(0)," %"]})]}),l.jsxs("div",{className:pt.infoRow,"data-accent":!0,children:[l.jsx("span",{className:pt.infoLabel,children:"Комиссия с объёма"}),l.jsx("span",{className:pt.infoValue,children:_>0?`${_o(h)}`:"—"})]}),l.jsx("p",{className:pt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:pt.submitBtn,disabled:g,children:"Оставить заявку"})]})})}const _T="Сумма для конвертации слишком мала. Увеличьте сумму и попробуйте снова.";function vT(){const a=O3(),[c,i]=j.useState(!1),[r,d]=j.useState(null),{mutate:f,isPending:_}=c5();function g(){d(null),f(a.isUsdtToRub?{usdt_amount:a.numUsdt,usdt_exchange_rate:1,gas_fee:1,total_price:a.rubTotalNum}:{usdt_amount:a.usdtFromRubNum,usdt_exchange_rate:1,gas_fee:1,total_price:a.numRubInput},{onError:()=>d({status:"error",message:_T})})}const h=a.isUsdtToRub?!a.rubTotal||_||!c:!a.usdtFromRub||_||!c||a.rubBelowMin;return{...a,agreed:c,setAgreed:i,onPay:g,isPending:_,isPayDisabled:h,notification:r,dismissNotification:()=>d(null)}}const gT="_wrap_6xfms_1",yT="_box_6xfms_12",xT="_text_6xfms_39",bT="_link_6xfms_46",jT="_required_6xfms_51",Ac={wrap:gT,box:yT,text:xT,link:bT,required:jT};function ST({checked:a,onToggle:c}){return l.jsxs("button",{type:"button",className:Ac.wrap,onClick:c,"aria-pressed":a,children:[l.jsx("span",{className:Ac.box,"data-checked":a||void 0,children:l.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),l.jsxs("span",{className:Ac.text,children:["Я ознакомлен и согласен с"," ",l.jsx("a",{href:"/publichnaya-oferta",className:Ac.link,target:"_blank",rel:"noopener noreferrer",onClick:i=>i.stopPropagation(),children:"публичной офертой"}),". Вся деятельность компании соответствует законодательству Российской Федерации.",l.jsx("br",{}),l.jsx("span",{className:Ac.required,children:"ОБЯЗАТЕЛЬНОЕ ПОЛЕ"})]})]})}const NT="_wrap_1senc_1",wT="_header_1senc_8",CT="_title_1senc_17",ET="_subtitle_1senc_22",TT="_pills_1senc_29",RT="_pill_1senc_29",AT="_pillValue_1senc_43",MT="_body_1senc_53",OT="_tabs_1senc_59",zT="_tab_1senc_59",DT="_bottom_1senc_91",LT="_payBtn_1senc_99",rn={wrap:NT,header:wT,title:CT,subtitle:ET,pills:TT,pill:RT,pillValue:AT,body:MT,tabs:OT,tab:zT,bottom:DT,payBtn:LT};function BT(){const{isUsdtToRub:a,gasPriceRub:c,configUsdtRate:i,convert:r,pay:d,onSwap:f,commission:_,agreed:g,setAgreed:h,onPay:m,isPending:v,isPayDisabled:y,notification:b,dismissNotification:N}=vT();return l.jsxs("div",{className:rn.wrap,children:[l.jsxs("div",{className:rn.header,children:[l.jsxs("div",{children:[l.jsx("h1",{className:rn.title,children:"Конвертация"}),l.jsx("div",{className:rn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:rn.pills,children:[l.jsxs("div",{className:rn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:rn.pillValue,children:[c.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:rn.pill,children:["USDT/RUB ",l.jsxs("span",{className:rn.pillValue,children:[i.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:rn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:rn.tabs,children:l.jsx("div",{className:rn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(So,{label:a?"Конвертируете":"Платите",...r}),l.jsx(f3,{onClick:f}),l.jsx(So,{label:a?"Платите":"Конвертируете",...d})]}),l.jsx(m3,{..._})]}),l.jsx("div",{className:rn.bottom,children:l.jsx(ST,{checked:g,onToggle:()=>h(!g)})}),l.jsx("button",{type:"button",className:rn.payBtn,onClick:m,disabled:y,children:v?"Обработка...":"Оплатить"}),b&&l.jsx(Ta,{status:b.status,message:b.message,onClose:N})]})}const kT="_wrap_12wuz_1",UT="_header_12wuz_12",HT="_title_12wuz_16",$T="_subtitle_12wuz_21",qT="_body_12wuz_29",GT="_formCol_12wuz_35",FT="_hint_12wuz_41",VT="_infoCol_12wuz_48",QT="_infoTitle_12wuz_53",YT="_infoRow_12wuz_60",XT="_infoLabel_12wuz_76",IT="_infoValue_12wuz_81",ZT="_note_12wuz_87",PT="_submitBtn_12wuz_94",We={wrap:kT,header:UT,title:HT,subtitle:$T,body:qT,formCol:GT,hint:FT,infoCol:VT,infoTitle:QT,infoRow:YT,infoLabel:XT,infoValue:IT,note:ZT,submitBtn:PT},Sd=5e5,Mc=[{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}],_a=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0}),Nd=a=>{const c=a%10,i=a%100;return c===1&&i!==11?`${a} день`:c>=2&&c<=4&&(i<10||i>=20)?`${a} дня`:`${a} дней`};function KT(){var O;const[a,c]=j.useState(""),[i,r]=j.useState(""),[d,f]=j.useState(""),[_,g]=j.useState(Mc[0].days),[h,m]=j.useState(null),{mutate:v,isPending:y}=L8(),b=Number(a.replace(/\D/g,""))||0,N=b>0&&b<Sd,S=((O=Mc.find(k=>k.days===_))==null?void 0:O.rate)??Mc[0].rate,E=b*S,T=b+E,z=k=>{const Y=k.replace(/\D/g,"");c(Y?_a(Number(Y)):"")},H=k=>{if(k.preventDefault(),b===0||N||y)return;const Y=[i&&`Имя: ${i}`,d&&`Контакт: ${d}`,`Срок ожидания: ${Nd(_)}`,`Сумма: ${_a(b)}`,`Комиссия: ≈${_a(E)}`,`Итого: ≈${_a(T)}`].filter(Boolean).join("; ");v({usdt_amount:b,comment:Y},{onSuccess:()=>{m("success"),c(""),r(""),f(""),g(Mc[0].days)},onError:()=>m("error")})};return l.jsxs("form",{className:We.wrap,onSubmit:H,children:[l.jsxs("div",{className:We.header,children:[l.jsx("h1",{className:We.title,children:"Оставить заявку"}),l.jsx("p",{className:We.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:We.body,children:[l.jsxs("div",{className:We.formCol,children:[l.jsx(Se,{label:"Объём заявки, ₽",type:"text",value:a,onChange:z,placeholder:"от 500 000"}),N&&l.jsxs("p",{className:We.hint,children:["Минимальный объём заявки — ",_a(Sd)," ₽"]}),l.jsx(Cx,{id:"term",label:"Срок ожидания операции",value:_,onChange:g,options:Mc.map(k=>({value:k.days,label:`${Nd(k.days)} — комиссия ${(k.rate*100).toFixed(3)} %`}))}),l.jsx(Se,{label:"Как к вам обращаться",type:"text",value:i,onChange:r,placeholder:"Имя"}),l.jsx(Se,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:We.infoCol,children:[l.jsx("div",{className:We.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:We.infoRow,children:[l.jsx("span",{className:We.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:We.infoValue,children:[_a(Sd)," ₽"]})]}),l.jsxs("div",{className:We.infoRow,children:[l.jsx("span",{className:We.infoLabel,children:"Срок ожидания"}),l.jsx("span",{className:We.infoValue,children:Nd(_)})]}),l.jsxs("div",{className:We.infoRow,children:[l.jsx("span",{className:We.infoLabel,children:"Ставка комиссии"}),l.jsxs("span",{className:We.infoValue,children:[(S*100).toFixed(3)," %"]})]}),l.jsxs("div",{className:We.infoRow,children:[l.jsx("span",{className:We.infoLabel,children:"Сумма комиссии"}),l.jsx("span",{className:We.infoValue,children:b>0?`${_a(E)}`:"—"})]}),l.jsxs("div",{className:We.infoRow,"data-accent":!0,children:[l.jsx("span",{className:We.infoLabel,children:"Итого к оплате"}),l.jsx("span",{className:We.infoValue,children:b>0?`${_a(T)}`:"—"})]}),l.jsx("p",{className:We.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:We.submitBtn,disabled:N||b===0||y,children:y?"Отправляем...":"Оставить заявку"}),h&&l.jsx(Ta,{status:h,message:h==="success"?"Заявка отправлена":"Не удалось отправить заявку",onClose:()=>m(null)})]})}function WT(){const{data:a,isLoading:c}=ql();return c?l.jsx(Bx,{fullscreen:!0,size:"lg",label:"Загрузка данных аккаунта"}):!!a&&a.account_type!=="individual"?l.jsx(KT,{}):l.jsx(BT,{})}const Rp=52;function JT(a){const[c,i]=j.useState(!1),[r,d]=j.useState(Rp),[f,_]=j.useState(!1),g=j.useRef(null),h=j.useCallback(()=>{g.current&&clearInterval(g.current),d(Rp),g.current=setInterval(()=>{d(y=>y<=1?(clearInterval(g.current),i(!0),0):y-1)},1e3)},[]);j.useEffect(()=>(h(),()=>{g.current&&clearInterval(g.current)}),[h]);const m=j.useCallback(()=>{i(y=>y?(h(),!1):(g.current&&clearInterval(g.current),!0))},[h]),v=j.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{_(!0),setTimeout(()=>_(!1),1500)})},[a]);return{hidden:c,countdown:r,copied:f,handleHide:m,handleCopy:v}}const eR="_content_o6p8v_1",tR="_titleRow_o6p8v_6",nR="_title_o6p8v_6",lR="_titleButtons_o6p8v_19",aR="_btnFixed_o6p8v_26",sR="_subtitle_o6p8v_34",iR="_countdown_o6p8v_42",cR="_seedGrid_o6p8v_47",rR="_seedCard_o6p8v_54",oR="_seedNum_o6p8v_73",uR="_seedWord_o6p8v_80",dR="_seedWordHidden_o6p8v_88",fR="_warning_o6p8v_93",hR="_warningIcon_o6p8v_101",mR="_warningText_o6p8v_107",pR="_profileLinkRow_o6p8v_115",_R="_profileLink_o6p8v_115",Tt={content:eR,titleRow:tR,title:nR,titleButtons:lR,btnFixed:aR,subtitle:sR,countdown:iR,seedGrid:cR,seedCard:rR,seedNum:oR,seedWord:uR,seedWordHidden:dR,warning:fR,warningIcon:hR,warningText:mR,profileLinkRow:pR,profileLink:_R};function vR({words:a}){const{hidden:c,countdown:i,copied:r,handleHide:d,handleCopy:f}=JT(a);return l.jsxs("div",{className:Tt.content,children:[l.jsxs("div",{className:Tt.titleRow,children:[l.jsx("h1",{className:Tt.title,children:"СИД ФРАЗА"}),l.jsxs("div",{className:Tt.titleButtons,children:[l.jsx("div",{className:Tt.btnFixed,children:l.jsx(Zt,{variant:"outline",onClick:d,children:c?"ПОКАЗАТЬ":"СКРЫТЬ"})}),l.jsx("div",{className:Tt.btnFixed,children:l.jsx(Zt,{variant:"outline",onClick:f,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!c&&l.jsxs("div",{className:Tt.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",l.jsx("span",{className:Tt.countdown,children:i}),"С"]}),l.jsx("div",{className:Tt.seedGrid,children:a.map((_,g)=>l.jsxs("div",{className:Tt.seedCard,children:[l.jsxs("span",{className:Tt.seedNum,children:[g+1,"."]}),l.jsx("span",{className:`${Tt.seedWord} ${c?Tt.seedWordHidden:""}`,children:c?"•••••":_})]},g))}),l.jsxs("div",{className:Tt.warning,children:[l.jsx("span",{className:Tt.warningIcon,children:"⚠️"}),l.jsx("p",{className:Tt.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),l.jsx("div",{className:Tt.profileLinkRow,children:l.jsx(It,{to:de.PROFILE,className:Tt.profileLink,children:"Перейти в профиль"})})]})}const gR="_page_1mk6w_1",yR="_main_1mk6w_8",xR="_glow_1mk6w_17",wd={page:gR,main:yR,glow:xR};function bR(){const{data:a,isLoading:c}=dj(),i=a?a.split(" "):[];return l.jsxs("div",{className:wd.page,children:[l.jsx(Ho,{}),l.jsxs("main",{className:wd.main,children:[l.jsx("div",{className:wd.glow}),!c&&l.jsx(vR,{words:i})]})]})}const jR="https://app.kyc.elcsa.ru";function SR(){return h_(!0)}async function h_(a){const c=await Pn(),i=await fetch(`${jR}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":c},body:JSON.stringify({})});if(i.status===401&&a)try{return await ps(),h_(!1)}catch{throw $n.clear(),new Error("Unauthorized")}const r=await i.json();if(!i.ok)throw r;return r}function NR(){const a=Ot({mutationFn:SR});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const wR="_backdrop_1do7s_1",CR="_modal_1do7s_12",ER="_closeBtn_1do7s_22",TR="_body_1do7s_40",RR="_qrBlock_1do7s_47",AR="_qrImage_1do7s_55",MR="_linkBtn_1do7s_63",Wa={backdrop:wR,modal:CR,closeBtn:ER,body:TR,qrBlock:RR,qrImage:AR,linkBtn:MR};function OR({data:a,onClose:c}){return l.jsx("div",{className:Wa.backdrop,onClick:c,children:l.jsxs("div",{className:Wa.modal,onClick:i=>i.stopPropagation(),children:[l.jsx("button",{className:Wa.closeBtn,onClick:c,type:"button",children:"×"}),l.jsx("div",{className:Wa.body,children:l.jsxs("div",{className:Wa.qrBlock,children:[l.jsx("img",{className:Wa.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),l.jsx("a",{className:Wa.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const zR="_card_omb8e_1",DR="_logo_omb8e_13",LR="_iconWrapper_omb8e_21",BR="_description_omb8e_34",kR="_buttonWrapper_omb8e_42",UR="_error_omb8e_47",si={card:zR,logo:DR,iconWrapper:LR,description:BR,buttonWrapper:kR,error:UR};function HR(){const{trigger:a,data:c,isLoading:i,isError:r}=NR(),d=En(),f=Zn(),{data:_}=ql({refetchInterval:c?5e3:!1});j.useEffect(()=>{_!=null&&_.kyc_verified&&d(de.SEED_PHRASE,{replace:!0})},[_==null?void 0:_.kyc_verified,d]);const g=()=>{f.invalidateQueries({queryKey:["me"]})};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:si.card,children:[l.jsx("div",{className:si.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("div",{className:si.iconWrapper,children:l.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.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"}),l.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),l.jsx("p",{className:si.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),l.jsx("div",{className:si.buttonWrapper,children:l.jsx(ul,{label:i?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:i})}),r&&l.jsx("p",{className:si.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),c&&l.jsx(OR,{data:c,onClose:g})]})}const $R="_page_6lnfw_1",qR={page:$R};function GR(){const{data:a,isLoading:c}=ql();return c?null:a!=null&&a.kyc_verified?l.jsx(Do,{to:de.PROFILE,replace:!0}):l.jsx("div",{className:qR.page,children:l.jsx(HR,{})})}const FR="_card_mzeuq_1",VR="_logo_mzeuq_10",QR="_title_mzeuq_20",YR="_fields_mzeuq_29",XR="_emailRow_mzeuq_35",IR="_error_mzeuq_41",ZR="_submitWrapper_mzeuq_48",PR="_footer_mzeuq_52",KR="_back_mzeuq_58",Ol={card:FR,logo:VR,title:QR,fields:YR,emailRow:XR,error:IR,submitWrapper:ZR,footer:PR,back:KR};function WR(){const[a,c]=j.useState(""),[i,r]=j.useState(!1),[d,f]=j.useState(!1),[_,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(""),[b,N]=j.useState(""),[S,E]=j.useState(!1),[T,z]=j.useState(null),H=En();async function O(){N(""),f(!0);try{await N8({email:a}),r(!0),z({status:"success",message:`Код отправлен на ${a}`})}catch{z({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function k(Y){if(Y.preventDefault(),N(""),h!==v){N("Пароли не совпадают");return}E(!0);try{await C8({email:a,code:_,new_password:h,confirm_password:v}),H(de.LOGIN)}catch{N("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{E(!1)}}return l.jsxs(l.Fragment,{children:[l.jsxs("form",{className:Ol.card,onSubmit:k,children:[l.jsx("div",{className:Ol.logo,children:l.jsx("img",{src:dl,alt:"ЭКСА"})}),l.jsx("h1",{className:Ol.title,children:"Восстановление пароля"}),l.jsxs("div",{className:Ol.fields,children:[l.jsxs("div",{className:Ol.emailRow,children:[l.jsx(Se,{label:"E-Mail",type:"email",value:a,onChange:c,placeholder:"example@mail.com",required:!0}),l.jsx(ul,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:O})]}),i&&l.jsxs(l.Fragment,{children:[l.jsx(Se,{label:"Код с почты",type:"text",value:_,onChange:g,placeholder:"000 000",required:!0}),l.jsx(Se,{label:"Новый пароль",type:"password",value:h,onChange:m,placeholder:"••••••••",required:!0}),l.jsx(Se,{label:"Повторить пароль",type:"password",value:v,onChange:y,placeholder:"••••••••",required:!0})]})]}),b&&l.jsx("p",{className:Ol.error,children:b}),i&&l.jsx("div",{className:Ol.submitWrapper,children:l.jsx(ul,{label:S?"Сохранение...":"Изменить пароль",disabled:S})}),l.jsx("div",{className:Ol.footer,children:l.jsx("a",{className:Ol.back,onClick:()=>H(de.LOGIN),children:"Вернуться ко входу"})})]}),T&&l.jsx(Ta,{status:T.status,message:T.message,onClose:()=>z(null)})]})}const JR="_page_6lnfw_1",eA={page:JR};function tA(){return l.jsx("div",{className:eA.page,children:l.jsx(WR,{})})}const nA="_main_1fqml_1",lA="_container_1fqml_7",aA="_title_1fqml_13",sA="_subtitle_1fqml_21",iA="_section_1fqml_29",cA="_sectionTitle_1fqml_33",rA="_definitions_1fqml_42",oA="_definition_1fqml_42",uA="_requisites_1fqml_56",Ne={main:nA,container:lA,title:aA,subtitle:sA,section:iA,sectionTitle:cA,definitions:rA,definition:oA,requisites:uA};function dA(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsx("main",{className:Ne.main,children:l.jsxs("div",{className:Ne.container,children:[l.jsx("h1",{className:Ne.title,children:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ"}),l.jsx("h2",{className:Ne.subtitle,children:"ООО БИТФОРС"}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"Агентский договор"}),l.jsx("p",{children:"Настоящая оферта на заключение агентского договора (далее Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."}),l.jsx("p",{children:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"Основные понятия и определения действующего договора"}),l.jsxs("div",{className:Ne.definitions,children:[l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Агент"})," юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Принципал"})," сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Агентский договор"})," соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Личный кабинета Агента"})," ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Отчетный период"})," период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Отчет о сумме начислений (Отчет)"})," отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."]}),l.jsxs("div",{className:Ne.definition,children:[l.jsx("strong",{children:"Оферта (Договор)"})," настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."]})]})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"1. Акцепт оферты и заключение агентского договора"}),l.jsx("p",{children:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."}),l.jsx("p",{children:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."}),l.jsx("p",{children:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"2. Общие положения"}),l.jsx("p",{children:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."}),l.jsx("p",{children:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"3. Предмет договора"}),l.jsx("p",{children:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."}),l.jsx("p",{children:"По настоящему Договору Агент совершает следующие действия:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;"}),l.jsx("li",{children:"Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."})]}),l.jsx("p",{children:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."}),l.jsx("p",{children:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"4. Права и обязанности сторон"}),l.jsx("p",{children:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."}),l.jsx("p",{children:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."}),l.jsx("p",{children:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"5. Агентское вознаграждение и порядок оплаты"}),l.jsx("p",{children:"Сумма вознаграждения Агента по настоящему Договору составляет:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"8% от 5 000 до 30 000 рублей"}),l.jsx("li",{children:"6% от 30 000 до 100 000 рублей"}),l.jsx("li",{children:"4% от 100 000 до 600 000 рублей"})]}),l.jsx("p",{children:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."}),l.jsx("p",{children:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"6. Ответственность сторон"}),l.jsx("p",{children:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."}),l.jsx("p",{children:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"7. Форс-мажор"}),l.jsx("p",{children:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."}),l.jsx("p",{children:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"8. Конфиденциальность"}),l.jsx("p",{children:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"9. Изменение и прекращение договора"}),l.jsx("p",{children:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."}),l.jsx("p",{children:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."}),l.jsx("p",{children:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"10. Заключительные положения"}),l.jsx("p",{children:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."}),l.jsx("p",{children:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."}),l.jsx("p",{children:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."})]}),l.jsxs("section",{className:Ne.section,children:[l.jsx("h3",{className:Ne.sectionTitle,children:"Реквизиты сторон"}),l.jsxs("div",{className:Ne.requisites,children:[l.jsx("p",{children:"Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("p",{children:"196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н"}),l.jsx("p",{children:"ИНН / КПП: 9810001062 / 781001001"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000"}),l.jsx("p",{children:"Руководитель: Кленин Михаил Васильевич"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"'}),l.jsx("p",{children:"Корреспондентский счет: 30101810600000000786"}),l.jsx("p",{children:"БИК: 044030786"}),l.jsx("p",{children:"Расчетный счет: 40702810632250004861"})]})]})]})}),l.jsx(_s,{})]})}const fA="_main_14e6d_1",hA="_container_14e6d_7",mA="_title_14e6d_13",pA="_subtitle_14e6d_21",_A="_section_14e6d_29",vA="_sectionTitle_14e6d_33",gA="_subSectionTitle_14e6d_42",yA="_definitions_14e6d_50",xA="_definition_14e6d_50",bA="_list_14e6d_64",jA="_goalsList_14e6d_75",SA="_goal_14e6d_75",NA="_contacts_14e6d_105",Z={main:fA,container:hA,title:mA,subtitle:pA,section:_A,sectionTitle:vA,subSectionTitle:gA,definitions:yA,definition:xA,list:bA,goalsList:jA,goal:SA,contacts:NA};function wA(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsx("main",{className:Z.main,children:l.jsxs("div",{className:Z.container,children:[l.jsx("h1",{className:Z.title,children:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),l.jsx("h2",{className:Z.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"1. Общие положения"}),l.jsx("p",{children:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."}),l.jsx("p",{children:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."}),l.jsx("p",{children:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."}),l.jsx("h4",{className:Z.subSectionTitle,children:"1.4. Основные понятия"}),l.jsxs("div",{className:Z.definitions,children:[l.jsxs("div",{className:Z.definition,children:[l.jsx("strong",{children:"Автоматизированная обработка персональных данных"})," — обработка персональных данных с помощью средств вычислительной техники."]}),l.jsxs("div",{className:Z.definition,children:[l.jsx("strong",{children:"Обработка персональных данных"})," — любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."]}),l.jsxs("div",{className:Z.definition,children:[l.jsx("strong",{children:"Оператор"})," — юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."]}),l.jsxs("div",{className:Z.definition,children:[l.jsx("strong",{children:"Персональные данные"})," — любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."]}),l.jsxs("div",{className:Z.definition,children:[l.jsx("strong",{children:"Пользователь"})," — любой посетитель веб-сайта https://bitforce-foundation.ru."]})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"2. Сведения об операторе"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("li",{children:"Сокращенное наименование: ООО «БИТФОРС»"}),l.jsx("li",{children:"ИНН: 9810001062"}),l.jsx("li",{children:"ОГРН: 1257800060990"}),l.jsx("li",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),l.jsx("li",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("li",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"3. Общие цели обработки персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"3.1.1. Основная деятельность:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Предоставление услуг по конвертации иного имущества"}),l.jsx("li",{children:"Осуществление операций на криптовалютных рынках"}),l.jsx("li",{children:"Предоставление услуг в области блокчейн технологий"}),l.jsx("li",{children:"Обеспечение функционирования интернет-платформы и мобильных приложений"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"3.1.2. Обеспечение безопасности:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Предотвращение мошенничества и отмывания денежных средств"}),l.jsx("li",{children:"Обеспечение безопасности платежных операций"}),l.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),l.jsx("li",{children:"Идентификация и верификация клиентов"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"3.1.3. Соблюдение законодательства:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Исполнение требований российского и международного законодательства"}),l.jsx("li",{children:"Взаимодействие с контролирующими и правоохранительными органами"}),l.jsx("li",{children:"Ведение обязательной отчетности и документооборота"}),l.jsx("li",{children:"Соблюдение налогового законодательства"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"4. Цели сбора персональных данных"}),l.jsxs("div",{className:Z.goalsList,children:[l.jsxs("div",{className:Z.goal,children:[l.jsx("strong",{children:"Регистрация и идентификация пользователей:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Создание учетной записи на веб-сайте"}),l.jsx("li",{children:"Верификация личности в соответствии с требованиями законодательства"}),l.jsx("li",{children:"Подтверждение права на осуществление операций"})]})]}),l.jsxs("div",{className:Z.goal,children:[l.jsx("strong",{children:"Обработка платежей и финансовых операций:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Осуществление операций по конвертации криптовалют"}),l.jsx("li",{children:"Проведение расчетов и переводов денежных средств"}),l.jsx("li",{children:"Ведение учета и истории транзакций"})]})]}),l.jsxs("div",{className:Z.goal,children:[l.jsx("strong",{children:"Коммуникация с клиентами:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Предоставление технической поддержки"}),l.jsx("li",{children:"Уведомления о состоянии операций и счетов"}),l.jsx("li",{children:"Информирование об изменениях в условиях предоставления услуг"})]})]})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"5. Правовые основания обработки персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"5.1.1. Согласие субъекта персональных данных:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Обработка персональных данных в маркетинговых целях"}),l.jsx("li",{children:"Использование файлов cookie и метрик"}),l.jsx("li",{children:"Персонализация сервисов и предложений"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"5.1.2. Необходимость исполнения договора:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Регистрация и ведение учетных записей пользователей"}),l.jsx("li",{children:"Осуществление финансовых операций и переводов"}),l.jsx("li",{children:"Предоставление доступа к платформе и сервисам"}),l.jsx("li",{children:"Техническая поддержка и обслуживание клиентов"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"5.1.3. Соблюдение правовой обязанности:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Выполнение требований валютного законодательства"}),l.jsx("li",{children:"Противодействие легализации доходов, полученных преступным путем"}),l.jsx("li",{children:"Соблюдение требований по налоговому учету и отчетности"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"6. Объем и категории обрабатываемых персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"6.1.1. Пользователи веб-сайта и мобильного приложения:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Зарегистрированные пользователи"}),l.jsx("li",{children:"Посетители сайта без регистрации"}),l.jsx("li",{children:"Потенциальные клиенты"}),l.jsx("li",{children:"Бывшие клиенты"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"6.2.1. Идентификационные данные:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Фамилия, имя, отчество"}),l.jsx("li",{children:"Дата рождения"}),l.jsx("li",{children:"Гражданство"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"6.2.3. Контактная информация:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),l.jsx("li",{children:"Адреса электронной почты"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"6.2.4. Финансовая информация:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Номера банковских счетов и карт"}),l.jsx("li",{children:"Реквизиты кошельков криптовалют"}),l.jsx("li",{children:"История операций и транзакций"}),l.jsx("li",{children:"Данные о доходах и источниках средств"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"6.2.5. Техническая информация:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"IP-адреса устройств"}),l.jsx("li",{children:"Данные о браузере и операционной системе"}),l.jsx("li",{children:"Файлы cookie и локальное хранилище"}),l.jsx("li",{children:"Логи действий на сайте"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"7. Порядок и условия обработки персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"7.1. Принципы обработки персональных данных:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Обработка осуществляется на законной и справедливой основе"}),l.jsx("li",{children:"Обработка ограничивается достижением конкретных, заранее определенных целей"}),l.jsx("li",{children:"Содержание и объем данных соответствуют заявленным целям"}),l.jsx("li",{children:"Обрабатываемые персональные данные являются точными и актуальными"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"7.4. Сроки обработки персональных данных:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей"}),l.jsx("li",{children:"После достижения целей персональные данные подлежат уничтожению или обезличиванию"}),l.jsx("li",{children:"Сроки хранения определяются требованиями законодательства"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"7.5. Места обработки персональных данных:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Основные серверы и хранилища данных расположены на территории Российской Федерации"}),l.jsx("li",{children:"Резервные копии могут храниться в дата-центрах на территории РФ"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"8. Актуализация, исправление, удаление и уничтожение персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"8.2.2. Процедура исправления:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Рассмотрение запроса в течение 30 дней"}),l.jsx("li",{children:"Проверка обоснованности требования об исправлении"}),l.jsx("li",{children:"Внесение изменений во все информационные системы"}),l.jsx("li",{children:"Уведомление субъекта о проведенных исправлениях"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"8.3.2. Процедура удаления:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Проверка наличия законных оснований для продолжения обработки"}),l.jsx("li",{children:"Удаление из всех информационных систем и баз данных"}),l.jsx("li",{children:"Удаление резервных копий (кроме архивных)"}),l.jsx("li",{children:"Уведомление субъекта о выполненном удалении"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"9. Ответы на запросы субъектов персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"9.1.1. Право на информацию:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Подтверждение факта обработки персональных данных"}),l.jsx("li",{children:"Правовые основания и цели обработки"}),l.jsx("li",{children:"Применяемые способы обработки"}),l.jsx("li",{children:"Наименование и местонахождение оператора"}),l.jsx("li",{children:"Лица, имеющие доступ к персональным данным"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"9.2.2. Сроки рассмотрения:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Срок рассмотрения запроса составляет 30 дней с момента получения"}),l.jsx("li",{children:"Срок может быть продлен на 30 дней при большом объеме информации"}),l.jsx("li",{children:"О продлении срока субъект уведомляется в течение 30 дней"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"9.4. Плата за предоставление информации:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Первый запрос в течение года обрабатывается бесплатно"}),l.jsx("li",{children:"За повторные запросы может взиматься плата в размере расходов"}),l.jsx("li",{children:"Субъект уведомляется о размере платы до предоставления информации"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"10. Обеспечение безопасности персональных данных"}),l.jsx("h4",{className:Z.subSectionTitle,children:"10.1. Правовые меры:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Принятие локальных актов по вопросам обработки персональных данных"}),l.jsx("li",{children:"Ознакомление работников с требованиями законодательства"}),l.jsx("li",{children:"Применение мер ответственности за нарушение требований"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"10.3. Технические меры:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Предотвращение несанкционированного доступа к персональным данным"}),l.jsx("li",{children:"Своевременное обнаружение фактов несанкционированного доступа"}),l.jsx("li",{children:"Возможность незамедлительного восстановления персональных данных"}),l.jsx("li",{children:"Постоянный контроль за обеспечением уровня защищенности"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"10.4. Конкретные технические решения:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Использование сертифицированных средств защиты информации"}),l.jsx("li",{children:"Шифрование персональных данных при передаче и хранении"}),l.jsx("li",{children:"Применение межсетевых экранов и систем обнаружения вторжений"}),l.jsx("li",{children:"Резервное копирование и обеспечение отказоустойчивости"}),l.jsx("li",{children:"Антивирусная защита и обновление программного обеспечения"})]})]}),l.jsxs("section",{className:Z.section,children:[l.jsx("h3",{className:Z.sectionTitle,children:"12. Заключительные положения"}),l.jsx("h4",{className:Z.subSectionTitle,children:"12.2. Жалобы и обращения:"}),l.jsxs("ul",{className:Z.list,children:[l.jsx("li",{children:"Субъекты персональных данных могут обратиться к Оператору по вопросам обработки"}),l.jsx("li",{children:"Жалобы рассматриваются в установленном законом порядке"}),l.jsx("li",{children:"При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"})]}),l.jsx("h4",{className:Z.subSectionTitle,children:"12.4. Контактная информация для обращений:"}),l.jsxs("p",{className:Z.contacts,children:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н",l.jsx("br",{}),"Электронная почта: company@bitforcefoundation.ru"]})]})]})}),l.jsx(_s,{})]})}const CA="_main_iq2qw_1",EA="_container_iq2qw_7",TA="_title_iq2qw_13",RA="_section_iq2qw_21",AA="_sectionTitle_iq2qw_25",MA="_subSectionTitle_iq2qw_34",OA="_list_iq2qw_42",zA="_info_iq2qw_57",DA="_example_iq2qw_71",LA="_warning_iq2qw_81",ee={main:CA,container:EA,title:TA,section:RA,sectionTitle:AA,subSectionTitle:MA,list:OA,info:zA,example:DA,warning:LA};function BA(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsx("main",{className:ee.main,children:l.jsxs("div",{className:ee.container,children:[l.jsx("h1",{className:ee.title,children:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE"}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Общие положения и терминология"}),l.jsx("p",{children:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."}),l.jsx("p",{children:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."}),l.jsx("p",{children:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Оператор персональных данных"}),l.jsx("p",{children:"Оператором персональных данных, содержащихся в файлах cookie, является:"}),l.jsxs("div",{className:ee.info,children:[l.jsx("p",{children:"ООО «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"})]}),l.jsx("p",{children:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Категории файлов cookie и их назначение"}),l.jsx("h4",{className:ee.subSectionTitle,children:"1. Строго необходимые (технические) файлы cookie"}),l.jsx("p",{children:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."}),l.jsx("p",{children:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."}),l.jsx("p",{className:ee.example,children:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."}),l.jsx("h4",{className:ee.subSectionTitle,children:"2. Функциональные файлы cookie"}),l.jsx("p",{children:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."}),l.jsx("p",{className:ee.example,children:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."}),l.jsx("h4",{className:ee.subSectionTitle,children:"3. Аналитические файлы cookie"}),l.jsx("p",{children:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных."}),l.jsx("h4",{className:ee.subSectionTitle,children:"4. Маркетинговые файлы cookie"}),l.jsx("p",{children:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."}),l.jsx("p",{children:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."}),l.jsx("p",{className:ee.example,children:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Правовые основания обработки персональных данных"}),l.jsx("p",{children:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"}),l.jsxs("ul",{className:ee.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Согласие субъекта персональных данных"})," — для функциональных, аналитических и маркетинговых файлов cookie"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Заключение и исполнение договора"})," — для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Законные интересы оператора"})," — в исключительных случаях, когда отсутствуют иные основания"]})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Порядок получения согласия"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Принципы получения согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Согласие должно быть получено до начала обработки персональных данных"}),l.jsx("li",{children:"Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса"}),l.jsx("li",{children:"Предоставляется возможность выбора категорий файлов cookie"}),l.jsx("li",{children:"Используются активные формулировки вместо пассивных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Критерии действительного согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Добровольность"})," — согласие дается по свободной воле субъекта"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Конкретность"})," — четко определены цели обработки"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Информированность"})," — предоставлена полная информация об обработке"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Однозначность"})," — согласие выражено в недвусмысленной форме"]})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Сторонние файлы cookie"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Использование сторонних сервисов:"}),l.jsx("p",{children:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Яндекс.Метрика (ООО «ЯНДЕКС», Россия)"}),l.jsx("li",{children:"Социальные сети и сервисы интеграции"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Обеспечение защиты:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получено согласие на передачу"}),l.jsx("li",{children:"Применяются дополнительные меры защиты данных"}),l.jsx("li",{children:"Контролируется соблюдение принципов обработки персональных данных получателями"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Сроки обработки и хранения"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Категории по срокам хранения:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Сеансовые cookie — удаляются автоматически при закрытии браузера"}),l.jsx("li",{children:"Постоянные cookie — хранятся установленный период или до удаления пользователем"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Конкретные сроки:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Необходимые файлы cookie — до 12 месяцев"}),l.jsx("li",{children:"Функциональные файлы cookie — до 12 месяцев"}),l.jsx("li",{children:"Аналитические файлы cookie — до 24 месяцев"}),l.jsx("li",{children:"Маркетинговые файлы cookie — до 24 месяцев"})]}),l.jsx("p",{children:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Права субъектов персональных данных"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на информацию:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получение информации о обработке персональных данных"}),l.jsx("li",{children:"Сведения о правовых основаниях и целях обработки"}),l.jsx("li",{children:"Информация о сроках обработки и составе данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на доступ:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получение подтверждения факта обработки"}),l.jsx("li",{children:"Ознакомление с обрабатываемыми персональными данными"}),l.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на уточнение, блокирование, удаление:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Требование уточнения неточных данных"}),l.jsx("li",{children:"Блокирование недостоверных данных"}),l.jsx("li",{children:"Удаление незаконно полученных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на отзыв согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Отзыв согласия в любое время"}),l.jsx("li",{children:"Прекращение обработки после отзыва согласия"}),l.jsx("li",{children:"Сохранение права на обжалование действий оператора"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Способы управления файлами cookie"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Управление через настройки сайта:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Использование баннера согласия на файлы cookie"}),l.jsx("li",{children:"Изменение настроек в любое время через интерфейс сайта"}),l.jsx("li",{children:"Отзыв согласия на использование отдельных категорий файлов cookie"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Управление через браузер:"}),l.jsx("p",{children:"Большинство браузеров позволяют контролировать файлы cookie:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Блокировка — запрет установки новых файлов cookie"}),l.jsx("li",{children:"Удаление — очистка существующих файлов cookie"}),l.jsx("li",{children:"Уведомления — получение предупреждений при установке файлов cookie"}),l.jsx("li",{children:"Селективная настройка — разрешение файлов cookie только для определенных сайтов"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Инструкции для популярных браузеров:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie"}),l.jsx("li",{children:"Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie"}),l.jsx("li",{children:"Safari: Настройки → Конфиденциальность → Файлы cookie"}),l.jsx("li",{children:"Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"})]}),l.jsx("p",{className:ee.warning,children:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Меры безопасности"}),l.jsx("p",{children:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Правовые меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Ознакомление сотрудников с требованиями законодательства"}),l.jsx("li",{children:"Заключение соглашений о неразглашении персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Организационные меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Определение перечня лиц, допущенных к обработке персональных данных"}),l.jsx("li",{children:"Установление правил доступа к персональным данным"}),l.jsx("li",{children:"Контроль за соблюдением требований по защите персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Технические меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Использование средств защиты информации"}),l.jsx("li",{children:"Применение криптографических средств защиты"}),l.jsx("li",{children:"Обеспечение целостности и доступности персональных данных"}),l.jsx("li",{children:"Регулярное обновление систем защиты информации"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Контактная информация и обращения"}),l.jsx("p",{children:"Для реализации прав субъекта персональных данных обращайтесь к нам:"}),l.jsxs("div",{className:ee.info,children:[l.jsx("p",{children:"ООО «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"}),l.jsx("p",{children:"Email компании: company@bitforcefoundation.ru"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Порядок рассмотрения обращений:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Срок рассмотрения обращений — до 30 дней с момента получения"}),l.jsx("li",{children:"Обращения рассматриваются в письменной форме"}),l.jsx("li",{children:"Ответ направляется способом, указанным в обращении"}),l.jsx("li",{children:"При отказе в удовлетворении требований указываются мотивированные основания"})]})]})]})}),l.jsx(_s,{})]})}const kA="_main_9j8kd_1",UA="_container_9j8kd_7",HA="_title_9j8kd_13",$A="_subtitle_9j8kd_21",qA="_section_9j8kd_29",GA="_sectionTitle_9j8kd_33",FA="_subSectionTitle_9j8kd_42",VA="_list_9j8kd_50",QA="_info_9j8kd_65",YA="_contacts_9j8kd_79",XA="_confirmation_9j8kd_92",K={main:kA,container:UA,title:HA,subtitle:$A,section:qA,sectionTitle:GA,subSectionTitle:FA,list:VA,info:QA,contacts:YA,confirmation:XA};function IA(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsx("main",{className:K.main,children:l.jsxs("div",{className:K.container,children:[l.jsx("h1",{className:K.title,children:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),l.jsx("h2",{className:K.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"Преамбула"}),l.jsx("p",{children:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"1. Сведения об операторе"}),l.jsxs("div",{className:K.info,children:[l.jsx("p",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"2. Правовые основания обработки"}),l.jsx("p",{children:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."}),l.jsx("p",{children:"Согласие дается добровольно, своей волей и в своих интересах."}),l.jsx("p",{children:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"3. Цели обработки персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"3.1. Основные цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении"}),l.jsx("li",{children:"Идентификация и верификация личности в соответствии с требованиями законодательства"}),l.jsx("li",{children:"Предоставление услуг по обмену криптовалют и электронных денежных средств"}),l.jsx("li",{children:"Проведение финансовых операций, переводов и расчетов"}),l.jsx("li",{children:"Ведение учета и истории операций"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.2. Дополнительные цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обеспечение безопасности операций и предотвращение мошенничества"}),l.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),l.jsx("li",{children:"Соблюдение требований валютного, налогового и иного применимого законодательства"}),l.jsx("li",{children:"Предоставление технической поддержки и клиентского сервиса"}),l.jsx("li",{children:"Рассылка уведомлений о состоянии операций и изменениях в условиях"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.3. Маркетинговые цели (при дополнительном согласии):"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Направление информационных и рекламных материалов"}),l.jsx("li",{children:"Проведение маркетинговых исследований и опросов"}),l.jsx("li",{children:"Персонализация предложений и услуг"}),l.jsx("li",{children:"Анализ предпочтений и поведения для улучшения сервисов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.4. Аналитические цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Анализ использования веб-сайта и мобильного приложения"}),l.jsx("li",{children:"Улучшение качества предоставляемых услуг"}),l.jsx("li",{children:"Разработка новых продуктов и сервисов"}),l.jsx("li",{children:"Создание статистических отчетов в обезличенном виде"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"4. Перечень персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"4.1. Идентификационные данные:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Фамилия, имя, отчество"}),l.jsx("li",{children:"Дата рождения"}),l.jsx("li",{children:"Гражданство"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.2. Документы, удостоверяющие личность:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Серия и номер паспорта гражданина Российской Федерации"}),l.jsx("li",{children:"Дата выдачи и код подразделения"}),l.jsx("li",{children:"Адрес регистрации по месту жительства"}),l.jsx("li",{children:"Цифровые копии (сканы) документов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.3. Контактная информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),l.jsx("li",{children:"Адреса электронной почты"}),l.jsx("li",{children:"Почтовые адреса (фактического проживания, для корреспонденции)"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.4. Финансовая информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Номера банковских счетов и реквизиты банковских карт"}),l.jsx("li",{children:"Реквизиты криптовалютных кошельков и адресов"}),l.jsx("li",{children:"Информация о доходах и источниках происхождения денежных средств"}),l.jsx("li",{children:"История финансовых операций и транзакций"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.5. Техническая информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"IP-адреса устройств, с которых осуществляется доступ к сервисам"}),l.jsx("li",{children:"Информация о браузере, операционной системе и устройстве"}),l.jsx("li",{children:"Файлы cookie и данные локального хранилища"}),l.jsx("li",{children:"Логи действий и история использования сервисов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.6. Дополнительная информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Фотографии для процедур верификации"}),l.jsx("li",{children:"Видеозаписи процедур видеоидентификации"}),l.jsx("li",{children:"Биометрические данные (при использовании соответствующих технологий)"}),l.jsx("li",{children:"Информация о семейном положении и профессиональной деятельности"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"5. Перечень действий с персональными данными"}),l.jsx("p",{children:"Согласие распространяется на следующие действия (операции) с персональными данными:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Сбор, запись и первичная обработка персональных данных"}),l.jsx("li",{children:"Накопление и систематизация в базах данных"}),l.jsx("li",{children:"Создание резервных копий и архивирование"}),l.jsx("li",{children:"Извлечение, использование и анализ данных"}),l.jsx("li",{children:"Уточнение, обновление и актуализация информации"}),l.jsx("li",{children:"Передача данных третьим лицам"}),l.jsx("li",{children:"Обезличивание и удаление данных"}),l.jsx("li",{children:"Автоматизированная обработка и профилирование"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"6. Лица, которым могут быть переданы персональные данные"}),l.jsx("h4",{className:K.subSectionTitle,children:"6.1. Сотрудники Оператора:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Уполномоченные сотрудники, непосредственно участвующие в обработке"}),l.jsx("li",{children:"Сотрудники службы безопасности и комплаенса"}),l.jsx("li",{children:"Сотрудники технической поддержки"}),l.jsx("li",{children:"Руководящий состав в рамках их полномочий"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"6.2. Государственные и муниципальные органы:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Федеральная служба по финансовому мониторингу"}),l.jsx("li",{children:"Федеральная налоговая служба"}),l.jsx("li",{children:"Правоохранительные органы (при наличии законных требований)"}),l.jsx("li",{children:"Суды и органы исполнения судебных решений"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"6.3. Партнеры и контрагенты:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Банки и платежные системы"}),l.jsx("li",{children:"Операторы электронных денежных средств"}),l.jsx("li",{children:"Поставщики технологических решений"}),l.jsx("li",{children:"Аудиторские и консалтинговые организации"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"7. Сроки обработки персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"7.1. Общие принципы:"}),l.jsx("p",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."}),l.jsx("h4",{className:K.subSectionTitle,children:"7.2. Конкретные сроки обработки:"}),l.jsxs("ul",{className:K.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Данные активных клиентов:"})," в течение всего периода отношений плюс 5 лет после прекращения"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Данные для идентификации:"})," 5 лет с момента прекращения отношений"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Финансовая информация:"})," 5 лет с даты совершения операции"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Маркетинговые данные:"})," до отзыва согласия, но не более 3 лет"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Техническая информация:"})," 1 год для безопасности, 6 месяцев для логов"]})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"8. Права субъекта персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"8.1. Право на информацию:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Получение подтверждения факта обработки персональных данных"}),l.jsx("li",{children:"Получение информации о целях и способах обработки"}),l.jsx("li",{children:"Информация о сроках обработки и составе данных"}),l.jsx("li",{children:"Сведения о лицах, которым передаются данные"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.2. Право на доступ:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Получение копий обрабатываемых персональных данных"}),l.jsx("li",{children:"Ознакомление с историей обработки и изменений"}),l.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.3. Право на исправление и удаление:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Требование исправления неточных или неполных данных"}),l.jsx("li",{children:"Требование удаления персональных данных при наличии оснований"}),l.jsx("li",{children:"Удаление данных после отзыва согласия"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.4. Право на отзыв согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие может быть отозвано в любое время"}),l.jsx("li",{children:"Отзыв оформляется в письменной форме"}),l.jsx("li",{children:"После отзыва обработка прекращается в разумные сроки"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.5. Право на обжалование:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обращение к Оператору с жалобами на действия по обработке данных"}),l.jsx("li",{children:"Обращение в Роскомнадзор или его территориальные органы"}),l.jsx("li",{children:"Обращение в суд для защиты нарушенных прав"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.6. Порядок реализации прав:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обращения направляются на адрес: company@bitforcefoundation.ru"}),l.jsx("li",{children:"Обращения рассматриваются в течение 30 дней"}),l.jsx("li",{children:"При необходимости срок может быть продлен на 30 дней"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"9. Заключительные положения"}),l.jsx("h4",{className:K.subSectionTitle,children:"9.1. Действие согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие действует с момента его предоставления"}),l.jsx("li",{children:"Согласие действует до его отзыва или до достижения целей обработки"}),l.jsx("li",{children:"При существенных изменениях целей требуется новое согласие"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.2. Форма предоставления согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие может быть предоставлено в письменной форме"}),l.jsx("li",{children:"Согласие может быть предоставлено в электронной форме"}),l.jsx("li",{children:"Согласие может выражаться путем совершения конклюдентных действий"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.3. Последствия непредоставления согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Отказ в предоставлении согласия может повлечь невозможность регистрации"}),l.jsx("li",{children:"Отказ может ограничить доступ к отдельным услугам"}),l.jsx("li",{children:"Отказ в согласии на маркетинг не влияет на основные услуги"}),l.jsx("li",{children:"Субъект вправе предоставить частичное согласие"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.4. Контактная информация:"}),l.jsxs("div",{className:K.contacts,children:[l.jsx("p",{children:"Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:"Ответственное лицо: Кленин Михаил Васильевич"}),l.jsx("p",{children:"Официальный сайт: https://bitforce-foundation.ru"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.5. Подтверждение понимания:"}),l.jsx("p",{className:K.confirmation,children:"Предоставляя настоящее согласие, я подтверждаю, что:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Ознакомлен с содержанием согласия и понимаю его значение"}),l.jsx("li",{children:"Понимаю цели и способы обработки моих персональных данных"}),l.jsx("li",{children:"Знаю о своих правах и способах их реализации"}),l.jsx("li",{children:"Согласие предоставляется добровольно и осознанно"}),l.jsx("li",{children:"Имею возможность отозвать согласие в любое время"})]})]})]})}),l.jsx(_s,{})]})}const ZA="_main_2hruc_1",PA="_container_2hruc_7",KA="_title_2hruc_13",WA="_subtitle_2hruc_21",JA="_section_2hruc_29",eM="_sectionTitle_2hruc_33",tM="_description_2hruc_42",nM="_info_2hruc_49",lM="_linkBlock_2hruc_56",aM="_button_2hruc_64",sM="_operatorInfo_2hruc_81",Qt={main:ZA,container:PA,title:KA,subtitle:WA,section:JA,sectionTitle:eM,description:tM,info:nM,linkBlock:lM,button:aM,operatorInfo:sM};function iM(){return l.jsxs(l.Fragment,{children:[l.jsx(Ri,{}),l.jsx("main",{className:Qt.main,children:l.jsxs("div",{className:Qt.container,children:[l.jsx("h1",{className:Qt.title,children:"Реестр операторов персональных данных"}),l.jsx("h2",{className:Qt.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:Qt.section,children:[l.jsx("p",{className:Qt.description,children:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."}),l.jsx("p",{className:Qt.info,children:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"}),l.jsx("div",{className:Qt.linkBlock,children:l.jsx("a",{href:"https://pd.rkn.gov.ru/operators-registry/operators-list/?act=search&name_full=%D0%91%D0%B8%D1%82%D1%84%D0%BE%D1%80%D1%81&inn=9810001062&regn=",target:"_blank",rel:"noopener noreferrer",className:Qt.button,children:"Открыть реестр Роскомнадзора"})}),l.jsx("p",{className:Qt.info,children:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."})]}),l.jsxs("section",{className:Qt.section,children:[l.jsx("h3",{className:Qt.sectionTitle,children:"Информация об операторе"}),l.jsxs("div",{className:Qt.operatorInfo,children:[l.jsxs("p",{children:[l.jsx("strong",{children:"Наименование:"})," ООО «БИТФОРС»"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ИНН:"})," 9810001062"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ОГРН:"})," 1257800060990"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Юридический адрес:"})," 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Контактная информация:"})," company@bitforcefoundation.ru"]})]})]}),l.jsxs("section",{className:Qt.section,children:[l.jsx("h3",{className:Qt.sectionTitle,children:"О Роскомнадзоре"}),l.jsx("p",{children:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."}),l.jsx("p",{children:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."})]})]})}),l.jsx(_s,{})]})}function Ap(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function cM(a){return a?a.length<=16?a:`${a.slice(0,8)}${a.slice(-6)}`:"—"}function Mp(a){return Number(a).toLocaleString("ru-RU")}const rM={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},oM="_badge_1d3cq_1",uM="_status_pending_1d3cq_10",dM="_status_completed_1d3cq_15",fM="_status_money_accepted_1d3cq_20",hM="_status_web3_processing_1d3cq_25",mM="_status_web3_hash_error_1d3cq_30",pM="_status_web3_balance_problem_1d3cq_35",_M="_status_receipt_error_1d3cq_40",vM="_status_usdt_delivered_1d3cq_45",Op={badge:oM,status_pending:uM,status_completed:dM,status_money_accepted:fM,status_web3_processing:hM,status_web3_hash_error:mM,status_web3_balance_problem:pM,status_receipt_error:_M,status_usdt_delivered:vM};function zp({status:a}){return l.jsx("span",{className:`${Op.badge} ${Op[`status_${a}`]??""}`,children:rM[a]??a})}const gM="_button_1q7wx_1",yM={button:gM};function xM({value:a}){const[c,i]=j.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{i(!0),setTimeout(()=>i(!1),1500)})}return l.jsx("button",{className:yM.button,onClick:r,type:"button",title:"Скопировать",children:c?l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("polyline",{points:"20 6 9 17 4 12"})}):l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),l.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const bM="_item_1ymly_1",jM="_summary_1ymly_8",SM="_summaryLeft_1ymly_25",NM="_summaryDate_1ymly_34",wM="_summaryRight_1ymly_41",CM="_amount_1ymly_48",EM="_totalAmount_1ymly_56",TM="_chevron_1ymly_64",RM="_chevronOpen_1ymly_70",AM="_bodyOuter_1ymly_74",MM="_bodyOuterOpen_1ymly_80",OM="_bodyInner_1ymly_84",zM="_body_1ymly_74",DM="_col_1ymly_96",LM="_colTitle_1ymly_101",BM="_infoRow_1ymly_110",kM="_infoRowTotal_1ymly_123",UM="_infoLabel_1ymly_128",HM="_infoValue_1ymly_129",$M="_infoValueRow_1ymly_148",qM="_infoLink_1ymly_154",ke={item:bM,summary:jM,summaryLeft:SM,summaryDate:NM,summaryRight:wM,amount:CM,totalAmount:EM,chevron:TM,chevronOpen:RM,bodyOuter:AM,bodyOuterOpen:MM,bodyInner:OM,body:zM,col:DM,colTitle:LM,infoRow:BM,infoRowTotal:kM,infoLabel:UM,infoValue:HM,infoValueRow:$M,infoLink:qM};function GM({item:a}){const[c,i]=j.useState(!1),{order:r,payment:d}=a;return l.jsxs("div",{className:ke.item,children:[l.jsxs("button",{className:ke.summary,onClick:()=>i(f=>!f),type:"button","aria-expanded":c,children:[l.jsxs("div",{className:ke.summaryLeft,children:[l.jsx("span",{className:ke.summaryDate,children:Ap(r.created_at)}),d&&l.jsx(zp,{status:d.status})]}),l.jsxs("div",{className:ke.summaryRight,children:[l.jsxs("span",{className:ke.amount,children:[r.usdt_amount," USDT"]}),l.jsxs("span",{className:ke.totalAmount,children:[Mp(r.total_price)," ₽"]}),l.jsx("svg",{className:`${ke.chevron} ${c?ke.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),l.jsx("div",{className:`${ke.bodyOuter} ${c?ke.bodyOuterOpen:""}`,children:l.jsx("div",{className:ke.bodyInner,children:l.jsxs("div",{className:ke.body,children:[l.jsxs("div",{className:ke.col,children:[l.jsx("p",{className:ke.colTitle,children:"Заказ"}),l.jsx(Ja,{label:"Сумма USDT",value:`${r.usdt_amount} USDT`}),l.jsx(Ja,{label:"Курс обмена",value:`1 USDT = ${r.usdt_exchange_rate}`}),l.jsx(Ja,{label:"Сервисный сбор",value:`${r.service_fee} USDT`}),l.jsx(Ja,{label:"Комиссия за газ",value:`${r.gas_fee} USDT`}),l.jsx(Ja,{label:"Итого к оплате",value:`${Mp(r.total_price)}`,emphasised:!0})]}),l.jsxs("div",{className:ke.col,children:[l.jsx("p",{className:ke.colTitle,children:"Платёж"}),d?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:ke.infoRow,children:[l.jsx("span",{className:ke.infoLabel,children:"Статус"}),l.jsx(zp,{status:d.status})]}),l.jsx(Ja,{label:"Оплачено",value:d.itpay_paid_amount||"—"}),l.jsx(Ja,{label:"Истекает",value:Ap(d.expired_date)}),l.jsxs("div",{className:ke.infoRow,children:[l.jsx("span",{className:ke.infoLabel,children:"Хэш транзакции"}),l.jsxs("span",{className:ke.infoValueRow,children:[l.jsx("span",{className:ke.infoValue,title:d.web3_transaction_hash||void 0,children:cM(d.web3_transaction_hash)}),d.web3_transaction_hash&&l.jsx(xM,{value:d.web3_transaction_hash})]})]}),l.jsxs("div",{className:ke.infoRow,children:[l.jsx("span",{className:ke.infoLabel,children:"Чек"}),d.receipt_cloudekassir_link?l.jsx("a",{href:d.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:ke.infoLink,children:"Открыть →"}):l.jsx("span",{className:ke.infoValue,children:"—"})]})]}):l.jsx("div",{className:ke.infoRow,children:l.jsx("span",{className:ke.infoValue,children:"—"})})]})]})})})]})}function Ja({label:a,value:c,emphasised:i}){return l.jsxs("div",{className:`${ke.infoRow} ${i?ke.infoRowTotal:""}`,children:[l.jsx("span",{className:ke.infoLabel,children:a}),l.jsx("span",{className:ke.infoValue,children:c})]})}const FM="_list_gxp0d_1",VM="_empty_gxp0d_9",QM="_status_gxp0d_16",YM="_statusError_gxp0d_23",XM="_loadMore_gxp0d_30",IM="_loadMoreBtn_gxp0d_38",ii={list:FM,empty:VM,status:QM,statusError:YM,loadMore:XM,loadMoreBtn:IM};function ZM(){const{data:a,isLoading:c,isError:i,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=r5(),_=(a==null?void 0:a.pages.flatMap(g=>g.orders))??[];return c?l.jsx("p",{className:ii.status,children:"Загрузка..."}):i?l.jsx("p",{className:ii.statusError,children:"Не удалось загрузить транзакции. Попробуйте обновить страницу."}):_.length===0?l.jsx("p",{className:ii.empty,children:"У вас пока нет транзакций."}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:ii.list,children:_.map(g=>l.jsx(GM,{item:g},g.order.id))}),d&&l.jsx("div",{className:ii.loadMore,children:l.jsx("button",{className:ii.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const PM="_status_1yzxr_1",KM="_statusError_1yzxr_8",WM="_empty_1yzxr_15",JM="_tableWrap_1yzxr_22",eO="_table_1yzxr_22",tO="_mono_1yzxr_53",nO="_statusBadge_1yzxr_57",zl={status:PM,statusError:KM,empty:WM,tableWrap:JM,table:eO,mono:tO,statusBadge:nO};function Dp(a,c){return a?`${a} ${c}`:"—"}function lO(a){if(!a)return"—";const c=new Date(a);return Number.isNaN(c.getTime())?"—":c.toLocaleString("ru-RU")}function aO(){const{data:a,isLoading:c,isError:i}=B8();return c?l.jsx("p",{className:zl.status,children:"Загрузка..."}):i?l.jsx("p",{className:zl.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?l.jsx("p",{className:zl.empty,children:"У вас пока нет заявок."}):l.jsx("div",{className:zl.tableWrap,children:l.jsxs("table",{className:zl.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"USDT"}),l.jsx("th",{children:"Сумма ₽"}),l.jsx("th",{children:"Курс"}),l.jsx("th",{children:"Статус"}),l.jsx("th",{children:"Создана"})]})}),l.jsx("tbody",{children:a.items.map(r=>l.jsxs("tr",{children:[l.jsx("td",{className:zl.mono,children:Dp(r.usdt_amount,"USDT")}),l.jsx("td",{className:zl.mono,children:Dp(r.rub_amount,"₽")}),l.jsx("td",{className:zl.mono,children:r.exchange_rate??"—"}),l.jsx("td",{children:l.jsx("span",{className:zl.statusBadge,children:r.status})}),l.jsx("td",{children:lO(r.created_at)})]},r.id))})]})})}const sO="_inner_1umld_1",iO="_glow_1umld_9",cO="_title_1umld_21",rO="_tabs_1umld_30",oO="_tab_1umld_30",ci={inner:sO,glow:iO,title:cO,tabs:rO,tab:oO};function uO(){const{data:a}=ql(),[c,i]=j.useState("transactions"),r=!!a&&a.account_type!=="individual",d=r?c:"transactions";return l.jsxs("div",{className:ci.inner,children:[l.jsx("div",{className:ci.glow}),l.jsx("h1",{className:ci.title,children:"Транзакции"}),r&&l.jsxs("div",{className:ci.tabs,children:[l.jsx("button",{type:"button",className:ci.tab,"data-active":d==="transactions"||void 0,onClick:()=>i("transactions"),children:"Транзакции"}),l.jsx("button",{type:"button",className:ci.tab,"data-active":d==="requests"||void 0,onClick:()=>i("requests"),children:"Заявки"})]}),d==="transactions"?l.jsx(ZM,{}):l.jsx(aO,{})]})}const dO="_page_uz94v_1",fO="_main_uz94v_8",hO="_center_uz94v_13",vo={page:dO,main:fO,center:hO};function Lp({footer:a=!1,center:c=!1}){return l.jsxs("div",{className:vo.page,children:[l.jsx(Ho,{}),l.jsx("main",{className:c?`${vo.main} ${vo.center}`:vo.main,children:l.jsx(a2,{})}),a&&l.jsx(_s,{})]})}function mO(){const{pathname:a}=Cn();return j.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function pO(){const{isAuthenticated:a,isLoading:c}=z3(),i=Cn();return c?null:a?l.jsx(a2,{}):l.jsx(Do,{to:de.LOGIN,state:{from:i},replace:!0})}function _O(){var d,f;const{isAuthenticated:a,isLoading:c}=z3(),r=((f=(d=Cn().state)==null?void 0:d.from)==null?void 0:f.pathname)??de.WALLET;return c?null:a?l.jsx(Do,{to:r,replace:!0}):l.jsx(a2,{})}function vO(){return l.jsxs(p4,{children:[l.jsx(mO,{}),l.jsxs(Qy,{children:[l.jsx(nt,{path:de.HOME,element:l.jsx(_8,{})}),l.jsx(nt,{path:de.PUBLICHNAYA_OFERTA,element:l.jsx(dA,{})}),l.jsx(nt,{path:de.POLITIKA_PERSONALNYH_DANNYH,element:l.jsx(wA,{})}),l.jsx(nt,{path:de.POLITIKA_COOKIE,element:l.jsx(BA,{})}),l.jsx(nt,{path:de.SOGLASIE_PERSONALNYH_DANNYH,element:l.jsx(IA,{})}),l.jsx(nt,{path:de.REESTR_PD_RKN,element:l.jsx(iM,{})}),l.jsx(nt,{path:de.REGISTER_TEST,element:l.jsx(JE,{})}),l.jsx(nt,{path:de.CONVERTER_TEST,element:l.jsx(pT,{})}),l.jsxs(nt,{element:l.jsx(_O,{}),children:[l.jsx(nt,{path:de.LOGIN,element:l.jsx(tE,{})}),l.jsx(nt,{path:de.REGISTER,element:l.jsx(ME,{})}),l.jsx(nt,{path:de.RESTORE_PASSWORD,element:l.jsx(tA,{})})]}),l.jsxs(nt,{element:l.jsx(pO,{}),children:[l.jsx(nt,{element:l.jsx(Lp,{footer:!0,center:!0}),children:l.jsx(nt,{path:de.CONVERTER,element:l.jsx(WT,{})})}),l.jsxs(nt,{element:l.jsx(Lp,{footer:!0}),children:[l.jsx(nt,{path:de.SWAP,element:l.jsx(nw,{})}),l.jsx(nt,{path:de.BRIDGE,element:l.jsx(Mw,{})}),l.jsx(nt,{path:de.TRANSACTIONS,element:l.jsx(uO,{})})]}),l.jsx(nt,{path:de.WALLET,element:l.jsx(cp,{})}),l.jsx(nt,{path:de.WALLET_CHAIN,element:l.jsx(cp,{})}),l.jsx(nt,{path:de.PROFILE,element:l.jsx(UC,{})}),l.jsx(nt,{path:de.SEED_PHRASE,element:l.jsx(bR,{})}),l.jsx(nt,{path:de.KYC,element:l.jsx(GR,{})})]})]})]})}const gO=new D6({defaultOptions:{queries:{retry:!1}}});function yO({children:a}){return l.jsx(L6,{client:gO,children:a})}function xO(){return l.jsx(yO,{children:l.jsx(vO,{})})}Qg.createRoot(document.getElementById("root")).render(l.jsx(j.StrictMode,{children:l.jsx(xO,{})}));