@simpoobusiness/sdk 1.0.8 → 1.0.9

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,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom/client")):"function"==typeof define&&define.amd?define(["exports","react","react-dom/client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SimpooSDK={},e.React,e.ReactDOM)}(this,function(e,t,n){"use strict";function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=r(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s,l={exports:{}},c={};var u,d,f=(s||(s=1,l.exports=function(){if(a)return c;a=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return c.Fragment=t,c.jsx=n,c.jsxs=n,c}()),l.exports),p={exports:{}},g={};var m=(d||(d=1,p.exports=function(){if(u)return g;u=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return g.useSyncExternalStoreWithSelector=function(e,t,l,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,n(r,e))return t;var a=c(e);return void 0!==u&&u(t,a)?(r=e,t):(r=e,o=a)}var r,o,i=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,l,c,u]);var p=r(e,d[0],d[1]);return i(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},g}()),p.exports);var h={notify(){},get:()=>[]};var y=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),b=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),v=(()=>y||b?o.useLayoutEffect:o.useEffect)(),w=Symbol.for("react-redux-context"),x="undefined"!=typeof globalThis?globalThis:{};function S(){if(!o.createContext)return{};const e=x[w]??=new Map;let t=e.get(o.createContext);return t||(t=o.createContext(null),e.set(o.createContext,t)),t}var C=S();var R=function(e){const{children:t,context:n,serverState:r,store:i}=e,a=o.useMemo(()=>{const e=function(e){let t,n=h,r=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){r++,t||(t=e.subscribe(i),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=h)}const l={addNestedSub:function(e){a();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return l}(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),s=o.useMemo(()=>i.getState(),[i]);v(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=n||C;return o.createElement(l.Provider,{value:a},t)};function k(e=C){return function(){return o.useContext(e)}}var E=k();function _(e=C){const t=e===C?E:k(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var P=_();function O(e=C){const t=e===C?P:_(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var A=O(),M=(e,t)=>e===t;function T(e=C){const t=e===C?E:k(e),n=(e,n={})=>{const{equalityFn:r=M}="function"==typeof n?{equalityFn:n}:n,i=t(),{store:a,subscription:s,getServerState:l}=i;o.useRef(!0);const c=o.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=m.useSyncExternalStoreWithSelector(s.addNestedSub,a.getState,l||a.getState,c,r);return o.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var j=T();function N(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var F=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),I=()=>Math.random().toString(36).substring(7).split("").join("."),D={INIT:`@@redux/INIT${I()}`,REPLACE:`@@redux/REPLACE${I()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${I()}`};function L(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function $(e,t,n){if("function"!=typeof e)throw new Error(N(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(N(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(N(1));return n($)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(l)throw new Error(N(3));return o}function d(e){if("function"!=typeof e)throw new Error(N(4));if(l)throw new Error(N(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(N(6));t=!1,c(),a.delete(n),i=null}}}function f(e){if(!L(e))throw new Error(N(7));if(void 0===e.type)throw new Error(N(8));if("string"!=typeof e.type)throw new Error(N(17));if(l)throw new Error(N(9));try{l=!0,o=r(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}f({type:D.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(N(10));r=e,f({type:D.REPLACE})},[F]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(N(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[F](){return this}}}}}function z(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:D.INIT}))throw new Error(N(12));if(void 0===n(void 0,{type:D.PROBE_UNKNOWN_ACTION()}))throw new Error(N(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(N(14));a[s]=u,i=i||u!==c}return i=i||r.length!==Object.keys(e).length,i?a:e}}function B(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var V=Symbol.for("immer-nothing"),H=Symbol.for("immer-draftable"),G=Symbol.for("immer-state");function U(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var W=Object.getPrototypeOf;function q(e){return!!e&&!!e[G]}function K(e){return!!e&&(Y(e)||Array.isArray(e)||!!e[H]||!!e.constructor?.[H]||te(e)||ne(e))}var X=Object.prototype.constructor.toString();function Y(e){if(!e||"object"!=typeof e)return!1;const t=W(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===X}function J(e,t){0===Z(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Z(e){const t=e[G];return t?t.type_:Array.isArray(e)?1:te(e)?2:ne(e)?3:0}function Q(e,t){return 2===Z(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,n){const r=Z(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function te(e){return e instanceof Map}function ne(e){return e instanceof Set}function re(e){return e.copy_||e.base_}function oe(e,t){if(te(e))return new Map(e);if(ne(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Y(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[G];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(W(e),t)}{const t=W(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function ie(e,t=!1){return se(e)||q(e)||!K(e)||(Z(e)>1&&(e.set=e.add=e.clear=e.delete=ae),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>ie(t,!0))),e}function ae(){U(2)}function se(e){return Object.isFrozen(e)}var le,ce={};function ue(e){const t=ce[e];return t||U(0),t}function de(){return le}function fe(e,t){t&&(ue("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pe(e){ge(e),e.drafts_.forEach(he),e.drafts_=null}function ge(e){e===le&&(le=e.parent_)}function me(e){return le={drafts_:[],parent_:le,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function he(e){const t=e[G];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ye(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[G].modified_&&(pe(t),U(4)),K(e)&&(e=be(t,e),t.parent_||we(t,e)),t.patches_&&ue("Patches").generateReplacementPatches_(n[G].base_,e,t.patches_,t.inversePatches_)):e=be(t,n,[]),pe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==V?e:void 0}function be(e,t,n){if(se(t))return t;const r=t[G];if(!r)return J(t,(o,i)=>ve(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return we(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),J(o,(o,a)=>ve(e,r,t,o,a,n,i)),we(e,t,!1),n&&e.patches_&&ue("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ve(e,t,n,r,o,i,a){if(q(o)){const a=be(e,o,i&&t&&3!==t.type_&&!Q(t.assigned_,r)?i.concat(r):void 0);if(ee(n,r,a),!q(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(K(o)&&!se(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;be(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||we(e,o)}}function we(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ie(t,n)}var xe={get(e,t){if(t===G)return e;const n=re(e);if(!Q(n,t))return function(e,t,n){const r=Re(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!K(r)?r:r===Ce(e.base_,t)?(Ee(e),e.copy_[t]=_e(r,e)):r},has:(e,t)=>t in re(e),ownKeys:e=>Reflect.ownKeys(re(e)),set(e,t,n){const r=Re(re(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ce(re(e),t),a=r?.[G];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||Q(e.base_,t)))return!0;Ee(e),ke(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ce(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ee(e),ke(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=re(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){U(11)},getPrototypeOf:e=>W(e.base_),setPrototypeOf(){U(12)}},Se={};function Ce(e,t){const n=e[G];return(n?re(n):e)[t]}function Re(e,t){if(!(t in e))return;let n=W(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=W(n)}}function ke(e){e.modified_||(e.modified_=!0,e.parent_&&ke(e.parent_))}function Ee(e){e.copy_||(e.copy_=oe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}J(xe,(e,t)=>{Se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Se.deleteProperty=function(e,t){return Se.set.call(this,e,t,void 0)},Se.set=function(e,t,n){return xe.set.call(this,e[0],t,n,e[0])};function _e(e,t){const n=te(e)?ue("MapSet").proxyMap_(e,t):ne(e)?ue("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:de(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=xe;n&&(o=[r],i=Se);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:de()).drafts_.push(n),n}function Pe(e){if(!K(e)||se(e))return e;const t=e[G];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=oe(e,t.scope_.immer_.useStrictShallowCopy_)}else n=oe(e,!0);return J(n,(e,t)=>{ee(n,e,Pe(t))}),t&&(t.finalized_=!1),n}var Oe=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&U(6),void 0!==n&&"function"!=typeof n&&U(7),K(e)){const o=me(this),i=_e(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?pe(o):ge(o)}return fe(o,n),ye(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===V&&(r=void 0),this.autoFreeze_&&ie(r,!0),n){const t=[],o=[];ue("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}U(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){K(e)||U(8),q(e)&&(e=function(e){q(e)||U(10);return Pe(e)}(e));const t=me(this),n=_e(e,void 0);return n[G].isManual_=!0,ge(t),n}finishDraft(e,t){const n=e&&e[G];n&&n.isManual_||U(9);const{scope_:r}=n;return fe(r,t),ye(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=ue("Patches").applyPatches_;return q(e)?r(e,t):this.produce(e,e=>r(e,t))}},Ae=Oe.produce;function Me(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseStrictShallowCopy.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);var Te=Me(),je=Me,Ne="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?B:B.apply(null,arguments)};function Fe(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(qe(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return L(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var Ie=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function De(e){return K(e)?Ae(e,()=>{}):e}function Le(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var $e=e=>t=>{setTimeout(t,e)},ze=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Ie(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:$e(10):"callback"===e.type?e.queueNotification:$e(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function Be(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(qe(28));if(r in t)throw new Error(qe(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var Ve=Symbol.for("rtk-slice-createasyncthunk");function He(e,t){return`${e}/${t}`}function Ge({creators:e}={}){const t=e?.asyncThunk?.[Ve];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(qe(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(qe(12));if(n in a.sliceCaseReducersByType)throw new Error(qe(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?Be(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=Be(t);if("function"==typeof e)n=()=>De(e());else{const t=De(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,n)=>{if(n){if(q(e)){const r=n(e,t);return void 0===r?e:r}if(K(e))return Ae(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return a.getInitialState=n,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=o[r],a={reducerName:r,type:He(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(qe(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Fe(e,a):Fe(e))}(a,i,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(qe(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||We,pending:s||We,rejected:l||We,settled:c||We})}(a,i,s,t)});const c=e=>e,u=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function g(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=Le(d,r,g)),o}function o(t=c){const r=Le(u,n,()=>new WeakMap);return Le(r,t,()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Ue(i,t,()=>Le(d,t,g),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:n,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:g,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...h,...m(o,!0)}}};return h}}function Ue(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}function We(){}function qe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Ke=Ge()({name:"app",initialState:{currentPage:1,perview:10},reducers:{setCurrentPage:(e,t)=>{e.currentPage=t.payload},setPerview:(e,t)=>{e.perview=t.payload}}}),{setCurrentPage:Xe,setPerview:Ye}=Ke.actions;const Je=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new Ie;return t&&("boolean"==typeof t?i.push(Te):i.push(je(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!L(n))throw new Error(qe(1));s=z(n)}l="function"==typeof r?r(t):t();let c=B;o&&(c=Ne({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(N(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=B(...s)(o.dispatch),{...o,dispatch:i}}}(...l),d=ze(u);return $(s,i,c(..."function"==typeof a?a(d):d()))}({reducer:{app:Ke.reducer}}),Ze=t.createContext(null),Qe=({apiKey:e,children:t})=>"undefined"==typeof window?null:f.jsx(Ze.Provider,{value:{apiKey:e},children:f.jsx(R,{store:Je,children:t})});function et(e,t){return function(){return e.apply(t,arguments)}}const{toString:tt}=Object.prototype,{getPrototypeOf:nt}=Object,{iterator:rt,toStringTag:ot}=Symbol,it=(at=Object.create(null),e=>{const t=tt.call(e);return at[t]||(at[t]=t.slice(8,-1).toLowerCase())});var at;const st=e=>(e=e.toLowerCase(),t=>it(t)===e),lt=e=>t=>typeof t===e,{isArray:ct}=Array,ut=lt("undefined");function dt(e){return null!==e&&!ut(e)&&null!==e.constructor&&!ut(e.constructor)&&gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=st("ArrayBuffer");const pt=lt("string"),gt=lt("function"),mt=lt("number"),ht=e=>null!==e&&"object"==typeof e,yt=e=>{if("object"!==it(e))return!1;const t=nt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ot in e||rt in e)},bt=st("Date"),vt=st("File"),wt=st("Blob"),xt=st("FileList"),St=st("URLSearchParams"),[Ct,Rt,kt,Et]=["ReadableStream","Request","Response","Headers"].map(st);function _t(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ct(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(dt(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Pt(e,t){if(dt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,At=e=>!ut(e)&&e!==Ot;const Mt=(Tt="undefined"!=typeof Uint8Array&&nt(Uint8Array),e=>Tt&&e instanceof Tt);var Tt;const jt=st("HTMLFormElement"),Nt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ft=st("RegExp"),It=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_t(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Dt=st("AsyncFunction"),Lt=($t="function"==typeof setImmediate,zt=gt(Ot.postMessage),$t?setImmediate:zt?((e,t)=>(Ot.addEventListener("message",({source:n,data:r})=>{n===Ot&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Ot.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var $t,zt;const Bt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ot):"undefined"!=typeof process&&process.nextTick||Lt;var Vt={isArray:ct,isArrayBuffer:ft,isBuffer:dt,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||gt(e.append)&&("formdata"===(t=it(e))||"object"===t&&gt(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ft(e.buffer),t},isString:pt,isNumber:mt,isBoolean:e=>!0===e||!1===e,isObject:ht,isPlainObject:yt,isEmptyObject:e=>{if(!ht(e)||dt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ct,isRequest:Rt,isResponse:kt,isHeaders:Et,isUndefined:ut,isDate:bt,isFile:vt,isBlob:wt,isRegExp:Ft,isFunction:gt,isStream:e=>ht(e)&&gt(e.pipe),isURLSearchParams:St,isTypedArray:Mt,isFileList:xt,forEach:_t,merge:function e(){const{caseless:t}=At(this)&&this||{},n={},r=(r,o)=>{const i=t&&Pt(n,o)||o;yt(n[i])&&yt(r)?n[i]=e(n[i],r):yt(r)?n[i]=e({},r):ct(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_t(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(_t(t,(t,r)=>{n&&gt(t)?e[r]=et(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&nt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:it,kindOfTest:st,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ct(e))return e;let t=e.length;if(!mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[rt]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:jt,hasOwnProperty:Nt,hasOwnProp:Nt,reduceDescriptors:It,freezeMethods:e=>{It(e,(t,n)=>{if(gt(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];gt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ct(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Pt,global:Ot,isContextDefined:At,isSpecCompliantForm:function(e){return!!(e&&gt(e.append)&&"FormData"===e[ot]&&e[rt])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ht(e)){if(t.indexOf(e)>=0)return;if(dt(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ct(e)?[]:{};return _t(e,(e,t)=>{const i=n(e,r+1);!ut(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Dt,isThenable:e=>e&&(ht(e)||gt(e))&&gt(e.then)&&gt(e.catch),setImmediate:Lt,asap:Bt,isIterable:e=>null!=e&&gt(e[rt])};function Ht(e,t,n,r,o){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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Vt.inherits(Ht,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:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const Gt=Ht.prototype,Ut={};["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=>{Ut[e]={value:e}}),Object.defineProperties(Ht,Ut),Object.defineProperty(Gt,"isAxiosError",{value:!0}),Ht.from=(e,t,n,r,o,i)=>{const a=Object.create(Gt);return Vt.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Ht.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Wt(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function qt(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Kt(e,t,n){return e?e.concat(t).map(function(e,t){return e=qt(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Xt=Vt.toFlatObject(Vt,{},null,function(e){return/^is[A-Z]/.test(e)});function Yt(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Vt.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Vt.isDate(e))return e.toISOString();if(Vt.isBoolean(e))return e.toString();if(!s&&Vt.isBlob(e))throw new Ht("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(e)||Vt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Vt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Vt.isArray(e)&&function(e){return Vt.isArray(e)&&!e.some(Wt)}(e)||(Vt.isFileList(e)||Vt.endsWith(n,"[]"))&&(s=Vt.toArray(e)))return n=qt(n),s.forEach(function(e,r){!Vt.isUndefined(e)&&null!==e&&t.append(!0===a?Kt([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Wt(e)||(t.append(Kt(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xt,{defaultVisitor:c,convertValue:l,isVisitable:Wt});if(!Vt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Vt.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Vt.forEach(n,function(n,i){!0===(!(Vt.isUndefined(n)||null===n)&&o.call(t,n,Vt.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Jt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Zt(e,t){this._pairs=[],e&&Yt(e,this,t)}const Qt=Zt.prototype;function en(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tn(e,t,n){if(!t)return e;const r=n&&n.encode||en;Vt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Vt.isURLSearchParams(t)?t.toString():new Zt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Qt.append=function(e,t){this._pairs.push([e,t])},Qt.toString=function(e){const t=e?function(t){return e.call(this,t,Jt)}:Jt;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class nn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Vt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const an="undefined"!=typeof window&&"undefined"!=typeof document,sn="object"==typeof navigator&&navigator||void 0,ln=an&&(!sn||["ReactNative","NativeScript","NS"].indexOf(sn.product)<0),cn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,un=an&&window.location.href||"http://localhost";var dn={...Object.freeze({__proto__:null,hasBrowserEnv:an,hasStandardBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:cn,navigator:sn,origin:un}),...on};function fn(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Vt.isArray(r)?r.length:i,s)return Vt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Vt.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Vt.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(e,r)=>{t(function(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const pn={transitional:rn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Vt.isObject(e);o&&Vt.isHTMLForm(e)&&(e=new FormData(e));if(Vt.isFormData(e))return r?JSON.stringify(fn(e)):e;if(Vt.isArrayBuffer(e)||Vt.isBuffer(e)||Vt.isStream(e)||Vt.isFile(e)||Vt.isBlob(e)||Vt.isReadableStream(e))return e;if(Vt.isArrayBufferView(e))return e.buffer;if(Vt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Yt(e,new dn.classes.URLSearchParams,{visitor:function(e,t,n,r){return dn.isNode&&Vt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Vt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Yt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Vt.isResponse(e)||Vt.isReadableStream(e))return e;if(e&&Vt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ht.from(e,Ht.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dn.classes.FormData,Blob:dn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{pn.headers[e]={}});const gn=Vt.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"]);const mn=Symbol("internals");function hn(e){return e&&String(e).trim().toLowerCase()}function yn(e){return!1===e||null==e?e:Vt.isArray(e)?e.map(yn):String(e)}function bn(e,t,n,r,o){return Vt.isFunction(r)?r.call(this,t,n):(o&&(t=n),Vt.isString(t)?Vt.isString(r)?-1!==t.indexOf(r):Vt.isRegExp(r)?r.test(t):void 0:void 0)}let vn=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=hn(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=yn(e))}const i=(e,t)=>Vt.forEach(e,(e,n)=>o(e,n,t));if(Vt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Vt.isObject(e)&&Vt.isIterable(e)){let n,r,o={};for(const t of e){if(!Vt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Vt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=hn(e)){const n=Vt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Vt.isFunction(t))return t.call(this,e,n);if(Vt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=hn(e)){const n=Vt.findKey(this,e);return!(!n||void 0===this[n]||t&&!bn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=hn(e)){const o=Vt.findKey(n,e);!o||t&&!bn(0,n[o],o,t)||(delete n[o],r=!0)}}return Vt.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!bn(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Vt.forEach(this,(r,o)=>{const i=Vt.findKey(n,o);if(i)return t[i]=yn(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=yn(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Vt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[mn]=this[mn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=hn(e);t[r]||(!function(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Vt.isArray(e)?e.forEach(r):r(e),this}};function wn(e,t){const n=this||pn,r=t||n,o=vn.from(r.headers);let i=r.data;return Vt.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xn(e){return!(!e||!e.__CANCEL__)}function Sn(e,t,n){Ht.call(this,null==e?"canceled":e,Ht.ERR_CANCELED,t,n),this.name="CanceledError"}function Cn(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ht("Request failed with status code "+n.status,[Ht.ERR_BAD_REQUEST,Ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}vn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vt.reduceDescriptors(vn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Vt.freezeMethods(vn),Vt.inherits(Sn,Ht,{__CANCEL__:!0});const Rn=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},kn=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},En=e=>(...t)=>Vt.asap(()=>e(...t));var _n=dn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dn.origin),dn.navigator&&/(msie|trident)/i.test(dn.navigator.userAgent)):()=>!0,Pn=dn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&a.push("path="+r),Vt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function On(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const An=e=>e instanceof vn?{...e}:e;function Mn(e,t){t=t||{};const n={};function r(e,t,n,r){return Vt.isPlainObject(e)&&Vt.isPlainObject(t)?Vt.merge.call({caseless:r},e,t):Vt.isPlainObject(t)?Vt.merge({},t):Vt.isArray(t)?t.slice():t}function o(e,t,n,o){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Vt.isUndefined(t))return r(void 0,t)}function a(e,t){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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:s,headers:(e,t,n)=>o(An(e),An(t),0,!0)};return Vt.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);Vt.isUndefined(a)&&i!==s||(n[r]=a)}),n}var Tn=e=>{const t=Mn({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=vn.from(s),t.url=tn(On(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Vt.isFormData(r))if(dn.hasStandardBrowserEnv||dn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(dn.hasStandardBrowserEnv&&(o&&Vt.isFunction(o)&&(o=o(t)),o||!1!==o&&_n(t.url))){const e=i&&a&&Pn.read(a);e&&s.set(i,e)}return t};var jn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Tn(e);let o=r.data;const i=vn.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function g(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function h(){if(!m)return;const r=vn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Cn(function(e){t(e),g()},function(e){n(e),g()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(h)},m.onabort=function(){m&&(n(new Ht("Request aborted",Ht.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Ht("Network Error",Ht.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||rn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ht(t,o.clarifyTimeoutError?Ht.ETIMEDOUT:Ht.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Vt.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Vt.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Rn(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Rn(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Sn(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===dn.protocols.indexOf(y)?n(new Ht("Unsupported protocol "+y+":",Ht.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Nn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ht?t:new Sn(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ht(`timeout ${t} of ms exceeded`,Ht.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Vt.asap(a),s}},Fn=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},In=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Dn=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of In(e))yield*Fn(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ln="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$n=Ln&&"function"==typeof ReadableStream,zn=Ln&&("function"==typeof TextEncoder?(Bn=new TextEncoder,e=>Bn.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Bn;const Vn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Hn=$n&&Vn(()=>{let e=!1;const t=new Request(dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Gn=$n&&Vn(()=>Vt.isReadableStream(new Response("").body)),Un={stream:Gn&&(e=>e.body)};var Wn;Ln&&(Wn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Un[e]&&(Un[e]=Vt.isFunction(Wn[e])?t=>t[e]():(t,n)=>{throw new Ht(`Response type '${e}' is not supported`,Ht.ERR_NOT_SUPPORT,n)})}));const qn=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e)){const t=new Request(dn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e)?e.byteLength:(Vt.isURLSearchParams(e)&&(e+=""),Vt.isString(e)?(await zn(e)).byteLength:void 0)})(t):n};var Kn=Ln&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Tn(e);c=c?(c+"").toLowerCase():"text";let p,g=Nn([o,i&&i.toAbortSignal()],a);const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(l&&Hn&&"get"!==n&&"head"!==n&&0!==(h=await qn(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Vt.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=kn(h,Rn(En(l)));r=Dn(n.body,65536,e,t)}}Vt.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p,f);const a=Gn&&("stream"===c||"response"===c);if(Gn&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Vt.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&kn(t,Rn(En(s),!0))||[];i=new Response(Dn(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}c=c||"text";let y=await Un[Vt.findKey(Un,c)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{Cn(t,n,{data:y,headers:vn.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Ht("Network Error",Ht.ERR_NETWORK,e,p),{cause:t.cause||t});throw Ht.from(t,t&&t.code,e,p)}});const Xn={http:null,xhr:jn,fetch:Kn};Vt.forEach(Xn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Yn=e=>`- ${e}`,Jn=e=>Vt.isFunction(e)||null===e||!1===e;var Zn=e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Jn(n)&&(r=Xn[(t=String(n)).toLowerCase()],void 0===r))throw new Ht(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ht("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Yn).join("\n"):" "+Yn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Qn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sn(null,e)}function er(e){Qn(e),e.headers=vn.from(e.headers),e.data=wn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zn(e.adapter||pn.adapter)(e).then(function(t){return Qn(e),t.data=wn.call(e,e.transformResponse,t),t.headers=vn.from(t.headers),t},function(t){return xn(t)||(Qn(e),t&&t.response&&(t.response.data=wn.call(e,e.transformResponse,t.response),t.response.headers=vn.from(t.response.headers))),Promise.reject(t)})}const tr="1.11.0",nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rr={};nr.transitional=function(e,t,n){function r(e,t){return"[Axios v"+tr+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ht(r(o," has been removed"+(t?" in "+t:"")),Ht.ERR_DEPRECATED);return t&&!rr[o]&&(rr[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},nr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var or={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ht("options must be an object",Ht.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ht("option "+i+" must be "+n,Ht.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ht("Unknown option "+i,Ht.ERR_BAD_OPTION)}},validators:nr};const ir=or.validators;let ar=class{constructor(e){this.defaults=e||{},this.interceptors={request:new nn,response:new nn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Mn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&or.assertOptions(n,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),null!=r&&(Vt.isFunction(r)?t.paramsSerializer={serialize:r}:or.assertOptions(r,{encode:ir.function,serialize:ir.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),or.assertOptions(t,{baseUrl:ir.spelling("baseURL"),withXsrfToken:ir.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vt.merge(o.common,o[t.method]);o&&Vt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=vn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[er.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=er.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return tn(On((e=Mn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Vt.forEach(["delete","get","head","options"],function(e){ar.prototype[e]=function(t,n){return this.request(Mn(n||{},{method:e,url:t,data:(n||{}).data}))}}),Vt.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Mn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ar.prototype[e]=t(),ar.prototype[e+"Form"]=t(!0)});const sr={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(sr).forEach(([e,t])=>{sr[t]=e});const lr=function e(t){const n=new ar(t),r=et(ar.prototype.request,n);return Vt.extend(r,ar.prototype,n,{allOwnKeys:!0}),Vt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Mn(t,n))},r}(pn);lr.Axios=ar,lr.CanceledError=Sn,lr.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Sn(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lr.isCancel=xn,lr.VERSION=tr,lr.toFormData=Yt,lr.AxiosError=Ht,lr.Cancel=lr.CanceledError,lr.all=function(e){return Promise.all(e)},lr.spread=function(e){return function(t){return e.apply(null,t)}},lr.isAxiosError=function(e){return Vt.isObject(e)&&!0===e.isAxiosError},lr.mergeConfig=Mn,lr.AxiosHeaders=vn,lr.formToJSON=e=>fn(Vt.isHTMLForm(e)?new FormData(e):e),lr.getAdapter=Zn,lr.HttpStatusCode=sr,lr.default=lr;const{Axios:cr,AxiosError:ur,CanceledError:dr,isCancel:fr,CancelToken:pr,VERSION:gr,all:mr,Cancel:hr,isAxiosError:yr,spread:br,toFormData:vr,AxiosHeaders:wr,HttpStatusCode:xr,formToJSON:Sr,getAdapter:Cr,mergeConfig:Rr}=lr;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom/client")):"function"==typeof define&&define.amd?define(["exports","react","react-dom/client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).SimpooSDK={},e.React,e.ReactDOM$1)}(this,function(e,t,n){"use strict";function r(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=r(t);function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a,s,l={exports:{}},c={};var u,d,f=(s||(s=1,l.exports=function(){if(a)return c;a=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(t,n,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==n.key&&(o=""+n.key),"key"in n)for(var i in r={},n)"key"!==i&&(r[i]=n[i]);else r=n;return n=r.ref,{$$typeof:e,type:t,key:o,ref:void 0!==n?n:null,props:r}}return c.Fragment=t,c.jsx=n,c.jsxs=n,c}()),l.exports),p={exports:{}},g={};var m=(d||(d=1,p.exports=function(){if(u)return g;u=1;var e=t,n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return g.useSyncExternalStoreWithSelector=function(e,t,l,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,n(r,e))return t;var a=c(e);return void 0!==u&&u(t,a)?(r=e,t):(r=e,o=a)}var r,o,i=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,l,c,u]);var p=r(e,d[0],d[1]);return i(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},g}()),p.exports);var h={notify(){},get:()=>[]};var y=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),b=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),v=(()=>y||b?o.useLayoutEffect:o.useEffect)(),w=Symbol.for("react-redux-context"),x="undefined"!=typeof globalThis?globalThis:{};function S(){if(!o.createContext)return{};const e=x[w]??=new Map;let t=e.get(o.createContext);return t||(t=o.createContext(null),e.set(o.createContext,t)),t}var C=S();var R=function(e){const{children:t,context:n,serverState:r,store:i}=e,a=o.useMemo(()=>{const e=function(e){let t,n=h,r=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){r++,t||(t=e.subscribe(i),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function s(){r--,t&&0===r&&(t(),t=void 0,n.clear(),n=h)}const l={addNestedSub:function(e){a();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),s())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>n};return l}(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),s=o.useMemo(()=>i.getState(),[i]);v(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=n||C;return o.createElement(l.Provider,{value:a},t)};function k(e=C){return function(){return o.useContext(e)}}var E=k();function _(e=C){const t=e===C?E:k(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var P=_();function O(e=C){const t=e===C?P:_(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var A=O(),M=(e,t)=>e===t;function T(e=C){const t=e===C?E:k(e),n=(e,n={})=>{const{equalityFn:r=M}="function"==typeof n?{equalityFn:n}:n,i=t(),{store:a,subscription:s,getServerState:l}=i;o.useRef(!0);const c=o.useCallback({[e.name]:t=>e(t)}[e.name],[e]),u=m.useSyncExternalStoreWithSelector(s.addNestedSub,a.getState,l||a.getState,c,r);return o.useDebugValue(u),u};return Object.assign(n,{withTypes:()=>n}),n}var j=T();function N(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var F=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),I=()=>Math.random().toString(36).substring(7).split("").join("."),D={INIT:`@@redux/INIT${I()}`,REPLACE:`@@redux/REPLACE${I()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${I()}`};function L(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function $(e,t,n){if("function"!=typeof e)throw new Error(N(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(N(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(N(1));return n($)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(l)throw new Error(N(3));return o}function d(e){if("function"!=typeof e)throw new Error(N(4));if(l)throw new Error(N(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(N(6));t=!1,c(),a.delete(n),i=null}}}function f(e){if(!L(e))throw new Error(N(7));if(void 0===e.type)throw new Error(N(8));if("string"!=typeof e.type)throw new Error(N(17));if(l)throw new Error(N(9));try{l=!0,o=r(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}f({type:D.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(N(10));r=e,f({type:D.REPLACE})},[F]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(N(11));function n(){const e=t;e.next&&e.next(u())}n();return{unsubscribe:e(n)}},[F](){return this}}}}}function z(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}const r=Object.keys(n);let o;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:D.INIT}))throw new Error(N(12));if(void 0===n(void 0,{type:D.PROBE_UNKNOWN_ACTION()}))throw new Error(N(13))})}(n)}catch(e){o=e}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<r.length;o++){const s=r[o],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(N(14));a[s]=u,i=i||u!==c}return i=i||r.length!==Object.keys(e).length,i?a:e}}function B(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}var V=Symbol.for("immer-nothing"),H=Symbol.for("immer-draftable"),G=Symbol.for("immer-state");function U(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var W=Object.getPrototypeOf;function q(e){return!!e&&!!e[G]}function K(e){return!!e&&(Y(e)||Array.isArray(e)||!!e[H]||!!e.constructor?.[H]||te(e)||ne(e))}var X=Object.prototype.constructor.toString();function Y(e){if(!e||"object"!=typeof e)return!1;const t=W(e);if(null===t)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===X}function J(e,t){0===Z(e)?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Z(e){const t=e[G];return t?t.type_:Array.isArray(e)?1:te(e)?2:ne(e)?3:0}function Q(e,t){return 2===Z(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,n){const r=Z(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function te(e){return e instanceof Map}function ne(e){return e instanceof Set}function re(e){return e.copy_||e.base_}function oe(e,t){if(te(e))return new Map(e);if(ne(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Y(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[G];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){const o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(W(e),t)}{const t=W(e);if(null!==t&&n)return{...e};const r=Object.create(t);return Object.assign(r,e)}}function ie(e,t=!1){return se(e)||q(e)||!K(e)||(Z(e)>1&&(e.set=e.add=e.clear=e.delete=ae),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>ie(t,!0))),e}function ae(){U(2)}function se(e){return Object.isFrozen(e)}var le,ce={};function ue(e){const t=ce[e];return t||U(0),t}function de(){return le}function fe(e,t){t&&(ue("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function pe(e){ge(e),e.drafts_.forEach(he),e.drafts_=null}function ge(e){e===le&&(le=e.parent_)}function me(e){return le={drafts_:[],parent_:le,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function he(e){const t=e[G];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ye(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[G].modified_&&(pe(t),U(4)),K(e)&&(e=be(t,e),t.parent_||we(t,e)),t.patches_&&ue("Patches").generateReplacementPatches_(n[G].base_,e,t.patches_,t.inversePatches_)):e=be(t,n,[]),pe(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==V?e:void 0}function be(e,t,n){if(se(t))return t;const r=t[G];if(!r)return J(t,(o,i)=>ve(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return we(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let o=t,i=!1;3===r.type_&&(o=new Set(t),t.clear(),i=!0),J(o,(o,a)=>ve(e,r,t,o,a,n,i)),we(e,t,!1),n&&e.patches_&&ue("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function ve(e,t,n,r,o,i,a){if(q(o)){const a=be(e,o,i&&t&&3!==t.type_&&!Q(t.assigned_,r)?i.concat(r):void 0);if(ee(n,r,a),!q(a))return;e.canAutoFreeze_=!1}else a&&n.add(o);if(K(o)&&!se(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;be(e,o),t&&t.scope_.parent_||"symbol"==typeof r||!Object.prototype.propertyIsEnumerable.call(n,r)||we(e,o)}}function we(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ie(t,n)}var xe={get(e,t){if(t===G)return e;const n=re(e);if(!Q(n,t))return function(e,t,n){const r=Re(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}(e,n,t);const r=n[t];return e.finalized_||!K(r)?r:r===Ce(e.base_,t)?(Ee(e),e.copy_[t]=_e(r,e)):r},has:(e,t)=>t in re(e),ownKeys:e=>Reflect.ownKeys(re(e)),set(e,t,n){const r=Re(re(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const r=Ce(re(e),t),a=r?.[G];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((o=n)===(i=r)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==n||Q(e.base_,t)))return!0;Ee(e),ke(e)}var o,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Ce(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ee(e),ke(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=re(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty(){U(11)},getPrototypeOf:e=>W(e.base_),setPrototypeOf(){U(12)}},Se={};function Ce(e,t){const n=e[G];return(n?re(n):e)[t]}function Re(e,t){if(!(t in e))return;let n=W(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=W(n)}}function ke(e){e.modified_||(e.modified_=!0,e.parent_&&ke(e.parent_))}function Ee(e){e.copy_||(e.copy_=oe(e.base_,e.scope_.immer_.useStrictShallowCopy_))}J(xe,(e,t)=>{Se[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Se.deleteProperty=function(e,t){return Se.set.call(this,e,t,void 0)},Se.set=function(e,t,n){return xe.set.call(this,e[0],t,n,e[0])};function _e(e,t){const n=te(e)?ue("MapSet").proxyMap_(e,t):ne(e)?ue("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:de(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=xe;n&&(o=[r],i=Se);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}(e,t);return(t?t.scope_:de()).drafts_.push(n),n}function Pe(e){if(!K(e)||se(e))return e;const t=e[G];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=oe(e,t.scope_.immer_.useStrictShallowCopy_)}else n=oe(e,!0);return J(n,(e,t)=>{ee(n,e,Pe(t))}),t&&(t.finalized_=!1),n}var Oe=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,n)=>{if("function"==typeof e&&"function"!=typeof t){const n=t;t=e;const r=this;return function(e=n,...o){return r.produce(e,e=>t.call(this,e,...o))}}let r;if("function"!=typeof t&&U(6),void 0!==n&&"function"!=typeof n&&U(7),K(e)){const o=me(this),i=_e(e,void 0);let a=!0;try{r=t(i),a=!1}finally{a?pe(o):ge(o)}return fe(o,n),ye(r,o)}if(!e||"object"!=typeof e){if(r=t(e),void 0===r&&(r=e),r===V&&(r=void 0),this.autoFreeze_&&ie(r,!0),n){const t=[],o=[];ue("Patches").generateReplacementPatches_(e,r,t,o),n(t,o)}return r}U(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){K(e)||U(8),q(e)&&(e=function(e){q(e)||U(10);return Pe(e)}(e));const t=me(this),n=_e(e,void 0);return n[G].isManual_=!0,ge(t),n}finishDraft(e,t){const n=e&&e[G];n&&n.isManual_||U(9);const{scope_:r}=n;return fe(r,t),ye(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));const r=ue("Patches").applyPatches_;return q(e)?r(e,t):this.produce(e,e=>r(e,t))}},Ae=Oe.produce;function Me(e){return({dispatch:t,getState:n})=>r=>o=>"function"==typeof o?o(t,n,e):r(o)}Oe.produceWithPatches.bind(Oe),Oe.setAutoFreeze.bind(Oe),Oe.setUseStrictShallowCopy.bind(Oe),Oe.applyPatches.bind(Oe),Oe.createDraft.bind(Oe),Oe.finishDraft.bind(Oe);var Te=Me(),je=Me,Ne="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?B:B.apply(null,arguments)};function Fe(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw new Error(qe(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>function(e){return L(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,n}var Ie=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function De(e){return K(e)?Ae(e,()=>{}):e}function Le(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var $e=e=>t=>{setTimeout(t,e)},ze=e=>function(t){const{autoBatch:n=!0}=t??{};let r=new Ie(e);return n&&r.push(((e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:$e(10):"callback"===e.type?e.queueNotification:$e(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){const t=r.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),r.dispatch(e)}finally{o=!0}}})})("object"==typeof n?n:void 0)),r};function Be(e){const t={},n=[];let r;const o={addCase(e,n){const r="string"==typeof e?e:e.type;if(!r)throw new Error(qe(28));if(r in t)throw new Error(qe(29));return t[r]=n,o},addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(r=e,o)};return e(o),[t,n,r]}var Ve=Symbol.for("rtk-slice-createasyncthunk");function He(e,t){return`${e}/${t}`}function Ge({creators:e}={}){const t=e?.asyncThunk?.[Ve];return function(e){const{name:n,reducerPath:r=n}=e;if(!n)throw new Error(qe(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const n="string"==typeof e?e:e.type;if(!n)throw new Error(qe(12));if(n in a.sliceCaseReducersByType)throw new Error(qe(13));return a.sliceCaseReducersByType[n]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},n=[],r]="function"==typeof e.extraReducers?Be(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let n,[r,o,i]=Be(t);if("function"==typeof e)n=()=>De(e());else{const t=De(e);n=()=>t}function a(e=n(),t){let a=[r[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,n)=>{if(n){if(q(e)){const r=n(e,t);return void 0===r?e:r}if(K(e))return Ae(e,e=>n(e,t));{const r=n(e,t);if(void 0===r){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}}return e},e)}return a.getInitialState=n,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}i.forEach(r=>{const i=o[r],a={reducerName:r,type:He(n,r),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(r))throw new Error(qe(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Fe(e,a):Fe(e))}(a,i,s):function({type:e,reducerName:t},n,r,o){if(!o)throw new Error(qe(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a);s&&r.addCase(d.pending,s);l&&r.addCase(d.rejected,l);c&&r.addMatcher(d.settled,c);r.exposeCaseReducer(t,{fulfilled:a||We,pending:s||We,rejected:l||We,settled:c||We})}(a,i,s,t)});const c=e=>e,u=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=l()),f(e,t)}function g(){return f||(f=l()),f.getInitialState()}function m(t,n=!1){function r(e){let o=e[t];return void 0===o&&n&&(o=Le(d,r,g)),o}function o(t=c){const r=Le(u,n,()=>new WeakMap);return Le(r,t,()=>{const r={};for(const[o,i]of Object.entries(e.selectors??{}))r[o]=Ue(i,t,()=>Le(d,t,g),n);return r})}return{reducerPath:t,getSelectors:o,get selectors(){return o(r)},selectSlice:r}}const h={name:n,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:g,...m(r),injectInto(e,{reducerPath:t,...n}={}){const o=t??r;return e.inject({reducerPath:o,reducer:p},n),{...h,...m(o,!0)}}};return h}}function Ue(e,t,n,r){function o(o,...i){let a=t(o);return void 0===a&&r&&(a=n()),e(a,...i)}return o.unwrapped=e,o}function We(){}function qe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Ke=Ge()({name:"app",initialState:{currentPage:1,perview:10},reducers:{setCurrentPage:(e,t)=>{e.currentPage=t.payload},setPerview:(e,t)=>{e.perview=t.payload}}}),{setCurrentPage:Xe,setPerview:Ye}=Ke.actions;const Je=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:o=!0}=e??{};let i=new Ie;return t&&("boolean"==typeof t?i.push(Te):i.push(je(t.extraArgument))),i},{reducer:n,middleware:r,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,l;if("function"==typeof n)s=n;else{if(!L(n))throw new Error(qe(1));s=z(n)}l="function"==typeof r?r(t):t();let c=B;o&&(c=Ne({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(N(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=B(...s)(o.dispatch),{...o,dispatch:i}}}(...l),d=ze(u);return $(s,i,c(..."function"==typeof a?a(d):d()))}({reducer:{app:Ke.reducer}}),Ze=t.createContext(null),Qe=({apiKey:e,children:t})=>"undefined"==typeof window?null:f.jsx(Ze.Provider,{value:{apiKey:e},children:f.jsx(R,{store:Je,children:t})});function et(e,t){return function(){return e.apply(t,arguments)}}const{toString:tt}=Object.prototype,{getPrototypeOf:nt}=Object,{iterator:rt,toStringTag:ot}=Symbol,it=(at=Object.create(null),e=>{const t=tt.call(e);return at[t]||(at[t]=t.slice(8,-1).toLowerCase())});var at;const st=e=>(e=e.toLowerCase(),t=>it(t)===e),lt=e=>t=>typeof t===e,{isArray:ct}=Array,ut=lt("undefined");function dt(e){return null!==e&&!ut(e)&&null!==e.constructor&&!ut(e.constructor)&&gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ft=st("ArrayBuffer");const pt=lt("string"),gt=lt("function"),mt=lt("number"),ht=e=>null!==e&&"object"==typeof e,yt=e=>{if("object"!==it(e))return!1;const t=nt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ot in e||rt in e)},bt=st("Date"),vt=st("File"),wt=st("Blob"),xt=st("FileList"),St=st("URLSearchParams"),[Ct,Rt,kt,Et]=["ReadableStream","Request","Response","Headers"].map(st);function _t(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ct(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(dt(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Pt(e,t){if(dt(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,At=e=>!ut(e)&&e!==Ot;const Mt=(Tt="undefined"!=typeof Uint8Array&&nt(Uint8Array),e=>Tt&&e instanceof Tt);var Tt;const jt=st("HTMLFormElement"),Nt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ft=st("RegExp"),It=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_t(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const Dt=st("AsyncFunction"),Lt=($t="function"==typeof setImmediate,zt=gt(Ot.postMessage),$t?setImmediate:zt?((e,t)=>(Ot.addEventListener("message",({source:n,data:r})=>{n===Ot&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Ot.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var $t,zt;const Bt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ot):"undefined"!=typeof process&&process.nextTick||Lt;var Vt={isArray:ct,isArrayBuffer:ft,isBuffer:dt,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||gt(e.append)&&("formdata"===(t=it(e))||"object"===t&&gt(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ft(e.buffer),t},isString:pt,isNumber:mt,isBoolean:e=>!0===e||!1===e,isObject:ht,isPlainObject:yt,isEmptyObject:e=>{if(!ht(e)||dt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ct,isRequest:Rt,isResponse:kt,isHeaders:Et,isUndefined:ut,isDate:bt,isFile:vt,isBlob:wt,isRegExp:Ft,isFunction:gt,isStream:e=>ht(e)&&gt(e.pipe),isURLSearchParams:St,isTypedArray:Mt,isFileList:xt,forEach:_t,merge:function e(){const{caseless:t}=At(this)&&this||{},n={},r=(r,o)=>{const i=t&&Pt(n,o)||o;yt(n[i])&&yt(r)?n[i]=e(n[i],r):yt(r)?n[i]=e({},r):ct(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_t(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(_t(t,(t,r)=>{n&&gt(t)?e[r]=et(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&nt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:it,kindOfTest:st,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(ct(e))return e;let t=e.length;if(!mt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[rt]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:jt,hasOwnProperty:Nt,hasOwnProp:Nt,reduceDescriptors:It,freezeMethods:e=>{It(e,(t,n)=>{if(gt(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];gt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ct(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Pt,global:Ot,isContextDefined:At,isSpecCompliantForm:function(e){return!!(e&&gt(e.append)&&"FormData"===e[ot]&&e[rt])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ht(e)){if(t.indexOf(e)>=0)return;if(dt(e))return e;if(!("toJSON"in e)){t[r]=e;const o=ct(e)?[]:{};return _t(e,(e,t)=>{const i=n(e,r+1);!ut(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Dt,isThenable:e=>e&&(ht(e)||gt(e))&&gt(e.then)&&gt(e.catch),setImmediate:Lt,asap:Bt,isIterable:e=>null!=e&&gt(e[rt])};function Ht(e,t,n,r,o){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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Vt.inherits(Ht,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:Vt.toJSONObject(this.config),code:this.code,status:this.status}}});const Gt=Ht.prototype,Ut={};["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=>{Ut[e]={value:e}}),Object.defineProperties(Ht,Ut),Object.defineProperty(Gt,"isAxiosError",{value:!0}),Ht.from=(e,t,n,r,o,i)=>{const a=Object.create(Gt);return Vt.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),Ht.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Wt(e){return Vt.isPlainObject(e)||Vt.isArray(e)}function qt(e){return Vt.endsWith(e,"[]")?e.slice(0,-2):e}function Kt(e,t,n){return e?e.concat(t).map(function(e,t){return e=qt(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Xt=Vt.toFlatObject(Vt,{},null,function(e){return/^is[A-Z]/.test(e)});function Yt(e,t,n){if(!Vt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Vt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Vt.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Vt.isSpecCompliantForm(t);if(!Vt.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Vt.isDate(e))return e.toISOString();if(Vt.isBoolean(e))return e.toString();if(!s&&Vt.isBlob(e))throw new Ht("Blob is not supported. Use a Buffer instead.");return Vt.isArrayBuffer(e)||Vt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Vt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Vt.isArray(e)&&function(e){return Vt.isArray(e)&&!e.some(Wt)}(e)||(Vt.isFileList(e)||Vt.endsWith(n,"[]"))&&(s=Vt.toArray(e)))return n=qt(n),s.forEach(function(e,r){!Vt.isUndefined(e)&&null!==e&&t.append(!0===a?Kt([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!Wt(e)||(t.append(Kt(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Xt,{defaultVisitor:c,convertValue:l,isVisitable:Wt});if(!Vt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Vt.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Vt.forEach(n,function(n,i){!0===(!(Vt.isUndefined(n)||null===n)&&o.call(t,n,Vt.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Jt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Zt(e,t){this._pairs=[],e&&Yt(e,this,t)}const Qt=Zt.prototype;function en(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tn(e,t,n){if(!t)return e;const r=n&&n.encode||en;Vt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Vt.isURLSearchParams(t)?t.toString():new Zt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Qt.append=function(e,t){this._pairs.push([e,t])},Qt.toString=function(e){const t=e?function(t){return e.call(this,t,Jt)}:Jt;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class nn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Vt.forEach(this.handlers,function(t){null!==t&&e(t)})}}var rn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},on={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Zt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const an="undefined"!=typeof window&&"undefined"!=typeof document,sn="object"==typeof navigator&&navigator||void 0,ln=an&&(!sn||["ReactNative","NativeScript","NS"].indexOf(sn.product)<0),cn="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,un=an&&window.location.href||"http://localhost";var dn={...Object.freeze({__proto__:null,hasBrowserEnv:an,hasStandardBrowserEnv:ln,hasStandardBrowserWebWorkerEnv:cn,navigator:sn,origin:un}),...on};function fn(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Vt.isArray(r)?r.length:i,s)return Vt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Vt.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Vt.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Vt.isFormData(e)&&Vt.isFunction(e.entries)){const n={};return Vt.forEachEntry(e,(e,r)=>{t(function(e){return Vt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const pn={transitional:rn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Vt.isObject(e);o&&Vt.isHTMLForm(e)&&(e=new FormData(e));if(Vt.isFormData(e))return r?JSON.stringify(fn(e)):e;if(Vt.isArrayBuffer(e)||Vt.isBuffer(e)||Vt.isStream(e)||Vt.isFile(e)||Vt.isBlob(e)||Vt.isReadableStream(e))return e;if(Vt.isArrayBufferView(e))return e.buffer;if(Vt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Yt(e,new dn.classes.URLSearchParams,{visitor:function(e,t,n,r){return dn.isNode&&Vt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Vt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Yt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Vt.isString(e))try{return(t||JSON.parse)(e),Vt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||pn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Vt.isResponse(e)||Vt.isReadableStream(e))return e;if(e&&Vt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Ht.from(e,Ht.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dn.classes.FormData,Blob:dn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Vt.forEach(["delete","get","head","post","put","patch"],e=>{pn.headers[e]={}});const gn=Vt.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"]);const mn=Symbol("internals");function hn(e){return e&&String(e).trim().toLowerCase()}function yn(e){return!1===e||null==e?e:Vt.isArray(e)?e.map(yn):String(e)}function bn(e,t,n,r,o){return Vt.isFunction(r)?r.call(this,t,n):(o&&(t=n),Vt.isString(t)?Vt.isString(r)?-1!==t.indexOf(r):Vt.isRegExp(r)?r.test(t):void 0:void 0)}let vn=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=hn(t);if(!o)throw new Error("header name must be a non-empty string");const i=Vt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=yn(e))}const i=(e,t)=>Vt.forEach(e,(e,n)=>o(e,n,t));if(Vt.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Vt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&gn[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(Vt.isObject(e)&&Vt.isIterable(e)){let n,r,o={};for(const t of e){if(!Vt.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Vt.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=hn(e)){const n=Vt.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Vt.isFunction(t))return t.call(this,e,n);if(Vt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=hn(e)){const n=Vt.findKey(this,e);return!(!n||void 0===this[n]||t&&!bn(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=hn(e)){const o=Vt.findKey(n,e);!o||t&&!bn(0,n[o],o,t)||(delete n[o],r=!0)}}return Vt.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!bn(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Vt.forEach(this,(r,o)=>{const i=Vt.findKey(n,o);if(i)return t[i]=yn(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=yn(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Vt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Vt.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[mn]=this[mn]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=hn(e);t[r]||(!function(e,t){const n=Vt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return Vt.isArray(e)?e.forEach(r):r(e),this}};function wn(e,t){const n=this||pn,r=t||n,o=vn.from(r.headers);let i=r.data;return Vt.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xn(e){return!(!e||!e.__CANCEL__)}function Sn(e,t,n){Ht.call(this,null==e?"canceled":e,Ht.ERR_CANCELED,t,n),this.name="CanceledError"}function Cn(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ht("Request failed with status code "+n.status,[Ht.ERR_BAD_REQUEST,Ht.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}vn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Vt.reduceDescriptors(vn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Vt.freezeMethods(vn),Vt.inherits(Sn,Ht,{__CANCEL__:!0});const Rn=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},kn=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},En=e=>(...t)=>Vt.asap(()=>e(...t));var _n=dn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,dn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(dn.origin),dn.navigator&&/(msie|trident)/i.test(dn.navigator.userAgent)):()=>!0,Pn=dn.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Vt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Vt.isString(r)&&a.push("path="+r),Vt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function On(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const An=e=>e instanceof vn?{...e}:e;function Mn(e,t){t=t||{};const n={};function r(e,t,n,r){return Vt.isPlainObject(e)&&Vt.isPlainObject(t)?Vt.merge.call({caseless:r},e,t):Vt.isPlainObject(t)?Vt.merge({},t):Vt.isArray(t)?t.slice():t}function o(e,t,n,o){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Vt.isUndefined(t))return r(void 0,t)}function a(e,t){return Vt.isUndefined(t)?Vt.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken: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:s,headers:(e,t,n)=>o(An(e),An(t),0,!0)};return Vt.forEach(Object.keys({...e,...t}),function(r){const i=l[r]||o,a=i(e[r],t[r],r);Vt.isUndefined(a)&&i!==s||(n[r]=a)}),n}var Tn=e=>{const t=Mn({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=vn.from(s),t.url=tn(On(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Vt.isFormData(r))if(dn.hasStandardBrowserEnv||dn.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(dn.hasStandardBrowserEnv&&(o&&Vt.isFunction(o)&&(o=o(t)),o||!1!==o&&_n(t.url))){const e=i&&a&&Pn.read(a);e&&s.set(i,e)}return t};var jn="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Tn(e);let o=r.data;const i=vn.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function g(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function h(){if(!m)return;const r=vn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Cn(function(e){t(e),g()},function(e){n(e),g()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(h)},m.onabort=function(){m&&(n(new Ht("Request aborted",Ht.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Ht("Network Error",Ht.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||rn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ht(t,o.clarifyTimeoutError?Ht.ETIMEDOUT:Ht.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Vt.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Vt.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Rn(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Rn(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Sn(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===dn.protocols.indexOf(y)?n(new Ht("Unsupported protocol "+y+":",Ht.ERR_BAD_REQUEST,e)):m.send(o||null)})};const Nn=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ht?t:new Sn(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new Ht(`timeout ${t} of ms exceeded`,Ht.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>Vt.asap(a),s}},Fn=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},In=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Dn=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of In(e))yield*Fn(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Ln="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$n=Ln&&"function"==typeof ReadableStream,zn=Ln&&("function"==typeof TextEncoder?(Bn=new TextEncoder,e=>Bn.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Bn;const Vn=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Hn=$n&&Vn(()=>{let e=!1;const t=new Request(dn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Gn=$n&&Vn(()=>Vt.isReadableStream(new Response("").body)),Un={stream:Gn&&(e=>e.body)};var Wn;Ln&&(Wn=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Un[e]&&(Un[e]=Vt.isFunction(Wn[e])?t=>t[e]():(t,n)=>{throw new Ht(`Response type '${e}' is not supported`,Ht.ERR_NOT_SUPPORT,n)})}));const qn=async(e,t)=>{const n=Vt.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Vt.isBlob(e))return e.size;if(Vt.isSpecCompliantForm(e)){const t=new Request(dn.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Vt.isArrayBufferView(e)||Vt.isArrayBuffer(e)?e.byteLength:(Vt.isURLSearchParams(e)&&(e+=""),Vt.isString(e)?(await zn(e)).byteLength:void 0)})(t):n};var Kn=Ln&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Tn(e);c=c?(c+"").toLowerCase():"text";let p,g=Nn([o,i&&i.toAbortSignal()],a);const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let h;try{if(l&&Hn&&"get"!==n&&"head"!==n&&0!==(h=await qn(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Vt.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=kn(h,Rn(En(l)));r=Dn(n.body,65536,e,t)}}Vt.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p,f);const a=Gn&&("stream"===c||"response"===c);if(Gn&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=Vt.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&kn(t,Rn(En(s),!0))||[];i=new Response(Dn(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}c=c||"text";let y=await Un[Vt.findKey(Un,c)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{Cn(t,n,{data:y,headers:vn.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Ht("Network Error",Ht.ERR_NETWORK,e,p),{cause:t.cause||t});throw Ht.from(t,t&&t.code,e,p)}});const Xn={http:null,xhr:jn,fetch:Kn};Vt.forEach(Xn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Yn=e=>`- ${e}`,Jn=e=>Vt.isFunction(e)||null===e||!1===e;var Zn=e=>{e=Vt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Jn(n)&&(r=Xn[(t=String(n)).toLowerCase()],void 0===r))throw new Ht(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new Ht("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Yn).join("\n"):" "+Yn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Qn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sn(null,e)}function er(e){Qn(e),e.headers=vn.from(e.headers),e.data=wn.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zn(e.adapter||pn.adapter)(e).then(function(t){return Qn(e),t.data=wn.call(e,e.transformResponse,t),t.headers=vn.from(t.headers),t},function(t){return xn(t)||(Qn(e),t&&t.response&&(t.response.data=wn.call(e,e.transformResponse,t.response),t.response.headers=vn.from(t.response.headers))),Promise.reject(t)})}const tr="1.11.0",nr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{nr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const rr={};nr.transitional=function(e,t,n){function r(e,t){return"[Axios v"+tr+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ht(r(o," has been removed"+(t?" in "+t:"")),Ht.ERR_DEPRECATED);return t&&!rr[o]&&(rr[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},nr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var or={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ht("options must be an object",Ht.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ht("option "+i+" must be "+n,Ht.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Ht("Unknown option "+i,Ht.ERR_BAD_OPTION)}},validators:nr};const ir=or.validators;let ar=class{constructor(e){this.defaults=e||{},this.interceptors={request:new nn,response:new nn}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Mn(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&or.assertOptions(n,{silentJSONParsing:ir.transitional(ir.boolean),forcedJSONParsing:ir.transitional(ir.boolean),clarifyTimeoutError:ir.transitional(ir.boolean)},!1),null!=r&&(Vt.isFunction(r)?t.paramsSerializer={serialize:r}:or.assertOptions(r,{encode:ir.function,serialize:ir.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),or.assertOptions(t,{baseUrl:ir.spelling("baseURL"),withXsrfToken:ir.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Vt.merge(o.common,o[t.method]);o&&Vt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=vn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[er.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=er.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return tn(On((e=Mn(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Vt.forEach(["delete","get","head","options"],function(e){ar.prototype[e]=function(t,n){return this.request(Mn(n||{},{method:e,url:t,data:(n||{}).data}))}}),Vt.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Mn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ar.prototype[e]=t(),ar.prototype[e+"Form"]=t(!0)});const sr={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(sr).forEach(([e,t])=>{sr[t]=e});const lr=function e(t){const n=new ar(t),r=et(ar.prototype.request,n);return Vt.extend(r,ar.prototype,n,{allOwnKeys:!0}),Vt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Mn(t,n))},r}(pn);lr.Axios=ar,lr.CanceledError=Sn,lr.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Sn(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},lr.isCancel=xn,lr.VERSION=tr,lr.toFormData=Yt,lr.AxiosError=Ht,lr.Cancel=lr.CanceledError,lr.all=function(e){return Promise.all(e)},lr.spread=function(e){return function(t){return e.apply(null,t)}},lr.isAxiosError=function(e){return Vt.isObject(e)&&!0===e.isAxiosError},lr.mergeConfig=Mn,lr.AxiosHeaders=vn,lr.formToJSON=e=>fn(Vt.isHTMLForm(e)?new FormData(e):e),lr.getAdapter=Zn,lr.HttpStatusCode=sr,lr.default=lr;const{Axios:cr,AxiosError:ur,CanceledError:dr,isCancel:fr,CancelToken:pr,VERSION:gr,all:mr,Cancel:hr,isAxiosError:yr,spread:br,toFormData:vr,AxiosHeaders:wr,HttpStatusCode:xr,formToJSON:Sr,getAdapter:Cr,mergeConfig:Rr}=lr;
2
2
  /**
3
3
  * table-core
4
4
  *