@qlover/fe-corekit 2.3.3 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4799,6 +4799,15 @@ var RequestAdapterFetch = /*#__PURE__*/ function() {
4799
4799
  return this.config;
4800
4800
  }
4801
4801
  },
4802
+ {
4803
+ /**
4804
+ * @since 2.4.0
4805
+ * @override
4806
+ */ key: "setConfig",
4807
+ value: function setConfig(config) {
4808
+ Object.assign(this.config, config);
4809
+ }
4810
+ },
4802
4811
  {
4803
4812
  key: "usePlugin",
4804
4813
  value: function usePlugin(plugin) {
@@ -4939,6 +4948,15 @@ var RequestAdapterAxios = /*#__PURE__*/ function() {
4939
4948
  return this.config;
4940
4949
  }
4941
4950
  },
4951
+ {
4952
+ /**
4953
+ * @since 2.4.0
4954
+ * @override
4955
+ */ key: "setConfig",
4956
+ value: function setConfig(config) {
4957
+ Object.assign(this.config, config);
4958
+ }
4959
+ },
4942
4960
  {
4943
4961
  key: "request",
4944
4962
  value: /**
package/dist/index.d.ts CHANGED
@@ -3017,6 +3017,25 @@ interface RequestAdapterInterface<Config extends RequestAdapterConfig> {
3017
3017
  * ```
3018
3018
  */
3019
3019
  getConfig: () => Config;
3020
+ /**
3021
+ * Sets the configuration for the request adapter.
3022
+ *
3023
+ * @since 2.4.0
3024
+ * @param config - The configuration to set.
3025
+ * @example
3026
+ * ```typescript
3027
+ * adapter.setConfig({ url: '/users', method: 'GET' });
3028
+ * ```
3029
+ *
3030
+ * @example Merge configuration
3031
+ * ```typescript
3032
+ *
3033
+ * adapter.setConfig({ baseURL: 'https://api.example.com' });
3034
+ * adapter.setConfig({ baseURL: 'https://api.example2.com' });
3035
+ * // baseURL = 'https://api.example2.com'
3036
+ * ```
3037
+ */
3038
+ setConfig: (config: Config | Partial<Config>) => void;
3020
3039
  }
3021
3040
 
3022
3041
  /**
@@ -3148,6 +3167,11 @@ declare class RequestAdapterFetch implements RequestAdapterInterface<RequestAdap
3148
3167
  * @override
3149
3168
  */
3150
3169
  getConfig(): RequestAdapterFetchConfig;
3170
+ /**
3171
+ * @since 2.4.0
3172
+ * @override
3173
+ */
3174
+ setConfig(config: RequestAdapterFetchConfig | Partial<RequestAdapterFetchConfig>): void;
3151
3175
  usePlugin(plugin: ExecutorPlugin): void;
3152
3176
  /**
3153
3177
  * Core request implementation
@@ -3202,6 +3226,11 @@ declare class RequestAdapterAxios implements RequestAdapterInterface<AxiosReques
3202
3226
  * @override
3203
3227
  */
3204
3228
  getConfig(): AxiosRequestConfig;
3229
+ /**
3230
+ * @since 2.4.0
3231
+ * @override
3232
+ */
3233
+ setConfig(config: AxiosRequestConfig | Partial<AxiosRequestConfig>): void;
3205
3234
  /**
3206
3235
  * @override
3207
3236
  */
@@ -4824,6 +4824,15 @@ var qloverFeCorekit = function() {
4824
4824
  return this.config;
4825
4825
  }
4826
4826
  },
4827
+ {
4828
+ /**
4829
+ * @since 2.4.0
4830
+ * @override
4831
+ */ key: "setConfig",
4832
+ value: function setConfig(config) {
4833
+ Object.assign(this.config, config);
4834
+ }
4835
+ },
4827
4836
  {
4828
4837
  key: "usePlugin",
4829
4838
  value: function usePlugin(plugin) {
@@ -4964,6 +4973,15 @@ var qloverFeCorekit = function() {
4964
4973
  return this.config;
4965
4974
  }
4966
4975
  },
4976
+ {
4977
+ /**
4978
+ * @since 2.4.0
4979
+ * @override
4980
+ */ key: "setConfig",
4981
+ value: function setConfig(config) {
4982
+ Object.assign(this.config, config);
4983
+ }
4984
+ },
4967
4985
  {
4968
4986
  key: "request",
4969
4987
  value: /**
@@ -1 +1 @@
1
- "use strict";function t(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(t){if(Array.isArray(t))return t}function r(e){if(Array.isArray(e))return t(e)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,e,r,n,o,i,u){try{var a=t[i](u);var s=a.value}catch(t){r(t);return}if(a.done){e(s)}else{Promise.resolve(s).then(n,o)}}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function a(t){o(u,n,i,a,s,"next",t)}function s(t){o(u,n,i,a,s,"throw",t)}a(undefined)})}}function u(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function a(t,e,r){if(H()){a=Reflect.construct}else{a=function t(t,e,r){var n=[null];n.push.apply(n,e);var o=Function.bind.apply(t,n);var i=new o;if(r)E(i,r.prototype);return i}}return a.apply(null,arguments)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,e,r){if(e)s(t.prototype,e);if(r)s(t,r);return t}function l(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function f(t,e,r){if(typeof Reflect!=="undefined"&&Reflect.get){f=Reflect.get}else{f=function t(t,e,r){var n=S(t,e);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,e);if(o.get){return o.get.call(r||t)}return o.value}}return f(t,e,r||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)E(t,e)}function h(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,e){var r=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r==null)return;var n=[];var o=true;var i=false;var u,a;try{for(r=r.call(t);!(o=(u=r.next()).done);o=true){n.push(u.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!o&&r["return"]!=null)r["return"]()}finally{if(i)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))}n.forEach(function(e){l(t,e,r[e])})}return t}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e){n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}r.push.apply(r,n)}return r}function O(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function _(t,e){if(t==null)return{};var r=w(t,e);var n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++){n=i[o];if(e.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;r[n]=t[n]}}return r}function w(t,e){if(t==null)return{};var r={};var n=Object.keys(t);var o,i;for(i=0;i<n.length;i++){o=n[i];if(e.indexOf(o)>=0)continue;r[o]=t[o]}return r}function R(t,e){if(e&&(T(e)==="object"||typeof e==="function")){return e}return n(t)}function E(t,e){E=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return E(t,e)}function j(t,r){return e(t)||g(t,r)||P(t,r)||b()}function S(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=v(t);if(t===null)break}return t}function A(t){return r(t)||d(t)||P(t)||m()}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,r){if(!e)return;if(typeof e==="string")return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}function N(t){var e=typeof Map==="function"?new Map:undefined;N=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,v(this).constructor)}r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return E(r,t)};return N(t)}function H(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function C(t){var e=H();return function r(){var r=v(t),n;if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else{n=r.apply(this,arguments)}return R(this,n)}}function q(t,e){var r,n,o,i,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(r)throw new TypeError("Generator is already executing.");while(u)try{if(r=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:u.label++;return{value:i[1],done:false};case 5:u.label++;n=i[1];i=[0];continue;case 7:i=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){u=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(i[0]===6&&u.label<o[1]){u.label=o[1];o=i;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(i);break}if(o[2])u.ops.pop();u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t];n=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,e,r,o,a,s;var l=function t(t){return{parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1,index:void 0}}};var y=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var d=Object.create;var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var E=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},S=function(t,e){for(var r in e)g(t,r,{get:e[r],enumerable:!0})},P=function(t,e,r,n){var o=true,i=false,u=undefined;if(e&&(typeof e==="undefined"?"undefined":T(e))=="object"||typeof e=="function")try{var a=function(){var o=c.value;!w.call(t,o)&&o!==r&&g(t,o,{get:function(){return e[o]},enumerable:!(n=b(e,o))||n.enumerable})};for(var s=m(e)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){i=true;u=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(i){throw u}}}return t};var H=function(t,e,r){return r=t!=null?d(k(t)):{},P(e||!t||!t.__esModule?g(r,"default",{value:t,enumerable:!0}):r,t)},I=function(t){return P(g({},"__esModule",{value:!0}),t)};var z=E(function(t,e){"use strict";var r=function t(){this.__data__=[],this.size=0};e.exports=r});var U=E(function(t,e){"use strict";var r=function t(t,e){return t===e||t!==t&&e!==e};e.exports=r});var B=E(function(t,e){"use strict";var r=function t(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1};var n=U();e.exports=r});var V=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():i.call(e,r,1),--this.size,!0};var n=B(),o=Array.prototype,i=o.splice;e.exports=r});var F=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]};var n=B();e.exports=r});var D=E(function(t,e){"use strict";var r=function t(t){return n(this.__data__,t)>-1};var n=B();e.exports=r});var K=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var n=B();e.exports=r});var M=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=z(),o=V(),i=F(),u=D(),a=K();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var L=E(function(t,e){"use strict";var r=function t(){this.__data__=new n,this.size=0};var n=M();e.exports=r});var $=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};e.exports=r});var W=E(function(t,e){"use strict";var r=function t(t){return this.__data__.get(t)};e.exports=r});var J=E(function(t,e){"use strict";var r=function t(t){return this.__data__.has(t)};e.exports=r});var G=E(function(t,e){"use strict";var r=(typeof global==="undefined"?"undefined":T(global))=="object"&&global&&global.Object===Object&&global;e.exports=r});var Q=E(function(t,e){"use strict";var r=G(),n=(typeof self==="undefined"?"undefined":T(self))=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o});var Y=E(function(t,e){"use strict";var r=Q(),n=r.Symbol;e.exports=n});var Z=E(function(t,e){"use strict";var r=function t(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[a]=r:delete t[a]),o};var n=Y(),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;e.exports=r});var X=E(function(t,e){"use strict";var r=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;e.exports=r});var tt=E(function(t,e){"use strict";var r=function t(t){return t==null?t===void 0?a:u:s&&s in Object(t)?o(t):i(t)};var n=Y(),o=Z(),i=X(),u="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=r});var te=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return t!=null&&(e=="object"||e=="function")};e.exports=r});var tr=E(function(t,e){"use strict";var r=function t(t){if(!o(t))return!1;var e=n(t);return e==u||e==a||e==i||e==s};var n=tt(),o=te(),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";e.exports=r});var tn=E(function(t,e){"use strict";var r=Q(),n=r["__core-js_shared__"];e.exports=n});var to=E(function(t,e){"use strict";var r=function t(t){return!!o&&o in t};var n=tn(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=r});var ti=E(function(t,e){"use strict";var r=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;e.exports=r});var tu=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||o(t))return!1;var e=n(t)?p:s;return e.test(u(t))};var n=tr(),o=to(),i=te(),u=ti(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,v=l.hasOwnProperty,p=RegExp("^"+f.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r});var ta=E(function(t,e){"use strict";var r=function t(t,e){return t===null||t===void 0?void 0:t[e]};e.exports=r});var ts=E(function(t,e){"use strict";var r=function t(t,e){var r=o(t,e);return n(r)?r:void 0};var n=tu(),o=ta();e.exports=r});var tc=E(function(t,e){"use strict";var r=ts(),n=Q(),o=r(n,"Map");e.exports=o});var tl=E(function(t,e){"use strict";var r=ts(),n=r(Object,"create");e.exports=n});var tf=E(function(t,e){"use strict";var r=function t(){this.__data__=n?n(null):{},this.size=0};var n=tl();e.exports=r});var tv=E(function(t,e){"use strict";var r=function t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};e.exports=r});var tp=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return u.call(e,t)?e[t]:void 0};var n=tl(),o="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var th=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;return n?e[t]!==void 0:i.call(e,t)};var n=tl(),o=Object.prototype,i=o.hasOwnProperty;e.exports=r});var ty=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&e===void 0?o:e,this};var n=tl(),o="__lodash_hash_undefined__";e.exports=r});var td=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tf(),o=tv(),i=tp(),u=th(),a=ty();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tg=E(function(t,e){"use strict";var r=function t(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}};var n=td(),o=M(),i=tc();e.exports=r});var tb=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null};e.exports=r});var tm=E(function(t,e){"use strict";var r=function t(t,e){var r=t.__data__;return n(e)?r[typeof e=="string"?"string":"hash"]:r.map};var n=tb();e.exports=r});var tx=E(function(t,e){"use strict";var r=function t(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e};var n=tm();e.exports=r});var tk=E(function(t,e){"use strict";var r=function t(t){return n(this,t).get(t)};var n=tm();e.exports=r});var tO=E(function(t,e){"use strict";var r=function t(t){return n(this,t).has(t)};var n=tm();e.exports=r});var t_=E(function(t,e){"use strict";var r=function t(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var n=tm();e.exports=r});var tw=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tg(),o=tx(),i=tk(),u=tO(),a=t_();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tR=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;if(h(r,n)){var a=r.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this};var n=M(),o=tc(),i=tw(),u=200;e.exports=r});var tE=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__=new n(t);this.size=e.size};var n=M(),o=L(),i=$(),u=W(),a=J(),s=tR();r.prototype.clear=o;r.prototype.delete=i;r.prototype.get=u;r.prototype.has=a;r.prototype.set=s;e.exports=r});var tj=E(function(t,e){"use strict";var r=ts(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.exports=n});var tS=E(function(t,e){"use strict";var r=function t(t,e,r){e=="__proto__"&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var n=tj();e.exports=r});var tA=E(function(t,e){"use strict";var r=function t(t,e,r){(r!==void 0&&!o(t[e],r)||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U();e.exports=r});var tT=E(function(t,e){"use strict";var r=function t(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var s=u[t?a:++o];if(r(i[s],s,i)===!1)break}return e}};e.exports=r});var tP=E(function(t,e){"use strict";var r=tT(),n=r();e.exports=n});var tN=E(function(t,e){"use strict";var r=function t(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n};var n=Q(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=r});var tH=E(function(t,e){"use strict";var r=Q(),n=r.Uint8Array;e.exports=n});var tC=E(function(t,e){"use strict";var r=function t(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e};var n=tH();e.exports=r});var tq=E(function(t,e){"use strict";var r=function t(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var n=tC();e.exports=r});var tI=E(function(t,e){"use strict";var r=function t(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};e.exports=r});var tz=E(function(t,e){"use strict";var r=te(),n=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();e.exports=o});var tU=E(function(t,e){"use strict";var r=function t(t,e){return function(r){return t(e(r))}};e.exports=r});var tB=E(function(t,e){"use strict";var r=tU(),n=r(Object.getPrototypeOf,Object);e.exports=n});var tV=E(function(t,e){"use strict";var r=function t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||n;return t===r};var n=Object.prototype;e.exports=r});var tF=E(function(t,e){"use strict";var r=function t(t){return typeof t.constructor=="function"&&!i(t)?n(o(t)):{}};var n=tz(),o=tB(),i=tV();e.exports=r});var tD=E(function(t,e){"use strict";var r=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":T(t))=="object"};e.exports=r});var tK=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Arguments]";e.exports=r});var tM=E(function(t,e){"use strict";var r=tK(),n=tD(),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function t(t){return n(t)&&i.call(t,"callee")&&!u.call(t,"callee")};e.exports=a});var tL=E(function(t,e){"use strict";var r=Array.isArray;e.exports=r});var t$=E(function(t,e){"use strict";var r=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;e.exports=r});var tW=E(function(t,e){"use strict";var r=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tr(),o=t$();e.exports=r});var tJ=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)};var n=tW(),o=tD();e.exports=r});var tG=E(function(t,e){"use strict";var r=function t(){return!1};e.exports=r});var tQ=E(function(t,e){"use strict";var r=Q(),n=tG(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?r.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;e.exports=c});var tY=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||n(t)!=u)return!1;var e=o(t);if(e===null)return!0;var r=l.call(e,"constructor")&&e.constructor;return typeof r=="function"&&h(r,r)&&c.call(r)==f};var n=tt(),o=tB(),i=tD(),u="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,f=c.call(Object);e.exports=r});var tZ=E(function(t,e){"use strict";var r=function t(t){return i(t)&&o(t.length)&&!!T[n(t)]};var n=tt(),o=t$(),i=tD(),u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",T={};T[k]=T[O]=T[_]=T[w]=T[R]=T[E]=T[j]=T[S]=T[A]=!0;T[u]=T[a]=T[m]=T[s]=T[x]=T[c]=T[l]=T[f]=T[v]=T[p]=T[h]=T[y]=T[d]=T[g]=T[b]=!1;e.exports=r});var tX=E(function(t,e){"use strict";var r=function t(t){return function(e){return t(e)}};e.exports=r});var t0=E(function(t,e){"use strict";var r=G(),n=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,i=o&&o.exports===n,u=i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();e.exports=a});var t1=E(function(t,e){"use strict";var r=tZ(),n=tX(),o=t0(),i=o&&o.isTypedArray,u=i?n(i):r;e.exports=u});var t2=E(function(t,e){"use strict";var r=function t(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]};e.exports=r});var t3=E(function(t,e){"use strict";var r=function t(t,e,r){var i=t[e];(!(u.call(t,e)&&o(i,r))||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U(),i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var t4=E(function(t,e){"use strict";var r=function t(t,e,r,i){var u=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;l===void 0&&(l=t[c]),u?o(r,c,l):n(r,c,l)}return r};var n=t3(),o=tS();e.exports=r});var t6=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};e.exports=r});var t8=E(function(t,e){"use strict";var r=function t(t,e){var r=typeof t==="undefined"?"undefined":T(t);return e=e!==null&&e!==void 0?e:n,!!e&&(r=="number"||r!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<e};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r});var t7=E(function(t,e){"use strict";var r=function t(t,e){var r=i(t),c=!r&&o(t),f=!r&&!c&&u(t),v=!r&&!c&&!f&&s(t),p=r||c||f||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(e||l.call(t,d))&&!(p&&(d=="length"||f&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t6(),o=tM(),i=tL(),u=tQ(),a=t8(),s=t1(),c=Object.prototype,l=c.hasOwnProperty;e.exports=r});var t5=E(function(t,e){"use strict";var r=function t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e};e.exports=r});var t9=E(function(t,e){"use strict";var r=function t(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)u=="constructor"&&(e||!a.call(t,u))||r.push(u);return r};var n=te(),o=tV(),i=t5(),u=Object.prototype,a=u.hasOwnProperty;e.exports=r});var et=E(function(t,e){"use strict";var r=function t(t){return i(t)?n(t,!0):o(t)};var n=t7(),o=t9(),i=tW();e.exports=r});var ee=E(function(t,e){"use strict";var r=function t(t){return n(t,o(t))};var n=t4(),o=et();e.exports=r});var er=E(function(t,e){"use strict";var r=function t(t,e,r,b,m,x,k){var O=d(t,r),_=d(e,r),w=k.get(_);if(w){n(t,r,w);return}var R=x?x(O,_,r+"",t,e,k):void 0,E=R===void 0;if(E){var j=c(_),S=!j&&f(_),A=!j&&!S&&y(_);R=_,j||S||A?c(O)?R=O:l(O)?R=u(O):S?(E=!1,R=o(_,!0)):A?(E=!1,R=i(_,!0)):R=[]:h(_)||s(_)?(R=O,s(O)?R=g(O):(!p(O)||v(O))&&(R=a(_))):E=!1}E&&(k.set(_,R),m(R,_,b,x,k),k.delete(_)),n(t,r,R)};var n=tA(),o=tN(),i=tq(),u=tI(),a=tF(),s=tM(),c=tL(),l=tJ(),f=tQ(),v=tr(),p=te(),h=tY(),y=t1(),d=t2(),g=ee();e.exports=r});var en=E(function(t,e){"use strict";var r=tE(),n=tA(),o=tP(),i=er(),u=te(),a=et(),s=t2();function c(t,e,l,f,v){t!==e&&o(e,function(o,a){if(v||(v=new r),u(o))i(t,e,a,l,c,f,v);else{var p=f?f(s(t,a),o,a+"",t,e,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}e.exports=c});var eo=E(function(t,e){"use strict";var r=function t(t){return t};e.exports=r});var ei=E(function(t,e){"use strict";var r=function t(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};e.exports=r});var eu=E(function(t,e){"use strict";var r=function t(t,e,r){return e=o(e===void 0?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=r(s),n(t,this,c)}};var n=ei(),o=Math.max;e.exports=r});var ea=E(function(t,e){"use strict";var r=function t(t){return function(){return t}};e.exports=r});var es=E(function(t,e){"use strict";var r=ea(),n=tj(),o=eo(),i=n?function t(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;e.exports=i});var ec=E(function(t,e){"use strict";var r=function t(t){var e=0,r=0;return function(){var u=i(),a=o-(u-r);if(r=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};var n=800,o=16,i=Date.now;e.exports=r});var el=E(function(t,e){"use strict";var r=es(),n=ec(),o=n(r);e.exports=o});var ef=E(function(t,e){"use strict";var r=function t(t,e){return i(o(t,e,n),t+"")};var n=eo(),o=eu(),i=el();e.exports=r});var ev=E(function(t,e){"use strict";var r=function t(t,e,r){if(!u(r))return!1;var a=typeof e==="undefined"?"undefined":T(e);return(a=="number"?o(r)&&i(e,r.length):a=="string"&&e in r)?n(r[e],t):!1};var n=U(),o=tW(),i=t8(),u=te();e.exports=r});var ep=E(function(t,e){"use strict";var r=function t(t){return n(function(e,r){var n=-1,i=r.length,u=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(u=t.length>3&&typeof u=="function"?(i--,u):void 0,a&&o(r[0],r[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,u)}return e})};var n=ef(),o=ev();e.exports=r});var eh=E(function(t,e){"use strict";var r=en(),n=ep(),o=n(function(t,e,n){r(t,e,n)});e.exports=o});var ey=E(function(t,e){"use strict";var r=function t(t){return(typeof t==="undefined"?"undefined":T(t))=="symbol"||o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Symbol]";e.exports=r});var ed=E(function(t,e){"use strict";var r=function t(t,e){if(n(t))return!1;var r=typeof t==="undefined"?"undefined":T(t);return r=="number"||r=="symbol"||r=="boolean"||t==null||o(t)?!0:u.test(t)||!i.test(t)||e!=null&&t in Object(e)};var n=tL(),o=ey(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=r});var eg=E(function(t,e){"use strict";var r=tw(),n="Expected a function";function o(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(n);var i=function r(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var u=t.apply(this,r);return i.cache=o.set(n,u)||o,u};return i.cache=new(o.Cache||r),i}o.Cache=r;e.exports=o});var eb=E(function(t,e){"use strict";var r=function t(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e};var n=eg(),o=500;e.exports=r});var em=E(function(t,e){"use strict";var r=eb(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(n,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});e.exports=i});var ex=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};e.exports=r});var ek=E(function(t,e){"use strict";var r=Y(),n=ex(),o=tL(),i=ey(),u=1/0,a=r?r.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(i(t))return s?s.call(t):"";var e=t+"";return e=="0"&&1/t==-u?"-0":e}e.exports=c});var eO=E(function(t,e){"use strict";var r=function t(t){return t==null?"":n(t)};var n=ek();e.exports=r});var e_=E(function(t,e){"use strict";var r=function t(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))};var n=tL(),o=ed(),i=em(),u=eO();e.exports=r});var ew=E(function(t,e){"use strict";var r=function t(t){if(typeof t=="string"||n(t))return t;var e=t+"";return e=="0"&&1/t==-o?"-0":e};var n=ey(),o=1/0;e.exports=r});var eR=E(function(t,e){"use strict";var r=function t(t,e){e=n(e,t);for(var r=0,i=e.length;t!=null&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0};var n=e_(),o=ew();e.exports=r});var eE=E(function(t,e){"use strict";var r=function t(t,e,r,s){if(!u(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,v=t;v!=null&&++c<l;){var p=a(e[c]),h=r;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=f){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=u(y)?y:i(e[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t3(),o=e_(),i=t8(),u=te(),a=ew();e.exports=r});var ej=E(function(t,e){"use strict";var r=function t(t,e,r){for(var u=-1,a=e.length,s={};++u<a;){var c=e[u],l=n(t,c);r(l,c)&&o(s,i(c,t),l)}return s};var n=eR(),o=eE(),i=e_();e.exports=r});var eS=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&e in Object(t)};e.exports=r});var eA=E(function(t,e){"use strict";var r=function t(t,e,r){e=n(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var v=s(e[c]);if(!(f=t!=null&&r(t,v)))break;t=t[v]}return f||++c!=l?f:(l=t==null?0:t.length,!!l&&a(l)&&u(v,l)&&(i(t)||o(t)))};var n=e_(),o=tM(),i=tL(),u=t8(),a=t$(),s=ew();e.exports=r});var eT=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&o(t,e,n)};var n=eS(),o=eA();e.exports=r});var eP=E(function(t,e){"use strict";var r=function t(t,e){return n(t,e,function(e,r){return o(t,r)})};var n=ej(),o=eT();e.exports=r});var eN=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t};e.exports=r});var eH=E(function(t,e){"use strict";var r=function t(t){return i(t)||o(t)||!!(u&&t&&t[u])};var n=Y(),o=tM(),i=tL(),u=n?n.isConcatSpreadable:void 0;e.exports=r});var eC=E(function(t,e){"use strict";var r=eN(),n=eH();function o(t,e,i,u,a){var s=-1,c=t.length;for(i||(i=n),a||(a=[]);++s<c;){var l=t[s];e>0&&i(l)?e>1?o(l,e-1,i,u,a):r(a,l):u||(a[a.length]=l)}return a}e.exports=o});var eq=E(function(t,e){"use strict";var r=function t(t){var e=t==null?0:t.length;return e?n(t,1):[]};var n=eC();e.exports=r});var eI=E(function(t,e){"use strict";var r=function t(t){return i(o(t,void 0,n),t+"")};var n=eq(),o=eu(),i=el();e.exports=r});var ez=E(function(t,e){"use strict";var r=eP(),n=eI(),o=n(function(t,e){return t==null?{}:r(t,e)});e.exports=o});var eU={};S(eU,{ABORT_ERROR_ID:function(){return eM},AbortError:function(){return eL},AbortPlugin:function(){return e$},AsyncExecutor:function(){return eD},Base64Serializer:function(){return rr},Executor:function(){return eB},ExecutorError:function(){return eV},FetchAbortPlugin:function(){return e4},FetchURLPlugin:function(){return e6},JSONSerializer:function(){return re},KeyStorage:function(){return rn},ObjectStorage:function(){return ro},RequestAdapterAxios:function(){return e3},RequestAdapterFetch:function(){return e2},RequestError:function(){return eY},RequestErrorID:function(){return eZ},RequestManager:function(){return e7},RequestScheduler:function(){return e5},RequestTransaction:function(){return e9},RetryPlugin:function(){return eQ},SyncExecutor:function(){return eK},SyncStorage:function(){return ru}});var eB=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.config=e;this.plugins=[]}c(t,[{key:"use",value:function t(t){if((typeof t==="undefined"?"undefined":T(t))!="object"||t===null)throw new Error("Plugin must be an object");if(this.plugins.find(function(e){return e===t||e.pluginName===t.pluginName||e.constructor===t.constructor})&&t.onlyOne){console.warn("Plugin ".concat(t.pluginName," is already used, skip adding"));return}this.plugins.push(t)}}]);return t}();var eV=function t(t){p(r,t);var e=C(r);function r(t,o){u(this,r);var i;i=e.call(this,h(o,Error)?o.message:o||t);i.id=t;h(o,Error)&&"stack"in o&&(i.stack=o.stack),Object.setPrototypeOf(n(i),(h(this,r)?this.constructor:void 0).prototype);return i}return r}(N(Error));var eF=function(){function t(){u(this,t)}c(t,[{key:"resetHooksRuntimes",value:function t(t){t.pluginName="",t.hookName="",t.returnValue=void 0,t.returnBreakChain=!1,t.times=0,t.breakChain=!1,t.index=void 0}},{key:"reset",value:function t(t){this.resetHooksRuntimes(t.hooksRuntimes),t.returnValue=void 0,t.error=void 0}},{key:"shouldSkipPluginHook",value:function t(t,e,r){return typeof t[e]!="function"||typeof t.enabled=="function"&&!t.enabled(e,r)}},{key:"runtimes",value:function t(t,e,r,n){t.hooksRuntimes.pluginName=e.pluginName,t.hooksRuntimes.hookName=r,t.hooksRuntimes.times=(t.hooksRuntimes.times||0)+1,t.hooksRuntimes.index=n}},{key:"runtimeReturnValue",value:function t(t,e){t.hooksRuntimes.returnValue=e}},{key:"shouldBreakChain",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.returnBreakChain)}},{key:"setError",value:function t(t,e){t.error=e}}]);return t}();var eD=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,f,v,p,h,y,d,g;return q(this,function(b){switch(b.label){case 0:n=-1,u=r||l({});a.contextHandler.resetHooksRuntimes(u.hooksRuntimes);s=true,c=false,f=undefined;b.label=1;case 1:b.trys.push([1,6,7,8]);v=t[Symbol.iterator]();b.label=2;case 2:if(!!(s=(p=v.next()).done))return[3,5];h=p.value;if(n++,a.contextHandler.shouldSkipPluginHook(h,e,u))return[3,4];if(a.contextHandler.shouldBreakChain(u))return[3,5];a.contextHandler.runtimes(u,h,e,n);return[4,(y=h)[e].apply(y,[u].concat(A(o)))];case 3:d=b.sent();if(d!==void 0&&(i=d,a.contextHandler.runtimeReturnValue(u,d),a.contextHandler.shouldBreakChainOnReturn(u)))return[2,i];b.label=4;case 4:s=true;return[3,2];case 5:return[3,8];case 6:g=b.sent();c=true;f=g;return[3,8];case 7:try{if(!s&&v.return!=null){v.return()}}finally{if(c){throw f}}return[7];case 8:return[2,i]}})})()}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,l,f,v,p,h;return q(this,function(y){switch(y.label){case 0:n=Array.isArray(e)?e:[e];u=true,s=false,c=undefined;y.label=1;case 1:y.trys.push([1,6,7,8]);l=n[Symbol.iterator]();y.label=2;case 2:if(!!(u=(f=l.next()).done))return[3,5];v=f.value;return[4,a.runHook.apply(a,[t,v,r].concat(A(o)))];case 3:p=y.sent();if(p!==void 0&&(i=p),r&&a.contextHandler.shouldBreakChain(r))return[3,5];y.label=4;case 4:u=true;return[3,2];case 5:return[3,8];case 6:h=y.sent();s=true;c=h;return[3,8];case 7:try{if(!u&&l.return!=null){l.return()}}finally{if(s){throw c}}return[7];case 8:return[2,i]}})})()}},{key:"execNoError",value:function t(t,e){var r=this;return i(function(){var n;return q(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,r.exec(t,e)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,eV)?n:new eV("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a async function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r=this;return i(function(){var n,o,i;return q(this,function(u){switch(u.label){case 0:o=((n=r.config)===null||n===void 0?void 0:n.execHook)||"onExec";return[4,r.runHook(r.plugins,o,t,e)];case 1:u.sent();if(!t.hooksRuntimes.times)return[3,2];i=t.hooksRuntimes.returnValue;return[3,4];case 2:return[4,e(t)];case 3:i=u.sent();u.label=4;case 4:t.returnValue=i;return[2]}})})()}},{key:"run",value:function t(t,e){var r=this;return i(function(){var n,o,i,u,a,s;return q(this,function(c){switch(c.label){case 0:i=l(t),u=((n=r.config)===null||n===void 0?void 0:n.beforeHooks)||"onBefore",a=((o=r.config)===null||o===void 0?void 0:o.afterHooks)||"onSuccess";c.label=1;case 1:c.trys.push([1,5,7,8]);return[4,r.runHooks(r.plugins,u,i)];case 2:c.sent();return[4,r.runExec(i,e)];case 3:c.sent();return[4,r.runHooks(r.plugins,a,i)];case 4:return[2,(c.sent(),i.returnValue)];case 5:s=c.sent();r.contextHandler.setError(i,s);return[4,r.runHook(r.plugins,"onError",i)];case 6:throw c.sent(),i.hooksRuntimes.returnValue&&r.contextHandler.setError(i,i.hooksRuntimes.returnValue),h(i.error,eV)?i.error:new eV("UNKNOWN_ASYNC_ERROR",i.error);case 7:r.contextHandler.reset(i);return[7];case 8:return[2]}})})()}}]);return r}(eB);var eK=function(t){p(r,t);var e=C(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=-1,a,s=r||l({});this.contextHandler.resetHooksRuntimes(s.hooksRuntimes);var c=true,f=false,v=undefined;try{for(var p=t[Symbol.iterator](),h;!(c=(h=p.next()).done);c=true){var y=h.value;var d;if(u++,this.contextHandler.shouldSkipPluginHook(y,e,s))continue;if(this.contextHandler.shouldBreakChain(s))break;this.contextHandler.runtimes(s,y,e,u);var g=(d=y)[e].apply(d,[s].concat(A(o)));if(g!==void 0&&(a=g,this.contextHandler.runtimeReturnValue(s,g),this.contextHandler.shouldBreakChainOnReturn(s)))return a}}catch(t){f=true;v=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(f){throw v}}}return a}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=Array.isArray(e)?e:[e],a;var s=true,c=false,l=undefined;try{for(var f=u[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var p=v.value;var h=this.runHook.apply(this,[t,p,r].concat(A(o)));if(h!==void 0&&(a=h),r&&this.contextHandler.shouldBreakChain(r))break}}catch(t){c=true;l=t}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return a}},{key:"execNoError",value:function t(t,e){try{return this.exec(t,e)}catch(t){return h(t,eV)?t:new eV("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r;var n=((r=this.config)===null||r===void 0?void 0:r.execHook)||"onExec";this.runHook(this.plugins,n,t,e),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:e(t)}},{key:"run",value:function t(t,e){var r,n;var o=l(t),i=((r=this.config)===null||r===void 0?void 0:r.beforeHooks)||"onBefore",u=((n=this.config)===null||n===void 0?void 0:n.afterHooks)||"onSuccess";try{return this.runHooks(this.plugins,i,o),this.runExec(o,e),this.runHooks(this.plugins,u,o),o.returnValue}catch(t){throw this.contextHandler.setError(o,t),this.runHook(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&this.contextHandler.setError(o,o.hooksRuntimes.returnValue),h(o.error,eV)?o.error:new eV("UNKNOWN_SYNC_ERROR",o.error)}finally{this.contextHandler.reset(o)}}}]);return r}(eB);var eM="ABORT_ERROR",eL=function(t){p(r,t);var e=C(r);function r(t,n,o){u(this,r);var i;i=e.call(this,eM,t),i.abortId=n,i.timeout=o;return R(i)}c(r,[{key:"isTimeout",value:function t(){return this.timeout!==void 0&&this.timeout>0}},{key:"getDescription",value:function t(){var t=[];return this.abortId&&t.push("Request: ".concat(this.abortId)),this.isTimeout()&&t.push("Timeout: ".concat(this.timeout,"ms")),t.length>0?"".concat(this.message," (").concat(t.join(", "),")"):this.message}}]);return r}(eV),e$=function(){function t(e){u(this,t);this.pluginName="AbortPlugin";this.onlyOne=!0;this.requestCounter=0;this.controllers=new Map;this.timeouts=new Map;this.getConfig=(e===null||e===void 0?void 0:e.getConfig)||function(t){return t},this.logger=e===null||e===void 0?void 0:e.logger}c(t,[{key:"generateRequestKey",value:function t(t){var e=t.requestId,r=t.id;return e||r||"".concat(this.pluginName,"-").concat(++this.requestCounter)}},{key:"cleanup",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.has(e),n=this.timeouts.has(e);if(r||n){var o;this.controllers.delete(e);var i=this.timeouts.get(e);i&&(clearTimeout(i),this.timeouts.delete(e)),(o=this.logger)===null||o===void 0?void 0:o.debug("[".concat(this.pluginName,"] cleanup: ").concat(e))}}},{key:"onBefore",value:function t(t){var e=this;var r;var n=this.getConfig(t.parameters),o=this.generateRequestKey(n),i=n.abortTimeout;if(this.controllers.has(o)&&((r=this.logger)===null||r===void 0?void 0:r.debug("[".concat(this.pluginName,"] aborting previous request: ").concat(o)),this.abort(o)),!n.signal){var u=new AbortController;if(this.controllers.set(o,u),n.signal=u.signal,i&&i>0){var a=setTimeout(function(){var t;var r=e.controllers.get(o);r&&(r.abort(new eL("The operation was aborted due to timeout",o,i)),(t=e.logger)===null||t===void 0?void 0:t.info("[".concat(e.pluginName,"] timeout abort: ").concat(o," (").concat(i,"ms)")),e.cleanup(o),typeof n.onAborted=="function"&&n.onAborted(O(x({},n),{onAborted:void 0})))},i);this.timeouts.set(o,a)}}}},{key:"onSuccess",value:function t(t){var e=t.parameters;if(e){var r=this.getConfig(e),n=this.generateRequestKey(r);this.cleanup(n)}}},{key:"onError",value:function e(e){var r=e.error,n=e.parameters;if(!n)return;var o=this.getConfig(n),i=this.generateRequestKey(o);if(t.isAbortError(r)){var u;var a=(u=this.controllers.get(i))===null||u===void 0?void 0:u.signal.reason;return this.cleanup(i),h(a,eL)?a:new eL((a===null||a===void 0?void 0:a.message)||(r===null||r===void 0?void 0:r.message)||"The operation was aborted",i)}else this.cleanup(i)}},{key:"abort",value:function t(t){var e;var r=typeof t=="string"?t:this.generateRequestKey(t),n=this.controllers.get(r);return n?(n.abort(new eL("The operation was aborted",r)),(e=this.logger)===null||e===void 0?void 0:e.info("[".concat(this.pluginName,"] manual abort: ").concat(r)),this.cleanup(r),typeof t!="string"&&typeof t.onAborted=="function"&&t.onAborted(O(x({},t),{onAborted:void 0})),!0):!1}},{key:"abortAll",value:function t(){var t;var e=this.controllers.size;e>0&&((t=this.logger)===null||t===void 0?void 0:t.debug("[".concat(this.pluginName,"] aborting all ").concat(e," requests"))),this.controllers.forEach(function(t,e){t.abort(new eL("All operations were aborted",e))}),this.controllers.clear(),this.timeouts.forEach(function(t){clearTimeout(t)}),this.timeouts.clear()}},{key:"createAbortPromise",value:function t(t){var e=function(){};return{promise:new Promise(function(r,n){if(t.aborted){n(t.reason||new eL("The operation was aborted"));return}var o=function(){n(t.reason||new eL("The operation was aborted"))};t.addEventListener("abort",o),e=function(){t.removeEventListener("abort",o)}}),cleanup:e}}},{key:"raceWithAbort",value:function t(t,e){if(!e)return t;var r=this.createAbortPromise(e),n=r.promise,o=r.cleanup;return Promise.race([t,n]).finally(function(){o()})}}],[{key:"isAbortError",value:function t(t){return h(t,eL)||h(t,Error)&&t.name==="AbortError"||h(t,eV)&&(t===null||t===void 0?void 0:t.id)===eM||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}}]);return t}();var eW=16,eJ=3,eG=function(){return!0},eQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var r;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:eG},e),{maxRetries:Math.min(Math.max(1,(r=e.maxRetries)!==null&&r!==void 0?r:eJ),eW)})}c(t,[{key:"delay",value:function t(t){var e=this;return i(function(){var r;return q(this,function(n){r=e.options.useExponentialBackoff?e.options.retryDelay*Math.pow(2,t):e.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,r)})]})})()}},{key:"onExec",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.options.maxRetries<1?e(t):r.retry(e,t,r.options,r.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var e=t.error,r=t.retryCount;return r>0&&this.options.shouldRetry(e)}},{key:"retry",value:function t(t,e,r,n){var o=this;return i(function(){var i;return q(this,function(u){switch(u.label){case 0:u.trys.push([0,2,,4]);return[4,t(e)];case 1:return[2,u.sent()];case 2:i=u.sent();if(!o.shouldRetry({error:i,retryCount:n}))throw new eV("RETRY_ERROR","All ".concat(r.maxRetries," attempts failed: ").concat(i.message));return[4,o.delay(r.maxRetries-n)];case 3:return[2,(u.sent(),n--,o.retry(t,e,r,n))];case 4:return[2]}})})()}}]);return t}();var eY=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}return r}(eV),eZ=function(t){return t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE",t}(eZ||{});var eX=H(eh(),1),e0=H(ez(),1),e1=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],e2=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);if(!e.fetcher){if(typeof fetch!="function")throw new eV("ENV_FETCH_NOT_SUPPORT");e.fetcher=fetch}this.executor=new eD,this.config=e}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var e=this;return i(function(){var r,n,o,u,a;return q(this,function(s){r=e.getConfig(),n=(0,eX.default)({},r,t),o=n.fetcher,u=_(n,["fetcher"]);if(typeof o!="function")throw new eV("FETCHER_NONE");if(!u.url)throw new eV("URL_NONE");a=function(){var t=i(function(t){var r;return q(this,function(n){switch(n.label){case 0:return[4,o(e.parametersToRequest(t.parameters))];case 1:r=n.sent();return[2,e.toAdapterResponse(r,r,t.parameters)]}})});return function e(e){return t.apply(this,arguments)}}();return[2,e.executor.exec(u,a)]})})()}},{key:"parametersToRequest",value:function t(t){var e=t.url,r=e===void 0?"/":e,n=t.method,o=n===void 0?"GET":n,i=t.data,u=(0,e0.default)(t,e1);return new Request(r,Object.assign(u,{body:i,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,e,r){return{data:t,status:e.status,statusText:e.statusText,headers:this.getResponseHeaders(e),config:r,response:e}}},{key:"getResponseHeaders",value:function t(t){var e={};return t.headers.forEach(function(t,r){e[r]=t}),e}}]);return t}();var e3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.config=r;this.axiosInstance=e.create(r)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var e=this;return i(function(){return q(this,function(r){return[2,e.axiosInstance.request(t)]})})()}}]);return t}();var e4=function(){function t(){u(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var e=t.params?JSON.stringify(t.params):"",r=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(e,"-").concat(r)}},{key:"onBefore",value:function t(t){var e=this.generateRequestKey(t.parameters);if(this.controllers.has(e)&&this.abort(t.parameters),!t.parameters.signal){var r=new AbortController;this.controllers.set(e,r),t.parameters.signal=r.signal}}},{key:"onSuccess",value:function t(t){var e=t.parameters;e&&this.controllers.delete(this.generateRequestKey(e))}},{key:"onError",value:function t(t){var e=t.error,r=t.parameters;if(this.isSameAbortError(e)&&r){var n=this.generateRequestKey(r),o=this.controllers.get(n);return this.controllers.delete(n),new eY("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||e)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.get(e);r&&(r.abort(new eY("ABORT_ERROR","The operation was aborted")),this.controllers.delete(e),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var e6=function(){function t(){u(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=j(t.split("?"),2),n=r[0],o=r[1],i=o===void 0?"":o;i.split("&").forEach(function(t){var r=j(t.split("="),2),n=r[0],o=r[1];n&&o&&(e[n]=o)});var u=Object.entries(e).map(function(t){var e=j(t,2),r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join("&");return[n,u].join("?")}},{key:"connectBaseURL",value:function t(t,e){return"".concat(e,"/").concat(t)}},{key:"buildUrl",value:function t(t){var e=t.url,r=e===void 0?"":e,n=t.baseURL,o=n===void 0?"":n,i=t.params;if(!this.isFullURL(r)){var u=r.startsWith("/")?r.slice(1):r,a=o.endsWith("/")?o.slice(0,-1):o;r=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(r=this.appendQueryParams(r,i)),r}},{key:"onBefore",value:function t(t){var e=t.parameters;e.url=this.buildUrl(e)}},{key:"onSuccess",value:function t(t){var e=t.returnValue;var r=e;if(!r.response.ok){var n=new eY("RESPONSE_NOT_OK","Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}}},{key:"onError",value:function t(t){var e=t.error;return h(e,eY)?e:new eY("REQUEST_ERROR",e)}}]);return t}();var e8=H(eh(),1),e7=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new eD;u(this,t);this.adapter=e;this.executor=r}c(t,[{key:"usePlugin",value:function t(t){var e=this;return Array.isArray(t)?t.forEach(function(t){return e.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var e=this;var r=(0,e8.default)({},this.adapter.getConfig(),t);return this.executor.exec(r,function(t){return e.adapter.request(t.parameters)})}}]);return t}();var e5=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"GET"}))]})})()}},{key:"post",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"POST"}))]})})()}},{key:"put",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"CONNECT"}))]})})()}}]);return r}(e7);var e9=function(t){p(r,t);var e=C(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"GET"}))}},{key:"post",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"POST",data:e}))}},{key:"put",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PUT",data:e}))}},{key:"delete",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PATCH",data:e}))}}]);return r}(e7);var rt;rt=Symbol.toStringTag;var re=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e;this[rt]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}:typeof t=="function"?function(e,r){var n=typeof r=="string"?r.replace(/\r\n/g,"\n"):r;return t.call(this,e,n)}:function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}}},{key:"stringify",value:function t(t,e,r){try{var n=this.createReplacer(e);return Array.isArray(n)?JSON.stringify(t,n,r):JSON.stringify(t,n,r!==null&&r!==void 0?r:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,e){return JSON.parse(t,e)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,e){try{return this.parse(t)}catch(t){return e}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var rr=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":T(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var e=this.options.urlSafe?this.makeUrlUnsafe(t):t;return e.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(e,"base64").toString("utf8"):atob(e),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var e;if(this.isNodeEnvironment())e=Buffer.from(t,"utf8").toString("base64");else{var r=new TextEncoder().encode(t),n=Array.from(r,function(t){return String.fromCharCode(t)}).join("");e=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(e):e}catch(t){return""}}},{key:"deserialize",value:function t(t,e){try{if(typeof t!="string")return e!==null&&e!==void 0?e:"";if(t.length===0)return"";if(!this.isValidBase64(t))return e!==null&&e!==void 0?e:"";var r=t;if(this.options.urlSafe&&(r=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(r,"base64").toString("utf8");{var n=atob(r),o=new Uint8Array(n.length);for(var i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return new TextDecoder().decode(o)}}catch(t){return e!==null&&e!==void 0?e:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var rn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.key=e;this.options=r;try{var n;var o=(n=r.storage)===null||n===void 0?void 0:n.getItem(e);this.value=o!==null&&o!==void 0?o:null}catch(t){this.value=null}}c(t,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.value}},{key:"get",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);if(this.value!=null)return this.value;if(r){var o=r.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,e){var r=this.mergeOptions(e),n=r.storage,o=_(r,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);this.value=null,r===null||r===void 0?void 0:r.removeItem(this.key,n)}}]);return t}();var ro=function(){function t(e){u(this,t);this.serializer=e;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,e,r){var n={key:t,value:e!==null&&e!==void 0?e:null};typeof(r===null||r===void 0?void 0:r.expires)=="number"&&r.expires>0&&(n.expires=r.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,e){var r=this.store.get(t),n=e!==null&&e!==void 0?e:null;if(!r)return n;var o=this.serializer?this.serializer.deserialize(r,n):r;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,e){var r,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),e!==null&&e!==void 0?e:null):(r=t===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:e:(n=t!==null&&t!==void 0?t:e)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":T(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var ri={setItem:{serialize:function(e,r){return(t=e).serialize.apply(t,A(r))},encrypt:function(t,r){return(e=t).encrypt.apply(e,A(r))},storage:function(t,e){return(r=t).setItem.apply(r,A(e))}},getItem:{serialize:function(t,e){return(o=t).deserialize.apply(o,A(e))},encrypt:function(t,e){return(a=t).decrypt.apply(a,A(e))},storage:function(t,e){return(s=t).getItem.apply(s,A(e))}}},ru=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];u(this,t);this.storage=e;this.pipes=(Array.isArray(r)?r:[r]).map(function(t){return y(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,e,r){var n=e;var o=true,i=false,u=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(t,n,r);else{var v=ri.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(t){i=true;u=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw u}}}this.storage.setItem(t,n,r)}},{key:"getItem",value:function t(t,e,r){var n=this.storage.getItem(t,e,r);if(n==null){var o=A(this.pipes).reverse();var i=true,u=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(i=(c=s.next()).done);i=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var p=ri.getItem[f](v,[t,n,r]);if(p!=null){n=p;break}}}catch(t){u=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(u){throw a}}}}if(n==null)return e!==null&&e!==void 0?e:null;var h=A(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=ri.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,r)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,e){this.storage.removeItem(t,e),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(r){r.pipe.removeItem(t,e)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return I(eU)}();
1
+ "use strict";function t(t,e){if(e==null||e>t.length)e=t.length;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function e(t){if(Array.isArray(t))return t}function r(e){if(Array.isArray(e))return t(e)}function n(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function o(t,e,r,n,o,i,u){try{var a=t[i](u);var s=a.value}catch(t){r(t);return}if(a.done){e(s)}else{Promise.resolve(s).then(n,o)}}function i(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var u=t.apply(e,r);function a(t){o(u,n,i,a,s,"next",t)}function s(t){o(u,n,i,a,s,"throw",t)}a(undefined)})}}function u(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function a(t,e,r){if(C()){a=Reflect.construct}else{a=function t(t,e,r){var n=[null];n.push.apply(n,e);var o=Function.bind.apply(t,n);var i=new o;if(r)E(i,r.prototype);return i}}return a.apply(null,arguments)}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,e,r){if(e)s(t.prototype,e);if(r)s(t,r);return t}function l(t,e,r){if(e in t){Object.defineProperty(t,e,{value:r,enumerable:true,configurable:true,writable:true})}else{t[e]=r}return t}function f(t,e,r){if(typeof Reflect!=="undefined"&&Reflect.get){f=Reflect.get}else{f=function t(t,e,r){var n=S(t,e);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,e);if(o.get){return o.get.call(r||t)}return o.value}}return f(t,e,r||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)E(t,e)}function h(t,e){if(e!=null&&typeof Symbol!=="undefined"&&e[Symbol.hasInstance]){return!!e[Symbol.hasInstance](t)}else{return t instanceof e}}function y(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function d(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function g(t,e){var r=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r==null)return;var n=[];var o=true;var i=false;var u,a;try{for(r=r.call(t);!(o=(u=r.next()).done);o=true){n.push(u.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!o&&r["return"]!=null)r["return"]()}finally{if(i)throw a}}return n}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))}n.forEach(function(e){l(t,e,r[e])})}return t}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(e){n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})}r.push.apply(r,n)}return r}function O(t,e){e=e!=null?e:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(e))}else{k(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}return t}function _(t,e){if(t==null)return{};var r=w(t,e);var n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++){n=i[o];if(e.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;r[n]=t[n]}}return r}function w(t,e){if(t==null)return{};var r={};var n=Object.keys(t);var o,i;for(i=0;i<n.length;i++){o=n[i];if(e.indexOf(o)>=0)continue;r[o]=t[o]}return r}function R(t,e){if(e&&(T(e)==="object"||typeof e==="function")){return e}return n(t)}function E(t,e){E=Object.setPrototypeOf||function t(t,e){t.__proto__=e;return t};return E(t,e)}function j(t,r){return e(t)||g(t,r)||P(t,r)||b()}function S(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=v(t);if(t===null)break}return t}function A(t){return r(t)||d(t)||P(t)||m()}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(e,r){if(!e)return;if(typeof e==="string")return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}function N(t){var e=typeof Map==="function"?new Map:undefined;N=function t(t){if(t===null||!y(t))return t;if(typeof t!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof e!=="undefined"){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return a(t,arguments,v(this).constructor)}r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return E(r,t)};return N(t)}function C(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function H(t){var e=C();return function r(){var r=v(t),n;if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else{n=r.apply(this,arguments)}return R(this,n)}}function q(t,e){var r,n,o,i,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(t){return function(e){return s([t,e])}}function s(i){if(r)throw new TypeError("Generator is already executing.");while(u)try{if(r=1,n&&(o=i[0]&2?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;if(n=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:u.label++;return{value:i[1],done:false};case 5:u.label++;n=i[1];i=[0];continue;case 7:i=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){u=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(i[0]===6&&u.label<o[1]){u.label=o[1];o=i;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(i);break}if(o[2])u.ops.pop();u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t];n=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var qloverFeCorekit=function(){var t,e,r,o,a,s;var l=function t(t){return{parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0,breakChain:!1,index:void 0}}};var y=function t(t){return"type"in t&&"pipe"in t?t:"serialize"in t&&"deserialize"in t?{pipe:t,type:"serialize"}:"encrypt"in t&&"decrypt"in t?{pipe:t,type:"encrypt"}:"setItem"in t&&"getItem"in t&&"removeItem"in t&&"clear"in t?{pipe:t,type:"storage"}:null};var d=Object.create;var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var k=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var E=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}},S=function(t,e){for(var r in e)g(t,r,{get:e[r],enumerable:!0})},P=function(t,e,r,n){var o=true,i=false,u=undefined;if(e&&(typeof e==="undefined"?"undefined":T(e))=="object"||typeof e=="function")try{var a=function(){var o=c.value;!w.call(t,o)&&o!==r&&g(t,o,{get:function(){return e[o]},enumerable:!(n=b(e,o))||n.enumerable})};for(var s=m(e)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){i=true;u=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(i){throw u}}}return t};var C=function(t,e,r){return r=t!=null?d(k(t)):{},P(e||!t||!t.__esModule?g(r,"default",{value:t,enumerable:!0}):r,t)},I=function(t){return P(g({},"__esModule",{value:!0}),t)};var z=E(function(t,e){"use strict";var r=function t(){this.__data__=[],this.size=0};e.exports=r});var U=E(function(t,e){"use strict";var r=function t(t,e){return t===e||t!==t&&e!==e};e.exports=r});var B=E(function(t,e){"use strict";var r=function t(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1};var n=U();e.exports=r});var V=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);if(r<0)return!1;var o=e.length-1;return r==o?e.pop():i.call(e,r,1),--this.size,!0};var n=B(),o=Array.prototype,i=o.splice;e.exports=r});var F=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]};var n=B();e.exports=r});var D=E(function(t,e){"use strict";var r=function t(t){return n(this.__data__,t)>-1};var n=B();e.exports=r});var K=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this};var n=B();e.exports=r});var M=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=z(),o=V(),i=F(),u=D(),a=K();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var L=E(function(t,e){"use strict";var r=function t(){this.__data__=new n,this.size=0};var n=M();e.exports=r});var $=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};e.exports=r});var W=E(function(t,e){"use strict";var r=function t(t){return this.__data__.get(t)};e.exports=r});var J=E(function(t,e){"use strict";var r=function t(t){return this.__data__.has(t)};e.exports=r});var G=E(function(t,e){"use strict";var r=(typeof global==="undefined"?"undefined":T(global))=="object"&&global&&global.Object===Object&&global;e.exports=r});var Q=E(function(t,e){"use strict";var r=G(),n=(typeof self==="undefined"?"undefined":T(self))=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o});var Y=E(function(t,e){"use strict";var r=Q(),n=r.Symbol;e.exports=n});var Z=E(function(t,e){"use strict";var r=function t(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[a]=r:delete t[a]),o};var n=Y(),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=n?n.toStringTag:void 0;e.exports=r});var X=E(function(t,e){"use strict";var r=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;e.exports=r});var tt=E(function(t,e){"use strict";var r=function t(t){return t==null?t===void 0?a:u:s&&s in Object(t)?o(t):i(t)};var n=Y(),o=Z(),i=X(),u="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=r});var te=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return t!=null&&(e=="object"||e=="function")};e.exports=r});var tr=E(function(t,e){"use strict";var r=function t(t){if(!o(t))return!1;var e=n(t);return e==u||e==a||e==i||e==s};var n=tt(),o=te(),i="[object AsyncFunction]",u="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";e.exports=r});var tn=E(function(t,e){"use strict";var r=Q(),n=r["__core-js_shared__"];e.exports=n});var to=E(function(t,e){"use strict";var r=function t(t){return!!o&&o in t};var n=tn(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();e.exports=r});var ti=E(function(t,e){"use strict";var r=function t(t){if(t!=null){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var n=Function.prototype,o=n.toString;e.exports=r});var tu=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||o(t))return!1;var e=n(t)?p:s;return e.test(u(t))};var n=tr(),o=to(),i=te(),u=ti(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,f=c.toString,v=l.hasOwnProperty,p=RegExp("^"+f.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=r});var ta=E(function(t,e){"use strict";var r=function t(t,e){return t===null||t===void 0?void 0:t[e]};e.exports=r});var ts=E(function(t,e){"use strict";var r=function t(t,e){var r=o(t,e);return n(r)?r:void 0};var n=tu(),o=ta();e.exports=r});var tc=E(function(t,e){"use strict";var r=ts(),n=Q(),o=r(n,"Map");e.exports=o});var tl=E(function(t,e){"use strict";var r=ts(),n=r(Object,"create");e.exports=n});var tf=E(function(t,e){"use strict";var r=function t(){this.__data__=n?n(null):{},this.size=0};var n=tl();e.exports=r});var tv=E(function(t,e){"use strict";var r=function t(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};e.exports=r});var tp=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return u.call(e,t)?e[t]:void 0};var n=tl(),o="__lodash_hash_undefined__",i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var th=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__;return n?e[t]!==void 0:i.call(e,t)};var n=tl(),o=Object.prototype,i=o.hasOwnProperty;e.exports=r});var ty=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&e===void 0?o:e,this};var n=tl(),o="__lodash_hash_undefined__";e.exports=r});var td=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tf(),o=tv(),i=tp(),u=th(),a=ty();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tg=E(function(t,e){"use strict";var r=function t(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}};var n=td(),o=M(),i=tc();e.exports=r});var tb=E(function(t,e){"use strict";var r=function t(t){var e=typeof t==="undefined"?"undefined":T(t);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null};e.exports=r});var tm=E(function(t,e){"use strict";var r=function t(t,e){var r=t.__data__;return n(e)?r[typeof e=="string"?"string":"hash"]:r.map};var n=tb();e.exports=r});var tx=E(function(t,e){"use strict";var r=function t(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e};var n=tm();e.exports=r});var tk=E(function(t,e){"use strict";var r=function t(t){return n(this,t).get(t)};var n=tm();e.exports=r});var tO=E(function(t,e){"use strict";var r=function t(t){return n(this,t).has(t)};var n=tm();e.exports=r});var t_=E(function(t,e){"use strict";var r=function t(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this};var n=tm();e.exports=r});var tw=E(function(t,e){"use strict";var r=function t(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}};var n=tg(),o=tx(),i=tk(),u=tO(),a=t_();r.prototype.clear=n;r.prototype.delete=o;r.prototype.get=i;r.prototype.has=u;r.prototype.set=a;e.exports=r});var tR=E(function(t,e){"use strict";var r=function t(t,e){var r=this.__data__;if(h(r,n)){var a=r.__data__;if(!o||a.length<u-1)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this};var n=M(),o=tc(),i=tw(),u=200;e.exports=r});var tE=E(function(t,e){"use strict";var r=function t(t){var e=this.__data__=new n(t);this.size=e.size};var n=M(),o=L(),i=$(),u=W(),a=J(),s=tR();r.prototype.clear=o;r.prototype.delete=i;r.prototype.get=u;r.prototype.has=a;r.prototype.set=s;e.exports=r});var tj=E(function(t,e){"use strict";var r=ts(),n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.exports=n});var tS=E(function(t,e){"use strict";var r=function t(t,e,r){e=="__proto__"&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var n=tj();e.exports=r});var tA=E(function(t,e){"use strict";var r=function t(t,e,r){(r!==void 0&&!o(t[e],r)||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U();e.exports=r});var tT=E(function(t,e){"use strict";var r=function t(t){return function(e,r,n){for(var o=-1,i=Object(e),u=n(e),a=u.length;a--;){var s=u[t?a:++o];if(r(i[s],s,i)===!1)break}return e}};e.exports=r});var tP=E(function(t,e){"use strict";var r=tT(),n=r();e.exports=n});var tN=E(function(t,e){"use strict";var r=function t(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n};var n=Q(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=r});var tC=E(function(t,e){"use strict";var r=Q(),n=r.Uint8Array;e.exports=n});var tH=E(function(t,e){"use strict";var r=function t(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e};var n=tC();e.exports=r});var tq=E(function(t,e){"use strict";var r=function t(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var n=tH();e.exports=r});var tI=E(function(t,e){"use strict";var r=function t(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};e.exports=r});var tz=E(function(t,e){"use strict";var r=te(),n=Object.create,o=function(){function t(){}return function(e){if(!r(e))return{};if(n)return n(e);t.prototype=e;var o=new t;return t.prototype=void 0,o}}();e.exports=o});var tU=E(function(t,e){"use strict";var r=function t(t,e){return function(r){return t(e(r))}};e.exports=r});var tB=E(function(t,e){"use strict";var r=tU(),n=r(Object.getPrototypeOf,Object);e.exports=n});var tV=E(function(t,e){"use strict";var r=function t(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||n;return t===r};var n=Object.prototype;e.exports=r});var tF=E(function(t,e){"use strict";var r=function t(t){return typeof t.constructor=="function"&&!i(t)?n(o(t)):{}};var n=tz(),o=tB(),i=tV();e.exports=r});var tD=E(function(t,e){"use strict";var r=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":T(t))=="object"};e.exports=r});var tK=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Arguments]";e.exports=r});var tM=E(function(t,e){"use strict";var r=tK(),n=tD(),o=Object.prototype,i=o.hasOwnProperty,u=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function t(t){return n(t)&&i.call(t,"callee")&&!u.call(t,"callee")};e.exports=a});var tL=E(function(t,e){"use strict";var r=Array.isArray;e.exports=r});var t$=E(function(t,e){"use strict";var r=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;e.exports=r});var tW=E(function(t,e){"use strict";var r=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tr(),o=t$();e.exports=r});var tJ=E(function(t,e){"use strict";var r=function t(t){return o(t)&&n(t)};var n=tW(),o=tD();e.exports=r});var tG=E(function(t,e){"use strict";var r=function t(){return!1};e.exports=r});var tQ=E(function(t,e){"use strict";var r=Q(),n=tG(),o=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,i=o&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,u=i&&i.exports===o,a=u?r.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;e.exports=c});var tY=E(function(t,e){"use strict";var r=function t(t){if(!i(t)||n(t)!=u)return!1;var e=o(t);if(e===null)return!0;var r=l.call(e,"constructor")&&e.constructor;return typeof r=="function"&&h(r,r)&&c.call(r)==f};var n=tt(),o=tB(),i=tD(),u="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,f=c.call(Object);e.exports=r});var tZ=E(function(t,e){"use strict";var r=function t(t){return i(t)&&o(t.length)&&!!T[n(t)]};var n=tt(),o=t$(),i=tD(),u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",v="[object Map]",p="[object Number]",h="[object Object]",y="[object RegExp]",d="[object Set]",g="[object String]",b="[object WeakMap]",m="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",O="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",R="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",T={};T[k]=T[O]=T[_]=T[w]=T[R]=T[E]=T[j]=T[S]=T[A]=!0;T[u]=T[a]=T[m]=T[s]=T[x]=T[c]=T[l]=T[f]=T[v]=T[p]=T[h]=T[y]=T[d]=T[g]=T[b]=!1;e.exports=r});var tX=E(function(t,e){"use strict";var r=function t(t){return function(e){return t(e)}};e.exports=r});var t0=E(function(t,e){"use strict";var r=G(),n=(typeof t==="undefined"?"undefined":T(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof e==="undefined"?"undefined":T(e))=="object"&&e&&!e.nodeType&&e,i=o&&o.exports===n,u=i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();e.exports=a});var t1=E(function(t,e){"use strict";var r=tZ(),n=tX(),o=t0(),i=o&&o.isTypedArray,u=i?n(i):r;e.exports=u});var t2=E(function(t,e){"use strict";var r=function t(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]};e.exports=r});var t3=E(function(t,e){"use strict";var r=function t(t,e,r){var i=t[e];(!(u.call(t,e)&&o(i,r))||r===void 0&&!(e in t))&&n(t,e,r)};var n=tS(),o=U(),i=Object.prototype,u=i.hasOwnProperty;e.exports=r});var t4=E(function(t,e){"use strict";var r=function t(t,e,r,i){var u=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;l===void 0&&(l=t[c]),u?o(r,c,l):n(r,c,l)}return r};var n=t3(),o=tS();e.exports=r});var t6=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};e.exports=r});var t8=E(function(t,e){"use strict";var r=function t(t,e){var r=typeof t==="undefined"?"undefined":T(t);return e=e!==null&&e!==void 0?e:n,!!e&&(r=="number"||r!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<e};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=r});var t7=E(function(t,e){"use strict";var r=function t(t,e){var r=i(t),c=!r&&o(t),f=!r&&!c&&u(t),v=!r&&!c&&!f&&s(t),p=r||c||f||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(e||l.call(t,d))&&!(p&&(d=="length"||f&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=t6(),o=tM(),i=tL(),u=tQ(),a=t8(),s=t1(),c=Object.prototype,l=c.hasOwnProperty;e.exports=r});var t5=E(function(t,e){"use strict";var r=function t(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e};e.exports=r});var t9=E(function(t,e){"use strict";var r=function t(t){if(!n(t))return i(t);var e=o(t),r=[];for(var u in t)u=="constructor"&&(e||!a.call(t,u))||r.push(u);return r};var n=te(),o=tV(),i=t5(),u=Object.prototype,a=u.hasOwnProperty;e.exports=r});var et=E(function(t,e){"use strict";var r=function t(t){return i(t)?n(t,!0):o(t)};var n=t7(),o=t9(),i=tW();e.exports=r});var ee=E(function(t,e){"use strict";var r=function t(t){return n(t,o(t))};var n=t4(),o=et();e.exports=r});var er=E(function(t,e){"use strict";var r=function t(t,e,r,b,m,x,k){var O=d(t,r),_=d(e,r),w=k.get(_);if(w){n(t,r,w);return}var R=x?x(O,_,r+"",t,e,k):void 0,E=R===void 0;if(E){var j=c(_),S=!j&&f(_),A=!j&&!S&&y(_);R=_,j||S||A?c(O)?R=O:l(O)?R=u(O):S?(E=!1,R=o(_,!0)):A?(E=!1,R=i(_,!0)):R=[]:h(_)||s(_)?(R=O,s(O)?R=g(O):(!p(O)||v(O))&&(R=a(_))):E=!1}E&&(k.set(_,R),m(R,_,b,x,k),k.delete(_)),n(t,r,R)};var n=tA(),o=tN(),i=tq(),u=tI(),a=tF(),s=tM(),c=tL(),l=tJ(),f=tQ(),v=tr(),p=te(),h=tY(),y=t1(),d=t2(),g=ee();e.exports=r});var en=E(function(t,e){"use strict";var r=tE(),n=tA(),o=tP(),i=er(),u=te(),a=et(),s=t2();function c(t,e,l,f,v){t!==e&&o(e,function(o,a){if(v||(v=new r),u(o))i(t,e,a,l,c,f,v);else{var p=f?f(s(t,a),o,a+"",t,e,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}e.exports=c});var eo=E(function(t,e){"use strict";var r=function t(t){return t};e.exports=r});var ei=E(function(t,e){"use strict";var r=function t(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};e.exports=r});var eu=E(function(t,e){"use strict";var r=function t(t,e,r){return e=o(e===void 0?t.length-1:e,0),function(){for(var i=arguments,u=-1,a=o(i.length-e,0),s=Array(a);++u<a;)s[u]=i[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=i[u];return c[e]=r(s),n(t,this,c)}};var n=ei(),o=Math.max;e.exports=r});var ea=E(function(t,e){"use strict";var r=function t(t){return function(){return t}};e.exports=r});var es=E(function(t,e){"use strict";var r=ea(),n=tj(),o=eo(),i=n?function t(t,e){return n(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;e.exports=i});var ec=E(function(t,e){"use strict";var r=function t(t){var e=0,r=0;return function(){var u=i(),a=o-(u-r);if(r=u,a>0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}};var n=800,o=16,i=Date.now;e.exports=r});var el=E(function(t,e){"use strict";var r=es(),n=ec(),o=n(r);e.exports=o});var ef=E(function(t,e){"use strict";var r=function t(t,e){return i(o(t,e,n),t+"")};var n=eo(),o=eu(),i=el();e.exports=r});var ev=E(function(t,e){"use strict";var r=function t(t,e,r){if(!u(r))return!1;var a=typeof e==="undefined"?"undefined":T(e);return(a=="number"?o(r)&&i(e,r.length):a=="string"&&e in r)?n(r[e],t):!1};var n=U(),o=tW(),i=t8(),u=te();e.exports=r});var ep=E(function(t,e){"use strict";var r=function t(t){return n(function(e,r){var n=-1,i=r.length,u=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(u=t.length>3&&typeof u=="function"?(i--,u):void 0,a&&o(r[0],r[1],a)&&(u=i<3?void 0:u,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,u)}return e})};var n=ef(),o=ev();e.exports=r});var eh=E(function(t,e){"use strict";var r=en(),n=ep(),o=n(function(t,e,n){r(t,e,n)});e.exports=o});var ey=E(function(t,e){"use strict";var r=function t(t){return(typeof t==="undefined"?"undefined":T(t))=="symbol"||o(t)&&n(t)==i};var n=tt(),o=tD(),i="[object Symbol]";e.exports=r});var ed=E(function(t,e){"use strict";var r=function t(t,e){if(n(t))return!1;var r=typeof t==="undefined"?"undefined":T(t);return r=="number"||r=="symbol"||r=="boolean"||t==null||o(t)?!0:u.test(t)||!i.test(t)||e!=null&&t in Object(e)};var n=tL(),o=ey(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;e.exports=r});var eg=E(function(t,e){"use strict";var r=tw(),n="Expected a function";function o(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(n);var i=function r(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var u=t.apply(this,r);return i.cache=o.set(n,u)||o,u};return i.cache=new(o.Cache||r),i}o.Cache=r;e.exports=o});var eb=E(function(t,e){"use strict";var r=function t(t){var e=n(t,function(t){return r.size===o&&r.clear(),t}),r=e.cache;return e};var n=eg(),o=500;e.exports=r});var em=E(function(t,e){"use strict";var r=eb(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(n,function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)}),e});e.exports=i});var ex=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=t==null?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};e.exports=r});var ek=E(function(t,e){"use strict";var r=Y(),n=ex(),o=tL(),i=ey(),u=1/0,a=r?r.prototype:void 0,s=a?a.toString:void 0;function c(t){if(typeof t=="string")return t;if(o(t))return n(t,c)+"";if(i(t))return s?s.call(t):"";var e=t+"";return e=="0"&&1/t==-u?"-0":e}e.exports=c});var eO=E(function(t,e){"use strict";var r=function t(t){return t==null?"":n(t)};var n=ek();e.exports=r});var e_=E(function(t,e){"use strict";var r=function t(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))};var n=tL(),o=ed(),i=em(),u=eO();e.exports=r});var ew=E(function(t,e){"use strict";var r=function t(t){if(typeof t=="string"||n(t))return t;var e=t+"";return e=="0"&&1/t==-o?"-0":e};var n=ey(),o=1/0;e.exports=r});var eR=E(function(t,e){"use strict";var r=function t(t,e){e=n(e,t);for(var r=0,i=e.length;t!=null&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0};var n=e_(),o=ew();e.exports=r});var eE=E(function(t,e){"use strict";var r=function t(t,e,r,s){if(!u(t))return t;e=o(e,t);for(var c=-1,l=e.length,f=l-1,v=t;v!=null&&++c<l;){var p=a(e[c]),h=r;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=f){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=u(y)?y:i(e[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=t3(),o=e_(),i=t8(),u=te(),a=ew();e.exports=r});var ej=E(function(t,e){"use strict";var r=function t(t,e,r){for(var u=-1,a=e.length,s={};++u<a;){var c=e[u],l=n(t,c);r(l,c)&&o(s,i(c,t),l)}return s};var n=eR(),o=eE(),i=e_();e.exports=r});var eS=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&e in Object(t)};e.exports=r});var eA=E(function(t,e){"use strict";var r=function t(t,e,r){e=n(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var v=s(e[c]);if(!(f=t!=null&&r(t,v)))break;t=t[v]}return f||++c!=l?f:(l=t==null?0:t.length,!!l&&a(l)&&u(v,l)&&(i(t)||o(t)))};var n=e_(),o=tM(),i=tL(),u=t8(),a=t$(),s=ew();e.exports=r});var eT=E(function(t,e){"use strict";var r=function t(t,e){return t!=null&&o(t,e,n)};var n=eS(),o=eA();e.exports=r});var eP=E(function(t,e){"use strict";var r=function t(t,e){return n(t,e,function(e,r){return o(t,r)})};var n=ej(),o=eT();e.exports=r});var eN=E(function(t,e){"use strict";var r=function t(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t};e.exports=r});var eC=E(function(t,e){"use strict";var r=function t(t){return i(t)||o(t)||!!(u&&t&&t[u])};var n=Y(),o=tM(),i=tL(),u=n?n.isConcatSpreadable:void 0;e.exports=r});var eH=E(function(t,e){"use strict";var r=eN(),n=eC();function o(t,e,i,u,a){var s=-1,c=t.length;for(i||(i=n),a||(a=[]);++s<c;){var l=t[s];e>0&&i(l)?e>1?o(l,e-1,i,u,a):r(a,l):u||(a[a.length]=l)}return a}e.exports=o});var eq=E(function(t,e){"use strict";var r=function t(t){var e=t==null?0:t.length;return e?n(t,1):[]};var n=eH();e.exports=r});var eI=E(function(t,e){"use strict";var r=function t(t){return i(o(t,void 0,n),t+"")};var n=eq(),o=eu(),i=el();e.exports=r});var ez=E(function(t,e){"use strict";var r=eP(),n=eI(),o=n(function(t,e){return t==null?{}:r(t,e)});e.exports=o});var eU={};S(eU,{ABORT_ERROR_ID:function(){return eM},AbortError:function(){return eL},AbortPlugin:function(){return e$},AsyncExecutor:function(){return eD},Base64Serializer:function(){return rr},Executor:function(){return eB},ExecutorError:function(){return eV},FetchAbortPlugin:function(){return e4},FetchURLPlugin:function(){return e6},JSONSerializer:function(){return re},KeyStorage:function(){return rn},ObjectStorage:function(){return ro},RequestAdapterAxios:function(){return e3},RequestAdapterFetch:function(){return e2},RequestError:function(){return eY},RequestErrorID:function(){return eZ},RequestManager:function(){return e7},RequestScheduler:function(){return e5},RequestTransaction:function(){return e9},RetryPlugin:function(){return eQ},SyncExecutor:function(){return eK},SyncStorage:function(){return ru}});var eB=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.config=e;this.plugins=[]}c(t,[{key:"use",value:function t(t){if((typeof t==="undefined"?"undefined":T(t))!="object"||t===null)throw new Error("Plugin must be an object");if(this.plugins.find(function(e){return e===t||e.pluginName===t.pluginName||e.constructor===t.constructor})&&t.onlyOne){console.warn("Plugin ".concat(t.pluginName," is already used, skip adding"));return}this.plugins.push(t)}}]);return t}();var eV=function t(t){p(r,t);var e=H(r);function r(t,o){u(this,r);var i;i=e.call(this,h(o,Error)?o.message:o||t);i.id=t;h(o,Error)&&"stack"in o&&(i.stack=o.stack),Object.setPrototypeOf(n(i),(h(this,r)?this.constructor:void 0).prototype);return i}return r}(N(Error));var eF=function(){function t(){u(this,t)}c(t,[{key:"resetHooksRuntimes",value:function t(t){t.pluginName="",t.hookName="",t.returnValue=void 0,t.returnBreakChain=!1,t.times=0,t.breakChain=!1,t.index=void 0}},{key:"reset",value:function t(t){this.resetHooksRuntimes(t.hooksRuntimes),t.returnValue=void 0,t.error=void 0}},{key:"shouldSkipPluginHook",value:function t(t,e,r){return typeof t[e]!="function"||typeof t.enabled=="function"&&!t.enabled(e,r)}},{key:"runtimes",value:function t(t,e,r,n){t.hooksRuntimes.pluginName=e.pluginName,t.hooksRuntimes.hookName=r,t.hooksRuntimes.times=(t.hooksRuntimes.times||0)+1,t.hooksRuntimes.index=n}},{key:"runtimeReturnValue",value:function t(t,e){t.hooksRuntimes.returnValue=e}},{key:"shouldBreakChain",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.breakChain)}},{key:"shouldBreakChainOnReturn",value:function t(t){var e;return!!((e=t.hooksRuntimes)===null||e===void 0?void 0:e.returnBreakChain)}},{key:"setError",value:function t(t,e){t.error=e}}]);return t}();var eD=function(t){p(r,t);var e=H(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,f,v,p,h,y,d,g;return q(this,function(b){switch(b.label){case 0:n=-1,u=r||l({});a.contextHandler.resetHooksRuntimes(u.hooksRuntimes);s=true,c=false,f=undefined;b.label=1;case 1:b.trys.push([1,6,7,8]);v=t[Symbol.iterator]();b.label=2;case 2:if(!!(s=(p=v.next()).done))return[3,5];h=p.value;if(n++,a.contextHandler.shouldSkipPluginHook(h,e,u))return[3,4];if(a.contextHandler.shouldBreakChain(u))return[3,5];a.contextHandler.runtimes(u,h,e,n);return[4,(y=h)[e].apply(y,[u].concat(A(o)))];case 3:d=b.sent();if(d!==void 0&&(i=d,a.contextHandler.runtimeReturnValue(u,d),a.contextHandler.shouldBreakChainOnReturn(u)))return[2,i];b.label=4;case 4:s=true;return[3,2];case 5:return[3,8];case 6:g=b.sent();c=true;f=g;return[3,8];case 7:try{if(!s&&v.return!=null){v.return()}}finally{if(c){throw f}}return[7];case 8:return[2,i]}})})()}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var a=this;return i(function(){var n,i,u,s,c,l,f,v,p,h;return q(this,function(y){switch(y.label){case 0:n=Array.isArray(e)?e:[e];u=true,s=false,c=undefined;y.label=1;case 1:y.trys.push([1,6,7,8]);l=n[Symbol.iterator]();y.label=2;case 2:if(!!(u=(f=l.next()).done))return[3,5];v=f.value;return[4,a.runHook.apply(a,[t,v,r].concat(A(o)))];case 3:p=y.sent();if(p!==void 0&&(i=p),r&&a.contextHandler.shouldBreakChain(r))return[3,5];y.label=4;case 4:u=true;return[3,2];case 5:return[3,8];case 6:h=y.sent();s=true;c=h;return[3,8];case 7:try{if(!u&&l.return!=null){l.return()}}finally{if(s){throw c}}return[7];case 8:return[2,i]}})})()}},{key:"execNoError",value:function t(t,e){var r=this;return i(function(){var n;return q(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,r.exec(t,e)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,eV)?n:new eV("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a async function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r=this;return i(function(){var n,o,i;return q(this,function(u){switch(u.label){case 0:o=((n=r.config)===null||n===void 0?void 0:n.execHook)||"onExec";return[4,r.runHook(r.plugins,o,t,e)];case 1:u.sent();if(!t.hooksRuntimes.times)return[3,2];i=t.hooksRuntimes.returnValue;return[3,4];case 2:return[4,e(t)];case 3:i=u.sent();u.label=4;case 4:t.returnValue=i;return[2]}})})()}},{key:"run",value:function t(t,e){var r=this;return i(function(){var n,o,i,u,a,s;return q(this,function(c){switch(c.label){case 0:i=l(t),u=((n=r.config)===null||n===void 0?void 0:n.beforeHooks)||"onBefore",a=((o=r.config)===null||o===void 0?void 0:o.afterHooks)||"onSuccess";c.label=1;case 1:c.trys.push([1,5,7,8]);return[4,r.runHooks(r.plugins,u,i)];case 2:c.sent();return[4,r.runExec(i,e)];case 3:c.sent();return[4,r.runHooks(r.plugins,a,i)];case 4:return[2,(c.sent(),i.returnValue)];case 5:s=c.sent();r.contextHandler.setError(i,s);return[4,r.runHook(r.plugins,"onError",i)];case 6:throw c.sent(),i.hooksRuntimes.returnValue&&r.contextHandler.setError(i,i.hooksRuntimes.returnValue),h(i.error,eV)?i.error:new eV("UNKNOWN_ASYNC_ERROR",i.error);case 7:r.contextHandler.reset(i);return[7];case 8:return[2]}})})()}}]);return r}(eB);var eK=function(t){p(r,t);var e=H(r);function r(){u(this,r);var t;t=e.call.apply(e,[this].concat(Array.prototype.slice.call(arguments)));t.contextHandler=new eF;return t}c(r,[{key:"runHook",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=-1,a,s=r||l({});this.contextHandler.resetHooksRuntimes(s.hooksRuntimes);var c=true,f=false,v=undefined;try{for(var p=t[Symbol.iterator](),h;!(c=(h=p.next()).done);c=true){var y=h.value;var d;if(u++,this.contextHandler.shouldSkipPluginHook(y,e,s))continue;if(this.contextHandler.shouldBreakChain(s))break;this.contextHandler.runtimes(s,y,e,u);var g=(d=y)[e].apply(d,[s].concat(A(o)));if(g!==void 0&&(a=g,this.contextHandler.runtimeReturnValue(s,g),this.contextHandler.shouldBreakChainOnReturn(s)))return a}}catch(t){f=true;v=t}finally{try{if(!c&&p.return!=null){p.return()}}finally{if(f){throw v}}}return a}},{key:"runHooks",value:function t(t,e,r){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}var u=Array.isArray(e)?e:[e],a;var s=true,c=false,l=undefined;try{for(var f=u[Symbol.iterator](),v;!(s=(v=f.next()).done);s=true){var p=v.value;var h=this.runHook.apply(this,[t,p,r].concat(A(o)));if(h!==void 0&&(a=h),r&&this.contextHandler.shouldBreakChain(r))break}}catch(t){c=true;l=t}finally{try{if(!s&&f.return!=null){f.return()}}finally{if(c){throw l}}}return a}},{key:"execNoError",value:function t(t,e){try{return this.exec(t,e)}catch(t){return h(t,eV)?t:new eV("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,e){var r=e||t,n=e?t:void 0;if(typeof r!="function")throw new Error("Task must be a function!");return this.run(n,r)}},{key:"runExec",value:function t(t,e){var r;var n=((r=this.config)===null||r===void 0?void 0:r.execHook)||"onExec";this.runHook(this.plugins,n,t,e),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:e(t)}},{key:"run",value:function t(t,e){var r,n;var o=l(t),i=((r=this.config)===null||r===void 0?void 0:r.beforeHooks)||"onBefore",u=((n=this.config)===null||n===void 0?void 0:n.afterHooks)||"onSuccess";try{return this.runHooks(this.plugins,i,o),this.runExec(o,e),this.runHooks(this.plugins,u,o),o.returnValue}catch(t){throw this.contextHandler.setError(o,t),this.runHook(this.plugins,"onError",o),o.hooksRuntimes.returnValue&&this.contextHandler.setError(o,o.hooksRuntimes.returnValue),h(o.error,eV)?o.error:new eV("UNKNOWN_SYNC_ERROR",o.error)}finally{this.contextHandler.reset(o)}}}]);return r}(eB);var eM="ABORT_ERROR",eL=function(t){p(r,t);var e=H(r);function r(t,n,o){u(this,r);var i;i=e.call(this,eM,t),i.abortId=n,i.timeout=o;return R(i)}c(r,[{key:"isTimeout",value:function t(){return this.timeout!==void 0&&this.timeout>0}},{key:"getDescription",value:function t(){var t=[];return this.abortId&&t.push("Request: ".concat(this.abortId)),this.isTimeout()&&t.push("Timeout: ".concat(this.timeout,"ms")),t.length>0?"".concat(this.message," (").concat(t.join(", "),")"):this.message}}]);return r}(eV),e$=function(){function t(e){u(this,t);this.pluginName="AbortPlugin";this.onlyOne=!0;this.requestCounter=0;this.controllers=new Map;this.timeouts=new Map;this.getConfig=(e===null||e===void 0?void 0:e.getConfig)||function(t){return t},this.logger=e===null||e===void 0?void 0:e.logger}c(t,[{key:"generateRequestKey",value:function t(t){var e=t.requestId,r=t.id;return e||r||"".concat(this.pluginName,"-").concat(++this.requestCounter)}},{key:"cleanup",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.has(e),n=this.timeouts.has(e);if(r||n){var o;this.controllers.delete(e);var i=this.timeouts.get(e);i&&(clearTimeout(i),this.timeouts.delete(e)),(o=this.logger)===null||o===void 0?void 0:o.debug("[".concat(this.pluginName,"] cleanup: ").concat(e))}}},{key:"onBefore",value:function t(t){var e=this;var r;var n=this.getConfig(t.parameters),o=this.generateRequestKey(n),i=n.abortTimeout;if(this.controllers.has(o)&&((r=this.logger)===null||r===void 0?void 0:r.debug("[".concat(this.pluginName,"] aborting previous request: ").concat(o)),this.abort(o)),!n.signal){var u=new AbortController;if(this.controllers.set(o,u),n.signal=u.signal,i&&i>0){var a=setTimeout(function(){var t;var r=e.controllers.get(o);r&&(r.abort(new eL("The operation was aborted due to timeout",o,i)),(t=e.logger)===null||t===void 0?void 0:t.info("[".concat(e.pluginName,"] timeout abort: ").concat(o," (").concat(i,"ms)")),e.cleanup(o),typeof n.onAborted=="function"&&n.onAborted(O(x({},n),{onAborted:void 0})))},i);this.timeouts.set(o,a)}}}},{key:"onSuccess",value:function t(t){var e=t.parameters;if(e){var r=this.getConfig(e),n=this.generateRequestKey(r);this.cleanup(n)}}},{key:"onError",value:function e(e){var r=e.error,n=e.parameters;if(!n)return;var o=this.getConfig(n),i=this.generateRequestKey(o);if(t.isAbortError(r)){var u;var a=(u=this.controllers.get(i))===null||u===void 0?void 0:u.signal.reason;return this.cleanup(i),h(a,eL)?a:new eL((a===null||a===void 0?void 0:a.message)||(r===null||r===void 0?void 0:r.message)||"The operation was aborted",i)}else this.cleanup(i)}},{key:"abort",value:function t(t){var e;var r=typeof t=="string"?t:this.generateRequestKey(t),n=this.controllers.get(r);return n?(n.abort(new eL("The operation was aborted",r)),(e=this.logger)===null||e===void 0?void 0:e.info("[".concat(this.pluginName,"] manual abort: ").concat(r)),this.cleanup(r),typeof t!="string"&&typeof t.onAborted=="function"&&t.onAborted(O(x({},t),{onAborted:void 0})),!0):!1}},{key:"abortAll",value:function t(){var t;var e=this.controllers.size;e>0&&((t=this.logger)===null||t===void 0?void 0:t.debug("[".concat(this.pluginName,"] aborting all ").concat(e," requests"))),this.controllers.forEach(function(t,e){t.abort(new eL("All operations were aborted",e))}),this.controllers.clear(),this.timeouts.forEach(function(t){clearTimeout(t)}),this.timeouts.clear()}},{key:"createAbortPromise",value:function t(t){var e=function(){};return{promise:new Promise(function(r,n){if(t.aborted){n(t.reason||new eL("The operation was aborted"));return}var o=function(){n(t.reason||new eL("The operation was aborted"))};t.addEventListener("abort",o),e=function(){t.removeEventListener("abort",o)}}),cleanup:e}}},{key:"raceWithAbort",value:function t(t,e){if(!e)return t;var r=this.createAbortPromise(e),n=r.promise,o=r.cleanup;return Promise.race([t,n]).finally(function(){o()})}}],[{key:"isAbortError",value:function t(t){return h(t,eL)||h(t,Error)&&t.name==="AbortError"||h(t,eV)&&(t===null||t===void 0?void 0:t.id)===eM||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}}]);return t}();var eW=16,eJ=3,eG=function(){return!0},eQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var r;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:eG},e),{maxRetries:Math.min(Math.max(1,(r=e.maxRetries)!==null&&r!==void 0?r:eJ),eW)})}c(t,[{key:"delay",value:function t(t){var e=this;return i(function(){var r;return q(this,function(n){r=e.options.useExponentialBackoff?e.options.retryDelay*Math.pow(2,t):e.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,r)})]})})()}},{key:"onExec",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.options.maxRetries<1?e(t):r.retry(e,t,r.options,r.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var e=t.error,r=t.retryCount;return r>0&&this.options.shouldRetry(e)}},{key:"retry",value:function t(t,e,r,n){var o=this;return i(function(){var i;return q(this,function(u){switch(u.label){case 0:u.trys.push([0,2,,4]);return[4,t(e)];case 1:return[2,u.sent()];case 2:i=u.sent();if(!o.shouldRetry({error:i,retryCount:n}))throw new eV("RETRY_ERROR","All ".concat(r.maxRetries," attempts failed: ").concat(i.message));return[4,o.delay(r.maxRetries-n)];case 3:return[2,(u.sent(),n--,o.retry(t,e,r,n))];case 4:return[2]}})})()}}]);return t}();var eY=function(t){p(r,t);var e=H(r);function r(){u(this,r);return e.apply(this,arguments)}return r}(eV),eZ=function(t){return t.REQUEST_ERROR="REQUEST_ERROR",t.ENV_FETCH_NOT_SUPPORT="ENV_FETCH_NOT_SUPPORT",t.FETCHER_NONE="FETCHER_NONE",t.RESPONSE_NOT_OK="RESPONSE_NOT_OK",t.ABORT_ERROR="ABORT_ERROR",t.URL_NONE="URL_NONE",t}(eZ||{});var eX=C(eh(),1),e0=C(ez(),1),e1=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],e2=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);if(!e.fetcher){if(typeof fetch!="function")throw new eV("ENV_FETCH_NOT_SUPPORT");e.fetcher=fetch}this.executor=new eD,this.config=e}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"setConfig",value:function t(t){Object.assign(this.config,t)}},{key:"usePlugin",value:function t(t){this.executor.use(t)}},{key:"request",value:function t(t){var e=this;return i(function(){var r,n,o,u,a;return q(this,function(s){r=e.getConfig(),n=(0,eX.default)({},r,t),o=n.fetcher,u=_(n,["fetcher"]);if(typeof o!="function")throw new eV("FETCHER_NONE");if(!u.url)throw new eV("URL_NONE");a=function(){var t=i(function(t){var r;return q(this,function(n){switch(n.label){case 0:return[4,o(e.parametersToRequest(t.parameters))];case 1:r=n.sent();return[2,e.toAdapterResponse(r,r,t.parameters)]}})});return function e(e){return t.apply(this,arguments)}}();return[2,e.executor.exec(u,a)]})})()}},{key:"parametersToRequest",value:function t(t){var e=t.url,r=e===void 0?"/":e,n=t.method,o=n===void 0?"GET":n,i=t.data,u=(0,e0.default)(t,e1);return new Request(r,Object.assign(u,{body:i,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,e,r){return{data:t,status:e.status,statusText:e.statusText,headers:this.getResponseHeaders(e),config:r,response:e}}},{key:"getResponseHeaders",value:function t(t){var e={};return t.headers.forEach(function(t,r){e[r]=t}),e}}]);return t}();var e3=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.config=r;this.axiosInstance=e.create(r)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"setConfig",value:function t(t){Object.assign(this.config,t)}},{key:"request",value:function t(t){var e=this;return i(function(){return q(this,function(r){return[2,e.axiosInstance.request(t)]})})()}}]);return t}();var e4=function(){function t(){u(this,t);this.pluginName="FetchAbortPlugin";this.onlyOne=!0;this.controllers=new Map}c(t,[{key:"generateRequestKey",value:function t(t){if(t.requestId)return t.requestId;var e=t.params?JSON.stringify(t.params):"",r=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(e,"-").concat(r)}},{key:"onBefore",value:function t(t){var e=this.generateRequestKey(t.parameters);if(this.controllers.has(e)&&this.abort(t.parameters),!t.parameters.signal){var r=new AbortController;this.controllers.set(e,r),t.parameters.signal=r.signal}}},{key:"onSuccess",value:function t(t){var e=t.parameters;e&&this.controllers.delete(this.generateRequestKey(e))}},{key:"onError",value:function t(t){var e=t.error,r=t.parameters;if(this.isSameAbortError(e)&&r){var n=this.generateRequestKey(r),o=this.controllers.get(n);return this.controllers.delete(n),new eY("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||e)}}},{key:"isSameAbortError",value:function t(t){return h(t,Error)&&t.name==="AbortError"||h(t,DOMException)&&t.name==="AbortError"||h(t,Event)&&t.type==="abort"}},{key:"abort",value:function t(t){var e=typeof t=="string"?t:this.generateRequestKey(t),r=this.controllers.get(e);r&&(r.abort(new eY("ABORT_ERROR","The operation was aborted")),this.controllers.delete(e),typeof t!="string"&&typeof t.onAbort=="function"&&t.onAbort.call(t,t))}},{key:"abortAll",value:function t(){this.controllers.forEach(function(t){return t.abort()}),this.controllers.clear()}}]);return t}();var e6=function(){function t(){u(this,t);this.pluginName="FetchURLPlugin"}c(t,[{key:"isFullURL",value:function t(t){return t.startsWith("http://")||t.startsWith("https://")}},{key:"appendQueryParams",value:function t(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=j(t.split("?"),2),n=r[0],o=r[1],i=o===void 0?"":o;i.split("&").forEach(function(t){var r=j(t.split("="),2),n=r[0],o=r[1];n&&o&&(e[n]=o)});var u=Object.entries(e).map(function(t){var e=j(t,2),r=e[0],n=e[1];return"".concat(r,"=").concat(n)}).join("&");return[n,u].join("?")}},{key:"connectBaseURL",value:function t(t,e){return"".concat(e,"/").concat(t)}},{key:"buildUrl",value:function t(t){var e=t.url,r=e===void 0?"":e,n=t.baseURL,o=n===void 0?"":n,i=t.params;if(!this.isFullURL(r)){var u=r.startsWith("/")?r.slice(1):r,a=o.endsWith("/")?o.slice(0,-1):o;r=this.connectBaseURL(u,a)}return i&&Object.keys(i).length>0&&(r=this.appendQueryParams(r,i)),r}},{key:"onBefore",value:function t(t){var e=t.parameters;e.url=this.buildUrl(e)}},{key:"onSuccess",value:function t(t){var e=t.returnValue;var r=e;if(!r.response.ok){var n=new eY("RESPONSE_NOT_OK","Request failed with status: ".concat(r.status," ").concat(r.statusText));throw n.response=r.response,n}}},{key:"onError",value:function t(t){var e=t.error;return h(e,eY)?e:new eY("REQUEST_ERROR",e)}}]);return t}();var e8=C(eh(),1),e7=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new eD;u(this,t);this.adapter=e;this.executor=r}c(t,[{key:"usePlugin",value:function t(t){var e=this;return Array.isArray(t)?t.forEach(function(t){return e.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var e=this;var r=(0,e8.default)({},this.adapter.getConfig(),t);return this.executor.exec(r,function(t){return e.adapter.request(t.parameters)})}}]);return t}();var e5=function(t){p(r,t);var e=H(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"GET"}))]})})()}},{key:"post",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"POST"}))]})})()}},{key:"put",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,e){var r=this;return i(function(){return q(this,function(n){return[2,r.request(O(x({url:t},e),{method:"CONNECT"}))]})})()}}]);return r}(e7);var e9=function(t){p(r,t);var e=H(r);function r(){u(this,r);return e.apply(this,arguments)}c(r,[{key:"request",value:function t(t){return f(v(r.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"GET"}))}},{key:"post",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"POST",data:e}))}},{key:"put",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PUT",data:e}))}},{key:"delete",value:function t(t,e){return this.request(O(x({},e),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,e,r){return this.request(O(x({},r),{url:t,method:"PATCH",data:e}))}}]);return r}(e7);var rt;rt=Symbol.toStringTag;var re=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e;this[rt]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}:typeof t=="function"?function(e,r){var n=typeof r=="string"?r.replace(/\r\n/g,"\n"):r;return t.call(this,e,n)}:function(t,e){return typeof e=="string"?e.replace(/\r\n/g,"\n"):e}}},{key:"stringify",value:function t(t,e,r){try{var n=this.createReplacer(e);return Array.isArray(n)?JSON.stringify(t,n,r):JSON.stringify(t,n,r!==null&&r!==void 0?r:this.options.pretty?this.options.indent||2:void 0)}catch(t){throw h(t,TypeError)&&t.message.includes("circular")?new TypeError("Cannot stringify data with circular references"):t}}},{key:"parse",value:function t(t,e){return JSON.parse(t,e)}},{key:"serialize",value:function t(t){return this.stringify(t,this.options.replacer||null,this.options.pretty?this.options.indent||2:void 0)}},{key:"deserialize",value:function t(t,e){try{return this.parse(t)}catch(t){return e}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var rr=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};u(this,t);this.options=e}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":T(process))<"u"&&process.versions&&!!process.versions.node}},{key:"isValidBase64",value:function t(t){try{if(!/^[A-Za-z0-9+/\-_]*={0,2}$/.test(t))return!1;var e=this.options.urlSafe?this.makeUrlUnsafe(t):t;return e.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(e,"base64").toString("utf8"):atob(e),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var e;if(this.isNodeEnvironment())e=Buffer.from(t,"utf8").toString("base64");else{var r=new TextEncoder().encode(t),n=Array.from(r,function(t){return String.fromCharCode(t)}).join("");e=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(e):e}catch(t){return""}}},{key:"deserialize",value:function t(t,e){try{if(typeof t!="string")return e!==null&&e!==void 0?e:"";if(t.length===0)return"";if(!this.isValidBase64(t))return e!==null&&e!==void 0?e:"";var r=t;if(this.options.urlSafe&&(r=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(r,"base64").toString("utf8");{var n=atob(r),o=new Uint8Array(n.length);for(var i=0;i<n.length;i++)o[i]=n.charCodeAt(i);return new TextDecoder().decode(o)}}catch(t){return e!==null&&e!==void 0?e:""}}},{key:"makeUrlSafe",value:function t(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}},{key:"makeUrlUnsafe",value:function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";return t}}]);return t}();var rn=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};u(this,t);this.key=e;this.options=r;try{var n;var o=(n=r.storage)===null||n===void 0?void 0:n.getItem(e);this.value=o!==null&&o!==void 0?o:null}catch(t){this.value=null}}c(t,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.value}},{key:"get",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);if(this.value!=null)return this.value;if(r){var o=r.getItem(this.key,void 0,n);return o==null?(this.remove(),null):(this.value=o,o)}return this.value}},{key:"set",value:function t(t,e){var r=this.mergeOptions(e),n=r.storage,o=_(r,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var e=this.mergeOptions(t),r=e.storage,n=_(e,["storage"]);this.value=null,r===null||r===void 0?void 0:r.removeItem(this.key,n)}}]);return t}();var ro=function(){function t(e){u(this,t);this.serializer=e;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,e,r){var n={key:t,value:e!==null&&e!==void 0?e:null};typeof(r===null||r===void 0?void 0:r.expires)=="number"&&r.expires>0&&(n.expires=r.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,e){var r=this.store.get(t),n=e!==null&&e!==void 0?e:null;if(!r)return n;var o=this.serializer?this.serializer.deserialize(r,n):r;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,e){var r,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),e!==null&&e!==void 0?e:null):(r=t===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:e:(n=t!==null&&t!==void 0?t:e)!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t){this.store.delete(t)}},{key:"clear",value:function t(){this.store.clear()}},{key:"isExpired",value:function t(t){return typeof t.expires=="number"&&t.expires<Date.now()&&t.expires>0}},{key:"isStorageValue",value:function t(t){return(typeof t==="undefined"?"undefined":T(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();var ri={setItem:{serialize:function(e,r){return(t=e).serialize.apply(t,A(r))},encrypt:function(t,r){return(e=t).encrypt.apply(e,A(r))},storage:function(t,e){return(r=t).setItem.apply(r,A(e))}},getItem:{serialize:function(t,e){return(o=t).deserialize.apply(o,A(e))},encrypt:function(t,e){return(a=t).decrypt.apply(a,A(e))},storage:function(t,e){return(s=t).getItem.apply(s,A(e))}}},ru=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];u(this,t);this.storage=e;this.pipes=(Array.isArray(r)?r:[r]).map(function(t){return y(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,e,r){var n=e;var o=true,i=false,u=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var l=c.type,f=c.pipe;if(l==="storage")f.setItem(t,n,r);else{var v=ri.setItem[l](f,[n]);v!=null&&(n=v)}}}catch(t){i=true;u=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw u}}}this.storage.setItem(t,n,r)}},{key:"getItem",value:function t(t,e,r){var n=this.storage.getItem(t,e,r);if(n==null){var o=A(this.pipes).reverse();var i=true,u=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(i=(c=s.next()).done);i=true){var l=c.value;var f=l.type,v=l.pipe;if(f!=="storage")continue;var p=ri.getItem[f](v,[t,n,r]);if(p!=null){n=p;break}}}catch(t){u=true;a=t}finally{try{if(!i&&s.return!=null){s.return()}}finally{if(u){throw a}}}}if(n==null)return e!==null&&e!==void 0?e:null;var h=A(this.pipes).reverse();var y=true,d=false,g=undefined;try{for(var b=h[Symbol.iterator](),m;!(y=(m=b.next()).done);y=true){var x=m.value;var k=x.type,O=x.pipe;k!=="storage"&&(n=ri.getItem[k](O,[n]))}}catch(t){d=true;g=t}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(d){throw g}}}return n!==null&&this.storage.getRawValue&&(n=this.storage.getRawValue(n,r)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,e){this.storage.removeItem(t,e),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(r){r.pipe.removeItem(t,e)})}},{key:"clear",value:function t(){this.storage.clear(),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(t){t.pipe.clear()})}}]);return t}();return I(eU)}();
package/dist/index.js CHANGED
@@ -4726,6 +4726,15 @@ var RequestAdapterFetch = /*#__PURE__*/ function() {
4726
4726
  return this.config;
4727
4727
  }
4728
4728
  },
4729
+ {
4730
+ /**
4731
+ * @since 2.4.0
4732
+ * @override
4733
+ */ key: "setConfig",
4734
+ value: function setConfig(config) {
4735
+ Object.assign(this.config, config);
4736
+ }
4737
+ },
4729
4738
  {
4730
4739
  key: "usePlugin",
4731
4740
  value: function usePlugin(plugin) {
@@ -4867,6 +4876,15 @@ var RequestAdapterAxios = /*#__PURE__*/ function() {
4867
4876
  return this.config;
4868
4877
  }
4869
4878
  },
4879
+ {
4880
+ /**
4881
+ * @since 2.4.0
4882
+ * @override
4883
+ */ key: "setConfig",
4884
+ value: function setConfig(config) {
4885
+ Object.assign(this.config, config);
4886
+ }
4887
+ },
4870
4888
  {
4871
4889
  key: "request",
4872
4890
  value: /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@qlover/fe-corekit",
3
3
  "description": "A corekit for frontwork",
4
- "version": "2.3.3",
4
+ "version": "2.5.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "files": [
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@types/lodash": "^4.17.12",
45
45
  "axios": "^1.7.9",
46
- "@qlover/logger": "0.3.3"
46
+ "@qlover/logger": "0.4.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "lodash": "^4.17.21"
@@ -51,6 +51,7 @@
51
51
  "scripts": {
52
52
  "lint": "eslint src --fix",
53
53
  "build": "tsup",
54
+ "type-check": "tsc --noEmit",
54
55
  "build:docs": "fe-code2md --removePrefix -p ./src/index.ts -g ./docs -o ./docs/.output/fe-corekit.json -t ./docs/.output/fe-corekit.tpl.json --formatOutput prettier && rimraf './doc/**/index.md' -g"
55
56
  }
56
57
  }