@elcrm/telegram 0.0.82 → 0.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var It=document.createElement("style");It.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_1ryiq_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ryiq_1._row_1ryiq_14{flex-direction:row}._h_1ryiq_1._column_1ryiq_17{flex-direction:column}._h_1ryiq_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_1ryiq_1 div[data-active=true]{color:var(--tg-theme-button-color)}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}
2
- /*$vite$:1*/`,document.head.appendChild(It);var nt={exports:{}},Re={};/**
2
+ /*$vite$:1*/`,document.head.appendChild(It);var nt={exports:{}},Se={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var $t;function Kt(){if($t)return Re;$t=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,B=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(B=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:u.current}}return Re.Fragment=i,Re.jsx=j,Re.jsxs=j,Re}var Se={};/**
10
+ */var $t;function Kt(){if($t)return Se;$t=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,N=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(N=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:n,type:_,key:k,ref:N,props:y,_owner:u.current}}return Se.Fragment=i,Se.jsx=j,Se.jsxs=j,Se}var Ee={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,20 +15,20 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Mt;function Gt(){return Mt||(Mt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,Oe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Oe];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];we("error",e,n)}}function we(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var g=n.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ae=!1,Pe=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===u||e===O||e===m||R||e===B||Ae||Pe||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case j:var n=e;return se(n._context)+".Provider";case p:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Te,Ie,$e,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Te=console.error,Ie=console.group,$e=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function st(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Te}),group:N({},e,{value:Ie}),groupCollapsed:N({},e,{value:$e}),groupEnd:N({},e,{value:Me})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
19
- `+ge+e}}var me=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Be(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=pe.current,pe.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
18
+ */var Bt;function Gt(){return Bt||(Bt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),I=Symbol.iterator,Ce="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ce];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];Re("error",e,o)}}function Re(e,t,o){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",o=o.concat([d]));var g=o.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Pe=!1,Te=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||B||e===u||e===O||e===m||R||e===N||Pe||Te||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===F||e.getModuleId!==void 0))}function se(e,t,o){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?o+"("+d+")":o}function le(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return le(t)+".Consumer";case j:var o=e;return le(o._context)+".Provider";case p:return se(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var M=Object.assign,D=0,K,G,Z,Ie,$e,Be,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(D===0){K=console.log,G=console.info,Z=console.warn,Ie=console.error,$e=console.group,Be=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function st(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ie}),group:M({},e,{value:$e}),groupCollapsed:M({},e,{value:Be}),groupEnd:M({},e,{value:Me})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=L.ReactCurrentDispatcher,me;function te(e,t,o){{if(me===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);me=a&&a[1]||""}return`
19
+ `+me+e}}var he=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Fe(e,t){if(!e||he)return"";{var o=re.get(e);if(o!==void 0)return o}var a;he=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ge.current,ge.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
20
20
  `),C=a.stack.split(`
21
21
  `),b=l.length-1,x=C.length-1;b>=1&&x>=0&&l[b]!==C[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==C[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==C[x]){var T=`
22
- `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=g,st(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,n){return Be(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Be(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Fe=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(n)}else Fe.setExtraStackFrame(null)}function ft(e,t,n,a,d){{var g=Function.call.bind(J);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var dt=Array.isArray;function he(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function gt(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function Ue(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Le(e)}var ze=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Ye,We;function ht(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&ze.current}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function xt(e,t){{var n=function(){We||(We=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var _t=function(e,t,n,a,d,g,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,n,a,d){{var g,c={},l=null,C=null;n!==void 0&&(Ue(n),l=""+n),vt(t)&&(Ue(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t,d));for(g in t)J.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,ze.current,c)}}var ve=L.ReactCurrentOwner,Ve=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function qe(){{if(ve.current){var e=$(ve.current.type);if(e)return`
22
+ `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{he=!1,ge.current=g,st(),Error.prepareStackTrace=d}var V=e?e.displayName||e.name:"",U=V?te(V):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,o){return Fe(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,o){if(e==null)return"";if(typeof e=="function")return Fe(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,o);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,o)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,De={},Le=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,o=ne(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,a,d){{var g=Function.call.bind(H);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",o,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",o,l.message),oe(null))}}}var dt=Array.isArray;function ve(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function gt(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function ze(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Ue(e)}var Ye=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},We,Ve;function ht(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&Ye.current}function yt(e,t){{var o=function(){We||(We=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function xt(e,t){{var o=function(){Ve||(Ve=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var _t=function(e,t,o,a,d,g,c){var l={$$typeof:n,type:e,key:t,ref:o,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,o,a,d){{var g,c={},l=null,C=null;o!==void 0&&(ze(o),l=""+o),vt(t)&&(ze(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t,d));for(g in t)H.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,Ye.current,c)}}var be=L.ReactCurrentOwner,qe=L.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=ne(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}var ye;ye=!1;function xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function He(){{if(be.current){var e=$(be.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=He();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
25
25
 
26
- Check the top-level render call using <`+n+">.")}return t}}function He(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Rt(t);if(Je[n])return;Je[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function Ke(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&He(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Ce(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)ye(c.value)&&He(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ft(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ge={};function Ze(e,t,n,a,d,g){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=wt();C?l+=C:l+=qe();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,n,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)Ke(T[W],e);Object.freeze&&Object.freeze(T)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ke(T,e)}if(J.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),xe=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[U+xe]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+o+">.")}return t}}function Ke(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Rt(t);if(Je[o])return;Je[o]=!0;var a="";e&&e._owner&&e._owner!==be.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),W(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),W(null)}}function Ge(e,t){{if(typeof e!="object")return;if(ve(e))for(var o=0;o<e.length;o++){var a=e[o];xe(a)&&Ke(a,t)}else if(xe(e))e._store&&(e._store.validated=!0);else if(e){var d=Ae(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)xe(c.value)&&Ke(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ft(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ye){ye=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){W(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var Ze={};function Xe(e,t,o,a,d,g){{var c=Y(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=wt();C?l+=C:l+=He();var b;e===null?b="null":ve(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,o,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(ve(T)){for(var V=0;V<T.length;V++)Ge(T[V],e);Object.freeze&&Object.freeze(T)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(T,e)}if(H.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),_e=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ze[U+_e]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,xe,U,Pt,U),Ge[U+xe]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,n){return Ze(e,t,n,!0)}function Ot(e,t,n){return Ze(e,t,n,!1)}var Ct=Ot,At=jt;Se.Fragment=f,Se.jsx=Ct,Se.jsxs=At}()),Se}process.env.NODE_ENV==="production"?nt.exports=Kt():nt.exports=Gt();var s=nt.exports;let H={};var ot;(r=>{function o({children:_}){const[p,O]=S.useState(!1),[m,y]=S.useState(!1);if(H.onClose=()=>{w.default.BackButton(!1),y(!0),setTimeout(()=>{O(!1),y(!1)},300)},S.useEffect(()=>{p?H.onClose():(w.default.BackButton({callback:()=>H.onClose()}),O(!0))},[]),!!p)return s.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=o;function i({import_modules:_}){let[p,O]=S.useState([]);return H.x=m=>{O(m?p.filter(y=>y.key!==m):[])},S.useEffect(()=>{_&&(H.i=_)},[]),H.add=(m,y=Date.now())=>{O([...p,{key:y,item:m}])},s.jsx(s.Fragment,{children:p.map(m=>m.item)})}r.Init=i;function f(_,p){H.add(s.jsx(o,{children:_},String(Date.now())),p)}r.Add=f;function u(_){return{Open:m=>{r.Add(s.jsx(_,{...m},new Date().getTime()))}}}r.Create=u;function h(){H.onClose()}r.Close=h;function j(_,p,O){H.i&&H.i(`${_}/modals/${p}.tsx`).then(m=>{m.default.Open(O)})}r.Open=j})(ot||(ot={}));function Nt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Bt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Dt(r){const o=Nt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Bt,...r}}function Xe(){return Nt().CRYPTO_PARAMS||Bt}const Qe=r=>{let o=0;for(let f=0;f<r.length;f++){const u=r.charCodeAt(f);o=(o<<5)-o+u,o=o&o}o=Math.abs(o);let i="";for(let f=0;f<64;f++){const u=(o^f*197)&255;i+=u.toString(16).padStart(2,"0")}return i},Ft=(r,o)=>{let i=r+o;for(let u=0;u<Xe().iterations;u++)i=Qe(i);const f=new Uint8Array(32);for(let u=0;u<32;u++)f[u]=parseInt(i.substring(u*2,u*2+2),16);return f},Lt=(r,o)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let u=0;for(let h=0;h<r.length;h++){const j=h%o.length;u=o[j]+h+u&255,f[h]=u}for(let h=0;h<r.length;h++)i[h]=r[h]^f[h];return i},Zt=r=>new TextEncoder().encode(r),Xt=r=>new TextDecoder().decode(r),Qt=r=>{let o="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(f))}return btoa(o)},er=r=>{const o=atob(r),i=new Uint8Array(o.length);for(let f=0;f<o.length;f++)i[f]=o.charCodeAt(f);return i},tr=r=>{try{const o=Qe(Date.now().toString()+Math.random()).substring(0,Xe().saltLength*2),i=Qe(r+o).substring(0,8),f=Ft(Xe().key,o),u=Zt(r),h=Lt(u,f),j=Qt(h);return`${o}.${j}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},rr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=o[0],f=o[1],u=o[2],h=Ft(Xe().key,i),j=er(f),_=Lt(j,h),p=Xt(_);if(Qe(p+i).substring(0,8)!==u)throw new Error("Контрольная сумма не совпадает");return p}catch{return""}};var ae;(r=>{r.setKey=o=>{Dt({key:o})},r.enCode=o=>{try{const i=JSON.stringify(o);return tr(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const i=rr(o);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(o,i)=>{Dt({iterations:o,saltLength:i})}})(ae||(ae={}));var Ee={};/**
31
+ <%s key={someKey} {...props} />`,_e,U,Pt,U),Ze[U+_e]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,o){return Xe(e,t,o,!0)}function Ot(e,t,o){return Xe(e,t,o,!1)}var Ct=Ot,At=jt;Ee.Fragment=f,Ee.jsx=Ct,Ee.jsxs=At}()),Ee}process.env.NODE_ENV==="production"?nt.exports=Kt():nt.exports=Gt();var s=nt.exports;let J={};var ot;(r=>{function n({children:_}){const[p,O]=S.useState(!1),[m,y]=S.useState(!1);if(J.onClose=()=>{w.default.BackButton(!1),y(!0),setTimeout(()=>{O(!1),y(!1)},300)},S.useEffect(()=>{p?J.onClose():(w.default.BackButton({callback:()=>J.onClose()}),O(!0))},[]),!!p)return s.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=n;function i({import_modules:_}){let[p,O]=S.useState([]);return J.x=m=>{O(m?p.filter(y=>y.key!==m):[])},S.useEffect(()=>{_&&(J.i=_)},[]),J.add=(m,y=Date.now())=>{O([...p,{key:y,item:m}])},s.jsx(s.Fragment,{children:p.map(m=>m.item)})}r.Init=i;function f(_,p){J.add(s.jsx(n,{children:_},String(Date.now())),p)}r.Add=f;function u(_){return{Open:m=>{r.Add(s.jsx(_,{...m},new Date().getTime()))}}}r.Create=u;function h(){J.onClose()}r.Close=h;function j(_,p,O){J.i&&J.i(`${_}/modals/${p}.tsx`).then(m=>{m.default.Open(O)})}r.Open=j})(ot||(ot={}));function Mt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Nt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ft(r){const n=Mt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Nt,...r}}function Qe(){return Mt().CRYPTO_PARAMS||Nt}const et=r=>{let n=0;for(let f=0;f<r.length;f++){const u=r.charCodeAt(f);n=(n<<5)-n+u,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const u=(n^f*197)&255;i+=u.toString(16).padStart(2,"0")}return i},Dt=(r,n)=>{let i=r+n;for(let u=0;u<Qe().iterations;u++)i=et(i);const f=new Uint8Array(32);for(let u=0;u<32;u++)f[u]=parseInt(i.substring(u*2,u*2+2),16);return f},Lt=(r,n)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let u=0;for(let h=0;h<r.length;h++){const j=h%n.length;u=n[j]+h+u&255,f[h]=u}for(let h=0;h<r.length;h++)i[h]=r[h]^f[h];return i},Zt=r=>new TextEncoder().encode(r),Xt=r=>new TextDecoder().decode(r),Qt=r=>{let n="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},er=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},tr=r=>{try{const n=et(Date.now().toString()+Math.random()).substring(0,Qe().saltLength*2),i=et(r+n).substring(0,8),f=Dt(Qe().key,n),u=Zt(r),h=Lt(u,f),j=Qt(h);return`${n}.${j}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},rr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],u=n[2],h=Dt(Qe().key,i),j=er(f),_=Lt(j,h),p=Xt(_);if(et(p+i).substring(0,8)!==u)throw new Error("Контрольная сумма не совпадает");return p}catch{return""}};var ae;(r=>{r.setKey=n=>{Ft({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return tr(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=rr(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{Ft({iterations:n,saltLength:i})}})(ae||(ae={}));var je={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Ut;function nr(){if(Ut)return Ee;Ut=1;var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,B=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(B=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:o,type:_,key:k,ref:B,props:y,_owner:u.current}}return Ee.Fragment=i,Ee.jsx=j,Ee.jsxs=j,Ee}var et={};/**
39
+ */var Ut;function nr(){if(Ut)return je;Ut=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,u=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function j(_,p,O){var m,y={},k=null,N=null;O!==void 0&&(k=""+O),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(N=p.ref);for(m in p)f.call(p,m)&&!h.hasOwnProperty(m)&&(y[m]=p[m]);if(_&&_.defaultProps)for(m in p=_.defaultProps,p)y[m]===void 0&&(y[m]=p[m]);return{$$typeof:n,type:_,key:k,ref:N,props:y,_owner:u.current}}return je.Fragment=i,je.jsx=j,je.jsxs=j,je}var tt={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var zt;function or(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),I=Symbol.iterator,Oe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Oe];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];we("error",e,n)}}function we(e,t,n){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",n=n.concat([d]));var g=n.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Ae=!1,Pe=!1,v=!1,R=!1,M=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===u||e===O||e===m||R||e===B||Ae||Pe||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===D||e.getModuleId!==void 0))}function ie(e,t,n){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?n+"("+d+")":n}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case j:var n=e;return se(n._context)+".Provider";case p:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var N=Object.assign,F=0,K,G,Z,Te,Ie,$e,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(F===0){K=console.log,G=console.info,Z=console.warn,Te=console.error,Ie=console.group,$e=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function st(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:K}),info:N({},e,{value:G}),warn:N({},e,{value:Z}),error:N({},e,{value:Te}),group:N({},e,{value:Ie}),groupCollapsed:N({},e,{value:$e}),groupEnd:N({},e,{value:Me})})}F<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=L.ReactCurrentDispatcher,ge;function te(e,t,n){{if(ge===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);ge=a&&a[1]||""}return`
48
- `+ge+e}}var me=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Be(e,t){if(!e||me)return"";{var n=re.get(e);if(n!==void 0)return n}var a;me=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=pe.current,pe.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
47
+ */var zt;function or(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),_=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),I=Symbol.iterator,Ce="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ce];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];Re("error",e,o)}}function Re(e,t,o){{var a=L.ReactDebugCurrentFrame,d=a.getStackAddendum();d!==""&&(t+="%s",o=o.concat([d]));var g=o.map(function(c){return String(c)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var Pe=!1,Te=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||B||e===u||e===O||e===m||R||e===N||Pe||Te||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===j||e.$$typeof===_||e.$$typeof===p||e.$$typeof===F||e.getModuleId!==void 0))}function se(e,t,o){var a=e.displayName;if(a)return a;var d=t.displayName||t.name||"";return d!==""?o+"("+d+")":o}function le(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case u:return"StrictMode";case O:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return le(t)+".Consumer";case j:var o=e;return le(o._context)+".Provider";case p:return se(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var d=e,g=d._payload,c=d._init;try{return $(c(g))}catch{return null}}}return null}var M=Object.assign,D=0,K,G,Z,Ie,$e,Be,Me;function Ne(){}Ne.__reactDisabledLog=!0;function it(){{if(D===0){K=console.log,G=console.info,Z=console.warn,Ie=console.error,$e=console.group,Be=console.groupCollapsed,Me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function st(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ie}),group:M({},e,{value:$e}),groupCollapsed:M({},e,{value:Be}),groupEnd:M({},e,{value:Me})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=L.ReactCurrentDispatcher,me;function te(e,t,o){{if(me===void 0)try{throw Error()}catch(d){var a=d.stack.trim().match(/\n( *(at )?)/);me=a&&a[1]||""}return`
48
+ `+me+e}}var he=!1,re;{var lt=typeof WeakMap=="function"?WeakMap:Map;re=new lt}function Fe(e,t){if(!e||he)return"";{var o=re.get(e);if(o!==void 0)return o}var a;he=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=ge.current,ge.current=null,it();try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(A){a=A}Reflect.construct(e,[],c)}else{try{c.call()}catch(A){a=A}e.call(c.prototype)}}else{try{throw Error()}catch(A){a=A}e()}}catch(A){if(A&&a&&typeof A.stack=="string"){for(var l=A.stack.split(`
49
49
  `),C=a.stack.split(`
50
50
  `),b=l.length-1,x=C.length-1;b>=1&&x>=0&&l[b]!==C[x];)x--;for(;b>=1&&x>=0;b--,x--)if(l[b]!==C[x]){if(b!==1||x!==1)do if(b--,x--,x<0||l[b]!==C[x]){var T=`
51
- `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{me=!1,pe.current=g,st(),Error.prepareStackTrace=d}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,n){return Be(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,n){if(e==null)return"";if(typeof e=="function")return Be(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,n);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,n)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Fe=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Fe.setExtraStackFrame(n)}else Fe.setExtraStackFrame(null)}function ft(e,t,n,a,d){{var g=Function.call.bind(J);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",n,l.message),oe(null))}}}var dt=Array.isArray;function he(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function gt(e){try{return Le(e),!1}catch{return!0}}function Le(e){return""+e}function Ue(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Le(e)}var ze=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Ye,We;function ht(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&ze.current}function yt(e,t){{var n=function(){Ye||(Ye=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function xt(e,t){{var n=function(){We||(We=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var _t=function(e,t,n,a,d,g,c){var l={$$typeof:o,type:e,key:t,ref:n,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,n,a,d){{var g,c={},l=null,C=null;n!==void 0&&(Ue(n),l=""+n),vt(t)&&(Ue(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t));for(g in t)J.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,ze.current,c)}}var ve=L.ReactCurrentOwner,Ve=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,n=ne(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}var be;be=!1;function ye(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function qe(){{if(ve.current){var e=$(ve.current.type);if(e)return`
51
+ `+l[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{he=!1,ge.current=g,st(),Error.prepareStackTrace=d}var V=e?e.displayName||e.name:"",U=V?te(V):"";return typeof e=="function"&&re.set(e,U),U}function ct(e,t,o){return Fe(e,!1)}function ut(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ne(e,t,o){if(e==null)return"";if(typeof e=="function")return Fe(e,ut(e));if(typeof e=="string")return te(e);switch(e){case O:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case p:return ct(e.render);case y:return ne(e.type,t,o);case k:{var a=e,d=a._payload,g=a._init;try{return ne(g(d),t,o)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,De={},Le=L.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,o=ne(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function ft(e,t,o,a,d){{var g=Function.call.bind(H);for(var c in e)if(g(e,c)){var l=void 0;try{if(typeof e[c]!="function"){var C=Error((a||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}l=e[c](t,c,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){l=b}l&&!(l instanceof Error)&&(oe(d),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",o,c,typeof l),oe(null)),l instanceof Error&&!(l.message in De)&&(De[l.message]=!0,oe(d),E("Failed %s type: %s",o,l.message),oe(null))}}}var dt=Array.isArray;function ve(e){return dt(e)}function pt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function gt(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function ze(e){if(gt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),Ue(e)}var Ye=L.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},We,Ve;function ht(e){if(H.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function vt(e){if(H.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function bt(e,t){typeof e.ref=="string"&&Ye.current}function yt(e,t){{var o=function(){We||(We=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function xt(e,t){{var o=function(){Ve||(Ve=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var _t=function(e,t,o,a,d,g,c){var l={$$typeof:n,type:e,key:t,ref:o,props:c,_owner:g};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function kt(e,t,o,a,d){{var g,c={},l=null,C=null;o!==void 0&&(ze(o),l=""+o),vt(t)&&(ze(t.key),l=""+t.key),ht(t)&&(C=t.ref,bt(t));for(g in t)H.call(t,g)&&!mt.hasOwnProperty(g)&&(c[g]=t[g]);if(e&&e.defaultProps){var b=e.defaultProps;for(g in b)c[g]===void 0&&(c[g]=b[g])}if(l||C){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&yt(c,x),C&&xt(c,x)}return _t(e,l,C,d,a,Ye.current,c)}}var be=L.ReactCurrentOwner,qe=L.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,o=ne(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}var ye;ye=!1;function xe(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function He(){{if(be.current){var e=$(be.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function wt(e){return""}var Je={};function Rt(e){{var t=He();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
54
54
 
55
- Check the top-level render call using <`+n+">.")}return t}}function He(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Rt(t);if(Je[n])return;Je[n]=!0;var a="";e&&e._owner&&e._owner!==ve.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,a),Y(null)}}function Ke(e,t){{if(typeof e!="object")return;if(he(e))for(var n=0;n<e.length;n++){var a=e[n];ye(a)&&He(a,t)}else if(ye(e))e._store&&(e._store.validated=!0);else if(e){var d=Ce(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)ye(c.value)&&He(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))n=t.propTypes;else return;if(n){var a=$(t);ft(n,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!be){be=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var a=t[n];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var Ge={};function Ze(e,t,n,a,d,g){{var c=z(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=wt();C?l+=C:l+=qe();var b;e===null?b="null":he(e)?b="array":e!==void 0&&e.$$typeof===o?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,n,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(he(T)){for(var W=0;W<T.length;W++)Ke(T[W],e);Object.freeze&&Object.freeze(T)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ke(T,e)}if(J.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),xe=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ge[U+xe]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+o+">.")}return t}}function Ke(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Rt(t);if(Je[o])return;Je[o]=!0;var a="";e&&e._owner&&e._owner!==be.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),W(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),W(null)}}function Ge(e,t){{if(typeof e!="object")return;if(ve(e))for(var o=0;o<e.length;o++){var a=e[o];xe(a)&&Ke(a,t)}else if(xe(e))e._store&&(e._store.validated=!0);else if(e){var d=Ae(e);if(typeof d=="function"&&d!==e.entries)for(var g=d.call(e),c;!(c=g.next()).done;)xe(c.value)&&Ke(c.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===p||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ft(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ye){ye=!0;var d=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",d||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){W(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),W(null);break}}e.ref!==null&&(W(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),W(null))}}var Ze={};function Xe(e,t,o,a,d,g){{var c=Y(e);if(!c){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=wt();C?l+=C:l+=He();var b;e===null?b="null":ve(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,l)}var x=kt(e,t,o,d,g);if(x==null)return x;if(c){var T=t.children;if(T!==void 0)if(a)if(ve(T)){for(var V=0;V<T.length;V++)Ge(T[V],e);Object.freeze&&Object.freeze(T)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(T,e)}if(H.call(t,"key")){var U=$(e),A=Object.keys(t).filter(function(Tt){return Tt!=="key"}),_e=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!Ze[U+_e]){var Pt=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
56
56
  let props = %s;
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,xe,U,Pt,U),Ge[U+xe]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,n){return Ze(e,t,n,!0)}function Ot(e,t,n){return Ze(e,t,n,!1)}var Ct=Ot,At=jt;et.Fragment=f,et.jsx=Ct,et.jsxs=At}()),et}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",Yt={version:ar},X={},at={module:"",v:Yt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Yt.version});function Q(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS={...o.ROUTER_PARAMS,...r}:o.ROUTER_PARAMS={...at,...r}}function P(){return le().ROUTER_PARAMS||at}function _e(r){const o=le();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||at.LISTENER}var ce;(r=>{function o(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?P().page:P().auth,module:P().module});return!0}function i(){X.id=0,X.tab="",X.page=P().page,X.module=P().module}r.Reset=i;function f({module:v=P().module,page:R=P().page,auth:M=P().auth}){Q({page:R,module:v,auth:M}),o()}r.Default=f;function u(v){let R=z=>(Q({page:z}),z);const[M,D]=S.useState(j()||v&&R(v)||P().page);return _e({page:z=>{D(z)}}),M}r.usePage=u;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().page(v)}r.setPage=h;function j(){return P().page}r.getPage=j;function _(v){return P().page===v}r.isPage=_;function p(v,R){const[M,D]=S.useState(m()||v||P().module);return _e({module:D}),M}r.useModule=p;function O(v,R=!0){Q({module:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().module(v)}r.setModule=O;function m(){return P().module||""}r.getModule=m;function y(v){return P().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,D]=S.useState(!R),[z,ie]=S.useState(v||I());return _e({tabs:ie}),R&&S.useEffect(()=>{D(!0)},[]),[z,M]}else _e({tabs:v})}r.useTabs=k;async function B(v,R=!0){Q({tab:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=B;function I(){return P().tab}r.getTabs=I;function Oe(v){return P().tab===v}r.isTabs=Oe;function Ce(v){if(typeof v!="function"){const[R,M]=S.useState(v||we());return _e({id:D=>{M(D)}}),R}else _e({id:v})}r.useId=Ce;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().id(v)}r.setId=E;function we(){return P().id}r.getId=we;function Ae(v){return Number(P().id)===v}r.isId=Ae;async function Pe(v){var R,M,D,z,ie,se,$,N;const{page:F,module:K,tab:G,id:Z}=v;F!==void 0&&(X.page=F),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(D=ee()).tabs)==null||z.call(D,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),F!==void 0&&((N=($=ee()).page)==null||N.call($,F)),sessionStorage.setItem(P().STORAGE,ae.enCode(P()))}r.navigate=Pe})(ce||(ce={}));let tt={};function ir(){const[r,o]=S.useState([]);return tt.set=i=>{o([...r,i])},tt.del=i=>{r.forEach((f,u)=>{f.key===i&&r.splice(u,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let o=new Date().getTime();r.key=o,tt.set({item:s.jsx(lr,{data:r},o),key:o})}function lr(r){const o=r.data;let[i]=S.useState("show"),[f,u]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){u(!0),tt.del(o.key)},5e3)},[o.key]);let h;switch(o.type){case"error":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":h=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:f?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:o.text})]})})}let rt={Send:sr,Init:ir},je=()=>{};const Wt=({children:r,title:o,isOverlay:i=!0,footer:f=!0,className:u,onOpen:h})=>{const[j,_]=S.useState(!1);return je=()=>{_(!0),setTimeout(()=>{var p;h==null||h(!1),(p=ke==null?void 0:ke.onClose)==null||p.call(ke)},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${j?"closing":""} `,onClick:je,children:s.jsxs("div",{className:`footer-menu-popup-book ${j?"closing":""} ${u||""} ${f?"footer":""}`,onClick:p=>p.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:je,children:"✕"})]}),r]})})},Vt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},ke=[],qt=(r,o)=>r.findIndex(i=>(i==null?void 0:i.page)===o),Jt=({actions:r,children:o,className:i,toHide:f=!1,page:u,onPageChange:h,direction:j="row"})=>{const[_,p]=S.useState(null),[O,m]=S.useState(u?qt(r||[],u):0);return ke.onClose=()=>{p(null),m(u?qt(r||[],u):0)},S.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},B=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",B,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",B,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Vt.h} ${Vt[j]} ${i} `,children:[o,r&&r.map((y,k)=>s.jsx("div",{"data-active":O===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(O===k?je():(p(y.component),m(k)))},children:y.icon},k))]})]})},ue={is:!1,MainButton:{},BackButton:{}};let V={};V.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},V.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},V.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const cr=()=>{if(location.hostname==="localhost"){let[r,o]=S.useState(!1),[i,f]=S.useState(!1),[u,h]=S.useState("dark"),[j,_]=S.useState(!1),[p,O]=S.useState(!1);ue.is=!0,ue.MainButton.set=o,ue.BackButton.set=f,S.useEffect(()=>{V[u]["--tg-theme-bg-color-alpha"]=V[u]["--tg-theme-bg-color"]+"b3",V[u]["--tg-theme-secondary-bg-color-alpha"]=V[u]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[u])document.documentElement.style.setProperty(k,V[u][k]);de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let B in V[k])document.documentElement.style.setProperty(B,V[k][B]);h(k),_(!1)},y=()=>{_(!1),O(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ce.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!j),children:"Меню"})]}),s.jsx(rt.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),j?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!j),children:"Closed"})})]})]}):"",p?s.jsx(ur,{setAuthorization:O}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",de.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",de.themeParams.bg_color+"b3"),de.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(rt.Init,{})})},ur=({setAuthorization:r})=>{let o={},i=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Ht={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:o,isScroll:i=!0})=>s.jsx("div",{className:[Ht.p,i&&Ht.s,r].filter(f=>f!==void 0).join(" "),children:o}),dr={l:"_l_gfyud_1"},pr=({children:r,className:o})=>s.jsx("div",{className:[dr.l,o].filter(i=>i!==void 0).join(" "),children:r}),fe={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},gr=({items:r})=>{const o=f=>{ce.setPage(f)},i=f=>{de.openTelegramLink(f)};return s.jsx("div",{className:fe.m,children:r.map(f=>s.jsx("div",{className:fe.g,children:f.items.map((u,h)=>s.jsxs("div",{className:fe.i,onClick:()=>u.link?i(u.link):o(u.page||""),children:[s.jsxs("div",{className:fe.c,children:[s.jsx("span",{className:fe.l,style:{background:u.color},children:u.icon}),u.title,u.count&&s.jsx("span",{className:fe.n,children:u.count})]}),s.jsx("span",{className:fe.a,children:"›"})]},h))},f.id))})},q={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.state.length!==1&&q.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(q.listen[0]),q.listen.shift(),q.listen.push(()=>{var i;let o=q.state.pop();o.page!==void 0?ce.setPage(o.page):(i=o.callback)==null||i.call(o)}),de.BackButton.onClick(q.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(o,i,f)=>{var u,h;i!==void 0?(rt.Send({type:o,text:i,thema:f}),(u=r.WebApp.HapticFeedback)==null||u.notificationOccurred(o)):(rt.Send(o),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(o.type))},r.Header=cr,r.Footer=Jt,r.BottomSheet=Wt,r.toggleBottomSheet=je,r.SafeArea=fr,r.Loading=pr,r.Modal=ot,r.Menu=gr,r.MainButton={callback:[],set:o=>{ue.is?ue.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var i;o.page===void 0?(i=o.callback)==null||i.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=o=>{ue.is?ue.BackButton.set(o):(q.state.push(o),q.router(o))}})(w.default||(w.default={}));const mr=Jt,hr=Wt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:de,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=de,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,_e,U,Pt,U),Ze[U+_e]=!0}}return e===f?Et(x):St(x),x}}function jt(e,t,o){return Xe(e,t,o,!0)}function Ot(e,t,o){return Xe(e,t,o,!1)}var Ct=Ot,At=jt;tt.Fragment=f,tt.jsx=Ct,tt.jsxs=At}()),tt}process.env.NODE_ENV==="production"?nr():or();const ar="0.0.37",Yt={version:ar},X={},at={module:"",v:Yt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function ce(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ce().elcrm||(ce().elcrm={}),Object.assign(ce().elcrm,{router:Yt.version});function Q(r){const n=ce();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...at,...r}}function P(){return ce().ROUTER_PARAMS||at}function ke(r){const n=ce();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ee(){return ce().ROUTER_PARAMS.LISTENER||at.LISTENER}var ie;(r=>{function n(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?P().page:P().auth,module:P().module});return!0}function i(){X.id=0,X.tab="",X.page=P().page,X.module=P().module}r.Reset=i;function f({module:v=P().module,page:R=P().page,auth:B=P().auth}){Q({page:R,module:v,auth:B}),n()}r.Default=f;function u(v){let R=Y=>(Q({page:Y}),Y);const[B,F]=S.useState(j()||v&&R(v)||P().page);return ke({page:Y=>{F(Y)}}),B}r.usePage=u;function h(v,R=!0,B={}){Q({page:v,...B}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().page(v)}r.setPage=h;function j(){return P().page}r.getPage=j;function _(v){return P().page===v}r.isPage=_;function p(v,R){const[B,F]=S.useState(m()||v||P().module);return ke({module:F}),B}r.useModule=p;function O(v,R=!0){Q({module:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().module(v)}r.setModule=O;function m(){return P().module||""}r.getModule=m;function y(v){return P().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[B,F]=S.useState(!R),[Y,se]=S.useState(v||I());return ke({tabs:se}),R&&S.useEffect(()=>{F(!0)},[]),[Y,B]}else ke({tabs:v})}r.useTabs=k;async function N(v,R=!0){Q({tab:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=N;function I(){return P().tab}r.getTabs=I;function Ce(v){return P().tab===v}r.isTabs=Ce;function Ae(v){if(typeof v!="function"){const[R,B]=S.useState(v||Re());return ke({id:F=>{B(F)}}),R}else ke({id:v})}r.useId=Ae;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(P().STORAGE,ae.enCode(P())),R&&ee().id(v)}r.setId=E;function Re(){return P().id}r.getId=Re;function Pe(v){return Number(P().id)===v}r.isId=Pe;async function Te(v){var R,B,F,Y,se,le,$,M;const{page:D,module:K,tab:G,id:Z}=v;D!==void 0&&(X.page=D),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((B=(R=ee()).id)==null||B.call(R,Z)),G!==void 0&&((Y=(F=ee()).tabs)==null||Y.call(F,G)),K!==void 0&&((le=(se=ee()).module)==null||le.call(se,K)),D!==void 0&&((M=($=ee()).page)==null||M.call($,D)),sessionStorage.setItem(P().STORAGE,ae.enCode(P()))}r.navigate=Te})(ie||(ie={}));let rt={};function ir(){const[r,n]=S.useState([]);return rt.set=i=>{n([...r,i])},rt.del=i=>{r.forEach((f,u)=>{f.key===i&&r.splice(u,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function sr(r){let n=new Date().getTime();r.key=n,rt.set({item:s.jsx(lr,{data:r},n),key:n})}function lr(r){const n=r.data;let[i]=S.useState("show"),[f,u]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){u(!0),rt.del(n.key)},5e3)},[n.key]);let h;switch(n.type){case"error":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":h=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":h=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:h="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:f?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),s.jsx("span",{className:"text",children:n.text})]})})}let ue={Send:sr,Init:ir},Oe=()=>{};const Wt=({children:r,title:n,isOverlay:i=!0,footer:f=!0,className:u,onOpen:h})=>{const[j,_]=S.useState(!1);return Oe=()=>{_(!0),setTimeout(()=>{var p;h==null||h(!1),(p=we==null?void 0:we.onClose)==null||p.call(we)},300)},s.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${j?"closing":""} `,onClick:Oe,children:s.jsxs("div",{className:`footer-menu-popup-book ${j?"closing":""} ${u||""} ${f?"footer":""}`,onClick:p=>p.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Oe,children:"✕"})]}),r]})})},Vt={h:"_h_1ryiq_1",row:"_row_1ryiq_14",column:"_column_1ryiq_17"},we=[],qt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),Ht=({actions:r,children:n,className:i,toHide:f=!1,page:u,onPageChange:h,direction:j="row"})=>{const[_,p]=S.useState(null),[O,m]=S.useState(u?qt(r||[],u):0);return we.onClose=()=>{p(null),m(u?qt(r||[],u):0)},S.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},N=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",N,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",N,!0),I.removeEventListener("blur",k,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${Vt.h} ${Vt[j]} ${i} `,children:[n,r&&r.map((y,k)=>s.jsx("div",{"data-active":O===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(O===k?Oe():(p(y.component),m(k)))},children:y.icon},k))]})]})},fe={is:!1,MainButton:{},BackButton:{}};let q={};q.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},q.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},q.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const cr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[i,f]=S.useState(!1),[u,h]=S.useState("dark"),[j,_]=S.useState(!1),[p,O]=S.useState(!1);fe.is=!0,fe.MainButton.set=n,fe.BackButton.set=f,S.useEffect(()=>{q[u]["--tg-theme-bg-color-alpha"]=q[u]["--tg-theme-bg-color"]+"b3",q[u]["--tg-theme-secondary-bg-color-alpha"]=q[u]["--tg-theme-secondary-bg-color"]+"d3";for(let k in q[u])document.documentElement.style.setProperty(k,q[u][k]);pe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let N in q[k])document.documentElement.style.setProperty(N,q[k][N]);h(k),_(!1)},y=()=>{_(!1),O(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[i===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ie.setPage(i.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!j),children:"Меню"})]}),s.jsx(ue.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ie.setPage(r.page),r.callback&&r.callback()},children:r.text})}),j?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!j),children:"Closed"})})]})]}):"",p?s.jsx(ur,{setAuthorization:O}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",pe.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",pe.themeParams.bg_color+"b3"),pe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(ue.Init,{})})},ur=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:i,children:" Сохранить "})]})})},Jt={p:"_p_12hh1_1",s:"_s_12hh1_17"},fr=({className:r,children:n,isScroll:i=!0})=>s.jsx("div",{className:[Jt.p,i&&Jt.s,r].filter(f=>f!==void 0).join(" "),children:n}),dr={l:"_l_gfyud_1"},pr=({children:r,className:n})=>s.jsx("div",{className:[dr.l,n].filter(i=>i!==void 0).join(" "),children:r}),de={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},gr=({items:r})=>{const n=f=>{ie.setPage(f)},i=f=>{pe.openTelegramLink(f)};return s.jsx("div",{className:de.m,children:r.map(f=>s.jsx("div",{className:de.g,children:f.items.map((u,h)=>s.jsxs("div",{className:de.i,onClick:()=>u.link?i(u.link):n(u.page||""),children:[s.jsxs("div",{className:de.c,children:[s.jsx("span",{className:de.l,style:{background:u.color},children:u.icon}),u.title,u.count&&s.jsx("span",{className:de.n,children:u.count})]}),s.jsx("span",{className:de.a,children:"›"})]},h))},f.id))})},z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var i;let n=z.state.pop();z.prev=ie.getPage(),n.page!==void 0?ie.setPage(n.page):(i=n.callback)==null||i.call(n)}),pe.BackButton.onClick(z.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,i,f)=>{var u,h;i!==void 0?(ue.Send({type:n,text:i,thema:f}),(u=r.WebApp.HapticFeedback)==null||u.notificationOccurred(n)):(ue.Send(n),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(n.type))},Error:n=>{var i;ue.Send({type:"error",text:n}),(i=r.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;ue.Send({type:"success",text:n}),(i=r.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;ue.Send({type:"warning",text:n}),(i=r.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},r.Header=cr,r.Footer=Ht,r.BottomSheet=Wt,r.toggleBottomSheet=Oe,r.SafeArea=fr,r.Loading=pr,r.Modal=ot,r.Menu=gr,r.MainButton={callback:[],set:n=>{fe.is?fe.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ie.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButton=n=>{fe.is?fe.BackButton.set(n):(z.state.push(n),z.router(n))}})(w.default||(w.default={}));const mr=Ht,hr=Wt,vr=w.default.BackButton,br=w.default.Notice,yr=w.default.SafeArea,xr=w.default.Loading,_r=w.default.Menu,{Header:kr,toggleBottomSheet:wr,Modal:Rr,MainButton:Sr,WebApp:pe,getUser:Er}=w.default;w.BackButton=vr,w.BottomSheet=hr,w.Footer=mr,w.Header=kr,w.Loading=xr,w.MainButton=Sr,w.Menu=_r,w.Modal=Rr,w.Notice=br,w.SafeArea=yr,w.WebApp=pe,w.getUser=Er,w.toggleBottomSheet=wr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.82",
3
+ "version": "0.0.83",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
@@ -32,6 +32,6 @@
32
32
  "react": ">=18.0.0"
33
33
  },
34
34
  "dependencies": {
35
- "@elcrm/router": "^0.0.37"
35
+ "@elcrm/router": "^0.0.38"
36
36
  }
37
37
  }