@elcrm/telegram 0.0.171 → 0.0.173

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -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 Kt;function gr(){if(Kt)return Ae;Kt=1;var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(g,u,p){var _,h={},k=null,S=null;p!==void 0&&(k=""+p),u.key!==void 0&&(k=""+u.key),u.ref!==void 0&&(S=u.ref);for(_ in u)s.call(u,_)&&!c.hasOwnProperty(_)&&(h[_]=u[_]);if(g&&g.defaultProps)for(_ in u=g.defaultProps,u)h[_]===void 0&&(h[_]=u[_]);return{$$typeof:r,type:g,key:k,ref:S,props:h,_owner:n.current}}return Ae.Fragment=a,Ae.jsx=d,Ae.jsxs=d,Ae}var $e={};/**
10
+ */var Kt;function gr(){if(Kt)return Ae;Kt=1;var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(g,u,p){var _,h={},k=null,S=null;p!==void 0&&(k=""+p),u.key!==void 0&&(k=""+u.key),u.ref!==void 0&&(S=u.ref);for(_ in u)s.call(u,_)&&!c.hasOwnProperty(_)&&(h[_]=u[_]);if(g&&g.defaultProps)for(_ in u=g.defaultProps,u)h[_]===void 0&&(h[_]=u[_]);return{$$typeof:r,type:g,key:k,ref:S,props:h,_owner:i.current}}return Ae.Fragment=a,Ae.jsx=d,Ae.jsxs=d,Ae}var $e={};/**
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 Jt;function br(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),g=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),$=Symbol.iterator,H="@@iterator";function re(e){if(e===null||typeof e!="object")return null;var o=$&&e[$]||e[H];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),f=1;f<o;f++)i[f-1]=arguments[f];K("error",e,i)}}function K(e,o,i){{var f=B.ReactDebugCurrentFrame,x=f.getStackAddendum();x!==""&&(o+="%s",i=i.concat([x]));var w=i.map(function(m){return String(m)});w.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,w)}}var Re=!1,je=!1,ae=!1,pe=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===c||mt||e===n||e===p||e===_||pe||e===S||Re||je||ae||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===h||e.$$typeof===d||e.$$typeof===g||e.$$typeof===u||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,i){var f=e.displayName;if(f)return f;var x=o.displayName||o.name||"";return x!==""?i+"("+x+")":i}function Te(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 s:return"Fragment";case a:return"Portal";case c:return"Profiler";case n:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var o=e;return Te(o)+".Consumer";case d:var i=e;return Te(i._context)+".Provider";case u:return vt(e,e.render,"ForwardRef");case h:var f=e.displayName||null;return f!==null?f:T(e.type)||"Memo";case k:{var x=e,w=x._payload,m=x._init;try{return T(m(w))}catch{return null}}}return null}var N=Object.assign,J=0,Me,Be,Ne,Ie,De,Ye,Ue;function Le(){}Le.__reactDisabledLog=!0;function xt(){{if(J===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,De=console.group,Ye=console.groupCollapsed,Ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function yt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Me}),info:N({},e,{value:Be}),warn:N({},e,{value:Ne}),error:N({},e,{value:Ie}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:Ye}),groupEnd:N({},e,{value:Ue})})}J<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=B.ReactCurrentDispatcher,me;function oe(e,o,i){{if(me===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);me=f&&f[1]||""}return`
19
- `+me+e}}var he=!1,ne;{var wt=typeof WeakMap=="function"?WeakMap:Map;ne=new wt}function Fe(e,o){if(!e||he)return"";{var i=ne.get(e);if(i!==void 0)return i}var f;he=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=_e.current,_e.current=null,xt();try{if(o){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){f=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){f=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){f=O}e()}}catch(O){if(O&&f&&typeof O.stack=="string"){for(var b=O.stack.split(`
18
+ */var Jt;function br(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),g=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),$=Symbol.iterator,H="@@iterator";function re(e){if(e===null||typeof e!="object")return null;var o=$&&e[$]||e[H];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,n=new Array(o>1?o-1:0),f=1;f<o;f++)n[f-1]=arguments[f];K("error",e,n)}}function K(e,o,n){{var f=B.ReactDebugCurrentFrame,x=f.getStackAddendum();x!==""&&(o+="%s",n=n.concat([x]));var w=n.map(function(m){return String(m)});w.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,w)}}var Re=!1,je=!1,ae=!1,pe=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===c||mt||e===i||e===p||e===_||pe||e===S||Re||je||ae||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===h||e.$$typeof===d||e.$$typeof===g||e.$$typeof===u||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,n){var f=e.displayName;if(f)return f;var x=o.displayName||o.name||"";return x!==""?n+"("+x+")":n}function Te(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 s:return"Fragment";case a:return"Portal";case c:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var o=e;return Te(o)+".Consumer";case d:var n=e;return Te(n._context)+".Provider";case u:return vt(e,e.render,"ForwardRef");case h:var f=e.displayName||null;return f!==null?f:T(e.type)||"Memo";case k:{var x=e,w=x._payload,m=x._init;try{return T(m(w))}catch{return null}}}return null}var N=Object.assign,J=0,Me,Be,Ne,Ie,De,Ye,Ue;function Le(){}Le.__reactDisabledLog=!0;function xt(){{if(J===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,De=console.group,Ye=console.groupCollapsed,Ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function yt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Me}),info:N({},e,{value:Be}),warn:N({},e,{value:Ne}),error:N({},e,{value:Ie}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:Ye}),groupEnd:N({},e,{value:Ue})})}J<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=B.ReactCurrentDispatcher,me;function oe(e,o,n){{if(me===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);me=f&&f[1]||""}return`
19
+ `+me+e}}var he=!1,ne;{var wt=typeof WeakMap=="function"?WeakMap:Map;ne=new wt}function Fe(e,o){if(!e||he)return"";{var n=ne.get(e);if(n!==void 0)return n}var f;he=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=_e.current,_e.current=null,xt();try{if(o){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){f=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){f=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){f=O}e()}}catch(O){if(O&&f&&typeof O.stack=="string"){for(var b=O.stack.split(`
20
20
  `),z=f.stack.split(`
21
- `),E=b.length-1,R=z.length-1;E>=1&&R>=0&&b[E]!==z[R];)R--;for(;E>=1&&R>=0;E--,R--)if(b[E]!==z[R]){if(E!==1||R!==1)do if(E--,R--,R<0||b[E]!==z[R]){var C=`
22
- `+b[E].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,C),C}while(E>=1&&R>=0);break}}}finally{he=!1,_e.current=w,yt(),Error.prepareStackTrace=x}var q=e?e.displayName||e.name:"",I=q?oe(q):"";return typeof e=="function"&&ne.set(e,I),I}function kt(e,o,i){return Fe(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ie(e,o,i){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return oe(e);switch(e){case p:return oe("Suspense");case _:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return kt(e.render);case h:return ie(e.type,o,i);case k:{var f=e,x=f._payload,w=f._init;try{return ie(w(x),o,i)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,qe={},We=B.ReactDebugCurrentFrame;function se(e){if(e){var o=e._owner,i=ie(e.type,e._source,o?o.type:null);We.setExtraStackFrame(i)}else We.setExtraStackFrame(null)}function Et(e,o,i,f,x){{var w=Function.call.bind(G);for(var m in e)if(w(e,m)){var b=void 0;try{if(typeof e[m]!="function"){var z=Error((f||"React class")+": "+i+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}b=e[m](o,m,f,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(se(x),j("%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).",f||"React class",i,m,typeof b),se(null)),b instanceof Error&&!(b.message in qe)&&(qe[b.message]=!0,se(x),j("Failed %s type: %s",i,b.message),se(null))}}}var Rt=Array.isArray;function ve(e){return Rt(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),Ve(e)}var Ke=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Je,Ge;function zt(e){if(G.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(G.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ke.current}function Pt(e,o){{var i=function(){Je||(Je=!0,j("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Tt(e,o){{var i=function(){Ge||(Ge=!0,j("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Mt=function(e,o,i,f,x,w,m){var b={$$typeof:r,type:e,key:o,ref:i,props:m,_owner:w};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Bt(e,o,i,f,x){{var w,m={},b=null,z=null;i!==void 0&&(He(i),b=""+i),Ot(o)&&(He(o.key),b=""+o.key),zt(o)&&(z=o.ref,Ct(o,x));for(w in o)G.call(o,w)&&!$t.hasOwnProperty(w)&&(m[w]=o[w]);if(e&&e.defaultProps){var E=e.defaultProps;for(w in E)m[w]===void 0&&(m[w]=E[w])}if(b||z){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Pt(m,R),z&&Tt(m,R)}return Mt(e,b,z,x,f,Ke.current,m)}}var xe=B.ReactCurrentOwner,Xe=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,i=ie(e.type,e._source,o?o.type:null);Xe.setExtraStackFrame(i)}else Xe.setExtraStackFrame(null)}var ye;ye=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(xe.current){var e=T(xe.current.type);if(e)return`
21
+ `),E=b.length-1,R=z.length-1;E>=1&&R>=0&&b[E]!==z[R];)R--;for(;E>=1&&R>=0;E--,R--)if(b[E]!==z[R]){if(E!==1||R!==1)do if(E--,R--,R<0||b[E]!==z[R]){var P=`
22
+ `+b[E].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,P),P}while(E>=1&&R>=0);break}}}finally{he=!1,_e.current=w,yt(),Error.prepareStackTrace=x}var F=e?e.displayName||e.name:"",I=F?oe(F):"";return typeof e=="function"&&ne.set(e,I),I}function kt(e,o,n){return Fe(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ie(e,o,n){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return oe(e);switch(e){case p:return oe("Suspense");case _:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return kt(e.render);case h:return ie(e.type,o,n);case k:{var f=e,x=f._payload,w=f._init;try{return ie(w(x),o,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,qe={},We=B.ReactDebugCurrentFrame;function se(e){if(e){var o=e._owner,n=ie(e.type,e._source,o?o.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}function Et(e,o,n,f,x){{var w=Function.call.bind(G);for(var m in e)if(w(e,m)){var b=void 0;try{if(typeof e[m]!="function"){var z=Error((f||"React class")+": "+n+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}b=e[m](o,m,f,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(se(x),j("%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).",f||"React class",n,m,typeof b),se(null)),b instanceof Error&&!(b.message in qe)&&(qe[b.message]=!0,se(x),j("Failed %s type: %s",n,b.message),se(null))}}}var Rt=Array.isArray;function ve(e){return Rt(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,n=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),Ve(e)}var Ke=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Je,Ge;function zt(e){if(G.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(G.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ke.current}function Pt(e,o){{var n=function(){Je||(Je=!0,j("%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)",o))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Tt(e,o){{var n=function(){Ge||(Ge=!0,j("%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)",o))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Mt=function(e,o,n,f,x,w,m){var b={$$typeof:r,type:e,key:o,ref:n,props:m,_owner:w};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Bt(e,o,n,f,x){{var w,m={},b=null,z=null;n!==void 0&&(He(n),b=""+n),Ot(o)&&(He(o.key),b=""+o.key),zt(o)&&(z=o.ref,Ct(o,x));for(w in o)G.call(o,w)&&!$t.hasOwnProperty(w)&&(m[w]=o[w]);if(e&&e.defaultProps){var E=e.defaultProps;for(w in E)m[w]===void 0&&(m[w]=E[w])}if(b||z){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Pt(m,R),z&&Tt(m,R)}return Mt(e,b,z,x,f,Ke.current,m)}}var xe=B.ReactCurrentOwner,Xe=B.ReactDebugCurrentFrame;function L(e){if(e){var o=e._owner,n=ie(e.type,e._source,o?o.type:null);Xe.setExtraStackFrame(n)}else Xe.setExtraStackFrame(null)}var ye;ye=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(xe.current){var e=T(xe.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var o=Ze();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=`
24
+ Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var o=Ze();if(!o){var n=typeof e=="string"?e:e.displayName||e.name;n&&(o=`
25
25
 
26
- Check the top-level render call using <`+i+">.")}return o}}function et(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=It(o);if(Qe[i])return;Qe[i]=!0;var f="";e&&e._owner&&e._owner!==xe.current&&(f=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,f),F(null)}}function tt(e,o){{if(typeof e!="object")return;if(ve(e))for(var i=0;i<e.length;i++){var f=e[i];we(f)&&et(f,o)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var x=re(e);if(typeof x=="function"&&x!==e.entries)for(var w=x.call(e),m;!(m=w.next()).done;)we(m.value)&&et(m.value,o)}}}function Dt(e){{var o=e.type;if(o==null||typeof o=="string")return;var i;if(typeof o=="function")i=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===u||o.$$typeof===h))i=o.propTypes;else return;if(i){var f=T(o);Et(i,e.props,"prop",f,e)}else if(o.PropTypes!==void 0&&!ye){ye=!0;var x=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(e){{for(var o=Object.keys(e.props),i=0;i<o.length;i++){var f=o[i];if(f!=="children"&&f!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var rt={};function at(e,o,i,f,x,w){{var m=ht(e);if(!m){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" 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 z=Nt();z?b+=z:b+=Ze();var E;e===null?E="null":ve(e)?E="array":e!==void 0&&e.$$typeof===r?(E="<"+(T(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,b)}var R=Bt(e,o,i,x,w);if(R==null)return R;if(m){var C=o.children;if(C!==void 0)if(f)if(ve(C)){for(var q=0;q<C.length;q++)tt(C[q],e);Object.freeze&&Object.freeze(C)}else j("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 tt(C,e)}if(G.call(o,"key")){var I=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),ke=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[I+ke]){var Wt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+n+">.")}return o}}function et(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=It(o);if(Qe[n])return;Qe[n]=!0;var f="";e&&e._owner&&e._owner!==xe.current&&(f=" It was passed a child from "+T(e._owner.type)+"."),L(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,f),L(null)}}function tt(e,o){{if(typeof e!="object")return;if(ve(e))for(var n=0;n<e.length;n++){var f=e[n];we(f)&&et(f,o)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var x=re(e);if(typeof x=="function"&&x!==e.entries)for(var w=x.call(e),m;!(m=w.next()).done;)we(m.value)&&et(m.value,o)}}}function Dt(e){{var o=e.type;if(o==null||typeof o=="string")return;var n;if(typeof o=="function")n=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===u||o.$$typeof===h))n=o.propTypes;else return;if(n){var f=T(o);Et(n,e.props,"prop",f,e)}else if(o.PropTypes!==void 0&&!ye){ye=!0;var x=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(e){{for(var o=Object.keys(e.props),n=0;n<o.length;n++){var f=o[n];if(f!=="children"&&f!=="key"){L(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),L(null);break}}e.ref!==null&&(L(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var rt={};function at(e,o,n,f,x,w){{var m=ht(e);if(!m){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" 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 z=Nt();z?b+=z:b+=Ze();var E;e===null?E="null":ve(e)?E="array":e!==void 0&&e.$$typeof===r?(E="<"+(T(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,b)}var R=Bt(e,o,n,x,w);if(R==null)return R;if(m){var P=o.children;if(P!==void 0)if(f)if(ve(P)){for(var F=0;F<P.length;F++)tt(P[F],e);Object.freeze&&Object.freeze(P)}else j("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 tt(P,e)}if(G.call(o,"key")){var I=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),ke=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[I+ke]){var Wt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`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} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,i){return at(e,o,i,!0)}function Lt(e,o,i){return at(e,o,i,!1)}var Ft=Lt,qt=Ut;$e.Fragment=s,$e.jsx=Ft,$e.jsxs=qt}()),$e}process.env.NODE_ENV==="production"?ft.exports=gr():ft.exports=br();var l=ft.exports;const Se={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var dt;(t=>{function r({children:g,onCallbackModal:u,nameModal:p,offsetTop:_}){const[h,k]=y.useState(!1),[S,$]=y.useState(!1);if(U[p].onClose=()=>{v.default.BackButton(!1),$(!0),setTimeout(()=>{k(!1),$(!1),u==null||u(),U.x(p)},300)},y.useEffect(()=>{h?U[p].onClose():(v.default.BackButton({callback:()=>U[p].onClose()}),k(!0))},[]),!!h)return l.jsx("div",{className:Y(Se.o,S&&Se.x),children:l.jsx("div",{className:Y(Se.p,S&&Se.x,_?Se.o:Se.m),children:g})})}t.Content=r;function a({import_modules:g}){let[u,p]=y.useState([]);return U.x=_=>{p(_?u.filter(h=>h.key!==_):[])},y.useEffect(()=>{g&&(U.i=g)},[]),U.add=(_,h=Date.now())=>{p([...u,{key:h,item:_}])},l.jsx(l.Fragment,{children:u.map(_=>_.item)})}t.Init=a;function s(g,u,p){U.add(l.jsx(r,{onCallbackModal:U["callback_modal"+u],nameModal:u||"",offsetTop:p,children:g},String(Date.now())),u)}t.Add=s;function n(g,u=Date.now().toString(),p){return U[u]={},{Open:k=>{t.Add(l.jsx(g,{...k,onCallbackModal:S=>{var $;($=k.callback)==null||$.call(k,S)},nameModal:u},new Date().getTime()),u,p===void 0?!0:p)}}}t.Create=n;function c(g){U[g].onClose()}t.Close=c;function d(g,u,p,_){U.i&&(_&&(p.callback=_),U.i(`${g}/modals/${u}.tsx`).then(h=>{var k;h.Open?h.Open(p):(k=h.default)!=null&&k.Open?h.default.Open(p):h.default&&h.default(p)}))}t.Open=d})(dt||(dt={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function ot(){return Gt().CRYPTO_PARAMS||Xt}const nt=t=>{let r=0;for(let s=0;s<t.length;s++){const n=t.charCodeAt(s);r=(r<<5)-r+n,r=r&r}r=Math.abs(r);let a="";for(let s=0;s<64;s++){const n=(r^s*197)&255;a+=n.toString(16).padStart(2,"0")}return a},Qt=(t,r)=>{let a=t+r;for(let n=0;n<ot().iterations;n++)a=nt(a);const s=new Uint8Array(32);for(let n=0;n<32;n++)s[n]=parseInt(a.substring(n*2,n*2+2),16);return s},er=(t,r)=>{const a=new Uint8Array(t.length),s=new Uint8Array(t.length);let n=0;for(let c=0;c<t.length;c++){const d=c%r.length;n=r[d]+c+n&255,s[c]=n}for(let c=0;c<t.length;c++)a[c]=t[c]^s[c];return a},_r=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),hr=t=>{let r="";for(let a=0;a<t.length;a+=8192){const s=t.slice(a,Math.min(a+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(s))}return btoa(r)},vr=t=>{const r=atob(t),a=new Uint8Array(r.length);for(let s=0;s<r.length;s++)a[s]=r.charCodeAt(s);return a},xr=t=>{try{const r=nt(Date.now().toString()+Math.random()).substring(0,ot().saltLength*2),a=nt(t+r).substring(0,8),s=Qt(ot().key,r),n=_r(t),c=er(n,s),d=hr(c);return`${r}.${d}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},yr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=r[0],s=r[1],n=r[2],c=Qt(ot().key,a),d=vr(s),g=er(d,c),u=mr(g);if(nt(u+a).substring(0,8)!==n)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const a=JSON.stringify(r);return xr(a)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const a=yr(r);return a&&JSON.parse(a)||!1}catch{return!1}},t.setSecurityParams=(r,a)=>{Zt({iterations:r,saltLength:a})}})(le||(le={}));var ze={};/**
31
+ <%s key={someKey} {...props} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,n){return at(e,o,n,!0)}function Lt(e,o,n){return at(e,o,n,!1)}var Ft=Lt,qt=Ut;$e.Fragment=s,$e.jsx=Ft,$e.jsxs=qt}()),$e}process.env.NODE_ENV==="production"?ft.exports=gr():ft.exports=br();var l=ft.exports;const Se={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var dt;(t=>{function r({children:g,onCallbackModal:u,nameModal:p,offsetTop:_}){const[h,k]=y.useState(!1),[S,$]=y.useState(!1);if(U[p].onClose=()=>{v.default.BackButton(!1),$(!0),setTimeout(()=>{k(!1),$(!1),u==null||u(),U.x(p)},300)},y.useEffect(()=>{h?U[p].onClose():(v.default.BackButton({callback:()=>U[p].onClose()}),k(!0))},[]),!!h)return l.jsx("div",{className:Y(Se.o,S&&Se.x),children:l.jsx("div",{className:Y(Se.p,S&&Se.x,_?Se.o:Se.m),children:g})})}t.Content=r;function a({import_modules:g}){let[u,p]=y.useState([]);return U.x=_=>{p(_?u.filter(h=>h.key!==_):[])},y.useEffect(()=>{g&&(U.i=g)},[]),U.add=(_,h=Date.now())=>{p([...u,{key:h,item:_}])},l.jsx(l.Fragment,{children:u.map(_=>_.item)})}t.Init=a;function s(g,u,p){U.add(l.jsx(r,{onCallbackModal:U["callback_modal"+u],nameModal:u||"",offsetTop:p,children:g},String(Date.now())),u)}t.Add=s;function i(g,u=Date.now().toString(),p){return U[u]={},{Open:k=>{t.Add(l.jsx(g,{...k,onCallbackModal:S=>{var $;($=k.callback)==null||$.call(k,S)},nameModal:u},new Date().getTime()),u,p===void 0?!0:p)}}}t.Create=i;function c(g){U[g].onClose()}t.Close=c;function d(g,u,p,_){U.i&&(_&&(p.callback=_),U.i(`${g}/modals/${u}.tsx`).then(h=>{var k;h.Open?h.Open(p):(k=h.default)!=null&&k.Open?h.default.Open(p):h.default&&h.default(p)}))}t.Open=d})(dt||(dt={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function ot(){return Gt().CRYPTO_PARAMS||Xt}const nt=t=>{let r=0;for(let s=0;s<t.length;s++){const i=t.charCodeAt(s);r=(r<<5)-r+i,r=r&r}r=Math.abs(r);let a="";for(let s=0;s<64;s++){const i=(r^s*197)&255;a+=i.toString(16).padStart(2,"0")}return a},Qt=(t,r)=>{let a=t+r;for(let i=0;i<ot().iterations;i++)a=nt(a);const s=new Uint8Array(32);for(let i=0;i<32;i++)s[i]=parseInt(a.substring(i*2,i*2+2),16);return s},er=(t,r)=>{const a=new Uint8Array(t.length),s=new Uint8Array(t.length);let i=0;for(let c=0;c<t.length;c++){const d=c%r.length;i=r[d]+c+i&255,s[c]=i}for(let c=0;c<t.length;c++)a[c]=t[c]^s[c];return a},_r=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),hr=t=>{let r="";for(let a=0;a<t.length;a+=8192){const s=t.slice(a,Math.min(a+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(s))}return btoa(r)},vr=t=>{const r=atob(t),a=new Uint8Array(r.length);for(let s=0;s<r.length;s++)a[s]=r.charCodeAt(s);return a},xr=t=>{try{const r=nt(Date.now().toString()+Math.random()).substring(0,ot().saltLength*2),a=nt(t+r).substring(0,8),s=Qt(ot().key,r),i=_r(t),c=er(i,s),d=hr(c);return`${r}.${d}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},yr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=r[0],s=r[1],i=r[2],c=Qt(ot().key,a),d=vr(s),g=er(d,c),u=mr(g);if(nt(u+a).substring(0,8)!==i)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const a=JSON.stringify(r);return xr(a)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const a=yr(r);return a&&JSON.parse(a)||!1}catch{return!1}},t.setSecurityParams=(r,a)=>{Zt({iterations:r,saltLength:a})}})(le||(le={}));var ze={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var tr;function wr(){if(tr)return ze;tr=1;var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(g,u,p){var _,h={},k=null,S=null;p!==void 0&&(k=""+p),u.key!==void 0&&(k=""+u.key),u.ref!==void 0&&(S=u.ref);for(_ in u)s.call(u,_)&&!c.hasOwnProperty(_)&&(h[_]=u[_]);if(g&&g.defaultProps)for(_ in u=g.defaultProps,u)h[_]===void 0&&(h[_]=u[_]);return{$$typeof:r,type:g,key:k,ref:S,props:h,_owner:n.current}}return ze.Fragment=a,ze.jsx=d,ze.jsxs=d,ze}var it={};/**
39
+ */var tr;function wr(){if(tr)return ze;tr=1;var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(g,u,p){var _,h={},k=null,S=null;p!==void 0&&(k=""+p),u.key!==void 0&&(k=""+u.key),u.ref!==void 0&&(S=u.ref);for(_ in u)s.call(u,_)&&!c.hasOwnProperty(_)&&(h[_]=u[_]);if(g&&g.defaultProps)for(_ in u=g.defaultProps,u)h[_]===void 0&&(h[_]=u[_]);return{$$typeof:r,type:g,key:k,ref:S,props:h,_owner:i.current}}return ze.Fragment=a,ze.jsx=d,ze.jsxs=d,ze}var it={};/**
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 rr;function kr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),g=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),$=Symbol.iterator,H="@@iterator";function re(e){if(e===null||typeof e!="object")return null;var o=$&&e[$]||e[H];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,i=new Array(o>1?o-1:0),f=1;f<o;f++)i[f-1]=arguments[f];K("error",e,i)}}function K(e,o,i){{var f=B.ReactDebugCurrentFrame,x=f.getStackAddendum();x!==""&&(o+="%s",i=i.concat([x]));var w=i.map(function(m){return String(m)});w.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,w)}}var Re=!1,je=!1,ae=!1,pe=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===c||mt||e===n||e===p||e===_||pe||e===S||Re||je||ae||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===h||e.$$typeof===d||e.$$typeof===g||e.$$typeof===u||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,i){var f=e.displayName;if(f)return f;var x=o.displayName||o.name||"";return x!==""?i+"("+x+")":i}function Te(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 s:return"Fragment";case a:return"Portal";case c:return"Profiler";case n:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var o=e;return Te(o)+".Consumer";case d:var i=e;return Te(i._context)+".Provider";case u:return vt(e,e.render,"ForwardRef");case h:var f=e.displayName||null;return f!==null?f:T(e.type)||"Memo";case k:{var x=e,w=x._payload,m=x._init;try{return T(m(w))}catch{return null}}}return null}var N=Object.assign,J=0,Me,Be,Ne,Ie,De,Ye,Ue;function Le(){}Le.__reactDisabledLog=!0;function xt(){{if(J===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,De=console.group,Ye=console.groupCollapsed,Ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function yt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Me}),info:N({},e,{value:Be}),warn:N({},e,{value:Ne}),error:N({},e,{value:Ie}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:Ye}),groupEnd:N({},e,{value:Ue})})}J<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=B.ReactCurrentDispatcher,me;function oe(e,o,i){{if(me===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);me=f&&f[1]||""}return`
48
- `+me+e}}var he=!1,ne;{var wt=typeof WeakMap=="function"?WeakMap:Map;ne=new wt}function Fe(e,o){if(!e||he)return"";{var i=ne.get(e);if(i!==void 0)return i}var f;he=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=_e.current,_e.current=null,xt();try{if(o){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){f=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){f=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){f=O}e()}}catch(O){if(O&&f&&typeof O.stack=="string"){for(var b=O.stack.split(`
47
+ */var rr;function kr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=y,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),g=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),$=Symbol.iterator,H="@@iterator";function re(e){if(e===null||typeof e!="object")return null;var o=$&&e[$]||e[H];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,n=new Array(o>1?o-1:0),f=1;f<o;f++)n[f-1]=arguments[f];K("error",e,n)}}function K(e,o,n){{var f=B.ReactDebugCurrentFrame,x=f.getStackAddendum();x!==""&&(o+="%s",n=n.concat([x]));var w=n.map(function(m){return String(m)});w.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,w)}}var Re=!1,je=!1,ae=!1,pe=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function ht(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===c||mt||e===i||e===p||e===_||pe||e===S||Re||je||ae||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===h||e.$$typeof===d||e.$$typeof===g||e.$$typeof===u||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,n){var f=e.displayName;if(f)return f;var x=o.displayName||o.name||"";return x!==""?n+"("+x+")":n}function Te(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 s:return"Fragment";case a:return"Portal";case c:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var o=e;return Te(o)+".Consumer";case d:var n=e;return Te(n._context)+".Provider";case u:return vt(e,e.render,"ForwardRef");case h:var f=e.displayName||null;return f!==null?f:T(e.type)||"Memo";case k:{var x=e,w=x._payload,m=x._init;try{return T(m(w))}catch{return null}}}return null}var N=Object.assign,J=0,Me,Be,Ne,Ie,De,Ye,Ue;function Le(){}Le.__reactDisabledLog=!0;function xt(){{if(J===0){Me=console.log,Be=console.info,Ne=console.warn,Ie=console.error,De=console.group,Ye=console.groupCollapsed,Ue=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}J++}}function yt(){{if(J--,J===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Me}),info:N({},e,{value:Be}),warn:N({},e,{value:Ne}),error:N({},e,{value:Ie}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:Ye}),groupEnd:N({},e,{value:Ue})})}J<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _e=B.ReactCurrentDispatcher,me;function oe(e,o,n){{if(me===void 0)try{throw Error()}catch(x){var f=x.stack.trim().match(/\n( *(at )?)/);me=f&&f[1]||""}return`
48
+ `+me+e}}var he=!1,ne;{var wt=typeof WeakMap=="function"?WeakMap:Map;ne=new wt}function Fe(e,o){if(!e||he)return"";{var n=ne.get(e);if(n!==void 0)return n}var f;he=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var w;w=_e.current,_e.current=null,xt();try{if(o){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(O){f=O}Reflect.construct(e,[],m)}else{try{m.call()}catch(O){f=O}e.call(m.prototype)}}else{try{throw Error()}catch(O){f=O}e()}}catch(O){if(O&&f&&typeof O.stack=="string"){for(var b=O.stack.split(`
49
49
  `),z=f.stack.split(`
50
- `),E=b.length-1,R=z.length-1;E>=1&&R>=0&&b[E]!==z[R];)R--;for(;E>=1&&R>=0;E--,R--)if(b[E]!==z[R]){if(E!==1||R!==1)do if(E--,R--,R<0||b[E]!==z[R]){var C=`
51
- `+b[E].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,C),C}while(E>=1&&R>=0);break}}}finally{he=!1,_e.current=w,yt(),Error.prepareStackTrace=x}var q=e?e.displayName||e.name:"",I=q?oe(q):"";return typeof e=="function"&&ne.set(e,I),I}function kt(e,o,i){return Fe(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ie(e,o,i){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return oe(e);switch(e){case p:return oe("Suspense");case _:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return kt(e.render);case h:return ie(e.type,o,i);case k:{var f=e,x=f._payload,w=f._init;try{return ie(w(x),o,i)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,qe={},We=B.ReactDebugCurrentFrame;function se(e){if(e){var o=e._owner,i=ie(e.type,e._source,o?o.type:null);We.setExtraStackFrame(i)}else We.setExtraStackFrame(null)}function Et(e,o,i,f,x){{var w=Function.call.bind(G);for(var m in e)if(w(e,m)){var b=void 0;try{if(typeof e[m]!="function"){var z=Error((f||"React class")+": "+i+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}b=e[m](o,m,f,i,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(se(x),j("%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).",f||"React class",i,m,typeof b),se(null)),b instanceof Error&&!(b.message in qe)&&(qe[b.message]=!0,se(x),j("Failed %s type: %s",i,b.message),se(null))}}}var Rt=Array.isArray;function ve(e){return Rt(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,i=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),Ve(e)}var Ke=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Je,Ge;function zt(e){if(G.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(G.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ke.current}function Pt(e,o){{var i=function(){Je||(Je=!0,j("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}}function Tt(e,o){{var i=function(){Ge||(Ge=!0,j("%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)",o))};i.isReactWarning=!0,Object.defineProperty(e,"ref",{get:i,configurable:!0})}}var Mt=function(e,o,i,f,x,w,m){var b={$$typeof:r,type:e,key:o,ref:i,props:m,_owner:w};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Bt(e,o,i,f,x){{var w,m={},b=null,z=null;i!==void 0&&(He(i),b=""+i),Ot(o)&&(He(o.key),b=""+o.key),zt(o)&&(z=o.ref,Ct(o));for(w in o)G.call(o,w)&&!$t.hasOwnProperty(w)&&(m[w]=o[w]);if(e&&e.defaultProps){var E=e.defaultProps;for(w in E)m[w]===void 0&&(m[w]=E[w])}if(b||z){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Pt(m,R),z&&Tt(m,R)}return Mt(e,b,z,x,f,Ke.current,m)}}var xe=B.ReactCurrentOwner,Xe=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,i=ie(e.type,e._source,o?o.type:null);Xe.setExtraStackFrame(i)}else Xe.setExtraStackFrame(null)}var ye;ye=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(xe.current){var e=T(xe.current.type);if(e)return`
50
+ `),E=b.length-1,R=z.length-1;E>=1&&R>=0&&b[E]!==z[R];)R--;for(;E>=1&&R>=0;E--,R--)if(b[E]!==z[R]){if(E!==1||R!==1)do if(E--,R--,R<0||b[E]!==z[R]){var P=`
51
+ `+b[E].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,P),P}while(E>=1&&R>=0);break}}}finally{he=!1,_e.current=w,yt(),Error.prepareStackTrace=x}var F=e?e.displayName||e.name:"",I=F?oe(F):"";return typeof e=="function"&&ne.set(e,I),I}function kt(e,o,n){return Fe(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ie(e,o,n){if(e==null)return"";if(typeof e=="function")return Fe(e,St(e));if(typeof e=="string")return oe(e);switch(e){case p:return oe("Suspense");case _:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return kt(e.render);case h:return ie(e.type,o,n);case k:{var f=e,x=f._payload,w=f._init;try{return ie(w(x),o,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,qe={},We=B.ReactDebugCurrentFrame;function se(e){if(e){var o=e._owner,n=ie(e.type,e._source,o?o.type:null);We.setExtraStackFrame(n)}else We.setExtraStackFrame(null)}function Et(e,o,n,f,x){{var w=Function.call.bind(G);for(var m in e)if(w(e,m)){var b=void 0;try{if(typeof e[m]!="function"){var z=Error((f||"React class")+": "+n+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw z.name="Invariant Violation",z}b=e[m](o,m,f,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(se(x),j("%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).",f||"React class",n,m,typeof b),se(null)),b instanceof Error&&!(b.message in qe)&&(qe[b.message]=!0,se(x),j("Failed %s type: %s",n,b.message),se(null))}}}var Rt=Array.isArray;function ve(e){return Rt(e)}function jt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,n=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function At(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function He(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",jt(e)),Ve(e)}var Ke=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},Je,Ge;function zt(e){if(G.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(G.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ke.current}function Pt(e,o){{var n=function(){Je||(Je=!0,j("%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)",o))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Tt(e,o){{var n=function(){Ge||(Ge=!0,j("%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)",o))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Mt=function(e,o,n,f,x,w,m){var b={$$typeof:r,type:e,key:o,ref:n,props:m,_owner:w};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Bt(e,o,n,f,x){{var w,m={},b=null,z=null;n!==void 0&&(He(n),b=""+n),Ot(o)&&(He(o.key),b=""+o.key),zt(o)&&(z=o.ref,Ct(o));for(w in o)G.call(o,w)&&!$t.hasOwnProperty(w)&&(m[w]=o[w]);if(e&&e.defaultProps){var E=e.defaultProps;for(w in E)m[w]===void 0&&(m[w]=E[w])}if(b||z){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&Pt(m,R),z&&Tt(m,R)}return Mt(e,b,z,x,f,Ke.current,m)}}var xe=B.ReactCurrentOwner,Xe=B.ReactDebugCurrentFrame;function L(e){if(e){var o=e._owner,n=ie(e.type,e._source,o?o.type:null);Xe.setExtraStackFrame(n)}else Xe.setExtraStackFrame(null)}var ye;ye=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ze(){{if(xe.current){var e=T(xe.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var o=Ze();if(!o){var i=typeof e=="string"?e:e.displayName||e.name;i&&(o=`
53
+ Check the render method of \``+e+"`."}return""}}function Nt(e){return""}var Qe={};function It(e){{var o=Ze();if(!o){var n=typeof e=="string"?e:e.displayName||e.name;n&&(o=`
54
54
 
55
- Check the top-level render call using <`+i+">.")}return o}}function et(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var i=It(o);if(Qe[i])return;Qe[i]=!0;var f="";e&&e._owner&&e._owner!==xe.current&&(f=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',i,f),F(null)}}function tt(e,o){{if(typeof e!="object")return;if(ve(e))for(var i=0;i<e.length;i++){var f=e[i];we(f)&&et(f,o)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var x=re(e);if(typeof x=="function"&&x!==e.entries)for(var w=x.call(e),m;!(m=w.next()).done;)we(m.value)&&et(m.value,o)}}}function Dt(e){{var o=e.type;if(o==null||typeof o=="string")return;var i;if(typeof o=="function")i=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===u||o.$$typeof===h))i=o.propTypes;else return;if(i){var f=T(o);Et(i,e.props,"prop",f,e)}else if(o.PropTypes!==void 0&&!ye){ye=!0;var x=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(e){{for(var o=Object.keys(e.props),i=0;i<o.length;i++){var f=o[i];if(f!=="children"&&f!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var rt={};function at(e,o,i,f,x,w){{var m=ht(e);if(!m){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" 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 z=Nt();z?b+=z:b+=Ze();var E;e===null?E="null":ve(e)?E="array":e!==void 0&&e.$$typeof===r?(E="<"+(T(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,b)}var R=Bt(e,o,i,x,w);if(R==null)return R;if(m){var C=o.children;if(C!==void 0)if(f)if(ve(C)){for(var q=0;q<C.length;q++)tt(C[q],e);Object.freeze&&Object.freeze(C)}else j("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 tt(C,e)}if(G.call(o,"key")){var I=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),ke=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[I+ke]){var Wt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+n+">.")}return o}}function et(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=It(o);if(Qe[n])return;Qe[n]=!0;var f="";e&&e._owner&&e._owner!==xe.current&&(f=" It was passed a child from "+T(e._owner.type)+"."),L(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,f),L(null)}}function tt(e,o){{if(typeof e!="object")return;if(ve(e))for(var n=0;n<e.length;n++){var f=e[n];we(f)&&et(f,o)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var x=re(e);if(typeof x=="function"&&x!==e.entries)for(var w=x.call(e),m;!(m=w.next()).done;)we(m.value)&&et(m.value,o)}}}function Dt(e){{var o=e.type;if(o==null||typeof o=="string")return;var n;if(typeof o=="function")n=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===u||o.$$typeof===h))n=o.propTypes;else return;if(n){var f=T(o);Et(n,e.props,"prop",f,e)}else if(o.PropTypes!==void 0&&!ye){ye=!0;var x=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yt(e){{for(var o=Object.keys(e.props),n=0;n<o.length;n++){var f=o[n];if(f!=="children"&&f!=="key"){L(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",f),L(null);break}}e.ref!==null&&(L(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),L(null))}}var rt={};function at(e,o,n,f,x,w){{var m=ht(e);if(!m){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" 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 z=Nt();z?b+=z:b+=Ze();var E;e===null?E="null":ve(e)?E="array":e!==void 0&&e.$$typeof===r?(E="<"+(T(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=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",E,b)}var R=Bt(e,o,n,x,w);if(R==null)return R;if(m){var P=o.children;if(P!==void 0)if(f)if(ve(P)){for(var F=0;F<P.length;F++)tt(P[F],e);Object.freeze&&Object.freeze(P)}else j("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 tt(P,e)}if(G.call(o,"key")){var I=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),ke=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!rt[I+ke]){var Wt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`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} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,i){return at(e,o,i,!0)}function Lt(e,o,i){return at(e,o,i,!1)}var Ft=Lt,qt=Ut;it.Fragment=s,it.jsx=Ft,it.jsxs=qt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},ee={},D={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function X(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}X().elcrm||(X().elcrm={}),Object.assign(X().elcrm,{router:ar.version});function Z(t){var r,a,s,n;const c=X();if(c.ROUTER_PARAMS){t.debug||c.ROUTER_PARAMS.debug;const d={page:(r=c.ROUTER_PARAMS)==null?void 0:r.page,module:(a=c.ROUTER_PARAMS)==null?void 0:a.module,tab:(s=c.ROUTER_PARAMS)==null?void 0:s.tab,id:(n=c.ROUTER_PARAMS)==null?void 0:n.id};c.ROUTER_PARAMS={...c.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};c.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return X().ROUTER_PARAMS||D}function ge(t){const r=X();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function V(){var t;const r=X();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:D.LISTENER=a),new Proxy(a,{get(s,n){const c=s[n];return Array.isArray(c)&&c.length>0?(...d)=>{c.forEach(g=>{if(typeof g=="function")try{g(...d)}catch{}})}:c==null?()=>{}:typeof c=="function"?c:()=>{}}})}function or(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[s,n]of Object.entries(r))if(s.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return n;return null}function pt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:s=".js"}=t||{};return n=>{const c=n.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function Er(t){const{basePath:r=".",modules:a,pages:s}=t||{};return n=>{if(a){const d=or(n,a);if(d)return d()}if(s){const d=or(n,s);if(d)return d()}const c=n.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function nr(t=".",r,a){return r||a?Er({basePath:t,modules:r,pages:a}):pt({basePath:t})}function Rr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;Z({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else Z({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function gt(){return A().tab}function lr(){return A().id}function jr(t){let r=n=>(Z({page:n}),n);const[a,s]=y.useState(ir()||t&&r(t)||A().page);return y.useEffect(()=>{const n=c=>{s(c)};return ge({page:n}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.page){const u=g.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(u)){const p=u.indexOf(n);p>-1&&u.splice(p,1)}}}},[]),a}function Ar(t,r=!0,a={}){Z({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().page(t)}function $r(t){return A().page===t}function zr(){return A().prev}function Or(t,r){const[a,s]=y.useState(sr()||t||A().module);return y.useEffect(()=>(ge({module:s}),()=>{const n=V();n.module===s&&delete n.module}),[]),a}function Cr(t,r=!0){Z({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().module(t)}function Pr(t){return A().module===t}function Tr(t,r){if(typeof t!="function"){const[a,s]=y.useState(!r),[n,c]=y.useState(t||gt());return ge({tabs:c}),r&&y.useEffect(()=>{s(!0)},[]),[n,a]}else ge({tabs:t})}function Mr(t){let r=n=>(Z({tab:n}),n);const[a,s]=y.useState(gt()||t&&r(t)||A().tab);return y.useEffect(()=>{const n=c=>{s(c)};return ge({tabs:n}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.tabs){const u=g.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(u)){const p=u.indexOf(n);p>-1&&u.splice(p,1)}}}},[]),a}async function Br(t,r=!0){Z({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(V().tabs&&V().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=y.useState(t||lr());return y.useEffect(()=>{const s=n=>{a(n)};return ge({id:s}),()=>{const n=V();n.id===s&&delete n.id}},[]),r}else y.useEffect(()=>(ge({id:t}),()=>{var r,a;const s=X();if((a=(r=s.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const n=s.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(n)){const c=n.indexOf(t);c>-1&&n.splice(c,1)}}}),[t])}function Dr(t){}async function Yr(t,r=!0){Z({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().id(t)}function Ur(t){return Number(A().id)===t}async function Lr(t){var r,a,s,n,c,d,g,u;const{page:p,module:_,tab:h,id:k}=t;p!==void 0&&(ee.page=p),_!==void 0&&(ee.module=_),h!==void 0&&(ee.tab=h),k!==void 0&&(ee.id=k),Z({...ee}),k!==void 0&&((a=(r=V()).id)==null||a.call(r,k)),h!==void 0&&((n=(s=V()).tabs)==null||n.call(s,h)),_!==void 0&&((d=(c=V()).module)==null||d.call(c,_)),p!==void 0&&((u=(g=V()).page)==null||u.call(g,p)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Ee={Reset(){ee.id=0,ee.tab="",ee.page=A().page,ee.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:s=A().debug,dir:n=A().dir||".",importModules:c,modules:d,pages:g,glob:u}){let p=c,_=d,h=g;u?(_=typeof d=="object"?d:u,h=typeof g=="object"?g:u):(_=_||u,h=h||u),!p&&(_||h)?!u&&(typeof _=="string"||typeof h=="string")?p=pt({basePath:n}):p=nr(n,_,h):p||(p=pt({basePath:n})),Z({page:r,module:t,auth:a,debug:s,dir:n,importModules:p}),Rr()},createImportModules:nr,getImportModules:()=>A().importModules,usePage:jr,setPage:Ar,getPage:ir,isPage:$r,getBack:zr,useModule:Or,setModule:Cr,getModule:sr,isModule:Pr,useTabs:Tr,useTab:Mr,setTabs:Br,getTabs:gt,isTabs:Nr,useId:Ir,subId:Dr,setId:Yr,getId:lr,isId:Ur,navigate:Lr},ce={n:"_n_wzw51_1",i:"_i_wzw51_11",closing:"_closing_wzw51_51",t:"_t_wzw51_58",e:"_e_wzw51_62",s:"_s_wzw51_65",w:"_w_wzw51_68",h:"_h_wzw51_71"};let st={};function Fr(){const[t,r]=y.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((s,n)=>{s.key===a&&t.splice(n,1)}),r(t)},t.length===0?l.jsx(l.Fragment,{}):l.jsx("div",{className:ce.n,children:t.map(a=>a.item)})}function qr(t){let r=new Date().getTime();t.key=r,st.set({item:l.jsx(Wr,{data:t},r),key:r})}function Wr(t){const r=t.data;let[a]=y.useState("show"),[s,n]=y.useState(!1),[c,d]=y.useState(!1);const g=()=>{d(!0),setTimeout(()=>{n(!0),st.del(r.key)},300)};y.useEffect(()=>{const _=setTimeout(()=>{g()},5e3);return()=>{clearTimeout(_)}},[r.key]);let u;switch(r.type){case"error":u=l.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":u=l.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":u=l.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:u="icon fa fa-exclamation-circle";break}const p={error:ce.e,success:ce.s,warning:ce.w};return l.jsx(l.Fragment,{children:s?l.jsx(l.Fragment,{}):l.jsxs("div",{className:Y(ce.i,p[r.type],r.thema!==void 0?ce.h:"",c&&ce.closing),"data-status":a,onClick:g,children:[l.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",viewBox:"0 0 24 24",children:u}),l.jsxs("span",{className:ce.t,children:[r.title&&l.jsx("b",{children:r.title}),r.text&&l.jsx("p",{children:r.text})]})]})})}let be={Send:qr,Init:Fr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},W={is:!1,MainButton:{},BackButton:{},styled:"default"};let P={};P.dark={"--tg-color-scheme":"dark","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#3e88f7","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-section-bg-color":"#2c2c2e","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-bottom-bar-bg-color":"#1d1d1d"},P.light={"--tg-color-scheme":"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"},P.users={"--tg-color-scheme":"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 Vr=({style:t="default",theme:r})=>{if(location.hostname==="localhost"){let[a,s]=y.useState(!1),[n,c]=y.useState(!1),[d,g]=y.useState(r||"dark"),[u,p]=y.useState(!1),[_,h]=y.useState(!1);W.is=!0,W.MainButton.set=s,W.BackButton.set=c,W.styled=t,y.useEffect(()=>{var $;P[d]["--tg-theme-bg-color-alpha"]=P[d]["--tg-theme-bg-color"]+"b3",P[d]["--tg-theme-secondary-bg-color-alpha"]=P[d]["--tg-theme-secondary-bg-color"]+"d3",P[d]["--tg-theme-bg-color-alpha-25"]=P[d]["--tg-theme-bg-color"]+"40",P[d]["--tg-theme-secondary-bg-color-alpha-25"]=P[d]["--tg-theme-secondary-bg-color"]+"40";for(let H in P[d])document.documentElement.style.setProperty(H,P[d][H]);document.documentElement.setAttribute("data-color-scheme",P[d]["--tg-color-scheme"]),document.documentElement.setAttribute("data-style",t),document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),(($=L.safeAreaInset)==null?void 0:$.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):L.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let k=$=>{for(let H in P[$])document.documentElement.style.setProperty(H,P[$][H]),document.documentElement.setAttribute("data-color-scheme",$);g($),p(!1)},S=()=>{p(!1),h(!0)};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:ue.d,children:[n===!1?l.jsx("div",{className:ue.b,children:"Отмена"}):l.jsx("div",{onClick:()=>{var $;n.page===void 0?($=n.callback)==null||$.call(n):Ee.setPage(n.page)},className:ue.b,children:"Назад"}),l.jsx("div",{className:ue.o,onClick:()=>p(!u),children:"Меню"})]}),l.jsx(be.Init,{}),a&&l.jsx("div",{className:ue.m,children:l.jsx("button",{onClick:()=>{a.page&&Ee.setPage(a.page),a.callback&&a.callback()},children:a.text})}),u?l.jsxs("div",{className:ue.t,children:[l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("button",{onClick:S,children:"Authorization"})}),l.jsx("li",{})]}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("button",{children:"Thema"}),l.jsxs("ol",{children:[l.jsx("li",{children:l.jsx("button",{onClick:()=>k("dark"),children:"Dark"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("light"),children:"Light"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("users"),children:"Users"})})]})]}),l.jsx("li",{children:l.jsx("button",{onClick:()=>p(!u),children:"Closed"})})]})]}):"",_?l.jsx(Hr,{setAuthorization:h}):""]})}else return W.styled=t,y.useEffect(()=>{var a;if(r){L.setHeaderColor(P[r]["--tg-theme-bg-color"]),L.setBackgroundColor(P[r]["--tg-theme-bg-color"]);const s={};Object.keys(P[r]).forEach(n=>{if(n.startsWith("--tg-theme-")){const c=n.replace("--tg-theme-","").replace(/-/g,"_");s[c]=P[r][n]}}),L.setOptions({theme_params:s})}document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",L.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",L.themeParams.bg_color+"b3"),((a=L.safeAreaInset)==null?void 0:a.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):L.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"),document.documentElement.setAttribute("data-color-scheme",L.colorScheme),document.documentElement.setAttribute("data-style",t)},[]),l.jsx(l.Fragment,{children:l.jsx(be.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return l.jsx("div",{className:ue.a,children:l.jsxs("div",{className:ue.v,children:[l.jsx("fieldset",{}),l.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Kr=({className:t,children:r,isScroll:a=!0})=>l.jsx("div",{className:[cr.p,a&&cr.s,t].filter(s=>s!==void 0).join(" "),children:r}),Jr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>l.jsx("div",{className:[Jr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t})=>{const r=s=>{Ee.setPage(s)},a=s=>{L.openTelegramLink(s)};return l.jsx("div",{className:Y(fe[W.styled==="liquid-glass"?"q":""],fe.m),children:t.map(s=>l.jsx("div",{className:fe.g,children:s.items.map((n,c)=>l.jsxs("div",{className:fe.i,onClick:()=>{n.link&&a(n.link),n.page&&r(n.page),n.callback&&n.callback()},children:[l.jsxs("div",{className:fe.c,children:[l.jsx("span",{className:fe.l,style:{background:n.color},children:n.icon}),n.title,n.count&&l.jsx("span",{className:fe.n,children:n.count})]}),l.jsx("span",{className:fe.a,children:"›"})]},c))},s.id))})},te={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"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:s,className:n,view:c="list",position:d="left",id:g="default"}){const[u,p]=y.useState(!1),[_,h]=y.useState(null);y.useEffect(()=>{let S=document.querySelector(".p_sb");return S||(S=document.createElement("div"),S.className="_p_sb",document.body.appendChild(S)),h(S),lt[g]=$=>p($),()=>{S&&S.parentNode&&S.parentNode.removeChild(S)}},[]);const k=l.jsxs(l.Fragment,{children:[u&&l.jsx("div",{className:te.o,onClick:()=>p(!1)}),l.jsxs("div",{className:Y(te.m,d==="left"?te.l:te.r,u&&te.x,n),children:[l.jsxs("div",{className:te.h,children:[s&&l.jsx("h3",{className:te.t,children:s}),l.jsxs("svg",{onClick:()=>p(!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:[l.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),l.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),l.jsx("div",{className:te.c,children:c==="list"?l.jsx("ul",{className:te.u,children:t}):t})]})]});return l.jsxs(l.Fragment,{children:[r&&l.jsx("div",{onClick:()=>p(!0),className:"bage","data-count":a,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},Oe={h:"_h_1mg30_2",r:"_r_1mg30_32",c:"_c_1mg30_35",b:"_b_1mg30_55",draw:"_draw_1mg30_1",a:"_a_1mg30_111",scaleToggleVar:"_scaleToggleVar_1mg30_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>l.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({after:t,before:r,actions:a,children:s,className:n,actual:c,page:d,onPageChange:g,direction:u="row"})=>{const[p,_]=y.useState(null),h=y.useRef(null),[k,S]=y.useState(d?ur(a||[],d):0),[$,H]=y.useState("right"),re=y.useRef(k);y.useEffect(()=>{if(d){const pe=ur(a||[],d);pe!==-1&&pe!==re.current&&(re.current=pe,S(pe))}},[d,a]),y.useEffect(()=>{re.current!==k&&(H(k>re.current?"left":"right"),re.current=k)},[k]);const[B,j]=y.useState(!1),K=y.useRef(null),Re=()=>{K.current&&(clearTimeout(K.current),K.current=null),j(!0)},je=()=>{requestAnimationFrame(()=>{K.current=setTimeout(()=>{j(!1),K.current=null},50)})};y.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]);const ae={};return W.styled==="liquid-glass"&&(ae.onMouseDown=Re,ae.onMouseUp=je,ae.onTouchStart=Re,ae.onTouchEnd=je),l.jsxs(l.Fragment,{children:[p,l.jsxs("div",{className:Oe.h,ref:h,children:[r,a&&l.jsx(aa,{"data-direction":$,"data-scale":B?"true":"false",...ae,actions:a,activeIndex:k,setActiveIndex:S,onPageChange:g,setComponent:_,actual:c,direction:u,className:Y(Oe.f,Oe[u==="row"?"r":"c"],n)}),s,t]})]})},aa=y.forwardRef(({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:s,setComponent:n,actual:c,direction:d,className:g,"data-direction":u,"data-scale":p,children:_,...h},k)=>l.jsxs("div",{"data-direction":u,"data-scale":p,...h,className:Y(Oe.b,g),children:[t.map((S,$)=>l.jsxs("div",{"data-active":r===$?"true":"false",onClick:()=>{S.page&&(a($),s==null||s(S.page)),S.onClick&&S.onClick(()=>a($)),S.component&&(r===$||(n(S.component),a($)))},children:[S.icon,S.title&&l.jsx("span",{children:S.title}),S.badge&&l.jsx(ta,{value:S.badge})]},$)),c&&l.jsx("div",{className:Oe.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]})),oa={a:"_a_15zsz_1"};function na({children:t,className:r,text:a}){return l.jsxs("div",{className:Y(oa.a,r),children:[t,a&&l.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},bt={};function ia({children:t,id:r,onClose:a,isOpen:s,isScroll:n=!0,nextBackButton:c}){const[d,g]=y.useState(!1);return y.useEffect(()=>{if(!s)return;const u=c===void 0?dr().pop():c,p=()=>{g(!1),setTimeout(()=>{_t(u||!1),a==null||a()},300)};bt[r]={onClose:p,onOpen:()=>{g(!0)}},_t({callback:p});const _=setTimeout(()=>{g(!0)},10);return()=>{clearTimeout(_)}},[s]),s?l.jsxs("div",{className:Y(ct.w,d&&ct.v,n&&ct.s),children:[l.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,s;r?(a=bt[t])==null||a.onOpen():(s=bt[t])==null||s.onClose()},ut={s:"_s_tecim_3",n:"_n_tecim_14",b:"_b_tecim_19",f:"_f_tecim_29"};function la({className:t,children:r,onScrollEnd:a,offset:s=100,isLoading:n,fullscreen:c=!1,isScrollBar:d=!1}){const[g,u]=y.useState(n||!1);y.useEffect(()=>{u(n||!1)},[n]);let p={onScroll:_=>{const{scrollTop:h,scrollHeight:k,clientHeight:S}=_.currentTarget;h+S>=k-s&&!g&&(u(!0),a==null||a())}};return l.jsxs(l.Fragment,{children:[!d&&l.jsx("div",{className:ut.b}),l.jsx("div",{...p,className:Y(ut.s,!d&&ut.n,c&&ut.f,t),children:r})]})}const Ce={f:"_f_145iw_1",a:"_a_145iw_6",l:"_l_145iw_18",r:"_r_145iw_21",b:"_b_145iw_24"};function ca({children:t,className:r,position:a="center",title:s,fixed:n=!1}){let c="";return a==="left"?c=Ce.l:a==="right"?c=Ce.r:a==="between"&&(c=Ce.b),l.jsxs("div",{className:Y(Ce.a,c,n&&Ce.f,r),children:[t,s&&l.jsx("b",{children:s})]})}const de={o:"_o_xdy5u_2",x:"_x_xdy5u_16",c:"_c_xdy5u_20",p:"_p_xdy5u_25",f:"_f_xdy5u_41",h:"_h_xdy5u_49",b:"_b_xdy5u_66"},Q={},fr=({children:t,title:r,isOverlay:a=!0,footer:s=!0,className:n,id:c,onOpen:d})=>{const[g,u]=y.useState(!1),[p,_]=y.useState(!1);return y.useEffect(()=>{Q[c]=h=>{h?(_(!1),u(!0),d==null||d(!0)):(_(!0),d==null||d(!1),setTimeout(()=>{u(!1),_(!1)},300))}},[name,d]),!g&&!p?null:l.jsx("div",{className:Y(de.o,a&&de.x,p&&de.c),onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:l.jsxs("div",{className:Y(de.p,p&&de.c,s&&de.f,n),onClick:h=>h.stopPropagation(),children:[r&&l.jsxs("div",{className:de.h,children:[l.jsx("h3",{children:r}),l.jsx("button",{className:de.b,onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=Q[t])==null||a.call(Q,r)},M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var a;let r=M.state.pop();M.prev=Ee.getPage(),r.page!==void 0?Ee.setPage(r.page):(a=r.callback)==null||a.call(r)}),L.BackButton.onClick(M.listen[0]))}},Y=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.isKeyboard=a=>document.documentElement.setAttribute("data-keyboard",a.toString()),t.Location=a=>{if(W.is)return a({latitude:55.752555,longitude:37.623123});let s=()=>{t.WebApp.LocationManager.getLocation(async n=>{if(!n){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(n)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{s()}):s()},t.Notice={Send:(a,s,n,c)=>{var d,g;n!==void 0?(be.Send({type:a,title:s,text:n,thema:c}),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a)):(be.Send(a),(g=t.WebApp.HapticFeedback)==null||g.notificationOccurred(a.type))},Error:(a,s)=>{var n;be.Send({type:"error",title:a,text:s}),(n=t.WebApp.HapticFeedback)==null||n.notificationOccurred("error")},Success:(a,s)=>{var n;be.Send({type:"success",title:a,text:s}),(n=t.WebApp.HapticFeedback)==null||n.notificationOccurred("success")},Warning:(a,s)=>{var n;be.Send({type:"warning",title:a,text:s}),(n=t.WebApp.HapticFeedback)==null||n.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=na,t.BottomSheet=fr,t.BottomSheetController=ua,t.SafeArea=Kr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=dt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{W.is?W.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(s=>{t.WebApp.MainButton.offClick(s)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var s;a.page===void 0?(s=a.callback)==null||s.call(a):Ee.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=a=>{W.is?W.BackButton.set(a):(M.state.push(a),M.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,_t=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,ba=v.default.SafeArea,_a=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.isKeyboard,Ea=v.default.SidePanelController,Ra=v.default.SideBarController,ja=v.default.BottomSheetController,{Header:Aa,Modal:$a,MainButton:za,WebApp:L,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=_t,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetController=ja,v.Header=Aa,v.Loading=_a,v.Location=ka,v.MainButton=za,v.Menu=ma,v.Modal=$a,v.Notice=ga,v.SafeArea=ba,v.Scroll=va,v.SideBarController=Ra,v.SidePanel=ha,v.SidePanelController=Ea,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=L,v.clsx=Y,v.getUser=Oa,v.isKeyboard=Sa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,ke,I,Wt,I),rt[I+ke]=!0}}return e===s?Yt(R):Dt(R),R}}function Ut(e,o,n){return at(e,o,n,!0)}function Lt(e,o,n){return at(e,o,n,!1)}var Ft=Lt,qt=Ut;it.Fragment=s,it.jsx=Ft,it.jsxs=qt}()),it}process.env.NODE_ENV==="production"?wr():kr();const Sr="0.0.46",ar={version:Sr},ee={},D={module:"",v:ar.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function X(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}X().elcrm||(X().elcrm={}),Object.assign(X().elcrm,{router:ar.version});function Z(t){var r,a,s,i;const c=X();if(c.ROUTER_PARAMS){t.debug||c.ROUTER_PARAMS.debug;const d={page:(r=c.ROUTER_PARAMS)==null?void 0:r.page,module:(a=c.ROUTER_PARAMS)==null?void 0:a.module,tab:(s=c.ROUTER_PARAMS)==null?void 0:s.tab,id:(i=c.ROUTER_PARAMS)==null?void 0:i.id};c.ROUTER_PARAMS={...c.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};c.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return X().ROUTER_PARAMS||D}function ge(t){const r=X();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(a=>{r.ROUTER_PARAMS.LISTENER[a]||(r.ROUTER_PARAMS.LISTENER[a]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[a])||(r.ROUTER_PARAMS.LISTENER[a]=[r.ROUTER_PARAMS.LISTENER[a]]),r.ROUTER_PARAMS.LISTENER[a].includes(t[a])||r.ROUTER_PARAMS.LISTENER[a].push(t[a])})}function V(){var t;const r=X();let a=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return a||(a={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=a:D.LISTENER=a),new Proxy(a,{get(s,i){const c=s[i];return Array.isArray(c)&&c.length>0?(...d)=>{c.forEach(g=>{if(typeof g=="function")try{g(...d)}catch{}})}:c==null?()=>{}:typeof c=="function"?c:()=>{}}})}function or(t,r){const a=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[s,i]of Object.entries(r))if(s.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===a)return i;return null}function pt(t){const{basePath:r=".",devExtensions:a=[".tsx",".ts",".jsx",".js"],prodExtension:s=".js"}=t||{};return i=>{const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function Er(t){const{basePath:r=".",modules:a,pages:s}=t||{};return i=>{if(a){const d=or(i,a);if(d)return d()}if(s){const d=or(i,s);if(d)return d()}const c=i.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${c.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),g=c.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${g}.js`)}}}function nr(t=".",r,a){return r||a?Er({basePath:t,modules:r,pages:a}):pt({basePath:t})}function Rr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=le.deCode(r),!r)return!1;Z({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else Z({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function gt(){return A().tab}function lr(){return A().id}function jr(t){let r=i=>(Z({page:i}),i);const[a,s]=y.useState(ir()||t&&r(t)||A().page);return y.useEffect(()=>{const i=c=>{s(c)};return ge({page:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.page){const u=g.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}function Ar(t,r=!0,a={}){Z({page:t,...a}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().page(t)}function $r(t){return A().page===t}function zr(){return A().prev}function Or(t,r){const[a,s]=y.useState(sr()||t||A().module);return y.useEffect(()=>(ge({module:s}),()=>{const i=V();i.module===s&&delete i.module}),[]),a}function Cr(t,r=!0){Z({module:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().module(t)}function Pr(t){return A().module===t}function Tr(t,r){if(typeof t!="function"){const[a,s]=y.useState(!r),[i,c]=y.useState(t||gt());return ge({tabs:c}),r&&y.useEffect(()=>{s(!0)},[]),[i,a]}else ge({tabs:t})}function Mr(t){let r=i=>(Z({tab:i}),i);const[a,s]=y.useState(gt()||t&&r(t)||A().tab);return y.useEffect(()=>{const i=c=>{s(c)};return ge({tabs:i}),()=>{var c,d;const g=X();if((d=(c=g.ROUTER_PARAMS)==null?void 0:c.LISTENER)!=null&&d.tabs){const u=g.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(u)){const p=u.indexOf(i);p>-1&&u.splice(p,1)}}}},[]),a}async function Br(t,r=!0){Z({tab:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&(V().tabs&&V().tabs(t))}function Nr(t){return A().tab===t}function Ir(t){if(typeof t!="function"){const[r,a]=y.useState(t||lr());return y.useEffect(()=>{const s=i=>{a(i)};return ge({id:s}),()=>{const i=V();i.id===s&&delete i.id}},[]),r}else y.useEffect(()=>(ge({id:t}),()=>{var r,a;const s=X();if((a=(r=s.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&a.id){const i=s.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(i)){const c=i.indexOf(t);c>-1&&i.splice(c,1)}}}),[t])}function Dr(t){}async function Yr(t,r=!0){Z({id:t}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),r&&V().id(t)}function Ur(t){return Number(A().id)===t}async function Lr(t){var r,a,s,i,c,d,g,u;const{page:p,module:_,tab:h,id:k}=t;p!==void 0&&(ee.page=p),_!==void 0&&(ee.module=_),h!==void 0&&(ee.tab=h),k!==void 0&&(ee.id=k),Z({...ee}),k!==void 0&&((a=(r=V()).id)==null||a.call(r,k)),h!==void 0&&((i=(s=V()).tabs)==null||i.call(s,h)),_!==void 0&&((d=(c=V()).module)==null||d.call(c,_)),p!==void 0&&((u=(g=V()).page)==null||u.call(g,p)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}const Ee={Reset(){ee.id=0,ee.tab="",ee.page=A().page,ee.module=A().module},Default({module:t=A().module,page:r=A().page,auth:a=A().auth,debug:s=A().debug,dir:i=A().dir||".",importModules:c,modules:d,pages:g,glob:u}){let p=c,_=d,h=g;u?(_=typeof d=="object"?d:u,h=typeof g=="object"?g:u):(_=_||u,h=h||u),!p&&(_||h)?!u&&(typeof _=="string"||typeof h=="string")?p=pt({basePath:i}):p=nr(i,_,h):p||(p=pt({basePath:i})),Z({page:r,module:t,auth:a,debug:s,dir:i,importModules:p}),Rr()},createImportModules:nr,getImportModules:()=>A().importModules,usePage:jr,setPage:Ar,getPage:ir,isPage:$r,getBack:zr,useModule:Or,setModule:Cr,getModule:sr,isModule:Pr,useTabs:Tr,useTab:Mr,setTabs:Br,getTabs:gt,isTabs:Nr,useId:Ir,subId:Dr,setId:Yr,getId:lr,isId:Ur,navigate:Lr},ce={n:"_n_wzw51_1",i:"_i_wzw51_11",closing:"_closing_wzw51_51",t:"_t_wzw51_58",e:"_e_wzw51_62",s:"_s_wzw51_65",w:"_w_wzw51_68",h:"_h_wzw51_71"};let st={};function Fr(){const[t,r]=y.useState([]);return st.set=a=>{r([...t,a])},st.del=a=>{t.forEach((s,i)=>{s.key===a&&t.splice(i,1)}),r(t)},t.length===0?l.jsx(l.Fragment,{}):l.jsx("div",{className:ce.n,children:t.map(a=>a.item)})}function qr(t){let r=new Date().getTime();t.key=r,st.set({item:l.jsx(Wr,{data:t},r),key:r})}function Wr(t){const r=t.data;let[a]=y.useState("show"),[s,i]=y.useState(!1),[c,d]=y.useState(!1);const g=()=>{d(!0),setTimeout(()=>{i(!0),st.del(r.key)},300)};y.useEffect(()=>{const _=setTimeout(()=>{g()},5e3);return()=>{clearTimeout(_)}},[r.key]);let u;switch(r.type){case"error":u=l.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":u=l.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":u=l.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:u="icon fa fa-exclamation-circle";break}const p={error:ce.e,success:ce.s,warning:ce.w};return l.jsx(l.Fragment,{children:s?l.jsx(l.Fragment,{}):l.jsxs("div",{className:Y(ce.i,p[r.type],r.thema!==void 0?ce.h:"",c&&ce.closing),"data-status":a,onClick:g,children:[l.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",viewBox:"0 0 24 24",children:u}),l.jsxs("span",{className:ce.t,children:[r.title&&l.jsx("b",{children:r.title}),r.text&&l.jsx("p",{children:r.text})]})]})})}let be={Send:qr,Init:Fr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},q={is:!1,MainButton:{},BackButton:{},styled:"default"};let C={};C.dark={"--tg-color-scheme":"dark","--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#3e88f7","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-section-bg-color":"#2c2c2e","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-bottom-bar-bg-color":"#1d1d1d"},C.light={"--tg-color-scheme":"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"},C.users={"--tg-color-scheme":"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 Vr=({style:t="default",theme:r})=>{if(location.hostname==="localhost"){let[a,s]=y.useState(!1),[i,c]=y.useState(!1),[d,g]=y.useState(r||"dark"),[u,p]=y.useState(!1),[_,h]=y.useState(!1);q.is=!0,q.MainButton.set=s,q.BackButton.set=c,q.styled=t,y.useEffect(()=>{var $;C[d]["--tg-theme-bg-color-alpha"]=C[d]["--tg-theme-bg-color"]+"b3",C[d]["--tg-theme-secondary-bg-color-alpha"]=C[d]["--tg-theme-secondary-bg-color"]+"d3",C[d]["--tg-theme-bg-color-alpha-25"]=C[d]["--tg-theme-bg-color"]+"40",C[d]["--tg-theme-secondary-bg-color-alpha-25"]=C[d]["--tg-theme-secondary-bg-color"]+"40";for(let H in C[d])document.documentElement.style.setProperty(H,C[d][H]);document.documentElement.setAttribute("data-color-scheme",C[d]["--tg-color-scheme"]),document.documentElement.setAttribute("data-style",t),document.documentElement.style.setProperty("--tg-content-safe-area-inset-top","0px"),(($=W.safeAreaInset)==null?void 0:$.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let k=$=>{for(let H in C[$])document.documentElement.style.setProperty(H,C[$][H]),document.documentElement.setAttribute("data-color-scheme",$);g($),p(!1)},S=()=>{p(!1),h(!0)};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:ue.d,children:[i===!1?l.jsx("div",{className:ue.b,children:"Отмена"}):l.jsx("div",{onClick:()=>{var $;i.page===void 0?($=i.callback)==null||$.call(i):Ee.setPage(i.page)},className:ue.b,children:"Назад"}),l.jsx("div",{className:ue.o,onClick:()=>p(!u),children:"Меню"})]}),l.jsx(be.Init,{}),a&&l.jsx("div",{className:ue.m,children:l.jsx("button",{onClick:()=>{a.page&&Ee.setPage(a.page),a.callback&&a.callback()},children:a.text})}),u?l.jsxs("div",{className:ue.t,children:[l.jsxs("ul",{children:[l.jsx("li",{children:l.jsx("button",{onClick:S,children:"Authorization"})}),l.jsx("li",{})]}),l.jsxs("ul",{children:[l.jsxs("li",{children:[l.jsx("button",{children:"Thema"}),l.jsxs("ol",{children:[l.jsx("li",{children:l.jsx("button",{onClick:()=>k("dark"),children:"Dark"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("light"),children:"Light"})}),l.jsx("li",{children:l.jsx("button",{onClick:()=>k("users"),children:"Users"})})]})]}),l.jsx("li",{children:l.jsx("button",{onClick:()=>p(!u),children:"Closed"})})]})]}):"",_?l.jsx(Hr,{setAuthorization:h}):""]})}else return q.styled=t,y.useEffect(()=>{var a;r?(W.setHeaderColor(C[r]["--tg-theme-bg-color"]),W.setBackgroundColor(C[r]["--tg-theme-bg-color"]),document.documentElement.setAttribute("data-color-scheme",r),document.documentElement.setAttribute("data-style",t),C[r]["--tg-theme-bg-color-alpha"]=C[r]["--tg-theme-bg-color"]+"b3",C[r]["--tg-theme-secondary-bg-color-alpha"]=C[r]["--tg-theme-secondary-bg-color"]+"d3",C[r]["--tg-theme-bg-color-alpha-25"]=C[r]["--tg-theme-bg-color"]+"40",C[r]["--tg-theme-secondary-bg-color-alpha-25"]=C[r]["--tg-theme-secondary-bg-color"]+"40"):(document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",W.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",W.themeParams.bg_color+"b3"),((a=W.safeAreaInset)==null?void 0:a.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):W.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"),document.documentElement.setAttribute("data-color-scheme",W.colorScheme),document.documentElement.setAttribute("data-style",t))},[]),l.jsx(l.Fragment,{children:l.jsx(be.Init,{})})},Hr=({setAuthorization:t})=>{let r={},a=()=>{localStorage.setItem("auth",r)};return l.jsx("div",{className:ue.a,children:l.jsxs("div",{className:ue.v,children:[l.jsx("fieldset",{}),l.jsx("div",{onClick:a,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Kr=({className:t,children:r,isScroll:a=!0})=>l.jsx("div",{className:[cr.p,a&&cr.s,t].filter(s=>s!==void 0).join(" "),children:r}),Jr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>l.jsx("div",{className:[Jr.l,r].filter(a=>a!==void 0).join(" "),children:t}),fe={q:"_q_z5mg9_2",m:"_m_z5mg9_8",g:"_g_z5mg9_15",i:"_i_z5mg9_23",c:"_c_z5mg9_40",l:"_l_z5mg9_47",a:"_a_z5mg9_62",n:"_n_z5mg9_68"},Xr=({items:t})=>{const r=s=>{Ee.setPage(s)},a=s=>{W.openTelegramLink(s)};return l.jsx("div",{className:Y(fe[q.styled==="liquid-glass"?"q":""],fe.m),children:t.map(s=>l.jsx("div",{className:fe.g,children:s.items.map((i,c)=>l.jsxs("div",{className:fe.i,onClick:()=>{i.link&&a(i.link),i.page&&r(i.page),i.callback&&i.callback()},children:[l.jsxs("div",{className:fe.c,children:[l.jsx("span",{className:fe.l,style:{background:i.color},children:i.icon}),i.title,i.count&&l.jsx("span",{className:fe.n,children:i.count})]}),l.jsx("span",{className:fe.a,children:"›"})]},c))},s.id))})},te={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"},lt={};function Zr({children:t,icon:r,iconBadge:a=0,title:s,className:i,view:c="list",position:d="left",id:g="default"}){const[u,p]=y.useState(!1),[_,h]=y.useState(null);y.useEffect(()=>{let S=document.querySelector(".p_sb");return S||(S=document.createElement("div"),S.className="_p_sb",document.body.appendChild(S)),h(S),lt[g]=$=>p($),()=>{S&&S.parentNode&&S.parentNode.removeChild(S)}},[]);const k=l.jsxs(l.Fragment,{children:[u&&l.jsx("div",{className:te.o,onClick:()=>p(!1)}),l.jsxs("div",{className:Y(te.m,d==="left"?te.l:te.r,u&&te.x,i),children:[l.jsxs("div",{className:te.h,children:[s&&l.jsx("h3",{className:te.t,children:s}),l.jsxs("svg",{onClick:()=>p(!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:[l.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),l.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),l.jsx("div",{className:te.c,children:c==="list"?l.jsx("ul",{className:te.u,children:t}):t})]})]});return l.jsxs(l.Fragment,{children:[r&&l.jsx("div",{onClick:()=>p(!0),className:"bage","data-count":a,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var a;(a=lt[t])==null||a.call(lt,r)},Oe={h:"_h_1mg30_2",r:"_r_1mg30_32",c:"_c_1mg30_35",b:"_b_1mg30_55",draw:"_draw_1mg30_1",a:"_a_1mg30_111",scaleToggleVar:"_scaleToggleVar_1mg30_1"},ea={b:"_b_r6m8n_1"},ta=({className:t,value:r})=>l.jsx("div",{className:[ea.b,t].filter(a=>a!==void 0).join(" "),children:r}),ur=(t,r)=>t.findIndex(a=>(a==null?void 0:a.page)===r),ra=({after:t,before:r,actions:a,children:s,className:i,actual:c,page:d,onPageChange:g,direction:u="row"})=>{const[p,_]=y.useState(null),h=y.useRef(null),[k,S]=y.useState(d?ur(a||[],d):0),[$,H]=y.useState("right"),re=y.useRef(k);y.useEffect(()=>{if(d){const pe=ur(a||[],d);pe!==-1&&pe!==re.current&&(re.current=pe,S(pe))}},[d,a]),y.useEffect(()=>{re.current!==k&&(H(k>re.current?"left":"right"),re.current=k)},[k]);const[B,j]=y.useState(!1),K=y.useRef(null),Re=()=>{K.current&&(clearTimeout(K.current),K.current=null),j(!0)},je=()=>{requestAnimationFrame(()=>{K.current=setTimeout(()=>{j(!1),K.current=null},50)})};y.useEffect(()=>()=>{K.current&&clearTimeout(K.current)},[]);const ae={};return q.styled==="liquid-glass"&&(ae.onMouseDown=Re,ae.onMouseUp=je,ae.onTouchStart=Re,ae.onTouchEnd=je),l.jsxs(l.Fragment,{children:[p,l.jsxs("div",{className:Oe.h,ref:h,children:[r,a&&l.jsx(aa,{"data-direction":$,"data-scale":B?"true":"false",...ae,actions:a,activeIndex:k,setActiveIndex:S,onPageChange:g,setComponent:_,actual:c,direction:u,className:Y(Oe.f,Oe[u==="row"?"r":"c"],i)}),s,t]})]})},aa=y.forwardRef(({actions:t,activeIndex:r,setActiveIndex:a,onPageChange:s,setComponent:i,actual:c,direction:d,className:g,"data-direction":u,"data-scale":p,children:_,...h},k)=>l.jsxs("div",{"data-direction":u,"data-scale":p,...h,className:Y(Oe.b,g),children:[t.map((S,$)=>l.jsxs("div",{"data-active":r===$?"true":"false",onClick:()=>{S.page&&(a($),s==null||s(S.page)),S.onClick&&S.onClick(()=>a($)),S.component&&(r===$||(i(S.component),a($)))},children:[S.icon,S.title&&l.jsx("span",{children:S.title}),S.badge&&l.jsx(ta,{value:S.badge})]},$)),c&&l.jsx("div",{className:Oe.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]})),oa={a:"_a_15zsz_1"};function na({children:t,className:r,text:a}){return l.jsxs("div",{className:Y(oa.a,r),children:[t,a&&l.jsx("b",{children:a})]})}const ct={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},bt={};function ia({children:t,id:r,onClose:a,isOpen:s,isScroll:i=!0,nextBackButton:c}){const[d,g]=y.useState(!1);return y.useEffect(()=>{if(!s)return;const u=c===void 0?dr().pop():c,p=()=>{g(!1),setTimeout(()=>{_t(u||!1),a==null||a()},300)};bt[r]={onClose:p,onOpen:()=>{g(!0)}},_t({callback:p});const _=setTimeout(()=>{g(!0)},10);return()=>{clearTimeout(_)}},[s]),s?l.jsxs("div",{className:Y(ct.w,d&&ct.v,i&&ct.s),children:[l.jsx("div",{className:ct.n}),t]}):""}const sa=(t,r)=>{var a,s;r?(a=bt[t])==null||a.onOpen():(s=bt[t])==null||s.onClose()},ut={s:"_s_tecim_3",n:"_n_tecim_14",b:"_b_tecim_19",f:"_f_tecim_29"};function la({className:t,children:r,onScrollEnd:a,offset:s=100,isLoading:i,fullscreen:c=!1,isScrollBar:d=!1}){const[g,u]=y.useState(i||!1);y.useEffect(()=>{u(i||!1)},[i]);let p={onScroll:_=>{const{scrollTop:h,scrollHeight:k,clientHeight:S}=_.currentTarget;h+S>=k-s&&!g&&(u(!0),a==null||a())}};return l.jsxs(l.Fragment,{children:[!d&&l.jsx("div",{className:ut.b}),l.jsx("div",{...p,className:Y(ut.s,!d&&ut.n,c&&ut.f,t),children:r})]})}const Ce={f:"_f_145iw_1",a:"_a_145iw_6",l:"_l_145iw_18",r:"_r_145iw_21",b:"_b_145iw_24"};function ca({children:t,className:r,position:a="center",title:s,fixed:i=!1}){let c="";return a==="left"?c=Ce.l:a==="right"?c=Ce.r:a==="between"&&(c=Ce.b),l.jsxs("div",{className:Y(Ce.a,c,i&&Ce.f,r),children:[t,s&&l.jsx("b",{children:s})]})}const de={o:"_o_xdy5u_2",x:"_x_xdy5u_16",c:"_c_xdy5u_20",p:"_p_xdy5u_25",f:"_f_xdy5u_41",h:"_h_xdy5u_49",b:"_b_xdy5u_66"},Q={},fr=({children:t,title:r,isOverlay:a=!0,footer:s=!0,className:i,id:c,onOpen:d})=>{const[g,u]=y.useState(!1),[p,_]=y.useState(!1);return y.useEffect(()=>{Q[c]=h=>{h?(_(!1),u(!0),d==null||d(!0)):(_(!0),d==null||d(!1),setTimeout(()=>{u(!1),_(!1)},300))}},[name,d]),!g&&!p?null:l.jsx("div",{className:Y(de.o,a&&de.x,p&&de.c),onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:l.jsxs("div",{className:Y(de.p,p&&de.c,s&&de.f,i),onClick:h=>h.stopPropagation(),children:[r&&l.jsxs("div",{className:de.h,children:[l.jsx("h3",{children:r}),l.jsx("button",{className:de.b,onClick:()=>{var h;return(h=Q[c])==null?void 0:h.call(Q,!1)},children:"✕"})]}),t]})})},ua=(t,r)=>{var a;(a=Q[t])==null||a.call(Q,r)},M={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.state.length!==1&&M.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(M.listen[0]),M.listen.shift(),M.listen.push(()=>{var a;let r=M.state.pop();M.prev=Ee.getPage(),r.page!==void 0?Ee.setPage(r.page):(a=r.callback)==null||a.call(r)}),W.BackButton.onClick(M.listen[0]))}},Y=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var a;return((a=t.WebApp.initDataUnsafe)==null?void 0:a.user)===void 0?{}:t.WebApp.initDataUnsafe},t.isKeyboard=a=>document.documentElement.setAttribute("data-keyboard",a.toString()),t.Location=a=>{if(q.is)return a({latitude:55.752555,longitude:37.623123});let s=()=>{t.WebApp.LocationManager.getLocation(async i=>{if(!i){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}a(i)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{s()}):s()},t.Notice={Send:(a,s,i,c)=>{var d,g;i!==void 0?(be.Send({type:a,title:s,text:i,thema:c}),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(a)):(be.Send(a),(g=t.WebApp.HapticFeedback)==null||g.notificationOccurred(a.type))},Error:(a,s)=>{var i;be.Send({type:"error",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:(a,s)=>{var i;be.Send({type:"success",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:(a,s)=>{var i;be.Send({type:"warning",title:a,text:s}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ra,t.Title=na,t.BottomSheet=fr,t.BottomSheetController=ua,t.SafeArea=Kr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=ia,t.AppBar=ca,t.SideBarController=Qr,t.SidePanelController=sa,t.Scroll=la,t.Modal=dt,t.Menu=Xr,t.MainButton={callback:[],set:a=>{q.is?q.MainButton.set(a):(t.WebApp.MainButton.callback.forEach(s=>{t.WebApp.MainButton.offClick(s)}),t.WebApp.MainButton.callback=[],typeof a=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=a.text,a.color&&(t.WebApp.MainButton.color=a.color),a.textColor&&(t.WebApp.MainButton.textColor=a.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=a.isActive===void 0?!0:a.isActive,t.WebApp.MainButton.callback.push(()=>{var s;a.page===void 0?(s=a.callback)==null||s.call(a):Ee.setPage(a.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{M.prev&&(0,t.BackButton)(M.prev)},t.BackButtonState=()=>M.state,t.BackButton=a=>{q.is?q.BackButton.set(a):(M.state.push(a),M.router(a))}})(v.default||(v.default={}));const fa=v.default.TabBar,da=fr,_t=v.default.BackButton,pa=v.default.BackButtonPrev,dr=v.default.BackButtonState,ga=v.default.Notice,ba=v.default.SafeArea,_a=v.default.Loading,ma=v.default.Menu,ha=v.default.SidePanel,va=v.default.Scroll,xa=v.default.AppBar,ya=v.default.Title,wa=v.default.Sidebar,ka=v.default.Location,Sa=v.default.isKeyboard,Ea=v.default.SidePanelController,Ra=v.default.SideBarController,ja=v.default.BottomSheetController,{Header:Aa,Modal:$a,MainButton:za,WebApp:W,getUser:Oa}=v.default;v.AppBar=xa,v.BackButton=_t,v.BackButtonPrev=pa,v.BackButtonState=dr,v.BottomSheet=da,v.BottomSheetController=ja,v.Header=Aa,v.Loading=_a,v.Location=ka,v.MainButton=za,v.Menu=ma,v.Modal=$a,v.Notice=ga,v.SafeArea=ba,v.Scroll=va,v.SideBarController=Ra,v.SidePanel=ha,v.SidePanelController=Ea,v.Sidebar=wa,v.TabBar=fa,v.Title=ya,v.WebApp=W,v.clsx=Y,v.getUser=Oa,v.isKeyboard=Sa,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.171",
3
+ "version": "0.0.173",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",