UNPKG

@seontechnologies/seon-javascript-sdk

Version:

SEON JavaScript SDK for collecting session and device data

1 lines 655 kB
!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=d(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 Y(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 d(){}function z(){}var M={};f(M,u,(function(){return this}));var D=Object.getPrototypeOf,L=D&&D(D(m([])));L&&L!==n&&e.call(L,u)&&(M=L);var x=z.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 Y(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(j,this),this.reset(!0)}function m(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 d.prototype=z,i(x,"constructor",{value:z,configurable:!0}),i(z,"constructor",{value:d,configurable:!0}),d.displayName=f(z,v,"GeneratorFunction"),t.isGeneratorFunction=function(r){var t="function"==typeof r&&r.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,z):(r.__proto__=z,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=m,Y.prototype={constructor:Y,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:m(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)||d(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)||d(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 d(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 z(r){var t="function"==typeof Map?new Map:void 0;return z=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)},z(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,Y=j?b.bind(b):function(){return b.apply(b,arguments)},m={},H={}.propertyIsEnumerable,P=Object.getOwnPropertyDescriptor,q=P&&!H.call({1:2},1);m.f=q?function(r){var t=P(this,r);return!!t&&t.enumerable}:H;var K,N,W=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}},V=S,O=Function.prototype,T=O.call,I=V&&O.bind.bind(T,T),k=V?I:function(r){return function(){return T.apply(r,arguments)}},E=k,X=E({}.toString),G=E("".slice),R=function(r){return G(X(r),8,-1)},Z=A,J=R,F=Object,Q=k("".split),_=Z((function(){return!F("z").propertyIsEnumerable(0)}))?function(r){return"String"===J(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=k({}.isPrototypeOf),lr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",gr=x,yr=lr,Cr=gr.process,Br=gr.Deno,dr=Cr&&Cr.versions||Br&&Br.version,zr=dr&&dr.v8;zr&&(N=(K=zr.split("."))[0]>0&&K[0]<4?1:+(K[0]+K[1])),!N&&yr&&(!(K=yr.match(/Edge\/(\d+)/))||K[1]>=74)&&(K=yr.match(/Chrome\/(\d+)/))&&(N=+K[1]);var Mr=N,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,Yr=Ar?function(r){return"symbol"==typeof r}:function(r){var t=Ur("Symbol");return Sr(t)&&jr(t.prototype,br(r))},mr=String,Hr=function(r){try{return mr(r)}catch(r){return"Object"}},Pr=ar,qr=Hr,Kr=TypeError,Nr=function(r){if(Pr(r))return r;throw new Kr(qr(r)+" is not a function")},Wr=Nr,Vr=$,Or=function(r,t){var n=r[t];return Vr(n)?void 0:Wr(n)},Tr=Y,Ir=ar,kr=fr,Er=TypeError,Xr={exports:{}},Gr=x,Rr=Object.defineProperty,Zr=function(r,t){try{Rr(Gr,r,{value:t,configurable:!0,writable:!0})}catch(n){Gr[r]=t}return t},Jr=x,Fr=Zr,Qr="__core-js_shared__",_r=Xr.exports=Jr[Qr]||Fr(Qr,{});(_r.versions||(_r.versions=[])).push({});var $r=Xr.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=k({}.hasOwnProperty),at=Object.hasOwn||function(r,t){return ut(ot(r),t)},vt=k,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,dt=wt("wks"),zt=Ct?Bt.for||Bt:Bt&&Bt.withoutSetter||gt,Mt=function(r){return lt(dt,r)||(dt[r]=yt&&lt(Bt,r)?Bt[r]:zt("Symbol."+r)),dt[r]},Dt=Y,Lt=fr,xt=Yr,pt=Or,At=function(r,t){var n,e;if("string"===t&&Ir(n=r.toString)&&!kr(e=Tr(n,r)))return e;if(Ir(n=r.valueOf)&&!kr(e=Tr(n,r)))return e;if("string"!==t&&Ir(n=r.toString)&&!kr(e=Tr(n,r)))return e;throw new Er("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,Yt=Yr,mt=function(r){var t=bt(r,"string");return Yt(t)?t:t+""},Ht=fr,Pt=x.document,qt=Ht(Pt)&&Ht(Pt.createElement),Kt=function(r){return qt?Pt.createElement(r):{}},Nt=Kt,Wt=!U&&!A((function(){return 7!==Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),Vt=U,Ot=Y,Tt=m,It=W,kt=or,Et=mt,Xt=at,Gt=Wt,Rt=Object.getOwnPropertyDescriptor;p.f=Vt?Rt:function(r,t){if(r=kt(r),t=Et(t),Gt)try{return Rt(r,t)}catch(r){}if(Xt(r,t))return It(!Ot(Tt.f,r,t),r[t])};var Zt={},Jt=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=Wt,nn=Jt,en=$t,on=mt,un=TypeError,an=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,fn="enumerable",cn="configurable",hn="writable";Zt.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=Zt,wn=W,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,dn=yn&&Object.getOwnPropertyDescriptor,zn=Cn(Bn,"name"),Mn={EXISTS:zn,PROPER:zn&&"something"===function(){}.name,CONFIGURABLE:zn&&(!yn||yn&&dn(Bn,"name").configurable)},Dn=ar,Ln=$r,xn=k(Function.toString);Dn(Ln.inspectSource)||(Ln.inspectSource=function(r){return xn(r)});var pn,An,Un,Sn=Ln.inspectSource,jn=ar,bn=x.WeakMap,Yn=jn(bn)&&/native code/.test(String(bn)),mn=st,Hn=tt("keys"),Pn=function(r){return Hn[r]||(Hn[r]=mn(r))},qn={},Kn=Yn,Nn=x,Wn=fr,Vn=ln,On=at,Tn=$r,In=Pn,kn=qn,En="Object already initialized",Xn=Nn.TypeError,Gn=Nn.WeakMap;if(Kn||Tn.state){var Rn=Tn.state||(Tn.state=new Gn);Rn.get=Rn.get,Rn.has=Rn.has,Rn.set=Rn.set,pn=function(r,t){if(Rn.has(r))throw new Xn(En);return t.facade=r,Rn.set(r,t),t},An=function(r){return Rn.get(r)||{}},Un=function(r){return Rn.has(r)}}else{var Zn=In("state");kn[Zn]=!0,pn=function(r,t){if(On(r,Zn))throw new Xn(En);return t.facade=r,Vn(r,Zn,t),t},An=function(r){return On(r,Zn)?r[Zn]:{}},Un=function(r){return On(r,Zn)}}var Jn={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(!Wn(t)||(n=An(t)).type!==r)throw new Xn("Incompatible receiver, "+r+" required");return n}}},Fn=k,Qn=A,_n=ar,$n=at,re=U,te=Mn.CONFIGURABLE,ne=Sn,ee=Jn.enforce,ie=Jn.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=Zt,ye=we,Ce=Zr,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},de={},ze=Math.ceil,Me=Math.floor,De=Math.trunc||function(r){var t=+r;return(t>0?Me:ze)(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},Ye=be,me=function(r){return Ye(r.length)},He=or,Pe=Ue,qe=me,Ke=function(r){return function(t,n,e){var i=He(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}},Ne={includes:Ke(!0),indexOf:Ke(!1)},We=at,Ve=or,Oe=Ne.indexOf,Te=qn,Ie=k([].push),ke=function(r,t){var n,e=Ve(r),i=0,o=[];for(n in e)!We(Te,n)&&We(e,n)&&Ie(o,n);for(;t.length>i;)We(e,n=t[i++])&&(~Oe(o,n)||Ie(o,n));return o},Ee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe=ke,Ge=Ee.concat("length","prototype");de.f=Object.getOwnPropertyNames||function(r){return Xe(r,Ge)};var Re={};Re.f=Object.getOwnPropertySymbols;var Ze=sr,Je=de,Fe=Re,Qe=$t,_e=k([].concat),$e=Ze("Reflect","ownKeys")||function(r){var t=Je.f(Qe(r)),n=Fe.f;return n?_e(t,n(r)):t},ri=at,ti=$e,ni=p,ei=Zt,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=Zr,di=ii,zi=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],!zi(v?e:a+(f?".":"#")+e,r.forced)&&void 0!==i){if(typeof o==typeof i)continue;di(o,i)}(r.sham||i&&i.sham)&&yi(o,"sham",!0),Ci(n,e,o,r)}},Di=R,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=Zt,Si=W,ji=function(r,t,n){Ai?Ui.f(r,t,Si(0,n)):r[t]=n},bi={};bi[Mt("toStringTag")]="z";var Yi="[object z]"===String(bi),mi=Yi,Hi=ar,Pi=R,qi=Mt("toStringTag"),Ki=Object,Ni="Arguments"===Pi(function(){return arguments}()),Wi=mi?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=Ki(r),qi))?n:Ni?Pi(t):"Object"===(e=Pi(t))&&Hi(t.callee)?"Arguments":e},Vi=k,Oi=A,Ti=ar,Ii=Wi,ki=Sn,Ei=function(){},Xi=sr("Reflect","construct"),Gi=/^\s*(?:class|function)\b/,Ri=Vi(Gi.exec),Zi=!Gi.test(Ei),Ji=function(r){if(!Ti(r))return!1;try{return Xi(Ei,[],r),!0}catch(r){return!1}},Fi=function(r){if(!Ti(r))return!1;switch(Ii(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Zi||!!Ri(Gi,ki(r))}catch(r){return!0}};Fi.sham=!0;var Qi=!Xi||Oi((function(){var r;return Ji(Ji.call)||!Ji(Object)||!Ji((function(){r=!0}))||r}))?Fi:Ji,_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=me,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=R,po=k,Ao=function(r){if("Function"===xo(r))return po(r)},Uo=Nr,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)}},Yo=bo,mo=_,Ho=it,Po=me,qo=io,Ko=k([].push),No=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=Ho(v),g=mo(l),y=Po(g),C=Yo(f,c),B=0,d=h||qo,z=t?d(v,y):n||u?d(v,0):void 0;y>B;B++)if((a||B in g)&&(w=C(s=g[B],B,l),r))if(t)z[B]=w;else if(w)switch(r){case 3:return!0;case 5:return s;case 6:return B;case 2:Ko(z,s)}else switch(r){case 4:return!1;case 7:Ko(z,s)}return o?-1:e||i?i:z}},Wo={forEach:No(0),map:No(1),filter:No(2),some:No(3),every:No(4),find:No(5),findIndex:No(6),filterReject:No(7)},Vo=Wo.filter;Mi({target:"Array",proto:!0,forced:!vo("filter")},{filter:function(r){return Vo(this,r,arguments.length>1?arguments[1]:void 0)}});var Oo=Li,To=me,Io=pi,ko=bo,Eo=function(r,t,n,e,i,o,u,a){for(var v,f,c=i,h=0,s=!!u&&ko(u,a);h<e;)h in n&&(v=s?s(n[h],h,t):n[h],o>0&&Oo(v)?(f=To(v),c=Eo(r,t,v,f,c,o-1)-1):(Io(c+1),r[c]=v),c++),h++;return c},Xo=Eo,Go=Xo,Ro=it,Zo=me,Jo=Le,Fo=io;Mi({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,t=Ro(this),n=Zo(t),e=Fo(t,0);return e.length=Go(e,t,t,n,0,void 0===r?1:Jo(r)),e}});var Qo={},_o=ke,$o=Ee,ru=Object.keys||function(r){return _o(r,$o)},tu=U,nu=Jt,eu=Zt,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=Ee,su=qn,wu=vu,lu=Kt,gu="prototype",yu="script",Cu=Pn("IE_PROTO"),Bu=function(){},du=function(r){return"<"+yu+">"+r+"</"+yu+">"},zu=function(r){r.write(du("")),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?zu(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(du("document.F=Object")),r.close(),r.F):zu(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=Zt.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=Ne.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 Yu,mu,Hu,Pu={},qu=!A((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})),Ku=at,Nu=ar,Wu=it,Vu=qu,Ou=Pn("IE_PROTO"),Tu=Object,Iu=Tu.prototype,ku=Vu?Tu.getPrototypeOf:function(r){var t=Wu(r);if(Ku(t,Ou))return t[Ou];var n=t.constructor;return Nu(n)&&t instanceof n?n.prototype:t instanceof Tu?Iu:null},Eu=A,Xu=ar,Gu=fr,Ru=ku,Zu=Be,Ju=Mt("iterator"),Fu=!1;[].keys&&("next"in(Hu=[].keys())?(mu=Ru(Ru(Hu)))!==Object.prototype&&(Yu=mu):Fu=!0);var Qu=!Gu(Yu)||Eu((function(){var r={};return Yu[Ju].call(r)!==r}));Qu&&(Yu={}),Xu(Yu[Ju])||Zu(Yu,Ju,(function(){return this}));var _u={IteratorPrototype:Yu,BUGGY_SAFARI_ITERATORS:Fu},$u=Zt.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=W,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=k,ha=Nr,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,da=function(r){if(wa(r))return r;throw new ga("Can't set "+la(r)+" as a prototype")},za=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),da(e),Ca(n)?(t?r(n,e):n.__proto__=e,n):n}}():void 0),Ma=Mi,Da=Y,La=ar,xa=fa,pa=ku,Aa=za,Ua=na,Sa=ln,ja=Be,ba=Pu,Ya=Mn.PROPER,ma=Mn.CONFIGURABLE,Ha=_u.IteratorPrototype,Pa=_u.BUGGY_SAFARI_ITERATORS,qa=Mt("iterator"),Ka="keys",Na="values",Wa="entries",Va=function(){return this},Oa=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 Ka:case Na:case Wa: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)!==Ha&&(Aa?Aa(a,Ha):La(a[qa])||ja(a,qa,Va)),Ua(a,h,!0)),Ya&&i===Na&&l&&l.name!==Na&&(ma?Sa(w,"name",Na):(s=!0,g=function(){return Da(l,this)})),i)if(v={values:c(Na),keys:o?g:c(Ka),entries:c(Wa)},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},Ta=function(r,t){return{value:r,done:t}},Ia=or,ka=Su,Ea=Pu,Xa=Jn,Ga=Zt.f,Ra=Oa,Za=Ta,Ja=U,Fa="Array Iterator",Qa=Xa.set,_a=Xa.getterFor(Fa),$a=Ra(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,Za(void 0,!0);switch(r.kind){case"keys":return Za(n,!1);case"values":return Za(t[n],!1)}return Za([n,t[n]],!1)}),"values"),rv=Ea.Arguments=Ea.Array;if(ka("keys"),ka("values"),ka("entries"),Ja&&"values"!==rv.name)try{Ga(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=k([].join);ev({target:"Array",proto:!0,forced:iv!==Object||!uv("join",",")},{join:function(r){return av(ov(this),void 0===r?",":r)}});var vv=Wo.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=Nr,cv=it,hv=_,sv=me,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"===R(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 dv=Wi,zv=Yi?{}.toString:function(){return"[object "+dv(this)+"]"};Yi||Be(Object.prototype,"toString",zv,{unsafe:!0});var Mv=U,Dv=A,Lv=k,xv=ku,pv=ru,Av=or,Uv=Lv(m.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}},Yv={entries:bv(!0),values:bv(!1)},mv=Yv.values;Mi({target:"Object",stat:!0},{values:function(r){return mv(r)}});var Hv,Pv,qv,Kv,Nv=we,Wv=Zt,Vv=function(r,t,n){return n.get&&Nv(n.get,t,{getter:!0}),n.set&&Nv(n.set,t,{setter:!0}),Wv.f(r,t,n)},Ov=sr,Tv=Vv,Iv=U,kv=Mt("species"),Ev=function(r){var t=Ov(r);Iv&&t&&!t[kv]&&Tv(t,kv,{configurable:!0,get:function(){return this}})},Xv=wr,Gv=TypeError,Rv=function(r,t){if(Xv(t,r))return r;throw new Gv("Incorrect invocation")},Zv=Qi,Jv=Hr,Fv=TypeError,Qv=function(r){if(Zv(r))return r;throw new Fv(Jv(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=k([].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,df=vu,zf=ff,Mf=Kt,Df=hf,Lf=sf,xf=Cv,pf=wf.setImmediate,Af=wf.clearImmediate,Uf=wf.process,Sf=wf.Dispatch,jf=wf.Function,bf=wf.MessageChannel,Yf=wf.String,mf=0,Hf={},Pf="onreadystatechange";Bf((function(){Hv=wf.location}));var qf=function(r){if(Cf(Hf,r)){var t=Hf[r];delete Hf[r],t()}},Kf=function(r){return function(){qf(r)}},Nf=function(r){qf(r.data)},Wf=function(r){wf.postMessage(Yf(r),Hv.protocol+"//"+Hv.host)};pf&&Af||(pf=function(r){Df(arguments.length,1);var t=yf(r)?r:jf(r),n=zf(arguments,1);return Hf[++mf]=function(){lf(t,void 0,n)},Pv(mf),mf},Af=function(r){delete Hf[r]},xf?Pv=function(r){Uf.nextTick(Kf(r))}:Sf&&Sf.now?Pv=function(r){Sf.now(Kf(r))}:bf&&!Lf?(Kv=(qv=new bf).port2,qv.port1.onmessage=Nf,Pv=gf(Kv.postMessage,Kv)):wf.addEventListener&&yf(wf.postMessage)&&!wf.importScripts&&Hv&&"file:"!==Hv.protocol&&!Bf(Wf)?(Pv=Wf,wf.addEventListener("message",Nf,!1)):Pv=Pf in Mf("script")?function(r){df.appendChild(Mf("script"))[Pf]=function(){df.removeChild(this),qf(r)}}:function(r){setTimeout(Kf(r),0)});var Vf={set:pf,clear:Af},Of=x,Tf=U,If=Object.getOwnPropertyDescriptor,kf=function(r){if(!Tf)return Of[r];var t=If(Of,r);return t&&t.value},Ef=function(){this.head=null,this.tail=null};Ef.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 Xf,Gf,Rf,Zf,Jf,Ff=Ef,Qf=/ipad|iphone|ipod/i.test(lr)&&"undefined"!=typeof Pebble,_f=/web0s(?!.*chrome)/i.test(lr),$f=x,rc=kf,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&&Xf(),r}r&&r.enter()};ic||ac||uc||!vc||!fc?!oc&&hc&&hc.resolve?((Zf=hc.resolve(void 0)).constructor=hc,Jf=tc(Zf.then,Zf),Xf=function(){Jf(lc)}):ac?Xf=function(){cc.nextTick(lc)}:(nc=tc(nc,$f),Xf=function(){nc(lc)}):(Gf=!0,Rf=fc.createTextNode(""),new vc(lc).observe(Rf,{characterData:!0}),Xf=function(){Rf.data=Gf=!Gf}),sc=function(r){wc.head||Xf(),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,dc=!Bc&&!Cv&&"object"==typeof window&&"object"==typeof document,zc=x,Mc=Cc,Dc=ar,Lc=wi,xc=Sn,pc=Mt,Ac=dc,Uc=Bc,Sc=Mr;Mc&&Mc.prototype;var jc=pc("species"),bc=!1,Yc=Dc(zc.PromiseRejectionEvent),mc=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)&&!Yc})),Hc={CONSTRUCTOR:mc,REJECTION_EVENT:Yc,SUBCLASSING:bc},Pc={},qc=Nr,Kc=TypeError,Nc=function(r){var t,n;this.promise=new r((function(r,e){if(void 0!==t||void 0!==n)throw new Kc("Bad Promise constructor");t=r,n=e})),this.resolve=qc(t),this.reject=qc(n)};Pc.f=function(r){return new Nc(r)};var Wc,Vc,Oc,Tc=Mi,Ic=Cv,kc=x,Ec=Y,Xc=Be,Gc=za,Rc=na,Zc=Ev,Jc=Nr,Fc=ar,Qc=fr,_c=Rv,$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=Jn,uh=Cc,ah=Pc,vh="Promise",fh=Hc.CONSTRUCTOR,ch=Hc.REJECTION_EVENT,hh=Hc.SUBCLASSING,sh=oh.getterFor(vh),wh=oh.set,lh=uh&&uh.prototype,gh=uh,yh=lh,Ch=kc.TypeError,Bh=kc.document,dh=kc.process,zh=ah.f,Mh=zh,Dh=!!(Bh&&Bh.createEvent&&kc.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))?Ec(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),kc.dispatchEvent(e)):e={promise:t,reason:n},!ch&&(i=kc["on"+r])?i(e):r===Lh&&nh("Unhandled promise rejection",n)},Sh=function(r){Ec(rh,kc,(function(){var t,n=r.facade,e=r.value;if(jh(r)&&(t=eh((function(){Ic?dh.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){Ec(rh,kc,(function(){var t=r.facade;Ic?dh.emit("rejectionHandled",t):Uh("rejectionhandled",t,r.value)}))},Yh=function(r,t,n){return function(e){r(t,e,n)}},mh=function(r,t,n){r.done||(r.done=!0,n&&(r=n),r.value=t,r.state=2,Ah(r,!0))},Hh=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{Ec(e,t,Yh(Hh,n,r),Yh(mh,n,r))}catch(t){mh(n,t,r)}})):(r.value=t,r.state=1,Ah(r,!1))}catch(t){mh({done:!1},t,r)}}};if(fh&&(yh=(gh=function(r){_c(this,yh),Jc(r),Ec(Wc,this);var t=sh(this);try{r(Yh(Hh,t),Yh(mh,t))}catch(r){mh(t,r)}}).prototype,(Wc=function(r){wh(this,{type:vh,done:!1,notified:!1,parent:!1,reactions:new ih,rejection:!1,state:0,value:void 0})}).prototype=Xc(yh,"then",(function(r,t){var n=sh(this),e=zh($c(this,gh));return n.parent=!0,e.ok=!Fc(r)||r,e.fail=Fc(t)&&t,e.domain=Ic?dh.domain:void 0,0===n.state?n.reactions.add(e):th((function(){ph(e,n)})),e.promise})),Vc=function(){var r=new Wc,t=sh(r);this.promise=r,this.resolve=Yh(Hh,t),this.reject=Yh(mh,t)},ah.f=zh=function(r){return r===gh||undefined===r?new Vc(r):Mh(r)},Fc(uh)&&lh!==Object.prototype)){Oc=lh.then,hh||Xc(lh,"then",(function(r,t){var n=this;return new gh((function(r,t){Ec(Oc,n,r,t)})).then(r,t)}),{unsafe:!0});try{delete lh.constructor}catch(r){}Gc&&Gc(lh,yh)}Tc({global:!0,constructor:!0,wrap:!0,forced:fh},{Promise:gh}),Rc(gh,vh,!1),Zc(vh);var Ph=Pu,qh=Mt("iterator"),Kh=Array.prototype,Nh=function(r){return void 0!==r&&(Ph.Array===r||Kh[qh]===r)},Wh=Wi,Vh=Or,Oh=$,Th=Pu,Ih=Mt("iterator"),kh=function(r){if(!Oh(r))return Vh(r,Ih)||Vh(r,"@@iterator")||Th[Wh(r)]},Eh=Y,Xh=Nr,Gh=$t,Rh=Hr,Zh=kh,Jh=TypeError,Fh=function(r,t){var n=arguments.length<2?Zh(r):t;if(Xh(n))return Gh(Eh(n,r));throw new Jh(Rh(r)+" is not iterable")},Qh=Y,_h=$t,$h=Or,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=Y,es=$t,is=Hr,os=Nh,us=me,as=wr,vs=Fh,fs=kh,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 ds=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},zs=Cc,Ms=Hc.CONSTRUCTOR||!ds((function(r){zs.all(r).then(void 0,(function(){}))})),Ds=Y,Ls=Nr,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=Hc.CONSTRUCTOR,js=Cc,bs=sr,Ys=ar,ms=Be,Hs=js&&js.prototype;if(Us({target:"Promise",proto:!0,forced:Ss,real:!0},{catch:function(r){return this.then(void 0,r)}}),Ys(js)){var Ps=bs("Promise").prototype.catch;Hs.catch!==Ps&&ms(Hs,"catch",Ps,{unsafe:!0})}var qs=Y,Ks=Nr,Ns=Pc,Ws=yc,Vs=ls;Mi({target:"Promise",stat:!0,forced:Ms},{race:function(r){var t=this,n=Ns.f(t),e=n.reject,i=Ws((function(){var i=Ks(t.resolve);Vs(r,(function(r){qs(i,t,r).then(n.resolve,e)}))}));return i.error&&e(i.value),n.promise}});var Os=Pc;Mi({target:"Promise",stat:!0,forced:Hc.CONSTRUCTOR},{reject:function(r){var t=Os.f(this);return(0,t.reject)(r),t.promise}});var Ts=$t,Is=fr,ks=Pc,Es=Mi,Xs=Hc.CONSTRUCTOR,Gs=function(r,t){if(Ts(r),Is(t)&&t.constructor===r)return t;var n=ks.f(r);return(0,n.resolve)(t),n.promise};sr("Promise"),Es({target:"Promise",stat:!0,forced:Xs},{resolve:function(r){return Gs(this,r)}});var Rs=fr,Zs=R,Js=Mt("match"),Fs=function(r){var t;return Rs(r)&&(void 0!==(t=r[Js])?!!t:"RegExp"===Zs(r))},Qs=TypeError,_s=function(r){if(Fs(r))throw new Qs("The method doesn't accept regular expressions");return r},$s=Wi,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=k("".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=k,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)},dw=Bw.charAt,zw=tw,Mw=Jn,Dw=Oa,Lw=Ta,xw="String Iterator",pw=Mw.set,Aw=Mw.getterFor(xw);Dw(String,"String",(function(r){pw(this,{type:xw,string:zw(r),index:0})}),(function(){var r,t=Aw(this),n=t.string,e=t.index;return e>=n.length?Lw(void 0,!0):(r=dw(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=Kt("span").classList,jw=Sw&&Sw.constructor&&Sw.constructor.prototype,bw=jw===Object.prototype?void 0:jw,Yw=Wo.forEach,mw=nv("forEach")?[].forEach:function(r){return Yw(this,r,arguments.length>1?arguments[1]:void 0)},Hw=x,Pw=Uw,qw=bw,Kw=mw,Nw=ln,Ww=function(r){if(r&&r.forEach!==Kw)try{Nw(r,"forEach",Kw)}catch(t){r.forEach=Kw}};for(var Vw in Pw)Pw[Vw]&&Ww(Hw[Vw]&&Hw[Vw].prototype);Ww(qw);var Ow=x,Tw=Uw,Iw=bw,kw=$a,Ew=ln,Xw=na,Gw=Mt("iterator"),Rw=kw.values,Zw=function(r,t){if(r){if(r[Gw]!==Rw)try{Ew(r,Gw,Rw)}catch(t){r[Gw]=Rw}if(Xw(r,t,!0),Tw[t])for(var n in kw)if(r[n]!==kw[n])try{Ew(r,n,kw[n])}catch(t){r[n]=kw[n]}}};for(var Jw in Tw)Zw(Ow[Jw]&&Ow[Jw].prototype,Jw);Zw(Iw,"DOMTokenList");var Fw,Qw=nl,_w=(Fw=!0,function(r,t){var n=Fw?function(){if(t){var n=t[nl(464)](r,arguments);return t=null,n}}:function(){};return Fw=!1,n}),$w=_w(window,(function(){var r=nl;return $w[r(468)]()[r(465)](r(467))[r(468)]()[r(462)]($w)[r(465)](r(467))}));$w();var rl={};rl[Qw(463)]=[],rl[Qw(461)]=function(){return!1};var tl={};function nl(r,t){var n=il();return nl=function(t,e){var i=n[t-=461];if(void 0===nl.FneMhI){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)};nl.ZdnIgN=o,r=arguments,nl.FneMhI=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.LGUPEB=r,this.kIfCFQ=[1,0,0],this.gayRqn=function(){return"newState"},this.WlTVgt="\\w+ *\\(\\) *{\\w+ *",this.WgoigT="['|\"].+['|\"];? *}"};v.prototype.vyggSD=function(){var r=new RegExp(this.WlTVgt+this.WgoigT).test(this.gayRqn.toString())?--this.kIfCFQ[1]:--this.kIfCFQ[0];return this.IrGJNx(r)},v.prototype.IrGJNx=function(r){return Boolean(~r)?this.hoWUka(this.LGUPEB):r},v.prototype.hoWUka=function(r){for(var t=0,n=this.kIfCFQ.length;t<n;t++)this.kIfCFQ.push(Math.round(Math.random())),n=this.kIfCFQ.length;return r(this.kIfCFQ[0])},new v(nl).vyggSD(),i=nl.ZdnIgN(i),r[u]=i}return i},nl(r,t)}tl[Qw(466)]=rl;var el=tl;function il(){var r=["DxnLCKfJDgL2yxrPB24","y29UC3rYDwn0B3i","zMLLBgrZ","yxbWBhK","C2vHCMnO","Aw5PDfjLC3vSDa","kcGOlISPkYKRksSK","Dg9tDhjPBMC"];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,dl=Cl((function(){var r=Bl("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})),zl=Y,Ml=k,Dl=tw,Ll=vl,xl=wl,pl=Du,Al=Jn.get,Ul=yl,Sl=dl,jl=tt("native-string-replace",String.prototype.replace),bl=RegExp.prototype.exec,Yl=bl,ml=Ml("".charAt),Hl=Ml("".indexOf),Pl=Ml("".replace),ql=Ml("".slice),Kl=(ul=/b*/g,zl(bl,ol=/a/,"a"),zl(bl,ul,"a"),0!==ol.lastIndex||0!==ul.lastIndex),Nl=xl.BROKEN_CARET,Wl=void 0!==/()??/.exec("")[1];(Kl||Wl||Nl||Ul||Sl)&&(Yl=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=zl(Yl,h,c),v.lastIndex=h.lastIndex,t;var s=f.groups,w=Nl&&v.sticky,l=zl(Ll,v),g=v.source,y=0,C=c;if(w&&(l=Pl(l,"y",""),-1===Hl(l,"g")&&(l+="g"),C=ql(c,v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&"\n"!==ml(c,v.lastIndex-1))&&(g="(?: "+g+")",C=" "+C,y++),n=new RegExp("^(?:"+g+")",l)),Wl&&(n=new RegExp("^"+g+"$(?!\\s)",l)),Kl&&(e=v.lastIndex),i=zl(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:Kl&&i&&(v.lastIndex=v.global?i.index+i[0].length:e),Wl&&i&&i.length>1&&zl(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=Yl;Mi({target:"RegExp",proto:!0,forced:/./.exec!==Vl},{exec:Vl});var Ol,Tl=(Ol=!0,function(r,t){var n=Ol?function(){if(t){var n=t[kl(178)](r,arguments);return t=null,n}}:function(){};return Ol=!1,n}),Il=Tl(window,(function(){var r=kl;return Il[r(187)]()[r(205)](r(165))[r(187)]()[r(169)](Il)[r(205)](r(165))}));function kl(r,t){var n=Gl();return kl=function(t,e){var i=n[t-=146];if(void 0===kl.MdkyNQ){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)};kl.SlBUFB=o,r=arguments,kl.MdkyNQ=!0}var u=t+n[0],a=r[u];if(a)i=a;else{var v=function(r){this.RJkMmk=r,this.RRLsxj=[1,0,0],this.CORvED=function(){return"newState"},this.WswUJu="\\w+ *\\(\\) *{\\w+ *",this.pigMiH="['|\"].+['|\"];? *}"};v.prototype.ZUABrW=function(){var r=new RegExp(this.WswUJu+this.pigMiH).test(this.CORvED.toString())?--this.RRLsxj[1]:--this.RRLsxj[0];return this.qpwmhE(r)},v.prototype.qpwmhE=function(r){return Boolean(~r)?this.zrCsdy(this.RJkMmk):r},v.prototype.zrCsdy=function(r){for(var t=0,n=this.RRLsxj.length;t<n;t++)this.RRLsxj.push(Math.round(Math.random())),n=this.RRLsxj.length;return r(this.RRLsxj[0])},new v(kl).ZUABrW(),i=kl.SlBUFB(i),r[u]=i}return i},kl(r,t)}Il();var El=function(){var r,t,n,e,i=kl;return(i(166)in(null!==(r=window[i(202)])&&void 0!==r?r:{})?1:0)+(i(180)in(null!==(t=window[i(202)])&&void 0!==t?t:{})?1:0)+(0===(null===(n=window[i(202)])||void 0===n||null===(n=n[i(171)])||void 0===n||null===(e=n[i(206)])||void 0===e?void 0:e[i(194)](n,i(234)))?1:0)+(i(150)in window?1:0)+(i(179)in window?1:0)+(i(227)in window?1:0)+(i(204)in window?1:0)>=5},Xl=function(){var r,t,n=kl;return(n(219)in navigator?1:0)+(n(156)in(null!==(r=null===(t=document[n(215)])||void 0===t?void 0:t[n(151)])&&void 0!==r?r:{})?1:0)+(n(162)in window?1:0)+(n(207)in window?1:0)+(n(199)in window?1:0)+(n(223)in window?1:0)>=4};function Gl(){var r=["BxnjBMrLEgvKrei","BwfJx3bVD2vYCgmP","D2LUotu","qw5KCM9Pza","D2vIA2L0uMvZB2X2zuXVy2fSrMLSzvn5C3rLBvvsta","C3r5Bgu","rNjLzujtra","Dg9mB3DLCKnHC2u","tM90A