@seontechnologies/seon-javascript-sdk
Version:
SEON JavaScript SDK for collecting session and device data
1 lines • 655 kB
JavaScript
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(r="undefined"!=typeof globalThis?globalThis:r||self).seon=t()}(this,(function(){"use strict";function r(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=Array(t);n<t;n++)e[n]=r[n];return e}function t(r,t,n,e,i,o,u){try{var a=r[o](u),v=a.value}catch(r){return void n(r)}a.done?t(v):Promise.resolve(v).then(e,i)}function n(r){return function(){var n=this,e=arguments;return new Promise((function(i,o){var u=r.apply(n,e);function a(r){t(u,i,o,a,v,"next",r)}function v(r){t(u,i,o,a,v,"throw",r)}a(void 0)}))}}function e(r,t,n){return t=v(t),function(r,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,c()?Reflect.construct(t,n||[],v(r).constructor):t.apply(r,n))}function i(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function o(r,t,n){return t&&function(r,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,C(e.key),e)}}(r.prototype,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function u(r,t){var n="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=z(r))||t){n&&(r=n);var e=0,i=function(){};return{s:i,n:function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]}},e:function(r){throw r},f:i}}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 o,u=!0,a=!1;return{s:function(){n=n.call(r)},n:function(){var r=n.next();return u=r.done,r},e:function(r){a=!0,o=r},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}function a(r,t,n){return(t=C(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function v(r){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},v(r)}function f(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&l(r,t)}function c(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(r){}return(c=function(){return!!r})()}function h(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.push.apply(n,e)}return n}function s(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){a(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}function w(){w=function(){return t};var r,t={},n=Object.prototype,e=n.hasOwnProperty,i=Object.defineProperty||function(r,t,n){r[t]=n.value},o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",v=o.toStringTag||"@@toStringTag";function f(r,t,n){return Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{f({},"")}catch(r){f=function(r,t,n){return r[t]=n}}function c(r,t,n,e){var o=t&&t.prototype instanceof B?t:B,u=Object.create(o.prototype),a=new H(e||[]);return i(u,"_invoke",{value:U(r,n,a)}),u}function h(r,t,n){try{return{type:"normal",arg:r.call(t,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=c;var s="suspendedStart",l="suspendedYield",g="executing",y="completed",C={};function B(){}function z(){}function d(){}var M={};f(M,u,(function(){return this}));var D=Object.getPrototypeOf,L=D&&D(D(Y([])));L&&L!==n&&e.call(L,u)&&(M=L);var x=d.prototype=B.prototype=Object.create(M);function p(r){["next","throw","return"].forEach((function(t){f(r,t,(function(r){return this._invoke(t,r)}))}))}function A(r,t){function n(i,o,u,a){var v=h(r[i],r,o);if("throw"!==v.type){var f=v.arg,c=f.value;return c&&"object"==typeof c&&e.call(c,"__await")?t.resolve(c.__await).then((function(r){n("next",r,u,a)}),(function(r){n("throw",r,u,a)})):t.resolve(c).then((function(r){f.value=r,u(f)}),(function(r){return n("throw",r,u,a)}))}a(v.arg)}var o;i(this,"_invoke",{value:function(r,e){function i(){return new t((function(t,i){n(r,e,t,i)}))}return o=o?o.then(i,i):i()}})}function U(t,n,e){var i=s;return function(o,u){if(i===g)throw Error("Generator is already running");if(i===y){if("throw"===o)throw u;return{value:r,done:!0}}for(e.method=o,e.arg=u;;){var a=e.delegate;if(a){var v=S(a,e);if(v){if(v===C)continue;return v}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(i===s)throw i=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);i=g;var f=h(t,n,e);if("normal"===f.type){if(i=e.done?y:l,f.arg===C)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(i=y,e.method="throw",e.arg=f.arg)}}}function S(t,n){var e=n.method,i=t.iterator[e];if(i===r)return n.delegate=null,"throw"===e&&t.iterator.return&&(n.method="return",n.arg=r,S(t,n),"throw"===n.method)||"return"!==e&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+e+"' method")),C;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,C;var u=o.arg;return u?u.done?(n[t.resultName]=u.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=r),n.delegate=null,C):u:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,C)}function j(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function b(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function H(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(j,this),this.reset(!0)}function Y(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(e.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=r,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return z.prototype=d,i(x,"constructor",{value:d,configurable:!0}),i(d,"constructor",{value:z,configurable:!0}),z.displayName=f(d,v,"GeneratorFunction"),t.isGeneratorFunction=function(r){var t="function"==typeof r&&r.constructor;return!!t&&(t===z||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,d):(r.__proto__=d,f(r,v,"GeneratorFunction")),r.prototype=Object.create(x),r},t.awrap=function(r){return{__await:r}},p(A.prototype),f(A.prototype,a,(function(){return this})),t.AsyncIterator=A,t.async=function(r,n,e,i,o){void 0===o&&(o=Promise);var u=new A(c(r,n,e,i),o);return t.isGeneratorFunction(n)?u:u.next().then((function(r){return r.done?r.value:u.next()}))},p(x),f(x,v,"Generator"),f(x,u,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),t.keys=function(r){var t=Object(r),n=[];for(var e in t)n.push(e);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=Y,H.prototype={constructor:H,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(b),!t)for(var n in this)"t"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(e,i){return a.type="throw",a.arg=t,n.next=e,i&&(n.method="next",n.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var v=e.call(u,"catchLoc"),f=e.call(u,"finallyLoc");if(v&&f){if(this.prev<u.catchLoc)return i(u.catchLoc,!0);if(this.prev<u.finallyLoc)return i(u.finallyLoc)}else if(v){if(this.prev<u.catchLoc)return i(u.catchLoc,!0)}else{if(!f)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return i(u.finallyLoc)}}}},abrupt:function(r,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===r||"continue"===r)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=r,u.arg=t,o?(this.method="next",this.next=o.finallyLoc,C):this.complete(u)},complete:function(r,t){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&t&&(this.next=t),C},finish:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===r)return this.complete(n.completion,n.afterLoc),b(n),C}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===r){var e=n.completion;if("throw"===e.type){var i=e.arg;b(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,e){return this.delegate={iterator:Y(t),resultName:n,nextLoc:e},"next"===this.method&&(this.arg=r),C}},t}function l(r,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,t){return r.__proto__=t,r},l(r,t)}function g(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=n){var e,i,o,u,a=[],v=!0,f=!1;try{if(o=(n=n.call(r)).next,0===t){if(Object(n)!==n)return;v=!1}else for(;!(v=(e=o.call(n)).done)&&(a.push(e.value),a.length!==t);v=!0);}catch(r){f=!0,i=r}finally{try{if(!v&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw i}}return a}}(r,t)||z(r,t)||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.")}()}function y(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(t)||z(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 C(r){var t=function(r,t){if("object"!=typeof r||!r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var e=n.call(r,t||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"==typeof t?t:t+""}function B(r){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},B(r)}function z(t,n){if(t){if("string"==typeof t)return r(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}function d(r){var t="function"==typeof Map?new Map:void 0;return d=function(r){if(null===r||!function(r){try{return-1!==Function.toString.call(r).indexOf("[native code]")}catch(t){return"function"==typeof r}}(r))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return function(r,t,n){if(c())return Reflect.construct.apply(null,arguments);var e=[null];e.push.apply(e,t);var i=new(r.bind.apply(r,e));return n&&l(i,n.prototype),i}(r,arguments,v(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,r)},d(r)}var M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var L=function(r){return r&&r.Math===Math&&r},x=L("object"==typeof globalThis&&globalThis)||L("object"==typeof window&&window)||L("object"==typeof self&&self)||L("object"==typeof M&&M)||L("object"==typeof M&&M)||function(){return this}()||Function("return this")(),p={},A=function(r){try{return!!r()}catch(r){return!0}},U=!A((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),S=!A((function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})),j=S,b=Function.prototype.call,H=j?b.bind(b):function(){return b.apply(b,arguments)},Y={},m={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,q=P&&!m.call({1:2},1);Y.f=q?function(r){var t=P(this,r);return!!t&&t.enumerable}:m;var N,K,O=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}},V=S,T=Function.prototype,W=T.call,I=V&&T.bind.bind(W,W),G=V?I:function(r){return function(){return W.apply(r,arguments)}},k=G,J=k({}.toString),Z=k("".slice),X=function(r){return Z(J(r),8,-1)},R=A,E=X,F=Object,Q=G("".split),_=R((function(){return!F("z").propertyIsEnumerable(0)}))?function(r){return"String"===E(r)?Q(r,""):F(r)}:F,$=function(r){return null==r},rr=$,tr=TypeError,nr=function(r){if(rr(r))throw new tr("Can't call method on "+r);return r},er=_,ir=nr,or=function(r){return er(ir(r))},ur="object"==typeof document&&document.all,ar=void 0===ur&&void 0!==ur?function(r){return"function"==typeof r||r===ur}:function(r){return"function"==typeof r},vr=ar,fr=function(r){return"object"==typeof r?null!==r:vr(r)},cr=x,hr=ar,sr=function(r,t){return arguments.length<2?(n=cr[r],hr(n)?n:void 0):cr[r]&&cr[r][t];var n},wr=G({}.isPrototypeOf),lr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",gr=x,yr=lr,Cr=gr.process,Br=gr.Deno,zr=Cr&&Cr.versions||Br&&Br.version,dr=zr&&zr.v8;dr&&(K=(N=dr.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!K&&yr&&(!(N=yr.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=yr.match(/Chrome\/(\d+)/))&&(K=+N[1]);var Mr=K,Dr=Mr,Lr=A,xr=x.String,pr=!!Object.getOwnPropertySymbols&&!Lr((function(){var r=Symbol("symbol detection");return!xr(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&Dr&&Dr<41})),Ar=pr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ur=sr,Sr=ar,jr=wr,br=Object,Hr=Ar?function(r){return"symbol"==typeof r}:function(r){var t=Ur("Symbol");return Sr(t)&&jr(t.prototype,br(r))},Yr=String,mr=function(r){try{return Yr(r)}catch(r){return"Object"}},Pr=ar,qr=mr,Nr=TypeError,Kr=function(r){if(Pr(r))return r;throw new Nr(qr(r)+" is not a function")},Or=Kr,Vr=$,Tr=function(r,t){var n=r[t];return Vr(n)?void 0:Or(n)},Wr=H,Ir=ar,Gr=fr,kr=TypeError,Jr={exports:{}},Zr=x,Xr=Object.defineProperty,Rr=function(r,t){try{Xr(Zr,r,{value:t,configurable:!0,writable:!0})}catch(n){Zr[r]=t}return t},Er=x,Fr=Rr,Qr="__core-js_shared__",_r=Jr.exports=Er[Qr]||Fr(Qr,{});(_r.versions||(_r.versions=[])).push({});var $r=Jr.exports,rt=$r,tt=function(r,t){return rt[r]||(rt[r]=t||{})},nt=nr,et=Object,it=function(r){return et(nt(r))},ot=it,ut=G({}.hasOwnProperty),at=Object.hasOwn||function(r,t){return ut(ot(r),t)},vt=G,ft=0,ct=Math.random(),ht=vt(1..toString),st=function(r){return"Symbol("+(void 0===r?"":r)+")_"+ht(++ft+ct,36)},wt=tt,lt=at,gt=st,yt=pr,Ct=Ar,Bt=x.Symbol,zt=wt("wks"),dt=Ct?Bt.for||Bt:Bt&&Bt.withoutSetter||gt,Mt=function(r){return lt(zt,r)||(zt[r]=yt&<(Bt,r)?Bt[r]:dt("Symbol."+r)),zt[r]},Dt=H,Lt=fr,xt=Hr,pt=Tr,At=function(r,t){var n,e;if("string"===t&&Ir(n=r.toString)&&!Gr(e=Wr(n,r)))return e;if(Ir(n=r.valueOf)&&!Gr(e=Wr(n,r)))return e;if("string"!==t&&Ir(n=r.toString)&&!Gr(e=Wr(n,r)))return e;throw new kr("Can't convert object to primitive value")},Ut=TypeError,St=Mt("toPrimitive"),jt=function(r,t){if(!Lt(r)||xt(r))return r;var n,e=pt(r,St);if(e){if(void 0===t&&(t="default"),n=Dt(e,r,t),!Lt(n)||xt(n))return n;throw new Ut("Can't convert object to primitive value")}return void 0===t&&(t="number"),At(r,t)},bt=jt,Ht=Hr,Yt=function(r){var t=bt(r,"string");return Ht(t)?t:t+""},mt=fr,Pt=x.document,qt=mt(Pt)&&mt(Pt.createElement),Nt=function(r){return qt?Pt.createElement(r):{}},Kt=Nt,Ot=!U&&!A((function(){return 7!==Object.defineProperty(Kt("div"),"a",{get:function(){return 7}}).a})),Vt=U,Tt=H,Wt=Y,It=O,Gt=or,kt=Yt,Jt=at,Zt=Ot,Xt=Object.getOwnPropertyDescriptor;p.f=Vt?Xt:function(r,t){if(r=Gt(r),t=kt(t),Zt)try{return Xt(r,t)}catch(r){}if(Jt(r,t))return It(!Tt(Wt.f,r,t),r[t])};var Rt={},Et=U&&A((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ft=fr,Qt=String,_t=TypeError,$t=function(r){if(Ft(r))return r;throw new _t(Qt(r)+" is not an object")},rn=U,tn=Ot,nn=Et,en=$t,on=Yt,un=TypeError,an=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,fn="enumerable",cn="configurable",hn="writable";Rt.f=rn?nn?function(r,t,n){if(en(r),t=on(t),en(n),"function"==typeof r&&"prototype"===t&&"value"in n&&hn in n&&!n[hn]){var e=vn(r,t);e&&e[hn]&&(r[t]=n.value,n={configurable:cn in n?n[cn]:e[cn],enumerable:fn in n?n[fn]:e[fn],writable:!1})}return an(r,t,n)}:an:function(r,t,n){if(en(r),t=on(t),en(n),tn)try{return an(r,t,n)}catch(r){}if("get"in n||"set"in n)throw new un("Accessors not supported");return"value"in n&&(r[t]=n.value),r};var sn=Rt,wn=O,ln=U?function(r,t,n){return sn.f(r,t,wn(1,n))}:function(r,t,n){return r[t]=n,r},gn={exports:{}},yn=U,Cn=at,Bn=Function.prototype,zn=yn&&Object.getOwnPropertyDescriptor,dn=Cn(Bn,"name"),Mn={EXISTS:dn,PROPER:dn&&"something"===function(){}.name,CONFIGURABLE:dn&&(!yn||yn&&zn(Bn,"name").configurable)},Dn=ar,Ln=$r,xn=G(Function.toString);Dn(Ln.inspectSource)||(Ln.inspectSource=function(r){return xn(r)});var pn,An,Un,Sn=Ln.inspectSource,jn=ar,bn=x.WeakMap,Hn=jn(bn)&&/native code/.test(String(bn)),Yn=st,mn=tt("keys"),Pn=function(r){return mn[r]||(mn[r]=Yn(r))},qn={},Nn=Hn,Kn=x,On=fr,Vn=ln,Tn=at,Wn=$r,In=Pn,Gn=qn,kn="Object already initialized",Jn=Kn.TypeError,Zn=Kn.WeakMap;if(Nn||Wn.state){var Xn=Wn.state||(Wn.state=new Zn);Xn.get=Xn.get,Xn.has=Xn.has,Xn.set=Xn.set,pn=function(r,t){if(Xn.has(r))throw new Jn(kn);return t.facade=r,Xn.set(r,t),t},An=function(r){return Xn.get(r)||{}},Un=function(r){return Xn.has(r)}}else{var Rn=In("state");Gn[Rn]=!0,pn=function(r,t){if(Tn(r,Rn))throw new Jn(kn);return t.facade=r,Vn(r,Rn,t),t},An=function(r){return Tn(r,Rn)?r[Rn]:{}},Un=function(r){return Tn(r,Rn)}}var En={set:pn,get:An,has:Un,enforce:function(r){return Un(r)?An(r):pn(r,{})},getterFor:function(r){return function(t){var n;if(!On(t)||(n=An(t)).type!==r)throw new Jn("Incompatible receiver, "+r+" required");return n}}},Fn=G,Qn=A,_n=ar,$n=at,re=U,te=Mn.CONFIGURABLE,ne=Sn,ee=En.enforce,ie=En.get,oe=String,ue=Object.defineProperty,ae=Fn("".slice),ve=Fn("".replace),fe=Fn([].join),ce=re&&!Qn((function(){return 8!==ue((function(){}),"length",{value:8}).length})),he=String(String).split("String"),se=gn.exports=function(r,t,n){"Symbol("===ae(oe(t),0,7)&&(t="["+ve(oe(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!$n(r,"name")||te&&r.name!==t)&&(re?ue(r,"name",{value:t,configurable:!0}):r.name=t),ce&&n&&$n(n,"arity")&&r.length!==n.arity&&ue(r,"length",{value:n.arity});try{n&&$n(n,"constructor")&&n.constructor?re&&ue(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var e=ee(r);return $n(e,"source")||(e.source=fe(he,"string"==typeof t?t:"")),r};Function.prototype.toString=se((function(){return _n(this)&&ie(this).source||ne(this)}),"toString");var we=gn.exports,le=ar,ge=Rt,ye=we,Ce=Rr,Be=function(r,t,n,e){e||(e={});var i=e.enumerable,o=void 0!==e.name?e.name:t;if(le(n)&&ye(n,o,e),e.global)i?r[t]=n:Ce(t,n);else{try{e.unsafe?r[t]&&(i=!0):delete r[t]}catch(r){}i?r[t]=n:ge.f(r,t,{value:n,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return r},ze={},de=Math.ceil,Me=Math.floor,De=Math.trunc||function(r){var t=+r;return(t>0?Me:de)(t)},Le=function(r){var t=+r;return t!=t||0===t?0:De(t)},xe=Le,pe=Math.max,Ae=Math.min,Ue=function(r,t){var n=xe(r);return n<0?pe(n+t,0):Ae(n,t)},Se=Le,je=Math.min,be=function(r){var t=Se(r);return t>0?je(t,9007199254740991):0},He=be,Ye=function(r){return He(r.length)},me=or,Pe=Ue,qe=Ye,Ne=function(r){return function(t,n,e){var i=me(t),o=qe(i);if(0===o)return!r&&-1;var u,a=Pe(e,o);if(r&&n!=n){for(;o>a;)if((u=i[a++])!=u)return!0}else for(;o>a;a++)if((r||a in i)&&i[a]===n)return r||a||0;return!r&&-1}},Ke={includes:Ne(!0),indexOf:Ne(!1)},Oe=at,Ve=or,Te=Ke.indexOf,We=qn,Ie=G([].push),Ge=function(r,t){var n,e=Ve(r),i=0,o=[];for(n in e)!Oe(We,n)&&Oe(e,n)&&Ie(o,n);for(;t.length>i;)Oe(e,n=t[i++])&&(~Te(o,n)||Ie(o,n));return o},ke=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Je=Ge,Ze=ke.concat("length","prototype");ze.f=Object.getOwnPropertyNames||function(r){return Je(r,Ze)};var Xe={};Xe.f=Object.getOwnPropertySymbols;var Re=sr,Ee=ze,Fe=Xe,Qe=$t,_e=G([].concat),$e=Re("Reflect","ownKeys")||function(r){var t=Ee.f(Qe(r)),n=Fe.f;return n?_e(t,n(r)):t},ri=at,ti=$e,ni=p,ei=Rt,ii=function(r,t,n){for(var e=ti(t),i=ei.f,o=ni.f,u=0;u<e.length;u++){var a=e[u];ri(r,a)||n&&ri(n,a)||i(r,a,o(t,a))}},oi=A,ui=ar,ai=/#|\.prototype\./,vi=function(r,t){var n=ci[fi(r)];return n===si||n!==hi&&(ui(t)?oi(t):!!t)},fi=vi.normalize=function(r){return String(r).replace(ai,".").toLowerCase()},ci=vi.data={},hi=vi.NATIVE="N",si=vi.POLYFILL="P",wi=vi,li=x,gi=p.f,yi=ln,Ci=Be,Bi=Rr,zi=ii,di=wi,Mi=function(r,t){var n,e,i,o,u,a=r.target,v=r.global,f=r.stat;if(n=v?li:f?li[a]||Bi(a,{}):li[a]&&li[a].prototype)for(e in t){if(o=t[e],i=r.dontCallGetSet?(u=gi(n,e))&&u.value:n[e],!di(v?e:a+(f?".":"#")+e,r.forced)&&void 0!==i){if(typeof o==typeof i)continue;zi(o,i)}(r.sham||i&&i.sham)&&yi(o,"sham",!0),Ci(n,e,o,r)}},Di=X,Li=Array.isArray||function(r){return"Array"===Di(r)},xi=TypeError,pi=function(r){if(r>9007199254740991)throw xi("Maximum allowed index exceeded");return r},Ai=U,Ui=Rt,Si=O,ji=function(r,t,n){Ai?Ui.f(r,t,Si(0,n)):r[t]=n},bi={};bi[Mt("toStringTag")]="z";var Hi="[object z]"===String(bi),Yi=Hi,mi=ar,Pi=X,qi=Mt("toStringTag"),Ni=Object,Ki="Arguments"===Pi(function(){return arguments}()),Oi=Yi?Pi:function(r){var t,n,e;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(n=function(r,t){try{return r[t]}catch(r){}}(t=Ni(r),qi))?n:Ki?Pi(t):"Object"===(e=Pi(t))&&mi(t.callee)?"Arguments":e},Vi=G,Ti=A,Wi=ar,Ii=Oi,Gi=Sn,ki=function(){},Ji=sr("Reflect","construct"),Zi=/^\s*(?:class|function)\b/,Xi=Vi(Zi.exec),Ri=!Zi.test(ki),Ei=function(r){if(!Wi(r))return!1;try{return Ji(ki,[],r),!0}catch(r){return!1}},Fi=function(r){if(!Wi(r))return!1;switch(Ii(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Ri||!!Xi(Zi,Gi(r))}catch(r){return!0}};Fi.sham=!0;var Qi=!Ji||Ti((function(){var r;return Ei(Ei.call)||!Ei(Object)||!Ei((function(){r=!0}))||r}))?Fi:Ei,_i=Li,$i=Qi,ro=fr,to=Mt("species"),no=Array,eo=function(r){var t;return _i(r)&&(t=r.constructor,($i(t)&&(t===no||_i(t.prototype))||ro(t)&&null===(t=t[to]))&&(t=void 0)),void 0===t?no:t},io=function(r,t){return new(eo(r))(0===t?0:t)},oo=A,uo=Mr,ao=Mt("species"),vo=function(r){return uo>=51||!oo((function(){var t=[];return(t.constructor={})[ao]=function(){return{foo:1}},1!==t[r](Boolean).foo}))},fo=Mi,co=A,ho=Li,so=fr,wo=it,lo=Ye,go=pi,yo=ji,Co=io,Bo=vo,zo=Mr,Mo=Mt("isConcatSpreadable"),Do=zo>=51||!co((function(){var r=[];return r[Mo]=!1,r.concat()[0]!==r})),Lo=function(r){if(!so(r))return!1;var t=r[Mo];return void 0!==t?!!t:ho(r)};fo({target:"Array",proto:!0,arity:1,forced:!Do||!Bo("concat")},{concat:function(r){var t,n,e,i,o,u=wo(this),a=Co(u,0),v=0;for(t=-1,e=arguments.length;t<e;t++)if(Lo(o=-1===t?u:arguments[t]))for(i=lo(o),go(v+i),n=0;n<i;n++,v++)n in o&&yo(a,v,o[n]);else go(v+1),yo(a,v++,o);return a.length=v,a}});var xo=X,po=G,Ao=function(r){if("Function"===xo(r))return po(r)},Uo=Kr,So=S,jo=Ao(Ao.bind),bo=function(r,t){return Uo(r),void 0===t?r:So?jo(r,t):function(){return r.apply(t,arguments)}},Ho=bo,Yo=_,mo=it,Po=Ye,qo=io,No=G([].push),Ko=function(r){var t=1===r,n=2===r,e=3===r,i=4===r,o=6===r,u=7===r,a=5===r||o;return function(v,f,c,h){for(var s,w,l=mo(v),g=Yo(l),y=Po(g),C=Ho(f,c),B=0,z=h||qo,d=t?z(v,y):n||u?z(v,0):void 0;y>B;B++)if((a||B in g)&&(w=C(s=g[B],B,l),r))if(t)d[B]=w;else if(w)switch(r){case 3:return!0;case 5:return s;case 6:return B;case 2:No(d,s)}else switch(r){case 4:return!1;case 7:No(d,s)}return o?-1:e||i?i:d}},Oo={forEach:Ko(0),map:Ko(1),filter:Ko(2),some:Ko(3),every:Ko(4),find:Ko(5),findIndex:Ko(6),filterReject:Ko(7)},Vo=Oo.filter;Mi({target:"Array",proto:!0,forced:!vo("filter")},{filter:function(r){return Vo(this,r,arguments.length>1?arguments[1]:void 0)}});var To=Li,Wo=Ye,Io=pi,Go=bo,ko=function(r,t,n,e,i,o,u,a){for(var v,f,c=i,h=0,s=!!u&&Go(u,a);h<e;)h in n&&(v=s?s(n[h],h,t):n[h],o>0&&To(v)?(f=Wo(v),c=ko(r,t,v,f,c,o-1)-1):(Io(c+1),r[c]=v),c++),h++;return c},Jo=ko,Zo=Jo,Xo=it,Ro=Ye,Eo=Le,Fo=io;Mi({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=Xo(this),n=Ro(t),e=Fo(t,0);return e.length=Zo(e,t,t,n,0,void 0===r?1:Eo(r)),e}});var Qo={},_o=Ge,$o=ke,ru=Object.keys||function(r){return _o(r,$o)},tu=U,nu=Et,eu=Rt,iu=$t,ou=or,uu=ru;Qo.f=tu&&!nu?Object.defineProperties:function(r,t){iu(r);for(var n,e=ou(t),i=uu(t),o=i.length,u=0;o>u;)eu.f(r,n=i[u++],e[n]);return r};var au,vu=sr("document","documentElement"),fu=$t,cu=Qo,hu=ke,su=qn,wu=vu,lu=Nt,gu="prototype",yu="script",Cu=Pn("IE_PROTO"),Bu=function(){},zu=function(r){return"<"+yu+">"+r+"</"+yu+">"},du=function(r){r.write(zu("")),r.close();var t=r.parentWindow.Object;return r=null,t},Mu=function(){try{au=new ActiveXObject("htmlfile")}catch(r){}var r,t,n;Mu="undefined"!=typeof document?document.domain&&au?du(au):(t=lu("iframe"),n="java"+yu+":",t.style.display="none",wu.appendChild(t),t.src=String(n),(r=t.contentWindow.document).open(),r.write(zu("document.F=Object")),r.close(),r.F):du(au);for(var e=hu.length;e--;)delete Mu[gu][hu[e]];return Mu()};su[Cu]=!0;var Du=Object.create||function(r,t){var n;return null!==r?(Bu[gu]=fu(r),n=new Bu,Bu[gu]=null,n[Cu]=r):n=Mu(),void 0===t?n:cu.f(n,t)},Lu=Mt,xu=Du,pu=Rt.f,Au=Lu("unscopables"),Uu=Array.prototype;void 0===Uu[Au]&&pu(Uu,Au,{configurable:!0,value:xu(null)});var Su=function(r){Uu[Au][r]=!0},ju=Ke.includes,bu=Su;Mi({target:"Array",proto:!0,forced:A((function(){return!Array(1).includes()}))},{includes:function(r){return ju(this,r,arguments.length>1?arguments[1]:void 0)}}),bu("includes");var Hu,Yu,mu,Pu={},qu=!A((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})),Nu=at,Ku=ar,Ou=it,Vu=qu,Tu=Pn("IE_PROTO"),Wu=Object,Iu=Wu.prototype,Gu=Vu?Wu.getPrototypeOf:function(r){var t=Ou(r);if(Nu(t,Tu))return t[Tu];var n=t.constructor;return Ku(n)&&t instanceof n?n.prototype:t instanceof Wu?Iu:null},ku=A,Ju=ar,Zu=fr,Xu=Gu,Ru=Be,Eu=Mt("iterator"),Fu=!1;[].keys&&("next"in(mu=[].keys())?(Yu=Xu(Xu(mu)))!==Object.prototype&&(Hu=Yu):Fu=!0);var Qu=!Zu(Hu)||ku((function(){var r={};return Hu[Eu].call(r)!==r}));Qu&&(Hu={}),Ju(Hu[Eu])||Ru(Hu,Eu,(function(){return this}));var _u={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:Fu},$u=Rt.f,ra=at,ta=Mt("toStringTag"),na=function(r,t,n){r&&!n&&(r=r.prototype),r&&!ra(r,ta)&&$u(r,ta,{configurable:!0,value:t})},ea=_u.IteratorPrototype,ia=Du,oa=O,ua=na,aa=Pu,va=function(){return this},fa=function(r,t,n,e){var i=t+" Iterator";return r.prototype=ia(ea,{next:oa(+!e,n)}),ua(r,i,!1),aa[i]=va,r},ca=G,ha=Kr,sa=fr,wa=function(r){return sa(r)||null===r},la=String,ga=TypeError,ya=function(r,t,n){try{return ca(ha(Object.getOwnPropertyDescriptor(r,t)[n]))}catch(r){}},Ca=fr,Ba=nr,za=function(r){if(wa(r))return r;throw new ga("Can't set "+la(r)+" as a prototype")},da=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,n={};try{(r=ya(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(r){}return function(n,e){return Ba(n),za(e),Ca(n)?(t?r(n,e):n.__proto__=e,n):n}}():void 0),Ma=Mi,Da=H,La=ar,xa=fa,pa=Gu,Aa=da,Ua=na,Sa=ln,ja=Be,ba=Pu,Ha=Mn.PROPER,Ya=Mn.CONFIGURABLE,ma=_u.IteratorPrototype,Pa=_u.BUGGY_SAFARI_ITERATORS,qa=Mt("iterator"),Na="keys",Ka="values",Oa="entries",Va=function(){return this},Ta=function(r,t,n,e,i,o,u){xa(n,t,e);var a,v,f,c=function(r){if(r===i&&g)return g;if(!Pa&&r&&r in w)return w[r];switch(r){case Na:case Ka:case Oa:return function(){return new n(this,r)}}return function(){return new n(this)}},h=t+" Iterator",s=!1,w=r.prototype,l=w[qa]||w["@@iterator"]||i&&w[i],g=!Pa&&l||c(i),y="Array"===t&&w.entries||l;if(y&&(a=pa(y.call(new r)))!==Object.prototype&&a.next&&(pa(a)!==ma&&(Aa?Aa(a,ma):La(a[qa])||ja(a,qa,Va)),Ua(a,h,!0)),Ha&&i===Ka&&l&&l.name!==Ka&&(Ya?Sa(w,"name",Ka):(s=!0,g=function(){return Da(l,this)})),i)if(v={values:c(Ka),keys:o?g:c(Na),entries:c(Oa)},u)for(f in v)(Pa||s||!(f in w))&&ja(w,f,v[f]);else Ma({target:t,proto:!0,forced:Pa||s},v);return w[qa]!==g&&ja(w,qa,g,{name:i}),ba[t]=g,v},Wa=function(r,t){return{value:r,done:t}},Ia=or,Ga=Su,ka=Pu,Ja=En,Za=Rt.f,Xa=Ta,Ra=Wa,Ea=U,Fa="Array Iterator",Qa=Ja.set,_a=Ja.getterFor(Fa),$a=Xa(Array,"Array",(function(r,t){Qa(this,{type:Fa,target:Ia(r),index:0,kind:t})}),(function(){var r=_a(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=void 0,Ra(void 0,!0);switch(r.kind){case"keys":return Ra(n,!1);case"values":return Ra(t[n],!1)}return Ra([n,t[n]],!1)}),"values"),rv=ka.Arguments=ka.Array;if(Ga("keys"),Ga("values"),Ga("entries"),Ea&&"values"!==rv.name)try{Za(rv,"name",{value:"values"})}catch(r){}var tv=A,nv=function(r,t){var n=[][r];return!!n&&tv((function(){n.call(null,t||function(){return 1},1)}))},ev=Mi,iv=_,ov=or,uv=nv,av=G([].join);ev({target:"Array",proto:!0,forced:iv!==Object||!uv("join",",")},{join:function(r){return av(ov(this),void 0===r?",":r)}});var vv=Oo.map;Mi({target:"Array",proto:!0,forced:!vo("map")},{map:function(r){return vv(this,r,arguments.length>1?arguments[1]:void 0)}});var fv=Kr,cv=it,hv=_,sv=Ye,wv=TypeError,lv="Reduce of empty array with no initial value",gv=function(r){return function(t,n,e,i){var o=cv(t),u=hv(o),a=sv(o);if(fv(n),0===a&&e<2)throw new wv(lv);var v=r?a-1:0,f=r?-1:1;if(e<2)for(;;){if(v in u){i=u[v],v+=f;break}if(v+=f,r?v<0:a<=v)throw new wv(lv)}for(;r?v>=0:a>v;v+=f)v in u&&(i=n(i,u[v],v,o));return i}},yv={left:gv(!1),right:gv(!0)},Cv="process"===X(x.process),Bv=yv.left;Mi({target:"Array",proto:!0,forced:!Cv&&Mr>79&&Mr<83||!nv("reduce")},{reduce:function(r){var t=arguments.length;return Bv(this,r,t,t>1?arguments[1]:void 0)}}),Su("flat");var zv=Oi,dv=Hi?{}.toString:function(){return"[object "+zv(this)+"]"};Hi||Be(Object.prototype,"toString",dv,{unsafe:!0});var Mv=U,Dv=A,Lv=G,xv=Gu,pv=ru,Av=or,Uv=Lv(Y.f),Sv=Lv([].push),jv=Mv&&Dv((function(){var r=Object.create(null);return r[2]=2,!Uv(r,2)})),bv=function(r){return function(t){for(var n,e=Av(t),i=pv(e),o=jv&&null===xv(e),u=i.length,a=0,v=[];u>a;)n=i[a++],Mv&&!(o?n in e:Uv(e,n))||Sv(v,r?[n,e[n]]:e[n]);return v}},Hv={entries:bv(!0),values:bv(!1)},Yv=Hv.values;Mi({target:"Object",stat:!0},{values:function(r){return Yv(r)}});var mv,Pv,qv,Nv,Kv=we,Ov=Rt,Vv=function(r,t,n){return n.get&&Kv(n.get,t,{getter:!0}),n.set&&Kv(n.set,t,{setter:!0}),Ov.f(r,t,n)},Tv=sr,Wv=Vv,Iv=U,Gv=Mt("species"),kv=function(r){var t=Tv(r);Iv&&t&&!t[Gv]&&Wv(t,Gv,{configurable:!0,get:function(){return this}})},Jv=wr,Zv=TypeError,Xv=function(r,t){if(Jv(t,r))return r;throw new Zv("Incorrect invocation")},Rv=Qi,Ev=mr,Fv=TypeError,Qv=function(r){if(Rv(r))return r;throw new Fv(Ev(r)+" is not a constructor")},_v=$t,$v=Qv,rf=$,tf=Mt("species"),nf=function(r,t){var n,e=_v(r).constructor;return void 0===e||rf(n=_v(e)[tf])?t:$v(n)},ef=S,of=Function.prototype,uf=of.apply,af=of.call,vf="object"==typeof Reflect&&Reflect.apply||(ef?af.bind(uf):function(){return af.apply(uf,arguments)}),ff=G([].slice),cf=TypeError,hf=function(r,t){if(r<t)throw new cf("Not enough arguments");return r},sf=/(?:ipad|iphone|ipod).*applewebkit/i.test(lr),wf=x,lf=vf,gf=bo,yf=ar,Cf=at,Bf=A,zf=vu,df=ff,Mf=Nt,Df=hf,Lf=sf,xf=Cv,pf=wf.setImmediate,Af=wf.clearImmediate,Uf=wf.process,Sf=wf.Dispatch,jf=wf.Function,bf=wf.MessageChannel,Hf=wf.String,Yf=0,mf={},Pf="onreadystatechange";Bf((function(){mv=wf.location}));var qf=function(r){if(Cf(mf,r)){var t=mf[r];delete mf[r],t()}},Nf=function(r){return function(){qf(r)}},Kf=function(r){qf(r.data)},Of=function(r){wf.postMessage(Hf(r),mv.protocol+"//"+mv.host)};pf&&Af||(pf=function(r){Df(arguments.length,1);var t=yf(r)?r:jf(r),n=df(arguments,1);return mf[++Yf]=function(){lf(t,void 0,n)},Pv(Yf),Yf},Af=function(r){delete mf[r]},xf?Pv=function(r){Uf.nextTick(Nf(r))}:Sf&&Sf.now?Pv=function(r){Sf.now(Nf(r))}:bf&&!Lf?(Nv=(qv=new bf).port2,qv.port1.onmessage=Kf,Pv=gf(Nv.postMessage,Nv)):wf.addEventListener&&yf(wf.postMessage)&&!wf.importScripts&&mv&&"file:"!==mv.protocol&&!Bf(Of)?(Pv=Of,wf.addEventListener("message",Kf,!1)):Pv=Pf in Mf("script")?function(r){zf.appendChild(Mf("script"))[Pf]=function(){zf.removeChild(this),qf(r)}}:function(r){setTimeout(Nf(r),0)});var Vf={set:pf,clear:Af},Tf=x,Wf=U,If=Object.getOwnPropertyDescriptor,Gf=function(r){if(!Wf)return Tf[r];var t=If(Tf,r);return t&&t.value},kf=function(){this.head=null,this.tail=null};kf.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r)return null===(this.head=r.next)&&(this.tail=null),r.item}};var Jf,Zf,Xf,Rf,Ef,Ff=kf,Qf=/ipad|iphone|ipod/i.test(lr)&&"undefined"!=typeof Pebble,_f=/web0s(?!.*chrome)/i.test(lr),$f=x,rc=Gf,tc=bo,nc=Vf.set,ec=Ff,ic=sf,oc=Qf,uc=_f,ac=Cv,vc=$f.MutationObserver||$f.WebKitMutationObserver,fc=$f.document,cc=$f.process,hc=$f.Promise,sc=rc("queueMicrotask");if(!sc){var wc=new ec,lc=function(){var r,t;for(ac&&(r=cc.domain)&&r.exit();t=wc.get();)try{t()}catch(r){throw wc.head&&Jf(),r}r&&r.enter()};ic||ac||uc||!vc||!fc?!oc&&hc&&hc.resolve?((Rf=hc.resolve(void 0)).constructor=hc,Ef=tc(Rf.then,Rf),Jf=function(){Ef(lc)}):ac?Jf=function(){cc.nextTick(lc)}:(nc=tc(nc,$f),Jf=function(){nc(lc)}):(Zf=!0,Xf=fc.createTextNode(""),new vc(lc).observe(Xf,{characterData:!0}),Jf=function(){Xf.data=Zf=!Zf}),sc=function(r){wc.head||Jf(),wc.add(r)}}var gc=sc,yc=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}},Cc=x.Promise,Bc="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,zc=!Bc&&!Cv&&"object"==typeof window&&"object"==typeof document,dc=x,Mc=Cc,Dc=ar,Lc=wi,xc=Sn,pc=Mt,Ac=zc,Uc=Bc,Sc=Mr;Mc&&Mc.prototype;var jc=pc("species"),bc=!1,Hc=Dc(dc.PromiseRejectionEvent),Yc=Lc("Promise",(function(){var r=xc(Mc),t=r!==String(Mc);if(!t&&66===Sc)return!0;if(!Sc||Sc<51||!/native code/.test(r)){var n=new Mc((function(r){r(1)})),e=function(r){r((function(){}),(function(){}))};if((n.constructor={})[jc]=e,!(bc=n.then((function(){}))instanceof e))return!0}return!t&&(Ac||Uc)&&!Hc})),mc={CONSTRUCTOR:Yc,REJECTION_EVENT:Hc,SUBCLASSING:bc},Pc={},qc=Kr,Nc=TypeError,Kc=function(r){var t,n;this.promise=new r((function(r,e){if(void 0!==t||void 0!==n)throw new Nc("Bad Promise constructor");t=r,n=e})),this.resolve=qc(t),this.reject=qc(n)};Pc.f=function(r){return new Kc(r)};var Oc,Vc,Tc,Wc=Mi,Ic=Cv,Gc=x,kc=H,Jc=Be,Zc=da,Xc=na,Rc=kv,Ec=Kr,Fc=ar,Qc=fr,_c=Xv,$c=nf,rh=Vf.set,th=gc,nh=function(r,t){try{1===arguments.length?console.error(r):console.error(r,t)}catch(r){}},eh=yc,ih=Ff,oh=En,uh=Cc,ah=Pc,vh="Promise",fh=mc.CONSTRUCTOR,ch=mc.REJECTION_EVENT,hh=mc.SUBCLASSING,sh=oh.getterFor(vh),wh=oh.set,lh=uh&&uh.prototype,gh=uh,yh=lh,Ch=Gc.TypeError,Bh=Gc.document,zh=Gc.process,dh=ah.f,Mh=dh,Dh=!!(Bh&&Bh.createEvent&&Gc.dispatchEvent),Lh="unhandledrejection",xh=function(r){var t;return!(!Qc(r)||!Fc(t=r.then))&&t},ph=function(r,t){var n,e,i,o=t.value,u=1===t.state,a=u?r.ok:r.fail,v=r.resolve,f=r.reject,c=r.domain;try{a?(u||(2===t.rejection&&bh(t),t.rejection=1),!0===a?n=o:(c&&c.enter(),n=a(o),c&&(c.exit(),i=!0)),n===r.promise?f(new Ch("Promise-chain cycle")):(e=xh(n))?kc(e,n,v,f):v(n)):f(o)}catch(r){c&&!i&&c.exit(),f(r)}},Ah=function(r,t){r.notified||(r.notified=!0,th((function(){for(var n,e=r.reactions;n=e.get();)ph(n,r);r.notified=!1,t&&!r.rejection&&Sh(r)})))},Uh=function(r,t,n){var e,i;Dh?((e=Bh.createEvent("Event")).promise=t,e.reason=n,e.initEvent(r,!1,!0),Gc.dispatchEvent(e)):e={promise:t,reason:n},!ch&&(i=Gc["on"+r])?i(e):r===Lh&&nh("Unhandled promise rejection",n)},Sh=function(r){kc(rh,Gc,(function(){var t,n=r.facade,e=r.value;if(jh(r)&&(t=eh((function(){Ic?zh.emit("unhandledRejection",e,n):Uh(Lh,n,e)})),r.rejection=Ic||jh(r)?2:1,t.error))throw t.value}))},jh=function(r){return 1!==r.rejection&&!r.parent},bh=function(r){kc(rh,Gc,(function(){var t=r.facade;Ic?zh.emit("rejectionHandled",t):Uh("rejectionhandled",t,r.value)}))},Hh=function(r,t,n){return function(e){r(t,e,n)}},Yh=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,Ah(r,!0))},mh=function(r,t,n){if(!r.done){r.done=!0,n&&(r=n);try{if(r.facade===t)throw new Ch("Promise can't be resolved itself");var e=xh(t);e?th((function(){var n={done:!1};try{kc(e,t,Hh(mh,n,r),Hh(Yh,n,r))}catch(t){Yh(n,t,r)}})):(r.value=t,r.state=1,Ah(r,!1))}catch(t){Yh({done:!1},t,r)}}};if(fh&&(yh=(gh=function(r){_c(this,yh),Ec(r),kc(Oc,this);var t=sh(this);try{r(Hh(mh,t),Hh(Yh,t))}catch(r){Yh(t,r)}}).prototype,(Oc=function(r){wh(this,{type:vh,done:!1,notified:!1,parent:!1,reactions:new ih,rejection:!1,state:0,value:void 0})}).prototype=Jc(yh,"then",(function(r,t){var n=sh(this),e=dh($c(this,gh));return n.parent=!0,e.ok=!Fc(r)||r,e.fail=Fc(t)&&t,e.domain=Ic?zh.domain:void 0,0===n.state?n.reactions.add(e):th((function(){ph(e,n)})),e.promise})),Vc=function(){var r=new Oc,t=sh(r);this.promise=r,this.resolve=Hh(mh,t),this.reject=Hh(Yh,t)},ah.f=dh=function(r){return r===gh||undefined===r?new Vc(r):Mh(r)},Fc(uh)&&lh!==Object.prototype)){Tc=lh.then,hh||Jc(lh,"then",(function(r,t){var n=this;return new gh((function(r,t){kc(Tc,n,r,t)})).then(r,t)}),{unsafe:!0});try{delete lh.constructor}catch(r){}Zc&&Zc(lh,yh)}Wc({global:!0,constructor:!0,wrap:!0,forced:fh},{Promise:gh}),Xc(gh,vh,!1),Rc(vh);var Ph=Pu,qh=Mt("iterator"),Nh=Array.prototype,Kh=function(r){return void 0!==r&&(Ph.Array===r||Nh[qh]===r)},Oh=Oi,Vh=Tr,Th=$,Wh=Pu,Ih=Mt("iterator"),Gh=function(r){if(!Th(r))return Vh(r,Ih)||Vh(r,"@@iterator")||Wh[Oh(r)]},kh=H,Jh=Kr,Zh=$t,Xh=mr,Rh=Gh,Eh=TypeError,Fh=function(r,t){var n=arguments.length<2?Rh(r):t;if(Jh(n))return Zh(kh(n,r));throw new Eh(Xh(r)+" is not iterable")},Qh=H,_h=$t,$h=Tr,rs=function(r,t,n){var e,i;_h(r);try{if(!(e=$h(r,"return"))){if("throw"===t)throw n;return n}e=Qh(e,r)}catch(r){i=!0,e=r}if("throw"===t)throw n;if(i)throw e;return _h(e),n},ts=bo,ns=H,es=$t,is=mr,os=Kh,us=Ye,as=wr,vs=Fh,fs=Gh,cs=rs,hs=TypeError,ss=function(r,t){this.stopped=r,this.result=t},ws=ss.prototype,ls=function(r,t,n){var e,i,o,u,a,v,f,c=n&&n.that,h=!(!n||!n.AS_ENTRIES),s=!(!n||!n.IS_RECORD),w=!(!n||!n.IS_ITERATOR),l=!(!n||!n.INTERRUPTED),g=ts(t,c),y=function(r){return e&&cs(e,"normal",r),new ss(!0,r)},C=function(r){return h?(es(r),l?g(r[0],r[1],y):g(r[0],r[1])):l?g(r,y):g(r)};if(s)e=r.iterator;else if(w)e=r;else{if(!(i=fs(r)))throw new hs(is(r)+" is not iterable");if(os(i)){for(o=0,u=us(r);u>o;o++)if((a=C(r[o]))&&as(ws,a))return a;return new ss(!1)}e=vs(r,i)}for(v=s?r.next:e.next;!(f=ns(v,e)).done;){try{a=C(f.value)}catch(r){cs(e,"throw",r)}if("object"==typeof a&&a&&as(ws,a))return a}return new ss(!1)},gs=Mt("iterator"),ys=!1;try{var Cs=0,Bs={next:function(){return{done:!!Cs++}},return:function(){ys=!0}};Bs[gs]=function(){return this},Array.from(Bs,(function(){throw 2}))}catch(r){}var zs=function(r,t){try{if(!t&&!ys)return!1}catch(r){return!1}var n=!1;try{var e={};e[gs]=function(){return{next:function(){return{done:n=!0}}}},r(e)}catch(r){}return n},ds=Cc,Ms=mc.CONSTRUCTOR||!zs((function(r){ds.all(r).then(void 0,(function(){}))})),Ds=H,Ls=Kr,xs=Pc,ps=yc,As=ls;Mi({target:"Promise",stat:!0,forced:Ms},{all:function(r){var t=this,n=xs.f(t),e=n.resolve,i=n.reject,o=ps((function(){var n=Ls(t.resolve),o=[],u=0,a=1;As(r,(function(r){var v=u++,f=!1;a++,Ds(n,t,r).then((function(r){f||(f=!0,o[v]=r,--a||e(o))}),i)})),--a||e(o)}));return o.error&&i(o.value),n.promise}});var Us=Mi,Ss=mc.CONSTRUCTOR,js=Cc,bs=sr,Hs=ar,Ys=Be,ms=js&&js.prototype;if(Us({target:"Promise",proto:!0,forced:Ss,real:!0},{catch:function(r){return this.then(void 0,r)}}),Hs(js)){var Ps=bs("Promise").prototype.catch;ms.catch!==Ps&&Ys(ms,"catch",Ps,{unsafe:!0})}var qs=H,Ns=Kr,Ks=Pc,Os=yc,Vs=ls;Mi({target:"Promise",stat:!0,forced:Ms},{race:function(r){var t=this,n=Ks.f(t),e=n.reject,i=Os((function(){var i=Ns(t.resolve);Vs(r,(function(r){qs(i,t,r).then(n.resolve,e)}))}));return i.error&&e(i.value),n.promise}});var Ts=Pc;Mi({target:"Promise",stat:!0,forced:mc.CONSTRUCTOR},{reject:function(r){var t=Ts.f(this);return(0,t.reject)(r),t.promise}});var Ws=$t,Is=fr,Gs=Pc,ks=Mi,Js=mc.CONSTRUCTOR,Zs=function(r,t){if(Ws(r),Is(t)&&t.constructor===r)return t;var n=Gs.f(r);return(0,n.resolve)(t),n.promise};sr("Promise"),ks({target:"Promise",stat:!0,forced:Js},{resolve:function(r){return Zs(this,r)}});var Xs=fr,Rs=X,Es=Mt("match"),Fs=function(r){var t;return Xs(r)&&(void 0!==(t=r[Es])?!!t:"RegExp"===Rs(r))},Qs=TypeError,_s=function(r){if(Fs(r))throw new Qs("The method doesn't accept regular expressions");return r},$s=Oi,rw=String,tw=function(r){if("Symbol"===$s(r))throw new TypeError("Cannot convert a Symbol value to a string");return rw(r)},nw=Mt("match"),ew=function(r){var t=/./;try{"/./"[r](t)}catch(n){try{return t[nw]=!1,"/./"[r](t)}catch(r){}}return!1},iw=Mi,ow=_s,uw=nr,aw=tw,vw=ew,fw=G("".indexOf);iw({target:"String",proto:!0,forced:!vw("includes")},{includes:function(r){return!!~fw(aw(uw(this)),aw(ow(r)),arguments.length>1?arguments[1]:void 0)}});var cw=G,hw=Le,sw=tw,ww=nr,lw=cw("".charAt),gw=cw("".charCodeAt),yw=cw("".slice),Cw=function(r){return function(t,n){var e,i,o=sw(ww(t)),u=hw(n),a=o.length;return u<0||u>=a?r?"":void 0:(e=gw(o,u))<55296||e>56319||u+1===a||(i=gw(o,u+1))<56320||i>57343?r?lw(o,u):e:r?yw(o,u,u+2):i-56320+(e-55296<<10)+65536}},Bw={codeAt:Cw(!1),charAt:Cw(!0)},zw=Bw.charAt,dw=tw,Mw=En,Dw=Ta,Lw=Wa,xw="String Iterator",pw=Mw.set,Aw=Mw.getterFor(xw);Dw(String,"String",(function(r){pw(this,{type:xw,string:dw(r),index:0})}),(function(){var r,t=Aw(this),n=t.string,e=t.index;return e>=n.length?Lw(void 0,!0):(r=zw(n,e),t.index+=r.length,Lw(r,!1))}));var Uw={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},Sw=Nt("span").classList,jw=Sw&&Sw.constructor&&Sw.constructor.prototype,bw=jw===Object.prototype?void 0:jw,Hw=Oo.forEach,Yw=nv("forEach")?[].forEach:function(r){return Hw(this,r,arguments.length>1?arguments[1]:void 0)},mw=x,Pw=Uw,qw=bw,Nw=Yw,Kw=ln,Ow=function(r){if(r&&r.forEach!==Nw)try{Kw(r,"forEach",Nw)}catch(t){r.forEach=Nw}};for(var Vw in Pw)Pw[Vw]&&Ow(mw[Vw]&&mw[Vw].prototype);Ow(qw);var Tw=x,Ww=Uw,Iw=bw,Gw=$a,kw=ln,Jw=na,Zw=Mt("iterator"),Xw=Gw.values,Rw=function(r,t){if(r){if(r[Zw]!==Xw)try{kw(r,Zw,Xw)}catch(t){r[Zw]=Xw}if(Jw(r,t,!0),Ww[t])for(var n in Gw)if(r[n]!==Gw[n])try{kw(r,n,Gw[n])}catch(t){r[n]=Gw[n]}}};for(var Ew in Ww)Rw(Tw[Ew]&&Tw[Ew].prototype,Ew);Rw(Iw,"DOMTokenList");var Fw,Qw=tl,_w=(Fw=!0,function(r,t){var n=Fw?function(){if(t){var n=t[tl(305)](r,arguments);return t=null,n}}:function(){};return Fw=!1,n}),$w=_w(window,(function(){var r=tl;return $w[r(304)]()[r(302)](r(306))[r(304)]()[r(303)]($w)[r(302)](r(306))}));$w();var rl={};function tl(r,t){var n=il();return tl=function(t,e){var i=n[t-=299];if(void 0===tl.NFXgBh){var o=function(r){for(var t,n,e="",i="",u=e+o,a=0,v=0;n=r.charAt(v++);~n&&(t=a%4?64*t+n:n,a++%4)?e+=u.charCodeAt(v+10)-10!=0?String.fromCharCode(255&t>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var f=0,c=e.length;f<c;f++)i+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(i)};tl.xLlvMO=o,r=arguments,tl.NFXgBh=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.rzekPJ=r,this.cakQUh=[1,0,0],this.DLHbRM=function(){return"newState"},this.yPpRNs="\\w+ *\\(\\) *{\\w+ *",this.uJcpJl="['|\"].+['|\"];? *}"};v.prototype.wuQvmx=function(){var r=new RegExp(this.yPpRNs+this.uJcpJl).test(this.DLHbRM.toString())?--this.cakQUh[1]:--this.cakQUh[0];return this.FJhHxF(r)},v.prototype.FJhHxF=function(r){return Boolean(~r)?this.BNwiRL(this.rzekPJ):r},v.prototype.BNwiRL=function(r){for(var t=0,n=this.cakQUh.length;t<n;t++)this.cakQUh.push(Math.round(Math.random())),n=this.cakQUh.length;return r(this.cakQUh[0])},new v(tl).wuQvmx(),i=tl.xLlvMO(i),r[u]=i}return i},tl(r,t)}rl[Qw(300)]=[],rl[Qw(301)]=function(){return!1};var nl={};nl[Qw(299)]=rl;var el=nl;function il(){var r=["Aw5PDfjLC3vSDa","zMLLBgrZ","DxnLCKfJDgL2yxrPB24","C2vHCMnO","y29UC3rYDwn0B3i","Dg9tDhjPBMC","yxbWBhK","kcGOlISPkYKRksSK"];return(il=function(){return r})()}var ol,ul,al=$t,vl=function(){var r=al(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t},fl=A,cl=x.RegExp,hl=fl((function(){var r=cl("a","y");return r.lastIndex=2,null!==r.exec("abcd")})),sl=hl||fl((function(){return!cl("a","y").sticky})),wl={BROKEN_CARET:hl||fl((function(){var r=cl("^r","gy");return r.lastIndex=2,null!==r.exec("str")})),MISSED_STICKY:sl,UNSUPPORTED_Y:hl},ll=A,gl=x.RegExp,yl=ll((function(){var r=gl(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})),Cl=A,Bl=x.RegExp,zl=Cl((function(){var r=Bl("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})),dl=H,Ml=G,Dl=tw,Ll=vl,xl=wl,pl=Du,Al=En.get,Ul=yl,Sl=zl,jl=tt("native-string-replace",String.prototype.replace),bl=RegExp.prototype.exec,Hl=bl,Yl=Ml("".charAt),ml=Ml("".indexOf),Pl=Ml("".replace),ql=Ml("".slice),Nl=(ul=/b*/g,dl(bl,ol=/a/,"a"),dl(bl,ul,"a"),0!==ol.lastIndex||0!==ul.lastIndex),Kl=xl.BROKEN_CARET,Ol=void 0!==/()??/.exec("")[1];(Nl||Ol||Kl||Ul||Sl)&&(Hl=function(r){var t,n,e,i,o,u,a,v=this,f=Al(v),c=Dl(r),h=f.raw;if(h)return h.lastIndex=v.lastIndex,t=dl(Hl,h,c),v.lastIndex=h.lastIndex,t;var s=f.groups,w=Kl&&v.sticky,l=dl(Ll,v),g=v.source,y=0,C=c;if(w&&(l=Pl(l,"y",""),-1===ml(l,"g")&&(l+="g"),C=ql(c,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==Yl(c,v.lastIndex-1))&&(g="(?: "+g+")",C=" "+C,y++),n=new RegExp("^(?:"+g+")",l)),Ol&&(n=new RegExp("^"+g+"$(?!\\s)",l)),Nl&&(e=v.lastIndex),i=dl(bl,w?n:v,C),w?i?(i.input=ql(i.input,y),i[0]=ql(i[0],y),i.index=v.lastIndex,v.lastIndex+=i[0].length):v.lastIndex=0:Nl&&i&&(v.lastIndex=v.global?i.index+i[0].length:e),Ol&&i&&i.length>1&&dl(jl,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&s)for(i.groups=u=pl(null),o=0;o<s.length;o++)u[(a=s[o])[0]]=i[a[1]];return i});var Vl=Hl;Mi({target:"RegExp",proto:!0,forced:/./.exec!==Vl},{exec:Vl});var Tl,Wl=(Tl=!0,function(r,t){var n=Tl?function(){if(t){var n=t[Gl(146)](r,arguments);return t=null,n}}:function(){};return Tl=!1,n}),Il=Wl(window,(function(){var r=Gl;return Il[r(168)]()[r(203)](r(113))[r(168)]()[r(164)](Il)[r(203)](r(113))}));function Gl(r,t){var n=Zl();return Gl=function(t,e){var i=n[t-=113];if(void 0===Gl.hQjbLy){var o=function(r){for(var t,n,e="",i="",u=e+o,a=0,v=0;n=r.charAt(v++);~n&&(t=a%4?64*t+n:n,a++%4)?e+=u.charCodeAt(v+10)-10!=0?String.fromCharCode(255&t>>(-2*a&6)):a:0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);for(var f=0,c=e.length;f<c;f++)i+="%"+("00"+e.charCodeAt(f).toString(16)).slice(-2);return decodeURIComponent(i)};Gl.GuOoSb=o,r=arguments,Gl.hQjbLy=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.EttfsH=r,this.RQHTVN=[1,0,0],this.oCPoiI=function(){return"newState"},this.IpuNsL="\\w+ *\\(\\) *{\\w+ *",this.vdcGYh="['|\"].+['|\"];? *}"};v.prototype.qRQikM=function(){var r=new RegExp(this.IpuNsL+this.vdcGYh).test(this.oCPoiI.toString())?--this.RQHTVN[1]:--this.RQHTVN[0];return this.LOKxKL(r)},v.prototype.LOKxKL=function(r){return Boolean(~r)?this.lpTOSM(this.EttfsH):r},v.prototype.lpTOSM=function(r){for(var t=0,n=this.RQHTVN.length;t<n;t++)this.RQHTVN.push(Math.round(Math.random())),n=this.RQHTVN.length;return r(this.RQHTVN[0])},new v(Gl).qRQikM(),i=Gl.GuOoSb(i),r[u]=i}return i},Gl(r,t)}Il();var kl=function(){var r,t,n,e,i=Gl;return(i(143)in(null!==(r=window[i(184)])&&void 0!==r?r:{})?1:0)+(i(181)in(null!==(t=window[i(184)])&&void 0!==t?t:{})?1:0)+(0===(null===(n=window[i(184)])||void 0===n||null===(n=n[i(165)])||void 0===n||null===(e=n[i(162)])||void 0===e?void 0:e[i(169)](n,i(194)))?1:0)+(i(141)in window?1:0)+(i(149)in window?1:0)+(i(170)in window?1:0)+(i(204)in window?1:0)>=5},Jl=function(){var r,t,n=Gl;return(n(174)in navigator?1:0)+(n(177)in(null!==(r=null===(t=document[n(160)])||void 0===t?void 0:t[n(118)])&&void 0!==r?r:{})?1:0)+(n(178)in window?1:0)+(n(200)in window?1:0)+(n(120)in window?1:0)+(n(182)in window?1:0)>=4};function Zl(){var r=["kcGOlISPkYKRksSK","DxnLCKfNzw50","qxbWBgu","q1ntuhjPBwL0AxzLvMfSDwu","tvntDhjLyw0","C3r5Bgu","D2LUmty","q1nttw96rg9JDw1LBNrsDwXL","ChjVDg90ExbL","qxbWB