@elcrm/telegram 0.0.112 → 0.0.113

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.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_1ay6z_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_1ay6z_1 .3s ease}._o_1ay6z_11._x_1ay6z_25{animation:_fadeOut_1ay6z_1 .3s ease}._p_1ay6z_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1ay6z_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-footer-height, 0px))}._p_1ay6z_29._x_1ay6z_25{animation:_slideDown_1ay6z_1 .3s ease}._p_1ay6z_29._m_1ay6z_46{--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_1ay6z_29._o_1ay6z_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_1ay6z_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1ay6z_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1ay6z_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1ay6z_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._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_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_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;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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_1y3m3_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-footer-height, 0px));margin:0 auto}._s_1y3m3_3._n_1y3m3_14{padding-left:7px;padding-right:7px}._s_1y3m3_3._n_1y3m3_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
+ @charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}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%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._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_1kcus_1){--tg-offset-bottom: 60px}._h_1kcus_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;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1kcus_1._row_1kcus_20{flex-direction:row}._h_1kcus_1._column_1kcus_23{flex-direction:column}._h_1kcus_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1kcus_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1kcus_1 ._badge_1kcus_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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}
package/dist/index.es.js CHANGED
@@ -16,11 +16,11 @@ function or() {
16
16
  Ut = 1;
17
17
  var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
18
18
  function k(m, u, R) {
19
- var h, b = {}, y = null, T = null;
20
- R !== void 0 && (y = "" + R), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && (T = u.ref);
19
+ var h, b = {}, g = null, T = null;
20
+ R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
21
21
  for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
22
22
  if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
23
- return { $$typeof: n, type: m, key: y, ref: T, props: b, _owner: l.current };
23
+ return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
24
24
  }
25
25
  return tt.Fragment = a, tt.jsx = k, tt.jsxs = k, tt;
26
26
  }
@@ -37,7 +37,7 @@ var rt = {};
37
37
  var Yt;
38
38
  function ar() {
39
39
  return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && function() {
40
- var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
40
+ var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
41
41
  function pe(e) {
42
42
  if (e === null || typeof e != "object")
43
43
  return null;
@@ -56,16 +56,16 @@ function ar() {
56
56
  {
57
57
  var s = W.ReactDebugCurrentFrame, v = s.getStackAddendum();
58
58
  v !== "" && (t += "%s", o = o.concat([v]));
59
- var g = o.map(function(d) {
59
+ var y = o.map(function(d) {
60
60
  return String(d);
61
61
  });
62
- g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
62
+ y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
63
63
  }
64
64
  }
65
65
  var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
66
66
  E = Symbol.for("react.module.reference");
67
67
  function B(e) {
68
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
68
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
@@ -115,10 +115,10 @@ function ar() {
115
115
  case b:
116
116
  var s = e.displayName || null;
117
117
  return s !== null ? s : $(e.type) || "Memo";
118
- case y: {
119
- var v = e, g = v._payload, d = v._init;
118
+ case g: {
119
+ var v = e, y = v._payload, d = v._init;
120
120
  try {
121
- return $(d(g));
121
+ return $(d(y));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -202,13 +202,13 @@ function ar() {
202
202
  ` + he + e;
203
203
  }
204
204
  }
205
- var ye = !1, ne;
205
+ var ge = !1, ne;
206
206
  {
207
207
  var dt = typeof WeakMap == "function" ? WeakMap : Map;
208
208
  ne = new dt();
209
209
  }
210
210
  function We(e, t) {
211
- if (!e || ye)
211
+ if (!e || ge)
212
212
  return "";
213
213
  {
214
214
  var o = ne.get(e);
@@ -216,11 +216,11 @@ function ar() {
216
216
  return o;
217
217
  }
218
218
  var s;
219
- ye = !0;
219
+ ge = !0;
220
220
  var v = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
- var g;
223
- g = ve.current, ve.current = null, ut();
222
+ var y;
223
+ y = ve.current, ve.current = null, ut();
224
224
  try {
225
225
  if (t) {
226
226
  var d = function() {
@@ -273,7 +273,7 @@ function ar() {
273
273
  }
274
274
  }
275
275
  } finally {
276
- ye = !1, ve.current = g, ft(), Error.prepareStackTrace = v;
276
+ ge = !1, ve.current = y, ft(), Error.prepareStackTrace = v;
277
277
  }
278
278
  var z = e ? e.displayName || e.name : "", L = z ? re(z) : "";
279
279
  return typeof e == "function" && ne.set(e, L), L;
@@ -304,10 +304,10 @@ function ar() {
304
304
  return pt(e.render);
305
305
  case b:
306
306
  return oe(e.type, t, o);
307
- case y: {
308
- var s = e, v = s._payload, g = s._init;
307
+ case g: {
308
+ var s = e, v = s._payload, y = s._init;
309
309
  try {
310
- return oe(g(v), t, o);
310
+ return oe(y(v), t, o);
311
311
  } catch {
312
312
  }
313
313
  }
@@ -324,9 +324,9 @@ function ar() {
324
324
  }
325
325
  function ht(e, t, o, s, v) {
326
326
  {
327
- var g = Function.call.bind(K);
327
+ var y = Function.call.bind(K);
328
328
  for (var d in e)
329
- if (g(e, d)) {
329
+ if (y(e, d)) {
330
330
  var f = void 0;
331
331
  try {
332
332
  if (typeof e[d] != "function") {
@@ -341,11 +341,11 @@ function ar() {
341
341
  }
342
342
  }
343
343
  }
344
- var yt = Array.isArray;
345
- function ge(e) {
346
- return yt(e);
344
+ var gt = Array.isArray;
345
+ function ye(e) {
346
+ return gt(e);
347
347
  }
348
- function gt(e) {
348
+ function yt(e) {
349
349
  {
350
350
  var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
351
351
  return o;
@@ -363,7 +363,7 @@ function ar() {
363
363
  }
364
364
  function Ve(e) {
365
365
  if (mt(e))
366
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Ye(e);
366
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), Ye(e);
367
367
  }
368
368
  var ze = W.ReactCurrentOwner, bt = {
369
369
  key: !0,
@@ -412,7 +412,7 @@ function ar() {
412
412
  });
413
413
  }
414
414
  }
415
- var Et = function(e, t, o, s, v, g, d) {
415
+ var Et = function(e, t, o, s, v, y, d) {
416
416
  var f = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: n,
@@ -422,7 +422,7 @@ function ar() {
422
422
  ref: o,
423
423
  props: d,
424
424
  // Record the component responsible for creating this element.
425
- _owner: g
425
+ _owner: y
426
426
  };
427
427
  return f._store = {}, Object.defineProperty(f._store, "validated", {
428
428
  configurable: !1,
@@ -443,14 +443,14 @@ function ar() {
443
443
  };
444
444
  function jt(e, t, o, s, v) {
445
445
  {
446
- var g, d = {}, f = null, O = null;
446
+ var y, d = {}, f = null, O = null;
447
447
  o !== void 0 && (Ve(o), f = "" + o), Rt(t) && (Ve(t.key), f = "" + t.key), _t(t) && (O = t.ref, St(t, v));
448
- for (g in t)
449
- K.call(t, g) && !bt.hasOwnProperty(g) && (d[g] = t[g]);
448
+ for (y in t)
449
+ K.call(t, y) && !bt.hasOwnProperty(y) && (d[y] = t[y]);
450
450
  if (e && e.defaultProps) {
451
451
  var S = e.defaultProps;
452
- for (g in S)
453
- d[g] === void 0 && (d[g] = S[g]);
452
+ for (y in S)
453
+ d[y] === void 0 && (d[y] = S[y]);
454
454
  }
455
455
  if (f || O) {
456
456
  var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -517,7 +517,7 @@ Check the top-level render call using <` + o + ">.");
517
517
  {
518
518
  if (typeof e != "object")
519
519
  return;
520
- if (ge(e))
520
+ if (ye(e))
521
521
  for (var o = 0; o < e.length; o++) {
522
522
  var s = e[o];
523
523
  _e(s) && Ze(s, t);
@@ -527,7 +527,7 @@ Check the top-level render call using <` + o + ">.");
527
527
  else if (e) {
528
528
  var v = pe(e);
529
529
  if (typeof v == "function" && v !== e.entries)
530
- for (var g = v.call(e), d; !(d = g.next()).done; )
530
+ for (var y = v.call(e), d; !(d = y.next()).done; )
531
531
  _e(d.value) && Ze(d.value, t);
532
532
  }
533
533
  }
@@ -570,7 +570,7 @@ Check the top-level render call using <` + o + ">.");
570
570
  }
571
571
  }
572
572
  var Qe = {};
573
- function et(e, t, o, s, v, g) {
573
+ function et(e, t, o, s, v, y) {
574
574
  {
575
575
  var d = B(e);
576
576
  if (!d) {
@@ -579,16 +579,16 @@ Check the top-level render call using <` + o + ">.");
579
579
  var O = Ot();
580
580
  O ? f += O : f += Ke();
581
581
  var S;
582
- e === null ? S = "null" : ge(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("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);
582
+ e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("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);
583
583
  }
584
- var x = jt(e, t, o, v, g);
584
+ var x = jt(e, t, o, v, y);
585
585
  if (x == null)
586
586
  return x;
587
587
  if (d) {
588
588
  var w = t.children;
589
589
  if (w !== void 0)
590
590
  if (s)
591
- if (ge(w)) {
591
+ if (ye(w)) {
592
592
  for (var z = 0; z < w.length; z++)
593
593
  Xe(w[z], e);
594
594
  Object.freeze && Object.freeze(w);
@@ -626,7 +626,7 @@ React keys must be passed directly to JSX without using spread:
626
626
  }
627
627
  process.env.NODE_ENV === "production" ? Ft.exports = or() : Ft.exports = ar();
628
628
  var i = Ft.exports;
629
- const sr = "_o_1ay6z_11", ir = "_x_1ay6z_25", lr = "_p_1ay6z_29", cr = "_m_1ay6z_46", Ae = {
629
+ const sr = "_o_1apbm_11", ir = "_x_1apbm_24", lr = "_p_1apbm_28", cr = "_m_1apbm_45", Ae = {
630
630
  o: sr,
631
631
  x: ir,
632
632
  p: lr,
@@ -641,15 +641,15 @@ var Wt;
641
641
  nameModal: R,
642
642
  offsetTop: h
643
643
  }) {
644
- const [b, y] = J(!1), [T, P] = J(!1);
644
+ const [b, g] = J(!1), [T, P] = J(!1);
645
645
  if (q[R].onClose = () => {
646
646
  N.BackButton(!1), P(!0), setTimeout(() => {
647
- y(!1), P(!1), u == null || u(), q.x(R);
647
+ g(!1), P(!1), u == null || u(), q.x(R);
648
648
  }, 300);
649
649
  }, fe(() => {
650
650
  b ? q[R].onClose() : (N.BackButton({
651
651
  callback: () => q[R].onClose()
652
- }), y(!0));
652
+ }), g(!0));
653
653
  }, []), !!b)
654
654
  return /* @__PURE__ */ i.jsx("div", { className: we(Ae.o, T && Ae.x), children: /* @__PURE__ */ i.jsx(
655
655
  "div",
@@ -695,15 +695,15 @@ var Wt;
695
695
  r.Add = c;
696
696
  function l(m, u = Date.now().toString(), R) {
697
697
  return q[u] = {}, {
698
- Open: (y) => {
698
+ Open: (g) => {
699
699
  r.Add(
700
700
  /* @__PURE__ */ i.jsx(
701
701
  m,
702
702
  {
703
- ...y,
703
+ ...g,
704
704
  onCallbackModal: (T) => {
705
705
  var P;
706
- (P = y.callback) == null || P.call(y, T);
706
+ (P = g.callback) == null || P.call(g, T);
707
707
  },
708
708
  nameModal: u
709
709
  },
@@ -845,16 +845,16 @@ var nt = {};
845
845
  * LICENSE file in the root directory of this source tree.
846
846
  */
847
847
  var zt;
848
- function yr() {
848
+ function gr() {
849
849
  if (zt) return nt;
850
850
  zt = 1;
851
851
  var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, l = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: !0, ref: !0, __self: !0, __source: !0 };
852
852
  function k(m, u, R) {
853
- var h, b = {}, y = null, T = null;
854
- R !== void 0 && (y = "" + R), u.key !== void 0 && (y = "" + u.key), u.ref !== void 0 && (T = u.ref);
853
+ var h, b = {}, g = null, T = null;
854
+ R !== void 0 && (g = "" + R), u.key !== void 0 && (g = "" + u.key), u.ref !== void 0 && (T = u.ref);
855
855
  for (h in u) c.call(u, h) && !p.hasOwnProperty(h) && (b[h] = u[h]);
856
856
  if (m && m.defaultProps) for (h in u = m.defaultProps, u) b[h] === void 0 && (b[h] = u[h]);
857
- return { $$typeof: n, type: m, key: y, ref: T, props: b, _owner: l.current };
857
+ return { $$typeof: n, type: m, key: g, ref: T, props: b, _owner: l.current };
858
858
  }
859
859
  return nt.Fragment = a, nt.jsx = k, nt.jsxs = k, nt;
860
860
  }
@@ -869,9 +869,9 @@ var at = {};
869
869
  * LICENSE file in the root directory of this source tree.
870
870
  */
871
871
  var qt;
872
- function gr() {
872
+ function yr() {
873
873
  return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
874
- var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
874
+ var r = F, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), m = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), P = Symbol.iterator, Te = "@@iterator";
875
875
  function pe(e) {
876
876
  if (e === null || typeof e != "object")
877
877
  return null;
@@ -890,16 +890,16 @@ function gr() {
890
890
  {
891
891
  var s = W.ReactDebugCurrentFrame, v = s.getStackAddendum();
892
892
  v !== "" && (t += "%s", o = o.concat([v]));
893
- var g = o.map(function(d) {
893
+ var y = o.map(function(d) {
894
894
  return String(d);
895
895
  });
896
- g.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, g);
896
+ y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
897
897
  }
898
898
  }
899
899
  var Ne = !1, Oe = !1, Be = !1, Ie = !1, _ = !1, E;
900
900
  E = Symbol.for("react.module.reference");
901
901
  function B(e) {
902
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
902
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === p || _ || e === l || e === R || e === h || Ie || e === T || Ne || Oe || Be || typeof e == "object" && e !== null && (e.$$typeof === g || e.$$typeof === b || e.$$typeof === k || e.$$typeof === m || e.$$typeof === u || // This needs to include all possible module reference object
903
903
  // types supported by any Flight configuration anywhere since
904
904
  // we don't know which Flight build this will end up being used
905
905
  // with.
@@ -949,10 +949,10 @@ function gr() {
949
949
  case b:
950
950
  var s = e.displayName || null;
951
951
  return s !== null ? s : $(e.type) || "Memo";
952
- case y: {
953
- var v = e, g = v._payload, d = v._init;
952
+ case g: {
953
+ var v = e, y = v._payload, d = v._init;
954
954
  try {
955
- return $(d(g));
955
+ return $(d(y));
956
956
  } catch {
957
957
  return null;
958
958
  }
@@ -1036,13 +1036,13 @@ function gr() {
1036
1036
  ` + he + e;
1037
1037
  }
1038
1038
  }
1039
- var ye = !1, ne;
1039
+ var ge = !1, ne;
1040
1040
  {
1041
1041
  var dt = typeof WeakMap == "function" ? WeakMap : Map;
1042
1042
  ne = new dt();
1043
1043
  }
1044
1044
  function We(e, t) {
1045
- if (!e || ye)
1045
+ if (!e || ge)
1046
1046
  return "";
1047
1047
  {
1048
1048
  var o = ne.get(e);
@@ -1050,11 +1050,11 @@ function gr() {
1050
1050
  return o;
1051
1051
  }
1052
1052
  var s;
1053
- ye = !0;
1053
+ ge = !0;
1054
1054
  var v = Error.prepareStackTrace;
1055
1055
  Error.prepareStackTrace = void 0;
1056
- var g;
1057
- g = ve.current, ve.current = null, ut();
1056
+ var y;
1057
+ y = ve.current, ve.current = null, ut();
1058
1058
  try {
1059
1059
  if (t) {
1060
1060
  var d = function() {
@@ -1107,7 +1107,7 @@ function gr() {
1107
1107
  }
1108
1108
  }
1109
1109
  } finally {
1110
- ye = !1, ve.current = g, ft(), Error.prepareStackTrace = v;
1110
+ ge = !1, ve.current = y, ft(), Error.prepareStackTrace = v;
1111
1111
  }
1112
1112
  var z = e ? e.displayName || e.name : "", L = z ? re(z) : "";
1113
1113
  return typeof e == "function" && ne.set(e, L), L;
@@ -1138,10 +1138,10 @@ function gr() {
1138
1138
  return pt(e.render);
1139
1139
  case b:
1140
1140
  return oe(e.type, t, o);
1141
- case y: {
1142
- var s = e, v = s._payload, g = s._init;
1141
+ case g: {
1142
+ var s = e, v = s._payload, y = s._init;
1143
1143
  try {
1144
- return oe(g(v), t, o);
1144
+ return oe(y(v), t, o);
1145
1145
  } catch {
1146
1146
  }
1147
1147
  }
@@ -1158,9 +1158,9 @@ function gr() {
1158
1158
  }
1159
1159
  function ht(e, t, o, s, v) {
1160
1160
  {
1161
- var g = Function.call.bind(K);
1161
+ var y = Function.call.bind(K);
1162
1162
  for (var d in e)
1163
- if (g(e, d)) {
1163
+ if (y(e, d)) {
1164
1164
  var f = void 0;
1165
1165
  try {
1166
1166
  if (typeof e[d] != "function") {
@@ -1175,11 +1175,11 @@ function gr() {
1175
1175
  }
1176
1176
  }
1177
1177
  }
1178
- var yt = Array.isArray;
1179
- function ge(e) {
1180
- return yt(e);
1178
+ var gt = Array.isArray;
1179
+ function ye(e) {
1180
+ return gt(e);
1181
1181
  }
1182
- function gt(e) {
1182
+ function yt(e) {
1183
1183
  {
1184
1184
  var t = typeof Symbol == "function" && Symbol.toStringTag, o = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
1185
1185
  return o;
@@ -1197,7 +1197,7 @@ function gr() {
1197
1197
  }
1198
1198
  function Ve(e) {
1199
1199
  if (mt(e))
1200
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gt(e)), Ye(e);
1200
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yt(e)), Ye(e);
1201
1201
  }
1202
1202
  var ze = W.ReactCurrentOwner, bt = {
1203
1203
  key: !0,
@@ -1246,7 +1246,7 @@ function gr() {
1246
1246
  });
1247
1247
  }
1248
1248
  }
1249
- var Et = function(e, t, o, s, v, g, d) {
1249
+ var Et = function(e, t, o, s, v, y, d) {
1250
1250
  var f = {
1251
1251
  // This tag allows us to uniquely identify this as a React Element
1252
1252
  $$typeof: n,
@@ -1256,7 +1256,7 @@ function gr() {
1256
1256
  ref: o,
1257
1257
  props: d,
1258
1258
  // Record the component responsible for creating this element.
1259
- _owner: g
1259
+ _owner: y
1260
1260
  };
1261
1261
  return f._store = {}, Object.defineProperty(f._store, "validated", {
1262
1262
  configurable: !1,
@@ -1277,14 +1277,14 @@ function gr() {
1277
1277
  };
1278
1278
  function jt(e, t, o, s, v) {
1279
1279
  {
1280
- var g, d = {}, f = null, O = null;
1280
+ var y, d = {}, f = null, O = null;
1281
1281
  o !== void 0 && (Ve(o), f = "" + o), Rt(t) && (Ve(t.key), f = "" + t.key), _t(t) && (O = t.ref, St(t));
1282
- for (g in t)
1283
- K.call(t, g) && !bt.hasOwnProperty(g) && (d[g] = t[g]);
1282
+ for (y in t)
1283
+ K.call(t, y) && !bt.hasOwnProperty(y) && (d[y] = t[y]);
1284
1284
  if (e && e.defaultProps) {
1285
1285
  var S = e.defaultProps;
1286
- for (g in S)
1287
- d[g] === void 0 && (d[g] = S[g]);
1286
+ for (y in S)
1287
+ d[y] === void 0 && (d[y] = S[y]);
1288
1288
  }
1289
1289
  if (f || O) {
1290
1290
  var x = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
@@ -1351,7 +1351,7 @@ Check the top-level render call using <` + o + ">.");
1351
1351
  {
1352
1352
  if (typeof e != "object")
1353
1353
  return;
1354
- if (ge(e))
1354
+ if (ye(e))
1355
1355
  for (var o = 0; o < e.length; o++) {
1356
1356
  var s = e[o];
1357
1357
  _e(s) && Ze(s, t);
@@ -1361,7 +1361,7 @@ Check the top-level render call using <` + o + ">.");
1361
1361
  else if (e) {
1362
1362
  var v = pe(e);
1363
1363
  if (typeof v == "function" && v !== e.entries)
1364
- for (var g = v.call(e), d; !(d = g.next()).done; )
1364
+ for (var y = v.call(e), d; !(d = y.next()).done; )
1365
1365
  _e(d.value) && Ze(d.value, t);
1366
1366
  }
1367
1367
  }
@@ -1404,7 +1404,7 @@ Check the top-level render call using <` + o + ">.");
1404
1404
  }
1405
1405
  }
1406
1406
  var Qe = {};
1407
- function et(e, t, o, s, v, g) {
1407
+ function et(e, t, o, s, v, y) {
1408
1408
  {
1409
1409
  var d = B(e);
1410
1410
  if (!d) {
@@ -1413,16 +1413,16 @@ Check the top-level render call using <` + o + ">.");
1413
1413
  var O = Ot();
1414
1414
  O ? f += O : f += Ke();
1415
1415
  var S;
1416
- e === null ? S = "null" : ge(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("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);
1416
+ e === null ? S = "null" : ye(e) ? S = "array" : e !== void 0 && e.$$typeof === n ? (S = "<" + ($(e.type) || "Unknown") + " />", f = " Did you accidentally export a JSX literal instead of a component?") : S = typeof e, j("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);
1417
1417
  }
1418
- var x = jt(e, t, o, v, g);
1418
+ var x = jt(e, t, o, v, y);
1419
1419
  if (x == null)
1420
1420
  return x;
1421
1421
  if (d) {
1422
1422
  var w = t.children;
1423
1423
  if (w !== void 0)
1424
1424
  if (s)
1425
- if (ge(w)) {
1425
+ if (ye(w)) {
1426
1426
  for (var z = 0; z < w.length; z++)
1427
1427
  Xe(w[z], e);
1428
1428
  Object.freeze && Object.freeze(w);
@@ -1458,7 +1458,7 @@ React keys must be passed directly to JSX without using spread:
1458
1458
  at.Fragment = c, at.jsx = $t, at.jsxs = Nt;
1459
1459
  }()), at;
1460
1460
  }
1461
- process.env.NODE_ENV === "production" ? yr() : gr();
1461
+ process.env.NODE_ENV === "production" ? gr() : yr();
1462
1462
  const mr = "0.0.40", tr = {
1463
1463
  version: mr
1464
1464
  }, se = {}, H = {
@@ -1608,10 +1608,10 @@ var de;
1608
1608
  return A().module || "";
1609
1609
  }
1610
1610
  r.getModule = b;
1611
- function y(_) {
1611
+ function g(_) {
1612
1612
  return A().module === _;
1613
1613
  }
1614
- r.isModule = y;
1614
+ r.isModule = g;
1615
1615
  function T(_, E) {
1616
1616
  if (typeof _ != "function") {
1617
1617
  const [B, M] = F.useState(!E), [I, $] = F.useState(_ || pe());
@@ -1805,20 +1805,20 @@ const Sr = () => {
1805
1805
  let [r, n] = J(!1), [a, c] = J(!1), [l, p] = J("dark"), [k, m] = J(!1), [u, R] = J(!1);
1806
1806
  Ee.is = !0, Ee.MainButton.set = n, Ee.BackButton.set = c, fe(() => {
1807
1807
  G[l]["--tg-theme-bg-color-alpha"] = G[l]["--tg-theme-bg-color"] + "b3", G[l]["--tg-theme-secondary-bg-color-alpha"] = G[l]["--tg-theme-secondary-bg-color"] + "d3";
1808
- for (let y in G[l])
1808
+ for (let g in G[l])
1809
1809
  document.documentElement.style.setProperty(
1810
- y,
1811
- G[l][y]
1810
+ g,
1811
+ G[l][g]
1812
1812
  );
1813
1813
  Pe.safeAreaInset.bottom === 0 && document.documentElement.style.setProperty(
1814
1814
  "--tg-safe-area-inset-bottom",
1815
1815
  "16px"
1816
1816
  );
1817
1817
  }, []);
1818
- let h = (y) => {
1819
- for (let T in G[y])
1820
- document.documentElement.style.setProperty(T, G[y][T]);
1821
- p(y), m(!1);
1818
+ let h = (g) => {
1819
+ for (let T in G[g])
1820
+ document.documentElement.style.setProperty(T, G[g][T]);
1821
+ p(g), m(!1);
1822
1822
  }, b = () => {
1823
1823
  m(!1), R(!0);
1824
1824
  };
@@ -1828,8 +1828,8 @@ const Sr = () => {
1828
1828
  "div",
1829
1829
  {
1830
1830
  onClick: () => {
1831
- var y;
1832
- a.page === void 0 ? (y = a.callback) == null || y.call(a) : de.setPage(a.page);
1831
+ var g;
1832
+ a.page === void 0 ? (g = a.callback) == null || g.call(a) : de.setPage(a.page);
1833
1833
  },
1834
1834
  className: "b",
1835
1835
  children: "Назад"
@@ -1905,7 +1905,7 @@ const Sr = () => {
1905
1905
  /* @__PURE__ */ i.jsx("fieldset", {}),
1906
1906
  /* @__PURE__ */ i.jsx("div", { onClick: a, children: " Сохранить " })
1907
1907
  ] }) });
1908
- }, xr = "_p_12hh1_1", Er = "_s_12hh1_17", Ht = {
1908
+ }, xr = "_p_1axqy_1", Er = "_s_1axqy_17", Ht = {
1909
1909
  p: xr,
1910
1910
  s: Er
1911
1911
  }, jr = ({ className: r, children: n, isScroll: a = !0 }) => /* @__PURE__ */ i.jsx(
@@ -1984,9 +1984,9 @@ function qr({
1984
1984
  null
1985
1985
  );
1986
1986
  fe(() => {
1987
- let y = document.querySelector(".p_sb");
1988
- return y || (y = document.createElement("div"), y.className = "_p_sb", document.body.appendChild(y)), h(y), () => {
1989
- y && y.parentNode && y.parentNode.removeChild(y);
1987
+ let g = document.querySelector(".p_sb");
1988
+ return g || (g = document.createElement("div"), g.className = "_p_sb", document.body.appendChild(g)), h(g), () => {
1989
+ g && g.parentNode && g.parentNode.removeChild(g);
1990
1990
  };
1991
1991
  }, []);
1992
1992
  const b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
@@ -2086,7 +2086,7 @@ const rr = ({
2086
2086
  )
2087
2087
  }
2088
2088
  );
2089
- }, Hr = "_h_1ffr7_1", Jr = "_row_1ffr7_20", Kr = "_column_1ffr7_23", Gr = "_badge_1ffr7_36", Mt = {
2089
+ }, Hr = "_h_1kcus_1", Jr = "_row_1kcus_20", Kr = "_column_1kcus_23", Gr = "_badge_1kcus_36", Mt = {
2090
2090
  h: Hr,
2091
2091
  row: Jr,
2092
2092
  column: Kr,
@@ -2108,7 +2108,7 @@ const rr = ({
2108
2108
  }, fe(() => {
2109
2109
  if (!c)
2110
2110
  return;
2111
- const b = document.querySelectorAll("[contenteditable]"), y = () => {
2111
+ const b = document.querySelectorAll("[contenteditable]"), g = () => {
2112
2112
  const P = document.querySelector("footer");
2113
2113
  P && (P.style.display = "flex");
2114
2114
  }, T = () => {
@@ -2116,10 +2116,10 @@ const rr = ({
2116
2116
  P && (P.style.display = "none");
2117
2117
  };
2118
2118
  return b.forEach((P) => {
2119
- P.addEventListener("focus", T, !0), P.addEventListener("blur", y, !0);
2119
+ P.addEventListener("focus", T, !0), P.addEventListener("blur", g, !0);
2120
2120
  }), () => {
2121
2121
  b.forEach((P) => {
2122
- P.removeEventListener("focus", T, !0), P.removeEventListener("blur", y, !0);
2122
+ P.removeEventListener("focus", T, !0), P.removeEventListener("blur", g, !0);
2123
2123
  });
2124
2124
  };
2125
2125
  }, []), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
@@ -2130,19 +2130,19 @@ const rr = ({
2130
2130
  className: `${Mt.h} ${Mt[k]} ${a} `,
2131
2131
  children: [
2132
2132
  n,
2133
- r && r.map((b, y) => /* @__PURE__ */ i.jsxs(
2133
+ r && r.map((b, g) => /* @__PURE__ */ i.jsxs(
2134
2134
  "div",
2135
2135
  {
2136
- "data-active": R === y ? "true" : "false",
2136
+ "data-active": R === g ? "true" : "false",
2137
2137
  onClick: () => {
2138
- b.page && (h(y), p == null || p(b.page)), b.callback && (b.callback(), h(y)), b.component && (R === y ? ot() : (u(b.component), h(y)));
2138
+ b.page && (h(g), p == null || p(b.page)), b.callback && (b.callback(), h(g)), b.component && (R === g ? ot() : (u(b.component), h(g)));
2139
2139
  },
2140
2140
  children: [
2141
2141
  b.icon,
2142
2142
  b.badge && /* @__PURE__ */ i.jsx("div", { className: Mt.badge, children: b.badge })
2143
2143
  ]
2144
2144
  },
2145
- y
2145
+ g
2146
2146
  ))
2147
2147
  ]
2148
2148
  }
@@ -2202,7 +2202,7 @@ function rn({
2202
2202
  const nn = (r, n) => {
2203
2203
  var a, c;
2204
2204
  n ? (a = Lt[r]) == null || a.onOpen() : (c = Lt[r]) == null || c.onClose();
2205
- }, on = "_s_1y3m3_3", an = "_n_1y3m3_14", Kt = {
2205
+ }, on = "_s_ezoxx_3", an = "_n_ezoxx_14", Kt = {
2206
2206
  s: on,
2207
2207
  n: an
2208
2208
  };
@@ -2220,8 +2220,8 @@ function sn({
2220
2220
  }, [l]);
2221
2221
  let u = {
2222
2222
  onScroll: (R) => {
2223
- const { scrollTop: h, scrollHeight: b, clientHeight: y } = R.currentTarget;
2224
- h + y >= b - c && !k && (m(!0), a == null || a());
2223
+ const { scrollTop: h, scrollHeight: b, clientHeight: g } = R.currentTarget;
2224
+ h + g >= b - c && !k && (m(!0), a == null || a());
2225
2225
  }
2226
2226
  };
2227
2227
  return /* @__PURE__ */ i.jsx(
@@ -2302,13 +2302,13 @@ var N;
2302
2302
  Ee.is ? Ee.BackButton.set(n) : (U.state.push(n), U.router(n));
2303
2303
  };
2304
2304
  })(N || (N = {}));
2305
- const hn = N.TabBar, yn = rr, Gt = N.BackButton, gn = N.BackButtonPrev, dn = N.BackButtonState, mn = N.Notice, bn = N.SafeArea, _n = N.Loading, Rn = N.Menu, Sn = N.SidePanel, kn = N.Scroll, xn = N.AppBar, En = N.Sidebar, jn = N.SidePanelController, { Header: On, toggleBottomSheet: An, Modal: Cn, MainButton: Pn, WebApp: Pe, getUser: wn } = N;
2305
+ const hn = N.TabBar, gn = rr, Gt = N.BackButton, yn = N.BackButtonPrev, dn = N.BackButtonState, mn = N.Notice, bn = N.SafeArea, _n = N.Loading, Rn = N.Menu, Sn = N.SidePanel, kn = N.Scroll, xn = N.AppBar, En = N.Sidebar, jn = N.SidePanelController, { Header: On, toggleBottomSheet: An, Modal: Cn, MainButton: Pn, WebApp: Pe, getUser: wn } = N;
2306
2306
  export {
2307
2307
  xn as AppBar,
2308
2308
  Gt as BackButton,
2309
- gn as BackButtonPrev,
2309
+ yn as BackButtonPrev,
2310
2310
  dn as BackButtonState,
2311
- yn as BottomSheet,
2311
+ gn as BottomSheet,
2312
2312
  On as Header,
2313
2313
  _n as Loading,
2314
2314
  Pn as MainButton,
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(b,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(b=typeof globalThis<"u"?globalThis:b||self,w((b.elCRM=b.elCRM||{},b.elCRM.components={}),b.React,b.ReactDOM))})(this,function(b,w,or){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-footer-height, 60px) )}._o_1ay6z_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:_fadeIn_1ay6z_1 .3s ease}._o_1ay6z_11._x_1ay6z_25{animation:_fadeOut_1ay6z_1 .3s ease}._p_1ay6z_29{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1ay6z_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-footer-height, 0px))}._p_1ay6z_29._x_1ay6z_25{animation:_slideDown_1ay6z_1 .3s ease}._p_1ay6z_29._m_1ay6z_46{--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_1ay6z_29._o_1ay6z_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_1ay6z_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1ay6z_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1ay6z_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1ay6z_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._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_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_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;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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_1y3m3_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-footer-height, 0px));margin:0 auto}._s_1y3m3_3._n_1y3m3_14{padding-left:7px;padding-right:7px}._s_1y3m3_3._n_1y3m3_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(b,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):(b=typeof globalThis<"u"?globalThis:b||self,R((b.elCRM=b.elCRM||{},b.elCRM.components={}),b.React,b.ReactDOM))})(this,function(b,R,nr){"use strict";var Wt=document.createElement("style");Wt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}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%)}}.notice{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._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_1kcus_1){--tg-offset-bottom: 60px}._h_1kcus_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;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1kcus_1._row_1kcus_20{flex-direction:row}._h_1kcus_1._column_1kcus_23{flex-direction:column}._h_1kcus_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1kcus_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1kcus_1 ._badge_1kcus_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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(Wt);var lt={exports:{}},Ce={};/**
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 Ut;function nr(){if(Ut)return Ce;Ut=1;var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(y,f,k){var h,_={},m=null,B=null;k!==void 0&&(m=""+k),f.key!==void 0&&(m=""+f.key),f.ref!==void 0&&(B=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(_[h]=f[h]);if(y&&y.defaultProps)for(h in f=y.defaultProps,f)_[h]===void 0&&(_[h]=f[h]);return{$$typeof:o,type:y,key:m,ref:B,props:_,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=R,Ce.jsxs=R,Ce}var Pe={};/**
10
+ */var Ut;function or(){if(Ut)return Ce;Ut=1;var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(_,u,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(B=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=w,Ce.jsxs=w,Ce}var Pe={};/**
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 Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];Ne("error",e,n)}}function Ne(e,t,n){{var i=W.ReactDebugCurrentFrame,g=i.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 Ie=!1,Ae=!1,ze=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||Me||e===B||Ie||Ae||ze||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===_||e.$$typeof===R||e.$$typeof===y||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function M(e,t,n){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function z(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return z(t)+".Consumer";case R:var n=e;return z(n._context)+".Provider";case f:return M(e,e.render,"ForwardRef");case _:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var D=Object.assign,L=0,fe,X,Y,Q,ee,De,Fe;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:fe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:De}),groupEnd:D({},e,{value:Fe})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=W.ReactCurrentDispatcher,_e;function ne(e,t,n){{if(_e===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);_e=i&&i[1]||""}return`
19
- `+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var n=ae.get(e);if(n!==void 0)return n}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.current=null,gt();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){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var u=P.stack.split(`
18
+ */var Lt;function ar(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=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"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var v=o.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case w:var o=e;return M(o._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,ue,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
19
+ `+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=_e.current,_e.current=null,gt();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){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
20
20
  `),C=i.stack.split(`
21
- `),S=u.length-1,E=C.length-1;S>=1&&E>=0&&u[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(u[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||u[S]!==C[E]){var $=`
22
- `+u[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,ye.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?ne(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,n){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(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 f:return vt(e.render);case _:return ie(e.type,t,n);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}function yt(e,t,n,i,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"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}u=e[d](t,d,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){u=S}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",n,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",n,u.message),se(null))}}}var _t=Array.isArray;function ke(e){return _t(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function wt(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 Rt(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 Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var n=function(){Ke||(Ke=!0,O("%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 Ot(e,t){{var n=function(){Ge||(Ge=!0,O("%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 At=function(e,t,n,i,g,v,d){var u={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,n,i,g){{var v,d={},u=null,C=null;n!==void 0&&(He(n),u=""+n),Rt(t)&&(He(t.key),u=""+t.key),wt(t)&&(C=t.ref,Et(t,g));for(v in t)G.call(t,v)&&!St.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(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(n)}else Ze.setExtraStackFrame(null)}var we;we=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
21
+ `),S=f.length-1,E=C.length-1;S>=1&&E>=0&&f[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(f[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||f[S]!==C[E]){var $=`
22
+ `+f[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,_e.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,o){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return vt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},qe=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}function _t(e,t,o,i,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((i||"React class")+": "+o+" 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,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",o,f.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),Ve(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Rt(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 wt(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 Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,v,d){var f={$$typeof:n,type:e,key:t,ref:o,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:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ct(e,t,o,i,g){{var v,d={},f=null,C=null;o!==void 0&&(He(o),f=""+o),wt(t)&&(He(t.key),f=""+t.key),Rt(t)&&(C=t.ref,Et(t,g));for(v in t)G.call(t,v)&&!St.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 E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&jt(d,E),C&&Ot(d,E)}return At(e,f,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Re;Re=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
25
25
 
26
- Check the top-level render call using <`+n+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Tt(t);if(Ye[n])return;Ye[n]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var n=0;n<e.length;n++){var i=e[n];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(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===f||t.$$typeof===_))n=t.propTypes;else return;if(n){var i=N(t);yt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,n,i,g,v){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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=Pt();C?u+=C:u+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,u)}var E=Ct(e,t,n,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("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 et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(Ft){return Ft!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Dt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),V(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];we(i)&&Qe(i,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Re){Re=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var tt={};function rt(e,t,o,i,g,v){{var d=I(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=Pt();C?f+=C:f+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===n?(S="<"+(N(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("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 E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("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 et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`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} />`,Ee,U,Dt,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,n){return rt(e,t,n,!0)}function It(e,t,n){return rt(e,t,n,!1)}var zt=It,Mt=Nt;Pe.Fragment=c,Pe.jsx=zt,Pe.jsxs=Mt}()),Pe}process.env.NODE_ENV==="production"?lt.exports=nr():lt.exports=ar();var s=lt.exports;const je={o:"_o_1ay6z_11",x:"_x_1ay6z_25",p:"_p_1ay6z_29",m:"_m_1ay6z_46"};let V={};var ct;(r=>{function o({children:y,onCallbackModal:f,nameModal:k,offsetTop:h}){const[_,m]=w.useState(!1),[B,T]=w.useState(!1);if(V[k].onClose=()=>{b.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),f==null||f(),V.x(k)},300)},w.useEffect(()=>{_?V[k].onClose():(b.default.BackButton({callback:()=>V[k].onClose()}),m(!0))},[]),!!_)return s.jsx("div",{className:me(je.o,B&&je.x),children:s.jsx("div",{className:me(je.p,B&&je.x,h?je.o:je.m),children:y})})}r.Content=o;function a({import_modules:y}){let[f,k]=w.useState([]);return V.x=h=>{k(h?f.filter(_=>_.key!==h):[])},w.useEffect(()=>{y&&(V.i=y)},[]),V.add=(h,_=Date.now())=>{k([...f,{key:_,item:h}])},s.jsx(s.Fragment,{children:f.map(h=>h.item)})}r.Init=a;function c(y,f,k){V.add(s.jsx(o,{onCallbackModal:V["callback_modal"+f],nameModal:f||"",offsetTop:k,children:y},String(Date.now())),f)}r.Add=c;function l(y,f=Date.now().toString(),k){return V[f]={},{Open:m=>{r.Add(s.jsx(y,{...m,onCallbackModal:B=>{var T;(T=m.callback)==null||T.call(m,B)},nameModal:f},new Date().getTime()),f,k===void 0?!0:k)}}}r.Create=l;function p(y){V[y].onClose()}r.Close=p;function R(y,f,k,h){V.i&&(h&&(k.callback=h),V.i(`${y}/modals/${f}.tsx`).then(_=>{_.default.Open(k)}))}r.Open=R})(ct||(ct={}));function Vt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const qt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ht(r){const o=Vt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...qt,...r}}function ot(){return Vt().CRYPTO_PARAMS||qt}const nt=r=>{let o=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);o=(o<<5)-o+l,o=o&o}o=Math.abs(o);let a="";for(let c=0;c<64;c++){const l=(o^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Jt=(r,o)=>{let a=r+o;for(let l=0;l<ot().iterations;l++)a=nt(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Kt=(r,o)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%o.length;l=o[R]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ir=r=>new TextEncoder().encode(r),sr=r=>new TextDecoder().decode(r),lr=r=>{let o="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(c))}return btoa(o)},cr=r=>{const o=atob(r),a=new Uint8Array(o.length);for(let c=0;c<o.length;c++)a[c]=o.charCodeAt(c);return a},fr=r=>{try{const o=nt(Date.now().toString()+Math.random()).substring(0,ot().saltLength*2),a=nt(r+o).substring(0,8),c=Jt(ot().key,o),l=ir(r),p=Kt(l,c),R=lr(p);return`${o}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},ur=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],c=o[1],l=o[2],p=Jt(ot().key,a),R=cr(c),y=Kt(R,p),f=sr(y);if(nt(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=o=>{Ht({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return fr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=ur(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Ht({iterations:o,saltLength:a})}})(le||(le={}));var Te={};/**
31
+ <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;Pe.Fragment=c,Pe.jsx=Mt,Pe.jsxs=Dt}()),Pe}process.env.NODE_ENV==="production"?lt.exports=or():lt.exports=ar();var s=lt.exports;const je={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var ct;(r=>{function n({children:_,onCallbackModal:u,nameModal:k,offsetTop:h}){const[y,m]=R.useState(!1),[B,T]=R.useState(!1);if(q[k].onClose=()=>{b.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),u==null||u(),q.x(k)},300)},R.useEffect(()=>{y?q[k].onClose():(b.default.BackButton({callback:()=>q[k].onClose()}),m(!0))},[]),!!y)return s.jsx("div",{className:me(je.o,B&&je.x),children:s.jsx("div",{className:me(je.p,B&&je.x,h?je.o:je.m),children:_})})}r.Content=n;function a({import_modules:_}){let[u,k]=R.useState([]);return q.x=h=>{k(h?u.filter(y=>y.key!==h):[])},R.useEffect(()=>{_&&(q.i=_)},[]),q.add=(h,y=Date.now())=>{k([...u,{key:y,item:h}])},s.jsx(s.Fragment,{children:u.map(h=>h.item)})}r.Init=a;function c(_,u,k){q.add(s.jsx(n,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:k,children:_},String(Date.now())),u)}r.Add=c;function l(_,u=Date.now().toString(),k){return q[u]={},{Open:m=>{r.Add(s.jsx(_,{...m,onCallbackModal:B=>{var T;(T=m.callback)==null||T.call(m,B)},nameModal:u},new Date().getTime()),u,k===void 0?!0:k)}}}r.Create=l;function p(_){q[_].onClose()}r.Close=p;function w(_,u,k,h){q.i&&(h&&(k.callback=h),q.i(`${_}/modals/${u}.tsx`).then(y=>{y.default.Open(k)}))}r.Open=w})(ct||(ct={}));function qt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Vt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Ht(r){const n=qt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Vt,...r}}function nt(){return qt().CRYPTO_PARAMS||Vt}const ot=r=>{let n=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let c=0;c<64;c++){const l=(n^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Jt=(r,n)=>{let a=r+n;for(let l=0;l<nt().iterations;l++)a=ot(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Kt=(r,n)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const w=p%n.length;l=n[w]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ir=r=>new TextEncoder().encode(r),sr=r=>new TextDecoder().decode(r),lr=r=>{let n="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},cr=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let c=0;c<n.length;c++)a[c]=n.charCodeAt(c);return a},ur=r=>{try{const n=ot(Date.now().toString()+Math.random()).substring(0,nt().saltLength*2),a=ot(r+n).substring(0,8),c=Jt(nt().key,n),l=ir(r),p=Kt(l,c),w=lr(p);return`${n}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},fr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],c=n[1],l=n[2],p=Jt(nt().key,a),w=cr(c),_=Kt(w,p),u=sr(_);if(ot(u+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=n=>{Ht({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return ur(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=fr(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{Ht({iterations:n,saltLength:a})}})(le||(le={}));var Te={};/**
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 Gt;function dr(){if(Gt)return Te;Gt=1;var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(y,f,k){var h,_={},m=null,B=null;k!==void 0&&(m=""+k),f.key!==void 0&&(m=""+f.key),f.ref!==void 0&&(B=f.ref);for(h in f)c.call(f,h)&&!p.hasOwnProperty(h)&&(_[h]=f[h]);if(y&&y.defaultProps)for(h in f=y.defaultProps,f)_[h]===void 0&&(_[h]=f[h]);return{$$typeof:o,type:y,key:m,ref:B,props:_,_owner:l.current}}return Te.Fragment=a,Te.jsx=R,Te.jsxs=R,Te}var at={};/**
39
+ */var Gt;function dr(){if(Gt)return Te;Gt=1;var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function w(_,u,k){var h,y={},m=null,B=null;k!==void 0&&(m=""+k),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(B=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(y[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)y[h]===void 0&&(y[h]=u[h]);return{$$typeof:n,type:_,key:m,ref:B,props:y,_owner:l.current}}return Te.Fragment=a,Te.jsx=w,Te.jsxs=w,Te}var at={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),y=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];Ne("error",e,n)}}function Ne(e,t,n){{var i=W.ReactDebugCurrentFrame,g=i.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 Ie=!1,Ae=!1,ze=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||Me||e===B||Ie||Ae||ze||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===_||e.$$typeof===R||e.$$typeof===y||e.$$typeof===f||e.$$typeof===j||e.getModuleId!==void 0))}function M(e,t,n){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function z(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return z(t)+".Consumer";case R:var n=e;return z(n._context)+".Provider";case f:return M(e,e.render,"ForwardRef");case _:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var D=Object.assign,L=0,fe,X,Y,Q,ee,De,Fe;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){fe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:fe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:De}),groupEnd:D({},e,{value:Fe})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=W.ReactCurrentDispatcher,_e;function ne(e,t,n){{if(_e===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);_e=i&&i[1]||""}return`
48
- `+_e+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var n=ae.get(e);if(n!==void 0)return n}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=ye.current,ye.current=null,gt();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){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var u=P.stack.split(`
47
+ */var Zt;function pr(){return Zt||(Zt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=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"),m=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),T=Symbol.iterator,Be="@@iterator";function be(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[Be];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Ne("error",e,o)}}function Ne(e,t,o){{var i=W.ReactDebugCurrentFrame,g=i.getStackAddendum();g!==""&&(t+="%s",o=o.concat([g]));var v=o.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ie=!1,Ae=!1,Me=!1,De=!1,x=!1,j;j=Symbol.for("react.module.reference");function I(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===k||e===h||De||e===B||Ie||Ae||Me||typeof e=="object"&&e!==null&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===w||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var g=t.displayName||t.name||"";return g!==""?o+"("+g+")":o}function M(e){return e.displayName||"Context"}function N(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case k:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return M(t)+".Consumer";case w:var o=e;return M(o._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case y:var i=e.displayName||null;return i!==null?i:N(e.type)||"Memo";case m:{var g=e,v=g._payload,d=g._init;try{return N(d(v))}catch{return null}}}return null}var F=Object.assign,L=0,ue,X,Y,Q,ee,Fe,ze;function We(){}We.__reactDisabledLog=!0;function gt(){{if(L===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Fe=console.groupCollapsed,ze=console.groupEnd;var e={configurable:!0,enumerable:!0,value:We,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}L++}}function ht(){{if(L--,L===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Fe}),groupEnd:F({},e,{value:ze})})}L<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=W.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(g){var i=g.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
48
+ `+ye+e}}var xe=!1,ae;{var mt=typeof WeakMap=="function"?WeakMap:Map;ae=new mt}function Ue(e,t){if(!e||xe)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;xe=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=_e.current,_e.current=null,gt();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){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
49
49
  `),C=i.stack.split(`
50
- `),S=u.length-1,E=C.length-1;S>=1&&E>=0&&u[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(u[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||u[S]!==C[E]){var $=`
51
- `+u[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,ye.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?ne(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,n){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(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 f:return vt(e.render);case _:return ie(e.type,t,n);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ve=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ve.setExtraStackFrame(n)}else Ve.setExtraStackFrame(null)}function yt(e,t,n,i,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"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}u=e[d](t,d,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){u=S}u&&!(u instanceof Error)&&(se(g),O("%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).",i||"React class",n,d,typeof u),se(null)),u instanceof Error&&!(u.message in Le)&&(Le[u.message]=!0,se(g),O("Failed %s type: %s",n,u.message),se(null))}}}var _t=Array.isArray;function ke(e){return _t(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function kt(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),qe(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function wt(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 Rt(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 Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var n=function(){Ke||(Ke=!0,O("%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 Ot(e,t){{var n=function(){Ge||(Ge=!0,O("%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 At=function(e,t,n,i,g,v,d){var u={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function Ct(e,t,n,i,g){{var v,d={},u=null,C=null;n!==void 0&&(He(n),u=""+n),Rt(t)&&(He(t.key),u=""+t.key),wt(t)&&(C=t.ref,Et(t));for(v in t)G.call(t,v)&&!St.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(u||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&jt(d,E),C&&Ot(d,E)}return At(e,u,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(n)}else Ze.setExtraStackFrame(null)}var we;we=!1;function Re(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
50
+ `),S=f.length-1,E=C.length-1;S>=1&&E>=0&&f[S]!==C[E];)E--;for(;S>=1&&E>=0;S--,E--)if(f[S]!==C[E]){if(S!==1||E!==1)do if(S--,E--,E<0||f[S]!==C[E]){var $=`
51
+ `+f[S].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(S>=1&&E>=0);break}}}finally{xe=!1,_e.current=v,ht(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",U=H?oe(H):"";return typeof e=="function"&&ae.set(e,U),U}function vt(e,t,o){return Ue(e,!1)}function bt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return Ue(e,bt(e));if(typeof e=="string")return oe(e);switch(e){case k:return oe("Suspense");case h:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return vt(e.render);case y:return ie(e.type,t,o);case m:{var i=e,g=i._payload,v=i._init;try{return ie(v(g),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},qe=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(o)}else qe.setExtraStackFrame(null)}function _t(e,t,o,i,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((i||"React class")+": "+o+" 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,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){f=S}f&&!(f instanceof Error)&&(se(g),O("%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).",i||"React class",o,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",o,f.message),se(null))}}}var yt=Array.isArray;function ke(e){return yt(e)}function xt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function kt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(kt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt(e)),Ve(e)}var Je=W.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Ke,Ge;function Rt(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 wt(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 Et(e,t){typeof e.ref=="string"&&Je.current}function jt(e,t){{var o=function(){Ke||(Ke=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Ot(e,t){{var o=function(){Ge||(Ge=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var At=function(e,t,o,i,g,v,d){var f={$$typeof:n,type:e,key:t,ref:o,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:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ct(e,t,o,i,g){{var v,d={},f=null,C=null;o!==void 0&&(He(o),f=""+o),wt(t)&&(He(t.key),f=""+t.key),Rt(t)&&(C=t.ref,Et(t));for(v in t)G.call(t,v)&&!St.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 E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&jt(d,E),C&&Ot(d,E)}return At(e,f,C,g,i,Je.current,d)}}var Se=W.ReactCurrentOwner,Ze=W.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ze.setExtraStackFrame(o)}else Ze.setExtraStackFrame(null)}var Re;Re=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Xe(){{if(Se.current){var e=N(Se.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function Pt(e){return""}var Ye={};function Tt(e){{var t=Xe();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
54
54
 
55
- Check the top-level render call using <`+n+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Tt(t);if(Ye[n])return;Ye[n]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),q(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var n=0;n<e.length;n++){var i=e[n];Re(i)&&Qe(i,t)}else if(Re(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)Re(d.value)&&Qe(d.value,t)}}}function $t(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===f||t.$$typeof===_))n=t.propTypes;else return;if(n){var i=N(t);yt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var tt={};function rt(e,t,n,i,g,v){{var d=I(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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=Pt();C?u+=C:u+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(N(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,u)}var E=Ct(e,t,n,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("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 et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(Ft){return Ft!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Dt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+o+">.")}return t}}function Qe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Tt(t);if(Ye[o])return;Ye[o]=!0;var i="";e&&e._owner&&e._owner!==Se.current&&(i=" It was passed a child from "+N(e._owner.type)+"."),V(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),V(null)}}function et(e,t){{if(typeof e!="object")return;if(ke(e))for(var o=0;o<e.length;o++){var i=e[o];we(i)&&Qe(i,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=be(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Qe(d.value,t)}}}function $t(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===y))o=t.propTypes;else return;if(o){var i=N(t);_t(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!Re){Re=!0;var g=N(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){V(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),V(null);break}}e.ref!==null&&(V(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var tt={};function rt(e,t,o,i,g,v){{var d=I(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=Pt();C?f+=C:f+=Xe();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===n?(S="<"+(N(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,O("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 E=Ct(e,t,o,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(ke($)){for(var H=0;H<$.length;H++)et($[H],e);Object.freeze&&Object.freeze($)}else O("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 et($,e)}if(G.call(t,"key")){var U=N(e),P=Object.keys(t).filter(function(zt){return zt!=="key"}),Ee=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!tt[U+Ee]){var Ft=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`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} />`,Ee,U,Dt,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,n){return rt(e,t,n,!0)}function It(e,t,n){return rt(e,t,n,!1)}var zt=It,Mt=Nt;at.Fragment=c,at.jsx=zt,at.jsxs=Mt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ue(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ue().elcrm||(ue().elcrm={}),Object.assign(ue().elcrm,{router:Xt.version});function Z(r){var o,a,c,l;const p=ue();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={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:R}}}function A(){return ue().ROUTER_PARAMS||J}function de(r){const o=ue();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ue().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:M=A().debug}){Z({page:j,module:x,auth:I,debug:M}),o()}r.Default=c;function l(x){let j=z=>(Z({page:z}),z);const[I,M]=w.useState(R()||x&&j(x)||A().page);return de({page:z=>{M(z)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function y(x){return A().page===x}r.isPage=y;function f(){return A().prev}r.getBack=f;function k(x,j){const[I,M]=w.useState(_()||x||A().module);return de({module:M}),I}r.useModule=k;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function _(){return A().module||""}r.getModule=_;function m(x){return A().module===x}r.isModule=m;function B(x,j){if(typeof x!="function"){const[I,M]=w.useState(!j),[z,N]=w.useState(x||be());return de({tabs:N}),j&&w.useEffect(()=>{M(!0)},[]),[z,I]}else de({tabs:x})}r.useTabs=B;function T(x){let j=z=>(Z({tab:z}),z);const[I,M]=w.useState(be()||x&&j(x)||A().tab);return de({tabs:z=>{M(z)}}),I}r.useTab=T;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function be(){return A().tab}r.getTabs=be;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=w.useState(x||Ae());return de({id:M=>{I(M)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function ze(x){return Number(A().id)===x}r.isId=ze;async function Me(x){var j,I,M,z,N,D,L,fe;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&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((z=(M=re()).tabs)==null||z.call(M,Q)),Y!==void 0&&((D=(N=re()).module)==null||D.call(N,Y)),X!==void 0&&((fe=(L=re()).page)==null||fe.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Me})(ce||(ce={}));let it={};function hr(){const[r,o]=w.useState([]);return it.set=a=>{o([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let o=new Date().getTime();r.key=o,it.set({item:s.jsx(vr,{data:r},o),key:o})}function vr(r){const o=r.data;let[a]=w.useState("show"),[c,l]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){l(!0),it.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:o.text})]})})}let pe={Send:mr,Init:hr};const ge={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 br=()=>{if(location.hostname==="localhost"){let[r,o]=w.useState(!1),[a,c]=w.useState(!1),[l,p]=w.useState("dark"),[R,y]=w.useState(!1),[f,k]=w.useState(!1);ge.is=!0,ge.MainButton.set=o,ge.BackButton.set=c,w.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let m in K[l])document.documentElement.style.setProperty(m,K[l][m]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=m=>{for(let B in K[m])document.documentElement.style.setProperty(B,K[m][B]);p(m),y(!1)},_=()=>{y(!1),k(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var m;a.page===void 0?(m=a.callback)==null||m.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>y(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:_,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>y(!R),children:"Closed"})})]})]}):"",f?s.jsx(yr,{setAuthorization:k}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ve.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ve.themeParams.bg_color+"b3"),ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},yr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_12hh1_1",s:"_s_12hh1_17"},_r=({className:r,children:o,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:o}),xr={l:"_l_gfyud_1"},kr=({children:r,className:o})=>s.jsx("div",{className:[xr.l,o].filter(a=>a!==void 0).join(" "),children:r}),he={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"},Sr=({items:r})=>{const o=c=>{ce.setPage(c)},a=c=>{ve.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&o(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.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 wr({children:r,icon:o,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[y,f]=w.useState(!1),[k,h]=w.useState(null);w.useEffect(()=>{let m=document.querySelector(".p_sb");return m||(m=document.createElement("div"),m.className="_p_sb",document.body.appendChild(m)),h(m),()=>{m&&m.parentNode&&m.parentNode.removeChild(m)}},[]);const _=s.jsxs(s.Fragment,{children:[y&&s.jsx("div",{className:oe.o,onClick:()=>f(!1)}),s.jsxs("div",{className:me(oe.m,R==="left"?oe.l:oe.r,y&&oe.x,l),children:[s.jsxs("div",{className:oe.h,children:[c&&s.jsx("h3",{className:oe.t,children:c}),s.jsxs("svg",{onClick:()=>f(!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:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:oe.c,children:p==="list"?s.jsx("ul",{className:oe.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:o}),k&&or.createPortal(_,k)]})}let $e=()=>{};const Qt=({children:r,title:o,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,y]=w.useState(!1);return $e=()=>{y(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Oe==null?void 0:Oe.onClose)==null||f.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ft={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},Oe=[],er=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Rr=({actions:r,children:o,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[y,f]=w.useState(null),[k,h]=w.useState(l?er(r||[],l):0);return Oe.onClose=()=>{f(null),h(l?er(r||[],l):0)},w.useEffect(()=>{if(!c)return;const _=document.querySelectorAll("[contenteditable]"),m=()=>{const T=document.querySelector("footer");T&&(T.style.display="flex")},B=()=>{const T=document.querySelector("footer");T&&(T.style.display="none")};return _.forEach(T=>{T.addEventListener("focus",B,!0),T.addEventListener("blur",m,!0)}),()=>{_.forEach(T=>{T.removeEventListener("focus",B,!0),T.removeEventListener("blur",m,!0)})}},[]),s.jsxs(s.Fragment,{children:[y,s.jsxs("footer",{className:`${ft.h} ${ft[R]} ${a} `,children:[o,r&&r.map((_,m)=>s.jsxs("div",{"data-active":k===m?"true":"false",onClick:()=>{_.page&&(h(m),p==null||p(_.page)),_.callback&&(_.callback(),h(m)),_.component&&(k===m?$e():(f(_.component),h(m)))},children:[_.icon,_.badge&&s.jsx("div",{className:ft.badge,children:_.badge})]},m))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Er({children:r,name:o,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,y]=w.useState(!1);return w.useEffect(()=>{if(!c)return;const f=p===void 0?rr().pop():p,k=()=>{y(!1),setTimeout(()=>{pt(f||!1),a==null||a()},300)};ut[o]={onClose:k,onOpen:()=>{y(!0)}},pt({callback:k});const h=setTimeout(()=>{y(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,R&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,o)=>{var a,c;o?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},tr={s:"_s_1y3m3_3",n:"_n_1y3m3_14"};function Or({className:r,children:o,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,y]=w.useState(l||!1);w.useEffect(()=>{y(l||!1)},[l]);let f={onScroll:k=>{const{scrollTop:h,scrollHeight:_,clientHeight:m}=k.currentTarget;h+m>=_-c&&!R&&(y(!0),a==null||a())}};return s.jsx("div",{...f,className:me(tr.s,!p&&tr.n,r),children:o})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:o,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,o),children:[r,c&&s.jsx("b",{children:c})]})}const F={state:[!1],listen:[],prev:{},router:r=>{r===!1?(b.default.WebApp.BackButton.isVisible=!1,b.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.state.length!==1&&F.state.pop()):(b.default.WebApp.BackButton.isVisible=!0,b.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)}),ve.BackButton.onClick(F.listen[0]))}},me=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");b.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(o,a,c)=>{var l,p;a!==void 0?(pe.Send({type:o,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(o)):(pe.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;pe.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;pe.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;pe.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=br,r.TabBar=Rr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=_r,r.Loading=kr,r.Sidebar=wr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=Sr,r.MainButton={callback:[],set:o=>{ge.is?ge.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=>{ge.is?ge.BackButton.set(o):(F.state.push(o),F.router(o))}})(b.default||(b.default={}));const Cr=b.default.TabBar,Pr=Qt,pt=b.default.BackButton,Tr=b.default.BackButtonPrev,rr=b.default.BackButtonState,$r=b.default.Notice,Br=b.default.SafeArea,Nr=b.default.Loading,Ir=b.default.Menu,zr=b.default.SidePanel,Mr=b.default.Scroll,Dr=b.default.AppBar,Fr=b.default.Sidebar,Wr=b.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:Vr,MainButton:qr,WebApp:ve,getUser:Hr}=b.default;b.AppBar=Dr,b.BackButton=pt,b.BackButtonPrev=Tr,b.BackButtonState=rr,b.BottomSheet=Pr,b.Header=Ur,b.Loading=Nr,b.MainButton=qr,b.Menu=Ir,b.Modal=Vr,b.Notice=$r,b.SafeArea=Br,b.Scroll=Mr,b.SidePanel=zr,b.SidePanelController=Wr,b.Sidebar=Fr,b.TabBar=Cr,b.WebApp=ve,b.clsx=me,b.getUser=Hr,b.toggleBottomSheet=Lr,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Ee,U,Ft,U),tt[U+Ee]=!0}}return e===c?Bt(E):$t(E),E}}function Nt(e,t,o){return rt(e,t,o,!0)}function It(e,t,o){return rt(e,t,o,!1)}var Mt=It,Dt=Nt;at.Fragment=c,at.jsx=Mt,at.jsxs=Dt}()),at}process.env.NODE_ENV==="production"?dr():pr();const gr="0.0.40",Xt={version:gr},te={},J={module:"",v:Xt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Xt.version});function Z(r){var n,a,c,l;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.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 A(){return fe().ROUTER_PARAMS||J}function de(r){const n=fe();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:I=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:I,debug:D}),n()}r.Default=c;function l(x){let j=M=>(Z({page:M}),M);const[I,D]=R.useState(w()||x&&j(x)||A().page);return de({page:M=>{D(M)}}),I}r.usePage=l;function p(x,j=!0,I={}){Z({page:x,...I}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function w(){return A().page}r.getPage=w;function _(x){return A().page===x}r.isPage=_;function u(){return A().prev}r.getBack=u;function k(x,j){const[I,D]=R.useState(y()||x||A().module);return de({module:D}),I}r.useModule=k;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function y(){return A().module||""}r.getModule=y;function m(x){return A().module===x}r.isModule=m;function B(x,j){if(typeof x!="function"){const[I,D]=R.useState(!j),[M,N]=R.useState(x||be());return de({tabs:N}),j&&R.useEffect(()=>{D(!0)},[]),[M,I]}else de({tabs:x})}r.useTabs=B;function T(x){let j=M=>(Z({tab:M}),M);const[I,D]=R.useState(be()||x&&j(x)||A().tab);return de({tabs:M=>{D(M)}}),I}r.useTab=T;async function Be(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Be;function be(){return A().tab}r.getTabs=be;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,I]=R.useState(x||Ae());return de({id:D=>{I(D)}}),j}else de({id:x})}r.useId=O;function Ne(x){}r.subId=Ne;async function Ie(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ie;function Ae(){return A().id}r.getId=Ae;function Me(x){return Number(A().id)===x}r.isId=Me;async function De(x){var j,I,D,M,N,F,L,ue;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&&((I=(j=re()).id)==null||I.call(j,ee)),Q!==void 0&&((M=(D=re()).tabs)==null||M.call(D,Q)),Y!==void 0&&((F=(N=re()).module)==null||F.call(N,Y)),X!==void 0&&((ue=(L=re()).page)==null||ue.call(L,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=De})(ce||(ce={}));let it={};function hr(){const[r,n]=R.useState([]);return it.set=a=>{n([...r,a])},it.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function mr(r){let n=new Date().getTime();r.key=n,it.set({item:s.jsx(vr,{data:r},n),key:n})}function vr(r){const n=r.data;let[a]=R.useState("show"),[c,l]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){l(!0),it.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:mr,Init:hr};const ge={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 br=()=>{if(location.hostname==="localhost"){let[r,n]=R.useState(!1),[a,c]=R.useState(!1),[l,p]=R.useState("dark"),[w,_]=R.useState(!1),[u,k]=R.useState(!1);ge.is=!0,ge.MainButton.set=n,ge.BackButton.set=c,R.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let m in K[l])document.documentElement.style.setProperty(m,K[l][m]);ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=m=>{for(let B in K[m])document.documentElement.style.setProperty(B,K[m][B]);p(m),_(!1)},y=()=>{_(!1),k(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var m;a.page===void 0?(m=a.callback)==null||m.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!w),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:y,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!w),children:"Closed"})})]})]}):"",u?s.jsx(_r,{setAuthorization:k}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",ve.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",ve.themeParams.bg_color+"b3"),ve.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},_r=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Yt={p:"_p_1axqy_1",s:"_s_1axqy_17"},yr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Yt.p,a&&Yt.s,r].filter(c=>c!==void 0).join(" "),children:n}),xr={l:"_l_gfyud_1"},kr=({children:r,className:n})=>s.jsx("div",{className:[xr.l,n].filter(a=>a!==void 0).join(" "),children:r}),he={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"},Sr=({items:r})=>{const n=c=>{ce.setPage(c)},a=c=>{ve.openTelegramLink(c)};return s.jsx("div",{className:he.m,children:r.map(c=>s.jsx("div",{className:he.g,children:c.items.map((l,p)=>s.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:he.c,children:[s.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:he.n,children:l.count})]}),s.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},ne={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 Rr({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:w="left"}){const[_,u]=R.useState(!1),[k,h]=R.useState(null);R.useEffect(()=>{let m=document.querySelector(".p_sb");return m||(m=document.createElement("div"),m.className="_p_sb",document.body.appendChild(m)),h(m),()=>{m&&m.parentNode&&m.parentNode.removeChild(m)}},[]);const y=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:ne.o,onClick:()=>u(!1)}),s.jsxs("div",{className:me(ne.m,w==="left"?ne.l:ne.r,_&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[c&&s.jsx("h3",{className:ne.t,children:c}),s.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:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:n}),k&&nr.createPortal(y,k)]})}let $e=()=>{};const Qt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[w,_]=R.useState(!1);return $e=()=>{_(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Oe==null?void 0:Oe.onClose)==null||u.call(Oe)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:$e,children:s.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${l||""} ${c?"footer":""}`,onClick:u=>u.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),r]})})},ut={h:"_h_1kcus_1",row:"_row_1kcus_20",column:"_column_1kcus_23",badge:"_badge_1kcus_36"},Oe=[],er=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),wr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:w="row"})=>{const[_,u]=R.useState(null),[k,h]=R.useState(l?er(r||[],l):0);return Oe.onClose=()=>{u(null),h(l?er(r||[],l):0)},R.useEffect(()=>{if(!c)return;const y=document.querySelectorAll("[contenteditable]"),m=()=>{const T=document.querySelector("footer");T&&(T.style.display="flex")},B=()=>{const T=document.querySelector("footer");T&&(T.style.display="none")};return y.forEach(T=>{T.addEventListener("focus",B,!0),T.addEventListener("blur",m,!0)}),()=>{y.forEach(T=>{T.removeEventListener("focus",B,!0),T.removeEventListener("blur",m,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${ut.h} ${ut[w]} ${a} `,children:[n,r&&r.map((y,m)=>s.jsxs("div",{"data-active":k===m?"true":"false",onClick:()=>{y.page&&(h(m),p==null||p(y.page)),y.callback&&(y.callback(),h(m)),y.component&&(k===m?$e():(u(y.component),h(m)))},children:[y.icon,y.badge&&s.jsx("div",{className:ut.badge,children:y.badge})]},m))]})]})},st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ft={};function Er({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[w,_]=R.useState(!1);return R.useEffect(()=>{if(!c)return;const u=p===void 0?rr().pop():p,k=()=>{_(!1),setTimeout(()=>{pt(u||!1),a==null||a()},300)};ft[n]={onClose:k,onOpen:()=>{_(!0)}},pt({callback:k});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?s.jsxs("div",{className:me(st.w,w&&st.v,l&&st.s),children:[s.jsx("div",{className:st.n}),r]}):""}const jr=(r,n)=>{var a,c;n?(a=ft[r])==null||a.onOpen():(c=ft[r])==null||c.onClose()},tr={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function Or({className:r,children:n,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[w,_]=R.useState(l||!1);R.useEffect(()=>{_(l||!1)},[l]);let u={onScroll:k=>{const{scrollTop:h,scrollHeight:y,clientHeight:m}=k.currentTarget;h+m>=y-c&&!w&&(_(!0),a==null||a())}};return s.jsx("div",{...u,className:me(tr.s,!p&&tr.n,r),children:n})}const dt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Ar({children:r,className:n,position:a="center",title:c}){let l="";return a==="left"?l=dt.l:a==="right"&&(l=dt.r),s.jsxs("div",{className:me(dt.a,l,n),children:[r,c&&s.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(b.default.WebApp.BackButton.isVisible=!1,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(b.default.WebApp.BackButton.isVisible=!0,b.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let n=z.state.pop();z.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),ve.BackButton.onClick(z.listen[0]))}},me=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");b.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,c)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=br,r.TabBar=wr,r.BottomSheet=Qt,r.toggleBottomSheet=$e,r.SafeArea=yr,r.Loading=kr,r.Sidebar=Rr,r.SidePanel=Er,r.AppBar=Ar,r.SidePanelController=jr,r.Scroll=Or,r.Modal=ct,r.Menu=Sr,r.MainButton={callback:[],set:n=>{ge.is?ge.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=n=>{ge.is?ge.BackButton.set(n):(z.state.push(n),z.router(n))}})(b.default||(b.default={}));const Cr=b.default.TabBar,Pr=Qt,pt=b.default.BackButton,Tr=b.default.BackButtonPrev,rr=b.default.BackButtonState,$r=b.default.Notice,Br=b.default.SafeArea,Nr=b.default.Loading,Ir=b.default.Menu,Mr=b.default.SidePanel,Dr=b.default.Scroll,Fr=b.default.AppBar,zr=b.default.Sidebar,Wr=b.default.SidePanelController,{Header:Ur,toggleBottomSheet:Lr,Modal:qr,MainButton:Vr,WebApp:ve,getUser:Hr}=b.default;b.AppBar=Fr,b.BackButton=pt,b.BackButtonPrev=Tr,b.BackButtonState=rr,b.BottomSheet=Pr,b.Header=Ur,b.Loading=Nr,b.MainButton=Vr,b.Menu=Ir,b.Modal=qr,b.Notice=$r,b.SafeArea=Br,b.Scroll=Dr,b.SidePanel=Mr,b.SidePanelController=Wr,b.Sidebar=zr,b.TabBar=Cr,b.WebApp=ve,b.clsx=me,b.getUser=Hr,b.toggleBottomSheet=Lr,Object.defineProperties(b,{__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.112",
3
+ "version": "0.0.113",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
File without changes