!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?e(exports):"function"==typeofdefine&&define.amd?define(["exports"],e):e(t.WHATWGFetch={})}(this,function(a){"use strict";vare,r,o="URLSearchParams"inself,n="Symbol"inself&&"iterator"inSymbol,h="FileReader"inself&&"Blob"inself&&function(){try{returnnewBlob,!0}catch(t){return!1}}(),i="FormData"inself,s="ArrayBuffer"inself;functionu(t){if("string"!=typeoft&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))thrownewTypeError("Invalid character in header field name");returnt.toLowerCase()}functionf(t){returnt="string"!=typeoft?String(t):t}functiont(e){vart={next:function(){vart=e.shift();return{done:void0===t,value:t}}};returnn&&(t[Symbol.iterator]=function(){returnt}),t}functiond(e){this.map={},einstanceofd?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}functionc(t){if(t.bodyUsed)returnPromise.reject(newTypeError("Already read"));t.bodyUsed=!0}functionp(r){returnnewPromise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}functiony(t){vare=newFileReader,r=p(e);returne.readAsArrayBuffer(t),r}functionl(t){if(t.slice)returnt.slice(0);vare=newUint8Array(t.byteLength);returne.set(newUint8Array(t)),e.buffer}functionb(){returnthis.bodyUsed=!1,this._initBody=function(t){vare;(this._bodyInit=t)?"string"==typeoft?this._bodyText=t:h&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&h&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=l(t.buffer),this._bodyInit=newBlob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=l(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeoft?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h&&(this.blob=function(){vart=c(this);if(t)returnt;if(this._bodyBlob)returnPromise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)returnPromise.resolve(newBlob([this._bodyArrayBuffer]));if(this._bodyFormData)thrownewError("could not read FormData body as blob");returnPromise.resolve(newBlob([this._bodyText]))},this.arrayBuffer=function(){returnthis._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){vart,e,r=c(this);if(r)returnr;if(this._bodyBlob)returnt=this._bodyBlob,e=newFileReader,r=p(e),e.readAsText(t),r;if(this._bodyArrayBuffer)returnPromise.resolve(function(t){for(vare=newUint8Array(t),r=newArray(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);returnr.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)thrownewError("could not read FormData body as text");returnPromise.resolve(this._bodyText)},i&&(this.formData=function(){returnthis.text().then(E)}),this.json=function(){returnthis.text().then(JSON.parse)},this}s&&(e=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){returnt&&-1<e.indexOf(Object.prototype.toString.call(t))}),d.prototype.append=function(t,e){t=u(t),e=f(e);varr=this.map[t];this.map[t]=r?r+", "+e:e},d.prototype.delete=function(t){deletethis.map[u(t)]},d.prototype.get=function(t){returnt=u(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){returnthis.map.hasOwnProperty(u(t))},d.prototype.set=function(t,e){this.map[u(t)]=f(e)},d.prototype.forEach=function(t,e){for(varrinthis.map)this.map.hasOwnProperty(r)&