@applitools/dom-capture 11.0.2 → 11.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /* @applitools/dom-capture@11.0.2 */
1
+ /* @applitools/dom-capture@11.1.2 */
2
2
 
3
3
  function __pollResult() {
4
4
  var pollResult=function(){"use strict";function t(t,n=0){const e=t.charCodeAt(n);if(e>=55296&&e<56320){return 1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536}return 56320<=e&&e<=57343?-1:e}var n=function(n,e){const r=[];let o=0;for(let u=0;u<n.length;++u){const i=t(n,u);let c=0;i>0&&(c=i<128?1:i<2048?2:i<65536?3:i<2097152?4:i<67108864?5:6),o+c>e?(r.push(u),o=c):o+=c}return r};const e="WIP",r="SUCCESS",o="SUCCESS_CHUNKED",u="ERROR";var i=function(t,i,c={}){const s=function(t,{chunkByteLength:i=0}={}){if(t){if(t.value){if(i){if(!t.chunks){const e=JSON.stringify(t.value);t.chunks=n(e,i),t.chunks.length>0&&(t.from=0,t.value=e)}if(t.from>=0)return{status:o,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:r,value:t.value}}return t.error?{status:u,error:t.error}:{status:e}}return{status:u,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[i],c);return(s.status===r||s.status===u||s.status===o&&s.done)&&(t[i]=null),s};var c={chunkify:n,pollify:function(t,n,e){return r=>function(){return n[e]||(n[e]={},t.apply(null,arguments).then(t=>n[e].value=t).catch(t=>n[e].error=t.message)),i(n,e,r)}},poll:i,absolutizeUrl:function(t,n){return new URL(t,n).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}},s={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_CAPTURE_KEY:"domCaptureResult",NODE_TYPES:{ELEMENT:1,TEXT:3,DOCUMENT_FRAGMENT:11},DEFAULT_STYLE_PROPS:["background-repeat","background-origin","background-position","background-color","background-image","background-size","border-width","border-color","border-style","color","display","font-size","font-weight","line-height","margin","opacity","overflow","padding","visibility","text-align","position","border-radius","z-index"],DEFAULT_RECT_PROPS:["width","height","top","left"],DEFAULT_IGNORED_TAG_NAMES:["HEAD","SCRIPT"]};const{poll:a}=c,{EYES_NAMESPACE:l,DOM_CAPTURE_KEY:f}=s;return function(t){return JSON.stringify(a(window[l],f,t))}}();
@@ -1,4 +1,4 @@
1
- /* @applitools/dom-capture@11.0.2 */
1
+ /* @applitools/dom-capture@11.1.2 */
2
2
 
3
3
  function __pollResultForIE() {
4
4
  var pollResultForIE=function(){"use strict";var t="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){return t&&t.default||t}var n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!y(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,w=function(t,e){return m.call(t,e)},S=o.document,E=y(S)&&y(S.createElement),A=function(t){return E?S.createElement(t):{}},x=!a&&!i((function(){return 7!=Object.defineProperty(A("div"),"a",{get:function(){return 7}}).a})),O=Object.getOwnPropertyDescriptor,R={f:a?O:function(t,e){if(t=g(t),e=b(e,!0),x)try{return O(t,e)}catch(t){}if(w(t,e))return s(!f.f.call(t,e),t[e])}},T=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},_=Object.defineProperty,I={f:a?_:function(t,e,r){if(T(t),e=b(e,!0),T(r),x)try{return _(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},j=a?function(t,e,r){return I.f(t,e,s(1,r))}:function(t,e,r){return t[e]=r,t},P=function(t,e){try{j(o,t,e)}catch(r){o[t]=e}return e},L=o["__core-js_shared__"]||P("__core-js_shared__",{}),M=Function.toString;"function"!=typeof L.inspectSource&&(L.inspectSource=function(t){return M.call(t)});var U,k,N,F=L.inspectSource,C=o.WeakMap,D="function"==typeof C&&/native code/.test(F(C)),B=e((function(t){(t.exports=function(t,e){return L[t]||(L[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.8.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),q=0,z=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++q+z).toString(36)},W=B("keys"),G=function(t){return W[t]||(W[t]=V(t))},Y={},$=o.WeakMap;if(D){var H=L.state||(L.state=new $),J=H.get,X=H.has,K=H.set;U=function(t,e){return e.facade=t,K.call(H,t,e),e},k=function(t){return J.call(H,t)||{}},N=function(t){return X.call(H,t)}}else{var Q=G("state");Y[Q]=!0,U=function(t,e){return e.facade=t,j(t,Q,e),e},k=function(t){return w(t,Q)?t[Q]:{}},N=function(t){return w(t,Q)}}var Z,tt={set:U,get:k,has:N,enforce:function(t){return N(t)?k(t):U(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=k(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},et=e((function(t){var e=tt.get,r=tt.enforce,n=String(String).split("String");(t.exports=function(t,e,i,a){var u,c=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,s=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||j(i,"name",e),(u=r(i)).source||(u.source=n.join("string"==typeof e?e:""))),t!==o?(c?!s&&t[e]&&(f=!0):delete t[e],f?t[e]=i:j(t,e,i)):f?t[e]=i:P(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||F(this)}))})),rt=o,nt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?nt(rt[t])||nt(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},it=Math.ceil,at=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(ut(t),9007199254740991):0},st=Math.max,lt=Math.min,ht=function(t,e){var r=ut(t);return r<0?st(r+e,0):lt(r,e)},pt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=ht(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},dt={includes:pt(!0),indexOf:pt(!1)},vt=dt.indexOf,gt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(Y,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~vt(i,r)||i.push(r));return i},yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=yt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return gt(t,bt)}},wt={f:Object.getOwnPropertySymbols},St=ot("Reflect","ownKeys")||function(t){var e=mt.f(T(t)),r=wt.f;return r?e.concat(r(t)):e},Et=function(t,e){for(var r=St(e),n=I.f,o=R.f,i=0;i<r.length;i++){var a=r[i];w(t,a)||n(t,a,o(e,a))}},At=/#|\.prototype\./,xt=function(t,e){var r=Rt[Ot(t)];return r==_t||r!=Tt&&("function"==typeof e?i(e):!!e)},Ot=xt.normalize=function(t){return String(t).replace(At,".").toLowerCase()},Rt=xt.data={},Tt=xt.NATIVE="N",_t=xt.POLYFILL="P",It=xt,jt=R.f,Pt=function(t,e){var r,n,i,a,u,c=t.target,f=t.global,s=t.stat;if(r=f?o:s?o[c]||P(c,{}):(o[c]||{}).prototype)for(n in e){if(a=e[n],i=t.noTargetGet?(u=jt(r,n))&&u.value:r[n],!It(f?n:c+(s?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;Et(a,i)}(t.sham||i&&i.sham)&&j(a,"sham",!0),et(r,n,a,t)}},Lt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Mt=Lt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ut=Array.isArray||function(t){return"Array"==h(t)},kt=function(t){return Object(v(t))},Nt=Object.keys||function(t){return gt(t,yt)},Ft=a?Object.defineProperties:function(t,e){T(t);for(var r,n=Nt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Ct=ot("document","documentElement"),Dt=G("IE_PROTO"),Bt=function(){},qt=function(t){return"<script>"+t+"<\/script>"},zt=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;zt=Z?function(t){t.write(qt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Z):((e=A("iframe")).style.display="none",Ct.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(qt("document.F=Object")),t.close(),t.F);for(var r=yt.length;r--;)delete zt.prototype[yt[r]];return zt()};Y[Dt]=!0;var Vt=Object.create||function(t,e){var r;return null!==t?(Bt.prototype=T(t),r=new Bt,Bt.prototype=null,r[Dt]=t):r=zt(),void 0===e?r:Ft(r,e)},Wt=mt.f,Gt={}.toString,Yt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$t={f:function(t){return Yt&&"[object Window]"==Gt.call(t)?function(t){try{return Wt(t)}catch(t){return Yt.slice()}}(t):Wt(g(t))}},Ht=B("wks"),Jt=o.Symbol,Xt=Mt?Jt:Jt&&Jt.withoutSetter||V,Kt=function(t){return w(Ht,t)||(Lt&&w(Jt,t)?Ht[t]=Jt[t]:Ht[t]=Xt("Symbol."+t)),Ht[t]},Qt={f:Kt},Zt=I.f,te=function(t){var e=rt.Symbol||(rt.Symbol={});w(e,t)||Zt(e,t,{value:Qt.f(t)})},ee=I.f,re=Kt("toStringTag"),ne=function(t,e,r){t&&!w(t=r?t:t.prototype,re)&&ee(t,re,{configurable:!0,value:e})},oe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},ie=function(t,e,r){if(oe(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}},ae=Kt("species"),ue=function(t,e){var r;return Ut(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!Ut(r.prototype)?y(r)&&null===(r=r[ae])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)},ce=[].push,fe=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,s,l){for(var h,p,v=kt(c),g=d(v),y=ie(f,s,3),b=ft(g.length),m=0,w=l||ue,S=e?w(c,b):r||a?w(c,0):void 0;b>m;m++)if((u||m in g)&&(p=y(h=g[m],m,v),t))if(e)S[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:ce.call(S,h)}else switch(t){case 4:return!1;case 7:ce.call(S,h)}return i?-1:n||o?o:S}},se={forEach:fe(0),map:fe(1),filter:fe(2),some:fe(3),every:fe(4),find:fe(5),findIndex:fe(6),filterOut:fe(7)},le=se.forEach,he=G("hidden"),pe=Kt("toPrimitive"),de=tt.set,ve=tt.getterFor("Symbol"),ge=Object.prototype,ye=o.Symbol,be=ot("JSON","stringify"),me=R.f,we=I.f,Se=$t.f,Ee=f.f,Ae=B("symbols"),xe=B("op-symbols"),Oe=B("string-to-symbol-registry"),Re=B("symbol-to-string-registry"),Te=B("wks"),_e=o.QObject,Ie=!_e||!_e.prototype||!_e.prototype.findChild,je=a&&i((function(){return 7!=Vt(we({},"a",{get:function(){return we(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=me(ge,e);n&&delete ge[e],we(t,e,r),n&&t!==ge&&we(ge,e,n)}:we,Pe=function(t,e){var r=Ae[t]=Vt(ye.prototype);return de(r,{type:"Symbol",tag:t,description:e}),a||(r.description=e),r},Le=Mt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ye},Me=function(t,e,r){t===ge&&Me(xe,e,r),T(t);var n=b(e,!0);return T(r),w(Ae,n)?(r.enumerable?(w(t,he)&&t[he][n]&&(t[he][n]=!1),r=Vt(r,{enumerable:s(0,!1)})):(w(t,he)||we(t,he,s(1,{})),t[he][n]=!0),je(t,n,r)):we(t,n,r)},Ue=function(t,e){T(t);var r=g(e),n=Nt(r).concat(Ce(r));return le(n,(function(e){a&&!ke.call(r,e)||Me(t,e,r[e])})),t},ke=function(t){var e=b(t,!0),r=Ee.call(this,e);return!(this===ge&&w(Ae,e)&&!w(xe,e))&&(!(r||!w(this,e)||!w(Ae,e)||w(this,he)&&this[he][e])||r)},Ne=function(t,e){var r=g(t),n=b(e,!0);if(r!==ge||!w(Ae,n)||w(xe,n)){var o=me(r,n);return!o||!w(Ae,n)||w(r,he)&&r[he][n]||(o.enumerable=!0),o}},Fe=function(t){var e=Se(g(t)),r=[];return le(e,(function(t){w(Ae,t)||w(Y,t)||r.push(t)})),r},Ce=function(t){var e=t===ge,r=Se(e?xe:g(t)),n=[];return le(r,(function(t){!w(Ae,t)||e&&!w(ge,t)||n.push(Ae[t])})),n};if(Lt||(et((ye=function(){if(this instanceof ye)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=V(t),r=function(t){this===ge&&r.call(xe,t),w(this,he)&&w(this[he],e)&&(this[he][e]=!1),je(this,e,s(1,t))};return a&&Ie&&je(ge,e,{configurable:!0,set:r}),Pe(e,t)}).prototype,"toString",(function(){return ve(this).tag})),et(ye,"withoutSetter",(function(t){return Pe(V(t),t)})),f.f=ke,I.f=Me,R.f=Ne,mt.f=$t.f=Fe,wt.f=Ce,Qt.f=function(t){return Pe(Kt(t),t)},a&&(we(ye.prototype,"description",{configurable:!0,get:function(){return ve(this).description}}),et(ge,"propertyIsEnumerable",ke,{unsafe:!0}))),Pt({global:!0,wrap:!0,forced:!Lt,sham:!Lt},{Symbol:ye}),le(Nt(Te),(function(t){te(t)})),Pt({target:"Symbol",stat:!0,forced:!Lt},{for:function(t){var e=String(t);if(w(Oe,e))return Oe[e];var r=ye(e);return Oe[e]=r,Re[r]=e,r},keyFor:function(t){if(!Le(t))throw TypeError(t+" is not a symbol");if(w(Re,t))return Re[t]},useSetter:function(){Ie=!0},useSimple:function(){Ie=!1}}),Pt({target:"Object",stat:!0,forced:!Lt,sham:!a},{create:function(t,e){return void 0===e?Vt(t):Ue(Vt(t),e)},defineProperty:Me,defineProperties:Ue,getOwnPropertyDescriptor:Ne}),Pt({target:"Object",stat:!0,forced:!Lt},{getOwnPropertyNames:Fe,getOwnPropertySymbols:Ce}),Pt({target:"Object",stat:!0,forced:i((function(){wt.f(1)}))},{getOwnPropertySymbols:function(t){return wt.f(kt(t))}}),be){var De=!Lt||i((function(){var t=ye();return"[null]"!=be([t])||"{}"!=be({a:t})||"{}"!=be(Object(t))}));Pt({target:"JSON",stat:!0,forced:De},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(y(e)||void 0!==t)&&!Le(t))return Ut(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Le(e))return e}),o[1]=e,be.apply(null,o)}})}ye.prototype[pe]||j(ye.prototype,pe,ye.prototype.valueOf),ne(ye,"Symbol"),Y[he]=!0,te("asyncIterator");var Be=I.f,qe=o.Symbol;if(a&&"function"==typeof qe&&(!("description"in qe.prototype)||void 0!==qe().description)){var ze={},Ve=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ve?new qe(t):void 0===t?qe():qe(t);return""===t&&(ze[e]=!0),e};Et(Ve,qe);var We=Ve.prototype=qe.prototype;We.constructor=Ve;var Ge=We.toString,Ye="Symbol(test)"==String(qe("test")),$e=/^Symbol\((.*)\)[^)]+$/;Be(We,"description",{configurable:!0,get:function(){var t=y(this)?this.valueOf():this,e=Ge.call(t);if(w(ze,t))return"";var r=Ye?e.slice(7,-1):e.replace($e,"$1");return""===r?void 0:r}}),Pt({global:!0,forced:!0},{Symbol:Ve})}te("hasInstance"),te("isConcatSpreadable"),te("iterator"),te("match"),te("matchAll"),te("replace"),te("search"),te("species"),te("split"),te("toPrimitive"),te("toStringTag"),te("unscopables");var He=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Je=G("IE_PROTO"),Xe=Object.prototype,Ke=He?Object.getPrototypeOf:function(t){return t=kt(t),w(t,Je)?t[Je]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Xe:null},Qe=function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t},Ze=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return T(r),Qe(n),e?t.call(r,n):r.__proto__=n,r}}():void 0),tr={},er=Kt("iterator"),rr=Array.prototype,nr=function(t){return void 0!==t&&(tr.Array===t||rr[er]===t)},or={};or[Kt("toStringTag")]="z";var ir="[object z]"===String(or),ar=Kt("toStringTag"),ur="Arguments"==h(function(){return arguments}()),cr=ir?h:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ar))?r:ur?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},fr=Kt("iterator"),sr=function(t){if(null!=t)return t[fr]||t["@@iterator"]||tr[cr(t)]},lr=function(t){var e=t.return;if(void 0!==e)return T(e.call(t)).value},hr=function(t,e){this.stopped=t,this.result=e},pr=function(t,e,r){var n,o,i,a,u,c,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),d=ie(e,s,1+l+p),v=function(t){return n&&lr(n),new hr(!0,t)},g=function(t){return l?(T(t),p?d(t[0],t[1],v):d(t[0],t[1])):p?d(t,v):d(t)};if(h)n=t;else{if("function"!=typeof(o=sr(t)))throw TypeError("Target is not iterable");if(nr(o)){for(i=0,a=ft(t.length);a>i;i++)if((u=g(t[i]))&&u instanceof hr)return u;return new hr(!1)}n=o.call(t)}for(c=n.next;!(f=c.call(n)).done;){try{u=g(f.value)}catch(t){throw lr(n),t}if("object"==typeof u&&u&&u instanceof hr)return u}return new hr(!1)},dr=function(t,e){var r=this;if(!(r instanceof dr))return new dr(t,e);Ze&&(r=Ze(new Error(void 0),Ke(r))),void 0!==e&&j(r,"message",String(e));var n=[];return pr(t,n.push,{that:n}),j(r,"errors",n),r};dr.prototype=Vt(Error.prototype,{constructor:s(5,dr),message:s(5,""),name:s(5,"AggregateError")}),Pt({global:!0},{AggregateError:dr});var vr=function(t,e,r,n){try{return n?e(T(r)[0],r[1]):e(r)}catch(e){throw lr(t),e}},gr=function(t,e,r){var n=b(e);n in t?I.f(t,n,s(0,r)):t[n]=r},yr=function(t){var e,r,n,o,i,a,u=kt(t),c="function"==typeof this?this:Array,f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=sr(u),p=0;if(l&&(s=ie(s,f>2?arguments[2]:void 0,2)),null==h||c==Array&&nr(h))for(r=new c(e=ft(u.length));e>p;p++)a=l?s(u[p],p):u[p],gr(r,p,a);else for(i=(o=h.call(u)).next,r=new c;!(n=i.call(o)).done;p++)a=l?vr(o,s,[n.value,p],!0):n.value,gr(r,p,a);return r.length=p,r},br=Kt("iterator"),mr=function(t,e){if(!e)return!1;var r=!1;try{var n={};n[br]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},wr=!mr((function(t){}));Pt({target:"Array",stat:!0,forced:wr},{from:yr}),Pt({target:"Array",stat:!0},{isArray:Ut});var Sr=i((function(){function t(){}return!(Array.of.call(t)instanceof t)}));Pt({target:"Array",stat:!0,forced:Sr},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)gr(r,t,arguments[t++]);return r.length=e,r}});var Er,Ar,xr=ot("navigator","userAgent")||"",Or=o.process,Rr=Or&&Or.versions,Tr=Rr&&Rr.v8;Tr?Ar=(Er=Tr.split("."))[0]+Er[1]:xr&&(!(Er=xr.match(/Edge\/(\d+)/))||Er[1]>=74)&&(Er=xr.match(/Chrome\/(\d+)/))&&(Ar=Er[1]);var _r=Ar&&+Ar,Ir=Kt("species"),jr=function(t){return _r>=51||!i((function(){var e=[];return(e.constructor={})[Ir]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Pr=Kt("isConcatSpreadable"),Lr=_r>=51||!i((function(){var t=[];return t[Pr]=!1,t.concat()[0]!==t})),Mr=jr("concat"),Ur=function(t){if(!y(t))return!1;var e=t[Pr];return void 0!==e?!!e:Ut(t)};Pt({target:"Array",proto:!0,forced:!Lr||!Mr},{concat:function(t){var e,r,n,o,i,a=kt(this),u=ue(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Ur(i=-1===e?a:arguments[e])){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<o;r++,c++)r in i&&gr(u,c,i[r])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");gr(u,c++,i)}return u.length=c,u}});var kr=Math.min,Nr=[].copyWithin||function(t,e){var r=kt(this),n=ft(r.length),o=ht(t,n),i=ht(e,n),a=arguments.length>2?arguments[2]:void 0,u=kr((void 0===a?n:ht(a,n))-i,n-o),c=1;for(i<o&&o<i+u&&(c=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:delete r[o],o+=c,i+=c;return r},Fr=Kt("unscopables"),Cr=Array.prototype;null==Cr[Fr]&&I.f(Cr,Fr,{configurable:!0,value:Vt(null)});var Dr=function(t){Cr[Fr][t]=!0};Pt({target:"Array",proto:!0},{copyWithin:Nr}),Dr("copyWithin");var Br=function(t,e){var r=[][t];return!!r&&i((function(){r.call(null,e||function(){throw 1},1)}))},qr=Object.defineProperty,zr={},Vr=function(t){throw t},Wr=function(t,e){if(w(zr,t))return zr[t];e||(e={});var r=[][t],n=!!w(e,"ACCESSORS")&&e.ACCESSORS,o=w(e,0)?e[0]:Vr,u=w(e,1)?e[1]:void 0;return zr[t]=!!r&&!i((function(){if(n&&!a)return!0;var t={length:-1};n?qr(t,1,{enumerable:!0,get:Vr}):t[1]=1,r.call(t,o,u)}))},Gr=se.every,Yr=Br("every"),$r=Wr("every");Pt({target:"Array",proto:!0,forced:!Yr||!$r},{every:function(t){return Gr(this,t,arguments.length>1?arguments[1]:void 0)}});var Hr=function(t){for(var e=kt(this),r=ft(e.length),n=arguments.length,o=ht(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ht(i,r);a>o;)e[o++]=t;return e};Pt({target:"Array",proto:!0},{fill:Hr}),Dr("fill");var Jr=se.filter,Xr=jr("filter"),Kr=Wr("filter");Pt({target:"Array",proto:!0,forced:!Xr||!Kr},{filter:function(t){return Jr(this,t,arguments.length>1?arguments[1]:void 0)}});var Qr=se.find,Zr=!0,tn=Wr("find");"find"in[]&&Array(1).find((function(){Zr=!1})),Pt({target:"Array",proto:!0,forced:Zr||!tn},{find:function(t){return Qr(this,t,arguments.length>1?arguments[1]:void 0)}}),Dr("find");var en=se.findIndex,rn=!0,nn=Wr("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){rn=!1})),Pt({target:"Array",proto:!0,forced:rn||!nn},{findIndex:function(t){return en(this,t,arguments.length>1?arguments[1]:void 0)}}),Dr("findIndex");var on=function(t,e,r,n,o,i,a,u){for(var c,f=o,s=0,l=!!a&&ie(a,u,3);s<n;){if(s in r){if(c=l?l(r[s],s,e):r[s],i>0&&Ut(c))f=on(t,e,c,ft(c.length),f,i-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[f]=c}f++}s++}return f},an=on;Pt({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=kt(this),r=ft(e.length),n=ue(e,0);return n.length=an(n,e,e,r,0,void 0===t?1:ut(t)),n}}),Pt({target:"Array",proto:!0},{flatMap:function(t){var e,r=kt(this),n=ft(r.length);return oe(t),(e=ue(r,0)).length=an(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var un=se.forEach,cn=Br("forEach"),fn=Wr("forEach"),sn=cn&&fn?[].forEach:function(t){return un(this,t,arguments.length>1?arguments[1]:void 0)};Pt({target:"Array",proto:!0,forced:[].forEach!=sn},{forEach:sn});var ln=dt.includes,hn=Wr("indexOf",{ACCESSORS:!0,1:0});Pt({target:"Array",proto:!0,forced:!hn},{includes:function(t){return ln(this,t,arguments.length>1?arguments[1]:void 0)}}),Dr("includes");var pn=dt.indexOf,dn=[].indexOf,vn=!!dn&&1/[1].indexOf(1,-0)<0,gn=Br("indexOf"),yn=Wr("indexOf",{ACCESSORS:!0,1:0});Pt({target:"Array",proto:!0,forced:vn||!gn||!yn},{indexOf:function(t){return vn?dn.apply(this,arguments)||0:pn(this,t,arguments.length>1?arguments[1]:void 0)}});var bn=[].join,mn=d!=Object,wn=Br("join",",");Pt({target:"Array",proto:!0,forced:mn||!wn},{join:function(t){return bn.call(g(this),void 0===t?",":t)}});var Sn=Math.min,En=[].lastIndexOf,An=!!En&&1/[1].lastIndexOf(1,-0)<0,xn=Br("lastIndexOf"),On=Wr("indexOf",{ACCESSORS:!0,1:0}),Rn=An||!xn||!On?function(t){if(An)return En.apply(this,arguments)||0;var e=g(this),r=ft(e.length),n=r-1;for(arguments.length>1&&(n=Sn(n,ut(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:En;Pt({target:"Array",proto:!0,forced:Rn!==[].lastIndexOf},{lastIndexOf:Rn});var Tn=se.map,_n=jr("map"),In=Wr("map");Pt({target:"Array",proto:!0,forced:!_n||!In},{map:function(t){return Tn(this,t,arguments.length>1?arguments[1]:void 0)}});var jn=function(t){return function(e,r,n,o){oe(r);var i=kt(e),a=d(i),u=ft(i.length),c=t?u-1:0,f=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw TypeError("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=r(o,a[c],c,i));return o}},Pn={left:jn(!1),right:jn(!0)},Ln="process"==h(o.process),Mn=Pn.left,Un=Br("reduce"),kn=Wr("reduce",{1:0});Pt({target:"Array",proto:!0,forced:!Un||!kn||!Ln&&_r>79&&_r<83},{reduce:function(t){return Mn(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Nn=Pn.right,Fn=Br("reduceRight"),Cn=Wr("reduce",{1:0});Pt({target:"Array",proto:!0,forced:!Fn||!Cn||!Ln&&_r>79&&_r<83},{reduceRight:function(t){return Nn(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Dn=[].reverse,Bn=[1,2];Pt({target:"Array",proto:!0,forced:String(Bn)===String(Bn.reverse())},{reverse:function(){return Ut(this)&&(this.length=this.length),Dn.call(this)}});var qn=jr("slice"),zn=Wr("slice",{ACCESSORS:!0,0:0,1:2}),Vn=Kt("species"),Wn=[].slice,Gn=Math.max;Pt({target:"Array",proto:!0,forced:!qn||!zn},{slice:function(t,e){var r,n,o,i=g(this),a=ft(i.length),u=ht(t,a),c=ht(void 0===e?a:e,a);if(Ut(i)&&("function"!=typeof(r=i.constructor)||r!==Array&&!Ut(r.prototype)?y(r)&&null===(r=r[Vn])&&(r=void 0):r=void 0,r===Array||void 0===r))return Wn.call(i,u,c);for(n=new(void 0===r?Array:r)(Gn(c-u,0)),o=0;u<c;u++,o++)u in i&&gr(n,o,i[u]);return n.length=o,n}});var Yn=se.some,$n=Br("some"),Hn=Wr("some");Pt({target:"Array",proto:!0,forced:!$n||!Hn},{some:function(t){return Yn(this,t,arguments.length>1?arguments[1]:void 0)}});var Jn=[],Xn=Jn.sort,Kn=i((function(){Jn.sort(void 0)})),Qn=i((function(){Jn.sort(null)})),Zn=Br("sort");Pt({target:"Array",proto:!0,forced:Kn||!Qn||!Zn},{sort:function(t){return void 0===t?Xn.call(kt(this)):Xn.call(kt(this),oe(t))}});var to=jr("splice"),eo=Wr("splice",{ACCESSORS:!0,0:0,1:2}),ro=Math.max,no=Math.min;Pt({target:"Array",proto:!0,forced:!to||!eo},{splice:function(t,e){var r,n,o,i,a,u,c=kt(this),f=ft(c.length),s=ht(t,f),l=arguments.length;if(0===l?r=n=0:1===l?(r=0,n=f-s):(r=l-2,n=no(ro(ut(e),0),f-s)),f+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=ue(c,n),i=0;i<n;i++)(a=s+i)in c&&gr(o,i,c[a]);if(o.length=n,r<n){for(i=s;i<f-n;i++)u=i+r,(a=i+n)in c?c[u]=c[a]:delete c[u];for(i=f;i>f-n+r;i--)delete c[i-1]}else if(r>n)for(i=f-n;i>s;i--)u=i+r-1,(a=i+n-1)in c?c[u]=c[a]:delete c[u];for(i=0;i<r;i++)c[i+s]=arguments[i+2];return c.length=f-n+r,o}});var oo=Kt("species"),io=function(t){var e=ot(t),r=I.f;a&&e&&!e[oo]&&r(e,oo,{configurable:!0,get:function(){return this}})};io("Array"),Dr("flat"),Dr("flatMap");var ao,uo,co,fo=Kt("iterator"),so=!1;[].keys&&("next"in(co=[].keys())?(uo=Ke(Ke(co)))!==Object.prototype&&(ao=uo):so=!0),null==ao&&(ao={}),w(ao,fo)||j(ao,fo,(function(){return this}));var lo={IteratorPrototype:ao,BUGGY_SAFARI_ITERATORS:so},ho=lo.IteratorPrototype,po=function(){return this},vo=function(t,e,r){var n=e+" Iterator";return t.prototype=Vt(ho,{next:s(1,r)}),ne(t,n,!1),tr[n]=po,t},go=lo.IteratorPrototype,yo=lo.BUGGY_SAFARI_ITERATORS,bo=Kt("iterator"),mo=function(){return this},wo=function(t,e,r,n,o,i,a){vo(r,e,n);var u,c,f,s=function(t){if(t===o&&v)return v;if(!yo&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[bo]||p["@@iterator"]||o&&p[o],v=!yo&&d||s(o),g="Array"==e&&p.entries||d;if(g&&(u=Ke(g.call(new t)),go!==Object.prototype&&u.next&&(Ke(u)!==go&&(Ze?Ze(u,go):"function"!=typeof u[bo]&&j(u,bo,mo)),ne(u,l,!0))),"values"==o&&d&&"values"!==d.name&&(h=!0,v=function(){return d.call(this)}),p[bo]!==v&&j(p,bo,v),tr[e]=v,o)if(c={values:s("values"),keys:i?v:s("keys"),entries:s("entries")},a)for(f in c)(yo||h||!(f in p))&&et(p,f,c[f]);else Pt({target:e,proto:!0,forced:yo||h},c);return c},So=tt.set,Eo=tt.getterFor("Array Iterator"),Ao=wo(Array,"Array",(function(t,e){So(this,{type:"Array Iterator",target:g(t),index:0,kind:e})}),(function(){var t=Eo(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");tr.Arguments=tr.Array,Dr("keys"),Dr("values"),Dr("entries");var xo=[].slice,Oo={},Ro=function(t,e,r){if(!(e in Oo)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Oo[e]=Function("C,a","return new C("+n.join(",")+")")}return Oo[e](t,r)},To=Function.bind||function(t){var e=oe(this),r=xo.call(arguments,1),n=function(){var o=r.concat(xo.call(arguments));return this instanceof n?Ro(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n};Pt({target:"Function",proto:!0},{bind:To});var _o=I.f,Io=Function.prototype,jo=Io.toString,Po=/^\s*function ([^ (]*)/;a&&!("name"in Io)&&_o(Io,"name",{configurable:!0,get:function(){try{return jo.call(this).match(Po)[1]}catch(t){return""}}});var Lo=Kt("hasInstance"),Mo=Function.prototype;Lo in Mo||I.f(Mo,Lo,{value:function(t){if("function"!=typeof this||!y(t))return!1;if(!y(this.prototype))return t instanceof this;for(;t=Ke(t);)if(this.prototype===t)return!0;return!1}}),Pt({global:!0},{globalThis:o});var Uo=Object.assign,ko=Object.defineProperty,No=!Uo||i((function(){if(a&&1!==Uo({b:1},Uo(ko({},"a",{enumerable:!0,get:function(){ko(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Uo({},t)[r]||"abcdefghijklmnopqrst"!=Nt(Uo({},e)).join("")}))?function(t,e){for(var r=kt(t),n=arguments.length,o=1,i=wt.f,u=f.f;n>o;)for(var c,s=d(arguments[o++]),l=i?Nt(s).concat(i(s)):Nt(s),h=l.length,p=0;h>p;)c=l[p++],a&&!u.call(s,c)||(r[c]=s[c]);return r}:Uo;Pt({target:"Object",stat:!0,forced:Object.assign!==No},{assign:No}),Pt({target:"Object",stat:!0,sham:!a},{create:Vt}),Pt({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:I.f}),Pt({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperties:Ft});var Fo=f.f,Co=function(t){return function(e){for(var r,n=g(e),o=Nt(n),i=o.length,u=0,c=[];i>u;)r=o[u++],a&&!Fo.call(n,r)||c.push(t?[r,n[r]]:n[r]);return c}},Do={entries:Co(!0),values:Co(!1)},Bo=Do.entries;Pt({target:"Object",stat:!0},{entries:function(t){return Bo(t)}});var qo=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),zo=e((function(t){var e=I.f,r=V("meta"),n=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,r,{value:{objectID:"O"+ ++n,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,r)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[r].objectID},getWeakData:function(t,e){if(!w(t,r)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[r].weakData},onFreeze:function(t){return qo&&a.REQUIRED&&o(t)&&!w(t,r)&&i(t),t}};Y[r]=!0})),Vo=(zo.REQUIRED,zo.fastKey,zo.getWeakData,zo.onFreeze,zo.onFreeze),Wo=Object.freeze,Go=i((function(){Wo(1)}));Pt({target:"Object",stat:!0,forced:Go,sham:!qo},{freeze:function(t){return Wo&&y(t)?Wo(Vo(t)):t}}),Pt({target:"Object",stat:!0},{fromEntries:function(t){var e={};return pr(t,(function(t,r){gr(e,t,r)}),{AS_ENTRIES:!0}),e}});var Yo=R.f,$o=i((function(){Yo(1)}));Pt({target:"Object",stat:!0,forced:!a||$o,sham:!a},{getOwnPropertyDescriptor:function(t,e){return Yo(g(t),e)}}),Pt({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,r,n=g(t),o=R.f,i=St(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&gr(a,e,r);return a}});var Ho=$t.f,Jo=i((function(){return!Object.getOwnPropertyNames(1)}));Pt({target:"Object",stat:!0,forced:Jo},{getOwnPropertyNames:Ho});var Xo=i((function(){Ke(1)}));Pt({target:"Object",stat:!0,forced:Xo,sham:!He},{getPrototypeOf:function(t){return Ke(kt(t))}});var Ko=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Pt({target:"Object",stat:!0},{is:Ko});var Qo=Object.isExtensible,Zo=i((function(){}));Pt({target:"Object",stat:!0,forced:Zo},{isExtensible:function(t){return!!y(t)&&(!Qo||Qo(t))}});var ti=Object.isFrozen,ei=i((function(){}));Pt({target:"Object",stat:!0,forced:ei},{isFrozen:function(t){return!y(t)||!!ti&&ti(t)}});var ri=Object.isSealed,ni=i((function(){}));Pt({target:"Object",stat:!0,forced:ni},{isSealed:function(t){return!y(t)||!!ri&&ri(t)}});var oi=i((function(){Nt(1)}));Pt({target:"Object",stat:!0,forced:oi},{keys:function(t){return Nt(kt(t))}});var ii=zo.onFreeze,ai=Object.preventExtensions,ui=i((function(){ai(1)}));Pt({target:"Object",stat:!0,forced:ui,sham:!qo},{preventExtensions:function(t){return ai&&y(t)?ai(ii(t)):t}});var ci=zo.onFreeze,fi=Object.seal,si=i((function(){fi(1)}));Pt({target:"Object",stat:!0,forced:si,sham:!qo},{seal:function(t){return fi&&y(t)?fi(ci(t)):t}}),Pt({target:"Object",stat:!0},{setPrototypeOf:Ze});var li=Do.values;Pt({target:"Object",stat:!0},{values:function(t){return li(t)}});var hi=ir?{}.toString:function(){return"[object "+cr(this)+"]"};ir||et(Object.prototype,"toString",hi,{unsafe:!0});var pi=!i((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete o[t]}));a&&Pt({target:"Object",proto:!0,forced:pi},{__defineGetter__:function(t,e){I.f(kt(this),t,{get:oe(e),enumerable:!0,configurable:!0})}}),a&&Pt({target:"Object",proto:!0,forced:pi},{__defineSetter__:function(t,e){I.f(kt(this),t,{set:oe(e),enumerable:!0,configurable:!0})}});var di=R.f;a&&Pt({target:"Object",proto:!0,forced:pi},{__lookupGetter__:function(t){var e,r=kt(this),n=b(t,!0);do{if(e=di(r,n))return e.get}while(r=Ke(r))}});var vi=R.f;a&&Pt({target:"Object",proto:!0,forced:pi},{__lookupSetter__:function(t){var e,r=kt(this),n=b(t,!0);do{if(e=vi(r,n))return e.set}while(r=Ke(r))}});var gi=String.fromCharCode,yi=String.fromCodePoint,bi=!!yi&&1!=yi.length;Pt({target:"String",stat:!0,forced:bi},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,o=0;n>o;){if(e=+arguments[o++],ht(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?gi(e):gi(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}}),Pt({target:"String",stat:!0},{raw:function(t){for(var e=g(t.raw),r=ft(e.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(e[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}});var mi=function(t){return function(e,r){var n,o,i=String(v(e)),a=ut(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):n:t?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},wi={codeAt:mi(!1),charAt:mi(!0)},Si=wi.codeAt;Pt({target:"String",proto:!0},{codePointAt:function(t){return Si(this,t)}});var Ei,Ai=Kt("match"),xi=function(t){var e;return y(t)&&(void 0!==(e=t[Ai])?!!e:"RegExp"==h(t))},Oi=function(t){if(xi(t))throw TypeError("The method doesn't accept regular expressions");return t},Ri=Kt("match"),Ti=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Ri]=!1,"/./"[t](e)}catch(t){}}return!1},_i=R.f,Ii="".endsWith,ji=Math.min,Pi=Ti("endsWith"),Li=!(Pi||(Ei=_i(String.prototype,"endsWith"),!Ei||Ei.writable));Pt({target:"String",proto:!0,forced:!Li&&!Pi},{endsWith:function(t){var e=String(v(this));Oi(t);var r=arguments.length>1?arguments[1]:void 0,n=ft(e.length),o=void 0===r?n:ji(ft(r),n),i=String(t);return Ii?Ii.call(e,i,o):e.slice(o-i.length,o)===i}}),Pt({target:"String",proto:!0,forced:!Ti("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Oi(t),arguments.length>1?arguments[1]:void 0)}});var Mi=function(){var t=T(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Ui(t,e){return RegExp(t,e)}var ki={UNSUPPORTED_Y:i((function(){var t=Ui("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Ui("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ni=RegExp.prototype.exec,Fi=String.prototype.replace,Ci=Ni,Di=function(){var t=/a/,e=/b*/g;return Ni.call(t,"a"),Ni.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),Bi=ki.UNSUPPORTED_Y||ki.BROKEN_CARET,qi=void 0!==/()??/.exec("")[1];(Di||qi||Bi)&&(Ci=function(t){var e,r,n,o,i=this,a=Bi&&i.sticky,u=Mi.call(i),c=i.source,f=0,s=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",s=" "+s,f++),r=new RegExp("^(?:"+c+")",u)),qi&&(r=new RegExp("^"+c+"$(?!\\s)",u)),Di&&(e=i.lastIndex),n=Ni.call(a?r:i,s),a?n?(n.input=n.input.slice(f),n[0]=n[0].slice(f),n.index=i.lastIndex,i.lastIndex+=n[0].length):i.lastIndex=0:Di&&n&&(i.lastIndex=i.global?n.index+n[0].length:e),qi&&n&&n.length>1&&Fi.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n});var zi=Ci;Pt({target:"RegExp",proto:!0,forced:/./.exec!==zi},{exec:zi});var Vi=Kt("species"),Wi=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Gi="$0"==="a".replace(/./,"$0"),Yi=Kt("replace"),$i=!!/./[Yi]&&""===/./[Yi]("a","$0"),Hi=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Ji=function(t,e,r,n){var o=Kt(t),a=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=a&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Vi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!a||!u||"replace"===t&&(!Wi||!Gi||$i)||"split"===t&&!Hi){var c=/./[o],f=r(o,""[t],(function(t,e,r,n,o){return e.exec===zi?a&&!o?{done:!0,value:c.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:Gi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:$i}),s=f[0],l=f[1];et(String.prototype,t,s),et(RegExp.prototype,o,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}n&&j(RegExp.prototype[o],"sham",!0)},Xi=wi.charAt,Ki=function(t,e,r){return e+(r?Xi(t,e).length:1)},Qi=function(t,e){var r=t.exec;if("function"==typeof r){var n=r.call(t,e);if("object"!=typeof n)throw TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==h(t))throw TypeError("RegExp#exec called on incompatible receiver");return zi.call(t,e)};Ji("match",1,(function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=T(t),i=String(this);if(!o.global)return Qi(o,i);var a=o.unicode;o.lastIndex=0;for(var u,c=[],f=0;null!==(u=Qi(o,i));){var s=String(u[0]);c[f]=s,""===s&&(o.lastIndex=Ki(i,ft(o.lastIndex),a)),f++}return 0===f?null:c}]}));var Zi=Kt("species"),ta=function(t,e){var r,n=T(t).constructor;return void 0===n||null==(r=T(n)[Zi])?e:oe(r)},ea=Kt("matchAll"),ra=tt.set,na=tt.getterFor("RegExp String Iterator"),oa=RegExp.prototype,ia=oa.exec,aa="".matchAll,ua=!!aa&&!i((function(){"a".matchAll(/./)})),ca=vo((function(t,e,r,n){ra(this,{type:"RegExp String Iterator",regexp:t,string:e,global:r,unicode:n,done:!1})}),"RegExp String",(function(){var t=na(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,r=t.string,n=function(t,e){var r,n=t.exec;if("function"==typeof n){if("object"!=typeof(r=n.call(t,e)))throw TypeError("Incorrect exec result");return r}return ia.call(t,e)}(e,r);return null===n?{value:void 0,done:t.done=!0}:t.global?(""==String(n[0])&&(e.lastIndex=Ki(r,ft(e.lastIndex),t.unicode)),{value:n,done:!1}):(t.done=!0,{value:n,done:!1})})),fa=function(t){var e,r,n,o,i,a,u=T(this),c=String(t);return e=ta(u,RegExp),void 0===(r=u.flags)&&u instanceof RegExp&&!("flags"in oa)&&(r=Mi.call(u)),n=void 0===r?"":String(r),o=new e(e===RegExp?u.source:u,n),i=!!~n.indexOf("g"),a=!!~n.indexOf("u"),o.lastIndex=ft(u.lastIndex),new ca(o,c,i,a)};Pt({target:"String",proto:!0,forced:ua},{matchAll:function(t){var e,r,n=v(this);if(null!=t){if(xi(t)&&!~String(v("flags"in oa?t.flags:Mi.call(t))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(ua)return aa.apply(n,arguments);if(null!=(r=t[ea]))return oe(r).call(t,n)}else if(ua)return aa.apply(n,arguments);return e=String(n),new RegExp(t,"g")[ea](e)}}),ea in oa||j(oa,ea,fa);var sa="".repeat||function(t){var e=String(v(this)),r="",n=ut(t);if(n<0||n==1/0)throw RangeError("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r},la=Math.ceil,ha=function(t){return function(e,r,n){var o,i,a=String(v(e)),u=a.length,c=void 0===n?" ":String(n),f=ft(r);return f<=u||""==c?a:(o=f-u,(i=sa.call(c,la(o/c.length))).length>o&&(i=i.slice(0,o)),t?a+i:i+a)}},pa={start:ha(!1),end:ha(!0)},da=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(xr),va=pa.end;Pt({target:"String",proto:!0,forced:da},{padEnd:function(t){return va(this,t,arguments.length>1?arguments[1]:void 0)}});var ga=pa.start;Pt({target:"String",proto:!0,forced:da},{padStart:function(t){return ga(this,t,arguments.length>1?arguments[1]:void 0)}}),Pt({target:"String",proto:!0},{repeat:sa});var ya=Math.floor,ba="".replace,ma=/\$([$&'`]|\d\d?|<[^>]*>)/g,wa=/\$([$&'`]|\d\d?)/g,Sa=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=wa;return void 0!==o&&(o=kt(o),c=ma),ba.call(i,c,(function(i,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":f=o[c.slice(1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=ya(s/10);return 0===l?i:l<=u?void 0===n[l-1]?c.charAt(1):n[l-1]+c.charAt(1):i}f=n[s-1]}return void 0===f?"":f}))},Ea=Math.max,Aa=Math.min;Ji("replace",2,(function(t,e,r,n){var o=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=n.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(r,n){var o=v(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,n):e.call(String(o),r,n)},function(t,n){if(!o&&i||"string"==typeof n&&-1===n.indexOf(a)){var u=r(e,t,this,n);if(u.done)return u.value}var c=T(t),f=String(this),s="function"==typeof n;s||(n=String(n));var l=c.global;if(l){var h=c.unicode;c.lastIndex=0}for(var p=[];;){var d=Qi(c,f);if(null===d)break;if(p.push(d),!l)break;""===String(d[0])&&(c.lastIndex=Ki(f,ft(c.lastIndex),h))}for(var v,g="",y=0,b=0;b<p.length;b++){d=p[b];for(var m=String(d[0]),w=Ea(Aa(ut(d.index),f.length),0),S=[],E=1;E<d.length;E++)S.push(void 0===(v=d[E])?v:String(v));var A=d.groups;if(s){var x=[m].concat(S,w,f);void 0!==A&&x.push(A);var O=String(n.apply(void 0,x))}else O=Sa(m,f,w,S,A,n);w>=y&&(g+=f.slice(y,w)+O,y=w+m.length)}return g+f.slice(y)}]})),Ji("search",1,(function(t,e,r){return[function(e){var r=v(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=T(t),i=String(this),a=o.lastIndex;Ko(a,0)||(o.lastIndex=0);var u=Qi(o,i);return Ko(o.lastIndex,a)||(o.lastIndex=a),null===u?-1:u.index}]}));var xa=[].push,Oa=Math.min,Ra=!i((function(){return!RegExp(4294967295,"y")}));Ji("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(v(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!xi(t))return e.call(n,t,o);for(var i,a,u,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,f+"g");(i=zi.call(l,n))&&!((a=l.lastIndex)>s&&(c.push(n.slice(s,i.index)),i.length>1&&i.index<n.length&&xa.apply(c,i.slice(1)),u=i[0].length,s=a,c.length>=o));)l.lastIndex===i.index&&l.lastIndex++;return s===n.length?!u&&l.test("")||c.push(""):c.push(n.slice(s)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var o=v(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,o){var i=r(n,t,this,o,n!==e);if(i.done)return i.value;var a=T(t),u=String(this),c=ta(a,RegExp),f=a.unicode,s=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ra?"y":"g"),l=new c(Ra?a:"^(?:"+a.source+")",s),h=void 0===o?4294967295:o>>>0;if(0===h)return[];if(0===u.length)return null===Qi(l,u)?[u]:[];for(var p=0,d=0,v=[];d<u.length;){l.lastIndex=Ra?d:0;var g,y=Qi(l,Ra?u:u.slice(d));if(null===y||(g=Oa(ft(l.lastIndex+(Ra?0:d)),u.length))===p)d=Ki(u,d,f);else{if(v.push(u.slice(p,d)),v.length===h)return v;for(var b=1;b<=y.length-1;b++)if(v.push(y[b]),v.length===h)return v;d=p=g}}return v.push(u.slice(p)),v}]}),!Ra);var Ta=R.f,_a="".startsWith,Ia=Math.min,ja=Ti("startsWith"),Pa=!ja&&!!function(){var t=Ta(String.prototype,"startsWith");return t&&!t.writable}();Pt({target:"String",proto:!0,forced:!Pa&&!ja},{startsWith:function(t){var e=String(v(this));Oi(t);var r=ft(Ia(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return _a?_a.call(e,n,r):e.slice(r,r+n.length)===n}});var La="\t\n\v\f\r                 \u2028\u2029\ufeff",Ma="["+La+"]",Ua=RegExp("^"+Ma+Ma+"*"),ka=RegExp(Ma+Ma+"*$"),Na=function(t){return function(e){var r=String(v(e));return 1&t&&(r=r.replace(Ua,"")),2&t&&(r=r.replace(ka,"")),r}},Fa={start:Na(1),end:Na(2),trim:Na(3)},Ca=function(t){return i((function(){return!!La[t]()||"​…᠎"!="​…᠎"[t]()||La[t].name!==t}))},Da=Fa.trim;Pt({target:"String",proto:!0,forced:Ca("trim")},{trim:function(){return Da(this)}});var Ba=Fa.start,qa=Ca("trimStart"),za=qa?function(){return Ba(this)}:"".trimStart;Pt({target:"String",proto:!0,forced:qa},{trimStart:za,trimLeft:za});var Va=Fa.end,Wa=Ca("trimEnd"),Ga=Wa?function(){return Va(this)}:"".trimEnd;Pt({target:"String",proto:!0,forced:Wa},{trimEnd:Ga,trimRight:Ga});var Ya=wi.charAt,$a=tt.set,Ha=tt.getterFor("String Iterator");wo(String,"String",(function(t){$a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ha(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Ya(r,n),e.index+=t.length,{value:t,done:!1})}));var Ja=/"/g,Xa=function(t,e,r,n){var o=String(v(t)),i="<"+e;return""!==r&&(i+=" "+r+'="'+String(n).replace(Ja,"&quot;")+'"'),i+">"+o+"</"+e+">"},Ka=function(t){return i((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))};Pt({target:"String",proto:!0,forced:Ka("anchor")},{anchor:function(t){return Xa(this,"a","name",t)}}),Pt({target:"String",proto:!0,forced:Ka("big")},{big:function(){return Xa(this,"big","","")}}),Pt({target:"String",proto:!0,forced:Ka("blink")},{blink:function(){return Xa(this,"blink","","")}}),Pt({target:"String",proto:!0,forced:Ka("bold")},{bold:function(){return Xa(this,"b","","")}}),Pt({target:"String",proto:!0,forced:Ka("fixed")},{fixed:function(){return Xa(this,"tt","","")}}),Pt({target:"String",proto:!0,forced:Ka("fontcolor")},{fontcolor:function(t){return Xa(this,"font","color",t)}}),Pt({target:"String",proto:!0,forced:Ka("fontsize")},{fontsize:function(t){return Xa(this,"font","size",t)}}),Pt({target:"String",proto:!0,forced:Ka("italics")},{italics:function(){return Xa(this,"i","","")}}),Pt({target:"String",proto:!0,forced:Ka("link")},{link:function(t){return Xa(this,"a","href",t)}}),Pt({target:"String",proto:!0,forced:Ka("small")},{small:function(){return Xa(this,"small","","")}}),Pt({target:"String",proto:!0,forced:Ka("strike")},{strike:function(){return Xa(this,"strike","","")}}),Pt({target:"String",proto:!0,forced:Ka("sub")},{sub:function(){return Xa(this,"sub","","")}}),Pt({target:"String",proto:!0,forced:Ka("sup")},{sup:function(){return Xa(this,"sup","","")}});var Qa=Kt("replace"),Za=RegExp.prototype,tu=Math.max,eu=function(t,e,r){return r>t.length?-1:""===e?r:t.indexOf(e,r)};Pt({target:"String",proto:!0},{replaceAll:function(t,e){var r,n,o,i,a,u,c,f=v(this),s=0,l=0,h="";if(null!=t){if(xi(t)&&!~String(v("flags"in Za?t.flags:Mi.call(t))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(void 0!==(r=t[Qa]))return r.call(t,f,e)}for(n=String(f),o=String(t),(i="function"==typeof e)||(e=String(e)),a=o.length,u=tu(1,a),s=eu(n,o,0);-1!==s;)c=i?String(e(o,s,n)):Sa(o,n,s,[],void 0,e),h+=n.slice(l,s)+c,l=s+a,s=eu(n,o,s+u);return l<n.length&&(h+=n.slice(l)),h}});var ru=function(t,e,r){var n,o;return Ze&&"function"==typeof(n=e.constructor)&&n!==r&&y(o=n.prototype)&&o!==r.prototype&&Ze(t,o),t},nu=I.f,ou=mt.f,iu=tt.set,au=Kt("match"),uu=o.RegExp,cu=uu.prototype,fu=/a/g,su=/a/g,lu=new uu(fu)!==fu,hu=ki.UNSUPPORTED_Y;if(a&&It("RegExp",!lu||hu||i((function(){return su[au]=!1,uu(fu)!=fu||uu(su)==su||"/a/i"!=uu(fu,"i")})))){for(var pu=function(t,e){var r,n=this instanceof pu,o=xi(t),i=void 0===e;if(!n&&o&&t.constructor===pu&&i)return t;lu?o&&!i&&(t=t.source):t instanceof pu&&(i&&(e=Mi.call(t)),t=t.source),hu&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var a=ru(lu?new uu(t,e):uu(t,e),n?this:cu,pu);return hu&&r&&iu(a,{sticky:r}),a},du=function(t){t in pu||nu(pu,t,{configurable:!0,get:function(){return uu[t]},set:function(e){uu[t]=e}})},vu=ou(uu),gu=0;vu.length>gu;)du(vu[gu++]);cu.constructor=pu,pu.prototype=cu,et(o,"RegExp",pu)}io("RegExp"),a&&("g"!=/./g.flags||ki.UNSUPPORTED_Y)&&I.f(RegExp.prototype,"flags",{configurable:!0,get:Mi});var yu=ki.UNSUPPORTED_Y,bu=I.f,mu=tt.get,wu=RegExp.prototype;a&&yu&&bu(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==wu){if(this instanceof RegExp)return!!mu(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}});var Su=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),Eu=/./.test;Pt({target:"RegExp",proto:!0,forced:!Su},{test:function(t){if("function"!=typeof this.exec)return Eu.call(this,t);var e=this.exec(t);if(null!==e&&!y(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}});var Au=RegExp.prototype,xu=Au.toString,Ou=i((function(){return"/a/b"!=xu.call({source:"a",flags:"b"})})),Ru="toString"!=xu.name;(Ou||Ru)&&et(RegExp.prototype,"toString",(function(){var t=T(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in Au)?Mi.call(t):r)}),{unsafe:!0});var Tu=Fa.trim,_u=o.parseInt,Iu=/^[+-]?0[Xx]/,ju=8!==_u(La+"08")||22!==_u(La+"0x16")?function(t,e){var r=Tu(String(t));return _u(r,e>>>0||(Iu.test(r)?16:10))}:_u;Pt({global:!0,forced:parseInt!=ju},{parseInt:ju});var Pu=Fa.trim,Lu=o.parseFloat,Mu=1/Lu(La+"-0")!=-1/0?function(t){var e=Pu(String(t)),r=Lu(e);return 0===r&&"-"==e.charAt(0)?-0:r}:Lu;Pt({global:!0,forced:parseFloat!=Mu},{parseFloat:Mu});var Uu=mt.f,ku=R.f,Nu=I.f,Fu=Fa.trim,Cu=o.Number,Du=Cu.prototype,Bu="Number"==h(Vt(Du)),qu=function(t){var e,r,n,o,i,a,u,c,f=b(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=Fu(f)).charCodeAt(0))||45===e){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(a=(i=f.slice(2)).length,u=0;u<a;u++)if((c=i.charCodeAt(u))<48||c>o)return NaN;return parseInt(i,n)}return+f};if(It("Number",!Cu(" 0o1")||!Cu("0b1")||Cu("+0x1"))){for(var zu,Vu=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof Vu&&(Bu?i((function(){Du.valueOf.call(r)})):"Number"!=h(r))?ru(new Cu(qu(e)),r,Vu):qu(e)},Wu=a?Uu(Cu):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Gu=0;Wu.length>Gu;Gu++)w(Cu,zu=Wu[Gu])&&!w(Vu,zu)&&Nu(Vu,zu,ku(Cu,zu));Vu.prototype=Du,Du.constructor=Vu,et(o,"Number",Vu)}Pt({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)});var Yu=o.isFinite,$u=Number.isFinite||function(t){return"number"==typeof t&&Yu(t)};Pt({target:"Number",stat:!0},{isFinite:$u});var Hu=Math.floor,Ju=function(t){return!y(t)&&isFinite(t)&&Hu(t)===t};Pt({target:"Number",stat:!0},{isInteger:Ju}),Pt({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var Xu=Math.abs;Pt({target:"Number",stat:!0},{isSafeInteger:function(t){return Ju(t)&&Xu(t)<=9007199254740991}}),Pt({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991}),Pt({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991}),Pt({target:"Number",stat:!0,forced:Number.parseFloat!=Mu},{parseFloat:Mu}),Pt({target:"Number",stat:!0,forced:Number.parseInt!=ju},{parseInt:ju});var Ku=function(t){if("number"!=typeof t&&"Number"!=h(t))throw TypeError("Incorrect invocation");return+t},Qu=1..toFixed,Zu=Math.floor,tc=function(t,e,r){return 0===e?r:e%2==1?tc(t,e-1,r*t):tc(t*t,e/2,r)},ec=Qu&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i((function(){Qu.call({})}));Pt({target:"Number",proto:!0,forced:ec},{toFixed:function(t){var e,r,n,o,i=Ku(this),a=ut(t),u=[0,0,0,0,0,0],c="",f="0",s=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*u[r],u[r]=n%1e7,n=Zu(n/1e7)},l=function(t){for(var e=6,r=0;--e>=0;)r+=u[e],u[e]=Zu(r/t),r=r%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==u[t]){var r=String(u[t]);e=""===e?r:e+sa.call("0",7-r.length)+r}return e};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(c="-",i=-i),i>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(i*tc(2,69,1))-69)<0?i*tc(2,-e,1):i/tc(2,e,1),r*=4503599627370496,(e=52-e)>0){for(s(0,r),n=a;n>=7;)s(1e7,0),n-=7;for(s(tc(10,n,1),0),n=e-1;n>=23;)l(1<<23),n-=23;l(1<<n),s(1,1),l(2),f=h()}else s(0,r),s(1<<-e,0),f=h()+sa.call("0",a);return f=a>0?c+((o=f.length)<=a?"0."+sa.call("0",a-o)+f:f.slice(0,o-a)+"."+f.slice(o-a)):c+f}});var rc=1..toPrecision,nc=i((function(){return"1"!==rc.call(1,void 0)}))||!i((function(){rc.call({})}));Pt({target:"Number",proto:!0,forced:nc},{toPrecision:function(t){return void 0===t?rc.call(Ku(this)):rc.call(Ku(this),t)}});var oc=Math.log,ic=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:oc(1+t)},ac=Math.acosh,uc=Math.log,cc=Math.sqrt,fc=Math.LN2,sc=!ac||710!=Math.floor(ac(Number.MAX_VALUE))||ac(1/0)!=1/0;Pt({target:"Math",stat:!0,forced:sc},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?uc(t)+fc:ic(t-1+cc(t-1)*cc(t+1))}});var lc=Math.asinh,hc=Math.log,pc=Math.sqrt;Pt({target:"Math",stat:!0,forced:!(lc&&1/lc(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):hc(e+pc(e*e+1)):e}});var dc=Math.atanh,vc=Math.log;Pt({target:"Math",stat:!0,forced:!(dc&&1/dc(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:vc((1+t)/(1-t))/2}});var gc=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1},yc=Math.abs,bc=Math.pow;Pt({target:"Math",stat:!0},{cbrt:function(t){return gc(t=+t)*bc(yc(t),1/3)}});var mc=Math.floor,wc=Math.log,Sc=Math.LOG2E;Pt({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-mc(wc(t+.5)*Sc):32}});var Ec=Math.expm1,Ac=Math.exp,xc=!Ec||Ec(10)>22025.465794806718||Ec(10)<22025.465794806718||-2e-17!=Ec(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Ac(t)-1}:Ec,Oc=Math.cosh,Rc=Math.abs,Tc=Math.E;Pt({target:"Math",stat:!0,forced:!Oc||Oc(710)===1/0},{cosh:function(t){var e=xc(Rc(t)-1)+1;return(e+1/(e*Tc*Tc))*(Tc/2)}}),Pt({target:"Math",stat:!0,forced:xc!=Math.expm1},{expm1:xc});var _c=Math.abs,Ic=Math.pow,jc=Ic(2,-52),Pc=Ic(2,-23),Lc=Ic(2,127)*(2-Pc),Mc=Ic(2,-126),Uc=Math.fround||function(t){var e,r,n=_c(t),o=gc(t);return n<Mc?o*(n/Mc/Pc+1/jc-1/jc)*Mc*Pc:(r=(e=(1+Pc/jc)*n)-(e-n))>Lc||r!=r?o*(1/0):o*r};Pt({target:"Math",stat:!0},{fround:Uc});var kc=Math.hypot,Nc=Math.abs,Fc=Math.sqrt,Cc=!!kc&&kc(1/0,NaN)!==1/0;Pt({target:"Math",stat:!0,forced:Cc},{hypot:function(t,e){for(var r,n,o=0,i=0,a=arguments.length,u=0;i<a;)u<(r=Nc(arguments[i++]))?(o=o*(n=u/r)*n+1,u=r):o+=r>0?(n=r/u)*n:r;return u===1/0?1/0:u*Fc(o)}});var Dc=Math.imul,Bc=i((function(){return-5!=Dc(4294967295,5)||2!=Dc.length}));Pt({target:"Math",stat:!0,forced:Bc},{imul:function(t,e){var r=+t,n=+e,o=65535&r,i=65535&n;return 0|o*i+((65535&r>>>16)*i+o*(65535&n>>>16)<<16>>>0)}});var qc=Math.log,zc=Math.LOG10E;Pt({target:"Math",stat:!0},{log10:function(t){return qc(t)*zc}}),Pt({target:"Math",stat:!0},{log1p:ic});var Vc=Math.log,Wc=Math.LN2;Pt({target:"Math",stat:!0},{log2:function(t){return Vc(t)/Wc}}),Pt({target:"Math",stat:!0},{sign:gc});var Gc=Math.abs,Yc=Math.exp,$c=Math.E,Hc=i((function(){return-2e-17!=Math.sinh(-2e-17)}));Pt({target:"Math",stat:!0,forced:Hc},{sinh:function(t){return Gc(t=+t)<1?(xc(t)-xc(-t))/2:(Yc(t-1)-Yc(-t-1))*($c/2)}});var Jc=Math.exp;Pt({target:"Math",stat:!0},{tanh:function(t){var e=xc(t=+t),r=xc(-t);return e==1/0?1:r==1/0?-1:(e-r)/(Jc(t)+Jc(-t))}}),ne(Math,"Math",!0);var Xc=Math.ceil,Kc=Math.floor;Pt({target:"Math",stat:!0},{trunc:function(t){return(t>0?Kc:Xc)(t)}}),Pt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Qc=i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));Pt({target:"Date",proto:!0,forced:Qc},{toJSON:function(t){var e=kt(this),r=b(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}});var Zc=pa.start,tf=Math.abs,ef=Date.prototype,rf=ef.getTime,nf=ef.toISOString,of=i((function(){return"0385-07-25T07:06:39.999Z"!=nf.call(new Date(-50000000000001))}))||!i((function(){nf.call(new Date(NaN))}))?function(){if(!isFinite(rf.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+Zc(tf(t),r?6:4,0)+"-"+Zc(this.getUTCMonth()+1,2,0)+"-"+Zc(this.getUTCDate(),2,0)+"T"+Zc(this.getUTCHours(),2,0)+":"+Zc(this.getUTCMinutes(),2,0)+":"+Zc(this.getUTCSeconds(),2,0)+"."+Zc(e,3,0)+"Z"}:nf;Pt({target:"Date",proto:!0,forced:Date.prototype.toISOString!==of},{toISOString:of});var af=Date.prototype,uf=af.toString,cf=af.getTime;new Date(NaN)+""!="Invalid Date"&&et(af,"toString",(function(){var t=cf.call(this);return t==t?uf.call(this):"Invalid Date"}));var ff=Kt("toPrimitive"),sf=Date.prototype;ff in sf||j(sf,ff,(function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return b(T(this),"number"!==t)}));var lf=ot("JSON","stringify"),hf=/[\uD800-\uDFFF]/g,pf=/^[\uD800-\uDBFF]$/,df=/^[\uDC00-\uDFFF]$/,vf=function(t,e,r){var n=r.charAt(e-1),o=r.charAt(e+1);return pf.test(t)&&!df.test(o)||df.test(t)&&!pf.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},gf=i((function(){return'"\\udf06\\ud834"'!==lf("\udf06\ud834")||'"\\udead"'!==lf("\udead")}));lf&&Pt({target:"JSON",stat:!0,forced:gf},{stringify:function(t,e,r){var n=lf.apply(null,arguments);return"string"==typeof n?n.replace(hf,vf):n}}),ne(o.JSON,"JSON",!0);var yf,bf,mf,wf=o.Promise,Sf=function(t,e,r){for(var n in e)et(t,n,e[n],r);return t},Ef=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t},Af=/(iphone|ipod|ipad).*applewebkit/i.test(xr),xf=o.location,Of=o.setImmediate,Rf=o.clearImmediate,Tf=o.process,_f=o.MessageChannel,If=o.Dispatch,jf=0,Pf={},Lf=function(t){if(Pf.hasOwnProperty(t)){var e=Pf[t];delete Pf[t],e()}},Mf=function(t){return function(){Lf(t)}},Uf=function(t){Lf(t.data)},kf=function(t){o.postMessage(t+"",xf.protocol+"//"+xf.host)};Of&&Rf||(Of=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return Pf[++jf]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},yf(jf),jf},Rf=function(t){delete Pf[t]},Ln?yf=function(t){Tf.nextTick(Mf(t))}:If&&If.now?yf=function(t){If.now(Mf(t))}:_f&&!Af?(mf=(bf=new _f).port2,bf.port1.onmessage=Uf,yf=ie(mf.postMessage,mf,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&xf&&"file:"!==xf.protocol&&!i(kf)?(yf=kf,o.addEventListener("message",Uf,!1)):yf="onreadystatechange"in A("script")?function(t){Ct.appendChild(A("script")).onreadystatechange=function(){Ct.removeChild(this),Lf(t)}}:function(t){setTimeout(Mf(t),0)});var Nf,Ff,Cf,Df,Bf,qf,zf,Vf,Wf={set:Of,clear:Rf},Gf=/web0s(?!.*chrome)/i.test(xr),Yf=R.f,$f=Wf.set,Hf=o.MutationObserver||o.WebKitMutationObserver,Jf=o.document,Xf=o.process,Kf=o.Promise,Qf=Yf(o,"queueMicrotask"),Zf=Qf&&Qf.value;Zf||(Nf=function(){var t,e;for(Ln&&(t=Xf.domain)&&t.exit();Ff;){e=Ff.fn,Ff=Ff.next;try{e()}catch(t){throw Ff?Df():Cf=void 0,t}}Cf=void 0,t&&t.enter()},Af||Ln||Gf||!Hf||!Jf?Kf&&Kf.resolve?(zf=Kf.resolve(void 0),Vf=zf.then,Df=function(){Vf.call(zf,Nf)}):Df=Ln?function(){Xf.nextTick(Nf)}:function(){$f.call(o,Nf)}:(Bf=!0,qf=Jf.createTextNode(""),new Hf(Nf).observe(qf,{characterData:!0}),Df=function(){qf.data=Bf=!Bf}));var ts,es,rs,ns,os=Zf||function(t){var e={fn:t,next:void 0};Cf&&(Cf.next=e),Ff||(Ff=e,Df()),Cf=e},is=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=oe(e),this.reject=oe(r)},as={f:function(t){return new is(t)}},us=function(t,e){if(T(t),y(e)&&e.constructor===t)return e;var r=as.f(t);return(0,r.resolve)(e),r.promise},cs=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},fs=Wf.set,ss=Kt("species"),ls="Promise",hs=tt.get,ps=tt.set,ds=tt.getterFor(ls),vs=wf,gs=o.TypeError,ys=o.document,bs=o.process,ms=ot("fetch"),ws=as.f,Ss=ws,Es=!!(ys&&ys.createEvent&&o.dispatchEvent),As="function"==typeof PromiseRejectionEvent,xs=It(ls,(function(){if(!(F(vs)!==String(vs))){if(66===_r)return!0;if(!Ln&&!As)return!0}if(_r>=51&&/native code/.test(vs))return!1;var t=vs.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[ss]=e,!(t.then((function(){}))instanceof e)})),Os=xs||!mr((function(t){vs.all(t).catch((function(){}))})),Rs=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},Ts=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;os((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,u,c,f=r[i++],s=o?f.ok:f.fail,l=f.resolve,h=f.reject,p=f.domain;try{s?(o||(2===t.rejection&&Ps(t),t.rejection=1),!0===s?a=n:(p&&p.enter(),a=s(n),p&&(p.exit(),c=!0)),a===f.promise?h(gs("Promise-chain cycle")):(u=Rs(a))?u.call(a,l,h):l(a)):h(n)}catch(t){p&&!c&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Is(t)}))}},_s=function(t,e,r){var n,i;Es?((n=ys.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),o.dispatchEvent(n)):n={promise:e,reason:r},!As&&(i=o["on"+t])?i(n):"unhandledrejection"===t&&function(t,e){var r=o.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Is=function(t){fs.call(o,(function(){var e,r=t.facade,n=t.value;if(js(t)&&(e=cs((function(){Ln?bs.emit("unhandledRejection",n,r):_s("unhandledrejection",r,n)})),t.rejection=Ln||js(t)?2:1,e.error))throw e.value}))},js=function(t){return 1!==t.rejection&&!t.parent},Ps=function(t){fs.call(o,(function(){var e=t.facade;Ln?bs.emit("rejectionHandled",e):_s("rejectionhandled",e,t.value)}))},Ls=function(t,e,r){return function(n){t(e,n,r)}},Ms=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Ts(t,!0))},Us=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw gs("Promise can't be resolved itself");var n=Rs(e);n?os((function(){var r={done:!1};try{n.call(e,Ls(Us,r,t),Ls(Ms,r,t))}catch(e){Ms(r,e,t)}})):(t.value=e,t.state=1,Ts(t,!1))}catch(e){Ms({done:!1},e,t)}}};xs&&(vs=function(t){Ef(this,vs,ls),oe(t),ts.call(this);var e=hs(this);try{t(Ls(Us,e),Ls(Ms,e))}catch(t){Ms(e,t)}},(ts=function(t){ps(this,{type:ls,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Sf(vs.prototype,{then:function(t,e){var r=ds(this),n=ws(ta(this,vs));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Ln?bs.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Ts(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),es=function(){var t=new ts,e=hs(t);this.promise=t,this.resolve=Ls(Us,e),this.reject=Ls(Ms,e)},as.f=ws=function(t){return t===vs||t===rs?new es(t):Ss(t)},"function"==typeof wf&&(ns=wf.prototype.then,et(wf.prototype,"then",(function(t,e){var r=this;return new vs((function(t,e){ns.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof ms&&Pt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return us(vs,ms.apply(o,arguments))}}))),Pt({global:!0,wrap:!0,forced:xs},{Promise:vs}),ne(vs,ls,!1),io(ls),rs=ot(ls),Pt({target:ls,stat:!0,forced:xs},{reject:function(t){var e=ws(this);return e.reject.call(void 0,t),e.promise}}),Pt({target:ls,stat:!0,forced:xs},{resolve:function(t){return us(this,t)}}),Pt({target:ls,stat:!0,forced:Os},{all:function(t){var e=this,r=ws(e),n=r.resolve,o=r.reject,i=cs((function(){var r=oe(e.resolve),i=[],a=0,u=1;pr(t,(function(t){var c=a++,f=!1;i.push(void 0),u++,r.call(e,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=ws(e),n=r.reject,o=cs((function(){var o=oe(e.resolve);pr(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Pt({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=as.f(e),n=r.resolve,o=r.reject,i=cs((function(){var r=oe(e.resolve),o=[],i=0,a=1;pr(t,(function(t){var u=i++,c=!1;o.push(void 0),a++,r.call(e,t).then((function(t){c||(c=!0,o[u]={status:"fulfilled",value:t},--a||n(o))}),(function(t){c||(c=!0,o[u]={status:"rejected",reason:t},--a||n(o))}))})),--a||n(o)}));return i.error&&o(i.value),r.promise}});Pt({target:"Promise",stat:!0},{any:function(t){var e=this,r=as.f(e),n=r.resolve,o=r.reject,i=cs((function(){var r=oe(e.resolve),i=[],a=0,u=1,c=!1;pr(t,(function(t){var f=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||c||(c=!0,n(t))}),(function(t){s||c||(s=!0,i[f]=t,--u||o(new(ot("AggregateError"))(i,"No one promise resolved")))}))})),--u||o(new(ot("AggregateError"))(i,"No one promise resolved"))}));return i.error&&o(i.value),r.promise}});var ks=!!wf&&i((function(){wf.prototype.finally.call({then:function(){}},(function(){}))}));Pt({target:"Promise",proto:!0,real:!0,forced:ks},{finally:function(t){var e=ta(this,ot("Promise")),r="function"==typeof t;return this.then(r?function(r){return us(e,t()).then((function(){return r}))}:t,r?function(r){return us(e,t()).then((function(){throw r}))}:t)}}),"function"!=typeof wf||wf.prototype.finally||et(wf.prototype,"finally",ot("Promise").prototype.finally);var Ns=function(t,e,r){var n=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),u=n?"set":"add",c=o[t],f=c&&c.prototype,s=c,l={},h=function(t){var e=f[t];et(f,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!y(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!y(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(It(t,"function"!=typeof c||!(a||f.forEach&&!i((function(){(new c).entries().next()})))))s=r.getConstructor(e,t,n,u),zo.REQUIRED=!0;else if(It(t,!0)){var p=new s,d=p[u](a?{}:-0,1)!=p,v=i((function(){p.has(1)})),g=mr((function(t){new c(t)})),b=!a&&i((function(){for(var t=new c,e=5;e--;)t[u](e,e);return!t.has(-0)}));g||((s=e((function(e,r){Ef(e,s,t);var o=ru(new c,e,s);return null!=r&&pr(r,o[u],{that:o,AS_ENTRIES:n}),o}))).prototype=f,f.constructor=s),(v||b)&&(h("delete"),h("has"),n&&h("get")),(b||d)&&h(u),a&&f.clear&&delete f.clear}return l[t]=s,Pt({global:!0,forced:s!=c},l),ne(s,t),a||r.setStrong(s,t,n),s},Fs=I.f,Cs=zo.fastKey,Ds=tt.set,Bs=tt.getterFor,qs={getConstructor:function(t,e,r,n){var o=t((function(t,i){Ef(t,o,e),Ds(t,{type:e,index:Vt(null),first:void 0,last:void 0,size:0}),a||(t.size=0),null!=i&&pr(i,t[n],{that:t,AS_ENTRIES:r})})),i=Bs(e),u=function(t,e,r){var n,o,u=i(t),f=c(t,e);return f?f.value=r:(u.last=f={index:o=Cs(e,!0),key:e,value:r,previous:n=u.last,next:void 0,removed:!1},u.first||(u.first=f),n&&(n.next=f),a?u.size++:t.size++,"F"!==o&&(u.index[o]=f)),t},c=function(t,e){var r,n=i(t),o=Cs(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Sf(o.prototype,{clear:function(){for(var t=i(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,a?t.size=0:this.size=0},delete:function(t){var e=i(this),r=c(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),a?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=i(this),n=ie(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Sf(o.prototype,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),a&&Fs(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Bs(e),i=Bs(n);wo(t,e,(function(t,e){Ds(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),io(e)}},zs=(Ns("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),qs),Ns("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),qs),zo.getWeakData),Vs=tt.set,Ws=tt.getterFor,Gs=se.find,Ys=se.findIndex,$s=0,Hs=function(t){return t.frozen||(t.frozen=new Js)},Js=function(){this.entries=[]},Xs=function(t,e){return Gs(t.entries,(function(t){return t[0]===e}))};Js.prototype={get:function(t){var e=Xs(this,t);if(e)return e[1]},has:function(t){return!!Xs(this,t)},set:function(t,e){var r=Xs(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Ys(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}};var Ks={getConstructor:function(t,e,r,n){var o=t((function(t,i){Ef(t,o,e),Vs(t,{type:e,id:$s++,frozen:void 0}),null!=i&&pr(i,t[n],{that:t,AS_ENTRIES:r})})),i=Ws(e),a=function(t,e,r){var n=i(t),o=zs(T(e),!0);return!0===o?Hs(n).set(e,r):o[n.id]=r,t};return Sf(o.prototype,{delete:function(t){var e=i(this);if(!y(t))return!1;var r=zs(t);return!0===r?Hs(e).delete(t):r&&w(r,e.id)&&delete r[e.id]},has:function(t){var e=i(this);if(!y(t))return!1;var r=zs(t);return!0===r?Hs(e).has(t):r&&w(r,e.id)}}),Sf(o.prototype,r?{get:function(t){var e=i(this);if(y(t)){var r=zs(t);return!0===r?Hs(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}};e((function(t){var e,r=tt.enforce,n=!o.ActiveXObject&&"ActiveXObject"in o,i=Object.isExtensible,a=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},u=t.exports=Ns("WeakMap",a,Ks);if(D&&n){e=Ks.getConstructor(a,"WeakMap",!0),zo.REQUIRED=!0;var c=u.prototype,f=c.delete,s=c.has,l=c.get,h=c.set;Sf(c,{delete:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),f.call(this,t)||n.frozen.delete(t)}return f.call(this,t)},has:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),s.call(this,t)||n.frozen.has(t)}return s.call(this,t)},get:function(t){if(y(t)&&!i(t)){var n=r(this);return n.frozen||(n.frozen=new e),s.call(this,t)?l.call(this,t):n.frozen.get(t)}return l.call(this,t)},set:function(t,n){if(y(t)&&!i(t)){var o=r(this);o.frozen||(o.frozen=new e),s.call(this,t)?h.call(this,t,n):o.frozen.set(t,n)}else h.call(this,t,n);return this}})}}));Ns("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Ks);var Qs="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Zs=function(t){if(void 0===t)return 0;var e=ut(t),r=ft(e);if(e!==r)throw RangeError("Wrong length or index");return r},tl=Math.abs,el=Math.pow,rl=Math.floor,nl=Math.log,ol=Math.LN2,il=function(t,e,r){var n,o,i,a=new Array(r),u=8*r-e-1,c=(1<<u)-1,f=c>>1,s=23===e?el(2,-24)-el(2,-77):0,l=t<0||0===t&&1/t<0?1:0,h=0;for((t=tl(t))!=t||t===1/0?(o=t!=t?1:0,n=c):(n=rl(nl(t)/ol),t*(i=el(2,-n))<1&&(n--,i*=2),(t+=n+f>=1?s/i:s*el(2,1-f))*i>=2&&(n++,i/=2),n+f>=c?(o=0,n=c):n+f>=1?(o=(t*i-1)*el(2,e),n+=f):(o=t*el(2,f-1)*el(2,e),n=0));e>=8;a[h++]=255&o,o/=256,e-=8);for(n=n<<e|o,u+=e;u>0;a[h++]=255&n,n/=256,u-=8);return a[--h]|=128*l,a},al=function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,f=t[c--],s=127&f;for(f>>=7;u>0;s=256*s+t[c],c--,u-=8);for(r=s&(1<<-u)-1,s>>=-u,u+=e;u>0;r=256*r+t[c],c--,u-=8);if(0===s)s=1-a;else{if(s===i)return r?NaN:f?-1/0:1/0;r+=el(2,e),s-=a}return(f?-1:1)*r*el(2,s-e)},ul=mt.f,cl=I.f,fl=tt.get,sl=tt.set,ll=o.ArrayBuffer,hl=ll,pl=o.DataView,dl=pl&&pl.prototype,vl=Object.prototype,gl=o.RangeError,yl=il,bl=al,ml=function(t){return[255&t]},wl=function(t){return[255&t,t>>8&255]},Sl=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},El=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Al=function(t){return yl(t,23,4)},xl=function(t){return yl(t,52,8)},Ol=function(t,e){cl(t.prototype,e,{get:function(){return fl(this)[e]}})},Rl=function(t,e,r,n){var o=Zs(r),i=fl(t);if(o+e>i.byteLength)throw gl("Wrong index");var a=fl(i.buffer).bytes,u=o+i.byteOffset,c=a.slice(u,u+e);return n?c:c.reverse()},Tl=function(t,e,r,n,o,i){var a=Zs(r),u=fl(t);if(a+e>u.byteLength)throw gl("Wrong index");for(var c=fl(u.buffer).bytes,f=a+u.byteOffset,s=n(+o),l=0;l<e;l++)c[f+l]=s[i?l:e-l-1]};if(Qs){if(!i((function(){ll(1)}))||!i((function(){new ll(-1)}))||i((function(){return new ll,new ll(1.5),new ll(NaN),"ArrayBuffer"!=ll.name}))){for(var _l,Il=(hl=function(t){return Ef(this,hl),new ll(Zs(t))}).prototype=ll.prototype,jl=ul(ll),Pl=0;jl.length>Pl;)(_l=jl[Pl++])in hl||j(hl,_l,ll[_l]);Il.constructor=hl}Ze&&Ke(dl)!==vl&&Ze(dl,vl);var Ll=new pl(new hl(2)),Ml=dl.setInt8;Ll.setInt8(0,2147483648),Ll.setInt8(1,2147483649),!Ll.getInt8(0)&&Ll.getInt8(1)||Sf(dl,{setInt8:function(t,e){Ml.call(this,t,e<<24>>24)},setUint8:function(t,e){Ml.call(this,t,e<<24>>24)}},{unsafe:!0})}else hl=function(t){Ef(this,hl,"ArrayBuffer");var e=Zs(t);sl(this,{bytes:Hr.call(new Array(e),0),byteLength:e}),a||(this.byteLength=e)},pl=function(t,e,r){Ef(this,pl,"DataView"),Ef(t,hl,"DataView");var n=fl(t).byteLength,o=ut(e);if(o<0||o>n)throw gl("Wrong offset");if(o+(r=void 0===r?n-o:ft(r))>n)throw gl("Wrong length");sl(this,{buffer:t,byteLength:r,byteOffset:o}),a||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},a&&(Ol(hl,"byteLength"),Ol(pl,"buffer"),Ol(pl,"byteLength"),Ol(pl,"byteOffset")),Sf(pl.prototype,{getInt8:function(t){return Rl(this,1,t)[0]<<24>>24},getUint8:function(t){return Rl(this,1,t)[0]},getInt16:function(t){var e=Rl(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Rl(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return El(Rl(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return El(Rl(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return bl(Rl(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return bl(Rl(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Tl(this,1,t,ml,e)},setUint8:function(t,e){Tl(this,1,t,ml,e)},setInt16:function(t,e){Tl(this,2,t,wl,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Tl(this,2,t,wl,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Tl(this,4,t,Sl,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Tl(this,4,t,Sl,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Tl(this,4,t,Al,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Tl(this,8,t,xl,e,arguments.length>2?arguments[2]:void 0)}});ne(hl,"ArrayBuffer"),ne(pl,"DataView");var Ul={ArrayBuffer:hl,DataView:pl},kl=Ul.ArrayBuffer,Nl=o.ArrayBuffer;Pt({global:!0,forced:Nl!==kl},{ArrayBuffer:kl}),io("ArrayBuffer");var Fl,Cl=I.f,Dl=o.Int8Array,Bl=Dl&&Dl.prototype,ql=o.Uint8ClampedArray,zl=ql&&ql.prototype,Vl=Dl&&Ke(Dl),Wl=Bl&&Ke(Bl),Gl=Object.prototype,Yl=Gl.isPrototypeOf,$l=Kt("toStringTag"),Hl=V("TYPED_ARRAY_TAG"),Jl=Qs&&!!Ze&&"Opera"!==cr(o.opera),Xl=!1,Kl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ql={BigInt64Array:8,BigUint64Array:8},Zl=function(t){if(!y(t))return!1;var e=cr(t);return w(Kl,e)||w(Ql,e)};for(Fl in Kl)o[Fl]||(Jl=!1);if((!Jl||"function"!=typeof Vl||Vl===Function.prototype)&&(Vl=function(){throw TypeError("Incorrect invocation")},Jl))for(Fl in Kl)o[Fl]&&Ze(o[Fl],Vl);if((!Jl||!Wl||Wl===Gl)&&(Wl=Vl.prototype,Jl))for(Fl in Kl)o[Fl]&&Ze(o[Fl].prototype,Wl);if(Jl&&Ke(zl)!==Wl&&Ze(zl,Wl),a&&!w(Wl,$l))for(Fl in Xl=!0,Cl(Wl,$l,{get:function(){return y(this)?this[Hl]:void 0}}),Kl)o[Fl]&&j(o[Fl],Hl,Fl);var th={NATIVE_ARRAY_BUFFER_VIEWS:Jl,TYPED_ARRAY_TAG:Xl&&Hl,aTypedArray:function(t){if(Zl(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(Ze){if(Yl.call(Vl,t))return t}else for(var e in Kl)if(w(Kl,Fl)){var r=o[e];if(r&&(t===r||Yl.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(a){if(r)for(var n in Kl){var i=o[n];i&&w(i.prototype,t)&&delete i.prototype[t]}Wl[t]&&!r||et(Wl,t,r?e:Jl&&Bl[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(a){if(Ze){if(r)for(n in Kl)(i=o[n])&&w(i,t)&&delete i[t];if(Vl[t]&&!r)return;try{return et(Vl,t,r?e:Jl&&Dl[t]||e)}catch(t){}}for(n in Kl)!(i=o[n])||i[t]&&!r||et(i,t,e)}},isView:function(t){if(!y(t))return!1;var e=cr(t);return"DataView"===e||w(Kl,e)||w(Ql,e)},isTypedArray:Zl,TypedArray:Vl,TypedArrayPrototype:Wl};Pt({target:"ArrayBuffer",stat:!0,forced:!th.NATIVE_ARRAY_BUFFER_VIEWS},{isView:th.isView});var eh=Ul.ArrayBuffer,rh=Ul.DataView,nh=eh.prototype.slice,oh=i((function(){return!new eh(2).slice(1,void 0).byteLength}));Pt({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:oh},{slice:function(t,e){if(void 0!==nh&&void 0===e)return nh.call(T(this),t);for(var r=T(this).byteLength,n=ht(t,r),o=ht(void 0===e?r:e,r),i=new(ta(this,eh))(ft(o-n)),a=new rh(this),u=new rh(i),c=0;n<o;)u.setUint8(c++,a.getUint8(n++));return i}}),Pt({global:!0,forced:!Qs},{DataView:Ul.DataView});var ih=th.NATIVE_ARRAY_BUFFER_VIEWS,ah=o.ArrayBuffer,uh=o.Int8Array,ch=!ih||!i((function(){uh(1)}))||!i((function(){new uh(-1)}))||!mr((function(t){new uh,new uh(null),new uh(1.5),new uh(t)}),!0)||i((function(){return 1!==new uh(new ah(2),1,void 0).length})),fh=function(t,e){var r=function(t){var e=ut(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}(t);if(r%e)throw RangeError("Wrong offset");return r},sh=th.aTypedArrayConstructor,lh=function(t){var e,r,n,o,i,a,u=kt(t),c=arguments.length,f=c>1?arguments[1]:void 0,s=void 0!==f,l=sr(u);if(null!=l&&!nr(l))for(a=(i=l.call(u)).next,u=[];!(o=a.call(i)).done;)u.push(o.value);for(s&&c>2&&(f=ie(f,arguments[2],2)),r=ft(u.length),n=new(sh(this))(r),e=0;r>e;e++)n[e]=s?f(u[e],e):u[e];return n},hh=e((function(t){var e=mt.f,r=se.forEach,n=tt.get,i=tt.set,u=I.f,c=R.f,f=Math.round,l=o.RangeError,h=Ul.ArrayBuffer,p=Ul.DataView,d=th.NATIVE_ARRAY_BUFFER_VIEWS,v=th.TYPED_ARRAY_TAG,g=th.TypedArray,m=th.TypedArrayPrototype,S=th.aTypedArrayConstructor,E=th.isTypedArray,A=function(t,e){for(var r=0,n=e.length,o=new(S(t))(n);n>r;)o[r]=e[r++];return o},x=function(t,e){u(t,e,{get:function(){return n(this)[e]}})},O=function(t){var e;return t instanceof h||"ArrayBuffer"==(e=cr(t))||"SharedArrayBuffer"==e},T=function(t,e){return E(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},_=function(t,e){return T(t,e=b(e,!0))?s(2,t[e]):c(t,e)},P=function(t,e,r){return!(T(t,e=b(e,!0))&&y(r)&&w(r,"value"))||w(r,"get")||w(r,"set")||r.configurable||w(r,"writable")&&!r.writable||w(r,"enumerable")&&!r.enumerable?u(t,e,r):(t[e]=r.value,t)};a?(d||(R.f=_,I.f=P,x(m,"buffer"),x(m,"byteOffset"),x(m,"byteLength"),x(m,"length")),Pt({target:"Object",stat:!0,forced:!d},{getOwnPropertyDescriptor:_,defineProperty:P}),t.exports=function(t,a,c){var s=t.match(/\d+$/)[0]/8,b=t+(c?"Clamped":"")+"Array",w="get"+t,S="set"+t,x=o[b],R=x,T=R&&R.prototype,_={},I=function(t,e){u(t,e,{get:function(){return function(t,e){var r=n(t);return r.view[w](e*s+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=n(t);c&&(r=(r=f(r))<0?0:r>255?255:255&r),o.view[S](e*s+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};d?ch&&(R=a((function(t,e,r,n){return Ef(t,R,b),ru(y(e)?O(e)?void 0!==n?new x(e,fh(r,s),n):void 0!==r?new x(e,fh(r,s)):new x(e):E(e)?A(R,e):lh.call(R,e):new x(Zs(e)),t,R)})),Ze&&Ze(R,g),r(e(x),(function(t){t in R||j(R,t,x[t])})),R.prototype=T):(R=a((function(t,e,r,n){Ef(t,R,b);var o,a,u,c=0,f=0;if(y(e)){if(!O(e))return E(e)?A(R,e):lh.call(R,e);o=e,f=fh(r,s);var d=e.byteLength;if(void 0===n){if(d%s)throw l("Wrong length");if((a=d-f)<0)throw l("Wrong length")}else if((a=ft(n)*s)+f>d)throw l("Wrong length");u=a/s}else u=Zs(e),o=new h(a=u*s);for(i(t,{buffer:o,byteOffset:f,byteLength:a,length:u,view:new p(o)});c<u;)I(t,c++)})),Ze&&Ze(R,g),T=R.prototype=Vt(m)),T.constructor!==R&&j(T,"constructor",R),v&&j(T,v,b),_[b]=R,Pt({global:!0,forced:R!=x,sham:!d},_),"BYTES_PER_ELEMENT"in R||j(R,"BYTES_PER_ELEMENT",s),"BYTES_PER_ELEMENT"in T||j(T,"BYTES_PER_ELEMENT",s),io(b)}):t.exports=function(){}}));hh("Int8",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0),hh("Int16",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Uint16",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}})),hh("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}})),(0,th.exportTypedArrayStaticMethod)("from",lh,ch);var ph=th.aTypedArrayConstructor;(0,th.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,r=new(ph(this))(e);e>t;)r[t]=arguments[t++];return r}),ch);var dh=th.aTypedArray;(0,th.exportTypedArrayMethod)("copyWithin",(function(t,e){return Nr.call(dh(this),t,e,arguments.length>2?arguments[2]:void 0)}));var vh=se.every,gh=th.aTypedArray;(0,th.exportTypedArrayMethod)("every",(function(t){return vh(gh(this),t,arguments.length>1?arguments[1]:void 0)}));var yh=th.aTypedArray;(0,th.exportTypedArrayMethod)("fill",(function(t){return Hr.apply(yh(this),arguments)}));var bh=se.filter,mh=th.aTypedArray,wh=th.aTypedArrayConstructor;(0,th.exportTypedArrayMethod)("filter",(function(t){for(var e=bh(mh(this),t,arguments.length>1?arguments[1]:void 0),r=ta(this,this.constructor),n=0,o=e.length,i=new(wh(r))(o);o>n;)i[n]=e[n++];return i}));var Sh=se.find,Eh=th.aTypedArray;(0,th.exportTypedArrayMethod)("find",(function(t){return Sh(Eh(this),t,arguments.length>1?arguments[1]:void 0)}));var Ah=se.findIndex,xh=th.aTypedArray;(0,th.exportTypedArrayMethod)("findIndex",(function(t){return Ah(xh(this),t,arguments.length>1?arguments[1]:void 0)}));var Oh=se.forEach,Rh=th.aTypedArray;(0,th.exportTypedArrayMethod)("forEach",(function(t){Oh(Rh(this),t,arguments.length>1?arguments[1]:void 0)}));var Th=dt.includes,_h=th.aTypedArray;(0,th.exportTypedArrayMethod)("includes",(function(t){return Th(_h(this),t,arguments.length>1?arguments[1]:void 0)}));var Ih=dt.indexOf,jh=th.aTypedArray;(0,th.exportTypedArrayMethod)("indexOf",(function(t){return Ih(jh(this),t,arguments.length>1?arguments[1]:void 0)}));var Ph=Kt("iterator"),Lh=o.Uint8Array,Mh=Ao.values,Uh=Ao.keys,kh=Ao.entries,Nh=th.aTypedArray,Fh=th.exportTypedArrayMethod,Ch=Lh&&Lh.prototype[Ph],Dh=!!Ch&&("values"==Ch.name||null==Ch.name),Bh=function(){return Mh.call(Nh(this))};Fh("entries",(function(){return kh.call(Nh(this))})),Fh("keys",(function(){return Uh.call(Nh(this))})),Fh("values",Bh,!Dh),Fh(Ph,Bh,!Dh);var qh=th.aTypedArray,zh=[].join;(0,th.exportTypedArrayMethod)("join",(function(t){return zh.apply(qh(this),arguments)}));var Vh=th.aTypedArray;(0,th.exportTypedArrayMethod)("lastIndexOf",(function(t){return Rn.apply(Vh(this),arguments)}));var Wh=se.map,Gh=th.aTypedArray,Yh=th.aTypedArrayConstructor;(0,th.exportTypedArrayMethod)("map",(function(t){return Wh(Gh(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(Yh(ta(t,t.constructor)))(e)}))}));var $h=Pn.left,Hh=th.aTypedArray;(0,th.exportTypedArrayMethod)("reduce",(function(t){return $h(Hh(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Jh=Pn.right,Xh=th.aTypedArray;(0,th.exportTypedArrayMethod)("reduceRight",(function(t){return Jh(Xh(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Kh=th.aTypedArray,Qh=th.exportTypedArrayMethod,Zh=Math.floor;Qh("reverse",(function(){for(var t,e=Kh(this).length,r=Zh(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}));var tp=th.aTypedArray;(0,th.exportTypedArrayMethod)("set",(function(t){tp(this);var e=fh(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=kt(t),o=ft(n.length),i=0;if(o+e>r)throw RangeError("Wrong length");for(;i<o;)this[e+i]=n[i++]}),i((function(){new Int8Array(1).set({})})));var ep=th.aTypedArray,rp=th.aTypedArrayConstructor,np=[].slice;(0,th.exportTypedArrayMethod)("slice",(function(t,e){for(var r=np.call(ep(this),t,e),n=ta(this,this.constructor),o=0,i=r.length,a=new(rp(n))(i);i>o;)a[o]=r[o++];return a}),i((function(){new Int8Array(1).slice()})));var op=se.some,ip=th.aTypedArray;(0,th.exportTypedArrayMethod)("some",(function(t){return op(ip(this),t,arguments.length>1?arguments[1]:void 0)}));var ap=th.aTypedArray,up=[].sort;(0,th.exportTypedArrayMethod)("sort",(function(t){return up.call(ap(this),t)}));var cp=th.aTypedArray;(0,th.exportTypedArrayMethod)("subarray",(function(t,e){var r=cp(this),n=r.length,o=ht(t,n);return new(ta(r,r.constructor))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,ft((void 0===e?n:ht(e,n))-o))}));var fp=o.Int8Array,sp=th.aTypedArray,lp=th.exportTypedArrayMethod,hp=[].toLocaleString,pp=[].slice,dp=!!fp&&i((function(){hp.call(new fp(1))}));lp("toLocaleString",(function(){return hp.apply(dp?pp.call(sp(this)):sp(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new fp([1,2]).toLocaleString()}))||!i((function(){fp.prototype.toLocaleString.call([1,2])})));var vp=th.exportTypedArrayMethod,gp=o.Uint8Array,yp=gp&&gp.prototype||{},bp=[].toString,mp=[].join;i((function(){bp.call({})}))&&(bp=function(){return mp.call(this)});var wp=yp.toString!=bp;vp("toString",bp,wp);var Sp=ot("Reflect","apply"),Ep=Function.apply,Ap=!i((function(){Sp((function(){}))}));Pt({target:"Reflect",stat:!0,forced:Ap},{apply:function(t,e,r){return oe(t),T(r),Sp?Sp(t,e,r):Ep.call(t,e,r)}});var xp=ot("Reflect","construct"),Op=i((function(){function t(){}return!(xp((function(){}),[],t)instanceof t)})),Rp=!i((function(){xp((function(){}))})),Tp=Op||Rp;Pt({target:"Reflect",stat:!0,forced:Tp,sham:Tp},{construct:function(t,e){oe(t),T(e);var r=arguments.length<3?t:oe(arguments[2]);if(Rp&&!Op)return xp(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(To.apply(t,n))}var o=r.prototype,i=Vt(y(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return y(a)?a:i}});var _p=i((function(){Reflect.defineProperty(I.f({},1,{value:1}),1,{value:2})}));Pt({target:"Reflect",stat:!0,forced:_p,sham:!a},{defineProperty:function(t,e,r){T(t);var n=b(e,!0);T(r);try{return I.f(t,n,r),!0}catch(t){return!1}}});var Ip=R.f;Pt({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=Ip(T(t),e);return!(r&&!r.configurable)&&delete t[e]}}),Pt({target:"Reflect",stat:!0},{get:function t(e,r){var n,o,i=arguments.length<3?e:arguments[2];return T(e)===i?e[r]:(n=R.f(e,r))?w(n,"value")?n.value:void 0===n.get?void 0:n.get.call(i):y(o=Ke(e))?t(o,r,i):void 0}}),Pt({target:"Reflect",stat:!0,sham:!a},{getOwnPropertyDescriptor:function(t,e){return R.f(T(t),e)}}),Pt({target:"Reflect",stat:!0,sham:!He},{getPrototypeOf:function(t){return Ke(T(t))}}),Pt({target:"Reflect",stat:!0},{has:function(t,e){return e in t}});var jp=Object.isExtensible;Pt({target:"Reflect",stat:!0},{isExtensible:function(t){return T(t),!jp||jp(t)}}),Pt({target:"Reflect",stat:!0},{ownKeys:St}),Pt({target:"Reflect",stat:!0,sham:!qo},{preventExtensions:function(t){T(t);try{var e=ot("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}});var Pp=i((function(){var t=function(){},e=I.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}));Pt({target:"Reflect",stat:!0,forced:Pp},{set:function t(e,r,n){var o,i,a=arguments.length<4?e:arguments[3],u=R.f(T(e),r);if(!u){if(y(i=Ke(e)))return t(i,r,n,a);u=s(0)}if(w(u,"value")){if(!1===u.writable||!y(a))return!1;if(o=R.f(a,r)){if(o.get||o.set||!1===o.writable)return!1;o.value=n,I.f(a,r,o)}else I.f(a,r,s(0,n));return!0}return void 0!==u.set&&(u.set.call(a,n),!0)}}),Ze&&Pt({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){T(t),Qe(e);try{return Ze(t,e),!0}catch(t){return!1}}}),Pt({global:!0},{Reflect:{}}),ne(o.Reflect,"Reflect",!0);var Lp={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};for(var Mp in Lp){var Up=o[Mp],kp=Up&&Up.prototype;if(kp&&kp.forEach!==sn)try{j(kp,"forEach",sn)}catch(t){kp.forEach=sn}}var Np=Kt("iterator"),Fp=Kt("toStringTag"),Cp=Ao.values;for(var Dp in Lp){var Bp=o[Dp],qp=Bp&&Bp.prototype;if(qp){if(qp[Np]!==Cp)try{j(qp,Np,Cp)}catch(t){qp[Np]=Cp}if(qp[Fp]||j(qp,Fp,Dp),Lp[Dp])for(var zp in Ao)if(qp[zp]!==Ao[zp])try{j(qp,zp,Ao[zp])}catch(t){qp[zp]=Ao[zp]}}}var Vp=!o.setImmediate||!o.clearImmediate;Pt({global:!0,bind:!0,enumerable:!0,forced:Vp},{setImmediate:Wf.set,clearImmediate:Wf.clear});var Wp=o.process;Pt({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=Ln&&Wp.domain;os(e?e.bind(t):t)}});var Gp=[].slice,Yp=/MSIE .\./.test(xr),$p=function(t){return function(e,r){var n=arguments.length>2,o=n?Gp.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,r)}};Pt({global:!0,bind:!0,forced:Yp},{setTimeout:$p(o.setTimeout),setInterval:$p(o.setInterval)});var Hp=Kt("iterator"),Jp=!i((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[Hp]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Xp=/[^\0-\u007E]/,Kp=/[.\u3002\uFF0E\uFF61]/g,Qp="Overflow: input needs wider integers to process",Zp=Math.floor,td=String.fromCharCode,ed=function(t){return t+22+75*(t<26)},rd=function(t,e,r){var n=0;for(t=r?Zp(t/700):t>>1,t+=Zp(t/e);t>455;n+=36)t=Zp(t/35);return Zp(n+36*t/(t+38))},nd=function(t){var e,r,n=[],o=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var i=t.charCodeAt(r++);56320==(64512&i)?e.push(((1023&o)<<10)+(1023&i)+65536):(e.push(o),r--)}else e.push(o)}return e}(t)).length,i=128,a=0,u=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(td(r));var c=n.length,f=c;for(c&&n.push("-");f<o;){var s=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=i&&r<s&&(s=r);var l=f+1;if(s-i>Zp((2147483647-a)/l))throw RangeError(Qp);for(a+=(s-i)*l,i=s,e=0;e<t.length;e++){if((r=t[e])<i&&++a>2147483647)throw RangeError(Qp);if(r==i){for(var h=a,p=36;;p+=36){var d=p<=u?1:p>=u+26?26:p-u;if(h<d)break;var v=h-d,g=36-d;n.push(td(ed(d+v%g))),h=Zp(v/g)}n.push(td(ed(h))),u=rd(a,l,f==c),a=0,++f}}++a,++i}return n.join("")},od=function(t){var e=sr(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return T(e.call(t))},id=ot("fetch"),ad=ot("Headers"),ud=Kt("iterator"),cd=tt.set,fd=tt.getterFor("URLSearchParams"),sd=tt.getterFor("URLSearchParamsIterator"),ld=/\+/g,hd=Array(4),pd=function(t){return hd[t-1]||(hd[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},dd=function(t){try{return decodeURIComponent(t)}catch(e){return t}},vd=function(t){var e=t.replace(ld," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(pd(r--),dd);return e}},gd=/[!'()~]|%20/g,yd={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},bd=function(t){return yd[t]},md=function(t){return encodeURIComponent(t).replace(gd,bd)},wd=function(t,e){if(e)for(var r,n,o=e.split("&"),i=0;i<o.length;)(r=o[i++]).length&&(n=r.split("="),t.push({key:vd(n.shift()),value:vd(n.join("="))}))},Sd=function(t){this.entries.length=0,wd(this.entries,t)},Ed=function(t,e){if(t<e)throw TypeError("Not enough arguments")},Ad=vo((function(t,e){cd(this,{type:"URLSearchParamsIterator",iterator:od(fd(t).entries),kind:e})}),"Iterator",(function(){var t=sd(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),xd=function(){Ef(this,xd,"URLSearchParams");var t,e,r,n,o,i,a,u,c,f=arguments.length>0?arguments[0]:void 0,s=this,l=[];if(cd(s,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:Sd}),void 0!==f)if(y(f))if("function"==typeof(t=sr(f)))for(r=(e=t.call(f)).next;!(n=r.call(e)).done;){if((a=(i=(o=od(T(n.value))).next).call(o)).done||(u=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");l.push({key:a.value+"",value:u.value+""})}else for(c in f)w(f,c)&&l.push({key:c,value:f[c]+""});else wd(l,"string"==typeof f?"?"===f.charAt(0)?f.slice(1):f:f+"")},Od=xd.prototype;Sf(Od,{append:function(t,e){Ed(arguments.length,2);var r=fd(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){Ed(arguments.length,1);for(var e=fd(this),r=e.entries,n=t+"",o=0;o<r.length;)r[o].key===n?r.splice(o,1):o++;e.updateURL()},get:function(t){Ed(arguments.length,1);for(var e=fd(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){Ed(arguments.length,1);for(var e=fd(this).entries,r=t+"",n=[],o=0;o<e.length;o++)e[o].key===r&&n.push(e[o].value);return n},has:function(t){Ed(arguments.length,1);for(var e=fd(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){Ed(arguments.length,1);for(var r,n=fd(this),o=n.entries,i=!1,a=t+"",u=e+"",c=0;c<o.length;c++)(r=o[c]).key===a&&(i?o.splice(c--,1):(i=!0,r.value=u));i||o.push({key:a,value:u}),n.updateURL()},sort:function(){var t,e,r,n=fd(this),o=n.entries,i=o.slice();for(o.length=0,r=0;r<i.length;r++){for(t=i[r],e=0;e<r;e++)if(o[e].key>t.key){o.splice(e,0,t);break}e===r&&o.push(t)}n.updateURL()},forEach:function(t){for(var e,r=fd(this).entries,n=ie(t,arguments.length>1?arguments[1]:void 0,3),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Ad(this,"keys")},values:function(){return new Ad(this,"values")},entries:function(){return new Ad(this,"entries")}},{enumerable:!0}),et(Od,ud,Od.entries),et(Od,"toString",(function(){for(var t,e=fd(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(md(t.key)+"="+md(t.value));return r.join("&")}),{enumerable:!0}),ne(xd,"URLSearchParams"),Pt({global:!0,forced:!Jp},{URLSearchParams:xd}),Jp||"function"!=typeof id||"function"!=typeof ad||Pt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,o=[t];return arguments.length>1&&(y(e=arguments[1])&&(r=e.body,"URLSearchParams"===cr(r)&&((n=e.headers?new ad(e.headers):new ad).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=Vt(e,{body:s(0,String(r)),headers:s(0,n)}))),o.push(e)),id.apply(this,o)}});var Rd,Td={URLSearchParams:xd,getState:fd},_d=wi.codeAt,Id=o.URL,jd=Td.URLSearchParams,Pd=Td.getState,Ld=tt.set,Md=tt.getterFor("URL"),Ud=Math.floor,kd=Math.pow,Nd=/[A-Za-z]/,Fd=/[\d+-.A-Za-z]/,Cd=/\d/,Dd=/^(0x|0X)/,Bd=/^[0-7]+$/,qd=/^\d+$/,zd=/^[\dA-Fa-f]+$/,Vd=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Wd=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Gd=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Yd=/[\u0009\u000A\u000D]/g,$d=function(t,e){var r,n,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=Jd(e.slice(1,-1))))return"Invalid host";t.host=r}else if(nv(t)){if(e=function(t){var e,r,n=[],o=t.toLowerCase().replace(Kp,".").split(".");for(e=0;e<o.length;e++)r=o[e],n.push(Xp.test(r)?"xn--"+nd(r):r);return n.join(".")}(e),Vd.test(e))return"Invalid host";if(null===(r=Hd(e)))return"Invalid host";t.host=r}else{if(Wd.test(e))return"Invalid host";for(r="",n=yr(e),o=0;o<n.length;o++)r+=ev(n[o],Kd);t.host=r}},Hd=function(t){var e,r,n,o,i,a,u,c=t.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(e=c.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=c[n]))return t;if(i=10,o.length>1&&"0"==o.charAt(0)&&(i=Dd.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?qd:8==i?Bd:zd).test(o))return t;a=parseInt(o,i)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=kd(256,5-e))return null}else if(a>255)return null;for(u=r.pop(),n=0;n<r.length;n++)u+=r[n]*kd(256,3-n);return u},Jd=function(t){var e,r,n,o,i,a,u,c=[0,0,0,0,0,0,0,0],f=0,s=null,l=0,h=function(){return t.charAt(l)};if(":"==h()){if(":"!=t.charAt(1))return;l+=2,s=++f}for(;h();){if(8==f)return;if(":"!=h()){for(e=r=0;r<4&&zd.test(h());)e=16*e+parseInt(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,f>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Cd.test(h()))return;for(;Cd.test(h());){if(i=parseInt(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}c[f]=256*c[f]+o,2!=++n&&4!=n||f++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;c[f++]=e}else{if(null!==s)return;l++,s=++f}}if(null!==s)for(a=f-s,f=7;0!=f&&a>0;)u=c[f],c[f--]=c[s+a-1],c[s+--a]=u;else if(8!=f)return;return c},Xd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=Ud(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},Kd={},Qd=No({},Kd,{" ":1,'"':1,"<":1,">":1,"`":1}),Zd=No({},Qd,{"#":1,"?":1,"{":1,"}":1}),tv=No({},Zd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ev=function(t,e){var r=_d(t,0);return r>32&&r<127&&!w(e,t)?t:encodeURIComponent(t)},rv={ftp:21,file:null,http:80,https:443,ws:80,wss:443},nv=function(t){return w(rv,t.scheme)},ov=function(t){return""!=t.username||""!=t.password},iv=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},av=function(t,e){var r;return 2==t.length&&Nd.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},uv=function(t){var e;return t.length>1&&av(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},cv=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&av(e[0],!0)||e.pop()},fv=function(t){return"."===t||"%2e"===t.toLowerCase()},sv={},lv={},hv={},pv={},dv={},vv={},gv={},yv={},bv={},mv={},wv={},Sv={},Ev={},Av={},xv={},Ov={},Rv={},Tv={},_v={},Iv={},jv={},Pv=function(t,e,r,n){var o,i,a,u,c,f=r||sv,s=0,l="",h=!1,p=!1,d=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(Gd,"")),e=e.replace(Yd,""),o=yr(e);s<=o.length;){switch(i=o[s],f){case sv:if(!i||!Nd.test(i)){if(r)return"Invalid scheme";f=hv;continue}l+=i.toLowerCase(),f=lv;break;case lv:if(i&&(Fd.test(i)||"+"==i||"-"==i||"."==i))l+=i.toLowerCase();else{if(":"!=i){if(r)return"Invalid scheme";l="",f=hv,s=0;continue}if(r&&(nv(t)!=w(rv,l)||"file"==l&&(ov(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,r)return void(nv(t)&&rv[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?f=Av:nv(t)&&n&&n.scheme==t.scheme?f=pv:nv(t)?f=yv:"/"==o[s+1]?(f=dv,s++):(t.cannotBeABaseURL=!0,t.path.push(""),f=_v)}break;case hv:if(!n||n.cannotBeABaseURL&&"#"!=i)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"==i){t.scheme=n.scheme,t.path=n.path.slice(),t.query=n.query,t.fragment="",t.cannotBeABaseURL=!0,f=jv;break}f="file"==n.scheme?Av:vv;continue;case pv:if("/"!=i||"/"!=o[s+1]){f=vv;continue}f=bv,s++;break;case dv:if("/"==i){f=mv;break}f=Tv;continue;case vv:if(t.scheme=n.scheme,i==Rd)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query;else if("/"==i||"\\"==i&&nv(t))f=gv;else if("?"==i)t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query="",f=Iv;else{if("#"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.path.pop(),f=Tv;continue}t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,t.path=n.path.slice(),t.query=n.query,t.fragment="",f=jv}break;case gv:if(!nv(t)||"/"!=i&&"\\"!=i){if("/"!=i){t.username=n.username,t.password=n.password,t.host=n.host,t.port=n.port,f=Tv;continue}f=mv}else f=bv;break;case yv:if(f=bv,"/"!=i||"/"!=l.charAt(s+1))continue;s++;break;case bv:if("/"!=i&&"\\"!=i){f=mv;continue}break;case mv:if("@"==i){h&&(l="%40"+l),h=!0,a=yr(l);for(var v=0;v<a.length;v++){var g=a[v];if(":"!=g||d){var y=ev(g,tv);d?t.password+=y:t.username+=y}else d=!0}l=""}else if(i==Rd||"/"==i||"?"==i||"#"==i||"\\"==i&&nv(t)){if(h&&""==l)return"Invalid authority";s-=yr(l).length+1,l="",f=wv}else l+=i;break;case wv:case Sv:if(r&&"file"==t.scheme){f=Ov;continue}if(":"!=i||p){if(i==Rd||"/"==i||"?"==i||"#"==i||"\\"==i&&nv(t)){if(nv(t)&&""==l)return"Invalid host";if(r&&""==l&&(ov(t)||null!==t.port))return;if(u=$d(t,l))return u;if(l="",f=Rv,r)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return"Invalid host";if(u=$d(t,l))return u;if(l="",f=Ev,r==Sv)return}break;case Ev:if(!Cd.test(i)){if(i==Rd||"/"==i||"?"==i||"#"==i||"\\"==i&&nv(t)||r){if(""!=l){var b=parseInt(l,10);if(b>65535)return"Invalid port";t.port=nv(t)&&b===rv[t.scheme]?null:b,l=""}if(r)return;f=Rv;continue}return"Invalid port"}l+=i;break;case Av:if(t.scheme="file","/"==i||"\\"==i)f=xv;else{if(!n||"file"!=n.scheme){f=Tv;continue}if(i==Rd)t.host=n.host,t.path=n.path.slice(),t.query=n.query;else if("?"==i)t.host=n.host,t.path=n.path.slice(),t.query="",f=Iv;else{if("#"!=i){uv(o.slice(s).join(""))||(t.host=n.host,t.path=n.path.slice(),cv(t)),f=Tv;continue}t.host=n.host,t.path=n.path.slice(),t.query=n.query,t.fragment="",f=jv}}break;case xv:if("/"==i||"\\"==i){f=Ov;break}n&&"file"==n.scheme&&!uv(o.slice(s).join(""))&&(av(n.path[0],!0)?t.path.push(n.path[0]):t.host=n.host),f=Tv;continue;case Ov:if(i==Rd||"/"==i||"\\"==i||"?"==i||"#"==i){if(!r&&av(l))f=Tv;else if(""==l){if(t.host="",r)return;f=Rv}else{if(u=$d(t,l))return u;if("localhost"==t.host&&(t.host=""),r)return;l="",f=Rv}continue}l+=i;break;case Rv:if(nv(t)){if(f=Tv,"/"!=i&&"\\"!=i)continue}else if(r||"?"!=i)if(r||"#"!=i){if(i!=Rd&&(f=Tv,"/"!=i))continue}else t.fragment="",f=jv;else t.query="",f=Iv;break;case Tv:if(i==Rd||"/"==i||"\\"==i&&nv(t)||!r&&("?"==i||"#"==i)){if(".."===(c=(c=l).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(cv(t),"/"==i||"\\"==i&&nv(t)||t.path.push("")):fv(l)?"/"==i||"\\"==i&&nv(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&av(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(i==Rd||"?"==i||"#"==i))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==i?(t.query="",f=Iv):"#"==i&&(t.fragment="",f=jv)}else l+=ev(i,Zd);break;case _v:"?"==i?(t.query="",f=Iv):"#"==i?(t.fragment="",f=jv):i!=Rd&&(t.path[0]+=ev(i,Kd));break;case Iv:r||"#"!=i?i!=Rd&&("'"==i&&nv(t)?t.query+="%27":t.query+="#"==i?"%23":ev(i,Kd)):(t.fragment="",f=jv);break;case jv:i!=Rd&&(t.fragment+=ev(i,Qd))}s++}},Lv=function(t){var e,r,n=Ef(this,Lv,"URL"),o=arguments.length>1?arguments[1]:void 0,i=String(t),u=Ld(n,{type:"URL"});if(void 0!==o)if(o instanceof Lv)e=Md(o);else if(r=Pv(e={},String(o)))throw TypeError(r);if(r=Pv(u,i,null,e))throw TypeError(r);var c=u.searchParams=new jd,f=Pd(c);f.updateSearchParams(u.query),f.updateURL=function(){u.query=String(c)||null},a||(n.href=Uv.call(n),n.origin=kv.call(n),n.protocol=Nv.call(n),n.username=Fv.call(n),n.password=Cv.call(n),n.host=Dv.call(n),n.hostname=Bv.call(n),n.port=qv.call(n),n.pathname=zv.call(n),n.search=Vv.call(n),n.searchParams=Wv.call(n),n.hash=Gv.call(n))},Mv=Lv.prototype,Uv=function(){var t=Md(this),e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,u=t.query,c=t.fragment,f=e+":";return null!==o?(f+="//",ov(t)&&(f+=r+(n?":"+n:"")+"@"),f+=Xd(o),null!==i&&(f+=":"+i)):"file"==e&&(f+="//"),f+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==u&&(f+="?"+u),null!==c&&(f+="#"+c),f},kv=function(){var t=Md(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&nv(t)?e+"://"+Xd(t.host)+(null!==r?":"+r:""):"null"},Nv=function(){return Md(this).scheme+":"},Fv=function(){return Md(this).username},Cv=function(){return Md(this).password},Dv=function(){var t=Md(this),e=t.host,r=t.port;return null===e?"":null===r?Xd(e):Xd(e)+":"+r},Bv=function(){var t=Md(this).host;return null===t?"":Xd(t)},qv=function(){var t=Md(this).port;return null===t?"":String(t)},zv=function(){var t=Md(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Vv=function(){var t=Md(this).query;return t?"?"+t:""},Wv=function(){return Md(this).searchParams},Gv=function(){var t=Md(this).fragment;return t?"#"+t:""},Yv=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(a&&Ft(Mv,{href:Yv(Uv,(function(t){var e=Md(this),r=String(t),n=Pv(e,r);if(n)throw TypeError(n);Pd(e.searchParams).updateSearchParams(e.query)})),origin:Yv(kv),protocol:Yv(Nv,(function(t){var e=Md(this);Pv(e,String(t)+":",sv)})),username:Yv(Fv,(function(t){var e=Md(this),r=yr(String(t));if(!iv(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=ev(r[n],tv)}})),password:Yv(Cv,(function(t){var e=Md(this),r=yr(String(t));if(!iv(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=ev(r[n],tv)}})),host:Yv(Dv,(function(t){var e=Md(this);e.cannotBeABaseURL||Pv(e,String(t),wv)})),hostname:Yv(Bv,(function(t){var e=Md(this);e.cannotBeABaseURL||Pv(e,String(t),Sv)})),port:Yv(qv,(function(t){var e=Md(this);iv(e)||(""==(t=String(t))?e.port=null:Pv(e,t,Ev))})),pathname:Yv(zv,(function(t){var e=Md(this);e.cannotBeABaseURL||(e.path=[],Pv(e,t+"",Rv))})),search:Yv(Vv,(function(t){var e=Md(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",Pv(e,t,Iv)),Pd(e.searchParams).updateSearchParams(e.query)})),searchParams:Yv(Wv),hash:Yv(Gv,(function(t){var e=Md(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",Pv(e,t,jv)):e.fragment=null}))}),et(Mv,"toJSON",(function(){return Uv.call(this)}),{enumerable:!0}),et(Mv,"toString",(function(){return Uv.call(this)}),{enumerable:!0}),Id){var $v=Id.createObjectURL,Hv=Id.revokeObjectURL;$v&&et(Lv,"createObjectURL",(function(t){return $v.apply(Id,arguments)})),Hv&&et(Lv,"revokeObjectURL",(function(t){return Hv.apply(Id,arguments)}))}ne(Lv,"URL"),Pt({global:!0,forced:!Jp,sham:!a},{URL:Lv}),Pt({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}});e((function(t){var e=function(t){var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===s)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===s)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var s={};function l(){}function h(){}function p(){}var d={};d[o]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(x([])));g&&g!==e&&r.call(g,o)&&(d=g);var y=p.prototype=l.prototype=Object.create(d);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function m(t,e){var n;this._invoke=function(o,i){function a(){return new e((function(n,a){!function n(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return s;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,s;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,s):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,s)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=y.constructor=p,p.constructor=h,h.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new m(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,a,"Generator"),y[o]=function(){return this},y.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=x,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),s},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),s}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}}));!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),r=function(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(r[Symbol.iterator]=function(){return r}),r},n=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set&&"function"==typeof e.prototype.entries}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var r=this;t.forEach((function(t,e){r.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;n<t.length;n++){var i=t[n];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+n+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var r;for(var n in this._entries)if(this._entries.hasOwnProperty(n)){r=this._entries[n];for(var o=0;o<r.length;o++)t.call(e,r[o],n,this)}},i.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),r(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),r(t)},i.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),r(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,r){t.push(n(r)+"="+n(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(r,n){e.push([n,r]),t._entries||t.delete(n)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var r=0;r<e.length;r++)this.append(e[r][0],e[r][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,r){e.push(r)}));for(var r=0;r<e.length;r++)this.delete(e[r])}var n,i=(t=t.replace(/^\?/,"")).split("&");for(r=0;r<i.length;r++)n=i[r].split("="),this.append(o(n[0]),n.length>1?o(n[1]):"")}})}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0),function(t){if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||function(){var e=t.URL,r=function(e,r){"string"!=typeof e&&(e=String(e)),r&&"string"!=typeof r&&(r=String(r));var n,o=document;if(r&&(void 0===t.location||r!==t.location.href)){r=r.toLowerCase(),(n=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=r,o.head.appendChild(n);try{if(0!==n.href.indexOf(r))throw new Error(n.href)}catch(t){throw new Error("URL unable to set base "+r+" due to "+t)}}var i=o.createElement("a");i.href=e,n&&(o.body.appendChild(i),i.href=i.href);var a=o.createElement("input");if(a.type="url",a.value=e,":"===i.protocol||!/:/.test(i.href)||!a.checkValidity()&&!r)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var u=new t.URLSearchParams(this.search),c=!0,f=!0,s=this;["append","delete","set"].forEach((function(t){var e=u[t];u[t]=function(){e.apply(u,arguments),c&&(f=!1,s.search=u.toString(),f=!0)}})),Object.defineProperty(this,"searchParams",{value:u,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,f&&(c=!1,this.searchParams._fromString(this.search),c=!0))}})},n=r.prototype;["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(n,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),r.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},r.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=r}(),void 0!==t.location&&!("origin"in t.location)){var e=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:e,enumerable:!0})}catch(r){setInterval((function(){t.location.origin=e()}),100)}}}(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0);var Jv=Object.freeze({}),Xv="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==Xv&&Xv,Kv="URLSearchParams"in Xv,Qv="Symbol"in Xv&&"iterator"in Symbol,Zv="FileReader"in Xv&&"Blob"in Xv&&function(){try{return new Blob,!0}catch(t){return!1}}(),tg="FormData"in Xv,eg="ArrayBuffer"in Xv;if(eg)var rg=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ng=ArrayBuffer.isView||function(t){return t&&rg.indexOf(Object.prototype.toString.call(t))>-1};function og(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function ig(t){return"string"!=typeof t&&(t=String(t)),t}function ag(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return Qv&&(e[Symbol.iterator]=function(){return e}),e}function ug(t){this.map={},t instanceof ug?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function cg(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function fg(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function sg(t){var e=new FileReader,r=fg(e);return e.readAsArrayBuffer(t),r}function lg(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function hg(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:Zv&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:tg&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:Kv&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():eg&&Zv&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=lg(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):eg&&(ArrayBuffer.prototype.isPrototypeOf(t)||ng(t))?this._bodyArrayBuffer=lg(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Kv&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Zv&&(this.blob=function(){var t=cg(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=cg(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(sg)}),this.text=function(){var t=cg(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,r=fg(e);return e.readAsText(t),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},tg&&(this.formData=function(){return this.text().then(vg)}),this.json=function(){return this.text().then(JSON.parse)},this}ug.prototype.append=function(t,e){t=og(t),e=ig(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},ug.prototype.delete=function(t){delete this.map[og(t)]},ug.prototype.get=function(t){return t=og(t),this.has(t)?this.map[t]:null},ug.prototype.has=function(t){return this.map.hasOwnProperty(og(t))},ug.prototype.set=function(t,e){this.map[og(t)]=ig(e)},ug.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},ug.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),ag(t)},ug.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),ag(t)},ug.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),ag(t)},Qv&&(ug.prototype[Symbol.iterator]=ug.prototype.entries);var pg=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function dg(t,e){if(!(this instanceof dg))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(e=e||{}).body;if(t instanceof dg){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new ug(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new ug(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),pg.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function vg(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function gg(t,e){if(!(this instanceof gg))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new ug(e.headers),this.url=e.url||"",this._initBody(t)}dg.prototype.clone=function(){return new dg(this,{body:this._bodyInit})},hg.call(dg.prototype),hg.call(gg.prototype),gg.prototype.clone=function(){return new gg(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ug(this.headers),url:this.url})},gg.error=function(){var t=new gg(null,{status:0,statusText:""});return t.type="error",t};var yg=[301,302,303,307,308];gg.redirect=function(t,e){if(-1===yg.indexOf(e))throw new RangeError("Invalid status code");return new gg(null,{status:e,headers:{location:t}})};var bg=Xv.DOMException;try{new bg}catch(t){(bg=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),bg.prototype.constructor=bg}function mg(t,e){return new Promise((function(r,n){var o=new dg(t,e);if(o.signal&&o.signal.aborted)return n(new bg("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,n={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new ug,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new gg(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new bg("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&Xv.location.href?Xv.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Zv?i.responseType="blob":eg&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof ug?o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){i.setRequestHeader(t,ig(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}mg.polyfill=!0,Xv.fetch||(Xv.fetch=mg,Xv.Headers=ug,Xv.Request=dg,Xv.Response=gg);var wg,Sg=Object.freeze({Headers:ug,Request:dg,Response:gg,get DOMException(){return bg},fetch:mg});wg=function(){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?a(t):e}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=o(t);if(e){var i=o(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return u(this,r)}}function f(t,e,r){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}var s=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var r=this.listeners[t],n=0,o=r.length;n<o;n++)if(r[n]===e)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var r=function(r){setTimeout((function(){return r.call(e,t)}))},n=this.listeners[t.type],o=0,i=n.length;o<i;o++)r(n[o]);return!t.defaultPrevented}}}]),t}(),l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(u,t);var r=c(u);function u(){var t;return e(this,u),(t=r.call(this)).listeners||s.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return n(u,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),f(o(u.prototype),"dispatchEvent",this).call(this,t)}}]),u}(s),h=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function p(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(h.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(p(t))if(t.fetch){var e=function(t){"function"==typeof t&&(t={fetch:t});var e=t,r=e.fetch,n=e.Request,o=void 0===n?r.Request:n,i=e.AbortController,a=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,u=void 0!==a&&a;if(!p({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:u}))return{fetch:r,Request:c};var c=o;(c&&!c.prototype.hasOwnProperty("signal")||u)&&((c=function(t,e){var r;e&&e.signal&&(r=e.signal,delete e.signal);var n=new o(t,e);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var f=r;return{fetch:function(t,e){var r=c&&c.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(t){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(t,e){r.addEventListener("abort",(function(){return e(n)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([o,f(t,e)])}return f(t,e)},Request:c}}(t),r=e.fetch,n=e.Request;t.fetch=r,t.Request=n,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:h}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:t)},"function"==typeof define&&define.amd?define(wg):wg();var Eg=Object.freeze({});function Ag(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.charCodeAt(e);if(r>=55296&&r<56320){var n=r,o=t.charCodeAt(e+1);return 1024*(n-55296)+(o-56320)+65536}return 56320<=r&&r<=57343?-1:r}var xg=function(t,e){for(var r=[],n=0,o=0;o<t.length;++o){var i=Ag(t,o),a=0;i>0&&(a=i<128?1:i<2048?2:i<65536?3:i<2097152?4:i<67108864?5:6),n+a>e?(r.push(o),n=a):n+=a}return r},Og="WIP",Rg="SUCCESS",Tg="SUCCESS_CHUNKED",_g="ERROR";function Ig(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.chunkByteLength,n=void 0===r?0:r;if(t){if(t.value){if(n){if(!t.chunks){var o=JSON.stringify(t.value);t.chunks=xg(o,n),t.chunks.length>0&&(t.from=0,t.value=o)}if(t.from>=0)return{status:Tg,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:Rg,value:t.value}}return t.error?{status:_g,error:t.error}:{status:Og}}return{status:_g,error:"unexpected poll request received - cannot find state of current operation"}}var jg=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Ig((t=t||{})[e],r);return(n.status===Rg||n.status===_g||n.status===Tg&&n.done)&&(t[e]=null),n};var Pg={chunkify:xg,pollify:function(t,e,r){return function(n){return function(){return e[r]||(e[r]={},t.apply(null,arguments).then((function(t){return e[r].value=t})).catch((function(t){return e[r].error=t.message}))),jg(e,r,n)}}},poll:jg,absolutizeUrl:function(t,e){return new URL(t,e).href},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{var e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}},Lg="__EYES__APPLITOOLS__",Mg="domCaptureResult";r(Jv),r(Sg),r(Eg);var Ug=Pg.poll,kg=Lg,Ng=Mg;return function(t){return JSON.stringify(Ug(window[kg],Ng,t))}}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/dom-capture",
3
- "version": "11.0.2",
3
+ "version": "11.1.2",
4
4
  "main": "index.js",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "scripts": {
@@ -8,6 +8,7 @@
8
8
  "test:mocha": "mocha --no-timeouts --parallel 'test/**/*.test.js' --colors",
9
9
  "test:docker": "docker run -it --rm -e SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY -e SAUCE_USERNAME=$SAUCE_USERNAME -e APPLITOOLS_UPDATE_FIXTURES=$APPLITOOLS_UPDATE_FIXTURES -v $(pwd):/sandbox -v /sandbox/node_modules dom_capture_tests",
10
10
  "docker:build": "docker build --rm -t dom_capture_tests .",
11
+ "docker:build_mac_m1": "docker build --rm -t dom_capture_tests . --platform=linux/amd64",
11
12
  "lint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'",
12
13
  "lint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'",
13
14
  "lint": "yarn lint:node && yarn lint:browser",
@@ -43,7 +44,7 @@
43
44
  "express": "^4.17.1",
44
45
  "husky": "^4.3.7",
45
46
  "jsdom": "^13.2.0",
46
- "mocha": "^8.0.1",
47
+ "mocha": "^10.0.0",
47
48
  "node-fetch": "^2.6.0",
48
49
  "prettier": "^1.19.1",
49
50
  "puppeteer": "^5.5.0",