@elcrm/telegram 0.0.121 → 0.0.123

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,4 +1,4 @@
1
- (function(m,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],R):(m=typeof globalThis<"u"?globalThis:m||self,R((m.elCRM=m.elCRM||{},m.elCRM.components={}),m.React,m.ReactDOM))})(this,function(m,R,ar){"use strict";var Ut=document.createElement("style");Ut.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-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));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_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_1axqy_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}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.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}}body:has(._h_e1des_1){--tg-offset-bottom: 60px}._h_e1des_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);max-width:var(--tg-max-width, 500px);margin:0 auto;opacity:1;visibility:visible;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_e1des_1._r_e1des_22{flex-direction:row}._h_e1des_1._c_e1des_25{flex-direction:column}._h_e1des_1._x_e1des_28{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}._h_e1des_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_e1des_1 div[data-active=true]{color:var(--tg-theme-button-color)}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;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));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
1
+ (function(v,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],R):(v=typeof globalThis<"u"?globalThis:v||self,R((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,R,ar){"use strict";var Ut=document.createElement("style");Ut.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-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));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_1axqy_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_1axqy_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}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.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}}body:has(._h_4aije_1){--tg-offset-bottom: 60px}._h_4aije_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);max-width:var(--tg-max-width, 500px);margin:0 auto;opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_4aije_1._r_4aije_23{flex-direction:row}._h_4aije_1._c_4aije_26{flex-direction:column}._h_4aije_1._x_4aije_29{opacity:0;visibility:hidden}._h_4aije_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_4aije_1 div[data-active=true]{color:var(--tg-theme-button-color)}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;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));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_ezoxx_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_ezoxx_3._n_ezoxx_14{padding-left:7px;padding-right:7px}._s_ezoxx_3._n_ezoxx_14:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
2
2
  /*$vite$:1*/`,document.head.appendChild(Ut);var ft={exports:{}},$e={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -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 qt;function ir(){if(qt)return $e;qt=1;var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(b,u,k){var h,y={},_=null,z=null;k!==void 0&&(_=""+k),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(z=u.ref);for(h in u)l.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(b&&b.defaultProps)for(h in u=b.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:o,type:b,key:_,ref:z,props:y,_owner:c.current}}return $e.Fragment=a,$e.jsx=w,$e.jsxs=w,$e}var Te={};/**
10
+ */var qt;function ir(){if(qt)return $e;qt=1;var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(y,u,x){var _,m={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(_ in u)l.call(u,_)&&!p.hasOwnProperty(_)&&(m[_]=u[_]);if(y&&y.defaultProps)for(_ in u=y.defaultProps,u)m[_]===void 0&&(m[_]=u[_]);return{$$typeof:o,type:y,key:g,ref:z,props:m,_owner:c.current}}return $e.Fragment=a,$e.jsx=w,$e.jsxs=w,$e}var Te={};/**
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 Vt;function sr(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),b=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",n=n.concat([g]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Me=!1,Pe=!1,De=!1,Fe=!1,x=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||x||e===c||e===k||e===h||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case y:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case _:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
19
- `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=xe.current,xe.current=null,_t();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
18
+ */var Vt;function sr(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===_||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;var h=t.displayName||t.name||"";return h!==""?n+"("+h+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
19
+ `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=xe.current,xe.current=null,_t();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
20
20
  `),C=s.stack.split(`
21
21
  `),S=f.length-1,j=C.length-1;S>=1&&j>=0&&f[S]!==C[j];)j--;for(;S>=1&&j>=0;S--,j--)if(f[S]!==C[j]){if(S!==1||j!==1)do if(S--,j--,j<0||f[S]!==C[j]){var T=`
22
- `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=v,mt(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case k:return ne("Suspense");case h:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case y:return ie(e.type,t,n);case _:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),A("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Ve)&&(Ve[f.message]=!0,se(g),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,g,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,g){{var v,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t,g));for(v in t)G.call(t,v)&&!Rt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var S=e.defaultProps;for(v in S)d[v]===void 0&&(d[v]=S[v])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,g,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
22
+ `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case _:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case m:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t,h));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var et={};function zt(e){{var t=Qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
25
25
 
26
- Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var g=ye(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===u||t.$$typeof===y))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var g=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,g,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,g,v);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;Te.Fragment=l,Te.jsx=Dt,Te.jsxs=Ft}()),Te}process.env.NODE_ENV==="production"?ft.exports=ir():ft.exports=sr();var i=ft.exports;const Oe={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var dt;(r=>{function o({children:b,onCallbackModal:u,nameModal:k,offsetTop:h}){const[y,_]=R.useState(!1),[z,$]=R.useState(!1);if(q[k].onClose=()=>{m.default.BackButton(!1),$(!0),setTimeout(()=>{_(!1),$(!1),u==null||u(),q.x(k)},300)},R.useEffect(()=>{y?q[k].onClose():(m.default.BackButton({callback:()=>q[k].onClose()}),_(!0))},[]),!!y)return i.jsx("div",{className:de(Oe.o,z&&Oe.x),children:i.jsx("div",{className:de(Oe.p,z&&Oe.x,h?Oe.o:Oe.m),children:b})})}r.Content=o;function a({import_modules:b}){let[u,k]=R.useState([]);return q.x=h=>{k(h?u.filter(y=>y.key!==h):[])},R.useEffect(()=>{b&&(q.i=b)},[]),q.add=(h,y=Date.now())=>{k([...u,{key:y,item:h}])},i.jsx(i.Fragment,{children:u.map(h=>h.item)})}r.Init=a;function l(b,u,k){q.add(i.jsx(o,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:k,children:b},String(Date.now())),u)}r.Add=l;function c(b,u=Date.now().toString(),k){return q[u]={},{Open:_=>{r.Add(i.jsx(b,{..._,onCallbackModal:z=>{var $;($=_.callback)==null||$.call(_,z)},nameModal:u},new Date().getTime()),u,k===void 0?!0:k)}}}r.Create=c;function p(b){q[b].onClose()}r.Close=p;function w(b,u,k,h){q.i&&(h&&(k.callback=h),q.i(`${b}/modals/${u}.tsx`).then(y=>{y.default.Open(k)}))}r.Open=w})(dt||(dt={}));function Ht(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Jt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Kt(r){const o=Ht();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Jt,...r}}function at(){return Ht().CRYPTO_PARAMS||Jt}const it=r=>{let o=0;for(let l=0;l<r.length;l++){const c=r.charCodeAt(l);o=(o<<5)-o+c,o=o&o}o=Math.abs(o);let a="";for(let l=0;l<64;l++){const c=(o^l*197)&255;a+=c.toString(16).padStart(2,"0")}return a},Gt=(r,o)=>{let a=r+o;for(let c=0;c<at().iterations;c++)a=it(a);const l=new Uint8Array(32);for(let c=0;c<32;c++)l[c]=parseInt(a.substring(c*2,c*2+2),16);return l},Zt=(r,o)=>{const a=new Uint8Array(r.length),l=new Uint8Array(r.length);let c=0;for(let p=0;p<r.length;p++){const w=p%o.length;c=o[w]+p+c&255,l[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^l[p];return a},lr=r=>new TextEncoder().encode(r),cr=r=>new TextDecoder().decode(r),ur=r=>{let o="";for(let a=0;a<r.length;a+=8192){const l=r.slice(a,Math.min(a+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(l))}return btoa(o)},fr=r=>{const o=atob(r),a=new Uint8Array(o.length);for(let l=0;l<o.length;l++)a[l]=o.charCodeAt(l);return a},dr=r=>{try{const o=it(Date.now().toString()+Math.random()).substring(0,at().saltLength*2),a=it(r+o).substring(0,8),l=Gt(at().key,o),c=lr(r),p=Zt(c,l),w=ur(p);return`${o}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},pr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],l=o[1],c=o[2],p=Gt(at().key,a),w=fr(l),b=Zt(w,p),u=cr(b);if(it(u+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{Kt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return dr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=pr(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Kt({iterations:o,saltLength:a})}})(le||(le={}));var ze={};/**
31
+ <%s key={someKey} {...props} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;Te.Fragment=l,Te.jsx=Dt,Te.jsxs=Ft}()),Te}process.env.NODE_ENV==="production"?ft.exports=ir():ft.exports=sr();var i=ft.exports;const Oe={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var dt;(r=>{function o({children:y,onCallbackModal:u,nameModal:x,offsetTop:_}){const[m,g]=R.useState(!1),[z,$]=R.useState(!1);if(q[x].onClose=()=>{v.default.BackButton(!1),$(!0),setTimeout(()=>{g(!1),$(!1),u==null||u(),q.x(x)},300)},R.useEffect(()=>{m?q[x].onClose():(v.default.BackButton({callback:()=>q[x].onClose()}),g(!0))},[]),!!m)return i.jsx("div",{className:de(Oe.o,z&&Oe.x),children:i.jsx("div",{className:de(Oe.p,z&&Oe.x,_?Oe.o:Oe.m),children:y})})}r.Content=o;function a({import_modules:y}){let[u,x]=R.useState([]);return q.x=_=>{x(_?u.filter(m=>m.key!==_):[])},R.useEffect(()=>{y&&(q.i=y)},[]),q.add=(_,m=Date.now())=>{x([...u,{key:m,item:_}])},i.jsx(i.Fragment,{children:u.map(_=>_.item)})}r.Init=a;function l(y,u,x){q.add(i.jsx(o,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:x,children:y},String(Date.now())),u)}r.Add=l;function c(y,u=Date.now().toString(),x){return q[u]={},{Open:g=>{r.Add(i.jsx(y,{...g,onCallbackModal:z=>{var $;($=g.callback)==null||$.call(g,z)},nameModal:u},new Date().getTime()),u,x===void 0?!0:x)}}}r.Create=c;function p(y){q[y].onClose()}r.Close=p;function w(y,u,x,_){q.i&&(_&&(x.callback=_),q.i(`${y}/modals/${u}.tsx`).then(m=>{var g;m.Open?m.Open(x):(g=m.default)!=null&&g.Open?m.default.Open(x):m.default&&m.default(x)}))}r.Open=w})(dt||(dt={}));function Ht(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Jt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Kt(r){const o=Ht();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Jt,...r}}function at(){return Ht().CRYPTO_PARAMS||Jt}const it=r=>{let o=0;for(let l=0;l<r.length;l++){const c=r.charCodeAt(l);o=(o<<5)-o+c,o=o&o}o=Math.abs(o);let a="";for(let l=0;l<64;l++){const c=(o^l*197)&255;a+=c.toString(16).padStart(2,"0")}return a},Gt=(r,o)=>{let a=r+o;for(let c=0;c<at().iterations;c++)a=it(a);const l=new Uint8Array(32);for(let c=0;c<32;c++)l[c]=parseInt(a.substring(c*2,c*2+2),16);return l},Zt=(r,o)=>{const a=new Uint8Array(r.length),l=new Uint8Array(r.length);let c=0;for(let p=0;p<r.length;p++){const w=p%o.length;c=o[w]+p+c&255,l[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^l[p];return a},lr=r=>new TextEncoder().encode(r),cr=r=>new TextDecoder().decode(r),ur=r=>{let o="";for(let a=0;a<r.length;a+=8192){const l=r.slice(a,Math.min(a+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(l))}return btoa(o)},fr=r=>{const o=atob(r),a=new Uint8Array(o.length);for(let l=0;l<o.length;l++)a[l]=o.charCodeAt(l);return a},dr=r=>{try{const o=it(Date.now().toString()+Math.random()).substring(0,at().saltLength*2),a=it(r+o).substring(0,8),l=Gt(at().key,o),c=lr(r),p=Zt(c,l),w=ur(p);return`${o}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},pr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],l=o[1],c=o[2],p=Gt(at().key,a),w=fr(l),y=Zt(w,p),u=cr(y);if(it(u+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{Kt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return dr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=pr(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Kt({iterations:o,saltLength:a})}})(le||(le={}));var ze={};/**
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 Xt;function gr(){if(Xt)return ze;Xt=1;var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(b,u,k){var h,y={},_=null,z=null;k!==void 0&&(_=""+k),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(z=u.ref);for(h in u)l.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(b&&b.defaultProps)for(h in u=b.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:o,type:b,key:_,ref:z,props:y,_owner:c.current}}return ze.Fragment=a,ze.jsx=w,ze.jsxs=w,ze}var st={};/**
39
+ */var Xt;function gr(){if(Xt)return ze;Xt=1;var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(y,u,x){var _,m={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(_ in u)l.call(u,_)&&!p.hasOwnProperty(_)&&(m[_]=u[_]);if(y&&y.defaultProps)for(_ in u=y.defaultProps,u)m[_]===void 0&&(m[_]=u[_]);return{$$typeof:o,type:y,key:g,ref:z,props:m,_owner:c.current}}return ze.Fragment=a,ze.jsx=w,ze.jsxs=w,ze}var st={};/**
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 Yt;function hr(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),b=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",n=n.concat([g]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Me=!1,Pe=!1,De=!1,Fe=!1,x=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||x||e===c||e===k||e===h||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===_||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case y:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case _:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
48
- `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=xe.current,xe.current=null,_t();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
47
+ */var Yt;function hr(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===_||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;var h=t.displayName||t.name||"";return h!==""?n+"("+h+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&A("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
48
+ `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=xe.current,xe.current=null,_t();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
49
49
  `),C=s.stack.split(`
50
50
  `),S=f.length-1,j=C.length-1;S>=1&&j>=0&&f[S]!==C[j];)j--;for(;S>=1&&j>=0;S--,j--)if(f[S]!==C[j]){if(S!==1||j!==1)do if(S--,j--,j<0||f[S]!==C[j]){var T=`
51
- `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=v,mt(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case k:return ne("Suspense");case h:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case y:return ie(e.type,t,n);case _:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),A("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Ve)&&(Ve[f.message]=!0,se(g),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,g,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,g){{var v,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t));for(v in t)G.call(t,v)&&!Rt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var S=e.defaultProps;for(v in S)d[v]===void 0&&(d[v]=S[v])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,g,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
51
+ `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case _:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case m:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function Et(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var et={};function zt(e){{var t=Qe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
54
54
 
55
- Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var g=ye(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===u||t.$$typeof===y))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var g=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,g,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,g,v);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;st.Fragment=l,st.jsx=Dt,st.jsxs=Ft}()),st}process.env.NODE_ENV==="production"?gr():hr();const _r="0.0.40",Qt={version:_r},te={},J={module:"",v:Qt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ge(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ge().elcrm||(ge().elcrm={}),Object.assign(ge().elcrm,{router:Qt.version});function Z(r){var o,a,l,c;const p=ge();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(l=p.ROUTER_PARAMS)==null?void 0:l.tab,id:(c=p.ROUTER_PARAMS)==null?void 0:c.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:w}}else{r.debug||J.debug;const w={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:w}}}function O(){return ge().ROUTER_PARAMS||J}function he(r){const o=ge();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ge().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var x;let E=sessionStorage.getItem("f");if(E){if(E=le.deCode(E),!E)return!1;Z({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?O().page:O().auth,module:O().module});return!0}function a(){te.id=0,te.tab="",te.page=O().page,te.module=O().module}r.Reset=a;function l({module:x=O().module,page:E=O().page,auth:N=O().auth,debug:M=O().debug}){Z({page:E,module:x,auth:N,debug:M}),o()}r.Default=l;function c(x){let E=I=>(Z({page:I}),I);const[N,M]=R.useState(w()||x&&E(x)||O().page);return he({page:I=>{M(I)}}),N}r.usePage=c;function p(x,E=!0,N={}){Z({page:x,...N}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().page(x)}r.setPage=p;function w(){return O().page}r.getPage=w;function b(x){return O().page===x}r.isPage=b;function u(){return O().prev}r.getBack=u;function k(x,E){const[N,M]=R.useState(y()||x||O().module);return he({module:M}),N}r.useModule=k;function h(x,E=!0){Z({module:x}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().module(x)}r.setModule=h;function y(){return O().module||""}r.getModule=y;function _(x){return O().module===x}r.isModule=_;function z(x,E){if(typeof x!="function"){const[N,M]=R.useState(!E),[I,B]=R.useState(x||ye());return he({tabs:B}),E&&R.useEffect(()=>{M(!0)},[]),[I,N]}else he({tabs:x})}r.useTabs=z;function $(x){let E=I=>(Z({tab:I}),I);const[N,M]=R.useState(ye()||x&&E(x)||O().tab);return he({tabs:I=>{M(I)}}),N}r.useTab=$;async function Ne(x,E=!0){Z({tab:x}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&(re().tabs&&re().tabs(x))}r.setTabs=Ne;function ye(){return O().tab}r.getTabs=ye;function L(x){return O().tab===x}r.isTabs=L;function A(x){if(typeof x!="function"){const[E,N]=R.useState(x||Pe());return he({id:M=>{N(M)}}),E}else he({id:x})}r.useId=A;function Ie(x){}r.subId=Ie;async function Me(x,E=!0){Z({id:x}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().id(x)}r.setId=Me;function Pe(){return O().id}r.getId=Pe;function De(x){return Number(O().id)===x}r.isId=De;async function Fe(x){var E,N,M,I,B,D,U,pe;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((N=(E=re()).id)==null||N.call(E,ee)),Q!==void 0&&((I=(M=re()).tabs)==null||I.call(M,Q)),Y!==void 0&&((D=(B=re()).module)==null||D.call(B,Y)),X!==void 0&&((pe=(U=re()).page)==null||pe.call(U,X)),sessionStorage.setItem(O().STORAGE,le.enCode(O()))}r.navigate=Fe})(ce||(ce={}));const _e={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let lt={};function mr(){const[r,o]=R.useState([]);return lt.set=a=>{o([...r,a])},lt.del=a=>{r.forEach((l,c)=>{l.key===a&&r.splice(c,1)}),o(r)},r.length===0?i.jsx(i.Fragment,{}):i.jsx("div",{className:_e.n,children:r.map(a=>a.item)})}function vr(r){let o=new Date().getTime();r.key=o,lt.set({item:i.jsx(br,{data:r},o),key:o})}function br(r){const o=r.data;let[a]=R.useState("show"),[l,c]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){c(!0),lt.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=i.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":p=i.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":p=i.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:p="icon fa fa-exclamation-circle";break}const w={error:_e.e,success:_e.s,warning:_e.w};return i.jsx(i.Fragment,{children:l?i.jsx(i.Fragment,{}):i.jsxs("div",{className:_e.i+w[o.type]+` ${o.thema!==void 0?_e.h:""}`,"data-status":a,children:[i.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),i.jsx("span",{className:_e.t,children:o.text})]})})}let me={Send:vr,Init:mr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},fe={is:!1,MainButton:{},BackButton:{}};let K={};K.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"},K.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"},K.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 yr=()=>{if(location.hostname==="localhost"){let[r,o]=R.useState(!1),[a,l]=R.useState(!1),[c,p]=R.useState("dark"),[w,b]=R.useState(!1),[u,k]=R.useState(!1);fe.is=!0,fe.MainButton.set=o,fe.BackButton.set=l,R.useEffect(()=>{K[c]["--tg-theme-bg-color-alpha"]=K[c]["--tg-theme-bg-color"]+"b3",K[c]["--tg-theme-secondary-bg-color-alpha"]=K[c]["--tg-theme-secondary-bg-color"]+"d3";for(let _ in K[c])document.documentElement.style.setProperty(_,K[c][_]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=_=>{for(let z in K[_])document.documentElement.style.setProperty(z,K[_][z]);p(_),b(!1)},y=()=>{b(!1),k(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:ue.d,children:[a===!1?i.jsx("div",{className:ue.b,children:"Отмена"}):i.jsx("div",{onClick:()=>{var _;a.page===void 0?(_=a.callback)==null||_.call(a):ce.setPage(a.page)},className:ue.b,children:"Назад"}),i.jsx("div",{className:ue.o,onClick:()=>b(!w),children:"Меню"})]}),i.jsx(me.Init,{}),r&&i.jsx("div",{className:ue.m,children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?i.jsxs("div",{className:ue.t,children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:y,children:"Authorization"})}),i.jsx("li",{})]}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("button",{children:"Thema"}),i.jsxs("ol",{children:[i.jsx("li",{children:i.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>b(!w),children:"Closed"})})]})]}):"",u?i.jsx(xr,{setAuthorization:k}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),i.jsx(i.Fragment,{children:i.jsx(me.Init,{})})},xr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:ue.a,children:i.jsxs("div",{className:ue.v,children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},er={p:"_p_1axqy_1",s:"_s_1axqy_17"},kr=({className:r,children:o,isScroll:a=!0})=>i.jsx("div",{className:[er.p,a&&er.s,r].filter(l=>l!==void 0).join(" "),children:o}),wr={l:"_l_gfyud_1"},Sr=({children:r,className:o})=>i.jsx("div",{className:[wr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ve={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"},Rr=({items:r})=>{const o=l=>{ce.setPage(l)},a=l=>{be.openTelegramLink(l)};return i.jsx("div",{className:ve.m,children:r.map(l=>i.jsx("div",{className:ve.g,children:l.items.map((c,p)=>i.jsxs("div",{className:ve.i,onClick:()=>{c.link&&a(c.link),c.page&&o(c.page),c.callback&&c.callback()},children:[i.jsxs("div",{className:ve.c,children:[i.jsx("span",{className:ve.l,style:{background:c.color},children:c.icon}),c.title,c.count&&i.jsx("span",{className:ve.n,children:c.count})]}),i.jsx("span",{className:ve.a,children:"›"})]},p))},l.id))})},oe={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function jr({children:r,icon:o,iconBadge:a=0,title:l,className:c,view:p="list",position:w="left"}){const[b,u]=R.useState(!1),[k,h]=R.useState(null);R.useEffect(()=>{let _=document.querySelector(".p_sb");return _||(_=document.createElement("div"),_.className="_p_sb",document.body.appendChild(_)),h(_),()=>{_&&_.parentNode&&_.parentNode.removeChild(_)}},[]);const y=i.jsxs(i.Fragment,{children:[b&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:de(oe.m,w==="left"?oe.l:oe.r,b&&oe.x,c),children:[i.jsxs("div",{className:oe.h,children:[l&&i.jsx("h3",{className:oe.t,children:l}),i.jsxs("svg",{onClick:()=>u(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[i.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),i.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),i.jsx("div",{className:oe.c,children:p==="list"?i.jsx("ul",{className:oe.u,children:r}):r})]})]});return i.jsxs(i.Fragment,{children:[o&&i.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:o}),k&&ar.createPortal(y,k)]})}let Be=()=>{};const tr=({children:r,title:o,isOverlay:a=!0,footer:l=!0,className:c,onOpen:p})=>{const[w,b]=R.useState(!1);return Be=()=>{b(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ce==null?void 0:Ce.onClose)==null||u.call(Ce)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:Be,children:i.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${c||""} ${l?"footer":""}`,onClick:u=>u.stopPropagation(),children:[i.jsxs("div",{className:"footer-menu-header",children:[i.jsx("h3",{children:o}),i.jsx("button",{className:"footer-menu-close-btn",onClick:Be,children:"✕"})]}),r]})})},ct={h:"_h_e1des_1",r:"_r_e1des_22",c:"_c_e1des_25",x:"_x_e1des_28"},Er={b:"_b_r6m8n_1"},Ar=({className:r,value:o})=>i.jsx("div",{className:[Er.b,r].filter(a=>a!==void 0).join(" "),children:o}),Ce=[],rr=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Or=({actions:r,children:o,className:a,toHide:l=!1,page:c,onPageChange:p,direction:w="row"})=>{const[b,u]=R.useState(null),[k,h]=R.useState(c?rr(r||[],c):0);return Ce.onClose=()=>{u(null),h(c?rr(r||[],c):0)},R.useEffect(()=>{if(!l)return;const y=document.querySelectorAll("[contenteditable]"),_=()=>{const $=document.querySelector("footer");$&&$.classList.remove(ct.x)},z=()=>{const $=document.querySelector("footer");$&&$.classList.add(ct.x)};return y.forEach($=>{$.addEventListener("focus",z,!0),$.addEventListener("blur",_,!0)}),()=>{y.forEach($=>{$.removeEventListener("focus",z,!0),$.removeEventListener("blur",_,!0)})}},[]),i.jsxs(i.Fragment,{children:[b,i.jsxs("footer",{className:de(ct.h,ct[w==="row"?"r":"c"],a),children:[o,r&&r.map((y,_)=>i.jsxs("div",{"data-active":k===_?"true":"false",onClick:()=>{y.page&&(h(_),p==null||p(y.page)),y.onClick&&y.onClick(()=>h(_)),y.component&&(k===_?Be():(u(y.component),h(_)))},children:[y.icon,y.badge&&i.jsx(Ar,{value:y.badge})]},_))]})]})},ut={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},pt={};function Cr({children:r,name:o,onClose:a,isOpen:l,isScroll:c=!0,nextBackButton:p}){const[w,b]=R.useState(!1);return R.useEffect(()=>{if(!l)return;const u=p===void 0?nr().pop():p,k=()=>{b(!1),setTimeout(()=>{ht(u||!1),a==null||a()},300)};pt[o]={onClose:k,onOpen:()=>{b(!0)}},ht({callback:k});const h=setTimeout(()=>{b(!0)},10);return()=>{clearTimeout(h)}},[l]),l?i.jsxs("div",{className:de(ut.w,w&&ut.v,c&&ut.s),children:[i.jsx("div",{className:ut.n}),r]}):""}const Pr=(r,o)=>{var a,l;o?(a=pt[r])==null||a.onOpen():(l=pt[r])==null||l.onClose()},or={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function $r({className:r,children:o,onScrollEnd:a,offset:l=100,isLoading:c,isScrollBar:p=!1}){const[w,b]=R.useState(c||!1);R.useEffect(()=>{b(c||!1)},[c]);let u={onScroll:k=>{const{scrollTop:h,scrollHeight:y,clientHeight:_}=k.currentTarget;h+_>=y-l&&!w&&(b(!0),a==null||a())}};return i.jsx("div",{...u,className:de(or.s,!p&&or.n,r),children:o})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Tr({children:r,className:o,position:a="center",title:l}){let c="";return a==="left"?c=gt.l:a==="right"&&(c=gt.r),i.jsxs("div",{className:de(gt.a,c,o),children:[r,l&&i.jsx("b",{children:l})]})}const F={state:[!1],listen:[],prev:{},router:r=>{r===!1?(m.default.WebApp.BackButton.isVisible=!1,m.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.state.length!==1&&F.state.pop()):(m.default.WebApp.BackButton.isVisible=!0,m.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.listen.push(()=>{var a;let o=F.state.pop();F.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),be.BackButton.onClick(F.listen[0]))}},de=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");m.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.Location=o=>{if(fe.is)return o({latitude:55.752555,longitude:37.623123});let a=()=>{r.WebApp.LocationManager.getLocation(async l=>{if(!l){r.WebApp.LocationManager.isAccessRequested||r.WebApp.LocationManager.openSettings();return}o(l)})};!r.WebApp.LocationManager||!r.WebApp.LocationManager.isInited?r.WebApp.LocationManager.init(()=>{a()}):a()},r.Notice={Send:(o,a,l)=>{var c,p;a!==void 0?(me.Send({type:o,text:a,thema:l}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(o)):(me.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;me.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;me.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;me.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=yr,r.TabBar=Or,r.BottomSheet=tr,r.toggleBottomSheet=Be,r.SafeArea=kr,r.Loading=Sr,r.Sidebar=jr,r.SidePanel=Cr,r.AppBar=Tr,r.SidePanelController=Pr,r.Scroll=$r,r.Modal=dt,r.Menu=Rr,r.MainButton={callback:[],set:o=>{fe.is?fe.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),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 a;o.page===void 0?(a=o.callback)==null||a.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{F.prev&&(0,r.BackButton)(F.prev)},r.BackButtonState=()=>F.state,r.BackButton=o=>{fe.is?fe.BackButton.set(o):(F.state.push(o),F.router(o))}})(m.default||(m.default={}));const zr=m.default.TabBar,Br=tr,ht=m.default.BackButton,Nr=m.default.BackButtonPrev,nr=m.default.BackButtonState,Ir=m.default.Notice,Mr=m.default.SafeArea,Dr=m.default.Loading,Fr=m.default.Menu,Lr=m.default.SidePanel,Wr=m.default.Scroll,Ur=m.default.AppBar,qr=m.default.Sidebar,Vr=m.default.Location,Hr=m.default.SidePanelController,{Header:Jr,toggleBottomSheet:Kr,Modal:Gr,MainButton:Zr,WebApp:be,getUser:Xr}=m.default;m.AppBar=Ur,m.BackButton=ht,m.BackButtonPrev=Nr,m.BackButtonState=nr,m.BottomSheet=Br,m.Header=Jr,m.Loading=Dr,m.Location=Vr,m.MainButton=Zr,m.Menu=Fr,m.Modal=Gr,m.Notice=Ir,m.SafeArea=Mr,m.Scroll=Wr,m.SidePanel=Lr,m.SidePanelController=Hr,m.Sidebar=qr,m.TabBar=zr,m.WebApp=be,m.clsx=de,m.getUser=Xr,m.toggleBottomSheet=Kr,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;st.Fragment=l,st.jsx=Dt,st.jsxs=Ft}()),st}process.env.NODE_ENV==="production"?gr():hr();const _r="0.0.40",Qt={version:_r},te={},J={module:"",v:Qt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ge(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ge().elcrm||(ge().elcrm={}),Object.assign(ge().elcrm,{router:Qt.version});function Z(r){var o,a,l,c;const p=ge();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(l=p.ROUTER_PARAMS)==null?void 0:l.tab,id:(c=p.ROUTER_PARAMS)==null?void 0:c.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:w}}else{r.debug||J.debug;const w={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:w}}}function O(){return ge().ROUTER_PARAMS||J}function he(r){const o=ge();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ge().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var k;let E=sessionStorage.getItem("f");if(E){if(E=le.deCode(E),!E)return!1;Z({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else Z({id:0,tab:"",page:(k=localStorage.getItem("d"))!=null&&k.length?O().page:O().auth,module:O().module});return!0}function a(){te.id=0,te.tab="",te.page=O().page,te.module=O().module}r.Reset=a;function l({module:k=O().module,page:E=O().page,auth:N=O().auth,debug:M=O().debug}){Z({page:E,module:k,auth:N,debug:M}),o()}r.Default=l;function c(k){let E=I=>(Z({page:I}),I);const[N,M]=R.useState(w()||k&&E(k)||O().page);return he({page:I=>{M(I)}}),N}r.usePage=c;function p(k,E=!0,N={}){Z({page:k,...N}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().page(k)}r.setPage=p;function w(){return O().page}r.getPage=w;function y(k){return O().page===k}r.isPage=y;function u(){return O().prev}r.getBack=u;function x(k,E){const[N,M]=R.useState(m()||k||O().module);return he({module:M}),N}r.useModule=x;function _(k,E=!0){Z({module:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().module(k)}r.setModule=_;function m(){return O().module||""}r.getModule=m;function g(k){return O().module===k}r.isModule=g;function z(k,E){if(typeof k!="function"){const[N,M]=R.useState(!E),[I,B]=R.useState(k||ye());return he({tabs:B}),E&&R.useEffect(()=>{M(!0)},[]),[I,N]}else he({tabs:k})}r.useTabs=z;function $(k){let E=I=>(Z({tab:I}),I);const[N,M]=R.useState(ye()||k&&E(k)||O().tab);return he({tabs:I=>{M(I)}}),N}r.useTab=$;async function Ne(k,E=!0){Z({tab:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&(re().tabs&&re().tabs(k))}r.setTabs=Ne;function ye(){return O().tab}r.getTabs=ye;function L(k){return O().tab===k}r.isTabs=L;function A(k){if(typeof k!="function"){const[E,N]=R.useState(k||Pe());return he({id:M=>{N(M)}}),E}else he({id:k})}r.useId=A;function Ie(k){}r.subId=Ie;async function Me(k,E=!0){Z({id:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().id(k)}r.setId=Me;function Pe(){return O().id}r.getId=Pe;function De(k){return Number(O().id)===k}r.isId=De;async function Fe(k){var E,N,M,I,B,D,U,pe;const{page:X,module:Y,tab:Q,id:ee}=k;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((N=(E=re()).id)==null||N.call(E,ee)),Q!==void 0&&((I=(M=re()).tabs)==null||I.call(M,Q)),Y!==void 0&&((D=(B=re()).module)==null||D.call(B,Y)),X!==void 0&&((pe=(U=re()).page)==null||pe.call(U,X)),sessionStorage.setItem(O().STORAGE,le.enCode(O()))}r.navigate=Fe})(ce||(ce={}));const _e={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let lt={};function mr(){const[r,o]=R.useState([]);return lt.set=a=>{o([...r,a])},lt.del=a=>{r.forEach((l,c)=>{l.key===a&&r.splice(c,1)}),o(r)},r.length===0?i.jsx(i.Fragment,{}):i.jsx("div",{className:_e.n,children:r.map(a=>a.item)})}function vr(r){let o=new Date().getTime();r.key=o,lt.set({item:i.jsx(br,{data:r},o),key:o})}function br(r){const o=r.data;let[a]=R.useState("show"),[l,c]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){c(!0),lt.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=i.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":p=i.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":p=i.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:p="icon fa fa-exclamation-circle";break}const w={error:_e.e,success:_e.s,warning:_e.w};return i.jsx(i.Fragment,{children:l?i.jsx(i.Fragment,{}):i.jsxs("div",{className:_e.i+w[o.type]+` ${o.thema!==void 0?_e.h:""}`,"data-status":a,children:[i.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),i.jsx("span",{className:_e.t,children:o.text})]})})}let me={Send:vr,Init:mr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},fe={is:!1,MainButton:{},BackButton:{}};let K={};K.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"},K.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"},K.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 yr=()=>{if(location.hostname==="localhost"){let[r,o]=R.useState(!1),[a,l]=R.useState(!1),[c,p]=R.useState("dark"),[w,y]=R.useState(!1),[u,x]=R.useState(!1);fe.is=!0,fe.MainButton.set=o,fe.BackButton.set=l,R.useEffect(()=>{K[c]["--tg-theme-bg-color-alpha"]=K[c]["--tg-theme-bg-color"]+"b3",K[c]["--tg-theme-secondary-bg-color-alpha"]=K[c]["--tg-theme-secondary-bg-color"]+"d3";for(let g in K[c])document.documentElement.style.setProperty(g,K[c][g]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=g=>{for(let z in K[g])document.documentElement.style.setProperty(z,K[g][z]);p(g),y(!1)},m=()=>{y(!1),x(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:ue.d,children:[a===!1?i.jsx("div",{className:ue.b,children:"Отмена"}):i.jsx("div",{onClick:()=>{var g;a.page===void 0?(g=a.callback)==null||g.call(a):ce.setPage(a.page)},className:ue.b,children:"Назад"}),i.jsx("div",{className:ue.o,onClick:()=>y(!w),children:"Меню"})]}),i.jsx(me.Init,{}),r&&i.jsx("div",{className:ue.m,children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?i.jsxs("div",{className:ue.t,children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:m,children:"Authorization"})}),i.jsx("li",{})]}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("button",{children:"Thema"}),i.jsxs("ol",{children:[i.jsx("li",{children:i.jsx("button",{onClick:()=>_("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>y(!w),children:"Closed"})})]})]}):"",u?i.jsx(xr,{setAuthorization:x}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),i.jsx(i.Fragment,{children:i.jsx(me.Init,{})})},xr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:ue.a,children:i.jsxs("div",{className:ue.v,children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},er={p:"_p_1axqy_1",s:"_s_1axqy_17"},kr=({className:r,children:o,isScroll:a=!0})=>i.jsx("div",{className:[er.p,a&&er.s,r].filter(l=>l!==void 0).join(" "),children:o}),wr={l:"_l_gfyud_1"},Sr=({children:r,className:o})=>i.jsx("div",{className:[wr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ve={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"},Rr=({items:r})=>{const o=l=>{ce.setPage(l)},a=l=>{be.openTelegramLink(l)};return i.jsx("div",{className:ve.m,children:r.map(l=>i.jsx("div",{className:ve.g,children:l.items.map((c,p)=>i.jsxs("div",{className:ve.i,onClick:()=>{c.link&&a(c.link),c.page&&o(c.page),c.callback&&c.callback()},children:[i.jsxs("div",{className:ve.c,children:[i.jsx("span",{className:ve.l,style:{background:c.color},children:c.icon}),c.title,c.count&&i.jsx("span",{className:ve.n,children:c.count})]}),i.jsx("span",{className:ve.a,children:"›"})]},p))},l.id))})},oe={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"};function jr({children:r,icon:o,iconBadge:a=0,title:l,className:c,view:p="list",position:w="left"}){const[y,u]=R.useState(!1),[x,_]=R.useState(null);R.useEffect(()=>{let g=document.querySelector(".p_sb");return g||(g=document.createElement("div"),g.className="_p_sb",document.body.appendChild(g)),_(g),()=>{g&&g.parentNode&&g.parentNode.removeChild(g)}},[]);const m=i.jsxs(i.Fragment,{children:[y&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:de(oe.m,w==="left"?oe.l:oe.r,y&&oe.x,c),children:[i.jsxs("div",{className:oe.h,children:[l&&i.jsx("h3",{className:oe.t,children:l}),i.jsxs("svg",{onClick:()=>u(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[i.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),i.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),i.jsx("div",{className:oe.c,children:p==="list"?i.jsx("ul",{className:oe.u,children:r}):r})]})]});return i.jsxs(i.Fragment,{children:[o&&i.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:o}),x&&ar.createPortal(m,x)]})}let Be=()=>{};const tr=({children:r,title:o,isOverlay:a=!0,footer:l=!0,className:c,onOpen:p})=>{const[w,y]=R.useState(!1);return Be=()=>{y(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ce==null?void 0:Ce.onClose)==null||u.call(Ce)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:Be,children:i.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${c||""} ${l?"footer":""}`,onClick:u=>u.stopPropagation(),children:[i.jsxs("div",{className:"footer-menu-header",children:[i.jsx("h3",{children:o}),i.jsx("button",{className:"footer-menu-close-btn",onClick:Be,children:"✕"})]}),r]})})},ct={h:"_h_4aije_1",r:"_r_4aije_23",c:"_c_4aije_26",x:"_x_4aije_29"},Er={b:"_b_r6m8n_1"},Ar=({className:r,value:o})=>i.jsx("div",{className:[Er.b,r].filter(a=>a!==void 0).join(" "),children:o}),Ce=[],rr=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Or=({actions:r,children:o,className:a,toHide:l=!1,page:c,onPageChange:p,direction:w="row"})=>{const[y,u]=R.useState(null),[x,_]=R.useState(c?rr(r||[],c):0);return Ce.onClose=()=>{u(null),_(c?rr(r||[],c):0)},R.useEffect(()=>{if(!l)return;const m=document.querySelectorAll("[contenteditable]"),g=()=>{const $=document.querySelector("footer");$&&$.classList.remove(ct.x)},z=()=>{const $=document.querySelector("footer");$&&$.classList.add(ct.x)};return m.forEach($=>{$.addEventListener("focus",z,!0),$.addEventListener("blur",g,!0)}),()=>{m.forEach($=>{$.removeEventListener("focus",z,!0),$.removeEventListener("blur",g,!0)})}},[]),i.jsxs(i.Fragment,{children:[y,i.jsxs("footer",{className:de(ct.h,ct[w==="row"?"r":"c"],a),children:[o,r&&r.map((m,g)=>i.jsxs("div",{"data-active":x===g?"true":"false",onClick:()=>{m.page&&(_(g),p==null||p(m.page)),m.onClick&&m.onClick(()=>_(g)),m.component&&(x===g?Be():(u(m.component),_(g)))},children:[m.icon,m.badge&&i.jsx(Ar,{value:m.badge})]},g))]})]})},ut={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},pt={};function Cr({children:r,name:o,onClose:a,isOpen:l,isScroll:c=!0,nextBackButton:p}){const[w,y]=R.useState(!1);return R.useEffect(()=>{if(!l)return;const u=p===void 0?nr().pop():p,x=()=>{y(!1),setTimeout(()=>{ht(u||!1),a==null||a()},300)};pt[o]={onClose:x,onOpen:()=>{y(!0)}},ht({callback:x});const _=setTimeout(()=>{y(!0)},10);return()=>{clearTimeout(_)}},[l]),l?i.jsxs("div",{className:de(ut.w,w&&ut.v,c&&ut.s),children:[i.jsx("div",{className:ut.n}),r]}):""}const Pr=(r,o)=>{var a,l;o?(a=pt[r])==null||a.onOpen():(l=pt[r])==null||l.onClose()},or={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function $r({className:r,children:o,onScrollEnd:a,offset:l=100,isLoading:c,isScrollBar:p=!1}){const[w,y]=R.useState(c||!1);R.useEffect(()=>{y(c||!1)},[c]);let u={onScroll:x=>{const{scrollTop:_,scrollHeight:m,clientHeight:g}=x.currentTarget;_+g>=m-l&&!w&&(y(!0),a==null||a())}};return i.jsx("div",{...u,className:de(or.s,!p&&or.n,r),children:o})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Tr({children:r,className:o,position:a="center",title:l}){let c="";return a==="left"?c=gt.l:a==="right"&&(c=gt.r),i.jsxs("div",{className:de(gt.a,c,o),children:[r,l&&i.jsx("b",{children:l})]})}const F={state:[!1],listen:[],prev:{},router:r=>{r===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.state.length!==1&&F.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.listen.push(()=>{var a;let o=F.state.pop();F.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),be.BackButton.onClick(F.listen[0]))}},de=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");v.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.Location=o=>{if(fe.is)return o({latitude:55.752555,longitude:37.623123});let a=()=>{r.WebApp.LocationManager.getLocation(async l=>{if(!l){r.WebApp.LocationManager.isAccessRequested||r.WebApp.LocationManager.openSettings();return}o(l)})};!r.WebApp.LocationManager||!r.WebApp.LocationManager.isInited?r.WebApp.LocationManager.init(()=>{a()}):a()},r.Notice={Send:(o,a,l)=>{var c,p;a!==void 0?(me.Send({type:o,text:a,thema:l}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(o)):(me.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;me.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;me.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;me.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=yr,r.TabBar=Or,r.BottomSheet=tr,r.toggleBottomSheet=Be,r.SafeArea=kr,r.Loading=Sr,r.Sidebar=jr,r.SidePanel=Cr,r.AppBar=Tr,r.SidePanelController=Pr,r.Scroll=$r,r.Modal=dt,r.Menu=Rr,r.MainButton={callback:[],set:o=>{fe.is?fe.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),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 a;o.page===void 0?(a=o.callback)==null||a.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{F.prev&&(0,r.BackButton)(F.prev)},r.BackButtonState=()=>F.state,r.BackButton=o=>{fe.is?fe.BackButton.set(o):(F.state.push(o),F.router(o))}})(v.default||(v.default={}));const zr=v.default.TabBar,Br=tr,ht=v.default.BackButton,Nr=v.default.BackButtonPrev,nr=v.default.BackButtonState,Ir=v.default.Notice,Mr=v.default.SafeArea,Dr=v.default.Loading,Fr=v.default.Menu,Lr=v.default.SidePanel,Wr=v.default.Scroll,Ur=v.default.AppBar,qr=v.default.Sidebar,Vr=v.default.Location,Hr=v.default.SidePanelController,{Header:Jr,toggleBottomSheet:Kr,Modal:Gr,MainButton:Zr,WebApp:be,getUser:Xr}=v.default;v.AppBar=Ur,v.BackButton=ht,v.BackButtonPrev=Nr,v.BackButtonState=nr,v.BottomSheet=Br,v.Header=Jr,v.Loading=Dr,v.Location=Vr,v.MainButton=Zr,v.Menu=Fr,v.Modal=Gr,v.Notice=Ir,v.SafeArea=Mr,v.Scroll=Wr,v.SidePanel=Lr,v.SidePanelController=Hr,v.Sidebar=qr,v.TabBar=zr,v.WebApp=be,v.clsx=de,v.getUser=Xr,v.toggleBottomSheet=Kr,Object.defineProperties(v,{__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.121",
3
+ "version": "0.0.123",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",