w-converhp 1.0.37 → 1.0.38
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/.eslintrc.js +17 -17
- package/.github/workflows/ci-test.yml +1 -1
- package/README.md +1 -1
- package/babel.config.js +1 -0
- package/dist/w-converhp-client.umd.js +2 -2
- package/dist/w-converhp-client.umd.js.map +1 -1
- package/dist/w-converhp-server.umd.js +2 -2
- package/dist/w-converhp-server.umd.js.map +1 -1
- package/docs/WConverhpClient.html +65 -63
- package/docs/WConverhpClient.mjs.html +4 -1
- package/docs/WConverhpServer.html +99 -98
- package/docs/WConverhpServer.mjs.html +4 -1
- package/docs/index.html +4 -1
- package/docs/scripts/collapse.js +19 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/search.js +16 -0
- package/docs/styles/jsdoc.css +13 -2
- package/docs/styles/prettify.css +1 -0
- package/package.json +6 -6
package/.eslintrc.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
'env': {
|
|
3
|
+
'browser': true,
|
|
4
|
+
'es6': true,
|
|
5
|
+
'mocha': true
|
|
6
6
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
'extends': ['plugin:vue/base', 'plugin:vue/essential', 'standard'],
|
|
8
|
+
'plugins': [
|
|
9
|
+
'vue'
|
|
10
10
|
],
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
'globals': {
|
|
12
|
+
'Atomics': 'readonly',
|
|
13
|
+
'SharedArrayBuffer': 'readonly'
|
|
14
14
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
'parser': 'vue-eslint-parser',
|
|
16
|
+
'parserOptions': {
|
|
17
|
+
'parser': '@babel/eslint-parser',
|
|
18
|
+
'ecmaVersion': 2019,
|
|
19
|
+
'sourceType': 'module',
|
|
20
20
|
},
|
|
21
|
-
rules: {
|
|
21
|
+
'rules': {
|
|
22
22
|
'generator-star-spacing': 'off',
|
|
23
23
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
24
24
|
'indent': ['error', 4],
|
|
@@ -51,4 +51,4 @@ module.exports = {
|
|
|
51
51
|
'array-callback-return': 'off',
|
|
52
52
|
'no-unreachable-loop': 'off',
|
|
53
53
|
}
|
|
54
|
-
}
|
|
54
|
+
}
|
package/README.md
CHANGED
|
@@ -224,7 +224,7 @@ wo.on('deliver', function(data) {
|
|
|
224
224
|
|
|
225
225
|
[Necessary] Add script for w-converhp-client.
|
|
226
226
|
```alias
|
|
227
|
-
<script src="https://cdn.jsdelivr.net/npm/w-converhp@1.0.
|
|
227
|
+
<script src="https://cdn.jsdelivr.net/npm/w-converhp@1.0.38/dist/w-converhp-client.umd.js"></script>
|
|
228
228
|
```
|
|
229
229
|
#### Example for w-converhp-client:
|
|
230
230
|
> **Link:** [[dev source code](https://github.com/yuda-lyu/w-converhp/blob/master/web.html)]
|
package/babel.config.js
CHANGED
|
@@ -7,6 +7,7 @@ module.exports = {
|
|
|
7
7
|
],
|
|
8
8
|
'plugins': [
|
|
9
9
|
'@babel/plugin-transform-runtime',
|
|
10
|
+
'@babel/plugin-syntax-import-assertions',
|
|
10
11
|
'@babel/plugin-proposal-export-default-from',
|
|
11
12
|
'@babel/plugin-proposal-nullish-coalescing-operator',
|
|
12
13
|
'@babel/plugin-proposal-optional-chaining'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-converhp-client v1.0.
|
|
2
|
+
* w-converhp-client v1.0.38
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("crypto")):"function"==typeof define&&define.amd?define(["crypto"],e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e(t.crypto)}(this,(function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(t);function n(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,s,"next",t)}function s(t){n(a,o,i,u,s,"throw",t)}u(void 0)}))}}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){var e={exports:{}};return t(e,e.exports),e.exports}var s=u((function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new T(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?v:h,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=v,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p="suspendedStart",h="suspendedYield",d="executing",v="completed",y={};function g(){}function m(){}function b(){}var w={};c(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(N([])));j&&j!==r&&n.call(j,a)&&(w=j);var E=b.prototype=g.prototype=Object.create(w);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(o,a,u,s){var c=l(t[o],t,a);if("throw"!==c.type){var f=c.arg,p=f.value;return p&&"object"===i(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(p).then((function(t){f.value=t,u(f)}),(function(t){return r("throw",t,u,s)}))}s(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function N(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:P}}function P(){return{value:e,done:!0}}return m.prototype=b,c(E,"constructor",b),c(b,"constructor",m),m.displayName=c(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},_(A.prototype),c(A.prototype,u,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new A(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(E),c(E,s,"Generator"),c(E,a,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(R),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"===("undefined"==typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})),c=s;function f(t,e){return function(){return t.apply(e,arguments)}}var l,p=Object.prototype.toString,h=Object.getPrototypeOf,d=(l=Object.create(null),function(t){var e=p.call(t);return l[e]||(l[e]=e.slice(8,-1).toLowerCase())}),v=function(t){return t=t.toLowerCase(),function(e){return d(e)===t}},y=function(t){return function(e){return i(e)===t}},g=Array.isArray,m=y("undefined");var b=v("ArrayBuffer");var w=y("string"),O=y("function"),j=y("number"),E=function(t){return null!==t&&"object"===i(t)},_=function(t){if("object"!==d(t))return!1;var e=h(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},A=v("Date"),S=v("File"),x=v("Blob"),R=v("FileList"),T=v("URLSearchParams");function N(t,e){var r,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.allOwnKeys,u=void 0!==a&&a;if(null!=t)if("object"!==i(t)&&(t=[t]),g(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{var s,c=u?Object.getOwnPropertyNames(t):Object.keys(t),f=c.length;for(r=0;r<f;r++)s=c[r],e.call(null,t[s],s,t)}}function P(t,e){e=e.toLowerCase();for(var r,n=Object.keys(t),o=n.length;o-- >0;)if(e===(r=n[o]).toLowerCase())return r;return null}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=function(t){return!m(t)&&t!==C};var B,L=(B="undefined"!=typeof Uint8Array&&h(Uint8Array),function(t){return B&&t instanceof B}),U=v("HTMLFormElement"),F=function(t){var e=Object.prototype.hasOwnProperty;return function(t,r){return e.call(t,r)}}(),D=v("RegExp"),M=function(t,e){var r=Object.getOwnPropertyDescriptors(t),n={};N(r,(function(r,o){!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},I={isArray:g,isArrayBuffer:b,isBuffer:function(t){return null!==t&&!m(t)&&null!==t.constructor&&!m(t.constructor)&&O(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:function(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||p.call(t)===e||O(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&b(t.buffer)},isString:w,isNumber:j,isBoolean:function(t){return!0===t||!1===t},isObject:E,isPlainObject:_,isUndefined:m,isDate:A,isFile:S,isBlob:x,isRegExp:D,isFunction:O,isStream:function(t){return E(t)&&O(t.pipe)},isURLSearchParams:T,isTypedArray:L,isFileList:R,forEach:N,merge:function t(){for(var e=k(this)&&this||{},r=e.caseless,n={},o=function(e,o){var i=r&&P(n,o)||o;_(n[i])&&_(e)?n[i]=t(n[i],e):_(e)?n[i]=t({},e):g(e)?n[i]=e.slice():n[i]=e},i=0,a=arguments.length;i<a;i++)arguments[i]&&N(arguments[i],o);return n},extend:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=n.allOwnKeys;return N(e,(function(e,n){r&&O(e)?t[n]=f(e,r):t[n]=e}),{allOwnKeys:o}),t},trim:function(t){return t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r,n){var o,i,a,u={};if(e=e||{},null==t)return e;do{for(i=(o=Object.getOwnPropertyNames(t)).length;i-- >0;)a=o[i],n&&!n(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==r&&h(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:d,kindOfTest:v,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;if(g(t))return t;var e=t.length;if(!j(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},forEachEntry:function(t,e){for(var r,n=(t&&t[Symbol.iterator]).call(t);(r=n.next())&&!r.done;){var o=r.value;e.call(t,o[0],o[1])}},matchAll:function(t,e){for(var r,n=[];null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:U,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:M,freezeMethods:function(t){M(t,(function(e,r){if(O(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=t[r];O(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(t,e){var r={},n=function(t){t.forEach((function(t){r[t]=!0}))};return g(t)?n(t):n(String(t).split(e)),r},toCamelCase:function(t){return t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(t,e){return t=+t,Number.isFinite(t)?t:e},findKey:P,global:C,isContextDefined:k,toJSONObject:function(t){var e=new Array(10);return function t(r,n){if(E(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;var o=g(r)?[]:{};return N(r,(function(e,r){var i=t(e,n+1);!m(i)&&(o[r]=i)})),e[n]=void 0,o}}return r}(t,0)}};function z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function q(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function H(t,e,r){return e&&q(t.prototype,e),r&&q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function J(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}I.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var W=J.prototype,V={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(t){V[t]={value:t}})),Object.defineProperties(J,V),Object.defineProperty(W,"isAxiosError",{value:!0}),J.from=function(t,e,r,n,o,i){var a=Object.create(W);return I.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(function(t){return"isAxiosError"!==t})),J.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};var $="object"==("undefined"==typeof self?"undefined":i(self))?self.FormData:window.FormData;function G(t){return I.isPlainObject(t)||I.isArray(t)}function K(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function X(t,e,r){return t?t.concat(e).map((function(t,e){return t=K(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}var Q=I.toFlatObject(I,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Y(t,e,r){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new($||FormData);var n,o=(r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!I.isUndefined(e[t])}))).metaTokens,a=r.visitor||l,u=r.dots,s=r.indexes,c=(r.Blob||"undefined"!=typeof Blob&&Blob)&&((n=e)&&I.isFunction(n.append)&&"FormData"===n[Symbol.toStringTag]&&n[Symbol.iterator]);if(!I.isFunction(a))throw new TypeError("visitor must be a function");function f(t){if(null===t)return"";if(I.isDate(t))return t.toISOString();if(!c&&I.isBlob(t))throw new J("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(t)||I.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function l(t,r,n){var a=t;if(t&&!n&&"object"===i(t))if(I.endsWith(r,"{}"))r=o?r:r.slice(0,-2),t=JSON.stringify(t);else if(I.isArray(t)&&function(t){return I.isArray(t)&&!t.some(G)}(t)||I.isFileList(t)||I.endsWith(r,"[]")&&(a=I.toArray(t)))return r=K(r),a.forEach((function(t,n){!I.isUndefined(t)&&null!==t&&e.append(!0===s?X([r],n,u):null===s?r:r+"[]",f(t))})),!1;return!!G(t)||(e.append(X(n,r,u),f(t)),!1)}var p=[],h=Object.assign(Q,{defaultVisitor:l,convertValue:f,isVisitable:G});if(!I.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!I.isUndefined(r)){if(-1!==p.indexOf(r))throw Error("Circular reference detected in "+n.join("."));p.push(r),I.forEach(r,(function(r,o){!0===(!(I.isUndefined(r)||null===r)&&a.call(e,r,I.isString(o)?o.trim():o,n,h))&&t(r,n?n.concat(o):[o])})),p.pop()}}(t),e}function Z(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function tt(t,e){this._pairs=[],t&&Y(t,this,e)}var et=tt.prototype;function rt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nt(t,e,r){if(!e)return t;var n,o=r&&r.encode||rt,i=r&&r.serialize;if(n=i?i(e,r):I.isURLSearchParams(e)?e.toString():new tt(e,r).toString(o)){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}et.append=function(t,e){this._pairs.push([t,e])},et.toString=function(t){var e=t?function(e){return t.call(this,e,Z)}:Z;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var ot,it=function(){function t(){z(this,t),this.handlers=[]}return H(t,[{key:"use",value:function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(t){I.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}]),t}(),at={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut="undefined"!=typeof URLSearchParams?URLSearchParams:tt,st=FormData,ct=("undefined"==typeof navigator||"ReactNative"!==(ot=navigator.product)&&"NativeScript"!==ot&&"NS"!==ot)&&"undefined"!=typeof window&&"undefined"!=typeof document,ft="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,lt={isBrowser:!0,classes:{URLSearchParams:ut,FormData:st,Blob:Blob},isStandardBrowserEnv:ct,isStandardBrowserWebWorkerEnv:ft,protocols:["http","https","file","blob","url","data"]};function pt(t){function e(t,r,n,o){var i=t[o++],a=Number.isFinite(+i),u=o>=t.length;return i=!i&&I.isArray(n)?n.length:i,u?(I.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&I.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&I.isArray(n[i])&&(n[i]=function(t){var e,r,n={},o=Object.keys(t),i=o.length;for(e=0;e<i;e++)n[r=o[e]]=t[r];return n}(n[i])),!a)}if(I.isFormData(t)&&I.isFunction(t.entries)){var r={};return I.forEachEntry(t,(function(t,n){e(function(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map((function(t){return"[]"===t[0]?"":t[1]||t[0]}))}(t),n,r,0)})),r}return null}var ht={"Content-Type":void 0};var dt={transitional:at,adapter:["xhr","http"],transformRequest:[function(t,e){var r,n=e.getContentType()||"",o=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o&&o?JSON.stringify(pt(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Y(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return lt.isNode&&I.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((r=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Y(r?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(e.setContentType("application/json",!1),function(t,e,r){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||dt.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&I.isString(t)&&(r&&!this.responseType||n)){var o=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw J.from(t,J.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],(function(t){dt.headers[t]={}})),I.forEach(["post","put","patch"],(function(t){dt.headers[t]=I.merge(ht)}));var vt=dt;function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return yt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var mt=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bt=Symbol("internals");function wt(t){return t&&String(t).trim().toLowerCase()}function Ot(t){return!1===t||null==t?t:I.isArray(t)?t.map(Ot):String(t)}function jt(t,e,r,n){return I.isFunction(n)?n.call(this,e,r):I.isString(e)?I.isString(n)?-1!==e.indexOf(n):I.isRegExp(n)?n.test(e):void 0:void 0}var Et=function(t,e){function r(t){z(this,r),t&&this.set(t)}return H(r,[{key:"set",value:function(t,e,r){var n=this;function o(t,e,r){var o=wt(e);if(!o)throw new Error("header name must be a non-empty string");var i=I.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Ot(t))}var i,a,u,s,c,f=function(t,e){return I.forEach(t,(function(t,r){return o(t,r,e)}))};return I.isPlainObject(t)||t instanceof this.constructor?f(t,e):I.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?f((c={},(i=t)&&i.split("\n").forEach((function(t){s=t.indexOf(":"),a=t.substring(0,s).trim().toLowerCase(),u=t.substring(s+1).trim(),!a||c[a]&&mt[a]||("set-cookie"===a?c[a]?c[a].push(u):c[a]=[u]:c[a]=c[a]?c[a]+", "+u:u)})),c),e):null!=t&&o(e,t,r),this}},{key:"get",value:function(t,e){if(t=wt(t)){var r=I.findKey(this,t);if(r){var n=this[r];if(!e)return n;if(!0===e)return function(t){for(var e,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;e=n.exec(t);)r[e[1]]=e[2];return r}(n);if(I.isFunction(e))return e.call(this,n,r);if(I.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(t,e){if(t=wt(t)){var r=I.findKey(this,t);return!(!r||e&&!jt(0,this[r],r,e))}return!1}},{key:"delete",value:function(t,e){var r=this,n=!1;function o(t){if(t=wt(t)){var o=I.findKey(r,t);!o||e&&!jt(0,r[o],o,e)||(delete r[o],n=!0)}}return I.isArray(t)?t.forEach(o):o(t),n}},{key:"clear",value:function(){return Object.keys(this).forEach(this.delete.bind(this))}},{key:"normalize",value:function(t){var e=this,r={};return I.forEach(this,(function(n,o){var i=I.findKey(r,o);if(i)return e[i]=Ot(n),void delete e[o];var a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Ot(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=this.constructor).concat.apply(t,[this].concat(r))}},{key:"toJSON",value:function(t){var e=Object.create(null);return I.forEach(this,(function(r,n){null!=r&&!1!==r&&(e[n]=t&&I.isArray(r)?r.join(", "):r)})),e}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(t){var e=gt(t,2);return e[0]+": "+e[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(t){return t instanceof this?t:new this(t)}},{key:"concat",value:function(t){for(var e=new this(t),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(t){return e.set(t)})),e}},{key:"accessor",value:function(t){var e=(this[bt]=this[bt]={accessors:{}}).accessors,r=this.prototype;function n(t){var n=wt(t);e[n]||(!function(t,e){var r=I.toCamelCase(" "+e);["get","set","has"].forEach((function(n){Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return I.isArray(t)?t.forEach(n):n(t),this}}]),r}();Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),I.freezeMethods(Et.prototype),I.freezeMethods(Et);var _t=Et;function At(t,e){var r=this||vt,n=e||r,o=_t.from(n.headers),i=n.data;return I.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function St(t){return!(!t||!t.__CANCEL__)}function xt(t,e,r){J.call(this,null==t?"canceled":t,J.ERR_CANCELED,e,r),this.name="CanceledError"}I.inherits(xt,J,{__CANCEL__:!0});var Rt=lt.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),I.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),I.isString(n)&&a.push("path="+n),I.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Tt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Nt=lt.isStandardBrowserEnv?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=n(window.location.href),function(e){var r=I.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function Pt(t,e){var r=0,n=function(t,e){t=t||10;var r,n=new Array(t),o=new Array(t),i=0,a=0;return e=void 0!==e?e:1e3,function(u){var s=Date.now(),c=o[a];r||(r=s),n[i]=u,o[i]=s;for(var f=a,l=0;f!==i;)l+=n[f++],f%=t;if((i=(i+1)%t)===a&&(a=(a+1)%t),!(s-r<e)){var p=c&&s-c;return p?Math.round(1e3*l/p):void 0}}}(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,u=i-r,s=n(u);r=i;var c={loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}var Ct={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){var n,o=t.data,i=_t.from(t.headers).normalize(),a=t.responseType;function u(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}I.isFormData(o)&&(lt.isStandardBrowserEnv||lt.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);var s=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(c+":"+f))}var l=Tt(t.baseURL,t.url);function p(){if(s){var n=_t.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new J("Request failed with status code "+r.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),u()}),(function(t){r(t),u()}),{data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:t,request:s}),s=null}}if(s.open(t.method.toUpperCase(),nt(l,t.params,t.paramsSerializer),!0),s.timeout=t.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(r(new J("Request aborted",J.ECONNABORTED,t,s)),s=null)},s.onerror=function(){r(new J("Network Error",J.ERR_NETWORK,t,s)),s=null},s.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||at;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new J(e,n.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,t,s)),s=null},lt.isStandardBrowserEnv){var h=(t.withCredentials||Nt(l))&&t.xsrfCookieName&&Rt.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}void 0===o&&i.setContentType(null),"setRequestHeader"in s&&I.forEach(i.toJSON(),(function(t,e){s.setRequestHeader(e,t)})),I.isUndefined(t.withCredentials)||(s.withCredentials=!!t.withCredentials),a&&"json"!==a&&(s.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&s.addEventListener("progress",Pt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",Pt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(n=function(e){s&&(r(!e||e.type?new xt(null,t,s):e),s.abort(),s=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n)));var d,v=(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l))&&d[1]||"";v&&-1===lt.protocols.indexOf(v)?r(new J("Unsupported protocol "+v+":",J.ERR_BAD_REQUEST,t)):s.send(o||null)}))}};I.forEach(Ct,(function(t,e){if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var kt=function(t){for(var e,r,n=(t=I.isArray(t)?t:[t]).length,o=0;o<n&&(e=t[o],!(r=I.isString(e)?Ct[e.toLowerCase()]:e));o++);if(!r){if(!1===r)throw new J("Adapter ".concat(e," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(I.hasOwnProp(Ct,e)?"Adapter '".concat(e,"' is not available in the build"):"Unknown adapter '".concat(e,"'"))}if(!I.isFunction(r))throw new TypeError("adapter is not a function");return r};function Bt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xt(null,t)}function Lt(t){return Bt(t),t.headers=_t.from(t.headers),t.data=At.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),kt(t.adapter||vt.adapter)(t).then((function(e){return Bt(t),e.data=At.call(t,t.transformResponse,e),e.headers=_t.from(e.headers),e}),(function(e){return St(e)||(Bt(t),e&&e.response&&(e.response.data=At.call(t,t.transformResponse,e.response),e.response.headers=_t.from(e.response.headers))),Promise.reject(e)}))}var Ut=function(t){return t instanceof _t?t.toJSON():t};function Ft(t,e){e=e||{};var r={};function n(t,e,r){return I.isPlainObject(t)&&I.isPlainObject(e)?I.merge.call({caseless:r},t,e):I.isPlainObject(e)?I.merge({},e):I.isArray(e)?e.slice():e}function o(t,e,r){return I.isUndefined(e)?I.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!I.isUndefined(e))return n(void 0,e)}function a(t,e){return I.isUndefined(e)?I.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function u(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}var s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(t,e){return o(Ut(t),Ut(e),!0)}};return I.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){var i=s[n]||o,a=i(t[n],e[n],n);I.isUndefined(a)&&i!==u||(r[n]=a)})),r}var Dt="1.2.3",Mt={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){Mt[t]=function(r){return i(r)===t||"a"+(e<1?"n ":" ")+t}}));var It={};Mt.transitional=function(t,e,r){function n(t,e){return"[Axios v1.2.3] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new J(n(o," has been removed"+(e?" in "+e:"")),J.ERR_DEPRECATED);return e&&!It[o]&&(It[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var zt={assertOptions:function(t,e,r){if("object"!==i(t))throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(t),o=n.length;o-- >0;){var a=n[o],u=e[a];if(u){var s=t[a],c=void 0===s||u(s,a,t);if(!0!==c)throw new J("option "+a+" must be "+c,J.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new J("Unknown option "+a,J.ERR_BAD_OPTION)}},validators:Mt},qt=zt.validators,Ht=function(){function t(e){z(this,t),this.defaults=e,this.interceptors={request:new it,response:new it}}return H(t,[{key:"request",value:function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{};var r,n=e=Ft(this.defaults,e),o=n.transitional,i=n.paramsSerializer,a=n.headers;void 0!==o&&zt.assertOptions(o,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean)},!1),void 0!==i&&zt.assertOptions(i,{encode:qt.function,serialize:qt.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),(r=a&&I.merge(a.common,a[e.method]))&&I.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete a[t]})),e.headers=_t.concat(r,a);var u=[],s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,u.unshift(t.fulfilled,t.rejected))}));var c,f=[];this.interceptors.response.forEach((function(t){f.push(t.fulfilled,t.rejected)}));var l,p=0;if(!s){var h=[Lt.bind(this),void 0];for(h.unshift.apply(h,u),h.push.apply(h,f),l=h.length,c=Promise.resolve(e);p<l;)c=c.then(h[p++],h[p++]);return c}l=u.length;var d=e;for(p=0;p<l;){var v=u[p++],y=u[p++];try{d=v(d)}catch(t){y.call(this,t);break}}try{c=Lt.call(this,d)}catch(t){return Promise.reject(t)}for(p=0,l=f.length;p<l;)c=c.then(f[p++],f[p++]);return c}},{key:"getUri",value:function(t){return nt(Tt((t=Ft(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}]),t}();I.forEach(["delete","get","head","options"],(function(t){Ht.prototype[t]=function(e,r){return this.request(Ft(r||{},{method:t,url:e,data:(r||{}).data}))}})),I.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Ft(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Ht.prototype[t]=e(),Ht.prototype[t+"Form"]=e(!0)}));var Jt=Ht,Wt=function(){function t(e){if(z(this,t),"function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var n=this;this.promise.then((function(t){if(n._listeners){for(var e=n._listeners.length;e-- >0;)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},e((function(t,e,o){n.reason||(n.reason=new xt(t,e,o),r(n.reason))}))}return H(t,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:"unsubscribe",value:function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}}}],[{key:"source",value:function(){var e;return{token:new t((function(t){e=t})),cancel:e}}}]),t}();var Vt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Vt).forEach((function(t){var e=gt(t,2),r=e[0],n=e[1];Vt[n]=r}));var $t=Vt;var Gt=function t(e){var r=new Jt(e),n=f(Jt.prototype.request,r);return I.extend(n,Jt.prototype,r,{allOwnKeys:!0}),I.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Ft(e,r))},n}(vt);Gt.Axios=Jt,Gt.CanceledError=xt,Gt.CancelToken=Wt,Gt.isCancel=St,Gt.VERSION=Dt,Gt.toFormData=Y,Gt.AxiosError=J,Gt.Cancel=Gt.CanceledError,Gt.all=function(t){return Promise.all(t)},Gt.spread=function(t){return function(e){return t.apply(null,e)}},Gt.isAxiosError=function(t){return I.isObject(t)&&!0===t.isAxiosError},Gt.mergeConfig=Ft,Gt.AxiosHeaders=_t,Gt.formToJSON=function(t){return pt(I.isHTMLForm(t)?new FormData(t):t)},Gt.HttpStatusCode=$t,Gt.default=Gt;var Kt=Gt;Kt.Axios,Kt.AxiosError,Kt.CanceledError,Kt.isCancel,Kt.CancelToken,Kt.VERSION,Kt.all,Kt.Cancel,Kt.isAxiosError,Kt.spread,Kt.toFormData,Kt.AxiosHeaders,Kt.HttpStatusCode,Kt.formToJSON,Kt.mergeConfig;var Xt=Array.isArray,Qt="object"==i(a)&&a&&a.Object===Object&&a,Yt="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,Zt=Qt||Yt||Function("return this")(),te=Zt.Symbol,ee=Object.prototype,re=ee.hasOwnProperty,ne=ee.toString,oe=te?te.toStringTag:void 0;var ie=function(t){var e=re.call(t,oe),r=t[oe];try{t[oe]=void 0;var n=!0}catch(t){}var o=ne.call(t);return n&&(e?t[oe]=r:delete t[oe]),o},ae=Object.prototype.toString;var ue=function(t){return ae.call(t)},se=te?te.toStringTag:void 0;var ce=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":se&&se in Object(t)?ie(t):ue(t)};var fe=function(t){return null!=t&&"object"==i(t)};var le=function(t){return"symbol"==i(t)||fe(t)&&"[object Symbol]"==ce(t)},pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,he=/^\w*$/;var de=function(t,e){if(Xt(t))return!1;var r=i(t);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!le(t))||(he.test(t)||!pe.test(t)||null!=e&&t in Object(e))};var ve=function(t){var e=i(t);return null!=t&&("object"==e||"function"==e)};var ye,ge=function(t){if(!ve(t))return!1;var e=ce(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},me=Zt["__core-js_shared__"],be=(ye=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||""))?"Symbol(src)_1."+ye:"";var we=function(t){return!!be&&be in t},Oe=Function.prototype.toString;var je=function(t){if(null!=t){try{return Oe.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ee=/^\[object .+?Constructor\]$/,_e=Function.prototype,Ae=Object.prototype,Se=_e.toString,xe=Ae.hasOwnProperty,Re=RegExp("^"+Se.call(xe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Te=function(t){return!(!ve(t)||we(t))&&(ge(t)?Re:Ee).test(je(t))};var Ne=function(t,e){return null==t?void 0:t[e]};var Pe=function(t,e){var r=Ne(t,e);return Te(r)?r:void 0},Ce=Pe(Object,"create");var ke=function(){this.__data__=Ce?Ce(null):{},this.size=0};var Be=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Le=Object.prototype.hasOwnProperty;var Ue=function(t){var e=this.__data__;if(Ce){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Le.call(e,t)?e[t]:void 0},Fe=Object.prototype.hasOwnProperty;var De=function(t){var e=this.__data__;return Ce?void 0!==e[t]:Fe.call(e,t)};var Me=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ce&&void 0===e?"__lodash_hash_undefined__":e,this};function Ie(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ie.prototype.clear=ke,Ie.prototype.delete=Be,Ie.prototype.get=Ue,Ie.prototype.has=De,Ie.prototype.set=Me;var ze=Ie;var qe=function(){this.__data__=[],this.size=0};var He=function(t,e){return t===e||t!=t&&e!=e};var Je=function(t,e){for(var r=t.length;r--;)if(He(t[r][0],e))return r;return-1},We=Array.prototype.splice;var Ve=function(t){var e=this.__data__,r=Je(e,t);return!(r<0)&&(r==e.length-1?e.pop():We.call(e,r,1),--this.size,!0)};var $e=function(t){var e=this.__data__,r=Je(e,t);return r<0?void 0:e[r][1]};var Ge=function(t){return Je(this.__data__,t)>-1};var Ke=function(t,e){var r=this.__data__,n=Je(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Xe(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Xe.prototype.clear=qe,Xe.prototype.delete=Ve,Xe.prototype.get=$e,Xe.prototype.has=Ge,Xe.prototype.set=Ke;var Qe=Xe,Ye=Pe(Zt,"Map");var Ze=function(){this.size=0,this.__data__={hash:new ze,map:new(Ye||Qe),string:new ze}};var tr=function(t){var e=i(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var er=function(t,e){var r=t.__data__;return tr(e)?r["string"==typeof e?"string":"hash"]:r.map};var rr=function(t){var e=er(this,t).delete(t);return this.size-=e?1:0,e};var nr=function(t){return er(this,t).get(t)};var or=function(t){return er(this,t).has(t)};var ir=function(t,e){var r=er(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ar(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ar.prototype.clear=Ze,ar.prototype.delete=rr,ar.prototype.get=nr,ar.prototype.has=or,ar.prototype.set=ir;var ur=ar;function sr(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(sr.Cache||ur),r}sr.Cache=ur;var cr=sr;var fr=function(t){var e=cr(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e},lr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,hr=fr((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(lr,(function(t,r,n,o){e.push(n?o.replace(pr,"$1"):r||t)})),e}));var dr=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},vr=te?te.prototype:void 0,yr=vr?vr.toString:void 0;var gr=function t(e){if("string"==typeof e)return e;if(Xt(e))return dr(e,t)+"";if(le(e))return yr?yr.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r};var mr=function(t){return null==t?"":gr(t)};var br=function(t,e){return Xt(t)?t:de(t,e)?[t]:hr(mr(t))};var wr=function(t){if("string"==typeof t||le(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Or=function(t,e){for(var r=0,n=(e=br(e,t)).length;null!=t&&r<n;)t=t[wr(e[r++])];return r&&r==n?t:void 0};var jr=function(t,e,r){var n=null==t?void 0:Or(t,e);return void 0===n?r:n};var Er=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var _r=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[t?u:++o];if(!1===r(i[s],s,i))break}return e}}();var Ar=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var Sr=function(t){return fe(t)&&"[object Arguments]"==ce(t)},xr=Object.prototype,Rr=xr.hasOwnProperty,Tr=xr.propertyIsEnumerable,Nr=Sr(function(){return arguments}())?Sr:function(t){return fe(t)&&Rr.call(t,"callee")&&!Tr.call(t,"callee")},Pr=Nr;var Cr=function(){return!1},kr=u((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?Zt.Buffer:void 0,i=(o?o.isBuffer:void 0)||Cr;t.exports=i})),Br=/^(?:0|[1-9]\d*)$/;var Lr=function(t,e){var r=i(t);return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Br.test(t))&&t>-1&&t%1==0&&t<e};var Ur=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Fr={};Fr["[object Float32Array]"]=Fr["[object Float64Array]"]=Fr["[object Int8Array]"]=Fr["[object Int16Array]"]=Fr["[object Int32Array]"]=Fr["[object Uint8Array]"]=Fr["[object Uint8ClampedArray]"]=Fr["[object Uint16Array]"]=Fr["[object Uint32Array]"]=!0,Fr["[object Arguments]"]=Fr["[object Array]"]=Fr["[object ArrayBuffer]"]=Fr["[object Boolean]"]=Fr["[object DataView]"]=Fr["[object Date]"]=Fr["[object Error]"]=Fr["[object Function]"]=Fr["[object Map]"]=Fr["[object Number]"]=Fr["[object Object]"]=Fr["[object RegExp]"]=Fr["[object Set]"]=Fr["[object String]"]=Fr["[object WeakMap]"]=!1;var Dr=function(t){return fe(t)&&Ur(t.length)&&!!Fr[ce(t)]};var Mr=function(t){return function(e){return t(e)}},Ir=u((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r&&Qt.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),zr=Ir&&Ir.isTypedArray,qr=zr?Mr(zr):Dr,Hr=Object.prototype.hasOwnProperty;var Jr=function(t,e){var r=Xt(t),n=!r&&Pr(t),o=!r&&!n&&kr(t),i=!r&&!n&&!o&&qr(t),a=r||n||o||i,u=a?Ar(t.length,String):[],s=u.length;for(var c in t)!e&&!Hr.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lr(c,s))||u.push(c);return u},Wr=Object.prototype;var Vr=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Wr)};var $r=function(t,e){return function(r){return t(e(r))}},Gr=$r(Object.keys,Object),Kr=Object.prototype.hasOwnProperty;var Xr=function(t){if(!Vr(t))return Gr(t);var e=[];for(var r in Object(t))Kr.call(t,r)&&"constructor"!=r&&e.push(r);return e};var Qr=function(t){return null!=t&&Ur(t.length)&&!ge(t)};var Yr=function(t){return Qr(t)?Jr(t):Xr(t)};var Zr=function(t,e){return function(r,n){if(null==r)return r;if(!Qr(r))return t(r,n);for(var o=r.length,i=e?o:-1,a=Object(r);(e?i--:++i<o)&&!1!==n(a[i],i,a););return r}}((function(t,e){return t&&_r(t,e,Yr)}));var tn=function(t){return t};var en=function(t){return"function"==typeof t?t:tn};var rn=function(t,e){return(Xt(t)?Er:Zr)(t,en(e))};function nn(){return"undefined"!=typeof window&&void 0!==window.document}function on(){var t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var an=/\s/;var un=function(t){for(var e=t.length;e--&&an.test(t.charAt(e)););return e},sn=/^\s+/;var cn=function(t){return t?t.slice(0,un(t)+1).replace(sn,""):t},fn=/^[-+]0x[0-9a-f]+$/i,ln=/^0b[01]+$/i,pn=/^0o[0-7]+$/i,hn=parseInt;var dn=function(t){if("number"==typeof t)return t;if(le(t))return NaN;if(ve(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ve(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=cn(t);var r=ln.test(t);return r||pn.test(t)?hn(t.slice(2),r?2:8):fn.test(t)?NaN:+t},vn=1/0;var yn=function(t){return t?(t=dn(t))===vn||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var gn=function(t){var e=yn(t),r=e%1;return e==e?r?e-r:e:0};var mn=function(t){return"number"==typeof t&&t==gn(t)};function bn(t){return"[object String]"===Object.prototype.toString.call(t)}function wn(t){return!(!bn(t)||""===t)}function On(t){var e=!1;return wn(t)?e=!isNaN(Number(t)):function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)&&(e=!0),e}function jn(t){return On(t)?yn(t):0}function En(t){return!!On(t)&&(t=jn(t),mn(t))}var _n=Zt.isFinite,An=Math.min;var Sn=function(t){var e=Math[t];return function(t,r){if(t=dn(t),(r=null==r?0:An(gn(r),292))&&_n(t)){var n=(mr(t)+"e").split("e"),o=e(n[0]+"e"+(+n[1]+r));return+((n=(mr(o)+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round");function xn(t){if(!On(t))return 0;t=jn(t);var e=Sn(t);return"0"===String(e)?0:e}function Rn(t){return!!En(t)&&xn(t)>0}var Tn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Nn=Tn.length;var Pn=u((function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var u=new o(n,i||t,a),s=r?r+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],u]:t._events[s].push(u):(t._events[s]=u,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function u(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),u.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},u.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},u.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},u.prototype.emit=function(t,e,n,o,i,a){var u=r?r+t:t;if(!this._events[u])return!1;var s,c,f=this._events[u],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,n),!0;case 4:return f.fn.call(f.context,e,n,o),!0;case 5:return f.fn.call(f.context,e,n,o,i),!0;case 6:return f.fn.call(f.context,e,n,o,i,a),!0}for(c=1,s=new Array(l-1);c<l;c++)s[c-1]=arguments[c];f.fn.apply(f.context,s)}else{var p,h=f.length;for(c=0;c<h;c++)switch(f[c].once&&this.removeListener(t,f[c].fn,void 0,!0),l){case 1:f[c].fn.call(f[c].context);break;case 2:f[c].fn.call(f[c].context,e);break;case 3:f[c].fn.call(f[c].context,e,n);break;case 4:f[c].fn.call(f[c].context,e,n,o);break;default:if(!s)for(p=1,s=new Array(l-1);p<l;p++)s[p-1]=arguments[p];f[c].fn.apply(f[c].context,s)}}return!0},u.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},u.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},u.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return a(this,i),this;var u=this._events[i];if(u.fn)u.fn!==e||o&&!u.once||n&&u.context!==n||a(this,i);else{for(var s=0,c=[],f=u.length;s<f;s++)(u[s].fn!==e||o&&!u[s].once||n&&u[s].context!==n)&&c.push(u[s]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},u.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u}));function Cn(){return new Pn}function kn(t){var e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function Bn(t){return function(){var e=on(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):kn(r)?r.then((function(t){e.resolve({state:"success",msg:t})})).catch((function(t){"cancelled"===jr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})):e.resolve({state:"success",msg:r}),e}}function Ln(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function Un(t){return"[object Array]"===Object.prototype.toString.call(t)}function Fn(t){return"[object Object]"===Object.prototype.toString.call(t)}function Dn(t){if(Fn(t)){for(var e in t)return!1;return!0}return!1}function Mn(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!Dn(t)||(!!function(t){return!(!bn(t)||""!==t)}(t)||!!function(t){return!!Un(t)&&0===t.length}(t))))}function In(t){return!!Un(t)&&(0!==t.length&&(1!==t.length||!Mn(t[0])))}function zn(t,e){if(!wn(t))return"";if(!(En(r=e)&&xn(r)>=0))return"";var r;if(0===(e=xn(e)))return"";var n=t.length-e;return n<0&&(n=0),t.substr(n,e)}function qn(t){if(!nn())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){var e=on(),r=new FileReader;return r.onload=function(){var t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function Hn(t){var e=on();return qn(t).then((function(t){var r=new Uint8Array(t);e.resolve(r)})).catch((function(t){e.reject(t)})),e}function Jn(t){if(Fn(t)){for(var e in t)return!0;return!1}return!1}function Wn(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function Vn(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function $n(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function Gn(t){if(!(Wn(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||Vn(t)||$n(t)))return null;var e;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var Kn=$r(Object.getPrototypeOf,Object),Xn=Function.prototype,Qn=Object.prototype,Yn=Xn.toString,Zn=Qn.hasOwnProperty,to=Yn.call(Object);var eo=function(t){if(!fe(t)||"[object Object]"!=ce(t))return!1;var e=Kn(t);if(null===e)return!0;var r=Zn.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Yn.call(r)==to};var ro=function(t){if(!fe(t))return!1;var e=ce(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!eo(t)};var no=u((function(t,e){var n;t.exports=(n=n||function(t,e){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==a&&a.crypto&&(n=a.crypto),!n)try{n=r.default}catch(t){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),u={},s=u.lib={},c=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=s.WordArray=c.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var u=0;u<o;u+=4)e[n+u>>>2]=r[u>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(o());return new f.init(e,t)}}),l=u.enc={},p=l.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new f.init(r,e/2)}},h=l.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new f.init(r,e)}},d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},v=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,u=i/(4*a),s=(u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0))*a,c=t.min(4*s,i);if(s){for(var l=0;l<s;l+=a)this._doProcessBlock(o,l);r=o.splice(0,s),n.sigBytes-=c}return new f.init(r,c)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=v.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new y.HMAC.init(t,r).finalize(e)}}});var y=u.algo={};return u}(Math),n)})),oo=u((function(t,e){t.exports=no.enc.Utf8})),io=u((function(t,e){var r;t.exports=(r=no,function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,a=0;a<r;a++)if(a%4){var u=n[t.charCodeAt(a-1)]<<a%4*2|n[t.charCodeAt(a)]>>>6-a%4*2;o[i>>>2]|=u<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,u=0;u<4&&i+.75*u<r;u++)o.push(n.charAt(a>>>6*(3-u)&63));var s=n.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(t){var e=t.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var u=t.indexOf(a);-1!==u&&(e=u)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}));function ao(t){if(!wn(t))return new Uint8Array;var e;try{e=function(t){if(!bn(t))return new Uint8Array;for(var e=io.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n),i=0;i<n;i++){var a=r[i>>>2]>>>24-i%4*8&255;o[i]=a}return o}(function(t){if(!wn(t))return"";var e=oo.parse(t);return io.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var uo=function(t){return!0===t||!1===t||fe(t)&&"[object Boolean]"==ce(t)};function so(t){return uo(t)}function co(t,e,r,n,o,i){if(!On(t))return null;if(!Vn(e))return null;if(!En(r))return null;if(!so(n))return null;if(!En(o))return null;if(!En(i))return null;var a,u,s;t=jn(t);var c=8*i-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?i-1:0,d=n?-1:1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),(t+=a+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(t*s-1)*Math.pow(2,o),a+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;e[r+h]=255&a,h+=d,a/=256,c-=8);return e[r+h-d]|=128*v,null}function fo(t){var e=[],r=[];if(!In(t)&&!Jn(t))return null;var n=[],o=[];function i(t){n.push(Gn(t)),o.push(t)}try{var a=function(t){if(!Fn(t))return{results:"",binarys:[]};if(Dn(t))return{results:"",binarys:[]};var e="",r=[];try{var n=-1;e=JSON.stringify(t,(function(t,e){if(Vn(e)){var o="[Uint8Array]::".concat(n+=1);return r.push(e),o}if($n(e)){var i="[Uint16Array]::".concat(n+=1);return r.push(e),i}if(Wn(e)){var a="[ArrayBuffer]::".concat(n+=1);return r.push(e),a}return ro(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);i(ao(a.results)),rn(a.binarys,(function(t){i(t)}));var u=n,s=ao(JSON.stringify(u)),c=new Uint8Array(8);!function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:8;co(t,e,r,n,o,i)}(Gn(s),c),e.push(c),e.push(s),rn(o,(function(t){e.push(t)})),rn(e,(function(t){r=function(t,e){var r=Gn(t),n=Gn(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function lo(t,e,r,n,o){if(!Vn(t))return null;if(!En(e))return null;if(!so(r))return null;if(!En(n))return null;if(!En(o))return null;var i,a,u=8*o-n-1,s=(1<<u)-1,c=s>>1,f=-7,l=r?0:o-1,p=r?1:-1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)}var po=u((function(t,e){var r;t.exports=(r=no,function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}));function ho(t){if(!Vn(t))return"";var e,r;try{r=function(t){return Vn(t)?po.create(t).toString(io):""}(t),e=wn(r)?io.parse(r).toString(oo):""}catch(t){return""}return e}function vo(t){var e=null;if(!Vn(t))return null;try{var r=t.slice(0,8),n=t.slice(8,Gn(t)),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:8;return lo(t,e,r,n,o)}(r),i=n.slice(0,o),a=n.slice(o,Gn(n)),u=ho(i),s=function(t,e){var r=0,n=0,o=[];return rn(e,(function(e){n=r+e;var i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(u));e=function(t){if(!Jn(t))return{};var e=t.results,r=t.binarys;if(!wn(e))return{};if(!Un(r))return{};var n={};try{n=JSON.parse(e,(function(t,e){if(wn(e)){if(e.indexOf("[Uint8Array]::")>=0){var n=xn(e.replace("[Uint8Array]::",""));return r[n]}if(e.indexOf("[Uint16Array]::")>=0){var o=xn(e.replace("[Uint16Array]::",""));return r[o]}if(e.indexOf("[ArrayBuffer]::")>=0){var i=xn(e.replace("[ArrayBuffer]::",""));return r[i]}}return e}))}catch(t){}return n}({results:ho(s.shift()),binarys:s})}catch(t){}return e}return function(t){var e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=Rn(t)?xn(t):32;for(var r=0;r<t;r++)e[r]=Tn[0|Math.random()*Nn];return e.join("")}(),r=new Cn;function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];setTimeout((function(){r.emit.apply(r,[t].concat(n))}),1)}function i(t,e){var r=jr(e,"success",null),n=jr(e,"error",null);if(null!==r){var o=jr(r,"output");t.resolve(o)}else t.reject(n)}return r.execute=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=on();return n("triggerExecute",t,e,(function(t){i(o,t)}),r),o},r.broadcast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=on();return n("triggerBroadcast",t,(function(t){i(r,t)}),e),r},r.deliver=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=on();return n("triggerDeliver",t,(function(t){i(r,t)}),e),r},function(){t.url||(t.url="http://localhost:8080"),t.apiName||(t.apiName="api"),t.timePolling||(t.timePolling=2e3),t.retry||(t.retry=3);var i="";function a(t,e){n("error",{msg:t,err:e})}function u(t,e){return s.apply(this,arguments)}function s(){return(s=o(c.mark((function t(e,r){var n;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("browser"!==e){t.next=6;break}return t.next=3,Hn(r);case 3:n=t.sent,t.next=7;break;case 6:n=new Uint8Array(r);case 7:return t.abrupt("return",n);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function f(e,r){var n,a,s=on(),f=nn()?"browser":"nodejs",l=fo(e);if(n="browser"===f?new Blob([l.buffer]):Buffer.from(l),"browser"===f)a=new FormData;else{if(!Ln(t.FormData))throw console.log("invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");a=new t.FormData({maxDataSize:1073741824})}a.append("bb",n);var p="multipart/form-data";"nodejs"===f&&(p+="; boundary=".concat(a.getBoundary()));var h="blob";return"nodejs"===f&&(h="arraybuffer"),Kt({method:"POST",url:i,data:a,headers:{"Content-Type":p},timeout:3e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:h,onUploadProgress:function(t){var e=0,n=t.loaded,o=t.total;Rn(o)&&(e=100*n/o),Ln(r)&&r(Math.floor(e),n,"upload")},onDownloadProgress:function(t){var e=0,n=t.loaded,o=t.total;Rn(o)&&(e=100*n/o),Ln(r)&&r(Math.floor(e),n,"donwload")}}).then(function(){var t=o(c.mark((function t(e){var r,n,o;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=jr(e,"data"),t.next=3,u(f,r);case 3:n=t.sent,o=vo(n),s.resolve(o);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch(function(){var t=o(c.mark((function t(r){var n,o;return c.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=jr(r,"response.statusText")||jr(r,"message"),o=jr(r,"response.data")||jr(r,"stack"),n)e=n;else if(o)e=o;else{try{r=r.toJSON()}catch(t){}console.log("err",r),e="Can not connect to server."}"Network Error"===e&&(e="".concat(e,". Make sure your space of hard drive is large enough or blocking by browser plugins.")),s.reject(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),s}function l(){return(l=o(c.mark((function e(r,n){var o,i;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn(f)(r,n);case 2:o=e.sent,i=0;case 4:if("error"!==o.state){e.next=14;break}if(!((i+=1)>t.retry)){e.next=8;break}return e.abrupt("break",14);case 8:return console.log("retry n=".concat(i)),e.next=11,Bn(f)(r,n);case 11:o=e.sent,e.next=4;break;case 14:if("success"!==o.state){e.next=18;break}return e.abrupt("return",o.msg);case 18:return e.abrupt("return",Promise.reject(o.msg));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(t,e,r){(function(t,e){return l.apply(this,arguments)})(t,r).then((function(t){e(t)})).catch((function(t){e({error:t})}))}function h(t,r,n,o){p({_mode:o,clientId:e,input:t},r,n)}i="/"===zn(t.url,1)?t.url+t.apiName:t.url+"/"+t.apiName,r.removeAllListeners("triggerExecute"),r.on("triggerExecute",(function(t,r,n,o){p({_mode:"execute",clientId:e,func:t,input:r},n,o)})),r.removeAllListeners("triggerBroadcast"),r.on("triggerBroadcast",(function(t,e,r){h(t,e,r,"broadcast")})),r.removeAllListeners("triggerDeliver"),r.on("triggerDeliver",(function(t,e,r){h(t,e,r,"deliver")})),n("open"),n("openOnce"),setInterval((function(){(function(){var t=on();function r(e){t.resolve(e)}return p({_mode:"polling",clientId:e},r,(function(){})),t})().then((function(t){var e=jr(t,"success.output",null);null!==e&&In(e)&&rn(e,(function(t,e){setTimeout((function(){"broadcast"===jr(t,"mode")?n("broadcast",jr(t,"data")):"deliver"===jr(t,"mode")?n("deliver",jr(t,"data")):a("invalid data.mode in polling",t)}),10*(e+1))}))})).catch((function(t){a("can not polling",t),n("reconn")}))}),t.timePolling)}(),r}}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-converhp-client"]=e()}(this,(function(){"use strict";function t(t,e){return function(){return t.apply(e,arguments)}}const{toString:e}=Object.prototype,{getPrototypeOf:r}=Object,n=(o=Object.create(null),t=>{const r=e.call(t);return o[r]||(o[r]=r.slice(8,-1).toLowerCase())});var o;const i=t=>(t=t.toLowerCase(),e=>n(e)===t),s=t=>e=>typeof e===t,{isArray:a}=Array,c=s("undefined");const u=i("ArrayBuffer");const l=s("string"),f=s("function"),p=s("number"),h=t=>null!==t&&"object"==typeof t,d=t=>{if("object"!==n(t))return!1;const e=r(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},y=i("Date"),g=i("File"),v=i("Blob"),m=i("FileList"),b=i("URLSearchParams");function w(t,e){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=t)if("object"!=typeof t&&(t=[t]),a(t))for(r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else{const n=o?Object.getOwnPropertyNames(t):Object.keys(t),i=n.length;let s;for(r=0;r<i;r++)s=n[r],e.call(null,t[s],s,t)}}function O(t,e){e=e.toLowerCase();const r=Object.keys(t);let n,o=r.length;for(;o-- >0;)if(n=r[o],e===n.toLowerCase())return n;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,A=t=>!c(t)&&t!==j;const _=(E="undefined"!=typeof Uint8Array&&r(Uint8Array),t=>E&&t instanceof E);var E;const S=i("HTMLFormElement"),x=(t=>{let{hasOwnProperty:e}=t;return(t,r)=>e.call(t,r)})(Object.prototype),R=i("RegExp"),T=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};w(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},N="abcdefghijklmnopqrstuvwxyz",P="0123456789",C={DIGIT:P,ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+P};var B={isArray:a,isArrayBuffer:u,isBuffer:function(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&f(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const r="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||e.call(t)===r||f(t.toString)&&t.toString()===r)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer),e},isString:l,isNumber:p,isBoolean:t=>!0===t||!1===t,isObject:h,isPlainObject:d,isUndefined:c,isDate:y,isFile:g,isBlob:v,isRegExp:R,isFunction:f,isStream:t=>h(t)&&f(t.pipe),isURLSearchParams:b,isTypedArray:_,isFileList:m,forEach:w,merge:function t(){const{caseless:e}=A(this)&&this||{},r={},n=(n,o)=>{const i=e&&O(r,o)||o;d(r[i])&&d(n)?r[i]=t(r[i],n):d(n)?r[i]=t({},n):a(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&w(arguments[t],n);return r},extend:function(e,r,n){let{allOwnKeys:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return w(r,((r,o)=>{n&&f(r)?e[o]=t(r,n):e[o]=r}),{allOwnKeys:o}),e},trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,n,o)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],o&&!o(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:n,kindOfTest:i,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(a(t))return t;let e=t.length;if(!p(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:S,hasOwnProperty:x,hasOwnProp:x,reduceDescriptors:T,freezeMethods:t=>{T(t,((e,r)=>{if(f(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];f(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return a(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:O,global:j,isContextDefined:A,ALPHABET:C,generateString:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C.ALPHA_DIGIT,r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&f(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(h(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=a(t)?[]:{};return w(t,((t,e)=>{const i=r(t,n+1);!c(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)}};function U(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}B.inherits(U,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:B.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F=U.prototype,L={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{L[t]={value:t}})),Object.defineProperties(U,L),Object.defineProperty(F,"isAxiosError",{value:!0}),U.from=(t,e,r,n,o,i)=>{const s=Object.create(F);return B.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),U.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};function D(t){return B.isPlainObject(t)||B.isArray(t)}function k(t){return B.endsWith(t,"[]")?t.slice(0,-2):t}function M(t,e,r){return t?t.concat(e).map((function(t,e){return t=k(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const I=B.toFlatObject(B,{},null,(function(t){return/^is[A-Z]/.test(t)}));function z(t,e,r){if(!B.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const n=(r=B.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!B.isUndefined(e[t])}))).metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&B.isSpecCompliantForm(e);if(!B.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(B.isDate(t))return t.toISOString();if(!a&&B.isBlob(t))throw new U("Blob is not supported. Use a Buffer instead.");return B.isArrayBuffer(t)||B.isTypedArray(t)?a&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function u(t,r,o){let a=t;if(t&&!o&&"object"==typeof t)if(B.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(B.isArray(t)&&function(t){return B.isArray(t)&&!t.some(D)}(t)||(B.isFileList(t)||B.endsWith(r,"[]"))&&(a=B.toArray(t)))return r=k(r),a.forEach((function(t,n){!B.isUndefined(t)&&null!==t&&e.append(!0===s?M([r],n,i):null===s?r:r+"[]",c(t))})),!1;return!!D(t)||(e.append(M(o,r,i),c(t)),!1)}const l=[],f=Object.assign(I,{defaultVisitor:u,convertValue:c,isVisitable:D});if(!B.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!B.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),B.forEach(r,(function(r,i){!0===(!(B.isUndefined(r)||null===r)&&o.call(e,r,B.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e}function q(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function H(t,e){this._pairs=[],t&&z(t,this,e)}const $=H.prototype;function J(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function W(t,e,r){if(!e)return t;const n=r&&r.encode||J,o=r&&r.serialize;let i;if(i=o?o(e,r):B.isURLSearchParams(e)?e.toString():new H(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}$.append=function(t,e){this._pairs.push([t,e])},$.toString=function(t){const e=t?function(e){return t.call(this,e,q)}:q;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var V=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){B.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},K={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var G={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:H,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function X(t){function e(t,r,n,o){let i=t[o++];const s=Number.isFinite(+i),a=o>=t.length;if(i=!i&&B.isArray(n)?n.length:i,a)return B.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!s;n[i]&&B.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&B.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}(n[i])),!s}if(B.isFormData(t)&&B.isFunction(t.entries)){const r={};return B.forEachEntry(t,((t,n)=>{e(function(t){return B.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null}const Q={"Content-Type":void 0};const Z={transitional:K,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=B.isObject(t);o&&B.isHTMLForm(t)&&(t=new FormData(t));if(B.isFormData(t))return n&&n?JSON.stringify(X(t)):t;if(B.isArrayBuffer(t)||B.isBuffer(t)||B.isStream(t)||B.isFile(t)||B.isBlob(t))return t;if(B.isArrayBufferView(t))return t.buffer;if(B.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return z(t,new G.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return G.isNode&&B.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=B.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return z(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(B.isString(t))try{return(e||JSON.parse)(t),B.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Z.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&B.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw U.from(t,U.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G.classes.FormData,Blob:G.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};B.forEach(["delete","get","head"],(function(t){Z.headers[t]={}})),B.forEach(["post","put","patch"],(function(t){Z.headers[t]=B.merge(Q)}));var Y=Z;const tt=B.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const et=Symbol("internals");function rt(t){return t&&String(t).trim().toLowerCase()}function nt(t){return!1===t||null==t?t:B.isArray(t)?t.map(nt):String(t)}function ot(t,e,r,n,o){return B.isFunction(n)?n.call(this,e,r):(o&&(e=r),B.isString(e)?B.isString(n)?-1!==e.indexOf(n):B.isRegExp(n)?n.test(e):void 0:void 0)}class it{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=rt(e);if(!o)throw new Error("header name must be a non-empty string");const i=B.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=nt(t))}const i=(t,e)=>B.forEach(t,((t,r)=>o(t,r,e)));return B.isPlainObject(t)||t instanceof this.constructor?i(t,e):B.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&tt[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=rt(t)){const r=B.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(B.isFunction(e))return e.call(this,t,r);if(B.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=rt(t)){const r=B.findKey(this,t);return!(!r||void 0===this[r]||e&&!ot(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=rt(t)){const o=B.findKey(r,t);!o||e&&!ot(0,r[o],o,e)||(delete r[o],n=!0)}}return B.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!ot(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return B.forEach(this,((n,o)=>{const i=B.findKey(r,o);if(i)return e[i]=nt(n),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();s!==o&&delete e[o],e[s]=nt(n),r[s]=!0})),this}concat(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return this.constructor.concat(this,...e)}toJSON(t){const e=Object.create(null);return B.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&B.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((t=>{let[e,r]=t;return e+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t){const e=new this(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((t=>e.set(t))),e}static accessor(t){const e=(this[et]=this[et]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=rt(t);e[n]||(!function(t,e){const r=B.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return B.isArray(t)?t.forEach(n):n(t),this}}it.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),B.freezeMethods(it.prototype),B.freezeMethods(it);var st=it;function at(t,e){const r=this||Y,n=e||r,o=st.from(n.headers);let i=n.data;return B.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function ct(t){return!(!t||!t.__CANCEL__)}function ut(t,e,r){U.call(this,null==t?"canceled":t,U.ERR_CANCELED,e,r),this.name="CanceledError"}B.inherits(ut,U,{__CANCEL__:!0});var lt=G.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),B.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),B.isString(n)&&s.push("path="+n),B.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ft(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var pt=G.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=B.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};function ht(t,e){let r=0;const n=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),u=n[s];o||(o=c),r[i]=a,n[i]=c;let l=s,f=0;for(;l!==i;)f+=r[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const p=u&&c-u;return p?Math.round(1e3*f/p):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a);r=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};u[e?"download":"upload"]=!0,t(u)}}const dt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=st.from(t.headers).normalize(),i=t.responseType;let s;function a(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}B.isFormData(n)&&(G.isStandardBrowserEnv||G.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const u=ft(t.baseURL,t.url);function l(){if(!c)return;const n=st.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new U("Request failed with status code "+r.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),a()}),(function(t){r(t),a()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),W(u,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(r(new U("Request aborted",U.ECONNABORTED,t,c)),c=null)},c.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||K;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new U(e,n.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,t,c)),c=null},G.isStandardBrowserEnv){const e=(t.withCredentials||pt(u))&&t.xsrfCookieName&<.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&B.forEach(o.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),B.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",ht(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ht(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(r(!e||e.type?new ut(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(u);f&&-1===G.protocols.indexOf(f)?r(new U("Unsupported protocol "+f+":",U.ERR_BAD_REQUEST,t)):c.send(n||null)}))}};B.forEach(dt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var yt=t=>{t=B.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;o<e&&(r=t[o],!(n=B.isString(r)?dt[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new U(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(B.hasOwnProp(dt,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!B.isFunction(n))throw new TypeError("adapter is not a function");return n};function gt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ut(null,t)}function vt(t){gt(t),t.headers=st.from(t.headers),t.data=at.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return yt(t.adapter||Y.adapter)(t).then((function(e){return gt(t),e.data=at.call(t,t.transformResponse,e),e.headers=st.from(e.headers),e}),(function(e){return ct(e)||(gt(t),e&&e.response&&(e.response.data=at.call(t,t.transformResponse,e.response),e.response.headers=st.from(e.response.headers))),Promise.reject(e)}))}const mt=t=>t instanceof st?t.toJSON():t;function bt(t,e){e=e||{};const r={};function n(t,e,r){return B.isPlainObject(t)&&B.isPlainObject(e)?B.merge.call({caseless:r},t,e):B.isPlainObject(e)?B.merge({},e):B.isArray(e)?e.slice():e}function o(t,e,r){return B.isUndefined(e)?B.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!B.isUndefined(e))return n(void 0,e)}function s(t,e){return B.isUndefined(e)?B.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>o(mt(t),mt(e),!0)};return B.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){const i=c[n]||o,s=i(t[n],e[n],n);B.isUndefined(s)&&i!==a||(r[n]=s)})),r}const wt="1.3.4",Ot={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ot[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const jt={};Ot.transitional=function(t,e,r){function n(t,e){return"[Axios v1.3.4] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new U(n(o," has been removed"+(e?" in "+e:"")),U.ERR_DEPRECATED);return e&&!jt[o]&&(jt[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var At={assertOptions:function(t,e,r){if("object"!=typeof t)throw new U("options must be an object",U.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const e=t[i],r=void 0===e||s(e,i,t);if(!0!==r)throw new U("option "+i+" must be "+r,U.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new U("Unknown option "+i,U.ERR_BAD_OPTION)}},validators:Ot};const _t=At.validators;class Et{constructor(t){this.defaults=t,this.interceptors={request:new V,response:new V}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=bt(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;let i;void 0!==r&&At.assertOptions(r,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),void 0!==n&&At.assertOptions(n,{encode:_t.function,serialize:_t.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&B.merge(o.common,o[e.method]),i&&B.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=st.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!a){const t=[vt.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f<l;)u=u.then(t[f++],t[f++]);return u}l=s.length;let p=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{p=t(p)}catch(t){e.call(this,t);break}}try{u=vt.call(this,p)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(t){return W(ft((t=bt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}B.forEach(["delete","get","head","options"],(function(t){Et.prototype[t]=function(e,r){return this.request(bt(r||{},{method:t,url:e,data:(r||{}).data}))}})),B.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(bt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Et.prototype[t]=e(),Et.prototype[t+"Form"]=e(!0)}));var St=Et;class xt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then((t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new ut(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new xt((function(e){t=e})),cancel:t}}}var Rt=xt;const Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach((t=>{let[e,r]=t;Tt[r]=e}));var Nt=Tt;const Pt=function e(r){const n=new St(r),o=t(St.prototype.request,n);return B.extend(o,St.prototype,n,{allOwnKeys:!0}),B.extend(o,n,null,{allOwnKeys:!0}),o.create=function(t){return e(bt(r,t))},o}(Y);Pt.Axios=St,Pt.CanceledError=ut,Pt.CancelToken=Rt,Pt.isCancel=ct,Pt.VERSION=wt,Pt.toFormData=z,Pt.AxiosError=U,Pt.Cancel=Pt.CanceledError,Pt.all=function(t){return Promise.all(t)},Pt.spread=function(t){return function(e){return t.apply(null,e)}},Pt.isAxiosError=function(t){return B.isObject(t)&&!0===t.isAxiosError},Pt.mergeConfig=bt,Pt.AxiosHeaders=st,Pt.formToJSON=t=>X(B.isHTMLForm(t)?new FormData(t):t),Pt.HttpStatusCode=Nt,Pt.default=Pt;var Ct=Pt,Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ut(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ft=Array.isArray,Lt="object"==typeof Bt&&Bt&&Bt.Object===Object&&Bt,Dt=Lt,kt="object"==typeof self&&self&&self.Object===Object&&self,Mt=Dt||kt||Function("return this")(),It=Mt.Symbol,zt=It,qt=Object.prototype,Ht=qt.hasOwnProperty,$t=qt.toString,Jt=zt?zt.toStringTag:void 0;var Wt=function(t){var e=Ht.call(t,Jt),r=t[Jt];try{t[Jt]=void 0;var n=!0}catch(t){}var o=$t.call(t);return n&&(e?t[Jt]=r:delete t[Jt]),o},Vt=Object.prototype.toString;var Kt=Wt,Gt=function(t){return Vt.call(t)},Xt=It?It.toStringTag:void 0;var Qt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Xt&&Xt in Object(t)?Kt(t):Gt(t)};var Zt=function(t){return null!=t&&"object"==typeof t},Yt=Qt,te=Zt;var ee=function(t){return"symbol"==typeof t||te(t)&&"[object Symbol]"==Yt(t)},re=Ft,ne=ee,oe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ie=/^\w*$/;var se=function(t,e){if(re(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!ne(t))||(ie.test(t)||!oe.test(t)||null!=e&&t in Object(e))};var ae=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ce=Qt,ue=ae;var le,fe=function(t){if(!ue(t))return!1;var e=ce(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},pe=Mt["__core-js_shared__"],he=(le=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var de=function(t){return!!he&&he in t},ye=Function.prototype.toString;var ge=fe,ve=de,me=ae,be=function(t){if(null!=t){try{return ye.call(t)}catch(t){}try{return t+""}catch(t){}}return""},we=/^\[object .+?Constructor\]$/,Oe=Function.prototype,je=Object.prototype,Ae=Oe.toString,_e=je.hasOwnProperty,Ee=RegExp("^"+Ae.call(_e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Se=function(t){return!(!me(t)||ve(t))&&(ge(t)?Ee:we).test(be(t))},xe=function(t,e){return null==t?void 0:t[e]};var Re=function(t,e){var r=xe(t,e);return Se(r)?r:void 0},Te=Re(Object,"create"),Ne=Te;var Pe=function(){this.__data__=Ne?Ne(null):{},this.size=0};var Ce=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Be=Te,Ue=Object.prototype.hasOwnProperty;var Fe=function(t){var e=this.__data__;if(Be){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Ue.call(e,t)?e[t]:void 0},Le=Te,De=Object.prototype.hasOwnProperty;var ke=Te;var Me=Pe,Ie=Ce,ze=Fe,qe=function(t){var e=this.__data__;return Le?void 0!==e[t]:De.call(e,t)},He=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ke&&void 0===e?"__lodash_hash_undefined__":e,this};function $e(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$e.prototype.clear=Me,$e.prototype.delete=Ie,$e.prototype.get=ze,$e.prototype.has=qe,$e.prototype.set=He;var Je=$e;var We=function(){this.__data__=[],this.size=0};var Ve=function(t,e){return t===e||t!=t&&e!=e};var Ke=function(t,e){for(var r=t.length;r--;)if(Ve(t[r][0],e))return r;return-1},Ge=Ke,Xe=Array.prototype.splice;var Qe=Ke;var Ze=Ke;var Ye=Ke;var tr=We,er=function(t){var e=this.__data__,r=Ge(e,t);return!(r<0)&&(r==e.length-1?e.pop():Xe.call(e,r,1),--this.size,!0)},rr=function(t){var e=this.__data__,r=Qe(e,t);return r<0?void 0:e[r][1]},nr=function(t){return Ze(this.__data__,t)>-1},or=function(t,e){var r=this.__data__,n=Ye(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ir(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ir.prototype.clear=tr,ir.prototype.delete=er,ir.prototype.get=rr,ir.prototype.has=nr,ir.prototype.set=or;var sr=ir,ar=Re(Mt,"Map"),cr=Je,ur=sr,lr=ar;var fr=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var pr=function(t,e){var r=t.__data__;return fr(e)?r["string"==typeof e?"string":"hash"]:r.map},hr=pr;var dr=pr;var yr=pr;var gr=pr;var vr=function(){this.size=0,this.__data__={hash:new cr,map:new(lr||ur),string:new cr}},mr=function(t){var e=hr(this,t).delete(t);return this.size-=e?1:0,e},br=function(t){return dr(this,t).get(t)},wr=function(t){return yr(this,t).has(t)},Or=function(t,e){var r=gr(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function jr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}jr.prototype.clear=vr,jr.prototype.delete=mr,jr.prototype.get=br,jr.prototype.has=wr,jr.prototype.set=Or;var Ar=jr;function _r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(_r.Cache||Ar),r}_r.Cache=Ar;var Er=_r;var Sr=function(t){var e=Er(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e},xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rr=/\\(\\)?/g,Tr=Sr((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(xr,(function(t,r,n,o){e.push(n?o.replace(Rr,"$1"):r||t)})),e}));var Nr=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o},Pr=Ft,Cr=ee,Br=It?It.prototype:void 0,Ur=Br?Br.toString:void 0;var Fr=function t(e){if("string"==typeof e)return e;if(Pr(e))return Nr(e,t)+"";if(Cr(e))return Ur?Ur.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},Lr=Fr;var Dr=function(t){return null==t?"":Lr(t)},kr=Ft,Mr=se,Ir=Tr,zr=Dr;var qr=ee;var Hr=function(t,e){return kr(t)?t:Mr(t,e)?[t]:Ir(zr(t))},$r=function(t){if("string"==typeof t||qr(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var Jr=function(t,e){for(var r=0,n=(e=Hr(e,t)).length;null!=t&&r<n;)t=t[$r(e[r++])];return r&&r==n?t:void 0};var Wr=function(t,e,r){var n=null==t?void 0:Jr(t,e);return void 0===n?r:n},Vr={},Kr={get exports(){return Vr},set exports(t){Vr=t}};var Gr=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var Xr=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var c=s[t?a:++o];if(!1===r(i[c],c,i))break}return e}}();var Qr=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Zr=Qt,Yr=Zt;var tn=function(t){return Yr(t)&&"[object Arguments]"==Zr(t)},en=Zt,rn=Object.prototype,nn=rn.hasOwnProperty,on=rn.propertyIsEnumerable,sn=tn(function(){return arguments}())?tn:function(t){return en(t)&&nn.call(t,"callee")&&!on.call(t,"callee")},an=sn,cn={};var un=function(){return!1};!function(t,e){var r=Mt,n=un,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?r.Buffer:void 0,a=(s?s.isBuffer:void 0)||n;t.exports=a}({get exports(){return cn},set exports(t){cn=t}},cn);var ln=/^(?:0|[1-9]\d*)$/;var fn=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&ln.test(t))&&t>-1&&t%1==0&&t<e};var pn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},hn=Qt,dn=pn,yn=Zt,gn={};gn["[object Float32Array]"]=gn["[object Float64Array]"]=gn["[object Int8Array]"]=gn["[object Int16Array]"]=gn["[object Int32Array]"]=gn["[object Uint8Array]"]=gn["[object Uint8ClampedArray]"]=gn["[object Uint16Array]"]=gn["[object Uint32Array]"]=!0,gn["[object Arguments]"]=gn["[object Array]"]=gn["[object ArrayBuffer]"]=gn["[object Boolean]"]=gn["[object DataView]"]=gn["[object Date]"]=gn["[object Error]"]=gn["[object Function]"]=gn["[object Map]"]=gn["[object Number]"]=gn["[object Object]"]=gn["[object RegExp]"]=gn["[object Set]"]=gn["[object String]"]=gn["[object WeakMap]"]=!1;var vn=function(t){return yn(t)&&dn(t.length)&&!!gn[hn(t)]};var mn=function(t){return function(e){return t(e)}},bn={};!function(t,e){var r=Lt,n=e&&!e.nodeType&&e,o=n&&t&&!t.nodeType&&t,i=o&&o.exports===n&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=s}({get exports(){return bn},set exports(t){bn=t}},bn);var wn=vn,On=mn,jn=bn&&bn.isTypedArray,An=jn?On(jn):wn,_n=Qr,En=an,Sn=Ft,xn=cn,Rn=fn,Tn=An,Nn=Object.prototype.hasOwnProperty;var Pn=function(t,e){var r=Sn(t),n=!r&&En(t),o=!r&&!n&&xn(t),i=!r&&!n&&!o&&Tn(t),s=r||n||o||i,a=s?_n(t.length,String):[],c=a.length;for(var u in t)!e&&!Nn.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Rn(u,c))||a.push(u);return a},Cn=Object.prototype;var Bn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Cn)};var Un=function(t,e){return function(r){return t(e(r))}},Fn=Un(Object.keys,Object),Ln=Bn,Dn=Fn,kn=Object.prototype.hasOwnProperty;var Mn=fe,In=pn;var zn=function(t){return null!=t&&In(t.length)&&!Mn(t)},qn=Pn,Hn=function(t){if(!Ln(t))return Dn(t);var e=[];for(var r in Object(t))kn.call(t,r)&&"constructor"!=r&&e.push(r);return e},$n=zn;var Jn=Xr,Wn=function(t){return $n(t)?qn(t):Hn(t)};var Vn=zn;var Kn=function(t,e){return function(r,n){if(null==r)return r;if(!Vn(r))return t(r,n);for(var o=r.length,i=e?o:-1,s=Object(r);(e?i--:++i<o)&&!1!==n(s[i],i,s););return r}}((function(t,e){return t&&Jn(t,e,Wn)}));var Gn=function(t){return t};var Xn=Gr,Qn=Kn,Zn=function(t){return"function"==typeof t?t:Gn},Yn=Ft;var to=function(t,e){return(Yn(t)?Xn:Qn)(t,Zn(e))};!function(t){t.exports=to}(Kr);var eo=Ut(Vr);function ro(){return"undefined"!=typeof window&&void 0!==window.document}function no(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}var oo=/\s/;var io=function(t){for(var e=t.length;e--&&oo.test(t.charAt(e)););return e},so=/^\s+/;var ao=function(t){return t?t.slice(0,io(t)+1).replace(so,""):t},co=ae,uo=ee,lo=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,po=/^0o[0-7]+$/i,ho=parseInt;var yo=function(t){if("number"==typeof t)return t;if(uo(t))return NaN;if(co(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=co(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ao(t);var r=fo.test(t);return r||po.test(t)?ho(t.slice(2),r?2:8):lo.test(t)?NaN:+t},go=yo,vo=1/0;var mo=function(t){return t?(t=go(t))===vo||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},bo=mo;var wo=function(t){var e=bo(t),r=e%1;return e==e?r?e-r:e:0},Oo=wo;var jo=function(t){return"number"==typeof t&&t==Oo(t)};function Ao(t){return"[object String]"===Object.prototype.toString.call(t)}function _o(t){return!(!Ao(t)||""===t)}function Eo(t){let e=!1;return _o(t)?e=!isNaN(Number(t)):function(t){return"[object Number]"===Object.prototype.toString.call(t)}(t)&&(e=!0),e}function So(t){if(!Eo(t))return 0;return mo(t)}function xo(t){return!!Eo(t)&&(t=So(t),jo(t))}var Ro=wo,To=yo,No=Dr,Po=Mt.isFinite,Co=Math.min;var Bo=function(t){var e=Math[t];return function(t,r){if(t=To(t),(r=null==r?0:Co(Ro(r),292))&&Po(t)){var n=(No(t)+"e").split("e"),o=e(n[0]+"e"+(+n[1]+r));return+((n=(No(o)+"e").split("e"))[0]+"e"+(+n[1]-r))}return e(t)}}("round");function Uo(t){if(!Eo(t))return 0;t=So(t);let e=Bo(t);return"0"===String(e)?0:e}function Fo(t){if(!xo(t))return!1;return Uo(t)>0}let Lo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Do=Lo.length;var ko={};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,s),c=r?r+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],a]:t._events[c].push(a):(t._events[c]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,s){var a=r?r+t:t;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,o),!0;case 5:return l.fn.call(l.context,e,n,o,i),!0;case 6:return l.fn.call(l.context,e,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var p,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,n);break;case 4:l[u].fn.call(l[u].context,e,n,o);break;default:if(!c)for(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==e||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a}({get exports(){return ko},set exports(t){ko=t}});var Mo=ko;function Io(){return new Mo}function zo(t){return function(){let e=no(),r=null,n=null;try{r=t.apply(this,arguments)}catch(t){n=t}return null!==n?e.resolve({state:"error",msg:n}):!function(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}(r)?e.resolve({state:"success",msg:r}):r.then((function(t){e.resolve({state:"success",msg:t})})).catch((function(t){"cancelled"===Wr(t,"reason")?e.resolve({state:"cancelled",msg:""}):e.resolve({state:"error",msg:t})})),e}}function qo(t){let e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e}function Ho(t){return"[object Array]"===Object.prototype.toString.call(t)}function $o(t){return"[object Object]"===Object.prototype.toString.call(t)}function Jo(t){if($o(t)){for(let e in t)return!1;return!0}return!1}function Wo(t){return!!function(t){return"[object Undefined]"===Object.prototype.toString.call(t)}(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!Jo(t)||(!!function(t){return!(!Ao(t)||""!==t)}(t)||!!function(t){return!!Ho(t)&&0===t.length}(t))))}function Vo(t){return!!Ho(t)&&(0!==t.length&&(1!==t.length||!Wo(t[0])))}function Ko(t,e){if(!_o(t))return"";if(!(xo(r=e)&&Uo(r)>=0))return"";var r;if(0===(e=Uo(e)))return"";let n=t.length-e;return n<0&&(n=0),t.substr(n,e)}function Go(t){if(!ro())return Promise.reject("no window");try{return function(t){return t.arrayBuffer()}(t)}catch(e){return function(t){let e=no(),r=new FileReader;return r.onload=function(){let t=r.result;e.resolve(t)},r.onerror=function(t){e.reject(t)},r.readAsArrayBuffer(t),e}(t)}}function Xo(t){if($o(t)){for(let e in t)return!0;return!1}return!1}function Qo(t){return"[object ArrayBuffer]"===Object.prototype.toString.call(t)}function Zo(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}function Yo(t){return"[object Uint16Array]"===Object.prototype.toString.call(t)}function ti(t){if(!(Qo(t)||(e=t,"[object Blob]"===Object.prototype.toString.call(e))||Zo(t)||Yo(t)))return null;var e;try{if(t.byteLength)return t.byteLength}catch(t){}try{if(t.length)return t.length}catch(t){}try{if(t.size)return t.size}catch(t){}return null}var ei=Un(Object.getPrototypeOf,Object),ri=Qt,ni=ei,oi=Zt,ii=Function.prototype,si=Object.prototype,ai=ii.toString,ci=si.hasOwnProperty,ui=ai.call(Object);var li=Qt,fi=Zt,pi=function(t){if(!oi(t)||"[object Object]"!=ri(t))return!1;var e=ni(t);if(null===e)return!0;var r=ci.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&ai.call(r)==ui};var hi=function(t){if(!fi(t))return!1;var e=li(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!pi(t)};var di={};var yi,gi={},vi={get exports(){return gi},set exports(t){gi=t}};function mi(){return yi||(yi=1,function(t,e){var r;t.exports=(r=r||function(t,e){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==Bt&&Bt.crypto&&(r=Bt.crypto),!r)try{r=require("crypto")}catch(t){}var n=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i={},s=i.lib={},a=s.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=a.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)e[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new c.init(e,t)}}),u=i.enc={},l=u.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new c.init(r,e/2)}},f=u.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new c.init(r,e)}},p=u.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},h=s.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,l=t.min(4*u,i);if(u){for(var f=0;f<u;f+=s)this._doProcessBlock(o,f);r=o.splice(0,u),n.sigBytes-=l}return new c.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});s.Hasher=h.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new d.HMAC.init(t,r).finalize(e)}}});var d=i.algo={};return i}(Math),r)}(vi)),gi}!function(t,e){t.exports=mi().enc.Utf8}({get exports(){return di},set exports(t){di=t}});var bi=di,wi={};!function(t,e){var r;t.exports=(r=mi(),function(){var t=r,e=t.lib.WordArray;function n(t,r,n){for(var o=[],i=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2|n[t.charCodeAt(s)]>>>6-s%4*2;o[i>>>2]|=a<<24-i%4*8,i++}return e.create(o,i)}t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(e[i>>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t){var e=t.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var s=r.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(e=a)}return n(t,e,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)}({get exports(){return wi},set exports(t){wi=t}});var Oi=wi;function ji(t){if(!_o(t))return new Uint8Array;let e;try{e=function(t){if(!Ao(t))return new Uint8Array;let e=Oi.parse(t),r=e.words,n=e.sigBytes,o=new Uint8Array(n);for(let t=0;t<n;t++){let e=r[t>>>2]>>>24-t%4*8&255;o[t]=e}return o}(function(t){if(!_o(t))return"";let e=bi.parse(t);return Oi.stringify(e)}(t))}catch(t){return new Uint8Array}return e}var Ai=Qt,_i=Zt;var Ei=function(t){return!0===t||!1===t||_i(t)&&"[object Boolean]"==Ai(t)};function Si(t){return Ei(t)}function xi(t,e){return function(t,e,r,n,o,i){if(!Eo(t))return null;if(!Zo(e))return null;if(!xo(r))return null;if(!Si(n))return null;if(!xo(o))return null;if(!xo(i))return null;let s,a,c;t=So(t);let u=8*i-o-1,l=(1<<u)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?i-1:0,d=n?-1:1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[r+h]=255&s,h+=d,s/=256,u-=8);return e[r+h-d]|=128*y,null}(t,e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function Ri(t){let e=[],r=[];if(!Vo(t)&&!Xo(t))return null;let n=[],o=[];function i(t){n.push(ti(t)),o.push(t)}try{let s=function(t){if(!$o(t))return{results:"",binarys:[]};if(Jo(t))return{results:"",binarys:[]};let e="",r=[];try{let n=-1;e=JSON.stringify(t,(function(t,e){if(Zo(e)){n+=1;let t=`[Uint8Array]::${n}`;return r.push(e),t}if(Yo(e)){n+=1;let t=`[Uint16Array]::${n}`;return r.push(e),t}if(Qo(e)){n+=1;let t=`[ArrayBuffer]::${n}`;return r.push(e),t}return hi(e)&&(e=e.toString()),e}))}catch(t){}return{results:e,binarys:r}}(t);i(ji(s.results)),eo(s.binarys,(t=>{i(t)}));let a=n,c=ji(JSON.stringify(a)),u=new Uint8Array(8);xi(ti(c),u),e.push(u),e.push(c),eo(o,(t=>{e.push(t)})),eo(e,(t=>{r=function(t,e){let r=ti(t),n=ti(e),o=new Uint8Array(r+n);return o.set(new Uint8Array(t),0),o.set(new Uint8Array(e),r),o}(r,t)}))}catch(t){return null}return r}function Ti(t){return function(t,e,r,n,o){if(!Zo(t))return null;if(!xo(e))return null;if(!Si(r))return null;if(!xo(n))return null;if(!xo(o))return null;let i,s,a=8*o-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?0:o-1,p=r?1:-1,h=t[e+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=a;l>0;i=256*i+t[e+f],f+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}var Ni={};!function(t,e){var r;t.exports=(r=mi(),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init,n=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=t[o]<<24-o%4*8;e.call(this,n,r)}else e.apply(this,arguments)};n.prototype=t}}(),r.lib.WordArray)}({get exports(){return Ni},set exports(t){Ni=t}});var Pi=Ni;function Ci(t){if(!Zo(t))return"";let e;try{r=function(t){return Zo(t)?Pi.create(t).toString(Oi):""}(t),e=_o(r)?Oi.parse(r).toString(bi):""}catch(t){return""}var r;return e}function Bi(t){let e=null;if(!Zo(t))return null;try{let r=8,n=t.slice(0,r),o=t.slice(r,ti(t)),i=Ti(n),s=o.slice(0,i),a=o.slice(i,ti(o)),c=Ci(s),u=function(t,e){let r=0,n=0,o=[];return eo(e,(e=>{n=r+e;let i=t.slice(r,n);r=n,o.push(i)})),o}(a,JSON.parse(c));e=function(t){if(!Xo(t))return{};let{results:e,binarys:r}=t;if(!_o(e))return{};if(!Ho(r))return{};let n={};try{n=JSON.parse(e,(function(t,e){if(_o(e)){if(e.indexOf("[Uint8Array]::")>=0){let t=Uo(e.replace("[Uint8Array]::",""));return r[t]}if(e.indexOf("[Uint16Array]::")>=0){let t=Uo(e.replace("[Uint16Array]::",""));return r[t]}if(e.indexOf("[ArrayBuffer]::")>=0){let t=Uo(e.replace("[ArrayBuffer]::",""));return r[t]}}return e}))}catch(t){}return n}({results:Ci(u.shift()),binarys:u})}catch(t){}return e}return function(t){let e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=[];t=Fo(t)?Uo(t):32;for(let r=0;r<t;r++)e[r]=Lo[0|Math.random()*Do];return e.join("")}(),r=new Io;function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];setTimeout((()=>{r.emit(t,...n)}),1)}function o(t,e){let r=Wr(e,"success",null),n=Wr(e,"error",null);if(null!==r){let e=Wr(r,"output");t.resolve(e)}else t.reject(n)}return r.execute=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=no();return n("triggerExecute",t,e,(function(t){o(i,t)}),r),i},r.broadcast=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=no();return n("triggerBroadcast",t,(function(t){o(r,t)}),e),r},r.deliver=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},r=no();return n("triggerDeliver",t,(function(t){o(r,t)}),e),r},function(){t.url||(t.url="http://localhost:8080"),t.apiName||(t.apiName="api"),t.timePolling||(t.timePolling=2e3),t.retry||(t.retry=3);let o="";function i(t,e){n("error",{msg:t,err:e})}async function s(t,e){let r;return r="browser"===t?await function(t){let e=no();return Go(t).then((t=>{let r=new Uint8Array(t);e.resolve(r)})).catch((t=>{e.reject(t)})),e}(e):new Uint8Array(e),r}function a(e,r){let n,i,a=no(),c=ro()?"browser":"nodejs",u=Ri(e);if(n="browser"===c?new Blob([u.buffer]):Buffer.from(u),"browser"===c)i=new FormData;else{if(!qo(t.FormData))throw console.log("invalid opt.FormData, need [npm i form-data] and [import FormData from 'form-data'] to set opt.FormData = FormData"),new Error("invalid opt.FormData");i=new t.FormData({maxDataSize:1073741824})}i.append("bb",n);let l="multipart/form-data";"nodejs"===c&&(l+=`; boundary=${i.getBoundary()}`);let f="blob";return"nodejs"===c&&(f="arraybuffer"),Ct({method:"POST",url:o,data:i,headers:{"Content-Type":l},timeout:3e5,maxContentLength:1/0,maxBodyLength:1/0,responseType:f,onUploadProgress:function(t){let e=0,n=t.loaded,o=t.total;Fo(o)&&(e=100*n/o),qo(r)&&r(Math.floor(e),n,"upload")},onDownloadProgress:function(t){let e=0,n=t.loaded,o=t.total;Fo(o)&&(e=100*n/o),qo(r)&&r(Math.floor(e),n,"donwload")}}).then((async t=>{let e=Wr(t,"data"),r=Bi(await s(c,e));a.resolve(r)})).catch((async t=>{let r=Wr(t,"response.statusText")||Wr(t,"message"),n=Wr(t,"response.data")||Wr(t,"stack");if(r)e=r;else if(n)e=n;else{try{t=t.toJSON()}catch(n){}console.log("err",t),e="Can not connect to server."}"Network Error"===e&&(e=`${e}. Make sure your space of hard drive is large enough or blocking by browser plugins.`),a.reject(e)})),a}function c(e,r,n){(async function(e,r){let n=await zo(a)(e,r),o=0;for(;"error"===n.state&&(o+=1,!(o>t.retry));)console.log(`retry n=${o}`),n=await zo(a)(e,r);return"success"===n.state?n.msg:Promise.reject(n.msg)})(e,n).then((t=>{r(t)})).catch((t=>{r({error:t})}))}function u(t,r,n,o){c({_mode:o,clientId:e,input:t},r,n)}o="/"===Ko(t.url,1)?t.url+t.apiName:t.url+"/"+t.apiName,r.removeAllListeners("triggerExecute"),r.on("triggerExecute",(function(t,r,n,o){c({_mode:"execute",clientId:e,func:t,input:r},n,o)})),r.removeAllListeners("triggerBroadcast"),r.on("triggerBroadcast",(function(t,e,r){u(t,e,r,"broadcast")})),r.removeAllListeners("triggerDeliver"),r.on("triggerDeliver",(function(t,e,r){u(t,e,r,"deliver")})),n("open"),n("openOnce"),setInterval((()=>{(function(){let t=no();function r(e){t.resolve(e)}return c({_mode:"polling",clientId:e},r,(()=>{})),t})().then((t=>{let e=Wr(t,"success.output",null);null!==e&&Vo(e)&&eo(e,((t,e)=>{setTimeout((()=>{"broadcast"===Wr(t,"mode")?n("broadcast",Wr(t,"data")):"deliver"===Wr(t,"mode")?n("deliver",Wr(t,"data")):i("invalid data.mode in polling",t)}),10*(e+1))}))})).catch((t=>{i("can not polling",t),n("reconn")}))}),t.timePolling)}(),r}}));
|
|
7
7
|
//# sourceMappingURL=w-converhp-client.umd.js.map
|