UNPKG

springroll-container

Version:

The iframe controller for interacting with SpringRoll applications

1 lines 140 kB
var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function d(t){this.map={},t instanceof d?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function p(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var n;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:r&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i&&r&&((n=t)&&DataView.prototype.isPrototypeOf(n))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(t)||a(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=h(this);if(t)return t;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){var t=h(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(p)}),this.text=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,n=f(e);return e.readAsText(t),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(t,e){t=u(t),e=l(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},d.prototype.delete=function(t){delete this.map[u(t)]},d.prototype.get=function(t){return t=u(t),this.has(t)?this.map[t]:null},d.prototype.has=function(t){return this.map.hasOwnProperty(u(t))},d.prototype.set=function(t,e){this.map[u(t)]=l(e)},d.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},d.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),c(t)},d.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},d.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),c(t)},n&&(d.prototype[Symbol.iterator]=d.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(t,e){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(e=e||{}).body;if(t instanceof m){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new d(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new d(e.headers)),this.method=function(t){var e=t.toUpperCase();return g.indexOf(e)>-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function S(t,e){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new d(e.headers),this.url=e.url||"",this._initBody(t)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},y.call(m.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},S.error=function(){var t=new S(null,{status:0,statusText:""});return t.type="error",t};var w=[301,302,303,307,308];S.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new S(null,{status:e,headers:{location:t}})};var k=t.DOMException;try{new k}catch(t){(k=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function E(e,n){return new Promise((function(o,s){var a=new m(e,n);if(a.signal&&a.signal.aborted)return s(new k("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var t,e,n={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new d,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout((function(){o(new S(r,n))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new k("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(r?u.responseType="blob":i&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof d?a.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(n.headers).forEach((function(t){u.setRequestHeader(t,l(n.headers[t]))})),a.signal&&(a.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",c)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,t.fetch||(t.fetch=E,t.Headers=d,t.Request=m,t.Response=S);var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},x=function(t){return t&&t.Math==Math&&t},P=x("object"==typeof globalThis&&globalThis)||x("object"==typeof window&&window)||x("object"==typeof self&&self)||x("object"==typeof B&&B)||function(){return this}()||Function("return this")(),L={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_="object"==typeof document&&document.all,O={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},A=O.all,V=O.IS_HTMLDDA?function(t){return"function"==typeof t||t===A}:function(t){return"function"==typeof t},C=V,D=O.all,M=O.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:C(t)||t===D}:function(t){return"object"==typeof t?null!==t:C(t)},T=M,I=P.document,R=T(I)&&T(I.createElement),j=function(t){return R?I.createElement(t):{}},N=j("span").classList,K=N&&N.constructor&&N.constructor.prototype,F=K===Object.prototype?void 0:K,G=function(t){try{return!!t()}catch(t){return!0}},U=!G((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),H=U,z=Function.prototype,q=z.call,W=H&&z.bind.bind(q,q),X=H?W:function(t){return function(){return q.apply(t,arguments)}},Y=X,J=Y({}.toString),$=Y("".slice),Q=function(t){return $(J(t),8,-1)},Z=Q,tt=X,et=function(t){if("Function"===Z(t))return tt(t)},nt=String,rt=function(t){try{return nt(t)}catch(t){return"Object"}},ot=V,it=rt,st=TypeError,at=function(t){if(ot(t))return t;throw st(it(t)+" is not a function")},ut=at,lt=U,ct=et(et.bind),dt=function(t,e){return ut(t),void 0===e?t:lt?ct(t,e):function(){return t.apply(e,arguments)}},ht=G,ft=Q,pt=Object,vt=X("".split),yt=ht((function(){return!pt("z").propertyIsEnumerable(0)}))?function(t){return"String"==ft(t)?vt(t,""):pt(t)}:pt,gt=function(t){return null==t},mt=gt,bt=TypeError,St=function(t){if(mt(t))throw bt("Can't call method on "+t);return t},wt=St,kt=Object,Et=function(t){return kt(wt(t))},Bt=Math.ceil,xt=Math.floor,Pt=Math.trunc||function(t){var e=+t;return(e>0?xt:Bt)(e)},Lt=Pt,_t=function(t){var e=+t;return e!=e||0===e?0:Lt(e)},Ot=_t,At=Math.min,Vt=function(t){return t>0?At(Ot(t),9007199254740991):0},Ct=function(t){return Vt(t.length)},Dt=Q,Mt=Array.isArray||function(t){return"Array"==Dt(t)},Tt={exports:{}},It=P,Rt=Object.defineProperty,jt=function(t,e){try{Rt(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},Nt=jt,Kt="__core-js_shared__",Ft=P[Kt]||Nt(Kt,{}),Gt=Ft;(Tt.exports=function(t,e){return Gt[t]||(Gt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ut,Ht,zt=Tt.exports,qt=Et,Wt=X({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Wt(qt(t),e)},Yt=X,Jt=0,$t=Math.random(),Qt=Yt(1..toString),Zt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qt(++Jt+$t,36)},te="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ee=P,ne=te,re=ee.process,oe=ee.Deno,ie=re&&re.versions||oe&&oe.version,se=ie&&ie.v8;se&&(Ht=(Ut=se.split("."))[0]>0&&Ut[0]<4?1:+(Ut[0]+Ut[1])),!Ht&&ne&&(!(Ut=ne.match(/Edge\/(\d+)/))||Ut[1]>=74)&&(Ut=ne.match(/Chrome\/(\d+)/))&&(Ht=+Ut[1]);var ae=Ht,ue=ae,le=G,ce=!!Object.getOwnPropertySymbols&&!le((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ue&&ue<41})),de=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,he=zt,fe=Xt,pe=Zt,ve=ce,ye=de,ge=P.Symbol,me=he("wks"),be=ye?ge.for||ge:ge&&ge.withoutSetter||pe,Se=function(t){return fe(me,t)||(me[t]=ve&&fe(ge,t)?ge[t]:be("Symbol."+t)),me[t]},we={};we[Se("toStringTag")]="z";var ke="[object z]"===String(we),Ee=ke,Be=V,xe=Q,Pe=Se("toStringTag"),Le=Object,_e="Arguments"==xe(function(){return arguments}()),Oe=Ee?xe:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Le(t),Pe))?n:_e?xe(e):"Object"==(r=xe(e))&&Be(e.callee)?"Arguments":r},Ae=P,Ve=V,Ce=function(t,e){return arguments.length<2?(n=Ae[t],Ve(n)?n:void 0):Ae[t]&&Ae[t][e];var n},De=V,Me=Ft,Te=X(Function.toString);De(Me.inspectSource)||(Me.inspectSource=function(t){return Te(t)});var Ie=Me.inspectSource,Re=X,je=G,Ne=V,Ke=Oe,Fe=Ie,Ge=function(){},Ue=[],He=Ce("Reflect","construct"),ze=/^\s*(?:class|function)\b/,qe=Re(ze.exec),We=!ze.exec(Ge),Xe=function(t){if(!Ne(t))return!1;try{return He(Ge,Ue,t),!0}catch(t){return!1}},Ye=function(t){if(!Ne(t))return!1;switch(Ke(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return We||!!qe(ze,Fe(t))}catch(t){return!0}};Ye.sham=!0;var Je=!He||je((function(){var t;return Xe(Xe.call)||!Xe(Object)||!Xe((function(){t=!0}))||t}))?Ye:Xe,$e=Mt,Qe=Je,Ze=M,tn=Se("species"),en=Array,nn=function(t){var e;return $e(t)&&(e=t.constructor,(Qe(e)&&(e===en||$e(e.prototype))||Ze(e)&&null===(e=e[tn]))&&(e=void 0)),void 0===e?en:e},rn=function(t,e){return new(nn(t))(0===e?0:e)},on=dt,sn=yt,an=Et,un=Ct,ln=rn,cn=X([].push),dn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,s=7==t,a=5==t||i;return function(u,l,c,d){for(var h,f,p=an(u),v=sn(p),y=on(l,c),g=un(v),m=0,b=d||ln,S=e?b(u,g):n||s?b(u,0):void 0;g>m;m++)if((a||m in v)&&(f=y(h=v[m],m,p),t))if(e)S[m]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:cn(S,h)}else switch(t){case 4:return!1;case 7:cn(S,h)}return i?-1:r||o?o:S}},hn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)},fn=G,pn=function(t,e){var n=[][t];return!!n&&fn((function(){n.call(null,e||function(){return 1},1)}))},vn=hn.forEach,yn=pn("forEach")?[].forEach:function(t){return vn(this,t,arguments.length>1?arguments[1]:void 0)},gn=!G((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mn={},bn=j,Sn=!gn&&!G((function(){return 7!=Object.defineProperty(bn("div"),"a",{get:function(){return 7}}).a})),wn=gn&&G((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kn=M,En=String,Bn=TypeError,xn=function(t){if(kn(t))return t;throw Bn(En(t)+" is not an object")},Pn=U,Ln=Function.prototype.call,_n=Pn?Ln.bind(Ln):function(){return Ln.apply(Ln,arguments)},On=X({}.isPrototypeOf),An=Ce,Vn=V,Cn=On,Dn=Object,Mn=de?function(t){return"symbol"==typeof t}:function(t){var e=An("Symbol");return Vn(e)&&Cn(e.prototype,Dn(t))},Tn=at,In=gt,Rn=function(t,e){var n=t[e];return In(n)?void 0:Tn(n)},jn=_n,Nn=V,Kn=M,Fn=TypeError,Gn=_n,Un=M,Hn=Mn,zn=Rn,qn=function(t,e){var n,r;if("string"===e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;if(Nn(n=t.valueOf)&&!Kn(r=jn(n,t)))return r;if("string"!==e&&Nn(n=t.toString)&&!Kn(r=jn(n,t)))return r;throw Fn("Can't convert object to primitive value")},Wn=TypeError,Xn=Se("toPrimitive"),Yn=function(t,e){if(!Un(t)||Hn(t))return t;var n,r=zn(t,Xn);if(r){if(void 0===e&&(e="default"),n=Gn(r,t,e),!Un(n)||Hn(n))return n;throw Wn("Can't convert object to primitive value")}return void 0===e&&(e="number"),qn(t,e)},Jn=Yn,$n=Mn,Qn=function(t){var e=Jn(t,"string");return $n(e)?e:e+""},Zn=gn,tr=Sn,er=wn,nr=xn,rr=Qn,or=TypeError,ir=Object.defineProperty,sr=Object.getOwnPropertyDescriptor,ar="enumerable",ur="configurable",lr="writable";mn.f=Zn?er?function(t,e,n){if(nr(t),e=rr(e),nr(n),"function"==typeof t&&"prototype"===e&&"value"in n&&lr in n&&!n[lr]){var r=sr(t,e);r&&r[lr]&&(t[e]=n.value,n={configurable:ur in n?n[ur]:r[ur],enumerable:ar in n?n[ar]:r[ar],writable:!1})}return ir(t,e,n)}:ir:function(t,e,n){if(nr(t),e=rr(e),nr(n),tr)try{return ir(t,e,n)}catch(t){}if("get"in n||"set"in n)throw or("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var cr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},dr=mn,hr=cr,fr=gn?function(t,e,n){return dr.f(t,e,hr(1,n))}:function(t,e,n){return t[e]=n,t},pr=P,vr=L,yr=F,gr=yn,mr=fr,br=function(t){if(t&&t.forEach!==gr)try{mr(t,"forEach",gr)}catch(e){t.forEach=gr}};for(var Sr in vr)vr[Sr]&&br(pr[Sr]&&pr[Sr].prototype);br(yr);var wr=yt,kr=St,Er=function(t){return wr(kr(t))},Br={},xr=_t,Pr=Math.max,Lr=Math.min,_r=function(t,e){var n=xr(t);return n<0?Pr(n+e,0):Lr(n,e)},Or=Er,Ar=_r,Vr=Ct,Cr=function(t){return function(e,n,r){var o,i=Or(e),s=Vr(i),a=Ar(r,s);if(t&&n!=n){for(;s>a;)if((o=i[a++])!=o)return!0}else for(;s>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Dr={includes:Cr(!0),indexOf:Cr(!1)},Mr={},Tr=Xt,Ir=Er,Rr=Dr.indexOf,jr=Mr,Nr=X([].push),Kr=function(t,e){var n,r=Ir(t),o=0,i=[];for(n in r)!Tr(jr,n)&&Tr(r,n)&&Nr(i,n);for(;e.length>o;)Tr(r,n=e[o++])&&(~Rr(i,n)||Nr(i,n));return i},Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Gr=Kr,Ur=Fr,Hr=Object.keys||function(t){return Gr(t,Ur)},zr=gn,qr=wn,Wr=mn,Xr=xn,Yr=Er,Jr=Hr;Br.f=zr&&!qr?Object.defineProperties:function(t,e){Xr(t);for(var n,r=Yr(e),o=Jr(e),i=o.length,s=0;i>s;)Wr.f(t,n=o[s++],r[n]);return t};var $r,Qr=Ce("document","documentElement"),Zr=Zt,to=zt("keys"),eo=function(t){return to[t]||(to[t]=Zr(t))},no=xn,ro=Br,oo=Fr,io=Mr,so=Qr,ao=j,uo="prototype",lo="script",co=eo("IE_PROTO"),ho=function(){},fo=function(t){return"<"+lo+">"+t+"</"+lo+">"},po=function(t){t.write(fo("")),t.close();var e=t.parentWindow.Object;return t=null,e},vo=function(){try{$r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;vo="undefined"!=typeof document?document.domain&&$r?po($r):(e=ao("iframe"),n="java"+lo+":",e.style.display="none",so.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(fo("document.F=Object")),t.close(),t.F):po($r);for(var r=oo.length;r--;)delete vo[uo][oo[r]];return vo()};io[co]=!0;var yo=Object.create||function(t,e){var n;return null!==t?(ho[uo]=no(t),n=new ho,ho[uo]=null,n[co]=t):n=vo(),void 0===e?n:ro.f(n,e)},go=Se,mo=yo,bo=mn.f,So=go("unscopables"),wo=Array.prototype;null==wo[So]&&bo(wo,So,{configurable:!0,value:mo(null)});var ko,Eo,Bo,xo=function(t){wo[So][t]=!0},Po={},Lo=V,_o=P.WeakMap,Oo=Lo(_o)&&/native code/.test(String(_o)),Ao=P,Vo=M,Co=fr,Do=Xt,Mo=Ft,To=eo,Io=Mr,Ro="Object already initialized",jo=Ao.TypeError,No=Ao.WeakMap;if(Oo||Mo.state){var Ko=Mo.state||(Mo.state=new No);Ko.get=Ko.get,Ko.has=Ko.has,Ko.set=Ko.set,ko=function(t,e){if(Ko.has(t))throw jo(Ro);return e.facade=t,Ko.set(t,e),e},Eo=function(t){return Ko.get(t)||{}},Bo=function(t){return Ko.has(t)}}else{var Fo=To("state");Io[Fo]=!0,ko=function(t,e){if(Do(t,Fo))throw jo(Ro);return e.facade=t,Co(t,Fo,e),e},Eo=function(t){return Do(t,Fo)?t[Fo]:{}},Bo=function(t){return Do(t,Fo)}}var Go={set:ko,get:Eo,has:Bo,enforce:function(t){return Bo(t)?Eo(t):ko(t,{})},getterFor:function(t){return function(e){var n;if(!Vo(e)||(n=Eo(e)).type!==t)throw jo("Incompatible receiver, "+t+" required");return n}}},Uo={},Ho={},zo={}.propertyIsEnumerable,qo=Object.getOwnPropertyDescriptor,Wo=qo&&!zo.call({1:2},1);Ho.f=Wo?function(t){var e=qo(this,t);return!!e&&e.enumerable}:zo;var Xo=gn,Yo=_n,Jo=Ho,$o=cr,Qo=Er,Zo=Qn,ti=Xt,ei=Sn,ni=Object.getOwnPropertyDescriptor;Uo.f=Xo?ni:function(t,e){if(t=Qo(t),e=Zo(e),ei)try{return ni(t,e)}catch(t){}if(ti(t,e))return $o(!Yo(Jo.f,t,e),t[e])};var ri={exports:{}},oi=gn,ii=Xt,si=Function.prototype,ai=oi&&Object.getOwnPropertyDescriptor,ui=ii(si,"name"),li={EXISTS:ui,PROPER:ui&&"something"===function(){}.name,CONFIGURABLE:ui&&(!oi||oi&&ai(si,"name").configurable)},ci=X,di=G,hi=V,fi=Xt,pi=gn,vi=li.CONFIGURABLE,yi=Ie,gi=Go.enforce,mi=Go.get,bi=String,Si=Object.defineProperty,wi=ci("".slice),ki=ci("".replace),Ei=ci([].join),Bi=pi&&!di((function(){return 8!==Si((function(){}),"length",{value:8}).length})),xi=String(String).split("String"),Pi=ri.exports=function(t,e,n){"Symbol("===wi(bi(e),0,7)&&(e="["+ki(bi(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!fi(t,"name")||vi&&t.name!==e)&&(pi?Si(t,"name",{value:e,configurable:!0}):t.name=e),Bi&&n&&fi(n,"arity")&&t.length!==n.arity&&Si(t,"length",{value:n.arity});try{n&&fi(n,"constructor")&&n.constructor?pi&&Si(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=gi(t);return fi(r,"source")||(r.source=Ei(xi,"string"==typeof e?e:"")),t};Function.prototype.toString=Pi((function(){return hi(this)&&mi(this).source||yi(this)}),"toString");var Li=ri.exports,_i=V,Oi=mn,Ai=Li,Vi=jt,Ci=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(_i(n)&&Ai(n,i,r),r.global)o?t[e]=n:Vi(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:Oi.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Di={},Mi=Kr,Ti=Fr.concat("length","prototype");Di.f=Object.getOwnPropertyNames||function(t){return Mi(t,Ti)};var Ii={};Ii.f=Object.getOwnPropertySymbols;var Ri,ji,Ni,Ki=Ce,Fi=Di,Gi=Ii,Ui=xn,Hi=X([].concat),zi=Ki("Reflect","ownKeys")||function(t){var e=Fi.f(Ui(t)),n=Gi.f;return n?Hi(e,n(t)):e},qi=Xt,Wi=zi,Xi=Uo,Yi=mn,Ji=G,$i=V,Qi=/#|\.prototype\./,Zi=function(t,e){var n=es[ts(t)];return n==rs||n!=ns&&($i(e)?Ji(e):!!e)},ts=Zi.normalize=function(t){return String(t).replace(Qi,".").toLowerCase()},es=Zi.data={},ns=Zi.NATIVE="N",rs=Zi.POLYFILL="P",os=Zi,is=P,ss=Uo.f,as=fr,us=Ci,ls=jt,cs=function(t,e,n){for(var r=Wi(e),o=Yi.f,i=Xi.f,s=0;s<r.length;s++){var a=r[s];qi(t,a)||n&&qi(n,a)||o(t,a,i(e,a))}},ds=os,hs=function(t,e){var n,r,o,i,s,a=t.target,u=t.global,l=t.stat;if(n=u?is:l?is[a]||ls(a,{}):(is[a]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(s=ss(n,r))&&s.value:n[r],!ds(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;cs(i,o)}(t.sham||o&&o.sham)&&as(i,"sham",!0),us(n,r,i,t)}},fs=!G((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ps=Xt,vs=V,ys=Et,gs=fs,ms=eo("IE_PROTO"),bs=Object,Ss=bs.prototype,ws=gs?bs.getPrototypeOf:function(t){var e=ys(t);if(ps(e,ms))return e[ms];var n=e.constructor;return vs(n)&&e instanceof n?n.prototype:e instanceof bs?Ss:null},ks=G,Es=V,Bs=M,xs=ws,Ps=Ci,Ls=Se("iterator"),_s=!1;[].keys&&("next"in(Ni=[].keys())?(ji=xs(xs(Ni)))!==Object.prototype&&(Ri=ji):_s=!0);var Os=!Bs(Ri)||ks((function(){var t={};return Ri[Ls].call(t)!==t}));Os&&(Ri={}),Es(Ri[Ls])||Ps(Ri,Ls,(function(){return this}));var As={IteratorPrototype:Ri,BUGGY_SAFARI_ITERATORS:_s},Vs=mn.f,Cs=Xt,Ds=Se("toStringTag"),Ms=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Cs(t,Ds)&&Vs(t,Ds,{configurable:!0,value:e})},Ts=As.IteratorPrototype,Is=yo,Rs=cr,js=Ms,Ns=Po,Ks=function(){return this},Fs=X,Gs=at,Us=V,Hs=String,zs=TypeError,qs=function(t,e,n){try{return Fs(Gs(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}},Ws=xn,Xs=function(t){if("object"==typeof t||Us(t))return t;throw zs("Can't set "+Hs(t)+" as a prototype")},Ys=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=qs(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return Ws(n),Xs(r),e?t(n,r):n.__proto__=r,n}}():void 0),Js=hs,$s=_n,Qs=V,Zs=function(t,e,n,r){var o=e+" Iterator";return t.prototype=Is(Ts,{next:Rs(+!r,n)}),js(t,o,!1),Ns[o]=Ks,t},ta=ws,ea=Ys,na=Ms,ra=fr,oa=Ci,ia=Po,sa=li.PROPER,aa=li.CONFIGURABLE,ua=As.IteratorPrototype,la=As.BUGGY_SAFARI_ITERATORS,ca=Se("iterator"),da="keys",ha="values",fa="entries",pa=function(){return this},va=function(t,e,n,r,o,i,s){Zs(n,e,r);var a,u,l,c=function(t){if(t===o&&v)return v;if(!la&&t in f)return f[t];switch(t){case da:case ha:case fa:return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",h=!1,f=t.prototype,p=f[ca]||f["@@iterator"]||o&&f[o],v=!la&&p||c(o),y="Array"==e&&f.entries||p;if(y&&(a=ta(y.call(new t)))!==Object.prototype&&a.next&&(ta(a)!==ua&&(ea?ea(a,ua):Qs(a[ca])||oa(a,ca,pa)),na(a,d,!0)),sa&&o==ha&&p&&p.name!==ha&&(aa?ra(f,"name",ha):(h=!0,v=function(){return $s(p,this)})),o)if(u={values:c(ha),keys:i?v:c(da),entries:c(fa)},s)for(l in u)(la||h||!(l in f))&&oa(f,l,u[l]);else Js({target:e,proto:!0,forced:la||h},u);return f[ca]!==v&&oa(f,ca,v,{name:o}),ia[e]=v,u},ya=function(t,e){return{value:t,done:e}},ga=Er,ma=xo,ba=Po,Sa=Go,wa=mn.f,ka=va,Ea=ya,Ba=gn,xa="Array Iterator",Pa=Sa.set,La=Sa.getterFor(xa),_a=ka(Array,"Array",(function(t,e){Pa(this,{type:xa,target:ga(t),index:0,kind:e})}),(function(){var t=La(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,Ea(void 0,!0)):Ea("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values"),Oa=ba.Arguments=ba.Array;if(ma("keys"),ma("values"),ma("entries"),Ba&&"values"!==Oa.name)try{wa(Oa,"name",{value:"values"})}catch(t){}var Aa=P,Va=L,Ca=F,Da=_a,Ma=fr,Ta=Se,Ia=Ta("iterator"),Ra=Ta("toStringTag"),ja=Da.values,Na=function(t,e){if(t){if(t[Ia]!==ja)try{Ma(t,Ia,ja)}catch(e){t[Ia]=ja}if(t[Ra]||Ma(t,Ra,e),Va[e])for(var n in Da)if(t[n]!==Da[n])try{Ma(t,n,Da[n])}catch(e){t[n]=Da[n]}}};for(var Ka in Va)Na(Aa[Ka]&&Aa[Ka].prototype,Ka);Na(Ca,"DOMTokenList");var Fa=P;function Ga(){Ga=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,s=Object.create(i.prototype),a=new x(o||[]);return r(s,"_invoke",{value:w(t,n,a)}),s}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(P([])));g&&g!==e&&n.call(g,i)&&(v=g);var m=p.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function o(r,i,s,a){var u=c(t[r],t,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,s,a)}),(function(t){o("throw",t,s,a)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,a)}))}a(u.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return L()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=k(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=c(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(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 B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=p,r(m,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(S.prototype),u(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var s=new S(l(e,n,r,o),i);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},b(m),u(m,a,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=P,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},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 e=this;function r(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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 s=i?i.completion:{};return s.type=t,s.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(s)},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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;B(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Ua(t){return Ua="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},Ua(t)}function Ha(t,e,n,r,o,i,s){try{var a=t[i](s),u=a.value}catch(t){return void n(t)}a.done?e(u):Promise.resolve(u).then(r,o)}function za(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){Ha(i,r,o,s,a,"next",t)}function a(t){Ha(i,r,o,s,a,"throw",t)}s(void 0)}))}}function qa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(o=r.key,i=void 0,"symbol"==typeof(i=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"))?i:String(i)),r)}var o,i}function Xa(t,e,n){return e&&Wa(t.prototype,e),n&&Wa(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ya(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$a(t,e)}function Ja(t){return Ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ja(t)}function $a(t,e){return $a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$a(t,e)}function Qa(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Za(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qa(t)}function tu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ja(t);if(e){var o=Ja(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Za(this,n)}}function eu(t){return function(t){if(Array.isArray(t))return ru(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||nu(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nu(t,e){if(t){if("string"==typeof t)return ru(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(t,e):void 0}}function ru(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ou(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=nu(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var iu=hs,su=Dr.indexOf,au=pn,uu=et([].indexOf),lu=!!uu&&1/uu([1],1,-0)<0;iu({target:"Array",proto:!0,forced:lu||!au("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return lu?uu(this,t,e)||0:su(this,t,e)}});var cu=TypeError,du=Qn,hu=mn,fu=cr,pu=function(t,e,n){var r=du(e);r in t?hu.f(t,r,fu(0,n)):t[r]=n},vu=G,yu=ae,gu=Se("species"),mu=function(t){return yu>=51||!vu((function(){var e=[];return(e.constructor={})[gu]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},bu=hs,Su=G,wu=Mt,ku=M,Eu=Et,Bu=Ct,xu=function(t){if(t>9007199254740991)throw cu("Maximum allowed index exceeded");return t},Pu=pu,Lu=rn,_u=mu,Ou=ae,Au=Se("isConcatSpreadable"),Vu=Ou>=51||!Su((function(){var t=[];return t[Au]=!1,t.concat()[0]!==t})),Cu=function(t){if(!ku(t))return!1;var e=t[Au];return void 0!==e?!!e:wu(t)};bu({target:"Array",proto:!0,arity:1,forced:!Vu||!_u("concat")},{concat:function(t){var e,n,r,o,i,s=Eu(this),a=Lu(s,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Cu(i=-1===e?s:arguments[e]))for(o=Bu(i),xu(u+o),n=0;n<o;n++,u++)n in i&&Pu(a,u,i[n]);else xu(u+1),Pu(a,u++,i);return a.length=u,a}});var Du=gn,Mu=X,Tu=_n,Iu=G,Ru=Hr,ju=Ii,Nu=Ho,Ku=Et,Fu=yt,Gu=Object.assign,Uu=Object.defineProperty,Hu=Mu([].concat),zu=!Gu||Iu((function(){if(Du&&1!==Gu({b:1},Gu(Uu({},"a",{enumerable:!0,get:function(){Uu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=Gu({},t)[n]||Ru(Gu({},e)).join("")!=r}))?function(t,e){for(var n=Ku(t),r=arguments.length,o=1,i=ju.f,s=Nu.f;r>o;)for(var a,u=Fu(arguments[o++]),l=i?Hu(Ru(u),i(u)):Ru(u),c=l.length,d=0;c>d;)a=l[d++],Du&&!Tu(s,u,a)||(n[a]=u[a]);return n}:Gu,qu=zu;hs({target:"Object",stat:!0,arity:2,forced:Object.assign!==qu},{assign:qu});var Wu=Oe,Xu=ke?{}.toString:function(){return"[object "+Wu(this)+"]"};ke||Ci(Object.prototype,"toString",Xu,{unsafe:!0});var Yu,Ju,$u,Qu,Zu="undefined"!=typeof process&&"process"==Q(process),tl=Li,el=mn,nl=function(t,e,n){return n.get&&tl(n.get,e,{getter:!0}),n.set&&tl(n.set,e,{setter:!0}),el.f(t,e,n)},rl=Ce,ol=nl,il=gn,sl=Se("species"),al=function(t){var e=rl(t);il&&e&&!e[sl]&&ol(e,sl,{configurable:!0,get:function(){return this}})},ul=On,ll=TypeError,cl=function(t,e){if(ul(e,t))return t;throw ll("Incorrect invocation")},dl=Je,hl=rt,fl=TypeError,pl=xn,vl=function(t){if(dl(t))return t;throw fl(hl(t)+" is not a constructor")},yl=gt,gl=Se("species"),ml=U,bl=Function.prototype,Sl=bl.apply,wl=bl.call,kl="object"==typeof Reflect&&Reflect.apply||(ml?wl.bind(Sl):function(){return wl.apply(Sl,arguments)}),El=X([].slice),Bl=TypeError,xl=/(?:ipad|iphone|ipod).*applewebkit/i.test(te),Pl=P,Ll=kl,_l=dt,Ol=V,Al=Xt,Vl=G,Cl=Qr,Dl=El,Ml=j,Tl=function(t,e){if(t<e)throw Bl("Not enough arguments");return t},Il=xl,Rl=Zu,jl=Pl.setImmediate,Nl=Pl.clearImmediate,Kl=Pl.process,Fl=Pl.Dispatch,Gl=Pl.Function,Ul=Pl.MessageChannel,Hl=Pl.String,zl=0,ql={},Wl="onreadystatechange";Vl((function(){Yu=Pl.location}));var Xl=function(t){if(Al(ql,t)){var e=ql[t];delete ql[t],e()}},Yl=function(t){return function(){Xl(t)}},Jl=function(t){Xl(t.data)},$l=function(t){Pl.postMessage(Hl(t),Yu.protocol+"//"+Yu.host)};jl&&Nl||(jl=function(t){Tl(arguments.length,1);var e=Ol(t)?t:Gl(t),n=Dl(arguments,1);return ql[++zl]=function(){Ll(e,void 0,n)},Ju(zl),zl},Nl=function(t){delete ql[t]},Rl?Ju=function(t){Kl.nextTick(Yl(t))}:Fl&&Fl.now?Ju=function(t){Fl.now(Yl(t))}:Ul&&!Il?(Qu=($u=new Ul).port2,$u.port1.onmessage=Jl,Ju=_l(Qu.postMessage,Qu)):Pl.addEventListener&&Ol(Pl.postMessage)&&!Pl.importScripts&&Yu&&"file:"!==Yu.protocol&&!Vl($l)?(Ju=$l,Pl.addEventListener("message",Jl,!1)):Ju=Wl in Ml("script")?function(t){Cl.appendChild(Ml("script"))[Wl]=function(){Cl.removeChild(this),Xl(t)}}:function(t){setTimeout(Yl(t),0)});var Ql={set:jl,clear:Nl},Zl=function(){this.head=null,this.tail=null};Zl.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var tc,ec,nc,rc,oc,ic=Zl,sc=/ipad|iphone|ipod/i.test(te)&&"undefined"!=typeof Pebble,ac=/web0s(?!.*chrome)/i.test(te),uc=P,lc=dt,cc=Uo.f,dc=Ql.set,hc=ic,fc=xl,pc=sc,vc=ac,yc=Zu,gc=uc.MutationObserver||uc.WebKitMutationObserver,mc=uc.document,bc=uc.process,Sc=uc.Promise,wc=cc(uc,"queueMicrotask"),kc=wc&&wc.value;if(!kc){var Ec=new hc,Bc=function(){var t,e;for(yc&&(t=bc.domain)&&t.exit();e=Ec.get();)try{e()}catch(t){throw Ec.head&&tc(),t}t&&t.enter()};fc||yc||vc||!gc||!mc?!pc&&Sc&&Sc.resolve?((rc=Sc.resolve(void 0)).constructor=Sc,oc=lc(rc.then,rc),tc=function(){oc(Bc)}):yc?tc=function(){bc.nextTick(Bc)}:(dc=lc(dc,uc),tc=function(){dc(Bc)}):(ec=!0,nc=mc.createTextNode(""),new gc(Bc).observe(nc,{characterData:!0}),tc=function(){nc.data=ec=!ec}),kc=function(t){Ec.head||tc(),Ec.add(t)}}var xc=kc,Pc=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Lc=P.Promise,_c="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Oc=!_c&&!Zu&&"object"==typeof window&&"object"==typeof document,Ac=P,Vc=Lc,Cc=V,Dc=os,Mc=Ie,Tc=Se,Ic=Oc,Rc=_c,jc=ae;Vc&&Vc.prototype;var Nc=Tc("species"),Kc=!1,Fc=Cc(Ac.PromiseRejectionEvent),Gc=Dc("Promise",(function(){var t=Mc(Vc),e=t!==String(Vc);if(!e&&66===jc)return!0;if(!jc||jc<51||!/native code/.test(t)){var n=new Vc((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[Nc]=r,!(Kc=n.then((function(){}))instanceof r))return!0}return!e&&(Ic||Rc)&&!Fc})),Uc={CONSTRUCTOR:Gc,REJECTION_EVENT:Fc,SUBCLASSING:Kc},Hc={},zc=at,qc=TypeError,Wc=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw qc("Bad Promise constructor");e=t,n=r})),this.resolve=zc(e),this.reject=zc(n)};Hc.f=function(t){return new Wc(t)};var Xc,Yc,Jc,$c=hs,Qc=Zu,Zc=P,td=_n,ed=Ci,nd=Ys,rd=Ms,od=al,id=at,sd=V,ad=M,ud=cl,ld=function(t,e){var n,r=pl(t).constructor;return void 0===r||yl(n=pl(r)[gl])?e:vl(n)},cd=Ql.set,dd=xc,hd=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}},fd=Pc,pd=ic,vd=Go,yd=Lc,gd=Hc,md="Promise",bd=Uc.CONSTRUCTOR,Sd=Uc.REJECTION_EVENT,wd=Uc.SUBCLASSING,kd=vd.getterFor(md),Ed=vd.set,Bd=yd&&yd.prototype,xd=yd,Pd=Bd,Ld=Zc.TypeError,_d=Zc.document,Od=Zc.process,Ad=gd.f,Vd=Ad,Cd=!!(_d&&_d.createEvent&&Zc.dispatchEvent),Dd="unhandledrejection",Md=function(t){var e;return!(!ad(t)||!sd(e=t.then))&&e},Td=function(t,e){var n,r,o,i=e.value,s=1==e.state,a=s?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&Kd(e),e.rejection=1),!0===a?n=i:(c&&c.enter(),n=a(i),c&&(c.exit(),o=!0)),n===t.promise?l(Ld("Promise-chain cycle")):(r=Md(n))?td(r,n,u,l):u(n)):l(i)}catch(t){c&&!o&&c.exit(),l(t)}},Id=function(t,e){t.notified||(t.notified=!0,dd((function(){for(var n,r=t.reactions;n=r.get();)Td(n,t);t.notified=!1,e&&!t.rejection&&jd(t)})))},Rd=function(t,e,n){var r,o;Cd?((r=_d.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),Zc.dispatchEvent(r)):r={promise:e,reason:n},!Sd&&(o=Zc["on"+t])?o(r):t===Dd&&hd("Unhandled promise rejection",n)},jd=function(t){td(cd,Zc,(function(){var e,n=t.facade,r=t.value;if(Nd(t)&&(e=fd((function(){Qc?Od.emit("unhandledRejection",r,n):Rd(Dd,n,r)})),t.rejection=Qc||Nd(t)?2:1,e.error))throw e.value}))},Nd=function(t){return 1!==t.rejection&&!t.parent},Kd=function(t){td(cd,Zc,(function(){var e=t.facade;Qc?Od.emit("rejectionHandled",e):Rd("rejectionhandled",e,t.value)}))},Fd=function(t,e,n){return function(r){t(e,r,n)}},Gd=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Id(t,!0))},Ud=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Ld("Promise can't be resolved itself");var r=Md(e);r?dd((function(){var n={done:!1};try{td(r,e,Fd(Ud,n,t),Fd(Gd,n,t))}catch(e){Gd(n,e,t)}})):(t.value=e,t.state=1,Id(t,!1))}catch(e){Gd({done:!1},e,t)}}};if(bd&&(Pd=(xd=function(t){ud(this,Pd),id(t),td(Xc,this);var e=kd(this);try{t(Fd(Ud,e),Fd(Gd,e))}catch(t){Gd(e,t)}}).prototype,(Xc=function(t){Ed(this,{type:md,done:!1,notified:!1,parent:!1,reactions:new pd,rejection:!1,state:0,value:void 0})}).prototype=ed(Pd,"then",(function(t,e){var n=kd(this),r=Ad(ld(this,xd));return n.parent=!0,r.ok=!sd(t)||t,r.fail=sd(e)&&e,r.domain=Qc?Od.domain:void 0,0==n.state?n.reactions.add(r):dd((function(){Td(r,n)})),r.promise})),Yc=function(){var t=new Xc,e=kd(t);this.promise=t,this.resolve=Fd(Ud,e),this.reject=Fd(Gd,e)},gd.f=Ad=function(t){return t===xd||undefined===t?new Yc(t):Vd(t)},sd(yd)&&Bd!==Object.prototype)){Jc=Bd.then,wd||ed(Bd,"then",(function(t,e){var n=this;return new xd((function(t,e){td(Jc,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete Bd.constructor}catch(t){}nd&&nd(Bd,Pd)}$c({global:!0,constructor:!0,wrap:!0,forced:bd},{Promise:xd}),rd(xd,md,!1),od(md);var Hd=Po,zd=Se("iterator"),qd=Array.prototype,Wd=Oe,Xd=Rn,Yd=gt,Jd=Po,$d=Se("iterator"),Qd=function(t){if(!Yd(t))return Xd(t,$d)||Xd(t,"@@iterator")||Jd[Wd(t)]},Zd=_n,th=at,eh=xn,nh=rt,rh=Qd,oh=TypeError,ih=_n,sh=xn,ah=Rn,uh=dt,lh=_n,ch=xn,dh=rt,hh=function(t){return void 0!==t&&(Hd.Array===t||qd[zd]===t)},fh=Ct,ph=On,vh=function(t,e){var n=arguments.length<2?rh(t):e;if(th(n))return eh(Zd(n,t));throw oh(nh(t)+" is not iterable")},yh=Qd,gh=function(t,e,n){var r,o;sh(t);try{if(!(r=ah(t,"return"))){if("throw"===e)throw n;return n}r=ih(r,t)}catch(t){o=!0,r=t}if("throw"===e)throw n;if(o)throw r;return sh(r),n},mh=TypeError,bh=function(t,e){this.stopped=t,this.result=e},Sh=bh.prototype,wh=function(t,e,n){var r,o,i,s,a,u,l,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=uh(e,c),y=function(t){return r&&gh(r,"normal",t),new bh(!0,t)},g=function(t){return d?(ch(t),p?v(t[0],t[1],y):v(t[0],t[1])):p?v(t,y):v(t)};if(h)r=t.iterator;else if(f)r=t;else{if(!(o=yh(t)))throw mh(dh(t)+" is not iterable");if(hh(o)){for(i=0,s=fh(t);s>i;i++)if((a=g(t[i]))&&ph(Sh,a))return a;return new bh(!1)}r=vh(t,o)}for(u=h?t.next:r.next;!(l=lh(u,r)).done;){try{a=g(l.value)}catch(t){gh(r,"throw",t)}if("object"==typeof a&&a&&ph(Sh,a))return a}return new bh(!1)},kh=Se("iterator"),Eh=!1;try{var Bh=0,xh={next:function(){return{done:!!Bh++}},return:function(){Eh=!0}};xh[kh]=function(){return this},Array.from(xh,(function(){throw 2}))}catch(t){}var Ph=function(t,e){if(!e&&!Eh)return!1;var n=!1;try{var r={};r[kh]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},Lh=Lc,_h=Uc.CONSTRUCTOR||!Ph((function(t){Lh.all(t).then(void 0,(function(){}))})),Oh=_n,Ah=at,Vh=Hc,Ch=Pc,Dh=wh;hs({target:"Promise",stat:!0,forced:_h},{all:function(t){var e=this,n=Vh.f(e),r=n.resolve,o=n.reject,i=Ch((function(){var n=Ah(e.resolve),i=[],s=0,a=1;Dh(t,(function(t){var u=s++,l=!1;a++,Oh(n,e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Mh=hs,Th=Uc.CONSTRUCTOR,Ih=Lc,Rh=Ce,jh=V,Nh=Ci,Kh=Ih&&Ih.prototype;if(Mh({target:"Promise",proto:!0,forced:Th,real:!0},{catch:function(t){return this.then(void 0,t)}}),jh(Ih)){var Fh=Rh("Promise").prototype.catch;Kh.catch!==Fh&&Nh(Kh,"catch",Fh,{unsafe:!0})}var Gh=_n,Uh=at,Hh=Hc,zh=Pc,qh=wh;hs({target:"Promise",stat:!0,forced:_h},{race:function(t){var e=this,n=Hh.f(e),r=n.reject,o=zh((function(){var o=Uh(e.resolve);qh(t,(function(t){Gh(o,e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Wh=_n,Xh=Hc;hs({target:"Promise",stat:!0,forced:Uc.CONSTRUCTOR},{reject:function(t){var e=Xh.f(this);return Wh(e.reject,void 0,t),e.promise}});var Yh=xn,Jh=M,$h=Hc,Qh=hs,Zh=Uc.CONSTRUCTOR,tf=function(t,e){if(Yh(t),Jh(e)&&e.constructor===t)return e;var n=$h.f(t);return(0,n.resolve)(e),n.promise};Ce("Promise"),Qh({target:"Promise",stat:!0,forced:Zh},{resolve:function(t){return tf(this,t)}});var ef,nf,rf=Oe,of=String,sf=function(t){if("Symbol"===rf(t))throw TypeError("Cannot convert a Symbol value to a string");return of(t)},af=xn,uf=function(){var t=af(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},lf=G,cf=P.RegExp,df=lf((function(){var t=cf("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),hf=df||lf((function(){return!cf("a","y").sticky})),ff={BROKEN_CARET:df||lf((function(){var t=cf("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:hf,UNSUPPORTED_Y:df},pf=G,vf=P.RegExp,yf=pf((function(){var t=vf(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),gf=G,mf=P.RegExp,bf=gf((function(){var t=mf("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Sf=_n,wf=X,kf=sf,Ef=uf,Bf=ff,xf=yo,Pf=Go.get,Lf=yf,_f=bf,Of=zt("native-string-replace",String.prototype.replace),Af=RegExp.prototype.exec,Vf=Af,Cf=wf("".charAt),Df=wf("".indexOf),Mf=wf("".replace),Tf=wf("".slice),If=(nf=/b*/g,Sf(Af,ef=/a/,"a"),Sf(Af,nf,"a"),0!==ef.lastIndex||0!==nf.lastIndex),Rf=Bf.BROKEN_CARET,jf=void 0!==/()??/.exec("")[1];(If||jf||Rf||Lf||_f)&&(Vf=function(t){var e,n,r,o,i,s,a,u=this,l=Pf(u),c=kf(t),d=l.raw;if(d)return d.lastIndex=u.lastIndex,e=Sf(Vf,d,c),u.last