162 lines
603 KiB
JavaScript
162 lines
603 KiB
JavaScript
var wm=a=>{throw TypeError(a)};var sd=(a,i,c)=>i.has(a)||wm("Cannot "+c);var C=(a,i,c)=>(sd(a,i,"read from private field"),c?c.call(a):i.get(a)),ce=(a,i,c)=>i.has(a)?wm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,c),J=(a,i,c,r)=>(sd(a,i,"write to private field"),r?r.call(a,c):i.set(a,c),c),Se=(a,i,c)=>(sd(a,i,"access private method"),c);var po=(a,i,c,r)=>({set _(d){J(a,i,d,c)},get _(){return C(a,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const _ of f.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&r(_)}).observe(document,{childList:!0,subtree:!0});function c(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=c(d);fetch(d.href,f)}})();function n3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var id={exports:{}},Cc={};/**
|
||
* @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 Cm;function Zv(){if(Cm)return Cc;Cm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,d,f){var _=null;if(f!==void 0&&(_=""+f),d.key!==void 0&&(_=""+d.key),"key"in d){f={};for(var v in d)v!=="key"&&(f[v]=d[v])}else f=d;return d=f.ref,{$$typeof:a,type:r,key:_,ref:d!==void 0?d:null,props:f}}return Cc.Fragment=i,Cc.jsx=c,Cc.jsxs=c,Cc}var Em;function Kv(){return Em||(Em=1,id.exports=Zv()),id.exports}var l=Kv(),cd={exports:{}},xe={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Tm;function Wv(){if(Tm)return xe;Tm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),_=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),y=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=y&&R[y]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,E={};function z(R,V,Z){this.props=R,this.context=V,this.refs=E,this.updater=Z||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 M(R,V,Z){this.props=R,this.context=V,this.refs=E,this.updater=Z||S}var U=M.prototype=new H;U.constructor=M,T(U,z.prototype),U.isPureReactComponent=!0;var Y=Array.isArray;function ee(){}var q={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function se(R,V,Z){var ne=Z.ref;return{$$typeof:a,type:R,key:V,ref:ne!==void 0?ne:null,props:Z}}function pe(R,V){return se(R.type,V,R.props)}function me(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function Ce(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return V[Z]})}var ue=/\/+/g;function ve(R,V){return typeof R=="object"&&R!==null&&R.key!=null?Ce(""+R.key):V.toString(36)}function fe(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ee,ee):(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,Z,ne,_e){var be=typeof R;(be==="undefined"||be==="boolean")&&(R=null);var De=!1;if(R===null)De=!0;else switch(be){case"bigint":case"string":case"number":De=!0;break;case"object":switch(R.$$typeof){case a:case i:De=!0;break;case g:return De=R._init,$(De(R._payload),V,Z,ne,_e)}}if(De)return _e=_e(R),De=ne===""?"."+ve(R,0):ne,Y(_e)?(Z="",De!=null&&(Z=De.replace(ue,"$&/")+"/"),$(_e,V,Z,"",function(ll){return ll})):_e!=null&&(me(_e)&&(_e=pe(_e,Z+(_e.key==null||R&&R.key===_e.key?"":(""+_e.key).replace(ue,"$&/")+"/")+De)),V.push(_e)),1;De=0;var Nt=ne===""?".":ne+":";if(Y(R))for(var tt=0;tt<R.length;tt++)ne=R[tt],be=Nt+ve(ne,tt),De+=$(ne,V,Z,be,_e);else if(tt=N(R),typeof tt=="function")for(R=tt.call(R),tt=0;!(ne=R.next()).done;)ne=ne.value,be=Nt+ve(ne,tt++),De+=$(ne,V,Z,be,_e);else if(be==="object"){if(typeof R.then=="function")return $(fe(R),V,Z,ne,_e);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 I(R,V,Z){if(R==null)return R;var ne=[],_e=0;return $(R,ne,"","",function(be){return V.call(Z,be,_e++)}),ne}function ie(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=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:I,forEach:function(R,V,Z){I(R,function(){V.apply(this,arguments)},Z)},count:function(R){var V=0;return I(R,function(){V++}),V},toArray:function(R){return I(R,function(V){return V})||[]},only:function(R){if(!me(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return xe.Activity=x,xe.Children=Te,xe.Component=z,xe.Fragment=c,xe.Profiler=d,xe.PureComponent=M,xe.StrictMode=r,xe.Suspense=h,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,xe.__COMPILER_RUNTIME={__proto__:null,c:function(R){return q.H.useMemoCache(R)}},xe.cache=function(R){return function(){return R.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(R,V,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ne=T({},R.props),_e=R.key;if(V!=null)for(be in V.key!==void 0&&(_e=""+V.key),V)!X.call(V,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&V.ref===void 0||(ne[be]=V[be]);var be=arguments.length-2;if(be===1)ne.children=Z;else if(1<be){for(var De=Array(be),Nt=0;Nt<be;Nt++)De[Nt]=arguments[Nt+2];ne.children=De}return se(R.type,_e,ne)},xe.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},xe.createElement=function(R,V,Z){var ne,_e={},be=null;if(V!=null)for(ne in V.key!==void 0&&(be=""+V.key),V)X.call(V,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(_e[ne]=V[ne]);var De=arguments.length-2;if(De===1)_e.children=Z;else if(1<De){for(var Nt=Array(De),tt=0;tt<De;tt++)Nt[tt]=arguments[tt+2];_e.children=Nt}if(R&&R.defaultProps)for(ne in De=R.defaultProps,De)_e[ne]===void 0&&(_e[ne]=De[ne]);return se(R,be,_e)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(R){return{$$typeof:v,render:R}},xe.isValidElement=me,xe.lazy=function(R){return{$$typeof:g,_payload:{_status:-1,_result:R},_init:ie}},xe.memo=function(R,V){return{$$typeof:m,type:R,compare:V===void 0?null:V}},xe.startTransition=function(R){var V=q.T,Z={};q.T=Z;try{var ne=R(),_e=q.S;_e!==null&&_e(Z,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(ee,Ee)}catch(be){Ee(be)}finally{V!==null&&Z.types!==null&&(V.types=Z.types),q.T=V}},xe.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},xe.use=function(R){return q.H.use(R)},xe.useActionState=function(R,V,Z){return q.H.useActionState(R,V,Z)},xe.useCallback=function(R,V){return q.H.useCallback(R,V)},xe.useContext=function(R){return q.H.useContext(R)},xe.useDebugValue=function(){},xe.useDeferredValue=function(R,V){return q.H.useDeferredValue(R,V)},xe.useEffect=function(R,V){return q.H.useEffect(R,V)},xe.useEffectEvent=function(R){return q.H.useEffectEvent(R)},xe.useId=function(){return q.H.useId()},xe.useImperativeHandle=function(R,V,Z){return q.H.useImperativeHandle(R,V,Z)},xe.useInsertionEffect=function(R,V){return q.H.useInsertionEffect(R,V)},xe.useLayoutEffect=function(R,V){return q.H.useLayoutEffect(R,V)},xe.useMemo=function(R,V){return q.H.useMemo(R,V)},xe.useOptimistic=function(R,V){return q.H.useOptimistic(R,V)},xe.useReducer=function(R,V,Z){return q.H.useReducer(R,V,Z)},xe.useRef=function(R){return q.H.useRef(R)},xe.useState=function(R){return q.H.useState(R)},xe.useSyncExternalStore=function(R,V,Z){return q.H.useSyncExternalStore(R,V,Z)},xe.useTransition=function(){return q.H.useTransition()},xe.version="19.2.5",xe}var Rm;function i2(){return Rm||(Rm=1,cd.exports=Wv()),cd.exports}var j=i2();const Ct=n3(j);var rd={exports:{}},Ec={},od={exports:{}},ud={};/**
|
||
* @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 Am;function Jv(){return Am||(Am=1,(function(a){function i($,I){var ie=$.length;$.push(I);e:for(;0<ie;){var Ee=ie-1>>>1,Te=$[Ee];if(0<d(Te,I))$[Ee]=I,$[ie]=Te,ie=Ee;else break e}}function c($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var I=$[0],ie=$.pop();if(ie!==I){$[0]=ie;e:for(var Ee=0,Te=$.length,R=Te>>>1;Ee<R;){var V=2*(Ee+1)-1,Z=$[V],ne=V+1,_e=$[ne];if(0>d(Z,ie))ne<Te&&0>d(_e,Z)?($[Ee]=_e,$[ne]=ie,Ee=ne):($[Ee]=Z,$[V]=ie,Ee=V);else if(ne<Te&&0>d(_e,ie))$[Ee]=_e,$[ne]=ie,Ee=ne;else break e}}return I}function d($,I){var ie=$.sortIndex-I.sortIndex;return ie!==0?ie:$.id-I.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,v=_.now();a.unstable_now=function(){return _.now()-v}}var h=[],m=[],g=1,x=null,y=3,N=!1,S=!1,T=!1,E=!1,z=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function U($){for(var I=c(m);I!==null;){if(I.callback===null)r(m);else if(I.startTime<=$)r(m),I.sortIndex=I.expirationTime,i(h,I);else break;I=c(m)}}function Y($){if(T=!1,U($),!S)if(c(h)!==null)S=!0,ee||(ee=!0,Ce());else{var I=c(m);I!==null&&fe(Y,I.startTime-$)}}var ee=!1,q=-1,X=5,se=-1;function pe(){return E?!0:!(a.unstable_now()-se<X)}function me(){if(E=!1,ee){var $=a.unstable_now();se=$;var I=!0;try{e:{S=!1,T&&(T=!1,H(q),q=-1),N=!0;var ie=y;try{t:{for(U($),x=c(h);x!==null&&!(x.expirationTime>$&&pe());){var Ee=x.callback;if(typeof Ee=="function"){x.callback=null,y=x.priorityLevel;var Te=Ee(x.expirationTime<=$);if($=a.unstable_now(),typeof Te=="function"){x.callback=Te,U($),I=!0;break t}x===c(h)&&r(h),U($)}else r(h);x=c(h)}if(x!==null)I=!0;else{var R=c(m);R!==null&&fe(Y,R.startTime-$),I=!1}}break e}finally{x=null,y=ie,N=!1}I=void 0}}finally{I?Ce():ee=!1}}}var Ce;if(typeof M=="function")Ce=function(){M(me)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,ve=ue.port2;ue.port1.onmessage=me,Ce=function(){ve.postMessage(null)}}else Ce=function(){z(me,0)};function fe($,I){q=z(function(){$(a.unstable_now())},I)}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"):X=0<$?Math.floor(1e3/$):5},a.unstable_getCurrentPriorityLevel=function(){return y},a.unstable_next=function($){switch(y){case 1:case 2:case 3:var I=3;break;default:I=y}var ie=y;y=I;try{return $()}finally{y=ie}},a.unstable_requestPaint=function(){E=!0},a.unstable_runWithPriority=function($,I){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ie=y;y=$;try{return I()}finally{y=ie}},a.unstable_scheduleCallback=function($,I,ie){var Ee=a.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Ee+ie:Ee):ie=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=ie+Te,$={id:g++,callback:I,priorityLevel:$,startTime:ie,expirationTime:Te,sortIndex:-1},ie>Ee?($.sortIndex=ie,i(m,$),c(h)===null&&$===c(m)&&(T?(H(q),q=-1):T=!0,fe(Y,ie-Ee))):($.sortIndex=Te,i(h,$),S||N||(S=!0,ee||(ee=!0,Ce()))),$},a.unstable_shouldYield=pe,a.unstable_wrapCallback=function($){var I=y;return function(){var ie=y;y=I;try{return $.apply(this,arguments)}finally{y=ie}}}})(ud)),ud}var Om;function ex(){return Om||(Om=1,od.exports=Jv()),od.exports}var dd={exports:{}},qt={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Mm;function tx(){if(Mm)return qt;Mm=1;var a=i2();function i(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}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 c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(h,m,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:x==null?null:""+x,children:h,containerInfo:m,implementation:g}}var _=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,qt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(h,m,null,g)},qt.flushSync=function(h){var m=_.T,g=r.p;try{if(_.T=null,r.p=2,h)return h()}finally{_.T=m,r.p=g,r.d.f()}},qt.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))},qt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},qt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,x=v(g,m.crossOrigin),y=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:y,fetchPriority:N}):g==="script"&&r.d.X(h,{crossOrigin:x,integrity:y,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},qt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=v(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:g,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)},qt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,x=v(g,m.crossOrigin);r.d.L(h,g,{crossOrigin:x,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})}},qt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=v(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},qt.requestFormReset=function(h){r.d.r(h)},qt.unstable_batchedUpdates=function(h,m){return h(m)},qt.useFormState=function(h,m,g){return _.H.useFormState(h,m,g)},qt.useFormStatus=function(){return _.H.useHostTransitionStatus()},qt.version="19.2.5",qt}var zm;function nx(){if(zm)return dd.exports;zm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),dd.exports=tx(),dd.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 Dm;function lx(){if(Dm)return Ec;Dm=1;var a=ex(),i=i2(),c=nx();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 v(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,b=o.child;b;){if(b===n){p=!0,n=o,s=u;break}if(b===s){p=!0,s=o,n=u;break}b=b.sibling}if(!p){for(b=u.child;b;){if(b===n){p=!0,n=u,s=o;break}if(b===s){p=!0,s=u,n=o;break}b=b.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 g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,y=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function Ce(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case z:return"Profiler";case E:return"StrictMode";case Y:return"Suspense";case ee:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case M:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ve(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ve(e(t))}catch{}}return null}var fe=Array.isArray,$=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={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 Z(e,t){Te++,Ee[Te]=e.current,e.current=t}var ne=R(null),_e=R(null),be=R(null),De=R(null);function Nt(e,t){switch(Z(be,t),Z(_e,e),Z(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?X1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=X1(t),e=P1(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ne),Z(ne,e)}function tt(){V(ne),V(_e),V(be)}function ll(e){e.memoizedState!==null&&Z(De,e);var t=ne.current,n=P1(t,e.type);t!==n&&(Z(_e,e),Z(ne,n))}function gl(e){_e.current===e&&(V(ne),V(_e)),De.current===e&&(V(De),jc._currentValue=ie)}var Il,Xl;function we(e){if(Il===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||"",Xl=-1<n.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Il+e+Xl}var Qt=!1;function vl(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(B){var k=B}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(B){k=B}e.call(Q.prototype)}}else{try{throw Error()}catch(B){k=B}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(B){if(B&&k&&typeof B.stack=="string")return[B.stack,k.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],b=u[1];if(p&&b){var w=p.split(`
|
||
`),L=b.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 F=`
|
||
`+w[s].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=s&&0<=o);break}}}finally{Qt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?we(n):""}function Ke(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 vl(e.type,!1);case 11:return vl(e.type.render,!1);case 1:return vl(e.type,!0);case 31:return we("Activity");default:return""}}function tn(e){try{var t="",n=null;do t+=Ke(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
|
||
Error generating stack: `+s.message+`
|
||
`+s.stack}}var js=Object.prototype.hasOwnProperty,Ss=a.unstable_scheduleCallback,Yo=a.unstable_cancelCallback,T_=a.unstable_shouldYield,R_=a.unstable_requestPaint,gn=a.unstable_now,A_=a.unstable_getCurrentPriorityLevel,w2=a.unstable_ImmediatePriority,C2=a.unstable_UserBlockingPriority,Kc=a.unstable_NormalPriority,O_=a.unstable_LowPriority,E2=a.unstable_IdlePriority,M_=a.log,z_=a.unstable_setDisableYieldValue,Di=null,vn=null;function Pl(e){if(typeof M_=="function"&&z_(e),vn&&typeof vn.setStrictMode=="function")try{vn.setStrictMode(Di,e)}catch{}}var xn=Math.clz32?Math.clz32:k_,D_=Math.log,L_=Math.LN2;function k_(e){return e>>>=0,e===0?32:31-(D_(e)/L_|0)|0}var Wc=256,Jc=262144,er=4194304;function Da(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 tr(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 b=s&134217727;return b!==0?(s=b&~u,s!==0?o=Da(s):(p&=b,p!==0?o=Da(p):n||(n=b&~e,n!==0&&(o=Da(n))))):(b=s&~u,b!==0?o=Da(b):p!==0?o=Da(p):n||(n=s&~e,n!==0&&(o=Da(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 Li(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function B_(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 T2(){var e=er;return er<<=1,(er&62914560)===0&&(er=4194304),e}function Io(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function U_(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 b=e.entanglements,w=e.expirationTimes,L=e.hiddenUpdates;for(n=p&~n;0<n;){var F=31-xn(n),Q=1<<F;b[F]=0,w[F]=-1;var k=L[F];if(k!==null)for(L[F]=null,F=0;F<k.length;F++){var B=k[F];B!==null&&(B.lane&=-536870913)}n&=~Q}s!==0&&R2(e,s,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(p&~t))}function R2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-xn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function A2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-xn(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}function O2(e,t){var n=t&-t;return n=(n&42)!==0?1:Xo(n),(n&(e.suspendedLanes|t))!==0?0:n}function Xo(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 Po(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function M2(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:vm(e.type))}function z2(e,t){var n=I.p;try{return I.p=e,t()}finally{I.p=n}}var Zl=Math.random().toString(36).slice(2),kt="__reactFiber$"+Zl,nn="__reactProps$"+Zl,Ns="__reactContainer$"+Zl,Zo="__reactEvents$"+Zl,$_="__reactListeners$"+Zl,H_="__reactHandles$"+Zl,D2="__reactResources$"+Zl,Bi="__reactMarker$"+Zl;function Ko(e){delete e[kt],delete e[nn],delete e[Zo],delete e[$_],delete e[H_]}function ws(e){var t=e[kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ns]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=nm(e);e!==null;){if(n=e[kt])return n;e=nm(e)}return t}e=n,n=e.parentNode}return null}function Cs(e){if(e=e[kt]||e[Ns]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ui(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Es(e){var t=e[D2];return t||(t=e[D2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[Bi]=!0}var L2=new Set,k2={};function La(e,t){Ts(e,t),Ts(e+"Capture",t)}function Ts(e,t){for(k2[e]=t,e=0;e<t.length;e++)L2.add(t[e])}var q_=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]*$"),B2={},U2={};function F_(e){return js.call(U2,e)?!0:js.call(B2,e)?!1:q_.test(e)?U2[e]=!0:(B2[e]=!0,!1)}function nr(e,t,n){if(F_(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 lr(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 xl(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 Dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G_(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 Wo(e){if(!e._valueTracker){var t=$2(e)?"checked":"value";e._valueTracker=G_(e,t,""+e[t])}}function H2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=$2(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function ar(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 V_=/[\n"\\]/g;function Ln(e){return e.replace(V_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Jo(e,t,n,s,o,u,p,b){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=""+Dn(t)):e.value!==""+Dn(t)&&(e.value=""+Dn(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?eu(e,p,Dn(t)):n!=null?eu(e,p,Dn(n)):s!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Dn(b):e.removeAttribute("name")}function q2(e,t,n,s,o,u,p,b){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)){Wo(e);return}n=n!=null?""+Dn(n):"",t=t!=null?""+Dn(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p),Wo(e)}function eu(e,t,n){t==="number"&&ar(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Rs(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=""+Dn(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 F2(e,t,n){if(t!=null&&(t=""+Dn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dn(n):""}function G2(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(fe(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Dn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),Wo(e)}function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Q_=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 V2(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||Q_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Q2(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&&V2(e,o,s)}else for(var u in t)t.hasOwnProperty(u)&&V2(e,u,t[u])}function tu(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 Y_=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"]]),I_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function sr(e){return I_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yl(){}var nu=null;function lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,Ms=null;function Y2(e){var t=Cs(e);if(t&&(e=t.stateNode)){var n=e[nn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Jo(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="'+Ln(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=s[nn]||null;if(!o)throw Error(r(90));Jo(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&&H2(s)}break e;case"textarea":F2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Rs(e,!!n.multiple,t,!1)}}}var au=!1;function I2(e,t,n){if(au)return e(t,n);au=!0;try{var s=e(t);return s}finally{if(au=!1,(Os!==null||Ms!==null)&&(Yr(),Os&&(t=Os,e=Ms,Ms=Os=null,Y2(t),e)))for(t=0;t<e.length;t++)Y2(e[t])}}function $i(e,t){var n=e.stateNode;if(n===null)return null;var s=n[nn]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),su=!1;if(bl)try{var Hi={};Object.defineProperty(Hi,"passive",{get:function(){su=!0}}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{su=!1}var Kl=null,iu=null,ir=null;function X2(){if(ir)return ir;var e,t=iu,n=t.length,s,o="value"in Kl?Kl.value:Kl.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 ir=o.slice(e,1<s?1-s:void 0)}function cr(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 rr(){return!0}function P2(){return!1}function ln(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 b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?rr:P2,this.isPropagationStopped=P2,this}return x(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=rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},or=ln(ka),qi=x({},ka,{view:0,detail:0}),X_=ln(qi),cu,ru,Fi,ur=x({},qi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uu,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!==Fi&&(Fi&&e.type==="mousemove"?(cu=e.screenX-Fi.screenX,ru=e.screenY-Fi.screenY):ru=cu=0,Fi=e),cu)},movementY:function(e){return"movementY"in e?e.movementY:ru}}),Z2=ln(ur),P_=x({},ur,{dataTransfer:0}),Z_=ln(P_),K_=x({},qi,{relatedTarget:0}),ou=ln(K_),W_=x({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),J_=ln(W_),eg=x({},ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tg=ln(eg),ng=x({},ka,{data:0}),K2=ln(ng),lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ag={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"},sg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ig(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sg[e])?!!t[e]:!1}function uu(){return ig}var cg=x({},qi,{key:function(e){if(e.key){var t=lg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=cr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ag[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uu,charCode:function(e){return e.type==="keypress"?cr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?cr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rg=ln(cg),og=x({},ur,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W2=ln(og),ug=x({},qi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uu}),dg=ln(ug),fg=x({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),hg=ln(fg),mg=x({},ur,{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}),pg=ln(mg),_g=x({},ka,{newState:0,oldState:0}),gg=ln(_g),vg=[9,13,27,32],du=bl&&"CompositionEvent"in window,Gi=null;bl&&"documentMode"in document&&(Gi=document.documentMode);var xg=bl&&"TextEvent"in window&&!Gi,J2=bl&&(!du||Gi&&8<Gi&&11>=Gi),ef=" ",tf=!1;function nf(e,t){switch(e){case"keyup":return vg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var zs=!1;function yg(e,t){switch(e){case"compositionend":return lf(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function bg(e,t){if(zs)return e==="compositionend"||!du&&nf(e,t)?(e=X2(),ir=iu=Kl=null,zs=!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 J2&&t.locale!=="ko"?null:t.data;default:return null}}var jg={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 af(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jg[e.type]:t==="textarea"}function sf(e,t,n,s){Os?Ms?Ms.push(s):Ms=[s]:Os=s,t=Jr(t,"onChange"),0<t.length&&(n=new or("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Vi=null,Qi=null;function Sg(e){F1(e,0)}function dr(e){var t=Ui(e);if(H2(t))return e}function cf(e,t){if(e==="change")return t}var rf=!1;if(bl){var fu;if(bl){var hu="oninput"in document;if(!hu){var of=document.createElement("div");of.setAttribute("oninput","return;"),hu=typeof of.oninput=="function"}fu=hu}else fu=!1;rf=fu&&(!document.documentMode||9<document.documentMode)}function uf(){Vi&&(Vi.detachEvent("onpropertychange",df),Qi=Vi=null)}function df(e){if(e.propertyName==="value"&&dr(Qi)){var t=[];sf(t,Qi,e,lu(e)),I2(Sg,t)}}function Ng(e,t,n){e==="focusin"?(uf(),Vi=t,Qi=n,Vi.attachEvent("onpropertychange",df)):e==="focusout"&&uf()}function wg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return dr(Qi)}function Cg(e,t){if(e==="click")return dr(t)}function Eg(e,t){if(e==="input"||e==="change")return dr(t)}function Tg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:Tg;function Yi(e,t){if(yn(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(!js.call(t,o)||!yn(e[o],t[o]))return!1}return!0}function ff(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var n=ff(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=ff(n)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ar(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=ar(e.document)}return t}function mu(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 Rg=bl&&"documentMode"in document&&11>=document.documentMode,Ds=null,pu=null,Ii=null,_u=!1;function _f(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_u||Ds==null||Ds!==ar(s)||(s=Ds,"selectionStart"in s&&mu(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}),Ii&&Yi(Ii,s)||(Ii=s,s=Jr(pu,"onSelect"),0<s.length&&(t=new or("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ds)))}function Ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ls={animationend:Ba("Animation","AnimationEnd"),animationiteration:Ba("Animation","AnimationIteration"),animationstart:Ba("Animation","AnimationStart"),transitionrun:Ba("Transition","TransitionRun"),transitionstart:Ba("Transition","TransitionStart"),transitioncancel:Ba("Transition","TransitionCancel"),transitionend:Ba("Transition","TransitionEnd")},gu={},gf={};bl&&(gf=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Ua(e){if(gu[e])return gu[e];if(!Ls[e])return e;var t=Ls[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gf)return gu[e]=t[n];return e}var vf=Ua("animationend"),xf=Ua("animationiteration"),yf=Ua("animationstart"),Ag=Ua("transitionrun"),Og=Ua("transitionstart"),Mg=Ua("transitioncancel"),bf=Ua("transitionend"),jf=new Map,vu="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(" ");vu.push("scrollEnd");function Xn(e,t){jf.set(e,t),La(t,[e])}var fr=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)},kn=[],ks=0,xu=0;function hr(){for(var e=ks,t=xu=ks=0;t<e;){var n=kn[t];kn[t++]=null;var s=kn[t];kn[t++]=null;var o=kn[t];kn[t++]=null;var u=kn[t];if(kn[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&&Sf(n,o,u)}}function mr(e,t,n,s){kn[ks++]=e,kn[ks++]=t,kn[ks++]=n,kn[ks++]=s,xu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function yu(e,t,n,s){return mr(e,t,n,s),pr(e)}function $a(e,t){return mr(e,null,null,t),pr(e)}function Sf(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-xn(n),e=u.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=n|536870912),u):null}function pr(e){if(50<pc)throw pc=0,R0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Bs={};function zg(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 bn(e,t,n,s){return new zg(e,t,n,s)}function bu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jl(e,t){var n=e.alternate;return n===null?(n=bn(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 Nf(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 _r(e,t,n,s,o,u){var p=0;if(s=e,typeof e=="function")bu(e)&&(p=1);else if(typeof e=="string")p=Uv(e,n,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=bn(31,n,t,o),e.elementType=se,e.lanes=u,e;case T:return Ha(n.children,o,u,t);case E:p=8,o|=24;break;case z:return e=bn(12,n,t,o|2),e.elementType=z,e.lanes=u,e;case Y:return e=bn(13,n,t,o),e.elementType=Y,e.lanes=u,e;case ee:return e=bn(19,n,t,o),e.elementType=ee,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:p=10;break e;case H:p=9;break e;case U:p=11;break e;case q:p=14;break e;case X:p=16,s=null;break e}p=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=bn(p,n,t,o),t.elementType=e,t.type=s,t.lanes=u,t}function Ha(e,t,n,s){return e=bn(7,e,s,t),e.lanes=n,e}function ju(e,t,n){return e=bn(6,e,null,t),e.lanes=n,e}function wf(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function Su(e,t,n){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Cf=new WeakMap;function Bn(e,t){if(typeof e=="object"&&e!==null){var n=Cf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:tn(t)},Cf.set(e,t),t)}return{value:e,source:t,stack:tn(t)}}var Us=[],$s=0,gr=null,Xi=0,Un=[],$n=0,Wl=null,al=1,sl="";function Sl(e,t){Us[$s++]=Xi,Us[$s++]=gr,gr=e,Xi=t}function Ef(e,t,n){Un[$n++]=al,Un[$n++]=sl,Un[$n++]=Wl,Wl=e;var s=al;e=sl;var o=32-xn(s)-1;s&=~(1<<o),n+=1;var u=32-xn(t)+o;if(30<u){var p=o-o%5;u=(s&(1<<p)-1).toString(32),s>>=p,o-=p,al=1<<32-xn(t)+o|n<<o|s,sl=u+e}else al=1<<u|n<<o|s,sl=e}function Nu(e){e.return!==null&&(Sl(e,1),Ef(e,1,0))}function wu(e){for(;e===gr;)gr=Us[--$s],Us[$s]=null,Xi=Us[--$s],Us[$s]=null;for(;e===Wl;)Wl=Un[--$n],Un[$n]=null,sl=Un[--$n],Un[$n]=null,al=Un[--$n],Un[$n]=null}function Tf(e,t){Un[$n++]=al,Un[$n++]=sl,Un[$n++]=Wl,al=t.id,sl=t.overflow,Wl=e}var Bt=null,nt=null,Le=!1,Jl=null,Hn=!1,Cu=Error(r(519));function ea(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pi(Bn(t,e)),Cu}function Rf(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[kt]=e,t[nn]=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<gc.length;n++)Ae(gc[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),q2(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),G2(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||Y1(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=yl),t=!0):t=!1,t||ea(e,!0)}function Af(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Hn=!1;return;case 27:case 3:Hn=!0;return;default:Bt=Bt.return}}function Hs(e){if(e!==Bt)return!1;if(!Le)return Af(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")||V0(e.type,e.memoizedProps)),n=!n),n&&nt&&ea(e),Af(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=tm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=tm(e)}else t===27?(t=nt,ma(e.type)?(e=P0,P0=null,nt=e):nt=t):nt=Bt?Fn(e.stateNode.nextSibling):null;return!0}function qa(){nt=Bt=null,Le=!1}function Eu(){var e=Jl;return e!==null&&(rn===null?rn=e:rn.push.apply(rn,e),Jl=null),e}function Pi(e){Jl===null?Jl=[e]:Jl.push(e)}var Tu=R(null),Fa=null,Nl=null;function ta(e,t,n){Z(Tu,t._currentValue),t._currentValue=n}function wl(e){e._currentValue=Tu.current,V(Tu)}function Ru(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 Au(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 b=u;u=o;for(var w=0;w<t.length;w++)if(b.context===t[w]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Ru(u.return,n,e),s||(p=null);break e}u=b.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),Ru(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 qs(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 b=o.type;yn(o.pendingProps.value,p.value)||(e!==null?e.push(b):e=[b])}}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(jc):e=[jc])}o=o.return}e!==null&&Au(t,e,n,s),t.flags|=262144}function vr(e){for(e=e.firstContext;e!==null;){if(!yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ga(e){Fa=e,Nl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return Of(Fa,e)}function xr(e,t){return Fa===null&&Ga(e),Of(e,t)}function Of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Nl===null){if(e===null)throw Error(r(308));Nl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nl=Nl.next=t;return n}var Dg=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()})}},Lg=a.unstable_scheduleCallback,kg=a.unstable_NormalPriority,xt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ou(){return{controller:new Dg,data:new Map,refCount:0}}function Zi(e){e.refCount--,e.refCount===0&&Lg(kg,function(){e.controller.abort()})}var Ki=null,Mu=0,Fs=0,Gs=null;function Bg(e,t){if(Ki===null){var n=Ki=[];Mu=0,Fs=L0(),Gs={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Mu++,t.then(Mf,Mf),t}function Mf(){if(--Mu===0&&Ki!==null){Gs!==null&&(Gs.status="fulfilled");var e=Ki;Ki=null,Fs=0,Gs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ug(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 zf=$.S;$.S=function(e,t){_1=gn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bg(e,t),zf!==null&&zf(e,t)};var Va=R(null);function zu(){var e=Va.current;return e!==null?e:Pe.pooledCache}function yr(e,t){t===null?Z(Va,Va.current):Z(Va,t.pool)}function Df(){var e=zu();return e===null?null:{parent:xt._currentValue,pool:e}}var Vs=Error(r(460)),Du=Error(r(474)),br=Error(r(542)),jr={then:function(){}};function Lf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function kf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yl,yl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uf(e),e;default:if(typeof t.status=="string")t.then(yl,yl);else{if(e=Pe,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,Uf(e),e}throw Ya=t,Vs}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ya=n,Vs):n}}var Ya=null;function Bf(){if(Ya===null)throw Error(r(459));var e=Ya;return Ya=null,e}function Uf(e){if(e===Vs||e===br)throw Error(r(483))}var Qs=null,Wi=0;function Sr(e){var t=Wi;return Wi+=1,Qs===null&&(Qs=[]),kf(Qs,e,t)}function Ji(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Nr(e,t){throw t.$$typeof===y?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $f(e){function t(O,A){if(e){var D=O.deletions;D===null?(O.deletions=[A],O.flags|=16):D.push(A)}}function n(O,A){if(!e)return null;for(;A!==null;)t(O,A),A=A.sibling;return null}function s(O){for(var A=new Map;O!==null;)O.key!==null?A.set(O.key,O):A.set(O.index,O),O=O.sibling;return A}function o(O,A){return O=jl(O,A),O.index=0,O.sibling=null,O}function u(O,A,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<A?(O.flags|=67108866,A):D):(O.flags|=67108866,A)):(O.flags|=1048576,A)}function p(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function b(O,A,D,G){return A===null||A.tag!==6?(A=ju(D,O.mode,G),A.return=O,A):(A=o(A,D),A.return=O,A)}function w(O,A,D,G){var re=D.type;return re===T?F(O,A,D.props.children,G,D.key):A!==null&&(A.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===X&&Qa(re)===A.type)?(A=o(A,D.props),Ji(A,D),A.return=O,A):(A=_r(D.type,D.key,D.props,null,O.mode,G),Ji(A,D),A.return=O,A)}function L(O,A,D,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Su(D,O.mode,G),A.return=O,A):(A=o(A,D.children||[]),A.return=O,A)}function F(O,A,D,G,re){return A===null||A.tag!==7?(A=Ha(D,O.mode,G,re),A.return=O,A):(A=o(A,D),A.return=O,A)}function Q(O,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=ju(""+A,O.mode,D),A.return=O,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return D=_r(A.type,A.key,A.props,null,O.mode,D),Ji(D,A),D.return=O,D;case S:return A=Su(A,O.mode,D),A.return=O,A;case X:return A=Qa(A),Q(O,A,D)}if(fe(A)||Ce(A))return A=Ha(A,O.mode,D,null),A.return=O,A;if(typeof A.then=="function")return Q(O,Sr(A),D);if(A.$$typeof===M)return Q(O,xr(O,A),D);Nr(O,A)}return null}function k(O,A,D,G){var re=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return re!==null?null:b(O,A,""+D,G);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return D.key===re?w(O,A,D,G):null;case S:return D.key===re?L(O,A,D,G):null;case X:return D=Qa(D),k(O,A,D,G)}if(fe(D)||Ce(D))return re!==null?null:F(O,A,D,G,null);if(typeof D.then=="function")return k(O,A,Sr(D),G);if(D.$$typeof===M)return k(O,A,xr(O,D),G);Nr(O,D)}return null}function B(O,A,D,G,re){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return O=O.get(D)||null,b(A,O,""+G,re);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case N:return O=O.get(G.key===null?D:G.key)||null,w(A,O,G,re);case S:return O=O.get(G.key===null?D:G.key)||null,L(A,O,G,re);case X:return G=Qa(G),B(O,A,D,G,re)}if(fe(G)||Ce(G))return O=O.get(D)||null,F(A,O,G,re,null);if(typeof G.then=="function")return B(O,A,D,Sr(G),re);if(G.$$typeof===M)return B(O,A,D,xr(A,G),re);Nr(A,G)}return null}function le(O,A,D,G){for(var re=null,Ue=null,ae=A,je=A=0,ze=null;ae!==null&&je<D.length;je++){ae.index>je?(ze=ae,ae=null):ze=ae.sibling;var $e=k(O,ae,D[je],G);if($e===null){ae===null&&(ae=ze);break}e&&ae&&$e.alternate===null&&t(O,ae),A=u($e,A,je),Ue===null?re=$e:Ue.sibling=$e,Ue=$e,ae=ze}if(je===D.length)return n(O,ae),Le&&Sl(O,je),re;if(ae===null){for(;je<D.length;je++)ae=Q(O,D[je],G),ae!==null&&(A=u(ae,A,je),Ue===null?re=ae:Ue.sibling=ae,Ue=ae);return Le&&Sl(O,je),re}for(ae=s(ae);je<D.length;je++)ze=B(ae,O,je,D[je],G),ze!==null&&(e&&ze.alternate!==null&&ae.delete(ze.key===null?je:ze.key),A=u(ze,A,je),Ue===null?re=ze:Ue.sibling=ze,Ue=ze);return e&&ae.forEach(function(xa){return t(O,xa)}),Le&&Sl(O,je),re}function he(O,A,D,G){if(D==null)throw Error(r(151));for(var re=null,Ue=null,ae=A,je=A=0,ze=null,$e=D.next();ae!==null&&!$e.done;je++,$e=D.next()){ae.index>je?(ze=ae,ae=null):ze=ae.sibling;var xa=k(O,ae,$e.value,G);if(xa===null){ae===null&&(ae=ze);break}e&&ae&&xa.alternate===null&&t(O,ae),A=u(xa,A,je),Ue===null?re=xa:Ue.sibling=xa,Ue=xa,ae=ze}if($e.done)return n(O,ae),Le&&Sl(O,je),re;if(ae===null){for(;!$e.done;je++,$e=D.next())$e=Q(O,$e.value,G),$e!==null&&(A=u($e,A,je),Ue===null?re=$e:Ue.sibling=$e,Ue=$e);return Le&&Sl(O,je),re}for(ae=s(ae);!$e.done;je++,$e=D.next())$e=B(ae,O,je,$e.value,G),$e!==null&&(e&&$e.alternate!==null&&ae.delete($e.key===null?je:$e.key),A=u($e,A,je),Ue===null?re=$e:Ue.sibling=$e,Ue=$e);return e&&ae.forEach(function(Pv){return t(O,Pv)}),Le&&Sl(O,je),re}function Ie(O,A,D,G){if(typeof D=="object"&&D!==null&&D.type===T&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case N:e:{for(var re=D.key;A!==null;){if(A.key===re){if(re=D.type,re===T){if(A.tag===7){n(O,A.sibling),G=o(A,D.props.children),G.return=O,O=G;break e}}else if(A.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===X&&Qa(re)===A.type){n(O,A.sibling),G=o(A,D.props),Ji(G,D),G.return=O,O=G;break e}n(O,A);break}else t(O,A);A=A.sibling}D.type===T?(G=Ha(D.props.children,O.mode,G,D.key),G.return=O,O=G):(G=_r(D.type,D.key,D.props,null,O.mode,G),Ji(G,D),G.return=O,O=G)}return p(O);case S:e:{for(re=D.key;A!==null;){if(A.key===re)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){n(O,A.sibling),G=o(A,D.children||[]),G.return=O,O=G;break e}else{n(O,A);break}else t(O,A);A=A.sibling}G=Su(D,O.mode,G),G.return=O,O=G}return p(O);case X:return D=Qa(D),Ie(O,A,D,G)}if(fe(D))return le(O,A,D,G);if(Ce(D)){if(re=Ce(D),typeof re!="function")throw Error(r(150));return D=re.call(D),he(O,A,D,G)}if(typeof D.then=="function")return Ie(O,A,Sr(D),G);if(D.$$typeof===M)return Ie(O,A,xr(O,D),G);Nr(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(n(O,A.sibling),G=o(A,D),G.return=O,O=G):(n(O,A),G=ju(D,O.mode,G),G.return=O,O=G),p(O)):n(O,A)}return function(O,A,D,G){try{Wi=0;var re=Ie(O,A,D,G);return Qs=null,re}catch(ae){if(ae===Vs||ae===br)throw ae;var Ue=bn(29,ae,null,O.mode);return Ue.lanes=G,Ue.return=O,Ue}finally{}}}var Ia=$f(!0),Hf=$f(!1),na=!1;function Lu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ku(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 la(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function aa(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(He&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=pr(e),Sf(e,null,n),t}return mr(e,s,t,n),pr(e)}function ec(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,A2(e,n)}}function Bu(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 Uu=!1;function tc(){if(Uu){var e=Gs;if(e!==null)throw e}}function nc(e,t,n,s){Uu=!1;var o=e.updateQueue;na=!1;var u=o.firstBaseUpdate,p=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var w=b,L=w.next;w.next=null,p===null?u=L:p.next=L,p=w;var F=e.alternate;F!==null&&(F=F.updateQueue,b=F.lastBaseUpdate,b!==p&&(b===null?F.firstBaseUpdate=L:b.next=L,F.lastBaseUpdate=w))}if(u!==null){var Q=o.baseState;p=0,F=L=w=null,b=u;do{var k=b.lane&-536870913,B=k!==b.lane;if(B?(Me&k)===k:(s&k)===k){k!==0&&k===Fs&&(Uu=!0),F!==null&&(F=F.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,he=b;k=t;var Ie=n;switch(he.tag){case 1:if(le=he.payload,typeof le=="function"){Q=le.call(Ie,Q,k);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=he.payload,k=typeof le=="function"?le.call(Ie,Q,k):le,k==null)break e;Q=x({},Q,k);break e;case 2:na=!0}}k=b.callback,k!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[k]:B.push(k))}else B={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},F===null?(L=F=B,w=Q):F=F.next=B,p|=k;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;B=b,b=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);F===null&&(w=Q),o.baseState=w,o.firstBaseUpdate=L,o.lastBaseUpdate=F,u===null&&(o.shared.lanes=0),oa|=p,e.lanes=p,e.memoizedState=Q}}function qf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ff(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qf(n[e],t)}var Ys=R(null),wr=R(0);function Gf(e,t){e=Dl,Z(wr,e),Z(Ys,t),Dl=e|t.baseLanes}function $u(){Z(wr,Dl),Z(Ys,Ys.current)}function Hu(){Dl=wr.current,V(Ys),V(wr)}var jn=R(null),qn=null;function sa(e){var t=e.alternate;Z(mt,mt.current&1),Z(jn,e),qn===null&&(t===null||Ys.current!==null||t.memoizedState!==null)&&(qn=e)}function qu(e){Z(mt,mt.current),Z(jn,e),qn===null&&(qn=e)}function Vf(e){e.tag===22?(Z(mt,mt.current),Z(jn,e),qn===null&&(qn=e)):ia()}function ia(){Z(mt,mt.current),Z(jn,jn.current)}function Sn(e){V(jn),qn===e&&(qn=null),V(mt)}var mt=R(0);function Cr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||I0(n)||X0(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 Cl=0,ye=null,Qe=null,yt=null,Er=!1,Is=!1,Xa=!1,Tr=0,lc=0,Xs=null,$g=0;function ut(){throw Error(r(321))}function Fu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yn(e[n],t[n]))return!1;return!0}function Gu(e,t,n,s,o,u){return Cl=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Eh:a0,Xa=!1,u=n(s,o),Xa=!1,Is&&(u=Yf(t,n,s,o)),Qf(e),u}function Qf(e){$.H=ic;var t=Qe!==null&&Qe.next!==null;if(Cl=0,yt=Qe=ye=null,Er=!1,lc=0,Xs=null,t)throw Error(r(300));e===null||bt||(e=e.dependencies,e!==null&&vr(e)&&(bt=!0))}function Yf(e,t,n,s){ye=e;var o=0;do{if(Is&&(Xs=null),lc=0,Is=!1,25<=o)throw Error(r(301));if(o+=1,yt=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=Th,u=t(n,s)}while(Is);return u}function Hg(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?ac(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(ye.flags|=1024),t}function Vu(){var e=Tr!==0;return Tr=0,e}function Qu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Yu(e){if(Er){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Er=!1}Cl=0,yt=Qe=ye=null,Is=!1,lc=Tr=0,Xs=null}function Yt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?ye.memoizedState=yt=e:yt=yt.next=e,yt}function pt(){if(Qe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=yt===null?ye.memoizedState:yt.next;if(t!==null)yt=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},yt===null?ye.memoizedState=yt=e:yt=yt.next=e}return yt}function Rr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ac(e){var t=lc;return lc+=1,Xs===null&&(Xs=[]),e=kf(Xs,e,t),t=ye,(yt===null?t.memoizedState:yt.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Eh:a0),e}function Ar(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ac(e);if(e.$$typeof===M)return Ut(e)}throw Error(r(438,String(e)))}function Iu(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=Rr(),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]=pe;return t.index++,n}function El(e,t){return typeof t=="function"?t(e):t}function Or(e){var t=pt();return Xu(t,Qe,e)}function Xu(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 b=p=null,w=null,L=t,F=!1;do{var Q=L.lane&-536870913;if(Q!==L.lane?(Me&Q)===Q:(Cl&Q)===Q){var k=L.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Q===Fs&&(F=!0);else if((Cl&k)===k){L=L.next,k===Fs&&(F=!0);continue}else Q={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(b=w=Q,p=u):w=w.next=Q,ye.lanes|=k,oa|=k;Q=L.action,Xa&&n(u,Q),u=L.hasEagerState?L.eagerState:n(u,Q)}else k={lane:Q,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},w===null?(b=w=k,p=u):w=w.next=k,ye.lanes|=Q,oa|=Q;L=L.next}while(L!==null&&L!==t);if(w===null?p=u:w.next=b,!yn(u,e.memoizedState)&&(bt=!0,F&&(n=Gs,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 Pu(e){var t=pt(),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);yn(u,t.memoizedState)||(bt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function If(e,t,n){var s=ye,o=pt(),u=Le;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var p=!yn((Qe||o).memoizedState,n);if(p&&(o.memoizedState=n,bt=!0),o=o.queue,Wu(Zf.bind(null,s,o,e),[e]),o.getSnapshot!==t||p||yt!==null&&yt.memoizedState.tag&1){if(s.flags|=2048,Ps(9,{destroy:void 0},Pf.bind(null,s,o,n,t),null),Pe===null)throw Error(r(349));u||(Cl&127)!==0||Xf(s,t,n)}return n}function Xf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Rr(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pf(e,t,n,s){t.value=n,t.getSnapshot=s,Kf(t)&&Wf(e)}function Zf(e,t,n){return n(function(){Kf(t)&&Wf(e)})}function Kf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yn(e,n)}catch{return!0}}function Wf(e){var t=$a(e,2);t!==null&&on(t,e,2)}function Zu(e){var t=Yt();if(typeof e=="function"){var n=e;if(e=n(),Xa){Pl(!0);try{n()}finally{Pl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:e},t}function Jf(e,t,n,s){return e.baseState=n,Xu(e,Qe,typeof s=="function"?s:El)}function qg(e,t,n,s,o){if(Dr(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,eh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function eh(e,t){var n=t.action,s=t.payload,o=e.state;if(t.isTransition){var u=$.T,p={};$.T=p;try{var b=n(o,s),w=$.S;w!==null&&w(p,b),th(e,t,b)}catch(L){Ku(e,t,L)}finally{u!==null&&p.types!==null&&(u.types=p.types),$.T=u}}else try{u=n(o,s),th(e,t,u)}catch(L){Ku(e,t,L)}}function th(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){nh(e,t,s)},function(s){return Ku(e,t,s)}):nh(e,t,n)}function nh(e,t,n){t.status="fulfilled",t.value=n,lh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,eh(e,n)))}function Ku(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,lh(t),t=t.next;while(t!==s)}e.action=null}function lh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ah(e,t){return t}function sh(e,t){if(Le){var n=Pe.formState;if(n!==null){e:{var s=ye;if(Le){if(nt){t:{for(var o=nt,u=Hn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Fn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){nt=Fn(o.nextSibling),s=o.data==="F!";break e}}ea(s)}s=!1}s&&(t=n[0])}}return n=Yt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ah,lastRenderedState:t},n.queue=s,n=Nh.bind(null,ye,s),s.dispatch=n,s=Zu(!1),u=l0.bind(null,ye,!1,s.queue),s=Yt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,n=qg.bind(null,ye,o,u,n),o.dispatch=n,s.memoizedState=e,[t,n,!1]}function ih(e){var t=pt();return ch(t,Qe,e)}function ch(e,t,n){if(t=Xu(e,t,ah)[0],e=Or(El)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=ac(t)}catch(p){throw p===Vs?br:p}else s=t;t=pt();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,Ps(9,{destroy:void 0},Fg.bind(null,o,n),null)),[s,u,e]}function Fg(e,t){e.action=t}function rh(e){var t=pt(),n=Qe;if(n!==null)return ch(t,n,e);pt(),t=t.memoizedState,n=pt();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Ps(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Rr(),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 oh(){return pt().memoizedState}function Mr(e,t,n,s){var o=Yt();ye.flags|=e,o.memoizedState=Ps(1|t,{destroy:void 0},n,s===void 0?null:s)}function zr(e,t,n,s){var o=pt();s=s===void 0?null:s;var u=o.memoizedState.inst;Qe!==null&&s!==null&&Fu(s,Qe.memoizedState.deps)?o.memoizedState=Ps(t,u,n,s):(ye.flags|=e,o.memoizedState=Ps(1|t,u,n,s))}function uh(e,t){Mr(8390656,8,e,t)}function Wu(e,t){zr(2048,8,e,t)}function Gg(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Rr(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function dh(e){var t=pt().memoizedState;return Gg({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function fh(e,t){return zr(4,2,e,t)}function hh(e,t){return zr(4,4,e,t)}function mh(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 ph(e,t,n){n=n!=null?n.concat([e]):null,zr(4,4,mh.bind(null,t,e),n)}function Ju(){}function _h(e,t){var n=pt();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Fu(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function gh(e,t){var n=pt();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Fu(t,s[1]))return s[0];if(s=e(),Xa){Pl(!0);try{e()}finally{Pl(!1)}}return n.memoizedState=[s,t],s}function e0(e,t,n){return n===void 0||(Cl&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=v1(),ye.lanes|=e,oa|=e,n)}function vh(e,t,n,s){return yn(n,t)?n:Ys.current!==null?(e=e0(e,n,s),yn(e,t)||(bt=!0),e):(Cl&42)===0||(Cl&1073741824)!==0&&(Me&261930)===0?(bt=!0,e.memoizedState=n):(e=v1(),ye.lanes|=e,oa|=e,t)}function xh(e,t,n,s,o){var u=I.p;I.p=u!==0&&8>u?u:8;var p=$.T,b={};$.T=b,l0(e,!1,t,n);try{var w=o(),L=$.S;if(L!==null&&L(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var F=Ug(w,s);sc(e,t,F,Cn(e))}else sc(e,t,s,Cn(e))}catch(Q){sc(e,t,{then:function(){},status:"rejected",reason:Q},Cn())}finally{I.p=u,p!==null&&b.types!==null&&(p.types=b.types),$.T=p}}function Vg(){}function t0(e,t,n,s){if(e.tag!==5)throw Error(r(476));var o=yh(e).queue;xh(e,o,t,ie,n===null?Vg:function(){return bh(e),n(s)})}function yh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bh(e){var t=yh(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Cn())}function n0(){return Ut(jc)}function jh(){return pt().memoizedState}function Sh(){return pt().memoizedState}function Qg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=la(n);var s=aa(t,e,n);s!==null&&(on(s,t,n),ec(s,t,n)),t={cache:Ou()},e.payload=t;return}t=t.return}}function Yg(e,t,n){var s=Cn();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Dr(e)?wh(t,n):(n=yu(e,t,n,s),n!==null&&(on(n,e,s),Ch(n,t,s)))}function Nh(e,t,n){var s=Cn();sc(e,t,n,s)}function sc(e,t,n,s){var o={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Dr(e))wh(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,b=u(p,n);if(o.hasEagerState=!0,o.eagerState=b,yn(b,p))return mr(e,t,o,0),Pe===null&&hr(),!1}catch{}finally{}if(n=yu(e,t,o,s),n!==null)return on(n,e,s),Ch(n,t,s),!0}return!1}function l0(e,t,n,s){if(s={lane:2,revertLane:L0(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Dr(e)){if(t)throw Error(r(479))}else t=yu(e,n,s,2),t!==null&&on(t,e,2)}function Dr(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function wh(e,t){Is=Er=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ch(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,A2(e,n)}}var ic={readContext:Ut,use:Ar,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};ic.useEffectEvent=ut;var Eh={readContext:Ut,use:Ar,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:uh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Mr(4194308,4,mh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){Mr(4,2,e,t)},useMemo:function(e,t){var n=Yt();t=t===void 0?null:t;var s=e();if(Xa){Pl(!0);try{e()}finally{Pl(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Yt();if(n!==void 0){var o=n(t);if(Xa){Pl(!0);try{n(t)}finally{Pl(!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=Yg.bind(null,ye,e),[s.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zu(e);var t=e.queue,n=Nh.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ju,useDeferredValue:function(e,t){var n=Yt();return e0(n,e,t)},useTransition:function(){var e=Zu(!1);return e=xh.bind(null,ye,e.queue,!0,!1),Yt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=ye,o=Yt();if(Le){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Pe===null)throw Error(r(349));(Me&127)!==0||Xf(s,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,uh(Zf.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,{destroy:void 0},Pf.bind(null,s,u,n,t),null),n},useId:function(){var e=Yt(),t=Pe.identifierPrefix;if(Le){var n=sl,s=al;n=(s&~(1<<32-xn(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Tr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=$g++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:n0,useFormState:sh,useActionState:sh,useOptimistic:function(e){var t=Yt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=l0.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:Iu,useCacheRefresh:function(){return Yt().memoizedState=Qg.bind(null,ye)},useEffectEvent:function(e){var t=Yt(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},a0={readContext:Ut,use:Ar,useCallback:_h,useContext:Ut,useEffect:Wu,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:hh,useMemo:gh,useReducer:Or,useRef:oh,useState:function(){return Or(El)},useDebugValue:Ju,useDeferredValue:function(e,t){var n=pt();return vh(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Or(El)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:ac(e),t]},useSyncExternalStore:If,useId:jh,useHostTransitionStatus:n0,useFormState:ih,useActionState:ih,useOptimistic:function(e,t){var n=pt();return Jf(n,Qe,e,t)},useMemoCache:Iu,useCacheRefresh:Sh};a0.useEffectEvent=dh;var Th={readContext:Ut,use:Ar,useCallback:_h,useContext:Ut,useEffect:Wu,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:hh,useMemo:gh,useReducer:Pu,useRef:oh,useState:function(){return Pu(El)},useDebugValue:Ju,useDeferredValue:function(e,t){var n=pt();return Qe===null?e0(n,e,t):vh(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Pu(El)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:ac(e),t]},useSyncExternalStore:If,useId:jh,useHostTransitionStatus:n0,useFormState:rh,useActionState:rh,useOptimistic:function(e,t){var n=pt();return Qe!==null?Jf(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Iu,useCacheRefresh:Sh};Th.useEffectEvent=dh;function s0(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var i0={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Cn(),o=la(s);o.payload=t,n!=null&&(o.callback=n),t=aa(e,o,s),t!==null&&(on(t,e,s),ec(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Cn(),o=la(s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=aa(e,o,s),t!==null&&(on(t,e,s),ec(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),s=la(n);s.tag=2,t!=null&&(s.callback=t),t=aa(e,s,n),t!==null&&(on(t,e,n),ec(t,e,n))}};function Rh(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?!Yi(n,s)||!Yi(o,u):!0}function Ah(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&&i0.enqueueReplaceState(t,t.state,null)}function Pa(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=x({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Oh(e){fr(e)}function Mh(e){console.error(e)}function zh(e){fr(e)}function Lr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Dh(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 c0(e,t,n){return n=la(n),n.tag=3,n.payload={element:null},n.callback=function(){Lr(e,t)},n}function Lh(e){return e=la(e),e.tag=3,e}function kh(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(){Dh(t,n,s)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){Dh(t,n,s),typeof o!="function"&&(ua===null?ua=new Set([this]):ua.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function Ig(e,t,n,s,o){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&qs(t,n,o,!0),n=jn.current,n!==null){switch(n.tag){case 31:case 13:return qn===null?Ir():n.alternate===null&&dt===0&&(dt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,s===jr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),M0(e,s,o)),!1;case 22:return n.flags|=65536,s===jr?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)),M0(e,s,o)),!1}throw Error(r(435,n.tag))}return M0(e,s,o),Ir(),!1}if(Le)return t=jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==Cu&&(e=Error(r(422),{cause:s}),Pi(Bn(e,n)))):(s!==Cu&&(t=Error(r(423),{cause:s}),Pi(Bn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Bn(s,n),o=c0(e.stateNode,s,o),Bu(e,o),dt!==4&&(dt=2)),!1;var u=Error(r(520),{cause:s});if(u=Bn(u,n),mc===null?mc=[u]:mc.push(u),dt!==4&&(dt=2),t===null)return!0;s=Bn(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=c0(n.stateNode,s,e),Bu(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"&&(ua===null||!ua.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Lh(o),kh(o,e,n,s),Bu(n,o),!1}n=n.return}while(n!==null);return!1}var r0=Error(r(461)),bt=!1;function $t(e,t,n,s){t.child=e===null?Hf(t,null,n,s):Ia(t,e.child,n,s)}function Bh(e,t,n,s,o){n=n.render;var u=t.ref;if("ref"in s){var p={};for(var b in s)b!=="ref"&&(p[b]=s[b])}else p=s;return Ga(t),s=Gu(e,t,n,p,u,o),b=Vu(),e!==null&&!bt?(Qu(e,t,o),Tl(e,t,o)):(Le&&b&&Nu(t),t.flags|=1,$t(e,t,s,o),t.child)}function Uh(e,t,n,s,o){if(e===null){var u=n.type;return typeof u=="function"&&!bu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,$h(e,t,u,s,o)):(e=_r(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_0(e,o)){var p=u.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(p,s)&&e.ref===t.ref)return Tl(e,t,o)}return t.flags|=1,e=jl(u,s),e.ref=t.ref,e.return=t,t.child=e}function $h(e,t,n,s,o){if(e!==null){var u=e.memoizedProps;if(Yi(u,s)&&e.ref===t.ref)if(bt=!1,t.pendingProps=s=u,_0(e,o))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,Tl(e,t,o)}return o0(e,t,n,s,o)}function Hh(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 qh(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yr(t,u!==null?u.cachePool:null),u!==null?Gf(t,u):$u(),Vf(t);else return s=t.lanes=536870912,qh(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(yr(t,u.cachePool),Gf(t,u),ia(),t.memoizedState=null):(e!==null&&yr(t,null),$u(),ia());return $t(e,t,o,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qh(e,t,n,s,o){var u=zu();return u=u===null?null:{parent:xt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&yr(t,null),$u(),Vf(t),e!==null&&qs(e,t,s,!0),t.childLanes=o,null}function kr(e,t){return t=Ur({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fh(e,t,n){return Ia(t,e.child,null,n),e=kr(t,t.pendingProps),e.flags|=2,Sn(t),t.memoizedState=null,e}function Xg(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=kr(t,s),t.lanes=536870912,cc(null,e);if(qu(t),(e=nt)?(e=em(e,Hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wl!==null?{id:al,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},n=wf(e),n.return=t,t.child=n,Bt=t,nt=null)):e=null,e===null)throw ea(t);return t.lanes=536870912,null}return kr(t,s)}var u=e.memoizedState;if(u!==null){var p=u.dehydrated;if(qu(t),o)if(t.flags&256)t.flags&=-257,t=Fh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(bt||qs(e,t,n,!1),o=(n&e.childLanes)!==0,bt||o){if(s=Pe,s!==null&&(p=O2(s,n),p!==0&&p!==u.retryLane))throw u.retryLane=p,$a(e,p),on(s,e,p),r0;Ir(),t=Fh(e,t,n)}else e=u.treeContext,nt=Fn(p.nextSibling),Bt=t,Le=!0,Jl=null,Hn=!1,e!==null&&Tf(t,e),t=kr(t,s),t.flags|=4096;return t}return e=jl(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Br(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 o0(e,t,n,s,o){return Ga(t),n=Gu(e,t,n,s,void 0,o),s=Vu(),e!==null&&!bt?(Qu(e,t,o),Tl(e,t,o)):(Le&&s&&Nu(t),t.flags|=1,$t(e,t,n,o),t.child)}function Gh(e,t,n,s,o,u){return Ga(t),t.updateQueue=null,n=Yf(t,s,n,o),Qf(e),s=Vu(),e!==null&&!bt?(Qu(e,t,u),Tl(e,t,u)):(Le&&s&&Nu(t),t.flags|=1,$t(e,t,n,u),t.child)}function Vh(e,t,n,s,o){if(Ga(t),t.stateNode===null){var u=Bs,p=n.contextType;typeof p=="object"&&p!==null&&(u=Ut(p)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=i0,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},Lu(t),p=n.contextType,u.context=typeof p=="object"&&p!==null?Ut(p):Bs,u.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(s0(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&&i0.enqueueReplaceState(u,u.state,null),nc(t,s,u,o),tc(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,w=Pa(n,b);u.props=w;var L=u.context,F=n.contextType;p=Bs,typeof F=="object"&&F!==null&&(p=Ut(F));var Q=n.getDerivedStateFromProps;F=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||L!==p)&&Ah(t,u,s,p),na=!1;var k=t.memoizedState;u.state=k,nc(t,s,u,o),tc(),L=t.memoizedState,b||k!==L||na?(typeof Q=="function"&&(s0(t,n,Q,s),L=t.memoizedState),(w=na||Rh(t,n,w,s,k,L,p))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=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,ku(e,t),p=t.memoizedProps,F=Pa(n,p),u.props=F,Q=t.pendingProps,k=u.context,L=n.contextType,w=Bs,typeof L=="object"&&L!==null&&(w=Ut(L)),b=n.getDerivedStateFromProps,(L=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==Q||k!==w)&&Ah(t,u,s,w),na=!1,k=t.memoizedState,u.state=k,nc(t,s,u,o),tc();var B=t.memoizedState;p!==Q||k!==B||na||e!==null&&e.dependencies!==null&&vr(e.dependencies)?(typeof b=="function"&&(s0(t,n,b,s),B=t.memoizedState),(F=na||Rh(t,n,F,s,k,B,w)||e!==null&&e.dependencies!==null&&vr(e.dependencies))?(L||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,B,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,B,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=B),u.props=s,u.state=B,u.context=w,s=F):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,Br(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=Ia(t,e.child,null,o),t.child=Ia(t,null,n,o)):$t(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Tl(e,t,o),e}function Qh(e,t,n,s){return qa(),t.flags|=256,$t(e,t,n,s),t.child}var u0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function d0(e){return{baseLanes:e,cachePool:Df()}}function f0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=wn),e}function Yh(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:(mt.current&2)!==0),p&&(o=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(o?sa(t):ia(),(e=nt)?(e=em(e,Hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Wl!==null?{id:al,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},n=wf(e),n.return=t,t.child=n,Bt=t,nt=null)):e=null,e===null)throw ea(t);return X0(e)?t.lanes=32:t.lanes=536870912,null}var b=s.children;return s=s.fallback,o?(ia(),o=t.mode,b=Ur({mode:"hidden",children:b},o),s=Ha(s,o,n,null),b.return=t,s.return=t,b.sibling=s,t.child=b,s=t.child,s.memoizedState=d0(n),s.childLanes=f0(e,p,n),t.memoizedState=u0,cc(null,s)):(sa(t),h0(t,b))}var w=e.memoizedState;if(w!==null&&(b=w.dehydrated,b!==null)){if(u)t.flags&256?(sa(t),t.flags&=-257,t=m0(e,t,n)):t.memoizedState!==null?(ia(),t.child=e.child,t.flags|=128,t=null):(ia(),b=s.fallback,o=t.mode,s=Ur({mode:"visible",children:s.children},o),b=Ha(b,o,n,null),b.flags|=2,s.return=t,b.return=t,s.sibling=b,t.child=s,Ia(t,e.child,null,n),s=t.child,s.memoizedState=d0(n),s.childLanes=f0(e,p,n),t.memoizedState=u0,t=cc(null,s));else if(sa(t),X0(b)){if(p=b.nextSibling&&b.nextSibling.dataset,p)var L=p.dgst;p=L,s=Error(r(419)),s.stack="",s.digest=p,Pi({value:s,source:null,stack:null}),t=m0(e,t,n)}else if(bt||qs(e,t,n,!1),p=(n&e.childLanes)!==0,bt||p){if(p=Pe,p!==null&&(s=O2(p,n),s!==0&&s!==w.retryLane))throw w.retryLane=s,$a(e,s),on(p,e,s),r0;I0(b)||Ir(),t=m0(e,t,n)}else I0(b)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,nt=Fn(b.nextSibling),Bt=t,Le=!0,Jl=null,Hn=!1,e!==null&&Tf(t,e),t=h0(t,s.children),t.flags|=4096);return t}return o?(ia(),b=s.fallback,o=t.mode,w=e.child,L=w.sibling,s=jl(w,{mode:"hidden",children:s.children}),s.subtreeFlags=w.subtreeFlags&65011712,L!==null?b=jl(L,b):(b=Ha(b,o,n,null),b.flags|=2),b.return=t,s.return=t,s.sibling=b,t.child=s,cc(null,s),s=t.child,b=e.child.memoizedState,b===null?b=d0(n):(o=b.cachePool,o!==null?(w=xt._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=Df(),b={baseLanes:b.baseLanes|n,cachePool:o}),s.memoizedState=b,s.childLanes=f0(e,p,n),t.memoizedState=u0,cc(e.child,s)):(sa(t),n=e.child,e=n.sibling,n=jl(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 h0(e,t){return t=Ur({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ur(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function m0(e,t,n){return Ia(t,e.child,null,n),e=h0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ih(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Ru(e.return,t,n)}function p0(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 Xh(e,t,n){var s=t.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var p=mt.current,b=(p&2)!==0;if(b?(p=p&1|2,t.flags|=128):p&=1,Z(mt,p),$t(e,t,s,n),s=Le?Xi:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ih(e,n,t);else if(e.tag===19)Ih(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&&Cr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),p0(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&&Cr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}p0(t,!0,n,null,u,s);break;case"together":p0(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Tl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qs(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=jl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function _0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vr(e)))}function Pg(e,t,n){switch(t.tag){case 3:Nt(t,t.stateNode.containerInfo),ta(t,xt,e.memoizedState.cache),qa();break;case 27:case 5:ll(t);break;case 4:Nt(t,t.stateNode.containerInfo);break;case 10:ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(sa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Yh(e,t,n):(sa(t),e=Tl(e,t,n),e!==null?e.sibling:null);sa(t);break;case 19:var o=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(qs(e,t,n,!1),s=(n&t.childLanes)!==0),o){if(s)return Xh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(mt,mt.current),s)break;return null;case 22:return t.lanes=0,Hh(e,t,n,t.pendingProps);case 24:ta(t,xt,e.memoizedState.cache)}return Tl(e,t,n)}function Ph(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!_0(e,n)&&(t.flags&128)===0)return bt=!1,Pg(e,t,n);bt=(e.flags&131072)!==0}else bt=!1,Le&&(t.flags&1048576)!==0&&Ef(t,Xi,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")bu(e)?(s=Pa(e,s),t.tag=1,t=Vh(null,t,e,s,n)):(t.tag=0,t=o0(null,t,e,s,n));else{if(e!=null){var o=e.$$typeof;if(o===U){t.tag=11,t=Bh(null,t,e,s,n);break e}else if(o===q){t.tag=14,t=Uh(null,t,e,s,n);break e}}throw t=ve(e)||e,Error(r(306,t,""))}}return t;case 0:return o0(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,o=Pa(s,t.pendingProps),Vh(e,t,s,o,n);case 3:e:{if(Nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;o=u.element,ku(e,t),nc(t,s,null,n);var p=t.memoizedState;if(s=p.cache,ta(t,xt,s),s!==u.cache&&Au(t,[xt],n,!0),tc(),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=Qh(e,t,s,n);break e}else if(s!==o){o=Bn(Error(r(424)),t),Pi(o),t=Qh(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(nt=Fn(e.firstChild),Bt=t,Le=!0,Jl=null,Hn=!0,n=Hf(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qa(),s===o){t=Tl(e,t,n);break e}$t(e,t,s,n)}t=t.child}return t;case 26:return Br(e,t),e===null?(n=im(t.type,null,t.pendingProps,null))?t.memoizedState=n:Le||(n=t.type,e=t.pendingProps,s=eo(be.current).createElement(n),s[kt]=t,s[nn]=e,Ht(s,n,e),Rt(s),t.stateNode=s):t.memoizedState=im(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ll(t),e===null&&Le&&(s=t.stateNode=lm(t.type,t.pendingProps,be.current),Bt=t,Hn=!0,o=nt,ma(t.type)?(P0=o,nt=Fn(s.firstChild)):nt=o),$t(e,t,t.pendingProps.children,n),Br(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((o=s=nt)&&(s=wv(s,t.type,t.pendingProps,Hn),s!==null?(t.stateNode=s,Bt=t,nt=Fn(s.firstChild),Hn=!1,o=!0):o=!1),o||ea(t)),ll(t),o=t.type,u=t.pendingProps,p=e!==null?e.memoizedProps:null,s=u.children,V0(o,u)?s=null:p!==null&&V0(o,p)&&(t.flags|=32),t.memoizedState!==null&&(o=Gu(e,t,Hg,null,null,n),jc._currentValue=o),Br(e,t),$t(e,t,s,n),t.child;case 6:return e===null&&Le&&((e=n=nt)&&(n=Cv(n,t.pendingProps,Hn),n!==null?(t.stateNode=n,Bt=t,nt=null,e=!0):e=!1),e||ea(t)),null;case 13:return Yh(e,t,n);case 4:return Nt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ia(t,null,s,n):$t(e,t,s,n),t.child;case 11:return Bh(e,t,t.type,t.pendingProps,n);case 7:return $t(e,t,t.pendingProps,n),t.child;case 8:return $t(e,t,t.pendingProps.children,n),t.child;case 12:return $t(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,ta(t,t.type,s.value),$t(e,t,s.children,n),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Ga(t),o=Ut(o),s=s(o),t.flags|=1,$t(e,t,s,n),t.child;case 14:return Uh(e,t,t.type,t.pendingProps,n);case 15:return $h(e,t,t.type,t.pendingProps,n);case 19:return Xh(e,t,n);case 31:return Xg(e,t,n);case 22:return Hh(e,t,n,t.pendingProps);case 24:return Ga(t),s=Ut(xt),e===null?(o=zu(),o===null&&(o=Pe,u=Ou(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:s,cache:o},Lu(t),ta(t,xt,o)):((e.lanes&n)!==0&&(ku(e,t),nc(t,null,null,n),tc()),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),ta(t,xt,s)):(s=u.cache,ta(t,xt,s),s!==o.cache&&Au(t,[xt],n,!0))),$t(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Rl(e){e.flags|=4}function g0(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(j1())e.flags|=8192;else throw Ya=jr,Du}else e.flags&=-16777217}function Zh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dm(t))if(j1())e.flags|=8192;else throw Ya=jr,Du}function $r(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?T2():536870912,e.lanes|=t,Js|=t)}function rc(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 lt(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 Zg(e,t,n){var s=t.pendingProps;switch(wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),wl(xt),tt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hs(t)?Rl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Eu())),lt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Rl(t),u!==null?(lt(t),Zh(t,u)):(lt(t),g0(t,o,null,s,n))):u?u!==e.memoizedState?(Rl(t),lt(t),Zh(t,u)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Rl(t),lt(t),g0(t,o,e,s,n)),null;case 27:if(gl(t),n=be.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Rl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}e=ne.current,Hs(t)?Rf(t):(e=lm(o,s,n),t.stateNode=e,Rl(t))}return lt(t),null;case 5:if(gl(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Rl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}if(u=ne.current,Hs(t))Rf(t);else{var p=eo(be.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[kt]=t,u[nn]=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(Ht(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&&Rl(t)}}return lt(t),g0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Rl(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=be.current,Hs(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,o=Bt,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||Y1(e.nodeValue,n)),e||ea(t,!0)}else e=eo(e).createTextNode(s),e[kt]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=Hs(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[kt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=Eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Sn(t),t):(Sn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return lt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Hs(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[kt]=t}else qa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),o=!1}else o=Eu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Sn(t),t):(Sn(t),null)}return Sn(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),$r(t,t.updateQueue),lt(t),null);case 4:return tt(),e===null&&$0(t.stateNode.containerInfo),lt(t),null;case 10:return wl(t.type),lt(t),null;case 19:if(V(mt),s=t.memoizedState,s===null)return lt(t),null;if(o=(t.flags&128)!==0,u=s.rendering,u===null)if(o)rc(s,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Cr(e),u!==null){for(t.flags|=128,rc(s,!1),e=u.updateQueue,t.updateQueue=e,$r(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Nf(n,e),n=n.sibling;return Z(mt,mt.current&1|2),Le&&Sl(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&gn()>Vr&&(t.flags|=128,o=!0,rc(s,!1),t.lanes=4194304)}else{if(!o)if(e=Cr(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,$r(t,e),rc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!Le)return lt(t),null}else 2*gn()-s.renderingStartTime>Vr&&n!==536870912&&(t.flags|=128,o=!0,rc(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=gn(),e.sibling=null,n=mt.current,Z(mt,o?n&1|2:n&1),Le&&Sl(t,s.treeForkCount),e):(lt(t),null);case 22:case 23:return Sn(t),Hu(),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&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&$r(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(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),wl(xt),lt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Kg(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wl(xt),tt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gl(t),null;case 31:if(t.memoizedState!==null){if(Sn(t),t.alternate===null)throw Error(r(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));qa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(mt),null;case 4:return tt(),null;case 10:return wl(t.type),null;case 22:case 23:return Sn(t),Hu(),e!==null&&V(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return wl(xt),null;case 25:return null;default:return null}}function Kh(e,t){switch(wu(t),t.tag){case 3:wl(xt),tt();break;case 26:case 27:case 5:gl(t);break;case 4:tt();break;case 31:t.memoizedState!==null&&Sn(t);break;case 13:Sn(t);break;case 19:V(mt);break;case 10:wl(t.type);break;case 22:case 23:Sn(t),Hu(),e!==null&&V(Va);break;case 24:wl(xt)}}function oc(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(b){Ge(t,t.return,b)}}function ca(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,b=p.destroy;if(b!==void 0){p.destroy=void 0,o=t;var w=n,L=b;try{L()}catch(F){Ge(o,w,F)}}}s=s.next}while(s!==u)}}catch(F){Ge(t,t.return,F)}}function Wh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ff(t,n)}catch(s){Ge(e,e.return,s)}}}function Jh(e,t,n){n.props=Pa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Ge(e,t,s)}}function uc(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){Ge(e,t,o)}}function il(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(o){Ge(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){Ge(e,t,o)}else n.current=null}function e1(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){Ge(e,e.return,o)}}function v0(e,t,n){try{var s=e.stateNode;xv(s,e.type,n,t),s[nn]=t}catch(o){Ge(e,e.return,o)}}function t1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ma(e.type)||e.tag===4}function x0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t1(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&&ma(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 y0(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=yl));else if(s!==4&&(s===27&&ma(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(y0(e,t,n),e=e.sibling;e!==null;)y0(e,t,n),e=e.sibling}function Hr(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&&ma(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Hr(e,t,n),e=e.sibling;e!==null;)Hr(e,t,n),e=e.sibling}function n1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Ht(t,s,n),t[kt]=e,t[nn]=n}catch(u){Ge(e,e.return,u)}}var Al=!1,jt=!1,b0=!1,l1=typeof WeakSet=="function"?WeakSet:Set,At=null;function Wg(e,t){if(e=e.containerInfo,F0=co,e=pf(e),mu(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,b=-1,w=-1,L=0,F=0,Q=e,k=null;t:for(;;){for(var B;Q!==n||o!==0&&Q.nodeType!==3||(b=p+o),Q!==u||s!==0&&Q.nodeType!==3||(w=p+s),Q.nodeType===3&&(p+=Q.nodeValue.length),(B=Q.firstChild)!==null;)k=Q,Q=B;for(;;){if(Q===e)break t;if(k===n&&++L===o&&(b=p),k===u&&++F===s&&(w=p),(B=Q.nextSibling)!==null)break;Q=k,k=Q.parentNode}Q=B}n=b===-1||w===-1?null:{start:b,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(G0={focusedElem:e,selectionRange:n},co=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,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 le=Pa(n.type,o);e=s.getSnapshotBeforeUpdate(le,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(he){Ge(n,n.return,he)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Y0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Y0(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,At=e;break}At=t.return}}function a1(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Ml(e,n),s&4&&oc(5,n);break;case 1:if(Ml(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Ge(n,n.return,p)}else{var o=Pa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Ge(n,n.return,p)}}s&64&&Wh(n),s&512&&uc(n,n.return);break;case 3:if(Ml(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{Ff(e,t)}catch(p){Ge(n,n.return,p)}}break;case 27:t===null&&s&4&&n1(n);case 26:case 5:Ml(e,n),t===null&&s&4&&e1(n),s&512&&uc(n,n.return);break;case 12:Ml(e,n);break;case 31:Ml(e,n),s&4&&c1(e,n);break;case 13:Ml(e,n),s&4&&r1(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=cv.bind(null,n),Ev(e,n))));break;case 22:if(s=n.memoizedState!==null||Al,!s){t=t!==null&&t.memoizedState!==null||jt,o=Al;var u=jt;Al=s,(jt=t)&&!u?zl(e,n,(n.subtreeFlags&8772)!==0):Ml(e,n),Al=o,jt=u}break;case 30:break;default:Ml(e,n)}}function s1(e){var t=e.alternate;t!==null&&(e.alternate=null,s1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ko(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 at=null,an=!1;function Ol(e,t,n){for(n=n.child;n!==null;)i1(e,t,n),n=n.sibling}function i1(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 26:jt||il(n,t),Ol(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:jt||il(n,t);var s=at,o=an;ma(n.type)&&(at=n.stateNode,an=!1),Ol(e,t,n),xc(n.stateNode),at=s,an=o;break;case 5:jt||il(n,t);case 6:if(s=at,o=an,at=null,Ol(e,t,n),at=s,an=o,at!==null)if(an)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(n.stateNode)}catch(u){Ge(n,t,u)}else try{at.removeChild(n.stateNode)}catch(u){Ge(n,t,u)}break;case 18:at!==null&&(an?(e=at,W1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ci(e)):W1(at,n.stateNode));break;case 4:s=at,o=an,at=n.stateNode.containerInfo,an=!0,Ol(e,t,n),at=s,an=o;break;case 0:case 11:case 14:case 15:ca(2,n,t),jt||ca(4,n,t),Ol(e,t,n);break;case 1:jt||(il(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Jh(n,t,s)),Ol(e,t,n);break;case 21:Ol(e,t,n);break;case 22:jt=(s=jt)||n.memoizedState!==null,Ol(e,t,n),jt=s;break;default:Ol(e,t,n)}}function c1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ci(e)}catch(n){Ge(t,t.return,n)}}}function r1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ci(e)}catch(n){Ge(t,t.return,n)}}function Jg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l1),t;default:throw Error(r(435,e.tag))}}function qr(e,t){var n=Jg(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var o=rv.bind(null,e,s);s.then(o,o)}})}function sn(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,b=p;e:for(;b!==null;){switch(b.tag){case 27:if(ma(b.type)){at=b.stateNode,an=!1;break e}break;case 5:at=b.stateNode,an=!1;break e;case 3:case 4:at=b.stateNode.containerInfo,an=!0;break e}b=b.return}if(at===null)throw Error(r(160));i1(u,p,o),at=null,an=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)o1(t,e),t=t.sibling}var Pn=null;function o1(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sn(t,e),cn(e),s&4&&(ca(3,e,e.return),oc(3,e),ca(5,e,e.return));break;case 1:sn(t,e),cn(e),s&512&&(jt||n===null||il(n,n.return)),s&64&&Al&&(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=Pn;if(sn(t,e),cn(e),s&512&&(jt||n===null||il(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[Bi]||u[kt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),Ht(u,s,n),u[kt]=e,Rt(u),s=u;break e;case"link":var p=om("link","href",o).get(s+(n.href||""));if(p){for(var b=0;b<p.length;b++)if(u=p[b],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(b,1);break t}}u=o.createElement(s),Ht(u,s,n),o.head.appendChild(u);break;case"meta":if(p=om("meta","content",o).get(s+(n.content||""))){for(b=0;b<p.length;b++)if(u=p[b],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(b,1);break t}}u=o.createElement(s),Ht(u,s,n),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[kt]=e,Rt(u),s=u}e.stateNode=s}else um(o,e.type,e.stateNode);else e.stateNode=rm(o,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?um(o,e.type,e.stateNode):rm(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&v0(e,e.memoizedProps,n.memoizedProps)}break;case 27:sn(t,e),cn(e),s&512&&(jt||n===null||il(n,n.return)),n!==null&&s&4&&v0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sn(t,e),cn(e),s&512&&(jt||n===null||il(n,n.return)),e.flags&32){o=e.stateNode;try{As(o,"")}catch(le){Ge(e,e.return,le)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,v0(e,o,n!==null?n.memoizedProps:o)),s&1024&&(b0=!0);break;case 6:if(sn(t,e),cn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(le){Ge(e,e.return,le)}}break;case 3:if(lo=null,o=Pn,Pn=to(t.containerInfo),sn(t,e),Pn=o,cn(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ci(t.containerInfo)}catch(le){Ge(e,e.return,le)}b0&&(b0=!1,u1(e));break;case 4:s=Pn,Pn=to(e.stateNode.containerInfo),sn(t,e),cn(e),Pn=s;break;case 12:sn(t,e),cn(e);break;case 31:sn(t,e),cn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,qr(e,s)));break;case 13:sn(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Gr=gn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,qr(e,s)));break;case 22:o=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,L=Al,F=jt;if(Al=L||o,jt=F||w,sn(t,e),jt=F,Al=L,cn(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||w||Al||jt||Za(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{b=w.stateNode;var Q=w.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(le){Ge(w,w.return,le)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(le){Ge(w,w.return,le)}}}else if(t.tag===18){if(n===null){w=t;try{var B=w.stateNode;o?J1(B,!0):J1(w.stateNode,!1)}catch(le){Ge(w,w.return,le)}}}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,qr(e,n))));break;case 19:sn(t,e),cn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,qr(e,s)));break;case 30:break;case 21:break;default:sn(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(t1(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=x0(e);Hr(e,u,o);break;case 5:var p=n.stateNode;n.flags&32&&(As(p,""),n.flags&=-33);var b=x0(e);Hr(e,b,p);break;case 3:case 4:var w=n.stateNode.containerInfo,L=x0(e);y0(e,L,w);break;default:throw Error(r(161))}}catch(F){Ge(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function u1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;u1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)a1(e,t.alternate,t),t=t.sibling}function Za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ca(4,t,t.return),Za(t);break;case 1:il(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Jh(t,t.return,n),Za(t);break;case 27:xc(t.stateNode);case 26:case 5:il(t,t.return),Za(t);break;case 22:t.memoizedState===null&&Za(t);break;case 30:Za(t);break;default:Za(t)}e=e.sibling}}function zl(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:zl(o,u,n),oc(4,u);break;case 1:if(zl(o,u,n),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){Ge(s,s.return,L)}if(s=u,o=s.updateQueue,o!==null){var b=s.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)qf(w[o],b)}catch(L){Ge(s,s.return,L)}}n&&p&64&&Wh(u),uc(u,u.return);break;case 27:n1(u);case 26:case 5:zl(o,u,n),n&&s===null&&p&4&&e1(u),uc(u,u.return);break;case 12:zl(o,u,n);break;case 31:zl(o,u,n),n&&p&4&&c1(o,u);break;case 13:zl(o,u,n),n&&p&4&&r1(o,u);break;case 22:u.memoizedState===null&&zl(o,u,n),uc(u,u.return);break;case 30:break;default:zl(o,u,n)}t=t.sibling}}function j0(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&&Zi(n))}function S0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Zi(e))}function Zn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)d1(e,t,n,s),t=t.sibling}function d1(e,t,n,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Zn(e,t,n,s),o&2048&&oc(9,t);break;case 1:Zn(e,t,n,s);break;case 3:Zn(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&&Zi(e)));break;case 12:if(o&2048){Zn(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,p=u.id,b=u.onPostCommit;typeof b=="function"&&b(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ge(t,t.return,w)}}else Zn(e,t,n,s);break;case 31:Zn(e,t,n,s);break;case 13:Zn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,p=t.alternate,t.memoizedState!==null?u._visibility&2?Zn(e,t,n,s):dc(e,t):u._visibility&2?Zn(e,t,n,s):(u._visibility|=2,Zs(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&j0(p,t);break;case 24:Zn(e,t,n,s),o&2048&&S0(t.alternate,t);break;default:Zn(e,t,n,s)}}function Zs(e,t,n,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,p=t,b=n,w=s,L=p.flags;switch(p.tag){case 0:case 11:case 15:Zs(u,p,b,w,o),oc(8,p);break;case 23:break;case 22:var F=p.stateNode;p.memoizedState!==null?F._visibility&2?Zs(u,p,b,w,o):dc(u,p):(F._visibility|=2,Zs(u,p,b,w,o)),o&&L&2048&&j0(p.alternate,p);break;case 24:Zs(u,p,b,w,o),o&&L&2048&&S0(p.alternate,p);break;default:Zs(u,p,b,w,o)}t=t.sibling}}function dc(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:dc(n,s),o&2048&&j0(s.alternate,s);break;case 24:dc(n,s),o&2048&&S0(s.alternate,s);break;default:dc(n,s)}t=t.sibling}}var fc=8192;function Ks(e,t,n){if(e.subtreeFlags&fc)for(e=e.child;e!==null;)f1(e,t,n),e=e.sibling}function f1(e,t,n){switch(e.tag){case 26:Ks(e,t,n),e.flags&fc&&e.memoizedState!==null&&$v(n,Pn,e.memoizedState,e.memoizedProps);break;case 5:Ks(e,t,n);break;case 3:case 4:var s=Pn;Pn=to(e.stateNode.containerInfo),Ks(e,t,n),Pn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=fc,fc=16777216,Ks(e,t,n),fc=s):Ks(e,t,n));break;default:Ks(e,t,n)}}function h1(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 hc(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];At=s,p1(s,e)}h1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)m1(e),e=e.sibling}function m1(e){switch(e.tag){case 0:case 11:case 15:hc(e),e.flags&2048&&ca(9,e,e.return);break;case 3:hc(e);break;case 12:hc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fr(e)):hc(e);break;default:hc(e)}}function Fr(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];At=s,p1(s,e)}h1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ca(8,t,t.return),Fr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fr(t));break;default:Fr(t)}e=e.sibling}}function p1(e,t){for(;At!==null;){var n=At;switch(n.tag){case 0:case 11:case 15:ca(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:Zi(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,At=s;else e:for(n=e;At!==null;){s=At;var o=s.sibling,u=s.return;if(s1(s),s===n){At=null;break e}if(o!==null){o.return=u,At=o;break e}At=u}}}var ev={getCacheForType:function(e){var t=Ut(xt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(xt).controller.signal}},tv=typeof WeakMap=="function"?WeakMap:Map,He=0,Pe=null,Re=null,Me=0,Fe=0,Nn=null,ra=!1,Ws=!1,N0=!1,Dl=0,dt=0,oa=0,Ka=0,w0=0,wn=0,Js=0,mc=null,rn=null,C0=!1,Gr=0,_1=0,Vr=1/0,Qr=null,ua=null,wt=0,da=null,ei=null,Ll=0,E0=0,T0=null,g1=null,pc=0,R0=null;function Cn(){return(He&2)!==0&&Me!==0?Me&-Me:$.T!==null?L0():M2()}function v1(){if(wn===0)if((Me&536870912)===0||Le){var e=Jc;Jc<<=1,(Jc&3932160)===0&&(Jc=262144),wn=e}else wn=536870912;return e=jn.current,e!==null&&(e.flags|=32),wn}function on(e,t,n){(e===Pe&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(ti(e,0),fa(e,Me,wn,!1)),ki(e,n),((He&2)===0||e!==Pe)&&(e===Pe&&((He&2)===0&&(Ka|=n),dt===4&&fa(e,Me,wn,!1)),cl(e))}function x1(e,t,n){if((He&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Li(e,t),o=s?av(e,t):O0(e,t,!0),u=s;do{if(o===0){Ws&&!s&&fa(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!nv(n)){o=O0(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 b=e;o=mc;var w=b.current.memoizedState.isDehydrated;if(w&&(ti(b,p).flags|=256),p=O0(b,p,!1),p!==2){if(N0&&!w){b.errorRecoveryDisabledLanes|=u,Ka|=u,o=4;break e}u=rn,rn=o,u!==null&&(rn===null?rn=u:rn.push.apply(rn,u))}o=p}if(u=!1,o!==2)continue}}if(o===1){ti(e,0),fa(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:fa(s,t,wn,!ra);break e;case 2:rn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Gr+300-gn(),10<o)){if(fa(s,t,wn,!ra),tr(s,0,!0)!==0)break e;Ll=t,s.timeoutHandle=Z1(y1.bind(null,s,n,rn,Qr,C0,t,wn,Ka,Js,ra,u,"Throttled",-0,0),o);break e}y1(s,n,rn,Qr,C0,t,wn,Ka,Js,ra,u,null,-0,0)}}break}while(!0);cl(e)}function y1(e,t,n,s,o,u,p,b,w,L,F,Q,k,B){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:yl},f1(t,u,Q);var le=(u&62914560)===u?Gr-gn():(u&4194048)===u?_1-gn():0;if(le=Hv(Q,le),le!==null){Ll=u,e.cancelPendingCommit=le(T1.bind(null,e,t,u,n,s,o,p,b,w,F,Q,null,k,B)),fa(e,u,p,!L);return}}T1(e,t,u,n,s,o,p,b,w)}function nv(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(!yn(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 fa(e,t,n,s){t&=~w0,t&=~Ka,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var u=31-xn(o),p=1<<u;s[u]=-1,o&=~p}n!==0&&R2(e,n,t)}function Yr(){return(He&6)===0?(_c(0),!1):!0}function A0(){if(Re!==null){if(Fe===0)var e=Re.return;else e=Re,Nl=Fa=null,Yu(e),Qs=null,Wi=0,e=Re;for(;e!==null;)Kh(e.alternate,e),e=e.return;Re=null}}function ti(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,jv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ll=0,A0(),Pe=e,Re=n=jl(e.current,null),Me=t,Fe=0,Nn=null,ra=!1,Ws=Li(e,t),N0=!1,Js=wn=w0=Ka=oa=dt=0,rn=mc=null,C0=!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-xn(s),u=1<<o;t|=e[o],s&=~u}return Dl=t,hr(),n}function b1(e,t){ye=null,$.H=ic,t===Vs||t===br?(t=Bf(),Fe=3):t===Du?(t=Bf(),Fe=4):Fe=t===r0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nn=t,Re===null&&(dt=1,Lr(e,Bn(t,e.current)))}function j1(){var e=jn.current;return e===null?!0:(Me&4194048)===Me?qn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===qn:!1}function S1(){var e=$.H;return $.H=ic,e===null?ic:e}function N1(){var e=$.A;return $.A=ev,e}function Ir(){dt=4,ra||(Me&4194048)!==Me&&jn.current!==null||(Ws=!0),(oa&134217727)===0&&(Ka&134217727)===0||Pe===null||fa(Pe,Me,wn,!1)}function O0(e,t,n){var s=He;He|=2;var o=S1(),u=N1();(Pe!==e||Me!==t)&&(Qr=null,ti(e,t)),t=!1;var p=dt;e:do try{if(Fe!==0&&Re!==null){var b=Re,w=Nn;switch(Fe){case 8:A0(),p=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(t=!0);var L=Fe;if(Fe=0,Nn=null,ni(e,b,w,L),n&&Ws){p=0;break e}break;default:L=Fe,Fe=0,Nn=null,ni(e,b,w,L)}}lv(),p=dt;break}catch(F){b1(e,F)}while(!0);return t&&e.shellSuspendCounter++,Nl=Fa=null,He=s,$.H=o,$.A=u,Re===null&&(Pe=null,Me=0,hr()),p}function lv(){for(;Re!==null;)w1(Re)}function av(e,t){var n=He;He|=2;var s=S1(),o=N1();Pe!==e||Me!==t?(Qr=null,Vr=gn()+500,ti(e,t)):Ws=Li(e,t);e:do try{if(Fe!==0&&Re!==null){t=Re;var u=Nn;t:switch(Fe){case 1:Fe=0,Nn=null,ni(e,t,u,1);break;case 2:case 9:if(Lf(u)){Fe=0,Nn=null,C1(t);break}t=function(){Fe!==2&&Fe!==9||Pe!==e||(Fe=7),cl(e)},u.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Lf(u)?(Fe=0,Nn=null,C1(t)):(Fe=0,Nn=null,ni(e,t,u,7));break;case 5:var p=null;switch(Re.tag){case 26:p=Re.memoizedState;case 5:case 27:var b=Re;if(p?dm(p):b.stateNode.complete){Fe=0,Nn=null;var w=b.sibling;if(w!==null)Re=w;else{var L=b.return;L!==null?(Re=L,Xr(L)):Re=null}break t}}Fe=0,Nn=null,ni(e,t,u,5);break;case 6:Fe=0,Nn=null,ni(e,t,u,6);break;case 8:A0(),dt=6;break e;default:throw Error(r(462))}}sv();break}catch(F){b1(e,F)}while(!0);return Nl=Fa=null,$.H=s,$.A=o,He=n,Re!==null?0:(Pe=null,Me=0,hr(),dt)}function sv(){for(;Re!==null&&!T_();)w1(Re)}function w1(e){var t=Ph(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,t===null?Xr(e):Re=t}function C1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gh(n,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=Gh(n,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Yu(t);default:Kh(n,t),t=Re=Nf(t,Dl),t=Ph(n,t,Dl)}e.memoizedProps=e.pendingProps,t===null?Xr(e):Re=t}function ni(e,t,n,s){Nl=Fa=null,Yu(t),Qs=null,Wi=0;var o=t.return;try{if(Ig(e,o,t,n,Me)){dt=1,Lr(e,Bn(n,e.current)),Re=null;return}}catch(u){if(o!==null)throw Re=o,u;dt=1,Lr(e,Bn(n,e.current)),Re=null;return}t.flags&32768?(Le||s===1?e=!0:Ws||(Me&536870912)!==0?e=!1:(ra=e=!0,(s===2||s===9||s===3||s===6)&&(s=jn.current,s!==null&&s.tag===13&&(s.flags|=16384))),E1(t,e)):Xr(t)}function Xr(e){var t=e;do{if((t.flags&32768)!==0){E1(t,ra);return}e=t.return;var n=Zg(t.alternate,t,Dl);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);dt===0&&(dt=5)}function E1(e,t){do{var n=Kg(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);dt=6,Re=null}function T1(e,t,n,s,o,u,p,b,w){e.cancelPendingCommit=null;do Pr();while(wt!==0);if((He&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=xu,U_(e,n,u,p,b,w),e===Pe&&(Re=Pe=null,Me=0),ei=t,da=e,Ll=n,E0=u,T0=o,g1=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ov(Kc,function(){return z1(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=$.T,$.T=null,o=I.p,I.p=2,p=He,He|=4;try{Wg(e,t,n)}finally{He=p,I.p=o,$.T=s}}wt=1,R1(),A1(),O1()}}function R1(){if(wt===1){wt=0;var e=da,t=ei,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=$.T,$.T=null;var s=I.p;I.p=2;var o=He;He|=4;try{o1(t,e);var u=G0,p=pf(e.containerInfo),b=u.focusedElem,w=u.selectionRange;if(p!==b&&b&&b.ownerDocument&&mf(b.ownerDocument.documentElement,b)){if(w!==null&&mu(b)){var L=w.start,F=w.end;if(F===void 0&&(F=L),"selectionStart"in b)b.selectionStart=L,b.selectionEnd=Math.min(F,b.value.length);else{var Q=b.ownerDocument||document,k=Q&&Q.defaultView||window;if(k.getSelection){var B=k.getSelection(),le=b.textContent.length,he=Math.min(w.start,le),Ie=w.end===void 0?he:Math.min(w.end,le);!B.extend&&he>Ie&&(p=Ie,Ie=he,he=p);var O=hf(b,he),A=hf(b,Ie);if(O&&A&&(B.rangeCount!==1||B.anchorNode!==O.node||B.anchorOffset!==O.offset||B.focusNode!==A.node||B.focusOffset!==A.offset)){var D=Q.createRange();D.setStart(O.node,O.offset),B.removeAllRanges(),he>Ie?(B.addRange(D),B.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),B.addRange(D))}}}}for(Q=[],B=b;B=B.parentNode;)B.nodeType===1&&Q.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var G=Q[b];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}co=!!F0,G0=F0=null}finally{He=o,I.p=s,$.T=n}}e.current=t,wt=2}}function A1(){if(wt===2){wt=0;var e=da,t=ei,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=$.T,$.T=null;var s=I.p;I.p=2;var o=He;He|=4;try{a1(e,t.alternate,t)}finally{He=o,I.p=s,$.T=n}}wt=3}}function O1(){if(wt===4||wt===3){wt=0,R_();var e=da,t=ei,n=Ll,s=g1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,ei=da=null,M1(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ua=null),Po(n),t=t.stateNode,vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(Di,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=$.T,o=I.p,I.p=2,$.T=null;try{for(var u=e.onRecoverableError,p=0;p<s.length;p++){var b=s[p];u(b.value,{componentStack:b.stack})}}finally{$.T=t,I.p=o}}(Ll&3)!==0&&Pr(),cl(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===R0?pc++:(pc=0,R0=e):pc=0,_c(0)}}function M1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Zi(t)))}function Pr(){return R1(),A1(),O1(),z1()}function z1(){if(wt!==5)return!1;var e=da,t=E0;E0=0;var n=Po(Ll),s=$.T,o=I.p;try{I.p=32>n?32:n,$.T=null,n=T0,T0=null;var u=da,p=Ll;if(wt=0,ei=da=null,Ll=0,(He&6)!==0)throw Error(r(331));var b=He;if(He|=4,m1(u.current),d1(u,u.current,p,n),He=b,_c(0,!1),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(Di,u)}catch{}return!0}finally{I.p=o,$.T=s,M1(e,t)}}function D1(e,t,n){t=Bn(n,t),t=c0(e.stateNode,t,2),e=aa(e,t,2),e!==null&&(ki(e,2),cl(e))}function Ge(e,t,n){if(e.tag===3)D1(e,e,n);else for(;t!==null;){if(t.tag===3){D1(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(ua===null||!ua.has(s))){e=Bn(n,e),n=Lh(2),s=aa(t,n,2),s!==null&&(kh(n,s,t,e),ki(s,2),cl(s));break}}t=t.return}}function M0(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new tv;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)||(N0=!0,o.add(n),e=iv.bind(null,e,t,n),t.then(e,e))}function iv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pe===e&&(Me&n)===n&&(dt===4||dt===3&&(Me&62914560)===Me&&300>gn()-Gr?(He&2)===0&&ti(e,0):w0|=n,Js===Me&&(Js=0)),cl(e)}function L1(e,t){t===0&&(t=T2()),e=$a(e,t),e!==null&&(ki(e,t),cl(e))}function cv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),L1(e,n)}function rv(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),L1(e,n)}function ov(e,t){return Ss(e,t)}var Zr=null,li=null,z0=!1,Kr=!1,D0=!1,ha=0;function cl(e){e!==li&&e.next===null&&(li===null?Zr=li=e:li=li.next=e),Kr=!0,z0||(z0=!0,dv())}function _c(e,t){if(!D0&&Kr){D0=!0;do for(var n=!1,s=Zr;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var p=s.suspendedLanes,b=s.pingedLanes;u=(1<<31-xn(42|e)+1)-1,u&=o&~(p&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,$1(s,u))}else u=Me,u=tr(s,s===Pe?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Li(s,u)||(n=!0,$1(s,u));s=s.next}while(n);D0=!1}}function uv(){k1()}function k1(){Kr=z0=!1;var e=0;ha!==0&&bv()&&(e=ha);for(var t=gn(),n=null,s=Zr;s!==null;){var o=s.next,u=B1(s,t);u===0?(s.next=null,n===null?Zr=o:n.next=o,o===null&&(li=n)):(n=s,(e!==0||(u&3)!==0)&&(Kr=!0)),s=o}wt!==0&&wt!==5||_c(e),ha!==0&&(ha=0)}function B1(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var p=31-xn(u),b=1<<p,w=o[p];w===-1?((b&n)===0||(b&s)!==0)&&(o[p]=B_(b,t)):w<=t&&(e.expiredLanes|=b),u&=~b}if(t=Pe,n=Me,n=tr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Yo(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Li(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Yo(s),Po(n)){case 2:case 8:n=C2;break;case 32:n=Kc;break;case 268435456:n=E2;break;default:n=Kc}return s=U1.bind(null,e),n=Ss(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Yo(s),e.callbackPriority=2,e.callbackNode=null,2}function U1(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Pr()&&e.callbackNode!==n)return null;var s=Me;return s=tr(e,e===Pe?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(x1(e,s,t),B1(e,gn()),e.callbackNode!=null&&e.callbackNode===n?U1.bind(null,e):null)}function $1(e,t){if(Pr())return null;x1(e,t,!0)}function dv(){Sv(function(){(He&6)!==0?Ss(w2,uv):k1()})}function L0(){if(ha===0){var e=Fs;e===0&&(e=Wc,Wc<<=1,(Wc&261888)===0&&(Wc=256)),ha=e}return ha}function H1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:sr(""+e)}function q1(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 fv(e,t,n,s,o){if(t==="submit"&&n&&n.stateNode===o){var u=H1((o[nn]||null).action),p=s.submitter;p&&(t=(t=p[nn]||null)?H1(t.formAction):p.getAttribute("formAction"),t!==null&&(u=t,p=null));var b=new or("action","action",null,s,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ha!==0){var w=p?q1(o,p):new FormData(o);t0(n,{pending:!0,data:w,method:o.method,action:u},null,w)}}else typeof u=="function"&&(b.preventDefault(),w=p?q1(o,p):new FormData(o),t0(n,{pending:!0,data:w,method:o.method,action:u},u,w))},currentTarget:o}]})}}for(var k0=0;k0<vu.length;k0++){var B0=vu[k0],hv=B0.toLowerCase(),mv=B0[0].toUpperCase()+B0.slice(1);Xn(hv,"on"+mv)}Xn(vf,"onAnimationEnd"),Xn(xf,"onAnimationIteration"),Xn(yf,"onAnimationStart"),Xn("dblclick","onDoubleClick"),Xn("focusin","onFocus"),Xn("focusout","onBlur"),Xn(Ag,"onTransitionRun"),Xn(Og,"onTransitionStart"),Xn(Mg,"onTransitionCancel"),Xn(bf,"onTransitionEnd"),Ts("onMouseEnter",["mouseout","mouseover"]),Ts("onMouseLeave",["mouseout","mouseover"]),Ts("onPointerEnter",["pointerout","pointerover"]),Ts("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gc="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(" "),pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gc));function F1(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 b=s[p],w=b.instance,L=b.currentTarget;if(b=b.listener,w!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=L;try{u(o)}catch(F){fr(F)}o.currentTarget=null,u=w}else for(p=0;p<s.length;p++){if(b=s[p],w=b.instance,L=b.currentTarget,b=b.listener,w!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=L;try{u(o)}catch(F){fr(F)}o.currentTarget=null,u=w}}}}function Ae(e,t){var n=t[Zo];n===void 0&&(n=t[Zo]=new Set);var s=e+"__bubble";n.has(s)||(G1(t,e,2,!1),n.add(s))}function U0(e,t,n){var s=0;t&&(s|=4),G1(n,e,s,t)}var Wr="_reactListening"+Math.random().toString(36).slice(2);function $0(e){if(!e[Wr]){e[Wr]=!0,L2.forEach(function(n){n!=="selectionchange"&&(pv.has(n)||U0(n,!1,e),U0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wr]||(t[Wr]=!0,U0("selectionchange",!1,t))}}function G1(e,t,n,s){switch(vm(t)){case 2:var o=Gv;break;case 8:o=Vv;break;default:o=ed}n=o.bind(null,t,n,e),o=void 0,!su||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 H0(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 b=s.stateNode.containerInfo;if(b===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(;b!==null;){if(p=ws(b),p===null)return;if(w=p.tag,w===5||w===6||w===26||w===27){s=u=p;continue e}b=b.parentNode}}s=s.return}I2(function(){var L=u,F=lu(n),Q=[];e:{var k=jf.get(e);if(k!==void 0){var B=or,le=e;switch(e){case"keypress":if(cr(n)===0)break e;case"keydown":case"keyup":B=rg;break;case"focusin":le="focus",B=ou;break;case"focusout":le="blur",B=ou;break;case"beforeblur":case"afterblur":B=ou;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":B=Z2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Z_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=dg;break;case vf:case xf:case yf:B=J_;break;case bf:B=hg;break;case"scroll":case"scrollend":B=X_;break;case"wheel":B=pg;break;case"copy":case"cut":case"paste":B=tg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=W2;break;case"toggle":case"beforetoggle":B=gg}var he=(t&4)!==0,Ie=!he&&(e==="scroll"||e==="scrollend"),O=he?k!==null?k+"Capture":null:k;he=[];for(var A=L,D;A!==null;){var G=A;if(D=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||D===null||O===null||(G=$i(A,O),G!=null&&he.push(vc(A,G,D))),Ie)break;A=A.return}0<he.length&&(k=new B(k,le,null,n,F),Q.push({event:k,listeners:he}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",k&&n!==nu&&(le=n.relatedTarget||n.fromElement)&&(ws(le)||le[Ns]))break e;if((B||k)&&(k=F.window===F?F:(k=F.ownerDocument)?k.defaultView||k.parentWindow:window,B?(le=n.relatedTarget||n.toElement,B=L,le=le?ws(le):null,le!==null&&(Ie=f(le),he=le.tag,le!==Ie||he!==5&&he!==27&&he!==6)&&(le=null)):(B=null,le=L),B!==le)){if(he=Z2,G="onMouseLeave",O="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(he=W2,G="onPointerLeave",O="onPointerEnter",A="pointer"),Ie=B==null?k:Ui(B),D=le==null?k:Ui(le),k=new he(G,A+"leave",B,n,F),k.target=Ie,k.relatedTarget=D,G=null,ws(F)===L&&(he=new he(O,A+"enter",le,n,F),he.target=D,he.relatedTarget=Ie,G=he),Ie=G,B&&le)t:{for(he=_v,O=B,A=le,D=0,G=O;G;G=he(G))D++;G=0;for(var re=A;re;re=he(re))G++;for(;0<D-G;)O=he(O),D--;for(;0<G-D;)A=he(A),G--;for(;D--;){if(O===A||A!==null&&O===A.alternate){he=O;break t}O=he(O),A=he(A)}he=null}else he=null;B!==null&&V1(Q,k,B,he,!1),le!==null&&Ie!==null&&V1(Q,Ie,le,he,!0)}}e:{if(k=L?Ui(L):window,B=k.nodeName&&k.nodeName.toLowerCase(),B==="select"||B==="input"&&k.type==="file")var Ue=cf;else if(af(k))if(rf)Ue=Eg;else{Ue=wg;var ae=Ng}else B=k.nodeName,!B||B.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?L&&tu(L.elementType)&&(Ue=cf):Ue=Cg;if(Ue&&(Ue=Ue(e,L))){sf(Q,Ue,n,F);break e}ae&&ae(e,k,L),e==="focusout"&&L&&k.type==="number"&&L.memoizedProps.value!=null&&eu(k,"number",k.value)}switch(ae=L?Ui(L):window,e){case"focusin":(af(ae)||ae.contentEditable==="true")&&(Ds=ae,pu=L,Ii=null);break;case"focusout":Ii=pu=Ds=null;break;case"mousedown":_u=!0;break;case"contextmenu":case"mouseup":case"dragend":_u=!1,_f(Q,n,F);break;case"selectionchange":if(Rg)break;case"keydown":case"keyup":_f(Q,n,F)}var je;if(du)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 zs?nf(e,n)&&(ze="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ze="onCompositionStart");ze&&(J2&&n.locale!=="ko"&&(zs||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&zs&&(je=X2()):(Kl=F,iu="value"in Kl?Kl.value:Kl.textContent,zs=!0)),ae=Jr(L,ze),0<ae.length&&(ze=new K2(ze,e,null,n,F),Q.push({event:ze,listeners:ae}),je?ze.data=je:(je=lf(n),je!==null&&(ze.data=je)))),(je=xg?yg(e,n):bg(e,n))&&(ze=Jr(L,"onBeforeInput"),0<ze.length&&(ae=new K2("onBeforeInput","beforeinput",null,n,F),Q.push({event:ae,listeners:ze}),ae.data=je)),fv(Q,e,L,n,F)}F1(Q,t)})}function vc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jr(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=$i(e,n),o!=null&&s.unshift(vc(e,o,u)),o=$i(e,t),o!=null&&s.push(vc(e,o,u))),e.tag===3)return s;e=e.return}return[]}function _v(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function V1(e,t,n,s,o){for(var u=t._reactName,p=[];n!==null&&n!==s;){var b=n,w=b.alternate,L=b.stateNode;if(b=b.tag,w!==null&&w===s)break;b!==5&&b!==26&&b!==27||L===null||(w=L,o?(L=$i(n,u),L!=null&&p.unshift(vc(n,L,w))):o||(L=$i(n,u),L!=null&&p.push(vc(n,L,w)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var gv=/\r\n?/g,vv=/\u0000|\uFFFD/g;function Q1(e){return(typeof e=="string"?e:""+e).replace(gv,`
|
||
`).replace(vv,"")}function Y1(e,t){return t=Q1(t),Q1(e)===t}function Ye(e,t,n,s,o,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||As(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&As(e,""+s);break;case"className":lr(e,"class",s);break;case"tabIndex":lr(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":lr(e,n,s);break;case"style":Q2(e,s,u);break;case"data":if(t!=="object"){lr(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=sr(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&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=sr(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=yl);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=sr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),nr(e,"popover",s);break;case"xlinkActuate":xl(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":xl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":xl(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":xl(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":xl(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":xl(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":xl(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":xl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":xl(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":nr(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=Y_.get(n)||n,nr(e,n,s))}}function q0(e,t,n,s,o,u){switch(n){case"style":Q2(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"?As(e,s):(typeof s=="number"||typeof s=="bigint")&&As(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=yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!k2.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[nn]||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,""):nr(e,n,s)}}}function Ht(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 b=u=p=o=null,w=null,L=null;for(s in n)if(n.hasOwnProperty(s)){var F=n[s];if(F!=null)switch(s){case"name":o=F;break;case"type":p=F;break;case"checked":w=F;break;case"defaultChecked":L=F;break;case"value":u=F;break;case"defaultValue":b=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,t));break;default:Ye(e,t,s,F,n,null)}}q2(e,u,b,w,L,p,o,!1);return;case"select":Ae("invalid",e),s=p=u=null;for(o in n)if(n.hasOwnProperty(o)&&(b=n[o],b!=null))switch(o){case"value":u=b;break;case"defaultValue":p=b;break;case"multiple":s=b;default:Ye(e,t,o,b,n,null)}t=u,n=p,e.multiple=!!s,t!=null?Rs(e,!!s,t,!1):n!=null&&Rs(e,!!s,n,!0);return;case"textarea":Ae("invalid",e),u=o=s=null;for(p in n)if(n.hasOwnProperty(p)&&(b=n[p],b!=null))switch(p){case"value":s=b;break;case"defaultValue":o=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:Ye(e,t,p,b,n,null)}G2(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<gc.length;s++)Ae(gc[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(tu(t)){for(F in n)n.hasOwnProperty(F)&&(s=n[F],s!==void 0&&q0(e,t,F,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&Ye(e,t,b,s,n,null))}function xv(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,b=null,w=null,L=null,F=null;for(B in n){var Q=n[B];if(n.hasOwnProperty(B)&&Q!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":w=Q;default:s.hasOwnProperty(B)||Ye(e,t,B,null,s,Q)}}for(var k in s){var B=s[k];if(Q=n[k],s.hasOwnProperty(k)&&(B!=null||Q!=null))switch(k){case"type":u=B;break;case"name":o=B;break;case"checked":L=B;break;case"defaultChecked":F=B;break;case"value":p=B;break;case"defaultValue":b=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==Q&&Ye(e,t,k,B,s,Q)}}Jo(e,p,b,w,L,F,u,o);return;case"select":B=p=b=k=null;for(u in n)if(w=n[u],n.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":B=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":k=u;break;case"defaultValue":b=u;break;case"multiple":p=u;default:u!==w&&Ye(e,t,o,u,s,w)}t=b,n=p,s=B,k!=null?Rs(e,!!n,k,!1):!!s!=!!n&&(t!=null?Rs(e,!!n,t,!0):Rs(e,!!n,n?[]:"",!1));return;case"textarea":B=k=null;for(b in n)if(o=n[b],n.hasOwnProperty(b)&&o!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ye(e,t,b,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":k=o;break;case"defaultValue":B=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)}F2(e,k,B);return;case"option":for(var le in n)if(k=n[le],n.hasOwnProperty(le)&&k!=null&&!s.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ye(e,t,le,null,s,k)}for(w in s)if(k=s[w],B=n[w],s.hasOwnProperty(w)&&k!==B&&(k!=null||B!=null))switch(w){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ye(e,t,w,k,s,B)}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 he in n)k=n[he],n.hasOwnProperty(he)&&k!=null&&!s.hasOwnProperty(he)&&Ye(e,t,he,null,s,k);for(L in s)if(k=s[L],B=n[L],s.hasOwnProperty(L)&&k!==B&&(k!=null||B!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:Ye(e,t,L,k,s,B)}return;default:if(tu(t)){for(var Ie in n)k=n[Ie],n.hasOwnProperty(Ie)&&k!==void 0&&!s.hasOwnProperty(Ie)&&q0(e,t,Ie,void 0,s,k);for(F in s)k=s[F],B=n[F],!s.hasOwnProperty(F)||k===B||k===void 0&&B===void 0||q0(e,t,F,k,s,B);return}}for(var O in n)k=n[O],n.hasOwnProperty(O)&&k!=null&&!s.hasOwnProperty(O)&&Ye(e,t,O,null,s,k);for(Q in s)k=s[Q],B=n[Q],!s.hasOwnProperty(Q)||k===B||k==null&&B==null||Ye(e,t,Q,k,s,B)}function I1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yv(){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,b=o.duration;if(u&&b&&I1(p)){for(p=0,b=o.responseEnd,s+=1;s<n.length;s++){var w=n[s],L=w.startTime;if(L>b)break;var F=w.transferSize,Q=w.initiatorType;F&&I1(Q)&&(w=w.responseEnd,p+=F*(w<b?1:(b-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 F0=null,G0=null;function eo(e){return e.nodeType===9?e:e.ownerDocument}function X1(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 P1(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 V0(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 Q0=null;function bv(){var e=window.event;return e&&e.type==="popstate"?e===Q0?!1:(Q0=e,!0):(Q0=null,!1)}var Z1=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,K1=typeof Promise=="function"?Promise:void 0,Sv=typeof queueMicrotask=="function"?queueMicrotask:typeof K1<"u"?function(e){return K1.resolve(null).then(e).catch(Nv)}:Z1;function Nv(e){setTimeout(function(){throw e})}function ma(e){return e==="head"}function W1(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),ci(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")xc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xc(n);for(var u=n.firstChild;u;){var p=u.nextSibling,b=u.nodeName;u[Bi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=p}}else n==="body"&&xc(e.ownerDocument.body);n=o}while(n);ci(t)}function J1(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 Y0(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":Y0(n),Ko(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function wv(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[Bi])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=Fn(e.nextSibling),e===null)break}return null}function Cv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Fn(e.nextSibling),e===null))return null;return e}function em(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Fn(e.nextSibling),e===null))return null;return e}function I0(e){return e.data==="$?"||e.data==="$~"}function X0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ev(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 Fn(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 P0=null;function tm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Fn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function nm(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 lm(e,t,n){switch(t=eo(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 xc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ko(e)}var Gn=new Map,am=new Set;function to(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kl=I.d;I.d={f:Tv,r:Rv,D:Av,C:Ov,L:Mv,m:zv,X:Lv,S:Dv,M:kv};function Tv(){var e=kl.f(),t=Yr();return e||t}function Rv(e){var t=Cs(e);t!==null&&t.tag===5&&t.type==="form"?bh(t):kl.r(e)}var ai=typeof document>"u"?null:document;function sm(e,t,n){var s=ai;if(s&&typeof t=="string"&&t){var o=Ln(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),am.has(o)||(am.add(o),e={rel:e,crossOrigin:n,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),Ht(t,"link",e),Rt(t),s.head.appendChild(t)))}}function Av(e){kl.D(e),sm("dns-prefetch",e,null)}function Ov(e,t){kl.C(e,t),sm("preconnect",e,t)}function Mv(e,t,n){kl.L(e,t,n);var s=ai;if(s&&e&&t){var o='link[rel="preload"][as="'+Ln(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Ln(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Ln(n.imageSizes)+'"]')):o+='[href="'+Ln(e)+'"]';var u=o;switch(t){case"style":u=si(e);break;case"script":u=ii(e)}Gn.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gn.set(u,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(yc(u))||t==="script"&&s.querySelector(bc(u))||(t=s.createElement("link"),Ht(t,"link",e),Rt(t),s.head.appendChild(t)))}}function zv(e,t){kl.m(e,t);var n=ai;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Ln(s)+'"][href="'+Ln(e)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ii(e)}if(!Gn.has(u)&&(e=x({rel:"modulepreload",href:e},t),Gn.set(u,e),n.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bc(u)))return}s=n.createElement("link"),Ht(s,"link",e),Rt(s),n.head.appendChild(s)}}}function Dv(e,t,n){kl.S(e,t,n);var s=ai;if(s&&e){var o=Es(s).hoistableStyles,u=si(e);t=t||"default";var p=o.get(u);if(!p){var b={loading:0,preload:null};if(p=s.querySelector(yc(u)))b.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gn.get(u))&&Z0(e,n);var w=p=s.createElement("link");Rt(w),Ht(w,"link",e),w._p=new Promise(function(L,F){w.onload=L,w.onerror=F}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,no(p,t,s)}p={type:"stylesheet",instance:p,count:1,state:b},o.set(u,p)}}}function Lv(e,t){kl.X(e,t);var n=ai;if(n&&e){var s=Es(n).hoistableScripts,o=ii(e),u=s.get(o);u||(u=n.querySelector(bc(o)),u||(e=x({src:e,async:!0},t),(t=Gn.get(o))&&K0(e,t),u=n.createElement("script"),Rt(u),Ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function kv(e,t){kl.M(e,t);var n=ai;if(n&&e){var s=Es(n).hoistableScripts,o=ii(e),u=s.get(o);u||(u=n.querySelector(bc(o)),u||(e=x({src:e,async:!0,type:"module"},t),(t=Gn.get(o))&&K0(e,t),u=n.createElement("script"),Rt(u),Ht(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function im(e,t,n,s){var o=(o=be.current)?to(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=si(n.href),n=Es(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=si(n.href);var u=Es(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(yc(e)))&&!u._p&&(p.instance=u,p.state.loading=5),Gn.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},Gn.set(e,n),u||Bv(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=ii(n),n=Es(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 si(e){return'href="'+Ln(e)+'"'}function yc(e){return'link[rel="stylesheet"]['+e+"]"}function cm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Bv(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}),Ht(t,"link",n),Rt(t),e.head.appendChild(t))}function ii(e){return'[src="'+Ln(e)+'"]'}function bc(e){return"script[async]"+e}function rm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Ln(n.href)+'"]');if(s)return t.instance=s,Rt(s),s;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Rt(s),Ht(s,"style",o),no(s,n.precedence,e),t.instance=s;case"stylesheet":o=si(n.href);var u=e.querySelector(yc(o));if(u)return t.state.loading|=4,t.instance=u,Rt(u),u;s=cm(n),(o=Gn.get(o))&&Z0(s,o),u=(e.ownerDocument||e).createElement("link"),Rt(u);var p=u;return p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),Ht(u,"link",s),t.state.loading|=4,no(u,n.precedence,e),t.instance=u;case"script":return u=ii(n.src),(o=e.querySelector(bc(u)))?(t.instance=o,Rt(o),o):(s=n,(o=Gn.get(u))&&(s=x({},n),K0(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),Rt(o),Ht(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,no(s,n.precedence,e));return t.instance}function no(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 b=s[p];if(b.dataset.precedence===t)u=b;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 Z0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function K0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lo=null;function om(e,t,n){if(lo===null){var s=new Map,o=lo=new Map;o.set(n,s)}else o=lo,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[Bi]||u[kt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var p=u.getAttribute(t)||"";p=e+p;var b=s.get(p);b?b.push(u):s.set(p,[u])}}return s}function um(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Uv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $v(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=si(s.href),u=t.querySelector(yc(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ao.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Rt(u);return}u=t.ownerDocument||t,s=cm(s),(o=Gn.get(o))&&Z0(s,o),u=u.createElement("link"),Rt(u);var p=u;p._p=new Promise(function(b,w){p.onload=b,p.onerror=w}),Ht(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=ao.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var W0=0;function Hv(e,t){return e.stylesheets&&e.count===0&&io(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&io(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&W0===0&&(W0=62500*yv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&io(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>W0?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function ao(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var so=null;function io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,so=new Map,t.forEach(qv,e),so=null,ao.call(e))}function qv(e,t){if(!(t.state.loading&4)){var n=so.get(e);if(n)var s=n.get(null);else{n=new Map,so.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=ao.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 jc={$$typeof:M,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Fv(e,t,n,s,o,u,p,b,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=Io(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Io(0),this.hiddenUpdates=Io(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 fm(e,t,n,s,o,u,p,b,w,L,F,Q){return e=new Fv(e,t,n,p,w,L,F,Q,b),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=Ou(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},Lu(u),e}function hm(e){return e?(e=Bs,e):Bs}function mm(e,t,n,s,o,u){o=hm(o),s.context===null?s.context=o:s.pendingContext=o,s=la(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=aa(e,s,t),n!==null&&(on(n,e,t),ec(n,e,t))}function pm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function J0(e,t){pm(e,t),(e=e.alternate)&&pm(e,t)}function _m(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&on(t,e,67108864),J0(e,67108864)}}function gm(e){if(e.tag===13||e.tag===31){var t=Cn();t=Xo(t);var n=$a(e,t);n!==null&&on(n,e,t),J0(e,t)}}var co=!0;function Gv(e,t,n,s){var o=$.T;$.T=null;var u=I.p;try{I.p=2,ed(e,t,n,s)}finally{I.p=u,$.T=o}}function Vv(e,t,n,s){var o=$.T;$.T=null;var u=I.p;try{I.p=8,ed(e,t,n,s)}finally{I.p=u,$.T=o}}function ed(e,t,n,s){if(co){var o=td(s);if(o===null)H0(e,t,s,ro,n),xm(e,s);else if(Yv(o,e,t,n,s))s.stopPropagation();else if(xm(e,s),t&4&&-1<Qv.indexOf(e)){for(;o!==null;){var u=Cs(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var p=Da(u.pendingLanes);if(p!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;p;){var w=1<<31-xn(p);b.entanglements[1]|=w,p&=~w}cl(u),(He&6)===0&&(Vr=gn()+500,_c(0))}}break;case 31:case 13:b=$a(u,2),b!==null&&on(b,u,2),Yr(),J0(u,2)}if(u=td(s),u===null&&H0(e,t,s,ro,n),u===o)break;o=u}o!==null&&s.stopPropagation()}else H0(e,t,s,null,n)}}function td(e){return e=lu(e),nd(e)}var ro=null;function nd(e){if(ro=null,e=ws(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=v(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 ro=e,null}function vm(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(A_()){case w2:return 2;case C2:return 8;case Kc:case O_:return 32;case E2:return 268435456;default:return 32}default:return 32}}var ld=!1,pa=null,_a=null,ga=null,Sc=new Map,Nc=new Map,va=[],Qv="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 xm(e,t){switch(e){case"focusin":case"focusout":pa=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":ga=null;break;case"pointerover":case"pointerout":Sc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nc.delete(t.pointerId)}}function wc(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=Cs(t),t!==null&&_m(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Yv(e,t,n,s,o){switch(t){case"focusin":return pa=wc(pa,e,t,n,s,o),!0;case"dragenter":return _a=wc(_a,e,t,n,s,o),!0;case"mouseover":return ga=wc(ga,e,t,n,s,o),!0;case"pointerover":var u=o.pointerId;return Sc.set(u,wc(Sc.get(u)||null,e,t,n,s,o)),!0;case"gotpointercapture":return u=o.pointerId,Nc.set(u,wc(Nc.get(u)||null,e,t,n,s,o)),!0}return!1}function ym(e){var t=ws(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,z2(e.priority,function(){gm(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,z2(e.priority,function(){gm(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 oo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=td(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);nu=s,n.target.dispatchEvent(s),nu=null}else return t=Cs(n),t!==null&&_m(t),e.blockedOn=n,!1;t.shift()}return!0}function bm(e,t,n){oo(e)&&n.delete(t)}function Iv(){ld=!1,pa!==null&&oo(pa)&&(pa=null),_a!==null&&oo(_a)&&(_a=null),ga!==null&&oo(ga)&&(ga=null),Sc.forEach(bm),Nc.forEach(bm)}function uo(e,t){e.blockedOn===t&&(e.blockedOn=null,ld||(ld=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Iv)))}var fo=null;function jm(e){fo!==e&&(fo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){fo===e&&(fo=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(nd(s||n)===null)continue;break}var u=Cs(n);u!==null&&(e.splice(t,3),t-=3,t0(u,{pending:!0,data:o,method:n.method,action:s},s,o))}}))}function ci(e){function t(w){return uo(w,e)}pa!==null&&uo(pa,e),_a!==null&&uo(_a,e),ga!==null&&uo(ga,e),Sc.forEach(t),Nc.forEach(t);for(var n=0;n<va.length;n++){var s=va[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<va.length&&(n=va[0],n.blockedOn===null);)ym(n),n.blockedOn===null&&va.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[nn]||null;if(typeof u=="function")p||jm(n);else if(p){var b=null;if(u&&u.hasAttribute("formAction")){if(o=u,p=u[nn]||null)b=p.formAction;else if(nd(o)!==null)continue}else b=p.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),jm(n)}}}function Sm(){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 ad(e){this._internalRoot=e}ho.prototype.render=ad.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=Cn();mm(n,s,e,t,null,null)},ho.prototype.unmount=ad.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mm(e.current,2,null,e,null,null),Yr(),t[Ns]=null}};function ho(e){this._internalRoot=e}ho.prototype.unstable_scheduleHydration=function(e){if(e){var t=M2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<va.length&&t!==0&&t<va[n].priority;n++);va.splice(n,0,e),n===0&&ym(e)}};var Nm=i.version;if(Nm!=="19.2.5")throw Error(r(527,Nm,"19.2.5"));I.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?g(e):null,e=e===null?null:e.stateNode,e};var Xv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mo.isDisabled&&mo.supportsFiber)try{Di=mo.inject(Xv),vn=mo}catch{}}return Ec.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",o=Oh,u=Mh,p=zh;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=fm(e,1,!1,null,null,n,s,null,o,u,p,Sm),e[Ns]=t.current,$0(e),new ad(t)},Ec.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,o="",u=Oh,p=Mh,b=zh,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&&(b=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=fm(e,1,!0,t,n??null,s,o,w,u,p,b,Sm),t.context=hm(null),n=t.current,s=Cn(),s=Xo(s),o=la(s),o.callback=null,aa(n,o,s),n=s,t.current.lanes=n,ki(t,n),cl(t),e[Ns]=t.current,$0(e),new ho(t)},Ec.version="19.2.5",Ec}var Lm;function ax(){if(Lm)return rd.exports;Lm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),rd.exports=lx(),rd.exports}var sx=ax();/**
|
||
* 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 km="popstate";function Bm(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function ix(a={}){function i(r,d){var m;let f=(m=d.state)==null?void 0:m.masked,{pathname:_,search:v,hash:h}=f||r.location;return zd("",{pathname:_,search:v,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 c(r,d){return typeof d=="string"?d:Uc(d)}return rx(i,c,null,a)}function it(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function el(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function cx(){return Math.random().toString(36).substring(2,10)}function Um(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function zd(a,i,c=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ei(i):i,state:c,key:i&&i.key||r||cx(),unstable_mask:d}}function Uc({pathname:a="/",search:i="",hash:c=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function Ei(a){let i={};if(a){let c=a.indexOf("#");c>=0&&(i.hash=a.substring(c),a=a.substring(0,c));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function rx(a,i,c,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,_=d.history,v="POP",h=null,m=g();m==null&&(m=0,_.replaceState({..._.state,idx:m},""));function g(){return(_.state||{idx:null}).idx}function x(){v="POP";let E=g(),z=E==null?null:E-m;m=E,h&&h({action:v,location:T.location,delta:z})}function y(E,z){v="PUSH";let H=Bm(E)?E:zd(T.location,E,z);m=g()+1;let M=Um(H,m),U=T.createHref(H.unstable_mask||H);try{_.pushState(M,"",U)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;d.location.assign(U)}f&&h&&h({action:v,location:T.location,delta:1})}function N(E,z){v="REPLACE";let H=Bm(E)?E:zd(T.location,E,z);m=g();let M=Um(H,m),U=T.createHref(H.unstable_mask||H);_.replaceState(M,"",U),f&&h&&h({action:v,location:T.location,delta:0})}function S(E){return ox(E)}let T={get action(){return v},get location(){return a(d,_)},listen(E){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(km,x),h=E,()=>{d.removeEventListener(km,x),h=null}},createHref(E){return i(d,E)},createURL:S,encodeLocation(E){let z=S(E);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:y,replace:N,go(E){return _.go(E)}};return T}function ox(a,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),it(c,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:Uc(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function l3(a,i,c="/"){return ux(a,i,c,!1)}function ux(a,i,c,r){let d=typeof i=="string"?Ei(i):i,f=Ql(d.pathname||"/",c);if(f==null)return null;let _=a3(a);dx(_);let v=null;for(let h=0;v==null&&h<_.length;++h){let m=jx(f);v=yx(_[h],m,r)}return v}function a3(a,i=[],c=[],r="",d=!1){let f=(_,v,h=d,m)=>{let g={relativePath:m===void 0?_.path||"":m,caseSensitive:_.caseSensitive===!0,childrenIndex:v,route:_};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(r)&&h)return;it(g.relativePath.startsWith(r),`Absolute route path "${g.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(r.length)}let x=Jn([r,g.relativePath]),y=c.concat(g);_.children&&_.children.length>0&&(it(_.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),a3(_.children,i,y,x,h)),!(_.path==null&&!_.index)&&i.push({path:x,score:vx(x,_.index),routesMeta:y})};return a.forEach((_,v)=>{var h;if(_.path===""||!((h=_.path)!=null&&h.includes("?")))f(_,v);else for(let m of s3(_.path))f(_,v,!0,m)}),i}function s3(a){let i=a.split("/");if(i.length===0)return[];let[c,...r]=i,d=c.endsWith("?"),f=c.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let _=s3(r.join("/")),v=[];return v.push(..._.map(h=>h===""?f:[f,h].join("/"))),d&&v.push(..._),v.map(h=>a.startsWith("/")&&h===""?"/":h)}function dx(a){a.sort((i,c)=>i.score!==c.score?c.score-i.score:xx(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var fx=/^:[\w-]+$/,hx=3,mx=2,px=1,_x=10,gx=-2,$m=a=>a==="*";function vx(a,i){let c=a.split("/"),r=c.length;return c.some($m)&&(r+=gx),i&&(r+=mx),c.filter(d=>!$m(d)).reduce((d,f)=>d+(fx.test(f)?hx:f===""?px:_x),r)}function xx(a,i){return a.length===i.length&&a.slice(0,-1).every((r,d)=>r===i[d])?a[a.length-1]-i[i.length-1]:0}function yx(a,i,c=!1){let{routesMeta:r}=a,d={},f="/",_=[];for(let v=0;v<r.length;++v){let h=r[v],m=v===r.length-1,g=f==="/"?i:i.slice(f.length)||"/",x=Co({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),y=h.route;if(!x&&m&&c&&!r[r.length-1].route.index&&(x=Co({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!x)return null;Object.assign(d,x.params),_.push({params:d,pathname:Jn([f,x.pathname]),pathnameBase:Cx(Jn([f,x.pathnameBase])),route:y}),x.pathnameBase!=="/"&&(f=Jn([f,x.pathnameBase]))}return _}function Co(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[c,r]=bx(a.path,a.caseSensitive,a.end),d=i.match(c);if(!d)return null;let f=d[0],_=f.replace(/(.)\/+$/,"$1"),v=d.slice(1);return{params:r.reduce((m,{paramName:g,isOptional:x},y)=>{if(g==="*"){let S=v[y]||"";_=f.slice(0,f.length-S.length).replace(/(.)\/+$/,"$1")}const N=v[y];return x&&!N?m[g]=void 0:m[g]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:_,pattern:a}}function bx(a,i=!1,c=!0){el(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,(_,v,h,m,g)=>{if(r.push({paramName:v,isOptional:h!=null}),h){let x=g.charAt(m+_.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),r]}function jx(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Ql(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=a.charAt(c);return r&&r!=="/"?null:a.slice(c)||"/"}var Sx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Nx(a,i="/"){let{pathname:c,search:r="",hash:d=""}=typeof a=="string"?Ei(a):a,f;return c?(c=i3(c),c.startsWith("/")?f=Hm(c.substring(1),"/"):f=Hm(c,i)):f=i,{pathname:f,search:Ex(r),hash:Tx(d)}}function Hm(a,i){let c=Eo(i).split("/");return a.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function fd(a,i,c,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wx(a){return a.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function c2(a){let i=wx(a);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function ko(a,i,c,r=!1){let d;typeof a=="string"?d=Ei(a):(d={...a},it(!d.pathname||!d.pathname.includes("?"),fd("?","pathname","search",d)),it(!d.pathname||!d.pathname.includes("#"),fd("#","pathname","hash",d)),it(!d.search||!d.search.includes("#"),fd("#","search","hash",d)));let f=a===""||d.pathname==="",_=f?"/":d.pathname,v;if(_==null)v=c;else{let x=i.length-1;if(!r&&_.startsWith("..")){let y=_.split("/");for(;y[0]==="..";)y.shift(),x-=1;d.pathname=y.join("/")}v=x>=0?i[x]:"/"}let h=Nx(d,v),m=_&&_!=="/"&&_.endsWith("/"),g=(f||_===".")&&c.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var i3=a=>a.replace(/\/\/+/g,"/"),Jn=a=>i3(a.join("/")),Eo=a=>a.replace(/\/+$/,""),Cx=a=>Eo(a).replace(/^\/*/,"/"),Ex=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,Tx=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Rx=class{constructor(a,i,c,r=!1){this.status=a,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Ax(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function Ox(a){let i=a.map(c=>c.route.path).filter(Boolean);return Jn(i)||"/"}var c3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function r3(a,i){let c=a;if(typeof c!="string"||!Sx.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,d=!1;if(c3)try{let f=new URL(window.location.href),_=c.startsWith("//")?new URL(f.protocol+c):new URL(c),v=Ql(_.pathname,i);_.origin===f.origin&&v!=null?c=v+_.search+_.hash:d=!0}catch{el(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var o3=["POST","PUT","PATCH","DELETE"];new Set(o3);var Mx=["GET",...o3];new Set(Mx);var Ti=j.createContext(null);Ti.displayName="DataRouter";var Bo=j.createContext(null);Bo.displayName="DataRouterState";var u3=j.createContext(!1);function zx(){return j.useContext(u3)}var d3=j.createContext({isTransitioning:!1});d3.displayName="ViewTransition";var Dx=j.createContext(new Map);Dx.displayName="Fetchers";var Lx=j.createContext(null);Lx.displayName="Await";var Mn=j.createContext(null);Mn.displayName="Navigation";var Ic=j.createContext(null);Ic.displayName="Location";var In=j.createContext({outlet:null,matches:[],isDataRoute:!1});In.displayName="Route";var r2=j.createContext(null);r2.displayName="RouteError";var f3="REACT_ROUTER_ERROR",kx="REDIRECT",Bx="ROUTE_ERROR_RESPONSE";function Ux(a){if(a.startsWith(`${f3}:${kx}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function $x(a){if(a.startsWith(`${f3}:${Bx}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Rx(i.status,i.statusText,i.data)}catch{}}function Hx(a,{relative:i}={}){it(Ri(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=j.useContext(Mn),{hash:d,pathname:f,search:_}=Xc(a,{relative:i}),v=f;return c!=="/"&&(v=f==="/"?c:Jn([c,f])),r.createHref({pathname:v,search:_,hash:d})}function Ri(){return j.useContext(Ic)!=null}function zn(){return it(Ri(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Ic).location}var h3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function m3(a){j.useContext(Mn).static||j.useLayoutEffect(a)}function en(){let{isDataRoute:a}=j.useContext(In);return a?ty():qx()}function qx(){it(Ri(),"useNavigate() may be used only in the context of a <Router> component.");let a=j.useContext(Ti),{basename:i,navigator:c}=j.useContext(Mn),{matches:r}=j.useContext(In),{pathname:d}=zn(),f=JSON.stringify(c2(r)),_=j.useRef(!1);return m3(()=>{_.current=!0}),j.useCallback((h,m={})=>{if(el(_.current,h3),!_.current)return;if(typeof h=="number"){c.go(h);return}let g=ko(h,JSON.parse(f),d,m.relative==="path");a==null&&i!=="/"&&(g.pathname=g.pathname==="/"?i:Jn([i,g.pathname])),(m.replace?c.replace:c.push)(g,m.state,m)},[i,c,f,d,a])}var Fx=j.createContext(null);function Gx(a){let i=j.useContext(In).outlet;return j.useMemo(()=>i&&j.createElement(Fx.Provider,{value:a},i),[i,a])}function p3(){let{matches:a}=j.useContext(In),i=a[a.length-1];return(i==null?void 0:i.params)??{}}function Xc(a,{relative:i}={}){let{matches:c}=j.useContext(In),{pathname:r}=zn(),d=JSON.stringify(c2(c));return j.useMemo(()=>ko(a,JSON.parse(d),r,i==="path"),[a,d,r,i])}function Vx(a,i){return _3(a,i)}function _3(a,i,c){var E;it(Ri(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(Mn),{matches:d}=j.useContext(In),f=d[d.length-1],_=f?f.params:{},v=f?f.pathname:"/",h=f?f.pathnameBase:"/",m=f&&f.route;{let z=m&&m.path||"";v3(v,!m||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (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 g=zn(),x;if(i){let z=typeof i=="string"?Ei(i):i;it(h==="/"||((E=z.pathname)==null?void 0:E.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.`),x=z}else x=g;let y=x.pathname||"/",N=y;if(h!=="/"){let z=h.replace(/^\//,"").split("/");N="/"+y.replace(/^\//,"").split("/").slice(z.length).join("/")}let S=l3(a,{pathname:N});el(m||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),el(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 "${x.pathname}${x.search}${x.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 T=Px(S&&S.map(z=>Object.assign({},z,{params:Object.assign({},_,z.params),pathname:Jn([h,r.encodeLocation?r.encodeLocation(z.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?h:Jn([h,r.encodeLocation?r.encodeLocation(z.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),d,c);return i&&T?j.createElement(Ic.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},T):T}function Qx(){let a=ey(),i=Ax(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),c=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},_=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"}},i),c?j.createElement("pre",{style:d},c):null,_)}var Yx=j.createElement(Qx,null),g3=class extends j.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const c=$x(a.digest);c&&(a=c)}let i=a!==void 0?j.createElement(In.Provider,{value:this.props.routeContext},j.createElement(r2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?j.createElement(Ix,{error:a},i):i}};g3.contextType=u3;var hd=new WeakMap;function Ix({children:a,error:i}){let{basename:c}=j.useContext(Mn);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Ux(i.digest);if(r){let d=hd.get(i);if(d)throw d;let f=r3(r.location,c);if(c3&&!hd.get(i))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 hd.set(i,_),_}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function Xx({routeContext:a,match:i,children:c}){let r=j.useContext(Ti);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement(In.Provider,{value:a},c)}function Px(a,i=[],c){let r=c==null?void 0:c.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,f=r==null?void 0:r.errors;if(f!=null){let g=d.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);it(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,g+1))}let _=!1,v=-1;if(c&&r){_=r.renderFallback;for(let g=0;g<d.length;g++){let x=d[g];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(v=g),x.route.id){let{loaderData:y,errors:N}=r,S=x.route.loader&&!y.hasOwnProperty(x.route.id)&&(!N||N[x.route.id]===void 0);if(x.route.lazy||S){c.isStatic&&(_=!0),v>=0?d=d.slice(0,v+1):d=[d[0]];break}}}}let h=c==null?void 0:c.onError,m=r&&h?(g,x)=>{var y,N;h(g,{location:r.location,params:((N=(y=r.matches)==null?void 0:y[0])==null?void 0:N.params)??{},unstable_pattern:Ox(r.matches),errorInfo:x})}:void 0;return d.reduceRight((g,x,y)=>{let N,S=!1,T=null,E=null;r&&(N=f&&x.route.id?f[x.route.id]:void 0,T=x.route.errorElement||Yx,_&&(v<0&&y===0?(v3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):v===y&&(S=!0,E=x.route.hydrateFallbackElement||null)));let z=i.concat(d.slice(0,y+1)),H=()=>{let M;return N?M=T:S?M=E:x.route.Component?M=j.createElement(x.route.Component,null):x.route.element?M=x.route.element:M=g,j.createElement(Xx,{match:x,routeContext:{outlet:g,matches:z,isDataRoute:r!=null},children:M})};return r&&(x.route.ErrorBoundary||x.route.errorElement||y===0)?j.createElement(g3,{location:r.location,revalidation:r.revalidation,component:T,error:N,children:H(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:m}):H()},null)}function o2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zx(a){let i=j.useContext(Ti);return it(i,o2(a)),i}function Kx(a){let i=j.useContext(Bo);return it(i,o2(a)),i}function Wx(a){let i=j.useContext(In);return it(i,o2(a)),i}function u2(a){let i=Wx(a),c=i.matches[i.matches.length-1];return it(c.route.id,`${a} can only be used on routes that contain a unique "id"`),c.route.id}function Jx(){return u2("useRouteId")}function ey(){var r;let a=j.useContext(r2),i=Kx("useRouteError"),c=u2("useRouteError");return a!==void 0?a:(r=i.errors)==null?void 0:r[c]}function ty(){let{router:a}=Zx("useNavigate"),i=u2("useNavigate"),c=j.useRef(!1);return m3(()=>{c.current=!0}),j.useCallback(async(d,f={})=>{el(c.current,h3),c.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:i,...f}))},[a,i])}var qm={};function v3(a,i,c){!i&&!qm[a]&&(qm[a]=!0,el(!1,c))}j.memo(ny);function ny({routes:a,future:i,state:c,isStatic:r,onError:d}){return _3(a,void 0,{state:c,isStatic:r,onError:d})}function Uo({to:a,replace:i,state:c,relative:r}){it(Ri(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(Mn);el(!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(In),{pathname:_}=zn(),v=en(),h=ko(a,c2(f),_,r==="path"),m=JSON.stringify(h);return j.useEffect(()=>{v(JSON.parse(m),{replace:i,state:c,relative:r})},[v,m,r,i,c]),null}function d2(a){return Gx(a.context)}function Ze(a){it(!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 ly({basename:a="/",children:i=null,location:c,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:_}){it(!Ri(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=a.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:v,navigator:d,static:f,unstable_useTransitions:_,future:{}}),[v,d,f,_]);typeof c=="string"&&(c=Ei(c));let{pathname:m="/",search:g="",hash:x="",state:y=null,key:N="default",unstable_mask:S}=c,T=j.useMemo(()=>{let E=Ql(m,v);return E==null?null:{location:{pathname:E,search:g,hash:x,state:y,key:N,unstable_mask:S},navigationType:r}},[v,m,g,x,y,N,r,S]);return el(T!=null,`<Router basename="${v}"> is not able to match the URL "${m}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:j.createElement(Mn.Provider,{value:h},j.createElement(Ic.Provider,{children:i,value:T}))}function ay({children:a,location:i}){return Vx(Dd(a),i)}function Dd(a,i=[]){let c=[];return j.Children.forEach(a,(r,d)=>{if(!j.isValidElement(r))return;let f=[...i,d];if(r.type===j.Fragment){c.push.apply(c,Dd(r.props.children,f));return}it(r.type===Ze,`[${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>`),it(!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=Dd(r.props.children,f)),c.push(_)}),c}var So="get",No="application/x-www-form-urlencoded";function $o(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function sy(a){return $o(a)&&a.tagName.toLowerCase()==="button"}function iy(a){return $o(a)&&a.tagName.toLowerCase()==="form"}function cy(a){return $o(a)&&a.tagName.toLowerCase()==="input"}function ry(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function oy(a,i){return a.button===0&&(!i||i==="_self")&&!ry(a)}var _o=null;function uy(){if(_o===null)try{new FormData(document.createElement("form"),0),_o=!1}catch{_o=!0}return _o}var dy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function md(a){return a!=null&&!dy.has(a)?(el(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${No}"`),null):a}function fy(a,i){let c,r,d,f,_;if(iy(a)){let v=a.getAttribute("action");r=v?Ql(v,i):null,c=a.getAttribute("method")||So,d=md(a.getAttribute("enctype"))||No,f=new FormData(a)}else if(sy(a)||cy(a)&&(a.type==="submit"||a.type==="image")){let v=a.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=a.getAttribute("formaction")||v.getAttribute("action");if(r=h?Ql(h,i):null,c=a.getAttribute("formmethod")||v.getAttribute("method")||So,d=md(a.getAttribute("formenctype"))||md(v.getAttribute("enctype"))||No,f=new FormData(v,a),!uy()){let{name:m,type:g,value:x}=a;if(g==="image"){let y=m?`${m}.`:"";f.append(`${y}x`,"0"),f.append(`${y}y`,"0")}else m&&f.append(m,x)}}else{if($o(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=So,r=null,d=No,_=a}return f&&d==="text/plain"&&(_=f,f=void 0),{action:r,method:c.toLowerCase(),encType:d,formData:f,body:_}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function f2(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function x3(a,i,c,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:i&&Ql(d.pathname,i)==="/"?d.pathname=`${Eo(i)}/_root.${r}`:d.pathname=`${Eo(d.pathname)}.${r}`,d}async function hy(a,i){if(a.id in i)return i[a.id];try{let c=await import(a.module);return i[a.id]=c,c}catch(c){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function my(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 py(a,i,c){let r=await Promise.all(a.map(async d=>{let f=i.routes[d.route.id];if(f){let _=await hy(f,c);return _.links?_.links():[]}return[]}));return xy(r.flat(1).filter(my).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Fm(a,i,c,r,d,f){let _=(h,m)=>c[m]?h.route.id!==c[m].route.id:!0,v=(h,m)=>{var g;return c[m].pathname!==h.pathname||((g=c[m].route.path)==null?void 0:g.endsWith("*"))&&c[m].params["*"]!==h.params["*"]};return f==="assets"?i.filter((h,m)=>_(h,m)||v(h,m)):f==="data"?i.filter((h,m)=>{var x;let g=r.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(_(h,m)||v(h,m))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((x=c[0])==null?void 0:x.params)||{},nextUrl:new URL(a,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function _y(a,i,{includeHydrateFallback:c}={}){return gy(a.map(r=>{let d=i.routes[r.route.id];if(!d)return[];let f=[d.module];return d.clientActionModule&&(f=f.concat(d.clientActionModule)),d.clientLoaderModule&&(f=f.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function gy(a){return[...new Set(a)]}function vy(a){let i={},c=Object.keys(a).sort();for(let r of c)i[r]=a[r];return i}function xy(a,i){let c=new Set;return new Set(i),a.reduce((r,d)=>{let f=JSON.stringify(vy(d));return c.has(f)||(c.add(f),r.push({key:f,link:d})),r},[])}function h2(){let a=j.useContext(Ti);return f2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function yy(){let a=j.useContext(Bo);return f2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var m2=j.createContext(void 0);m2.displayName="FrameworkContext";function p2(){let a=j.useContext(m2);return f2(a,"You must render this element inside a <HydratedRouter> element"),a}function by(a,i){let c=j.useContext(m2),[r,d]=j.useState(!1),[f,_]=j.useState(!1),{onFocus:v,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:x}=i,y=j.useRef(null);j.useEffect(()=>{if(a==="render"&&_(!0),a==="viewport"){let T=z=>{z.forEach(H=>{_(H.isIntersecting)})},E=new IntersectionObserver(T,{threshold:.5});return y.current&&E.observe(y.current),()=>{E.disconnect()}}},[a]),j.useEffect(()=>{if(r){let T=setTimeout(()=>{_(!0)},100);return()=>{clearTimeout(T)}}},[r]);let N=()=>{d(!0)},S=()=>{d(!1),_(!1)};return c?a!=="intent"?[f,y,{}]:[f,y,{onFocus:Tc(v,N),onBlur:Tc(h,S),onMouseEnter:Tc(m,N),onMouseLeave:Tc(g,S),onTouchStart:Tc(x,N)}]:[!1,y,{}]}function Tc(a,i){return c=>{a&&a(c),c.defaultPrevented||i(c)}}function jy({page:a,...i}){let c=zx(),{router:r}=h2(),d=j.useMemo(()=>l3(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?c?j.createElement(Ny,{page:a,matches:d,...i}):j.createElement(wy,{page:a,matches:d,...i}):null}function Sy(a){let{manifest:i,routeModules:c}=p2(),[r,d]=j.useState([]);return j.useEffect(()=>{let f=!1;return py(a,i,c).then(_=>{f||d(_)}),()=>{f=!0}},[a,i,c]),r}function Ny({page:a,matches:i,...c}){let r=zn(),{future:d}=p2(),{basename:f}=h2(),_=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let v=x3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,m=[];for(let g of i)typeof g.route.shouldRevalidate=="function"?h=!0:m.push(g.route.id);return h&&m.length>0&&v.searchParams.set("_routes",m.join(",")),[v.pathname+v.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,i]);return j.createElement(j.Fragment,null,_.map(v=>j.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...c})))}function wy({page:a,matches:i,...c}){let r=zn(),{future:d,manifest:f,routeModules:_}=p2(),{basename:v}=h2(),{loaderData:h,matches:m}=yy(),g=j.useMemo(()=>Fm(a,i,m,f,r,"data"),[a,i,m,f,r]),x=j.useMemo(()=>Fm(a,i,m,f,r,"assets"),[a,i,m,f,r]),y=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let T=new Set,E=!1;if(i.forEach(H=>{var U;let M=f.routes[H.route.id];!M||!M.hasLoader||(!g.some(Y=>Y.route.id===H.route.id)&&H.route.id in h&&((U=_[H.route.id])!=null&&U.shouldRevalidate)||M.hasClientLoader?E=!0:T.add(H.route.id))}),T.size===0)return[];let z=x3(a,v,d.unstable_trailingSlashAwareDataRequests,"data");return E&&T.size>0&&z.searchParams.set("_routes",i.filter(H=>T.has(H.route.id)).map(H=>H.route.id).join(",")),[z.pathname+z.search]},[v,d.unstable_trailingSlashAwareDataRequests,h,r,f,g,i,a,_]),N=j.useMemo(()=>_y(x,f),[x,f]),S=Sy(x);return j.createElement(j.Fragment,null,y.map(T=>j.createElement("link",{key:T,rel:"prefetch",as:"fetch",href:T,...c})),N.map(T=>j.createElement("link",{key:T,rel:"modulepreload",href:T,...c})),S.map(({key:T,link:E})=>j.createElement("link",{key:T,nonce:c.nonce,...E,crossOrigin:E.crossOrigin??c.crossOrigin})))}function Cy(...a){return i=>{a.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var Ey=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ey&&(window.__reactRouterVersion="7.14.2")}catch{}function Ty({basename:a,children:i,unstable_useTransitions:c,window:r}){let d=j.useRef();d.current==null&&(d.current=ix({window:r,v5Compat:!0}));let f=d.current,[_,v]=j.useState({action:f.action,location:f.location}),h=j.useCallback(m=>{c===!1?v(m):j.startTransition(()=>v(m))},[c]);return j.useLayoutEffect(()=>f.listen(h),[f,h]),j.createElement(ly,{basename:a,children:i,location:_.location,navigationType:_.action,navigator:f,unstable_useTransitions:c})}var y3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Wt=j.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:d,reloadDocument:f,replace:_,unstable_mask:v,state:h,target:m,to:g,preventScrollReset:x,viewTransition:y,unstable_defaultShouldRevalidate:N,...S},T){let{basename:E,navigator:z,unstable_useTransitions:H}=j.useContext(Mn),M=typeof g=="string"&&y3.test(g),U=r3(g,E);g=U.to;let Y=Hx(g,{relative:d}),ee=zn(),q=null;if(v){let fe=ko(v,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);E!=="/"&&(fe.pathname=fe.pathname==="/"?E:Jn([E,fe.pathname])),q=z.createHref(fe)}let[X,se,pe]=by(r,S),me=Oy(g,{replace:_,unstable_mask:v,state:h,target:m,preventScrollReset:x,relative:d,viewTransition:y,unstable_defaultShouldRevalidate:N,unstable_useTransitions:H});function Ce(fe){i&&i(fe),fe.defaultPrevented||me(fe)}let ue=!(U.isExternal||f),ve=j.createElement("a",{...S,...pe,href:(ue?q:void 0)||U.absoluteURL||Y,onClick:ue?Ce:i,ref:Cy(T,se),target:m,"data-discover":!M&&c==="render"?"true":void 0});return X&&!M?j.createElement(j.Fragment,null,ve,j.createElement(jy,{page:Y})):ve});Wt.displayName="Link";var Ld=j.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:d=!1,style:f,to:_,viewTransition:v,children:h,...m},g){let x=Xc(_,{relative:m.relative}),y=zn(),N=j.useContext(Bo),{navigator:S,basename:T}=j.useContext(Mn),E=N!=null&&ky(x)&&v===!0,z=S.encodeLocation?S.encodeLocation(x).pathname:x.pathname,H=y.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;c||(H=H.toLowerCase(),M=M?M.toLowerCase():null,z=z.toLowerCase()),M&&T&&(M=Ql(M,T)||M);const U=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let Y=H===z||!d&&H.startsWith(z)&&H.charAt(U)==="/",ee=M!=null&&(M===z||!d&&M.startsWith(z)&&M.charAt(z.length)==="/"),q={isActive:Y,isPending:ee,isTransitioning:E},X=Y?i:void 0,se;typeof r=="function"?se=r(q):se=[r,Y?"active":null,ee?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let pe=typeof f=="function"?f(q):f;return j.createElement(Wt,{...m,"aria-current":X,className:se,ref:g,style:pe,to:_,viewTransition:v},typeof h=="function"?h(q):h)});Ld.displayName="NavLink";var Ry=j.forwardRef(({discover:a="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:d,state:f,method:_=So,action:v,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:y,...N},S)=>{let{unstable_useTransitions:T}=j.useContext(Mn),E=Dy(),z=Ly(v,{relative:m}),H=_.toLowerCase()==="get"?"get":"post",M=typeof v=="string"&&y3.test(v),U=Y=>{if(h&&h(Y),Y.defaultPrevented)return;Y.preventDefault();let ee=Y.nativeEvent.submitter,q=(ee==null?void 0:ee.getAttribute("formmethod"))||_,X=()=>E(ee||Y.currentTarget,{fetcherKey:i,method:q,navigate:c,replace:d,state:f,relative:m,preventScrollReset:g,viewTransition:x,unstable_defaultShouldRevalidate:y});T&&c!==!1?j.startTransition(()=>X()):X()};return j.createElement("form",{ref:S,method:H,action:z,onSubmit:r?h:U,...N,"data-discover":!M&&a==="render"?"true":void 0})});Ry.displayName="Form";function Ay(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function b3(a){let i=j.useContext(Ti);return it(i,Ay(a)),i}function Oy(a,{target:i,replace:c,unstable_mask:r,state:d,preventScrollReset:f,relative:_,viewTransition:v,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let g=en(),x=zn(),y=Xc(a,{relative:_});return j.useCallback(N=>{if(oy(N,i)){N.preventDefault();let S=c!==void 0?c:Uc(x)===Uc(y),T=()=>g(a,{replace:S,unstable_mask:r,state:d,preventScrollReset:f,relative:_,viewTransition:v,unstable_defaultShouldRevalidate:h});m?j.startTransition(()=>T()):T()}},[x,g,y,c,r,d,i,a,f,_,v,h,m])}var My=0,zy=()=>`__${String(++My)}__`;function Dy(){let{router:a}=b3("useSubmit"),{basename:i}=j.useContext(Mn),c=Jx(),r=a.fetch,d=a.navigate;return j.useCallback(async(f,_={})=>{let{action:v,method:h,encType:m,formData:g,body:x}=fy(f,i);if(_.navigate===!1){let y=_.fetcherKey||zy();await r(y,c,_.action||v,{unstable_defaultShouldRevalidate:_.unstable_defaultShouldRevalidate,preventScrollReset:_.preventScrollReset,formData:g,body:x,formMethod:_.method||h,formEncType:_.encType||m,flushSync:_.flushSync})}else await d(_.action||v,{unstable_defaultShouldRevalidate:_.unstable_defaultShouldRevalidate,preventScrollReset:_.preventScrollReset,formData:g,body:x,formMethod:_.method||h,formEncType:_.encType||m,replace:_.replace,state:_.state,fromRouteId:c,flushSync:_.flushSync,viewTransition:_.viewTransition})},[r,d,i,c])}function Ly(a,{relative:i}={}){let{basename:c}=j.useContext(Mn),r=j.useContext(In);it(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...Xc(a||".",{relative:i})},_=zn();if(a==null){f.search=_.search;let v=new URLSearchParams(f.search),h=v.getAll("index");if(h.some(g=>g==="")){v.delete("index"),h.filter(x=>x).forEach(x=>v.append("index",x));let g=v.toString();f.search=g?`?${g}`:""}}return(!a||a===".")&&d.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:Jn([c,f.pathname])),Uc(f)}function ky(a,{relative:i}={}){let c=j.useContext(d3);it(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=b3("useViewTransitionState"),d=Xc(a,{relative:i});if(!c.isTransitioning)return!1;let f=Ql(c.currentLocation.pathname,r)||c.currentLocation.pathname,_=Ql(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Co(d.pathname,_)!=null||Co(d.pathname,f)!=null}const By="_btn_8fkbu_1",Uy="_primary_8fkbu_17",$y="_danger_8fkbu_27",Hy="_ghost_8fkbu_37",qy="_outline_8fkbu_47",Gm={btn:By,primary:Uy,danger:$y,ghost:Hy,outline:qy};function Jt({variant:a,children:i,onClick:c,type:r="button",disabled:d}){return l.jsx("button",{type:r,className:`${Gm.btn} ${Gm[a]}`,onClick:c,disabled:d,children:i})}const Fy="_field_1rkrg_1",Gy="_compact_1rkrg_5",Vy="_fieldError_1rkrg_9",Qy="_fieldLabel_1rkrg_15",Yy="_fieldInput_1rkrg_23",Iy="_currency_1rkrg_49",Xy="_currencyIcon_1rkrg_58",Py="_currencyRub_1rkrg_70",Zy="_currencyUsdt_1rkrg_74",rl={field:Fy,compact:Gy,fieldError:Vy,fieldLabel:Qy,fieldInput:Yy,currency:Iy,currencyIcon:Xy,currencyRub:Py,currencyUsdt:Zy};function To({label:a,value:i,currency:c,onChange:r,error:d,compact:f}){const _=!r;return l.jsxs("div",{className:f?`${rl.field} ${rl.compact}`:rl.field,children:[a&&l.jsx("div",{className:rl.fieldLabel,children:a}),l.jsxs("div",{className:rl.fieldInput,children:[l.jsx("input",{type:"text",value:i,onChange:r?v=>r(v.target.value):void 0,readOnly:_,placeholder:"0",inputMode:_?void 0:"decimal"}),l.jsxs("div",{className:rl.currency,children:[l.jsx("span",{className:`${rl.currencyIcon} ${c==="USDT"?rl.currencyUsdt:rl.currencyRub}`,children:c==="USDT"?"₮":"₽"}),c]})]}),d&&l.jsx("div",{className:rl.fieldError,children:d})]})}const Ky="_swapWrap_172k4_1",Wy="_compact_172k4_6",Jy="_swapBtn_172k4_10",go={swapWrap:Ky,compact:Wy,swapBtn:Jy};function j3({onClick:a,compact:i}){return l.jsx("div",{className:i?`${go.swapWrap} ${go.compact}`:go.swapWrap,children:l.jsx("button",{type:"button",className:go.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 e4="_field_zffpb_1",t4="_label_zffpb_7",n4="_wrap_zffpb_14",l4="_input_zffpb_18",a4="_readonly_zffpb_37",s4="_copied_zffpb_44",i4="_iconCheck_zffpb_59",c4="_iconLock_zffpb_68",r4="_withToggle_zffpb_76",o4="_togglePw_zffpb_80",ol={field:e4,label:t4,wrap:n4,input:l4,readonly:a4,copied:s4,iconCheck:i4,iconLock:c4,withToggle:r4,togglePw:o4};function W({label:a,value:i,placeholder:c,type:r="text",onChange:d,onBlur:f,readOnly:_,required:v,icon:h}){const[m,g]=j.useState(!1),[x,y]=j.useState(!1),N=r==="password",S=N?x?"text":"password":r,T=()=>{_&&navigator.clipboard.writeText(i).then(()=>{g(!0),setTimeout(()=>g(!1),1500)})};return l.jsxs("div",{className:ol.field,children:[l.jsx("label",{className:ol.label,children:a}),l.jsxs("div",{className:ol.wrap,onClick:T,children:[l.jsx("input",{className:`${ol.input} ${N?ol.withToggle:""} ${_?ol.readonly:""} ${m?ol.copied:""}`,type:S,...d?{value:i,onChange:E=>d(E.target.value)}:{defaultValue:i},placeholder:c,readOnly:_,required:v,onBlur:f}),N&&l.jsx("button",{type:"button",className:ol.togglePw,onClick:E=>{E.stopPropagation(),y(z=>!z)},"aria-label":x?"Скрыть пароль":"Показать пароль",children:x?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:ol.iconCheck,children:"✓"}),h==="lock"&&l.jsx("span",{className:ol.iconLock,children:"🔒"})]})]})}const u4="_notification_m7zar_1",d4="_slideIn_m7zar_1",f4="_notificationWrapper_m7zar_19",h4="_closing_m7zar_24",m4="_slideOut_m7zar_1",p4="_icon_m7zar_52",_4="_success_m7zar_65",g4="_error_m7zar_70",v4="_info_m7zar_75",x4="_warning_m7zar_80",y4="_message_m7zar_85",b4="_close_m7zar_93",Wa={notification:u4,slideIn:d4,notificationWrapper:f4,closing:h4,slideOut:m4,icon:p4,success:_4,error:g4,info:v4,warning:x4,message:y4,close:b4},j4={success:"✓",error:"✕",info:"i",warning:"!"};function Yl({message:a,status:i,onClose:c}){const[r,d]=j.useState(!1);function f(){d(!0)}function _(){r&&c()}return l.jsxs("div",{className:`${Wa.notification} ${Wa[i]} ${r?Wa.closing:""}`,onAnimationEnd:_,children:[l.jsxs("div",{className:Wa.notificationWrapper,children:[l.jsx("span",{className:Wa.icon,children:j4[i]}),l.jsx("p",{className:Wa.message,children:a})]}),l.jsx("button",{className:Wa.close,onClick:f,children:"✕"})]})}const S4="_pill_3oadq_1",N4={pill:S4};function w4({children:a}){return l.jsx("span",{className:N4.pill,children:a})}const C4="_btn_ytb12_1",E4={btn:C4};function On({label:a="Подтвердить своп",onClick:i,type:c="submit",disabled:r}){return l.jsx("button",{type:c,className:E4.btn,onClick:i,disabled:r,children:a})}const T4="_field_1845i_1",R4="_label_1845i_8",A4="_trigger_1845i_15",O4="_triggerOpen_1845i_41",M4="_value_1845i_46",z4="_placeholder_1845i_50",D4="_arrow_1845i_54",L4="_arrowOpen_1845i_61",k4="_dropdown_1845i_65",B4="_option_1845i_82",U4="_optionSelected_1845i_95",Kn={field:T4,label:R4,trigger:A4,triggerOpen:O4,value:M4,placeholder:z4,arrow:D4,arrowOpen:L4,dropdown:k4,option:B4,optionSelected:U4};function $4({value:a,options:i,onChange:c,label:r,placeholder:d="Выберите",id:f,disabled:_}){const[v,h]=j.useState(!1),m=j.useRef(null),g=i.find(x=>x.value===a);return j.useEffect(()=>{if(!v)return;const x=N=>{m.current&&!m.current.contains(N.target)&&h(!1)},y=N=>{N.key==="Escape"&&h(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",y)}},[v]),l.jsxs("div",{className:Kn.field,ref:m,children:[r&&l.jsx("label",{className:Kn.label,htmlFor:f,children:r}),l.jsxs("button",{type:"button",id:f,className:`${Kn.trigger} ${v?Kn.triggerOpen:""}`,onClick:()=>!_&&h(x=>!x),disabled:_,"aria-haspopup":"listbox","aria-expanded":v,children:[l.jsx("span",{className:g?Kn.value:Kn.placeholder,children:g?g.label:d}),l.jsx("span",{className:`${Kn.arrow} ${v?Kn.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),v&&l.jsx("ul",{className:Kn.dropdown,role:"listbox",children:i.map(x=>l.jsx("li",{role:"option","aria-selected":x.value===a,className:`${Kn.option} ${x.value===a?Kn.optionSelected:""}`,onClick:()=>{c(x.value),h(!1)},children:x.label},String(x.value)))})]})}const H4="_icon_73irc_1",q4={icon:H4};function Vm({letter:a,color:i,logo:c,size:r=40}){return l.jsx("div",{className:q4.icon,style:{background:c?"transparent":i,width:r,height:r,fontSize:r*.45},children:c?l.jsx("img",{src:c,alt:a,style:{width:r*.7,height:r*.7}}):a})}const F4="_section_11f1k_1",G4="_wrap_11f1k_7",V4="_descBlock_11f1k_16",Q4="_descText_11f1k_22",Y4="_right_11f1k_33",I4="_glow_11f1k_37",X4="_row_11f1k_49",P4="_check_11f1k_87",Z4="_text_11f1k_101",ul={section:F4,wrap:G4,descBlock:V4,descText:Q4,right:Y4,glow:I4,row:X4,check:P4,text:Z4},K4="_title_1ien9_1",W4={title:K4};function S3({children:a}){return l.jsx("h2",{className:W4.title,children:a})}const Qm=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function J4(){const[a,i]=j.useState(-1);return l.jsx("section",{id:"about",className:ul.section,children:l.jsxs("div",{className:ul.wrap,children:[l.jsxs("div",{children:[l.jsx(w4,{children:"О КОМПАНИИ"}),l.jsx(S3,{children:"О нас"}),l.jsxs("div",{className:ul.descBlock,children:[l.jsx("p",{className:ul.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),l.jsx("p",{className:ul.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),l.jsxs("div",{className:ul.right,children:[l.jsx("div",{className:ul.glow}),Qm.map((c,r)=>l.jsxs("div",{className:ul.row,"data-hovered":a===r||void 0,"data-last":r===Qm.length-1||void 0,onMouseEnter:()=>i(r),onMouseLeave:()=>i(-1),children:[l.jsx("div",{className:ul.check,children:"✓"}),l.jsx("span",{className:ul.text,children:c})]},r))]})]})})}const Ro=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],pd=Ro[0].min,Ym=Ro[Ro.length-1].max;function e6(a){return a<=pd?0:a>=Ym?100:(a-pd)/(Ym-pd)*100}const t6="_title_ujt2o_1",n6="_table_ujt2o_8",l6="_row_ujt2o_15",a6="_range_ujt2o_31",s6="_pct_ujt2o_36",i6="_progressBar_ujt2o_43",c6="_progressFill_ujt2o_51",r6="_summary_ujt2o_58",o6="_summaryLabel_ujt2o_73",u6="_summaryValue_ujt2o_78",En={title:t6,table:n6,row:l6,range:a6,pct:s6,progressBar:i6,progressFill:c6,summary:r6,summaryLabel:o6,summaryValue:u6},Im=a=>a.toLocaleString("ru-RU");function N3({amount:a,progress:i,commission:c,effectiveRate:r}){return l.jsxs("div",{children:[l.jsx("div",{className:En.title,children:"КОМИССИЯ СЕРВИСА"}),l.jsx("div",{className:En.table,children:Ro.map((d,f)=>l.jsxs("div",{className:En.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[l.jsxs("span",{className:En.range,children:[Im(d.min)," – ",Im(d.max)," ₽"]}),l.jsxs("span",{className:En.pct,children:[d.pct,"%"]})]},f))}),l.jsx("div",{className:En.progressBar,children:l.jsx("div",{className:En.progressFill,style:{width:`${i}%`}})}),l.jsxs("div",{className:En.summary,children:[l.jsx("span",{className:En.summaryLabel,children:"Комиссия"}),l.jsxs("span",{className:En.summaryValue,children:[c.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),l.jsxs("div",{className:En.summary,children:[l.jsx("span",{className:En.summaryLabel,children:"Курс с комиссией"}),l.jsxs("span",{className:En.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Ai=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(){}},cs,Sa,hi,Qp,d6=(Qp=class extends Ai{constructor(){super();ce(this,cs);ce(this,Sa);ce(this,hi);J(this,hi,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){C(this,Sa)||this.setEventListener(C(this,hi))}onUnsubscribe(){var i;this.hasListeners()||((i=C(this,Sa))==null||i.call(this),J(this,Sa,void 0))}setEventListener(i){var c;J(this,hi,i),(c=C(this,Sa))==null||c.call(this),J(this,Sa,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){C(this,cs)!==i&&(J(this,cs,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof C(this,cs)=="boolean"?C(this,cs):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},cs=new WeakMap,Sa=new WeakMap,hi=new WeakMap,Qp),_2=new d6,f6={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Na,s2,Yp,h6=(Yp=class{constructor(){ce(this,Na,f6);ce(this,s2,!1)}setTimeoutProvider(a){J(this,Na,a)}setTimeout(a,i){return C(this,Na).setTimeout(a,i)}clearTimeout(a){C(this,Na).clearTimeout(a)}setInterval(a,i){return C(this,Na).setInterval(a,i)}clearInterval(a){C(this,Na).clearInterval(a)}},Na=new WeakMap,s2=new WeakMap,Yp),is=new h6;function m6(a){setTimeout(a,0)}var p6=typeof window>"u"||"Deno"in globalThis;function Kt(){}function _6(a,i){return typeof a=="function"?a(i):a}function kd(a){return typeof a=="number"&&a>=0&&a!==1/0}function w3(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Ma(a,i){return typeof a=="function"?a(i):a}function An(a,i){return typeof a=="function"?a(i):a}function Xm(a,i){const{type:c="all",exact:r,fetchStatus:d,predicate:f,queryKey:_,stale:v}=a;if(_){if(r){if(i.queryHash!==g2(_,i.options))return!1}else if(!$c(i.queryKey,_))return!1}if(c!=="all"){const h=i.isActive();if(c==="active"&&!h||c==="inactive"&&h)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||d&&d!==i.state.fetchStatus||f&&!f(i))}function Pm(a,i){const{exact:c,status:r,predicate:d,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(c){if(gs(i.options.mutationKey)!==gs(f))return!1}else if(!$c(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||d&&!d(i))}function g2(a,i){return((i==null?void 0:i.queryKeyHashFn)||gs)(a)}function gs(a){return JSON.stringify(a,(i,c)=>Bd(c)?Object.keys(c).sort().reduce((r,d)=>(r[d]=c[d],r),{}):c)}function $c(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(c=>$c(a[c],i[c])):!1}var g6=Object.prototype.hasOwnProperty;function C3(a,i,c=0){if(a===i)return a;if(c>500)return i;const r=Zm(a)&&Zm(i);if(!r&&!(Bd(a)&&Bd(i)))return i;const f=(r?a:Object.keys(a)).length,_=r?i:Object.keys(i),v=_.length,h=r?new Array(v):{};let m=0;for(let g=0;g<v;g++){const x=r?g:_[g],y=a[x],N=i[x];if(y===N){h[x]=y,(r?g<f:g6.call(a,x))&&m++;continue}if(y===null||N===null||typeof y!="object"||typeof N!="object"){h[x]=N;continue}const S=C3(y,N,c+1);h[x]=S,S===y&&m++}return f===v&&m===f?a:h}function Ao(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function Zm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Bd(a){if(!Km(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!Km(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Km(a){return Object.prototype.toString.call(a)==="[object Object]"}function v6(a){return new Promise(i=>{is.setTimeout(i,a)})}function Ud(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?C3(a,i):i}function x6(a,i,c=0){const r=[...a,i];return c&&r.length>c?r.slice(1):r}function y6(a,i,c=0){const r=[i,...a];return c&&r.length>c?r.slice(0,-1):r}var v2=Symbol();function E3(a,i){return!a.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!a.queryFn||a.queryFn===v2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function x2(a,i){return typeof a=="function"?a(...i):!!a}function b6(a,i,c){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=i()),r||(r=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),a}var Hc=(()=>{let a=()=>p6;return{isServer(){return a()},setIsServer(i){a=i}}})();function $d(){let a,i;const c=new Promise((d,f)=>{a=d,i=f});c.status="pending",c.catch(()=>{});function r(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},c.reject=d=>{r({status:"rejected",reason:d}),i(d)},c}var j6=m6;function S6(){let a=[],i=0,c=v=>{v()},r=v=>{v()},d=j6;const f=v=>{i?a.push(v):d(()=>{c(v)})},_=()=>{const v=a;a=[],v.length&&d(()=>{r(()=>{v.forEach(h=>{c(h)})})})};return{batch:v=>{let h;i++;try{h=v()}finally{i--,i||_()}return h},batchCalls:v=>(...h)=>{f(()=>{v(...h)})},schedule:f,setNotifyFunction:v=>{c=v},setBatchNotifyFunction:v=>{r=v},setScheduler:v=>{d=v}}}var Et=S6(),mi,wa,pi,Ip,N6=(Ip=class extends Ai{constructor(){super();ce(this,mi,!0);ce(this,wa);ce(this,pi);J(this,pi,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,wa)||this.setEventListener(C(this,pi))}onUnsubscribe(){var i;this.hasListeners()||((i=C(this,wa))==null||i.call(this),J(this,wa,void 0))}setEventListener(i){var c;J(this,pi,i),(c=C(this,wa))==null||c.call(this),J(this,wa,i(this.setOnline.bind(this)))}setOnline(i){C(this,mi)!==i&&(J(this,mi,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return C(this,mi)}},mi=new WeakMap,wa=new WeakMap,pi=new WeakMap,Ip),Oo=new N6;function w6(a){return Math.min(1e3*2**a,3e4)}function T3(a){return(a??"online")==="online"?Oo.isOnline():!0}var Hd=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function R3(a){let i=!1,c=0,r;const d=$d(),f=()=>d.status!=="pending",_=T=>{var E;if(!f()){const z=new Hd(T);y(z),(E=a.onCancel)==null||E.call(a,z)}},v=()=>{i=!0},h=()=>{i=!1},m=()=>_2.isFocused()&&(a.networkMode==="always"||Oo.isOnline())&&a.canRun(),g=()=>T3(a.networkMode)&&a.canRun(),x=T=>{f()||(r==null||r(),d.resolve(T))},y=T=>{f()||(r==null||r(),d.reject(T))},N=()=>new Promise(T=>{var E;r=z=>{(f()||m())&&T(z)},(E=a.onPause)==null||E.call(a)}).then(()=>{var T;r=void 0,f()||(T=a.onContinue)==null||T.call(a)}),S=()=>{if(f())return;let T;const E=c===0?a.initialPromise:void 0;try{T=E??a.fn()}catch(z){T=Promise.reject(z)}Promise.resolve(T).then(x).catch(z=>{var ee;if(f())return;const H=a.retry??(Hc.isServer()?0:3),M=a.retryDelay??w6,U=typeof M=="function"?M(c,z):M,Y=H===!0||typeof H=="number"&&c<H||typeof H=="function"&&H(c,z);if(i||!Y){y(z);return}c++,(ee=a.onFail)==null||ee.call(a,c,z),v6(U).then(()=>m()?void 0:N()).then(()=>{i?y(z):S()})})};return{promise:d,status:()=>d.status,cancel:_,continue:()=>(r==null||r(),d),cancelRetry:v,continueRetry:h,canStart:g,start:()=>(g()?S():N().then(S),d)}}var rs,Xp,A3=(Xp=class{constructor(){ce(this,rs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kd(this.gcTime)&&J(this,rs,is.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Hc.isServer()?1/0:300*1e3))}clearGcTimeout(){C(this,rs)!==void 0&&(is.clearTimeout(C(this,rs)),J(this,rs,void 0))}},rs=new WeakMap,Xp);function C6(a){return{onFetch:(i,c)=>{var g,x,y,N,S;const r=i.options,d=(y=(x=(g=i.fetchOptions)==null?void 0:g.meta)==null?void 0:x.fetchMore)==null?void 0:y.direction,f=((N=i.state.data)==null?void 0:N.pages)||[],_=((S=i.state.data)==null?void 0:S.pageParams)||[];let v={pages:[],pageParams:[]},h=0;const m=async()=>{let T=!1;const E=M=>{b6(M,()=>i.signal,()=>T=!0)},z=E3(i.options,i.fetchOptions),H=async(M,U,Y)=>{if(T)return Promise.reject(i.signal.reason);if(U==null&&M.pages.length)return Promise.resolve(M);const q=(()=>{const me={client:i.client,queryKey:i.queryKey,pageParam:U,direction:Y?"backward":"forward",meta:i.options.meta};return E(me),me})(),X=await z(q),{maxPages:se}=i.options,pe=Y?y6:x6;return{pages:pe(M.pages,X,se),pageParams:pe(M.pageParams,U,se)}};if(d&&f.length){const M=d==="backward",U=M?O3:qd,Y={pages:f,pageParams:_},ee=U(r,Y);v=await H(Y,ee,M)}else{const M=a??f.length;do{const U=h===0?_[0]??r.initialPageParam:qd(r,v);if(h>0&&U==null)break;v=await H(v,U),h++}while(h<M)}return v};i.options.persister?i.fetchFn=()=>{var T,E;return(E=(T=i.options).persister)==null?void 0:E.call(T,m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=m}}}function qd(a,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,c[r],c):void 0}function O3(a,{pages:i,pageParams:c}){var r;return i.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,i[0],i,c[0],c):void 0}function E6(a,i){return i?qd(a,i)!=null:!1}function T6(a,i){return!i||!a.getPreviousPageParam?!1:O3(a,i)!=null}var _i,os,gi,Qn,us,zt,Fc,ds,Rn,M3,$l,Pp,R6=(Pp=class extends A3{constructor(i){super();ce(this,Rn);ce(this,_i);ce(this,os);ce(this,gi);ce(this,Qn);ce(this,us);ce(this,zt);ce(this,Fc);ce(this,ds);J(this,ds,!1),J(this,Fc,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,us,i.client),J(this,Qn,C(this,us).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,os,Jm(this.options)),this.state=i.state??C(this,os),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,_i)}get promise(){var i;return(i=C(this,zt))==null?void 0:i.promise}setOptions(i){if(this.options={...C(this,Fc),...i},i!=null&&i._type&&J(this,_i,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=Jm(this.options);c.data!==void 0&&(this.setState(Wm(c.data,c.dataUpdatedAt)),J(this,os,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Qn).remove(this)}setData(i,c){const r=Ud(this.state.data,i,this.options);return Se(this,Rn,$l).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i){Se(this,Rn,$l).call(this,{type:"setState",state:i})}cancel(i){var r,d;const c=(r=C(this,zt))==null?void 0:r.promise;return(d=C(this,zt))==null||d.cancel(i),c?c.then(Kt).catch(Kt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,os)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>An(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Ma(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!w3(this.state.dataUpdatedAt,i)}onFocus(){var c;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(c=C(this,zt))==null||c.continue()}onOnline(){var c;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(c=C(this,zt))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),C(this,Qn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(c=>c!==i),this.observers.length||(C(this,zt)&&(C(this,ds)||Se(this,Rn,M3).call(this)?C(this,zt).cancel({revert:!0}):C(this,zt).cancelRetry()),this.scheduleGc()),C(this,Qn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Rn,$l).call(this,{type:"invalidate"})}async fetch(i,c){var m,g,x,y,N,S,T,E,z,H,M;if(this.state.fetchStatus!=="idle"&&((m=C(this,zt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(C(this,zt))return C(this,zt).continueRetry(),C(this,zt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const U=this.observers.find(Y=>Y.options.queryFn);U&&this.setOptions(U.options)}const r=new AbortController,d=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(J(this,ds,!0),r.signal)})},f=()=>{const U=E3(this.options,c),ee=(()=>{const q={client:C(this,us),queryKey:this.queryKey,meta:this.meta};return d(q),q})();return J(this,ds,!1),this.options.persister?this.options.persister(U,ee,this):U(ee)},v=(()=>{const U={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:C(this,us),state:this.state,fetchFn:f};return d(U),U})(),h=C(this,_i)==="infinite"?C6(this.options.pages):this.options.behavior;h==null||h.onFetch(v,this),J(this,gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=v.fetchOptions)==null?void 0:g.meta))&&Se(this,Rn,$l).call(this,{type:"fetch",meta:(x=v.fetchOptions)==null?void 0:x.meta}),J(this,zt,R3({initialPromise:c==null?void 0:c.initialPromise,fn:v.fetchFn,onCancel:U=>{U instanceof Hd&&U.revert&&this.setState({...C(this,gi),fetchStatus:"idle"}),r.abort()},onFail:(U,Y)=>{Se(this,Rn,$l).call(this,{type:"failed",failureCount:U,error:Y})},onPause:()=>{Se(this,Rn,$l).call(this,{type:"pause"})},onContinue:()=>{Se(this,Rn,$l).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const U=await C(this,zt).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(N=(y=C(this,Qn).config).onSuccess)==null||N.call(y,U,this),(T=(S=C(this,Qn).config).onSettled)==null||T.call(S,U,this.state.error,this),U}catch(U){if(U instanceof Hd){if(U.silent)return C(this,zt).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw Se(this,Rn,$l).call(this,{type:"error",error:U}),(z=(E=C(this,Qn).config).onError)==null||z.call(E,U,this),(M=(H=C(this,Qn).config).onSettled)==null||M.call(H,this.state.data,U,this),U}finally{this.scheduleGc()}}},_i=new WeakMap,os=new WeakMap,gi=new WeakMap,Qn=new WeakMap,us=new WeakMap,zt=new WeakMap,Fc=new WeakMap,ds=new WeakMap,Rn=new WeakSet,M3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},$l=function(i){const c=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...z3(r.data,this.options),fetchMeta:i.meta??null};case"success":const d={...r,...Wm(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,gi,i.manual?d:void 0),d;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),Et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Qn).notify({query:this,type:"updated",action:i})})},Pp);function z3(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T3(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Wm(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Jm(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,r=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var pn,ke,Gc,Zt,fs,vi,Hl,Ca,Vc,xi,yi,hs,ms,Ea,bi,qe,kc,Fd,Gd,Vd,Qd,Yd,Id,Xd,L3,Zp,D3=(Zp=class extends Ai{constructor(i,c){super();ce(this,qe);ce(this,pn);ce(this,ke);ce(this,Gc);ce(this,Zt);ce(this,fs);ce(this,vi);ce(this,Hl);ce(this,Ca);ce(this,Vc);ce(this,xi);ce(this,yi);ce(this,hs);ce(this,ms);ce(this,Ea);ce(this,bi,new Set);this.options=c,J(this,pn,i),J(this,Ca,null),J(this,Hl,$d()),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,ke).addObserver(this),ep(C(this,ke),this.options)?Se(this,qe,kc).call(this):this.updateResult(),Se(this,qe,Qd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pd(C(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pd(C(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,qe,Yd).call(this),Se(this,qe,Id).call(this),C(this,ke).removeObserver(this)}setOptions(i){const c=this.options,r=C(this,ke);if(this.options=C(this,pn).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof An(this.options.enabled,C(this,ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,qe,Xd).call(this),C(this,ke).setOptions(this.options),c._defaulted&&!Ao(this.options,c)&&C(this,pn).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,ke),observer:this});const d=this.hasListeners();d&&tp(C(this,ke),r,this.options,c)&&Se(this,qe,kc).call(this),this.updateResult(),d&&(C(this,ke)!==r||An(this.options.enabled,C(this,ke))!==An(c.enabled,C(this,ke))||Ma(this.options.staleTime,C(this,ke))!==Ma(c.staleTime,C(this,ke)))&&Se(this,qe,Fd).call(this);const f=Se(this,qe,Gd).call(this);d&&(C(this,ke)!==r||An(this.options.enabled,C(this,ke))!==An(c.enabled,C(this,ke))||f!==C(this,Ea))&&Se(this,qe,Vd).call(this,f)}getOptimisticResult(i){const c=C(this,pn).getQueryCache().build(C(this,pn),i),r=this.createResult(c,i);return O6(this,r)&&(J(this,Zt,r),J(this,vi,this.options),J(this,fs,C(this,ke).state)),r}getCurrentResult(){return C(this,Zt)}trackResult(i,c){return new Proxy(i,{get:(r,d)=>(this.trackProp(d),c==null||c(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Hl).status==="pending"&&C(this,Hl).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(i){C(this,bi).add(i)}getCurrentQuery(){return C(this,ke)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=C(this,pn).defaultQueryOptions(i),r=C(this,pn).getQueryCache().build(C(this,pn),c);return r.fetch().then(()=>this.createResult(r,c))}fetch(i){return Se(this,qe,kc).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Zt)))}createResult(i,c){var se;const r=C(this,ke),d=this.options,f=C(this,Zt),_=C(this,fs),v=C(this,vi),m=i!==r?i.state:C(this,Gc),{state:g}=i;let x={...g},y=!1,N;if(c._optimisticResults){const pe=this.hasListeners(),me=!pe&&ep(i,c),Ce=pe&&tp(i,r,c,d);(me||Ce)&&(x={...x,...z3(g.data,i.options)}),c._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:S,errorUpdatedAt:T,status:E}=x;N=x.data;let z=!1;if(c.placeholderData!==void 0&&N===void 0&&E==="pending"){let pe;f!=null&&f.isPlaceholderData&&c.placeholderData===(v==null?void 0:v.placeholderData)?(pe=f.data,z=!0):pe=typeof c.placeholderData=="function"?c.placeholderData((se=C(this,yi))==null?void 0:se.state.data,C(this,yi)):c.placeholderData,pe!==void 0&&(E="success",N=Ud(f==null?void 0:f.data,pe,c),y=!0)}if(c.select&&N!==void 0&&!z)if(f&&N===(_==null?void 0:_.data)&&c.select===C(this,Vc))N=C(this,xi);else try{J(this,Vc,c.select),N=c.select(N),N=Ud(f==null?void 0:f.data,N,c),J(this,xi,N),J(this,Ca,null)}catch(pe){J(this,Ca,pe)}C(this,Ca)&&(S=C(this,Ca),N=C(this,xi),T=Date.now(),E="error");const H=x.fetchStatus==="fetching",M=E==="pending",U=E==="error",Y=M&&H,ee=N!==void 0,X={status:E,fetchStatus:x.fetchStatus,isPending:M,isSuccess:E==="success",isError:U,isInitialLoading:Y,isLoading:Y,data:N,dataUpdatedAt:x.dataUpdatedAt,error:S,errorUpdatedAt:T,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:x.dataUpdateCount>m.dataUpdateCount||x.errorUpdateCount>m.errorUpdateCount,isFetching:H,isRefetching:H&&!M,isLoadingError:U&&!ee,isPaused:x.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:U&&ee,isStale:y2(i,c),refetch:this.refetch,promise:C(this,Hl),isEnabled:An(c.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const pe=X.data!==void 0,me=X.status==="error"&&!pe,Ce=fe=>{me?fe.reject(X.error):pe&&fe.resolve(X.data)},ue=()=>{const fe=J(this,Hl,X.promise=$d());Ce(fe)},ve=C(this,Hl);switch(ve.status){case"pending":i.queryHash===r.queryHash&&Ce(ve);break;case"fulfilled":(me||X.data!==ve.value)&&ue();break;case"rejected":(!me||X.error!==ve.reason)&&ue();break}}return X}updateResult(){const i=C(this,Zt),c=this.createResult(C(this,ke),this.options);if(J(this,fs,C(this,ke).state),J(this,vi,this.options),C(this,fs).data!==void 0&&J(this,yi,C(this,ke)),Ao(c,i))return;J(this,Zt,c);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!C(this,bi).size)return!0;const _=new Set(f??C(this,bi));return this.options.throwOnError&&_.add("error"),Object.keys(C(this,Zt)).some(v=>{const h=v;return C(this,Zt)[h]!==i[h]&&_.has(h)})};Se(this,qe,L3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,qe,Qd).call(this)}},pn=new WeakMap,ke=new WeakMap,Gc=new WeakMap,Zt=new WeakMap,fs=new WeakMap,vi=new WeakMap,Hl=new WeakMap,Ca=new WeakMap,Vc=new WeakMap,xi=new WeakMap,yi=new WeakMap,hs=new WeakMap,ms=new WeakMap,Ea=new WeakMap,bi=new WeakMap,qe=new WeakSet,kc=function(i){Se(this,qe,Xd).call(this);let c=C(this,ke).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(Kt)),c},Fd=function(){Se(this,qe,Yd).call(this);const i=Ma(this.options.staleTime,C(this,ke));if(Hc.isServer()||C(this,Zt).isStale||!kd(i))return;const r=w3(C(this,Zt).dataUpdatedAt,i)+1;J(this,hs,is.setTimeout(()=>{C(this,Zt).isStale||this.updateResult()},r))},Gd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,ke)):this.options.refetchInterval)??!1},Vd=function(i){Se(this,qe,Id).call(this),J(this,Ea,i),!(Hc.isServer()||An(this.options.enabled,C(this,ke))===!1||!kd(C(this,Ea))||C(this,Ea)===0)&&J(this,ms,is.setInterval(()=>{(this.options.refetchIntervalInBackground||_2.isFocused())&&Se(this,qe,kc).call(this)},C(this,Ea)))},Qd=function(){Se(this,qe,Fd).call(this),Se(this,qe,Vd).call(this,Se(this,qe,Gd).call(this))},Yd=function(){C(this,hs)!==void 0&&(is.clearTimeout(C(this,hs)),J(this,hs,void 0))},Id=function(){C(this,ms)!==void 0&&(is.clearInterval(C(this,ms)),J(this,ms,void 0))},Xd=function(){const i=C(this,pn).getQueryCache().build(C(this,pn),this.options);if(i===C(this,ke))return;const c=C(this,ke);J(this,ke,i),J(this,Gc,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},L3=function(i){Et.batch(()=>{i.listeners&&this.listeners.forEach(c=>{c(C(this,Zt))}),C(this,pn).getQueryCache().notify({query:C(this,ke),type:"observerResultsUpdated"})})},Zp);function A6(a,i){return An(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&An(i.retryOnMount,a)===!1)}function ep(a,i){return A6(a,i)||a.state.data!==void 0&&Pd(a,i,i.refetchOnMount)}function Pd(a,i,c){if(An(i.enabled,a)!==!1&&Ma(i.staleTime,a)!=="static"){const r=typeof c=="function"?c(a):c;return r==="always"||r!==!1&&y2(a,i)}return!1}function tp(a,i,c,r){return(a!==i||An(r.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&y2(a,c)}function y2(a,i){return An(i.enabled,a)!==!1&&a.isStaleByTime(Ma(i.staleTime,a))}function O6(a,i){return!Ao(a.getCurrentResult(),i)}var M6=class extends D3{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){a._type="infinite",super.setOptions(a)}getOptimisticResult(a){return a._type="infinite",super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){var S,T;const{state:c}=a,r=super.createResult(a,i),{isFetching:d,isRefetching:f,isError:_,isRefetchError:v}=r,h=(T=(S=c.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:T.direction,m=_&&h==="forward",g=d&&h==="forward",x=_&&h==="backward",y=d&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:E6(i,c.data),hasPreviousPage:T6(i,c.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:x,isFetchingPreviousPage:y,isRefetchError:v&&!m&&!x,isRefetching:f&&!g&&!y}}},Qc,fl,Gt,ps,hl,ja,Kp,z6=(Kp=class extends A3{constructor(i){super();ce(this,hl);ce(this,Qc);ce(this,fl);ce(this,Gt);ce(this,ps);J(this,Qc,i.client),this.mutationId=i.mutationId,J(this,Gt,i.mutationCache),J(this,fl,[]),this.state=i.state||k3(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){C(this,fl).includes(i)||(C(this,fl).push(i),this.clearGcTimeout(),C(this,Gt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,fl,C(this,fl).filter(c=>c!==i)),this.scheduleGc(),C(this,Gt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){C(this,fl).length||(this.state.status==="pending"?this.scheduleGc():C(this,Gt).remove(this))}continue(){var i;return((i=C(this,ps))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var _,v,h,m,g,x,y,N,S,T,E,z,H,M,U,Y,ee,q;const c=()=>{Se(this,hl,ja).call(this,{type:"continue"})},r={client:C(this,Qc),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,ps,R3({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(X,se)=>{Se(this,hl,ja).call(this,{type:"failed",failureCount:X,error:se})},onPause:()=>{Se(this,hl,ja).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Gt).canRun(this)}));const d=this.state.status==="pending",f=!C(this,ps).canStart();try{if(d)c();else{Se(this,hl,ja).call(this,{type:"pending",variables:i,isPaused:f}),C(this,Gt).config.onMutate&&await C(this,Gt).config.onMutate(i,this,r);const se=await((v=(_=this.options).onMutate)==null?void 0:v.call(_,i,r));se!==this.state.context&&Se(this,hl,ja).call(this,{type:"pending",context:se,variables:i,isPaused:f})}const X=await C(this,ps).start();return await((m=(h=C(this,Gt).config).onSuccess)==null?void 0:m.call(h,X,i,this.state.context,this,r)),await((x=(g=this.options).onSuccess)==null?void 0:x.call(g,X,i,this.state.context,r)),await((N=(y=C(this,Gt).config).onSettled)==null?void 0:N.call(y,X,null,this.state.variables,this.state.context,this,r)),await((T=(S=this.options).onSettled)==null?void 0:T.call(S,X,null,i,this.state.context,r)),Se(this,hl,ja).call(this,{type:"success",data:X}),X}catch(X){try{await((z=(E=C(this,Gt).config).onError)==null?void 0:z.call(E,X,i,this.state.context,this,r))}catch(se){Promise.reject(se)}try{await((M=(H=this.options).onError)==null?void 0:M.call(H,X,i,this.state.context,r))}catch(se){Promise.reject(se)}try{await((Y=(U=C(this,Gt).config).onSettled)==null?void 0:Y.call(U,void 0,X,this.state.variables,this.state.context,this,r))}catch(se){Promise.reject(se)}try{await((q=(ee=this.options).onSettled)==null?void 0:q.call(ee,void 0,X,i,this.state.context,r))}catch(se){Promise.reject(se)}throw Se(this,hl,ja).call(this,{type:"error",error:X}),X}finally{C(this,Gt).runNext(this)}}},Qc=new WeakMap,fl=new WeakMap,Gt=new WeakMap,ps=new WeakMap,hl=new WeakSet,ja=function(i){const c=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=c(this.state),Et.batch(()=>{C(this,fl).forEach(r=>{r.onMutationUpdate(i)}),C(this,Gt).notify({mutation:this,type:"updated",action:i})})},Kp);function k3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ql,Wn,Yc,Wp,D6=(Wp=class extends Ai{constructor(i={}){super();ce(this,ql);ce(this,Wn);ce(this,Yc);this.config=i,J(this,ql,new Set),J(this,Wn,new Map),J(this,Yc,0)}build(i,c,r){const d=new z6({client:i,mutationCache:this,mutationId:++po(this,Yc)._,options:i.defaultMutationOptions(c),state:r});return this.add(d),d}add(i){C(this,ql).add(i);const c=vo(i);if(typeof c=="string"){const r=C(this,Wn).get(c);r?r.push(i):C(this,Wn).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(C(this,ql).delete(i)){const c=vo(i);if(typeof c=="string"){const r=C(this,Wn).get(c);if(r)if(r.length>1){const d=r.indexOf(i);d!==-1&&r.splice(d,1)}else r[0]===i&&C(this,Wn).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){const c=vo(i);if(typeof c=="string"){const r=C(this,Wn).get(c),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===i}else return!0}runNext(i){var r;const c=vo(i);if(typeof c=="string"){const d=(r=C(this,Wn).get(c))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Et.batch(()=>{C(this,ql).forEach(i=>{this.notify({type:"removed",mutation:i})}),C(this,ql).clear(),C(this,Wn).clear()})}getAll(){return Array.from(C(this,ql))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>Pm(c,r))}findAll(i={}){return this.getAll().filter(c=>Pm(i,c))}notify(i){Et.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return Et.batch(()=>Promise.all(i.map(c=>c.continue().catch(Kt))))}},ql=new WeakMap,Wn=new WeakMap,Yc=new WeakMap,Wp);function vo(a){var i;return(i=a.options.scope)==null?void 0:i.id}var Fl,Ta,_n,Gl,Vl,wo,Zd,Jp,L6=(Jp=class extends Ai{constructor(c,r){super();ce(this,Vl);ce(this,Fl);ce(this,Ta);ce(this,_n);ce(this,Gl);J(this,Fl,c),this.setOptions(r),this.bindMethods(),Se(this,Vl,wo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var d;const r=this.options;this.options=C(this,Fl).defaultMutationOptions(c),Ao(this.options,r)||C(this,Fl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,_n),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&gs(r.mutationKey)!==gs(this.options.mutationKey)?this.reset():((d=C(this,_n))==null?void 0:d.state.status)==="pending"&&C(this,_n).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=C(this,_n))==null||c.removeObserver(this)}onMutationUpdate(c){Se(this,Vl,wo).call(this),Se(this,Vl,Zd).call(this,c)}getCurrentResult(){return C(this,Ta)}reset(){var c;(c=C(this,_n))==null||c.removeObserver(this),J(this,_n,void 0),Se(this,Vl,wo).call(this),Se(this,Vl,Zd).call(this)}mutate(c,r){var d;return J(this,Gl,r),(d=C(this,_n))==null||d.removeObserver(this),J(this,_n,C(this,Fl).getMutationCache().build(C(this,Fl),this.options)),C(this,_n).addObserver(this),C(this,_n).execute(c)}},Fl=new WeakMap,Ta=new WeakMap,_n=new WeakMap,Gl=new WeakMap,Vl=new WeakSet,wo=function(){var r;const c=((r=C(this,_n))==null?void 0:r.state)??k3();J(this,Ta,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},Zd=function(c){Et.batch(()=>{var r,d,f,_,v,h,m,g;if(C(this,Gl)&&this.hasListeners()){const x=C(this,Ta).variables,y=C(this,Ta).context,N={client:C(this,Fl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((c==null?void 0:c.type)==="success"){try{(d=(r=C(this,Gl)).onSuccess)==null||d.call(r,c.data,x,y,N)}catch(S){Promise.reject(S)}try{(_=(f=C(this,Gl)).onSettled)==null||_.call(f,c.data,null,x,y,N)}catch(S){Promise.reject(S)}}else if((c==null?void 0:c.type)==="error"){try{(h=(v=C(this,Gl)).onError)==null||h.call(v,c.error,x,y,N)}catch(S){Promise.reject(S)}try{(g=(m=C(this,Gl)).onSettled)==null||g.call(m,void 0,c.error,x,y,N)}catch(S){Promise.reject(S)}}}this.listeners.forEach(x=>{x(C(this,Ta))})})},Jp),ml,e3,k6=(e3=class extends Ai{constructor(i={}){super();ce(this,ml);this.config=i,J(this,ml,new Map)}build(i,c,r){const d=c.queryKey,f=c.queryHash??g2(d,c);let _=this.get(f);return _||(_=new R6({client:i,queryKey:d,queryHash:f,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(d)}),this.add(_)),_}add(i){C(this,ml).has(i.queryHash)||(C(this,ml).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=C(this,ml).get(i.queryHash);c&&(i.destroy(),c===i&&C(this,ml).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){Et.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return C(this,ml).get(i)}getAll(){return[...C(this,ml).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>Xm(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>Xm(i,r)):c}notify(i){Et.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ml=new WeakMap,e3),ht,Ra,Aa,ji,Si,Oa,Ni,wi,t3,B6=(t3=class{constructor(a={}){ce(this,ht);ce(this,Ra);ce(this,Aa);ce(this,ji);ce(this,Si);ce(this,Oa);ce(this,Ni);ce(this,wi);J(this,ht,a.queryCache||new k6),J(this,Ra,a.mutationCache||new D6),J(this,Aa,a.defaultOptions||{}),J(this,ji,new Map),J(this,Si,new Map),J(this,Oa,0)}mount(){po(this,Oa)._++,C(this,Oa)===1&&(J(this,Ni,_2.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,ht).onFocus())})),J(this,wi,Oo.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,ht).onOnline())})))}unmount(){var a,i;po(this,Oa)._--,C(this,Oa)===0&&((a=C(this,Ni))==null||a.call(this),J(this,Ni,void 0),(i=C(this,wi))==null||i.call(this),J(this,wi,void 0))}isFetching(a){return C(this,ht).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return C(this,Ra).findAll({...a,status:"pending"}).length}getQueryData(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=C(this,ht).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),c=C(this,ht).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(Ma(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return C(this,ht).findAll(a).map(({queryKey:i,state:c})=>{const r=c.data;return[i,r]})}setQueryData(a,i,c){const r=this.defaultQueryOptions({queryKey:a}),d=C(this,ht).get(r.queryHash),f=d==null?void 0:d.state.data,_=_6(i,f);if(_!==void 0)return C(this,ht).build(this,r).setData(_,{...c,manual:!0})}setQueriesData(a,i,c){return Et.batch(()=>C(this,ht).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=C(this,ht).get(i.queryHash))==null?void 0:c.state}removeQueries(a){const i=C(this,ht);Et.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=C(this,ht);return Et.batch(()=>(c.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const c={revert:!0,...i},r=Et.batch(()=>C(this,ht).findAll(a).map(d=>d.cancel(c)));return Promise.all(r).then(Kt).catch(Kt)}invalidateQueries(a,i={}){return Et.batch(()=>(C(this,ht).findAll(a).forEach(c=>{c.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=Et.batch(()=>C(this,ht).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,c);return c.throwOnError||(f=f.catch(Kt)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Kt)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=C(this,ht).build(this,i);return c.isStaleByTime(Ma(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Kt).catch(Kt)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Kt).catch(Kt)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Oo.isOnline()?C(this,Ra).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,ht)}getMutationCache(){return C(this,Ra)}getDefaultOptions(){return C(this,Aa)}setDefaultOptions(a){J(this,Aa,a)}setQueryDefaults(a,i){C(this,ji).set(gs(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...C(this,ji).values()],c={};return i.forEach(r=>{$c(a,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(a,i){C(this,Si).set(gs(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...C(this,Si).values()],c={};return i.forEach(r=>{$c(a,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...C(this,Aa).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=g2(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===v2&&(i.enabled=!1),i}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...C(this,Aa).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){C(this,ht).clear(),C(this,Ra).clear()}},ht=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,ji=new WeakMap,Si=new WeakMap,Oa=new WeakMap,Ni=new WeakMap,wi=new WeakMap,t3),B3=j.createContext(void 0),Vt=a=>{const i=j.useContext(B3);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},U6=({client:a,children:i})=>(j.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),l.jsx(B3.Provider,{value:a,children:i})),U3=j.createContext(!1),$6=()=>j.useContext(U3);U3.Provider;function H6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var q6=j.createContext(H6()),F6=()=>j.useContext(q6),G6=(a,i,c)=>{const r=c!=null&&c.state.error&&typeof a.throwOnError=="function"?x2(a.throwOnError,[c.state.error,c]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(i.isReset()||(a.retryOnMount=!1))},V6=a=>{j.useEffect(()=>{a.clearReset()},[a])},Q6=({result:a,errorResetBoundary:i,throwOnError:c,query:r,suspense:d})=>a.isError&&!i.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||x2(c,[a.error,r])),Y6=a=>{if(a.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>c(r(...d)):c(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},I6=(a,i)=>a.isLoading&&a.isFetching&&!i,X6=(a,i)=>(a==null?void 0:a.suspense)&&i.isPending,np=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function $3(a,i,c){var y,N,S,T;const r=$6(),d=F6(),f=Vt(),_=f.defaultQueryOptions(a);(N=(y=f.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||N.call(y,_);const v=f.getQueryCache().get(_.queryHash);_._optimisticResults=r?"isRestoring":"optimistic",Y6(_),G6(_,d,v),V6(d);const h=!f.getQueryCache().get(_.queryHash),[m]=j.useState(()=>new i(f,_)),g=m.getOptimisticResult(_),x=!r&&a.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(E=>{const z=x?m.subscribe(Et.batchCalls(E)):Kt;return m.updateResult(),z},[m,x]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),j.useEffect(()=>{m.setOptions(_)},[_,m]),X6(_,g))throw np(_,m,d);if(Q6({result:g,errorResetBoundary:d,throwOnError:_.throwOnError,query:v,suspense:_.suspense}))throw g.error;if((T=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||T.call(S,_,g),_.experimental_prefetchInRender&&!Hc.isServer()&&I6(g,r)){const E=h?np(_,m,d):v==null?void 0:v.promise;E==null||E.catch(Kt).finally(()=>{m.updateResult()})}return _.notifyOnChangeProps?g:m.trackResult(g)}function Tt(a,i){return $3(a,D3)}function ot(a,i){const c=Vt(),[r]=j.useState(()=>new L6(c,a));j.useEffect(()=>{r.setOptions(a)},[r,a]);const d=j.useSyncExternalStore(j.useCallback(_=>r.subscribe(Et.batchCalls(_)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=j.useCallback((_,v)=>{r.mutate(_,v).catch(Kt)},[r]);if(d.error&&x2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function P6(a,i){return $3(a,M6)}const H3="https://app.auth.elcsa.ru/v1";let Bc=null,ss=null;function b2(){Bc=null,ss=null}function _l(){return Bc?Promise.resolve(Bc):ss||(ss=fetch(`${H3}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>(Bc=a.token,ss=null,Bc)).catch(a=>{throw ss=null,a}),ss)}const Z6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:b2,getCsrfToken:_l},Symbol.toStringTag,{value:"Module"})),K6="modulepreload",W6=function(a){return"/"+a},lp={},J6=function(i,c,r){let d=Promise.resolve();if(c&&c.length>0){let _=function(m){return Promise.all(m.map(g=>Promise.resolve(g).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),h=(v==null?void 0:v.nonce)||(v==null?void 0:v.getAttribute("nonce"));d=_(c.map(m=>{if(m=W6(m),m in lp)return;lp[m]=!0;const g=m.endsWith(".css"),x=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${x}`))return;const y=document.createElement("link");if(y.rel=g?"stylesheet":K6,g||(y.as="script"),y.crossOrigin="",y.href=m,h&&y.setAttribute("nonce",h),document.head.appendChild(y),g)return new Promise((N,S)=>{y.addEventListener("load",N),y.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(_){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=_,window.dispatchEvent(v),!v.defaultPrevented)throw _}return d.then(_=>{for(const v of _||[])v.status==="rejected"&&f(v.reason);return i().catch(f)})};let _d=null;const Yn={get:()=>_d,set:a=>{_d=a},clear:()=>{_d=null}},eb="https://app.auth.elcsa.ru/v1/jwt/refresh";async function Oi(){const{getCsrfToken:a}=await J6(async()=>{const{getCsrfToken:d}=await Promise.resolve().then(()=>Z6);return{getCsrfToken:d}},[]),i=await a(),c=await fetch(eb,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!c.ok)throw new Error("Unauthorized");const r=await c.json();return r.access_token&&Yn.set(r.access_token),r.access_token??r.result??!0}const tb="https://app.payment.elcsa.ru";async function Mi(a,i,c){const r=await _l(),d=await fetch(`${tb}${a}`,{...i,credentials:"include",headers:{"X-CSRF-Token":r,...i.headers}});if(d.status===401&&c)try{return await Oi(),Mi(a,i,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function nb(){return Mi("/payment/config",{},!0)}function lb(a){return Mi(`/payment/quote?usdt_amount=${a}`,{},!0)}function ab(a){return Mi(`/payment/quote/rub?total_rub=${a}`,{},!0)}function sb(a){return Mi("/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}const Kd=20;function ib(a,i=Kd){return Mi(`/payment/orders?offset=${a}&limit=${i}`,{},!0)}function cb(){return Tt({queryKey:["payment","config"],queryFn:nb,staleTime:6e4})}function rb(a){return Tt({queryKey:["payment","quote",a],queryFn:()=>lb(a),enabled:a>0,staleTime:3e4,retry:!1})}function ob(a){return Tt({queryKey:["payment","quote","rub",a],queryFn:()=>ab(a),enabled:a>0,staleTime:3e4,retry:!1})}function ub(){return ot({mutationFn:sb,onSuccess:a=>{const i=a.order.itpay_payment_qr_url_desktop;i&&(window.location.href=i)}})}function db(){return P6({queryKey:["payment","orders"],queryFn:({pageParam:a})=>ib(a),initialPageParam:0,getNextPageParam:(a,i)=>{if(!(a.orders.length<Kd))return i.length*Kd},staleTime:3e4})}function Mo(a,i){const[c,r]=j.useState(a);return j.useEffect(()=>{const d=setTimeout(()=>r(a),i);return()=>clearTimeout(d)},[a,i]),c}const fb=new Date("2026-05-21T00:00:00").getTime(),q3=80,hb=21,gd=1e4,ap="Сумма слишком большая и превышает 600 000 ₽",sp=a=>a.replace(/[^0-9.]/g,"");function F3({rateFallback:a=0}={}){const[i,c]=j.useState("usdt_to_rub"),[r,d]=j.useState("1000"),[f,_]=j.useState(String(gd)),{data:v}=cb(),h=Number(v==null?void 0:v.usdt_exchange_rate)||a,m=Number(v==null?void 0:v.gas_fee)||hb,g=i==="usdt_to_rub",x=Number.parseFloat(r)||0,y=Mo(x,400),{data:N,isError:S}=rb(g?y:0),T=Number.parseFloat(f)||0,E=Mo(T,400),{data:z,isError:H}=ob(g?0:E),M=!g&&T>0&&T<gd,U=(N==null?void 0:N.total_price)??"",Y=Number(U)||0,ee=(z==null?void 0:z.usdt_amount)??"",q=Number(ee)||0,X=g?Number(N==null?void 0:N.service_fee)||0:Number(z==null?void 0:z.service_fee)||0,se=g?Y:T,pe=g?x>0?Y/x:0:q>0?T/q:0;function me(){c(ve=>ve==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const Ce=g?{value:r,currency:"USDT",onChange:ve=>d(sp(ve)),error:S?ap:void 0}:{value:f,currency:"RUB",onChange:ve=>_(sp(ve)),error:M?`Минимальная сумма: ${gd.toLocaleString("ru-RU")} ₽`:H?ap:void 0};return{isUsdtToRub:g,gasPriceRub:m,configUsdtRate:h,convert:Ce,pay:g?{value:U,currency:"RUB"}:{value:ee,currency:"USDT"},onSwap:me,commission:{amount:se,progress:e6(se),commission:X,effectiveRate:pe},numUsdt:x,usdtFromRubNum:q,rubTotal:U,rubTotalNum:Y,numRubInput:T,usdtFromRub:ee,rubBelowMin:M}}const oe={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",ADMIN:"/sys-c7f29a4e-d81b-4630-ops-console",ADMIN_ORGANIZATION:"/sys-c7f29a4e-d81b-4630-ops-console/organizations/:organizationId"},mb=a=>`/sys-c7f29a4e-d81b-4630-ops-console/organizations/${a}`,pb="_section_tz8mb_1",_b="_wrap_tz8mb_6",gb="_header_tz8mb_17",vb="_subtitle_tz8mb_26",xb="_pills_tz8mb_33",yb="_pill_tz8mb_33",bb="_pillValue_tz8mb_47",jb="_body_tz8mb_57",Sb="_tabs_tz8mb_63",Nb="_tab_tz8mb_63",wb="_payBtn_tz8mb_95",Tn={section:pb,wrap:_b,header:gb,subtitle:vb,pills:xb,pill:yb,pillValue:bb,body:jb,tabs:Sb,tab:Nb,payBtn:wb};function Cb(){const{gasPriceRub:a,configUsdtRate:i,convert:c,pay:r,onSwap:d,commission:f}=F3({rateFallback:q3});return l.jsx("section",{className:Tn.section,id:"converter",children:l.jsxs("div",{className:Tn.wrap,children:[l.jsxs("div",{className:Tn.header,children:[l.jsxs("div",{children:[l.jsx(S3,{children:"Конвертация"}),l.jsx("div",{className:Tn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:Tn.pills,children:[l.jsxs("div",{className:Tn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:Tn.pillValue,children:[a.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:Tn.pill,children:["USDT/RUB ",l.jsxs("span",{className:Tn.pillValue,children:[i.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:Tn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:Tn.tabs,children:l.jsx("div",{className:Tn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(To,{compact:!0,...c}),l.jsx(j3,{compact:!0,onClick:d}),l.jsx(To,{compact:!0,...r})]}),l.jsx(N3,{...f})]}),l.jsx(Wt,{to:oe.CONVERTER,className:Tn.payBtn,children:"Перейти к оплате"})]})})}const Eb="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",Tb="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",Rb="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",Ab="_footer_1qm30_1",Ob="_top_1qm30_11",Mb="_col_1qm30_18",zb="_heading_1qm30_35",Db="_companyName_1qm30_44",Lb="_phone_1qm30_51",kb="_email_1qm30_58",Bb="_socialIcons_1qm30_62",Ub="_socialLink_1qm30_67",$b="_divider_1qm30_94",Hb="_bottom_1qm30_99",Ft={footer:Ab,top:Ob,col:Mb,heading:zb,companyName:Db,phone:Lb,email:kb,socialIcons:Bb,socialLink:Ub,divider:$b,bottom:Hb},qb=[{href:"#",icon:Tb,label:"Telegram"},{href:"#",icon:Rb,label:"WhatsApp"},{href:"#",icon:Eb,label:"Instagram"}];function ys(){return l.jsxs("footer",{className:Ft.footer,children:[l.jsxs("div",{className:Ft.top,children:[l.jsxs("div",{className:Ft.col,children:[l.jsx("p",{className:Ft.companyName,children:"ООО «ЭКСА»"}),l.jsx("p",{children:"ИНН 9810001062"}),l.jsx("p",{children:"ОГРН 1257800060990"})]}),l.jsxs("div",{className:Ft.col,children:[l.jsx("h4",{className:Ft.heading,children:"О компании"}),l.jsx(Wt,{to:oe.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),l.jsx(Wt,{to:oe.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),l.jsx(Wt,{to:oe.POLITIKA_COOKIE,children:"Политика cookie"}),l.jsx(Wt,{to:oe.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),l.jsx(Wt,{to:oe.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),l.jsxs("div",{className:Ft.col,children:[l.jsx("p",{className:Ft.phone,children:"+7 (812) 123-33-23"}),l.jsx("h4",{className:Ft.heading,children:"Адрес"}),l.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),l.jsx("a",{href:"mailto:support@elcsa.ru",className:Ft.email,children:"support@elcsa.ru"})]}),l.jsxs("div",{className:Ft.col,children:[l.jsx("h4",{className:Ft.heading,children:"Мы в соцсетях"}),l.jsx("div",{className:Ft.socialIcons,children:qb.map(({href:a,icon:i,label:c})=>l.jsx("a",{href:a,className:Ft.socialLink,"aria-label":c,children:l.jsx("img",{src:i,alt:c})},c))})]})]}),l.jsx("div",{className:Ft.divider}),l.jsxs("div",{className:Ft.bottom,children:[l.jsx("p",{children:"© 2026. Все права защищены."}),l.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const pl="/assets/logo-full-white-DEb7oTyu.png",Fb="_nav_5011x_1",Gb="_logo_5011x_16",Vb="_right_5011x_22",Qb="_link_5011x_28",Yb="_btn_5011x_47",Rc={nav:Fb,logo:Gb,right:Vb,link:Qb,btn:Yb};function zi(){return l.jsxs("nav",{className:Rc.nav,children:[l.jsx("a",{className:Rc.logo,href:"/",children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsxs("div",{className:Rc.right,children:[l.jsx("a",{className:Rc.link,href:"#about",children:"О нас"}),l.jsx(Wt,{className:Rc.btn,to:oe.WALLET,children:"Личный кабинет"})]})]})}const Ib="_flow_1oxsf_1",Xb="_card_1oxsf_7",Pb="_cardRub_1oxsf_17",Zb="_cardEksa_1oxsf_27",Kb="_cardUsdt_1oxsf_37",Wb="_eksaLogo_1oxsf_47",Jb="_ghost_1oxsf_54",e5="_ghostBtc_1oxsf_69",t5="_ghostEth_1oxsf_74",n5="_logoCircle_1oxsf_79",l5="_logoRub_1oxsf_90",a5="_logoUsdt_1oxsf_95",s5="_badge_1oxsf_100",i5="_badgeRub_1oxsf_113",c5="_badgeUsdt_1oxsf_117",r5="_status_1oxsf_121",o5="_statusDot_1oxsf_132",u5="_path_1oxsf_139",ct={flow:Ib,card:Xb,cardRub:Pb,cardEksa:Zb,cardUsdt:Kb,eksaLogo:Wb,ghost:Jb,ghostBtc:e5,ghostEth:t5,logoCircle:n5,logoRub:l5,logoUsdt:a5,badge:s5,badgeRub:i5,badgeUsdt:c5,status:r5,statusDot:o5,path:u5};function d5(){return l.jsxs("div",{className:ct.flow,children:[l.jsx("div",{className:`${ct.ghost} ${ct.ghostBtc}`,children:l.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),l.jsx("div",{className:`${ct.ghost} ${ct.ghostEth}`,children:l.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),l.jsxs("div",{className:`${ct.card} ${ct.cardRub}`,children:[l.jsx("div",{className:`${ct.logoCircle} ${ct.logoRub}`,children:"₽"}),l.jsx("div",{className:`${ct.badge} ${ct.badgeRub}`,children:"10 000 ₽"})]}),l.jsx("div",{className:`${ct.card} ${ct.cardEksa}`,children:l.jsx("img",{src:pl,alt:"ЭКСА",className:ct.eksaLogo})}),l.jsxs("div",{className:`${ct.card} ${ct.cardUsdt}`,children:[l.jsx("div",{className:`${ct.logoCircle} ${ct.logoUsdt}`,children:"₮"}),l.jsx("div",{className:`${ct.badge} ${ct.badgeUsdt}`,children:"≈ 125.3 USDT"}),l.jsxs("div",{className:ct.status,children:[l.jsx("span",{className:ct.statusDot})," ✓ Зачислено"]})]}),l.jsxs("svg",{className:ct.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 f5(a){const[i,c]=j.useState(Date.now());j.useEffect(()=>{const f=setInterval(()=>c(Date.now()),1e3);return()=>clearInterval(f)},[]);const r=Math.max(0,a-i),d=f=>String(f).padStart(2,"0");return{d:d(Math.floor(r/864e5)),h:d(Math.floor(r%864e5/36e5)),m:d(Math.floor(r%36e5/6e4)),s:d(Math.floor(r%6e4/1e3))}}const h5="_label_ikzdd_1",m5="_row_ikzdd_8",p5="_unit_ikzdd_14",_5="_num_ikzdd_21",g5="_lbl_ikzdd_29",Ac={label:h5,row:m5,unit:p5,num:_5,lbl:g5},v5=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function x5({target:a}){const i=f5(a);return l.jsxs("div",{children:[l.jsx("div",{className:Ac.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),l.jsx("div",{className:Ac.row,children:v5.map(([c,r])=>l.jsxs("div",{className:Ac.unit,children:[l.jsx("div",{className:Ac.num,children:i[c]}),l.jsx("div",{className:Ac.lbl,children:r})]},c))})]})}const y5="_card_17ihg_51",b5="_statusPill_17ihg_84",j5="_statusDot_17ihg_99",S5="_flowRow_17ihg_107",N5="_curBlock_17ihg_114",w5="_curIcon_17ihg_122",C5="_rub_17ihg_133",E5="_usdt_17ihg_141",T5="_flowLine_17ihg_150",R5="_curAmount_17ihg_154",A5="_curLabel_17ihg_163",O5="_curCheck_17ihg_171",M5="_bridge_17ihg_182",z5="_bridgeLine_17ihg_191",D5="_bridgeLabel_17ihg_198",L5="_divider_17ihg_206",k5="_details_17ihg_212",B5="_detailRow_17ihg_220",U5="_detailLabel_17ihg_229",$5="_detailValue_17ihg_235",H5="_green_17ihg_242",Ve={card:y5,statusPill:b5,statusDot:j5,flowRow:S5,curBlock:N5,curIcon:w5,rub:C5,usdt:E5,flowLine:T5,curAmount:R5,curLabel:A5,curCheck:O5,bridge:M5,bridgeLine:z5,bridgeLabel:D5,divider:L5,details:k5,detailRow:B5,detailLabel:U5,detailValue:$5,green:H5};function q5(){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:pl,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:[q3.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 F5="_hero_mnobr_1",G5="_content_mnobr_33",V5="_left_mnobr_45",Q5="_desktop_mnobr_52",Y5="_mobile_mnobr_56",I5="_right_mnobr_60",X5="_title_mnobr_67",P5="_line2_mnobr_74",Z5="_reflection_mnobr_85",K5="_cta_mnobr_96",dl={hero:F5,content:G5,left:V5,desktop:Q5,mobile:Y5,right:I5,title:X5,line2:P5,reflection:Z5,cta:K5};function W5(){return l.jsx("section",{className:dl.hero,children:l.jsxs("div",{className:dl.content,children:[l.jsxs("div",{className:dl.left,children:[l.jsx("div",{className:dl.desktop,children:l.jsx(d5,{})}),l.jsx("div",{className:dl.mobile,children:l.jsx(q5,{})})]}),l.jsxs("div",{className:dl.right,children:[l.jsxs("h1",{className:dl.title,children:["Ваш мост",l.jsx("span",{className:dl.reflection,"aria-hidden":"true",children:"Ваш мост"}),l.jsxs("span",{className:dl.line2,children:["в мир",l.jsx("br",{}),"цифровых",l.jsx("br",{}),"активов"]})]}),l.jsxs("div",{children:[l.jsx(x5,{target:fb}),l.jsx("a",{href:"#converter",className:dl.cta,children:"Попробовать калькулятор"})]})]})]})})}const J5=[{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:"~2–15 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 сек"}],ej="_section_10lhb_1",tj="_wrap_10lhb_6",nj="_title_10lhb_11",lj="_tableWrap_10lhb_18",aj="_table_10lhb_18",sj="_name_10lhb_52",ij="_icon_10lhb_58",cj="_icon_btc_10lhb_71",rj="_icon_eth_10lhb_75",oj="_icon_trx_10lhb_79",uj="_icon_sol_10lhb_83",dj="_icon_bnb_10lhb_87",fj="_label_10lhb_91",hj="_ticker_10lhb_96",mj="_speedBar_10lhb_102",pj="_speedFill_10lhb_110",_j="_fee_10lhb_115",gj="_confirm_10lhb_121",vj="_footnote_10lhb_126",It={section:ej,wrap:tj,title:nj,tableWrap:lj,table:aj,name:sj,icon:ij,icon_btc:cj,icon_eth:rj,icon_trx:oj,icon_sol:uj,icon_bnb:dj,label:fj,ticker:hj,speedBar:mj,speedFill:pj,fee:_j,confirm:gj,footnote:vj};function xj(){return l.jsx("section",{className:It.section,children:l.jsxs("div",{className:It.wrap,children:[l.jsx("h2",{className:It.title,children:"Поддерживаемые сети"}),l.jsx("div",{className:It.tableWrap,children:l.jsxs("table",{className:It.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:J5.map(a=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsxs("div",{className:It.name,children:[l.jsx("div",{className:`${It.icon} ${It[`icon_${a.cls}`]}`,children:a.icon}),l.jsx("span",{className:It.label,children:a.name}),l.jsx("span",{className:It.ticker,children:a.ticker})]})}),l.jsx("td",{children:l.jsx("div",{className:It.speedBar,children:l.jsx("div",{className:It.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),l.jsx("td",{children:l.jsx("span",{className:It.fee,children:a.fee})}),l.jsx("td",{children:l.jsx("span",{className:It.confirm,children:a.confirm})})]},a.ticker))})]})}),l.jsx("div",{className:It.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function yj(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsxs("main",{children:[l.jsx(W5,{}),l.jsx(J4,{}),l.jsx(Cb,{}),l.jsx(xj,{})]}),l.jsx(ys,{})]})}async function Wd(a,i,c){const r=await _l(),d=Yn.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...i.headers},_=await fetch(`${H3}${a}`,{...i,credentials:"include",headers:f});if(_.status===401&&c)try{return await Oi(),Wd(a,i,!1)}catch{throw Yn.clear(),new Error("Unauthorized")}const v=await _.json();if(!_.ok)throw v;return v}const Pc={get:a=>Wd(a,{},!0),post:(a,i)=>Wd(a,{method:"POST",body:JSON.stringify(i)},!0)};function bj(a){return Pc.post("/auth/registration/start",a)}function jj(a){return Pc.post("/auth/registration/complete",a)}function Sj(a){return Pc.post("/auth/login/start",a)}function Nj(a){return Pc.post("/auth/login/complete",a)}async function wj(){const a=await _l();return Pc.post("/auth/logout",{_csrf:a})}const Zc="https://app.users.elcsa.ru";async function j2(){const a=await _l(),i=Yn.get();return{"X-CSRF-Token":a,...i?{Authorization:`Bearer ${i}`}:{}}}async function Cj(){const a=await j2(),i=await fetch(`${Zc}/me/`,{credentials:"include",headers:a}),c=await i.json();if(!i.ok)throw c;return c}async function Ej(a){const i=await j2(),c=await fetch(`${Zc}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(a)}),r=await c.json();if(!c.ok)throw r;return r}async function Tj(a){const i=await _l(),c=await fetch(`${Zc}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}async function Rj(a){const i=await j2(),c=await fetch(`${Zc}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify({phone:a})});if(!c.ok)throw await c.json().catch(()=>({}))}async function Aj(a){const i=await _l(),c=await fetch(`${Zc}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}function bs(a){return Tt({queryKey:["me"],queryFn:Cj,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function Oj(){const a=Vt();return ot({mutationFn:Ej,onSuccess:i=>{a.setQueryData(["me"],i)}})}function Mj(){const a=Vt();return ot({mutationFn:Rj,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const Ho=["auth"];function zj(){return Tt({queryKey:Ho,queryFn:Oi,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function G3(){const{data:a,isLoading:i,isError:c}=zj();return{isAuthenticated:!!a&&!c,isLoading:i}}const V3="https://app.cryptowallet.elcsa.ru",Q3=["ETH","BSC","BTC","TRX","SOL"];async function za(a,i=!0){const c=await _l(),r=Yn.get(),d=await fetch(`${V3}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await Oi(),za(a,!1)}catch{throw Yn.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function tl(a,i,c=!0,r={}){const d=await _l(),f=Yn.get(),_=await fetch(`${V3}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(_.status===401&&c)try{return await Oi(),tl(a,i,!1,r)}catch{throw Yn.clear(),new Error("Unauthorized")}const v=await _.json();if(!_.ok)throw v;return v}async function Dj(){return(await za("/api/wallets")).data}async function Lj(a){return(await za(`/api/wallets/${a}/balance`)).data}async function kj(a){return(await za(`/api/prices?symbols=${a.join(",")}`)).data}async function Bj(a,i){return tl(`/api/wallets/${a}/send`,i)}async function Uj(){return(await za("/api/wallets/portfolio")).data}async function $j(){return(await za("/api/tokens")).data}async function Hj(){var i;const a=await za("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((i=a.data)==null?void 0:i.tokens)??a.tokens??{}}async function qj(a){var r;const i=new URLSearchParams({fromChain:a.fromChain,toChain:a.toChain,fromToken:a.fromToken,toToken:a.toToken,fromAmount:a.fromAmount,fromAddress:a.fromAddress,toAddress:a.toAddress,slippage:String(a.slippage)}).toString(),c=await za(`/api/jumper/quote-best?${i}`);return((r=c.data)==null?void 0:r.body)??c.body??c}async function Fj(a){var c;const i=await tl("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((c=i.data)==null?void 0:c.data)??i}async function Gj(a){return tl("/api/relay/quote",a)}async function Vj(a){return tl("/api/relay/execute/swap",a)}async function Qj(a,i){const c=`relay-${a.toLowerCase()}-${Date.now()}`;return tl(`/api/wallets/${a}/sign-raw-evm-tx`,i,!0,{"Idempotency-Key":c})}async function Yj(a){return tl("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function Y3(a){return(await tl("/api/wallets/TRX/swap/quote",a)).data}async function Ij(a){return tl("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function Xj(){await tl("/api/wallets/create",{})}async function Pj(){return(await tl("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function zo(a){return Tt({queryKey:["wallet","balance",a],queryFn:()=>Lj(a),staleTime:3e4})}function Zj(a){return Tt({queryKey:["wallet","prices",a.join(",")],queryFn:()=>kj(a),staleTime:300*1e3})}function Kj(){return ot({mutationFn:({chain:a,...i})=>Bj(a,i)})}function qo(){return Tt({queryKey:["wallet","addresses"],queryFn:Dj,staleTime:600*1e3})}function Fo(){return Tt({queryKey:["wallet","portfolio"],queryFn:Uj,staleTime:3e4})}function Wj(){return Tt({queryKey:["wallet","tokens"],queryFn:$j,staleTime:600*1e3})}function Jj(){return Tt({queryKey:["wallet","jumper","tokens"],queryFn:Hj,staleTime:600*1e3})}function e8(){return ot({mutationFn:a=>qj(a)})}function t8(){return ot({mutationFn:a=>Fj(a)})}function n8(){return ot({mutationFn:Xj})}function l8(){return Tt({queryKey:["wallet","mnemonic"],queryFn:Pj,staleTime:1/0,retry:!1})}function I3(a){return Tt({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:()=>Gj(a),enabled:!!a,staleTime:1e4})}function a8(){return ot({mutationFn:a=>Vj(a)})}function s8(){return ot({mutationFn:({chain:a,txData:i})=>a==="SOL"?Yj(i):Qj(a,i)})}function i8(a){return Tt({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>Y3(a),enabled:!!a,staleTime:1e4})}function c8(){return ot({mutationFn:Y3})}function r8(){return ot({mutationFn:a=>Ij(a)})}const o8="_card_1kfaj_1",u8="_label_1kfaj_18",d8="_amount_1kfaj_27",f8="_actions_1kfaj_41",h8="_btn_1kfaj_46",Ja={card:o8,label:u8,amount:d8,actions:f8,btn:h8},m8="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",p8="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 _8(){const{data:a,isLoading:i}=Fo(),c=i||!a||a.totalUsd==null?"$—":`$${a.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:Ja.card,children:[l.jsxs("div",{className:Ja.left,children:[l.jsx("div",{className:Ja.label,children:"Общий баланс"}),l.jsx("div",{className:Ja.amount,children:c})]}),l.jsxs("div",{className:Ja.actions,children:[l.jsxs(Wt,{to:oe.CONVERTER,className:Ja.btn,type:"button",children:[l.jsx("img",{src:p8,alt:"swap"}),"Пополнить кошелёк"]}),l.jsxs(Wt,{to:oe.SWAP,className:Ja.btn,type:"button",children:[l.jsx("img",{src:m8,alt:"topup"}),"Своп / Бридж"]})]})]})}const g8="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",v8="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",x8="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",y8="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",b8="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",j8="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",S8="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",N8="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",w8="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",C8="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",E8="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",T8="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",R8="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",A8="/assets/popcat-DOGy5LFs.svg",O8="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",M8="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",z8="/assets/uni-C5oaqT41.svg",D8="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",L8="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",k8="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",B8="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",vt={BTC:g8,ETH:v8,SOL:x8,TRX:y8,BNB:b8,ARB:j8,BONK:S8,BUSD:N8,DAI:w8,DOGE:C8,JUP:E8,LINK:T8,ORCA:R8,POPCAT:A8,PYTH:O8,RAY:M8,UNI:z8,USDC:D8,USDT:L8,W:k8,WIF:B8};function X3(a){return vt[a.toUpperCase()]}function vs(a,i=8){const c=typeof a=="number"?a.toString():a,r=c.indexOf(".");return r===-1?c:c.slice(0,r+1+i)}const U8=[{ticker:"BTC",name:"Bitcoin",logo:vt.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:vt.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:vt.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:vt.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:vt.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],$8={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},H8={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},P3="#2A2D3A";function Z3(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function K3(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function W3(a){return U8.find(i=>i.ticker===a)}function J3(a,i){const c=$8[a],r=W3(c);return{id:`${a}-${c}`,chain:a,ticker:c,name:H8[a],logo:X3(c)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??P3,price:K3(i.usdPrice),change:0,bal:vs(i.formatted),usd:Z3(i.usdValue),usdValue:i.usdValue,fav:!1}}function e_(a,i,c){const r=W3(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:(r==null?void 0:r.name)??i,logo:X3(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??P3,price:K3(c.usdPrice),change:0,bal:vs(c.formatted),usd:Z3(c.usdValue),usdValue:c.usdValue,fav:!1}}function ip(a){return parseFloat(a.formatted)>0}function q8(a){const{data:i,isLoading:c}=zo(a);if(!i)return{rows:[],isLoading:c};const r=J3(a,i.native),d=Object.entries(i.tokens??{}).map(([f,_])=>e_(a,f,_));return{rows:[r,...d],isLoading:c}}function F8(){var r;const{data:a,isLoading:i}=Fo();if(!a)return{rows:[],isLoading:i};const c=[];for(const d of Q3){const f=(r=a.perChain)==null?void 0:r[d];if(!f)continue;const _=[];f.native&&ip(f.native)&&_.push(J3(d,f.native));for(const[v,h]of Object.entries(f.tokens??{}))ip(h)&&_.push(e_(d,v,h));_.sort((v,h)=>(h.usdValue??0)-(v.usdValue??0)),c.push(..._)}return{rows:c,isLoading:i}}const G8={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"]},V8={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}},Q8={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},Y8="_overlay_1hejd_1",I8="_dialog_1hejd_14",X8="_dialogIn_1hejd_1",P8="_header_1hejd_37",Z8="_title_1hejd_44",K8="_close_1hejd_50",W8="_selectsRow_1hejd_72",J8="_selectGroup_1hejd_79",e7="_selectLabel_1hejd_83",t7="_selectTrigger_1hejd_93",n7="_selectTriggerOpen_1hejd_112",l7="_selectValue_1hejd_117",a7="_chevron_1hejd_125",s7="_chevronOpen_1hejd_131",i7="_tokenDot_1hejd_137",c7="_speedDot_1hejd_158",r7="_speedDot_slow_1hejd_165",o7="_speedDot_normal_1hejd_170",u7="_speedDot_fast_1hejd_175",d7="_dropdown_1hejd_182",f7="_dropdownItem_1hejd_195",h7="_dropdownItemActive_1hejd_215",m7="_dropdownTicker_1hejd_220",p7="_dropdownName_1hejd_225",_7="_field_1hejd_233",g7="_fieldLabel_1hejd_237",v7="_input_1hejd_247",x7="_amountWrap_1hejd_283",y7="_amountInput_1hejd_287",b7="_amountTicker_1hejd_291",j7="_maxHint_1hejd_304",S7="_maxBtn_1hejd_314",N7="_errorMsg_1hejd_333",w7="_submitBtn_1hejd_346",de={overlay:Y8,dialog:I8,dialogIn:X8,header:P8,title:Z8,close:K8,selectsRow:W8,selectGroup:J8,selectLabel:e7,selectTrigger:t7,selectTriggerOpen:n7,selectValue:l7,chevron:a7,chevronOpen:s7,tokenDot:i7,speedDot:c7,speedDot_slow:r7,speedDot_normal:o7,speedDot_fast:u7,dropdown:d7,dropdownItem:f7,dropdownItemActive:h7,dropdownTicker:m7,dropdownName:p7,field:_7,fieldLabel:g7,input:v7,amountWrap:x7,amountInput:y7,amountTicker:b7,maxHint:j7,maxBtn:S7,errorMsg:N7,submitBtn:w7},cp=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function C7(a){var i;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const c=a;if(typeof c.message=="string")return c.message;if(typeof c.error=="string")return c.error;if(Array.isArray(c.detail)&&((i=c.detail[0])!=null&&i.msg))return String(c.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function E7({open:a,onClose:i,network:c,tokens:r=[],initialToken:d=""}){var Ce;const f=V8[c],_=G8[c],[v,h]=j.useState(d),[m,g]=j.useState("normal"),[x,y]=j.useState(""),[N,S]=j.useState(""),[T,E]=j.useState(null),z=Kj(),H=((Ce=cp.find(ue=>ue.value===m))==null?void 0:Ce.label)??"Нормально",M=v===""?f.nativeSymbol:v,U=r.find(ue=>ue.ticker===(v===""?f.nativeSymbol:v));if(j.useEffect(()=>{h(d)},[d]),j.useEffect(()=>{h("")},[c]),j.useEffect(()=>{z.isSuccess&&i()},[z.isSuccess,i]),j.useEffect(()=>{if(!a){y(""),S(""),E(null),z.reset();return}const ue=ve=>{ve.key==="Escape"&&i()};return document.addEventListener("keydown",ue),()=>document.removeEventListener("keydown",ue)},[a,i]),!a)return null;const Y=f.hasToken,ee=f.hasFeeTier,q=Y||ee,X=Y&&ee?2:1;function se(){T?E(null):i()}function pe(ue,ve){const[fe,$=""]=ue.split("."),I=$.slice(0,ve).padEnd(ve,"0");return(BigInt(fe||"0")*10n**BigInt(ve)+BigInt(I||"0")).toString()}function me(){const ve=v===""?pe(N,f.nativeDecimals):N;z.mutate({chain:c,to:x,amount:ve,...v?{token:v}:{},...f.hasFeeTier?{feeTier:m}:{}})}return l.jsx("div",{className:de.overlay,onClick:se,children:l.jsxs("div",{className:de.dialog,onClick:ue=>ue.stopPropagation(),children:[l.jsxs("div",{className:de.header,children:[l.jsxs("div",{className:de.headerLeft,children:[l.jsx("span",{className:de.chainDot,style:{background:f.color}}),l.jsxs("span",{className:de.title,children:["Отправить · ",f.label]})]}),l.jsx("button",{className:de.close,onClick:i,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:de.selectsRow,style:{gridTemplateColumns:`repeat(${X}, 1fr)`},children:[Y&&l.jsxs("div",{className:de.selectGroup,children:[l.jsx("label",{className:de.selectLabel,children:"Токен"}),l.jsxs("button",{type:"button",className:`${de.selectTrigger} ${T==="token"?de.selectTriggerOpen:""}`,onClick:()=>E(ue=>ue==="token"?null:"token"),children:[l.jsx("span",{className:de.tokenDot,style:{background:f.color},children:M[0]}),l.jsx("span",{className:de.selectValue,children:M}),l.jsx("svg",{className:`${de.chevron} ${T==="token"?de.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"})})]}),T==="token"&&l.jsxs("div",{className:de.dropdown,children:[l.jsxs("button",{type:"button",className:`${de.dropdownItem} ${v===""?de.dropdownItemActive:""}`,onClick:()=>{h(""),E(null)},children:[l.jsx("span",{className:de.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),l.jsx("span",{className:de.dropdownTicker,children:f.nativeSymbol}),l.jsx("span",{className:de.dropdownName,children:"Нативный"})]}),_.map(ue=>l.jsxs("button",{type:"button",className:`${de.dropdownItem} ${v===ue?de.dropdownItemActive:""}`,onClick:()=>{h(ue),E(null)},children:[l.jsx("span",{className:de.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:ue[0]}),l.jsx("span",{className:de.dropdownTicker,children:ue})]},ue))]})]}),ee&&l.jsxs("div",{className:de.selectGroup,children:[l.jsx("label",{className:de.selectLabel,children:"Скорость"}),l.jsxs("button",{type:"button",className:`${de.selectTrigger} ${T==="speed"?de.selectTriggerOpen:""}`,onClick:()=>E(ue=>ue==="speed"?null:"speed"),children:[l.jsx("span",{className:`${de.speedDot} ${de[`speedDot_${m}`]}`}),l.jsx("span",{className:de.selectValue,children:H}),l.jsx("svg",{className:`${de.chevron} ${T==="speed"?de.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"})})]}),T==="speed"&&l.jsx("div",{className:de.dropdown,children:cp.map(ue=>l.jsxs("button",{type:"button",className:`${de.dropdownItem} ${ue.value===m?de.dropdownItemActive:""}`,onClick:()=>{g(ue.value),E(null)},children:[l.jsx("span",{className:`${de.speedDot} ${de[`speedDot_${ue.value}`]}`}),l.jsx("span",{children:ue.label})]},ue.value))})]})]}),l.jsxs("div",{className:de.field,children:[l.jsx("label",{className:de.fieldLabel,children:"Адрес кошелька"}),l.jsx("input",{className:de.input,type:"text",placeholder:f.addressPlaceholder,value:x,onChange:ue=>y(ue.target.value),autoComplete:"off",spellCheck:!1})]}),l.jsxs("div",{className:de.field,children:[l.jsx("label",{className:de.fieldLabel,children:"Количество"}),l.jsxs("div",{className:de.amountWrap,children:[l.jsx("input",{className:`${de.input} ${de.amountInput}`,type:"number",placeholder:"0.00",value:N,onChange:ue=>S(ue.target.value),min:"0",step:"any"}),l.jsx("span",{className:de.amountTicker,children:M})]}),U&&l.jsxs("div",{className:de.maxHint,children:["Макс:"," ",l.jsxs("button",{type:"button",className:de.maxBtn,onClick:()=>S(U.bal),children:[U.bal," ",M]})]})]}),z.isError&&l.jsx("div",{className:de.errorMsg,children:C7(z.error)}),l.jsx("button",{className:de.submitBtn,type:"button",disabled:z.isPending,onClick:me,children:z.isPending?"Отправка…":"Отправить"})]})})}var T7=Object.defineProperty,Do=Object.getOwnPropertySymbols,t_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable,rp=(a,i,c)=>i in a?T7(a,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[i]=c,Jd=(a,i)=>{for(var c in i||(i={}))t_.call(i,c)&&rp(a,c,i[c]);if(Do)for(var c of Do(i))n_.call(i,c)&&rp(a,c,i[c]);return a},e2=(a,i)=>{var c={};for(var r in a)t_.call(a,r)&&i.indexOf(r)<0&&(c[r]=a[r]);if(a!=null&&Do)for(var r of Do(a))i.indexOf(r)<0&&n_.call(a,r)&&(c[r]=a[r]);return c};/**
|
||
* @license QR Code generator library (TypeScript)
|
||
* Copyright (c) Project Nayuki.
|
||
* SPDX-License-Identifier: MIT
|
||
*/var xs;(a=>{const i=class Oe{constructor(h,m,g,x){if(this.version=h,this.errorCorrectionLevel=m,this.modules=[],this.isFunction=[],h<Oe.MIN_VERSION||h>Oe.MAX_VERSION)throw new RangeError("Version value out of range");if(x<-1||x>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let y=[];for(let S=0;S<this.size;S++)y.push(!1);for(let S=0;S<this.size;S++)this.modules.push(y.slice()),this.isFunction.push(y.slice());this.drawFunctionPatterns();const N=this.addEccAndInterleave(g);if(this.drawCodewords(N),x==-1){let S=1e9;for(let T=0;T<8;T++){this.applyMask(T),this.drawFormatBits(T);const E=this.getPenaltyScore();E<S&&(x=T,S=E),this.applyMask(T)}}d(0<=x&&x<=7),this.mask=x,this.applyMask(x),this.drawFormatBits(x),this.isFunction=[]}static encodeText(h,m){const g=a.QrSegment.makeSegments(h);return Oe.encodeSegments(g,m)}static encodeBinary(h,m){const g=a.QrSegment.makeBytes(h);return Oe.encodeSegments([g],m)}static encodeSegments(h,m,g=1,x=40,y=-1,N=!0){if(!(Oe.MIN_VERSION<=g&&g<=x&&x<=Oe.MAX_VERSION)||y<-1||y>7)throw new RangeError("Invalid value");let S,T;for(S=g;;S++){const M=Oe.getNumDataCodewords(S,m)*8,U=_.getTotalBits(h,S);if(U<=M){T=U;break}if(S>=x)throw new RangeError("Data too long")}for(const M of[Oe.Ecc.MEDIUM,Oe.Ecc.QUARTILE,Oe.Ecc.HIGH])N&&T<=Oe.getNumDataCodewords(S,M)*8&&(m=M);let E=[];for(const M of h){c(M.mode.modeBits,4,E),c(M.numChars,M.mode.numCharCountBits(S),E);for(const U of M.getData())E.push(U)}d(E.length==T);const z=Oe.getNumDataCodewords(S,m)*8;d(E.length<=z),c(0,Math.min(4,z-E.length),E),c(0,(8-E.length%8)%8,E),d(E.length%8==0);for(let M=236;E.length<z;M^=253)c(M,8,E);let H=[];for(;H.length*8<E.length;)H.push(0);return E.forEach((M,U)=>H[U>>>3]|=M<<7-(U&7)),new Oe(S,m,H,y)}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 g=0;g<this.size;g++)this.setFunctionModule(6,g,g%2==0),this.setFunctionModule(g,6,g%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 g=0;g<m;g++)for(let x=0;x<m;x++)g==0&&x==0||g==0&&x==m-1||g==m-1&&x==0||this.drawAlignmentPattern(h[g],h[x]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const m=this.errorCorrectionLevel.formatBits<<3|h;let g=m;for(let y=0;y<10;y++)g=g<<1^(g>>>9)*1335;const x=(m<<10|g)^21522;d(x>>>15==0);for(let y=0;y<=5;y++)this.setFunctionModule(8,y,r(x,y));this.setFunctionModule(8,7,r(x,6)),this.setFunctionModule(8,8,r(x,7)),this.setFunctionModule(7,8,r(x,8));for(let y=9;y<15;y++)this.setFunctionModule(14-y,8,r(x,y));for(let y=0;y<8;y++)this.setFunctionModule(this.size-1-y,8,r(x,y));for(let y=8;y<15;y++)this.setFunctionModule(8,this.size-15+y,r(x,y));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let g=0;g<12;g++)h=h<<1^(h>>>11)*7973;const m=this.version<<12|h;d(m>>>18==0);for(let g=0;g<18;g++){const x=r(m,g),y=this.size-11+g%3,N=Math.floor(g/3);this.setFunctionModule(y,N,x),this.setFunctionModule(N,y,x)}}drawFinderPattern(h,m){for(let g=-4;g<=4;g++)for(let x=-4;x<=4;x++){const y=Math.max(Math.abs(x),Math.abs(g)),N=h+x,S=m+g;0<=N&&N<this.size&&0<=S&&S<this.size&&this.setFunctionModule(N,S,y!=2&&y!=4)}}drawAlignmentPattern(h,m){for(let g=-2;g<=2;g++)for(let x=-2;x<=2;x++)this.setFunctionModule(h+x,m+g,Math.max(Math.abs(x),Math.abs(g))!=1)}setFunctionModule(h,m,g){this.modules[m][h]=g,this.isFunction[m][h]=!0}addEccAndInterleave(h){const m=this.version,g=this.errorCorrectionLevel;if(h.length!=Oe.getNumDataCodewords(m,g))throw new RangeError("Invalid argument");const x=Oe.NUM_ERROR_CORRECTION_BLOCKS[g.ordinal][m],y=Oe.ECC_CODEWORDS_PER_BLOCK[g.ordinal][m],N=Math.floor(Oe.getNumRawDataModules(m)/8),S=x-N%x,T=Math.floor(N/x);let E=[];const z=Oe.reedSolomonComputeDivisor(y);for(let M=0,U=0;M<x;M++){let Y=h.slice(U,U+T-y+(M<S?0:1));U+=Y.length;const ee=Oe.reedSolomonComputeRemainder(Y,z);M<S&&Y.push(0),E.push(Y.concat(ee))}let H=[];for(let M=0;M<E[0].length;M++)E.forEach((U,Y)=>{(M!=T-y||Y>=S)&&H.push(U[M])});return d(H.length==N),H}drawCodewords(h){if(h.length!=Math.floor(Oe.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let m=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let x=0;x<this.size;x++)for(let y=0;y<2;y++){const N=g-y,T=(g+1&2)==0?this.size-1-x:x;!this.isFunction[T][N]&&m<h.length*8&&(this.modules[T][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 g=0;g<this.size;g++){let x;switch(h){case 0:x=(g+m)%2==0;break;case 1:x=m%2==0;break;case 2:x=g%3==0;break;case 3:x=(g+m)%3==0;break;case 4:x=(Math.floor(g/3)+Math.floor(m/2))%2==0;break;case 5:x=g*m%2+g*m%3==0;break;case 6:x=(g*m%2+g*m%3)%2==0;break;case 7:x=((g+m)%2+g*m%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[m][g]&&x&&(this.modules[m][g]=!this.modules[m][g])}}getPenaltyScore(){let h=0;for(let y=0;y<this.size;y++){let N=!1,S=0,T=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[y][E]==N?(S++,S==5?h+=Oe.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,T),N||(h+=this.finderPenaltyCountPatterns(T)*Oe.PENALTY_N3),N=this.modules[y][E],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,T)*Oe.PENALTY_N3}for(let y=0;y<this.size;y++){let N=!1,S=0,T=[0,0,0,0,0,0,0];for(let E=0;E<this.size;E++)this.modules[E][y]==N?(S++,S==5?h+=Oe.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,T),N||(h+=this.finderPenaltyCountPatterns(T)*Oe.PENALTY_N3),N=this.modules[E][y],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,T)*Oe.PENALTY_N3}for(let y=0;y<this.size-1;y++)for(let N=0;N<this.size-1;N++){const S=this.modules[y][N];S==this.modules[y][N+1]&&S==this.modules[y+1][N]&&S==this.modules[y+1][N+1]&&(h+=Oe.PENALTY_N2)}let m=0;for(const y of this.modules)m=y.reduce((N,S)=>N+(S?1:0),m);const g=this.size*this.size,x=Math.ceil(Math.abs(m*20-g*10)/g)-1;return d(0<=x&&x<=9),h+=x*Oe.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 g=[6];for(let x=this.size-7;g.length<h;x-=m)g.splice(1,0,x);return g}}static getNumRawDataModules(h){if(h<Oe.MIN_VERSION||h>Oe.MAX_VERSION)throw new RangeError("Version number out of range");let m=(16*h+128)*h+64;if(h>=2){const g=Math.floor(h/7)+2;m-=(25*g-10)*g-55,h>=7&&(m-=36)}return d(208<=m&&m<=29648),m}static getNumDataCodewords(h,m){return Math.floor(Oe.getNumRawDataModules(h)/8)-Oe.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h]*Oe.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 x=0;x<h-1;x++)m.push(0);m.push(1);let g=1;for(let x=0;x<h;x++){for(let y=0;y<m.length;y++)m[y]=Oe.reedSolomonMultiply(m[y],g),y+1<m.length&&(m[y]^=m[y+1]);g=Oe.reedSolomonMultiply(g,2)}return m}static reedSolomonComputeRemainder(h,m){let g=m.map(x=>0);for(const x of h){const y=x^g.shift();g.push(0),m.forEach((N,S)=>g[S]^=Oe.reedSolomonMultiply(N,y))}return g}static reedSolomonMultiply(h,m){if(h>>>8||m>>>8)throw new RangeError("Byte out of range");let g=0;for(let x=7;x>=0;x--)g=g<<1^(g>>>7)*285,g^=(m>>>x&1)*h;return d(g>>>8==0),g}finderPenaltyCountPatterns(h){const m=h[1];d(m<=this.size*3);const g=m>0&&h[2]==m&&h[3]==m*3&&h[4]==m&&h[5]==m;return(g&&h[0]>=m*4&&h[6]>=m?1:0)+(g&&h[6]>=m*4&&h[0]>=m?1:0)}finderPenaltyTerminateAndCount(h,m,g){return h&&(this.finderPenaltyAddHistory(m,g),m=0),m+=this.size,this.finderPenaltyAddHistory(m,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(h,m){m[0]==0&&(h+=this.size),m.pop(),m.unshift(h)}};i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],a.QrCode=i;function c(v,h,m){if(h<0||h>31||v>>>h)throw new RangeError("Value out of range");for(let g=h-1;g>=0;g--)m.push(v>>>g&1)}function r(v,h){return(v>>>h&1)!=0}function d(v){if(!v)throw new Error("Assertion error")}const f=class ft{constructor(h,m,g){if(this.mode=h,this.numChars=m,this.bitData=g,m<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(h){let m=[];for(const g of h)c(g,8,m);return new ft(ft.Mode.BYTE,h.length,m)}static makeNumeric(h){if(!ft.isNumeric(h))throw new RangeError("String contains non-numeric characters");let m=[];for(let g=0;g<h.length;){const x=Math.min(h.length-g,3);c(parseInt(h.substring(g,g+x),10),x*3+1,m),g+=x}return new ft(ft.Mode.NUMERIC,h.length,m)}static makeAlphanumeric(h){if(!ft.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let m=[],g;for(g=0;g+2<=h.length;g+=2){let x=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g))*45;x+=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g+1)),c(x,11,m)}return g<h.length&&c(ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g)),6,m),new ft(ft.Mode.ALPHANUMERIC,h.length,m)}static makeSegments(h){return h==""?[]:ft.isNumeric(h)?[ft.makeNumeric(h)]:ft.isAlphanumeric(h)?[ft.makeAlphanumeric(h)]:[ft.makeBytes(ft.toUtf8ByteArray(h))]}static makeEci(h){let m=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)c(h,8,m);else if(h<16384)c(2,2,m),c(h,14,m);else if(h<1e6)c(6,3,m),c(h,21,m);else throw new RangeError("ECI assignment value out of range");return new ft(ft.Mode.ECI,0,m)}static isNumeric(h){return ft.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return ft.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,m){let g=0;for(const x of h){const y=x.mode.numCharCountBits(m);if(x.numChars>=1<<y)return 1/0;g+=4+y+x.bitData.length}return g}static toUtf8ByteArray(h){h=encodeURI(h);let m=[];for(let g=0;g<h.length;g++)h.charAt(g)!="%"?m.push(h.charCodeAt(g)):(m.push(parseInt(h.substring(g+1,g+3),16)),g+=2);return m}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let _=f;a.QrSegment=f})(xs||(xs={}));(a=>{(i=>{const c=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};c.LOW=new c(0,1),c.MEDIUM=new c(1,0),c.QUARTILE=new c(2,3),c.HIGH=new c(3,2),i.Ecc=c})(a.QrCode||(a.QrCode={}))})(xs||(xs={}));(a=>{(i=>{const c=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};c.NUMERIC=new c(1,[10,12,14]),c.ALPHANUMERIC=new c(2,[9,11,13]),c.BYTE=new c(4,[8,16,16]),c.KANJI=new c(8,[8,10,12]),c.ECI=new c(7,[0,0,0]),i.Mode=c})(a.QrSegment||(a.QrSegment={}))})(xs||(xs={}));var fi=xs;/**
|
||
* @license qrcode.react
|
||
* Copyright (c) Paul O'Shannessy
|
||
* SPDX-License-Identifier: ISC
|
||
*/var R7={L:fi.QrCode.Ecc.LOW,M:fi.QrCode.Ecc.MEDIUM,Q:fi.QrCode.Ecc.QUARTILE,H:fi.QrCode.Ecc.HIGH},l_=128,a_="L",s_="#FFFFFF",i_="#000000",c_=!1,r_=1,A7=4,O7=0,M7=.1;function o_(a,i=0){const c=[];return a.forEach(function(r,d){let f=null;r.forEach(function(_,v){if(!_&&f!==null){c.push(`M${f+i} ${d+i}h${v-f}v1H${f+i}z`),f=null;return}if(v===r.length-1){if(!_)return;f===null?c.push(`M${v+i},${d+i} h1v1H${v+i}z`):c.push(`M${f+i},${d+i} h${v+1-f}v1H${f+i}z`);return}_&&f===null&&(f=v)})}),c.join("")}function u_(a,i){return a.slice().map((c,r)=>r<i.y||r>=i.y+i.h?c:c.map((d,f)=>f<i.x||f>=i.x+i.w?d:!1))}function z7(a,i,c,r){if(r==null)return null;const d=a.length+c*2,f=Math.floor(i*M7),_=d/i,v=(r.width||f)*_,h=(r.height||f)*_,m=r.x==null?a.length/2-v/2:r.x*_,g=r.y==null?a.length/2-h/2:r.y*_,x=r.opacity==null?1:r.opacity;let y=null;if(r.excavate){let S=Math.floor(m),T=Math.floor(g),E=Math.ceil(v+m-S),z=Math.ceil(h+g-T);y={x:S,y:T,w:E,h:z}}const N=r.crossOrigin;return{x:m,y:g,h,w:v,excavation:y,opacity:x,crossOrigin:N}}function D7(a,i){return i!=null?Math.max(Math.floor(i),0):a?A7:O7}function d_({value:a,level:i,minVersion:c,includeMargin:r,marginSize:d,imageSettings:f,size:_,boostLevel:v}){let h=Ct.useMemo(()=>{const S=(Array.isArray(a)?a:[a]).reduce((T,E)=>(T.push(...fi.QrSegment.makeSegments(E)),T),[]);return fi.QrCode.encodeSegments(S,R7[i],c,void 0,void 0,v)},[a,i,c,v]);const{cells:m,margin:g,numCells:x,calculatedImageSettings:y}=Ct.useMemo(()=>{let N=h.getModules();const S=D7(r,d),T=N.length+S*2,E=z7(N,_,S,f);return{cells:N,margin:S,numCells:T,calculatedImageSettings:E}},[h,_,f,r,d]);return{qrcode:h,margin:g,cells:m,numCells:x,calculatedImageSettings:y}}var L7=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),k7=Ct.forwardRef(function(i,c){const r=i,{value:d,size:f=l_,level:_=a_,bgColor:v=s_,fgColor:h=i_,includeMargin:m=c_,minVersion:g=r_,boostLevel:x,marginSize:y,imageSettings:N}=r,T=e2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:E}=T,z=e2(T,["style"]),H=N==null?void 0:N.src,M=Ct.useRef(null),U=Ct.useRef(null),Y=Ct.useCallback(ve=>{M.current=ve,typeof c=="function"?c(ve):c&&(c.current=ve)},[c]),[ee,q]=Ct.useState(!1),{margin:X,cells:se,numCells:pe,calculatedImageSettings:me}=d_({value:d,level:_,minVersion:g,boostLevel:x,includeMargin:m,marginSize:y,imageSettings:N,size:f});Ct.useEffect(()=>{if(M.current!=null){const ve=M.current,fe=ve.getContext("2d");if(!fe)return;let $=se;const I=U.current,ie=me!=null&&I!==null&&I.complete&&I.naturalHeight!==0&&I.naturalWidth!==0;ie&&me.excavation!=null&&($=u_(se,me.excavation));const Ee=window.devicePixelRatio||1;ve.height=ve.width=f*Ee;const Te=f/pe*Ee;fe.scale(Te,Te),fe.fillStyle=v,fe.fillRect(0,0,pe,pe),fe.fillStyle=h,L7?fe.fill(new Path2D(o_($,X))):se.forEach(function(R,V){R.forEach(function(Z,ne){Z&&fe.fillRect(ne+X,V+X,1,1)})}),me&&(fe.globalAlpha=me.opacity),ie&&fe.drawImage(I,me.x+X,me.y+X,me.w,me.h)}}),Ct.useEffect(()=>{q(!1)},[H]);const Ce=Jd({height:f,width:f},E);let ue=null;return H!=null&&(ue=Ct.createElement("img",{src:H,key:H,style:{display:"none"},onLoad:()=>{q(!0)},ref:U,crossOrigin:me==null?void 0:me.crossOrigin})),Ct.createElement(Ct.Fragment,null,Ct.createElement("canvas",Jd({style:Ce,height:f,width:f,ref:Y,role:"img"},z)),ue)});k7.displayName="QRCodeCanvas";var f_=Ct.forwardRef(function(i,c){const r=i,{value:d,size:f=l_,level:_=a_,bgColor:v=s_,fgColor:h=i_,includeMargin:m=c_,minVersion:g=r_,boostLevel:x,title:y,marginSize:N,imageSettings:S}=r,T=e2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:E,cells:z,numCells:H,calculatedImageSettings:M}=d_({value:d,level:_,minVersion:g,boostLevel:x,includeMargin:m,marginSize:N,imageSettings:S,size:f});let U=z,Y=null;S!=null&&M!=null&&(M.excavation!=null&&(U=u_(z,M.excavation)),Y=Ct.createElement("image",{href:S.src,height:M.h,width:M.w,x:M.x+E,y:M.y+E,preserveAspectRatio:"none",opacity:M.opacity,crossOrigin:M.crossOrigin}));const ee=o_(U,E);return Ct.createElement("svg",Jd({height:f,width:f,viewBox:`0 0 ${H} ${H}`,ref:c,role:"img"},T),!!y&&Ct.createElement("title",null,y),Ct.createElement("path",{fill:v,d:`M0,0 h${H}v${H}H0z`,shapeRendering:"crispEdges"}),Ct.createElement("path",{fill:h,d:ee,shapeRendering:"crispEdges"}),Y)});f_.displayName="QRCodeSVG";const B7="_overlay_1nlll_6",U7="_dialog_1nlll_18",$7="_header_1nlll_27",H7="_title_1nlll_34",q7="_closeBtn_1nlll_40",F7="_body_1nlll_55",G7="_qrWrap_1nlll_62",V7="_label_1nlll_71",Q7="_fieldRow_1nlll_77",Y7="_addressInput_1nlll_82",I7="_copyBtn_1nlll_101",X7="_copyBtnDone_1nlll_127",P7="_skeleton_1nlll_132",Z7="_error_1nlll_145",un={overlay:B7,dialog:U7,header:$7,title:H7,closeBtn:q7,body:F7,qrWrap:G7,label:V7,fieldRow:Q7,addressInput:Y7,copyBtn:I7,copyBtnDone:X7,skeleton:P7,error:Z7},K7={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function W7({open:a,onClose:i,chain:c}){const{data:r,isLoading:d,isError:f}=qo(),[_,v]=j.useState(!1);if(j.useEffect(()=>{if(!a)return;function y(N){N.key==="Escape"&&i()}return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[a,i]),j.useEffect(()=>{a||v(!1)},[a]),!a)return null;const h=r==null?void 0:r.find(y=>y.chain===c),m=(h==null?void 0:h.address)??"";function g(){m&&navigator.clipboard.writeText(m).then(()=>{v(!0),setTimeout(()=>v(!1),2e3)})}function x(y){y.target===y.currentTarget&&i()}return l.jsx("div",{className:un.overlay,onMouseDown:x,children:l.jsxs("div",{className:un.dialog,children:[l.jsxs("div",{className:un.header,children:[l.jsxs("span",{className:un.title,children:["Получить ",K7[c]]}),l.jsx("button",{className:un.closeBtn,type:"button",onClick:i,"aria-label":"Закрыть",children:"✕"})]}),l.jsxs("div",{className:un.body,children:[d&&l.jsx("div",{className:un.skeleton}),f&&l.jsx("p",{className:un.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&l.jsxs(l.Fragment,{children:[l.jsxs("label",{className:un.label,children:["Ваш ",c,"-адрес"]}),l.jsxs("div",{className:un.fieldRow,children:[l.jsx("input",{className:un.addressInput,type:"text",readOnly:!0,value:m,onFocus:y=>y.target.select()}),l.jsx("button",{className:`${un.copyBtn} ${_?un.copyBtnDone:""}`,type:"button",onClick:g,disabled:!m,children:_?"Скопировано!":"Копировать"})]}),m&&l.jsx("div",{className:un.qrWrap,children:l.jsx(f_,{value:m,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const J7="_wrap_uur6k_1",e9="_loading_uur6k_9",t9="_table_uur6k_14",n9="_thStar_uur6k_44",l9="_groupHeader_uur6k_49",a9="_groupHeaderInner_uur6k_58",s9="_groupLabel_uur6k_66",i9="_groupIcon_uur6k_77",c9="_groupTotal_uur6k_83",r9="_mobileGroupHeader_uur6k_90",o9="_right_uur6k_99",u9="_center_uur6k_103",d9="_btnGroup_uur6k_108",f9="_star_uur6k_114",h9="_starOn_uur6k_129",m9="_tokId_uur6k_133",p9="_tokLogo_uur6k_139",_9="_price_uur6k_174",g9="_balCol_uur6k_201",v9="_sendBtn_uur6k_214",x9="_receiveBtn_uur6k_237",y9="_noFont_uur6k_260",b9="_mobileList_uur6k_265",j9="_card_uur6k_269",S9="_cardInfo_uur6k_281",N9="_cardTop_uur6k_286",w9="_cardTicker_uur6k_293",C9="_cardName_uur6k_299",E9="_cardBalCrypto_uur6k_305",T9="_cardBot_uur6k_312",R9="_cardPrice_uur6k_318",A9="_cardBalUsd_uur6k_330",O9="_mobileActions_uur6k_351",ge={wrap:J7,loading:e9,table:t9,thStar:n9,groupHeader:l9,groupHeaderInner:a9,groupLabel:s9,groupIcon:i9,groupTotal:c9,mobileGroupHeader:r9,right:o9,center:u9,btnGroup:d9,star:f9,starOn:h9,tokId:m9,tokLogo:p9,price:_9,balCol:g9,sendBtn:v9,receiveBtn:x9,noFont:y9,mobileList:b9,card:j9,cardInfo:S9,cardTop:N9,cardTicker:w9,cardName:C9,cardBalCrypto:E9,cardBot:T9,cardPrice:R9,cardBalUsd:A9,mobileActions:O9},op={BTC:{label:"Bitcoin",icon:vt.BTC},ETH:{label:"Ethereum",icon:vt.ETH},SOL:{label:"Solana",icon:vt.SOL},TRX:{label:"Tron",icon:vt.TRX},BSC:{label:"BNB Chain",icon:vt.BNB}};function up(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function M9(a){const i=[],c=new Map;for(const r of a){const d=r.chain??"ETH";let f=c.get(d);f||(f={chain:d,rows:[],totalUsd:0},c.set(d,f),i.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return i}function dp(a){return a.id??a.ticker}function h_({rows:a,isLoading:i,fallbackChain:c="ETH",groupByChain:r=!1}){const[d,f]=j.useState({}),[_,v]=j.useState({open:!1,network:"ETH"}),[h,m]=j.useState({open:!1,chain:"ETH"});function g(q){return q.chain??Q8[q.ticker]??c}function x(q){v({open:!0,network:g(q)})}function y(){v(q=>({...q,open:!1}))}function N(q){m({open:!0,chain:g(q)})}function S(){m(q=>({...q,open:!1}))}function T(q){f(X=>({...X,[q]:!X[q]}))}const E=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 X=dp(q);return l.jsxs("tr",{children:[l.jsx("td",{children:l.jsx("button",{className:`${ge.star} ${d[X]?ge.starOn:""}`,onClick:()=>T(X),type:"button","aria-label":d[X]?"Убрать из избранного":"В избранное",children:"★"})}),l.jsx("td",{children:l.jsxs("div",{className:ge.tokId,children:[l.jsx("div",{className:ge.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:ge.balCol,children:[l.jsx("b",{className:ge.cardTicker,children:q.ticker}),l.jsx("span",{className:ge.noFont,children:q.name})]})]})}),l.jsx("td",{className:ge.right,children:l.jsx("span",{className:ge.price,children:q.price})}),l.jsx("td",{className:ge.right,children:l.jsxs("div",{className:ge.balCol,children:[l.jsx("b",{children:q.bal}),l.jsx("span",{children:q.usd})]})}),l.jsx("td",{className:ge.center,children:l.jsxs("div",{className:ge.btnGroup,children:[l.jsxs("button",{className:ge.receiveBtn,type:"button",onClick:se=>{se.stopPropagation(),N(q)},children:[z,"Получить"]}),l.jsxs("button",{className:ge.sendBtn,type:"button",onClick:se=>{se.stopPropagation(),x(q)},children:[E,"Отправить"]})]})})]},X)}function M(q){const X=dp(q);return l.jsxs("div",{className:ge.card,children:[l.jsx("button",{className:`${ge.star} ${d[X]?ge.starOn:""}`,onClick:()=>T(X),type:"button","aria-label":d[X]?"Убрать из избранного":"В избранное",children:"★"}),l.jsx("div",{className:ge.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:ge.cardInfo,children:[l.jsxs("div",{className:ge.cardTop,children:[l.jsxs("div",{children:[l.jsx("span",{className:ge.cardTicker,children:q.ticker}),l.jsx("span",{className:ge.cardName,children:q.name})]}),l.jsx("span",{className:ge.cardBalCrypto,children:q.bal})]}),l.jsxs("div",{className:ge.cardBot,children:[l.jsx("span",{className:ge.cardPrice,children:q.price}),l.jsx("span",{className:ge.cardBalUsd,children:q.usd})]})]})]},X)}function U(q){const X=op[q.chain];return l.jsx("tr",{className:ge.groupHeader,children:l.jsx("td",{colSpan:5,children:l.jsxs("div",{className:ge.groupHeaderInner,children:[l.jsxs("span",{className:ge.groupLabel,children:[l.jsx("img",{src:X.icon,alt:"",className:ge.groupIcon}),X.label]}),l.jsx("span",{className:ge.groupTotal,children:up(q.totalUsd)})]})})},`h-${q.chain}`)}function Y(q){const X=op[q.chain];return l.jsxs("div",{className:ge.mobileGroupHeader,children:[l.jsxs("span",{className:ge.groupLabel,children:[l.jsx("img",{src:X.icon,alt:"",className:ge.groupIcon}),X.label]}),l.jsx("span",{className:ge.groupTotal,children:up(q.totalUsd)})]},`mh-${q.chain}`)}const ee=r?M9(a):null;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:`${ge.wrap} ${i?ge.loading:""}`,children:[l.jsxs("table",{className:ge.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:ge.thStar,children:"☆"}),l.jsx("th",{children:"Токены"}),l.jsx("th",{className:ge.right,children:"Цена"}),l.jsx("th",{className:ge.right,children:"Баланс"}),l.jsx("th",{className:ge.center})]})}),l.jsx("tbody",{children:ee?ee.map(q=>l.jsxs(j.Fragment,{children:[U(q),q.rows.map(H)]},q.chain)):a.map(H)})]}),l.jsx("div",{className:ge.mobileList,children:ee?ee.map(q=>l.jsxs(j.Fragment,{children:[Y(q),q.rows.map(M)]},q.chain)):a.map(M)})]}),l.jsxs("div",{className:ge.mobileActions,children:[l.jsxs("button",{className:ge.receiveBtn,type:"button",onClick:()=>a[0]&&N(a[0]),children:[z,"Получить"]}),l.jsxs("button",{className:ge.sendBtn,type:"button",onClick:()=>a[0]&&x(a[0]),children:[E,"Отправить"]})]}),l.jsx(E7,{open:_.open,onClose:y,network:_.network,tokens:a}),l.jsx(W7,{open:h.open,onClose:S,chain:h.chain})]})}function z9({chain:a}){const{rows:i,isLoading:c}=q8(a);return l.jsx(h_,{rows:i,isLoading:c,fallbackChain:a})}function D9(){const{rows:a,isLoading:i}=F8();return l.jsx(h_,{rows:a,isLoading:i,groupByChain:!0})}const L9="_nav_ip34n_1",k9="_logo_ip34n_11",B9="_ticker_ip34n_16",U9="_tick_ip34n_16",$9="_accountWrapper_ip34n_42",H9="_account_ip34n_42",q9="_dropdown_ip34n_56",F9="_dropdownItem_ip34n_70",G9="_danger_ip34n_89",V9="_avatar_ip34n_93",dn={nav:L9,logo:k9,ticker:B9,tick:U9,accountWrapper:$9,account:H9,dropdown:q9,dropdownItem:F9,danger:G9,avatar:V9},fp=["BTC","ETH","SOL"],Q9=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function Y9(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function Go(){const[a,i]=j.useState(!1),[c,r]=j.useState(!1),d=j.useRef(null),f=en(),_=Vt(),{data:v}=bs(),{data:h}=Zj(fp),m=v?[v.first_name,v.middle_name].filter(Boolean).map(Q9).join(" "):"",{mutate:g}=ot({mutationFn:wj,onSuccess:()=>{Yn.clear(),_.setQueryData(Ho,null),f(oe.HOME)},onError:()=>r(!0)});j.useEffect(()=>{function y(N){d.current&&!d.current.contains(N.target)&&i(!1)}return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);function x(){g(),i(!1)}return l.jsxs(l.Fragment,{children:[l.jsxs("nav",{className:dn.nav,children:[l.jsx("a",{href:"/",className:dn.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("div",{className:dn.ticker,children:fp.map(y=>{var N;return l.jsxs("div",{className:dn.tick,children:[l.jsx("b",{children:y}),l.jsx("span",{children:Y9((N=h==null?void 0:h[y])==null?void 0:N.usd)})]},y)})}),l.jsxs("div",{className:dn.accountWrapper,ref:d,children:[l.jsxs("button",{className:dn.account,onClick:()=>i(y=>!y),children:[v!=null&&v.avatar_link?l.jsx("img",{src:v.avatar_link,alt:"",className:dn.avatar}):l.jsx("div",{className:dn.avatar}),l.jsx("span",{children:m||"Test account"})]}),a&&l.jsxs("div",{className:dn.dropdown,children:[l.jsx(Wt,{to:oe.PROFILE,className:dn.dropdownItem,onClick:()=>i(!1),children:"Личный кабинет"}),l.jsx(Wt,{to:oe.WALLET,className:dn.dropdownItem,onClick:()=>i(!1),children:"Кошелёк"}),l.jsx(Wt,{to:oe.TRANSACTIONS,className:dn.dropdownItem,onClick:()=>i(!1),children:"Транзакции"}),l.jsx("button",{className:`${dn.dropdownItem} ${dn.danger}`,onClick:x,children:"Выйти"})]})]})]}),c&&l.jsx(Yl,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const I9="_tabs_1ne0a_1",X9="_tab_1ne0a_1",P9="_active_1ne0a_31",Z9="_icon_1ne0a_37",es={tabs:I9,tab:X9,active:P9,icon:Z9},K9=[{chain:"BTC",label:"BTC",icon:vt.BTC},{chain:"ETH",label:"ETH",icon:vt.ETH},{chain:"SOL",label:"SOL",icon:vt.SOL},{chain:"TRX",label:"TRX",icon:vt.TRX},{chain:"BSC",label:"BSC",icon:vt.BNB}],W9=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 J9(){return l.jsxs("div",{className:es.tabs,children:[l.jsxs(Ld,{to:"/wallet",end:!0,className:({isActive:a})=>`${es.tab} ${a?es.active:""}`,children:[l.jsx("span",{className:es.icon,children:W9}),l.jsx("span",{children:"Все монеты"})]}),K9.map(a=>l.jsxs(Ld,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:i})=>`${es.tab} ${i?es.active:""}`,children:[l.jsx("img",{src:a.icon,alt:a.label,className:es.icon}),l.jsx("span",{children:a.label})]},a.chain))]})}const eS="_page_10fz2_1",tS="_main_10fz2_8",nS="_glow_10fz2_17",lS="_error_10fz2_29",aS="_noWallet_10fz2_38",Oc={page:eS,main:tS,glow:nS,error:lS,noWallet:aS};function hp(){var x;const{data:a,isLoading:i,isError:c}=bs(),{error:r}=Fo(),{mutate:d,isPending:f}=n8(),_=en(),{chain:v}=p3(),h=(x=r==null?void 0:r.error)==null?void 0:x.includes("No wallets");if(i)return null;if(c)return l.jsx("div",{className:Oc.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return l.jsx(Uo,{to:oe.KYC,replace:!0});const m=v==null?void 0:v.toUpperCase(),g=m&&Q3.includes(m)?m:void 0;return l.jsxs("div",{className:Oc.page,children:[l.jsx(Go,{}),l.jsxs("main",{className:Oc.main,children:[l.jsx("div",{className:Oc.glow}),h?l.jsxs("div",{className:Oc.noWallet,children:[l.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),l.jsx(Jt,{variant:"outline",onClick:()=>d(void 0,{onSuccess:()=>_(oe.SEED_PHRASE)}),disabled:f,children:f?"Создание...":"Создать кошелёк"})]}):l.jsxs(l.Fragment,{children:[l.jsx(_8,{}),l.jsx(J9,{}),g?l.jsx(z9,{chain:g}):l.jsx(D9,{})]})]})]})}const m_=vt.BTC,p_=vt.ETH,__=vt.SOL,g_=vt.TRX,v_=vt.ARB,t2={BTC:{symbol:"BTC",letter:"₿",logo:m_,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:p_,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:__,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:g_,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:v_,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}},sS=Object.values(t2),n2={BTC:{letter:"₿",logo:m_,color:"#F7931A"},ETH:{letter:"E",logo:p_,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:__,color:"#9945FF"},TRX:{letter:"T",logo:g_,color:"#FF060A"},ARB:{letter:"A",logo:v_,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"}},iS={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function x_(a){const i=[],c=iS[a.chain]??a.chain,r=n2[c];i.push({symbol:c,letter:(r==null?void 0:r.letter)??c[0],color:(r==null?void 0:r.color)??"#888",logo:r==null?void 0:r.logo,network:a.chain,balance:parseFloat(a.native.formatted),usdRate:a.native.usdPrice,decimals:a.native.decimals});for(const[d,f]of Object.entries(a.tokens??{})){const _=n2[d];i.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 i}const mp=82.2578;function y_(){const[a,i]=j.useState("0"),[c,r]=j.useState(t2.SOL),[d,f]=j.useState(t2.USDC),[_,v]=j.useState(!1),h=parseFloat(a)||0,m=(h*mp).toFixed(4),g=(h*c.usdRate).toFixed(2),x=(h*mp*d.usdRate).toFixed(2);function y(E){i(E)}function N(E){i((c.balance*E/100).toFixed(4))}function S(){r(d),f(c)}function T(){v(!0),setTimeout(()=>v(!1),400)}return{fromAmount:a,toAmount:m,fromUsd:g,toUsd:x,fromToken:c,toToken:d,isRefreshing:_,setFromAmount:y,setPercent:N,swapTokens:S,refreshRate:T,setFromToken:r,setToToken:f}}const cS="_wrap_18yiu_1",rS="_trigger_18yiu_6",oS="_name_18yiu_22",uS="_chevron_18yiu_29",dS="_chevronOpen_18yiu_37",fS="_dropdown_18yiu_41",hS="_dropdownWrapper_18yiu_47",mS="_option_18yiu_60",pS="_optionActive_18yiu_78",_S="_optionInfo_18yiu_82",gS="_optionSymbol_18yiu_90",vS="_optionNetwork_18yiu_96",xS="_check_18yiu_103",yS="_triggerCompact_18yiu_110",bS="_nameCompact_18yiu_116",Xt={wrap:cS,trigger:rS,name:oS,chevron:uS,chevronOpen:dS,dropdown:fS,dropdownWrapper:hS,option:mS,optionActive:pS,optionInfo:_S,optionSymbol:gS,optionNetwork:vS,check:xS,triggerCompact:yS,nameCompact:bS};function pp({value:a,options:i,onChange:c,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 v(h){c(h),f(!1)}return l.jsxs("div",{className:Xt.wrap,ref:_,children:[l.jsxs("button",{className:`${Xt.trigger} ${r?Xt.triggerCompact:""}`,onClick:()=>f(h=>!h),children:[l.jsx(Vm,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),l.jsx("span",{className:`${Xt.name} ${r?Xt.nameCompact:""}`,children:a.symbol}),l.jsx("span",{className:`${Xt.chevron} ${d?Xt.chevronOpen:""}`,children:"▾"})]}),d&&l.jsx("div",{className:Xt.dropdownWrapper,children:l.jsx("div",{className:Xt.dropdown,children:i.map(h=>l.jsxs("button",{className:`${Xt.option} ${h.symbol===a.symbol?Xt.optionActive:""}`,onClick:()=>v(h),children:[l.jsx(Vm,{letter:h.letter,color:h.color,logo:h.logo,size:32}),l.jsxs("div",{className:Xt.optionInfo,children:[l.jsx("span",{className:Xt.optionSymbol,children:h.symbol}),l.jsx("span",{className:Xt.optionNetwork,children:h.network})]}),h.symbol===a.symbol&&l.jsx("span",{className:Xt.check,children:"✓"})]},h.symbol))})})]})}const jS="_wrapper_19brp_1",SS="_pillsOuter_19brp_8",NS="_card_19brp_13",wS="_top_19brp_20",CS="_label_19brp_33",ES="_networkPills_19brp_54",TS="_networkBtn_19brp_60",RS="_networkBtnActive_19brp_79",AS="_pillsInner_19brp_85",OS="_pill_19brp_8",MS="_selectTop_19brp_109",zS="_selectMid_19brp_113",DS="_mid_19brp_118",LS="_input_19brp_126",kS="_display_19brp_142",BS="_int_19brp_151",US="_dec_19brp_156",$S="_bottom_19brp_161",HS="_usd_19brp_167",qS="_balance_19brp_176",FS="_max_19brp_184",_t={wrapper:jS,pillsOuter:SS,card:NS,top:wS,label:CS,networkPills:ES,networkBtn:TS,networkBtnActive:RS,pillsInner:AS,pill:OS,selectTop:MS,selectMid:zS,mid:DS,input:LS,display:kS,int:BS,dec:US,bottom:$S,usd:HS,balance:qS,max:FS},GS=["ETH","BSC","TRX","SOL"],VS=[25,50,100];function Lo({mode:a,token:i,tokenOptions:c,amount:r,usd:d,onTokenChange:f,onAmountChange:_,onSetPercent:v,selectedNetwork:h,onNetworkChange:m,hideNetworkSelect:g}){const[x,y]=vs(r,8).split("."),N=v&&l.jsx(l.Fragment,{children:VS.map(S=>l.jsxs("button",{className:_t.pill,onClick:()=>v(S),children:[S,"%"]},S))});return l.jsxs("div",{className:_t.wrapper,children:[a==="from"&&N&&l.jsx("div",{className:_t.pillsOuter,children:N}),l.jsxs("div",{className:_t.card,children:[l.jsxs("div",{className:_t.top,children:[l.jsx("div",{className:_t.label,children:a==="from"&&!g&&l.jsx("div",{className:_t.networkPills,children:GS.map(S=>l.jsx("button",{className:`${_t.networkBtn} ${S===h?_t.networkBtnActive:""}`,onClick:()=>m==null?void 0:m(S),children:S},S))})}),a==="from"&&N&&l.jsx("div",{className:_t.pillsInner,children:N}),l.jsx("div",{className:_t.selectTop,children:l.jsx(pp,{value:i,options:c,onChange:f,compact:!0})})]}),l.jsxs("div",{className:_t.mid,children:[a==="from"?l.jsx("input",{className:_t.input,type:"text",value:r,onChange:S=>{const T=S.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(T)||T==="")&&(_==null||_(T))},placeholder:"0"}):l.jsxs("div",{className:_t.display,children:[l.jsx("span",{className:_t.int,children:x}),y&&l.jsxs("span",{className:_t.dec,children:[".",y]})]}),l.jsx("div",{className:_t.selectMid,children:l.jsx(pp,{value:i,options:c,onChange:f})})]}),l.jsxs("div",{className:_t.bottom,children:[d&&l.jsxs("span",{className:_t.usd,children:["≈ $",d]}),l.jsxs("span",{className:_t.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"})]}),vs(i.balance,8),a==="from"&&v&&l.jsx("button",{className:_t.max,onClick:()=>v(100),children:"МАКС"})]})]})]})]})}const QS="_wrap_wqzoz_1",YS="_line_wqzoz_11",IS="_circle_wqzoz_19",vd={wrap:QS,line:YS,circle:IS};function XS({onClick:a}){const[i,c]=j.useState(!1);function r(){c(!0),setTimeout(()=>c(!1),300),a()}return l.jsxs("div",{className:vd.wrap,children:[l.jsx("div",{className:vd.line}),l.jsx("button",{className:vd.circle,style:{transform:i?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const PS="_panel_16d4z_1",ZS="_row_16d4z_10",KS="_label_16d4z_22",WS="_value_16d4z_30",JS="_link_16d4z_36",Mc={panel:PS,row:ZS,label:KS,value:WS,link:JS};function eN({gasFee:a}){const i=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1}];return l.jsx("div",{className:Mc.panel,children:i.map(({label:c,value:r,link:d})=>l.jsxs("div",{className:Mc.row,children:[l.jsx("span",{className:Mc.label,children:c}),l.jsx("span",{className:`${Mc.value} ${d?Mc.link:""}`,children:r})]},c))})}const tN="_overlay_2rqh7_1",nN="_card_2rqh7_12",lN="_header_2rqh7_24",aN="_title_2rqh7_30",sN="_closeBtn_2rqh7_36",iN="_flow_2rqh7_51",cN="_token_2rqh7_57",rN="_tokenLabel_2rqh7_67",oN="_tokenAmount_2rqh7_75",uN="_tokenUsd_2rqh7_81",dN="_arrow_2rqh7_86",fN="_details_2rqh7_93",hN="_row_2rqh7_99",mN="_rowLabel_2rqh7_105",pN="_rowValue_2rqh7_110",_N="_impact_2rqh7_116",gN="_warning_2rqh7_120",vN="_confirmBtn_2rqh7_132",Xe={overlay:tN,card:nN,header:lN,title:aN,closeBtn:sN,flow:iN,token:cN,tokenLabel:rN,tokenAmount:oN,tokenUsd:uN,arrow:dN,details:fN,row:hN,rowLabel:mN,rowValue:pN,impact:_N,warning:gN,confirmBtn:vN};function xN({data:a,insufficientBalance:i,onConfirm:c,onClose:r}){const{details:d,fees:f}=a,{currencyIn:_,currencyOut:v,totalImpact:h,rate:m}=d,g=parseFloat(h.percent),x=parseFloat(m).toFixed(4);return l.jsx("div",{className:Xe.overlay,onClick:r,children:l.jsxs("div",{className:Xe.card,onClick:y=>y.stopPropagation(),children:[l.jsxs("div",{className:Xe.header,children:[l.jsx("span",{className:Xe.title,children:"Подтвердить своп"}),l.jsx("button",{className:Xe.closeBtn,onClick:r,children:"×"})]}),l.jsxs("div",{className:Xe.flow,children:[l.jsxs("div",{className:Xe.token,children:[l.jsx("span",{className:Xe.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:Xe.tokenAmount,children:[_.amountFormatted," ",_.currency.symbol]}),l.jsxs("span",{className:Xe.tokenUsd,children:["≈ $",_.amountUsd]})]}),l.jsx("div",{className:Xe.arrow,children:"↓"}),l.jsxs("div",{className:Xe.token,children:[l.jsx("span",{className:Xe.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:Xe.tokenAmount,children:[v.amountFormatted," ",v.currency.symbol]}),l.jsxs("span",{className:Xe.tokenUsd,children:["≈ $",v.amountUsd]})]})]}),l.jsxs("div",{className:Xe.details,children:[l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Курс"}),l.jsxs("span",{className:Xe.rowValue,children:["1 ",_.currency.symbol," = ",x," ",v.currency.symbol]})]}),l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:Xe.rowValue,children:["$",f.gas.amountUsd]})]}),l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Влияние на цену"}),l.jsxs("span",{className:`${Xe.rowValue} ${g<0?Xe.impact:""}`,children:[h.percent,"%"]})]})]}),i&&l.jsx("p",{className:Xe.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:Xe.confirmBtn,onClick:c,children:"Подтвердить"})]})})}const yN="_overlay_1rpvx_1",bN="_card_1rpvx_12",jN="_header_1rpvx_24",SN="_title_1rpvx_30",NN="_closeBtn_1rpvx_36",wN="_flow_1rpvx_51",CN="_token_1rpvx_57",EN="_tokenLabel_1rpvx_67",TN="_tokenAmount_1rpvx_75",RN="_minOut_1rpvx_81",AN="_arrow_1rpvx_86",ON="_details_1rpvx_93",MN="_row_1rpvx_99",zN="_rowLabel_1rpvx_105",DN="_rowValue_1rpvx_110",LN="_warning_1rpvx_116",kN="_confirmBtn_1rpvx_128",St={overlay:yN,card:bN,header:jN,title:SN,closeBtn:NN,flow:wN,token:CN,tokenLabel:EN,tokenAmount:TN,minOut:RN,arrow:AN,details:ON,row:MN,rowLabel:zN,rowValue:DN,warning:LN,confirmBtn:kN};function BN({quote:a,fromSymbol:i,toSymbol:c,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:_}){const{expectedOutFormatted:v,minOutFormatted:h,fees:m}=a;return l.jsx("div",{className:St.overlay,onClick:_,children:l.jsxs("div",{className:St.card,onClick:g=>g.stopPropagation(),children:[l.jsxs("div",{className:St.header,children:[l.jsx("span",{className:St.title,children:"Подтвердить своп"}),l.jsx("button",{className:St.closeBtn,onClick:_,children:"×"})]}),l.jsxs("div",{className:St.flow,children:[l.jsxs("div",{className:St.token,children:[l.jsx("span",{className:St.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:St.tokenAmount,children:[r," ",i]})]}),l.jsx("div",{className:St.arrow,children:"↓"}),l.jsxs("div",{className:St.token,children:[l.jsx("span",{className:St.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:St.tokenAmount,children:[v," ",c]}),l.jsxs("span",{className:St.minOut,children:["Минимум: ",h," ",c]})]})]}),l.jsx("div",{className:St.details,children:l.jsxs("div",{className:St.row,children:[l.jsx("span",{className:St.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:St.rowValue,children:[m.network.amountFormatted," ",m.network.asset," (≈$",m.network.amountUsd,")"]})]})}),d&&l.jsx("p",{className:St.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:St.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const UN="_form_1fk2f_1",$N={form:UN},HN={ETH:1,BSC:56,SOL:792703809},_p={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function gp(a){return _p[a]??_p.DEFAULT}function qN(){var Xl,we,Qt,vl;const a=en(),i=Vt(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:_,setPercent:v,swapTokens:h,setFromToken:m,setToToken:g}=y_(),[x,y]=j.useState("ETH"),[N,S]=j.useState(null),[T,E]=j.useState(null),[z,H]=j.useState(null),M=x==="TRX",{data:U}=zo(x),Y=U?x_(U):sS;j.useEffect(()=>{Y.length!==0&&(m(Ke=>Y.find(tn=>tn.symbol===Ke.symbol)??Y[0]),g(Ke=>Y.find(tn=>tn.symbol===Ke.symbol)??Y[1]??Y[0]))},[U,x]);const ee=Mo(c,500),{data:q}=qo(),{data:X}=Wj(),se=parseFloat(ee),pe=HN[x],me=(Xl=q==null?void 0:q.find(Ke=>Ke.chain===x))==null?void 0:Xl.address,Ce=((we=X==null?void 0:X.find(Ke=>Ke.chain===x&&Ke.symbol===d.symbol))==null?void 0:we.contract)??gp(x),ue=((Qt=X==null?void 0:X.find(Ke=>Ke.chain===x&&Ke.symbol===f.symbol))==null?void 0:Qt.contract)??gp(x),ve=!M&&pe&&me&&se>0?{user:me,recipient:me,originChainId:pe,destinationChainId:pe,originCurrency:Ce,destinationCurrency:ue,amount:Math.round(se*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:fe}=I3(ve),{mutate:$,isPending:I}=a8(),{mutate:ie,isPending:Ee}=s8(),Te=M&&se>0?{from:d.symbol,to:f.symbol,amountHuman:ee}:null,{data:R}=i8(Te),{mutate:V,isPending:Z}=c8(),{mutate:ne,isPending:_e}=r8(),be=Ee||_e,De=(parseFloat(c)||0)>d.balance,Nt=M?(R==null?void 0:R.expectedOutFormatted)??"0":(fe==null?void 0:fe.details.currencyOut.amountFormatted)??"0",tt=M||fe==null?void 0:fe.details.currencyOut.amountUsd,ll=M?(vl=R==null?void 0:R.fees.network.amountUsd)==null?void 0:vl.toString():fe==null?void 0:fe.fees.gas.amountUsd,gl=M?se<=0||Z:!ve||I;function Il(){if(M){if(!Te)return;V(Te,{onSuccess:Ke=>E(Ke)})}else{if(!ve)return;$(ve,{onSuccess:Ke=>S(Ke)})}}return l.jsxs("div",{className:$N.form,children:[l.jsx(Lo,{mode:"from",token:d,tokenOptions:Y,amount:c,usd:r,onAmountChange:_,onSetPercent:v,onTokenChange:m,selectedNetwork:x,onNetworkChange:y}),l.jsx(XS,{onClick:h}),l.jsx(Lo,{mode:"to",token:f,tokenOptions:Y,amount:Nt,usd:tt,onTokenChange:g}),l.jsx(eN,{gasFee:ll}),l.jsx(On,{label:I||Z?"Загрузка...":void 0,onClick:Il,disabled:gl}),N&&l.jsx(xN,{data:N,insufficientBalance:De,onClose:()=>S(null),onConfirm:()=>{var tn,js;const Ke=(js=(tn=N.steps[0])==null?void 0:tn.items[0])==null?void 0:js.data;Ke&&(H(null),ie({chain:x,txData:Ke},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",x]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(oe.WALLET)},onError:Ss=>{H(Ss instanceof Error?Ss.message:"Не удалось подписать транзакцию")}})),S(null)}}),T&&l.jsx(BN,{quote:T,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:c,insufficientBalance:De,onClose:()=>E(null),onConfirm:()=>{H(null),ne(T.quoteId,{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance","TRX"]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(oe.WALLET)},onError:Ke=>{H(Ke instanceof Error?Ke.message:"Не удалось выполнить свап")}}),E(null)}}),be&&l.jsx(Yl,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),z&&l.jsx(Yl,{status:"error",message:z,onClose:()=>H(null)})]})}const FN="_tabs_1sxhr_1",GN="_tab_1sxhr_1",VN="_active_1sxhr_19",QN="_inactive_1sxhr_24",ts={tabs:FN,tab:GN,active:VN,inactive:QN};function b_({active:a}){const i=en();return l.jsxs("div",{className:ts.tabs,children:[l.jsx("button",{className:`${ts.tab} ${a==="swap"?ts.active:ts.inactive}`,onClick:()=>i(oe.SWAP),children:"СВОП"}),l.jsx("button",{className:`${ts.tab} ${a==="bridge"?ts.active:ts.inactive}`,onClick:()=>i(oe.BRIDGE),children:"БРИДЖ"})]})}const YN="_content_1pe49_1",IN={content:YN};function XN(){return l.jsxs(l.Fragment,{children:[l.jsx(b_,{active:"swap"}),l.jsx("div",{className:IN.content,children:l.jsx(qN,{})})]})}function vp(a,i){const[c,r=""]=a.split("."),d=r.slice(0,i).padEnd(i,"0");return`${c}${d}`.replace(/^0+(?=\d)/,"")||"0"}function l2(a,i){const c=a.padStart(i+1,"0"),r=c.slice(0,c.length-i),d=c.slice(c.length-i).replace(/0+$/,"");return d?`${r}.${d}`:r}const PN="_wrap_njjv3_1",ZN="_label_njjv3_9",KN="_select_njjv3_18",xd={wrap:PN,label:ZN,select:KN};function xp({label:a,value:i,onChange:c,options:r}){return l.jsxs("div",{className:xd.wrap,children:[l.jsx("span",{className:xd.label,children:a}),l.jsx("select",{className:xd.select,value:i,onChange:d=>c(d.target.value),children:r.map(d=>l.jsx("option",{value:d,children:d},d))})]})}const WN="_overlay_13tuw_1",JN="_card_13tuw_12",ew="_header_13tuw_24",tw="_title_13tuw_30",nw="_closeBtn_13tuw_36",lw="_flow_13tuw_51",aw="_token_13tuw_57",sw="_tokenLabel_13tuw_67",iw="_tokenAmount_13tuw_75",cw="_minOut_13tuw_81",rw="_arrow_13tuw_86",ow="_details_13tuw_93",uw="_row_13tuw_99",dw="_rowLabel_13tuw_105",fw="_rowValue_13tuw_110",hw="_warning_13tuw_116",mw="_confirmBtn_13tuw_128",rt={overlay:WN,card:JN,header:ew,title:tw,closeBtn:nw,flow:lw,token:aw,tokenLabel:sw,tokenAmount:iw,minOut:cw,arrow:rw,details:ow,row:uw,rowLabel:dw,rowValue:fw,warning:hw,confirmBtn:mw};function pw({quote:a,fromAmountHuman:i,insufficientBalance:c,isExecuting:r,onConfirm:d,onClose:f}){const{action:_,estimate:v,toolDetails:h}=a,m=_.toToken.symbol,g=_.fromToken.symbol,x=vs(l2(v.toAmount,_.toToken.decimals),8),y=vs(l2(v.toAmountMin,_.toToken.decimals),8),N=(v.feeCosts??[]).reduce((S,T)=>S+(parseFloat(T.amountUSD)||0),0).toFixed(2);return l.jsx("div",{className:rt.overlay,onClick:f,children:l.jsxs("div",{className:rt.card,onClick:S=>S.stopPropagation(),children:[l.jsxs("div",{className:rt.header,children:[l.jsx("span",{className:rt.title,children:"Подтвердить бридж"}),l.jsx("button",{className:rt.closeBtn,onClick:f,children:"×"})]}),l.jsxs("div",{className:rt.flow,children:[l.jsxs("div",{className:rt.token,children:[l.jsx("span",{className:rt.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:rt.tokenAmount,children:[i," ",g]})]}),l.jsx("div",{className:rt.arrow,children:"↓"}),l.jsxs("div",{className:rt.token,children:[l.jsx("span",{className:rt.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:rt.tokenAmount,children:[x," ",m]}),l.jsxs("span",{className:rt.minOut,children:["Минимум: ",y," ",m]})]})]}),l.jsxs("div",{className:rt.details,children:[l.jsxs("div",{className:rt.row,children:[l.jsx("span",{className:rt.rowLabel,children:"Комиссия"}),l.jsxs("span",{className:rt.rowValue,children:["≈$",N]})]}),l.jsxs("div",{className:rt.row,children:[l.jsx("span",{className:rt.rowLabel,children:"Мост"}),l.jsx("span",{className:rt.rowValue,children:h.name})]})]}),c&&l.jsx("p",{className:rt.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),l.jsx("button",{className:rt.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const _w="_form_htwuf_1",yp={form:_w},yd=["ETH","BSC","SOL","TRX","BTC"],di={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},gw=Object.fromEntries(Object.entries(di).map(([a,i])=>[i,a])),bp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function vw(a){const i=n2[a.symbol];return{symbol:a.symbol,letter:(i==null?void 0:i.letter)??a.symbol[0],color:(i==null?void 0:i.color)??"#888",logo:a.logoURI??(i==null?void 0:i.logo),network:gw[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function xw(a){const i={};for(const c of x_(a))i[c.symbol]=c.balance;return i}function yw(){var ll,gl,Il,Xl;const a=en(),i=Vt(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:_,setPercent:v,setFromToken:h,setToToken:m}=y_(),[g,x]=j.useState("ETH"),[y,N]=j.useState("BSC"),[S,T]=j.useState(null),[E,z]=j.useState(null),{data:H}=Jj(),{data:M}=zo(g),{data:U}=zo(y),{data:Y}=qo(),{mutate:ee,isPending:q}=e8(),{mutate:X,isPending:se}=t8();function pe(we,Qt){const vl=((H==null?void 0:H[di[we]])??[]).map(vw);if(!Qt)return vl;const Ke=xw(Qt);return vl.map(tn=>Ke[tn.symbol]!=null?{...tn,balance:Ke[tn.symbol]}:tn)}const me=pe(g,M),Ce=pe(y,U);j.useEffect(()=>{me.length!==0&&h(we=>me.find(Qt=>Qt.symbol===we.symbol)??me[0])},[H,M,g]),j.useEffect(()=>{Ce.length!==0&&m(we=>Ce.find(Qt=>Qt.symbol===we.symbol)??Ce[0])},[H,U,y]);const ue=parseFloat(c),ve=(ue||0)>d.balance,fe=(ll=H==null?void 0:H[di[g]])==null?void 0:ll.find(we=>we.symbol===d.symbol),$=(gl=H==null?void 0:H[di[y]])==null?void 0:gl.find(we=>we.symbol===f.symbol),I=(Il=Y==null?void 0:Y.find(we=>we.chain===g))==null?void 0:Il.address,ie=(Xl=Y==null?void 0:Y.find(we=>we.chain===y))==null?void 0:Xl.address,Ee=fe&&$&&I&&ie&&ue>0?{fromChain:di[g],toChain:di[y],fromToken:fe.address,toToken:$.address,fromAmount:vp(c,d.decimals),fromAddress:I,toAddress:ie,slippage:.005}:null,Te=Mo(c,500),R=parseFloat(Te),V=bp[g],Z=bp[y],ne=fe&&$&&I&&ie&&V&&Z&&R>0?{user:I,recipient:ie,originChainId:V,destinationChainId:Z,originCurrency:fe.address,destinationCurrency:$.address,amount:vp(Te,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:_e}=I3(ne),be=_e?_e.details.currencyOut.amountFormatted:S?vs(l2(S.estimate.toAmount,S.action.toToken.decimals),8):"0";function De(we){x(we),we===y&&N(yd.find(Qt=>Qt!==we)??y)}function Nt(){Ee&&(z(null),ee(Ee,{onSuccess:we=>T(we),onError:we=>z(we instanceof Error?we.message:"Не удалось получить котировку")}))}function tt(){S&&(z(null),X({provider:"jumper",fromChain:S.action.fromChainId,toChain:S.action.toChainId,fromToken:S.action.fromToken.address,toToken:S.action.toToken.address,fromAmount:S.action.fromAmount,fromAddress:S.action.fromAddress,toAddress:S.action.toAddress,acceptedMinOut:S.estimate.toAmountMin},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",g]}),i.invalidateQueries({queryKey:["wallet","balance",y]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),T(null),a(oe.WALLET)},onError:we=>z(we instanceof Error?we.message:"Не удалось выполнить бридж")}))}return H?l.jsxs("div",{className:yp.form,children:[l.jsx(xp,{label:"ИЗ",value:g,onChange:De,options:yd}),l.jsx(Lo,{mode:"from",token:d,tokenOptions:me,amount:c,usd:r,onAmountChange:_,onSetPercent:v,onTokenChange:h,hideNetworkSelect:!0}),l.jsx(xp,{label:"В",value:y,onChange:N,options:yd.filter(we=>we!==g)}),l.jsx(Lo,{mode:"to",token:f,tokenOptions:Ce,amount:be,onTokenChange:m,hideNetworkSelect:!0}),l.jsx(On,{label:q?"Загрузка...":"Подтвердить бридж",onClick:Nt,disabled:!Ee||q}),S&&l.jsx(pw,{quote:S,fromAmountHuman:c,insufficientBalance:ve,isExecuting:se,onConfirm:tt,onClose:()=>T(null)}),E&&l.jsx(Yl,{status:"error",message:E,onClose:()=>z(null)})]}):l.jsx("div",{className:yp.form})}const bw="_content_1pe49_1",jw={content:bw};function Sw(){return l.jsxs(l.Fragment,{children:[l.jsx(b_,{active:"bridge"}),l.jsx("div",{className:jw.content,children:l.jsx(yw,{})})]})}var a2=function(a,i){return a2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(c[d]=r[d])},a2(a,i)};function Nw(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");a2(a,i);function c(){this.constructor=a}a.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var Dt=function(){return Dt=Object.assign||function(i){for(var c,r=1,d=arguments.length;r<d;r++){c=arguments[r];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i},Dt.apply(this,arguments)};var bd,jp;function ww(){if(jp)return bd;jp=1;var a=!1,i,c,r,d,f,_,v,h,m,g,x,y,N,S,T;function E(){if(!a){a=!0;var H=navigator.userAgent,M=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(H),U=/(Mac OS X)|(Windows)|(Linux)/.exec(H);if(y=/\b(iPhone|iP[ao]d)/.exec(H),N=/\b(iP[ao]d)/.exec(H),g=/Android/i.exec(H),S=/FBAN\/\w+;/i.exec(H),T=/Mobile/i.exec(H),x=!!/Win64/.exec(H),M){i=M[1]?parseFloat(M[1]):M[5]?parseFloat(M[5]):NaN,i&&document&&document.documentMode&&(i=document.documentMode);var Y=/(?:Trident\/(\d+.\d+))/.exec(H);_=Y?parseFloat(Y[1])+4:i,c=M[2]?parseFloat(M[2]):NaN,r=M[3]?parseFloat(M[3]):NaN,d=M[4]?parseFloat(M[4]):NaN,d?(M=/(?:Chrome\/(\d+\.\d+))/.exec(H),f=M&&M[1]?parseFloat(M[1]):NaN):f=NaN}else i=c=r=f=d=NaN;if(U){if(U[1]){var ee=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(H);v=ee?parseFloat(ee[1].replace("_",".")):!0}else v=!1;h=!!U[2],m=!!U[3]}else v=h=m=!1}}var z={ie:function(){return E()||i},ieCompatibilityMode:function(){return E()||_>i},ie64:function(){return z.ie()&&x},firefox:function(){return E()||c},opera:function(){return E()||r},webkit:function(){return E()||d},safari:function(){return z.webkit()},chrome:function(){return E()||f},windows:function(){return E()||h},osx:function(){return E()||v},linux:function(){return E()||m},iphone:function(){return E()||y},mobile:function(){return E()||y||N||g||T},nativeApp:function(){return E()||S},android:function(){return E()||g},ipad:function(){return E()||N}};return bd=z,bd}var jd,Sp;function Cw(){if(Sp)return jd;Sp=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),i={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return jd=i,jd}var Sd,Np;function Ew(){if(Np)return Sd;Np=1;var a=Cw(),i;a.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/function c(r,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,_=f in document;if(!_){var v=document.createElement("div");v.setAttribute(f,"return;"),_=typeof v[f]=="function"}return!_&&i&&r==="wheel"&&(_=document.implementation.hasFeature("Events.wheel","3.0")),_}return Sd=c,Sd}var Nd,wp;function Tw(){if(wp)return Nd;wp=1;var a=ww(),i=Ew(),c=10,r=40,d=800;function f(_){var v=0,h=0,m=0,g=0;return"detail"in _&&(h=_.detail),"wheelDelta"in _&&(h=-_.wheelDelta/120),"wheelDeltaY"in _&&(h=-_.wheelDeltaY/120),"wheelDeltaX"in _&&(v=-_.wheelDeltaX/120),"axis"in _&&_.axis===_.HORIZONTAL_AXIS&&(v=h,h=0),m=v*c,g=h*c,"deltaY"in _&&(g=_.deltaY),"deltaX"in _&&(m=_.deltaX),(m||g)&&_.deltaMode&&(_.deltaMode==1?(m*=r,g*=r):(m*=d,g*=d)),m&&!v&&(v=m<1?-1:1),g&&!h&&(h=g<1?-1:1),{spinX:v,spinY:h,pixelX:m,pixelY:g}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},Nd=f,Nd}var wd,Cp;function Rw(){return Cp||(Cp=1,wd=Tw()),wd}var Aw=Rw();const Ow=n3(Aw);function Mw(a,i,c,r,d,f){f===void 0&&(f=0);var _=Ci(a,i,f),v=_.width,h=_.height,m=Math.min(v,c),g=Math.min(h,r);return m>g*d?{width:g*d,height:g}:{width:m,height:m/d}}function zw(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function zc(a,i,c,r,d){d===void 0&&(d=0);var f=Ci(i.width,i.height,d),_=f.width,v=f.height;return{x:Ep(a.x,_,c.width,r),y:Ep(a.y,v,c.height,r)}}function Ep(a,i,c,r){var d=Math.abs(i*r/2-c/2);return Vo(a,-d,d)}function Tp(a,i){return Math.sqrt(Math.pow(a.y-i.y,2)+Math.pow(a.x-i.x,2))}function Rp(a,i){return Math.atan2(i.y-a.y,i.x-a.x)*180/Math.PI}function Dw(a,i,c,r,d,f,_){f===void 0&&(f=0),_===void 0&&(_=!0);var v=_?Lw:kw,h=Ci(i.width,i.height,f),m=Ci(i.naturalWidth,i.naturalHeight,f),g={x:v(100,((h.width-c.width/d)/2-a.x/d)/h.width*100),y:v(100,((h.height-c.height/d)/2-a.y/d)/h.height*100),width:v(100,c.width/h.width*100/d),height:v(100,c.height/h.height*100/d)},x=Math.round(v(m.width,g.width*m.width/100)),y=Math.round(v(m.height,g.height*m.height/100)),N=m.width>=m.height*r,S=N?{width:Math.round(y*r),height:y}:{width:x,height:Math.round(x/r)},T=Dt(Dt({},S),{x:Math.round(v(m.width-S.width,g.x*m.width/100)),y:Math.round(v(m.height-S.height,g.y*m.height/100))});return{croppedAreaPercentages:g,croppedAreaPixels:T}}function Lw(a,i){return Math.min(a,Math.max(0,i))}function kw(a,i){return i}function Bw(a,i,c,r,d,f){var _=Ci(i.width,i.height,c),v=Vo(r.width/_.width*(100/a.width),d,f),h={x:v*_.width/2-r.width/2-_.width*v*(a.x/100),y:v*_.height/2-r.height/2-_.height*v*(a.y/100)};return{crop:h,zoom:v}}function Uw(a,i,c){var r=zw(i);return c.height>c.width?c.height/(a.height*r):c.width/(a.width*r)}function $w(a,i,c,r,d,f){c===void 0&&(c=0);var _=Ci(i.naturalWidth,i.naturalHeight,c),v=Vo(Uw(a,i,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:v}}function Ap(a,i){return{x:(i.x+a.x)/2,y:(i.y+a.y)/2}}function Hw(a){return a*Math.PI/180}function Ci(a,i,c){var r=Hw(c);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*i),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*i)}}function Vo(a,i,c){return Math.min(Math.max(a,i),c)}function xo(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return a.filter(function(c){return typeof c=="string"&&c.length>0}).join(" ").trim()}var qw=`.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;
|
||
}
|
||
`,Fw=1,Gw=3,Vw=1,Qw=(function(a){Nw(i,a);function i(){var c=a!==null&&a.apply(this,arguments)||this;return c.cropperRef=j.createRef(),c.imageRef=j.createRef(),c.videoRef=j.createRef(),c.containerPosition={x:0,y:0},c.containerRef=null,c.styleRef=null,c.containerRect=null,c.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},c.dragStartPosition={x:0,y:0},c.dragStartCrop={x:0,y:0},c.gestureZoomStart=0,c.gestureRotationStart=0,c.isTouching=!1,c.lastPinchDistance=0,c.lastPinchRotation=0,c.rafDragTimeout=null,c.rafPinchTimeout=null,c.wheelTimer=null,c.currentDoc=typeof document<"u"?document:null,c.currentWindow=typeof window<"u"?window:null,c.resizeObserver=null,c.previousCropSize=null,c.isInitialized=!1,c.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},c.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!c.containerRef)){var r=!0;c.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}c.computeSizes()}),c.resizeObserver.observe(c.containerRef)}},c.preventZoomSafari=function(r){return r.preventDefault()},c.cleanEvents=function(){c.currentDoc&&(c.currentDoc.removeEventListener("mousemove",c.onMouseMove),c.currentDoc.removeEventListener("mouseup",c.onDragStopped),c.currentDoc.removeEventListener("touchmove",c.onTouchMove),c.currentDoc.removeEventListener("touchend",c.onDragStopped),c.currentDoc.removeEventListener("gesturechange",c.onGestureChange),c.currentDoc.removeEventListener("gestureend",c.onGestureEnd),c.currentDoc.removeEventListener("scroll",c.onScroll))},c.clearScrollEvent=function(){c.containerRef&&c.containerRef.removeEventListener("wheel",c.onWheel),c.wheelTimer&&clearTimeout(c.wheelTimer)},c.onMediaLoad=function(){var r=c.computeSizes();r&&(c.previousCropSize=r,c.emitCropData(),c.setInitialCrop(r),c.isInitialized=!0),c.props.onMediaLoaded&&c.props.onMediaLoaded(c.mediaSize)},c.setInitialCrop=function(r){if(c.props.initialCroppedAreaPercentages){var d=Bw(c.props.initialCroppedAreaPercentages,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=d.crop,_=d.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(_)}else if(c.props.initialCroppedAreaPixels){var v=$w(c.props.initialCroppedAreaPixels,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=v.crop,_=v.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(_)}},c.computeSizes=function(){var r,d,f,_,v,h,m=c.imageRef.current||c.videoRef.current;if(m&&c.containerRef){c.containerRect=c.containerRef.getBoundingClientRect(),c.saveContainerPosition();var g=c.containerRect.width/c.containerRect.height,x=((r=c.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=c.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,y=((f=c.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((_=c.videoRef.current)===null||_===void 0?void 0:_.videoHeight)||0,N=m.offsetWidth<x||m.offsetHeight<y,S=x/y,T=void 0;if(N)switch(c.state.mediaObjectFit){default:case"contain":T=g>S?{width:c.containerRect.height*S,height:c.containerRect.height}:{width:c.containerRect.width,height:c.containerRect.width/S};break;case"horizontal-cover":T={width:c.containerRect.width,height:c.containerRect.width/S};break;case"vertical-cover":T={width:c.containerRect.height*S,height:c.containerRect.height};break}else T={width:m.offsetWidth,height:m.offsetHeight};c.mediaSize=Dt(Dt({},T),{naturalWidth:x,naturalHeight:y}),c.props.setMediaSize&&c.props.setMediaSize(c.mediaSize);var E=c.props.cropSize?c.props.cropSize:Mw(c.mediaSize.width,c.mediaSize.height,c.containerRect.width,c.containerRect.height,c.props.aspect,c.props.rotation);return(((v=c.state.cropSize)===null||v===void 0?void 0:v.height)!==E.height||((h=c.state.cropSize)===null||h===void 0?void 0:h.width)!==E.width)&&c.props.onCropSizeChange&&c.props.onCropSizeChange(E),c.setState({cropSize:E},c.recomputeCropPosition),c.props.setCropSize&&c.props.setCropSize(E),E}},c.saveContainerPosition=function(){if(c.containerRef){var r=c.containerRef.getBoundingClientRect();c.containerPosition={x:r.left,y:r.top}}},c.onMouseDown=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("mousemove",c.onMouseMove),c.currentDoc.addEventListener("mouseup",c.onDragStopped),c.saveContainerPosition(),c.onDragStart(i.getMousePoint(r)))},c.onMouseMove=function(r){return c.onDrag(i.getMousePoint(r))},c.onScroll=function(r){c.currentDoc&&(r.preventDefault(),c.saveContainerPosition())},c.onTouchStart=function(r){c.currentDoc&&(c.isTouching=!0,!(c.props.onTouchRequest&&!c.props.onTouchRequest(r))&&(c.currentDoc.addEventListener("touchmove",c.onTouchMove,{passive:!1}),c.currentDoc.addEventListener("touchend",c.onDragStopped),c.saveContainerPosition(),r.touches.length===2?c.onPinchStart(r):r.touches.length===1&&c.onDragStart(i.getTouchPoint(r.touches[0]))))},c.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?c.onPinchMove(r):r.touches.length===1&&c.onDrag(i.getTouchPoint(r.touches[0]))},c.onGestureStart=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("gesturechange",c.onGestureChange),c.currentDoc.addEventListener("gestureend",c.onGestureEnd),c.gestureZoomStart=c.props.zoom,c.gestureRotationStart=c.props.rotation)},c.onGestureChange=function(r){if(r.preventDefault(),!c.isTouching){var d=i.getMousePoint(r),f=c.gestureZoomStart-1+r.scale;if(c.setNewZoom(f,d,{shouldUpdatePosition:!0}),c.props.onRotationChange){var _=c.gestureRotationStart+r.rotation;c.props.onRotationChange(_)}}},c.onGestureEnd=function(r){c.cleanEvents()},c.onDragStart=function(r){var d,f,_=r.x,v=r.y;c.dragStartPosition={x:_,y:v},c.dragStartCrop=Dt({},c.props.crop),(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d)},c.onDrag=function(r){var d=r.x,f=r.y;c.currentWindow&&(c.rafDragTimeout&&c.currentWindow.cancelAnimationFrame(c.rafDragTimeout),c.rafDragTimeout=c.currentWindow.requestAnimationFrame(function(){if(c.state.cropSize&&!(d===void 0||f===void 0)){var _=d-c.dragStartPosition.x,v=f-c.dragStartPosition.y,h={x:c.dragStartCrop.x+_,y:c.dragStartCrop.y+v},m=c.props.restrictPosition?zc(h,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):h;c.props.onCropChange(m)}}))},c.onDragStopped=function(){var r,d;c.isTouching=!1,c.cleanEvents(),c.emitCropData(),(d=(r=c.props).onInteractionEnd)===null||d===void 0||d.call(r)},c.onWheel=function(r){if(c.currentWindow&&!(c.props.onWheelRequest&&!c.props.onWheelRequest(r))){r.preventDefault();var d=i.getMousePoint(r),f=Ow(r).pixelY,_=c.props.zoom-f*c.props.zoomSpeed/200;c.setNewZoom(_,d,{shouldUpdatePosition:!0}),c.state.hasWheelJustStarted||c.setState({hasWheelJustStarted:!0},function(){var v,h;return(h=(v=c.props).onInteractionStart)===null||h===void 0?void 0:h.call(v)}),c.wheelTimer&&clearTimeout(c.wheelTimer),c.wheelTimer=c.currentWindow.setTimeout(function(){return c.setState({hasWheelJustStarted:!1},function(){var v,h;return(h=(v=c.props).onInteractionEnd)===null||h===void 0?void 0:h.call(v)})},250)}},c.getPointOnContainer=function(r,d){var f=r.x,_=r.y;if(!c.containerRect)throw new Error("The Cropper is not mounted");return{x:c.containerRect.width/2-(f-d.x),y:c.containerRect.height/2-(_-d.y)}},c.getPointOnMedia=function(r){var d=r.x,f=r.y,_=c.props,v=_.crop,h=_.zoom;return{x:(d+v.x)/h,y:(f+v.y)/h}},c.setNewZoom=function(r,d,f){var _=f===void 0?{}:f,v=_.shouldUpdatePosition,h=v===void 0?!0:v;if(!(!c.state.cropSize||!c.props.onZoomChange)){var m=Vo(r,c.props.minZoom,c.props.maxZoom);if(h){var g=c.getPointOnContainer(d,c.containerPosition),x=c.getPointOnMedia(g),y={x:x.x*m-g.x,y:x.y*m-g.y},N=c.props.restrictPosition?zc(y,c.mediaSize,c.state.cropSize,m,c.props.rotation):y;c.props.onCropChange(N)}c.props.onZoomChange(m)}},c.getCropData=function(){if(!c.state.cropSize)return null;var r=c.props.restrictPosition?zc(c.props.crop,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):c.props.crop;return Dw(r,c.mediaSize,c.state.cropSize,c.getAspect(),c.props.zoom,c.props.rotation,c.props.restrictPosition)},c.emitCropData=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropComplete&&c.props.onCropComplete(d,f),c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.emitCropAreaChange=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.recomputeCropPosition=function(){var r,d;if(c.state.cropSize){var f=c.props.crop;if(c.isInitialized&&(!((r=c.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=c.previousCropSize)===null||d===void 0)&&d.height)){var _=Math.abs(c.previousCropSize.width-c.state.cropSize.width)>1e-6||Math.abs(c.previousCropSize.height-c.state.cropSize.height)>1e-6;if(_){var v=c.state.cropSize.width/c.previousCropSize.width,h=c.state.cropSize.height/c.previousCropSize.height;f={x:c.props.crop.x*v,y:c.props.crop.y*h}}}var m=c.props.restrictPosition?zc(f,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):f;c.previousCropSize=c.state.cropSize,c.props.onCropChange(m),c.emitCropData()}},c.onKeyDown=function(r){var d,f,_=c.props,v=_.crop,h=_.onCropChange,m=_.keyboardStep,g=_.zoom,x=_.rotation,y=m;if(c.state.cropSize){r.shiftKey&&(y*=.2);var N=Dt({},v);switch(r.key){case"ArrowUp":N.y-=y,r.preventDefault();break;case"ArrowDown":N.y+=y,r.preventDefault();break;case"ArrowLeft":N.x-=y,r.preventDefault();break;case"ArrowRight":N.x+=y,r.preventDefault();break;default:return}c.props.restrictPosition&&(N=zc(N,c.mediaSize,c.state.cropSize,g,x)),r.repeat||(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d),h(N)}},c.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}c.emitCropData(),(f=(d=c.props).onInteractionEnd)===null||f===void 0||f.call(d)},c}return i.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=qw,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},i.prototype.componentWillUnmount=function(){var c,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(c=this.resizeObserver)===null||c===void 0||c.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},i.prototype.componentDidUpdate=function(c){var r,d,f,_,v,h,m,g,x;c.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):c.aspect!==this.props.aspect?this.computeSizes():c.objectFit!==this.props.objectFit?this.computeSizes():c.zoom!==this.props.zoom?this.recomputeCropPosition():((r=c.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=c.cropSize)===null||f===void 0?void 0:f.width)!==((_=this.props.cropSize)===null||_===void 0?void 0:_.width)?this.computeSizes():(((v=c.crop)===null||v===void 0?void 0:v.x)!==((h=this.props.crop)===null||h===void 0?void 0:h.x)||((m=c.crop)===null||m===void 0?void 0:m.y)!==((g=this.props.crop)===null||g===void 0?void 0:g.y))&&this.emitCropAreaChange(),c.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),c.video!==this.props.video&&((x=this.videoRef.current)===null||x===void 0||x.load());var y=this.getObjectFit();y!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:y},this.computeSizes)},i.prototype.getAspect=function(){var c=this.props,r=c.cropSize,d=c.aspect;return r?r.width/r.height:d},i.prototype.getObjectFit=function(){var c,r,d,f;if(this.props.objectFit==="cover"){var _=this.imageRef.current||this.videoRef.current;if(_&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var v=this.containerRect.width/this.containerRect.height,h=((c=this.imageRef.current)===null||c===void 0?void 0:c.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,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,g=h/m;return g<v?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},i.prototype.onPinchStart=function(c){var r=i.getTouchPoint(c.touches[0]),d=i.getTouchPoint(c.touches[1]);this.lastPinchDistance=Tp(r,d),this.lastPinchRotation=Rp(r,d),this.onDragStart(Ap(r,d))},i.prototype.onPinchMove=function(c){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=i.getTouchPoint(c.touches[0]),f=i.getTouchPoint(c.touches[1]),_=Ap(d,f);this.onDrag(_),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var v=Tp(d,f),h=r.props.zoom*(v/r.lastPinchDistance);r.setNewZoom(h,_,{shouldUpdatePosition:!1}),r.lastPinchDistance=v;var m=Rp(d,f),g=r.props.rotation+(m-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(g),r.lastPinchRotation=m})}},i.prototype.render=function(){var c=this,r,d=this.props,f=d.image,_=d.video,v=d.mediaProps,h=d.cropperProps,m=d.transform,g=d.crop,x=g.x,y=g.y,N=d.rotation,S=d.zoom,T=d.cropShape,E=d.showGrid,z=d.roundCropAreaPixels,H=d.style,M=H.containerStyle,U=H.cropAreaStyle,Y=H.mediaStyle,ee=d.classes,q=ee.containerClassName,X=ee.cropAreaClassName,se=ee.mediaClassName,pe=(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 c.containerRef=Ce},"data-testid":"container",style:M,className:xo("reactEasyCrop_Container",q)},f?j.createElement("img",Dt({alt:"",className:xo("reactEasyCrop_Image",pe==="contain"&&"reactEasyCrop_Contain",pe==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",pe==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",se)},v,{src:f,ref:this.imageRef,style:Dt(Dt({},Y),{transform:m||"translate(".concat(x,"px, ").concat(y,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):_&&j.createElement("video",Dt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:xo("reactEasyCrop_Video",pe==="contain"&&"reactEasyCrop_Contain",pe==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",pe==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",se)},v,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Dt(Dt({},Y),{transform:m||"translate(".concat(x,"px, ").concat(y,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(_)?_:[{src:_}]).map(function(me){return j.createElement("source",Dt({key:me.src},me))})),this.state.cropSize&&j.createElement("div",Dt({ref:this.cropperRef,style:Dt(Dt({},U),{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:xo("reactEasyCrop_CropArea",T==="round"&&"reactEasyCrop_CropAreaRound",E&&"reactEasyCrop_CropAreaGrid",X)},h)))},i.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:Gw,minZoom:Fw,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:Vw},i.getMousePoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i.getTouchPoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i})(j.Component);function Yw(a){return new Promise((i,c)=>{const r=new Image;r.onload=()=>i(r),r.onerror=()=>c(new Error("Не удалось загрузить изображение")),r.src=a})}async function Iw(a,i,c=512){const r=await Yw(a),d=document.createElement("canvas");d.width=c,d.height=c;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,i.x,i.y,i.width,i.height,0,0,c,c),new Promise((_,v)=>{d.toBlob(h=>{h?_(h):v(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const Xw="_backdrop_1cfz6_1",Pw="_card_1cfz6_12",Zw="_title_1cfz6_25",Kw="_cropArea_1cfz6_31",Ww="_controls_1cfz6_40",Jw="_zoom_1cfz6_52",eC="_actions_1cfz6_57",tC="_error_1cfz6_63",ya={backdrop:Xw,card:Pw,title:Zw,cropArea:Kw,controls:Ww,zoom:Jw,actions:eC,error:tC};function nC({imageSrc:a,isSaving:i,onCancel:c,onConfirm:r}){const[d,f]=j.useState({x:0,y:0}),[_,v]=j.useState(1),[h,m]=j.useState(null),[g,x]=j.useState(null),y=j.useCallback((S,T)=>{m(T)},[]);j.useEffect(()=>{const S=T=>{T.key==="Escape"&&!i&&c()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[c,i]);const N=async()=>{if(h){x(null);try{const S=await Iw(a,h);await r(S)}catch{x("Не удалось обрезать изображение")}}};return l.jsx("div",{className:ya.backdrop,onClick:i?void 0:c,children:l.jsxs("div",{className:ya.card,onClick:S=>S.stopPropagation(),children:[l.jsx("h3",{className:ya.title,children:"Выберите область аватара"}),l.jsx("div",{className:ya.cropArea,children:l.jsx(Qw,{image:a,crop:d,zoom:_,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:v,onCropComplete:y})}),l.jsxs("div",{className:ya.controls,children:[l.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),l.jsx("input",{id:"avatar-zoom",className:ya.zoom,type:"range",min:1,max:3,step:.01,value:_,onChange:S=>v(Number(S.target.value))})]}),g&&l.jsx("span",{className:ya.error,children:g}),l.jsxs("div",{className:ya.actions,children:[l.jsx(Jt,{variant:"ghost",onClick:c,disabled:i,children:"Отмена"}),l.jsx(Jt,{variant:"primary",onClick:N,disabled:i||!h,children:i?"Загрузка...":"Сохранить"})]})]})})}const lC="_col_1gh35_1",aC="_avatar_1gh35_10",sC="_avatarImg_1gh35_30",iC="_error_1gh35_37",cC="_overlay_1gh35_43",rC="_addPhoto_1gh35_68",ri={col:lC,avatar:aC,avatarImg:sC,error:iC,overlay:cC,addPhoto:rC};function oC(a){return new Promise((i,c)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");i(f>=0?d.slice(f+1):d)},r.onerror=()=>c(r.error),r.readAsDataURL(a)})}function uC(){const{data:a}=bs(),{mutateAsync:i,isPending:c}=Oj(),r=j.useRef(null),[d,f]=j.useState(null),[_,v]=j.useState(!1),[h,m]=j.useState(null),g=(a==null?void 0:a.avatar_link)??null,x=g&&!_;j.useEffect(()=>{v(!1)},[g]),j.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const y=()=>{var E;c||(E=r.current)==null||E.click()},N=E=>{var H;const z=(H=E.target.files)==null?void 0:H[0];E.target.value="",z&&(f(null),m(URL.createObjectURL(z)))},S=()=>{h&&URL.revokeObjectURL(h),m(null)},T=async E=>{try{const z=await oC(E);await i({photo_base64:z,decoded_bytes:String(E.size)}),S()}catch{f("Не удалось загрузить фото"),S()}};return l.jsxs("div",{className:ri.col,children:[l.jsxs("div",{className:ri.avatar,onClick:y,children:[x?l.jsx("img",{src:g,alt:"avatar",className:ri.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",g),v(!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:ri.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:ri.addPhoto,children:l.jsx(Jt,{variant:"ghost",onClick:y,disabled:c,children:c?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&l.jsx("span",{className:ri.error,children:d}),h&&l.jsx(nC,{imageSrc:h,isSaving:c,onCancel:S,onConfirm:T})]})}const dC="_card_17od5_1",fC="_title_17od5_8",hC="_actions_17od5_17",Cd={card:dC,title:fC,actions:hC};function _s({title:a,children:i,actions:c}){return l.jsxs("div",{className:Cd.card,children:[l.jsx("div",{className:Cd.title,children:a}),i,c&&l.jsx("div",{className:Cd.actions,children:c})]})}const mC="_page_h0psp_1",pC="_kycBanner_h0psp_8",_C="_main_h0psp_19",gC="_profileTop_h0psp_29",vC="_userInfo_h0psp_33",xC="_sections_h0psp_37",yC="_grid2_h0psp_44",bC="_grid1_h0psp_50",jC="_mnemonicRow_h0psp_56",SC="_mnemonicInfo_h0psp_63",NC="_mnemonicIcon_h0psp_69",wC="_mnemonicText_h0psp_73",CC="_userName_h0psp_105",EC="_userBalance_h0psp_112",Lt={page:mC,kycBanner:pC,main:_C,profileTop:gC,userInfo:vC,sections:xC,grid2:yC,grid1:bC,mnemonicRow:jC,mnemonicInfo:SC,mnemonicIcon:NC,mnemonicText:wC,userName:CC,userBalance:EC};function TC({data:a,fullName:i,phone:c,onPhoneChange:r,onPhoneBlur:d}){return l.jsxs(l.Fragment,{children:[l.jsx(_s,{title:"Личные данные",children:l.jsxs("div",{className:Lt.grid2,children:[l.jsx(W,{label:"Полное ФИО",value:i,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),l.jsx(W,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),l.jsx(W,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),l.jsx(W,{label:"Номер телефона",value:c,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),l.jsx(_s,{title:"Верификация",children:l.jsxs("div",{className:Lt.grid2,children:[l.jsx(W,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(W,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]})}function RC({data:a}){const i=a.legal_entity;return i?l.jsxs(l.Fragment,{children:[l.jsx(_s,{title:"Данные организации",children:l.jsxs("div",{className:Lt.grid2,children:[l.jsx(W,{label:"Наименование",value:i.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),l.jsx(W,{label:"Краткое наименование",value:i.short_name??"",placeholder:"Ромашка",readOnly:!0}),l.jsx(W,{label:"ИНН",value:i.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(W,{label:"ОГРН",value:i.ogrn??"",placeholder:"1027700132195",readOnly:!0}),l.jsx(W,{label:"КПП",value:i.kpp??"",placeholder:"770801001",readOnly:!0}),l.jsx(W,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),l.jsx(_s,{title:"Адреса",children:l.jsxs("div",{className:Lt.grid2,children:[l.jsx(W,{label:"Юридический адрес",value:i.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),l.jsx(W,{label:"Фактический адрес",value:i.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),l.jsx(_s,{title:"Контакты и верификация",children:l.jsxs("div",{className:Lt.grid2,children:[l.jsx(W,{label:"Контактное лицо",value:i.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),l.jsx(W,{label:"Контактный телефон",value:i.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),l.jsx(W,{label:"Статус",value:i.status??"",placeholder:"active",readOnly:!0}),l.jsx(W,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function AC(){var M;const{data:a}=bs(),{data:i,isLoading:c}=Fo(),{data:r}=qo(),d=Mj(),f=en(),[_,v]=j.useState(""),[h,m]=j.useState(""),[g,x]=j.useState(null);j.useEffect(()=>{(a==null?void 0:a.phone)!=null&&(v(a.phone),m(a.phone))},[a==null?void 0:a.phone]);function y(U){v(U.replace(/[^\d+\s()-]/g,""))}function N(){const U=_.trim();U===h||d.isPending||d.mutate(U,{onSuccess:()=>{m(U),x({status:"success",message:"Номер телефона обновлён"})},onError:()=>{x({status:"error",message:"Не удалось обновить номер телефона"})}})}const S=U=>U?U[0].toUpperCase()+U.slice(1).toLowerCase():"",T=a?[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(S).join(" "):"",E=!!a&&a.account_type!=="individual",z=E?((M=a==null?void 0:a.legal_entity)==null?void 0:M.name)??"":T,H=c||!i||i.totalUsd==null?"$—":`$${i.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:Lt.page,children:[l.jsx(Go,{}),a&&!a.kyc_verified&&l.jsx("div",{className:Lt.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"}),l.jsxs("main",{className:Lt.main,children:[l.jsxs("div",{className:Lt.profileTop,children:[l.jsx(uC,{}),l.jsxs("div",{className:Lt.userInfo,children:[l.jsx("span",{className:Lt.userName,children:z}),l.jsx("span",{className:Lt.userBalance,children:H})]})]}),l.jsxs("div",{className:Lt.sections,children:[a&&(E?l.jsx(RC,{data:a}):l.jsx(TC,{data:a,fullName:T,phone:_,onPhoneChange:y,onPhoneBlur:N})),l.jsx(_s,{title:"Безопасность",actions:l.jsxs(l.Fragment,{children:[l.jsx(Jt,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),l.jsx(Jt,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:l.jsx("div",{className:Lt.grid1,children:r==null?void 0:r.map(({chain:U,address:Y})=>l.jsx(W,{label:`Адрес ${U}`,readOnly:!0,icon:"lock",value:Y,placeholder:"—"},U))})}),l.jsx(_s,{title:"Мнемоника",children:l.jsxs("div",{className:Lt.mnemonicRow,children:[l.jsxs("div",{className:Lt.mnemonicInfo,children:[l.jsx("span",{className:Lt.mnemonicIcon,children:"🔑"}),l.jsx("span",{className:Lt.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),l.jsx(Jt,{variant:"danger",onClick:()=>f(oe.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})]})]}),g&&l.jsx(Yl,{status:g.status,message:g.message,onClose:()=>x(null)})]})}const OC="_card_1erii_1",MC="_logo_1erii_10",zC="_title_1erii_20",DC="_twoCol_1erii_29",LC="_leftCol_1erii_36",kC="_rightCol_1erii_42",BC="_codeHint_1erii_48",UC="_error_1erii_55",$C="_submitWrapper_1erii_62",HC="_footer_1erii_66",qC="_forgot_1erii_73",FC="_divider_1erii_88",Vn={card:OC,logo:MC,title:zC,twoCol:DC,leftCol:LC,rightCol:kC,codeHint:BC,error:UC,submitWrapper:$C,footer:HC,forgot:qC,divider:FC};function Op(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function GC(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[_,v]=j.useState(!1),h=Vt(),m=en(),g=ot({mutationFn:Sj,onSuccess:()=>v(!0)}),x=ot({mutationFn:Nj,onSuccess:async({access_token:T})=>{b2(),T&&Yn.set(T),await h.invalidateQueries({queryKey:Ho}),m(oe.PROFILE)}}),y=()=>{a&&g.mutate({email:a})},N=T=>{T.preventDefault(),x.mutate({email:a,password:c,code:d})},S=(g.isError?Op(g.error):null)??(x.isError?Op(x.error):null);return{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:_,isLoadingCode:g.isPending,isLoadingSubmit:x.isPending,error:S,handleRequestCode:y,handleSubmit:N}}function VC(){const{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:_,isLoadingCode:v,isLoadingSubmit:h,error:m,handleRequestCode:g,handleSubmit:x}=GC(),y=en();return l.jsxs("form",{className:Vn.card,onSubmit:x,children:[l.jsx("div",{className:Vn.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:Vn.title,children:"Войти в кошелёк ЭКСА"}),l.jsxs("div",{className:Vn.twoCol,children:[l.jsxs("div",{className:Vn.leftCol,children:[l.jsx(W,{label:"Адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),l.jsx(W,{label:"Пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:Vn.rightCol,children:[l.jsx(Jt,{variant:"ghost",type:"button",onClick:g,disabled:_||v,children:v?"Отправка...":_?"Код отправлен":"Получить код на email"}),l.jsx("span",{className:Vn.codeHint,children:"Код не пришёл"}),l.jsx(W,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),m&&l.jsx("p",{className:Vn.error,children:m}),l.jsx("div",{className:Vn.submitWrapper,children:l.jsx(On,{label:h?"Вход...":"Войти",disabled:h})}),l.jsxs("div",{className:Vn.footer,children:[l.jsx("a",{className:Vn.forgot,onClick:()=>y(oe.RESTORE_PASSWORD),children:"Забыли пароль?"}),l.jsx("div",{className:Vn.divider,children:l.jsx("span",{children:"или"})}),l.jsx(Jt,{variant:"outline",type:"button",onClick:()=>y(oe.REGISTER),children:"Создать новый кошелёк"})]})]})}const QC="_page_a6ygb_1",YC={page:QC};function IC(){return l.jsx("div",{className:YC.page,children:l.jsx(VC,{})})}function Mp(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function XC(){const a=en(),i=Vt(),[c,r]=j.useState(""),[d,f]=j.useState(""),[_,v]=j.useState(""),[h,m]=j.useState(""),[g,x]=j.useState(!1),[y,N]=j.useState(null),S=ot({mutationFn:bj,onSuccess:()=>x(!0)}),T=ot({mutationFn:jj,onSuccess:async({access_token:M})=>{b2(),M&&Yn.set(M),await i.invalidateQueries({queryKey:Ho}),a(oe.WALLET)}}),E=()=>{c&&S.mutate({email:c})},z=M=>{if(M.preventDefault(),d!==_){N("Пароли не совпадают");return}N(null),T.mutate({email:c,password:d,confirm_password:_,code:h})},H=y??(S.isError?Mp(S.error):null)??(T.isError?Mp(T.error):null);return{email:c,setEmail:r,password:d,setPassword:f,confirmPassword:_,setConfirmPassword:v,verificationCode:h,setVerificationCode:m,codeSent:g,isLoadingCode:S.isPending,isLoadingSubmit:T.isPending,error:H,handleRequestCode:E,handleSubmit:z}}const PC="_card_4lgff_1",ZC="_logo_4lgff_10",KC="_title_4lgff_20",WC="_typeSelect_4lgff_29",JC="_back_4lgff_39",eE="_legalInfo_4lgff_55",tE="_legalIntro_4lgff_61",nE="_docsBlock_4lgff_67",lE="_emailBlock_4lgff_68",aE="_docsLabel_4lgff_74",sE="_docsList_4lgff_80",iE="_emailLink_4lgff_94",cE="_legalDone_4lgff_105",rE="_legalDoneTitle_4lgff_113",oE="_legalDoneText_4lgff_119",uE="_twoCol_4lgff_125",dE="_leftCol_4lgff_132",fE="_rightCol_4lgff_138",hE="_codeHint_4lgff_149",mE="_error_4lgff_156",pE="_submitWrapper_4lgff_163",_E="_legal_4lgff_55",st={card:PC,logo:ZC,title:KC,typeSelect:WC,back:JC,legalInfo:eE,legalIntro:tE,docsBlock:nE,emailBlock:lE,docsLabel:aE,docsList:sE,emailLink:iE,legalDone:cE,legalDoneTitle:rE,legalDoneText:oE,twoCol:uE,leftCol:dE,rightCol:fE,codeHint:hE,error:mE,submitWrapper:pE,legal:_E};function gE(){const{email:a,setEmail:i,password:c,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:_,setVerificationCode:v,codeSent:h,isLoadingCode:m,isLoadingSubmit:g,error:x,handleRequestCode:y,handleSubmit:N}=XC();return l.jsxs("form",{onSubmit:N,children:[l.jsxs("div",{className:st.twoCol,children:[l.jsxs("div",{className:st.leftCol,children:[l.jsx(W,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),l.jsx(W,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0}),l.jsx(W,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:st.rightCol,children:[l.jsx(Jt,{variant:"ghost",type:"button",onClick:y,disabled:h||m,children:m?"Отправка...":h?"Код отправлен":"Получить проверочный код"}),l.jsx("span",{className:st.codeHint,children:"Код не пришёл"}),l.jsx(W,{label:"Ввести код",type:"text",value:_,onChange:v,placeholder:"000 000",required:!0})]})]}),x&&l.jsx("p",{className:st.error,children:x}),l.jsx("div",{className:st.submitWrapper,children:l.jsx(On,{label:g?"Создание...":"Создать",disabled:g})}),l.jsxs("p",{className:st.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const zp="support@elcsa.ru",vE=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function xE(){const[a,i]=j.useState(!1);return a?l.jsxs("div",{className:st.legalDone,children:[l.jsx("h2",{className:st.legalDoneTitle,children:"Спасибо!"}),l.jsx("p",{className:st.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):l.jsxs("div",{className:st.legalInfo,children:[l.jsx("p",{className:st.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),l.jsxs("div",{className:st.docsBlock,children:[l.jsx("span",{className:st.docsLabel,children:"Необходимые документы"}),l.jsx("ul",{className:st.docsList,children:vE.map(c=>l.jsx("li",{children:c},c))})]}),l.jsxs("div",{className:st.emailBlock,children:[l.jsx("span",{className:st.docsLabel,children:"Адрес для отправки документов"}),l.jsx("a",{href:`mailto:${zp}`,className:st.emailLink,children:zp})]}),l.jsx("div",{className:st.submitWrapper,children:l.jsx(On,{label:"Документы отправлены",type:"button",onClick:()=>i(!0)})})]})}function yE(){const[a,i]=j.useState(null);return l.jsxs("div",{className:st.card,children:[l.jsx("div",{className:st.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:st.title,children:"Создать кошелёк ЭКСА"}),a===null?l.jsxs("div",{className:st.typeSelect,children:[l.jsx(Jt,{variant:"primary",onClick:()=>i("individual"),children:"Зарегистрироваться как физическое лицо"}),l.jsx(Jt,{variant:"outline",onClick:()=>i("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:st.back,onClick:()=>i(null),children:"← Назад к выбору"}),a==="individual"?l.jsx(gE,{}):l.jsx(xE,{})]})]})}const bE="_page_a6ygb_1",jE={page:bE};function SE(){return l.jsx("div",{className:jE.page,children:l.jsx(yE,{})})}const NE="_page_1bkwz_1",wE="_card_1bkwz_9",CE="_logo_1bkwz_18",EE="_title_1bkwz_28",TE="_typeSwitch_1bkwz_38",RE="_typeOption_1bkwz_49",AE="_typeOptionActive_1bkwz_66",OE="_twoCol_1bkwz_71",ME="_leftCol_1bkwz_78",zE="_rightCol_1bkwz_84",DE="_codeHint_1bkwz_90",LE="_backButton_1bkwz_98",kE="_documentsSubtitle_1bkwz_131",BE="_documentsList_1bkwz_137",UE="_documentItem_1bkwz_146",$E="_documentName_1bkwz_157",HE="_attachButton_1bkwz_163",qE="_fileInput_1bkwz_181",FE="_submitWrapper_1bkwz_192",GE="_legal_1bkwz_196",We={page:NE,card:wE,logo:CE,title:EE,typeSwitch:TE,typeOption:RE,typeOptionActive:AE,twoCol:OE,leftCol:ME,rightCol:zE,codeHint:DE,backButton:LE,documentsSubtitle:kE,documentsList:BE,documentItem:UE,documentName:$E,attachButton:HE,fileInput:qE,submitWrapper:FE,legal:GE},VE=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function QE(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[_,v]=j.useState(""),[h,m]=j.useState("individual"),[g,x]=j.useState("info"),y=h==="legal",N=T=>{T.preventDefault(),x("documents")},S=T=>{T.preventDefault()};return l.jsx("div",{className:We.page,children:g==="info"?l.jsxs("form",{className:We.card,onSubmit:N,children:[l.jsx("div",{className:We.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:We.title,children:"Создать кошелёк ЭКСА"}),l.jsxs("div",{className:We.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[l.jsx("button",{type:"button",role:"tab","aria-selected":!y,className:`${We.typeOption} ${y?"":We.typeOptionActive}`,onClick:()=>m("individual"),children:"Физическое лицо"}),l.jsx("button",{type:"button",role:"tab","aria-selected":y,className:`${We.typeOption} ${y?We.typeOptionActive:""}`,onClick:()=>m("legal"),children:"Юридическое лицо"})]}),l.jsxs("div",{className:We.twoCol,children:[l.jsxs("div",{className:We.leftCol,children:[l.jsx(W,{label:y?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:y?"name@company.ru":"example@mail.ru"}),l.jsx(W,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••"}),l.jsx(W,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),l.jsxs("div",{className:We.rightCol,children:[l.jsx(Jt,{variant:"ghost",type:"button",children:"Получить проверочный код"}),l.jsx("span",{className:We.codeHint,children:"Код не пришёл"}),l.jsx(W,{label:"Ввести код",type:"text",value:_,onChange:v,placeholder:"000 000"})]})]}),l.jsx("div",{className:We.submitWrapper,children:l.jsx(On,{label:"Создать"})}),l.jsxs("p",{className:We.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):l.jsxs("form",{className:We.card,onSubmit:S,children:[l.jsx("div",{className:We.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("button",{type:"button",className:We.backButton,onClick:()=>x("info"),children:"← Назад к данным"}),l.jsx("h1",{className:We.title,children:"Прикрепите документы"}),l.jsx("p",{className:We.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),l.jsx("ul",{className:We.documentsList,children:VE.map(T=>l.jsxs("li",{className:We.documentItem,children:[l.jsx("span",{className:We.documentName,children:T}),l.jsxs("label",{className:We.attachButton,children:["Прикрепить",l.jsx("input",{type:"file",className:We.fileInput,multiple:!0})]})]},T))}),l.jsx("div",{className:We.submitWrapper,children:l.jsx(On,{label:"Создать аккаунт"})})]})})}const YE="_page_cc0zl_1",IE="_wrap_cc0zl_9",XE="_header_cc0zl_20",PE="_title_cc0zl_24",ZE="_subtitle_cc0zl_29",KE="_body_cc0zl_37",WE="_formCol_cc0zl_43",JE="_hint_cc0zl_49",eT="_infoCol_cc0zl_56",tT="_infoTitle_cc0zl_61",nT="_infoRow_cc0zl_68",lT="_infoLabel_cc0zl_84",aT="_infoValue_cc0zl_89",sT="_note_cc0zl_95",iT="_submitBtn_cc0zl_102",gt={page:YE,wrap:IE,header:XE,title:PE,subtitle:ZE,body:KE,formCol:WE,hint:JE,infoCol:eT,infoTitle:tT,infoRow:nT,infoLabel:lT,infoValue:aT,note:sT,submitBtn:iT},Ed=5e5,Dp=.03,yo=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function cT(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),_=Number(a.replace(/\D/g,""))||0,v=_>0&&_<Ed,h=_*Dp,m=x=>{const y=x.replace(/\D/g,"");i(y?yo(Number(y)):"")},g=x=>{x.preventDefault()};return l.jsx("div",{className:gt.page,children:l.jsxs("form",{className:gt.wrap,onSubmit:g,children:[l.jsxs("div",{className:gt.header,children:[l.jsx("h1",{className:gt.title,children:"Оставить заявку"}),l.jsx("p",{className:gt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:gt.body,children:[l.jsxs("div",{className:gt.formCol,children:[l.jsx(W,{label:"Объём заявки, ₽",type:"text",value:a,onChange:m,placeholder:"от 500 000"}),v&&l.jsxs("p",{className:gt.hint,children:["Минимальный объём заявки — ",yo(Ed)," ₽"]}),l.jsx(W,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),l.jsx(W,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:gt.infoCol,children:[l.jsx("div",{className:gt.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:gt.infoRow,children:[l.jsx("span",{className:gt.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:gt.infoValue,children:[yo(Ed)," ₽"]})]}),l.jsxs("div",{className:gt.infoRow,children:[l.jsx("span",{className:gt.infoLabel,children:"Примерная комиссия"}),l.jsxs("span",{className:gt.infoValue,children:[(Dp*100).toFixed(0)," %"]})]}),l.jsxs("div",{className:gt.infoRow,"data-accent":!0,children:[l.jsx("span",{className:gt.infoLabel,children:"Комиссия с объёма"}),l.jsx("span",{className:gt.infoValue,children:_>0?`≈ ${yo(h)} ₽`:"—"})]}),l.jsx("p",{className:gt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:gt.submitBtn,disabled:v,children:"Оставить заявку"})]})})}const rT="Сумма для конвертации слишком мала. Увеличьте сумму и попробуйте снова.";function oT(){const a=F3(),[i,c]=j.useState(!1),[r,d]=j.useState(null),{mutate:f,isPending:_}=ub();function v(){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:rT})})}const h=a.isUsdtToRub?!a.rubTotal||_||!i:!a.usdtFromRub||_||!i||a.rubBelowMin;return{...a,agreed:i,setAgreed:c,onPay:v,isPending:_,isPayDisabled:h,notification:r,dismissNotification:()=>d(null)}}const uT="_wrap_6xfms_1",dT="_box_6xfms_12",fT="_text_6xfms_39",hT="_link_6xfms_46",mT="_required_6xfms_51",Dc={wrap:uT,box:dT,text:fT,link:hT,required:mT};function pT({checked:a,onToggle:i}){return l.jsxs("button",{type:"button",className:Dc.wrap,onClick:i,"aria-pressed":a,children:[l.jsx("span",{className:Dc.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:Dc.text,children:["Я ознакомлен и согласен с"," ",l.jsx("a",{href:"/publichnaya-oferta",className:Dc.link,target:"_blank",rel:"noopener noreferrer",onClick:c=>c.stopPropagation(),children:"публичной офертой"}),". Вся деятельность компании соответствует законодательству Российской Федерации.",l.jsx("br",{}),l.jsx("span",{className:Dc.required,children:"ОБЯЗАТЕЛЬНОЕ ПОЛЕ"})]})]})}const _T="_wrap_1senc_1",gT="_header_1senc_8",vT="_title_1senc_17",xT="_subtitle_1senc_22",yT="_pills_1senc_29",bT="_pill_1senc_29",jT="_pillValue_1senc_43",ST="_body_1senc_53",NT="_tabs_1senc_59",wT="_tab_1senc_59",CT="_bottom_1senc_91",ET="_payBtn_1senc_99",fn={wrap:_T,header:gT,title:vT,subtitle:xT,pills:yT,pill:bT,pillValue:jT,body:ST,tabs:NT,tab:wT,bottom:CT,payBtn:ET};function TT(){const{isUsdtToRub:a,gasPriceRub:i,configUsdtRate:c,convert:r,pay:d,onSwap:f,commission:_,agreed:v,setAgreed:h,onPay:m,isPending:g,isPayDisabled:x,notification:y,dismissNotification:N}=oT();return l.jsxs("div",{className:fn.wrap,children:[l.jsxs("div",{className:fn.header,children:[l.jsxs("div",{children:[l.jsx("h1",{className:fn.title,children:"Конвертация"}),l.jsx("div",{className:fn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:fn.pills,children:[l.jsxs("div",{className:fn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:fn.pillValue,children:[i.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:fn.pill,children:["USDT/RUB ",l.jsxs("span",{className:fn.pillValue,children:[c.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:fn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:fn.tabs,children:l.jsx("div",{className:fn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(To,{label:a?"Конвертируете":"Платите",...r}),l.jsx(j3,{onClick:f}),l.jsx(To,{label:a?"Платите":"Конвертируете",...d})]}),l.jsx(N3,{..._})]}),l.jsx("div",{className:fn.bottom,children:l.jsx(pT,{checked:v,onToggle:()=>h(!v)})}),l.jsx("button",{type:"button",className:fn.payBtn,onClick:m,disabled:x,children:g?"Обработка...":"Оплатить"}),y&&l.jsx(Yl,{status:y.status,message:y.message,onClose:N})]})}const RT="_wrap_12wuz_1",AT="_header_12wuz_12",OT="_title_12wuz_16",MT="_subtitle_12wuz_21",zT="_body_12wuz_29",DT="_formCol_12wuz_35",LT="_hint_12wuz_41",kT="_infoCol_12wuz_48",BT="_infoTitle_12wuz_53",UT="_infoRow_12wuz_60",$T="_infoLabel_12wuz_76",HT="_infoValue_12wuz_81",qT="_note_12wuz_87",FT="_submitBtn_12wuz_94",Je={wrap:RT,header:AT,title:OT,subtitle:MT,body:zT,formCol:DT,hint:LT,infoCol:kT,infoTitle:BT,infoRow:UT,infoLabel:$T,infoValue:HT,note:qT,submitBtn:FT},Td=5e5,bo=[{days:1,rate:.05},{days:3,rate:.035},{days:7,rate:.02},{days:14,rate:.012}],Lc=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0}),Lp=a=>{const i=a%10,c=a%100;return i===1&&c!==11?`${a} день`:i>=2&&i<=4&&(c<10||c>=20)?`${a} дня`:`${a} дней`};function GT(){var T;const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[_,v]=j.useState(bo[0].days),h=Number(a.replace(/\D/g,""))||0,m=h>0&&h<Td,g=((T=bo.find(E=>E.days===_))==null?void 0:T.rate)??bo[0].rate,x=h*g,y=h+x,N=E=>{const z=E.replace(/\D/g,"");i(z?Lc(Number(z)):"")},S=E=>{E.preventDefault()};return l.jsxs("form",{className:Je.wrap,onSubmit:S,children:[l.jsxs("div",{className:Je.header,children:[l.jsx("h1",{className:Je.title,children:"Оставить заявку"}),l.jsx("p",{className:Je.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:Je.body,children:[l.jsxs("div",{className:Je.formCol,children:[l.jsx(W,{label:"Объём заявки, ₽",type:"text",value:a,onChange:N,placeholder:"от 500 000"}),m&&l.jsxs("p",{className:Je.hint,children:["Минимальный объём заявки — ",Lc(Td)," ₽"]}),l.jsx($4,{id:"term",label:"Срок ожидания операции",value:_,onChange:v,options:bo.map(E=>({value:E.days,label:`${Lp(E.days)} — комиссия ${(E.rate*100).toFixed(1)} %`}))}),l.jsx(W,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),l.jsx(W,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:Je.infoCol,children:[l.jsx("div",{className:Je.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:Je.infoValue,children:[Lc(Td)," ₽"]})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Срок ожидания"}),l.jsx("span",{className:Je.infoValue,children:Lp(_)})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Ставка комиссии"}),l.jsxs("span",{className:Je.infoValue,children:[(g*100).toFixed(1)," %"]})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Сумма комиссии"}),l.jsx("span",{className:Je.infoValue,children:h>0?`≈ ${Lc(x)} ₽`:"—"})]}),l.jsxs("div",{className:Je.infoRow,"data-accent":!0,children:[l.jsx("span",{className:Je.infoLabel,children:"Итого к оплате"}),l.jsx("span",{className:Je.infoValue,children:h>0?`≈ ${Lc(y)} ₽`:"—"})]}),l.jsx("p",{className:Je.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:Je.submitBtn,disabled:m,children:"Оставить заявку"})]})}function VT(){const{data:a}=bs();return!!a&&a.account_type!=="individual"?l.jsx(GT,{}):l.jsx(TT,{})}const kp=52;function QT(a){const[i,c]=j.useState(!1),[r,d]=j.useState(kp),[f,_]=j.useState(!1),v=j.useRef(null),h=j.useCallback(()=>{v.current&&clearInterval(v.current),d(kp),v.current=setInterval(()=>{d(x=>x<=1?(clearInterval(v.current),c(!0),0):x-1)},1e3)},[]);j.useEffect(()=>(h(),()=>{v.current&&clearInterval(v.current)}),[h]);const m=j.useCallback(()=>{c(x=>x?(h(),!1):(v.current&&clearInterval(v.current),!0))},[h]),g=j.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{_(!0),setTimeout(()=>_(!1),1500)})},[a]);return{hidden:i,countdown:r,copied:f,handleHide:m,handleCopy:g}}const YT="_content_o6p8v_1",IT="_titleRow_o6p8v_6",XT="_title_o6p8v_6",PT="_titleButtons_o6p8v_19",ZT="_btnFixed_o6p8v_26",KT="_subtitle_o6p8v_34",WT="_countdown_o6p8v_42",JT="_seedGrid_o6p8v_47",eR="_seedCard_o6p8v_54",tR="_seedNum_o6p8v_73",nR="_seedWord_o6p8v_80",lR="_seedWordHidden_o6p8v_88",aR="_warning_o6p8v_93",sR="_warningIcon_o6p8v_101",iR="_warningText_o6p8v_107",cR="_profileLinkRow_o6p8v_115",rR="_profileLink_o6p8v_115",Ot={content:YT,titleRow:IT,title:XT,titleButtons:PT,btnFixed:ZT,subtitle:KT,countdown:WT,seedGrid:JT,seedCard:eR,seedNum:tR,seedWord:nR,seedWordHidden:lR,warning:aR,warningIcon:sR,warningText:iR,profileLinkRow:cR,profileLink:rR};function oR({words:a}){const{hidden:i,countdown:c,copied:r,handleHide:d,handleCopy:f}=QT(a);return l.jsxs("div",{className:Ot.content,children:[l.jsxs("div",{className:Ot.titleRow,children:[l.jsx("h1",{className:Ot.title,children:"СИД ФРАЗА"}),l.jsxs("div",{className:Ot.titleButtons,children:[l.jsx("div",{className:Ot.btnFixed,children:l.jsx(Jt,{variant:"outline",onClick:d,children:i?"ПОКАЗАТЬ":"СКРЫТЬ"})}),l.jsx("div",{className:Ot.btnFixed,children:l.jsx(Jt,{variant:"outline",onClick:f,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!i&&l.jsxs("div",{className:Ot.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",l.jsx("span",{className:Ot.countdown,children:c}),"С"]}),l.jsx("div",{className:Ot.seedGrid,children:a.map((_,v)=>l.jsxs("div",{className:Ot.seedCard,children:[l.jsxs("span",{className:Ot.seedNum,children:[v+1,"."]}),l.jsx("span",{className:`${Ot.seedWord} ${i?Ot.seedWordHidden:""}`,children:i?"•••••":_})]},v))}),l.jsxs("div",{className:Ot.warning,children:[l.jsx("span",{className:Ot.warningIcon,children:"⚠️"}),l.jsx("p",{className:Ot.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),l.jsx("div",{className:Ot.profileLinkRow,children:l.jsx(Wt,{to:oe.PROFILE,className:Ot.profileLink,children:"Перейти в профиль"})})]})}const uR="_page_1mk6w_1",dR="_main_1mk6w_8",fR="_glow_1mk6w_17",Rd={page:uR,main:dR,glow:fR};function hR(){const{data:a,isLoading:i}=l8(),c=a?a.split(" "):[];return l.jsxs("div",{className:Rd.page,children:[l.jsx(Go,{}),l.jsxs("main",{className:Rd.main,children:[l.jsx("div",{className:Rd.glow}),!i&&l.jsx(oR,{words:c})]})]})}const mR="https://app.kyc.elcsa.ru";function pR(){return j_(!0)}async function j_(a){const i=await _l(),c=await fetch(`${mR}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify({})});if(c.status===401&&a)try{return await Oi(),j_(!1)}catch{throw Yn.clear(),new Error("Unauthorized")}const r=await c.json();if(!c.ok)throw r;return r}function _R(){const a=ot({mutationFn:pR});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const gR="_backdrop_1do7s_1",vR="_modal_1do7s_12",xR="_closeBtn_1do7s_22",yR="_body_1do7s_40",bR="_qrBlock_1do7s_47",jR="_qrImage_1do7s_55",SR="_linkBtn_1do7s_63",ns={backdrop:gR,modal:vR,closeBtn:xR,body:yR,qrBlock:bR,qrImage:jR,linkBtn:SR};function NR({data:a,onClose:i}){return l.jsx("div",{className:ns.backdrop,onClick:i,children:l.jsxs("div",{className:ns.modal,onClick:c=>c.stopPropagation(),children:[l.jsx("button",{className:ns.closeBtn,onClick:i,type:"button",children:"×"}),l.jsx("div",{className:ns.body,children:l.jsxs("div",{className:ns.qrBlock,children:[l.jsx("img",{className:ns.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),l.jsx("a",{className:ns.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const wR="_card_omb8e_1",CR="_logo_omb8e_13",ER="_iconWrapper_omb8e_21",TR="_description_omb8e_34",RR="_buttonWrapper_omb8e_42",AR="_error_omb8e_47",oi={card:wR,logo:CR,iconWrapper:ER,description:TR,buttonWrapper:RR,error:AR};function OR(){const{trigger:a,data:i,isLoading:c,isError:r}=_R(),d=en(),f=Vt(),{data:_}=bs({refetchInterval:i?5e3:!1});j.useEffect(()=>{_!=null&&_.kyc_verified&&d(oe.SEED_PHRASE,{replace:!0})},[_==null?void 0:_.kyc_verified,d]);const v=()=>{f.invalidateQueries({queryKey:["me"]})};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:oi.card,children:[l.jsx("div",{className:oi.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("div",{className:oi.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:oi.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),l.jsx("div",{className:oi.buttonWrapper,children:l.jsx(On,{label:c?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:c})}),r&&l.jsx("p",{className:oi.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),i&&l.jsx(NR,{data:i,onClose:v})]})}const MR="_page_6lnfw_1",zR={page:MR};function DR(){const{data:a,isLoading:i}=bs();return i?null:a!=null&&a.kyc_verified?l.jsx(Uo,{to:oe.PROFILE,replace:!0}):l.jsx("div",{className:zR.page,children:l.jsx(OR,{})})}const LR="_card_mzeuq_1",kR="_logo_mzeuq_10",BR="_title_mzeuq_20",UR="_fields_mzeuq_29",$R="_emailRow_mzeuq_35",HR="_error_mzeuq_41",qR="_submitWrapper_mzeuq_48",FR="_footer_mzeuq_52",GR="_back_mzeuq_58",Bl={card:LR,logo:kR,title:BR,fields:UR,emailRow:$R,error:HR,submitWrapper:qR,footer:FR,back:GR};function VR(){const[a,i]=j.useState(""),[c,r]=j.useState(!1),[d,f]=j.useState(!1),[_,v]=j.useState(""),[h,m]=j.useState(""),[g,x]=j.useState(""),[y,N]=j.useState(""),[S,T]=j.useState(!1),[E,z]=j.useState(null),H=en();async function M(){N(""),f(!0);try{await Tj({email:a}),r(!0),z({status:"success",message:`Код отправлен на ${a}`})}catch{z({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function U(Y){if(Y.preventDefault(),N(""),h!==g){N("Пароли не совпадают");return}T(!0);try{await Aj({email:a,code:_,new_password:h,confirm_password:g}),H(oe.LOGIN)}catch{N("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{T(!1)}}return l.jsxs(l.Fragment,{children:[l.jsxs("form",{className:Bl.card,onSubmit:U,children:[l.jsx("div",{className:Bl.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:Bl.title,children:"Восстановление пароля"}),l.jsxs("div",{className:Bl.fields,children:[l.jsxs("div",{className:Bl.emailRow,children:[l.jsx(W,{label:"E-Mail",type:"email",value:a,onChange:i,placeholder:"example@mail.com",required:!0}),l.jsx(On,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:M})]}),c&&l.jsxs(l.Fragment,{children:[l.jsx(W,{label:"Код с почты",type:"text",value:_,onChange:v,placeholder:"000 000",required:!0}),l.jsx(W,{label:"Новый пароль",type:"password",value:h,onChange:m,placeholder:"••••••••",required:!0}),l.jsx(W,{label:"Повторить пароль",type:"password",value:g,onChange:x,placeholder:"••••••••",required:!0})]})]}),y&&l.jsx("p",{className:Bl.error,children:y}),c&&l.jsx("div",{className:Bl.submitWrapper,children:l.jsx(On,{label:S?"Сохранение...":"Изменить пароль",disabled:S})}),l.jsx("div",{className:Bl.footer,children:l.jsx("a",{className:Bl.back,onClick:()=>H(oe.LOGIN),children:"Вернуться ко входу"})})]}),E&&l.jsx(Yl,{status:E.status,message:E.message,onClose:()=>z(null)})]})}const QR="_page_6lnfw_1",YR={page:QR};function IR(){return l.jsx("div",{className:YR.page,children:l.jsx(VR,{})})}const XR="_main_1fqml_1",PR="_container_1fqml_7",ZR="_title_1fqml_13",KR="_subtitle_1fqml_21",WR="_section_1fqml_29",JR="_sectionTitle_1fqml_33",eA="_definitions_1fqml_42",tA="_definition_1fqml_42",nA="_requisites_1fqml_56",Ne={main:XR,container:PR,title:ZR,subtitle:KR,section:WR,sectionTitle:JR,definitions:eA,definition:tA,requisites:nA};function lA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),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(ys,{})]})}const aA="_main_14e6d_1",sA="_container_14e6d_7",iA="_title_14e6d_13",cA="_subtitle_14e6d_21",rA="_section_14e6d_29",oA="_sectionTitle_14e6d_33",uA="_subSectionTitle_14e6d_42",dA="_definitions_14e6d_50",fA="_definition_14e6d_50",hA="_list_14e6d_64",mA="_goalsList_14e6d_75",pA="_goal_14e6d_75",_A="_contacts_14e6d_105",P={main:aA,container:sA,title:iA,subtitle:cA,section:rA,sectionTitle:oA,subSectionTitle:uA,definitions:dA,definition:fA,list:hA,goalsList:mA,goal:pA,contacts:_A};function gA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:P.main,children:l.jsxs("div",{className:P.container,children:[l.jsx("h1",{className:P.title,children:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),l.jsx("h2",{className:P.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"1. Общие положения"}),l.jsx("p",{children:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."}),l.jsx("p",{children:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."}),l.jsx("p",{children:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."}),l.jsx("h4",{className:P.subSectionTitle,children:"1.4. Основные понятия"}),l.jsxs("div",{className:P.definitions,children:[l.jsxs("div",{className:P.definition,children:[l.jsx("strong",{children:"Автоматизированная обработка персональных данных"})," — обработка персональных данных с помощью средств вычислительной техники."]}),l.jsxs("div",{className:P.definition,children:[l.jsx("strong",{children:"Обработка персональных данных"})," — любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."]}),l.jsxs("div",{className:P.definition,children:[l.jsx("strong",{children:"Оператор"})," — юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."]}),l.jsxs("div",{className:P.definition,children:[l.jsx("strong",{children:"Персональные данные"})," — любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."]}),l.jsxs("div",{className:P.definition,children:[l.jsx("strong",{children:"Пользователь"})," — любой посетитель веб-сайта https://bitforce-foundation.ru."]})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"2. Сведения об операторе"}),l.jsxs("ul",{className:P.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:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"3. Общие цели обработки персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"3.1.1. Основная деятельность:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Предоставление услуг по конвертации иного имущества"}),l.jsx("li",{children:"Осуществление операций на криптовалютных рынках"}),l.jsx("li",{children:"Предоставление услуг в области блокчейн технологий"}),l.jsx("li",{children:"Обеспечение функционирования интернет-платформы и мобильных приложений"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"3.1.2. Обеспечение безопасности:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Предотвращение мошенничества и отмывания денежных средств"}),l.jsx("li",{children:"Обеспечение безопасности платежных операций"}),l.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),l.jsx("li",{children:"Идентификация и верификация клиентов"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"3.1.3. Соблюдение законодательства:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Исполнение требований российского и международного законодательства"}),l.jsx("li",{children:"Взаимодействие с контролирующими и правоохранительными органами"}),l.jsx("li",{children:"Ведение обязательной отчетности и документооборота"}),l.jsx("li",{children:"Соблюдение налогового законодательства"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"4. Цели сбора персональных данных"}),l.jsxs("div",{className:P.goalsList,children:[l.jsxs("div",{className:P.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:P.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:P.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:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"5. Правовые основания обработки персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"5.1.1. Согласие субъекта персональных данных:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Обработка персональных данных в маркетинговых целях"}),l.jsx("li",{children:"Использование файлов cookie и метрик"}),l.jsx("li",{children:"Персонализация сервисов и предложений"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"5.1.2. Необходимость исполнения договора:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Регистрация и ведение учетных записей пользователей"}),l.jsx("li",{children:"Осуществление финансовых операций и переводов"}),l.jsx("li",{children:"Предоставление доступа к платформе и сервисам"}),l.jsx("li",{children:"Техническая поддержка и обслуживание клиентов"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"5.1.3. Соблюдение правовой обязанности:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Выполнение требований валютного законодательства"}),l.jsx("li",{children:"Противодействие легализации доходов, полученных преступным путем"}),l.jsx("li",{children:"Соблюдение требований по налоговому учету и отчетности"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"6. Объем и категории обрабатываемых персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"6.1.1. Пользователи веб-сайта и мобильного приложения:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Зарегистрированные пользователи"}),l.jsx("li",{children:"Посетители сайта без регистрации"}),l.jsx("li",{children:"Потенциальные клиенты"}),l.jsx("li",{children:"Бывшие клиенты"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"6.2.1. Идентификационные данные:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Фамилия, имя, отчество"}),l.jsx("li",{children:"Дата рождения"}),l.jsx("li",{children:"Гражданство"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"6.2.3. Контактная информация:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),l.jsx("li",{children:"Адреса электронной почты"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"6.2.4. Финансовая информация:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Номера банковских счетов и карт"}),l.jsx("li",{children:"Реквизиты кошельков криптовалют"}),l.jsx("li",{children:"История операций и транзакций"}),l.jsx("li",{children:"Данные о доходах и источниках средств"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"6.2.5. Техническая информация:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"IP-адреса устройств"}),l.jsx("li",{children:"Данные о браузере и операционной системе"}),l.jsx("li",{children:"Файлы cookie и локальное хранилище"}),l.jsx("li",{children:"Логи действий на сайте"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"7. Порядок и условия обработки персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"7.1. Принципы обработки персональных данных:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Обработка осуществляется на законной и справедливой основе"}),l.jsx("li",{children:"Обработка ограничивается достижением конкретных, заранее определенных целей"}),l.jsx("li",{children:"Содержание и объем данных соответствуют заявленным целям"}),l.jsx("li",{children:"Обрабатываемые персональные данные являются точными и актуальными"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"7.4. Сроки обработки персональных данных:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей"}),l.jsx("li",{children:"После достижения целей персональные данные подлежат уничтожению или обезличиванию"}),l.jsx("li",{children:"Сроки хранения определяются требованиями законодательства"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"7.5. Места обработки персональных данных:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Основные серверы и хранилища данных расположены на территории Российской Федерации"}),l.jsx("li",{children:"Резервные копии могут храниться в дата-центрах на территории РФ"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"8. Актуализация, исправление, удаление и уничтожение персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"8.2.2. Процедура исправления:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Рассмотрение запроса в течение 30 дней"}),l.jsx("li",{children:"Проверка обоснованности требования об исправлении"}),l.jsx("li",{children:"Внесение изменений во все информационные системы"}),l.jsx("li",{children:"Уведомление субъекта о проведенных исправлениях"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"8.3.2. Процедура удаления:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Проверка наличия законных оснований для продолжения обработки"}),l.jsx("li",{children:"Удаление из всех информационных систем и баз данных"}),l.jsx("li",{children:"Удаление резервных копий (кроме архивных)"}),l.jsx("li",{children:"Уведомление субъекта о выполненном удалении"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"9. Ответы на запросы субъектов персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"9.1.1. Право на информацию:"}),l.jsxs("ul",{className:P.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:P.subSectionTitle,children:"9.2.2. Сроки рассмотрения:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Срок рассмотрения запроса составляет 30 дней с момента получения"}),l.jsx("li",{children:"Срок может быть продлен на 30 дней при большом объеме информации"}),l.jsx("li",{children:"О продлении срока субъект уведомляется в течение 30 дней"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"9.4. Плата за предоставление информации:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Первый запрос в течение года обрабатывается бесплатно"}),l.jsx("li",{children:"За повторные запросы может взиматься плата в размере расходов"}),l.jsx("li",{children:"Субъект уведомляется о размере платы до предоставления информации"})]})]}),l.jsxs("section",{className:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"10. Обеспечение безопасности персональных данных"}),l.jsx("h4",{className:P.subSectionTitle,children:"10.1. Правовые меры:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Принятие локальных актов по вопросам обработки персональных данных"}),l.jsx("li",{children:"Ознакомление работников с требованиями законодательства"}),l.jsx("li",{children:"Применение мер ответственности за нарушение требований"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"10.3. Технические меры:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Предотвращение несанкционированного доступа к персональным данным"}),l.jsx("li",{children:"Своевременное обнаружение фактов несанкционированного доступа"}),l.jsx("li",{children:"Возможность незамедлительного восстановления персональных данных"}),l.jsx("li",{children:"Постоянный контроль за обеспечением уровня защищенности"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"10.4. Конкретные технические решения:"}),l.jsxs("ul",{className:P.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:P.section,children:[l.jsx("h3",{className:P.sectionTitle,children:"12. Заключительные положения"}),l.jsx("h4",{className:P.subSectionTitle,children:"12.2. Жалобы и обращения:"}),l.jsxs("ul",{className:P.list,children:[l.jsx("li",{children:"Субъекты персональных данных могут обратиться к Оператору по вопросам обработки"}),l.jsx("li",{children:"Жалобы рассматриваются в установленном законом порядке"}),l.jsx("li",{children:"При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"})]}),l.jsx("h4",{className:P.subSectionTitle,children:"12.4. Контактная информация для обращений:"}),l.jsxs("p",{className:P.contacts,children:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н",l.jsx("br",{}),"Электронная почта: company@bitforcefoundation.ru"]})]})]})}),l.jsx(ys,{})]})}const vA="_main_iq2qw_1",xA="_container_iq2qw_7",yA="_title_iq2qw_13",bA="_section_iq2qw_21",jA="_sectionTitle_iq2qw_25",SA="_subSectionTitle_iq2qw_34",NA="_list_iq2qw_42",wA="_info_iq2qw_57",CA="_example_iq2qw_71",EA="_warning_iq2qw_81",te={main:vA,container:xA,title:yA,section:bA,sectionTitle:jA,subSectionTitle:SA,list:NA,info:wA,example:CA,warning:EA};function TA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:te.main,children:l.jsxs("div",{className:te.container,children:[l.jsx("h1",{className:te.title,children:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE"}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.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:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Оператор персональных данных"}),l.jsx("p",{children:"Оператором персональных данных, содержащихся в файлах cookie, является:"}),l.jsxs("div",{className:te.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:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Категории файлов cookie и их назначение"}),l.jsx("h4",{className:te.subSectionTitle,children:"1. Строго необходимые (технические) файлы cookie"}),l.jsx("p",{children:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."}),l.jsx("p",{children:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."}),l.jsx("p",{className:te.example,children:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."}),l.jsx("h4",{className:te.subSectionTitle,children:"2. Функциональные файлы cookie"}),l.jsx("p",{children:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."}),l.jsx("p",{className:te.example,children:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."}),l.jsx("h4",{className:te.subSectionTitle,children:"3. Аналитические файлы cookie"}),l.jsx("p",{children:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных."}),l.jsx("h4",{className:te.subSectionTitle,children:"4. Маркетинговые файлы cookie"}),l.jsx("p",{children:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."}),l.jsx("p",{children:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."}),l.jsx("p",{className:te.example,children:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."})]}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Правовые основания обработки персональных данных"}),l.jsx("p",{children:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"}),l.jsxs("ul",{className:te.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:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Порядок получения согласия"}),l.jsx("h4",{className:te.subSectionTitle,children:"Принципы получения согласия:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Согласие должно быть получено до начала обработки персональных данных"}),l.jsx("li",{children:"Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса"}),l.jsx("li",{children:"Предоставляется возможность выбора категорий файлов cookie"}),l.jsx("li",{children:"Используются активные формулировки вместо пассивных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Критерии действительного согласия:"}),l.jsxs("ul",{className:te.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:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Сторонние файлы cookie"}),l.jsx("h4",{className:te.subSectionTitle,children:"Использование сторонних сервисов:"}),l.jsx("p",{children:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Яндекс.Метрика (ООО «ЯНДЕКС», Россия)"}),l.jsx("li",{children:"Социальные сети и сервисы интеграции"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Обеспечение защиты:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Получено согласие на передачу"}),l.jsx("li",{children:"Применяются дополнительные меры защиты данных"}),l.jsx("li",{children:"Контролируется соблюдение принципов обработки персональных данных получателями"})]})]}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Сроки обработки и хранения"}),l.jsx("h4",{className:te.subSectionTitle,children:"Категории по срокам хранения:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Сеансовые cookie — удаляются автоматически при закрытии браузера"}),l.jsx("li",{children:"Постоянные cookie — хранятся установленный период или до удаления пользователем"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Конкретные сроки:"}),l.jsxs("ul",{className:te.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:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Права субъектов персональных данных"}),l.jsx("h4",{className:te.subSectionTitle,children:"Право на информацию:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Получение информации о обработке персональных данных"}),l.jsx("li",{children:"Сведения о правовых основаниях и целях обработки"}),l.jsx("li",{children:"Информация о сроках обработки и составе данных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Право на доступ:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Получение подтверждения факта обработки"}),l.jsx("li",{children:"Ознакомление с обрабатываемыми персональными данными"}),l.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Право на уточнение, блокирование, удаление:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Требование уточнения неточных данных"}),l.jsx("li",{children:"Блокирование недостоверных данных"}),l.jsx("li",{children:"Удаление незаконно полученных данных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Право на отзыв согласия:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Отзыв согласия в любое время"}),l.jsx("li",{children:"Прекращение обработки после отзыва согласия"}),l.jsx("li",{children:"Сохранение права на обжалование действий оператора"})]})]}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Способы управления файлами cookie"}),l.jsx("h4",{className:te.subSectionTitle,children:"Управление через настройки сайта:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Использование баннера согласия на файлы cookie"}),l.jsx("li",{children:"Изменение настроек в любое время через интерфейс сайта"}),l.jsx("li",{children:"Отзыв согласия на использование отдельных категорий файлов cookie"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Управление через браузер:"}),l.jsx("p",{children:"Большинство браузеров позволяют контролировать файлы cookie:"}),l.jsxs("ul",{className:te.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:te.subSectionTitle,children:"Инструкции для популярных браузеров:"}),l.jsxs("ul",{className:te.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:te.warning,children:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."})]}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Меры безопасности"}),l.jsx("p",{children:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"}),l.jsx("h4",{className:te.subSectionTitle,children:"Правовые меры:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Ознакомление сотрудников с требованиями законодательства"}),l.jsx("li",{children:"Заключение соглашений о неразглашении персональных данных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Организационные меры:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Определение перечня лиц, допущенных к обработке персональных данных"}),l.jsx("li",{children:"Установление правил доступа к персональным данным"}),l.jsx("li",{children:"Контроль за соблюдением требований по защите персональных данных"})]}),l.jsx("h4",{className:te.subSectionTitle,children:"Технические меры:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Использование средств защиты информации"}),l.jsx("li",{children:"Применение криптографических средств защиты"}),l.jsx("li",{children:"Обеспечение целостности и доступности персональных данных"}),l.jsx("li",{children:"Регулярное обновление систем защиты информации"})]})]}),l.jsxs("section",{className:te.section,children:[l.jsx("h3",{className:te.sectionTitle,children:"Контактная информация и обращения"}),l.jsx("p",{children:"Для реализации прав субъекта персональных данных обращайтесь к нам:"}),l.jsxs("div",{className:te.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:te.subSectionTitle,children:"Порядок рассмотрения обращений:"}),l.jsxs("ul",{className:te.list,children:[l.jsx("li",{children:"Срок рассмотрения обращений — до 30 дней с момента получения"}),l.jsx("li",{children:"Обращения рассматриваются в письменной форме"}),l.jsx("li",{children:"Ответ направляется способом, указанным в обращении"}),l.jsx("li",{children:"При отказе в удовлетворении требований указываются мотивированные основания"})]})]})]})}),l.jsx(ys,{})]})}const RA="_main_9j8kd_1",AA="_container_9j8kd_7",OA="_title_9j8kd_13",MA="_subtitle_9j8kd_21",zA="_section_9j8kd_29",DA="_sectionTitle_9j8kd_33",LA="_subSectionTitle_9j8kd_42",kA="_list_9j8kd_50",BA="_info_9j8kd_65",UA="_contacts_9j8kd_79",$A="_confirmation_9j8kd_92",K={main:RA,container:AA,title:OA,subtitle:MA,section:zA,sectionTitle:DA,subSectionTitle:LA,list:kA,info:BA,contacts:UA,confirmation:$A};function HA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),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(ys,{})]})}const qA="_main_2hruc_1",FA="_container_2hruc_7",GA="_title_2hruc_13",VA="_subtitle_2hruc_21",QA="_section_2hruc_29",YA="_sectionTitle_2hruc_33",IA="_description_2hruc_42",XA="_info_2hruc_49",PA="_linkBlock_2hruc_56",ZA="_button_2hruc_64",KA="_operatorInfo_2hruc_81",Pt={main:qA,container:FA,title:GA,subtitle:VA,section:QA,sectionTitle:YA,description:IA,info:XA,linkBlock:PA,button:ZA,operatorInfo:KA};function WA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:Pt.main,children:l.jsxs("div",{className:Pt.container,children:[l.jsx("h1",{className:Pt.title,children:"Реестр операторов персональных данных"}),l.jsx("h2",{className:Pt.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:Pt.section,children:[l.jsx("p",{className:Pt.description,children:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."}),l.jsx("p",{className:Pt.info,children:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"}),l.jsx("div",{className:Pt.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®n=",target:"_blank",rel:"noopener noreferrer",className:Pt.button,children:"Открыть реестр Роскомнадзора"})}),l.jsx("p",{className:Pt.info,children:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."})]}),l.jsxs("section",{className:Pt.section,children:[l.jsx("h3",{className:Pt.sectionTitle,children:"Информация об операторе"}),l.jsxs("div",{className:Pt.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:Pt.section,children:[l.jsx("h3",{className:Pt.sectionTitle,children:"О Роскомнадзоре"}),l.jsx("p",{children:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."}),l.jsx("p",{children:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."})]})]})}),l.jsx(ys,{})]})}function Bp(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function JA(a){return a?a.length<=16?a:`${a.slice(0,8)}…${a.slice(-6)}`:"—"}function Up(a){return Number(a).toLocaleString("ru-RU")}const eO={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},tO="_badge_1d3cq_1",nO="_status_pending_1d3cq_10",lO="_status_completed_1d3cq_15",aO="_status_money_accepted_1d3cq_20",sO="_status_web3_processing_1d3cq_25",iO="_status_web3_hash_error_1d3cq_30",cO="_status_web3_balance_problem_1d3cq_35",rO="_status_receipt_error_1d3cq_40",oO="_status_usdt_delivered_1d3cq_45",$p={badge:tO,status_pending:nO,status_completed:lO,status_money_accepted:aO,status_web3_processing:sO,status_web3_hash_error:iO,status_web3_balance_problem:cO,status_receipt_error:rO,status_usdt_delivered:oO};function Hp({status:a}){return l.jsx("span",{className:`${$p.badge} ${$p[`status_${a}`]??""}`,children:eO[a]??a})}const uO="_button_1q7wx_1",dO={button:uO};function fO({value:a}){const[i,c]=j.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{c(!0),setTimeout(()=>c(!1),1500)})}return l.jsx("button",{className:dO.button,onClick:r,type:"button",title:"Скопировать",children:i?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 hO="_item_1ymly_1",mO="_summary_1ymly_8",pO="_summaryLeft_1ymly_25",_O="_summaryDate_1ymly_34",gO="_summaryRight_1ymly_41",vO="_amount_1ymly_48",xO="_totalAmount_1ymly_56",yO="_chevron_1ymly_64",bO="_chevronOpen_1ymly_70",jO="_bodyOuter_1ymly_74",SO="_bodyOuterOpen_1ymly_80",NO="_bodyInner_1ymly_84",wO="_body_1ymly_74",CO="_col_1ymly_96",EO="_colTitle_1ymly_101",TO="_infoRow_1ymly_110",RO="_infoRowTotal_1ymly_123",AO="_infoLabel_1ymly_128",OO="_infoValue_1ymly_129",MO="_infoValueRow_1ymly_148",zO="_infoLink_1ymly_154",Be={item:hO,summary:mO,summaryLeft:pO,summaryDate:_O,summaryRight:gO,amount:vO,totalAmount:xO,chevron:yO,chevronOpen:bO,bodyOuter:jO,bodyOuterOpen:SO,bodyInner:NO,body:wO,col:CO,colTitle:EO,infoRow:TO,infoRowTotal:RO,infoLabel:AO,infoValue:OO,infoValueRow:MO,infoLink:zO};function DO({item:a}){const[i,c]=j.useState(!1),{order:r,payment:d}=a;return l.jsxs("div",{className:Be.item,children:[l.jsxs("button",{className:Be.summary,onClick:()=>c(f=>!f),type:"button","aria-expanded":i,children:[l.jsxs("div",{className:Be.summaryLeft,children:[l.jsx("span",{className:Be.summaryDate,children:Bp(r.created_at)}),d&&l.jsx(Hp,{status:d.status})]}),l.jsxs("div",{className:Be.summaryRight,children:[l.jsxs("span",{className:Be.amount,children:[r.usdt_amount," USDT"]}),l.jsxs("span",{className:Be.totalAmount,children:[Up(r.total_price)," ₽"]}),l.jsx("svg",{className:`${Be.chevron} ${i?Be.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:`${Be.bodyOuter} ${i?Be.bodyOuterOpen:""}`,children:l.jsx("div",{className:Be.bodyInner,children:l.jsxs("div",{className:Be.body,children:[l.jsxs("div",{className:Be.col,children:[l.jsx("p",{className:Be.colTitle,children:"Заказ"}),l.jsx(ls,{label:"Сумма USDT",value:`${r.usdt_amount} USDT`}),l.jsx(ls,{label:"Курс обмена",value:`1 USDT = ${r.usdt_exchange_rate} ₽`}),l.jsx(ls,{label:"Сервисный сбор",value:`${r.service_fee} USDT`}),l.jsx(ls,{label:"Комиссия за газ",value:`${r.gas_fee} USDT`}),l.jsx(ls,{label:"Итого к оплате",value:`${Up(r.total_price)} ₽`,emphasised:!0})]}),l.jsxs("div",{className:Be.col,children:[l.jsx("p",{className:Be.colTitle,children:"Платёж"}),d?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:Be.infoRow,children:[l.jsx("span",{className:Be.infoLabel,children:"Статус"}),l.jsx(Hp,{status:d.status})]}),l.jsx(ls,{label:"Оплачено",value:d.itpay_paid_amount||"—"}),l.jsx(ls,{label:"Истекает",value:Bp(d.expired_date)}),l.jsxs("div",{className:Be.infoRow,children:[l.jsx("span",{className:Be.infoLabel,children:"Хэш транзакции"}),l.jsxs("span",{className:Be.infoValueRow,children:[l.jsx("span",{className:Be.infoValue,title:d.web3_transaction_hash||void 0,children:JA(d.web3_transaction_hash)}),d.web3_transaction_hash&&l.jsx(fO,{value:d.web3_transaction_hash})]})]}),l.jsxs("div",{className:Be.infoRow,children:[l.jsx("span",{className:Be.infoLabel,children:"Чек"}),d.receipt_cloudekassir_link?l.jsx("a",{href:d.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:Be.infoLink,children:"Открыть →"}):l.jsx("span",{className:Be.infoValue,children:"—"})]})]}):l.jsx("div",{className:Be.infoRow,children:l.jsx("span",{className:Be.infoValue,children:"—"})})]})]})})})]})}function ls({label:a,value:i,emphasised:c}){return l.jsxs("div",{className:`${Be.infoRow} ${c?Be.infoRowTotal:""}`,children:[l.jsx("span",{className:Be.infoLabel,children:a}),l.jsx("span",{className:Be.infoValue,children:i})]})}const LO="_list_gxp0d_1",kO="_empty_gxp0d_9",BO="_status_gxp0d_16",UO="_statusError_gxp0d_23",$O="_loadMore_gxp0d_30",HO="_loadMoreBtn_gxp0d_38",ui={list:LO,empty:kO,status:BO,statusError:UO,loadMore:$O,loadMoreBtn:HO};function qO(){const{data:a,isLoading:i,isError:c,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=db(),_=(a==null?void 0:a.pages.flatMap(v=>v.orders))??[];return i?l.jsx("p",{className:ui.status,children:"Загрузка..."}):c?l.jsx("p",{className:ui.statusError,children:"Не удалось загрузить транзакции. Попробуйте обновить страницу."}):_.length===0?l.jsx("p",{className:ui.empty,children:"У вас пока нет транзакций."}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:ui.list,children:_.map(v=>l.jsx(DO,{item:v},v.order.id))}),d&&l.jsx("div",{className:ui.loadMore,children:l.jsx("button",{className:ui.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const FO="_inner_1rs5c_1",GO="_glow_1rs5c_9",VO="_title_1rs5c_21",Ad={inner:FO,glow:GO,title:VO};function QO(){return l.jsxs("div",{className:Ad.inner,children:[l.jsx("div",{className:Ad.glow}),l.jsx("h1",{className:Ad.title,children:"Транзакции"}),l.jsx(qO,{})]})}const S_="https://app.admin.elcsa.ru";let Od=null;const qc={get:()=>Od,set:a=>{Od=a},clear:()=>{Od=null}};async function nl(a,i,c){const r=qc.get(),d=i.body instanceof FormData,f=await fetch(`${S_}${a}`,{...i,credentials:"include",headers:{...d?{}:{"Content-Type":"application/json"},...r?{Authorization:`Bearer ${r}`}:{},...i.headers}});if(f.status===401&&c)try{return await N_(),nl(a,i,!1)}catch{throw qc.clear(),new Error("Unauthorized")}const _=await f.json().catch(()=>null);if(!f.ok)throw _;return _}async function N_(){const a=await fetch(`${S_}/v1/auth/refresh`,{method:"POST",credentials:"include"});if(!a.ok)throw new Error("Unauthorized");const i=await a.json();return i.access_token&&qc.set(i.access_token),i.access_token??!0}async function YO(a){const i=await nl("/v1/auth/login",{method:"POST",body:JSON.stringify(a)},!1);return i.access_token&&qc.set(i.access_token),i}async function IO(){try{await nl("/v1/auth/logout",{method:"POST"},!1)}finally{qc.clear()}}function XO(a=50,i=0){return nl(`/v1/organizations?limit=${a}&offset=${i}`,{},!0)}function PO(a){return nl("/v1/organizations",{method:"POST",body:JSON.stringify(a)},!0)}function ZO(a){return nl(`/v1/organizations/${a}`,{},!0)}function KO(a){return nl(`/v1/organizations/${a}/wallets/create`,{method:"POST"},!0)}function WO(a){return nl(`/v1/organizations/${a}/documents`,{},!0)}function JO(a,i,c){const r=new FormData;return r.append("document_type",i),r.append("file",c),nl(`/v1/organizations/${a}/documents`,{method:"POST",body:r},!0)}async function eM(a){const i=new URLSearchParams;a.organizationId&&i.set("organization_id",a.organizationId),a.status&&i.set("status",a.status),i.set("limit",String(a.limit??50)),i.set("offset",String(a.offset??0));const c=await nl(`/v1/purchase-requests?${i.toString()}`,{},!0);return console.log("[purchase-requests] list response:",c),c}function tM(a,i){return nl(`/v1/organizations/${a}`,{method:"PATCH",body:JSON.stringify(i)},!0)}const S2=["admin-auth"];function w_(){const{data:a,isLoading:i,isError:c}=Tt({queryKey:S2,queryFn:N_,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1});return{isAuthenticated:!!a&&!c,isLoading:i}}function nM(){const a=Vt();return ot({mutationFn:YO,onSuccess:i=>{a.setQueryData(S2,i.access_token)}})}function lM(){const a=Vt();return ot({mutationFn:IO,onSuccess:()=>{a.setQueryData(S2,null)}})}const Qo=["admin-organizations"];function aM(){return Tt({queryKey:Qo,queryFn:()=>XO()})}const N2=a=>["admin-organization",a];function sM(a){return Tt({queryKey:N2(a??""),queryFn:()=>ZO(a),enabled:!!a})}function iM(){const a=Vt();return ot({mutationFn:PO,onSuccess:()=>{a.invalidateQueries({queryKey:Qo})}})}function cM(){const a=Vt();return ot({mutationFn:i=>KO(i),onSuccess:(i,c)=>{a.invalidateQueries({queryKey:Qo}),a.invalidateQueries({queryKey:N2(c)})}})}function rM(a){const i=Vt();return ot({mutationFn:c=>tM(a,c),onSuccess:c=>{i.setQueryData(N2(a),c),i.invalidateQueries({queryKey:Qo})}})}const C_=a=>["admin-documents",a];function oM(a){return Tt({queryKey:C_(a??""),queryFn:()=>WO(a),enabled:!!a})}function uM(a){const i=Vt();return ot({mutationFn:({documentType:c,file:r})=>JO(a,c,r),onSuccess:()=>{i.invalidateQueries({queryKey:C_(a)})}})}const dM=a=>["admin-purchase-requests",a];function fM(a){return Tt({queryKey:dM(a??""),queryFn:()=>eM({organizationId:a}),enabled:!!a})}function hM(a){var c;const i=a;return typeof(i==null?void 0:i.detail)=="string"?i.detail:Array.isArray(i==null?void 0:i.detail)&&((c=i.detail[0])!=null&&c.msg)?i.detail[0].msg:"Неверный логин или пароль"}function mM(){const[a,i]=j.useState(""),[c,r]=j.useState(""),d=nM(),f=v=>{v.preventDefault(),!(!a||!c)&&d.mutate({login:a,password:c})},_=d.isError?hM(d.error):null;return{login:a,setLogin:i,password:c,setPassword:r,isLoading:d.isPending,error:_,handleSubmit:f}}const pM="_wrap_1uvln_1",_M="_card_1uvln_10",gM="_title_1uvln_19",vM="_subtitle_1uvln_27",xM="_fields_1uvln_34",yM="_error_1uvln_40",bM="_submit_1uvln_47",as={wrap:pM,card:_M,title:gM,subtitle:vM,fields:xM,error:yM,submit:bM};function E_(){const{login:a,setLogin:i,password:c,setPassword:r,isLoading:d,error:f,handleSubmit:_}=mM();return l.jsx("div",{className:as.wrap,children:l.jsxs("form",{className:as.card,onSubmit:_,children:[l.jsx("h1",{className:as.title,children:"Панель администратора"}),l.jsx("p",{className:as.subtitle,children:"Войдите, чтобы продолжить"}),l.jsxs("div",{className:as.fields,children:[l.jsx(W,{label:"Логин",value:a,onChange:i,placeholder:"Введите логин",required:!0}),l.jsx(W,{label:"Пароль",type:"password",value:c,onChange:r,placeholder:"Введите пароль",required:!0})]}),f&&l.jsx("p",{className:as.error,children:f}),l.jsx("div",{className:as.submit,children:l.jsx(On,{label:d?"Вход...":"Войти",disabled:d})})]})})}const jM="_tableWrap_1ue6f_1",SM="_table_1ue6f_1",NM="_row_1ue6f_38",wM="_name_1ue6f_42",CM="_subname_1ue6f_47",EM="_mono_1ue6f_54",TM="_status_1ue6f_59",RM="_kyc_1ue6f_70",AM="_kycOk_1ue6f_78",OM="_kycNo_1ue6f_83",MM="_state_1ue6f_88",Mt={tableWrap:jM,table:SM,row:NM,name:wM,subname:CM,mono:EM,status:TM,kyc:RM,kycOk:AM,kycNo:OM,state:MM},zM={active:"Активно",blocked:"Заблокировано",inactive:"Неактивно"};function DM(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleDateString("ru-RU")}function LM(){const{data:a,isLoading:i,isError:c}=aM(),r=en();return i?l.jsx("div",{className:Mt.tableWrap,children:l.jsx("div",{className:Mt.state,children:"Загрузка..."})}):c?l.jsx("div",{className:Mt.tableWrap,children:l.jsx("div",{className:Mt.state,children:"Не удалось загрузить список юридических лиц"})}):!a||a.items.length===0?l.jsx("div",{className:Mt.tableWrap,children:l.jsx("div",{className:Mt.state,children:"Юридические лица ещё не добавлены"})}):l.jsx("div",{className:Mt.tableWrap,children:l.jsxs("table",{className:Mt.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("th",{children:"Телефон"}),l.jsx("th",{children:"Статус"}),l.jsx("th",{children:"KYC"}),l.jsx("th",{children:"Создано"})]})}),l.jsx("tbody",{children:a.items.map(d=>l.jsxs("tr",{className:Mt.row,onClick:()=>r(mb(d.id)),children:[l.jsxs("td",{children:[l.jsx("span",{className:Mt.name,children:d.name}),d.short_name&&l.jsx("span",{className:Mt.subname,children:d.short_name})]}),l.jsx("td",{className:Mt.mono,children:d.inn}),l.jsx("td",{className:Mt.mono,children:d.kpp??"—"}),l.jsx("td",{children:d.contact_person??"—"}),l.jsx("td",{className:Mt.mono,children:d.contact_phone??"—"}),l.jsx("td",{children:l.jsx("span",{className:Mt.status,children:zM[d.status]??d.status})}),l.jsx("td",{children:l.jsx("span",{className:`${Mt.kyc} ${d.kyc_verified?Mt.kycOk:Mt.kycNo}`,children:d.kyc_verified?"Да":"Нет"})}),l.jsx("td",{children:DM(d.created_at)})]},d.id))})]})})}const qp={email:"",password:"",name:"",inn:"",short_name:"",ogrn:"",kpp:"",legal_address:"",actual_address:"",contact_person:"",contact_phone:"",status:"active",bank_name:"",bik:"",account:"",corr_account:""};function kM(a){var c;const i=a;return typeof(i==null?void 0:i.detail)=="string"?i.detail:Array.isArray(i==null?void 0:i.detail)&&((c=i.detail[0])!=null&&c.msg)?i.detail[0].msg:"Не удалось добавить юридическое лицо"}function BM(a){const[i,c]=j.useState(qp),r=iM(),d=v=>h=>c(m=>({...m,[v]:h})),f=v=>{v.preventDefault();const h=x=>x.trim()?x.trim():null,m={};i.bank_name.trim()&&(m.bank_name=i.bank_name.trim()),i.bik.trim()&&(m.bik=i.bik.trim()),i.account.trim()&&(m.account=i.account.trim()),i.corr_account.trim()&&(m.corr_account=i.corr_account.trim());const g={email:i.email.trim(),password:i.password,name:i.name.trim(),inn:i.inn.trim(),short_name:h(i.short_name),ogrn:h(i.ogrn),kpp:h(i.kpp),legal_address:h(i.legal_address),actual_address:h(i.actual_address),contact_person:h(i.contact_person),contact_phone:h(i.contact_phone),bank_details:Object.keys(m).length?m:null,status:i.status.trim()||"active"};r.mutate(g,{onSuccess:x=>{c(qp),a(x)}})},_=r.isError?kM(r.error):null;return{form:i,setField:d,handleSubmit:f,isLoading:r.isPending,error:_}}const UM="_overlay_680hz_6",$M="_dialog_680hz_18",HM="_header_680hz_30",qM="_title_680hz_38",FM="_closeBtn_680hz_44",GM="_body_680hz_59",VM="_groupLabel_680hz_67",QM="_grid_680hz_80",YM="_error_680hz_86",IM="_actions_680hz_93",hn={overlay:UM,dialog:$M,header:HM,title:qM,closeBtn:FM,body:GM,groupLabel:VM,grid:QM,error:YM,actions:IM};function XM({open:a,onClose:i,onCreated:c}){const{form:r,setField:d,handleSubmit:f,isLoading:_,error:v}=BM(m=>{c(m),i()});if(j.useEffect(()=>{if(!a)return;function m(g){g.key==="Escape"&&i()}return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[a,i]),!a)return null;function h(m){m.target===m.currentTarget&&i()}return l.jsx("div",{className:hn.overlay,onMouseDown:h,children:l.jsxs("div",{className:hn.dialog,children:[l.jsxs("div",{className:hn.header,children:[l.jsx("span",{className:hn.title,children:"Добавить юридическое лицо"}),l.jsx("button",{className:hn.closeBtn,type:"button",onClick:i,"aria-label":"Закрыть",children:"✕"})]}),l.jsxs("form",{className:hn.body,onSubmit:f,children:[l.jsx("p",{className:hn.groupLabel,children:"Обязательные поля"}),l.jsxs("div",{className:hn.grid,children:[l.jsx(W,{label:"Email",type:"email",value:r.email,onChange:d("email"),placeholder:"org@mail.ru",required:!0}),l.jsx(W,{label:"Пароль",type:"password",value:r.password,onChange:d("password"),placeholder:"Минимум 8 символов",required:!0}),l.jsx(W,{label:"Наименование",value:r.name,onChange:d("name"),placeholder:"ООО «Ромашка»",required:!0}),l.jsx(W,{label:"ИНН",value:r.inn,onChange:d("inn"),placeholder:"10–12 цифр",required:!0})]}),l.jsx("p",{className:hn.groupLabel,children:"Дополнительные поля"}),l.jsxs("div",{className:hn.grid,children:[l.jsx(W,{label:"Краткое наименование",value:r.short_name,onChange:d("short_name"),placeholder:"Ромашка"}),l.jsx(W,{label:"ОГРН",value:r.ogrn,onChange:d("ogrn"),placeholder:"—"}),l.jsx(W,{label:"КПП",value:r.kpp,onChange:d("kpp"),placeholder:"—"}),l.jsx(W,{label:"Статус",value:r.status,onChange:d("status"),placeholder:"active"}),l.jsx(W,{label:"Юридический адрес",value:r.legal_address,onChange:d("legal_address"),placeholder:"—"}),l.jsx(W,{label:"Фактический адрес",value:r.actual_address,onChange:d("actual_address"),placeholder:"—"}),l.jsx(W,{label:"Контактное лицо",value:r.contact_person,onChange:d("contact_person"),placeholder:"—"}),l.jsx(W,{label:"Контактный телефон",type:"tel",value:r.contact_phone,onChange:d("contact_phone"),placeholder:"+7 (999) 000-00-00"})]}),l.jsx("p",{className:hn.groupLabel,children:"Банковские реквизиты"}),l.jsxs("div",{className:hn.grid,children:[l.jsx(W,{label:"Банк",value:r.bank_name,onChange:d("bank_name"),placeholder:"—"}),l.jsx(W,{label:"БИК",value:r.bik,onChange:d("bik"),placeholder:"—"}),l.jsx(W,{label:"Расчётный счёт",value:r.account,onChange:d("account"),placeholder:"—"}),l.jsx(W,{label:"Корр. счёт",value:r.corr_account,onChange:d("corr_account"),placeholder:"—"})]}),v&&l.jsx("p",{className:hn.error,children:v}),l.jsx("div",{className:hn.actions,children:l.jsx(On,{label:_?"Сохранение...":"Сохранить",disabled:_})})]})]})})}const PM="_page_1tzmp_1",ZM="_header_1tzmp_7",KM="_greeting_1tzmp_15",WM="_logout_1tzmp_22",JM="_content_1tzmp_41",ez="_toolbar_1tzmp_46",tz="_sectionTitle_1tzmp_55",nz="_addBtn_1tzmp_62",ba={page:PM,header:ZM,greeting:KM,logout:WM,content:JM,toolbar:ez,sectionTitle:tz,addBtn:nz};function lz(){const{isAuthenticated:a,isLoading:i}=w_(),c=lM(),r=cM(),[d,f]=j.useState(!1),[_,v]=j.useState(null);function h(m){v({status:"success",message:"Юридическое лицо добавлено"}),r.mutate(m.id,{onSuccess:g=>{v({status:"success",message:`Кошельки созданы (${g.length})`})},onError:()=>{v({status:"warning",message:"Юридическое лицо создано, но кошельки создать не удалось"})}})}return i?null:a?l.jsxs("div",{className:ba.page,children:[l.jsxs("header",{className:ba.header,children:[l.jsx("h1",{className:ba.greeting,children:"Привет, Марк!"}),l.jsx("button",{className:ba.logout,type:"button",onClick:()=>c.mutate(),children:"Выйти"})]}),l.jsxs("section",{className:ba.content,children:[l.jsxs("div",{className:ba.toolbar,children:[l.jsx("h2",{className:ba.sectionTitle,children:"Юридические лица"}),l.jsx("button",{className:ba.addBtn,type:"button",onClick:()=>f(!0),children:"+ Добавить юридическое лицо"})]}),l.jsx(LM,{})]}),l.jsx(XM,{open:d,onClose:()=>f(!1),onCreated:h}),_&&l.jsx(Yl,{status:_.status,message:_.message,onClose:()=>v(null)})]}):l.jsx(E_,{})}const az="_section_udgdc_1",sz="_sectionTitle_udgdc_8",iz="_uploadForm_udgdc_17",cz="_input_udgdc_25",rz="_fileInput_udgdc_43",oz="_uploadBtn_udgdc_65",uz="_table_udgdc_83",dz="_mono_udgdc_107",fz="_downloadBtn_udgdc_112",hz="_muted_udgdc_131",mz="_state_udgdc_135",pz="_error_udgdc_142",mn={section:az,sectionTitle:sz,uploadForm:iz,input:cz,fileInput:rz,uploadBtn:oz,table:uz,mono:dz,downloadBtn:fz,muted:hz,state:mz,error:pz};function _z(a){return a<1024?`${a} Б`:a<1024*1024?`${(a/1024).toFixed(1)} КБ`:`${(a/(1024*1024)).toFixed(1)} МБ`}function gz(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleString("ru-RU")}function vz(a){var c;const i=a;return typeof(i==null?void 0:i.detail)=="string"?i.detail:Array.isArray(i==null?void 0:i.detail)&&((c=i.detail[0])!=null&&c.msg)?i.detail[0].msg:typeof(i==null?void 0:i.message)=="string"?i.message:"Не удалось выполнить операцию"}function xz({orgId:a}){const{data:i,isLoading:c,isError:r}=oM(a),d=uM(a),f=j.useRef(null),[_,v]=j.useState(""),[h,m]=j.useState(null);function g(y){y.preventDefault(),h&&d.mutate({documentType:_.trim()||"other",file:h},{onSuccess:()=>{v(""),m(null),f.current&&(f.current.value="")}})}const x=d.isError?vz(d.error):null;return l.jsxs("section",{className:mn.section,children:[l.jsx("h2",{className:mn.sectionTitle,children:"Документы"}),l.jsxs("form",{className:mn.uploadForm,onSubmit:g,children:[l.jsx("input",{className:mn.input,type:"text",placeholder:"Тип документа (необязательно)",value:_,onChange:y=>v(y.target.value)}),l.jsx("input",{ref:f,className:mn.fileInput,type:"file",onChange:y=>{var N;return m(((N=y.target.files)==null?void 0:N[0])??null)}}),l.jsx("button",{className:mn.uploadBtn,type:"submit",disabled:!h||d.isPending,children:d.isPending?"Загрузка...":"Загрузить"})]}),x&&l.jsx("p",{className:mn.error,children:x}),c&&l.jsx("div",{className:mn.state,children:"Загрузка..."}),r&&l.jsx("div",{className:mn.state,children:"Не удалось загрузить документы"}),i&&i.length===0&&l.jsx("div",{className:mn.state,children:"Документы ещё не загружены"}),i&&i.length>0&&l.jsxs("table",{className:mn.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("th",{})]})}),l.jsx("tbody",{children:i.map(y=>l.jsxs("tr",{children:[l.jsx("td",{children:y.file_name}),l.jsx("td",{children:y.document_type}),l.jsx("td",{className:mn.mono,children:_z(y.file_size_bytes)}),l.jsx("td",{children:gz(y.created_at)}),l.jsx("td",{children:y.download_url?l.jsx("a",{className:mn.downloadBtn,href:y.download_url,target:"_blank",rel:"noopener noreferrer",children:"Скачать"}):l.jsx("span",{className:mn.muted,children:"—"})})]},y.id))})]})]})}const yz="_tableWrap_963q6_1",bz="_table_963q6_1",jz="_mono_963q6_29",Sz="_status_963q6_34",Nz="_state_963q6_45",Ul={tableWrap:yz,table:bz,mono:jz,status:Sz,state:Nz};function Fp(a,i){return a?`${a} ${i}`:"—"}function wz(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleString("ru-RU")}function Cz({orgId:a}){const{data:i,isLoading:c,isError:r}=fM(a);return c?l.jsx("div",{className:Ul.state,children:"Загрузка..."}):r?l.jsx("div",{className:Ul.state,children:"Не удалось загрузить заявки"}):!i||i.items.length===0?l.jsx("div",{className:Ul.state,children:"Заявок пока нет"}):l.jsx("div",{className:Ul.tableWrap,children:l.jsxs("table",{className:Ul.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:i.items.map(d=>l.jsxs("tr",{children:[l.jsx("td",{className:Ul.mono,children:Fp(d.usdt_amount,"USDT")}),l.jsx("td",{className:Ul.mono,children:Fp(d.rub_amount,"₽")}),l.jsx("td",{className:Ul.mono,children:d.exchange_rate??"—"}),l.jsx("td",{children:l.jsx("span",{className:Ul.status,children:d.status})}),l.jsx("td",{children:wz(d.created_at)})]},d.id))})]})})}function Gp(a){return{name:a.name??"",short_name:a.short_name??"",ogrn:a.ogrn??"",kpp:a.kpp??"",legal_address:a.legal_address??"",actual_address:a.actual_address??"",contact_person:a.contact_person??"",contact_phone:a.contact_phone??"",status:a.status??""}}function Ez(a){var c;const i=a;return typeof(i==null?void 0:i.detail)=="string"?i.detail:Array.isArray(i==null?void 0:i.detail)&&((c=i.detail[0])!=null&&c.msg)?i.detail[0].msg:"Не удалось сохранить изменения"}function Tz(a,i,c){const[r,d]=j.useState(()=>a?Gp(a):{name:"",short_name:"",ogrn:"",kpp:"",legal_address:"",actual_address:"",contact_person:"",contact_phone:"",status:""}),f=rM(i);j.useEffect(()=>{a&&d(Gp(a))},[a]);const _=m=>g=>d(x=>({...x,[m]:g})),v=m=>{m.preventDefault();const g=y=>y.trim()?y.trim():null,x={name:r.name.trim(),short_name:g(r.short_name),ogrn:g(r.ogrn),kpp:g(r.kpp),legal_address:g(r.legal_address),actual_address:g(r.actual_address),contact_person:g(r.contact_person),contact_phone:g(r.contact_phone),status:g(r.status)};f.mutate(x,{onSuccess:()=>c==null?void 0:c()})},h=f.isError?Ez(f.error):null;return{form:r,setField:_,handleSubmit:v,isSaving:f.isPending,error:h}}const Rz="_page_m5ii5_1",Az="_header_m5ii5_7",Oz="_back_m5ii5_12",Mz="_title_m5ii5_27",zz="_form_m5ii5_34",Dz="_tabs_m5ii5_42",Lz="_tab_m5ii5_42",kz="_tabActive_m5ii5_66",Bz="_tabPanel_m5ii5_71",Uz="_section_m5ii5_76",$z="_sectionTitle_m5ii5_83",Hz="_grid_m5ii5_92",qz="_state_m5ii5_125",Fz="_error_m5ii5_133",Gz="_actions_m5ii5_140",et={page:Rz,header:Az,back:Oz,title:Mz,form:zz,tabs:Dz,tab:Lz,tabActive:kz,tabPanel:Bz,section:Uz,sectionTitle:$z,grid:Hz,state:qz,error:Fz,actions:Gz},Vz=[{id:"info",label:"Общая информация"},{id:"documents",label:"Документы"},{id:"requests",label:"Заявки"}];function Md(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleString("ru-RU")}function Qz(){const{isAuthenticated:a,isLoading:i}=w_(),{organizationId:c}=p3(),r=en(),{data:d,isLoading:f,isError:_}=sM(c),[v,h]=j.useState(!1),[m,g]=j.useState("info"),{form:x,setField:y,handleSubmit:N,isSaving:S,error:T}=Tz(d,c??"",()=>h(!0));return i?null:a?l.jsxs("div",{className:et.page,children:[l.jsxs("header",{className:et.header,children:[l.jsx("button",{className:et.back,type:"button",onClick:()=>r(oe.ADMIN),children:"← Назад к списку"}),l.jsx("h1",{className:et.title,children:d?d.name:"Юридическое лицо"})]}),f&&l.jsx("div",{className:et.state,children:"Загрузка..."}),_&&l.jsx("div",{className:et.state,children:"Не удалось загрузить организацию"}),d&&l.jsx("div",{className:et.tabs,children:Vz.map(E=>l.jsx("button",{type:"button",className:`${et.tab} ${m===E.id?et.tabActive:""}`,onClick:()=>g(E.id),children:E.label},E.id))}),d&&m==="info"&&l.jsxs("form",{className:et.form,onSubmit:N,children:[l.jsxs("section",{className:et.section,children:[l.jsx("h2",{className:et.sectionTitle,children:"Реквизиты"}),l.jsxs("div",{className:et.grid,children:[l.jsx(W,{label:"Наименование",value:x.name,onChange:y("name"),placeholder:"ООО «Ромашка»",required:!0}),l.jsx(W,{label:"Краткое наименование",value:x.short_name,onChange:y("short_name"),placeholder:"Ромашка"}),l.jsx(W,{label:"ИНН",value:d.inn,readOnly:!0,icon:"lock"}),l.jsx(W,{label:"ОГРН",value:x.ogrn,onChange:y("ogrn"),placeholder:"1027700132195"}),l.jsx(W,{label:"КПП",value:x.kpp,onChange:y("kpp"),placeholder:"770801001"}),l.jsx(W,{label:"Статус",value:x.status,onChange:y("status"),placeholder:"active"})]})]}),l.jsxs("section",{className:et.section,children:[l.jsx("h2",{className:et.sectionTitle,children:"Адреса"}),l.jsxs("div",{className:et.grid,children:[l.jsx(W,{label:"Юридический адрес",value:x.legal_address,onChange:y("legal_address"),placeholder:"г. Москва, ул. Тверская, д. 1"}),l.jsx(W,{label:"Фактический адрес",value:x.actual_address,onChange:y("actual_address"),placeholder:"г. Москва, ул. Тверская, д. 1"})]})]}),l.jsxs("section",{className:et.section,children:[l.jsx("h2",{className:et.sectionTitle,children:"Контакты"}),l.jsxs("div",{className:et.grid,children:[l.jsx(W,{label:"Контактное лицо",value:x.contact_person,onChange:y("contact_person"),placeholder:"Иванов Иван Иванович"}),l.jsx(W,{label:"Контактный телефон",type:"tel",value:x.contact_phone,onChange:y("contact_phone"),placeholder:"+7 (999) 000-00-00"})]})]}),l.jsxs("section",{className:et.section,children:[l.jsx("h2",{className:et.sectionTitle,children:"Системная информация"}),l.jsxs("div",{className:et.grid,children:[l.jsx(W,{label:"ID организации",value:d.id,readOnly:!0,icon:"lock"}),l.jsx(W,{label:"ID пользователя",value:d.user_id,readOnly:!0,icon:"lock"}),l.jsx(W,{label:"KYC",value:d.kyc_verified?"Подтверждён":"Не подтверждён",readOnly:!0}),l.jsx(W,{label:"Дата KYC",value:Md(d.kyc_verified_at),readOnly:!0}),l.jsx(W,{label:"Кошельки",value:d.has_wallets?"Есть":"Нет",readOnly:!0}),l.jsx(W,{label:"Создано",value:Md(d.created_at),readOnly:!0}),l.jsx(W,{label:"Обновлено",value:Md(d.updated_at),readOnly:!0})]})]}),T&&l.jsx("p",{className:et.error,children:T}),l.jsx("div",{className:et.actions,children:l.jsx(On,{label:S?"Сохранение...":"Сохранить изменения",disabled:S})})]}),d&&m==="documents"&&l.jsx("div",{className:et.tabPanel,children:l.jsx(xz,{orgId:d.id})}),d&&m==="requests"&&l.jsx("div",{className:et.tabPanel,children:l.jsx(Cz,{orgId:d.id})}),v&&l.jsx(Yl,{status:"success",message:"Изменения сохранены",onClose:()=>h(!1)})]}):l.jsx(E_,{})}const Yz="_page_uz94v_1",Iz="_main_uz94v_8",Xz="_center_uz94v_13",jo={page:Yz,main:Iz,center:Xz};function Vp({footer:a=!1,center:i=!1}){return l.jsxs("div",{className:jo.page,children:[l.jsx(Go,{}),l.jsx("main",{className:i?`${jo.main} ${jo.center}`:jo.main,children:l.jsx(d2,{})}),a&&l.jsx(ys,{})]})}function Pz(){const{pathname:a}=zn();return j.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function Zz(){const{isAuthenticated:a,isLoading:i}=G3(),c=zn();return i?null:a?l.jsx(d2,{}):l.jsx(Uo,{to:oe.LOGIN,state:{from:c},replace:!0})}function Kz(){var d,f;const{isAuthenticated:a,isLoading:i}=G3(),r=((f=(d=zn().state)==null?void 0:d.from)==null?void 0:f.pathname)??oe.WALLET;return i?null:a?l.jsx(Uo,{to:r,replace:!0}):l.jsx(d2,{})}function Wz(){return l.jsxs(Ty,{children:[l.jsx(Pz,{}),l.jsxs(ay,{children:[l.jsx(Ze,{path:oe.HOME,element:l.jsx(yj,{})}),l.jsx(Ze,{path:oe.PUBLICHNAYA_OFERTA,element:l.jsx(lA,{})}),l.jsx(Ze,{path:oe.POLITIKA_PERSONALNYH_DANNYH,element:l.jsx(gA,{})}),l.jsx(Ze,{path:oe.POLITIKA_COOKIE,element:l.jsx(TA,{})}),l.jsx(Ze,{path:oe.SOGLASIE_PERSONALNYH_DANNYH,element:l.jsx(HA,{})}),l.jsx(Ze,{path:oe.REESTR_PD_RKN,element:l.jsx(WA,{})}),l.jsx(Ze,{path:oe.REGISTER_TEST,element:l.jsx(QE,{})}),l.jsx(Ze,{path:oe.CONVERTER_TEST,element:l.jsx(cT,{})}),l.jsx(Ze,{path:oe.ADMIN,element:l.jsx(lz,{})}),l.jsx(Ze,{path:oe.ADMIN_ORGANIZATION,element:l.jsx(Qz,{})}),l.jsxs(Ze,{element:l.jsx(Kz,{}),children:[l.jsx(Ze,{path:oe.LOGIN,element:l.jsx(IC,{})}),l.jsx(Ze,{path:oe.REGISTER,element:l.jsx(SE,{})}),l.jsx(Ze,{path:oe.RESTORE_PASSWORD,element:l.jsx(IR,{})})]}),l.jsxs(Ze,{element:l.jsx(Zz,{}),children:[l.jsx(Ze,{element:l.jsx(Vp,{footer:!0,center:!0}),children:l.jsx(Ze,{path:oe.CONVERTER,element:l.jsx(VT,{})})}),l.jsxs(Ze,{element:l.jsx(Vp,{footer:!0}),children:[l.jsx(Ze,{path:oe.SWAP,element:l.jsx(XN,{})}),l.jsx(Ze,{path:oe.BRIDGE,element:l.jsx(Sw,{})}),l.jsx(Ze,{path:oe.TRANSACTIONS,element:l.jsx(QO,{})})]}),l.jsx(Ze,{path:oe.WALLET,element:l.jsx(hp,{})}),l.jsx(Ze,{path:oe.WALLET_CHAIN,element:l.jsx(hp,{})}),l.jsx(Ze,{path:oe.PROFILE,element:l.jsx(AC,{})}),l.jsx(Ze,{path:oe.SEED_PHRASE,element:l.jsx(hR,{})}),l.jsx(Ze,{path:oe.KYC,element:l.jsx(DR,{})})]})]})]})}const Jz=new B6({defaultOptions:{queries:{retry:!1}}});function eD({children:a}){return l.jsx(U6,{client:Jz,children:a})}function tD(){return l.jsx(eD,{children:l.jsx(Wz,{})})}sx.createRoot(document.getElementById("root")).render(l.jsx(j.StrictMode,{children:l.jsx(tD,{})}));
|