bonuspluscomponents 0.0.49 → 0.0.50

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.
@@ -1,31 +1,29 @@
1
- (function(I,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(I=typeof globalThis<"u"?globalThis:I||self,j(I.bonuspluscomponents={},I.require$$1))})(this,function(I,j){"use strict";var Re={exports:{}},z={};/*
1
+ (function(y,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react"),require("axios")):typeof define=="function"&&define.amd?define(["exports","react","axios"],O):(y=typeof globalThis<"u"?globalThis:y||self,O(y.bonuspluscomponents={},y.require$$1,y.Axios))})(this,function(y,O,De){"use strict";var B={exports:{}},k={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var we,We;function Ve(){if(We)return we;We=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var h=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(h.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(d){l[d]=d}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return we=s()?Object.assign:function(i,a){for(var c,h=n(i),l,d=1;d<arguments.length;d++){c=Object(arguments[d]);for(var m in c)t.call(c,m)&&(h[m]=c[m]);if(e){l=e(c);for(var R=0;R<l.length;R++)r.call(c,l[R])&&(h[l[R]]=c[l[R]])}}return h},we}/** @license React v17.0.2
5
+ */var $,ee;function re(){if(ee)return $;ee=1;var f=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;function T(g){if(g==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(g)}function A(){try{if(!Object.assign)return!1;var g=new String("abc");if(g[5]="de",Object.getOwnPropertyNames(g)[0]==="5")return!1;for(var x={},c=0;c<10;c++)x["_"+String.fromCharCode(c)]=c;var l=Object.getOwnPropertyNames(x).map(function(o){return x[o]});if(l.join("")!=="0123456789")return!1;var h={};return"abcdefghijklmnopqrst".split("").forEach(function(o){h[o]=o}),Object.keys(Object.assign({},h)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $=A()?Object.assign:function(g,x){for(var c,l=T(g),h,o=1;o<arguments.length;o++){c=Object(arguments[o]);for(var b in c)E.call(c,b)&&(l[b]=c[b]);if(f){h=f(c);for(var _=0;_<h.length;_++)R.call(c,h[_])&&(l[h[_]]=c[h[_]])}}return l},$}/** @license React v17.0.2
6
6
  * react-jsx-runtime.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var ze;function Jt(){if(ze)return z;ze=1,Ve();var e=j,t=60103;if(z.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),z.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,h,l){var d,m={},R=null,O=null;l!==void 0&&(R=""+l),h.key!==void 0&&(R=""+h.key),h.ref!==void 0&&(O=h.ref);for(d in h)s.call(h,d)&&!i.hasOwnProperty(d)&&(m[d]=h[d]);if(c&&c.defaultProps)for(d in h=c.defaultProps,h)m[d]===void 0&&(m[d]=h[d]);return{$$typeof:t,type:c,key:R,ref:O,props:m,_owner:n.current}}return z.jsx=a,z.jsxs=a,z}var ve={};/** @license React v17.0.2
12
+ */var te;function Ie(){if(te)return k;te=1,re();var f=O,E=60103;if(k.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;E=R("react.element"),k.Fragment=R("react.fragment")}var T=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A=Object.prototype.hasOwnProperty,g={key:!0,ref:!0,__self:!0,__source:!0};function x(c,l,h){var o,b={},_=null,S=null;h!==void 0&&(_=""+h),l.key!==void 0&&(_=""+l.key),l.ref!==void 0&&(S=l.ref);for(o in l)A.call(l,o)&&!g.hasOwnProperty(o)&&(b[o]=l[o]);if(c&&c.defaultProps)for(o in l=c.defaultProps,l)b[o]===void 0&&(b[o]=l[o]);return{$$typeof:E,type:c,key:_,ref:S,props:b,_owner:T.current}}return k.jsx=x,k.jsxs=x,k}var G={};/** @license React v17.0.2
13
13
  * react-jsx-runtime.development.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Je;function $t(){return Je||(Je=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=j,r=Ve(),n=60103,s=60106;e.Fragment=60107;var i=60108,a=60114,c=60109,h=60110,l=60112,d=60113,m=60120,R=60115,O=60116,E=60121,b=60122,F=60117,N=60129,H=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;n=_("react.element"),s=_("react.portal"),e.Fragment=_("react.fragment"),i=_("react.strict_mode"),a=_("react.profiler"),c=_("react.provider"),h=_("react.context"),l=_("react.forward_ref"),d=_("react.suspense"),m=_("react.suspense_list"),R=_("react.memo"),O=_("react.lazy"),E=_("react.block"),b=_("react.server.block"),F=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),N=_("react.debug_trace_mode"),_("react.offscreen"),H=_("react.legacy_hidden")}var he=typeof Symbol=="function"&&Symbol.iterator,En="@@iterator";function yn(o){if(o===null||typeof o!="object")return null;var f=he&&o[he]||o[En];return typeof f=="function"?f:null}var Y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(o){{for(var f=arguments.length,p=new Array(f>1?f-1:0),y=1;y<f;y++)p[y-1]=arguments[y];bn("error",o,p)}}function bn(o,f,p){{var y=Y.ReactDebugCurrentFrame,S=y.getStackAddendum();S!==""&&(f+="%s",p=p.concat([S]));var A=p.map(function(g){return""+g});A.unshift("Warning: "+f),Function.prototype.apply.call(console[o],console,A)}}var Rn=!1;function wn(o){return!!(typeof o=="string"||typeof o=="function"||o===e.Fragment||o===a||o===N||o===i||o===d||o===m||o===H||Rn||typeof o=="object"&&o!==null&&(o.$$typeof===O||o.$$typeof===R||o.$$typeof===c||o.$$typeof===h||o.$$typeof===l||o.$$typeof===F||o.$$typeof===E||o[0]===b))}function vn(o,f,p){var y=f.displayName||f.name||"";return o.displayName||(y!==""?p+"("+y+")":p)}function St(o){return o.displayName||"Context"}function B(o){if(o==null)return null;if(typeof o.tag=="number"&&D("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case e.Fragment:return"Fragment";case s:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case m:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case h:var f=o;return St(f)+".Consumer";case c:var p=o;return St(p._context)+".Provider";case l:return vn(o,o.render,"ForwardRef");case R:return B(o.type);case E:return B(o._render);case O:{var y=o,S=y._payload,A=y._init;try{return B(A(S))}catch{return null}}}return null}var te=0,At,_t,Tt,Pt,xt,Ct,jt;function Nt(){}Nt.__reactDisabledLog=!0;function On(){{if(te===0){At=console.log,_t=console.info,Tt=console.warn,Pt=console.error,xt=console.group,Ct=console.groupCollapsed,jt=console.groupEnd;var o={configurable:!0,enumerable:!0,value:Nt,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}te++}}function gn(){{if(te--,te===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},o,{value:At}),info:r({},o,{value:_t}),warn:r({},o,{value:Tt}),error:r({},o,{value:Pt}),group:r({},o,{value:xt}),groupCollapsed:r({},o,{value:Ct}),groupEnd:r({},o,{value:jt})})}te<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Fe=Y.ReactCurrentDispatcher,Le;function me(o,f,p){{if(Le===void 0)try{throw Error()}catch(S){var y=S.stack.trim().match(/\n( *(at )?)/);Le=y&&y[1]||""}return`
20
- `+Le+o}}var Ue=!1,Ee;{var Sn=typeof WeakMap=="function"?WeakMap:Map;Ee=new Sn}function Dt(o,f){if(!o||Ue)return"";{var p=Ee.get(o);if(p!==void 0)return p}var y;Ue=!0;var S=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=Fe.current,Fe.current=null,On();try{if(f){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(W){y=W}Reflect.construct(o,[],g)}else{try{g.call()}catch(W){y=W}o.call(g.prototype)}}else{try{throw Error()}catch(W){y=W}o()}}catch(W){if(W&&y&&typeof W.stack=="string"){for(var w=W.stack.split(`
21
- `),C=y.stack.split(`
22
- `),T=w.length-1,P=C.length-1;T>=1&&P>=0&&w[T]!==C[P];)P--;for(;T>=1&&P>=0;T--,P--)if(w[T]!==C[P]){if(T!==1||P!==1)do if(T--,P--,P<0||w[T]!==C[P]){var q=`
23
- `+w[T].replace(" at new "," at ");return typeof o=="function"&&Ee.set(o,q),q}while(T>=1&&P>=0);break}}}finally{Ue=!1,Fe.current=A,gn(),Error.prepareStackTrace=S}var G=o?o.displayName||o.name:"",zt=G?me(G):"";return typeof o=="function"&&Ee.set(o,zt),zt}function kt(o,f,p){return Dt(o,!1)}function An(o){var f=o.prototype;return!!(f&&f.isReactComponent)}function ye(o,f,p){if(o==null)return"";if(typeof o=="function")return Dt(o,An(o));if(typeof o=="string")return me(o);switch(o){case d:return me("Suspense");case m:return me("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case l:return kt(o.render);case R:return ye(o.type,f,p);case E:return kt(o._render);case O:{var y=o,S=y._payload,A=y._init;try{return ye(A(S),f,p)}catch{}}}return""}var Ft={},Lt=Y.ReactDebugCurrentFrame;function be(o){if(o){var f=o._owner,p=ye(o.type,o._source,f?f.type:null);Lt.setExtraStackFrame(p)}else Lt.setExtraStackFrame(null)}function _n(o,f,p,y,S){{var A=Function.call.bind(Object.prototype.hasOwnProperty);for(var g in o)if(A(o,g)){var w=void 0;try{if(typeof o[g]!="function"){var C=Error((y||"React class")+": "+p+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}w=o[g](f,g,y,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){w=T}w&&!(w instanceof Error)&&(be(S),D("%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).",y||"React class",p,g,typeof w),be(null)),w instanceof Error&&!(w.message in Ft)&&(Ft[w.message]=!0,be(S),D("Failed %s type: %s",p,w.message),be(null))}}}var re=Y.ReactCurrentOwner,Be=Object.prototype.hasOwnProperty,Tn={key:!0,ref:!0,__self:!0,__source:!0},Ut,Bt,Ie;Ie={};function Pn(o){if(Be.call(o,"ref")){var f=Object.getOwnPropertyDescriptor(o,"ref").get;if(f&&f.isReactWarning)return!1}return o.ref!==void 0}function xn(o){if(Be.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function Cn(o,f){if(typeof o.ref=="string"&&re.current&&f&&re.current.stateNode!==f){var p=B(re.current.type);Ie[p]||(D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(re.current.type),o.ref),Ie[p]=!0)}}function jn(o,f){{var p=function(){Ut||(Ut=!0,D("%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)",f))};p.isReactWarning=!0,Object.defineProperty(o,"key",{get:p,configurable:!0})}}function Nn(o,f){{var p=function(){Bt||(Bt=!0,D("%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)",f))};p.isReactWarning=!0,Object.defineProperty(o,"ref",{get:p,configurable:!0})}}var Dn=function(o,f,p,y,S,A,g){var w={$$typeof:n,type:o,key:f,ref:p,props:g,_owner:A};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function kn(o,f,p,y,S){{var A,g={},w=null,C=null;p!==void 0&&(w=""+p),xn(f)&&(w=""+f.key),Pn(f)&&(C=f.ref,Cn(f,S));for(A in f)Be.call(f,A)&&!Tn.hasOwnProperty(A)&&(g[A]=f[A]);if(o&&o.defaultProps){var T=o.defaultProps;for(A in T)g[A]===void 0&&(g[A]=T[A])}if(w||C){var P=typeof o=="function"?o.displayName||o.name||"Unknown":o;w&&jn(g,P),C&&Nn(g,P)}return Dn(o,w,C,S,y,re.current,g)}}var Me=Y.ReactCurrentOwner,It=Y.ReactDebugCurrentFrame;function K(o){if(o){var f=o._owner,p=ye(o.type,o._source,f?f.type:null);It.setExtraStackFrame(p)}else It.setExtraStackFrame(null)}var He;He=!1;function qe(o){return typeof o=="object"&&o!==null&&o.$$typeof===n}function Mt(){{if(Me.current){var o=B(Me.current.type);if(o)return`
19
+ */var ne;function Ye(){return ne||(ne=1,function(f){process.env.NODE_ENV!=="production"&&function(){var E=O,R=re(),T=60103,A=60106;f.Fragment=60107;var g=60108,x=60114,c=60109,l=60110,h=60112,o=60113,b=60120,_=60115,S=60116,N=60121,oe=60122,ue=60117,se=60129,ce=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;T=v("react.element"),A=v("react.portal"),f.Fragment=v("react.fragment"),g=v("react.strict_mode"),x=v("react.profiler"),c=v("react.provider"),l=v("react.context"),h=v("react.forward_ref"),o=v("react.suspense"),b=v("react.suspense_list"),_=v("react.memo"),S=v("react.lazy"),N=v("react.block"),oe=v("react.server.block"),ue=v("react.fundamental"),v("react.scope"),v("react.opaque.id"),se=v("react.debug_trace_mode"),v("react.offscreen"),ce=v("react.legacy_hidden")}var fe=typeof Symbol=="function"&&Symbol.iterator,Be="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=fe&&e[fe]||e[Be];return typeof r=="function"?r:null}var D=E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function P(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ge("error",e,t)}}function Ge(e,r,t){{var n=D.ReactDebugCurrentFrame,u=n.getStackAddendum();u!==""&&(r+="%s",t=t.concat([u]));var s=t.map(function(i){return""+i});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var Je=!1;function qe(e){return!!(typeof e=="string"||typeof e=="function"||e===f.Fragment||e===x||e===se||e===g||e===o||e===b||e===ce||Je||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===_||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===ue||e.$$typeof===N||e[0]===oe))}function ze(e,r,t){var n=r.displayName||r.name||"";return e.displayName||(n!==""?t+"("+n+")":t)}function le(e){return e.displayName||"Context"}function j(e){if(e==null)return null;if(typeof e.tag=="number"&&P("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f.Fragment:return"Fragment";case A:return"Portal";case x:return"Profiler";case g:return"StrictMode";case o:return"Suspense";case b:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l:var r=e;return le(r)+".Consumer";case c:var t=e;return le(t._context)+".Provider";case h:return ze(e,e.render,"ForwardRef");case _:return j(e.type);case N:return j(e._render);case S:{var n=e,u=n._payload,s=n._init;try{return j(s(u))}catch{return null}}}return null}var W=0,de,ve,pe,ge,he,_e,Ee;function be(){}be.__reactDisabledLog=!0;function Ke(){{if(W===0){de=console.log,ve=console.info,pe=console.warn,ge=console.error,he=console.group,_e=console.groupCollapsed,Ee=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function He(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:de}),info:R({},e,{value:ve}),warn:R({},e,{value:pe}),error:R({},e,{value:ge}),group:R({},e,{value:he}),groupCollapsed:R({},e,{value:_e}),groupEnd:R({},e,{value:Ee})})}W<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=D.ReactCurrentDispatcher,q;function U(e,r,t){{if(q===void 0)try{throw Error()}catch(u){var n=u.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
20
+ `+q+e}}var z=!1,V;{var Xe=typeof WeakMap=="function"?WeakMap:Map;V=new Xe}function Re(e,r){if(!e||z)return"";{var t=V.get(e);if(t!==void 0)return t}var n;z=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=J.current,J.current=null,Ke();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(w){n=w}Reflect.construct(e,[],i)}else{try{i.call()}catch(w){n=w}e.call(i.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var a=w.stack.split(`
21
+ `),m=n.stack.split(`
22
+ `),d=a.length-1,p=m.length-1;d>=1&&p>=0&&a[d]!==m[p];)p--;for(;d>=1&&p>=0;d--,p--)if(a[d]!==m[p]){if(d!==1||p!==1)do if(d--,p--,p<0||a[d]!==m[p]){var C=`
23
+ `+a[d].replace(" at new "," at ");return typeof e=="function"&&V.set(e,C),C}while(d>=1&&p>=0);break}}}finally{z=!1,J.current=s,He(),Error.prepareStackTrace=u}var Y=e?e.displayName||e.name:"",ke=Y?U(Y):"";return typeof e=="function"&&V.set(e,ke),ke}function me(e,r,t){return Re(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function F(e,r,t){if(e==null)return"";if(typeof e=="function")return Re(e,Ze(e));if(typeof e=="string")return U(e);switch(e){case o:return U("Suspense");case b:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case h:return me(e.render);case _:return F(e.type,r,t);case N:return me(e._render);case S:{var n=e,u=n._payload,s=n._init;try{return F(s(u),r,t)}catch{}}}return""}var Oe={},Pe=D.ReactDebugCurrentFrame;function M(e){if(e){var r=e._owner,t=F(e.type,e._source,r?r.type:null);Pe.setExtraStackFrame(t)}else Pe.setExtraStackFrame(null)}function Qe(e,r,t,n,u){{var s=Function.call.bind(Object.prototype.hasOwnProperty);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(M(u),P("%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).",n||"React class",t,i,typeof a),M(null)),a instanceof Error&&!(a.message in Oe)&&(Oe[a.message]=!0,M(u),P("Failed %s type: %s",t,a.message),M(null))}}}var L=D.ReactCurrentOwner,K=Object.prototype.hasOwnProperty,er={key:!0,ref:!0,__self:!0,__source:!0},xe,ye,H;H={};function rr(e){if(K.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function tr(e){if(K.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function nr(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=j(L.current.type);H[t]||(P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',j(L.current.type),e.ref),H[t]=!0)}}function ar(e,r){{var t=function(){xe||(xe=!0,P("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){ye||(ye=!0,P("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,u,s,i){var a={$$typeof:T,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ur(e,r,t,n,u){{var s,i={},a=null,m=null;t!==void 0&&(a=""+t),tr(r)&&(a=""+r.key),rr(r)&&(m=r.ref,nr(r,u));for(s in r)K.call(r,s)&&!er.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(a||m){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ar(i,p),m&&ir(i,p)}return or(e,a,m,u,n,L.current,i)}}var X=D.ReactCurrentOwner,Te=D.ReactDebugCurrentFrame;function I(e){if(e){var r=e._owner,t=F(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Z;Z=!1;function Q(e){return typeof e=="object"&&e!==null&&e.$$typeof===T}function je(){{if(X.current){var e=j(X.current.type);if(e)return`
24
24
 
25
- Check the render method of \``+o+"`."}return""}}function Fn(o){{if(o!==void 0){var f=o.fileName.replace(/^.*[\\\/]/,""),p=o.lineNumber;return`
25
+ Check the render method of \``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
26
26
 
27
- Check your code at `+f+":"+p+"."}return""}}var Ht={};function Ln(o){{var f=Mt();if(!f){var p=typeof o=="string"?o:o.displayName||o.name;p&&(f=`
27
+ Check your code at `+r+":"+t+"."}return""}}var Ce={};function cr(e){{var r=je();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
28
28
 
29
- Check the top-level render call using <`+p+">.")}return f}}function qt(o,f){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var p=Ln(f);if(Ht[p])return;Ht[p]=!0;var y="";o&&o._owner&&o._owner!==Me.current&&(y=" It was passed a child from "+B(o._owner.type)+"."),K(o),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',p,y),K(null)}}function Wt(o,f){{if(typeof o!="object")return;if(Array.isArray(o))for(var p=0;p<o.length;p++){var y=o[p];qe(y)&&qt(y,f)}else if(qe(o))o._store&&(o._store.validated=!0);else if(o){var S=yn(o);if(typeof S=="function"&&S!==o.entries)for(var A=S.call(o),g;!(g=A.next()).done;)qe(g.value)&&qt(g.value,f)}}}function Un(o){{var f=o.type;if(f==null||typeof f=="string")return;var p;if(typeof f=="function")p=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===l||f.$$typeof===R))p=f.propTypes;else return;if(p){var y=B(f);_n(p,o.props,"prop",y,o)}else if(f.PropTypes!==void 0&&!He){He=!0;var S=B(f);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",S||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bn(o){{for(var f=Object.keys(o.props),p=0;p<f.length;p++){var y=f[p];if(y!=="children"&&y!=="key"){K(o),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),K(null);break}}o.ref!==null&&(K(o),D("Invalid attribute `ref` supplied to `React.Fragment`."),K(null))}}function Vt(o,f,p,y,S,A){{var g=wn(o);if(!g){var w="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(w+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var C=Fn(S);C?w+=C:w+=Mt();var T;o===null?T="null":Array.isArray(o)?T="array":o!==void 0&&o.$$typeof===n?(T="<"+(B(o.type)||"Unknown")+" />",w=" Did you accidentally export a JSX literal instead of a component?"):T=typeof o,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,w)}var P=kn(o,f,p,S,A);if(P==null)return P;if(g){var q=f.children;if(q!==void 0)if(y)if(Array.isArray(q)){for(var G=0;G<q.length;G++)Wt(q[G],o);Object.freeze&&Object.freeze(q)}else D("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 Wt(q,o)}return o===e.Fragment?Bn(P):Un(P),P}}function In(o,f,p){return Vt(o,f,p,!0)}function Mn(o,f,p){return Vt(o,f,p,!1)}var Hn=Mn,qn=In;e.jsx=Hn,e.jsxs=qn}()}(ve)),ve}process.env.NODE_ENV==="production"?Re.exports=Jt():Re.exports=$t();var $e=Re.exports;const Yt={popups:[]},Kt=j.createContext(Yt),Gt=()=>{const[e,t]=j.useState([]);return{popups:e}},Xt=({children:e})=>{const t=Gt();return $e.jsx(Kt.Provider,{value:t,children:e})};function Ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qt}=Object.prototype,{getPrototypeOf:Oe}=Object,ne=(e=>t=>{const r=Qt.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),L=e=>(e=e.toLowerCase(),t=>ne(t)===e),oe=e=>t=>typeof t===e,{isArray:J}=Array,X=oe("undefined");function Zt(e){return e!==null&&!X(e)&&e.constructor!==null&&!X(e.constructor)&&k(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ke=L("ArrayBuffer");function er(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ke(e.buffer),t}const tr=oe("string"),k=oe("function"),Ge=oe("number"),se=e=>e!==null&&typeof e=="object",rr=e=>e===!0||e===!1,ie=e=>{if(ne(e)!=="object")return!1;const t=Oe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nr=L("Date"),or=L("File"),sr=L("Blob"),ir=L("FileList"),ar=e=>se(e)&&k(e.pipe),ur=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||k(e.append)&&((t=ne(e))==="formdata"||t==="object"&&k(e.toString)&&e.toString()==="[object FormData]"))},cr=L("URLSearchParams"),lr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Q(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),J(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let c;for(n=0;n<a;n++)c=i[n],t.call(null,e[c],c,e)}}function Xe(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const Qe=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ze=e=>!X(e)&&e!==Qe;function ge(){const{caseless:e}=Ze(this)&&this||{},t={},r=(n,s)=>{const i=e&&Xe(t,s)||s;ie(t[i])&&ie(n)?t[i]=ge(t[i],n):ie(n)?t[i]=ge({},n):J(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Q(arguments[n],r);return t}const fr=(e,t,r,{allOwnKeys:n}={})=>(Q(t,(s,i)=>{r&&k(s)?e[i]=Ye(s,r):e[i]=s},{allOwnKeys:n}),e),dr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},hr=(e,t,r,n)=>{let s,i,a;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!n||n(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=r!==!1&&Oe(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},mr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Er=e=>{if(!e)return null;if(J(e))return e;let t=e.length;if(!Ge(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},yr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oe(Uint8Array)),br=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Rr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},wr=L("HTMLFormElement"),vr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),et=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Or=L("RegExp"),tt=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Q(r,(s,i)=>{t(s,i,e)!==!1&&(n[i]=s)}),Object.defineProperties(e,n)},gr=e=>{tt(e,(t,r)=>{if(k(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(k(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Sr=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return J(e)?n(e):n(String(e).split(t)),r},Ar=()=>{},_r=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Se="abcdefghijklmnopqrstuvwxyz",rt="0123456789",nt={DIGIT:rt,ALPHA:Se,ALPHA_DIGIT:Se+Se.toUpperCase()+rt},Tr=(e=16,t=nt.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function Pr(e){return!!(e&&k(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xr=e=>{const t=new Array(10),r=(n,s)=>{if(se(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=J(n)?[]:{};return Q(n,(a,c)=>{const h=r(a,s+1);!X(h)&&(i[c]=h)}),t[s]=void 0,i}}return n};return r(e,0)},Cr=L("AsyncFunction"),u={isArray:J,isArrayBuffer:Ke,isBuffer:Zt,isFormData:ur,isArrayBufferView:er,isString:tr,isNumber:Ge,isBoolean:rr,isObject:se,isPlainObject:ie,isUndefined:X,isDate:nr,isFile:or,isBlob:sr,isRegExp:Or,isFunction:k,isStream:ar,isURLSearchParams:cr,isTypedArray:yr,isFileList:ir,forEach:Q,merge:ge,extend:fr,trim:lr,stripBOM:dr,inherits:pr,toFlatObject:hr,kindOf:ne,kindOfTest:L,endsWith:mr,toArray:Er,forEachEntry:br,matchAll:Rr,isHTMLForm:wr,hasOwnProperty:et,hasOwnProp:et,reduceDescriptors:tt,freezeMethods:gr,toObjectSet:Sr,toCamelCase:vr,noop:Ar,toFiniteNumber:_r,findKey:Xe,global:Qe,isContextDefined:Ze,ALPHABET:nt,generateString:Tr,isSpecCompliantForm:Pr,toJSONObject:xr,isAsyncFn:Cr,isThenable:e=>e&&(se(e)||k(e))&&k(e.then)&&k(e.catch)};function v(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}u.inherits(v,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ot=v.prototype,st={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{st[e]={value:e}}),Object.defineProperties(v,st),Object.defineProperty(ot,"isAxiosError",{value:!0}),v.from=(e,t,r,n,s,i)=>{const a=Object.create(ot);return u.toFlatObject(e,a,function(h){return h!==Error.prototype},c=>c!=="isAxiosError"),v.call(a,e.message,t,r,n,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const jr=null;function Ae(e){return u.isPlainObject(e)||u.isArray(e)}function it(e){return u.endsWith(e,"[]")?e.slice(0,-2):e}function at(e,t,r){return e?e.concat(t).map(function(s,i){return s=it(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function Nr(e){return u.isArray(e)&&!e.some(Ae)}const Dr=u.toFlatObject(u,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,r){if(!u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=u.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,F){return!u.isUndefined(F[b])});const n=r.metaTokens,s=r.visitor||d,i=r.dots,a=r.indexes,h=(r.Blob||typeof Blob<"u"&&Blob)&&u.isSpecCompliantForm(t);if(!u.isFunction(s))throw new TypeError("visitor must be a function");function l(E){if(E===null)return"";if(u.isDate(E))return E.toISOString();if(!h&&u.isBlob(E))throw new v("Blob is not supported. Use a Buffer instead.");return u.isArrayBuffer(E)||u.isTypedArray(E)?h&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function d(E,b,F){let N=E;if(E&&!F&&typeof E=="object"){if(u.endsWith(b,"{}"))b=n?b:b.slice(0,-2),E=JSON.stringify(E);else if(u.isArray(E)&&Nr(E)||(u.isFileList(E)||u.endsWith(b,"[]"))&&(N=u.toArray(E)))return b=it(b),N.forEach(function(_,he){!(u.isUndefined(_)||_===null)&&t.append(a===!0?at([b],he,i):a===null?b:b+"[]",l(_))}),!1}return Ae(E)?!0:(t.append(at(F,b,i),l(E)),!1)}const m=[],R=Object.assign(Dr,{defaultVisitor:d,convertValue:l,isVisitable:Ae});function O(E,b){if(!u.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(E),u.forEach(E,function(N,H){(!(u.isUndefined(N)||N===null)&&s.call(t,N,u.isString(H)?H.trim():H,b,R))===!0&&O(N,b?b.concat(H):[H])}),m.pop()}}if(!u.isObject(e))throw new TypeError("data must be an object");return O(e),t}function ut(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function _e(e,t){this._pairs=[],e&&ae(e,this,t)}const ct=_e.prototype;ct.append=function(t,r){this._pairs.push([t,r])},ct.toString=function(t){const r=t?function(n){return t.call(this,n,ut)}:ut;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function kr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(e,t,r){if(!t)return e;const n=r&&r.encode||kr,s=r&&r.serialize;let i;if(s?i=s(t,r):i=u.isURLSearchParams(t)?t.toString():new _e(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fr{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){u.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ft=Fr,dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lr=typeof URLSearchParams<"u"?URLSearchParams:_e,Ur=typeof FormData<"u"?FormData:null,Br=typeof Blob<"u"?Blob:null,Ir=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Mr=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),U={isBrowser:!0,classes:{URLSearchParams:Lr,FormData:Ur,Blob:Br},isStandardBrowserEnv:Ir,isStandardBrowserWebWorkerEnv:Mr,protocols:["http","https","file","blob","url","data"]};function Hr(e,t){return ae(e,new U.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return U.isNode&&u.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function qr(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wr(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n<s;n++)i=r[n],t[i]=e[i];return t}function pt(e){function t(r,n,s,i){let a=r[i++];const c=Number.isFinite(+a),h=i>=r.length;return a=!a&&u.isArray(s)?s.length:a,h?(u.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!c):((!s[a]||!u.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],i)&&u.isArray(s[a])&&(s[a]=Wr(s[a])),!c)}if(u.isFormData(e)&&u.isFunction(e.entries)){const r={};return u.forEachEntry(e,(n,s)=>{t(qr(n),s,r,0)}),r}return null}const Vr={"Content-Type":void 0};function zr(e,t,r){if(u.isString(e))try{return(t||JSON.parse)(e),u.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ue={transitional:dt,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=u.isObject(t);if(i&&u.isHTMLForm(t)&&(t=new FormData(t)),u.isFormData(t))return s&&s?JSON.stringify(pt(t)):t;if(u.isArrayBuffer(t)||u.isBuffer(t)||u.isStream(t)||u.isFile(t)||u.isBlob(t))return t;if(u.isArrayBufferView(t))return t.buffer;if(u.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Hr(t,this.formSerializer).toString();if((c=u.isFileList(t))||n.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,h&&new h,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),zr(t)):t}],transformResponse:[function(t){const r=this.transitional||ue.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&u.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(a)throw c.name==="SyntaxError"?v.from(c,v.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};u.forEach(["delete","get","head"],function(t){ue.headers[t]={}}),u.forEach(["post","put","patch"],function(t){ue.headers[t]=u.merge(Vr)});const Te=ue,Jr=u.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$r=e=>{const t={};let r,n,s;return e&&e.split(`
30
- `).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&Jr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},ht=Symbol("internals");function Z(e){return e&&String(e).trim().toLowerCase()}function ce(e){return e===!1||e==null?e:u.isArray(e)?e.map(ce):String(e)}function Yr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Kr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pe(e,t,r,n,s){if(u.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!u.isString(t)){if(u.isString(n))return t.indexOf(n)!==-1;if(u.isRegExp(n))return n.test(t)}}function Gr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Xr(e,t){const r=u.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,a){return this[n].call(this,t,s,i,a)},configurable:!0})})}class le{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(c,h,l){const d=Z(h);if(!d)throw new Error("header name must be a non-empty string");const m=u.findKey(s,d);(!m||s[m]===void 0||l===!0||l===void 0&&s[m]!==!1)&&(s[m||h]=ce(c))}const a=(c,h)=>u.forEach(c,(l,d)=>i(l,d,h));return u.isPlainObject(t)||t instanceof this.constructor?a(t,r):u.isString(t)&&(t=t.trim())&&!Kr(t)?a($r(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=Z(t),t){const n=u.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return Yr(s);if(u.isFunction(r))return r.call(this,s,n);if(u.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Z(t),t){const n=u.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Pe(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(a){if(a=Z(a),a){const c=u.findKey(n,a);c&&(!r||Pe(n,n[c],c,r))&&(delete n[c],s=!0)}}return u.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||Pe(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return u.forEach(this,(s,i)=>{const a=u.findKey(n,i);if(a){r[a]=ce(s),delete r[i];return}const c=t?Gr(i):String(i).trim();c!==i&&delete r[i],r[c]=ce(s),n[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return u.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&u.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
31
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[ht]=this[ht]={accessors:{}}).accessors,s=this.prototype;function i(a){const c=Z(a);n[c]||(Xr(s,a),n[c]=!0)}return u.isArray(t)?t.forEach(i):i(t),this}}le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),u.freezeMethods(le.prototype),u.freezeMethods(le);const M=le;function xe(e,t){const r=this||Te,n=t||r,s=M.from(n.headers);let i=n.data;return u.forEach(e,function(c){i=c.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function mt(e){return!!(e&&e.__CANCEL__)}function ee(e,t,r){v.call(this,e??"canceled",v.ERR_CANCELED,t,r),this.name="CanceledError"}u.inherits(ee,v,{__CANCEL__:!0});function Qr(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new v("Request failed with status code "+r.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Zr=U.isStandardBrowserEnv?function(){return{write:function(r,n,s,i,a,c){const h=[];h.push(r+"="+encodeURIComponent(n)),u.isNumber(s)&&h.push("expires="+new Date(s).toGMTString()),u.isString(i)&&h.push("path="+i),u.isString(a)&&h.push("domain="+a),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function en(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tn(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t){return e&&!en(t)?tn(e,t):t}const rn=U.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(a){const c=u.isString(a)?s(a):a;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}();function nn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function on(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(h){const l=Date.now(),d=n[i];a||(a=l),r[s]=h,n[s]=l;let m=i,R=0;for(;m!==s;)R+=r[m++],m=m%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a<t)return;const O=d&&l-d;return O?Math.round(R*1e3/O):void 0}}function yt(e,t){let r=0;const n=on(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,h=n(c),l=i<=a;r=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:h||void 0,estimated:h&&a&&l?(a-i)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const fe={http:jr,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){let s=e.data;const i=M.from(e.headers).normalize(),a=e.responseType;let c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}u.isFormData(s)&&(U.isStandardBrowserEnv||U.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const O=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(O+":"+E))}const d=Et(e.baseURL,e.url);l.open(e.method.toUpperCase(),lt(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function m(){if(!l)return;const O=M.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:O,config:e,request:l};Qr(function(N){r(N),h()},function(N){n(N),h()},b),l=null}if("onloadend"in l?l.onloadend=m:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(m)},l.onabort=function(){l&&(n(new v("Request aborted",v.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new v("Network Error",v.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||dt;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),n(new v(E,b.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,e,l)),l=null},U.isStandardBrowserEnv){const O=(e.withCredentials||rn(d))&&e.xsrfCookieName&&Zr.read(e.xsrfCookieName);O&&i.set(e.xsrfHeaderName,O)}s===void 0&&i.setContentType(null),"setRequestHeader"in l&&u.forEach(i.toJSON(),function(E,b){l.setRequestHeader(b,E)}),u.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",yt(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",yt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=O=>{l&&(n(!O||O.type?new ee(null,e,l):O),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const R=nn(d);if(R&&U.protocols.indexOf(R)===-1){n(new v("Unsupported protocol "+R+":",v.ERR_BAD_REQUEST,e));return}l.send(s||null)})}};u.forEach(fe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sn={getAdapter:e=>{e=u.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let s=0;s<t&&(r=e[s],!(n=u.isString(r)?fe[r.toLowerCase()]:r));s++);if(!n)throw n===!1?new v(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(u.hasOwnProp(fe,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`);if(!u.isFunction(n))throw new TypeError("adapter is not a function");return n},adapters:fe};function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ee(null,e)}function bt(e){return Ce(e),e.headers=M.from(e.headers),e.data=xe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),sn.getAdapter(e.adapter||Te.adapter)(e).then(function(n){return Ce(e),n.data=xe.call(e,e.transformResponse,n),n.headers=M.from(n.headers),n},function(n){return mt(n)||(Ce(e),n&&n.response&&(n.response.data=xe.call(e,e.transformResponse,n.response),n.response.headers=M.from(n.response.headers))),Promise.reject(n)})}const Rt=e=>e instanceof M?e.toJSON():e;function $(e,t){t=t||{};const r={};function n(l,d,m){return u.isPlainObject(l)&&u.isPlainObject(d)?u.merge.call({caseless:m},l,d):u.isPlainObject(d)?u.merge({},d):u.isArray(d)?d.slice():d}function s(l,d,m){if(u.isUndefined(d)){if(!u.isUndefined(l))return n(void 0,l,m)}else return n(l,d,m)}function i(l,d){if(!u.isUndefined(d))return n(void 0,d)}function a(l,d){if(u.isUndefined(d)){if(!u.isUndefined(l))return n(void 0,l)}else return n(void 0,d)}function c(l,d,m){if(m in t)return n(l,d);if(m in e)return n(void 0,l)}const h={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(l,d)=>s(Rt(l),Rt(d),!0)};return u.forEach(Object.keys(Object.assign({},e,t)),function(d){const m=h[d]||s,R=m(e[d],t[d],d);u.isUndefined(R)&&m!==c||(r[d]=R)}),r}const wt="1.4.0",je={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{je[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const vt={};je.transitional=function(t,r,n){function s(i,a){return"[Axios v"+wt+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,c)=>{if(t===!1)throw new v(s(a," has been removed"+(r?" in "+r:"")),v.ERR_DEPRECATED);return r&&!vt[a]&&(vt[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,c):!0}};function an(e,t,r){if(typeof e!="object")throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],a=t[i];if(a){const c=e[i],h=c===void 0||a(c,i,e);if(h!==!0)throw new v("option "+i+" must be "+h,v.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new v("Unknown option "+i,v.ERR_BAD_OPTION)}}const Ne={assertOptions:an,validators:je},V=Ne.validators;let de=class{constructor(t){this.defaults=t,this.interceptors={request:new ft,response:new ft}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&Ne.assertOptions(n,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean)},!1),s!=null&&(u.isFunction(s)?r.paramsSerializer={serialize:s}:Ne.assertOptions(s,{encode:V.function,serialize:V.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a;a=i&&u.merge(i.common,i[r.method]),a&&u.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),r.headers=M.concat(a,i);const c=[];let h=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(h=h&&b.synchronous,c.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let d,m=0,R;if(!h){const E=[bt.bind(this),void 0];for(E.unshift.apply(E,c),E.push.apply(E,l),R=E.length,d=Promise.resolve(r);m<R;)d=d.then(E[m++],E[m++]);return d}R=c.length;let O=r;for(m=0;m<R;){const E=c[m++],b=c[m++];try{O=E(O)}catch(F){b.call(this,F);break}}try{d=bt.call(this,O)}catch(E){return Promise.reject(E)}for(m=0,R=l.length;m<R;)d=d.then(l[m++],l[m++]);return d}getUri(t){t=$(this.defaults,t);const r=Et(t.baseURL,t.url);return lt(r,t.params,t.paramsSerializer)}};u.forEach(["delete","get","head","options"],function(t){de.prototype[t]=function(r,n){return this.request($(n||{},{method:t,url:r,data:(n||{}).data}))}}),u.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,c){return this.request($(c||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}de.prototype[t]=r(),de.prototype[t+"Form"]=r(!0)});const pe=de;class De{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(s=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(c=>{n.subscribe(c),i=c}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,c){n.reason||(n.reason=new ee(i,a,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new De(function(s){t=s}),cancel:t}}}const un=De;function cn(e){return function(r){return e.apply(null,r)}}function ln(e){return u.isObject(e)&&e.isAxiosError===!0}const ke={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ke).forEach(([e,t])=>{ke[t]=e});const fn=ke;function Ot(e){const t=new pe(e),r=Ye(pe.prototype.request,t);return u.extend(r,pe.prototype,t,{allOwnKeys:!0}),u.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Ot($(e,s))},r}const x=Ot(Te);x.Axios=pe,x.CanceledError=ee,x.CancelToken=un,x.isCancel=mt,x.VERSION=wt,x.toFormData=ae,x.AxiosError=v,x.Cancel=x.CanceledError,x.all=function(t){return Promise.all(t)},x.spread=cn,x.isAxiosError=ln,x.mergeConfig=$,x.AxiosHeaders=M,x.formToJSON=e=>pt(u.isHTMLForm(e)?new FormData(e):e),x.HttpStatusCode=fn,x.default=x;const dn=x,pn={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},gt=j.createContext(pn),hn=({cabinetType:e})=>{const[t,r]=j.useState(null),[n,s]=j.useState(null),[i,a]=j.useState(null),[c,h]=j.useState(null);return j.useEffect(()=>{(async()=>{if(!i||!t||!e)return;const m=await i.post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:t,cabinetType:e});h(m.data)})()},[t,i]),{cabinetType:e,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:c,phoneNumber:t,setPhoneNumber:r,authToken:n,setAuthToken:s,createAxios:(d,m)=>{const R=dn.create({headers:{common:{Authorization:d}}});R.defaults.baseURL=m,a(R)}}},mn=({children:e,cabinetType:t})=>{const r=hn({cabinetType:t});return $e.jsx(gt.Provider,{value:{...r,cabinetType:t},children:e})};I.AppContext=gt,I.AppProvider=mn,I.PopupProvider=Xt,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
29
+ Check the top-level render call using <`+t+">.")}return r}}function we(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+j(e._owner.type)+"."),I(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),I(null)}}function Ae(e,r){{if(typeof e!="object")return;if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];Q(n)&&we(n,r)}else if(Q(e))e._store&&(e._store.validated=!0);else if(e){var u=$e(e);if(typeof u=="function"&&u!==e.entries)for(var s=u.call(e),i;!(i=s.next()).done;)Q(i.value)&&we(i.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===h||r.$$typeof===_))t=r.propTypes;else return;if(t){var n=j(r);Qe(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Z){Z=!0;var u=j(r);P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){I(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),I(null);break}}e.ref!==null&&(I(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),I(null))}}function Se(e,r,t,n,u,s){{var i=qe(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" 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 m=sr(u);m?a+=m:a+=je();var d;e===null?d="null":Array.isArray(e)?d="array":e!==void 0&&e.$$typeof===T?(d="<"+(j(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var p=ur(e,r,t,u,s);if(p==null)return p;if(i){var C=r.children;if(C!==void 0)if(n)if(Array.isArray(C)){for(var Y=0;Y<C.length;Y++)Ae(C[Y],e);Object.freeze&&Object.freeze(C)}else P("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 Ae(C,e)}return e===f.Fragment?lr(p):fr(p),p}}function dr(e,r,t){return Se(e,r,t,!0)}function vr(e,r,t){return Se(e,r,t,!1)}var pr=vr,gr=dr;f.jsx=pr,f.jsxs=gr}()}(G)),G}process.env.NODE_ENV==="production"?B.exports=Ie():B.exports=Ye();var ae=B.exports;const We={popups:[]},Le=O.createContext(We),Ne=()=>{const[f,E]=O.useState([]);return{popups:f}},Ue=({children:f})=>{const E=Ne();return ae.jsx(Le.Provider,{value:E,children:f})},Ve={cabinetType:null,cabinetIsLoading:!0,apiAxios:null,phoneNumber:null,setPhoneNumber:null,cabinetSettings:null,authToken:null,setAuthToken:null,createAxios:null},ie=O.createContext(Ve),Fe=({cabinetType:f})=>{const[E,R]=O.useState(null),[T,A]=O.useState(null),[g,x]=O.useState(null),[c,l]=O.useState(null);return O.useEffect(()=>{(async()=>{if(!g||!E||!f)return;const b=await g.post("/externalCustomerCabinet/cabinetInfo",{phoneNumber:E,cabinetType:f});l(b.data)})()},[E,g]),{cabinetType:f,apiAxios:null,cabinetIsLoading:!1,cabinetSettings:c,phoneNumber:E,setPhoneNumber:R,authToken:T,setAuthToken:A,createAxios:(o,b)=>{const _=De.create({headers:{common:{Authorization:o}}});_.defaults.baseURL=b,x(_)}}},Me=({children:f,cabinetType:E})=>{const R=Fe({cabinetType:E});return ae.jsx(ie.Provider,{value:{...R,cabinetType:E},children:f})};y.AppContext=ie,y.AppProvider=Me,y.PopupProvider=Ue,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bonuspluscomponents",
3
3
  "private": false,
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -32,6 +32,7 @@
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^17.0.2",
35
- "react-dom": "^17.0.2"
35
+ "react-dom": "^17.0.2",
36
+ "axios": "^1.4.0"
36
37
  }
37
38
  }