System.register(["./index-legacy-6d4719fd.js"],(function(e,t){"use strict";var r,n,o;return{setters:[e=>{r=e.t,n=e.G,o=e.y}],execute:function(){e("u",(function(){const e=r(),{name:n="unknown"}=(null==e?void 0:e.type)||{};return`${n}-${++t}`}));let t=0;var i,a="undefined"!=typeof Symbol&&Symbol,c={foo:{}},u=Object,s=Object.prototype.toString,l=Math.max,f=function(e,t){for(var r=[],n=0;n1&&"boolean"!=typeof t)throw new g('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,e))throw new b("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=U(e,0,1),r=U(e,-1);if("%"===t&&"%"!==r)throw new b("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new b("invalid intrinsic syntax, expected opening `%`");var n=[];return C(e,D,(function(e,t,r,o){n[n.length]=r?C(o,q,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=L("%"+n+"%",t),i=o.name,a=o.value,c=!1,u=o.alias;u&&(n=u[0],M(r,F([0,1],u)));for(var s=1,l=!0;s=r.length){var d=w(a,f);a=(l=!!d)&&"get"in d&&!("originalValue"in d.get)?d.get:a[f]}else l=B(a,f),a=a[f];l&&!c&&(T[i]=a)}}return a},H={exports:{}},G=W("%Object.defineProperty%",!0),$=function(){if(G)try{return G({},"a",{value:1}),!0}catch(e){return!1}return!1};$.hasArrayLengthDefineBug=function(){if(!$())return null;try{return 1!==G([],"length",{value:1}).length}catch(e){return!0}};var z=$,J=W("%Object.getOwnPropertyDescriptor%",!0);if(J)try{J([],"length")}catch(e){J=null}var V=J,Q=z(),X=W,K=Q&&X("%Object.defineProperty%",!0);if(K)try{K({},"a",{value:1})}catch(e){K=!1}var Z=X("%SyntaxError%"),Y=X("%TypeError%"),ee=V,te=W,re=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new Y("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new Y("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new Y("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new Y("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new Y("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new Y("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,a=arguments.length>6&&arguments[6],c=!!ee&&ee(e,t);if(K)K(e,t,{configurable:null===i&&c?c.configurable:!i,enumerable:null===n&&c?c.enumerable:!n,value:r,writable:null===o&&c?c.writable:!o});else{if(!a&&(n||o||i))throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}},ne=z(),oe=V,ie=te("%TypeError%"),ae=te("%Math.floor%"),ce=function(e,t){if("function"!=typeof e)throw new ie("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||ae(t)!==t)throw new ie("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in e&&oe){var i=oe(e,"length");i&&!i.configurable&&(n=!1),i&&!i.writable&&(o=!1)}return(n||o||!r)&&(ne?re(e,"length",t,!0,!0):re(e,"length",t)),e};!function(e){var t=p,r=W,n=ce,o=r("%TypeError%"),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||t.call(a,i),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new o("a function is required");var r=c(t,a,arguments);return n(r,1+s(0,e.length-(arguments.length-1)),!0)};var l=function(){return c(t,i,arguments)};u?u(e.exports,"apply",{value:l}):e.exports.apply=l}(H);var ue=W,se=H.exports,le=se(ue("String.prototype.indexOf"));const fe=Object.freeze(Object.defineProperty({__proto__:null,"default":{}},Symbol.toStringTag,{value:"Module"})),pe=n(fe);var ye="function"==typeof Map&&Map.prototype,de=Object.getOwnPropertyDescriptor&&ye?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,he=ye&&de&&"function"==typeof de.get?de.get:null,be=ye&&Map.prototype.forEach,me="function"==typeof Set&&Set.prototype,ge=Object.getOwnPropertyDescriptor&&me?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ve=me&&ge&&"function"==typeof ge.get?ge.get:null,we=me&&Set.prototype.forEach,Se="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,Oe="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,je="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Ae=Boolean.prototype.valueOf,Pe=Object.prototype.toString,Ee=Function.prototype.toString,xe=String.prototype.match,Te=String.prototype.slice,Re=String.prototype.replace,_e=String.prototype.toUpperCase,Ie=String.prototype.toLowerCase,ke=RegExp.prototype.test,Be=Array.prototype.concat,Fe=Array.prototype.join,Me=Array.prototype.slice,Ce=Math.floor,Ue="function"==typeof BigInt?BigInt.prototype.valueOf:null,Ne=Object.getOwnPropertySymbols,De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,qe="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Le="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,We=Object.prototype.propertyIsEnumerable,He=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ge(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ke.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-Ce(-e):Ce(e);if(n!==e){var o=String(n),i=Te.call(t,o.length+1);return Re.call(o,r,"$&_")+"."+Re.call(Re.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Re.call(t,r,"$&_")}var $e=pe,ze=$e.custom,Je=Ze(ze)?ze:null;function Ve(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function Qe(e){return Re.call(String(e),/"/g,""")}function Xe(e){return!("[object Array]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}function Ke(e){return!("[object RegExp]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}function Ze(e){if(qe)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!De)return!1;try{return De.call(e),!0}catch(e){}return!1}var Ye=Object.prototype.hasOwnProperty||function(e){return e in this};function et(e,t){return Ye.call(e,t)}function tt(e){return Pe.call(e)}function rt(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return nt(Te.call(e,0,t.maxStringLength),t)+n}return Ve(Re.call(Re.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ot),"single",t)}function ot(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_e.call(t.toString(16))}function it(e){return"Object("+e+")"}function at(e){return e+" { ? }"}function ct(e,t,r,n){return e+" ("+t+") {"+(n?ut(r,n):Fe.call(r,", "))+"}"}function ut(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Fe.call(e,","+r)+"\n"+t.prev}function st(e,t){var r=Xe(e),n=[];if(r){n.length=e.length;for(var o=0;o-1?se(r):r},pt=function yn(e,t,r,n){var i=t||{};if(et(i,"quoteStyle")&&"single"!==i.quoteStyle&&"double"!==i.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(i,"maxStringLength")&&("number"==typeof i.maxStringLength?i.maxStringLength<0&&i.maxStringLength!==1/0:null!==i.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=!et(i,"customInspect")||i.customInspect;if("boolean"!=typeof a&&"symbol"!==a)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(i,"indent")&&null!==i.indent&&"\t"!==i.indent&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(i,"numericSeparator")&&"boolean"!=typeof i.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=i.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return nt(e,i);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var u=String(e);return c?Ge(e,u):u}if("bigint"==typeof e){var s=String(e)+"n";return c?Ge(e,s):s}var l=void 0===i.depth?5:i.depth;if(void 0===r&&(r=0),r>=l&&l>0&&"object"==typeof e)return Xe(e)?"[Array]":"[Object]";var f=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Fe.call(Array(e.indent+1)," ")}return{base:r,prev:Fe.call(Array(t+1),r)}}(i,r);if(void 0===n)n=[];else if(rt(n,e)>=0)return"[Circular]";function p(e,t,o){if(t&&(n=Me.call(n)).push(t),o){var a={depth:i.depth};return et(i,"quoteStyle")&&(a.quoteStyle=i.quoteStyle),yn(e,a,r+1,n)}return yn(e,i,r+1,n)}if("function"==typeof e&&!Ke(e)){var y=function(e){if(e.name)return e.name;var t=xe.call(Ee.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(e),d=st(e,p);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+Fe.call(d,", ")+" }":"")}if(Ze(e)){var h=qe?Re.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):De.call(e);return"object"!=typeof e||qe?h:it(h)}if(function(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(e)){for(var b="<"+Ie.call(String(e.nodeName)),m=e.attributes||[],g=0;g"}if(Xe(e)){if(0===e.length)return"[]";var v=st(e,p);return f&&!function(e){for(var t=0;t=0)return!1;return!0}(v)?"["+ut(v,f)+"]":"[ "+Fe.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e)){var w=st(e,p);return"cause"in Error.prototype||!("cause"in e)||We.call(e,"cause")?0===w.length?"["+String(e)+"]":"{ ["+String(e)+"] "+Fe.call(w,", ")+" }":"{ ["+String(e)+"] "+Fe.call(Be.call("[cause]: "+p(e.cause),w),", ")+" }"}if("object"==typeof e&&a){if(Je&&"function"==typeof e[Je]&&$e)return $e(e,{depth:l-r});if("symbol"!==a&&"function"==typeof e.inspect)return e.inspect()}if(function(e){if(!he||!e||"object"!=typeof e)return!1;try{he.call(e);try{ve.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(e)){var S=[];return be&&be.call(e,(function(t,r){S.push(p(r,e,!0)+" => "+p(t,e))})),ct("Map",he.call(e),S,f)}if(function(e){if(!ve||!e||"object"!=typeof e)return!1;try{ve.call(e);try{he.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(e)){var O=[];return we&&we.call(e,(function(t){O.push(p(t,e))})),ct("Set",ve.call(e),O,f)}if(function(e){if(!Se||!e||"object"!=typeof e)return!1;try{Se.call(e,Se);try{Oe.call(e,Oe)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(e))return at("WeakMap");if(function(e){if(!Oe||!e||"object"!=typeof e)return!1;try{Oe.call(e,Oe);try{Se.call(e,Se)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(e))return at("WeakSet");if(function(e){if(!je||!e||"object"!=typeof e)return!1;try{return je.call(e),!0}catch(e){}return!1}(e))return at("WeakRef");if(function(e){return!("[object Number]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(p(Number(e)));if(function(e){if(!e||"object"!=typeof e||!Ue)return!1;try{return Ue.call(e),!0}catch(e){}return!1}(e))return it(p(Ue.call(e)));if(function(e){return!("[object Boolean]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(Ae.call(e));if(function(e){return!("[object String]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e))return it(p(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===o)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==tt(e)||Le&&"object"==typeof e&&Le in e)}(e)&&!Ke(e)){var j=st(e,p),A=He?He(e)===Object.prototype:e instanceof Object||e.constructor===Object,P=e instanceof Object?"":"null prototype",E=!A&&Le&&Object(e)===e&&Le in e?Te.call(tt(e),8,-1):P?"Object":"",x=(A||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(E||P?"["+Fe.call(Be.call([],E||[],P||[]),": ")+"] ":"");return 0===j.length?x+"{}":f?x+"{"+ut(j,f)+"}":x+"{ "+Fe.call(j,", ")+" }"}return String(e)},yt=lt("%TypeError%"),dt=lt("%WeakMap%",!0),ht=lt("%Map%",!0),bt=ft("WeakMap.prototype.get",!0),mt=ft("WeakMap.prototype.set",!0),gt=ft("WeakMap.prototype.has",!0),vt=ft("Map.prototype.get",!0),wt=ft("Map.prototype.set",!0),St=ft("Map.prototype.has",!0),Ot=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},jt=String.prototype.replace,At=/%20/g,Pt="RFC3986",Et={"default":Pt,formatters:{RFC1738:function(e){return jt.call(e,At,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:Pt},xt=Et,Tt=Object.prototype.hasOwnProperty,Rt=Array.isArray,_t=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),It=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(Rt(r)){for(var n=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===xt.RFC1738&&(40===u||41===u)?a+=i.charAt(c):u<128?a+=_t[u]:u<2048?a+=_t[192|u>>6]+_t[128|63&u]:u<55296||u>=57344?a+=_t[224|u>>12]+_t[128|u>>6&63]+_t[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&i.charCodeAt(c)),a+=_t[240|u>>18]+_t[128|u>>12&63]+_t[128|u>>6&63]+_t[128|63&u])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Rt(e)){for(var r=[],n=0;n0?m.join(",")||null:void 0}];else if(Nt(c))O=c;else{var A=Object.keys(m);O=u?A.sort(u):A}for(var P=n&&Nt(m)&&1===m.length?t+"[]":t,E=0;E-1?e.split(","):e},Zt=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),c=a?o.slice(0,a.index):o,u=[];if(c){if(!r.plainObjects&&Jt.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var s=0;r.depth>0&&null!==(a=i.exec(o))&&s=0;--i){var a,c=e[i];if("[]"===c&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var u="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,s=parseInt(u,10);r.parseArrays||""!==u?!isNaN(s)&&c!==u&&String(s)===u&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[])[s]=o:"__proto__"!==u&&(a[u]=o):a={0:o}}o=a}return o}(u,t,r,n)}},Yt={formats:Et,parse:function(e,t){var r=function(e){if(!e)return Qt;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Qt.charset:e.charset;return{allowDots:void 0===e.allowDots?Qt.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Qt.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:Qt.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Qt.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Qt.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Qt.comma,decoder:"function"==typeof e.decoder?e.decoder:Qt.decoder,delimiter:"string"==typeof e.delimiter||zt.isRegExp(e.delimiter)?e.delimiter:Qt.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Qt.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Qt.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Qt.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Qt.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Qt.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var r,n={__proto__:null},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,a=o.split(t.delimiter,i),c=-1,u=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(l=Vt(l)?[l]:l),Jt.call(n,s)?n[s]=zt.combine(n[s],l):n[s]=l}return n}(e,r):e,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a0?y+p:""}},er="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},tr="URLSearchParams"in er,rr="Symbol"in er&&"iterator"in Symbol,nr="FileReader"in er&&"Blob"in er&&function(){try{return new Blob,!0}catch(e){return!1}}(),or="FormData"in er,ir="ArrayBuffer"in er;if(ir)var ar=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],cr=ArrayBuffer.isView||function(e){return e&&ar.indexOf(Object.prototype.toString.call(e))>-1};function ur(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function sr(e){return"string"!=typeof e&&(e=String(e)),e}function lr(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return rr&&(t[Symbol.iterator]=function(){return t}),t}function fr(e){this.map={},e instanceof fr?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function pr(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function yr(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function dr(e){var t=new FileReader,r=yr(t);return t.readAsArrayBuffer(e),r}function hr(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function br(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:nr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:or&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:tr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():ir&&nr&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=hr(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ir&&(ArrayBuffer.prototype.isPrototypeOf(e)||cr(e))?this._bodyArrayBuffer=hr(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):tr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},nr&&(this.blob=function(){var e=pr(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return pr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(nr)return this.blob().then(dr);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=pr(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,r=yr(t=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in er)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function vr(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function wr(e,t){if(!(this instanceof wr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new fr(t.headers),this.url=t.url||"",this._initBody(e)}gr.prototype.clone=function(){return new gr(this,{body:this._bodyInit})},br.call(gr.prototype),br.call(wr.prototype),wr.prototype.clone=function(){return new wr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new fr(this.headers),url:this.url})},wr.error=function(){var e=new wr(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Sr=[301,302,303,307,308];wr.redirect=function(e,t){if(-1===Sr.indexOf(t))throw new RangeError("Invalid status code");return new wr(null,{status:t,headers:{location:e}})};var Or=er.DOMException;try{new Or}catch(e){(Or=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function jr(e,t){return new Promise((function(r,n){var o=new gr(e,t);if(o.signal&&o.signal.aborted)return n(new Or("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new fr,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){}}})),t)};o.url.startsWith("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout((function(){r(new wr(a,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},i.onabort=function(){setTimeout((function(){n(new Or("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&er.location.href?er.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(nr?i.responseType="blob":ir&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof fr||er.Headers&&t.headers instanceof er.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){c.push(ur(e)),i.setRequestHeader(e,sr(t.headers[e]))})),o.headers.forEach((function(e,t){-1===c.indexOf(t)&&i.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){i.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}function Ar(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},n=!1,o=!1,i=!1;"number"==typeof r?(process&&process.env,n=!0,o=!1):"object"===Er(r)&&r&&(o=r.global||!1,n=r.core||!1,i=r.defaultInstance||!1),o?e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,t):n?e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,t):i?this.defaultMiddlewares.push(t):this.middlewares.push(t)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=function(e){if(!Array.isArray(e))throw new TypeError("Middlewares must be an array!");for(var t=e.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var o=Nr(this.cache.keys())[0];this.cache["delete"](o),this.timer[o]&&clearTimeout(this.timer[o])}var i=JSON.stringify(e);this.cache.set(i,t),n>0&&(this.timer[i]=setTimeout((function(){r.cache["delete"](i),delete r.timer[i]}),n))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache["delete"](t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),Wr=function(e){Ir(r,e);var t=Ur(r);function r(e,n){var o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return xr(this,r),(o=t.call(this,e)).name="RequestError",o.request=n,o.type=i,o}return r}(Cr(Error)),Hr=function(e){Ir(r,e);var t=Ur(r);function r(e,n,o,i){var a,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return xr(this,r),(a=t.call(this,n||e.statusText)).name="ResponseError",a.data=o,a.response=e,a.request=i,a.type=c,a}return r}(Cr(Error));function Gr(e){return new Promise((function(t,r){var n=new FileReader;n.onload=function(){t(n.result)},n.onerror=r,n.readAsText(e,"GBK")}))}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;try{return JSON.parse(e)}catch(o){if(t)throw new Hr(r,"JSON.parse fail",e,n,"ParseError")}return e}function zr(e,t,r){return new Promise((function(n,o){setTimeout((function(){o(new Wr(t||"timeout of ".concat(e,"ms exceeded"),r,"Timeout"))}),e)}))}function Jr(e){return new Promise((function(t,r){e.cancelToken&&e.cancelToken.promise.then((function(e){r(e)}))}))}var Vr=Object.prototype.toString;function Qr(){var e;return"undefined"!=typeof process&&"[object process]"===Vr.call(process)&&(e="NODE"),"undefined"!=typeof XMLHttpRequest&&(e="BROWSER"),e}function Xr(e){return"object"===Er(e)&&"[object Array]"===Object.prototype.toString.call(e)}function Kr(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function Zr(e){return null!==e&&"object"===Er(e)}function Yr(e,t){if(e)if("object"!==Er(e)&&(e=[e]),Xr(e))for(var r=0;r=200&&r.status<300)return c?void(e.res={data:t,response:r}):void(e.res=t);throw new Hr(r,"http error",t,o,"HttpError")}}}))["catch"]((function(t){if(t instanceof Wr||t instanceof Hr)throw t;var r=e.req,n=e.res;throw t.request=t.request||r,t.response=t.response||n,t.type=t.type||t.name,t.data=t.data||void 0,t}))}],an=[function(e,t){if(!e)return t();var r=e.req,n=(r=void 0===r?{}:r).options,o=void 0===n?{}:n,i=r.url,a=void 0===i?"":i,c=e.cache,u=e.responseInterceptors,s=o.timeout,l=void 0===s?0:s,f=o.timeoutMessage,p=o.__umiRequestCoreType__,y=void 0===p?"normal":p,d=o.useCache,h=void 0!==d&&d,b=o.method,m=void 0===b?"get":b,g=o.params,v=o.ttl,w=o.validateCache,S=void 0===w?nn:w;if("normal"!==y)return process&&process.env,t();var O=fetch;if(!O)throw new Error("Global fetch not exist!");var j,A="BROWSER"===Qr(),P=S(a,o)&&h&&A;if(P){var E=c.get({url:a,params:g,method:m});if(E)return(E=E.clone()).useCache=!0,e.res=E,t()}return j=l>0?Promise.race([Jr(o),O(a,o),zr(l,f,e.req)]):Promise.race([Jr(o),O(a,o)]),u.forEach((function(e){j=j.then((function(t){var r="function"==typeof t.clone?t.clone():t;return e(r,o)}))})),j.then((function(r){if(P&&200===r.status){var n=r.clone();n.useCache=!0,c.set({url:a,params:g,method:m},n,v)}return e.res=r,t()}))}];qr.globalMiddlewares=on,qr.defaultGlobalMiddlewaresLength=on.length,qr.coreMiddlewares=an,qr.defaultCoreMiddlewaresLength=an.length;var cn=function(){function e(t){xr(this,e),this.onion=new qr([]),this.fetchIndex=0,this.mapCache=new Lr(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return Rr(e,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=rn(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(t){return[].concat(Nr(e.requestInterceptors),Nr(this.instanceRequestInterceptors)).reduce((function(e,r){return e.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,r(t.req.url,t.req.options)}))}),Promise.resolve()).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve()}))}},{key:"request",value:function(t,r){var n=this,o=this.onion,i={req:{url:t,options:Pr(Pr({},r),{},{url:t})},res:null,cache:this.mapCache,responseInterceptors:[].concat(Nr(e.responseInterceptors),Nr(this.instanceResponseInterceptors))};if("string"!=typeof t)throw new Error("url MUST be a string");return new Promise((function(e,t){n.dealRequestInterceptors(i).then((function(){return o.execute(i)})).then((function(){e(i.res)}))["catch"]((function(r){var n=i.req.options.errorHandler;if(n)try{var o=n(r);e(o)}catch(e){t(e)}else t(r)}))}))}}],[{key:"requestUse",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");r.global?e.requestInterceptors.push(t):this.instanceRequestInterceptors.push(t)}},{key:"responseUse",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");r.global?e.responseInterceptors.push(t):this.instanceResponseInterceptors.push(t)}}]),e}();function un(e){this.message=e}function sn(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new un(e),t(r.reason))}))}function ln(e){return!(!e||!e.__CANCEL__)}cn.requestInterceptors=[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.prefix,n=t.suffix;return r&&(e="".concat(r).concat(e)),n&&(e="".concat(e).concat(n)),{url:e,options:t}}],cn.responseInterceptors=[],un.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},un.prototype.__CANCEL__=!0,sn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},sn.source=function(){var e;return{token:new sn((function(t){e=t})),cancel:e}};var fn=function(){var e=new cn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rn(e.initOptions,r);return e.request(t,n)};return t.use=e.use.bind(e),t.fetchIndex=e.fetchIndex,t.interceptors={request:{use:cn.requestUse.bind(e)},response:{use:cn.responseUse.bind(e)}},["get","post","delete","put","patch","head","options","rpc"].forEach((function(e){t[e]=function(r,n){return t(r,Pr(Pr({},n),{},{method:e}))}})),t.Cancel=un,t.CancelToken=sn,t.isCancel=ln,t.extendOptions=e.extendOptions.bind(e),t.middlewares={instance:e.onion.middlewares,defaultInstance:e.onion.defaultMiddlewares,global:qr.globalMiddlewares,core:qr.coreMiddlewares},t};e("e",(function(e){return fn(e)})),fn({parseResponse:!1}),e("r",fn({}))}}}));