@qlover/fe-corekit 1.4.0 → 1.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 +1 -0
- package/dist/index.d.ts +489 -168
- package/dist/index.iife.js +1 -0
- package/dist/index.js +5264 -1
- package/package.json +9 -9
- package/dist/index.umd.js +0 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function t(t,r){if(r==null||r>t.length)r=t.length;for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function r(t){if(Array.isArray(t))return t}function e(r){if(Array.isArray(r))return t(r)}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,r,e,n,o,u,i){try{var a=t[u](i);var s=a.value}catch(t){e(t);return}if(a.done){r(s)}else{Promise.resolve(s).then(n,o)}}function u(t){return function(){var r=this,e=arguments;return new Promise(function(n,u){var i=t.apply(r,e);function a(t){o(i,n,u,a,s,"next",t)}function s(t){o(i,n,u,a,s,"throw",t)}a(undefined)})}}function i(t,r){if(!(t instanceof r)){throw new TypeError("Cannot call a class as a function")}}function a(t,r,e){if(q()){a=Reflect.construct}else{a=function t(t,r,e){var n=[null];n.push.apply(n,r);var o=Function.bind.apply(t,n);var u=new o;if(e)E(u,e.prototype);return u}}return a.apply(null,arguments)}function s(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(t,n.key,n)}}function c(t,r,e){if(r)s(t.prototype,r);if(e)s(t,e);return t}function f(t,r,e){if(r in t){Object.defineProperty(t,r,{value:e,enumerable:true,configurable:true,writable:true})}else{t[r]=e}return t}function l(t,r,e){if(typeof Reflect!=="undefined"&&Reflect.get){l=Reflect.get}else{l=function t(t,r,e){var n=S(t,r);if(!n)return;var o=Object.getOwnPropertyDescriptor(n,r);if(o.get){return o.get.call(e||t)}return o.value}}return l(t,r,e||t)}function v(t){v=Object.setPrototypeOf?Object.getPrototypeOf:function t(t){return t.__proto__||Object.getPrototypeOf(t)};return v(t)}function p(t,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:true,configurable:true}});if(r)E(t,r)}function h(t,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](t)}else{return t instanceof r}}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,r){var e=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(e==null)return;var n=[];var o=true;var u=false;var i,a;try{for(e=e.call(t);!(o=(i=e.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(t){u=true;a=t}finally{try{if(!o&&e["return"]!=null)e["return"]()}finally{if(u)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 r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};var n=Object.keys(e);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.forEach(function(r){f(t,r,e[r])})}return t}function k(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);if(r){n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})}e.push.apply(e,n)}return e}function O(t,r){r=r!=null?r:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(r))}else{k(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _(t,r){if(t==null)return{};var e=R(t,r);var n,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(o=0;o<u.length;o++){n=u[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(t,n))continue;e[n]=t[n]}}return e}function R(t,r){if(t==null)return{};var e={};var n=Object.keys(t);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;e[o]=t[o]}return e}function w(t,r){if(r&&(N(r)==="object"||typeof r==="function")){return r}return n(t)}function E(t,r){E=Object.setPrototypeOf||function t(t,r){t.__proto__=r;return t};return E(t,r)}function j(t,e){return r(t)||g(t,e)||P(t,e)||b()}function S(t,r){while(!Object.prototype.hasOwnProperty.call(t,r)){t=v(t);if(t===null)break}return t}function A(t){return e(t)||d(t)||P(t)||m()}function N(t){"@swc/helpers - typeof";return t&&typeof Symbol!=="undefined"&&t.constructor===Symbol?"symbol":typeof t}function P(r,e){if(!r)return;if(typeof r==="string")return t(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.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(r,e)}function T(t){var r=typeof Map==="function"?new Map:undefined;T=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 r!=="undefined"){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,v(this).constructor)}e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}});return E(e,t)};return T(t)}function q(){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 z(t){var r=q();return function e(){var e=v(t),n;if(r){var o=v(this).constructor;n=Reflect.construct(e,arguments,o)}else{n=e.apply(this,arguments)}return w(this,n)}}function I(t,r){var e,n,o,u,i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),"throw":a(1),"return":a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(r){return s([t,r])}}function s(u){if(e)throw new TypeError("Generator is already executing.");while(i)try{if(e=1,n&&(o=u[0]&2?n["return"]:u[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;if(n=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:i.label++;return{value:u[1],done:false};case 5:i.label++;n=u[1];u=[0];continue;case 7:u=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){i=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(u[0]===6&&i.label<o[1]){i.label=o[1];o=u;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(u);break}if(o[2])i.ops.pop();i.trys.pop();continue}u=r.call(t,i)}catch(t){u=[6,t];n=0}finally{e=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}}var U,C,B,V,F,D;var H=Object.create;var K=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var L=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,J=Object.prototype.hasOwnProperty;var W=function(t,r){return function(){return r||t((r={exports:{}}).exports,r),r.exports}},G=function(t,r){for(var e in r)K(t,e,{get:r[e],enumerable:!0})},Q=function(t,r,e,n){var o=true,u=false,i=undefined;if(r&&(typeof r==="undefined"?"undefined":N(r))=="object"||typeof r=="function")try{var a=function(){var o=c.value;!J.call(t,o)&&o!==e&&K(t,o,{get:function(){return r[o]},enumerable:!(n=M(r,o))||n.enumerable})};for(var s=L(r)[Symbol.iterator](),c;!(o=(c=s.next()).done);o=true)a()}catch(t){u=true;i=t}finally{try{if(!o&&s.return!=null){s.return()}}finally{if(u){throw i}}}return t};var Y=function(t,r,e){return e=t!=null?H($(t)):{},Q(r||!t||!t.__esModule?K(e,"default",{value:t,enumerable:!0}):e,t)},Z=function(t){return Q(K({},"__esModule",{value:!0}),t)};var X=W(function(t,r){"use strict";var e=function t(){this.__data__=[],this.size=0};r.exports=e});var tt=W(function(t,r){"use strict";var e=function t(t,r){return t===r||t!==t&&r!==r};r.exports=e});var tr=W(function(t,r){"use strict";var e=function t(t,r){for(var e=t.length;e--;)if(n(t[e][0],r))return e;return-1};var n=tt();r.exports=e});var te=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);if(e<0)return!1;var o=r.length-1;return e==o?r.pop():u.call(r,e,1),--this.size,!0};var n=tr(),o=Array.prototype,u=o.splice;r.exports=e});var tn=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=n(r,t);return e<0?void 0:r[e][1]};var n=tr();r.exports=e});var to=W(function(t,r){"use strict";var e=function t(t){return n(this.__data__,t)>-1};var n=tr();r.exports=e});var tu=W(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__,o=n(e,t);return o<0?(++this.size,e.push([t,r])):e[o][1]=r,this};var n=tr();r.exports=e});var ti=W(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=X(),o=te(),u=tn(),i=to(),a=tu();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var ta=W(function(t,r){"use strict";var e=function t(){this.__data__=new n,this.size=0};var n=ti();r.exports=e});var ts=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};r.exports=e});var tc=W(function(t,r){"use strict";var e=function t(t){return this.__data__.get(t)};r.exports=e});var tf=W(function(t,r){"use strict";var e=function t(t){return this.__data__.has(t)};r.exports=e});var tl=W(function(t,r){"use strict";var e=(typeof global==="undefined"?"undefined":N(global))=="object"&&global&&global.Object===Object&&global;r.exports=e});var tv=W(function(t,r){"use strict";var e=tl(),n=(typeof self==="undefined"?"undefined":N(self))=="object"&&self&&self.Object===Object&&self,o=e||n||Function("return this")();r.exports=o});var tp=W(function(t,r){"use strict";var e=tv(),n=e.Symbol;r.exports=n});var th=W(function(t,r){"use strict";var e=function t(t){var r=u.call(t,a),e=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(r?t[a]=e:delete t[a]),o};var n=tp(),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,a=n?n.toStringTag:void 0;r.exports=e});var ty=W(function(t,r){"use strict";var e=function t(t){return o.call(t)};var n=Object.prototype,o=n.toString;r.exports=e});var td=W(function(t,r){"use strict";var e=function t(t){return t==null?t===void 0?a:i:s&&s in Object(t)?o(t):u(t)};var n=tp(),o=th(),u=ty(),i="[object Null]",a="[object Undefined]",s=n?n.toStringTag:void 0;r.exports=e});var tg=W(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":N(t);return t!=null&&(r=="object"||r=="function")};r.exports=e});var tb=W(function(t,r){"use strict";var e=function t(t){if(!o(t))return!1;var r=n(t);return r==i||r==a||r==u||r==s};var n=td(),o=tg(),u="[object AsyncFunction]",i="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";r.exports=e});var tm=W(function(t,r){"use strict";var e=tv(),n=e["__core-js_shared__"];r.exports=n});var tx=W(function(t,r){"use strict";var e=function t(t){return!!o&&o in t};var n=tm(),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();r.exports=e});var tk=W(function(t,r){"use strict";var e=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;r.exports=e});var tO=W(function(t,r){"use strict";var e=function t(t){if(!u(t)||o(t))return!1;var r=n(t)?p:s;return r.test(i(t))};var n=tb(),o=tx(),u=tg(),i=tk(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,f=Object.prototype,l=c.toString,v=f.hasOwnProperty,p=RegExp("^"+l.call(v).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=e});var t_=W(function(t,r){"use strict";var e=function t(t,r){return t===null||t===void 0?void 0:t[r]};r.exports=e});var tR=W(function(t,r){"use strict";var e=function t(t,r){var e=o(t,r);return n(e)?e:void 0};var n=tO(),o=t_();r.exports=e});var tw=W(function(t,r){"use strict";var e=tR(),n=tv(),o=e(n,"Map");r.exports=o});var tE=W(function(t,r){"use strict";var e=tR(),n=e(Object,"create");r.exports=n});var tj=W(function(t,r){"use strict";var e=function t(){this.__data__=n?n(null):{},this.size=0};var n=tE();r.exports=e});var tS=W(function(t,r){"use strict";var e=function t(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r};r.exports=e});var tA=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__;if(n){var e=r[t];return e===o?void 0:e}return i.call(r,t)?r[t]:void 0};var n=tE(),o="__lodash_hash_undefined__",u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var tN=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__;return n?r[t]!==void 0:u.call(r,t)};var n=tE(),o=Object.prototype,u=o.hasOwnProperty;r.exports=e});var tP=W(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=n&&r===void 0?o:r,this};var n=tE(),o="__lodash_hash_undefined__";r.exports=e});var tT=W(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=tj(),o=tS(),u=tA(),i=tN(),a=tP();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var tq=W(function(t,r){"use strict";var e=function t(){this.size=0,this.__data__={hash:new n,map:new(u||o),string:new n}};var n=tT(),o=ti(),u=tw();r.exports=e});var tz=W(function(t,r){"use strict";var e=function t(t){var r=typeof t==="undefined"?"undefined":N(t);return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null};r.exports=e});var tI=W(function(t,r){"use strict";var e=function t(t,r){var e=t.__data__;return n(r)?e[typeof r=="string"?"string":"hash"]:e.map};var n=tz();r.exports=e});var tU=W(function(t,r){"use strict";var e=function t(t){var r=n(this,t).delete(t);return this.size-=r?1:0,r};var n=tI();r.exports=e});var tC=W(function(t,r){"use strict";var e=function t(t){return n(this,t).get(t)};var n=tI();r.exports=e});var tB=W(function(t,r){"use strict";var e=function t(t){return n(this,t).has(t)};var n=tI();r.exports=e});var tV=W(function(t,r){"use strict";var e=function t(t,r){var e=n(this,t),o=e.size;return e.set(t,r),this.size+=e.size==o?0:1,this};var n=tI();r.exports=e});var tF=W(function(t,r){"use strict";var e=function t(t){var r=-1,e=t==null?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}};var n=tq(),o=tU(),u=tC(),i=tB(),a=tV();e.prototype.clear=n;e.prototype.delete=o;e.prototype.get=u;e.prototype.has=i;e.prototype.set=a;r.exports=e});var tD=W(function(t,r){"use strict";var e=function t(t,r){var e=this.__data__;if(h(e,n)){var a=e.__data__;if(!o||a.length<i-1)return a.push([t,r]),this.size=++e.size,this;e=this.__data__=new u(a)}return e.set(t,r),this.size=e.size,this};var n=ti(),o=tw(),u=tF(),i=200;r.exports=e});var tH=W(function(t,r){"use strict";var e=function t(t){var r=this.__data__=new n(t);this.size=r.size};var n=ti(),o=ta(),u=ts(),i=tc(),a=tf(),s=tD();e.prototype.clear=o;e.prototype.delete=u;e.prototype.get=i;e.prototype.has=a;e.prototype.set=s;r.exports=e});var tK=W(function(t,r){"use strict";var e=tR(),n=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();r.exports=n});var tM=W(function(t,r){"use strict";var e=function t(t,r,e){r=="__proto__"&&n?n(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var n=tK();r.exports=e});var tL=W(function(t,r){"use strict";var e=function t(t,r,e){(e!==void 0&&!o(t[r],e)||e===void 0&&!(r in t))&&n(t,r,e)};var n=tM(),o=tt();r.exports=e});var t$=W(function(t,r){"use strict";var e=function t(t){return function(r,e,n){for(var o=-1,u=Object(r),i=n(r),a=i.length;a--;){var s=i[t?a:++o];if(e(u[s],s,u)===!1)break}return r}};r.exports=e});var tJ=W(function(t,r){"use strict";var e=t$(),n=e();r.exports=n});var tW=W(function(t,r){"use strict";var e=function t(t,r){if(r)return t.slice();var e=t.length,n=s?s(e):new t.constructor(e);return t.copy(n),n};var n=tv(),o=(typeof t==="undefined"?"undefined":N(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":N(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;r.exports=e});var tG=W(function(t,r){"use strict";var e=tv(),n=e.Uint8Array;r.exports=n});var tQ=W(function(t,r){"use strict";var e=function t(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r};var n=tG();r.exports=e});var tY=W(function(t,r){"use strict";var e=function t(t,r){var e=r?n(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var n=tQ();r.exports=e});var tZ=W(function(t,r){"use strict";var e=function t(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r};r.exports=e});var tX=W(function(t,r){"use strict";var e=tg(),n=Object.create,o=function(){function t(){}return function(r){if(!e(r))return{};if(n)return n(r);t.prototype=r;var o=new t;return t.prototype=void 0,o}}();r.exports=o});var t0=W(function(t,r){"use strict";var e=function t(t,r){return function(e){return t(r(e))}};r.exports=e});var t1=W(function(t,r){"use strict";var e=t0(),n=e(Object.getPrototypeOf,Object);r.exports=n});var t2=W(function(t,r){"use strict";var e=function t(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||n;return t===e};var n=Object.prototype;r.exports=e});var t4=W(function(t,r){"use strict";var e=function t(t){return typeof t.constructor=="function"&&!u(t)?n(o(t)):{}};var n=tX(),o=t1(),u=t2();r.exports=e});var t3=W(function(t,r){"use strict";var e=function t(t){return t!=null&&(typeof t==="undefined"?"undefined":N(t))=="object"};r.exports=e});var t6=W(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)==u};var n=td(),o=t3(),u="[object Arguments]";r.exports=e});var t8=W(function(t,r){"use strict";var e=t6(),n=t3(),o=Object.prototype,u=o.hasOwnProperty,i=o.propertyIsEnumerable,a=e(function(){return arguments}())?e:function t(t){return n(t)&&u.call(t,"callee")&&!i.call(t,"callee")};r.exports=a});var t9=W(function(t,r){"use strict";var e=Array.isArray;r.exports=e});var t7=W(function(t,r){"use strict";var e=function t(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n};var n=9007199254740991;r.exports=e});var t5=W(function(t,r){"use strict";var e=function t(t){return t!=null&&o(t.length)&&!n(t)};var n=tb(),o=t7();r.exports=e});var rt=W(function(t,r){"use strict";var e=function t(t){return o(t)&&n(t)};var n=t5(),o=t3();r.exports=e});var rr=W(function(t,r){"use strict";var e=function t(){return!1};r.exports=e});var re=W(function(t,r){"use strict";var e=tv(),n=rr(),o=(typeof t==="undefined"?"undefined":N(t))=="object"&&t&&!t.nodeType&&t,u=o&&(typeof r==="undefined"?"undefined":N(r))=="object"&&r&&!r.nodeType&&r,i=u&&u.exports===o,a=i?e.Buffer:void 0,s=a?a.isBuffer:void 0,c=s||n;r.exports=c});var rn=W(function(t,r){"use strict";var e=function t(t){if(!u(t)||n(t)!=i)return!1;var r=o(t);if(r===null)return!0;var e=f.call(r,"constructor")&&r.constructor;return typeof e=="function"&&h(e,e)&&c.call(e)==l};var n=td(),o=t1(),u=t3(),i="[object Object]",a=Function.prototype,s=Object.prototype,c=a.toString,f=s.hasOwnProperty,l=c.call(Object);r.exports=e});var ro=W(function(t,r){"use strict";var e=function t(t){return u(t)&&o(t.length)&&!!N[n(t)]};var n=td(),o=t7(),u=t3(),i="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",f="[object Error]",l="[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]",R="[object Int16Array]",w="[object Int32Array]",E="[object Uint8Array]",j="[object Uint8ClampedArray]",S="[object Uint16Array]",A="[object Uint32Array]",N={};N[k]=N[O]=N[_]=N[R]=N[w]=N[E]=N[j]=N[S]=N[A]=!0;N[i]=N[a]=N[m]=N[s]=N[x]=N[c]=N[f]=N[l]=N[v]=N[p]=N[h]=N[y]=N[d]=N[g]=N[b]=!1;r.exports=e});var ru=W(function(t,r){"use strict";var e=function t(t){return function(r){return t(r)}};r.exports=e});var ri=W(function(t,r){"use strict";var e=tl(),n=(typeof t==="undefined"?"undefined":N(t))=="object"&&t&&!t.nodeType&&t,o=n&&(typeof r==="undefined"?"undefined":N(r))=="object"&&r&&!r.nodeType&&r,u=o&&o.exports===n,i=u&&e.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();r.exports=a});var ra=W(function(t,r){"use strict";var e=ro(),n=ru(),o=ri(),u=o&&o.isTypedArray,i=u?n(u):e;r.exports=i});var rs=W(function(t,r){"use strict";var e=function t(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]};r.exports=e});var rc=W(function(t,r){"use strict";var e=function t(t,r,e){var u=t[r];(!(i.call(t,r)&&o(u,e))||e===void 0&&!(r in t))&&n(t,r,e)};var n=tM(),o=tt(),u=Object.prototype,i=u.hasOwnProperty;r.exports=e});var rf=W(function(t,r){"use strict";var e=function t(t,r,e,u){var i=!e;e||(e={});for(var a=-1,s=r.length;++a<s;){var c=r[a],f=u?u(e[c],t[c],c,e,t):void 0;f===void 0&&(f=t[c]),i?o(e,c,f):n(e,c,f)}return e};var n=rc(),o=tM();r.exports=e});var rl=W(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n};r.exports=e});var rv=W(function(t,r){"use strict";var e=function t(t,r){var e=typeof t==="undefined"?"undefined":N(t);return r=r!==null&&r!==void 0?r:n,!!r&&(e=="number"||e!="symbol"&&o.test(t))&&t>-1&&t%1==0&&t<r};var n=9007199254740991,o=/^(?:0|[1-9]\d*)$/;r.exports=e});var rp=W(function(t,r){"use strict";var e=function t(t,r){var e=u(t),c=!e&&o(t),l=!e&&!c&&i(t),v=!e&&!c&&!l&&s(t),p=e||c||l||v,h=p?n(t.length,String):[],y=h.length;for(var d in t)(r||f.call(t,d))&&!(p&&(d=="length"||l&&(d=="offset"||d=="parent")||v&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a(d,y)))&&h.push(d);return h};var n=rl(),o=t8(),u=t9(),i=re(),a=rv(),s=ra(),c=Object.prototype,f=c.hasOwnProperty;r.exports=e});var rh=W(function(t,r){"use strict";var e=function t(t){var r=[];if(t!=null)for(var e in Object(t))r.push(e);return r};r.exports=e});var ry=W(function(t,r){"use strict";var e=function t(t){if(!n(t))return u(t);var r=o(t),e=[];for(var i in t)i=="constructor"&&(r||!a.call(t,i))||e.push(i);return e};var n=tg(),o=t2(),u=rh(),i=Object.prototype,a=i.hasOwnProperty;r.exports=e});var rd=W(function(t,r){"use strict";var e=function t(t){return u(t)?n(t,!0):o(t)};var n=rp(),o=ry(),u=t5();r.exports=e});var rg=W(function(t,r){"use strict";var e=function t(t){return n(t,o(t))};var n=rf(),o=rd();r.exports=e});var rb=W(function(t,r){"use strict";var e=function t(t,r,e,b,m,x,k){var O=d(t,e),_=d(r,e),R=k.get(_);if(R){n(t,e,R);return}var w=x?x(O,_,e+"",t,r,k):void 0,E=w===void 0;if(E){var j=c(_),S=!j&&l(_),A=!j&&!S&&y(_);w=_,j||S||A?c(O)?w=O:f(O)?w=i(O):S?(E=!1,w=o(_,!0)):A?(E=!1,w=u(_,!0)):w=[]:h(_)||s(_)?(w=O,s(O)?w=g(O):(!p(O)||v(O))&&(w=a(_))):E=!1}E&&(k.set(_,w),m(w,_,b,x,k),k.delete(_)),n(t,e,w)};var n=tL(),o=tW(),u=tY(),i=tZ(),a=t4(),s=t8(),c=t9(),f=rt(),l=re(),v=tb(),p=tg(),h=rn(),y=ra(),d=rs(),g=rg();r.exports=e});var rm=W(function(t,r){"use strict";var e=tH(),n=tL(),o=tJ(),u=rb(),i=tg(),a=rd(),s=rs();function c(t,r,f,l,v){t!==r&&o(r,function(o,a){if(v||(v=new e),i(o))u(t,r,a,f,c,l,v);else{var p=l?l(s(t,a),o,a+"",t,r,v):void 0;p===void 0&&(p=o),n(t,a,p)}},a)}r.exports=c});var rx=W(function(t,r){"use strict";var e=function t(t){return t};r.exports=e});var rk=W(function(t,r){"use strict";var e=function t(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)};r.exports=e});var rO=W(function(t,r){"use strict";var e=function t(t,r,e){return r=o(r===void 0?t.length-1:r,0),function(){for(var u=arguments,i=-1,a=o(u.length-r,0),s=Array(a);++i<a;)s[i]=u[r+i];i=-1;for(var c=Array(r+1);++i<r;)c[i]=u[i];return c[r]=e(s),n(t,this,c)}};var n=rk(),o=Math.max;r.exports=e});var r_=W(function(t,r){"use strict";var e=function t(t){return function(){return t}};r.exports=e});var rR=W(function(t,r){"use strict";var e=r_(),n=tK(),o=rx(),u=n?function t(t,r){return n(t,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:o;r.exports=u});var rw=W(function(t,r){"use strict";var e=function t(t){var r=0,e=0;return function(){var i=u(),a=o-(i-e);if(e=i,a>0){if(++r>=n)return arguments[0]}else r=0;return t.apply(void 0,arguments)}};var n=800,o=16,u=Date.now;r.exports=e});var rE=W(function(t,r){"use strict";var e=rR(),n=rw(),o=n(e);r.exports=o});var rj=W(function(t,r){"use strict";var e=function t(t,r){return u(o(t,r,n),t+"")};var n=rx(),o=rO(),u=rE();r.exports=e});var rS=W(function(t,r){"use strict";var e=function t(t,r,e){if(!i(e))return!1;var a=typeof r==="undefined"?"undefined":N(r);return(a=="number"?o(e)&&u(r,e.length):a=="string"&&r in e)?n(e[r],t):!1};var n=tt(),o=t5(),u=rv(),i=tg();r.exports=e});var rA=W(function(t,r){"use strict";var e=function t(t){return n(function(r,e){var n=-1,u=e.length,i=u>1?e[u-1]:void 0,a=u>2?e[2]:void 0;for(i=t.length>3&&typeof i=="function"?(u--,i):void 0,a&&o(e[0],e[1],a)&&(i=u<3?void 0:i,u=1),r=Object(r);++n<u;){var s=e[n];s&&t(r,s,n,i)}return r})};var n=rj(),o=rS();r.exports=e});var rN=W(function(t,r){"use strict";var e=rm(),n=rA(),o=n(function(t,r,n){e(t,r,n)});r.exports=o});var rP=W(function(t,r){"use strict";var e=function t(t){return(typeof t==="undefined"?"undefined":N(t))=="symbol"||o(t)&&n(t)==u};var n=td(),o=t3(),u="[object Symbol]";r.exports=e});var rT=W(function(t,r){"use strict";var e=function t(t,r){if(n(t))return!1;var e=typeof t==="undefined"?"undefined":N(t);return e=="number"||e=="symbol"||e=="boolean"||t==null||o(t)?!0:i.test(t)||!u.test(t)||r!=null&&t in Object(r)};var n=t9(),o=rP(),u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;r.exports=e});var rq=W(function(t,r){"use strict";var e=tF(),n="Expected a function";function o(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(n);var u=function e(){var e=arguments,n=r?r.apply(this,e):e[0],o=u.cache;if(o.has(n))return o.get(n);var i=t.apply(this,e);return u.cache=o.set(n,i)||o,i};return u.cache=new(o.Cache||e),u}o.Cache=e;r.exports=o});var rz=W(function(t,r){"use strict";var e=function t(t){var r=n(t,function(t){return e.size===o&&e.clear(),t}),e=r.cache;return r};var n=rq(),o=500;r.exports=e});var rI=W(function(t,r){"use strict";var e=rz(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,u=e(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(n,function(t,e,n,u){r.push(n?u.replace(o,"$1"):e||t)}),r});r.exports=u});var rU=W(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=t==null?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o};r.exports=e});var rC=W(function(t,r){"use strict";var e=tp(),n=rU(),o=t9(),u=rP(),i=1/0,a=e?e.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(u(t))return s?s.call(t):"";var r=t+"";return r=="0"&&1/t==-i?"-0":r}r.exports=c});var rB=W(function(t,r){"use strict";var e=function t(t){return t==null?"":n(t)};var n=rC();r.exports=e});var rV=W(function(t,r){"use strict";var e=function t(t,r){return n(t)?t:o(t,r)?[t]:u(i(t))};var n=t9(),o=rT(),u=rI(),i=rB();r.exports=e});var rF=W(function(t,r){"use strict";var e=function t(t){if(typeof t=="string"||n(t))return t;var r=t+"";return r=="0"&&1/t==-o?"-0":r};var n=rP(),o=1/0;r.exports=e});var rD=W(function(t,r){"use strict";var e=function t(t,r){r=n(r,t);for(var e=0,u=r.length;t!=null&&e<u;)t=t[o(r[e++])];return e&&e==u?t:void 0};var n=rV(),o=rF();r.exports=e});var rH=W(function(t,r){"use strict";var e=function t(t,r,e,s){if(!i(t))return t;r=o(r,t);for(var c=-1,f=r.length,l=f-1,v=t;v!=null&&++c<f;){var p=a(r[c]),h=e;if(p==="__proto__"||p==="constructor"||p==="prototype")return t;if(c!=l){var y=v[p];h=s?s(y,p,v):void 0,h===void 0&&(h=i(y)?y:u(r[c+1])?[]:{})}n(v,p,h),v=v[p]}return t};var n=rc(),o=rV(),u=rv(),i=tg(),a=rF();r.exports=e});var rK=W(function(t,r){"use strict";var e=function t(t,r,e){for(var i=-1,a=r.length,s={};++i<a;){var c=r[i],f=n(t,c);e(f,c)&&o(s,u(c,t),f)}return s};var n=rD(),o=rH(),u=rV();r.exports=e});var rM=W(function(t,r){"use strict";var e=function t(t,r){return t!=null&&r in Object(t)};r.exports=e});var rL=W(function(t,r){"use strict";var e=function t(t,r,e){r=n(r,t);for(var c=-1,f=r.length,l=!1;++c<f;){var v=s(r[c]);if(!(l=t!=null&&e(t,v)))break;t=t[v]}return l||++c!=f?l:(f=t==null?0:t.length,!!f&&a(f)&&i(v,f)&&(u(t)||o(t)))};var n=rV(),o=t8(),u=t9(),i=rv(),a=t7(),s=rF();r.exports=e});var r$=W(function(t,r){"use strict";var e=function t(t,r){return t!=null&&o(t,r,n)};var n=rM(),o=rL();r.exports=e});var rJ=W(function(t,r){"use strict";var e=function t(t,r){return n(t,r,function(r,e){return o(t,e)})};var n=rK(),o=r$();r.exports=e});var rW=W(function(t,r){"use strict";var e=function t(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t};r.exports=e});var rG=W(function(t,r){"use strict";var e=function t(t){return u(t)||o(t)||!!(i&&t&&t[i])};var n=tp(),o=t8(),u=t9(),i=n?n.isConcatSpreadable:void 0;r.exports=e});var rQ=W(function(t,r){"use strict";var e=rW(),n=rG();function o(t,r,u,i,a){var s=-1,c=t.length;for(u||(u=n),a||(a=[]);++s<c;){var f=t[s];r>0&&u(f)?r>1?o(f,r-1,u,i,a):e(a,f):i||(a[a.length]=f)}return a}r.exports=o});var rY=W(function(t,r){"use strict";var e=function t(t){var r=t==null?0:t.length;return r?n(t,1):[]};var n=rQ();r.exports=e});var rZ=W(function(t,r){"use strict";var e=function t(t){return u(o(t,void 0,n),t+"")};var n=rY(),o=rO(),u=rE();r.exports=e});var rX=W(function(t,r){"use strict";var e=rJ(),n=rZ(),o=n(function(t,r){return t==null?{}:e(t,r)});r.exports=o});var r0={};G(r0,{AsyncExecutor:function(){return r4},Base64Serializer:function(){return eh},Executor:function(){return r1},ExecutorError:function(){return r2},FetchAbortPlugin:function(){return ei},FetchURLPlugin:function(){return ea},JSONSerializer:function(){return ep},KeyStorage:function(){return ed},KeyStorageInterface:function(){return ey},ObjectStorage:function(){return eg},RequestAdapterAxios:function(){return eu},RequestAdapterFetch:function(){return eo},RequestError:function(){return r5},RequestErrorID:function(){return et},RequestManager:function(){return ec},RequestScheduler:function(){return ef},RequestTransaction:function(){return el},RetryPlugin:function(){return r7},SyncExecutor:function(){return r3},SyncStorage:function(){return ex}});module.exports=Z(r0);var r1=function(){function t(r){i(this,t);this.config=r;this.plugins=[]}c(t,[{key:"use",value:function t(t){if(this.plugins.find(function(r){return r===t||r.pluginName===t.pluginName||r.constructor===t.constructor})&&t.onlyOne){console.warn("Plugin ".concat(t.pluginName," is already used, skip adding"));return}this.plugins.push(t)}}]);return t}();var r2=function t(t){p(e,t);var r=z(e);function e(t,o){i(this,e);var u;u=r.call(this,h(o,Error)?o.message:o||t);u.id=t;h(o,Error)&&"stack"in o&&(u.stack=o.stack),Object.setPrototypeOf(n(u),(h(this,e)?this.constructor:void 0).prototype);return u}return e}(T(Error));var r4=function(t){p(e,t);var r=z(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++){o[i-3]=arguments[i]}return u(function(){var n,u,i,a,s,c,f,l,v,p,h,y,d;return I(this,function(g){switch(g.label){case 0:n=-1,i=e||{parameters:void 0,hooksRuntimes:{}};i.hooksRuntimes.times=0,i.hooksRuntimes.index=void 0;a=true,s=false,c=undefined;g.label=1;case 1:g.trys.push([1,6,7,8]);f=t[Symbol.iterator]();g.label=2;case 2:if(!!(a=(l=f.next()).done))return[3,5];v=l.value;if(n++,typeof v[r]!="function"||typeof v.enabled=="function"&&!v.enabled(r,e))return[3,4];if((h=i.hooksRuntimes)===null||h===void 0?void 0:h.breakChain)return[3,5];i.hooksRuntimes.pluginName=v.pluginName,i.hooksRuntimes.hookName=r,i.hooksRuntimes.times++,i.hooksRuntimes.index=n;return[4,(p=v)[r].apply(p,[e].concat(A(o)))];case 3:y=g.sent();if(y!==void 0&&(u=y,i.hooksRuntimes.returnValue=y,i.hooksRuntimes.returnBreakChain))return[2,u];g.label=4;case 4:a=true;return[3,2];case 5:return[3,8];case 6:d=g.sent();s=true;c=d;return[3,8];case 7:try{if(!a&&f.return!=null){f.return()}}finally{if(s){throw c}}return[7];case 8:return[2,u]}})})()}},{key:"execNoError",value:function t(t,r){var e=this;return u(function(){var n;return I(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,e.exec(t,r)];case 1:return[2,o.sent()];case 2:n=o.sent();return[2,h(n,r2)?n:new r2("UNKNOWN_ASYNC_ERROR",n)];case 3:return[2]}})})()}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a async function!");return this.run(n,e)}},{key:"run",value:function t(t,r){var e=this;return u(function(){var n,o,i;return I(this,function(a){switch(a.label){case 0:n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},o=function(){var t=u(function(t){return I(this,function(n){switch(n.label){case 0:return[4,e.runHooks(e.plugins,"onExec",t,r)];case 1:if(!(n.sent(),t.hooksRuntimes.times===0))return[3,3];return[4,r(t)];case 2:t.returnValue=n.sent();return[2];case 3:t.returnValue=t.hooksRuntimes.returnValue;return[2]}})});return function r(r){return t.apply(this,arguments)}}();a.label=1;case 1:a.trys.push([1,5,7,8]);return[4,e.runHooks(e.plugins,"onBefore",n)];case 2:a.sent();return[4,o(n)];case 3:a.sent();return[4,e.runHooks(e.plugins,"onSuccess",n)];case 4:return[2,(a.sent(),n.returnValue)];case 5:i=a.sent();n.error=i;return[4,e.runHooks(e.plugins,"onError",n)];case 6:throw a.sent(),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),h(n.error,r2)?n.error:new r2("UNKNOWN_ASYNC_ERROR",n.error);case 7:n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0};return[7];case 8:return[2]}})})()}}]);return e}(r1);var r3=function(t){p(e,t);var r=z(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"runHooks",value:function t(t,r,e){for(var n=arguments.length,o=new Array(n>3?n-3:0),u=3;u<n;u++){o[u-3]=arguments[u]}var i=-1,a,s=e||{parameters:void 0,hooksRuntimes:{}};s.hooksRuntimes.times=0,s.hooksRuntimes.index=void 0;var c=true,f=false,l=undefined;try{for(var v=t[Symbol.iterator](),p;!(c=(p=v.next()).done);c=true){var h=p.value;var y;var d;if(i++,typeof h[r]!="function"||typeof h.enabled=="function"&&!h.enabled(r,s))continue;if((d=s.hooksRuntimes)===null||d===void 0?void 0:d.breakChain)break;s.hooksRuntimes.pluginName=h.pluginName,s.hooksRuntimes.hookName=r,s.hooksRuntimes.times++,s.hooksRuntimes.index=i;var g=(y=h)[r].apply(y,[e].concat(A(o)));if(g!==void 0&&(a=g,s.hooksRuntimes.returnValue=g,s.hooksRuntimes.returnBreakChain))return a}}catch(t){f=true;l=t}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(f){throw l}}}return a}},{key:"execNoError",value:function t(t,r){try{return this.exec(t,r)}catch(t){return h(t,r2)?t:new r2("UNKNOWN_SYNC_ERROR",t)}}},{key:"exec",value:function t(t,r){var e=r||t,n=r?t:void 0;if(typeof e!="function")throw new Error("Task must be a function!");return this.run(n,e)}},{key:"run",value:function t(t,r){var e=this;var n={parameters:t,returnValue:void 0,error:void 0,hooksRuntimes:{pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}},o=function(t){e.runHooks(e.plugins,"onExec",t,r),t.returnValue=t.hooksRuntimes.times?t.hooksRuntimes.returnValue:r(t)};try{return this.runHooks(this.plugins,"onBefore",n),o(n),this.runHooks(this.plugins,"onSuccess",n),n.returnValue}catch(t){throw n.error=t,this.runHooks(this.plugins,"onError",n),n.hooksRuntimes.returnValue&&(n.error=n.hooksRuntimes.returnValue),h(n.error,r2)?n.error:new r2("UNKNOWN_SYNC_ERROR",n.error)}finally{n.hooksRuntimes={pluginName:"",hookName:"",returnValue:void 0,returnBreakChain:!1,times:0}}}}]);return e}(r1);var r6=16,r8=3,r9=function(){return!0},r7=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.pluginName="RetryPlugin";this.onlyOne=!0;var e;this.options=O(x({retryDelay:1e3,useExponentialBackoff:!1,shouldRetry:r9},r),{maxRetries:Math.min(Math.max(1,(e=r.maxRetries)!==null&&e!==void 0?e:r8),r6)})}c(t,[{key:"delay",value:function t(t){var r=this;return u(function(){var e;return I(this,function(n){e=r.options.useExponentialBackoff?r.options.retryDelay*Math.pow(2,t):r.options.retryDelay;return[2,new Promise(function(t){return setTimeout(t,e)})]})})()}},{key:"onExec",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.options.maxRetries<1?r(t):e.retry(r,t,e.options,e.options.maxRetries)]})})()}},{key:"shouldRetry",value:function t(t){var r=t.error,e=t.retryCount;return e>0&&this.options.shouldRetry(r)}},{key:"retry",value:function t(t,r,e,n){var o=this;return u(function(){var u;return I(this,function(i){switch(i.label){case 0:i.trys.push([0,2,,4]);return[4,t(r)];case 1:return[2,i.sent()];case 2:u=i.sent();if(!o.shouldRetry({error:u,retryCount:n}))throw new r2("RETRY_ERROR","All ".concat(e.maxRetries," attempts failed: ").concat(u.message));return[4,o.delay(e.maxRetries-n)];case 3:return[2,(i.sent(),n--,o.retry(t,r,e,n))];case 4:return[2]}})})()}}]);return t}();var r5=function(t){p(e,t);var r=z(e);function e(){i(this,e);return r.apply(this,arguments)}return e}(r2),et=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}(et||{});var er=Y(rN(),1),ee=Y(rX(),1),en=["cache","credentials","headers","integrity","keepalive","mode","priority","redirect","referrer","referrerPolicy","signal"],eo=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);if(!r.fetcher){if(typeof fetch!="function")throw new r2("ENV_FETCH_NOT_SUPPORT");r.fetcher=fetch}this.executor=new r4,this.config=r}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 r=this;return u(function(){var e,n,o,i,a;return I(this,function(s){e=r.getConfig(),n=(0,er.default)({},e,t),o=n.fetcher,i=_(n,["fetcher"]);if(typeof o!="function")throw new r2("FETCHER_NONE");if(!i.url)throw new r2("URL_NONE");a=function(){var t=u(function(t){var e;return I(this,function(n){switch(n.label){case 0:return[4,o(r.parametersToRequest(t.parameters))];case 1:e=n.sent();return[2,r.toAdapterResponse(e,e,t.parameters)]}})});return function r(r){return t.apply(this,arguments)}}();return[2,r.executor.exec(i,a)]})})()}},{key:"parametersToRequest",value:function t(t){var r=t.url,e=r===void 0?"/":r,n=t.method,o=n===void 0?"GET":n,u=t.data,i=(0,ee.default)(t,en);return new Request(e,Object.assign(i,{body:u,method:o.toUpperCase()}))}},{key:"toAdapterResponse",value:function t(t,r,e){return{data:t,status:r.status,statusText:r.statusText,headers:this.getResponseHeaders(r),config:e,response:r}}},{key:"getResponseHeaders",value:function t(t){var r={};return t.headers.forEach(function(t,e){r[e]=t}),r}}]);return t}();var eu=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);this.config=e;this.axiosInstance=r.create(e)}c(t,[{key:"getConfig",value:function t(){return this.config}},{key:"request",value:function t(t){var r=this;return u(function(){return I(this,function(e){return[2,r.axiosInstance.request(t)]})})()}}]);return t}();var ei=function(){function t(){i(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 r=t.params?JSON.stringify(t.params):"",e=t.body?JSON.stringify(t.body):"";return"".concat(t.method||"GET","-").concat(t.url,"-").concat(r,"-").concat(e)}},{key:"onBefore",value:function t(t){var r=this.generateRequestKey(t.parameters);if(this.controllers.has(r)&&this.abort(t.parameters),!t.parameters.signal){var e=new AbortController;this.controllers.set(r,e),t.parameters.signal=e.signal}}},{key:"onSuccess",value:function t(t){var r=t.parameters;r&&this.controllers.delete(this.generateRequestKey(r))}},{key:"onError",value:function t(t){var r=t.error,e=t.parameters;if(this.isSameAbortError(r)&&e){var n=this.generateRequestKey(e),o=this.controllers.get(n);return this.controllers.delete(n),new r5("ABORT_ERROR",(o===null||o===void 0?void 0:o.signal.reason)||r)}}},{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 r=typeof t=="string"?t:this.generateRequestKey(t),e=this.controllers.get(r);e&&(e.abort(new r5("ABORT_ERROR","The operation was aborted")),this.controllers.delete(r),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 ea=function(){function t(){i(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 r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var e="?",n="&",o=j(t.split(e),2),u=o[0],i=o[1],a=i===void 0?"":i;a.split(n).forEach(function(t){var e=j(t.split("="),2),n=e[0],o=e[1];n&&o&&(r[n]=o)});var s=Object.entries(r).map(function(t){var r=j(t,2),e=r[0],n=r[1];return"".concat(e,"=").concat(n)}).join("&");return[u,s].join(e)}},{key:"connectBaseURL",value:function t(t,r){return"".concat(r,"/").concat(t)}},{key:"buildUrl",value:function t(t){var r=t.url,e=r===void 0?"":r,n=t.baseURL,o=n===void 0?"":n,u=t.params;if(!this.isFullURL(e)){var i=e.startsWith("/")?e.slice(1):e,a=o.endsWith("/")?o.slice(0,-1):o;e=this.connectBaseURL(i,a)}return u&&Object.keys(u).length>0&&(e=this.appendQueryParams(e,u)),e}},{key:"onBefore",value:function t(t){var r=t.parameters;r.url=this.buildUrl(r)}},{key:"onSuccess",value:function t(t){var r=t.returnValue;var e=r;if(!e.response.ok){var n=new r5("RESPONSE_NOT_OK","Request failed with status: ".concat(e.status," ").concat(e.statusText));throw n.response=e.response,n}}},{key:"onError",value:function t(t){var r=t.error;return h(r,r5)?r:new r5("REQUEST_ERROR",r)}}]);return t}();var es=Y(rN(),1),ec=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new r4;i(this,t);this.adapter=r;this.executor=e}c(t,[{key:"usePlugin",value:function t(t){var r=this;return Array.isArray(t)?t.forEach(function(t){return r.executor.use(t)}):this.executor.use(t),this}},{key:"request",value:function t(t){var r=this;var e=(0,es.default)({},this.adapter.getConfig(),t);return this.executor.exec(e,function(t){return r.adapter.request(t.parameters)})}}]);return t}();var ef=function(t){p(e,t);var r=z(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"GET"}))]})})()}},{key:"post",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"POST"}))]})})()}},{key:"put",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PUT"}))]})})()}},{key:"delete",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"DELETE"}))]})})()}},{key:"patch",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"PATCH"}))]})})()}},{key:"head",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"HEAD"}))]})})()}},{key:"options",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"OPTIONS"}))]})})()}},{key:"trace",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"TRACE"}))]})})()}},{key:"connect",value:function t(t,r){var e=this;return u(function(){return I(this,function(n){return[2,e.request(O(x({url:t},r),{method:"CONNECT"}))]})})()}}]);return e}(ec);var el=function(t){p(e,t);var r=z(e);function e(){i(this,e);return r.apply(this,arguments)}c(e,[{key:"request",value:function t(t){return l(v(e.prototype),"request",this).call(this,t)}},{key:"get",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"GET"}))}},{key:"post",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"POST",data:r}))}},{key:"put",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PUT",data:r}))}},{key:"delete",value:function t(t,r){return this.request(O(x({},r),{url:t,method:"DELETE"}))}},{key:"patch",value:function t(t,r,e){return this.request(O(x({},e),{url:t,method:"PATCH",data:r}))}}]);return e}(ec);var ev;ev=Symbol.toStringTag;var ep=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r;this[ev]="JSONSerializer"}c(t,[{key:"createReplacer",value:function t(t){return Array.isArray(t)?t:t===null?function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}:typeof t=="function"?function(r,e){var n=typeof e=="string"?e.replace(/\r\n/g,"\n"):e;return t.call(this,r,n)}:function(t,r){return typeof r=="string"?r.replace(/\r\n/g,"\n"):r}}},{key:"stringify",value:function t(t,r,e){try{var n=this.createReplacer(r);return Array.isArray(n)?JSON.stringify(t,n,e):JSON.stringify(t,n,e!==null&&e!==void 0?e: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,r){return JSON.parse(t,r)}},{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,r){try{return this.parse(t)}catch(t){return r}}},{key:"serializeArray",value:function t(t){return"["+t.map(function(t){return JSON.stringify(t)}).join(",")+"]"}}]);return t}();var eh=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,t);this.options=r}c(t,[{key:"isNodeEnvironment",value:function t(){return(typeof process==="undefined"?"undefined":N(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 r=this.options.urlSafe?this.makeUrlUnsafe(t):t;return r.length%4!==0?!1:(this.isNodeEnvironment()?Buffer.from(r,"base64").toString("utf8"):atob(r),!0)}catch(t){return!1}}},{key:"serialize",value:function t(t){try{var r;if(this.isNodeEnvironment())r=Buffer.from(t,"utf8").toString("base64");else{var e=new TextEncoder().encode(t),n=Array.from(e,function(t){return String.fromCharCode(t)}).join("");r=btoa(n)}return this.options.urlSafe?this.makeUrlSafe(r):r}catch(t){return""}}},{key:"deserialize",value:function t(t,r){try{if(typeof t!="string")return r!==null&&r!==void 0?r:"";if(t.length===0)return"";if(!this.isValidBase64(t))return r!==null&&r!==void 0?r:"";var e=t;if(this.options.urlSafe&&(e=this.makeUrlUnsafe(t)),this.isNodeEnvironment())return Buffer.from(e,"base64").toString("utf8");{var n=atob(e),o=new Uint8Array(n.length);for(var u=0;u<n.length;u++)o[u]=n.charCodeAt(u);return new TextDecoder().decode(o)}}catch(t){return r!==null&&r!==void 0?r:""}}},{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 ey=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,t);var n;this.key=r;this.options=e;this.value=null;var o=(n=e.storage)===null||n===void 0?void 0:n.getItem(r);this.value=o}c(t,[{key:"getKey",value:function t(){return this.key}},{key:"getValue",value:function t(){return this.get()}}]);return t}();var ed=function(t){p(e,t);var r=z(e);function e(){i(this,e);var t;t=r.call.apply(r,[this].concat(Array.prototype.slice.call(arguments)));t.value=null;return t}c(e,[{key:"mergeOptions",value:function t(t){return x({},this.options,t)}},{key:"get",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);if(this.value!=null)return this.value;if(e){var o=e.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,r){var e=this.mergeOptions(r),n=e.storage,o=_(e,["storage"]);this.value=t,n&&n.setItem(this.key,t,o)}},{key:"remove",value:function t(t){var r=this.mergeOptions(t),e=r.storage,n=_(r,["storage"]);this.value=null,e===null||e===void 0?void 0:e.removeItem(this.key,n)}}]);return e}(ey);var eg=function(){function t(r){i(this,t);this.serializer=r;this.store=new Map}c(t,[{key:"length",get:function t(){return this.store.size}},{key:"setItem",value:function t(t,r,e){var n={key:t,value:r!==null&&r!==void 0?r:null};typeof(e===null||e===void 0?void 0:e.expires)=="number"&&e.expires>0&&(n.expires=e.expires);var o=this.serializer?this.serializer.serialize(n):n;return this.store.set(t,o),o}},{key:"getItem",value:function t(t,r){var e=this.store.get(t),n=r!==null&&r!==void 0?r:null;if(!e)return n;var o=this.serializer?this.serializer.deserialize(e,n):e;return this.getRawValue(o,n)}},{key:"getRawValue",value:function t(t,r){var e,n;return this.isStorageValue(t)?this.isExpired(t)?(this.removeItem(t.key),r!==null&&r!==void 0?r:null):(e=t===null||t===void 0?void 0:t.value)!==null&&e!==void 0?e:r:(n=t!==null&&t!==void 0?t:r)!==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":N(t))=="object"&&t!==null&&"key"in t&&"value"in t}},{key:"getSerializer",value:function t(){return this.serializer}}]);return t}();function eb(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 em={setItem:{serialize:function(t,r){return(U=t).serialize.apply(U,A(r))},encrypt:function(t,r){return(C=t).encrypt.apply(C,A(r))},storage:function(t,r){return(B=t).setItem.apply(B,A(r))}},getItem:{serialize:function(t,r){return(V=t).deserialize.apply(V,A(r))},encrypt:function(t,r){return(F=t).decrypt.apply(F,A(r))},storage:function(t,r){return(D=t).getItem.apply(D,A(r))}}},ex=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i(this,t);this.storage=r;this.pipes=(Array.isArray(e)?e:[e]).map(function(t){return eb(t)}).filter(function(t){return t!=null})}c(t,[{key:"length",get:function t(){return this.storage.length}},{key:"setItem",value:function t(t,r,e){var n=r;var o=true,u=false,i=undefined;try{for(var a=this.pipes[Symbol.iterator](),s;!(o=(s=a.next()).done);o=true){var c=s.value;var f=c.type,l=c.pipe;if(f==="storage")l.setItem(t,n,e);else{var v=em.setItem[f](l,[n]);v!=null&&(n=v)}}}catch(t){u=true;i=t}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(u){throw i}}}this.storage.setItem(t,n,e)}},{key:"getItem",value:function t(t,r,e){var n=this.storage.getItem(t,r,e);if(n==null){var o=A(this.pipes).reverse();var u=true,i=false,a=undefined;try{for(var s=o[Symbol.iterator](),c;!(u=(c=s.next()).done);u=true){var f=c.value;var l=f.type,v=f.pipe;if(l!=="storage")continue;var p=em.getItem[l](v,[t,n,e]);if(p!=null){n=p;break}}}catch(t){i=true;a=t}finally{try{if(!u&&s.return!=null){s.return()}}finally{if(i){throw a}}}}if(n==null)return r!==null&&r!==void 0?r: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=em.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,e)),n!==null&&n!==void 0?n:null}},{key:"removeItem",value:function t(t,r){this.storage.removeItem(t,r),this.pipes.filter(function(t){return t.type==="storage"}).forEach(function(e){e.pipe.removeItem(t,r)})}},{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}();0&&(module.exports={AsyncExecutor:AsyncExecutor,Base64Serializer:Base64Serializer,Executor:Executor,ExecutorError:ExecutorError,FetchAbortPlugin:FetchAbortPlugin,FetchURLPlugin:FetchURLPlugin,JSONSerializer:JSONSerializer,KeyStorage:KeyStorage,KeyStorageInterface:KeyStorageInterface,ObjectStorage:ObjectStorage,RequestAdapterAxios:RequestAdapterAxios,RequestAdapterFetch:RequestAdapterFetch,RequestError:RequestError,RequestErrorID:RequestErrorID,RequestManager:RequestManager,RequestScheduler:RequestScheduler,RequestTransaction:RequestTransaction,RetryPlugin:RetryPlugin,SyncExecutor:SyncExecutor,SyncStorage:SyncStorage});
|