aboutsummaryrefslogtreecommitdiffstats
path: root/demo/dist/demo.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'demo/dist/demo.min.js')
-rw-r--r--demo/dist/demo.min.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/demo/dist/demo.min.js b/demo/dist/demo.min.js
index a94e2f80..4cf9cec8 100644
--- a/demo/dist/demo.min.js
+++ b/demo/dist/demo.min.js
@@ -1,4 +1,19 @@
-"object"==typeof navigator&&function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,c={f:s&&!a.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:a},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},u={}.toString,f=function(e){return u.call(e).slice(8,-1)},h="".split,d=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?h.call(e,""):Object(e)}:Object,p=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return d(p(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!m(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!m(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!m(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(e,t){return y.call(e,t)},w=r.document,k=m(w)&&m(w.createElement),S=function(e){return k?w.createElement(e):{}},E=!o&&!i((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,T={f:o?_:function(e,t){if(e=g(e),t=v(t,!0),E)try{return _(e,t)}catch(e){}if(b(e,t))return l(!c.f.call(e,t),e[t])}},A=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},x=Object.defineProperty,O={f:o?x:function(e,t,n){if(A(e),t=v(t,!0),A(n),E)try{return x(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C=o?function(e,t,n){return O.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},P=function(e,t){try{C(r,e,t)}catch(n){r[e]=t}return t},I=r["__core-js_shared__"]||P("__core-js_shared__",{}),R=Function.toString;"function"!=typeof I.inspectSource&&(I.inspectSource=function(e){return R.call(e)});var j,L,M,N=I.inspectSource,U=r.WeakMap,F="function"==typeof U&&/native code/.test(N(U)),D=t((function(e){(e.exports=function(e,t){return I[e]||(I[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,q=Math.random(),H=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+q).toString(36)},V=D("keys"),z=function(e){return V[e]||(V[e]=H(e))},W={},$=r.WeakMap;if(F){var K=new $,Y=K.get,G=K.has,X=K.set;j=function(e,t){return X.call(K,e,t),t},L=function(e){return Y.call(K,e)||{}},M=function(e){return G.call(K,e)}}else{var J=z("state");W[J]=!0,j=function(e,t){return C(e,J,t),t},L=function(e){return b(e,J)?e[J]:{}},M=function(e){return b(e,J)}}var Q={set:j,get:L,has:M,enforce:function(e){return M(e)?L(e):j(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=L(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Z=t((function(e){var t=Q.get,n=Q.enforce,i=String(String).split("String");(e.exports=function(e,t,o,a){var s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||b(o,"name")||C(o,"name",t),n(o).source=i.join("string"==typeof t?t:"")),e!==r?(s?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=o:C(e,t,o)):c?e[t]=o:P(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||N(this)}))})),ee=r,te=function(e){return"function"==typeof e?e:void 0},ne=function(e,t){return arguments.length<2?te(ee[e])||te(r[e]):ee[e]&&ee[e][t]||r[e]&&r[e][t]},re=Math.ceil,ie=Math.floor,oe=function(e){return isNaN(e=+e)?0:(e>0?ie:re)(e)},ae=Math.min,se=function(e){return e>0?ae(oe(e),9007199254740991):0},ce=Math.max,le=Math.min,ue=function(e,t){var n=oe(e);return n<0?ce(n+t,0):le(n,t)},fe=function(e){return function(t,n,r){var i,o=g(t),a=se(o.length),s=ue(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},he={includes:fe(!0),indexOf:fe(!1)},de=he.indexOf,pe=function(e,t){var n,r=g(e),i=0,o=[];for(n in r)!b(W,n)&&b(r,n)&&o.push(n);for(;t.length>i;)b(r,n=t[i++])&&(~de(o,n)||o.push(n));return o},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],me=ge.concat("length","prototype"),ve={f:Object.getOwnPropertyNames||function(e){return pe(e,me)}},ye={f:Object.getOwnPropertySymbols},be=ne("Reflect","ownKeys")||function(e){var t=ve.f(A(e)),n=ye.f;return n?t.concat(n(e)):t},we=function(e,t){for(var n=be(t),r=O.f,i=T.f,o=0;o<n.length;o++){var a=n[o];b(e,a)||r(e,a,i(t,a))}},ke=/#|\.prototype\./,Se=function(e,t){var n=_e[Ee(e)];return n==Ae||n!=Te&&("function"==typeof t?i(t):!!t)},Ee=Se.normalize=function(e){return String(e).replace(ke,".").toLowerCase()},_e=Se.data={},Te=Se.NATIVE="N",Ae=Se.POLYFILL="P",xe=Se,Oe=T.f,Ce=function(e,t){var n,i,o,a,s,c=e.target,l=e.global,u=e.stat;if(n=l?r:u?r[c]||P(c,{}):(r[c]||{}).prototype)for(i in t){if(a=t[i],o=e.noTargetGet?(s=Oe(n,i))&&s.value:n[i],!xe(l?i:c+(u?".":"#")+i,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;we(a,o)}(e.sham||o&&o.sham)&&C(a,"sham",!0),Z(n,i,a,e)}},Pe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ie=function(e,t,n){if(Pe(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Re=function(e){return Object(p(e))},je=Array.isArray||function(e){return"Array"==f(e)},Le=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Me=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ne=D("wks"),Ue=r.Symbol,Fe=Me?Ue:Ue&&Ue.withoutSetter||H,De=function(e){return b(Ne,e)||(Le&&b(Ue,e)?Ne[e]=Ue[e]:Ne[e]=Fe("Symbol."+e)),Ne[e]},Be=De("species"),qe=function(e,t){var n;return je(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!je(n.prototype)?m(n)&&null===(n=n[Be])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},He=[].push,Ve=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,l,u){for(var f,h,p=Re(s),g=d(p),m=Ie(c,l,3),v=se(g.length),y=0,b=u||qe,w=t?b(s,v):n?b(s,0):void 0;v>y;y++)if((a||y in g)&&(h=m(f=g[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:He.call(w,f)}else if(i)return!1;return o?-1:r||i?i:w}},ze={forEach:Ve(0),map:Ve(1),filter:Ve(2),some:Ve(3),every:Ve(4),find:Ve(5),findIndex:Ve(6)},We=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},$e=Object.defineProperty,Ke={},Ye=function(e){throw e},Ge=function(e,t){if(b(Ke,e))return Ke[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,a=b(t,0)?t[0]:Ye,s=b(t,1)?t[1]:void 0;return Ke[e]=!!n&&!i((function(){if(r&&!o)return!0;var e={length:-1};r?$e(e,1,{enumerable:!0,get:Ye}):e[1]=1,n.call(e,a,s)}))},Xe=ze.forEach,Je=We("forEach"),Qe=Ge("forEach"),Ze=Je&&Qe?[].forEach:function(e){return Xe(this,e,arguments.length>1?arguments[1]:void 0)};Ce({target:"Array",proto:!0,forced:[].forEach!=Ze},{forEach:Ze});var et=function(e,t,n,r){try{return r?t(A(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&A(i.call(e)),t}},tt={},nt=De("iterator"),rt=Array.prototype,it=function(e){return void 0!==e&&(tt.Array===e||rt[nt]===e)},ot=function(e,t,n){var r=v(t);r in e?O.f(e,r,l(0,n)):e[r]=n},at={};at[De("toStringTag")]="z";var st="[object z]"===String(at),ct=De("toStringTag"),lt="Arguments"==f(function(){return arguments}()),ut=st?f:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ct))?n:lt?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},ft=De("iterator"),ht=function(e){if(null!=e)return e[ft]||e["@@iterator"]||tt[ut(e)]},dt=function(e){var t,n,r,i,o,a,s=Re(e),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,h=ht(s),d=0;if(f&&(u=Ie(u,l>2?arguments[2]:void 0,2)),null==h||c==Array&&it(h))for(n=new c(t=se(s.length));t>d;d++)a=f?u(s[d],d):s[d],ot(n,d,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;d++)a=f?et(i,u,[r.value,d],!0):r.value,ot(n,d,a);return n.length=d,n},pt=De("iterator"),gt=!1;try{var mt=0,vt={next:function(){return{done:!!mt++}},return:function(){gt=!0}};vt[pt]=function(){return this},Array.from(vt,(function(){throw 2}))}catch(e){}var yt=function(e,t){if(!t&&!gt)return!1;var n=!1;try{var r={};r[pt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},bt=!yt((function(e){Array.from(e)}));Ce({target:"Array",stat:!0,forced:bt},{from:dt});var wt,kt=Object.keys||function(e){return pe(e,ge)},St=o?Object.defineProperties:function(e,t){A(e);for(var n,r=kt(t),i=r.length,o=0;i>o;)O.f(e,n=r[o++],t[n]);return e},Et=ne("document","documentElement"),_t=z("IE_PROTO"),Tt=function(){},At=function(e){return"<script>"+e+"<\/script>"},xt=function(){try{wt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;xt=wt?function(e){e.write(At("")),e.close();var t=e.parentWindow.Object;return e=null,t}(wt):((t=S("iframe")).style.display="none",Et.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(At("document.F=Object")),e.close(),e.F);for(var n=ge.length;n--;)delete xt.prototype[ge[n]];return xt()};W[_t]=!0;var Ot=Object.create||function(e,t){var n;return null!==e?(Tt.prototype=A(e),n=new Tt,Tt.prototype=null,n[_t]=e):n=xt(),void 0===t?n:St(n,t)},Ct=De("unscopables"),Pt=Array.prototype;null==Pt[Ct]&&O.f(Pt,Ct,{configurable:!0,value:Ot(null)});var It=function(e){Pt[Ct][e]=!0},Rt=he.includes,jt=Ge("indexOf",{ACCESSORS:!0,1:0});Ce({target:"Array",proto:!0,forced:!jt},{includes:function(e){return Rt(this,e,arguments.length>1?arguments[1]:void 0)}}),It("includes");var Lt=i((function(){kt(1)}));Ce({target:"Object",stat:!0,forced:Lt},{keys:function(e){return kt(Re(e))}});var Mt=De("match"),Nt=function(e){var t;return m(e)&&(void 0!==(t=e[Mt])?!!t:"RegExp"==f(e))},Ut=function(e){if(Nt(e))throw TypeError("The method doesn't accept regular expressions");return e},Ft=De("match");Ce({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ft]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(p(this)).indexOf(Ut(e),arguments.length>1?arguments[1]:void 0)}});var Dt,Bt,qt,Ht=function(e){return function(t,n){var r,i,o=String(p(t)),a=oe(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Vt={codeAt:Ht(!1),charAt:Ht(!0)},zt=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wt=z("IE_PROTO"),$t=Object.prototype,Kt=zt?Object.getPrototypeOf:function(e){return e=Re(e),b(e,Wt)?e[Wt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?$t:null},Yt=De("iterator"),Gt=!1;[].keys&&("next"in(qt=[].keys())?(Bt=Kt(Kt(qt)))!==Object.prototype&&(Dt=Bt):Gt=!0),null==Dt&&(Dt={}),b(Dt,Yt)||C(Dt,Yt,(function(){return this}));var Xt={IteratorPrototype:Dt,BUGGY_SAFARI_ITERATORS:Gt},Jt=O.f,Qt=De("toStringTag"),Zt=function(e,t,n){e&&!b(e=n?e:e.prototype,Qt)&&Jt(e,Qt,{configurable:!0,value:t})},en=Xt.IteratorPrototype,tn=function(){return this},nn=function(e,t,n){var r=t+" Iterator";return e.prototype=Ot(en,{next:l(1,n)}),Zt(e,r,!1),tt[r]=tn,e},rn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return A(n),function(e){if(!m(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),on=Xt.IteratorPrototype,an=Xt.BUGGY_SAFARI_ITERATORS,sn=De("iterator"),cn=function(){return this},ln=function(e,t,n,r,i,o,a){nn(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!an&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[sn]||d["@@iterator"]||i&&d[i],g=!an&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=Kt(m.call(new e)),on!==Object.prototype&&s.next&&(Kt(s)!==on&&(rn?rn(s,on):"function"!=typeof s[sn]&&C(s,sn,cn)),Zt(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[sn]!==g&&C(d,sn,g),tt[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)(an||h||!(l in d))&&Z(d,l,c[l]);else Ce({target:t,proto:!0,forced:an||h},c);return c},un=Vt.charAt,fn=Q.set,hn=Q.getterFor("String Iterator");ln(String,"String",(function(e){fn(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=hn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=un(n,r),t.index+=e.length,{value:e,done:!1})}));var dn={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 pn in dn){var gn=r[pn],mn=gn&&gn.prototype;if(mn&&mn.forEach!==Ze)try{C(mn,"forEach",Ze)}catch(e){mn.forEach=Ze}}var vn=document.getElementById("container");document.addEventListener("focusout",(function(e){e.target.classList&&!vn.contains(e.target)&&e.target.classList.remove("tab-focus")})),document.addEventListener("keydown",(function(e){9===e.keyCode&&setTimeout((function(){var e=document.activeElement;e&&e.classList&&!vn.contains(e)&&e.classList.add("tab-focus")}),10)})),function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var yn=ve.f,bn={}.toString,wn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kn={f:function(e){return wn&&"[object Window]"==bn.call(e)?function(e){try{return yn(e)}catch(e){return wn.slice()}}(e):yn(g(e))}},Sn={f:De},En=O.f,_n=function(e){var t=ee.Symbol||(ee.Symbol={});b(t,e)||En(t,e,{value:Sn.f(e)})},Tn=ze.forEach,An=z("hidden"),xn=De("toPrimitive"),On=Q.set,Cn=Q.getterFor("Symbol"),Pn=Object.prototype,In=r.Symbol,Rn=ne("JSON","stringify"),jn=T.f,Ln=O.f,Mn=kn.f,Nn=c.f,Un=D("symbols"),Fn=D("op-symbols"),Dn=D("string-to-symbol-registry"),Bn=D("symbol-to-string-registry"),qn=D("wks"),Hn=r.QObject,Vn=!Hn||!Hn.prototype||!Hn.prototype.findChild,zn=o&&i((function(){return 7!=Ot(Ln({},"a",{get:function(){return Ln(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=jn(Pn,t);r&&delete Pn[t],Ln(e,t,n),r&&e!==Pn&&Ln(Pn,t,r)}:Ln,Wn=function(e,t){var n=Un[e]=Ot(In.prototype);return On(n,{type:"Symbol",tag:e,description:t}),o||(n.description=t),n},$n=Me?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof In},Kn=function(e,t,n){e===Pn&&Kn(Fn,t,n),A(e);var r=v(t,!0);return A(n),b(Un,r)?(n.enumerable?(b(e,An)&&e[An][r]&&(e[An][r]=!1),n=Ot(n,{enumerable:l(0,!1)})):(b(e,An)||Ln(e,An,l(1,{})),e[An][r]=!0),zn(e,r,n)):Ln(e,r,n)},Yn=function(e,t){A(e);var n=g(t),r=kt(n).concat(Qn(n));return Tn(r,(function(t){o&&!Gn.call(n,t)||Kn(e,t,n[t])})),e},Gn=function(e){var t=v(e,!0),n=Nn.call(this,t);return!(this===Pn&&b(Un,t)&&!b(Fn,t))&&(!(n||!b(this,t)||!b(Un,t)||b(this,An)&&this[An][t])||n)},Xn=function(e,t){var n=g(e),r=v(t,!0);if(n!==Pn||!b(Un,r)||b(Fn,r)){var i=jn(n,r);return!i||!b(Un,r)||b(n,An)&&n[An][r]||(i.enumerable=!0),i}},Jn=function(e){var t=Mn(g(e)),n=[];return Tn(t,(function(e){b(Un,e)||b(W,e)||n.push(e)})),n},Qn=function(e){var t=e===Pn,n=Mn(t?Fn:g(e)),r=[];return Tn(n,(function(e){!b(Un,e)||t&&!b(Pn,e)||r.push(Un[e])})),r};if(Le||(Z((In=function(){if(this instanceof In)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=H(e),n=function(e){this===Pn&&n.call(Fn,e),b(this,An)&&b(this[An],t)&&(this[An][t]=!1),zn(this,t,l(1,e))};return o&&Vn&&zn(Pn,t,{configurable:!0,set:n}),Wn(t,e)}).prototype,"toString",(function(){return Cn(this).tag})),Z(In,"withoutSetter",(function(e){return Wn(H(e),e)})),c.f=Gn,O.f=Kn,T.f=Xn,ve.f=kn.f=Jn,ye.f=Qn,Sn.f=function(e){return Wn(De(e),e)},o&&(Ln(In.prototype,"description",{configurable:!0,get:function(){return Cn(this).description}}),Z(Pn,"propertyIsEnumerable",Gn,{unsafe:!0}))),Ce({global:!0,wrap:!0,forced:!Le,sham:!Le},{Symbol:In}),Tn(kt(qn),(function(e){_n(e)})),Ce({target:"Symbol",stat:!0,forced:!Le},{for:function(e){var t=String(e);if(b(Dn,t))return Dn[t];var n=In(t);return Dn[t]=n,Bn[n]=t,n},keyFor:function(e){if(!$n(e))throw TypeError(e+" is not a symbol");if(b(Bn,e))return Bn[e]},useSetter:function(){Vn=!0},useSimple:function(){Vn=!1}}),Ce({target:"Object",stat:!0,forced:!Le,sham:!o},{create:function(e,t){return void 0===t?Ot(e):Yn(Ot(e),t)},defineProperty:Kn,defineProperties:Yn,getOwnPropertyDescriptor:Xn}),Ce({target:"Object",stat:!0,forced:!Le},{getOwnPropertyNames:Jn,getOwnPropertySymbols:Qn}),Ce({target:"Object",stat:!0,forced:i((function(){ye.f(1)}))},{getOwnPropertySymbols:function(e){return ye.f(Re(e))}}),Rn){var Zn=!Le||i((function(){var e=In();return"[null]"!=Rn([e])||"{}"!=Rn({a:e})||"{}"!=Rn(Object(e))}));Ce({target:"JSON",stat:!0,forced:Zn},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(m(t)||void 0!==e)&&!$n(e))return je(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!$n(t))return t}),i[1]=t,Rn.apply(null,i)}})}In.prototype[xn]||C(In.prototype,xn,In.prototype.valueOf),Zt(In,"Symbol"),W[An]=!0;var er=O.f,tr=r.Symbol;if(o&&"function"==typeof tr&&(!("description"in tr.prototype)||void 0!==tr().description)){var nr={},rr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof rr?new tr(e):void 0===e?tr():tr(e);return""===e&&(nr[t]=!0),t};we(rr,tr);var ir=rr.prototype=tr.prototype;ir.constructor=rr;var or=ir.toString,ar="Symbol(test)"==String(tr("test")),sr=/^Symbol\((.*)\)[^)]+$/;er(ir,"description",{configurable:!0,get:function(){var e=m(this)?this.valueOf():this,t=or.call(e);if(b(nr,e))return"";var n=ar?t.slice(7,-1):t.replace(sr,"$1");return""===n?void 0:n}}),Ce({global:!0,forced:!0},{Symbol:rr})}_n("iterator");var cr=he.indexOf,lr=[].indexOf,ur=!!lr&&1/[1].indexOf(1,-0)<0,fr=We("indexOf"),hr=Ge("indexOf",{ACCESSORS:!0,1:0});Ce({target:"Array",proto:!0,forced:ur||!fr||!hr},{indexOf:function(e){return ur?lr.apply(this,arguments)||0:cr(this,e,arguments.length>1?arguments[1]:void 0)}});var dr=Q.set,pr=Q.getterFor("Array Iterator"),gr=ln(Array,"Array",(function(e,t){dr(this,{type:"Array Iterator",target:g(e),index:0,kind:t})}),(function(){var e=pr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");tt.Arguments=tt.Array,It("keys"),It("values"),It("entries");var mr=[].join,vr=d!=Object,yr=We("join",",");Ce({target:"Array",proto:!0,forced:vr||!yr},{join:function(e){return mr.call(g(this),void 0===e?",":e)}});var br,wr,kr=ne("navigator","userAgent")||"",Sr=r.process,Er=Sr&&Sr.versions,_r=Er&&Er.v8;_r?wr=(br=_r.split("."))[0]+br[1]:kr&&(!(br=kr.match(/Edge\/(\d+)/))||br[1]>=74)&&(br=kr.match(/Chrome\/(\d+)/))&&(wr=br[1]);var Tr=wr&&+wr,Ar=De("species"),xr=function(e){return Tr>=51||!i((function(){var t=[];return(t.constructor={})[Ar]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Or=xr("slice"),Cr=Ge("slice",{ACCESSORS:!0,0:0,1:2}),Pr=De("species"),Ir=[].slice,Rr=Math.max;Ce({target:"Array",proto:!0,forced:!Or||!Cr},{slice:function(e,t){var n,r,i,o=g(this),a=se(o.length),s=ue(e,a),c=ue(void 0===t?a:t,a);if(je(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!je(n.prototype)?m(n)&&null===(n=n[Pr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ir.call(o,s,c);for(r=new(void 0===n?Array:n)(Rr(c-s,0)),i=0;s<c;s++,i++)s in o&&ot(r,i,o[s]);return r.length=i,r}});var jr=st?{}.toString:function(){return"[object "+ut(this)+"]"};st||Z(Object.prototype,"toString",jr,{unsafe:!0});var Lr=function(){var e=A(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Mr(e,t){return RegExp(e,t)}var Nr={UNSUPPORTED_Y:i((function(){var e=Mr("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=Mr("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Ur=RegExp.prototype.exec,Fr=String.prototype.replace,Dr=Ur,Br=function(){var e=/a/,t=/b*/g;return Ur.call(e,"a"),Ur.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),qr=Nr.UNSUPPORTED_Y||Nr.BROKEN_CARET,Hr=void 0!==/()??/.exec("")[1];(Br||Hr||qr)&&(Dr=function(e){var t,n,r,i,o=this,a=qr&&o.sticky,s=Lr.call(o),c=o.source,l=0,u=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Hr&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Br&&(t=o.lastIndex),r=Ur.call(a?n:o,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Br&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Hr&&r&&r.length>1&&Fr.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Vr=Dr;Ce({target:"RegExp",proto:!0,forced:/./.exec!==Vr},{exec:Vr});var zr=RegExp.prototype,Wr=zr.toString,$r=i((function(){return"/a/b"!=Wr.call({source:"a",flags:"b"})})),Kr="toString"!=Wr.name;($r||Kr)&&Z(RegExp.prototype,"toString",(function(){var e=A(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in zr)?Lr.call(e):n)}),{unsafe:!0});var Yr=De("species"),Gr=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Xr="$0"==="a".replace(/./,"$0"),Jr=De("replace"),Qr=!!/./[Jr]&&""===/./[Jr]("a","$0"),Zr=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),ei=function(e,t,n,r){var o=De(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),s=a&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Yr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!s||"replace"===e&&(!Gr||!Xr||Qr)||"split"===e&&!Zr){var c=/./[o],l=n(o,""[e],(function(e,t,n,r,i){return t.exec===Vr?a&&!i?{done:!0,value:c.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Xr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Qr}),u=l[0],f=l[1];Z(String.prototype,e,u),Z(RegExp.prototype,o,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&C(RegExp.prototype[o],"sham",!0)},ti=Vt.charAt,ni=function(e,t,n){return t+(n?ti(e,t).length:1)},ri=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==f(e))throw TypeError("RegExp#exec called on incompatible receiver");return Vr.call(e,t)},ii=Math.max,oi=Math.min,ai=Math.floor,si=/\$([$&'`]|\d\d?|<[^>]*>)/g,ci=/\$([$&'`]|\d\d?)/g;ei("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=p(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var l=A(e),u=String(this),f="function"==typeof r;f||(r=String(r));var h=l.global;if(h){var d=l.unicode;l.lastIndex=0}for(var p=[];;){var g=ri(l,u);if(null===g)break;if(p.push(g),!h)break;""===String(g[0])&&(l.lastIndex=ni(u,se(l.lastIndex),d))}for(var m,v="",y=0,b=0;b<p.length;b++){g=p[b];for(var w=String(g[0]),k=ii(oi(oe(g.index),u.length),0),S=[],E=1;E<g.length;E++)S.push(void 0===(m=g[E])?m:String(m));var _=g.groups;if(f){var T=[w].concat(S,k,u);void 0!==_&&T.push(_);var x=String(r.apply(void 0,T))}else x=s(w,u,k,S,_,r);k>=y&&(v+=u.slice(y,k)+x,y=k+w.length)}return v+u.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=ci;return void 0!==o&&(o=Re(o),l=si),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=ai(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l}))}}));var li=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};ei("search",1,(function(e,t,n){return[function(t){var n=p(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=A(e),o=String(this),a=i.lastIndex;li(a,0)||(i.lastIndex=0);var s=ri(i,o);return li(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var ui=De("species"),fi=function(e,t){var n,r=A(e).constructor;return void 0===r||null==(n=A(r)[ui])?t:Pe(n)},hi=[].push,di=Math.min,pi=!i((function(){return!RegExp(4294967295,"y")}));ei("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(p(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!Nt(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=Vr.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&hi.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=p(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=A(e),s=String(this),c=fi(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(pi?"y":"g"),f=new c(pi?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===ri(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=pi?p:0;var m,v=ri(f,pi?s:s.slice(p));if(null===v||(m=di(se(f.lastIndex+(pi?0:p)),s.length))===d)p=ni(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]}),!pi);var gi=De("iterator"),mi=De("toStringTag"),vi=gr.values;for(var yi in dn){var bi=r[yi],wi=bi&&bi.prototype;if(wi){if(wi[gi]!==vi)try{C(wi,gi,vi)}catch(e){wi[gi]=vi}if(wi[mi]||C(wi,mi,yi),dn[yi])for(var ki in gr)if(wi[ki]!==gr[ki])try{C(wi,ki,gr[ki])}catch(e){wi[ki]=gr[ki]}}}var Si=De("iterator"),Ei=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Si]||"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"!==n||"x"!==new URL("http://x",void 0).host})),_i=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Ti=Object.assign,Ai=Object.defineProperty,xi=!Ti||i((function(){if(o&&1!==Ti({b:1},Ti(Ai({},"a",{enumerable:!0,get:function(){Ai(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Ti({},e)[n]||"abcdefghijklmnopqrst"!=kt(Ti({},t)).join("")}))?function(e,t){for(var n=Re(e),r=arguments.length,i=1,a=ye.f,s=c.f;r>i;)for(var l,u=d(arguments[i++]),f=a?kt(u).concat(a(u)):kt(u),h=f.length,p=0;h>p;)l=f[p++],o&&!s.call(u,l)||(n[l]=u[l]);return n}:Ti,Oi=/[^\0-\u007E]/,Ci=/[.\u3002\uFF0E\uFF61]/g,Pi="Overflow: input needs wider integers to process",Ii=Math.floor,Ri=String.fromCharCode,ji=function(e){return e+22+75*(e<26)},Li=function(e,t,n){var r=0;for(e=n?Ii(e/700):e>>1,e+=Ii(e/t);e>455;r+=36)e=Ii(e/35);return Ii(r+36*e/(e+38))},Mi=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Ri(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>Ii((2147483647-a)/f))throw RangeError(Pi);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(Pi);if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push(Ri(ji(p+g%m))),h=Ii(g/m)}r.push(Ri(ji(h))),s=Li(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},Ni=function(e,t,n){for(var r in t)Z(e,r,t[r],n);return e},Ui=function(e){var t=ht(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return A(t.call(e))},Fi=ne("fetch"),Di=ne("Headers"),Bi=De("iterator"),qi=Q.set,Hi=Q.getterFor("URLSearchParams"),Vi=Q.getterFor("URLSearchParamsIterator"),zi=/\+/g,Wi=Array(4),$i=function(e){return Wi[e-1]||(Wi[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Ki=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Yi=function(e){var t=e.replace(zi," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace($i(n--),Ki);return t}},Gi=/[!'()~]|%20/g,Xi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ji=function(e){return Xi[e]},Qi=function(e){return encodeURIComponent(e).replace(Gi,Ji)},Zi=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:Yi(r.shift()),value:Yi(r.join("="))}))},eo=function(e){this.entries.length=0,Zi(this.entries,e)},to=function(e,t){if(e<t)throw TypeError("Not enough arguments")},no=nn((function(e,t){qi(this,{type:"URLSearchParamsIterator",iterator:Ui(Hi(e).entries),kind:t})}),"Iterator",(function(){var e=Vi(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),ro=function(){_i(this,ro,"URLSearchParams");var e,t,n,r,i,o,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(qi(u,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:eo}),void 0!==l)if(m(l))if("function"==typeof(e=ht(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(o=(i=Ui(A(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in l)b(l,c)&&f.push({key:c,value:l[c]+""});else Zi(f,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},io=ro.prototype;Ni(io,{append:function(e,t){to(arguments.length,2);var n=Hi(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){to(arguments.length,1);for(var t=Hi(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){to(arguments.length,1);for(var t=Hi(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){to(arguments.length,1);for(var t=Hi(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){to(arguments.length,1);for(var t=Hi(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){to(arguments.length,1);for(var n,r=Hi(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=Hi(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=Hi(this).entries,r=Ie(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new no(this,"keys")},values:function(){return new no(this,"values")},entries:function(){return new no(this,"entries")}},{enumerable:!0}),Z(io,Bi,io.entries),Z(io,"toString",(function(){for(var e,t=Hi(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(Qi(e.key)+"="+Qi(e.value));return n.join("&")}),{enumerable:!0}),Zt(ro,"URLSearchParams"),Ce({global:!0,forced:!Ei},{URLSearchParams:ro}),Ei||"function"!=typeof Fi||"function"!=typeof Di||Ce({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,"URLSearchParams"===ut(n)&&((r=t.headers?new Di(t.headers):new Di).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Ot(t,{body:l(0,String(n)),headers:l(0,r)}))),i.push(t)),Fi.apply(this,i)}});var oo,ao={URLSearchParams:ro,getState:Hi},so=Vt.codeAt,co=r.URL,lo=ao.URLSearchParams,uo=ao.getState,fo=Q.set,ho=Q.getterFor("URL"),po=Math.floor,go=Math.pow,mo=/[A-Za-z]/,vo=/[\d+\-.A-Za-z]/,yo=/\d/,bo=/^(0x|0X)/,wo=/^[0-7]+$/,ko=/^\d+$/,So=/^[\dA-Fa-f]+$/,Eo=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,_o=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,To=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Ao=/[\u0009\u000A\u000D]/g,xo=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Co(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Uo(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(Ci,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Oi.test(n)?"xn--"+Mi(n):n);return r.join(".")}(t),Eo.test(t))return"Invalid host";if(null===(n=Oo(t)))return"Invalid host";e.host=n}else{if(_o.test(t))return"Invalid host";for(n="",r=dt(t),i=0;i<r.length;i++)n+=Mo(r[i],Io);e.host=n}},Oo=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=bo.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?ko:8==o?wo:So).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=go(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*go(256,3-r);return s},Co=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&So.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!yo.test(h()))return;for(;yo.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},Po=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=po(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Io={},Ro=xi({},Io,{" ":1,'"':1,"<":1,">":1,"`":1}),jo=xi({},Ro,{"#":1,"?":1,"{":1,"}":1}),Lo=xi({},jo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Mo=function(e,t){var n=so(e,0);return n>32&&n<127&&!b(t,e)?e:encodeURIComponent(e)},No={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Uo=function(e){return b(No,e.scheme)},Fo=function(e){return""!=e.username||""!=e.password},Do=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Bo=function(e,t){var n;return 2==e.length&&mo.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},qo=function(e){var t;return e.length>1&&Bo(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Ho=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Bo(t[0],!0)||t.pop()},Vo=function(e){return"."===e||"%2e"===e.toLowerCase()},zo={},Wo={},$o={},Ko={},Yo={},Go={},Xo={},Jo={},Qo={},Zo={},ea={},ta={},na={},ra={},ia={},oa={},aa={},sa={},ca={},la={},ua={},fa=function(e,t,n,r){var i,o,a,s,c,l=n||zo,u=0,f="",h=!1,d=!1,p=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(To,"")),t=t.replace(Ao,""),i=dt(t);u<=i.length;){switch(o=i[u],l){case zo:if(!o||!mo.test(o)){if(n)return"Invalid scheme";l=$o;continue}f+=o.toLowerCase(),l=Wo;break;case Wo:if(o&&(vo.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=$o,u=0;continue}if(n&&(Uo(e)!=b(No,f)||"file"==f&&(Fo(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(Uo(e)&&No[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=ra:Uo(e)&&r&&r.scheme==e.scheme?l=Ko:Uo(e)?l=Jo:"/"==i[u+1]?(l=Yo,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=ca)}break;case $o:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=ua;break}l="file"==r.scheme?ra:Go;continue;case Ko:if("/"!=o||"/"!=i[u+1]){l=Go;continue}l=Qo,u++;break;case Yo:if("/"==o){l=Zo;break}l=sa;continue;case Go:if(e.scheme=r.scheme,o==oo)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&Uo(e))l=Xo;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=la;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=sa;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=ua}break;case Xo:if(!Uo(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=sa;continue}l=Zo}else l=Qo;break;case Jo:if(l=Qo,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case Qo:if("/"!=o&&"\\"!=o){l=Zo;continue}break;case Zo:if("@"==o){h&&(f="%40"+f),h=!0,a=dt(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=Mo(m,Lo);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(o==oo||"/"==o||"?"==o||"#"==o||"\\"==o&&Uo(e)){if(h&&""==f)return"Invalid authority";u-=dt(f).length+1,f="",l=ea}else f+=o;break;case ea:case ta:if(n&&"file"==e.scheme){l=oa;continue}if(":"!=o||d){if(o==oo||"/"==o||"?"==o||"#"==o||"\\"==o&&Uo(e)){if(Uo(e)&&""==f)return"Invalid host";if(n&&""==f&&(Fo(e)||null!==e.port))return;if(s=xo(e,f))return s;if(f="",l=aa,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=xo(e,f))return s;if(f="",l=na,n==ta)return}break;case na:if(!yo.test(o)){if(o==oo||"/"==o||"?"==o||"#"==o||"\\"==o&&Uo(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=Uo(e)&&y===No[e.scheme]?null:y,f=""}if(n)return;l=aa;continue}return"Invalid port"}f+=o;break;case ra:if(e.scheme="file","/"==o||"\\"==o)l=ia;else{if(!r||"file"!=r.scheme){l=sa;continue}if(o==oo)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",l=la;else{if("#"!=o){qo(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Ho(e)),l=sa;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=ua}}break;case ia:if("/"==o||"\\"==o){l=oa;break}r&&"file"==r.scheme&&!qo(i.slice(u).join(""))&&(Bo(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=sa;continue;case oa:if(o==oo||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Bo(f))l=sa;else if(""==f){if(e.host="",n)return;l=aa}else{if(s=xo(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=aa}continue}f+=o;break;case aa:if(Uo(e)){if(l=sa,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=oo&&(l=sa,"/"!=o))continue}else e.fragment="",l=ua;else e.query="",l=la;break;case sa:if(o==oo||"/"==o||"\\"==o&&Uo(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Ho(e),"/"==o||"\\"==o&&Uo(e)||e.path.push("")):Vo(f)?"/"==o||"\\"==o&&Uo(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Bo(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==oo||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=la):"#"==o&&(e.fragment="",l=ua)}else f+=Mo(o,jo);break;case ca:"?"==o?(e.query="",l=la):"#"==o?(e.fragment="",l=ua):o!=oo&&(e.path[0]+=Mo(o,Io));break;case la:n||"#"!=o?o!=oo&&("'"==o&&Uo(e)?e.query+="%27":e.query+="#"==o?"%23":Mo(o,Io)):(e.fragment="",l=ua);break;case ua:o!=oo&&(e.fragment+=Mo(o,Ro))}u++}},ha=function(e){var t,n,r=_i(this,ha,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=fo(r,{type:"URL"});if(void 0!==i)if(i instanceof ha)t=ho(i);else if(n=fa(t={},String(i)))throw TypeError(n);if(n=fa(s,a,null,t))throw TypeError(n);var c=s.searchParams=new lo,l=uo(c);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(c)||null},o||(r.href=pa.call(r),r.origin=ga.call(r),r.protocol=ma.call(r),r.username=va.call(r),r.password=ya.call(r),r.host=ba.call(r),r.hostname=wa.call(r),r.port=ka.call(r),r.pathname=Sa.call(r),r.search=Ea.call(r),r.searchParams=_a.call(r),r.hash=Ta.call(r))},da=ha.prototype,pa=function(){var e=ho(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Fo(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Po(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},ga=function(){var e=ho(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Uo(e)?t+"://"+Po(e.host)+(null!==n?":"+n:""):"null"},ma=function(){return ho(this).scheme+":"},va=function(){return ho(this).username},ya=function(){return ho(this).password},ba=function(){var e=ho(this),t=e.host,n=e.port;return null===t?"":null===n?Po(t):Po(t)+":"+n},wa=function(){var e=ho(this).host;return null===e?"":Po(e)},ka=function(){var e=ho(this).port;return null===e?"":String(e)},Sa=function(){var e=ho(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ea=function(){var e=ho(this).query;return e?"?"+e:""},_a=function(){return ho(this).searchParams},Ta=function(){var e=ho(this).fragment;return e?"#"+e:""},Aa=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&St(da,{href:Aa(pa,(function(e){var t=ho(this),n=String(e),r=fa(t,n);if(r)throw TypeError(r);uo(t.searchParams).updateSearchParams(t.query)})),origin:Aa(ga),protocol:Aa(ma,(function(e){var t=ho(this);fa(t,String(e)+":",zo)})),username:Aa(va,(function(e){var t=ho(this),n=dt(String(e));if(!Do(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=Mo(n[r],Lo)}})),password:Aa(ya,(function(e){var t=ho(this),n=dt(String(e));if(!Do(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=Mo(n[r],Lo)}})),host:Aa(ba,(function(e){var t=ho(this);t.cannotBeABaseURL||fa(t,String(e),ea)})),hostname:Aa(wa,(function(e){var t=ho(this);t.cannotBeABaseURL||fa(t,String(e),ta)})),port:Aa(ka,(function(e){var t=ho(this);Do(t)||(""==(e=String(e))?t.port=null:fa(t,e,na))})),pathname:Aa(Sa,(function(e){var t=ho(this);t.cannotBeABaseURL||(t.path=[],fa(t,e+"",aa))})),search:Aa(Ea,(function(e){var t=ho(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",fa(t,e,la)),uo(t.searchParams).updateSearchParams(t.query)})),searchParams:Aa(_a),hash:Aa(Ta,(function(e){var t=ho(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",fa(t,e,ua)):t.fragment=null}))}),Z(da,"toJSON",(function(){return pa.call(this)}),{enumerable:!0}),Z(da,"toString",(function(){return pa.call(this)}),{enumerable:!0}),co){var xa=co.createObjectURL,Oa=co.revokeObjectURL;xa&&Z(ha,"createObjectURL",(function(e){return xa.apply(co,arguments)})),Oa&&Z(ha,"revokeObjectURL",(function(e){return Oa.apply(co,arguments)}))}function Ca(e){return(Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ra(e,t,n){return t&&Ia(e.prototype,t),n&&Ia(e,n),e}function ja(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){ja(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||Fa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e){return function(e){if(Array.isArray(e))return Da(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Fa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fa(e,t){if(e){if("string"==typeof e)return Da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Da(e,t):void 0}}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Zt(ha,"URL"),Ce({global:!0,forced:!Ei,sham:!o},{URL:ha}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(e){return!1}})()||function(){var i=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=Ca(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach((function(e,t){r.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var i=0;i<t.length;i++){var o=t[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search),s=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(c=!1,l.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,c&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var Ba=De("isConcatSpreadable"),qa=Tr>=51||!i((function(){var e=[];return e[Ba]=!1,e.concat()[0]!==e})),Ha=xr("concat"),Va=function(e){if(!m(e))return!1;var t=e[Ba];return void 0!==t?!!t:je(e)};Ce({target:"Array",proto:!0,forced:!qa||!Ha},{concat:function(e){var t,n,r,i,o,a=Re(this),s=qe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],Va(o)){if(c+(i=se(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&ot(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ot(s,c++,o)}return s.length=c,s}});var za=function(e){for(var t=Re(this),n=se(t.length),r=arguments.length,i=ue(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:ue(o,n);a>i;)t[i++]=e;return t};Ce({target:"Array",proto:!0},{fill:za}),It("fill");var Wa=Math.min,$a=[].lastIndexOf,Ka=!!$a&&1/[1].lastIndexOf(1,-0)<0,Ya=We("lastIndexOf"),Ga=Ge("indexOf",{ACCESSORS:!0,1:0}),Xa=Ka||!Ya||!Ga?function(e){if(Ka)return $a.apply(this,arguments)||0;var t=g(this),n=se(t.length),r=n-1;for(arguments.length>1&&(r=Wa(r,oe(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:$a;Ce({target:"Array",proto:!0,forced:Xa!==[].lastIndexOf},{lastIndexOf:Xa});var Ja=O.f,Qa=Function.prototype,Za=Qa.toString,es=/^\s*function ([^ (]*)/;o&&!("name"in Qa)&&Ja(Qa,"name",{configurable:!0,get:function(){try{return Za.call(this).match(es)[1]}catch(e){return""}}});var ts,ns,rs,is=r.Promise,os=De("species"),as=function(e){var t=ne(e),n=O.f;o&&t&&!t[os]&&n(t,os,{configurable:!0,get:function(){return this}})},ss=t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f,h,d=Ie(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=ht(e)))throw TypeError("Target is not iterable");if(it(s)){for(c=0,l=se(e.length);l>c;c++)if((u=i?d(A(h=e[c])[0],h[1]):d(e[c]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(u=et(a,d,h.value,i))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}})),cs=/(iphone|ipod|ipad).*applewebkit/i.test(kr),ls=r.location,us=r.setImmediate,fs=r.clearImmediate,hs=r.process,ds=r.MessageChannel,ps=r.Dispatch,gs=0,ms={},vs=function(e){if(ms.hasOwnProperty(e)){var t=ms[e];delete ms[e],t()}},ys=function(e){return function(){vs(e)}},bs=function(e){vs(e.data)},ws=function(e){r.postMessage(e+"",ls.protocol+"//"+ls.host)};us&&fs||(us=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return ms[++gs]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ts(gs),gs},fs=function(e){delete ms[e]},"process"==f(hs)?ts=function(e){hs.nextTick(ys(e))}:ps&&ps.now?ts=function(e){ps.now(ys(e))}:ds&&!cs?(rs=(ns=new ds).port2,ns.port1.onmessage=bs,ts=Ie(rs.postMessage,rs,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||i(ws)?ts="onreadystatechange"in S("script")?function(e){Et.appendChild(S("script")).onreadystatechange=function(){Et.removeChild(this),vs(e)}}:function(e){setTimeout(ys(e),0)}:(ts=ws,r.addEventListener("message",bs,!1)));var ks,Ss,Es,_s,Ts,As,xs,Os,Cs={set:us,clear:fs},Ps=T.f,Is=Cs.set,Rs=r.MutationObserver||r.WebKitMutationObserver,js=r.process,Ls=r.Promise,Ms="process"==f(js),Ns=Ps(r,"queueMicrotask"),Us=Ns&&Ns.value;Us||(ks=function(){var e,t;for(Ms&&(e=js.domain)&&e.exit();Ss;){t=Ss.fn,Ss=Ss.next;try{t()}catch(e){throw Ss?_s():Es=void 0,e}}Es=void 0,e&&e.enter()},Ms?_s=function(){js.nextTick(ks)}:Rs&&!cs?(Ts=!0,As=document.createTextNode(""),new Rs(ks).observe(As,{characterData:!0}),_s=function(){As.data=Ts=!Ts}):Ls&&Ls.resolve?(xs=Ls.resolve(void 0),Os=xs.then,_s=function(){Os.call(xs,ks)}):_s=function(){Is.call(r,ks)});var Fs,Ds,Bs,qs,Hs=Us||function(e){var t={fn:e,next:void 0};Es&&(Es.next=t),Ss||(Ss=t,_s()),Es=t},Vs=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Pe(t),this.reject=Pe(n)},zs={f:function(e){return new Vs(e)}},Ws=function(e,t){if(A(e),m(t)&&t.constructor===e)return t;var n=zs.f(e);return(0,n.resolve)(t),n.promise},$s=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ks=Cs.set,Ys=De("species"),Gs="Promise",Xs=Q.get,Js=Q.set,Qs=Q.getterFor(Gs),Zs=is,ec=r.TypeError,tc=r.document,nc=r.process,rc=ne("fetch"),ic=zs.f,oc=ic,ac="process"==f(nc),sc=!!(tc&&tc.createEvent&&r.dispatchEvent),cc=xe(Gs,(function(){if(!(N(Zs)!==String(Zs))){if(66===Tr)return!0;if(!ac&&"function"!=typeof PromiseRejectionEvent)return!0}if(Tr>=51&&/native code/.test(Zs))return!1;var e=Zs.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[Ys]=t,!(e.then((function(){}))instanceof t)})),lc=cc||!yt((function(e){Zs.all(e).catch((function(){}))})),uc=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},fc=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Hs((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,h=u.resolve,d=u.reject,p=u.domain;try{f?(o||(2===t.rejection&&gc(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===u.promise?d(ec("Promise-chain cycle")):(c=uc(s))?c.call(s,h,d):h(s)):d(i)}catch(e){p&&!l&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&dc(e,t)}))}},hc=function(e,t,n){var i,o;sc?((i=tc.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},(o=r["on"+e])?o(i):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},dc=function(e,t){Ks.call(r,(function(){var n,r=t.value;if(pc(t)&&(n=$s((function(){ac?nc.emit("unhandledRejection",r,e):hc("unhandledrejection",e,r)})),t.rejection=ac||pc(t)?2:1,n.error))throw n.value}))},pc=function(e){return 1!==e.rejection&&!e.parent},gc=function(e,t){Ks.call(r,(function(){ac?nc.emit("rejectionHandled",e):hc("rejectionhandled",e,t.value)}))},mc=function(e,t,n,r){return function(i){e(t,n,i,r)}},vc=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,fc(e,t,!0))},yc=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw ec("Promise can't be resolved itself");var i=uc(n);i?Hs((function(){var r={done:!1};try{i.call(n,mc(yc,e,r,t),mc(vc,e,r,t))}catch(n){vc(e,r,n,t)}})):(t.value=n,t.state=1,fc(e,t,!1))}catch(n){vc(e,{done:!1},n,t)}}};cc&&(Zs=function(e){_i(this,Zs,Gs),Pe(e),Fs.call(this);var t=Xs(this);try{e(mc(yc,this,t),mc(vc,this,t))}catch(e){vc(this,t,e)}},(Fs=function(e){Js(this,{type:Gs,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ni(Zs.prototype,{then:function(e,t){var n=Qs(this),r=ic(fi(this,Zs));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=ac?nc.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&fc(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Ds=function(){var e=new Fs,t=Xs(e);this.promise=e,this.resolve=mc(yc,e,t),this.reject=mc(vc,e,t)},zs.f=ic=function(e){return e===Zs||e===Bs?new Ds(e):oc(e)},"function"==typeof is&&(qs=is.prototype.then,Z(is.prototype,"then",(function(e,t){var n=this;return new Zs((function(e,t){qs.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof rc&&Ce({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Ws(Zs,rc.apply(r,arguments))}}))),Ce({global:!0,wrap:!0,forced:cc},{Promise:Zs}),Zt(Zs,Gs,!1),as(Gs),Bs=ne(Gs),Ce({target:Gs,stat:!0,forced:cc},{reject:function(e){var t=ic(this);return t.reject.call(void 0,e),t.promise}}),Ce({target:Gs,stat:!0,forced:cc},{resolve:function(e){return Ws(this,e)}}),Ce({target:Gs,stat:!0,forced:lc},{all:function(e){var t=this,n=ic(t),r=n.resolve,i=n.reject,o=$s((function(){var n=Pe(t.resolve),o=[],a=0,s=1;ss(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=ic(t),r=n.reject,i=$s((function(){var i=Pe(t.resolve);ss(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var bc=xr("splice"),wc=Ge("splice",{ACCESSORS:!0,0:0,1:2}),kc=Math.max,Sc=Math.min;Ce({target:"Array",proto:!0,forced:!bc||!wc},{splice:function(e,t){var n,r,i,o,a,s,c=Re(this),l=se(c.length),u=ue(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=Sc(kc(oe(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=qe(c,r),o=0;o<r;o++)(a=u+o)in c&&ot(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}}),ei("match",1,(function(e,t,n){return[function(t){var n=p(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=A(e),o=String(this);if(!i.global)return ri(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=ri(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=ni(o,se(i.lastIndex),a)),l++}return 0===l?null:c}]}));var Ec=ze.filter,_c=xr("filter"),Tc=Ge("filter");Ce({target:"Array",proto:!0,forced:!_c||!Tc},{filter:function(e){return Ec(this,e,arguments.length>1?arguments[1]:void 0)}});var Ac=ze.map,xc=xr("map"),Oc=Ge("map");Ce({target:"Array",proto:!0,forced:!xc||!Oc},{map:function(e){return Ac(this,e,arguments.length>1?arguments[1]:void 0)}});var Cc=function(e){return function(t,n,r,i){Pe(n);var o=Re(t),a=d(o),s=se(o.length),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(i=n(i,a[c],c,o));return i}},Pc={left:Cc(!1),right:Cc(!0)},Ic=Pc.left,Rc=We("reduce"),jc=Ge("reduce",{1:0});Ce({target:"Array",proto:!0,forced:!Rc||!jc},{reduce:function(e){return Ic(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Lc=Object.isFrozen,Mc=i((function(){Lc(1)}));Ce({target:"Object",stat:!0,forced:Mc},{isFrozen:function(e){return!m(e)||!!Lc&&Lc(e)}});var Nc=function(e,t,n){var r,i;return rn&&"function"==typeof(r=t.constructor)&&r!==n&&m(i=r.prototype)&&i!==n.prototype&&rn(e,i),e},Uc=O.f,Fc=ve.f,Dc=Q.set,Bc=De("match"),qc=r.RegExp,Hc=qc.prototype,Vc=/a/g,zc=/a/g,Wc=new qc(Vc)!==Vc,$c=Nr.UNSUPPORTED_Y;if(o&&xe("RegExp",!Wc||$c||i((function(){return zc[Bc]=!1,qc(Vc)!=Vc||qc(zc)==zc||"/a/i"!=qc(Vc,"i")})))){for(var Kc=function(e,t){var n,r=this instanceof Kc,i=Nt(e),o=void 0===t;if(!r&&i&&e.constructor===Kc&&o)return e;Wc?i&&!o&&(e=e.source):e instanceof Kc&&(o&&(t=Lr.call(e)),e=e.source),$c&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=Nc(Wc?new qc(e,t):qc(e,t),r?this:Hc,Kc);return $c&&n&&Dc(a,{sticky:n}),a},Yc=function(e){e in Kc||Uc(Kc,e,{configurable:!0,get:function(){return qc[e]},set:function(t){qc[e]=t}})},Gc=Fc(qc),Xc=0;Gc.length>Xc;)Yc(Gc[Xc++]);Hc.constructor=Kc,Kc.prototype=Hc,Z(r,"RegExp",Kc)}as("RegExp");var Jc,Qc="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Zc=O.f,el=r.Int8Array,tl=el&&el.prototype,nl=r.Uint8ClampedArray,rl=nl&&nl.prototype,il=el&&Kt(el),ol=tl&&Kt(tl),al=Object.prototype,sl=al.isPrototypeOf,cl=De("toStringTag"),ll=H("TYPED_ARRAY_TAG"),ul=Qc&&!!rn&&"Opera"!==ut(r.opera),fl=!1,hl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},dl=function(e){return m(e)&&b(hl,ut(e))};for(Jc in hl)r[Jc]||(ul=!1);if((!ul||"function"!=typeof il||il===Function.prototype)&&(il=function(){throw TypeError("Incorrect invocation")},ul))for(Jc in hl)r[Jc]&&rn(r[Jc],il);if((!ul||!ol||ol===al)&&(ol=il.prototype,ul))for(Jc in hl)r[Jc]&&rn(r[Jc].prototype,ol);if(ul&&Kt(rl)!==ol&&rn(rl,ol),o&&!b(ol,cl))for(Jc in fl=!0,Zc(ol,cl,{get:function(){return m(this)?this[ll]:void 0}}),hl)r[Jc]&&C(r[Jc],ll,Jc);var pl={NATIVE_ARRAY_BUFFER_VIEWS:ul,TYPED_ARRAY_TAG:fl&&ll,aTypedArray:function(e){if(dl(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(rn){if(sl.call(il,e))return e}else for(var t in hl)if(b(hl,Jc)){var n=r[t];if(n&&(e===n||sl.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var i in hl){var a=r[i];a&&b(a.prototype,e)&&delete a.prototype[e]}ol[e]&&!n||Z(ol,e,n?t:ul&&tl[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,a;if(o){if(rn){if(n)for(i in hl)(a=r[i])&&b(a,e)&&delete a[e];if(il[e]&&!n)return;try{return Z(il,e,n?t:ul&&el[e]||t)}catch(e){}}for(i in hl)!(a=r[i])||a[e]&&!n||Z(a,e,t)}},isView:function(e){var t=ut(e);return"DataView"===t||b(hl,t)},isTypedArray:dl,TypedArray:il,TypedArrayPrototype:ol},gl=pl.NATIVE_ARRAY_BUFFER_VIEWS,ml=r.ArrayBuffer,vl=r.Int8Array,yl=!gl||!i((function(){vl(1)}))||!i((function(){new vl(-1)}))||!yt((function(e){new vl,new vl(null),new vl(1.5),new vl(e)}),!0)||i((function(){return 1!==new vl(new ml(2),1,void 0).length})),bl=function(e){if(void 0===e)return 0;var t=oe(e),n=se(t);if(t!==n)throw RangeError("Wrong length or index");return n},wl=Math.abs,kl=Math.pow,Sl=Math.floor,El=Math.log,_l=Math.LN2,Tl=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?kl(2,-24)-kl(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=wl(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=Sl(El(e)/_l),e*(o=kl(2,-r))<1&&(r--,o*=2),(e+=r+l>=1?u/o:u*kl(2,1-l))*o>=2&&(r++,o/=2),r+l>=c?(i=0,r=c):r+l>=1?(i=(e*o-1)*kl(2,t),r+=l):(i=e*kl(2,l-1)*kl(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a},Al=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===u)u=1-a;else{if(u===o)return n?NaN:l?-1/0:1/0;n+=kl(2,t),u-=a}return(l?-1:1)*n*kl(2,u-t)},xl=ve.f,Ol=O.f,Cl=Q.get,Pl=Q.set,Il=r.ArrayBuffer,Rl=Il,jl=r.DataView,Ll=jl&&jl.prototype,Ml=Object.prototype,Nl=r.RangeError,Ul=Tl,Fl=Al,Dl=function(e){return[255&e]},Bl=function(e){return[255&e,e>>8&255]},ql=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Hl=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Vl=function(e){return Ul(e,23,4)},zl=function(e){return Ul(e,52,8)},Wl=function(e,t){Ol(e.prototype,t,{get:function(){return Cl(this)[t]}})},$l=function(e,t,n,r){var i=bl(n),o=Cl(e);if(i+t>o.byteLength)throw Nl("Wrong index");var a=Cl(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},Kl=function(e,t,n,r,i,o){var a=bl(n),s=Cl(e);if(a+t>s.byteLength)throw Nl("Wrong index");for(var c=Cl(s.buffer).bytes,l=a+s.byteOffset,u=r(+i),f=0;f<t;f++)c[l+f]=u[o?f:t-f-1]};if(Qc){if(!i((function(){Il(1)}))||!i((function(){new Il(-1)}))||i((function(){return new Il,new Il(1.5),new Il(NaN),"ArrayBuffer"!=Il.name}))){for(var Yl,Gl=(Rl=function(e){return _i(this,Rl),new Il(bl(e))}).prototype=Il.prototype,Xl=xl(Il),Jl=0;Xl.length>Jl;)(Yl=Xl[Jl++])in Rl||C(Rl,Yl,Il[Yl]);Gl.constructor=Rl}rn&&Kt(Ll)!==Ml&&rn(Ll,Ml);var Ql=new jl(new Rl(2)),Zl=Ll.setInt8;Ql.setInt8(0,2147483648),Ql.setInt8(1,2147483649),!Ql.getInt8(0)&&Ql.getInt8(1)||Ni(Ll,{setInt8:function(e,t){Zl.call(this,e,t<<24>>24)},setUint8:function(e,t){Zl.call(this,e,t<<24>>24)}},{unsafe:!0})}else Rl=function(e){_i(this,Rl,"ArrayBuffer");var t=bl(e);Pl(this,{bytes:za.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},jl=function(e,t,n){_i(this,jl,"DataView"),_i(e,Rl,"DataView");var r=Cl(e).byteLength,i=oe(t);if(i<0||i>r)throw Nl("Wrong offset");if(i+(n=void 0===n?r-i:se(n))>r)throw Nl("Wrong length");Pl(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(Wl(Rl,"byteLength"),Wl(jl,"buffer"),Wl(jl,"byteLength"),Wl(jl,"byteOffset")),Ni(jl.prototype,{getInt8:function(e){return $l(this,1,e)[0]<<24>>24},getUint8:function(e){return $l(this,1,e)[0]},getInt16:function(e){var t=$l(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$l(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Hl($l(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Hl($l(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Fl($l(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Fl($l(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Kl(this,1,e,Dl,t)},setUint8:function(e,t){Kl(this,1,e,Dl,t)},setInt16:function(e,t){Kl(this,2,e,Bl,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Kl(this,2,e,Bl,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Kl(this,4,e,ql,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Kl(this,4,e,ql,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Kl(this,4,e,Vl,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Kl(this,8,e,zl,t,arguments.length>2?arguments[2]:void 0)}});Zt(Rl,"ArrayBuffer"),Zt(jl,"DataView");var eu={ArrayBuffer:Rl,DataView:jl},tu=function(e,t){var n=function(e){var t=oe(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(n%t)throw RangeError("Wrong offset");return n},nu=pl.aTypedArrayConstructor,ru=function(e){var t,n,r,i,o,a,s=Re(e),c=arguments.length,l=c>1?arguments[1]:void 0,u=void 0!==l,f=ht(s);if(null!=f&&!it(f))for(a=(o=f.call(s)).next,s=[];!(i=a.call(o)).done;)s.push(i.value);for(u&&c>2&&(l=Ie(l,arguments[2],2)),n=se(s.length),r=new(nu(this))(n),t=0;n>t;t++)r[t]=u?l(s[t],t):s[t];return r};t((function(e){var t=ve.f,n=ze.forEach,i=Q.get,a=Q.set,s=O.f,c=T.f,u=Math.round,f=r.RangeError,h=eu.ArrayBuffer,d=eu.DataView,p=pl.NATIVE_ARRAY_BUFFER_VIEWS,g=pl.TYPED_ARRAY_TAG,y=pl.TypedArray,w=pl.TypedArrayPrototype,k=pl.aTypedArrayConstructor,S=pl.isTypedArray,E=function(e,t){for(var n=0,r=t.length,i=new(k(e))(r);r>n;)i[n]=t[n++];return i},_=function(e,t){s(e,t,{get:function(){return i(this)[t]}})},A=function(e){var t;return e instanceof h||"ArrayBuffer"==(t=ut(e))||"SharedArrayBuffer"==t},x=function(e,t){return S(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},P=function(e,t){return x(e,t=v(t,!0))?l(2,e[t]):c(e,t)},I=function(e,t,n){return!(x(e,t=v(t,!0))&&m(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?s(e,t,n):(e[t]=n.value,e)};o?(p||(T.f=P,O.f=I,_(w,"buffer"),_(w,"byteOffset"),_(w,"byteLength"),_(w,"length")),Ce({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:P,defineProperty:I}),e.exports=function(e,o,c){var l=e.match(/\d+$/)[0]/8,v=e+(c?"Clamped":"")+"Array",b="get"+e,k="set"+e,_=r[v],T=_,x=T&&T.prototype,O={},P=function(e,t){s(e,t,{get:function(){return function(e,t){var n=i(e);return n.view[b](t*l+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=i(e);c&&(n=(n=u(n))<0?0:n>255?255:255&n),r.view[k](t*l+r.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};p?yl&&(T=o((function(e,t,n,r){return _i(e,T,v),Nc(m(t)?A(t)?void 0!==r?new _(t,tu(n,l),r):void 0!==n?new _(t,tu(n,l)):new _(t):S(t)?E(T,t):ru.call(T,t):new _(bl(t)),e,T)})),rn&&rn(T,y),n(t(_),(function(e){e in T||C(T,e,_[e])})),T.prototype=x):(T=o((function(e,t,n,r){_i(e,T,v);var i,o,s,c=0,u=0;if(m(t)){if(!A(t))return S(t)?E(T,t):ru.call(T,t);i=t,u=tu(n,l);var p=t.byteLength;if(void 0===r){if(p%l)throw f("Wrong length");if((o=p-u)<0)throw f("Wrong length")}else if((o=se(r)*l)+u>p)throw f("Wrong length");s=o/l}else s=bl(t),i=new h(o=s*l);for(a(e,{buffer:i,byteOffset:u,byteLength:o,length:s,view:new d(i)});c<s;)P(e,c++)})),rn&&rn(T,y),x=T.prototype=Ot(w)),x.constructor!==T&&C(x,"constructor",T),g&&C(x,g,v),O[v]=T,Ce({global:!0,forced:T!=_,sham:!p},O),"BYTES_PER_ELEMENT"in T||C(T,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in x||C(x,"BYTES_PER_ELEMENT",l),as(v)}):e.exports=function(){}}))("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var iu=Math.min,ou=[].copyWithin||function(e,t){var n=Re(this),r=se(n.length),i=ue(e,r),o=ue(t,r),a=arguments.length>2?arguments[2]:void 0,s=iu((void 0===a?r:ue(a,r))-o,r-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},au=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("copyWithin",(function(e,t){return ou.call(au(this),e,t,arguments.length>2?arguments[2]:void 0)}));var su=ze.every,cu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("every",(function(e){return su(cu(this),e,arguments.length>1?arguments[1]:void 0)}));var lu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("fill",(function(e){return za.apply(lu(this),arguments)}));var uu=ze.filter,fu=pl.aTypedArray,hu=pl.aTypedArrayConstructor;(0,pl.exportTypedArrayMethod)("filter",(function(e){for(var t=uu(fu(this),e,arguments.length>1?arguments[1]:void 0),n=fi(this,this.constructor),r=0,i=t.length,o=new(hu(n))(i);i>r;)o[r]=t[r++];return o}));var du=ze.find,pu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("find",(function(e){return du(pu(this),e,arguments.length>1?arguments[1]:void 0)}));var gu=ze.findIndex,mu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("findIndex",(function(e){return gu(mu(this),e,arguments.length>1?arguments[1]:void 0)}));var vu=ze.forEach,yu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("forEach",(function(e){vu(yu(this),e,arguments.length>1?arguments[1]:void 0)}));var bu=he.includes,wu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("includes",(function(e){return bu(wu(this),e,arguments.length>1?arguments[1]:void 0)}));var ku=he.indexOf,Su=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("indexOf",(function(e){return ku(Su(this),e,arguments.length>1?arguments[1]:void 0)}));var Eu=De("iterator"),_u=r.Uint8Array,Tu=gr.values,Au=gr.keys,xu=gr.entries,Ou=pl.aTypedArray,Cu=pl.exportTypedArrayMethod,Pu=_u&&_u.prototype[Eu],Iu=!!Pu&&("values"==Pu.name||null==Pu.name),Ru=function(){return Tu.call(Ou(this))};Cu("entries",(function(){return xu.call(Ou(this))})),Cu("keys",(function(){return Au.call(Ou(this))})),Cu("values",Ru,!Iu),Cu(Eu,Ru,!Iu);var ju=pl.aTypedArray,Lu=[].join;(0,pl.exportTypedArrayMethod)("join",(function(e){return Lu.apply(ju(this),arguments)}));var Mu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("lastIndexOf",(function(e){return Xa.apply(Mu(this),arguments)}));var Nu=ze.map,Uu=pl.aTypedArray,Fu=pl.aTypedArrayConstructor;(0,pl.exportTypedArrayMethod)("map",(function(e){return Nu(Uu(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(Fu(fi(e,e.constructor)))(t)}))}));var Du=Pc.left,Bu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("reduce",(function(e){return Du(Bu(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var qu=Pc.right,Hu=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("reduceRight",(function(e){return qu(Hu(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Vu=pl.aTypedArray,zu=pl.exportTypedArrayMethod,Wu=Math.floor;zu("reverse",(function(){for(var e,t=Vu(this).length,n=Wu(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var $u=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("set",(function(e){$u(this);var t=tu(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=Re(e),i=se(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]}),i((function(){new Int8Array(1).set({})})));var Ku=pl.aTypedArray,Yu=pl.aTypedArrayConstructor,Gu=[].slice;(0,pl.exportTypedArrayMethod)("slice",(function(e,t){for(var n=Gu.call(Ku(this),e,t),r=fi(this,this.constructor),i=0,o=n.length,a=new(Yu(r))(o);o>i;)a[i]=n[i++];return a}),i((function(){new Int8Array(1).slice()})));var Xu=ze.some,Ju=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("some",(function(e){return Xu(Ju(this),e,arguments.length>1?arguments[1]:void 0)}));var Qu=pl.aTypedArray,Zu=[].sort;(0,pl.exportTypedArrayMethod)("sort",(function(e){return Zu.call(Qu(this),e)}));var ef=pl.aTypedArray;(0,pl.exportTypedArrayMethod)("subarray",(function(e,t){var n=ef(this),r=n.length,i=ue(e,r);return new(fi(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,se((void 0===t?r:ue(t,r))-i))}));var tf=r.Int8Array,nf=pl.aTypedArray,rf=pl.exportTypedArrayMethod,of=[].toLocaleString,af=[].slice,sf=!!tf&&i((function(){of.call(new tf(1))}));rf("toLocaleString",(function(){return of.apply(sf?af.call(nf(this)):nf(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new tf([1,2]).toLocaleString()}))||!i((function(){tf.prototype.toLocaleString.call([1,2])})));var cf=pl.exportTypedArrayMethod,lf=r.Uint8Array,uf=lf&&lf.prototype||{},ff=[].toString,hf=[].join;i((function(){ff.call({})}))&&(ff=function(){return hf.call(this)});var df=uf.toString!=ff;cf("toString",ff,df);var pf=t((function(e,t){function n(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}function r(e,t){var r=[],i=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n(r,t)).join(".")+"]"}),function(o,a){if(r.length>0){var s=n(r,this);~s?r.splice(s+1):r.push(this),~s?i.splice(s,1/0,o):i.push(o),~n(r,a)&&(a=t.call(this,o,a))}else r.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r})),gf=(pf.getSerialize,"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{});function mf(e){return void 0===e}function vf(e){return"[object Object]"===Object.prototype.toString.call(e)}function yf(e){return"[object String]"===Object.prototype.toString.call(e)}function bf(e){return"[object Array]"===Object.prototype.toString.call(e)}function wf(){if(!("fetch"in gf))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function kf(e,t){var n,r;if(mf(e.length))for(n in e)Ef(e,n)&&t.call(null,n,e[n]);else if(r=e.length)for(n=0;n<r;n++)t.call(null,n,e[n])}function Sf(e,t){if("number"!=typeof t)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"…"}function Ef(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _f(e){for(var t,n=[],r=0,i=e.length;r<i;r++)yf(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function Tf(e){var t,n,r,i,o,a=[];if(!e||!e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),(t=e.className)&&yf(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)r=s[o],(i=e.getAttribute(r))&&a.push("["+r+'="'+i+'"]');return a.join("")}function Af(e,t){return!!(!!e^!!t)}function xf(e,t){if(Af(e,t))return!1;var n,r,i=e.frames,o=t.frames;if(void 0===i||void 0===o)return!1;if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(n=i[a],r=o[a],n.filename!==r.filename||n.lineno!==r.lineno||n.colno!==r.colno||n.function!==r.function)return!1;return!0}function Of(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Cf(e){if("string"==typeof e){return Sf(e,40)}if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;var t=Object.prototype.toString.call(e);return"[object Object]"===t?"[Object]":"[object Array]"===t?"[Array]":"[object Function]"===t?e.name?"[Function: "+e.name+"]":"[Function]":e}var Pf={isObject:function(e){return"object"===Ca(e)&&null!==e},isError:function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},isDOMError:function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},isDOMException:function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},isUndefined:mf,isFunction:function(e){return"function"==typeof e},isPlainObject:vf,isString:yf,isArray:bf,isEmptyObject:function(e){if(!vf(e))return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(e){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(e){return!1}},supportsFetch:wf,supportsReferrerPolicy:function(){if(!wf())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(e){return function(t,n){var r=e(t)||t;return n&&n(r)||r}},each:kf,objectMerge:function(e,t){return t?(kf(t,(function(t,n){e[t]=n})),e):e},truncate:Sf,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:Ef,joinRegExp:_f,urlencode:function(e){var t=[];return kf(e,(function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})),t.join("&")},uuid4:function(){var e=gf.crypto||gf.msCrypto;if(!mf(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},htmlTreeAsString:function(e){for(var t,n=[],r=0,i=0,o=" > ".length;e&&r++<5&&!("html"===(t=Tf(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:Tf,isSameException:function(e,t){return!Af(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!mf(n)||!mf(r))&&xf(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:xf,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var i=e[t];e[t]=n(i),e[t].__raven__=!0,e[t].__orig__=i,r&&r.push([e,t,i])}},safeJoin:function(e,t){if(!bf(e))return"";for(var n=[],r=0;r<e.length;r++)try{n.push(String(e[r]))}catch(e){n.push("[value cannot be serialized]")}return n.join(t)},serializeException:function e(t,n,r){if(!vf(t))return t;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var i=function e(t,n){return 0===n?Cf(t):vf(t)?Object.keys(t).reduce((function(r,i){return r[i]=e(t[i],n-1),r}),{}):Array.isArray(t)?t.map((function(t){return e(t,n-1)})):Cf(t)}(t,n);return Of(pf(i))>r?e(t,n-1):i},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter((function(e){return"string"==typeof e}))).length)return"[object has no keys]";if(t="number"!=typeof t?40:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},sanitize:function(e,t){if(!bf(t)||bf(t)&&0===t.length)return e;var n,r=_f(t);try{n=JSON.parse(pf(e))}catch(t){return e}return function e(t){return bf(t)?t.map((function(t){return e(t)})):vf(t)?Object.keys(t).reduce((function(n,i){return r.test(i)?n[i]="********":n[i]=e(t[i]),n}),{}):t}(n)}},If={collectWindowErrors:!0,debug:!1},Rf="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},jf=[].slice,Lf=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function Mf(){return"undefined"==typeof document||null==document.location?"":document.location.href}If.report=function(){var e,t,n=[],r=null,i=null,o=null;function a(e,t){var r=null;if(!t||If.collectWindowErrors){for(var i in n)if(n.hasOwnProperty(i))try{n[i].apply(null,[e].concat(jf.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function s(t,n,r,i,s){var l=Pf.isErrorEvent(s)?s.error:s,u=Pf.isErrorEvent(t)?t.message:t;if(o)If.computeStackTrace.augmentStackTraceWithInitialElement(o,n,r,u),c();else if(l&&Pf.isError(l))a(If.computeStackTrace(l),!0);else{var f,h={url:n,line:r,column:i},d=void 0;if("[object String]"==={}.toString.call(u))(f=u.match(Lf))&&(d=f[1],u=f[2]);h.func="?",a({name:d,message:u,url:Mf(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function c(){var e=o,t=r;r=null,o=null,i=null,a.apply(null,[e,!1].concat(t))}function l(e,t){var n=jf.call(arguments,1);if(o){if(i===e)return;c()}var a=If.computeStackTrace(e);if(o=a,i=e,r=n,setTimeout((function(){i===e&&c()}),a.incomplete?2e3:0),!1!==t)throw e}return l.subscribe=function(r){!function(){if(t)return;e=Rf.onerror,Rf.onerror=s,t=!0}(),n.push(r)},l.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},l.uninstall=function(){!function(){if(!t)return;Rf.onerror=e,t=!1,e=void 0}(),n=[]},l}(),If.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=e.stack.split("\n"),u=[],f=(/^(.*) is undefined$/.exec(e.message),0),h=l.length;f<h;++f){if(n=i.exec(l[f])){var d=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=c.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:d?null:n[2],func:n[1]||"?",args:d?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(l[f]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(l[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=s.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==f||n[5]||void 0===e.columnNumber||(u[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!r.func&&r.line&&(r.func="?"),r.url&&"blob:"===r.url.substr(0,5)){var p=new XMLHttpRequest;if(p.open("GET",r.url,!1),p.send(null),200===p.status){var g=p.responseText||"",m=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(m){var v=m[1];"~"===v.charAt(0)&&(v=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+v.slice(1)),r.url=v.slice(0,-4)}}}u.push(r)}return u.length?{name:e.name,message:e.message,url:Mf(),stack:u}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func="?"),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,i){for(var o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},u=!1,f=n.caller;f&&!u;f=f.caller)if(f!==r&&f!==If.report){if(a={url:null,func:"?",line:null,column:null},f.name?a.func=f.name:(o=s.exec(f.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}l[""+f]?u=!0:l[""+f]=!0,c.push(a)}i&&c.splice(0,i);var h={name:e.name,message:e.message,url:Mf(),stack:c};return t(h,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),h}function r(t,r){var i=null;r=null==r?0:+r;try{if(i=e(t))return i}catch(e){if(If.debug)throw e}try{if(i=n(t,r+1))return i}catch(e){if(If.debug)throw e}return{name:t.name,message:t.message,url:Mf()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}();var Nf=If;function Uf(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ff(e,t,n,r,i,o){return Uf((a=Uf(Uf(t,e),Uf(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function Df(e,t,n,r,i,o,a){return Ff(t&n|~t&r,e,t,i,o,a)}function Bf(e,t,n,r,i,o,a){return Ff(t&r|n&~r,e,t,i,o,a)}function qf(e,t,n,r,i,o,a){return Ff(t^n^r,e,t,i,o,a)}function Hf(e,t,n,r,i,o,a){return Ff(n^(t|~r),e,t,i,o,a)}function Vf(e,t){var n,r,i,o,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(n=0;n<e.length;n+=16)r=s,i=c,o=l,a=u,s=Df(s,c,l,u,e[n],7,-680876936),u=Df(u,s,c,l,e[n+1],12,-389564586),l=Df(l,u,s,c,e[n+2],17,606105819),c=Df(c,l,u,s,e[n+3],22,-1044525330),s=Df(s,c,l,u,e[n+4],7,-176418897),u=Df(u,s,c,l,e[n+5],12,1200080426),l=Df(l,u,s,c,e[n+6],17,-1473231341),c=Df(c,l,u,s,e[n+7],22,-45705983),s=Df(s,c,l,u,e[n+8],7,1770035416),u=Df(u,s,c,l,e[n+9],12,-1958414417),l=Df(l,u,s,c,e[n+10],17,-42063),c=Df(c,l,u,s,e[n+11],22,-1990404162),s=Df(s,c,l,u,e[n+12],7,1804603682),u=Df(u,s,c,l,e[n+13],12,-40341101),l=Df(l,u,s,c,e[n+14],17,-1502002290),s=Bf(s,c=Df(c,l,u,s,e[n+15],22,1236535329),l,u,e[n+1],5,-165796510),u=Bf(u,s,c,l,e[n+6],9,-1069501632),l=Bf(l,u,s,c,e[n+11],14,643717713),c=Bf(c,l,u,s,e[n],20,-373897302),s=Bf(s,c,l,u,e[n+5],5,-701558691),u=Bf(u,s,c,l,e[n+10],9,38016083),l=Bf(l,u,s,c,e[n+15],14,-660478335),c=Bf(c,l,u,s,e[n+4],20,-405537848),s=Bf(s,c,l,u,e[n+9],5,568446438),u=Bf(u,s,c,l,e[n+14],9,-1019803690),l=Bf(l,u,s,c,e[n+3],14,-187363961),c=Bf(c,l,u,s,e[n+8],20,1163531501),s=Bf(s,c,l,u,e[n+13],5,-1444681467),u=Bf(u,s,c,l,e[n+2],9,-51403784),l=Bf(l,u,s,c,e[n+7],14,1735328473),s=qf(s,c=Bf(c,l,u,s,e[n+12],20,-1926607734),l,u,e[n+5],4,-378558),u=qf(u,s,c,l,e[n+8],11,-2022574463),l=qf(l,u,s,c,e[n+11],16,1839030562),c=qf(c,l,u,s,e[n+14],23,-35309556),s=qf(s,c,l,u,e[n+1],4,-1530992060),u=qf(u,s,c,l,e[n+4],11,1272893353),l=qf(l,u,s,c,e[n+7],16,-155497632),c=qf(c,l,u,s,e[n+10],23,-1094730640),s=qf(s,c,l,u,e[n+13],4,681279174),u=qf(u,s,c,l,e[n],11,-358537222),l=qf(l,u,s,c,e[n+3],16,-722521979),c=qf(c,l,u,s,e[n+6],23,76029189),s=qf(s,c,l,u,e[n+9],4,-640364487),u=qf(u,s,c,l,e[n+12],11,-421815835),l=qf(l,u,s,c,e[n+15],16,530742520),s=Hf(s,c=qf(c,l,u,s,e[n+2],23,-995338651),l,u,e[n],6,-198630844),u=Hf(u,s,c,l,e[n+7],10,1126891415),l=Hf(l,u,s,c,e[n+14],15,-1416354905),c=Hf(c,l,u,s,e[n+5],21,-57434055),s=Hf(s,c,l,u,e[n+12],6,1700485571),u=Hf(u,s,c,l,e[n+3],10,-1894986606),l=Hf(l,u,s,c,e[n+10],15,-1051523),c=Hf(c,l,u,s,e[n+1],21,-2054922799),s=Hf(s,c,l,u,e[n+8],6,1873313359),u=Hf(u,s,c,l,e[n+15],10,-30611744),l=Hf(l,u,s,c,e[n+6],15,-1560198380),c=Hf(c,l,u,s,e[n+13],21,1309151649),s=Hf(s,c,l,u,e[n+4],6,-145523070),u=Hf(u,s,c,l,e[n+11],10,-1120210379),l=Hf(l,u,s,c,e[n+2],15,718787259),c=Hf(c,l,u,s,e[n+9],21,-343485551),s=Uf(s,r),c=Uf(c,i),l=Uf(l,o),u=Uf(u,a);return[s,c,l,u]}function zf(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function Wf(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function $f(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function Kf(e){return unescape(encodeURIComponent(e))}function Yf(e){return function(e){return zf(Vf(Wf(e),8*e.length))}(Kf(e))}function Gf(e,t){return function(e,t){var n,r,i=Wf(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=Vf(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=Vf(o.concat(Wf(t)),512+8*t.length),zf(Vf(a.concat(r),640))}(Kf(e),Kf(t))}var Xf=function(e,t,n){return t?n?Gf(t,e):$f(Gf(t,e)):n?Yf(e):$f(Yf(e))};function Jf(e){this.name="RavenConfigError",this.message=e}Jf.prototype=new Error,Jf.prototype.constructor=Jf;var Qf=Jf,Zf=function(e,t,n){var r=e[t],i=e;if(t in e){var o="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),a=Pf.safeJoin(e," "),s={level:o,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(a="Assertion failed: "+(Pf.safeJoin(e.slice(1)," ")||"console.assert"),s.extra.arguments=e.slice(1),n&&n(a,s)):n&&n(a,s),r&&Function.prototype.apply.call(r,i,e)}}},eh=Pf.isErrorEvent,th=Pf.isDOMError,nh=Pf.isDOMException,rh=Pf.isError,ih=Pf.isObject,oh=Pf.isPlainObject,ah=Pf.isUndefined,sh=Pf.isFunction,ch=Pf.isString,lh=Pf.isArray,uh=Pf.isEmptyObject,fh=Pf.each,hh=Pf.objectMerge,dh=Pf.truncate,ph=Pf.objectFrozen,gh=Pf.hasKey,mh=Pf.joinRegExp,vh=Pf.urlencode,yh=Pf.uuid4,bh=Pf.htmlTreeAsString,wh=Pf.isSameException,kh=Pf.isSameStacktrace,Sh=Pf.parseUrl,Eh=Pf.fill,_h=Pf.supportsFetch,Th=Pf.supportsReferrerPolicy,Ah=Pf.serializeKeysForMessage,xh=Pf.serializeException,Oh=Pf.sanitize,Ch=Zf,Ph="source protocol user pass host port path".split(" "),Ih=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function Rh(){return+new Date}var jh="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Lh=jh.document,Mh=jh.navigator;function Nh(e,t){return sh(t)?function(n){return t(n,e)}:t}function Uh(){for(var e in this._hasJSON=!("object"!==("undefined"==typeof JSON?"undefined":Ca(JSON))||!JSON.stringify),this._hasDocument=!ah(Lh),this._hasNavigator=!ah(Mh),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:jh.SENTRY_RELEASE&&jh.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:Th()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=jh.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=Rh(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=jh.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}Uh.prototype={VERSION:"3.27.2",debug:!1,TraceKit:Nf,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var r=n._globalOptions;t&&fh(t,(function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:r[e]=t})),n.setDSN(e),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=mh(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&mh(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&mh(r.whitelistUrls),r.includePaths=mh(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=hh(i,o):!1!==o&&(o=i),r.autoBreadcrumbs=o;var a={tryCatch:!0},s=r.instrument;return"[object Object]"==={}.toString.call(s)?s=hh(a,s):!1!==s&&(s=a),r.instrument=s,Nf.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(Nf.report.subscribe((function(){e._handleOnErrorStackInfo.apply(e,arguments)})),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),n=t.path.lastIndexOf("/"),r=t.path.substr(1,n);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(n+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+r+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,n){return sh(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(ah(t)&&!sh(e))return e;if(sh(e)&&(t=e,e=void 0),!sh(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(n&&sh(n)&&n.apply(this,arguments);o--;)i[o]=a?r.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw r._ignoreNextOnError(),r.captureException(t,e),t}}for(var o in t)gh(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return Nf.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),jh.addEventListener&&jh.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return jh.removeEventListener&&jh.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=hh({trimHeadFrames:0},t||{}),eh(e)&&e.error)e=e.error;else{if(th(e)||nh(e)){var n=e.name||(th(e)?"DOMError":"DOMException"),r=e.message?n+": "+e.message:n;return this.captureMessage(r,hh(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(rh(e))e=e;else{if(!oh(e))return this.captureMessage(e,hh(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var i=Nf.computeStackTrace(e);this._handleStackInfo(i,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var n=Object.keys(t).sort(),r=hh(e,{message:"Non-Error exception captured with keys: "+Ah(n),fingerprint:[Xf(n)],extra:e.extra||{}});return r.extra.__serialized__=xh(t),r},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,r=hh({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var i=Nf.computeStackTrace(n),o=lh(i.stack)&&i.stack[1];o&&"Raven.captureException"===o.func&&(o=i.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||t.stacktrace||""===r.message){r.fingerprint=null==r.fingerprint?e:r.fingerprint,(t=hh({trimHeadFrames:0},t)).trimHeadFrames+=1;var s=this._prepareFrames(i,t);r.stacktrace={frames:s.reverse()}}return r.fingerprint&&(r.fingerprint=lh(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(e){var t=hh({timestamp:Rh()/1e3},e);if(sh(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(ih(n)&&!uh(n))t=n;else if(!1===n)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(pf(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=Nh(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=Nh(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=Nh(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=jh.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(Lh){if(!(e=hh({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},e)).eventId)throw new Qf("Missing eventId");if(!e.dsn)throw new Qf("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var i=e.user;i.name&&n.push("name="+t(i.name)),i.email&&n.push("email="+t(i.email))}else n.push(t(r)+"="+t(e[r]));var o=this._getGlobalServer(this._parseDSN(e.dsn)),a=Lh.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),(Lh.head||Lh.body).appendChild(a)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),Lh.createEvent?(n=Lh.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=Lh.createEventObject()).eventType=e,t)gh(t,r)&&(n[r]=t[r]);if(Lh.createEvent)Lh.dispatchEvent(n);else try{Lh.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){var r;t._lastCapturedEvent=n;try{r=bh(n.target)}catch(e){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(e,t){var n=Sh(this._location.href),r=Sh(t),i=Sh(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return sh(a)&&(i[0]=e.wrap({mechanism:{type:"instrument",data:{function:t.name||"<anonymous>"}}},a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var r=this._globalOptions.autoBreadcrumbs;function i(n){var i=jh[n]&&jh[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(Eh(i,"addEventListener",(function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:o&&o.name||"<anonymous>"}}},o.handleEvent))}catch(e){}var c,l,u;return r&&r.dom&&("EventTarget"===n||"Node"===n)&&(l=e._breadcrumbEventHandler("click"),u=e._keypressEventHandler(),c=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?l(e):"keypress"===t?u(e):void 0}}),t.call(this,i,e.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:o&&o.name||"<anonymous>"}}},o,c),a,s)}}),t),Eh(i,"removeEventListener",(function(e){return function(t,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return e.call(this,t,n,r,i)}}),t))}Eh(jh,"setTimeout",n,t),Eh(jh,"setInterval",n,t),jh.requestAnimationFrame&&Eh(jh,"requestAnimationFrame",(function(t){return function(n){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||"<anonymous>"}}},n))}}),t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)i(o[a])},_instrumentBreadcrumbs:function(){var e=this,t=this._globalOptions.autoBreadcrumbs,n=e._wrappedBuiltIns;function r(t,n){t in n&&sh(n[t])&&Eh(n,t,(function(n){return e.wrap({mechanism:{type:"instrument",data:{function:t,handler:n&&n.name||"<anonymous>"}}},n)}))}if(t.xhr&&"XMLHttpRequest"in jh){var i=jh.XMLHttpRequest&&jh.XMLHttpRequest.prototype;Eh(i,"open",(function(t){return function(n,r){return ch(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}}),n),Eh(i,"send",(function(t){return function(){var n=this;function i(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a<o.length;a++)r(o[a],n);return"onreadystatechange"in n&&sh(n.onreadystatechange)?Eh(n,"onreadystatechange",(function(t){return e.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"}}},t,i)})):n.onreadystatechange=i,t.apply(this,arguments)}}),n)}t.xhr&&_h()&&Eh(jh,"fetch",(function(t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,o=n[0],a="GET";if("string"==typeof o?i=o:"Request"in jh&&o instanceof jh.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,-1!==i.indexOf(e._globalKey))return t.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:i,status_code:null};return t.apply(this,n).then((function(t){return s.status_code=t.status,e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t})).catch((function(t){throw e.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),t}))}}),n),t.dom&&this._hasDocument&&(Lh.addEventListener?(Lh.addEventListener("click",e._breadcrumbEventHandler("click"),!1),Lh.addEventListener("keypress",e._keypressEventHandler(),!1)):Lh.attachEvent&&(Lh.attachEvent("onclick",e._breadcrumbEventHandler("click")),Lh.attachEvent("onkeypress",e._keypressEventHandler())));var o=jh.chrome,a=!(o&&o.app&&o.app.runtime)&&jh.history&&jh.history.pushState&&jh.history.replaceState;if(t.location&&a){var s=jh.onpopstate;jh.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),s)return s.apply(this,arguments)};var c=function(t){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};Eh(jh.history,"pushState",c,n),Eh(jh.history,"replaceState",c,n)}if(t.console&&"console"in jh&&console.log){var l=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};fh(["debug","info","warn","error","log"],(function(e,t){Ch(console,t,l)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;fh(this._plugins,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=Ih.exec(e),n={},r=7;try{for(;r--;)n[Ph[r]]=t[r]||""}catch(t){throw new Qf("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new Qf("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(fh(e.stack,(function(t,i){var o=n._normalizeFrame(i,e.url);o&&r.push(o)})),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e,t){var n={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(n.filename=t),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(e,t,n,r,i,o){var a,s=(e?e+": ":"")+(t||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(s))&&(i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var c=hh({exception:{values:[{type:e,value:t,stacktrace:a}]},transaction:n},o),l=c.exception.values[0];null==l.type&&""===l.value&&(l.value="Unrecoverable error caught"),!c.exception.mechanism&&c.mechanism&&(c.exception.mechanism=c.mechanism,delete c.mechanism),c.exception.mechanism=hh({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=dh(e.message,t)),e.exception){var n=e.exception.values[0];n.value=dh(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=dh(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=dh(r.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var t,n,r,i=["to","from","url"],o=0;o<e.values.length;++o)if((n=e.values[o]).hasOwnProperty("data")&&ih(n.data)&&!ph(n.data)){r=hh({},n.data);for(var a=0;a<i.length;++a)t=i[a],r.hasOwnProperty(t)&&r[t]&&(r[t]=dh(r[t],this._globalOptions.maxUrlLength));e.values[o].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&Mh.userAgent&&(e.headers={"User-Agent":Mh.userAgent}),jh.location&&jh.location.href&&(e.url=jh.location.href),this._hasDocument&&Lh.referrer&&(e.headers||(e.headers={}),e.headers.Referer=Lh.referrer),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&Rh()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;return!(!t||e.message!==t.message||e.transaction!==t.transaction)&&(e.stacktrace||t.stacktrace?kh(e.stacktrace,t.stacktrace):e.exception||t.exception?wh(e.exception,t.exception):!e.fingerprint&&!t.fingerprint||Boolean(e.fingerprint&&t.fingerprint)&&JSON.stringify(e.fingerprint)===JSON.stringify(t.fingerprint))},_setBackoffState:function(e){if(!this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var n;try{n=_h()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(e){}this._backoffDuration=n||(2*this._backoffDuration||1e3),this._backoffStart=Rh()}}},_send:function(e){var t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"javascript"},r=this._getHttpData();r&&(n.request=r),e.trimHeadFrames&&delete e.trimHeadFrames,(e=hh(n,e)).tags=hh(hh({},this._globalContext.tags),e.tags),e.extra=hh(hh({},this._globalContext.extra),e.extra),e.extra["session:duration"]=Rh()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach((function(t){(null==e[t]||""===e[t]||uh(e[t]))&&delete e[t]})),sh(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!uh(e)&&(sh(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayload(e)))},_sanitizeData:function(e){return Oh(e,this._globalOptions.sanitizeKeys)},_getUuid:function(){return yh()},_sendProcessedPayload:function(e,t){var n=this,r=this._globalOptions;if(this.isSetup())if(e=this._trimPacket(e),this._globalOptions.allowDuplicates||!this._isRepeatData(e)){this._lastEventId=e.event_id||(e.event_id=this._getUuid()),this._lastData=e,this._logDebug("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:r,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:e,src:a}),t&&t()},onError:function(r){n._logDebug("error","Raven transport failed to send: ",r),r.request&&n._setBackoffState(r.request),n._triggerEvent("failure",{data:e,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}else this._logDebug("warn","Raven dropped repeat event: ",e)},_makeRequest:function(e){var t=e.url+"?"+vh(e.auth),n=null,r={};if(e.options.headers&&(n=this._evaluateHash(e.options.headers)),e.options.fetchParameters&&(r=this._evaluateHash(e.options.fetchParameters)),_h()){r.body=pf(e.data);var i=hh({},this._fetchDefaults),o=hh(i,r);return n&&(o.headers=n),jh.fetch(t,o).then((function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var n=new Error("Sentry error code: "+t.status);n.request=t,e.onError&&e.onError(n)}})).catch((function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))}))}var a=jh.XMLHttpRequest&&new jh.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+a.status);t.request=a,e.onError(t)}}:(a=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(a.onload=e.onSuccess),e.onError&&(a.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=a,e.onError(t)})),a.open("POST",t),n&&fh(n,(function(e,t){a.setRequestHeader(e,t)})),a.send(pf(e.data))))},_evaluateHash:function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]="function"==typeof r?r():r}return t},_logDebug:function(e){this._originalConsoleMethods[e]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){ah(t)?delete this._globalContext[e]:this._globalContext[e]=hh(this._globalContext[e]||{},t)}},Uh.prototype.setUser=Uh.prototype.setUserContext,Uh.prototype.setReleaseContext=Uh.prototype.setRelease;var Fh=Uh,Dh="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Bh=Dh.Raven,qh=new Fh;qh.noConflict=function(){return Dh.Raven=Bh,qh},qh.afterLoad();var Hh=qh,Vh=Fh;Hh.Client=Vh;var zh=ze.find,Wh=!0,$h=Ge("find");"find"in[]&&Array(1).find((function(){Wh=!1})),Ce({target:"Array",proto:!0,forced:Wh||!$h},{find:function(e){return zh(this,e,arguments.length>1?arguments[1]:void 0)}}),It("find");var Kh="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Yh=RegExp("^"+Kh+Kh+"*"),Gh=RegExp(Kh+Kh+"*$"),Xh=function(e){return function(t){var n=String(p(t));return 1&e&&(n=n.replace(Yh,"")),2&e&&(n=n.replace(Gh,"")),n}},Jh={start:Xh(1),end:Xh(2),trim:Xh(3)},Qh=ve.f,Zh=T.f,ed=O.f,td=Jh.trim,nd=r.Number,rd=nd.prototype,id="Number"==f(Ot(rd)),od=function(e){var t,n,r,i,o,a,s,c,l=v(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=td(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(xe("Number",!nd(" 0o1")||!nd("0b1")||nd("+0x1"))){for(var ad,sd=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof sd&&(id?i((function(){rd.valueOf.call(n)})):"Number"!=f(n))?Nc(new nd(od(t)),n,sd):od(t)},cd=o?Qh(nd):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),ld=0;cd.length>ld;ld++)b(nd,ad=cd[ld])&&!b(sd,ad)&&ed(sd,ad,Zh(nd,ad));sd.prototype=rd,rd.constructor=sd,Z(r,"Number",sd)}Ce({target:"Number",stat:!0},{isNaN:function(e){return e!=e}}),Ce({target:"Object",stat:!0,forced:Object.assign!==xi},{assign:xi});var ud=c.f,fd=function(e){return function(t){for(var n,r=g(t),i=kt(r),a=i.length,s=0,c=[];a>s;)n=i[s++],o&&!ud.call(r,n)||c.push(e?[n,r[n]]:r[n]);return c}},hd={entries:fd(!0),values:fd(!1)}.entries;function dd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gd(e,t,n){return t&&pd(e.prototype,t),n&&pd(e,n),e}function md(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Ce({target:"Object",stat:!0},{entries:function(e){return hd(e)}});var yd=function(e){return null!=e?e.constructor:null},bd=function(e,t){return!!(e&&t&&e instanceof t)},wd=function(e){return null==e},kd=function(e){return yd(e)===Object},Sd=function(e){return yd(e)===String},Ed=function(e){return Array.isArray(e)},_d=function(e){return bd(e,NodeList)},Td=wd,Ad=kd,xd=function(e){return yd(e)===Number&&!Number.isNaN(e)},Od=Sd,Cd=function(e){return yd(e)===Boolean},Pd=Ed,Id=_d,Rd=function(e){return bd(e,Element)},jd=function(e){return bd(e,Event)},Ld=function(e){return wd(e)||(Sd(e)||Ed(e)||_d(e))&&!e.length||kd(e)&&!Object.keys(e).length},Md={facebook:{domain:"facebook.com",url:function(e){return"https://graph.facebook.com/?id=".concat(e,"&fields=og_object{engagement}")},shareCount:function(e){return e.og_object.engagement.count},popup:{width:640,height:360}},twitter:{domain:"twitter.com",url:function(){return null},shareCount:function(){return null},popup:{width:640,height:240}},pinterest:{domain:"pinterest.com",url:function(e){return"https://widgets.pinterest.com/v1/urls/count.json?url=".concat(e)},shareCount:function(e){return e.count},popup:{width:830,height:700}},github:{domain:"github.com",url:function(e,t){return"https://api.github.com/repos/".concat(e).concat(Od(t)?"?access_token=".concat(t):"")},shareCount:function(e){return e.data.stargazers_count}},youtube:{domain:"youtube.com",url:function(e,t){return"https://www.googleapis.com/youtube/v3/channels?part=statistics&id=".concat(e,"&key=").concat(t)},shareCount:function(e){if(!Ld(e.error))return null;var t=vd(e.items,1)[0];return Ld(t)?null:t.statistics.subscriberCount}}},Nd={debug:!1,wrapper:{className:"shr"},count:{className:"shr__count",displayZero:!1,format:!0,position:"after",increment:!0},tokens:{github:"",youtube:""},storage:{enabled:!0,key:"shr",ttl:3e5}};function Ud(e){return new Promise((function(t,n){var r="jsonp_callback_".concat(Math.round(1e5*Math.random())),i=document.createElement("script");i.addEventListener("error",(function(e){return n(e)})),window[r]=function(e){delete window[r],document.body.removeChild(i),t(e)};var o=new URL(e);o.searchParams.set("callback",r),i.setAttribute("src",o.toString()),document.body.appendChild(i)}))}var Fd=function(){},Dd=function(){function e(){var t=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0];dd(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return gd(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Fd}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Fd}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Fd}}]),e}();function Bd(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function qd(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=0<n?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function Hd(e,t,n){var r=document.createElement(e);return Ad(t)&&function(e,t){!Rd(e)||Ld(t)||Object.entries(t).filter((function(e){var t=vd(e,2)[1];return!Td(t)})).forEach((function(t){var n=vd(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}(r,t),Od(n)&&(r.innerText=n),r}function Vd(e){var t=/\./.test(1.1.toLocaleString())?".":",",n=new RegExp("\\".concat(t,"\\d+$"));return Math.round(e).toLocaleString().replace(n,"")}function zd(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return Ad(i)?(Object.keys(i).forEach((function(t){Ad(i[t])?(!Object.keys(e).includes(t)&&Object.assign(e,md({},t,{})),zd(e[t],i[t])):Object.assign(e,md({},t,i[t]))})),zd.apply(void 0,[e].concat(n))):e}var Wd=function(){function e(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];dd(this,e),this.enabled=r&&e.supported,this.key=t,this.ttl=n}return gd(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(Ld(n))return null;var r=window.localStorage.getItem("".concat(this.key,"_ttl"));if(Ld(r)||r<Date.now())return null;var i=JSON.parse(n);return Od(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&Ad(t)){var n=this.get();Ld(n)&&(n={}),zd(n,t),window.localStorage.setItem(this.key,JSON.stringify(n)),window.localStorage.setItem("".concat(this.key,"_ttl"),Date.now()+this.ttl)}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(e){return!1}}}]),e}();var $d=function(){function e(t,n){var r=this;dd(this,e),this.elements={count:null,trigger:null,popup:null},Rd(t)?this.elements.trigger=t:Od(t)&&(this.elements.trigger=document.querySelector(t)),Rd(this.elements.trigger)&&Ld(this.elements.trigger.shr)&&(this.config=zd({},Nd,n,{networks:Md}),this.console=new Dd(this.config.debug),this.storage=new Wd(this.config.storage.key,this.config.storage.ttl,this.config.storage.enabled),this.getCount().then((function(e){return r.updateDisplay(e)})).catch((function(){})),this.listeners(!0),this.elements.trigger.shr=this)}return gd(e,[{key:"destroy",value:function(){this.listeners(!1)}},{key:"listeners",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener";this.elements.trigger[t]("click",(function(t){return e.share(t)}),!1)}},{key:"share",value:function(e){var t=this;this.openPopup(e);var n=this.config.count.increment;this.getCount().then((function(e){return t.updateDisplay(e,n)})).catch((function(){}))}},{key:"openPopup",value:function(e){if(!Ld(this.network)&&this.networkConfig.popup){jd(e)&&e.preventDefault();var t=this.networkConfig.popup,n=t.width,r=t.height,i="shr-popup--".concat(this.network);if(this.popup&&!this.popup.closed)this.popup.focus(),this.console.log("Popup re-focused.");else{var o=void 0===window.screenLeft?window.screen.left:window.screenLeft,a=void 0===window.screenTop?window.screen.top:window.screenTop,s=window.screen.width/2-n/2+o,c=window.screen.height/2-r/2+a;this.popup=window.open(this.href,i,"top=".concat(c,",left=").concat(s,",width=").concat(n,",height=").concat(r)),this.popup&&!this.popup.closed&&Cd(this.popup.closed)?(this.popup.focus(),this.console.log("Popup opened.")):this.console.error("Popup blocked.")}}}},{key:"getCount",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){var i=e.apiUrl;if(Ld(i))r(new Error("No URL available for ".concat(e.network,".")));else{if(t){var o=e.storage.get(e.target);if(!Ld(o)&&Object.keys(o).includes(e.network)){var a=o[e.network];return n(xd(a)?a:0),void e.console.log("getCount for '".concat(e.target,"' for '").concat(e.network,"' resolved from cache."))}}Ud(i).then((function(t){var r=0,i=e.elements.trigger.getAttribute("data-shr-display");r=Ld(i)?e.networkConfig.shareCount(t):t[i],Ld(r)?r=0:(r=parseInt(r,10),!xd(r)&&(r=0)),e.storage.set(md({},e.target,md({},e.network,r))),n(r)})).catch(r)}}))}},{key:"updateDisplay",value:function(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],n=this.config,r=n.count,i=n.wrapper,o=t?e+1:e,a=r.position.toLowerCase();if(0<o||r.displayZero){var s=function(e){return Math.round(o/e*10)/10},c=Vd(o);r.format&&(1e6<o?c="".concat(s(1e6),"M"):1e3<o&&(c="".concat(s(1e3),"K"))),Rd(this.elements.count)?this.elements.count.textContent=c:(qd(this.elements.trigger,Hd("span",{class:i.className})),this.elements.count=Hd("span",{class:"".concat(r.className," ").concat(r.className,"--").concat(a)},c),this.elements.trigger.insertAdjacentElement("after"===a?"afterend":"beforebegin",this.elements.count))}}},{key:"href",get:function(){return Rd(this.elements.trigger)?this.elements.trigger.href:null}},{key:"network",get:function(){var e=this;if(!Rd(this.elements.trigger))return null;var t=this.config.networks;return Object.keys(t).find((function(n){return function(e){var t=new URL(e).hostname,n=t.split("."),r=n.length;return 2<r&&(t="".concat(n[r-2],".").concat(n[r-1]),2===n[r-2].length&&2===n[r-1].length&&(t="".concat(n[r-3],".").concat(t))),t}(e.href)===t[n].domain}))}},{key:"networkConfig",get:function(){return Ld(this.network)?null:this.config.networks[this.network]}},{key:"target",get:function(){if(Ld(this.network))return null;var e=new URL(this.href);switch(this.network){case"facebook":return e.searchParams.get("u");case"github":return e.pathname.substring(1);case"youtube":return e.pathname.split("/").pop();default:return e.searchParams.get("url")}}},{key:"apiUrl",get:function(){if(Ld(this.network))return null;var e=this.config.tokens;switch(this.network){case"github":return this.networkConfig.url(this.target,e.github);case"youtube":return this.networkConfig.url(this.target,e.youtube);default:return this.networkConfig.url(encodeURIComponent(this.target))}}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(Od(t)?r=Array.from(document.querySelectorAll(t)):Rd(t)?r=[t]:Id(t)?r=Array.from(t):Pd(t)&&(r=t.filter(Rd)),Ld(r))return null;var i=Object.assign({},Nd,n);return Od(t)&&i.watch&&new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Rd(n)&&Bd(n,t)&&new e(n,i)}))}))})).observe(document.body,{childList:!0,subtree:!0}),r.map((function(t){return new e(t,n)}))}}]),e}(),Kd=function(e){return e&&e.Math==Math&&e},Yd=Kd("object"==typeof globalThis&&globalThis)||Kd("object"==typeof window&&window)||Kd("object"==typeof self&&self)||Kd("object"==typeof e&&e)||Function("return this")(),Gd=function(e){try{return!!e()}catch(e){return!0}},Xd=!Gd((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jd={}.propertyIsEnumerable,Qd=Object.getOwnPropertyDescriptor,Zd={f:Qd&&!Jd.call({1:2},1)?function(e){var t=Qd(this,e);return!!t&&t.enumerable}:Jd},ep=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tp={}.toString,np=function(e){return tp.call(e).slice(8,-1)},rp="".split,ip=Gd((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==np(e)?rp.call(e,""):Object(e)}:Object,op=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},ap=function(e){return ip(op(e))},sp=function(e){return"object"==typeof e?null!==e:"function"==typeof e},cp=function(e,t){if(!sp(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!sp(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!sp(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!sp(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},lp={}.hasOwnProperty,up=function(e,t){return lp.call(e,t)},fp=Yd.document,hp=sp(fp)&&sp(fp.createElement),dp=function(e){return hp?fp.createElement(e):{}},pp=!Xd&&!Gd((function(){return 7!=Object.defineProperty(dp("div"),"a",{get:function(){return 7}}).a})),gp=Object.getOwnPropertyDescriptor,mp={f:Xd?gp:function(e,t){if(e=ap(e),t=cp(t,!0),pp)try{return gp(e,t)}catch(e){}if(up(e,t))return ep(!Zd.f.call(e,t),e[t])}},vp=function(e){if(!sp(e))throw TypeError(String(e)+" is not an object");return e},yp=Object.defineProperty,bp={f:Xd?yp:function(e,t,n){if(vp(e),t=cp(t,!0),vp(n),pp)try{return yp(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},wp=Xd?function(e,t,n){return bp.f(e,t,ep(1,n))}:function(e,t,n){return e[t]=n,e},kp=function(e,t){try{wp(Yd,e,t)}catch(n){Yd[e]=t}return t},Sp=Yd["__core-js_shared__"]||kp("__core-js_shared__",{}),Ep=Function.toString;"function"!=typeof Sp.inspectSource&&(Sp.inspectSource=function(e){return Ep.call(e)});var _p,Tp,Ap,xp=Sp.inspectSource,Op=Yd.WeakMap,Cp="function"==typeof Op&&/native code/.test(xp(Op)),Pp=t((function(e){(e.exports=function(e,t){return Sp[e]||(Sp[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ip=0,Rp=Math.random(),jp=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ip+Rp).toString(36)},Lp=Pp("keys"),Mp=function(e){return Lp[e]||(Lp[e]=jp(e))},Np={},Up=Yd.WeakMap;if(Cp){var Fp=new Up,Dp=Fp.get,Bp=Fp.has,qp=Fp.set;_p=function(e,t){return qp.call(Fp,e,t),t},Tp=function(e){return Dp.call(Fp,e)||{}},Ap=function(e){return Bp.call(Fp,e)}}else{var Hp=Mp("state");Np[Hp]=!0,_p=function(e,t){return wp(e,Hp,t),t},Tp=function(e){return up(e,Hp)?e[Hp]:{}},Ap=function(e){return up(e,Hp)}}var Vp,zp,Wp={set:_p,get:Tp,has:Ap,enforce:function(e){return Ap(e)?Tp(e):_p(e,{})},getterFor:function(e){return function(t){var n;if(!sp(t)||(n=Tp(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},$p=t((function(e){var t=Wp.get,n=Wp.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||up(i,"name")||wp(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==Yd?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:wp(e,t,i)):s?e[t]=i:kp(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||xp(this)}))})),Kp=Yd,Yp=function(e){return"function"==typeof e?e:void 0},Gp=function(e,t){return arguments.length<2?Yp(Kp[e])||Yp(Yd[e]):Kp[e]&&Kp[e][t]||Yd[e]&&Yd[e][t]},Xp=Math.ceil,Jp=Math.floor,Qp=function(e){return isNaN(e=+e)?0:(e>0?Jp:Xp)(e)},Zp=Math.min,eg=function(e){return e>0?Zp(Qp(e),9007199254740991):0},tg=Math.max,ng=Math.min,rg=function(e,t){var n=Qp(e);return n<0?tg(n+t,0):ng(n,t)},ig=function(e){return function(t,n,r){var i,o=ap(t),a=eg(o.length),s=rg(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},og={includes:ig(!0),indexOf:ig(!1)},ag=og.indexOf,sg=function(e,t){var n,r=ap(e),i=0,o=[];for(n in r)!up(Np,n)&&up(r,n)&&o.push(n);for(;t.length>i;)up(r,n=t[i++])&&(~ag(o,n)||o.push(n));return o},cg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lg=cg.concat("length","prototype"),ug={f:Object.getOwnPropertyNames||function(e){return sg(e,lg)}},fg={f:Object.getOwnPropertySymbols},hg=Gp("Reflect","ownKeys")||function(e){var t=ug.f(vp(e)),n=fg.f;return n?t.concat(n(e)):t},dg=function(e,t){for(var n=hg(t),r=bp.f,i=mp.f,o=0;o<n.length;o++){var a=n[o];up(e,a)||r(e,a,i(t,a))}},pg=/#|\.prototype\./,gg=function(e,t){var n=vg[mg(e)];return n==bg||n!=yg&&("function"==typeof t?Gd(t):!!t)},mg=gg.normalize=function(e){return String(e).replace(pg,".").toLowerCase()},vg=gg.data={},yg=gg.NATIVE="N",bg=gg.POLYFILL="P",wg=gg,kg=mp.f,Sg=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,l=e.stat;if(n=c?Yd:l?Yd[s]||kp(s,{}):(Yd[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=kg(n,r))&&a.value:n[r],!wg(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;dg(o,i)}(e.sham||i&&i.sham)&&wp(o,"sham",!0),$p(n,r,o,e)}},Eg=Array.isArray||function(e){return"Array"==np(e)},_g=function(e){return Object(op(e))},Tg=function(e,t,n){var r=cp(t);r in e?bp.f(e,r,ep(0,n)):e[r]=n},Ag=!!Object.getOwnPropertySymbols&&!Gd((function(){return!String(Symbol())})),xg=Ag&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Og=Pp("wks"),Cg=Yd.Symbol,Pg=xg?Cg:Cg&&Cg.withoutSetter||jp,Ig=function(e){return up(Og,e)||(Ag&&up(Cg,e)?Og[e]=Cg[e]:Og[e]=Pg("Symbol."+e)),Og[e]},Rg=Ig("species"),jg=function(e,t){var n;return Eg(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Eg(n.prototype)?sp(n)&&null===(n=n[Rg])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Lg=Gp("navigator","userAgent")||"",Mg=Yd.process,Ng=Mg&&Mg.versions,Ug=Ng&&Ng.v8;Ug?zp=(Vp=Ug.split("."))[0]+Vp[1]:Lg&&(!(Vp=Lg.match(/Edge\/(\d+)/))||Vp[1]>=74)&&(Vp=Lg.match(/Chrome\/(\d+)/))&&(zp=Vp[1]);var Fg=zp&&+zp,Dg=Ig("species"),Bg=function(e){return Fg>=51||!Gd((function(){var t=[];return(t.constructor={})[Dg]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qg=Ig("isConcatSpreadable"),Hg=Fg>=51||!Gd((function(){var e=[];return e[qg]=!1,e.concat()[0]!==e})),Vg=Bg("concat"),zg=function(e){if(!sp(e))return!1;var t=e[qg];return void 0!==t?!!t:Eg(e)};Sg({target:"Array",proto:!0,forced:!Hg||!Vg},{concat:function(e){var t,n,r,i,o,a=_g(this),s=jg(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],zg(o)){if(c+(i=eg(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Tg(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Tg(s,c++,o)}return s.length=c,s}});var Wg=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},$g=function(e,t,n){if(Wg(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Kg=[].push,Yg=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,l,u){for(var f,h,d=_g(s),p=ip(d),g=$g(c,l,3),m=eg(p.length),v=0,y=u||jg,b=t?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=g(f=p[v],v,d),e))if(t)b[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Kg.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},Gg={forEach:Yg(0),map:Yg(1),filter:Yg(2),some:Yg(3),every:Yg(4),find:Yg(5),findIndex:Yg(6)},Xg=Object.defineProperty,Jg={},Qg=function(e){throw e},Zg=function(e,t){if(up(Jg,e))return Jg[e];t||(t={});var n=[][e],r=!!up(t,"ACCESSORS")&&t.ACCESSORS,i=up(t,0)?t[0]:Qg,o=up(t,1)?t[1]:void 0;return Jg[e]=!!n&&!Gd((function(){if(r&&!Xd)return!0;var e={length:-1};r?Xg(e,1,{enumerable:!0,get:Qg}):e[1]=1,n.call(e,i,o)}))},em=Gg.filter,tm=Bg("filter"),nm=Zg("filter");Sg({target:"Array",proto:!0,forced:!tm||!nm},{filter:function(e){return em(this,e,arguments.length>1?arguments[1]:void 0)}});var rm,im=Object.keys||function(e){return sg(e,cg)},om=Xd?Object.defineProperties:function(e,t){vp(e);for(var n,r=im(t),i=r.length,o=0;i>o;)bp.f(e,n=r[o++],t[n]);return e},am=Gp("document","documentElement"),sm=Mp("IE_PROTO"),cm=function(){},lm=function(e){return"<script>"+e+"<\/script>"},um=function(){try{rm=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;um=rm?function(e){e.write(lm("")),e.close();var t=e.parentWindow.Object;return e=null,t}(rm):((t=dp("iframe")).style.display="none",am.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(lm("document.F=Object")),e.close(),e.F);for(var n=cg.length;n--;)delete um.prototype[cg[n]];return um()};Np[sm]=!0;var fm=Object.create||function(e,t){var n;return null!==e?(cm.prototype=vp(e),n=new cm,cm.prototype=null,n[sm]=e):n=um(),void 0===t?n:om(n,t)},hm=Ig("unscopables"),dm=Array.prototype;null==dm[hm]&&bp.f(dm,hm,{configurable:!0,value:fm(null)});var pm=function(e){dm[hm][e]=!0},gm=Gg.find,mm=!0,vm=Zg("find");"find"in[]&&Array(1).find((function(){mm=!1})),Sg({target:"Array",proto:!0,forced:mm||!vm},{find:function(e){return gm(this,e,arguments.length>1?arguments[1]:void 0)}}),pm("find");var ym=function(e,t,n,r){try{return r?t(vp(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&vp(i.call(e)),t}},bm={},wm=Ig("iterator"),km=Array.prototype,Sm=function(e){return void 0!==e&&(bm.Array===e||km[wm]===e)},Em={};Em[Ig("toStringTag")]="z";var _m="[object z]"===String(Em),Tm=Ig("toStringTag"),Am="Arguments"==np(function(){return arguments}()),xm=_m?np:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Tm))?n:Am?np(t):"Object"==(r=np(t))&&"function"==typeof t.callee?"Arguments":r},Om=Ig("iterator"),Cm=function(e){if(null!=e)return e[Om]||e["@@iterator"]||bm[xm(e)]},Pm=function(e){var t,n,r,i,o,a,s=_g(e),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,h=Cm(s),d=0;if(f&&(u=$g(u,l>2?arguments[2]:void 0,2)),null==h||c==Array&&Sm(h))for(n=new c(t=eg(s.length));t>d;d++)a=f?u(s[d],d):s[d],Tg(n,d,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;d++)a=f?ym(i,u,[r.value,d],!0):r.value,Tg(n,d,a);return n.length=d,n},Im=Ig("iterator"),Rm=!1;try{var jm=0,Lm={next:function(){return{done:!!jm++}},return:function(){Rm=!0}};Lm[Im]=function(){return this},Array.from(Lm,(function(){throw 2}))}catch(e){}var Mm=function(e,t){if(!t&&!Rm)return!1;var n=!1;try{var r={};r[Im]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Nm=!Mm((function(e){Array.from(e)}));Sg({target:"Array",stat:!0,forced:Nm},{from:Pm});var Um=og.includes,Fm=Zg("indexOf",{ACCESSORS:!0,1:0});Sg({target:"Array",proto:!0,forced:!Fm},{includes:function(e){return Um(this,e,arguments.length>1?arguments[1]:void 0)}}),pm("includes");var Dm,Bm,qm,Hm=!Gd((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vm=Mp("IE_PROTO"),zm=Object.prototype,Wm=Hm?Object.getPrototypeOf:function(e){return e=_g(e),up(e,Vm)?e[Vm]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?zm:null},$m=Ig("iterator"),Km=!1;[].keys&&("next"in(qm=[].keys())?(Bm=Wm(Wm(qm)))!==Object.prototype&&(Dm=Bm):Km=!0),null==Dm&&(Dm={}),up(Dm,$m)||wp(Dm,$m,(function(){return this}));var Ym={IteratorPrototype:Dm,BUGGY_SAFARI_ITERATORS:Km},Gm=bp.f,Xm=Ig("toStringTag"),Jm=function(e,t,n){e&&!up(e=n?e:e.prototype,Xm)&&Gm(e,Xm,{configurable:!0,value:t})},Qm=Ym.IteratorPrototype,Zm=function(){return this},ev=function(e,t,n){var r=t+" Iterator";return e.prototype=fm(Qm,{next:ep(1,n)}),Jm(e,r,!1),bm[r]=Zm,e},tv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return vp(n),function(e){if(!sp(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),nv=Ym.IteratorPrototype,rv=Ym.BUGGY_SAFARI_ITERATORS,iv=Ig("iterator"),ov=function(){return this},av=function(e,t,n,r,i,o,a){ev(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!rv&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[iv]||d["@@iterator"]||i&&d[i],g=!rv&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=Wm(m.call(new e)),nv!==Object.prototype&&s.next&&(Wm(s)!==nv&&(tv?tv(s,nv):"function"!=typeof s[iv]&&wp(s,iv,ov)),Jm(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[iv]!==g&&wp(d,iv,g),bm[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)(rv||h||!(l in d))&&$p(d,l,c[l]);else Sg({target:t,proto:!0,forced:rv||h},c);return c},sv=Wp.set,cv=Wp.getterFor("Array Iterator"),lv=av(Array,"Array",(function(e,t){sv(this,{type:"Array Iterator",target:ap(e),index:0,kind:t})}),(function(){var e=cv(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bm.Arguments=bm.Array,pm("keys"),pm("values"),pm("entries");var uv=function(e,t){var n=[][e];return!!n&&Gd((function(){n.call(null,t||function(){throw 1},1)}))},fv=[].join,hv=ip!=Object,dv=uv("join",",");Sg({target:"Array",proto:!0,forced:hv||!dv},{join:function(e){return fv.call(ap(this),void 0===e?",":e)}});var pv=Gg.map,gv=Bg("map"),mv=Zg("map");Sg({target:"Array",proto:!0,forced:!gv||!mv},{map:function(e){return pv(this,e,arguments.length>1?arguments[1]:void 0)}});var vv=function(e,t,n){var r,i;return tv&&"function"==typeof(r=t.constructor)&&r!==n&&sp(i=r.prototype)&&i!==n.prototype&&tv(e,i),e},yv="[\t\n\v\f\r                 \u2028\u2029\ufeff]",bv=RegExp("^"+yv+yv+"*"),wv=RegExp(yv+yv+"*$"),kv=function(e){return function(t){var n=String(op(t));return 1&e&&(n=n.replace(bv,"")),2&e&&(n=n.replace(wv,"")),n}},Sv={start:kv(1),end:kv(2),trim:kv(3)},Ev=ug.f,_v=mp.f,Tv=bp.f,Av=Sv.trim,xv=Yd.Number,Ov=xv.prototype,Cv="Number"==np(fm(Ov)),Pv=function(e){var t,n,r,i,o,a,s,c,l=cp(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=Av(l)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(wg("Number",!xv(" 0o1")||!xv("0b1")||xv("+0x1"))){for(var Iv,Rv=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Rv&&(Cv?Gd((function(){Ov.valueOf.call(n)})):"Number"!=np(n))?vv(new xv(Pv(t)),n,Rv):Pv(t)},jv=Xd?Ev(xv):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Lv=0;jv.length>Lv;Lv++)up(xv,Iv=jv[Lv])&&!up(Rv,Iv)&&Tv(Rv,Iv,_v(xv,Iv));Rv.prototype=Ov,Ov.constructor=Rv,$p(Yd,"Number",Rv)}var Mv=Gd((function(){im(1)}));Sg({target:"Object",stat:!0,forced:Mv},{keys:function(e){return im(_g(e))}});var Nv=_m?{}.toString:function(){return"[object "+xm(this)+"]"};_m||$p(Object.prototype,"toString",Nv,{unsafe:!0});var Uv=function(){var e=vp(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Fv(e,t){return RegExp(e,t)}var Dv={UNSUPPORTED_Y:Gd((function(){var e=Fv("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:Gd((function(){var e=Fv("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Bv=RegExp.prototype.exec,qv=String.prototype.replace,Hv=Bv,Vv=function(){var e=/a/,t=/b*/g;return Bv.call(e,"a"),Bv.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),zv=Dv.UNSUPPORTED_Y||Dv.BROKEN_CARET,Wv=void 0!==/()??/.exec("")[1];(Vv||Wv||zv)&&(Hv=function(e){var t,n,r,i,o=this,a=zv&&o.sticky,s=Uv.call(o),c=o.source,l=0,u=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),Wv&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Vv&&(t=o.lastIndex),r=Bv.call(a?n:o,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Vv&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Wv&&r&&r.length>1&&qv.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var $v=Hv;Sg({target:"RegExp",proto:!0,forced:/./.exec!==$v},{exec:$v});var Kv=RegExp.prototype,Yv=Kv.toString,Gv=Gd((function(){return"/a/b"!=Yv.call({source:"a",flags:"b"})})),Xv="toString"!=Yv.name;(Gv||Xv)&&$p(RegExp.prototype,"toString",(function(){var e=vp(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Kv)?Uv.call(e):n)}),{unsafe:!0});var Jv=Ig("match"),Qv=function(e){var t;return sp(e)&&(void 0!==(t=e[Jv])?!!t:"RegExp"==np(e))},Zv=function(e){if(Qv(e))throw TypeError("The method doesn't accept regular expressions");return e},ey=Ig("match"),ty=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ey]=!1,"/./"[e](t)}catch(e){}}return!1};Sg({target:"String",proto:!0,forced:!ty("includes")},{includes:function(e){return!!~String(op(this)).indexOf(Zv(e),arguments.length>1?arguments[1]:void 0)}});var ny=function(e){return function(t,n){var r,i,o=String(op(t)),a=Qp(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},ry={codeAt:ny(!1),charAt:ny(!0)},iy=ry.charAt,oy=Wp.set,ay=Wp.getterFor("String Iterator");av(String,"String",(function(e){oy(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=ay(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iy(n,r),t.index+=e.length,{value:e,done:!1})}));var sy=Ig("species"),cy=!Gd((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ly="$0"==="a".replace(/./,"$0"),uy=Ig("replace"),fy=!!/./[uy]&&""===/./[uy]("a","$0"),hy=!Gd((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),dy=function(e,t,n,r){var i=Ig(e),o=!Gd((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!Gd((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[sy]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||"replace"===e&&(!cy||!ly||fy)||"split"===e&&!hy){var s=/./[i],c=n(i,""[e],(function(e,t,n,r,i){return t.exec===$v?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ly,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:fy}),l=c[0],u=c[1];$p(String.prototype,e,l),$p(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&wp(RegExp.prototype[i],"sham",!0)},py=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},gy=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==np(e))throw TypeError("RegExp#exec called on incompatible receiver");return $v.call(e,t)};dy("search",1,(function(e,t,n){return[function(t){var n=op(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=vp(e),o=String(this),a=i.lastIndex;py(a,0)||(i.lastIndex=0);var s=gy(i,o);return py(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var my=function(e,t,n){for(var r in t)$p(e,r,t[r],n);return e},vy=!Gd((function(){return Object.isExtensible(Object.preventExtensions({}))})),yy=t((function(e){var t=bp.f,n=jp("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!sp(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!up(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!up(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return vy&&a.REQUIRED&&i(e)&&!up(e,n)&&o(e),e}};Np[n]=!0})),by=(yy.REQUIRED,yy.fastKey,yy.getWeakData,yy.onFreeze,t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f,h,d=$g(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=Cm(e)))throw TypeError("Target is not iterable");if(Sm(s)){for(c=0,l=eg(e.length);l>c;c++)if((u=i?d(vp(h=e[c])[0],h[1]):d(e[c]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(u=ym(a,d,h.value,i))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}}))),wy=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},ky=yy.getWeakData,Sy=Wp.set,Ey=Wp.getterFor,_y=Gg.find,Ty=Gg.findIndex,Ay=0,xy=function(e){return e.frozen||(e.frozen=new Oy)},Oy=function(){this.entries=[]},Cy=function(e,t){return _y(e.entries,(function(e){return e[0]===t}))};Oy.prototype={get:function(e){var t=Cy(this,e);if(t)return t[1]},has:function(e){return!!Cy(this,e)},set:function(e,t){var n=Cy(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ty(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var Py={getConstructor:function(e,t,n,r){var i=e((function(e,o){wy(e,i,t),Sy(e,{type:t,id:Ay++,frozen:void 0}),null!=o&&by(o,e[r],e,n)})),o=Ey(t),a=function(e,t,n){var r=o(e),i=ky(vp(t),!0);return!0===i?xy(r).set(t,n):i[r.id]=n,e};return my(i.prototype,{delete:function(e){var t=o(this);if(!sp(e))return!1;var n=ky(e);return!0===n?xy(t).delete(e):n&&up(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!sp(e))return!1;var n=ky(e);return!0===n?xy(t).has(e):n&&up(n,t.id)}}),my(i.prototype,n?{get:function(e){var t=o(this);if(sp(e)){var n=ky(e);return!0===n?xy(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),i}},Iy=(t((function(e){var t,n=Wp.enforce,r=!Yd.ActiveXObject&&"ActiveXObject"in Yd,i=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=Yd[e],s=a&&a.prototype,c=a,l={},u=function(e){var t=s[e];$p(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!sp(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!sp(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!sp(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(wg(e,"function"!=typeof a||!(i||s.forEach&&!Gd((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),yy.REQUIRED=!0;else if(wg(e,!0)){var f=new c,h=f[o](i?{}:-0,1)!=f,d=Gd((function(){f.has(1)})),p=Mm((function(e){new a(e)})),g=!i&&Gd((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((c=t((function(t,n){wy(t,c,e);var i=vv(new a,t,c);return null!=n&&by(n,i[o],i,r),i}))).prototype=s,s.constructor=c),(d||g)&&(u("delete"),u("has"),r&&u("get")),(g||h)&&u(o),i&&s.clear&&delete s.clear}return l[e]=c,Sg({global:!0,forced:c!=a},l),Jm(c,e),i||n.setStrong(c,e,r),c}("WeakMap",o,Py);if(Cp&&r){t=Py.getConstructor(o,"WeakMap",!0),yy.REQUIRED=!0;var s=a.prototype,c=s.delete,l=s.has,u=s.get,f=s.set;my(s,{delete:function(e){if(sp(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),c.call(this,e)||r.frozen.delete(e)}return c.call(this,e)},has:function(e){if(sp(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)||r.frozen.has(e)}return l.call(this,e)},get:function(e){if(sp(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)?u.call(this,e):r.frozen.get(e)}return u.call(this,e)},set:function(e,r){if(sp(e)&&!i(e)){var o=n(this);o.frozen||(o.frozen=new t),l.call(this,e)?f.call(this,e,r):o.frozen.set(e,r)}else f.call(this,e,r);return this}})}})),{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}),Ry=Ig("iterator"),jy=Ig("toStringTag"),Ly=lv.values;for(var My in Iy){var Ny=Yd[My],Uy=Ny&&Ny.prototype;if(Uy){if(Uy[Ry]!==Ly)try{wp(Uy,Ry,Ly)}catch(e){Uy[Ry]=Ly}if(Uy[jy]||wp(Uy,jy,My),Iy[My])for(var Fy in lv)if(Uy[Fy]!==lv[Fy])try{wp(Uy,Fy,lv[Fy])}catch(e){Uy[Fy]=lv[Fy]}}}var Dy=Gg.every,By=uv("every"),qy=Zg("every");Sg({target:"Array",proto:!0,forced:!By||!qy},{every:function(e){return Dy(this,e,arguments.length>1?arguments[1]:void 0)}});var Hy=Gg.forEach,Vy=uv("forEach"),zy=Zg("forEach"),Wy=Vy&&zy?[].forEach:function(e){return Hy(this,e,arguments.length>1?arguments[1]:void 0)};Sg({target:"Array",proto:!0,forced:[].forEach!=Wy},{forEach:Wy});var $y=og.indexOf,Ky=[].indexOf,Yy=!!Ky&&1/[1].indexOf(1,-0)<0,Gy=uv("indexOf"),Xy=Zg("indexOf",{ACCESSORS:!0,1:0});Sg({target:"Array",proto:!0,forced:Yy||!Gy||!Xy},{indexOf:function(e){return Yy?Ky.apply(this,arguments)||0:$y(this,e,arguments.length>1?arguments[1]:void 0)}});var Jy=Object.assign,Qy=Object.defineProperty,Zy=!Jy||Gd((function(){if(Xd&&1!==Jy({b:1},Jy(Qy({},"a",{enumerable:!0,get:function(){Qy(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Jy({},e)[n]||"abcdefghijklmnopqrst"!=im(Jy({},t)).join("")}))?function(e,t){for(var n=_g(e),r=arguments.length,i=1,o=fg.f,a=Zd.f;r>i;)for(var s,c=ip(arguments[i++]),l=o?im(c).concat(o(c)):im(c),u=l.length,f=0;u>f;)s=l[f++],Xd&&!a.call(c,s)||(n[s]=c[s]);return n}:Jy;Sg({target:"Object",stat:!0,forced:Object.assign!==Zy},{assign:Zy});var eb=Ig("species"),tb=function(e,t){var n,r=vp(e).constructor;return void 0===r||null==(n=vp(r)[eb])?t:Wg(n)},nb=ry.charAt,rb=function(e,t,n){return t+(n?nb(e,t).length:1)},ib=[].push,ob=Math.min,ab=!Gd((function(){return!RegExp(4294967295,"y")}));dy("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(op(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!Qv(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=$v.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&ib.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=op(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=vp(e),s=String(this),c=tb(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ab?"y":"g"),f=new c(ab?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===gy(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=ab?p:0;var m,v=gy(f,ab?s:s.slice(p));if(null===v||(m=ob(eg(f.lastIndex+(ab?0:p)),s.length))===d)p=rb(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]}),!ab);var sb=Sv.trim;for(var cb in Sg({target:"String",proto:!0,forced:function(e){return Gd((function(){return!!"\t\n\v\f\r                 \u2028\u2029\ufeff"[e]()||"​…᠎"!="​…᠎"[e]()||"\t\n\v\f\r                 \u2028\u2029\ufeff"[e].name!==e}))}("trim")},{trim:function(){return sb(this)}}),Iy){var lb=Yd[cb],ub=lb&&lb.prototype;if(ub&&ub.forEach!==Wy)try{wp(ub,"forEach",Wy)}catch(e){ub.forEach=Wy}}var fb=Ig("iterator"),hb=!Gd((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[fb]||"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"!==n||"x"!==new URL("http://x",void 0).host})),db=/[^\0-\u007E]/,pb=/[.\u3002\uFF0E\uFF61]/g,gb=Math.floor,mb=String.fromCharCode,vb=function(e){return e+22+75*(e<26)},yb=function(e,t,n){var r=0;for(e=n?gb(e/700):e>>1,e+=gb(e/t);e>455;r+=36)e=gb(e/35);return gb(r+36*e/(e+38))},bb=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(mb(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>gb((2147483647-a)/f))throw RangeError("Overflow: input needs wider integers to process");for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError("Overflow: input needs wider integers to process");if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push(mb(vb(p+g%m))),h=gb(g/m)}r.push(mb(vb(h))),s=yb(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},wb=function(e){var t=Cm(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return vp(t.call(e))},kb=Gp("fetch"),Sb=Gp("Headers"),Eb=Ig("iterator"),_b=Wp.set,Tb=Wp.getterFor("URLSearchParams"),Ab=Wp.getterFor("URLSearchParamsIterator"),xb=/\+/g,Ob=Array(4),Cb=function(e){return Ob[e-1]||(Ob[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Pb=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Ib=function(e){var t=e.replace(xb," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(Cb(n--),Pb);return t}},Rb=/[!'()~]|%20/g,jb={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Lb=function(e){return jb[e]},Mb=function(e){return encodeURIComponent(e).replace(Rb,Lb)},Nb=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:Ib(r.shift()),value:Ib(r.join("="))}))},Ub=function(e){this.entries.length=0,Nb(this.entries,e)},Fb=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Db=ev((function(e,t){_b(this,{type:"URLSearchParamsIterator",iterator:wb(Tb(e).entries),kind:t})}),"Iterator",(function(){var e=Ab(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),Bb=function(){wy(this,Bb,"URLSearchParams");var e,t,n,r,i,o,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(_b(u,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:Ub}),void 0!==l)if(sp(l))if("function"==typeof(e=Cm(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(o=(i=wb(vp(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in l)up(l,c)&&f.push({key:c,value:l[c]+""});else Nb(f,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},qb=Bb.prototype;my(qb,{append:function(e,t){Fb(arguments.length,2);var n=Tb(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){Fb(arguments.length,1);for(var t=Tb(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){Fb(arguments.length,1);for(var t=Tb(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Fb(arguments.length,1);for(var t=Tb(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){Fb(arguments.length,1);for(var t=Tb(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Fb(arguments.length,1);for(var n,r=Tb(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=Tb(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=Tb(this).entries,r=$g(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Db(this,"keys")},values:function(){return new Db(this,"values")},entries:function(){return new Db(this,"entries")}},{enumerable:!0}),$p(qb,Eb,qb.entries),$p(qb,"toString",(function(){for(var e,t=Tb(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(Mb(e.key)+"="+Mb(e.value));return n.join("&")}),{enumerable:!0}),Jm(Bb,"URLSearchParams"),Sg({global:!0,forced:!hb},{URLSearchParams:Bb}),hb||"function"!=typeof kb||"function"!=typeof Sb||Sg({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],sp(t)&&(n=t.body,"URLSearchParams"===xm(n)&&((r=t.headers?new Sb(t.headers):new Sb).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=fm(t,{body:ep(0,String(n)),headers:ep(0,r)}))),i.push(t)),kb.apply(this,i)}});var Hb={URLSearchParams:Bb,getState:Tb},Vb=ry.codeAt,zb=Yd.URL,Wb=Hb.URLSearchParams,$b=Hb.getState,Kb=Wp.set,Yb=Wp.getterFor("URL"),Gb=Math.floor,Xb=Math.pow,Jb=/[A-Za-z]/,Qb=/[\d+\-.A-Za-z]/,Zb=/\d/,ew=/^(0x|0X)/,tw=/^[0-7]+$/,nw=/^\d+$/,rw=/^[\dA-Fa-f]+$/,iw=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,ow=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,aw=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,sw=/[\u0009\u000A\u000D]/g,cw=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=uw(t.slice(1,-1))))return"Invalid host";e.host=n}else if(yw(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(pb,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(db.test(n)?"xn--"+bb(n):n);return r.join(".")}(t),iw.test(t))return"Invalid host";if(null===(n=lw(t)))return"Invalid host";e.host=n}else{if(ow.test(t))return"Invalid host";for(n="",r=Pm(t),i=0;i<r.length;i++)n+=mw(r[i],hw);e.host=n}},lw=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=ew.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?nw:8==o?tw:rw).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=Xb(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*Xb(256,3-r);return s},uw=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&rw.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!Zb.test(h()))return;for(;Zb.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},fw=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Gb(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},hw={},dw=Zy({},hw,{" ":1,'"':1,"<":1,">":1,"`":1}),pw=Zy({},dw,{"#":1,"?":1,"{":1,"}":1}),gw=Zy({},pw,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),mw=function(e,t){var n=Vb(e,0);return n>32&&n<127&&!up(t,e)?e:encodeURIComponent(e)},vw={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yw=function(e){return up(vw,e.scheme)},bw=function(e){return""!=e.username||""!=e.password},ww=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},kw=function(e,t){var n;return 2==e.length&&Jb.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Sw=function(e){var t;return e.length>1&&kw(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Ew=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&kw(t[0],!0)||t.pop()},_w=function(e){return"."===e||"%2e"===e.toLowerCase()},Tw={},Aw={},xw={},Ow={},Cw={},Pw={},Iw={},Rw={},jw={},Lw={},Mw={},Nw={},Uw={},Fw={},Dw={},Bw={},qw={},Hw={},Vw={},zw={},Ww={},$w=function(e,t,n,r){var i,o,a,s,c,l=n||Tw,u=0,f="",h=!1,d=!1,p=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(aw,"")),t=t.replace(sw,""),i=Pm(t);u<=i.length;){switch(o=i[u],l){case Tw:if(!o||!Jb.test(o)){if(n)return"Invalid scheme";l=xw;continue}f+=o.toLowerCase(),l=Aw;break;case Aw:if(o&&(Qb.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=xw,u=0;continue}if(n&&(yw(e)!=up(vw,f)||"file"==f&&(bw(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(yw(e)&&vw[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=Fw:yw(e)&&r&&r.scheme==e.scheme?l=Ow:yw(e)?l=Rw:"/"==i[u+1]?(l=Cw,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Vw)}break;case xw:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,l=Ww;break}l="file"==r.scheme?Fw:Pw;continue;case Ow:if("/"!=o||"/"!=i[u+1]){l=Pw;continue}l=jw,u++;break;case Cw:if("/"==o){l=Lw;break}l=Hw;continue;case Pw:if(e.scheme=r.scheme,null==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&yw(e))l=Iw;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",l=zw;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),l=Hw;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Ww}break;case Iw:if(!yw(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=Hw;continue}l=Lw}else l=jw;break;case Rw:if(l=jw,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case jw:if("/"!=o&&"\\"!=o){l=Lw;continue}break;case Lw:if("@"==o){h&&(f="%40"+f),h=!0,a=Pm(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=mw(m,gw);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&yw(e)){if(h&&""==f)return"Invalid authority";u-=Pm(f).length+1,f="",l=Mw}else f+=o;break;case Mw:case Nw:if(n&&"file"==e.scheme){l=Bw;continue}if(":"!=o||d){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&yw(e)){if(yw(e)&&""==f)return"Invalid host";if(n&&""==f&&(bw(e)||null!==e.port))return;if(s=cw(e,f))return s;if(f="",l=qw,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=cw(e,f))return s;if(f="",l=Uw,n==Nw)return}break;case Uw:if(!Zb.test(o)){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&yw(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=yw(e)&&y===vw[e.scheme]?null:y,f=""}if(n)return;l=qw;continue}return"Invalid port"}f+=o;break;case Fw:if(e.scheme="file","/"==o||"\\"==o)l=Dw;else{if(!r||"file"!=r.scheme){l=Hw;continue}if(null==o)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",l=zw;else{if("#"!=o){Sw(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Ew(e)),l=Hw;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Ww}}break;case Dw:if("/"==o||"\\"==o){l=Bw;break}r&&"file"==r.scheme&&!Sw(i.slice(u).join(""))&&(kw(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=Hw;continue;case Bw:if(null==o||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&kw(f))l=Hw;else if(""==f){if(e.host="",n)return;l=qw}else{if(s=cw(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=qw}continue}f+=o;break;case qw:if(yw(e)){if(l=Hw,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(null!=o&&(l=Hw,"/"!=o))continue}else e.fragment="",l=Ww;else e.query="",l=zw;break;case Hw:if(null==o||"/"==o||"\\"==o&&yw(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Ew(e),"/"==o||"\\"==o&&yw(e)||e.path.push("")):_w(f)?"/"==o||"\\"==o&&yw(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&kw(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(null==o||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=zw):"#"==o&&(e.fragment="",l=Ww)}else f+=mw(o,pw);break;case Vw:"?"==o?(e.query="",l=zw):"#"==o?(e.fragment="",l=Ww):null!=o&&(e.path[0]+=mw(o,hw));break;case zw:n||"#"!=o?null!=o&&("'"==o&&yw(e)?e.query+="%27":e.query+="#"==o?"%23":mw(o,hw)):(e.fragment="",l=Ww);break;case Ww:null!=o&&(e.fragment+=mw(o,dw))}u++}},Kw=function(e){var t,n,r=wy(this,Kw,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Kb(r,{type:"URL"});if(void 0!==i)if(i instanceof Kw)t=Yb(i);else if(n=$w(t={},String(i)))throw TypeError(n);if(n=$w(a,o,null,t))throw TypeError(n);var s=a.searchParams=new Wb,c=$b(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},Xd||(r.href=Gw.call(r),r.origin=Xw.call(r),r.protocol=Jw.call(r),r.username=Qw.call(r),r.password=Zw.call(r),r.host=ek.call(r),r.hostname=tk.call(r),r.port=nk.call(r),r.pathname=rk.call(r),r.search=ik.call(r),r.searchParams=ok.call(r),r.hash=ak.call(r))},Yw=Kw.prototype,Gw=function(){var e=Yb(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",bw(e)&&(l+=n+(r?":"+r:"")+"@"),l+=fw(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},Xw=function(){var e=Yb(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&yw(e)?t+"://"+fw(e.host)+(null!==n?":"+n:""):"null"},Jw=function(){return Yb(this).scheme+":"},Qw=function(){return Yb(this).username},Zw=function(){return Yb(this).password},ek=function(){var e=Yb(this),t=e.host,n=e.port;return null===t?"":null===n?fw(t):fw(t)+":"+n},tk=function(){var e=Yb(this).host;return null===e?"":fw(e)},nk=function(){var e=Yb(this).port;return null===e?"":String(e)},rk=function(){var e=Yb(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ik=function(){var e=Yb(this).query;return e?"?"+e:""},ok=function(){return Yb(this).searchParams},ak=function(){var e=Yb(this).fragment;return e?"#"+e:""},sk=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(Xd&&om(Yw,{href:sk(Gw,(function(e){var t=Yb(this),n=String(e),r=$w(t,n);if(r)throw TypeError(r);$b(t.searchParams).updateSearchParams(t.query)})),origin:sk(Xw),protocol:sk(Jw,(function(e){var t=Yb(this);$w(t,String(e)+":",Tw)})),username:sk(Qw,(function(e){var t=Yb(this),n=Pm(String(e));if(!ww(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=mw(n[r],gw)}})),password:sk(Zw,(function(e){var t=Yb(this),n=Pm(String(e));if(!ww(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=mw(n[r],gw)}})),host:sk(ek,(function(e){var t=Yb(this);t.cannotBeABaseURL||$w(t,String(e),Mw)})),hostname:sk(tk,(function(e){var t=Yb(this);t.cannotBeABaseURL||$w(t,String(e),Nw)})),port:sk(nk,(function(e){var t=Yb(this);ww(t)||(""==(e=String(e))?t.port=null:$w(t,e,Uw))})),pathname:sk(rk,(function(e){var t=Yb(this);t.cannotBeABaseURL||(t.path=[],$w(t,e+"",qw))})),search:sk(ik,(function(e){var t=Yb(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",$w(t,e,zw)),$b(t.searchParams).updateSearchParams(t.query)})),searchParams:sk(ok),hash:sk(ak,(function(e){var t=Yb(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",$w(t,e,Ww)):t.fragment=null}))}),$p(Yw,"toJSON",(function(){return Gw.call(this)}),{enumerable:!0}),$p(Yw,"toString",(function(){return Gw.call(this)}),{enumerable:!0}),zb){var ck=zb.createObjectURL,lk=zb.revokeObjectURL;ck&&$p(Kw,"createObjectURL",(function(e){return ck.apply(zb,arguments)})),lk&&$p(Kw,"revokeObjectURL",(function(e){return lk.apply(zb,arguments)}))}Jm(Kw,"URL"),Sg({global:!0,forced:!hb,sham:!Xd},{URL:Kw});var uk=Gg.some,fk=uv("some"),hk=Zg("some");Sg({target:"Array",proto:!0,forced:!fk||!hk},{some:function(e){return uk(this,e,arguments.length>1?arguments[1]:void 0)}});var dk="".repeat||function(e){var t=String(op(this)),n="",r=Qp(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},pk=1..toFixed,gk=Math.floor,mk=function(e,t,n){return 0===t?n:t%2==1?mk(e,t-1,n*e):mk(e*e,t/2,n)},vk=pk&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!Gd((function(){pk.call({})}));Sg({target:"Number",proto:!0,forced:vk},{toFixed:function(e){var t,n,r,i,o=function(e){if("number"!=typeof e&&"Number"!=np(e))throw TypeError("Incorrect invocation");return+e}(this),a=Qp(e),s=[0,0,0,0,0,0],c="",l="0",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=gk(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=gk(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+dk.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(c="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*mk(2,69,1))-69)<0?o*mk(2,-t,1):o/mk(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=a;r>=7;)u(1e7,0),r-=7;for(u(mk(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),u(1,1),f(2),l=h()}else u(0,n),u(1<<-t,0),l=h()+dk.call("0",a);return l=a>0?c+((i=l.length)<=a?"0."+dk.call("0",a-i)+l:l.slice(0,i-a)+"."+l.slice(i-a)):c+l}});var yk=Zd.f,bk=function(e){return function(t){for(var n,r=ap(t),i=im(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Xd&&!yk.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},wk={entries:bk(!0),values:bk(!1)},kk=wk.entries;Sg({target:"Object",stat:!0},{entries:function(e){return kk(e)}});var Sk=wk.values;Sg({target:"Object",stat:!0},{values:function(e){return Sk(e)}});var Ek=Math.max,_k=Math.min,Tk=Math.floor,Ak=/\$([$&'`]|\d\d?|<[^>]*>)/g,xk=/\$([$&'`]|\d\d?)/g;dy("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=op(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var l=vp(e),u=String(this),f="function"==typeof r;f||(r=String(r));var h=l.global;if(h){var d=l.unicode;l.lastIndex=0}for(var p=[];;){var g=gy(l,u);if(null===g)break;if(p.push(g),!h)break;""===String(g[0])&&(l.lastIndex=rb(u,eg(l.lastIndex),d))}for(var m,v="",y=0,b=0;b<p.length;b++){g=p[b];for(var w=String(g[0]),k=Ek(_k(Qp(g.index),u.length),0),S=[],E=1;E<g.length;E++)S.push(void 0===(m=g[E])?m:String(m));var _=g.groups;if(f){var T=[w].concat(S,k,u);void 0!==_&&T.push(_);var A=String(r.apply(void 0,T))}else A=s(w,u,k,S,_,r);k>=y&&(v+=u.slice(y,k)+A,y=k+w.length)}return v+u.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=xk;return void 0!==o&&(o=_g(o),l=Ak),t.call(a,l,(function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=Tk(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l}))}}));var Ok=ug.f,Ck={}.toString,Pk="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ik={f:function(e){return Pk&&"[object Window]"==Ck.call(e)?function(e){try{return Ok(e)}catch(e){return Pk.slice()}}(e):Ok(ap(e))}},Rk={f:Ig},jk=bp.f,Lk=Gg.forEach,Mk=Mp("hidden"),Nk=Ig("toPrimitive"),Uk=Wp.set,Fk=Wp.getterFor("Symbol"),Dk=Object.prototype,Bk=Yd.Symbol,qk=Gp("JSON","stringify"),Hk=mp.f,Vk=bp.f,zk=Ik.f,Wk=Zd.f,$k=Pp("symbols"),Kk=Pp("op-symbols"),Yk=Pp("string-to-symbol-registry"),Gk=Pp("symbol-to-string-registry"),Xk=Pp("wks"),Jk=Yd.QObject,Qk=!Jk||!Jk.prototype||!Jk.prototype.findChild,Zk=Xd&&Gd((function(){return 7!=fm(Vk({},"a",{get:function(){return Vk(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Hk(Dk,t);r&&delete Dk[t],Vk(e,t,n),r&&e!==Dk&&Vk(Dk,t,r)}:Vk,eS=function(e,t){var n=$k[e]=fm(Bk.prototype);return Uk(n,{type:"Symbol",tag:e,description:t}),Xd||(n.description=t),n},tS=xg?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof Bk},nS=function(e,t,n){e===Dk&&nS(Kk,t,n),vp(e);var r=cp(t,!0);return vp(n),up($k,r)?(n.enumerable?(up(e,Mk)&&e[Mk][r]&&(e[Mk][r]=!1),n=fm(n,{enumerable:ep(0,!1)})):(up(e,Mk)||Vk(e,Mk,ep(1,{})),e[Mk][r]=!0),Zk(e,r,n)):Vk(e,r,n)},rS=function(e,t){vp(e);var n=ap(t),r=im(n).concat(sS(n));return Lk(r,(function(t){Xd&&!iS.call(n,t)||nS(e,t,n[t])})),e},iS=function(e){var t=cp(e,!0),n=Wk.call(this,t);return!(this===Dk&&up($k,t)&&!up(Kk,t))&&(!(n||!up(this,t)||!up($k,t)||up(this,Mk)&&this[Mk][t])||n)},oS=function(e,t){var n=ap(e),r=cp(t,!0);if(n!==Dk||!up($k,r)||up(Kk,r)){var i=Hk(n,r);return!i||!up($k,r)||up(n,Mk)&&n[Mk][r]||(i.enumerable=!0),i}},aS=function(e){var t=zk(ap(e)),n=[];return Lk(t,(function(e){up($k,e)||up(Np,e)||n.push(e)})),n},sS=function(e){var t=e===Dk,n=zk(t?Kk:ap(e)),r=[];return Lk(n,(function(e){!up($k,e)||t&&!up(Dk,e)||r.push($k[e])})),r};if(Ag||($p((Bk=function(){if(this instanceof Bk)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=jp(e),n=function(e){this===Dk&&n.call(Kk,e),up(this,Mk)&&up(this[Mk],t)&&(this[Mk][t]=!1),Zk(this,t,ep(1,e))};return Xd&&Qk&&Zk(Dk,t,{configurable:!0,set:n}),eS(t,e)}).prototype,"toString",(function(){return Fk(this).tag})),$p(Bk,"withoutSetter",(function(e){return eS(jp(e),e)})),Zd.f=iS,bp.f=nS,mp.f=oS,ug.f=Ik.f=aS,fg.f=sS,Rk.f=function(e){return eS(Ig(e),e)},Xd&&(Vk(Bk.prototype,"description",{configurable:!0,get:function(){return Fk(this).description}}),$p(Dk,"propertyIsEnumerable",iS,{unsafe:!0}))),Sg({global:!0,wrap:!0,forced:!Ag,sham:!Ag},{Symbol:Bk}),Lk(im(Xk),(function(e){!function(e){var t=Kp.Symbol||(Kp.Symbol={});up(t,e)||jk(t,e,{value:Rk.f(e)})}(e)})),Sg({target:"Symbol",stat:!0,forced:!Ag},{for:function(e){var t=String(e);if(up(Yk,t))return Yk[t];var n=Bk(t);return Yk[t]=n,Gk[n]=t,n},keyFor:function(e){if(!tS(e))throw TypeError(e+" is not a symbol");if(up(Gk,e))return Gk[e]},useSetter:function(){Qk=!0},useSimple:function(){Qk=!1}}),Sg({target:"Object",stat:!0,forced:!Ag,sham:!Xd},{create:function(e,t){return void 0===t?fm(e):rS(fm(e),t)},defineProperty:nS,defineProperties:rS,getOwnPropertyDescriptor:oS}),Sg({target:"Object",stat:!0,forced:!Ag},{getOwnPropertyNames:aS,getOwnPropertySymbols:sS}),Sg({target:"Object",stat:!0,forced:Gd((function(){fg.f(1)}))},{getOwnPropertySymbols:function(e){return fg.f(_g(e))}}),qk){var cS=!Ag||Gd((function(){var e=Bk();return"[null]"!=qk([e])||"{}"!=qk({a:e})||"{}"!=qk(Object(e))}));Sg({target:"JSON",stat:!0,forced:cS},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(sp(t)||void 0!==e)&&!tS(e))return Eg(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!tS(t))return t}),i[1]=t,qk.apply(null,i)}})}Bk.prototype[Nk]||wp(Bk.prototype,Nk,Bk.prototype.valueOf),Jm(Bk,"Symbol"),Np[Mk]=!0,Sg({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var lS=mp.f,uS=Gd((function(){lS(1)}));function fS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dS(Object(n),!0).forEach((function(t){hS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Sg({target:"Object",stat:!0,forced:!Xd||uS,sham:!Xd},{getOwnPropertyDescriptor:function(e,t){return lS(ap(e),t)}}),Sg({target:"Object",stat:!0,sham:!Xd},{getOwnPropertyDescriptors:function(e){for(var t,n,r=ap(e),i=mp.f,o=hg(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&Tg(a,t,n);return a}}),dy("match",1,(function(e,t,n){return[function(t){var n=op(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=vp(e),o=String(this);if(!i.global)return gy(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=gy(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=rb(o,eg(i.lastIndex),a)),l++}return 0===l?null:c}]}));var gS={addCSS:!0,thumbWidth:15,watch:!0};function mS(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var vS=function(e){return null!=e?e.constructor:null},yS=function(e,t){return!!(e&&t&&e instanceof t)},bS=function(e){return null==e},wS=function(e){return vS(e)===Object},kS=function(e){return vS(e)===String},SS=function(e){return Array.isArray(e)},ES=function(e){return yS(e,NodeList)},_S=kS,TS=SS,AS=ES,xS=function(e){return yS(e,Element)},OS=function(e){return yS(e,Event)},CS=function(e){return bS(e)||(kS(e)||SS(e)||ES(e))&&!e.length||wS(e)&&!Object.keys(e).length};function PS(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var IS,RS,jS,LS=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),xS(t)?this.element=t:_S(t)&&(this.element=document.querySelector(t)),xS(this.element)&&CS(this.element.rangeTouch)&&(this.config=pS({},gS,{},n),this.init())}return function(e,t,n){t&&fS(e.prototype,t),n&&fS(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!OS(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,c=r.getBoundingClientRect(),l=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*l:50<n&&(n+=2*(n-50)*l),o+PS(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&OS(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(CS(t)||_S(t)?r=Array.from(document.querySelectorAll(_S(t)?t:'input[type="range"]')):xS(t)?r=[t]:AS(t)?r=Array.from(t):TS(t)&&(r=t.filter(xS)),CS(r))return null;var i=pS({},gS,{},n);if(_S(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){xS(n)&&mS(n,t)&&new e(n,i)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),MS=Yd.Promise,NS=Ig("species"),US=function(e){var t=Gp(e),n=bp.f;Xd&&t&&!t[NS]&&n(t,NS,{configurable:!0,get:function(){return this}})},FS=/(iphone|ipod|ipad).*applewebkit/i.test(Lg),DS=Yd.location,BS=Yd.setImmediate,qS=Yd.clearImmediate,HS=Yd.process,VS=Yd.MessageChannel,zS=Yd.Dispatch,WS=0,$S={},KS=function(e){if($S.hasOwnProperty(e)){var t=$S[e];delete $S[e],t()}},YS=function(e){return function(){KS(e)}},GS=function(e){KS(e.data)},XS=function(e){Yd.postMessage(e+"",DS.protocol+"//"+DS.host)};BS&&qS||(BS=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return $S[++WS]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},IS(WS),WS},qS=function(e){delete $S[e]},"process"==np(HS)?IS=function(e){HS.nextTick(YS(e))}:zS&&zS.now?IS=function(e){zS.now(YS(e))}:VS&&!FS?(jS=(RS=new VS).port2,RS.port1.onmessage=GS,IS=$g(jS.postMessage,jS,1)):!Yd.addEventListener||"function"!=typeof postMessage||Yd.importScripts||Gd(XS)?IS="onreadystatechange"in dp("script")?function(e){am.appendChild(dp("script")).onreadystatechange=function(){am.removeChild(this),KS(e)}}:function(e){setTimeout(YS(e),0)}:(IS=XS,Yd.addEventListener("message",GS,!1)));var JS,QS,ZS,eE,tE,nE,rE,iE,oE={set:BS,clear:qS},aE=mp.f,sE=oE.set,cE=Yd.MutationObserver||Yd.WebKitMutationObserver,lE=Yd.process,uE=Yd.Promise,fE="process"==np(lE),hE=aE(Yd,"queueMicrotask"),dE=hE&&hE.value;dE||(JS=function(){var e,t;for(fE&&(e=lE.domain)&&e.exit();QS;){t=QS.fn,QS=QS.next;try{t()}catch(e){throw QS?eE():ZS=void 0,e}}ZS=void 0,e&&e.enter()},fE?eE=function(){lE.nextTick(JS)}:cE&&!FS?(tE=!0,nE=document.createTextNode(""),new cE(JS).observe(nE,{characterData:!0}),eE=function(){nE.data=tE=!tE}):uE&&uE.resolve?(rE=uE.resolve(void 0),iE=rE.then,eE=function(){iE.call(rE,JS)}):eE=function(){sE.call(Yd,JS)});var pE,gE,mE,vE,yE=dE||function(e){var t={fn:e,next:void 0};ZS&&(ZS.next=t),QS||(QS=t,eE()),ZS=t},bE=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Wg(t),this.reject=Wg(n)},wE={f:function(e){return new bE(e)}},kE=function(e,t){if(vp(e),sp(t)&&t.constructor===e)return t;var n=wE.f(e);return(0,n.resolve)(t),n.promise},SE=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},EE=oE.set,_E=Ig("species"),TE=Wp.get,AE=Wp.set,xE=Wp.getterFor("Promise"),OE=MS,CE=Yd.TypeError,PE=Yd.document,IE=Yd.process,RE=Gp("fetch"),jE=wE.f,LE=jE,ME="process"==np(IE),NE=!!(PE&&PE.createEvent&&Yd.dispatchEvent),UE=wg("Promise",(function(){if(!(xp(OE)!==String(OE))){if(66===Fg)return!0;if(!ME&&"function"!=typeof PromiseRejectionEvent)return!0}if(Fg>=51&&/native code/.test(OE))return!1;var e=OE.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[_E]=t,!(e.then((function(){}))instanceof t)})),FE=UE||!Mm((function(e){OE.all(e).catch((function(){}))})),DE=function(e){var t;return!(!sp(e)||"function"!=typeof(t=e.then))&&t},BE=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;yE((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,h=u.resolve,d=u.reject,p=u.domain;try{f?(o||(2===t.rejection&&zE(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===u.promise?d(CE("Promise-chain cycle")):(c=DE(s))?c.call(s,h,d):h(s)):d(i)}catch(e){p&&!l&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&HE(e,t)}))}},qE=function(e,t,n){var r,i;NE?((r=PE.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Yd.dispatchEvent(r)):r={promise:t,reason:n},(i=Yd["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=Yd.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},HE=function(e,t){EE.call(Yd,(function(){var n,r=t.value;if(VE(t)&&(n=SE((function(){ME?IE.emit("unhandledRejection",r,e):qE("unhandledrejection",e,r)})),t.rejection=ME||VE(t)?2:1,n.error))throw n.value}))},VE=function(e){return 1!==e.rejection&&!e.parent},zE=function(e,t){EE.call(Yd,(function(){ME?IE.emit("rejectionHandled",e):qE("rejectionhandled",e,t.value)}))},WE=function(e,t,n,r){return function(i){e(t,n,i,r)}},$E=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,BE(e,t,!0))},KE=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw CE("Promise can't be resolved itself");var i=DE(n);i?yE((function(){var r={done:!1};try{i.call(n,WE(KE,e,r,t),WE($E,e,r,t))}catch(n){$E(e,r,n,t)}})):(t.value=n,t.state=1,BE(e,t,!1))}catch(n){$E(e,{done:!1},n,t)}}};UE&&(OE=function(e){wy(this,OE,"Promise"),Wg(e),pE.call(this);var t=TE(this);try{e(WE(KE,this,t),WE($E,this,t))}catch(e){$E(this,t,e)}},(pE=function(e){AE(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=my(OE.prototype,{then:function(e,t){var n=xE(this),r=jE(tb(this,OE));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=ME?IE.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&BE(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),gE=function(){var e=new pE,t=TE(e);this.promise=e,this.resolve=WE(KE,e,t),this.reject=WE($E,e,t)},wE.f=jE=function(e){return e===OE||e===mE?new gE(e):LE(e)},"function"==typeof MS&&(vE=MS.prototype.then,$p(MS.prototype,"then",(function(e,t){var n=this;return new OE((function(e,t){vE.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof RE&&Sg({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return kE(OE,RE.apply(Yd,arguments))}}))),Sg({global:!0,wrap:!0,forced:UE},{Promise:OE}),Jm(OE,"Promise",!1),US("Promise"),mE=Gp("Promise"),Sg({target:"Promise",stat:!0,forced:UE},{reject:function(e){var t=jE(this);return t.reject.call(void 0,e),t.promise}}),Sg({target:"Promise",stat:!0,forced:UE},{resolve:function(e){return kE(this,e)}}),Sg({target:"Promise",stat:!0,forced:FE},{all:function(e){var t=this,n=jE(t),r=n.resolve,i=n.reject,o=SE((function(){var n=Wg(t.resolve),o=[],a=0,s=1;by(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=jE(t),r=n.reject,i=SE((function(){var i=Wg(t.resolve);by(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var YE,GE=mp.f,XE="".startsWith,JE=Math.min,QE=ty("startsWith"),ZE=!(QE||(YE=GE(String.prototype,"startsWith"),!YE||YE.writable));Sg({target:"String",proto:!0,forced:!ZE&&!QE},{startsWith:function(e){var t=String(op(this));Zv(e);var n=eg(JE(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return XE?XE.call(t,r,n):t.slice(n,n+r.length)===r}});var e_,t_,n_,r_=function(e){return null!=e?e.constructor:null},i_=function(e,t){return Boolean(e&&t&&e instanceof t)},o_=function(e){return null==e},a_=function(e){return r_(e)===Object},s_=function(e){return r_(e)===String},c_=function(e){return r_(e)===Function},l_=function(e){return Array.isArray(e)},u_=function(e){return i_(e,NodeList)},f_=function(e){return o_(e)||(s_(e)||l_(e)||u_(e))&&!e.length||a_(e)&&!Object.keys(e).length},h_=o_,d_=a_,p_=function(e){return r_(e)===Number&&!Number.isNaN(e)},g_=s_,m_=function(e){return r_(e)===Boolean},v_=c_,y_=l_,b_=u_,w_=function(e){return i_(e,Element)},k_=function(e){return i_(e,Event)},S_=function(e){return i_(e,KeyboardEvent)},E_=function(e){return i_(e,TextTrack)||!o_(e)&&s_(e.kind)},__=function(e){return i_(e,Promise)&&c_(e.then)},T_=function(e){if(i_(e,window.URL))return!0;if(!s_(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!f_(new URL(t).hostname)}catch(e){return!1}},A_=f_,x_=(e_=document.createElement("span"),t_={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n_=Object.keys(t_).find((function(e){return void 0!==e_.style[e]})),!!g_(n_)&&t_[n_]);function O_(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var C_={isIE:
+"object"==typeof navigator&&function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")(),i=function(e){try{return!!e()}catch(e){return!0}},o=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,c={f:s&&!a.call({1:2},1)?function(e){var t=s(this,e);return!!t&&t.enumerable}:a},u=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},l={}.toString,f=function(e){return l.call(e).slice(8,-1)},h="".split,p=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?h.call(e,""):Object(e)}:Object,d=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return p(d(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},m=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(e,t){return y.call(e,t)},w=r.document,_=v(w)&&v(w.createElement),E=function(e){return _?w.createElement(e):{}},k=!o&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),S=Object.getOwnPropertyDescriptor,T={f:o?S:function(e,t){if(e=g(e),t=m(t,!0),k)try{return S(e,t)}catch(e){}if(b(e,t))return u(!c.f.call(e,t),e[t])}},x=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},A=Object.defineProperty,O={f:o?A:function(e,t,n){if(x(e),t=m(t,!0),x(n),k)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=o?function(e,t,n){return O.f(e,t,u(1,n))}:function(e,t,n){return e[t]=n,e},I=function(e,t){try{P(r,e,t)}catch(n){r[e]=t}return t},j=r["__core-js_shared__"]||I("__core-js_shared__",{}),C=Function.toString;"function"!=typeof j.inspectSource&&(j.inspectSource=function(e){return C.call(e)});var R,L,N,M=j.inspectSource,U=r.WeakMap,D="function"==typeof U&&/native code/.test(M(U)),F=t((function(e){(e.exports=function(e,t){return j[e]||(j[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,q=Math.random(),H=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++B+q).toString(36)},V=F("keys"),W=function(e){return V[e]||(V[e]=H(e))},z={},Y=r.WeakMap;if(D){var $=new Y,G=$.get,K=$.has,X=$.set;R=function(e,t){return X.call($,e,t),t},L=function(e){return G.call($,e)||{}},N=function(e){return K.call($,e)}}else{var J=W("state");z[J]=!0,R=function(e,t){return P(e,J,t),t},L=function(e){return b(e,J)?e[J]:{}},N=function(e){return b(e,J)}}var Q={set:R,get:L,has:N,enforce:function(e){return N(e)?L(e):R(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=L(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Z=t((function(e){var t=Q.get,n=Q.enforce,i=String(String).split("String");(e.exports=function(e,t,o,a){var s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||b(o,"name")||P(o,"name",t),n(o).source=i.join("string"==typeof t?t:"")),e!==r?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:P(e,t,o)):c?e[t]=o:I(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||M(this)}))})),ee=r,te=function(e){return"function"==typeof e?e:void 0},ne=function(e,t){return arguments.length<2?te(ee[e])||te(r[e]):ee[e]&&ee[e][t]||r[e]&&r[e][t]},re=Math.ceil,ie=Math.floor,oe=function(e){return isNaN(e=+e)?0:(e>0?ie:re)(e)},ae=Math.min,se=function(e){return e>0?ae(oe(e),9007199254740991):0},ce=Math.max,ue=Math.min,le=function(e,t){var n=oe(e);return n<0?ce(n+t,0):ue(n,t)},fe=function(e){return function(t,n,r){var i,o=g(t),a=se(o.length),s=le(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},he={includes:fe(!0),indexOf:fe(!1)},pe=he.indexOf,de=function(e,t){var n,r=g(e),i=0,o=[];for(n in r)!b(z,n)&&b(r,n)&&o.push(n);for(;t.length>i;)b(r,n=t[i++])&&(~pe(o,n)||o.push(n));return o},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ve=ge.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(e){return de(e,ve)}},ye={f:Object.getOwnPropertySymbols},be=ne("Reflect","ownKeys")||function(e){var t=me.f(x(e)),n=ye.f;return n?t.concat(n(e)):t},we=function(e,t){for(var n=be(t),r=O.f,i=T.f,o=0;o<n.length;o++){var a=n[o];b(e,a)||r(e,a,i(t,a))}},_e=/#|\.prototype\./,Ee=function(e,t){var n=Se[ke(e)];return n==xe||n!=Te&&("function"==typeof t?i(t):!!t)},ke=Ee.normalize=function(e){return String(e).replace(_e,".").toLowerCase()},Se=Ee.data={},Te=Ee.NATIVE="N",xe=Ee.POLYFILL="P",Ae=Ee,Oe=T.f,Pe=function(e,t){var n,i,o,a,s,c=e.target,u=e.global,l=e.stat;if(n=u?r:l?r[c]||I(c,{}):(r[c]||{}).prototype)for(i in t){if(a=t[i],o=e.noTargetGet?(s=Oe(n,i))&&s.value:n[i],!Ae(u?i:c+(l?".":"#")+i,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;we(a,o)}(e.sham||o&&o.sham)&&P(a,"sham",!0),Z(n,i,a,e)}},Ie=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},je=function(e,t,n){if(Ie(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Ce=function(e){return Object(d(e))},Re=Array.isArray||function(e){return"Array"==f(e)},Le=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Ne=Le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Me=F("wks"),Ue=r.Symbol,De=Ne?Ue:Ue&&Ue.withoutSetter||H,Fe=function(e){return b(Me,e)||(Le&&b(Ue,e)?Me[e]=Ue[e]:Me[e]=De("Symbol."+e)),Me[e]},Be=Fe("species"),qe=function(e,t){var n;return Re(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Re(n.prototype)?v(n)&&null===(n=n[Be])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},He=[].push,Ve=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,u,l){for(var f,h,d=Ce(s),g=p(d),v=je(c,u,3),m=se(g.length),y=0,b=l||qe,w=t?b(s,m):n?b(s,0):void 0;m>y;y++)if((a||y in g)&&(h=v(f=g[y],y,d),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:He.call(w,f)}else if(i)return!1;return o?-1:r||i?i:w}},We={forEach:Ve(0),map:Ve(1),filter:Ve(2),some:Ve(3),every:Ve(4),find:Ve(5),findIndex:Ve(6)},ze=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))},Ye=Object.defineProperty,$e={},Ge=function(e){throw e},Ke=function(e,t){if(b($e,e))return $e[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,a=b(t,0)?t[0]:Ge,s=b(t,1)?t[1]:void 0;return $e[e]=!!n&&!i((function(){if(r&&!o)return!0;var e={length:-1};r?Ye(e,1,{enumerable:!0,get:Ge}):e[1]=1,n.call(e,a,s)}))},Xe=We.forEach,Je=ze("forEach"),Qe=Ke("forEach"),Ze=Je&&Qe?[].forEach:function(e){return Xe(this,e,arguments.length>1?arguments[1]:void 0)};Pe({target:"Array",proto:!0,forced:[].forEach!=Ze},{forEach:Ze});var et=function(e,t,n,r){try{return r?t(x(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&x(i.call(e)),t}},tt={},nt=Fe("iterator"),rt=Array.prototype,it=function(e){return void 0!==e&&(tt.Array===e||rt[nt]===e)},ot=function(e,t,n){var r=m(t);r in e?O.f(e,r,u(0,n)):e[r]=n},at={};at[Fe("toStringTag")]="z";var st="[object z]"===String(at),ct=Fe("toStringTag"),ut="Arguments"==f(function(){return arguments}()),lt=st?f:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ct))?n:ut?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},ft=Fe("iterator"),ht=function(e){if(null!=e)return e[ft]||e["@@iterator"]||tt[lt(e)]},pt=function(e){var t,n,r,i,o,a,s=Ce(e),c="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=ht(s),p=0;if(f&&(l=je(l,u>2?arguments[2]:void 0,2)),null==h||c==Array&&it(h))for(n=new c(t=se(s.length));t>p;p++)a=f?l(s[p],p):s[p],ot(n,p,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;p++)a=f?et(i,l,[r.value,p],!0):r.value,ot(n,p,a);return n.length=p,n},dt=Fe("iterator"),gt=!1;try{var vt=0,mt={next:function(){return{done:!!vt++}},return:function(){gt=!0}};mt[dt]=function(){return this},Array.from(mt,(function(){throw 2}))}catch(e){}var yt=function(e,t){if(!t&&!gt)return!1;var n=!1;try{var r={};r[dt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},bt=!yt((function(e){Array.from(e)}));Pe({target:"Array",stat:!0,forced:bt},{from:pt});var wt,_t=Object.keys||function(e){return de(e,ge)},Et=o?Object.defineProperties:function(e,t){x(e);for(var n,r=_t(t),i=r.length,o=0;i>o;)O.f(e,n=r[o++],t[n]);return e},kt=ne("document","documentElement"),St=W("IE_PROTO"),Tt=function(){},xt=function(e){return"<script>"+e+"<\/script>"},At=function(){try{wt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;At=wt?function(e){e.write(xt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(wt):((t=E("iframe")).style.display="none",kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xt("document.F=Object")),e.close(),e.F);for(var n=ge.length;n--;)delete At.prototype[ge[n]];return At()};z[St]=!0;var Ot=Object.create||function(e,t){var n;return null!==e?(Tt.prototype=x(e),n=new Tt,Tt.prototype=null,n[St]=e):n=At(),void 0===t?n:Et(n,t)},Pt=Fe("unscopables"),It=Array.prototype;null==It[Pt]&&O.f(It,Pt,{configurable:!0,value:Ot(null)});var jt=function(e){It[Pt][e]=!0},Ct=he.includes,Rt=Ke("indexOf",{ACCESSORS:!0,1:0});Pe({target:"Array",proto:!0,forced:!Rt},{includes:function(e){return Ct(this,e,arguments.length>1?arguments[1]:void 0)}}),jt("includes");var Lt,Nt,Mt=ne("navigator","userAgent")||"",Ut=r.process,Dt=Ut&&Ut.versions,Ft=Dt&&Dt.v8;Ft?Nt=(Lt=Ft.split("."))[0]+Lt[1]:Mt&&(!(Lt=Mt.match(/Edge\/(\d+)/))||Lt[1]>=74)&&(Lt=Mt.match(/Chrome\/(\d+)/))&&(Nt=Lt[1]);var Bt=Nt&&+Nt,qt=Fe("species"),Ht=function(e){return Bt>=51||!i((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Vt=We.map,Wt=Ht("map"),zt=Ke("map");Pe({target:"Array",proto:!0,forced:!Wt||!zt},{map:function(e){return Vt(this,e,arguments.length>1?arguments[1]:void 0)}});var Yt=i((function(){_t(1)}));Pe({target:"Object",stat:!0,forced:Yt},{keys:function(e){return _t(Ce(e))}});var $t=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return x(n),function(e){if(!v(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Gt=function(e,t,n){var r,i;return $t&&"function"==typeof(r=t.constructor)&&r!==n&&v(i=r.prototype)&&i!==n.prototype&&$t(e,i),e},Kt=Fe("match"),Xt=function(e){var t;return v(e)&&(void 0!==(t=e[Kt])?!!t:"RegExp"==f(e))},Jt=function(){var e=x(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Qt(e,t){return RegExp(e,t)}var Zt={UNSUPPORTED_Y:i((function(){var e=Qt("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:i((function(){var e=Qt("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},en=Fe("species"),tn=function(e){var t=ne(e),n=O.f;o&&t&&!t[en]&&n(t,en,{configurable:!0,get:function(){return this}})},nn=O.f,rn=me.f,on=Q.set,an=Fe("match"),sn=r.RegExp,cn=sn.prototype,un=/a/g,ln=/a/g,fn=new sn(un)!==un,hn=Zt.UNSUPPORTED_Y;if(o&&Ae("RegExp",!fn||hn||i((function(){return ln[an]=!1,sn(un)!=un||sn(ln)==ln||"/a/i"!=sn(un,"i")})))){for(var pn=function(e,t){var n,r=this instanceof pn,i=Xt(e),o=void 0===t;if(!r&&i&&e.constructor===pn&&o)return e;fn?i&&!o&&(e=e.source):e instanceof pn&&(o&&(t=Jt.call(e)),e=e.source),hn&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=Gt(fn?new sn(e,t):sn(e,t),r?this:cn,pn);return hn&&n&&on(a,{sticky:n}),a},dn=function(e){e in pn||nn(pn,e,{configurable:!0,get:function(){return sn[e]},set:function(t){sn[e]=t}})},gn=rn(sn),vn=0;gn.length>vn;)dn(gn[vn++]);cn.constructor=pn,pn.prototype=cn,Z(r,"RegExp",pn)}tn("RegExp");var mn=RegExp.prototype.exec,yn=String.prototype.replace,bn=mn,wn=function(){var e=/a/,t=/b*/g;return mn.call(e,"a"),mn.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),_n=Zt.UNSUPPORTED_Y||Zt.BROKEN_CARET,En=void 0!==/()??/.exec("")[1];(wn||En||_n)&&(bn=function(e){var t,n,r,i,o=this,a=_n&&o.sticky,s=Jt.call(o),c=o.source,u=0,l=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),l=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),n=new RegExp("^(?:"+c+")",s)),En&&(n=new RegExp("^"+c+"$(?!\\s)",s)),wn&&(t=o.lastIndex),r=mn.call(a?n:o,l),a?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:wn&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),En&&r&&r.length>1&&yn.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var kn=bn;Pe({target:"RegExp",proto:!0,forced:/./.exec!==kn},{exec:kn});var Sn=RegExp.prototype,Tn=Sn.toString,xn=i((function(){return"/a/b"!=Tn.call({source:"a",flags:"b"})})),An="toString"!=Tn.name;(xn||An)&&Z(RegExp.prototype,"toString",(function(){var e=x(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Sn)?Jt.call(e):n)}),{unsafe:!0});var On=function(e){if(Xt(e))throw TypeError("The method doesn't accept regular expressions");return e},Pn=Fe("match");Pe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Pn]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(d(this)).indexOf(On(e),arguments.length>1?arguments[1]:void 0)}});var In,jn,Cn,Rn=function(e){return function(t,n){var r,i,o=String(d(t)),a=oe(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Ln={codeAt:Rn(!1),charAt:Rn(!0)},Nn=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mn=W("IE_PROTO"),Un=Object.prototype,Dn=Nn?Object.getPrototypeOf:function(e){return e=Ce(e),b(e,Mn)?e[Mn]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Un:null},Fn=Fe("iterator"),Bn=!1;[].keys&&("next"in(Cn=[].keys())?(jn=Dn(Dn(Cn)))!==Object.prototype&&(In=jn):Bn=!0),null==In&&(In={}),b(In,Fn)||P(In,Fn,(function(){return this}));var qn={IteratorPrototype:In,BUGGY_SAFARI_ITERATORS:Bn},Hn=O.f,Vn=Fe("toStringTag"),Wn=function(e,t,n){e&&!b(e=n?e:e.prototype,Vn)&&Hn(e,Vn,{configurable:!0,value:t})},zn=qn.IteratorPrototype,Yn=function(){return this},$n=function(e,t,n){var r=t+" Iterator";return e.prototype=Ot(zn,{next:u(1,n)}),Wn(e,r,!1),tt[r]=Yn,e},Gn=qn.IteratorPrototype,Kn=qn.BUGGY_SAFARI_ITERATORS,Xn=Fe("iterator"),Jn=function(){return this},Qn=function(e,t,n,r,i,o,a){$n(n,t,r);var s,c,u,l=function(e){if(e===i&&g)return g;if(!Kn&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[Xn]||p["@@iterator"]||i&&p[i],g=!Kn&&d||l(i),v="Array"==t&&p.entries||d;if(v&&(s=Dn(v.call(new e)),Gn!==Object.prototype&&s.next&&(Dn(s)!==Gn&&($t?$t(s,Gn):"function"!=typeof s[Xn]&&P(s,Xn,Jn)),Wn(s,f,!0))),"values"==i&&d&&"values"!==d.name&&(h=!0,g=function(){return d.call(this)}),p[Xn]!==g&&P(p,Xn,g),tt[t]=g,i)if(c={values:l("values"),keys:o?g:l("keys"),entries:l("entries")},a)for(u in c)(Kn||h||!(u in p))&&Z(p,u,c[u]);else Pe({target:t,proto:!0,forced:Kn||h},c);return c},Zn=Ln.charAt,er=Q.set,tr=Q.getterFor("String Iterator");Qn(String,"String",(function(e){er(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=tr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Zn(n,r),t.index+=e.length,{value:e,done:!1})}));var nr={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 rr in nr){var ir=r[rr],or=ir&&ir.prototype;if(or&&or.forEach!==Ze)try{P(or,"forEach",Ze)}catch(e){or.forEach=Ze}}var ar=document.getElementById("container");document.addEventListener("focusout",(function(e){e.target.classList&&!ar.contains(e.target)&&e.target.classList.remove("tab-focus")})),document.addEventListener("keydown",(function(e){9===e.keyCode&&setTimeout((function(){var e=document.activeElement;e&&e.classList&&!ar.contains(e)&&e.classList.add("tab-focus")}),10)})),function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var sr=me.f,cr={}.toString,ur="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lr={f:function(e){return ur&&"[object Window]"==cr.call(e)?function(e){try{return sr(e)}catch(e){return ur.slice()}}(e):sr(g(e))}},fr={f:Fe},hr=O.f,pr=function(e){var t=ee.Symbol||(ee.Symbol={});b(t,e)||hr(t,e,{value:fr.f(e)})},dr=We.forEach,gr=W("hidden"),vr=Fe("toPrimitive"),mr=Q.set,yr=Q.getterFor("Symbol"),br=Object.prototype,wr=r.Symbol,_r=ne("JSON","stringify"),Er=T.f,kr=O.f,Sr=lr.f,Tr=c.f,xr=F("symbols"),Ar=F("op-symbols"),Or=F("string-to-symbol-registry"),Pr=F("symbol-to-string-registry"),Ir=F("wks"),jr=r.QObject,Cr=!jr||!jr.prototype||!jr.prototype.findChild,Rr=o&&i((function(){return 7!=Ot(kr({},"a",{get:function(){return kr(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Er(br,t);r&&delete br[t],kr(e,t,n),r&&e!==br&&kr(br,t,r)}:kr,Lr=function(e,t){var n=xr[e]=Ot(wr.prototype);return mr(n,{type:"Symbol",tag:e,description:t}),o||(n.description=t),n},Nr=Ne?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof wr},Mr=function(e,t,n){e===br&&Mr(Ar,t,n),x(e);var r=m(t,!0);return x(n),b(xr,r)?(n.enumerable?(b(e,gr)&&e[gr][r]&&(e[gr][r]=!1),n=Ot(n,{enumerable:u(0,!1)})):(b(e,gr)||kr(e,gr,u(1,{})),e[gr][r]=!0),Rr(e,r,n)):kr(e,r,n)},Ur=function(e,t){x(e);var n=g(t),r=_t(n).concat(qr(n));return dr(r,(function(t){o&&!Dr.call(n,t)||Mr(e,t,n[t])})),e},Dr=function(e){var t=m(e,!0),n=Tr.call(this,t);return!(this===br&&b(xr,t)&&!b(Ar,t))&&(!(n||!b(this,t)||!b(xr,t)||b(this,gr)&&this[gr][t])||n)},Fr=function(e,t){var n=g(e),r=m(t,!0);if(n!==br||!b(xr,r)||b(Ar,r)){var i=Er(n,r);return!i||!b(xr,r)||b(n,gr)&&n[gr][r]||(i.enumerable=!0),i}},Br=function(e){var t=Sr(g(e)),n=[];return dr(t,(function(e){b(xr,e)||b(z,e)||n.push(e)})),n},qr=function(e){var t=e===br,n=Sr(t?Ar:g(e)),r=[];return dr(n,(function(e){!b(xr,e)||t&&!b(br,e)||r.push(xr[e])})),r};if(Le||(Z((wr=function(){if(this instanceof wr)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=H(e),n=function(e){this===br&&n.call(Ar,e),b(this,gr)&&b(this[gr],t)&&(this[gr][t]=!1),Rr(this,t,u(1,e))};return o&&Cr&&Rr(br,t,{configurable:!0,set:n}),Lr(t,e)}).prototype,"toString",(function(){return yr(this).tag})),Z(wr,"withoutSetter",(function(e){return Lr(H(e),e)})),c.f=Dr,O.f=Mr,T.f=Fr,me.f=lr.f=Br,ye.f=qr,fr.f=function(e){return Lr(Fe(e),e)},o&&(kr(wr.prototype,"description",{configurable:!0,get:function(){return yr(this).description}}),Z(br,"propertyIsEnumerable",Dr,{unsafe:!0}))),Pe({global:!0,wrap:!0,forced:!Le,sham:!Le},{Symbol:wr}),dr(_t(Ir),(function(e){pr(e)})),Pe({target:"Symbol",stat:!0,forced:!Le},{for:function(e){var t=String(e);if(b(Or,t))return Or[t];var n=wr(t);return Or[t]=n,Pr[n]=t,n},keyFor:function(e){if(!Nr(e))throw TypeError(e+" is not a symbol");if(b(Pr,e))return Pr[e]},useSetter:function(){Cr=!0},useSimple:function(){Cr=!1}}),Pe({target:"Object",stat:!0,forced:!Le,sham:!o},{create:function(e,t){return void 0===t?Ot(e):Ur(Ot(e),t)},defineProperty:Mr,defineProperties:Ur,getOwnPropertyDescriptor:Fr}),Pe({target:"Object",stat:!0,forced:!Le},{getOwnPropertyNames:Br,getOwnPropertySymbols:qr}),Pe({target:"Object",stat:!0,forced:i((function(){ye.f(1)}))},{getOwnPropertySymbols:function(e){return ye.f(Ce(e))}}),_r){var Hr=!Le||i((function(){var e=wr();return"[null]"!=_r([e])||"{}"!=_r({a:e})||"{}"!=_r(Object(e))}));Pe({target:"JSON",stat:!0,forced:Hr},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(v(t)||void 0!==e)&&!Nr(e))return Re(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!Nr(t))return t}),i[1]=t,_r.apply(null,i)}})}wr.prototype[vr]||P(wr.prototype,vr,wr.prototype.valueOf),Wn(wr,"Symbol"),z[gr]=!0;var Vr=O.f,Wr=r.Symbol;if(o&&"function"==typeof Wr&&(!("description"in Wr.prototype)||void 0!==Wr().description)){var zr={},Yr=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Yr?new Wr(e):void 0===e?Wr():Wr(e);return""===e&&(zr[t]=!0),t};we(Yr,Wr);var $r=Yr.prototype=Wr.prototype;$r.constructor=Yr;var Gr=$r.toString,Kr="Symbol(test)"==String(Wr("test")),Xr=/^Symbol\((.*)\)[^)]+$/;Vr($r,"description",{configurable:!0,get:function(){var e=v(this)?this.valueOf():this,t=Gr.call(e);if(b(zr,e))return"";var n=Kr?t.slice(7,-1):t.replace(Xr,"$1");return""===n?void 0:n}}),Pe({global:!0,forced:!0},{Symbol:Yr})}pr("iterator");var Jr=he.indexOf,Qr=[].indexOf,Zr=!!Qr&&1/[1].indexOf(1,-0)<0,ei=ze("indexOf"),ti=Ke("indexOf",{ACCESSORS:!0,1:0});Pe({target:"Array",proto:!0,forced:Zr||!ei||!ti},{indexOf:function(e){return Zr?Qr.apply(this,arguments)||0:Jr(this,e,arguments.length>1?arguments[1]:void 0)}});var ni=Q.set,ri=Q.getterFor("Array Iterator"),ii=Qn(Array,"Array",(function(e,t){ni(this,{type:"Array Iterator",target:g(e),index:0,kind:t})}),(function(){var e=ri(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");tt.Arguments=tt.Array,jt("keys"),jt("values"),jt("entries");var oi=[].join,ai=p!=Object,si=ze("join",",");Pe({target:"Array",proto:!0,forced:ai||!si},{join:function(e){return oi.call(g(this),void 0===e?",":e)}});var ci=Ht("slice"),ui=Ke("slice",{ACCESSORS:!0,0:0,1:2}),li=Fe("species"),fi=[].slice,hi=Math.max;Pe({target:"Array",proto:!0,forced:!ci||!ui},{slice:function(e,t){var n,r,i,o=g(this),a=se(o.length),s=le(e,a),c=le(void 0===t?a:t,a);if(Re(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Re(n.prototype)?v(n)&&null===(n=n[li])&&(n=void 0):n=void 0,n===Array||void 0===n))return fi.call(o,s,c);for(r=new(void 0===n?Array:n)(hi(c-s,0)),i=0;s<c;s++,i++)s in o&&ot(r,i,o[s]);return r.length=i,r}});var pi=st?{}.toString:function(){return"[object "+lt(this)+"]"};st||Z(Object.prototype,"toString",pi,{unsafe:!0});var di=Fe("species"),gi=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),vi="$0"==="a".replace(/./,"$0"),mi=Fe("replace"),yi=!!/./[mi]&&""===/./[mi]("a","$0"),bi=!i((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wi=function(e,t,n,r){var o=Fe(e),a=!i((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),s=a&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[di]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!a||!s||"replace"===e&&(!gi||!vi||yi)||"split"===e&&!bi){var c=/./[o],u=n(o,""[e],(function(e,t,n,r,i){return t.exec===kn?a&&!i?{done:!0,value:c.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:vi,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:yi}),l=u[0],f=u[1];Z(String.prototype,e,l),Z(RegExp.prototype,o,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&P(RegExp.prototype[o],"sham",!0)},_i=Ln.charAt,Ei=function(e,t,n){return t+(n?_i(e,t).length:1)},ki=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==f(e))throw TypeError("RegExp#exec called on incompatible receiver");return kn.call(e,t)},Si=Math.max,Ti=Math.min,xi=Math.floor,Ai=/\$([$&'`]|\d\d?|<[^>]*>)/g,Oi=/\$([$&'`]|\d\d?)/g;wi("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=d(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var u=x(e),l=String(this),f="function"==typeof r;f||(r=String(r));var h=u.global;if(h){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var g=ki(u,l);if(null===g)break;if(d.push(g),!h)break;""===String(g[0])&&(u.lastIndex=Ei(l,se(u.lastIndex),p))}for(var v,m="",y=0,b=0;b<d.length;b++){g=d[b];for(var w=String(g[0]),_=Si(Ti(oe(g.index),l.length),0),E=[],k=1;k<g.length;k++)E.push(void 0===(v=g[k])?v:String(v));var S=g.groups;if(f){var T=[w].concat(E,_,l);void 0!==S&&T.push(S);var A=String(r.apply(void 0,T))}else A=s(w,l,_,E,S,r);_>=y&&(m+=l.slice(y,_)+A,y=_+w.length)}return m+l.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,u=Oi;return void 0!==o&&(o=Ce(o),u=Ai),t.call(a,u,(function(t,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":u=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>c){var f=xi(l/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}u=i[l-1]}return void 0===u?"":u}))}}));var Pi=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};wi("search",1,(function(e,t,n){return[function(t){var n=d(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=x(e),o=String(this),a=i.lastIndex;Pi(a,0)||(i.lastIndex=0);var s=ki(i,o);return Pi(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var Ii=Fe("species"),ji=function(e,t){var n,r=x(e).constructor;return void 0===r||null==(n=x(r)[Ii])?t:Ie(n)},Ci=[].push,Ri=Math.min,Li=!i((function(){return!RegExp(4294967295,"y")}));wi("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(d(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!Xt(e))return t.call(r,e,i);for(var o,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,u+"g");(o=kn.call(f,r))&&!((a=f.lastIndex)>l&&(c.push(r.slice(l,o.index)),o.length>1&&o.index<r.length&&Ci.apply(c,o.slice(1)),s=o[0].length,l=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return l===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(l)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=d(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=x(e),s=String(this),c=ji(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Li?"y":"g"),f=new c(Li?a:"^(?:"+a.source+")",l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===ki(f,s)?[s]:[];for(var p=0,d=0,g=[];d<s.length;){f.lastIndex=Li?d:0;var v,m=ki(f,Li?s:s.slice(d));if(null===m||(v=Ri(se(f.lastIndex+(Li?0:d)),s.length))===p)d=Ei(s,d,u);else{if(g.push(s.slice(p,d)),g.length===h)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===h)return g;d=p=v}}return g.push(s.slice(p)),g}]}),!Li);var Ni=Fe("iterator"),Mi=Fe("toStringTag"),Ui=ii.values;for(var Di in nr){var Fi=r[Di],Bi=Fi&&Fi.prototype;if(Bi){if(Bi[Ni]!==Ui)try{P(Bi,Ni,Ui)}catch(e){Bi[Ni]=Ui}if(Bi[Mi]||P(Bi,Mi,Di),nr[Di])for(var qi in ii)if(Bi[qi]!==ii[qi])try{P(Bi,qi,ii[qi])}catch(e){Bi[qi]=ii[qi]}}}var Hi=Fe("iterator"),Vi=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Hi]||"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"!==n||"x"!==new URL("http://x",void 0).host})),Wi=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},zi=Object.assign,Yi=Object.defineProperty,$i=!zi||i((function(){if(o&&1!==zi({b:1},zi(Yi({},"a",{enumerable:!0,get:function(){Yi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=zi({},e)[n]||"abcdefghijklmnopqrst"!=_t(zi({},t)).join("")}))?function(e,t){for(var n=Ce(e),r=arguments.length,i=1,a=ye.f,s=c.f;r>i;)for(var u,l=p(arguments[i++]),f=a?_t(l).concat(a(l)):_t(l),h=f.length,d=0;h>d;)u=f[d++],o&&!s.call(l,u)||(n[u]=l[u]);return n}:zi,Gi=/[^\0-\u007E]/,Ki=/[.\u3002\uFF0E\uFF61]/g,Xi="Overflow: input needs wider integers to process",Ji=Math.floor,Qi=String.fromCharCode,Zi=function(e){return e+22+75*(e<26)},eo=function(e,t,n){var r=0;for(e=n?Ji(e/700):e>>1,e+=Ji(e/t);e>455;r+=36)e=Ji(e/35);return Ji(r+36*e/(e+38))},to=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Qi(n));var c=r.length,u=c;for(c&&r.push("-");u<i;){var l=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<l&&(l=n);var f=u+1;if(l-o>Ji((2147483647-a)/f))throw RangeError(Xi);for(a+=(l-o)*f,o=l,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(Xi);if(n==o){for(var h=a,p=36;;p+=36){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,v=36-d;r.push(Qi(Zi(d+g%v))),h=Ji(g/v)}r.push(Qi(Zi(h))),s=eo(a,f,u==c),a=0,++u}}++a,++o}return r.join("")},no=function(e,t,n){for(var r in t)Z(e,r,t[r],n);return e},ro=function(e){var t=ht(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return x(t.call(e))},io=ne("fetch"),oo=ne("Headers"),ao=Fe("iterator"),so=Q.set,co=Q.getterFor("URLSearchParams"),uo=Q.getterFor("URLSearchParamsIterator"),lo=/\+/g,fo=Array(4),ho=function(e){return fo[e-1]||(fo[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},po=function(e){try{return decodeURIComponent(e)}catch(t){return e}},go=function(e){var t=e.replace(lo," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(ho(n--),po);return t}},vo=/[!'()~]|%20/g,mo={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},yo=function(e){return mo[e]},bo=function(e){return encodeURIComponent(e).replace(vo,yo)},wo=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:go(r.shift()),value:go(r.join("="))}))},_o=function(e){this.entries.length=0,wo(this.entries,e)},Eo=function(e,t){if(e<t)throw TypeError("Not enough arguments")},ko=$n((function(e,t){so(this,{type:"URLSearchParamsIterator",iterator:ro(co(e).entries),kind:t})}),"Iterator",(function(){var e=uo(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),So=function(){Wi(this,So,"URLSearchParams");var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(so(l,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:_o}),void 0!==u)if(v(u))if("function"==typeof(e=ht(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(o=(i=ro(x(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in u)b(u,c)&&f.push({key:c,value:u[c]+""});else wo(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},To=So.prototype;no(To,{append:function(e,t){Eo(arguments.length,2);var n=co(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){Eo(arguments.length,1);for(var t=co(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){Eo(arguments.length,1);for(var t=co(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Eo(arguments.length,1);for(var t=co(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){Eo(arguments.length,1);for(var t=co(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Eo(arguments.length,1);for(var n,r=co(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=co(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=co(this).entries,r=je(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ko(this,"keys")},values:function(){return new ko(this,"values")},entries:function(){return new ko(this,"entries")}},{enumerable:!0}),Z(To,ao,To.entries),Z(To,"toString",(function(){for(var e,t=co(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(bo(e.key)+"="+bo(e.value));return n.join("&")}),{enumerable:!0}),Wn(So,"URLSearchParams"),Pe({global:!0,forced:!Vi},{URLSearchParams:So}),Vi||"function"!=typeof io||"function"!=typeof oo||Pe({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,"URLSearchParams"===lt(n)&&((r=t.headers?new oo(t.headers):new oo).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Ot(t,{body:u(0,String(n)),headers:u(0,r)}))),i.push(t)),io.apply(this,i)}});var xo,Ao={URLSearchParams:So,getState:co},Oo=Ln.codeAt,Po=r.URL,Io=Ao.URLSearchParams,jo=Ao.getState,Co=Q.set,Ro=Q.getterFor("URL"),Lo=Math.floor,No=Math.pow,Mo=/[A-Za-z]/,Uo=/[\d+\-.A-Za-z]/,Do=/\d/,Fo=/^(0x|0X)/,Bo=/^[0-7]+$/,qo=/^\d+$/,Ho=/^[\dA-Fa-f]+$/,Vo=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Wo=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,zo=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Yo=/[\u0009\u000A\u000D]/g,$o=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Ko(t.slice(1,-1))))return"Invalid host";e.host=n}else if(ra(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(Ki,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Gi.test(n)?"xn--"+to(n):n);return r.join(".")}(t),Vo.test(t))return"Invalid host";if(null===(n=Go(t)))return"Invalid host";e.host=n}else{if(Wo.test(t))return"Invalid host";for(n="",r=pt(t),i=0;i<r.length;i++)n+=ta(r[i],Jo);e.host=n}},Go=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=Fo.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?qo:8==o?Bo:Ho).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=No(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*No(256,3-r);return s},Ko=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=n=0;n<4&&Ho.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!Do.test(h()))return;for(;Do.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},Xo=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Lo(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Jo={},Qo=$i({},Jo,{" ":1,'"':1,"<":1,">":1,"`":1}),Zo=$i({},Qo,{"#":1,"?":1,"{":1,"}":1}),ea=$i({},Zo,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ta=function(e,t){var n=Oo(e,0);return n>32&&n<127&&!b(t,e)?e:encodeURIComponent(e)},na={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ra=function(e){return b(na,e.scheme)},ia=function(e){return""!=e.username||""!=e.password},oa=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},aa=function(e,t){var n;return 2==e.length&&Mo.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},sa=function(e){var t;return e.length>1&&aa(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ca=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&aa(t[0],!0)||t.pop()},ua=function(e){return"."===e||"%2e"===e.toLowerCase()},la={},fa={},ha={},pa={},da={},ga={},va={},ma={},ya={},ba={},wa={},_a={},Ea={},ka={},Sa={},Ta={},xa={},Aa={},Oa={},Pa={},Ia={},ja=function(e,t,n,r){var i,o,a,s,c,u=n||la,l=0,f="",h=!1,p=!1,d=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(zo,"")),t=t.replace(Yo,""),i=pt(t);l<=i.length;){switch(o=i[l],u){case la:if(!o||!Mo.test(o)){if(n)return"Invalid scheme";u=ha;continue}f+=o.toLowerCase(),u=fa;break;case fa:if(o&&(Uo.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",u=ha,l=0;continue}if(n&&(ra(e)!=b(na,f)||"file"==f&&(ia(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(ra(e)&&na[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=ka:ra(e)&&r&&r.scheme==e.scheme?u=pa:ra(e)?u=ma:"/"==i[l+1]?(u=da,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Oa)}break;case ha:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ia;break}u="file"==r.scheme?ka:ga;continue;case pa:if("/"!=o||"/"!=i[l+1]){u=ga;continue}u=ya,l++;break;case da:if("/"==o){u=ba;break}u=Aa;continue;case ga:if(e.scheme=r.scheme,o==xo)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&ra(e))u=va;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",u=Pa;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),u=Aa;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=Ia}break;case va:if(!ra(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,u=Aa;continue}u=ba}else u=ya;break;case ma:if(u=ya,"/"!=o||"/"!=f.charAt(l+1))continue;l++;break;case ya:if("/"!=o&&"\\"!=o){u=ba;continue}break;case ba:if("@"==o){h&&(f="%40"+f),h=!0,a=pt(f);for(var g=0;g<a.length;g++){var v=a[g];if(":"!=v||d){var m=ta(v,ea);d?e.password+=m:e.username+=m}else d=!0}f=""}else if(o==xo||"/"==o||"?"==o||"#"==o||"\\"==o&&ra(e)){if(h&&""==f)return"Invalid authority";l-=pt(f).length+1,f="",u=wa}else f+=o;break;case wa:case _a:if(n&&"file"==e.scheme){u=Ta;continue}if(":"!=o||p){if(o==xo||"/"==o||"?"==o||"#"==o||"\\"==o&&ra(e)){if(ra(e)&&""==f)return"Invalid host";if(n&&""==f&&(ia(e)||null!==e.port))return;if(s=$o(e,f))return s;if(f="",u=xa,n)return;continue}"["==o?p=!0:"]"==o&&(p=!1),f+=o}else{if(""==f)return"Invalid host";if(s=$o(e,f))return s;if(f="",u=Ea,n==_a)return}break;case Ea:if(!Do.test(o)){if(o==xo||"/"==o||"?"==o||"#"==o||"\\"==o&&ra(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=ra(e)&&y===na[e.scheme]?null:y,f=""}if(n)return;u=xa;continue}return"Invalid port"}f+=o;break;case ka:if(e.scheme="file","/"==o||"\\"==o)u=Sa;else{if(!r||"file"!=r.scheme){u=Aa;continue}if(o==xo)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",u=Pa;else{if("#"!=o){sa(i.slice(l).join(""))||(e.host=r.host,e.path=r.path.slice(),ca(e)),u=Aa;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=Ia}}break;case Sa:if("/"==o||"\\"==o){u=Ta;break}r&&"file"==r.scheme&&!sa(i.slice(l).join(""))&&(aa(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),u=Aa;continue;case Ta:if(o==xo||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&aa(f))u=Aa;else if(""==f){if(e.host="",n)return;u=xa}else{if(s=$o(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",u=xa}continue}f+=o;break;case xa:if(ra(e)){if(u=Aa,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=xo&&(u=Aa,"/"!=o))continue}else e.fragment="",u=Ia;else e.query="",u=Pa;break;case Aa:if(o==xo||"/"==o||"\\"==o&&ra(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(ca(e),"/"==o||"\\"==o&&ra(e)||e.path.push("")):ua(f)?"/"==o||"\\"==o&&ra(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&aa(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==xo||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",u=Pa):"#"==o&&(e.fragment="",u=Ia)}else f+=ta(o,Zo);break;case Oa:"?"==o?(e.query="",u=Pa):"#"==o?(e.fragment="",u=Ia):o!=xo&&(e.path[0]+=ta(o,Jo));break;case Pa:n||"#"!=o?o!=xo&&("'"==o&&ra(e)?e.query+="%27":e.query+="#"==o?"%23":ta(o,Jo)):(e.fragment="",u=Ia);break;case Ia:o!=xo&&(e.fragment+=ta(o,Qo))}l++}},Ca=function(e){var t,n,r=Wi(this,Ca,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(e),s=Co(r,{type:"URL"});if(void 0!==i)if(i instanceof Ca)t=Ro(i);else if(n=ja(t={},String(i)))throw TypeError(n);if(n=ja(s,a,null,t))throw TypeError(n);var c=s.searchParams=new Io,u=jo(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},o||(r.href=La.call(r),r.origin=Na.call(r),r.protocol=Ma.call(r),r.username=Ua.call(r),r.password=Da.call(r),r.host=Fa.call(r),r.hostname=Ba.call(r),r.port=qa.call(r),r.pathname=Ha.call(r),r.search=Va.call(r),r.searchParams=Wa.call(r),r.hash=za.call(r))},Ra=Ca.prototype,La=function(){var e=Ro(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",ia(e)&&(u+=n+(r?":"+r:"")+"@"),u+=Xo(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Na=function(){var e=Ro(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&ra(e)?t+"://"+Xo(e.host)+(null!==n?":"+n:""):"null"},Ma=function(){return Ro(this).scheme+":"},Ua=function(){return Ro(this).username},Da=function(){return Ro(this).password},Fa=function(){var e=Ro(this),t=e.host,n=e.port;return null===t?"":null===n?Xo(t):Xo(t)+":"+n},Ba=function(){var e=Ro(this).host;return null===e?"":Xo(e)},qa=function(){var e=Ro(this).port;return null===e?"":String(e)},Ha=function(){var e=Ro(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Va=function(){var e=Ro(this).query;return e?"?"+e:""},Wa=function(){return Ro(this).searchParams},za=function(){var e=Ro(this).fragment;return e?"#"+e:""},Ya=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&Et(Ra,{href:Ya(La,(function(e){var t=Ro(this),n=String(e),r=ja(t,n);if(r)throw TypeError(r);jo(t.searchParams).updateSearchParams(t.query)})),origin:Ya(Na),protocol:Ya(Ma,(function(e){var t=Ro(this);ja(t,String(e)+":",la)})),username:Ya(Ua,(function(e){var t=Ro(this),n=pt(String(e));if(!oa(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=ta(n[r],ea)}})),password:Ya(Da,(function(e){var t=Ro(this),n=pt(String(e));if(!oa(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=ta(n[r],ea)}})),host:Ya(Fa,(function(e){var t=Ro(this);t.cannotBeABaseURL||ja(t,String(e),wa)})),hostname:Ya(Ba,(function(e){var t=Ro(this);t.cannotBeABaseURL||ja(t,String(e),_a)})),port:Ya(qa,(function(e){var t=Ro(this);oa(t)||(""==(e=String(e))?t.port=null:ja(t,e,Ea))})),pathname:Ya(Ha,(function(e){var t=Ro(this);t.cannotBeABaseURL||(t.path=[],ja(t,e+"",xa))})),search:Ya(Va,(function(e){var t=Ro(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ja(t,e,Pa)),jo(t.searchParams).updateSearchParams(t.query)})),searchParams:Ya(Wa),hash:Ya(za,(function(e){var t=Ro(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ja(t,e,Ia)):t.fragment=null}))}),Z(Ra,"toJSON",(function(){return La.call(this)}),{enumerable:!0}),Z(Ra,"toString",(function(){return La.call(this)}),{enumerable:!0}),Po){var $a=Po.createObjectURL,Ga=Po.revokeObjectURL;$a&&Z(Ca,"createObjectURL",(function(e){return $a.apply(Po,arguments)})),Ga&&Z(Ca,"revokeObjectURL",(function(e){return Ga.apply(Po,arguments)}))}function Ka(e){return(Ka="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ja(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qa(e,t,n){return t&&Ja(e.prototype,t),n&&Ja(e,n),e}function Za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){Za(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ns(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||is(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rs(e){return function(e){if(Array.isArray(e))return os(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||is(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function is(e,t){if(e){if("string"==typeof e)return os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?os(e,t):void 0}}function os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Wn(Ca,"URL"),Pe({global:!0,forced:!Vi,sham:!o},{URL:Ca}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(e){return!1}})()||function(){var i=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=Ka(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach((function(e,t){r.append(t,e)}))}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var i=0;i<t.length;i++){var o=t[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search),s=!0,c=!0,u=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(c=!1,u.search=a.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,c&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),pr("asyncIterator");var as=Fe("isConcatSpreadable"),ss=Bt>=51||!i((function(){var e=[];return e[as]=!1,e.concat()[0]!==e})),cs=Ht("concat"),us=function(e){if(!v(e))return!1;var t=e[as];return void 0!==t?!!t:Re(e)};Pe({target:"Array",proto:!0,forced:!ss||!cs},{concat:function(e){var t,n,r,i,o,a=Ce(this),s=qe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],us(o)){if(c+(i=se(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&ot(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ot(s,c++,o)}return s.length=c,s}}),Pe({target:"Object",stat:!0,forced:Object.assign!==$i},{assign:$i});var ls=T.f,fs=i((function(){ls(1)}));Pe({target:"Object",stat:!0,forced:!o||fs,sham:!o},{getOwnPropertyDescriptor:function(e,t){return ls(g(e),t)}});var hs,ps,ds,gs=r.Promise,vs=t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,u,l,f,h,p=je(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=ht(e)))throw TypeError("Target is not iterable");if(it(s)){for(c=0,u=se(e.length);u>c;c++)if((l=i?p(x(h=e[c])[0],h[1]):p(e[c]))&&l instanceof t)return l;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(l=et(a,p,h.value,i))&&l&&l instanceof t)return l;return new t(!1)}).stop=function(e){return new t(!0,e)}})),ms=/(iphone|ipod|ipad).*applewebkit/i.test(Mt),ys=r.location,bs=r.setImmediate,ws=r.clearImmediate,_s=r.process,Es=r.MessageChannel,ks=r.Dispatch,Ss=0,Ts={},xs=function(e){if(Ts.hasOwnProperty(e)){var t=Ts[e];delete Ts[e],t()}},As=function(e){return function(){xs(e)}},Os=function(e){xs(e.data)},Ps=function(e){r.postMessage(e+"",ys.protocol+"//"+ys.host)};bs&&ws||(bs=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ts[++Ss]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},hs(Ss),Ss},ws=function(e){delete Ts[e]},"process"==f(_s)?hs=function(e){_s.nextTick(As(e))}:ks&&ks.now?hs=function(e){ks.now(As(e))}:Es&&!ms?(ds=(ps=new Es).port2,ps.port1.onmessage=Os,hs=je(ds.postMessage,ds,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||i(Ps)?hs="onreadystatechange"in E("script")?function(e){kt.appendChild(E("script")).onreadystatechange=function(){kt.removeChild(this),xs(e)}}:function(e){setTimeout(As(e),0)}:(hs=Ps,r.addEventListener("message",Os,!1)));var Is,js,Cs,Rs,Ls,Ns,Ms,Us,Ds={set:bs,clear:ws},Fs=T.f,Bs=Ds.set,qs=r.MutationObserver||r.WebKitMutationObserver,Hs=r.process,Vs=r.Promise,Ws="process"==f(Hs),zs=Fs(r,"queueMicrotask"),Ys=zs&&zs.value;Ys||(Is=function(){var e,t;for(Ws&&(e=Hs.domain)&&e.exit();js;){t=js.fn,js=js.next;try{t()}catch(e){throw js?Rs():Cs=void 0,e}}Cs=void 0,e&&e.enter()},Ws?Rs=function(){Hs.nextTick(Is)}:qs&&!ms?(Ls=!0,Ns=document.createTextNode(""),new qs(Is).observe(Ns,{characterData:!0}),Rs=function(){Ns.data=Ls=!Ls}):Vs&&Vs.resolve?(Ms=Vs.resolve(void 0),Us=Ms.then,Rs=function(){Us.call(Ms,Is)}):Rs=function(){Bs.call(r,Is)});var $s,Gs,Ks,Xs,Js=Ys||function(e){var t={fn:e,next:void 0};Cs&&(Cs.next=t),js||(js=t,Rs()),Cs=t},Qs=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Ie(t),this.reject=Ie(n)},Zs={f:function(e){return new Qs(e)}},ec=function(e,t){if(x(e),v(t)&&t.constructor===e)return t;var n=Zs.f(e);return(0,n.resolve)(t),n.promise},tc=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},nc=Ds.set,rc=Fe("species"),ic="Promise",oc=Q.get,ac=Q.set,sc=Q.getterFor(ic),cc=gs,uc=r.TypeError,lc=r.document,fc=r.process,hc=ne("fetch"),pc=Zs.f,dc=pc,gc="process"==f(fc),vc=!!(lc&&lc.createEvent&&r.dispatchEvent),mc=Ae(ic,(function(){if(!(M(cc)!==String(cc))){if(66===Bt)return!0;if(!gc&&"function"!=typeof PromiseRejectionEvent)return!0}if(Bt>=51&&/native code/.test(cc))return!1;var e=cc.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[rc]=t,!(e.then((function(){}))instanceof t)})),yc=mc||!yt((function(e){cc.all(e).catch((function(){}))})),bc=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},wc=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Js((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,u,l=r[a++],f=o?l.ok:l.fail,h=l.resolve,p=l.reject,d=l.domain;try{f?(o||(2===t.rejection&&Sc(e,t),t.rejection=1),!0===f?s=i:(d&&d.enter(),s=f(i),d&&(d.exit(),u=!0)),s===l.promise?p(uc("Promise-chain cycle")):(c=bc(s))?c.call(s,h,p):h(s)):p(i)}catch(e){d&&!u&&d.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Ec(e,t)}))}},_c=function(e,t,n){var i,o;vc?((i=lc.createEvent("Event")).promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},(o=r["on"+e])?o(i):"unhandledrejection"===e&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ec=function(e,t){nc.call(r,(function(){var n,r=t.value;if(kc(t)&&(n=tc((function(){gc?fc.emit("unhandledRejection",r,e):_c("unhandledrejection",e,r)})),t.rejection=gc||kc(t)?2:1,n.error))throw n.value}))},kc=function(e){return 1!==e.rejection&&!e.parent},Sc=function(e,t){nc.call(r,(function(){gc?fc.emit("rejectionHandled",e):_c("rejectionhandled",e,t.value)}))},Tc=function(e,t,n,r){return function(i){e(t,n,i,r)}},xc=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,wc(e,t,!0))},Ac=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw uc("Promise can't be resolved itself");var i=bc(n);i?Js((function(){var r={done:!1};try{i.call(n,Tc(Ac,e,r,t),Tc(xc,e,r,t))}catch(n){xc(e,r,n,t)}})):(t.value=n,t.state=1,wc(e,t,!1))}catch(n){xc(e,{done:!1},n,t)}}};mc&&(cc=function(e){Wi(this,cc,ic),Ie(e),$s.call(this);var t=oc(this);try{e(Tc(Ac,this,t),Tc(xc,this,t))}catch(e){xc(this,t,e)}},($s=function(e){ac(this,{type:ic,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=no(cc.prototype,{then:function(e,t){var n=sc(this),r=pc(ji(this,cc));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=gc?fc.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&wc(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Gs=function(){var e=new $s,t=oc(e);this.promise=e,this.resolve=Tc(Ac,e,t),this.reject=Tc(xc,e,t)},Zs.f=pc=function(e){return e===cc||e===Ks?new Gs(e):dc(e)},"function"==typeof gs&&(Xs=gs.prototype.then,Z(gs.prototype,"then",(function(e,t){var n=this;return new cc((function(e,t){Xs.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof hc&&Pe({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return ec(cc,hc.apply(r,arguments))}}))),Pe({global:!0,wrap:!0,forced:mc},{Promise:cc}),Wn(cc,ic,!1),tn(ic),Ks=ne(ic),Pe({target:ic,stat:!0,forced:mc},{reject:function(e){var t=pc(this);return t.reject.call(void 0,e),t.promise}}),Pe({target:ic,stat:!0,forced:mc},{resolve:function(e){return ec(this,e)}}),Pe({target:ic,stat:!0,forced:yc},{all:function(e){var t=this,n=pc(t),r=n.resolve,i=n.reject,o=tc((function(){var n=Ie(t.resolve),o=[],a=0,s=1;vs(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=pc(t),r=n.reject,i=tc((function(){var i=Ie(t.resolve);vs(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});
+/*! *****************************************************************************
+ Copyright (c) Microsoft Corporation. All rights reserved.
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+ this file except in compliance with the License. You may obtain a copy of the
+ License at http://www.apache.org/licenses/LICENSE-2.0
+
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+ MERCHANTABLITY OR NON-INFRINGEMENT.
+
+ See the Apache Version 2.0 License for specific language governing permissions
+ and limitations under the License.
+ ***************************************************************************** */
+var Oc=function(e,t){return(Oc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Pc(e,t){function n(){this.constructor=e}Oc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ic,jc,Cc=function(){return(Cc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Rc(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Lc(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Rc(arguments[t]));return e}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Ic||(Ic={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(Ic||(Ic={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(jc||(jc={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(jc||(jc={}));var Nc=O.f,Mc=Function.prototype,Uc=Mc.toString,Dc=/^\s*function ([^ (]*)/;o&&!("name"in Mc)&&Nc(Mc,"name",{configurable:!0,get:function(){try{return Uc.call(this).match(Dc)[1]}catch(e){return""}}});var Fc=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var Bc=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Fc(r,n.prototype),r}return Pc(t,e),t}(Error);function qc(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Xc(e,Error)}}function Hc(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function Vc(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function Wc(e){return"[object String]"===Object.prototype.toString.call(e)}function zc(e){return null===e||"object"!==Ka(e)&&"function"!=typeof e}function Yc(e){return"[object Object]"===Object.prototype.toString.call(e)}function $c(e){return"undefined"!=typeof Event&&Xc(e,Event)}function Gc(e){return"undefined"!=typeof Element&&Xc(e,Element)}function Kc(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Xc(e,t){try{return e instanceof t}catch(e){return!1}}wi("match",1,(function(e,t,n){return[function(t){var n=d(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=x(e),o=String(this);if(!i.global)return ki(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],u=0;null!==(s=ki(i,o));){var l=String(s[0]);c[u]=l,""===l&&(i.lastIndex=Ei(o,se(i.lastIndex),a)),u++}return 0===u?null:c}]}));var Jc,Qc="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Zc=O.f,eu=r.Int8Array,tu=eu&&eu.prototype,nu=r.Uint8ClampedArray,ru=nu&&nu.prototype,iu=eu&&Dn(eu),ou=tu&&Dn(tu),au=Object.prototype,su=au.isPrototypeOf,cu=Fe("toStringTag"),uu=H("TYPED_ARRAY_TAG"),lu=Qc&&!!$t&&"Opera"!==lt(r.opera),fu=!1,hu={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},pu=function(e){return v(e)&&b(hu,lt(e))};for(Jc in hu)r[Jc]||(lu=!1);if((!lu||"function"!=typeof iu||iu===Function.prototype)&&(iu=function(){throw TypeError("Incorrect invocation")},lu))for(Jc in hu)r[Jc]&&$t(r[Jc],iu);if((!lu||!ou||ou===au)&&(ou=iu.prototype,lu))for(Jc in hu)r[Jc]&&$t(r[Jc].prototype,ou);if(lu&&Dn(ru)!==ou&&$t(ru,ou),o&&!b(ou,cu))for(Jc in fu=!0,Zc(ou,cu,{get:function(){return v(this)?this[uu]:void 0}}),hu)r[Jc]&&P(r[Jc],uu,Jc);var du={NATIVE_ARRAY_BUFFER_VIEWS:lu,TYPED_ARRAY_TAG:fu&&uu,aTypedArray:function(e){if(pu(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if($t){if(su.call(iu,e))return e}else for(var t in hu)if(b(hu,Jc)){var n=r[t];if(n&&(e===n||su.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(o){if(n)for(var i in hu){var a=r[i];a&&b(a.prototype,e)&&delete a.prototype[e]}ou[e]&&!n||Z(ou,e,n?t:lu&&tu[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var i,a;if(o){if($t){if(n)for(i in hu)(a=r[i])&&b(a,e)&&delete a[e];if(iu[e]&&!n)return;try{return Z(iu,e,n?t:lu&&eu[e]||t)}catch(e){}}for(i in hu)!(a=r[i])||a[e]&&!n||Z(a,e,t)}},isView:function(e){var t=lt(e);return"DataView"===t||b(hu,t)},isTypedArray:pu,TypedArray:iu,TypedArrayPrototype:ou},gu=du.NATIVE_ARRAY_BUFFER_VIEWS,vu=r.ArrayBuffer,mu=r.Int8Array,yu=!gu||!i((function(){mu(1)}))||!i((function(){new mu(-1)}))||!yt((function(e){new mu,new mu(null),new mu(1.5),new mu(e)}),!0)||i((function(){return 1!==new mu(new vu(2),1,void 0).length})),bu=function(e){if(void 0===e)return 0;var t=oe(e),n=se(t);if(t!==n)throw RangeError("Wrong length or index");return n},wu=Math.abs,_u=Math.pow,Eu=Math.floor,ku=Math.log,Su=Math.LN2,Tu=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,u=c>>1,l=23===t?_u(2,-24)-_u(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=wu(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=Eu(ku(e)/Su),e*(o=_u(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?l/o:l*_u(2,1-u))*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*_u(2,t),r+=u):(i=e*_u(2,u-1)*_u(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a},xu=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:u?-1/0:1/0;n+=_u(2,t),l-=a}return(u?-1:1)*n*_u(2,l-t)},Au=function(e){for(var t=Ce(this),n=se(t.length),r=arguments.length,i=le(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:le(o,n);a>i;)t[i++]=e;return t},Ou=me.f,Pu=O.f,Iu=Q.get,ju=Q.set,Cu=r.ArrayBuffer,Ru=Cu,Lu=r.DataView,Nu=Lu&&Lu.prototype,Mu=Object.prototype,Uu=r.RangeError,Du=Tu,Fu=xu,Bu=function(e){return[255&e]},qu=function(e){return[255&e,e>>8&255]},Hu=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Vu=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Wu=function(e){return Du(e,23,4)},zu=function(e){return Du(e,52,8)},Yu=function(e,t){Pu(e.prototype,t,{get:function(){return Iu(this)[t]}})},$u=function(e,t,n,r){var i=bu(n),o=Iu(e);if(i+t>o.byteLength)throw Uu("Wrong index");var a=Iu(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},Gu=function(e,t,n,r,i,o){var a=bu(n),s=Iu(e);if(a+t>s.byteLength)throw Uu("Wrong index");for(var c=Iu(s.buffer).bytes,u=a+s.byteOffset,l=r(+i),f=0;f<t;f++)c[u+f]=l[o?f:t-f-1]};if(Qc){if(!i((function(){Cu(1)}))||!i((function(){new Cu(-1)}))||i((function(){return new Cu,new Cu(1.5),new Cu(NaN),"ArrayBuffer"!=Cu.name}))){for(var Ku,Xu=(Ru=function(e){return Wi(this,Ru),new Cu(bu(e))}).prototype=Cu.prototype,Ju=Ou(Cu),Qu=0;Ju.length>Qu;)(Ku=Ju[Qu++])in Ru||P(Ru,Ku,Cu[Ku]);Xu.constructor=Ru}$t&&Dn(Nu)!==Mu&&$t(Nu,Mu);var Zu=new Lu(new Ru(2)),el=Nu.setInt8;Zu.setInt8(0,2147483648),Zu.setInt8(1,2147483649),!Zu.getInt8(0)&&Zu.getInt8(1)||no(Nu,{setInt8:function(e,t){el.call(this,e,t<<24>>24)},setUint8:function(e,t){el.call(this,e,t<<24>>24)}},{unsafe:!0})}else Ru=function(e){Wi(this,Ru,"ArrayBuffer");var t=bu(e);ju(this,{bytes:Au.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},Lu=function(e,t,n){Wi(this,Lu,"DataView"),Wi(e,Ru,"DataView");var r=Iu(e).byteLength,i=oe(t);if(i<0||i>r)throw Uu("Wrong offset");if(i+(n=void 0===n?r-i:se(n))>r)throw Uu("Wrong length");ju(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(Yu(Ru,"byteLength"),Yu(Lu,"buffer"),Yu(Lu,"byteLength"),Yu(Lu,"byteOffset")),no(Lu.prototype,{getInt8:function(e){return $u(this,1,e)[0]<<24>>24},getUint8:function(e){return $u(this,1,e)[0]},getInt16:function(e){var t=$u(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=$u(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Vu($u(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Vu($u(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return Fu($u(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return Fu($u(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Gu(this,1,e,Bu,t)},setUint8:function(e,t){Gu(this,1,e,Bu,t)},setInt16:function(e,t){Gu(this,2,e,qu,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Gu(this,2,e,qu,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Gu(this,4,e,Hu,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Gu(this,4,e,Hu,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Gu(this,4,e,Wu,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Gu(this,8,e,zu,t,arguments.length>2?arguments[2]:void 0)}});Wn(Ru,"ArrayBuffer"),Wn(Lu,"DataView");var tl={ArrayBuffer:Ru,DataView:Lu},nl=function(e,t){var n=function(e){var t=oe(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(n%t)throw RangeError("Wrong offset");return n},rl=du.aTypedArrayConstructor,il=function(e){var t,n,r,i,o,a,s=Ce(e),c=arguments.length,u=c>1?arguments[1]:void 0,l=void 0!==u,f=ht(s);if(null!=f&&!it(f))for(a=(o=f.call(s)).next,s=[];!(i=a.call(o)).done;)s.push(i.value);for(l&&c>2&&(u=je(u,arguments[2],2)),n=se(s.length),r=new(rl(this))(n),t=0;n>t;t++)r[t]=l?u(s[t],t):s[t];return r};t((function(e){var t=me.f,n=We.forEach,i=Q.get,a=Q.set,s=O.f,c=T.f,l=Math.round,f=r.RangeError,h=tl.ArrayBuffer,p=tl.DataView,d=du.NATIVE_ARRAY_BUFFER_VIEWS,g=du.TYPED_ARRAY_TAG,y=du.TypedArray,w=du.TypedArrayPrototype,_=du.aTypedArrayConstructor,E=du.isTypedArray,k=function(e,t){for(var n=0,r=t.length,i=new(_(e))(r);r>n;)i[n]=t[n++];return i},S=function(e,t){s(e,t,{get:function(){return i(this)[t]}})},x=function(e){var t;return e instanceof h||"ArrayBuffer"==(t=lt(e))||"SharedArrayBuffer"==t},A=function(e,t){return E(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},I=function(e,t){return A(e,t=m(t,!0))?u(2,e[t]):c(e,t)},j=function(e,t,n){return!(A(e,t=m(t,!0))&&v(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?s(e,t,n):(e[t]=n.value,e)};o?(d||(T.f=I,O.f=j,S(w,"buffer"),S(w,"byteOffset"),S(w,"byteLength"),S(w,"length")),Pe({target:"Object",stat:!0,forced:!d},{getOwnPropertyDescriptor:I,defineProperty:j}),e.exports=function(e,o,c){var u=e.match(/\d+$/)[0]/8,m=e+(c?"Clamped":"")+"Array",b="get"+e,_="set"+e,S=r[m],T=S,A=T&&T.prototype,O={},I=function(e,t){s(e,t,{get:function(){return function(e,t){var n=i(e);return n.view[b](t*u+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=i(e);c&&(n=(n=l(n))<0?0:n>255?255:255&n),r.view[_](t*u+r.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};d?yu&&(T=o((function(e,t,n,r){return Wi(e,T,m),Gt(v(t)?x(t)?void 0!==r?new S(t,nl(n,u),r):void 0!==n?new S(t,nl(n,u)):new S(t):E(t)?k(T,t):il.call(T,t):new S(bu(t)),e,T)})),$t&&$t(T,y),n(t(S),(function(e){e in T||P(T,e,S[e])})),T.prototype=A):(T=o((function(e,t,n,r){Wi(e,T,m);var i,o,s,c=0,l=0;if(v(t)){if(!x(t))return E(t)?k(T,t):il.call(T,t);i=t,l=nl(n,u);var d=t.byteLength;if(void 0===r){if(d%u)throw f("Wrong length");if((o=d-l)<0)throw f("Wrong length")}else if((o=se(r)*u)+l>d)throw f("Wrong length");s=o/u}else s=bu(t),i=new h(o=s*u);for(a(e,{buffer:i,byteOffset:l,byteLength:o,length:s,view:new p(i)});c<s;)I(e,c++)})),$t&&$t(T,y),A=T.prototype=Ot(w)),A.constructor!==T&&P(A,"constructor",T),g&&P(A,g,m),O[m]=T,Pe({global:!0,forced:T!=S,sham:!d},O),"BYTES_PER_ELEMENT"in T||P(T,"BYTES_PER_ELEMENT",u),"BYTES_PER_ELEMENT"in A||P(A,"BYTES_PER_ELEMENT",u),tn(m)}):e.exports=function(){}}))("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var ol=Math.min,al=[].copyWithin||function(e,t){var n=Ce(this),r=se(n.length),i=le(e,r),o=le(t,r),a=arguments.length>2?arguments[2]:void 0,s=ol((void 0===a?r:le(a,r))-o,r-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},sl=du.aTypedArray;(0,du.exportTypedArrayMethod)("copyWithin",(function(e,t){return al.call(sl(this),e,t,arguments.length>2?arguments[2]:void 0)}));var cl=We.every,ul=du.aTypedArray;(0,du.exportTypedArrayMethod)("every",(function(e){return cl(ul(this),e,arguments.length>1?arguments[1]:void 0)}));var ll=du.aTypedArray;(0,du.exportTypedArrayMethod)("fill",(function(e){return Au.apply(ll(this),arguments)}));var fl=We.filter,hl=du.aTypedArray,pl=du.aTypedArrayConstructor;(0,du.exportTypedArrayMethod)("filter",(function(e){for(var t=fl(hl(this),e,arguments.length>1?arguments[1]:void 0),n=ji(this,this.constructor),r=0,i=t.length,o=new(pl(n))(i);i>r;)o[r]=t[r++];return o}));var dl=We.find,gl=du.aTypedArray;(0,du.exportTypedArrayMethod)("find",(function(e){return dl(gl(this),e,arguments.length>1?arguments[1]:void 0)}));var vl=We.findIndex,ml=du.aTypedArray;(0,du.exportTypedArrayMethod)("findIndex",(function(e){return vl(ml(this),e,arguments.length>1?arguments[1]:void 0)}));var yl=We.forEach,bl=du.aTypedArray;(0,du.exportTypedArrayMethod)("forEach",(function(e){yl(bl(this),e,arguments.length>1?arguments[1]:void 0)}));var wl=he.includes,_l=du.aTypedArray;(0,du.exportTypedArrayMethod)("includes",(function(e){return wl(_l(this),e,arguments.length>1?arguments[1]:void 0)}));var El=he.indexOf,kl=du.aTypedArray;(0,du.exportTypedArrayMethod)("indexOf",(function(e){return El(kl(this),e,arguments.length>1?arguments[1]:void 0)}));var Sl=Fe("iterator"),Tl=r.Uint8Array,xl=ii.values,Al=ii.keys,Ol=ii.entries,Pl=du.aTypedArray,Il=du.exportTypedArrayMethod,jl=Tl&&Tl.prototype[Sl],Cl=!!jl&&("values"==jl.name||null==jl.name),Rl=function(){return xl.call(Pl(this))};Il("entries",(function(){return Ol.call(Pl(this))})),Il("keys",(function(){return Al.call(Pl(this))})),Il("values",Rl,!Cl),Il(Sl,Rl,!Cl);var Ll=du.aTypedArray,Nl=[].join;(0,du.exportTypedArrayMethod)("join",(function(e){return Nl.apply(Ll(this),arguments)}));var Ml=Math.min,Ul=[].lastIndexOf,Dl=!!Ul&&1/[1].lastIndexOf(1,-0)<0,Fl=ze("lastIndexOf"),Bl=Ke("indexOf",{ACCESSORS:!0,1:0}),ql=Dl||!Fl||!Bl?function(e){if(Dl)return Ul.apply(this,arguments)||0;var t=g(this),n=se(t.length),r=n-1;for(arguments.length>1&&(r=Ml(r,oe(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Ul,Hl=du.aTypedArray;(0,du.exportTypedArrayMethod)("lastIndexOf",(function(e){return ql.apply(Hl(this),arguments)}));var Vl=We.map,Wl=du.aTypedArray,zl=du.aTypedArrayConstructor;(0,du.exportTypedArrayMethod)("map",(function(e){return Vl(Wl(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(zl(ji(e,e.constructor)))(t)}))}));var Yl=function(e){return function(t,n,r,i){Ie(n);var o=Ce(t),a=p(o),s=se(o.length),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=n(i,a[c],c,o));return i}},$l={left:Yl(!1),right:Yl(!0)},Gl=$l.left,Kl=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduce",(function(e){return Gl(Kl(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Xl=$l.right,Jl=du.aTypedArray;(0,du.exportTypedArrayMethod)("reduceRight",(function(e){return Xl(Jl(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Ql=du.aTypedArray,Zl=du.exportTypedArrayMethod,ef=Math.floor;Zl("reverse",(function(){for(var e,t=Ql(this).length,n=ef(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var tf=du.aTypedArray;(0,du.exportTypedArrayMethod)("set",(function(e){tf(this);var t=nl(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=Ce(e),i=se(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]}),i((function(){new Int8Array(1).set({})})));var nf=du.aTypedArray,rf=du.aTypedArrayConstructor,of=[].slice;(0,du.exportTypedArrayMethod)("slice",(function(e,t){for(var n=of.call(nf(this),e,t),r=ji(this,this.constructor),i=0,o=n.length,a=new(rf(r))(o);o>i;)a[i]=n[i++];return a}),i((function(){new Int8Array(1).slice()})));var af=We.some,sf=du.aTypedArray;(0,du.exportTypedArrayMethod)("some",(function(e){return af(sf(this),e,arguments.length>1?arguments[1]:void 0)}));var cf=du.aTypedArray,uf=[].sort;(0,du.exportTypedArrayMethod)("sort",(function(e){return uf.call(cf(this),e)}));var lf=du.aTypedArray;(0,du.exportTypedArrayMethod)("subarray",(function(e,t){var n=lf(this),r=n.length,i=le(e,r);return new(ji(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,se((void 0===t?r:le(t,r))-i))}));var ff=r.Int8Array,hf=du.aTypedArray,pf=du.exportTypedArrayMethod,df=[].toLocaleString,gf=[].slice,vf=!!ff&&i((function(){df.call(new ff(1))}));pf("toLocaleString",(function(){return df.apply(vf?gf.call(hf(this)):hf(this),arguments)}),i((function(){return[1,2].toLocaleString()!=new ff([1,2]).toLocaleString()}))||!i((function(){ff.prototype.toLocaleString.call([1,2])})));var mf=du.exportTypedArrayMethod,yf=r.Uint8Array,bf=yf&&yf.prototype||{},wf=[].toString,_f=[].join;i((function(){wf.call({})}))&&(wf=function(){return _f.call(this)});var Ef=bf.toString!=wf;function kf(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function Sf(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Tf(e,t){return n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t);var n}function xf(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}mf("toString",wf,Ef);var Af={};function Of(){return xf()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Af}function Pf(){var e=Of(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function If(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function jf(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function Cf(e){var t=Of();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function Rf(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function Lf(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function Nf(e){try{for(var t=e,n=[],r=0,i=0,o=" > ".length,a=void 0;t&&r++<5&&!("html"===(a=Mf(t))||r>1&&i+n.length*o+a.length>=80);)n.push(a),i+=a.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Mf(e){var t,n,r,i,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&Wc(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var c=["type","name","title","alt"];for(o=0;o<c.length;o++)r=c[o],(i=a.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}var Uf=Date.now(),Df=0,Ff={now:function(){var e=Date.now()-Uf;return e<Df&&(e=Df),Df=e,e},timeOrigin:Uf},Bf=function(){if(xf())try{return(e=module,t="perf_hooks",e.require(t)).performance}catch(e){return Ff}var e,t;return Of().performance&&void 0===performance.timeOrigin&&(performance.timeOrigin=performance.timing&&performance.timing.navigationStart||Uf),Of().performance||Ff}();function qf(){return(Bf.timeOrigin+Bf.now())/1e3}function Hf(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}function Vf(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}var Wf=Of(),zf="Sentry Logger ",Yf=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Cf((function(){Wf.console.log(zf+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Cf((function(){Wf.console.warn(zf+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Cf((function(){Wf.console.error(zf+"[Error]: "+e.join(" "))}))},e}();Wf.__SENTRY__=Wf.__SENTRY__||{};var $f=Wf.__SENTRY__.logger||(Wf.__SENTRY__.logger=new Yf),Gf=Ht("splice"),Kf=Ke("splice",{ACCESSORS:!0,0:0,1:2}),Xf=Math.max,Jf=Math.min;Pe({target:"Array",proto:!0,forced:!Gf||!Kf},{splice:function(e,t){var n,r,i,o,a,s,c=Ce(this),u=se(c.length),l=le(e,u),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=u-l):(n=f-2,r=Jf(Xf(oe(t),0),u-l)),u+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=qe(c,r),o=0;o<r;o++)(a=l+o)in c&&ot(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=u;o>u-r+n;o--)delete c[o-1]}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+l]=arguments[o+2];return c.length=u-r+n,i}});var Qf=!i((function(){return Object.isExtensible(Object.preventExtensions({}))})),Zf=t((function(e){var t=O.f,n=H("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!v(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!b(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!b(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return Qf&&a.REQUIRED&&i(e)&&!b(e,n)&&o(e),e}};z[n]=!0})),eh=(Zf.REQUIRED,Zf.fastKey,Zf.getWeakData,Zf.onFreeze,Zf.getWeakData),th=Q.set,nh=Q.getterFor,rh=We.find,ih=We.findIndex,oh=0,ah=function(e){return e.frozen||(e.frozen=new sh)},sh=function(){this.entries=[]},ch=function(e,t){return rh(e.entries,(function(e){return e[0]===t}))};sh.prototype={get:function(e){var t=ch(this,e);if(t)return t[1]},has:function(e){return!!ch(this,e)},set:function(e,t){var n=ch(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=ih(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},function(e,t,n){var o=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),s=o?"set":"add",c=r[e],u=c&&c.prototype,l=c,f={},h=function(e){var t=u[e];Z(u,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(a&&!v(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return a&&!v(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!v(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Ae(e,"function"!=typeof c||!(a||u.forEach&&!i((function(){(new c).entries().next()})))))l=n.getConstructor(t,e,o,s),Zf.REQUIRED=!0;else if(Ae(e,!0)){var p=new l,d=p[s](a?{}:-0,1)!=p,g=i((function(){p.has(1)})),m=yt((function(e){new c(e)})),y=!a&&i((function(){for(var e=new c,t=5;t--;)e[s](t,t);return!e.has(-0)}));m||((l=t((function(t,n){Wi(t,l,e);var r=Gt(new c,t,l);return null!=n&&vs(n,r[s],r,o),r}))).prototype=u,u.constructor=l),(g||y)&&(h("delete"),h("has"),o&&h("get")),(y||d)&&h(s),a&&u.clear&&delete u.clear}f[e]=l,Pe({global:!0,forced:l!=c},f),Wn(l,e),a||n.setStrong(l,e,o)}("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,o){Wi(e,i,t),th(e,{type:t,id:oh++,frozen:void 0}),null!=o&&vs(o,e[r],e,n)})),o=nh(t),a=function(e,t,n){var r=o(e),i=eh(x(t),!0);return!0===i?ah(r).set(t,n):i[r.id]=n,e};return no(i.prototype,{delete:function(e){var t=o(this);if(!v(e))return!1;var n=eh(e);return!0===n?ah(t).delete(e):n&&b(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!v(e))return!1;var n=eh(e);return!0===n?ah(t).has(e):n&&b(n,t.id)}}),no(i.prototype,n?{get:function(e){var t=o(this);if(v(e)){var n=eh(e);return!0===n?ah(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),i}});var uh=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();function lh(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i}}function fh(e){if(qc(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if($c(e)){var i=e,o={};o.type=i.type;try{o.target=Gc(i.target)?Nf(i.target):Object.prototype.toString.call(i.target)}catch(e){o.target="<unknown>"}try{o.currentTarget=Gc(i.currentTarget)?Nf(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Xc(e,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i);return o}return e}function hh(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function ph(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=vh(e,t);return hh(r)>n?ph(e,t-1,n):r}function dh(e,t){return"domain"===t&&e&&"object"===Ka(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Yc(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Vf(e)+"]":e;var n}function gh(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new uh),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=dh(e);return zc(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var i=dh(t,e);if(zc(i))return i;var o=fh(t),a=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(a[s]=gh(s,o[s],n-1,r));return r.unmemoize(t),a}function vh(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return gh(e,n,t)})))}catch(e){return"**non-serializable**"}}function mh(e,t){void 0===t&&(t=40);var n=Object.keys(fh(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return kf(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:kf(i,t)}return""}Pe({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}});var yh=We.filter,bh=Ht("filter"),wh=Ke("filter");Pe({target:"Array",proto:!0,forced:!bh||!wh},{filter:function(e){return yh(this,e,arguments.length>1?arguments[1]:void 0)}});var _h,Eh=!!gs&&i((function(){gs.prototype.finally.call({then:function(){}},(function(){}))}));Pe({target:"Promise",proto:!0,real:!0,forced:Eh},{finally:function(e){var t=ji(this,ne("Promise")),n="function"==typeof e;return this.then(n?function(n){return ec(t,e()).then((function(){return n}))}:e,n?function(n){return ec(t,e()).then((function(){throw n}))}:e)}}),"function"!=typeof gs||gs.prototype.finally||Z(gs.prototype,"finally",ne("Promise").prototype.finally),function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(_h||(_h={}));var kh=function(){function e(e){var t=this;this._state=_h.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(_h.RESOLVED,e)},this._reject=function(e){t._setResult(_h.REJECTED,e)},this._setResult=function(e,n){t._state===_h.PENDING&&(Kc(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==_h.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===_h.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===_h.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}(),Sh=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):kh.reject(new Bc("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new kh((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);kh.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}();function Th(){if(!("fetch"in Of()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function xh(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ah(){if(!Th())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Oh,Ph=Of(),Ih={},jh={};function Ch(e){if(!jh[e])switch(jh[e]=!0,e){case"console":!function(){if(!("console"in Ph))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Ph.console&&lh(Ph.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Lh("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Ph.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Ph))return;Ph.document.addEventListener("click",Bh("click",Lh.bind(null,"dom")),!1),Ph.document.addEventListener("keypress",qh(Lh.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Ph[e]&&Ph[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(lh(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&lh(n,"handleEvent",(function(e){return function(t){return Bh("click",Lh.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&lh(n,"handleEvent",(function(e){return function(t){return qh(Lh.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Bh("click",Lh.bind(null,"dom"),!0)(this),"keypress"===t&&qh(Lh.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),lh(t,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Ph))return;var e=XMLHttpRequest.prototype;lh(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[1];return this.__sentry_xhr__={method:Wc(t[0])?t[0].toUpperCase():t[0],url:t[1]},Wc(r)&&"POST"===this.__sentry_xhr__.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),lh(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i={args:t,startTimestamp:Date.now(),xhr:r};return Lh("xhr",Cc({},i)),r.addEventListener("readystatechange",(function(){if(4===r.readyState){try{r.__sentry_xhr__&&(r.__sentry_xhr__.status_code=r.status)}catch(e){}Lh("xhr",Cc({},i,{endTimestamp:Date.now()}))}})),e.apply(this,t)}}))}();break;case"fetch":!function(){if(!function(){if(!Th())return!1;var e=Of();if(xh(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=xh(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){$f.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;lh(Ph,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Nh(t),url:Mh(t)},startTimestamp:Date.now()};return Lh("fetch",Cc({},r)),e.apply(Ph,t).then((function(e){return Lh("fetch",Cc({},r,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Lh("fetch",Cc({},r,{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=Of(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}())return;var e=Ph.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=Oh,o=String(r);Oh=o,Lh("history",{from:i,to:o})}return e.apply(this,t)}}Ph.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ph.location.href,i=Oh;if(Oh=r,Lh("history",{from:i,to:r}),e)return e.apply(this,t)},lh(Ph.history,"pushState",t),lh(Ph.history,"replaceState",t)}();break;case"error":Hh=Ph.onerror,Ph.onerror=function(e,t,n,r,i){return Lh("error",{column:r,error:i,line:n,msg:e,url:t}),!!Hh&&Hh.apply(this,arguments)};break;case"unhandledrejection":Vh=Ph.onunhandledrejection,Ph.onunhandledrejection=function(e){return Lh("unhandledrejection",e),!Vh||Vh.apply(this,arguments)};break;default:$f.warn("unknown instrumentation type:",e)}}function Rh(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Ih[e.type]=Ih[e.type]||[],Ih[e.type].push(e.callback),Ch(e.type))}function Lh(e,t){var n,r;if(e&&Ih[e])try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ih[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){$f.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Vf(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Nh(e){return void 0===e&&(e=[]),"Request"in Ph&&Xc(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Mh(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ph&&Xc(e[0],Request)?e[0].url:String(e[0])}var Uh,Dh,Fh=0;function Bh(e,t,n){return void 0===n&&(n=!1),function(r){Uh=void 0,r&&Dh!==r&&(Dh=r,Fh&&clearTimeout(Fh),n?Fh=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function qh(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Uh||Bh("input",e)(t),clearTimeout(Uh),Uh=setTimeout((function(){Uh=void 0}),1e3))}}var Hh=null;var Vh=null;var Wh=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,zh=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Wh.exec(e);if(!t)throw new Bc("Invalid Dsn");var n=Rc(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],c=n[4],u=void 0===c?"":c,l="",f=n[5],h=f.split("/");h.length>1&&(l=h.slice(0,-1).join("/"),f=h.pop()),this._fromComponents({host:s,pass:a,path:l,projectId:f,port:u,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new Bc("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new Bc("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new Bc("Invalid Dsn")},e}(),Yh=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new kh((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var c=s(Cc({},t),n);Kc(c)?c.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,c,n,r+1).then(o).then(null,a)}}))},e.prototype.setUser=function(e){return this._user=e||{},this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=Cc({},this._tags,e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Cc({},this._tags,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Cc({},this._extra,e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Cc({},this._extra,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._span&&(this._span.transaction=e),this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){var n;return this._context=Cc({},this._context,((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Lc(t._breadcrumbs),n._tags=Cc({},t._tags),n._extra=Cc({},t._extra),n._context=Cc({},t._context),n._user=t._user,n._level=t._level,n._span=t._span,n._transaction=t._transaction,n._fingerprint=t._fingerprint,n._eventProcessors=Lc(t._eventProcessors)),n},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Cc({timestamp:qf()},e);return this._breadcrumbs=void 0!==t&&t>=0?Lc(this._breadcrumbs,[n]).slice(-t):Lc(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=Cc({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Cc({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Cc({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=Cc({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._span&&(e.contexts=Cc({trace:this._span.getTraceContext()},e.contexts)),this._applyFingerprint(e),e.breadcrumbs=Lc(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Lc($h(),this._eventProcessors),e,t)},e}();function $h(){var e=Of();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function Gh(e){$h().push(e)}var Kh=function(){function e(e,t,n){void 0===t&&(t=new Yh),void 0===n&&(n=3),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop();i&&i.client&&i.client[e]&&(t=i.client)[e].apply(t,Lc(n,[i.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,n=Yh.clone(t);return this.getStack().push({client:this.getClient(),scope:n}),n},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Pf(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Cc({},r,{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Pf(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Cc({},i,{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Pf();return this._invokeClient("captureEvent",e,Cc({},t,{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop();if(n.scope&&n.client){var r=n.client.getOptions&&n.client.getOptions()||{},i=r.beforeBreadcrumb,o=void 0===i?null:i,a=r.maxBreadcrumbs,s=void 0===a?100:a;if(!(s<=0)){var c=qf(),u=Cc({timestamp:c},e),l=o?Cf((function(){return o(u,t)})):u;null!==l&&n.scope.addBreadcrumb(l,Math.min(s,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getStackTop();n.scope&&n.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=Jh(this);try{e(this)}finally{Jh(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return $f.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Xh(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);$f.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function Xh(){var e=Of();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function Jh(e){var t=Xh(),n=ep(t);return tp(t,e),n}function Qh(){var e=Xh();return Zh(e)&&!ep(e).isOlderThan(3)||tp(e,new Kh),xf()?function(e){try{var t=Xh().__SENTRY__;if(!t||!t.extensions||!t.extensions.domain)return ep(e);var n=t.extensions.domain.active;if(!n)return ep(e);if(!Zh(n)||ep(n).isOlderThan(3)){var r=ep(e).getStackTop();tp(n,new Kh(r.client,Yh.clone(r.scope)))}return ep(n)}catch(t){return ep(e)}}(e):ep(e)}function Zh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function ep(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new Kh),e.__SENTRY__.hub}function tp(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function np(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Qh();if(r&&r[e])return r[e].apply(r,Lc(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function rp(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return np("captureException",e,{originalException:e,syntheticException:t})}function ip(e){np("withScope",e)}var op=function(){function e(e){this.dsn=e,this._dsnObject=new zh(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e,t={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+(e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&"))},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e}(),ap=[];function sp(e){var t={};return function(e){var t=e.defaultIntegrations&&Lc(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=Lc(t);var a=r.map((function(e){return e.name}));return-1!==a.indexOf("Debug")&&r.push.apply(r,Lc(r.splice(a.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ap.indexOf(e.name)&&(e.setupOnce(Gh,Qh),ap.push(e.name),$f.log("Integration installed: "+e.name))}(e)})),t}var cp,up=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new zh(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return r._processEvent(e,t,n)})).then((function(e){i=e&&e.event_id,r._processing=!1})).then(null,(function(e){$f.error(e),r._processing=!1})),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id;return this._processing=!0,(zc(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n)).then((function(e){return i._processEvent(e,n,r)})).then((function(e){o=e&&e.event_id,i._processing=!1})).then(null,(function(e){$f.error(e),i._processing=!1})),o},e.prototype.captureEvent=function(e,t,n){var r=this,i=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,n).then((function(e){i=e&&e.event_id,r._processing=!1})).then(null,(function(e){$f.error(e),r._processing=!1})),i},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return clearInterval(n.interval),t._getBackend().getTransport().close(e).then((function(e){return n.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=sp(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return $f.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new kh((function(n){var r=0,i=0;clearInterval(i),i=setInterval((function(){t._processing?(r+=1,e&&r>=e&&n({interval:i,ready:!1})):n({interval:i,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.environment,a=i.release,s=i.dist,c=i.maxValueLength,u=void 0===c?250:c,l=i.normalizeDepth,f=void 0===l?3:l,h=Cc({},e);void 0===h.environment&&void 0!==o&&(h.environment=o),void 0===h.release&&void 0!==a&&(h.release=a),void 0===h.dist&&void 0!==s&&(h.dist=s),h.message&&(h.message=kf(h.message,u));var p=h.exception&&h.exception.values&&h.exception.values[0];p&&p.value&&(p.value=kf(p.value,u));var d=h.request;d&&d.url&&(d.url=kf(d.url,u)),void 0===h.event_id&&(h.event_id=n&&n.event_id?n.event_id:Pf()),this._addIntegrations(h.sdk);var g=kh.resolve(h);return t&&(g=t.applyToEvent(h,n)),g.then((function(e){return"number"==typeof f&&f>0?r._normalizeEvent(e,f):e}))},e.prototype._normalizeEvent=function(e,t){return e?Cc({},e,e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Cc({},e,e.data&&{data:vh(e.data,t)})}))},e.user&&{user:vh(e.user,t)},e.contexts&&{contexts:vh(e.contexts,t)},e.extra&&{extra:vh(e.extra,t)}):null},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;return this._isEnabled()?"number"==typeof a&&Math.random()>a?kh.reject("This event has been sampled, will not send event."):new kh((function(i,a){r._prepareEvent(e,n,t).then((function(e){if(null!==e){var n=e;if(t&&t.data&&!0===t.data.__sentry__||!o)return r._getBackend().sendEvent(n),void i(n);var s=o(e,t);if(void 0===s)$f.error("`beforeSend` method has to return `null` or a valid event.");else if(Kc(s))r._handleAsyncBeforeSend(s,i,a);else{if(null===(n=s))return $f.log("`beforeSend` returned `null`, will not send event."),void i(null);r._getBackend().sendEvent(n),i(n)}}else a("An event processor returned null, will not send event.")})).then(null,(function(e){r.captureException(e,{data:{__sentry__:!0},originalException:e}),a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))})):kh.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,n){var r=this;e.then((function(e){null!==e?(r._getBackend().sendEvent(e),t(e)):n("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){n("beforeSend rejected with "+e)}))},e}(),lp=function(){function e(){}return e.prototype.sendEvent=function(e){return kh.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:jc.Skipped})},e.prototype.close=function(e){return kh.resolve(!0)},e}(),fp=function(){function e(e){this._options=e,this._options.dsn||$f.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new lp},e.prototype.eventFromException=function(e,t){throw new Bc("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Bc("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){$f.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();var hp=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){cp=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return cp.apply(n,e)}},e.id="FunctionToString",e}(),pp=We.some,dp=ze("some"),gp=Ke("some");Pe({target:"Array",proto:!0,forced:!dp||!gp},{some:function(e){return pp(this,e,arguments.length>1?arguments[1]:void 0)}});var vp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],mp=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Gh((function(t){var n=Qh();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?($f.warn("Event dropped due to being internal Sentry Error.\nEvent: "+jf(e)),!0):this._isIgnoredError(e,t)?($f.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+jf(e)),!0):this._isBlacklistedUrl(e,t)?($f.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+jf(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&($f.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+jf(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Tf(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.blacklistUrls.some((function(e){return Tf(n,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.whitelistUrls.some((function(e){return Tf(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:Lc(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:Lc(this._options.ignoreErrors||[],e.ignoreErrors||[],vp),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:Lc(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return $f.error("Cannot extract message for event "+jf(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return $f.error("Cannot extract url for event "+jf(e)),null}},e.id="InboundFilters",e}(),yp=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,wp=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ep=/\((\S*)(?::(\d+))(?::(\d+))\)/;function kp(e){var t=null,n=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=n.split("\n"),a=[],s=0;s<o.length;s+=2){var c=null;(t=r.exec(o[s]))?c={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=i.exec(o[s]))&&(c={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),c&&(!c.func&&c.line&&(c.func="?"),a.push(c))}if(!a.length)return null;return{message:Tp(e),name:e.name,stack:a}}(e))return Sp(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=yp.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Ep.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=wp.exec(o[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=bp.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=_p.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),i.push(r)}if(!i.length)return null;return{message:Tp(e),name:e.name,stack:i}}(e))return Sp(t,n)}catch(e){}return{message:Tp(e),name:e&&e.name,stack:[],failed:!0}}function Sp(e,t){try{return Cc({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function Tp(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function xp(e){var t=Op(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ap(e){return{exception:{values:[xp(e)]}}}function Op(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}function Pp(e,t,n){var r,i;if(void 0===n&&(n={}),Hc(e)&&e.error)return r=Ap(kp(e=e.error));if(Vc(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){var o=e,a=o.name||(Vc(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;return Rf(r=Ip(s,t,n),s),r}return qc(e)?r=Ap(kp(e)):Yc(e)||$c(e)?(Lf(r=function(e,t,n){var r={exception:{values:[{type:$c(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+mh(e)}]},extra:{__serialized__:ph(e)}};if(t){var i=Op(kp(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),{synthetic:!0}),r):(Rf(r=Ip(e,t,n),""+e,void 0),Lf(r,{synthetic:!0}),r)}function Ip(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=Op(kp(t).stack);r.stacktrace={frames:i}}return r}var jp=function(){function e(e){this.options=e,this._buffer=new Sh(30),this.url=new op(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new Bc("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}(),Cp=Of(),Rp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Pc(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var n={body:JSON.stringify(e),method:"POST",referrerPolicy:Ah()?"origin":""};return void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new kh((function(e,r){Cp.fetch(t.url,n).then((function(n){var i=jc.fromHttpCode(n.status);if(i!==jc.Success){if(i===jc.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Hf(o,n.headers.get("Retry-After"))),$f.warn("Too many requests, backing off till: "+t._disabledUntil)}r(n)}else e({status:i})})).catch(r)})))},t}(jp),Lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return Pc(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new kh((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e=jc.fromHttpCode(i.status);if(e!==jc.Success){if(e===jc.RateLimit){var o=Date.now();t._disabledUntil=new Date(o+Hf(o,i.getResponseHeader("Retry-After"))),$f.warn("Too many requests, backing off till: "+t._disabledUntil)}r(i)}else n({status:e})}},i.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,t.options.headers[o]);i.send(JSON.stringify(e))})))},t}(jp),Np=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pc(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Cc({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Th()?new Rp(t):new Lp(t)},t.prototype.eventFromException=function(e,t){var n=Pp(e,t&&t.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return Lf(n,{handled:!0,type:"generic"}),n.level=Ic.Error,t&&t.event_id&&(n.event_id=t.event_id),kh.resolve(n)},t.prototype.eventFromMessage=function(e,t,n){void 0===t&&(t=Ic.Info);var r=Ip(e,n&&n.syntheticException||void 0,{attachStacktrace:this._options.attachStacktrace});return r.level=t,n&&n.event_id&&(r.event_id=n.event_id),kh.resolve(r)},t}(fp),Mp=function(e){function t(t){return void 0===t&&(t={}),e.call(this,Np,t)||this}return Pc(t,e),t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Cc({},t.sdk,{name:"sentry.javascript.browser",packages:Lc(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.15.4"}]),version:"5.15.4"}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=Of().document;if(t)if(this._isEnabled()){var n=e.dsn||this.getDsn();if(e.eventId)if(n){var r=t.createElement("script");r.async=!0,r.src=new op(n).getReportDialogEndpoint(e),e.onLoad&&(r.onload=e.onLoad),(t.head||t.body).appendChild(r)}else $f.error("Missing `Dsn` option in showReportDialog call");else $f.error("Missing `eventId` option in showReportDialog call")}else $f.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(up),Up=0;function Dp(){return Up>0}function Fp(){Up+=1,setTimeout((function(){Up-=1}))}function Bp(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return Bp(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw Fp(),ip((function(n){n.addEventProcessor((function(e){var n=Cc({},e);return t.mechanism&&(Rf(n,void 0,void 0),Lf(n,t.mechanism)),n.extra=Cc({},n.extra,{arguments:r}),n})),rp(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var qp=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Cc({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&($f.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&($f.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Rh({callback:function(n){var r=n.error,i=Qh(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!Dp()&&!a){var s=i.getClient(),c=zc(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(Pp(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Lf(c,{handled:!1,type:"onerror"}),i.captureEvent(c,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Rh({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var i=Qh(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||Dp()||a)return!0;var s=i.getClient(),c=zc(r)?t._eventFromIncompleteRejection(r):Pp(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});c.level=Ic.Error,Lf(c,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(c,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=Hc(e)?e.message:e;if(Wc(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=Wc(t)&&t.length>0?t:function(){try{return document.location.href}catch(e){return""}}();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Hp=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Bp(r,{mechanism:{data:{function:Vf(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(Bp(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Vf(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Of(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(lh(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Bp(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Vf(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Bp(r,{mechanism:{data:{function:"addEventListener",handler:Vf(r),target:e},handled:!0,type:"instrument"}}),i)}})),lh(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(e){e in r&&"function"==typeof r[e]&&lh(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Vf(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Vf(t.__sentry_original__)),Bp(t,n)}))})),e.apply(this,t)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=Of();lh(e,"setTimeout",this._wrapTimeFunction.bind(this)),lh(e,"setInterval",this._wrapTimeFunction.bind(this)),lh(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&lh(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}(),Vp=function(){function e(t){this.name=e.id,this._options=Cc({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Ic.fromString(e.level),message:Sf(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Sf(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}Qh().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Nf(e.event.target):Nf(e.event)}catch(e){t="<unknown>"}0!==t.length&&Qh().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;Qh().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else this._options.sentry&&e.xhr.__sentry_own_request__&&Wp(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=Qh().getClient(),n=t&&t.getDsn();if(this._options.sentry&&n){var r=new op(n).getStoreEndpoint();if(r&&-1!==e.fetchData.url.indexOf(r)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void Wp(e.args[1].body)}e.error?Qh().addBreadcrumb({category:"fetch",data:Cc({},e.fetchData,{status_code:e.response.status}),level:Ic.Error,type:"http"},{data:e.error,input:e.args}):Qh().addBreadcrumb({category:"fetch",data:Cc({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=Of(),n=e.from,r=e.to,i=If(t.location.href),o=If(n),a=If(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),Qh().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Rh({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Lc(t))},type:"console"}),this._options.dom&&Rh({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Lc(t))},type:"dom"}),this._options.xhr&&Rh({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Lc(t))},type:"xhr"}),this._options.fetch&&Rh({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Lc(t))},type:"fetch"}),this._options.history&&Rh({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Lc(t))},type:"history"})},e.id="Breadcrumbs",e}();function Wp(e){try{var t=JSON.parse(e);Qh().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level||Ic.fromString("error"),message:jf(t)},{event:t})}catch(e){$f.error("Error while adding sentry type breadcrumb")}}var zp=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){Gh((function(t,n){var r=Qh().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Xc(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Lc(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Xc(e[t],Error)||n.length+1>=this._limit)return n;var r=xp(kp(e[t]));return this._walkErrorTree(e[t],t,Lc([r],n))},e.id="LinkedErrors",e}(),Yp=Of(),$p=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Gh((function(t){if(Qh().getIntegration(e)){if(!Yp.navigator||!Yp.location)return t;var n=t.request||{};return n.url=n.url||Yp.location.href,n.headers=n.headers||{},n.headers["User-Agent"]=Yp.navigator.userAgent,Cc({},t,{request:n})}return t}))},e.id="UserAgent",e}(),Gp=[new mp,new hp,new Hp,new Vp,new qp,new zp,new $p];function Kp(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Gp),void 0===e.release){var t=Of();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}!function(e,t){!0===t.debug&&$f.enable();var n=Qh(),r=new e(t);n.bindClient(r)}(Mp,e)}var Xp=We.find,Jp=!0,Qp=Ke("find");"find"in[]&&Array(1).find((function(){Jp=!1})),Pe({target:"Array",proto:!0,forced:Jp||!Qp},{find:function(e){return Xp(this,e,arguments.length>1?arguments[1]:void 0)}}),jt("find");var Zp="[\t\n\v\f\r                 \u2028\u2029\ufeff]",ed=RegExp("^"+Zp+Zp+"*"),td=RegExp(Zp+Zp+"*$"),nd=function(e){return function(t){var n=String(d(t));return 1&e&&(n=n.replace(ed,"")),2&e&&(n=n.replace(td,"")),n}},rd={start:nd(1),end:nd(2),trim:nd(3)},id=me.f,od=T.f,ad=O.f,sd=rd.trim,cd=r.Number,ud=cd.prototype,ld="Number"==f(Ot(ud)),fd=function(e){var t,n,r,i,o,a,s,c,u=m(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=sd(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(Ae("Number",!cd(" 0o1")||!cd("0b1")||cd("+0x1"))){for(var hd,pd=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof pd&&(ld?i((function(){ud.valueOf.call(n)})):"Number"!=f(n))?Gt(new cd(fd(t)),n,pd):fd(t)},dd=o?id(cd):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),gd=0;dd.length>gd;gd++)b(cd,hd=dd[gd])&&!b(pd,hd)&&ad(pd,hd,od(cd,hd));pd.prototype=ud,ud.constructor=pd,Z(r,"Number",pd)}Pe({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var vd=c.f,md=function(e){return function(t){for(var n,r=g(t),i=_t(r),a=i.length,s=0,c=[];a>s;)n=i[s++],o&&!vd.call(r,n)||c.push(e?[n,r[n]]:r[n]);return c}},yd={entries:md(!0),values:md(!1)}.entries;function bd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _d(e,t,n){return t&&wd(e.prototype,t),n&&wd(e,n),e}function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Pe({target:"Object",stat:!0},{entries:function(e){return yd(e)}});var Sd=function(e){return null!=e?e.constructor:null},Td=function(e,t){return!!(e&&t&&e instanceof t)},xd=function(e){return null==e},Ad=function(e){return Sd(e)===Object},Od=function(e){return Sd(e)===String},Pd=function(e){return Array.isArray(e)},Id=function(e){return Td(e,NodeList)},jd=xd,Cd=Ad,Rd=function(e){return Sd(e)===Number&&!Number.isNaN(e)},Ld=Od,Nd=function(e){return Sd(e)===Boolean},Md=Pd,Ud=Id,Dd=function(e){return Td(e,Element)},Fd=function(e){return Td(e,Event)},Bd=function(e){return xd(e)||(Od(e)||Pd(e)||Id(e))&&!e.length||Ad(e)&&!Object.keys(e).length},qd={facebook:{domain:"facebook.com",url:function(e){return"https://graph.facebook.com/?id=".concat(e,"&fields=og_object{engagement}")},shareCount:function(e){return e.og_object.engagement.count},popup:{width:640,height:360}},twitter:{domain:"twitter.com",url:function(){return null},shareCount:function(){return null},popup:{width:640,height:240}},pinterest:{domain:"pinterest.com",url:function(e){return"https://widgets.pinterest.com/v1/urls/count.json?url=".concat(e)},shareCount:function(e){return e.count},popup:{width:830,height:700}},github:{domain:"github.com",url:function(e,t){return"https://api.github.com/repos/".concat(e).concat(Ld(t)?"?access_token=".concat(t):"")},shareCount:function(e){return e.data.stargazers_count}},youtube:{domain:"youtube.com",url:function(e,t){return"https://www.googleapis.com/youtube/v3/channels?part=statistics&id=".concat(e,"&key=").concat(t)},shareCount:function(e){if(!Bd(e.error))return null;var t=kd(e.items,1)[0];return Bd(t)?null:t.statistics.subscriberCount}}},Hd={debug:!1,wrapper:{className:"shr"},count:{className:"shr__count",displayZero:!1,format:!0,position:"after",increment:!0},tokens:{github:"",youtube:""},storage:{enabled:!0,key:"shr",ttl:3e5}};function Vd(e){return new Promise((function(t,n){var r="jsonp_callback_".concat(Math.round(1e5*Math.random())),i=document.createElement("script");i.addEventListener("error",(function(e){return n(e)})),window[r]=function(e){delete window[r],document.body.removeChild(i),t(e)};var o=new URL(e);o.searchParams.set("callback",r),i.setAttribute("src",o.toString()),document.body.appendChild(i)}))}var Wd=function(){},zd=function(){function e(){var t=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0];bd(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return _d(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):Wd}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):Wd}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):Wd}}]),e}();function Yd(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function $d(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=0<n?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function Gd(e,t,n){var r=document.createElement(e);return Cd(t)&&function(e,t){!Dd(e)||Bd(t)||Object.entries(t).filter((function(e){var t=kd(e,2)[1];return!jd(t)})).forEach((function(t){var n=kd(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}(r,t),Ld(n)&&(r.innerText=n),r}function Kd(e){var t=/\./.test(1.1.toLocaleString())?".":",",n=new RegExp("\\".concat(t,"\\d+$"));return Math.round(e).toLocaleString().replace(n,"")}function Xd(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return Cd(i)?(Object.keys(i).forEach((function(t){Cd(i[t])?(!Object.keys(e).includes(t)&&Object.assign(e,Ed({},t,{})),Xd(e[t],i[t])):Object.assign(e,Ed({},t,i[t]))})),Xd.apply(void 0,[e].concat(n))):e}var Jd=function(){function e(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];bd(this,e),this.enabled=r&&e.supported,this.key=t,this.ttl=n}return _d(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(Bd(n))return null;var r=window.localStorage.getItem("".concat(this.key,"_ttl"));if(Bd(r)||r<Date.now())return null;var i=JSON.parse(n);return Ld(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&Cd(t)){var n=this.get();Bd(n)&&(n={}),Xd(n,t),window.localStorage.setItem(this.key,JSON.stringify(n)),window.localStorage.setItem("".concat(this.key,"_ttl"),Date.now()+this.ttl)}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(e){return!1}}}]),e}();var Qd=function(){function e(t,n){var r=this;bd(this,e),this.elements={count:null,trigger:null,popup:null},Dd(t)?this.elements.trigger=t:Ld(t)&&(this.elements.trigger=document.querySelector(t)),Dd(this.elements.trigger)&&Bd(this.elements.trigger.shr)&&(this.config=Xd({},Hd,n,{networks:qd}),this.console=new zd(this.config.debug),this.storage=new Jd(this.config.storage.key,this.config.storage.ttl,this.config.storage.enabled),this.getCount().then((function(e){return r.updateDisplay(e)})).catch((function(){})),this.listeners(!0),this.elements.trigger.shr=this)}return _d(e,[{key:"destroy",value:function(){this.listeners(!1)}},{key:"listeners",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener";this.elements.trigger[t]("click",(function(t){return e.share(t)}),!1)}},{key:"share",value:function(e){var t=this;this.openPopup(e);var n=this.config.count.increment;this.getCount().then((function(e){return t.updateDisplay(e,n)})).catch((function(){}))}},{key:"openPopup",value:function(e){if(!Bd(this.network)&&this.networkConfig.popup){Fd(e)&&e.preventDefault();var t=this.networkConfig.popup,n=t.width,r=t.height,i="shr-popup--".concat(this.network);if(this.popup&&!this.popup.closed)this.popup.focus(),this.console.log("Popup re-focused.");else{var o=void 0===window.screenLeft?window.screen.left:window.screenLeft,a=void 0===window.screenTop?window.screen.top:window.screenTop,s=window.screen.width/2-n/2+o,c=window.screen.height/2-r/2+a;this.popup=window.open(this.href,i,"top=".concat(c,",left=").concat(s,",width=").concat(n,",height=").concat(r)),this.popup&&!this.popup.closed&&Nd(this.popup.closed)?(this.popup.focus(),this.console.log("Popup opened.")):this.console.error("Popup blocked.")}}}},{key:"getCount",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new Promise((function(n,r){var i=e.apiUrl;if(Bd(i))r(new Error("No URL available for ".concat(e.network,".")));else{if(t){var o=e.storage.get(e.target);if(!Bd(o)&&Object.keys(o).includes(e.network)){var a=o[e.network];return n(Rd(a)?a:0),void e.console.log("getCount for '".concat(e.target,"' for '").concat(e.network,"' resolved from cache."))}}Vd(i).then((function(t){var r=0,i=e.elements.trigger.getAttribute("data-shr-display");r=Bd(i)?e.networkConfig.shareCount(t):t[i],Bd(r)?r=0:(r=parseInt(r,10),!Rd(r)&&(r=0)),e.storage.set(Ed({},e.target,Ed({},e.network,r))),n(r)})).catch(r)}}))}},{key:"updateDisplay",value:function(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],n=this.config,r=n.count,i=n.wrapper,o=t?e+1:e,a=r.position.toLowerCase();if(0<o||r.displayZero){var s=function(e){return Math.round(o/e*10)/10},c=Kd(o);r.format&&(1e6<o?c="".concat(s(1e6),"M"):1e3<o&&(c="".concat(s(1e3),"K"))),Dd(this.elements.count)?this.elements.count.textContent=c:($d(this.elements.trigger,Gd("span",{class:i.className})),this.elements.count=Gd("span",{class:"".concat(r.className," ").concat(r.className,"--").concat(a)},c),this.elements.trigger.insertAdjacentElement("after"===a?"afterend":"beforebegin",this.elements.count))}}},{key:"href",get:function(){return Dd(this.elements.trigger)?this.elements.trigger.href:null}},{key:"network",get:function(){var e=this;if(!Dd(this.elements.trigger))return null;var t=this.config.networks;return Object.keys(t).find((function(n){return function(e){var t=new URL(e).hostname,n=t.split("."),r=n.length;return 2<r&&(t="".concat(n[r-2],".").concat(n[r-1]),2===n[r-2].length&&2===n[r-1].length&&(t="".concat(n[r-3],".").concat(t))),t}(e.href)===t[n].domain}))}},{key:"networkConfig",get:function(){return Bd(this.network)?null:this.config.networks[this.network]}},{key:"target",get:function(){if(Bd(this.network))return null;var e=new URL(this.href);switch(this.network){case"facebook":return e.searchParams.get("u");case"github":return e.pathname.substring(1);case"youtube":return e.pathname.split("/").pop();default:return e.searchParams.get("url")}}},{key:"apiUrl",get:function(){if(Bd(this.network))return null;var e=this.config.tokens;switch(this.network){case"github":return this.networkConfig.url(this.target,e.github);case"youtube":return this.networkConfig.url(this.target,e.youtube);default:return this.networkConfig.url(encodeURIComponent(this.target))}}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(Ld(t)?r=Array.from(document.querySelectorAll(t)):Dd(t)?r=[t]:Ud(t)?r=Array.from(t):Md(t)&&(r=t.filter(Dd)),Bd(r))return null;var i=Object.assign({},Hd,n);return Ld(t)&&i.watch&&new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Dd(n)&&Yd(n,t)&&new e(n,i)}))}))})).observe(document.body,{childList:!0,subtree:!0}),r.map((function(t){return new e(t,n)}))}}]),e}(),Zd=function(e){return e&&e.Math==Math&&e},eg=Zd("object"==typeof globalThis&&globalThis)||Zd("object"==typeof window&&window)||Zd("object"==typeof self&&self)||Zd("object"==typeof e&&e)||Function("return this")(),tg=function(e){try{return!!e()}catch(e){return!0}},ng=!tg((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),rg={}.propertyIsEnumerable,ig=Object.getOwnPropertyDescriptor,og={f:ig&&!rg.call({1:2},1)?function(e){var t=ig(this,e);return!!t&&t.enumerable}:rg},ag=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sg={}.toString,cg=function(e){return sg.call(e).slice(8,-1)},ug="".split,lg=tg((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==cg(e)?ug.call(e,""):Object(e)}:Object,fg=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},hg=function(e){return lg(fg(e))},pg=function(e){return"object"==typeof e?null!==e:"function"==typeof e},dg=function(e,t){if(!pg(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!pg(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!pg(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!pg(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},gg={}.hasOwnProperty,vg=function(e,t){return gg.call(e,t)},mg=eg.document,yg=pg(mg)&&pg(mg.createElement),bg=function(e){return yg?mg.createElement(e):{}},wg=!ng&&!tg((function(){return 7!=Object.defineProperty(bg("div"),"a",{get:function(){return 7}}).a})),_g=Object.getOwnPropertyDescriptor,Eg={f:ng?_g:function(e,t){if(e=hg(e),t=dg(t,!0),wg)try{return _g(e,t)}catch(e){}if(vg(e,t))return ag(!og.f.call(e,t),e[t])}},kg=function(e){if(!pg(e))throw TypeError(String(e)+" is not an object");return e},Sg=Object.defineProperty,Tg={f:ng?Sg:function(e,t,n){if(kg(e),t=dg(t,!0),kg(n),wg)try{return Sg(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},xg=ng?function(e,t,n){return Tg.f(e,t,ag(1,n))}:function(e,t,n){return e[t]=n,e},Ag=function(e,t){try{xg(eg,e,t)}catch(n){eg[e]=t}return t},Og=eg["__core-js_shared__"]||Ag("__core-js_shared__",{}),Pg=Function.toString;"function"!=typeof Og.inspectSource&&(Og.inspectSource=function(e){return Pg.call(e)});var Ig,jg,Cg,Rg=Og.inspectSource,Lg=eg.WeakMap,Ng="function"==typeof Lg&&/native code/.test(Rg(Lg)),Mg=t((function(e){(e.exports=function(e,t){return Og[e]||(Og[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ug=0,Dg=Math.random(),Fg=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ug+Dg).toString(36)},Bg=Mg("keys"),qg=function(e){return Bg[e]||(Bg[e]=Fg(e))},Hg={},Vg=eg.WeakMap;if(Ng){var Wg=new Vg,zg=Wg.get,Yg=Wg.has,$g=Wg.set;Ig=function(e,t){return $g.call(Wg,e,t),t},jg=function(e){return zg.call(Wg,e)||{}},Cg=function(e){return Yg.call(Wg,e)}}else{var Gg=qg("state");Hg[Gg]=!0,Ig=function(e,t){return xg(e,Gg,t),t},jg=function(e){return vg(e,Gg)?e[Gg]:{}},Cg=function(e){return vg(e,Gg)}}var Kg,Xg,Jg={set:Ig,get:jg,has:Cg,enforce:function(e){return Cg(e)?jg(e):Ig(e,{})},getterFor:function(e){return function(t){var n;if(!pg(t)||(n=jg(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Qg=t((function(e){var t=Jg.get,n=Jg.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||vg(i,"name")||xg(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==eg?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:xg(e,t,i)):s?e[t]=i:Ag(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Rg(this)}))})),Zg=eg,ev=function(e){return"function"==typeof e?e:void 0},tv=function(e,t){return arguments.length<2?ev(Zg[e])||ev(eg[e]):Zg[e]&&Zg[e][t]||eg[e]&&eg[e][t]},nv=Math.ceil,rv=Math.floor,iv=function(e){return isNaN(e=+e)?0:(e>0?rv:nv)(e)},ov=Math.min,av=function(e){return e>0?ov(iv(e),9007199254740991):0},sv=Math.max,cv=Math.min,uv=function(e,t){var n=iv(e);return n<0?sv(n+t,0):cv(n,t)},lv=function(e){return function(t,n,r){var i,o=hg(t),a=av(o.length),s=uv(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},fv={includes:lv(!0),indexOf:lv(!1)},hv=fv.indexOf,pv=function(e,t){var n,r=hg(e),i=0,o=[];for(n in r)!vg(Hg,n)&&vg(r,n)&&o.push(n);for(;t.length>i;)vg(r,n=t[i++])&&(~hv(o,n)||o.push(n));return o},dv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gv=dv.concat("length","prototype"),vv={f:Object.getOwnPropertyNames||function(e){return pv(e,gv)}},mv={f:Object.getOwnPropertySymbols},yv=tv("Reflect","ownKeys")||function(e){var t=vv.f(kg(e)),n=mv.f;return n?t.concat(n(e)):t},bv=function(e,t){for(var n=yv(t),r=Tg.f,i=Eg.f,o=0;o<n.length;o++){var a=n[o];vg(e,a)||r(e,a,i(t,a))}},wv=/#|\.prototype\./,_v=function(e,t){var n=kv[Ev(e)];return n==Tv||n!=Sv&&("function"==typeof t?tg(t):!!t)},Ev=_v.normalize=function(e){return String(e).replace(wv,".").toLowerCase()},kv=_v.data={},Sv=_v.NATIVE="N",Tv=_v.POLYFILL="P",xv=_v,Av=Eg.f,Ov=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,u=e.stat;if(n=c?eg:u?eg[s]||Ag(s,{}):(eg[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Av(n,r))&&a.value:n[r],!xv(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;bv(o,i)}(e.sham||i&&i.sham)&&xg(o,"sham",!0),Qg(n,r,o,e)}},Pv=Array.isArray||function(e){return"Array"==cg(e)},Iv=function(e){return Object(fg(e))},jv=function(e,t,n){var r=dg(t);r in e?Tg.f(e,r,ag(0,n)):e[r]=n},Cv=!!Object.getOwnPropertySymbols&&!tg((function(){return!String(Symbol())})),Rv=Cv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lv=Mg("wks"),Nv=eg.Symbol,Mv=Rv?Nv:Nv&&Nv.withoutSetter||Fg,Uv=function(e){return vg(Lv,e)||(Cv&&vg(Nv,e)?Lv[e]=Nv[e]:Lv[e]=Mv("Symbol."+e)),Lv[e]},Dv=Uv("species"),Fv=function(e,t){var n;return Pv(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Pv(n.prototype)?pg(n)&&null===(n=n[Dv])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Bv=tv("navigator","userAgent")||"",qv=eg.process,Hv=qv&&qv.versions,Vv=Hv&&Hv.v8;Vv?Xg=(Kg=Vv.split("."))[0]+Kg[1]:Bv&&(!(Kg=Bv.match(/Edge\/(\d+)/))||Kg[1]>=74)&&(Kg=Bv.match(/Chrome\/(\d+)/))&&(Xg=Kg[1]);var Wv=Xg&&+Xg,zv=Uv("species"),Yv=function(e){return Wv>=51||!tg((function(){var t=[];return(t.constructor={})[zv]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},$v=Uv("isConcatSpreadable"),Gv=Wv>=51||!tg((function(){var e=[];return e[$v]=!1,e.concat()[0]!==e})),Kv=Yv("concat"),Xv=function(e){if(!pg(e))return!1;var t=e[$v];return void 0!==t?!!t:Pv(e)};Ov({target:"Array",proto:!0,forced:!Gv||!Kv},{concat:function(e){var t,n,r,i,o,a=Iv(this),s=Fv(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],Xv(o)){if(c+(i=av(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&jv(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");jv(s,c++,o)}return s.length=c,s}});var Jv=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Qv=function(e,t,n){if(Jv(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Zv=[].push,em=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,u,l){for(var f,h,p=Iv(s),d=lg(p),g=Qv(c,u,3),v=av(d.length),m=0,y=l||Fv,b=t?y(s,v):n?y(s,0):void 0;v>m;m++)if((a||m in d)&&(h=g(f=d[m],m,p),e))if(t)b[m]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return m;case 2:Zv.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},tm={forEach:em(0),map:em(1),filter:em(2),some:em(3),every:em(4),find:em(5),findIndex:em(6)},nm=Object.defineProperty,rm={},im=function(e){throw e},om=function(e,t){if(vg(rm,e))return rm[e];t||(t={});var n=[][e],r=!!vg(t,"ACCESSORS")&&t.ACCESSORS,i=vg(t,0)?t[0]:im,o=vg(t,1)?t[1]:void 0;return rm[e]=!!n&&!tg((function(){if(r&&!ng)return!0;var e={length:-1};r?nm(e,1,{enumerable:!0,get:im}):e[1]=1,n.call(e,i,o)}))},am=tm.filter,sm=Yv("filter"),cm=om("filter");Ov({target:"Array",proto:!0,forced:!sm||!cm},{filter:function(e){return am(this,e,arguments.length>1?arguments[1]:void 0)}});var um,lm=Object.keys||function(e){return pv(e,dv)},fm=ng?Object.defineProperties:function(e,t){kg(e);for(var n,r=lm(t),i=r.length,o=0;i>o;)Tg.f(e,n=r[o++],t[n]);return e},hm=tv("document","documentElement"),pm=qg("IE_PROTO"),dm=function(){},gm=function(e){return"<script>"+e+"<\/script>"},vm=function(){try{um=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;vm=um?function(e){e.write(gm("")),e.close();var t=e.parentWindow.Object;return e=null,t}(um):((t=bg("iframe")).style.display="none",hm.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(gm("document.F=Object")),e.close(),e.F);for(var n=dv.length;n--;)delete vm.prototype[dv[n]];return vm()};Hg[pm]=!0;var mm=Object.create||function(e,t){var n;return null!==e?(dm.prototype=kg(e),n=new dm,dm.prototype=null,n[pm]=e):n=vm(),void 0===t?n:fm(n,t)},ym=Uv("unscopables"),bm=Array.prototype;null==bm[ym]&&Tg.f(bm,ym,{configurable:!0,value:mm(null)});var wm=function(e){bm[ym][e]=!0},_m=tm.find,Em=!0,km=om("find");"find"in[]&&Array(1).find((function(){Em=!1})),Ov({target:"Array",proto:!0,forced:Em||!km},{find:function(e){return _m(this,e,arguments.length>1?arguments[1]:void 0)}}),wm("find");var Sm=function(e,t,n,r){try{return r?t(kg(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&kg(i.call(e)),t}},Tm={},xm=Uv("iterator"),Am=Array.prototype,Om=function(e){return void 0!==e&&(Tm.Array===e||Am[xm]===e)},Pm={};Pm[Uv("toStringTag")]="z";var Im="[object z]"===String(Pm),jm=Uv("toStringTag"),Cm="Arguments"==cg(function(){return arguments}()),Rm=Im?cg:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),jm))?n:Cm?cg(t):"Object"==(r=cg(t))&&"function"==typeof t.callee?"Arguments":r},Lm=Uv("iterator"),Nm=function(e){if(null!=e)return e[Lm]||e["@@iterator"]||Tm[Rm(e)]},Mm=function(e){var t,n,r,i,o,a,s=Iv(e),c="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,h=Nm(s),p=0;if(f&&(l=Qv(l,u>2?arguments[2]:void 0,2)),null==h||c==Array&&Om(h))for(n=new c(t=av(s.length));t>p;p++)a=f?l(s[p],p):s[p],jv(n,p,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;p++)a=f?Sm(i,l,[r.value,p],!0):r.value,jv(n,p,a);return n.length=p,n},Um=Uv("iterator"),Dm=!1;try{var Fm=0,Bm={next:function(){return{done:!!Fm++}},return:function(){Dm=!0}};Bm[Um]=function(){return this},Array.from(Bm,(function(){throw 2}))}catch(e){}var qm=function(e,t){if(!t&&!Dm)return!1;var n=!1;try{var r={};r[Um]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Hm=!qm((function(e){Array.from(e)}));Ov({target:"Array",stat:!0,forced:Hm},{from:Mm});var Vm=fv.includes,Wm=om("indexOf",{ACCESSORS:!0,1:0});Ov({target:"Array",proto:!0,forced:!Wm},{includes:function(e){return Vm(this,e,arguments.length>1?arguments[1]:void 0)}}),wm("includes");var zm,Ym,$m,Gm=!tg((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Km=qg("IE_PROTO"),Xm=Object.prototype,Jm=Gm?Object.getPrototypeOf:function(e){return e=Iv(e),vg(e,Km)?e[Km]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Xm:null},Qm=Uv("iterator"),Zm=!1;[].keys&&("next"in($m=[].keys())?(Ym=Jm(Jm($m)))!==Object.prototype&&(zm=Ym):Zm=!0),null==zm&&(zm={}),vg(zm,Qm)||xg(zm,Qm,(function(){return this}));var ey={IteratorPrototype:zm,BUGGY_SAFARI_ITERATORS:Zm},ty=Tg.f,ny=Uv("toStringTag"),ry=function(e,t,n){e&&!vg(e=n?e:e.prototype,ny)&&ty(e,ny,{configurable:!0,value:t})},iy=ey.IteratorPrototype,oy=function(){return this},ay=function(e,t,n){var r=t+" Iterator";return e.prototype=mm(iy,{next:ag(1,n)}),ry(e,r,!1),Tm[r]=oy,e},sy=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return kg(n),function(e){if(!pg(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),cy=ey.IteratorPrototype,uy=ey.BUGGY_SAFARI_ITERATORS,ly=Uv("iterator"),fy=function(){return this},hy=function(e,t,n,r,i,o,a){ay(n,t,r);var s,c,u,l=function(e){if(e===i&&g)return g;if(!uy&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",h=!1,p=e.prototype,d=p[ly]||p["@@iterator"]||i&&p[i],g=!uy&&d||l(i),v="Array"==t&&p.entries||d;if(v&&(s=Jm(v.call(new e)),cy!==Object.prototype&&s.next&&(Jm(s)!==cy&&(sy?sy(s,cy):"function"!=typeof s[ly]&&xg(s,ly,fy)),ry(s,f,!0))),"values"==i&&d&&"values"!==d.name&&(h=!0,g=function(){return d.call(this)}),p[ly]!==g&&xg(p,ly,g),Tm[t]=g,i)if(c={values:l("values"),keys:o?g:l("keys"),entries:l("entries")},a)for(u in c)(uy||h||!(u in p))&&Qg(p,u,c[u]);else Ov({target:t,proto:!0,forced:uy||h},c);return c},py=Jg.set,dy=Jg.getterFor("Array Iterator"),gy=hy(Array,"Array",(function(e,t){py(this,{type:"Array Iterator",target:hg(e),index:0,kind:t})}),(function(){var e=dy(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Tm.Arguments=Tm.Array,wm("keys"),wm("values"),wm("entries");var vy=function(e,t){var n=[][e];return!!n&&tg((function(){n.call(null,t||function(){throw 1},1)}))},my=[].join,yy=lg!=Object,by=vy("join",",");Ov({target:"Array",proto:!0,forced:yy||!by},{join:function(e){return my.call(hg(this),void 0===e?",":e)}});var wy=tm.map,_y=Yv("map"),Ey=om("map");Ov({target:"Array",proto:!0,forced:!_y||!Ey},{map:function(e){return wy(this,e,arguments.length>1?arguments[1]:void 0)}});var ky=function(e,t,n){var r,i;return sy&&"function"==typeof(r=t.constructor)&&r!==n&&pg(i=r.prototype)&&i!==n.prototype&&sy(e,i),e},Sy="[\t\n\v\f\r                 \u2028\u2029\ufeff]",Ty=RegExp("^"+Sy+Sy+"*"),xy=RegExp(Sy+Sy+"*$"),Ay=function(e){return function(t){var n=String(fg(t));return 1&e&&(n=n.replace(Ty,"")),2&e&&(n=n.replace(xy,"")),n}},Oy={start:Ay(1),end:Ay(2),trim:Ay(3)},Py=vv.f,Iy=Eg.f,jy=Tg.f,Cy=Oy.trim,Ry=eg.Number,Ly=Ry.prototype,Ny="Number"==cg(mm(Ly)),My=function(e){var t,n,r,i,o,a,s,c,u=dg(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=Cy(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(xv("Number",!Ry(" 0o1")||!Ry("0b1")||Ry("+0x1"))){for(var Uy,Dy=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Dy&&(Ny?tg((function(){Ly.valueOf.call(n)})):"Number"!=cg(n))?ky(new Ry(My(t)),n,Dy):My(t)},Fy=ng?Py(Ry):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),By=0;Fy.length>By;By++)vg(Ry,Uy=Fy[By])&&!vg(Dy,Uy)&&jy(Dy,Uy,Iy(Ry,Uy));Dy.prototype=Ly,Ly.constructor=Dy,Qg(eg,"Number",Dy)}var qy=tg((function(){lm(1)}));Ov({target:"Object",stat:!0,forced:qy},{keys:function(e){return lm(Iv(e))}});var Hy=Im?{}.toString:function(){return"[object "+Rm(this)+"]"};Im||Qg(Object.prototype,"toString",Hy,{unsafe:!0});var Vy=function(){var e=kg(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function Wy(e,t){return RegExp(e,t)}var zy={UNSUPPORTED_Y:tg((function(){var e=Wy("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:tg((function(){var e=Wy("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Yy=RegExp.prototype.exec,$y=String.prototype.replace,Gy=Yy,Ky=function(){var e=/a/,t=/b*/g;return Yy.call(e,"a"),Yy.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Xy=zy.UNSUPPORTED_Y||zy.BROKEN_CARET,Jy=void 0!==/()??/.exec("")[1];(Ky||Jy||Xy)&&(Gy=function(e){var t,n,r,i,o=this,a=Xy&&o.sticky,s=Vy.call(o),c=o.source,u=0,l=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),l=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),n=new RegExp("^(?:"+c+")",s)),Jy&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Ky&&(t=o.lastIndex),r=Yy.call(a?n:o,l),a?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Ky&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Jy&&r&&r.length>1&&$y.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Qy=Gy;Ov({target:"RegExp",proto:!0,forced:/./.exec!==Qy},{exec:Qy});var Zy=RegExp.prototype,eb=Zy.toString,tb=tg((function(){return"/a/b"!=eb.call({source:"a",flags:"b"})})),nb="toString"!=eb.name;(tb||nb)&&Qg(RegExp.prototype,"toString",(function(){var e=kg(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Zy)?Vy.call(e):n)}),{unsafe:!0});var rb=Uv("match"),ib=function(e){var t;return pg(e)&&(void 0!==(t=e[rb])?!!t:"RegExp"==cg(e))},ob=function(e){if(ib(e))throw TypeError("The method doesn't accept regular expressions");return e},ab=Uv("match"),sb=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ab]=!1,"/./"[e](t)}catch(e){}}return!1};Ov({target:"String",proto:!0,forced:!sb("includes")},{includes:function(e){return!!~String(fg(this)).indexOf(ob(e),arguments.length>1?arguments[1]:void 0)}});var cb=function(e){return function(t,n){var r,i,o=String(fg(t)),a=iv(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},ub={codeAt:cb(!1),charAt:cb(!0)},lb=ub.charAt,fb=Jg.set,hb=Jg.getterFor("String Iterator");hy(String,"String",(function(e){fb(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=hb(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lb(n,r),t.index+=e.length,{value:e,done:!1})}));var pb=Uv("species"),db=!tg((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),gb="$0"==="a".replace(/./,"$0"),vb=Uv("replace"),mb=!!/./[vb]&&""===/./[vb]("a","$0"),yb=!tg((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),bb=function(e,t,n,r){var i=Uv(e),o=!tg((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!tg((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[pb]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||"replace"===e&&(!db||!gb||mb)||"split"===e&&!yb){var s=/./[i],c=n(i,""[e],(function(e,t,n,r,i){return t.exec===Qy?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:gb,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:mb}),u=c[0],l=c[1];Qg(String.prototype,e,u),Qg(RegExp.prototype,i,2==t?function(e,t){return l.call(e,this,t)}:function(e){return l.call(e,this)})}r&&xg(RegExp.prototype[i],"sham",!0)},wb=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},_b=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==cg(e))throw TypeError("RegExp#exec called on incompatible receiver");return Qy.call(e,t)};bb("search",1,(function(e,t,n){return[function(t){var n=fg(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=kg(e),o=String(this),a=i.lastIndex;wb(a,0)||(i.lastIndex=0);var s=_b(i,o);return wb(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var Eb=function(e,t,n){for(var r in t)Qg(e,r,t[r],n);return e},kb=!tg((function(){return Object.isExtensible(Object.preventExtensions({}))})),Sb=t((function(e){var t=Tg.f,n=Fg("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!pg(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vg(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!vg(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return kb&&a.REQUIRED&&i(e)&&!vg(e,n)&&o(e),e}};Hg[n]=!0})),Tb=(Sb.REQUIRED,Sb.fastKey,Sb.getWeakData,Sb.onFreeze,t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,u,l,f,h,p=Qv(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=Nm(e)))throw TypeError("Target is not iterable");if(Om(s)){for(c=0,u=av(e.length);u>c;c++)if((l=i?p(kg(h=e[c])[0],h[1]):p(e[c]))&&l instanceof t)return l;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(l=Sm(a,p,h.value,i))&&l&&l instanceof t)return l;return new t(!1)}).stop=function(e){return new t(!0,e)}}))),xb=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Ab=Sb.getWeakData,Ob=Jg.set,Pb=Jg.getterFor,Ib=tm.find,jb=tm.findIndex,Cb=0,Rb=function(e){return e.frozen||(e.frozen=new Lb)},Lb=function(){this.entries=[]},Nb=function(e,t){return Ib(e.entries,(function(e){return e[0]===t}))};Lb.prototype={get:function(e){var t=Nb(this,e);if(t)return t[1]},has:function(e){return!!Nb(this,e)},set:function(e,t){var n=Nb(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=jb(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var Mb={getConstructor:function(e,t,n,r){var i=e((function(e,o){xb(e,i,t),Ob(e,{type:t,id:Cb++,frozen:void 0}),null!=o&&Tb(o,e[r],e,n)})),o=Pb(t),a=function(e,t,n){var r=o(e),i=Ab(kg(t),!0);return!0===i?Rb(r).set(t,n):i[r.id]=n,e};return Eb(i.prototype,{delete:function(e){var t=o(this);if(!pg(e))return!1;var n=Ab(e);return!0===n?Rb(t).delete(e):n&&vg(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!pg(e))return!1;var n=Ab(e);return!0===n?Rb(t).has(e):n&&vg(n,t.id)}}),Eb(i.prototype,n?{get:function(e){var t=o(this);if(pg(e)){var n=Ab(e);return!0===n?Rb(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),i}},Ub=(t((function(e){var t,n=Jg.enforce,r=!eg.ActiveXObject&&"ActiveXObject"in eg,i=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=eg[e],s=a&&a.prototype,c=a,u={},l=function(e){var t=s[e];Qg(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!pg(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!pg(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!pg(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(xv(e,"function"!=typeof a||!(i||s.forEach&&!tg((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),Sb.REQUIRED=!0;else if(xv(e,!0)){var f=new c,h=f[o](i?{}:-0,1)!=f,p=tg((function(){f.has(1)})),d=qm((function(e){new a(e)})),g=!i&&tg((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));d||((c=t((function(t,n){xb(t,c,e);var i=ky(new a,t,c);return null!=n&&Tb(n,i[o],i,r),i}))).prototype=s,s.constructor=c),(p||g)&&(l("delete"),l("has"),r&&l("get")),(g||h)&&l(o),i&&s.clear&&delete s.clear}return u[e]=c,Ov({global:!0,forced:c!=a},u),ry(c,e),i||n.setStrong(c,e,r),c}("WeakMap",o,Mb);if(Ng&&r){t=Mb.getConstructor(o,"WeakMap",!0),Sb.REQUIRED=!0;var s=a.prototype,c=s.delete,u=s.has,l=s.get,f=s.set;Eb(s,{delete:function(e){if(pg(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),c.call(this,e)||r.frozen.delete(e)}return c.call(this,e)},has:function(e){if(pg(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),u.call(this,e)||r.frozen.has(e)}return u.call(this,e)},get:function(e){if(pg(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),u.call(this,e)?l.call(this,e):r.frozen.get(e)}return l.call(this,e)},set:function(e,r){if(pg(e)&&!i(e)){var o=n(this);o.frozen||(o.frozen=new t),u.call(this,e)?f.call(this,e,r):o.frozen.set(e,r)}else f.call(this,e,r);return this}})}})),{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}),Db=Uv("iterator"),Fb=Uv("toStringTag"),Bb=gy.values;for(var qb in Ub){var Hb=eg[qb],Vb=Hb&&Hb.prototype;if(Vb){if(Vb[Db]!==Bb)try{xg(Vb,Db,Bb)}catch(e){Vb[Db]=Bb}if(Vb[Fb]||xg(Vb,Fb,qb),Ub[qb])for(var Wb in gy)if(Vb[Wb]!==gy[Wb])try{xg(Vb,Wb,gy[Wb])}catch(e){Vb[Wb]=gy[Wb]}}}var zb=tm.every,Yb=vy("every"),$b=om("every");Ov({target:"Array",proto:!0,forced:!Yb||!$b},{every:function(e){return zb(this,e,arguments.length>1?arguments[1]:void 0)}});var Gb=tm.forEach,Kb=vy("forEach"),Xb=om("forEach"),Jb=Kb&&Xb?[].forEach:function(e){return Gb(this,e,arguments.length>1?arguments[1]:void 0)};Ov({target:"Array",proto:!0,forced:[].forEach!=Jb},{forEach:Jb});var Qb=fv.indexOf,Zb=[].indexOf,ew=!!Zb&&1/[1].indexOf(1,-0)<0,tw=vy("indexOf"),nw=om("indexOf",{ACCESSORS:!0,1:0});Ov({target:"Array",proto:!0,forced:ew||!tw||!nw},{indexOf:function(e){return ew?Zb.apply(this,arguments)||0:Qb(this,e,arguments.length>1?arguments[1]:void 0)}});var rw=Object.assign,iw=Object.defineProperty,ow=!rw||tg((function(){if(ng&&1!==rw({b:1},rw(iw({},"a",{enumerable:!0,get:function(){iw(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=rw({},e)[n]||"abcdefghijklmnopqrst"!=lm(rw({},t)).join("")}))?function(e,t){for(var n=Iv(e),r=arguments.length,i=1,o=mv.f,a=og.f;r>i;)for(var s,c=lg(arguments[i++]),u=o?lm(c).concat(o(c)):lm(c),l=u.length,f=0;l>f;)s=u[f++],ng&&!a.call(c,s)||(n[s]=c[s]);return n}:rw;Ov({target:"Object",stat:!0,forced:Object.assign!==ow},{assign:ow});var aw=Uv("species"),sw=function(e,t){var n,r=kg(e).constructor;return void 0===r||null==(n=kg(r)[aw])?t:Jv(n)},cw=ub.charAt,uw=function(e,t,n){return t+(n?cw(e,t).length:1)},lw=[].push,fw=Math.min,hw=!tg((function(){return!RegExp(4294967295,"y")}));bb("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(fg(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!ib(e))return t.call(r,e,i);for(var o,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,f=new RegExp(e.source,u+"g");(o=Qy.call(f,r))&&!((a=f.lastIndex)>l&&(c.push(r.slice(l,o.index)),o.length>1&&o.index<r.length&&lw.apply(c,o.slice(1)),s=o[0].length,l=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return l===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(l)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=fg(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=kg(e),s=String(this),c=sw(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(hw?"y":"g"),f=new c(hw?a:"^(?:"+a.source+")",l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===_b(f,s)?[s]:[];for(var p=0,d=0,g=[];d<s.length;){f.lastIndex=hw?d:0;var v,m=_b(f,hw?s:s.slice(d));if(null===m||(v=fw(av(f.lastIndex+(hw?0:d)),s.length))===p)d=uw(s,d,u);else{if(g.push(s.slice(p,d)),g.length===h)return g;for(var y=1;y<=m.length-1;y++)if(g.push(m[y]),g.length===h)return g;d=p=v}}return g.push(s.slice(p)),g}]}),!hw);var pw=Oy.trim;for(var dw in Ov({target:"String",proto:!0,forced:function(e){return tg((function(){return!!"\t\n\v\f\r                 \u2028\u2029\ufeff"[e]()||"​…᠎"!="​…᠎"[e]()||"\t\n\v\f\r                 \u2028\u2029\ufeff"[e].name!==e}))}("trim")},{trim:function(){return pw(this)}}),Ub){var gw=eg[dw],vw=gw&&gw.prototype;if(vw&&vw.forEach!==Jb)try{xg(vw,"forEach",Jb)}catch(e){vw.forEach=Jb}}var mw=Uv("iterator"),yw=!tg((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[mw]||"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"!==n||"x"!==new URL("http://x",void 0).host})),bw=/[^\0-\u007E]/,ww=/[.\u3002\uFF0E\uFF61]/g,_w=Math.floor,Ew=String.fromCharCode,kw=function(e){return e+22+75*(e<26)},Sw=function(e,t,n){var r=0;for(e=n?_w(e/700):e>>1,e+=_w(e/t);e>455;r+=36)e=_w(e/35);return _w(r+36*e/(e+38))},Tw=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Ew(n));var c=r.length,u=c;for(c&&r.push("-");u<i;){var l=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<l&&(l=n);var f=u+1;if(l-o>_w((2147483647-a)/f))throw RangeError("Overflow: input needs wider integers to process");for(a+=(l-o)*f,o=l,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError("Overflow: input needs wider integers to process");if(n==o){for(var h=a,p=36;;p+=36){var d=p<=s?1:p>=s+26?26:p-s;if(h<d)break;var g=h-d,v=36-d;r.push(Ew(kw(d+g%v))),h=_w(g/v)}r.push(Ew(kw(h))),s=Sw(a,f,u==c),a=0,++u}}++a,++o}return r.join("")},xw=function(e){var t=Nm(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return kg(t.call(e))},Aw=tv("fetch"),Ow=tv("Headers"),Pw=Uv("iterator"),Iw=Jg.set,jw=Jg.getterFor("URLSearchParams"),Cw=Jg.getterFor("URLSearchParamsIterator"),Rw=/\+/g,Lw=Array(4),Nw=function(e){return Lw[e-1]||(Lw[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Mw=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Uw=function(e){var t=e.replace(Rw," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(Nw(n--),Mw);return t}},Dw=/[!'()~]|%20/g,Fw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Bw=function(e){return Fw[e]},qw=function(e){return encodeURIComponent(e).replace(Dw,Bw)},Hw=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:Uw(r.shift()),value:Uw(r.join("="))}))},Vw=function(e){this.entries.length=0,Hw(this.entries,e)},Ww=function(e,t){if(e<t)throw TypeError("Not enough arguments")},zw=ay((function(e,t){Iw(this,{type:"URLSearchParamsIterator",iterator:xw(jw(e).entries),kind:t})}),"Iterator",(function(){var e=Cw(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),Yw=function(){xb(this,Yw,"URLSearchParams");var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,f=[];if(Iw(l,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:Vw}),void 0!==u)if(pg(u))if("function"==typeof(e=Nm(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(o=(i=xw(kg(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in u)vg(u,c)&&f.push({key:c,value:u[c]+""});else Hw(f,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},$w=Yw.prototype;Eb($w,{append:function(e,t){Ww(arguments.length,2);var n=jw(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){Ww(arguments.length,1);for(var t=jw(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){Ww(arguments.length,1);for(var t=jw(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Ww(arguments.length,1);for(var t=jw(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){Ww(arguments.length,1);for(var t=jw(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Ww(arguments.length,1);for(var n,r=jw(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=jw(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=jw(this).entries,r=Qv(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new zw(this,"keys")},values:function(){return new zw(this,"values")},entries:function(){return new zw(this,"entries")}},{enumerable:!0}),Qg($w,Pw,$w.entries),Qg($w,"toString",(function(){for(var e,t=jw(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(qw(e.key)+"="+qw(e.value));return n.join("&")}),{enumerable:!0}),ry(Yw,"URLSearchParams"),Ov({global:!0,forced:!yw},{URLSearchParams:Yw}),yw||"function"!=typeof Aw||"function"!=typeof Ow||Ov({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],pg(t)&&(n=t.body,"URLSearchParams"===Rm(n)&&((r=t.headers?new Ow(t.headers):new Ow).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=mm(t,{body:ag(0,String(n)),headers:ag(0,r)}))),i.push(t)),Aw.apply(this,i)}});var Gw={URLSearchParams:Yw,getState:jw},Kw=ub.codeAt,Xw=eg.URL,Jw=Gw.URLSearchParams,Qw=Gw.getState,Zw=Jg.set,e_=Jg.getterFor("URL"),t_=Math.floor,n_=Math.pow,r_=/[A-Za-z]/,i_=/[\d+\-.A-Za-z]/,o_=/\d/,a_=/^(0x|0X)/,s_=/^[0-7]+$/,c_=/^\d+$/,u_=/^[\dA-Fa-f]+$/,l_=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,f_=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,h_=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,p_=/[\u0009\u000A\u000D]/g,d_=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=v_(t.slice(1,-1))))return"Invalid host";e.host=n}else if(S_(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(ww,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(bw.test(n)?"xn--"+Tw(n):n);return r.join(".")}(t),l_.test(t))return"Invalid host";if(null===(n=g_(t)))return"Invalid host";e.host=n}else{if(f_.test(t))return"Invalid host";for(n="",r=Mm(t),i=0;i<r.length;i++)n+=E_(r[i],y_);e.host=n}},g_=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=a_.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?c_:8==o?s_:u_).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=n_(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*n_(256,3-r);return s},v_=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=n=0;n<4&&u_.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,u>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!o_.test(h()))return;for(;o_.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;f++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},m_=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=t_(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},y_={},b_=ow({},y_,{" ":1,'"':1,"<":1,">":1,"`":1}),w_=ow({},b_,{"#":1,"?":1,"{":1,"}":1}),__=ow({},w_,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),E_=function(e,t){var n=Kw(e,0);return n>32&&n<127&&!vg(t,e)?e:encodeURIComponent(e)},k_={ftp:21,file:null,http:80,https:443,ws:80,wss:443},S_=function(e){return vg(k_,e.scheme)},T_=function(e){return""!=e.username||""!=e.password},x_=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},A_=function(e,t){var n;return 2==e.length&&r_.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},O_=function(e){var t;return e.length>1&&A_(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},P_=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&A_(t[0],!0)||t.pop()},I_=function(e){return"."===e||"%2e"===e.toLowerCase()},j_={},C_={},R_={},L_={},N_={},M_={},U_={},D_={},F_={},B_={},q_={},H_={},V_={},W_={},z_={},Y_={},$_={},G_={},K_={},X_={},J_={},Q_=function(e,t,n,r){var i,o,a,s,c,u=n||j_,l=0,f="",h=!1,p=!1,d=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(h_,"")),t=t.replace(p_,""),i=Mm(t);l<=i.length;){switch(o=i[l],u){case j_:if(!o||!r_.test(o)){if(n)return"Invalid scheme";u=R_;continue}f+=o.toLowerCase(),u=C_;break;case C_:if(o&&(i_.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",u=R_,l=0;continue}if(n&&(S_(e)!=vg(k_,f)||"file"==f&&(T_(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(S_(e)&&k_[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=W_:S_(e)&&r&&r.scheme==e.scheme?u=L_:S_(e)?u=D_:"/"==i[l+1]?(u=N_,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=K_)}break;case R_:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,u=J_;break}u="file"==r.scheme?W_:M_;continue;case L_:if("/"!=o||"/"!=i[l+1]){u=M_;continue}u=F_,l++;break;case N_:if("/"==o){u=B_;break}u=G_;continue;case M_:if(e.scheme=r.scheme,null==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&S_(e))u=U_;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",u=X_;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),u=G_;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=J_}break;case U_:if(!S_(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,u=G_;continue}u=B_}else u=F_;break;case D_:if(u=F_,"/"!=o||"/"!=f.charAt(l+1))continue;l++;break;case F_:if("/"!=o&&"\\"!=o){u=B_;continue}break;case B_:if("@"==o){h&&(f="%40"+f),h=!0,a=Mm(f);for(var g=0;g<a.length;g++){var v=a[g];if(":"!=v||d){var m=E_(v,__);d?e.password+=m:e.username+=m}else d=!0}f=""}else if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&S_(e)){if(h&&""==f)return"Invalid authority";l-=Mm(f).length+1,f="",u=q_}else f+=o;break;case q_:case H_:if(n&&"file"==e.scheme){u=Y_;continue}if(":"!=o||p){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&S_(e)){if(S_(e)&&""==f)return"Invalid host";if(n&&""==f&&(T_(e)||null!==e.port))return;if(s=d_(e,f))return s;if(f="",u=$_,n)return;continue}"["==o?p=!0:"]"==o&&(p=!1),f+=o}else{if(""==f)return"Invalid host";if(s=d_(e,f))return s;if(f="",u=V_,n==H_)return}break;case V_:if(!o_.test(o)){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&S_(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=S_(e)&&y===k_[e.scheme]?null:y,f=""}if(n)return;u=$_;continue}return"Invalid port"}f+=o;break;case W_:if(e.scheme="file","/"==o||"\\"==o)u=z_;else{if(!r||"file"!=r.scheme){u=G_;continue}if(null==o)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",u=X_;else{if("#"!=o){O_(i.slice(l).join(""))||(e.host=r.host,e.path=r.path.slice(),P_(e)),u=G_;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=J_}}break;case z_:if("/"==o||"\\"==o){u=Y_;break}r&&"file"==r.scheme&&!O_(i.slice(l).join(""))&&(A_(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),u=G_;continue;case Y_:if(null==o||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&A_(f))u=G_;else if(""==f){if(e.host="",n)return;u=$_}else{if(s=d_(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",u=$_}continue}f+=o;break;case $_:if(S_(e)){if(u=G_,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(null!=o&&(u=G_,"/"!=o))continue}else e.fragment="",u=J_;else e.query="",u=X_;break;case G_:if(null==o||"/"==o||"\\"==o&&S_(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(P_(e),"/"==o||"\\"==o&&S_(e)||e.path.push("")):I_(f)?"/"==o||"\\"==o&&S_(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&A_(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(null==o||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",u=X_):"#"==o&&(e.fragment="",u=J_)}else f+=E_(o,w_);break;case K_:"?"==o?(e.query="",u=X_):"#"==o?(e.fragment="",u=J_):null!=o&&(e.path[0]+=E_(o,y_));break;case X_:n||"#"!=o?null!=o&&("'"==o&&S_(e)?e.query+="%27":e.query+="#"==o?"%23":E_(o,y_)):(e.fragment="",u=J_);break;case J_:null!=o&&(e.fragment+=E_(o,b_))}l++}},Z_=function(e){var t,n,r=xb(this,Z_,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Zw(r,{type:"URL"});if(void 0!==i)if(i instanceof Z_)t=e_(i);else if(n=Q_(t={},String(i)))throw TypeError(n);if(n=Q_(a,o,null,t))throw TypeError(n);var s=a.searchParams=new Jw,c=Qw(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},ng||(r.href=tE.call(r),r.origin=nE.call(r),r.protocol=rE.call(r),r.username=iE.call(r),r.password=oE.call(r),r.host=aE.call(r),r.hostname=sE.call(r),r.port=cE.call(r),r.pathname=uE.call(r),r.search=lE.call(r),r.searchParams=fE.call(r),r.hash=hE.call(r))},eE=Z_.prototype,tE=function(){var e=e_(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",T_(e)&&(u+=n+(r?":"+r:"")+"@"),u+=m_(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},nE=function(){var e=e_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&S_(e)?t+"://"+m_(e.host)+(null!==n?":"+n:""):"null"},rE=function(){return e_(this).scheme+":"},iE=function(){return e_(this).username},oE=function(){return e_(this).password},aE=function(){var e=e_(this),t=e.host,n=e.port;return null===t?"":null===n?m_(t):m_(t)+":"+n},sE=function(){var e=e_(this).host;return null===e?"":m_(e)},cE=function(){var e=e_(this).port;return null===e?"":String(e)},uE=function(){var e=e_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},lE=function(){var e=e_(this).query;return e?"?"+e:""},fE=function(){return e_(this).searchParams},hE=function(){var e=e_(this).fragment;return e?"#"+e:""},pE=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(ng&&fm(eE,{href:pE(tE,(function(e){var t=e_(this),n=String(e),r=Q_(t,n);if(r)throw TypeError(r);Qw(t.searchParams).updateSearchParams(t.query)})),origin:pE(nE),protocol:pE(rE,(function(e){var t=e_(this);Q_(t,String(e)+":",j_)})),username:pE(iE,(function(e){var t=e_(this),n=Mm(String(e));if(!x_(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=E_(n[r],__)}})),password:pE(oE,(function(e){var t=e_(this),n=Mm(String(e));if(!x_(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=E_(n[r],__)}})),host:pE(aE,(function(e){var t=e_(this);t.cannotBeABaseURL||Q_(t,String(e),q_)})),hostname:pE(sE,(function(e){var t=e_(this);t.cannotBeABaseURL||Q_(t,String(e),H_)})),port:pE(cE,(function(e){var t=e_(this);x_(t)||(""==(e=String(e))?t.port=null:Q_(t,e,V_))})),pathname:pE(uE,(function(e){var t=e_(this);t.cannotBeABaseURL||(t.path=[],Q_(t,e+"",$_))})),search:pE(lE,(function(e){var t=e_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Q_(t,e,X_)),Qw(t.searchParams).updateSearchParams(t.query)})),searchParams:pE(fE),hash:pE(hE,(function(e){var t=e_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Q_(t,e,J_)):t.fragment=null}))}),Qg(eE,"toJSON",(function(){return tE.call(this)}),{enumerable:!0}),Qg(eE,"toString",(function(){return tE.call(this)}),{enumerable:!0}),Xw){var dE=Xw.createObjectURL,gE=Xw.revokeObjectURL;dE&&Qg(Z_,"createObjectURL",(function(e){return dE.apply(Xw,arguments)})),gE&&Qg(Z_,"revokeObjectURL",(function(e){return gE.apply(Xw,arguments)}))}ry(Z_,"URL"),Ov({global:!0,forced:!yw,sham:!ng},{URL:Z_});var vE=tm.some,mE=vy("some"),yE=om("some");Ov({target:"Array",proto:!0,forced:!mE||!yE},{some:function(e){return vE(this,e,arguments.length>1?arguments[1]:void 0)}});var bE="".repeat||function(e){var t=String(fg(this)),n="",r=iv(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},wE=1..toFixed,_E=Math.floor,EE=function(e,t,n){return 0===t?n:t%2==1?EE(e,t-1,n*e):EE(e*e,t/2,n)},kE=wE&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!tg((function(){wE.call({})}));Ov({target:"Number",proto:!0,forced:kE},{toFixed:function(e){var t,n,r,i,o=function(e){if("number"!=typeof e&&"Number"!=cg(e))throw TypeError("Incorrect invocation");return+e}(this),a=iv(e),s=[0,0,0,0,0,0],c="",u="0",l=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=_E(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=_E(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+bE.call("0",7-n.length)+n}return t};if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(c="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*EE(2,69,1))-69)<0?o*EE(2,-t,1):o/EE(2,t,1),n*=4503599627370496,(t=52-t)>0){for(l(0,n),r=a;r>=7;)l(1e7,0),r-=7;for(l(EE(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),l(1,1),f(2),u=h()}else l(0,n),l(1<<-t,0),u=h()+bE.call("0",a);return u=a>0?c+((i=u.length)<=a?"0."+bE.call("0",a-i)+u:u.slice(0,i-a)+"."+u.slice(i-a)):c+u}});var SE=og.f,TE=function(e){return function(t){for(var n,r=hg(t),i=lm(r),o=i.length,a=0,s=[];o>a;)n=i[a++],ng&&!SE.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},xE={entries:TE(!0),values:TE(!1)},AE=xE.entries;Ov({target:"Object",stat:!0},{entries:function(e){return AE(e)}});var OE=xE.values;Ov({target:"Object",stat:!0},{values:function(e){return OE(e)}});var PE=Math.max,IE=Math.min,jE=Math.floor,CE=/\$([$&'`]|\d\d?|<[^>]*>)/g,RE=/\$([$&'`]|\d\d?)/g;bb("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=fg(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var u=kg(e),l=String(this),f="function"==typeof r;f||(r=String(r));var h=u.global;if(h){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var g=_b(u,l);if(null===g)break;if(d.push(g),!h)break;""===String(g[0])&&(u.lastIndex=uw(l,av(u.lastIndex),p))}for(var v,m="",y=0,b=0;b<d.length;b++){g=d[b];for(var w=String(g[0]),_=PE(IE(iv(g.index),l.length),0),E=[],k=1;k<g.length;k++)E.push(void 0===(v=g[k])?v:String(v));var S=g.groups;if(f){var T=[w].concat(E,_,l);void 0!==S&&T.push(S);var x=String(r.apply(void 0,T))}else x=s(w,l,_,E,S,r);_>=y&&(m+=l.slice(y,_)+x,y=_+w.length)}return m+l.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,u=RE;return void 0!==o&&(o=Iv(o),u=CE),t.call(a,u,(function(t,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":u=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>c){var f=jE(l/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}u=i[l-1]}return void 0===u?"":u}))}}));var LE=vv.f,NE={}.toString,ME="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],UE={f:function(e){return ME&&"[object Window]"==NE.call(e)?function(e){try{return LE(e)}catch(e){return ME.slice()}}(e):LE(hg(e))}},DE={f:Uv},FE=Tg.f,BE=tm.forEach,qE=qg("hidden"),HE=Uv("toPrimitive"),VE=Jg.set,WE=Jg.getterFor("Symbol"),zE=Object.prototype,YE=eg.Symbol,$E=tv("JSON","stringify"),GE=Eg.f,KE=Tg.f,XE=UE.f,JE=og.f,QE=Mg("symbols"),ZE=Mg("op-symbols"),ek=Mg("string-to-symbol-registry"),tk=Mg("symbol-to-string-registry"),nk=Mg("wks"),rk=eg.QObject,ik=!rk||!rk.prototype||!rk.prototype.findChild,ok=ng&&tg((function(){return 7!=mm(KE({},"a",{get:function(){return KE(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=GE(zE,t);r&&delete zE[t],KE(e,t,n),r&&e!==zE&&KE(zE,t,r)}:KE,ak=function(e,t){var n=QE[e]=mm(YE.prototype);return VE(n,{type:"Symbol",tag:e,description:t}),ng||(n.description=t),n},sk=Rv?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof YE},ck=function(e,t,n){e===zE&&ck(ZE,t,n),kg(e);var r=dg(t,!0);return kg(n),vg(QE,r)?(n.enumerable?(vg(e,qE)&&e[qE][r]&&(e[qE][r]=!1),n=mm(n,{enumerable:ag(0,!1)})):(vg(e,qE)||KE(e,qE,ag(1,{})),e[qE][r]=!0),ok(e,r,n)):KE(e,r,n)},uk=function(e,t){kg(e);var n=hg(t),r=lm(n).concat(pk(n));return BE(r,(function(t){ng&&!lk.call(n,t)||ck(e,t,n[t])})),e},lk=function(e){var t=dg(e,!0),n=JE.call(this,t);return!(this===zE&&vg(QE,t)&&!vg(ZE,t))&&(!(n||!vg(this,t)||!vg(QE,t)||vg(this,qE)&&this[qE][t])||n)},fk=function(e,t){var n=hg(e),r=dg(t,!0);if(n!==zE||!vg(QE,r)||vg(ZE,r)){var i=GE(n,r);return!i||!vg(QE,r)||vg(n,qE)&&n[qE][r]||(i.enumerable=!0),i}},hk=function(e){var t=XE(hg(e)),n=[];return BE(t,(function(e){vg(QE,e)||vg(Hg,e)||n.push(e)})),n},pk=function(e){var t=e===zE,n=XE(t?ZE:hg(e)),r=[];return BE(n,(function(e){!vg(QE,e)||t&&!vg(zE,e)||r.push(QE[e])})),r};if(Cv||(Qg((YE=function(){if(this instanceof YE)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=Fg(e),n=function(e){this===zE&&n.call(ZE,e),vg(this,qE)&&vg(this[qE],t)&&(this[qE][t]=!1),ok(this,t,ag(1,e))};return ng&&ik&&ok(zE,t,{configurable:!0,set:n}),ak(t,e)}).prototype,"toString",(function(){return WE(this).tag})),Qg(YE,"withoutSetter",(function(e){return ak(Fg(e),e)})),og.f=lk,Tg.f=ck,Eg.f=fk,vv.f=UE.f=hk,mv.f=pk,DE.f=function(e){return ak(Uv(e),e)},ng&&(KE(YE.prototype,"description",{configurable:!0,get:function(){return WE(this).description}}),Qg(zE,"propertyIsEnumerable",lk,{unsafe:!0}))),Ov({global:!0,wrap:!0,forced:!Cv,sham:!Cv},{Symbol:YE}),BE(lm(nk),(function(e){!function(e){var t=Zg.Symbol||(Zg.Symbol={});vg(t,e)||FE(t,e,{value:DE.f(e)})}(e)})),Ov({target:"Symbol",stat:!0,forced:!Cv},{for:function(e){var t=String(e);if(vg(ek,t))return ek[t];var n=YE(t);return ek[t]=n,tk[n]=t,n},keyFor:function(e){if(!sk(e))throw TypeError(e+" is not a symbol");if(vg(tk,e))return tk[e]},useSetter:function(){ik=!0},useSimple:function(){ik=!1}}),Ov({target:"Object",stat:!0,forced:!Cv,sham:!ng},{create:function(e,t){return void 0===t?mm(e):uk(mm(e),t)},defineProperty:ck,defineProperties:uk,getOwnPropertyDescriptor:fk}),Ov({target:"Object",stat:!0,forced:!Cv},{getOwnPropertyNames:hk,getOwnPropertySymbols:pk}),Ov({target:"Object",stat:!0,forced:tg((function(){mv.f(1)}))},{getOwnPropertySymbols:function(e){return mv.f(Iv(e))}}),$E){var dk=!Cv||tg((function(){var e=YE();return"[null]"!=$E([e])||"{}"!=$E({a:e})||"{}"!=$E(Object(e))}));Ov({target:"JSON",stat:!0,forced:dk},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(pg(t)||void 0!==e)&&!sk(e))return Pv(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!sk(t))return t}),i[1]=t,$E.apply(null,i)}})}YE.prototype[HE]||xg(YE.prototype,HE,YE.prototype.valueOf),ry(YE,"Symbol"),Hg[qE]=!0,Ov({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var gk=Eg.f,vk=tg((function(){gk(1)}));function mk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bk(Object(n),!0).forEach((function(t){yk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Ov({target:"Object",stat:!0,forced:!ng||vk,sham:!ng},{getOwnPropertyDescriptor:function(e,t){return gk(hg(e),t)}}),Ov({target:"Object",stat:!0,sham:!ng},{getOwnPropertyDescriptors:function(e){for(var t,n,r=hg(e),i=Eg.f,o=yv(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&jv(a,t,n);return a}}),bb("match",1,(function(e,t,n){return[function(t){var n=fg(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=kg(e),o=String(this);if(!i.global)return _b(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],u=0;null!==(s=_b(i,o));){var l=String(s[0]);c[u]=l,""===l&&(i.lastIndex=uw(o,av(i.lastIndex),a)),u++}return 0===u?null:c}]}));var _k={addCSS:!0,thumbWidth:15,watch:!0};function Ek(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var kk=function(e){return null!=e?e.constructor:null},Sk=function(e,t){return!!(e&&t&&e instanceof t)},Tk=function(e){return null==e},xk=function(e){return kk(e)===Object},Ak=function(e){return kk(e)===String},Ok=function(e){return Array.isArray(e)},Pk=function(e){return Sk(e,NodeList)},Ik=Ak,jk=Ok,Ck=Pk,Rk=function(e){return Sk(e,Element)},Lk=function(e){return Sk(e,Event)},Nk=function(e){return Tk(e)||(Ak(e)||Ok(e)||Pk(e))&&!e.length||xk(e)&&!Object.keys(e).length};function Mk(e,t){if(1>t){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}var Uk,Dk,Fk,Bk=function(){function e(t,n){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),Rk(t)?this.element=t:Ik(t)&&(this.element=document.querySelector(t)),Rk(this.element)&&Nk(this.element.rangeTouch)&&(this.config=wk({},_k,{},n),this.init())}return function(e,t,n){t&&mk(e.prototype,t),n&&mk(e,n)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[n](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!Lk(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,c=r.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(n=100/c.width*(i.clientX-c.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*u:50<n&&(n+=2*(n-50)*u),o+Mk(n/100*(a-o),s)}},{key:"set",value:function(t){e.enabled&&Lk(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t,{bubbles:!0});e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(Nk(t)||Ik(t)?r=Array.from(document.querySelectorAll(Ik(t)?t:'input[type="range"]')):Rk(t)?r=[t]:Ck(t)?r=Array.from(t):jk(t)&&(r=t.filter(Rk)),Nk(r))return null;var i=wk({},_k,{},n);if(Ik(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){Rk(n)&&Ek(n,t)&&new e(n,i)}))}))}));o.observe(document.body,{childList:!0,subtree:!0})}return r.map((function(t){return new e(t,n)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),qk=eg.Promise,Hk=Uv("species"),Vk=function(e){var t=tv(e),n=Tg.f;ng&&t&&!t[Hk]&&n(t,Hk,{configurable:!0,get:function(){return this}})},Wk=/(iphone|ipod|ipad).*applewebkit/i.test(Bv),zk=eg.location,Yk=eg.setImmediate,$k=eg.clearImmediate,Gk=eg.process,Kk=eg.MessageChannel,Xk=eg.Dispatch,Jk=0,Qk={},Zk=function(e){if(Qk.hasOwnProperty(e)){var t=Qk[e];delete Qk[e],t()}},eS=function(e){return function(){Zk(e)}},tS=function(e){Zk(e.data)},nS=function(e){eg.postMessage(e+"",zk.protocol+"//"+zk.host)};Yk&&$k||(Yk=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Qk[++Jk]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},Uk(Jk),Jk},$k=function(e){delete Qk[e]},"process"==cg(Gk)?Uk=function(e){Gk.nextTick(eS(e))}:Xk&&Xk.now?Uk=function(e){Xk.now(eS(e))}:Kk&&!Wk?(Fk=(Dk=new Kk).port2,Dk.port1.onmessage=tS,Uk=Qv(Fk.postMessage,Fk,1)):!eg.addEventListener||"function"!=typeof postMessage||eg.importScripts||tg(nS)?Uk="onreadystatechange"in bg("script")?function(e){hm.appendChild(bg("script")).onreadystatechange=function(){hm.removeChild(this),Zk(e)}}:function(e){setTimeout(eS(e),0)}:(Uk=nS,eg.addEventListener("message",tS,!1)));var rS,iS,oS,aS,sS,cS,uS,lS,fS={set:Yk,clear:$k},hS=Eg.f,pS=fS.set,dS=eg.MutationObserver||eg.WebKitMutationObserver,gS=eg.process,vS=eg.Promise,mS="process"==cg(gS),yS=hS(eg,"queueMicrotask"),bS=yS&&yS.value;bS||(rS=function(){var e,t;for(mS&&(e=gS.domain)&&e.exit();iS;){t=iS.fn,iS=iS.next;try{t()}catch(e){throw iS?aS():oS=void 0,e}}oS=void 0,e&&e.enter()},mS?aS=function(){gS.nextTick(rS)}:dS&&!Wk?(sS=!0,cS=document.createTextNode(""),new dS(rS).observe(cS,{characterData:!0}),aS=function(){cS.data=sS=!sS}):vS&&vS.resolve?(uS=vS.resolve(void 0),lS=uS.then,aS=function(){lS.call(uS,rS)}):aS=function(){pS.call(eg,rS)});var wS,_S,ES,kS,SS=bS||function(e){var t={fn:e,next:void 0};oS&&(oS.next=t),iS||(iS=t,aS()),oS=t},TS=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Jv(t),this.reject=Jv(n)},xS={f:function(e){return new TS(e)}},AS=function(e,t){if(kg(e),pg(t)&&t.constructor===e)return t;var n=xS.f(e);return(0,n.resolve)(t),n.promise},OS=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},PS=fS.set,IS=Uv("species"),jS=Jg.get,CS=Jg.set,RS=Jg.getterFor("Promise"),LS=qk,NS=eg.TypeError,MS=eg.document,US=eg.process,DS=tv("fetch"),FS=xS.f,BS=FS,qS="process"==cg(US),HS=!!(MS&&MS.createEvent&&eg.dispatchEvent),VS=xv("Promise",(function(){if(!(Rg(LS)!==String(LS))){if(66===Wv)return!0;if(!qS&&"function"!=typeof PromiseRejectionEvent)return!0}if(Wv>=51&&/native code/.test(LS))return!1;var e=LS.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[IS]=t,!(e.then((function(){}))instanceof t)})),WS=VS||!qm((function(e){LS.all(e).catch((function(){}))})),zS=function(e){var t;return!(!pg(e)||"function"!=typeof(t=e.then))&&t},YS=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;SS((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,u,l=r[a++],f=o?l.ok:l.fail,h=l.resolve,p=l.reject,d=l.domain;try{f?(o||(2===t.rejection&&XS(e,t),t.rejection=1),!0===f?s=i:(d&&d.enter(),s=f(i),d&&(d.exit(),u=!0)),s===l.promise?p(NS("Promise-chain cycle")):(c=zS(s))?c.call(s,h,p):h(s)):p(i)}catch(e){d&&!u&&d.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&GS(e,t)}))}},$S=function(e,t,n){var r,i;HS?((r=MS.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),eg.dispatchEvent(r)):r={promise:t,reason:n},(i=eg["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=eg.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},GS=function(e,t){PS.call(eg,(function(){var n,r=t.value;if(KS(t)&&(n=OS((function(){qS?US.emit("unhandledRejection",r,e):$S("unhandledrejection",e,r)})),t.rejection=qS||KS(t)?2:1,n.error))throw n.value}))},KS=function(e){return 1!==e.rejection&&!e.parent},XS=function(e,t){PS.call(eg,(function(){qS?US.emit("rejectionHandled",e):$S("rejectionhandled",e,t.value)}))},JS=function(e,t,n,r){return function(i){e(t,n,i,r)}},QS=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,YS(e,t,!0))},ZS=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw NS("Promise can't be resolved itself");var i=zS(n);i?SS((function(){var r={done:!1};try{i.call(n,JS(ZS,e,r,t),JS(QS,e,r,t))}catch(n){QS(e,r,n,t)}})):(t.value=n,t.state=1,YS(e,t,!1))}catch(n){QS(e,{done:!1},n,t)}}};VS&&(LS=function(e){xb(this,LS,"Promise"),Jv(e),wS.call(this);var t=jS(this);try{e(JS(ZS,this,t),JS(QS,this,t))}catch(e){QS(this,t,e)}},(wS=function(e){CS(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Eb(LS.prototype,{then:function(e,t){var n=RS(this),r=FS(sw(this,LS));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=qS?US.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&YS(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),_S=function(){var e=new wS,t=jS(e);this.promise=e,this.resolve=JS(ZS,e,t),this.reject=JS(QS,e,t)},xS.f=FS=function(e){return e===LS||e===ES?new _S(e):BS(e)},"function"==typeof qk&&(kS=qk.prototype.then,Qg(qk.prototype,"then",(function(e,t){var n=this;return new LS((function(e,t){kS.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof DS&&Ov({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return AS(LS,DS.apply(eg,arguments))}}))),Ov({global:!0,wrap:!0,forced:VS},{Promise:LS}),ry(LS,"Promise",!1),Vk("Promise"),ES=tv("Promise"),Ov({target:"Promise",stat:!0,forced:VS},{reject:function(e){var t=FS(this);return t.reject.call(void 0,e),t.promise}}),Ov({target:"Promise",stat:!0,forced:VS},{resolve:function(e){return AS(this,e)}}),Ov({target:"Promise",stat:!0,forced:WS},{all:function(e){var t=this,n=FS(t),r=n.resolve,i=n.reject,o=OS((function(){var n=Jv(t.resolve),o=[],a=0,s=1;Tb(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=FS(t),r=n.reject,i=OS((function(){var i=Jv(t.resolve);Tb(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var eT,tT=Eg.f,nT="".startsWith,rT=Math.min,iT=sb("startsWith"),oT=!(iT||(eT=tT(String.prototype,"startsWith"),!eT||eT.writable));Ov({target:"String",proto:!0,forced:!oT&&!iT},{startsWith:function(e){var t=String(fg(this));ob(e);var n=av(rT(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return nT?nT.call(t,r,n):t.slice(n,n+r.length)===r}});var aT,sT,cT,uT=function(e){return null!=e?e.constructor:null},lT=function(e,t){return Boolean(e&&t&&e instanceof t)},fT=function(e){return null==e},hT=function(e){return uT(e)===Object},pT=function(e){return uT(e)===String},dT=function(e){return uT(e)===Function},gT=function(e){return Array.isArray(e)},vT=function(e){return lT(e,NodeList)},mT=function(e){return fT(e)||(pT(e)||gT(e)||vT(e))&&!e.length||hT(e)&&!Object.keys(e).length},yT=fT,bT=hT,wT=function(e){return uT(e)===Number&&!Number.isNaN(e)},_T=pT,ET=function(e){return uT(e)===Boolean},kT=dT,ST=gT,TT=vT,xT=function(e){return lT(e,Element)},AT=function(e){return lT(e,Event)},OT=function(e){return lT(e,KeyboardEvent)},PT=function(e){return lT(e,TextTrack)||!fT(e)&&pT(e.kind)},IT=function(e){return lT(e,Promise)&&dT(e.then)},jT=function(e){if(lT(e,window.URL))return!0;if(!pT(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!mT(new URL(t).hostname)}catch(e){return!1}},CT=mT,RT=(aT=document.createElement("span"),sT={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},cT=Object.keys(sT).find((function(e){return void 0!==aT.style[e]})),!!_T(cT)&&sT[cT]);function LT(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var NT={isIE:
/* @cc_on!@ */
-!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},P_=function(e){return function(t,n,r,i){Wg(n);var o=_g(t),a=ip(o),s=eg(o.length),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(i=n(i,a[c],c,o));return i}},I_={left:P_(!1),right:P_(!0)}.left,R_=uv("reduce"),j_=Zg("reduce",{1:0});function L_(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function M_(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return d_(i)?(Object.keys(i).forEach((function(t){d_(i[t])?(Object.keys(e).includes(t)||Object.assign(e,ja({},t,{})),M_(e[t],i[t])):Object.assign(e,ja({},t,i[t]))})),M_.apply(void 0,[e].concat(n))):e}function N_(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function U_(e,t){w_(e)&&!A_(t)&&Object.entries(t).filter((function(e){var t=Na(e,2)[1];return!h_(t)})).forEach((function(t){var n=Na(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function F_(e,t,n){var r=document.createElement(e);return d_(t)&&U_(r,t),g_(n)&&(r.innerText=n),r}function D_(e,t,n,r){w_(t)&&t.appendChild(F_(e,n,r))}function B_(e){b_(e)||y_(e)?Array.from(e).forEach(B_):w_(e)&&w_(e.parentNode)&&e.parentNode.removeChild(e)}function q_(e){if(w_(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function H_(e,t){return w_(t)&&w_(t.parentNode)&&w_(e)?(t.parentNode.replaceChild(e,t),e):null}function V_(e,t){if(!g_(e)||A_(e))return{};var n={},r=M_({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=Na(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":g_(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),M_(r,n)}function z_(e,t){if(w_(e)){var n=t;m_(n)||(n=!e.hidden),e.hidden=n}}function W_(e,t,n){if(b_(e))return Array.from(e).map((function(e){return W_(e,t,n)}));if(w_(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function $_(e,t){return w_(e)&&e.classList.contains(t)}function K_(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function Y_(e){return this.elements.container.querySelectorAll(e)}function G_(e){return this.elements.container.querySelector(e)}function X_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w_(e)&&(e.focus({preventScroll:!0}),t&&W_(e,this.config.classNames.tabFocus))}Sg({target:"Array",proto:!0,forced:!R_||!j_},{reduce:function(e){return I_(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var J_,Q_={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Z_={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var r=C_.isIPhone&&n&&Z_.playsinline,i=Z_[e]||"html5"!==t;return{api:i,ui:i&&Z_.rangeInput&&("video"!==e||!C_.isIPhone||r)}},pip:!(C_.isIPhone||!v_(F_("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||F_("video").disablePictureInPicture)),airplay:v_(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(A_(e))return!1;var t=Na(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(Q_).includes(n)&&(n+='; codecs="'.concat(Q_[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(J_=document.createElement("input"),J_.type="range","range"===J_.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==x_,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},eT=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function tT(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!A_(t)&&v_(n)){var s=t.split(" "),c=a;eT&&(c={passive:o,capture:a}),s.forEach((function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:c}),e[i?"addEventListener":"removeEventListener"](t,n,c)}))}}function nT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];tT.call(this,e,t,n,!0,r,i)}function rT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];tT.call(this,e,t,n,!1,r,i)}function iT(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){rT(e,n,a,i,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];r.apply(t,c)};tT.call(this,e,n,a,!0,i,o)}function oT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(w_(e)&&!A_(t)){var i=new CustomEvent(t,{bubbles:n,detail:Ma({},r,{plyr:this})});e.dispatchEvent(i)}}function aT(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i)})),this.eventListeners=[])}function sT(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):nT.call(e,e.elements.container,"ready",t)})).then((function(){}))}function cT(e){__(e)&&e.then(null,(function(){}))}function lT(e){return!!(y_(e)||g_(e)&&e.includes(":"))&&(y_(e)?e:e.split(":")).map(Number).every(p_)}function uT(e){if(!y_(e)||!e.every(p_))return null;var t=Na(e,2),n=t[0],r=t[1],i=function e(t,n){return 0===n?t:e(n,t%n)}(n,r);return[n/i,r/i]}function fT(e){var t=function(e){return lT(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!A_(this.embed)&&y_(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=uT([r.videoWidth,r.videoHeight])}return n}function hT(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=fT.call(this,e),r=Na(y_(n)?n:[0,0],2),i=100/r[0]*r[1];if(t.style.paddingBottom="".concat(i,"%"),this.isVimeo&&this.supported.ui){var o=(240-i)/4.8;this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:i,ratio:n}}var dT={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!A_(n)||Z_.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:dT.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,A_(this.config.ratio)||hT.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=dT.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&v_(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=dT.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,s=r.readyState,c=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=c,e.currentTime=i,o||cT(e.play())})),e.media.load())}oT.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(B_(dT.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function pT(e){return y_(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}var gT=Bg("slice"),mT=Zg("slice",{ACCESSORS:!0,0:0,1:2}),vT=Ig("species"),yT=[].slice,bT=Math.max;Sg({target:"Array",proto:!0,forced:!gT||!mT},{slice:function(e,t){var n,r,i,o=ap(this),a=eg(o.length),s=rg(e,a),c=rg(void 0===t?a:t,a);if(Eg(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Eg(n.prototype)?sp(n)&&null===(n=n[vT])&&(n=void 0):n=void 0,n===Array||void 0===n))return yT.call(o,s,c);for(r=new(void 0===n?Array:n)(bT(c-s,0)),i=0;s<c;s++,i++)s in o&&Tg(r,i,o[s]);return r.length=i,r}});var wT=bp.f,kT=ug.f,ST=Wp.set,ET=Ig("match"),_T=Yd.RegExp,TT=_T.prototype,AT=/a/g,xT=/a/g,OT=new _T(AT)!==AT,CT=Dv.UNSUPPORTED_Y;if(Xd&&wg("RegExp",!OT||CT||Gd((function(){return xT[ET]=!1,_T(AT)!=AT||_T(xT)==xT||"/a/i"!=_T(AT,"i")})))){for(var PT=function(e,t){var n,r=this instanceof PT,i=Qv(e),o=void 0===t;if(!r&&i&&e.constructor===PT&&o)return e;OT?i&&!o&&(e=e.source):e instanceof PT&&(o&&(t=Uv.call(e)),e=e.source),CT&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=vv(OT?new _T(e,t):_T(e,t),r?this:TT,PT);return CT&&n&&ST(a,{sticky:n}),a},IT=function(e){e in PT||wT(PT,e,{configurable:!0,get:function(){return _T[e]},set:function(t){_T[e]=t}})},RT=kT(_T),jT=0;RT.length>jT;)IT(RT[jT++]);TT.constructor=PT,PT.prototype=TT,$p(Yd,"RegExp",PT)}function LT(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return A_(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}function MT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())}function NT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function UT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=MT(t,"-"," "),t=MT(t,"_"," "),MT(t=NT(t)," ","")}function FT(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}US("RegExp");var DT={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},BT=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(A_(e)||A_(t))return"";var n=L_(t.i18n,e);if(A_(n))return Object.keys(DT).includes(e)?DT[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=Na(e,2),r=t[0],i=t[1];n=MT(n,r,i)})),n},qT=function(){function e(t){Pa(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Ra(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(A_(n))return null;var r=JSON.parse(n);return g_(t)&&t.length?r[t]:r}},{key:"set",value:function(t){if(e.supported&&this.enabled&&d_(t)){var n=this.get();A_(n)&&(n={}),M_(n,t),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;return window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0}catch(e){return!1}}}]),e}();function HT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(function(){throw new Error(i.status)})),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){r(e)}}))}function VT(e,t){if(g_(e)){var n=g_(t),r=function(){return null!==document.getElementById(t)},i=function(e,t){e.innerHTML=t,n&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!r()){var o=qT.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("".concat("cache","-").concat(t));if(null!==s){var c=JSON.parse(s);i(a,c.content)}}HT(e).then((function(e){A_(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),i(a,e))})).catch((function(){}))}}}var zT=Math.ceil,WT=Math.floor;Sg({target:"Math",stat:!0},{trunc:function(e){return(e>0?WT:zT)(e)}});var $T=function(e){return Math.trunc(e/60/60%60,10)},KT=function(e){return Math.trunc(e/60%60,10)},YT=function(e){return Math.trunc(e%60,10)};function GT(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!p_(e))return GT(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=$T(e),o=KT(e),a=YT(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var XT={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||C_.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=G_.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Y_.call(this,this.config.selectors.buttons.play),pause:G_.call(this,this.config.selectors.buttons.pause),restart:G_.call(this,this.config.selectors.buttons.restart),rewind:G_.call(this,this.config.selectors.buttons.rewind),fastForward:G_.call(this,this.config.selectors.buttons.fastForward),mute:G_.call(this,this.config.selectors.buttons.mute),pip:G_.call(this,this.config.selectors.buttons.pip),airplay:G_.call(this,this.config.selectors.buttons.airplay),settings:G_.call(this,this.config.selectors.buttons.settings),captions:G_.call(this,this.config.selectors.buttons.captions),fullscreen:G_.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=G_.call(this,this.config.selectors.progress),this.elements.inputs={seek:G_.call(this,this.config.selectors.inputs.seek),volume:G_.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:G_.call(this,this.config.selectors.display.buffer),currentTime:G_.call(this,this.config.selectors.display.currentTime),duration:G_.call(this,this.config.selectors.display.duration)},w_(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n=XT.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),i=document.createElementNS("http://www.w3.org/2000/svg","svg");U_(i,M_(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS("http://www.w3.org/2000/svg","use"),a="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.appendChild(o),i},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=BT(e,this.config),r=Ma({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return F_("span",r,n)},createBadge:function(e){if(A_(e))return null;var t=F_("span",{class:this.config.classNames.menu.value});return t.appendChild(F_("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=M_({},t),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=UT(t)).charAt(0).toLowerCase()+t.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(r).includes(e)&&(o[e]=r[e],delete r[e])})),"button"!==o.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(e){return e===n.config.classNames.control}))||M_(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),i="play",o.label="play",o.icon="play";break;default:A_(o.label)&&(o.label=i),A_(o.icon)&&(o.icon=e)}var a=F_(o.element);return o.toggle?(a.appendChild(XT.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(XT.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(XT.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(XT.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(XT.createIcon.call(this,o.icon)),a.appendChild(XT.createLabel.call(this,o.label))),M_(r,V_(this.config.selectors.buttons[i],r)),U_(a,r),"play"===i?(y_(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(a)):this.elements.buttons[i]=a,a},createRange:function(e,t){var n=F_("input",M_(V_(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":BT(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,XT.updateRangeFill.call(this,n),LS.setup(n),n},createProgress:function(e,t){var n=F_("progress",M_(V_(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(F_("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?BT(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=V_(this.config.selectors.display[e],t),r=F_("div",M_(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":BT(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;nT.call(this,e,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=K_(e,'[role="menuitemradio"]');if(!o&&[32,39].includes(r.which))XT.showMenuPanel.call(n,t,!0);else 32!==r.which&&(40===r.which||o&&39===r.which?(i=e.nextElementSibling,w_(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,w_(i)||(i=e.parentNode.lastElementChild)),X_.call(n,i,!0))}}),!1),nT.call(this,e,"keyup",(function(e){13===e.which&&XT.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,r=e.list,i=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,c=e.checked,l=void 0!==c&&c,u=V_(this.config.selectors.inputs[i]),f=F_("button",M_(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":l,value:n})),h=F_("span");h.innerHTML=o,w_(s)&&h.appendChild(s),f.appendChild(h),Object.defineProperty(f,"checked",{enumerable:!0,get:function(){return"true"===f.getAttribute("aria-checked")},set:function(e){e&&Array.from(f.parentNode.children).filter((function(e){return K_(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),f.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(f,"click keyup",(function(e){if(!S_(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,i){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}XT.showMenuPanel.call(t,"home",S_(e))}}),i,!1),XT.bindMenuItemShortcuts.call(this,f,i),r.appendChild(f)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!p_(e))return e;var n=$T(this.duration)>0;return GT(e,n,t)},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];w_(e)&&p_(t)&&(e.innerText=XT.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(w_(this.elements.inputs.volume)&&XT.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),w_(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;w_(e)&&(e.value=t,XT.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&k_(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&XT.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=p_(n)?n:0,i=w_(e)?e:t.elements.display.buffer;if(w_(i)){i.value=r;var o=i.getElementsByTagName("span")[0];w_(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=k_(e)?e.target:e;if(w_(t)&&"range"===t.getAttribute("type")){if(K_(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=XT.formatTime(this.currentTime),r=XT.formatTime(this.duration),i=BT("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(K_(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);C_.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&w_(this.elements.inputs.seek)&&w_(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){return W_(t.elements.display.seekTooltip,n,e)};if(this.touch)r(!1);else{var i=0,o=this.elements.progress.getBoundingClientRect();if(k_(e))i=100/o.width*(e.pageX-o.left);else{if(!$_(this.elements.display.seekTooltip,n))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),XT.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),k_(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!w_(this.elements.display.duration)&&this.config.invertTime;XT.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||XT.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return z_(this.elements.display.currentTime,!0),void z_(this.elements.progress,!0);w_(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=w_(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&XT.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&XT.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),XT.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){z_(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var r=this.elements.settings.panels[e],i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=A_(n)?this[e]:n,A_(i)&&(i=this.config[e].default),!A_(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn("Unsupported value of '".concat(i,"' for ").concat(e));if(!this.config[e].options.includes(i))return void this.debug.warn("Disabled value of '".concat(i,"' for ").concat(e))}if(w_(o)||(o=r&&r.querySelector('[role="menu"]')),w_(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=XT.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));w_(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?BT("normal",this.config):"".concat(t,"&times;");case"quality":if(p_(t)){var n=BT("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return NT(t);case"captions":return ZT.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(w_(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');y_(e)&&(this.options.quality=pT(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!A_(this.options.quality)&&this.options.quality.length>1;if(XT.toggleMenuButton.call(this,"quality",r),q_(n),XT.checkMenu.call(this),r){var i=function(e){var n=BT("qualityBadge.".concat(e),t.config);return n.length?XT.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(n)?1:-1})).forEach((function(e){XT.createMenuItem.call(t,{value:e,list:n,type:"quality",title:XT.getLabel.call(t,"quality",e),badge:i(e)})})),XT.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var e=this;if(w_(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=ZT.getTracks.call(this),r=Boolean(n.length);if(XT.toggleMenuButton.call(this,"captions",r),q_(t),XT.checkMenu.call(this),r){var i=n.map((function(n,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:ZT.getLabel.call(e,n),badge:n.language&&XT.createBadge.call(e,n.language.toUpperCase()),list:t,type:"language"}}));i.unshift({value:-1,checked:!this.captions.toggled,title:BT("disabled",this.config),list:t,type:"language"}),i.forEach(XT.createMenuItem.bind(this)),XT.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(){var e=this;if(w_(this.elements.settings.panels.speed)){var t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var n=!A_(this.options.speed)&&this.options.speed.length>1;XT.toggleMenuButton.call(this,"speed",n),q_(t),XT.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){XT.createMenuItem.call(e,{value:n,list:t,type:"speed",title:XT.getLabel.call(e,"speed",n)})})),XT.updateSetting.call(this,"speed",t))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!A_(e)&&Object.values(e).some((function(e){return!e.hidden}));z_(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;w_(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');X_.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(w_(t)&&w_(n)){var r=t.hidden,i=r;if(m_(e))i=e;else if(S_(e)&&27===e.which)i=!1;else if(k_(e)){var o=v_(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),z_(t,!i),W_(this.elements.container,this.config.classNames.menu.open,i),i&&S_(e)?XT.focusFirstMenuItem.call(this,null,!0):i||r||X_.call(this,n,S_(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,r=t.scrollHeight;return B_(t),{width:n,height:r}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(w_(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(Z_.transitions&&!Z_.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=XT.getMenuSize.call(this,r),s=function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",rT.call(e,i,x_,t))};nT.call(this,i,x_,s),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}z_(o,!0),z_(r,!1),XT.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;w_(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=XT.bindMenuItemShortcuts,r=XT.createButton,i=XT.createProgress,o=XT.createRange,a=XT.createTime,s=XT.setQualityMenu,c=XT.setSpeedMenu,l=XT.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=F_("div",V_(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return pT(this.config.controls).forEach((function(s){if("restart"===s&&u.appendChild(r.call(t,"restart",f)),"rewind"===s&&u.appendChild(r.call(t,"rewind",f)),"play"===s&&u.appendChild(r.call(t,"play",f)),"fast-forward"===s&&u.appendChild(r.call(t,"fast-forward",f)),"progress"===s){var c=F_("div",{class:"".concat(f.class," plyr__progress__container")}),h=F_("div",V_(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var d=F_("span",{class:t.config.classNames.tooltip},"00:00");h.appendChild(d),t.elements.display.seekTooltip=d}t.elements.progress=h,c.appendChild(t.elements.progress),u.appendChild(c)}if("current-time"===s&&u.appendChild(a.call(t,"currentTime",f)),"duration"===s&&u.appendChild(a.call(t,"duration",f)),"mute"===s||"volume"===s){var p=t.elements.volume;if(w_(p)&&u.contains(p)||(p=F_("div",M_({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(r.call(t,"mute")),"volume"===s&&!C_.isIos){var g={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",M_(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(r.call(t,"captions",f)),"settings"===s&&!A_(t.config.settings)){var m=F_("div",M_({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));m.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=F_("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=F_("div"),b=F_("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=F_("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var i=F_("button",M_(V_(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,i,r),nT.call(t,i,"click",(function(){l.call(t,r,!1)}));var o=F_("span",null,BT(r,t.config)),a=F_("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=F_("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),c=F_("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});c.appendChild(F_("span",{"aria-hidden":!0},BT(r,t.config))),c.appendChild(F_("span",{class:t.config.classNames.hidden},BT("menuBack",t.config))),nT.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),l.call(t,"home",!0))}),!1),nT.call(t,c,"click",(function(){l.call(t,"home",!1)})),s.appendChild(c),s.appendChild(F_("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[r]=i,t.elements.settings.panels[r]=s})),v.appendChild(y),m.appendChild(v),u.appendChild(m),t.elements.settings.popup=v,t.elements.settings.menu=m}if("pip"===s&&Z_.pip&&u.appendChild(r.call(t,"pip",f)),"airplay"===s&&Z_.airplay&&u.appendChild(r.call(t,"airplay",f)),"download"===s){var k=M_({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var S=t.config.urls.download;!T_(S)&&t.isEmbed&&M_(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",k))}"fullscreen"===s&&u.appendChild(r.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,dT.getQualityOptions.call(this)),c.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=XT.getIconUrl.call(this);t.cors&&VT(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;v_(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),w_(this.config.controls)||g_(this.config.controls)?n=this.config.controls:(n=XT.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ZT.getLabel.call(this)}),i=!1);var o,a=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=Na(e,2),r=n[0],i=n[1];t=MT(t,"{".concat(r,"}"),i)})),t};if(i&&(g_(this.config.controls)?n=a(n):w_(n)&&(n.innerHTML=a(n.innerHTML))),g_(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),w_(o)||(o=this.elements.container),o[w_(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),w_(this.elements.controls)||XT.findElements.call(this),!A_(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return $_(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];W_(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){y_(e)||b_(e)?Array.from(e).filter(Boolean).forEach(s):s(e)}))}if(C_.isEdge&&O_(o),this.config.tooltips.controls){var c=this.config,l=c.classNames,u=c.selectors,f="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(l.hidden),h=Y_.call(this,f);Array.from(h).forEach((function(t){W_(t,e.config.classNames.hidden,!1),W_(t,e.config.classNames.tooltip,!0)}))}}};function JT(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch(e){return null}}function QT(e){var t=new URLSearchParams;return d_(e)&&Object.entries(e).forEach((function(e){var n=Na(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var ZT={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Z_.textTracks)y_(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&XT.setCaptionsMenu.call(this);else{if(w_(this.elements.captions)||(this.elements.captions=F_("div",V_(this.config.selectors.captions)),function(e,t){w_(e)&&w_(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),C_.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=JT(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&HT(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){B_(e)}))}))}var t=pT((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();if("auto"===n)n=Na(t,1)[0];var r=this.storage.get("captions");if(m_(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){var i=this.config.captions.update?"addtrack removetrack":"removetrack";nT.call(this,this.media.textTracks,i,ZT.update.bind(this))}setTimeout(ZT.update.bind(this),0)}},update:function(){var e=this,t=ZT.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===i})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!o.get(e)})).forEach((function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),t.mode="hidden",nT.call(e,t,"cuechange",(function(){return ZT.updateCues.call(e)}))})),(s&&this.language!==i||!t.includes(a))&&(ZT.setLanguage.call(this,i),ZT.toggle.call(this,r&&s)),W_(this.elements.container,this.config.classNames.captions.enabled,!A_(t)),y_(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&XT.setCaptionsMenu.call(this)},toggle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,i=h_(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){var o=ZT.getTracks.call(this),a=ZT.findTrack.call(this,[this.captions.language].concat(Ua(this.captions.languages)),!0);return this.captions.language=a.language,void ZT.set.call(this,o.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),W_(this.elements.container,r,i),this.captions.toggled=i,XT.updateSetting.call(this,"captions"),oT.call(this,this.media,i?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ZT.getTracks.call(this);if(-1!==e)if(p_(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=r||{},o=i.language;this.captions.currentTrackNode=r,XT.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),oT.call(this,this.media,"languagechange")}ZT.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&ZT.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else ZT.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(g_(e)){var n=e.toLowerCase();this.captions.language=n;var r=ZT.getTracks.call(this),i=ZT.findTrack.call(this,[n]);ZT.set.call(this,r.indexOf(i),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Array.from((this.media||{}).textTracks||[]);return n.filter((function(n){return!e.isHTML5||t||e.captions.meta.has(n)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=ZT.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(i).sort((function(e,t){return o(t)-o(e)}));return e.every((function(e){return!(t=a.find((function(t){return t.language===e})))})),t||(r?a[0]:void 0)},getCurrentTrack:function(){return ZT.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!E_(t)&&Z_.textTracks&&this.captions.toggled&&(t=ZT.getCurrentTrack.call(this)),E_(t)?A_(t.label)?A_(t.language)?BT("enabled",this.config):e.language.toUpperCase():t.label:BT("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(w_(this.elements.captions))if(h_(e)||Array.isArray(e)){var t=e;if(!t){var n=ZT.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(FT)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){q_(this.elements.captions);var i=F_("span",V_(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),oT.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},eA={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.10/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,sidedock:!1,controls:!1,referrerPolicy:null},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},tA="picture-in-picture",nA="inline",rA={html5:"html5",youtube:"youtube",vimeo:"vimeo"},iA="audio",oA="video";var aA=function(){},sA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Pa(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Ra(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):aA}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):aA}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):aA}}]),e}(),cA=function(){function e(t){var n=this;Pa(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,nT.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),nT.call(this.player,this.player.elements.container,"dblclick",(function(e){w_(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()})),nT.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return Ra(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;w_(e)&&(e.pressed=this.active),oT.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",W_(this.target,this.player.config.classNames.fullscreen.fallback,e),C_.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=g_(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=",".concat(n))):this.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!C_.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=Y_.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=Na(n,1)[0],i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}}},{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");W_(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(C_.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?this.toggleFallback(!0):this.prefix?A_(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(C_.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),cT(this.player.play());else if(!e.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!A_(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return $_(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return C_.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(v_(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!v_(document["".concat(t,"ExitFullscreen")])&&!v_(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),lA=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function uA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,r){var i=new Image,o=function(){delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})}))}Sg({target:"Math",stat:!0},{sign:lA});var fA={addStyleHook:function(){W_(this.elements.container,this.config.selectors.container.replace(".",""),!0),W_(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void fA.toggleNativeControls.call(this,!0);w_(this.elements.controls)||(XT.inject.call(this),this.listeners.controls()),fA.toggleNativeControls.call(this),this.isHTML5&&ZT.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,XT.updateVolume.call(this),XT.timeUpdate.call(this),fA.checkPlaying.call(this),W_(this.elements.container,this.config.classNames.pip.supported,Z_.pip&&this.isHTML5&&this.isVideo),W_(this.elements.container,this.config.classNames.airplay.supported,Z_.airplay&&this.isHTML5),W_(this.elements.container,this.config.classNames.isIos,C_.isIos),W_(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){oT.call(e,e.media,"ready")}),0),fA.setTitle.call(this),this.poster&&fA.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&XT.durationUpdate.call(this)},setTitle:function(){var e=BT("play",this.config);if(g_(this.config.title)&&!A_(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=G_.call(this,"iframe");if(!w_(t))return;var n=A_(this.config.title)?"video":this.config.title,r=BT("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){W_(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("poster",e),this.isHTML5?Promise.resolve(e):sT.call(this).then((function(){return uA(e)})).catch((function(n){throw e===t.poster&&fA.togglePoster.call(t,!1),n})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),fA.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;W_(this.elements.container,this.config.classNames.playing,this.playing),W_(this.elements.container,this.config.classNames.paused,this.paused),W_(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",BT(t.playing?"pause":"play",t.config))})),k_(e)&&"timeupdate"===e.type||fA.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){W_(t.elements.container,t.config.classNames.loading,t.loading),fA.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}}},hA=function(){function e(t){Pa(this,e),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Ra(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,r=e.keyCode?e.keyCode:e.which,i="keydown"===e.type,o=i&&r===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&p_(r)){if(i){var a=document.activeElement;if(w_(a)){var s=t.config.selectors.editable;if(a!==n.inputs.seek&&K_(a,s))return;if(32===e.which&&K_(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(r-48));break;case 32:case 75:o||cT(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}}},{key:"toggleMenu",value:function(e){XT.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,W_(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var r,i=e.timeStamp-this.lastKeyDown<=20;if("focus"!==e.type||i)r=t.config.classNames.tabFocus,W_(Y_.call(t,".".concat(r)),r,!1),this.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&W_(document.activeElement,t.config.classNames.tabFocus,!0)}),10)}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&tT.call(t,window,"keydown keyup",this.handleKey,e,!1),tT.call(t,document.body,"click",this.toggleMenu,e),iT.call(t,document.body,"touchstart",this.firstTouch),tT.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&nT.call(e,n.container,"keydown keyup",this.handleKey,!1),nT.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(fA.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return fA.toggleControls.call(e,!1)}),o)}));var i=function(t){if(!t)return hT.call(e);var r=n.container.getBoundingClientRect(),i=r.width,o=r.height;return hT.call(e,"".concat(i,":").concat(o))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(i,50)};nT.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var r=e.fullscreen,a=r.target,s=r.usingNative;if(a===n.container&&(e.isEmbed||!A_(e.config.ratio))){var c="enterfullscreen"===t.type,l=i(c);l.padding;!function(t,n,r){if(e.isVimeo){var i=e.elements.wrapper.firstChild,o=Na(t,2)[1],a=Na(fT.call(e),2),s=a[0],c=a[1];i.style.maxWidth=r?"".concat(o/c*s,"px"):null,i.style.margin=r?"0 auto":null}}(l.ratio,0,c),s||(c?nT.call(e,window,"resize",o):rT.call(e,window,"resize",o))}}))}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(nT.call(t,t.media,"timeupdate seeking seeked",(function(e){return XT.timeUpdate.call(t,e)})),nT.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return XT.durationUpdate.call(t,e)})),nT.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),nT.call(t,t.media,"progress playing seeking seeked",(function(e){return XT.updateProgress.call(t,e)})),nT.call(t,t.media,"volumechange",(function(e){return XT.updateVolume.call(t,e)})),nT.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return fA.checkPlaying.call(t,e)})),nT.call(t,t.media,"waiting canplay seeked playing",(function(e){return fA.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=G_.call(t,".".concat(t.config.classNames.video));if(!w_(r))return;nT.call(t,n.container,"click",(function(i){([n.container,r].includes(i.target)||r.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(i,t.restart,"restart"),e.proxy(i,(function(){cT(t.play())}),"play")):e.proxy(i,(function(){cT(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&nT.call(t,n.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),nT.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),nT.call(t,t.media,"ratechange",(function(){XT.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),nT.call(t,t.media,"qualitychange",(function(e){XT.updateSetting.call(t,"quality",null,e.detail.quality)})),nT.call(t,t.media,"ready qualitychange",(function(){XT.setDownloadUrl.call(t)}));var i=t.config.events.concat(["keyup","keydown"]).join(" ");nT.call(t,t.media,i,(function(e){var r=e.detail,i=void 0===r?{}:r;"error"===e.type&&(i=t.media.error),oT.call(t,n.container,e.type,!0,i)}))}},{key:"proxy",value:function(e,t,n){var r=this.player,i=r.config.listeners[n],o=!0;v_(i)&&(o=i.call(r,e)),!1!==o&&v_(t)&&t.call(r,e)}},{key:"bind",value:function(e,t,n,r){var i=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,s=a.config.listeners[r],c=v_(s);nT.call(a,e,t,(function(e){return i.proxy(e,n,r)}),o&&!c)}},{key:"controls",value:function(){var e=this,t=this.player,n=t.elements,r=C_.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach((function(n){e.bind(n,"click",(function(){cT(t.togglePlay())}),"play")})),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",t.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(n.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),this.bind(n.buttons.captions,"click",(function(){return t.toggleCaptions()})),this.bind(n.buttons.download,"click",(function(){oT.call(t,t.media,"download")}),"download"),this.bind(n.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),this.bind(n.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),XT.toggleMenu.call(t,e)}),null,!1),this.bind(n.buttons.settings,"keyup",(function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),XT.toggleMenu.call(t,e)):XT.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(n.settings.menu,"keydown",(function(e){27===e.which&&XT.toggleMenu.call(t,e)})),this.bind(n.inputs.seek,"mousedown mousemove",(function(e){var t=n.progress.getBoundingClientRect(),r=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",r)})),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var n=e.currentTarget,r=e.keyCode?e.keyCode:e.which;if(!S_(e)||39===r||37===r){t.lastSeekTime=Date.now();var i=n.hasAttribute("play-on-seeked"),o=["mouseup","touchend","keyup"].includes(e.type);i&&o?(n.removeAttribute("play-on-seeked"),cT(t.play())):!o&&t.playing&&(n.setAttribute("play-on-seeked",""),t.pause())}})),C_.isIos){var i=Y_.call(t,'input[type="range"]');Array.from(i).forEach((function(t){return e.bind(t,r,(function(e){return O_(e.target)}))}))}this.bind(n.inputs.seek,r,(function(e){var n=e.currentTarget,r=n.getAttribute("seek-value");A_(r)&&(r=n.value),n.removeAttribute("seek-value"),t.currentTime=r/n.max*t.duration}),"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",(function(e){return XT.updateSeekTooltip.call(t,e)})),this.bind(n.progress,"mousemove touchmove",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startMove(e)})),this.bind(n.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(n.progress,"mousedown touchstart",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startScrubbing(e)})),this.bind(n.progress,"mouseup touchend",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.endScrubbing(e)})),C_.isWebkit&&Array.from(Y_.call(t,'input[type="range"]')).forEach((function(n){e.bind(n,"input",(function(e){return XT.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!w_(n.display.duration)&&this.bind(n.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,XT.timeUpdate.call(t))})),this.bind(n.inputs.volume,r,(function(e){t.volume=e.target.value}),"volume"),this.bind(n.controls,"mouseenter mouseleave",(function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type})),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(n.controls,"focusin",(function(){var r=t.config,i=t.timers;W_(n.controls,r.classNames.noTransition,!0),fA.toggleControls.call(t,!0),setTimeout((function(){W_(n.controls,r.classNames.noTransition,!1)}),0);var o=e.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return fA.toggleControls.call(t,!1)}),o)})),this.bind(n.inputs.volume,"wheel",(function(e){var n=e.webkitDirectionInvertedFromDevice,r=Na([e.deltaX,-e.deltaY].map((function(e){return n?-e:e})),2),i=r[0],o=r[1],a=Math.sign(Math.abs(i)>Math.abs(o)?i:o);t.increaseVolume(a/50);var s=t.media.volume;(1===a&&s<1||-1===a&&s>0)&&e.preventDefault()}),"volume",!1)}}]),e}(),dA=Bg("splice"),pA=Zg("splice",{ACCESSORS:!0,0:0,1:2}),gA=Math.max,mA=Math.min;Sg({target:"Array",proto:!0,forced:!dA||!pA},{splice:function(e,t){var n,r,i,o,a,s,c=_g(this),l=eg(c.length),u=rg(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=mA(gA(Qp(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=jg(c,r),o=0;o<r;o++)(a=u+o)in c&&Tg(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});var vA=t((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,s,c=document,l=r.async,u=(r.numRetries||0)+1,f=r.before||e,h=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(h)?((s=c.createElement("link")).rel="stylesheet",s.href=d,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=c.createElement("img")).src=d:((s=c.createElement("script")).src=t,s.async=void 0===l||l),s.onload=s.onerror=s.onbeforeload=function(e){var c=e.type[0];if(o)try{s.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((i+=1)<u)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,c,e.defaultPrevented)},!1!==f(t,s)&&c.head.appendChild(s)}function s(e,n,r){var s,c;if(n&&n.trim&&(s=n),c=(s?r:n)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function l(t,n){!function(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,c=[];for(r=function(e,n,r){if("e"==n&&c.push(e),"b"==n){if(!r)return;c.push(e)}--o||t(c)},i=0;i<s;i++)a(e[i],r,n)}(e,(function(e){o(c,e),t&&o({success:t,error:n},e),i(s,e)}),c)}if(c.returnPromise)return new Promise(l);l()}return s.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,s=[],c=e.length,l=c;for(i=function(e,n){n.length&&s.push(e),--l||t(s)};c--;)o=e[c],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),s},s.done=function(e){i(e,[])},s.reset=function(){t={},n={},r={}},s.isDefined=function(e){return e in t},s}()}));function yA(e){return new Promise((function(t,n){vA(e,{success:t,error:n})}))}function bA(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,oT.call(this,this.media,e?"play":"pause"))}var wA={setup:function(){var e=this;W_(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,hT.call(e),d_(window.Vimeo)?wA.ready.call(e):yA(e.config.urls.vimeo.sdk).then((function(){wA.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,n=t.config.vimeo,r=QT(M_({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),i=t.media.getAttribute("src");A_(i)&&(i=t.media.getAttribute(t.config.attributes.embed.id));var o,a=A_(o=i)?null:p_(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o,s=F_("iframe"),c=LT(t.config.urls.vimeo.iframe,a,r);s.setAttribute("src",c),s.setAttribute("allowfullscreen",""),s.setAttribute("allowtransparency",""),s.setAttribute("allow","autoplay"),A_(n.referrerPolicy)||s.setAttribute("referrerPolicy",n.referrerPolicy);var l=F_("div",{poster:t.poster,class:t.config.classNames.embedContainer});l.appendChild(s),t.media=H_(l,t.media),HT(LT(t.config.urls.vimeo.api,a),"json").then((function(e){if(!A_(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),fA.setPoster.call(t,n.href).catch((function(){}))}})),t.embed=new window.Vimeo.Player(s,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return bA.call(t,!0),t.embed.play()},t.media.pause=function(){return bA.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var n=t.embed,r=t.media,i=t.paused,o=t.volume,a=i&&!n.hasPlayed;r.seeking=!0,oT.call(t,r,"seeking"),Promise.resolve(a&&n.setVolume(0)).then((function(){return n.setCurrentTime(e)})).then((function(){return a&&n.pause()})).then((function(){return a&&n.setVolume(o)})).catch((function(){}))}});var f=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return f},set:function(e){t.embed.setPlaybackRate(e).then((function(){f=e,oT.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var h=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return h},set:function(e){t.embed.setVolume(e).then((function(){h=e,oT.call(t,t.media,"volumechange")}))}});var d=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return d},set:function(e){var n=!!m_(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){d=n,oT.call(t,t.media,"volumechange")}))}});var p,g=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return g},set:function(e){var n=m_(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){g=n}))}}),t.embed.getVideoUrl().then((function(e){p=e,XT.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return p}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(n){var r=Na(n,2),i=r[0],o=r[1];t.embed.ratio=[i,o],hT.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(n){t.config.title=n,fA.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){u=e,oT.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,oT.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,ZT.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,r=(void 0===n?[]:n).map((function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)}));ZT.updateCues.call(t,r)})),t.embed.on("loaded",(function(){(t.embed.getPaused().then((function(e){bA.call(t,!e),e||oT.call(t,t.media,"playing")})),w_(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){oT.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){oT.call(t,t.media,"playing")})),t.embed.on("play",(function(){bA.call(t,!0),oT.call(t,t.media,"playing")})),t.embed.on("pause",(function(){bA.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,u=e.seconds,oT.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,oT.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&oT.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,oT.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,oT.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,oT.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,oT.call(t,t.media,"error")})),setTimeout((function(){return fA.build.call(t)}),0)}};function kA(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,oT.call(this,this.media,e?"play":"pause"))}function SA(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var EA={setup:function(){var e=this;if(W_(this.elements.wrapper,this.config.classNames.embed,!0),d_(window.YT)&&v_(window.YT.Player))EA.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){v_(t)&&t(),EA.ready.call(e)},yA(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;HT(LT(this.config.urls.youtube.api,e)).then((function(e){if(d_(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,fA.setTitle.call(t),t.embed.ratio=[i,r]}hT.call(t)})).catch((function(){hT.call(t)}))},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(A_(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");A_(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r,i,o=A_(r=n)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r,a=(i=e.provider,"".concat(i,"-").concat(Math.floor(1e4*Math.random()))),s=F_("div",{id:a,poster:e.poster});e.media=H_(s,e.media);var c=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};uA(c("maxres"),121).catch((function(){return uA(c("sd"),121)})).catch((function(){return uA(c("hq"))})).then((function(t){return fA.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}));var l=e.config.youtube;e.embed=new window.YT.Player(a,{videoId:o,host:SA(l),playerVars:M_({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},l),events:{onError:function(t){if(!e.media.error){var n=t.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:r},oT.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),oT.call(e,e.media,"ratechange")},onReady:function(t){if(!v_(e.media.play)){var n=t.target;EA.getTitle.call(e,o),e.media.play=function(){kA.call(e,!0),n.playVideo()},e.media.pause=function(){kA.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,oT.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var r=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return r},set:function(t){r=t,n.setVolume(100*r),oT.call(e,e.media,"volumechange")}});var i=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return i},set:function(t){var r=m_(t)?t:i;i=r,n[r?"mute":"unMute"](),oT.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var a=n.getAvailablePlaybackRates();e.options.speed=a.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&e.media.setAttribute("tabindex",-1),oT.call(e,e.media,"timeupdate"),oT.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&oT.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),oT.call(e,e.media,"canplaythrough"))}),200),setTimeout((function(){return fA.build.call(e)}),50)}},onStateChange:function(t){var n=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,oT.call(e,e.media,"seeked")),t.data){case-1:oT.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),oT.call(e,e.media,"progress");break;case 0:kA.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):oT.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(kA.call(e,!0),oT.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){oT.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),oT.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),kA.call(e,!1);break;case 3:oT.call(e,e.media,"waiting")}oT.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},_A={setup:function(){this.media?(W_(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),W_(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&W_(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=F_("div",{class:this.config.classNames.video}),N_(this.media,this.elements.wrapper),this.isEmbed&&(this.elements.poster=F_("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster))),this.isHTML5?dT.setup.call(this):this.isYouTube?EA.setup.call(this):this.isVimeo&&wA.setup.call(this)):this.debug.warn("No media element found!")}},TA=function(){function e(t){var n=this;Pa(this,e),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){n.on("loaded",e),n.on("error",t)})),this.load()}return Ra(e,[{key:"load",value:function(){var e=this;this.enabled&&(d_(window.google)&&d_(window.google.ima)?this.ready():yA(this.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((function(){t.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){var e=this;this.elements.container=F_("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),this.requestAds()}},{key:"requestAds",value:function(){var e=this.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");var n=function(){var t=GT(Math.max(e.manager.getRemainingTime(),0)),n="".concat(BT("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(n,100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=e.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return t.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return t.onAdEvent(e)}))})),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;A_(this.cuePoints)||this.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(w_(n)){var r=100/e.player.duration*t,i=F_("span",{class:e.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),n.appendChild(i)}}}))}},{key:"onAdEvent",value:function(e){var t=this,n=this.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){oT.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),r.isLinear()||(r.width=n.offsetWidth,r.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,n=this.player.elements.container;this.player.on("canplay",(function(){t.addCuePoints()})),this.player.on("ended",(function(){t.loader.contentComplete()})),this.player.on("timeupdate",(function(){e=t.player.currentTime})),this.player.on("seeked",(function(){var n=t.player.currentTime;A_(t.cuePoints)||t.cuePoints.forEach((function(r,i){e<r&&r<n&&(t.manager.discardAdBreak(),t.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(function(){t.manager&&t.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)}))}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,cT(this.player.media.play())}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var e=this;this.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];y_(o)&&o.forEach((function(e){v_(e)&&e.apply(t,r)}))}},{key:"on",value:function(e,t){return y_(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)}},{key:"clearSafetyTimer",value:function(e){h_(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!A_(e.publisherId)||T_(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(T_(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(QT(t))}}]),e}(),AA=Gg.findIndex,xA=!0,OA=Zg("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){xA=!1})),Sg({target:"Array",proto:!0,forced:xA||!OA},{findIndex:function(e){return AA(this,e,arguments.length>1?arguments[1]:void 0)}}),pm("findIndex");var CA=Math.min,PA=[].lastIndexOf,IA=!!PA&&1/[1].lastIndexOf(1,-0)<0,RA=uv("lastIndexOf"),jA=Zg("indexOf",{ACCESSORS:!0,1:0}),LA=IA||!RA||!jA?function(e){if(IA)return PA.apply(this,arguments)||0;var t=ap(this),n=eg(t.length),r=n-1;for(arguments.length>1&&(r=CA(r,Qp(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:PA;Sg({target:"Array",proto:!0,forced:LA!==[].lastIndexOf},{lastIndexOf:LA});var MA=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},NA=function(){function e(t){Pa(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Ra(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))}},{key:"getThumbnails",value:function(){var e=this;return new Promise((function(t){var n=e.player.config.previewThumbnails.src;if(A_(n))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){e.thumbnails.sort((function(e,t){return e.height-t.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(v_(n))n((function(t){e.thumbnails=t,r()}));else{var i=(g_(n)?[n]:n).map((function(t){return e.getThumbnail(t)}));Promise.all(i).then(r)}}))}},{key:"getThumbnail",value:function(e){var t=this;return new Promise((function(n){HT(e).then((function(r){var i,o,a={frames:(i=r,o=[],i.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var t={};e.split(/\r\n|\n|\r/).forEach((function(e){if(p_(t.startTime)){if(!A_(e.trim())&&A_(t.text)){var n=e.trim().split("#xywh="),r=Na(n,1);if(t.text=r[0],n[1]){var i=Na(n[1].split(","),4);t.x=i[0],t.y=i[1],t.w=i[2],t.h=i[3]}}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),t.text&&o.push(t)})),o),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var s=new Image;s.onload=function(){a.height=s.naturalHeight,a.width=s.naturalWidth,t.thumbnails.push(a),n()},s.src=a.urlPrefix+a.frames[0].text}))}))}},{key:"startMove",value:function(e){if(this.loaded&&k_(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=GT(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(h_(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):iT.call(this.player,this.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))}},{key:"listeners",value:function(){var e=this;this.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),this.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))}},{key:"render",value:function(){this.elements.thumb.container=F_("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=F_("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=F_("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=F_("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),w_(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=F_("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),n=t>=0,r=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((function(n,i){e.loadedImages.includes(n.frames[t].text)&&(r=i)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(r)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,r=this.thumbnails[t],i=r.urlPrefix,o=r.frames[n],a=r.frames[n].text,s=i+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,o,t,n,a,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var c=new Image;c.src=s,c.dataset.index=n,c.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log("Loading image: ".concat(s)),c.onload=function(){return e.showImage(c,o,t,n,a,!0)},this.loadingImage=c,this.removeOldImages(c)}}},{key:"showImage",value:function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(i,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach((function(n){if("img"===n.tagName.toLowerCase()){var r=t.usingSprites?500:1e3;if(n.dataset.index!==e.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var i=t.currentImageContainer;setTimeout((function(){i.removeChild(n),t.player.debug.log("Removing thumb: ".concat(n.dataset.filename))}),r)}}}))}},{key:"preloadNearby",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var i=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===i){var o;o=n?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var n=e.text;if(n!==i&&!t.loadedImages.includes(n)){a=!0,t.player.debug.log("Preloading thumb filename: ".concat(n));var o=t.thumbnails[0].urlPrefix+n,s=new Image;s.src=o,s.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(n)),t.loadedImages.includes(n)||t.loadedImages.push(n),r()}}})),a||r()}}),300)}))}},{key:"getHigherQuality",value:function(e,t,n,r){var i=this;if(e<this.thumbnails.length-1){var o=t.naturalHeight;this.usingSprites&&(o=n.h),o<this.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))}),300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>i&&(o=i),n.style.left="".concat(o,"px")}},{key:"setScrubbingContainerSize",value:function(){var e=MA(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),t=e.width,n=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(e.naturalWidth*n,"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?MA(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),UA={insertElements:function(e,t){var n=this;g_(t)?D_(e,this.media,{src:t}):y_(t)&&t.forEach((function(t){D_(e,n.media,t)}))},change:function(e){var t=this;L_(e,"sources.length")?(dT.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],B_(t.media),t.media=null,w_(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=Na(n,1)[0],o=i.provider,a=void 0===o?rA.html5:o,s=i.src,c="html5"===a?r:"div",l="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:Z_.check(r,a,t.config.playsinline),media:F_(c,l)}),t.elements.container.appendChild(t.media),m_(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),A_(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),fA.addStyleHook.call(t),t.isHTML5&&UA.insertElements.call(t,"source",n),t.config.title=e.title,_A.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&UA.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&fA.build.call(t),t.isHTML5&&t.media.load(),A_(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new NA(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var FA,DA=function(){function e(t,n){var r=this;if(Pa(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Z_.touch,this.media=t,g_(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||b_(this.media)||y_(this.media))&&(this.media=this.media[0]),this.config=M_({},eA,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new sA(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Z_),!h_(this.media)&&w_(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Z_.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),w_(a)){if(s=JT(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?rA.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?rA.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var c=["1","true"];c.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(A_(this.provider)||!Object.keys(rA).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=oA;break;case"video":case"audio":this.type=o,this.provider=rA.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Z_.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new hA(this),this.storage=new qT(this),this.media.plyr=this,w_(this.elements.container)||(this.elements.container=F_("div",{tabindex:0}),N_(this.media,this.elements.container)),fA.addStyleHook.call(this),_A.setup.call(this),this.config.debug&&nT.call(this,this.elements.container,this.config.events.join(" "),(function(e){r.debug.log("event: ".concat(e.type))})),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&fA.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new cA(this),this.config.ads.enabled&&(this.ads=new TA(this)),this.isHTML5&&this.config.autoplay&&setTimeout((function(){return cT(r.play())}),10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new NA(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Ra(e,[{key:"play",value:function(){var e=this;return v_(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((function(){return e.ads.play()})).catch((function(){return cT(e.media.play())})),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&v_(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(m_(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):v_(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=p_(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=p_(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(p_(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){ZT.toggle.call(this,e,!1)}},{key:"airplay",value:function(){Z_.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=$_(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=W_(this.elements.container,this.config.classNames.hideControls,n);if(r&&this.config.controls.includes("settings")&&!A_(this.config.settings)&&XT.toggleMenu.call(this,!1),r!==t){var i=r?"controlshidden":"controlsshown";oT.call(this,this.media,i)}return!r}return!1}},{key:"on",value:function(e,t){nT.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){iT.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){rT(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var r=function(){document.body.style.overflow="",t.embed=null,n?(Object.keys(t.elements).length&&(B_(t.elements.buttons.play),B_(t.elements.captions),B_(t.elements.controls),B_(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),v_(e)&&e()):(aT.call(t),H_(t.elements.original,t.elements.container),oT.call(t,t.elements.original,"destroyed",!0),v_(e)&&e.call(t.elements.original),t.ready=!1,setTimeout((function(){t.elements=null,t.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(fA.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&v_(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200))}}},{key:"supports",value:function(e){return Z_.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===rA.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===rA.youtube}},{key:"isVimeo",get:function(){return this.provider===rA.vimeo}},{key:"isVideo",get:function(){return this.type===oA}},{key:"isAudio",get:function(){return this.type===iA}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){if(this.duration){var t=p_(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return p_(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=p_(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;g_(t)&&(t=Number(t)),p_(t)||(t=this.storage.get("volume")),p_(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!A_(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;m_(t)||(t=this.storage.get("muted")),m_(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}},{key:"speed",set:function(e){var t=this,n=null;p_(e)&&(n=e),p_(n)||(n=this.storage.get("speed")),p_(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}(n,r,i),this.config.speed.selected=n,setTimeout((function(){t.media.playbackRate=n}),0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Ua(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Ua(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var r=[!A_(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(p_),i=!0;if(!n.includes(r)){var o=function(e,t){return y_(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}(n,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=m_(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){UA.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return T_(e)?e:this.source},set:function(e){T_(e)&&(this.config.urls.download=e,XT.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?fA.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=uT(fT.call(this));return y_(e)?e.join(":"):e},set:function(e){this.isVideo?g_(e)&&lT(e)?(this.config.ratio=e,hT.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){var t=m_(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){ZT.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){ZT.setLanguage.call(this,e,!1)},get:function(){return(ZT.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(Z_.pip){var t=m_(e)?e:!this.pip;v_(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?tA:nA),v_(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return Z_.pip?A_(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===tA:null}}],[{key:"supported",value:function(e,t,n){return Z_.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return VT(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return g_(t)?r=Array.from(document.querySelectorAll(t)):b_(t)?r=Array.from(t):y_(t)&&(r=t.filter(w_)),A_(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();DA.defaults=(FA=eA,JSON.parse(JSON.stringify(FA)));var BA,qA,HA={video:{type:"video",title:"View From A Blue Moon",sources:[{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",type:"video/mp4",size:576},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4",type:"video/mp4",size:720},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4",type:"video/mp4",size:1080},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1440p.mp4",type:"video/mp4",size:1440}],poster:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt",default:!0},{kind:"captions",label:"French",srclang:"fr",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"}]},audio:{type:"audio",title:"Kishi Bashi &ndash; &ldquo;It All Began With A Burst&rdquo;",sources:[{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3",type:"audio/mp3"},{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg",type:"audio/ogg"}]},youtube:{type:"video",sources:[{src:"https://youtube.com/watch?v=bTqVqk7FSmY",provider:"youtube"}]},vimeo:{type:"video",sources:[{src:"https://vimeo.com/40648169",provider:"vimeo"}]}},VA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.classList[n?"add":"remove"](t)};BA=window.location.host,qA={prod:"plyr.io"===BA,dev:"dev.plyr.io"===BA},document.addEventListener("DOMContentLoaded",(function(){Hh.context((function(){$d.setup(".js-shr",{count:{className:"button__count"},wrapper:{className:"button--with-count"}});var e=new DA("#player",{debug:!0,title:"View From A Blue Moon",iconUrl:"dist/demo.svg",keyboard:{global:!0},tooltips:{controls:!0},captions:{active:!0},ads:{enabled:qA.prod||qA.dev,publisherId:"918848828995742"},previewThumbnails:{enabled:!0,src:["https://cdn.plyr.io/static/demo/thumbs/100p.vtt","https://cdn.plyr.io/static/demo/thumbs/240p.vtt"]},vimeo:{referrerPolicy:"no-referrer"}});window.player=e;var t=document.querySelectorAll("[data-source]"),n=Object.keys(HA),r=Boolean(window.history&&window.history.pushState),i=window.location.hash.substring(1),o=!i.length;function a(e){Array.from(t).forEach((function(e){return VA(e.parentElement,"active",!1)})),VA(document.querySelector('[data-source="'.concat(e,'"]')),"active",!0),Array.from(document.querySelectorAll(".plyr__cite")).forEach((function(e){e.hidden=!0})),document.querySelector(".plyr__cite--".concat(e)).hidden=!1}function s(t,r){!n.includes(t)||!r&&t===i||!i.length&&"video"===t||(e.source=HA[t],i=t,a(t))}Array.from(t).forEach((function(e){e.addEventListener("click",(function(){var t=e.getAttribute("data-source");s(t),r&&window.history.pushState({type:t},"","#".concat(t))}))})),window.addEventListener("popstate",(function(e){e.state&&Object.keys(e.state).includes("type")&&s(e.state.type)})),o&&(i="video"),r&&n.includes(i)&&window.history.replaceState({type:i},"",o?"":"#".concat(i)),"video"!==i&&s(i,!0),a(i)}))})),qA.prod&&Hh.config("https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555").install()}();
+!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},MT=function(e){return function(t,n,r,i){Jv(n);var o=Iv(t),a=lg(o),s=av(o.length),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=n(i,a[c],c,o));return i}},UT={left:MT(!1),right:MT(!0)}.left,DT=vy("reduce"),FT=om("reduce",{1:0});function BT(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function qT(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return bT(i)?(Object.keys(i).forEach((function(t){bT(i[t])?(Object.keys(e).includes(t)||Object.assign(e,Za({},t,{})),qT(e[t],i[t])):Object.assign(e,Za({},t,i[t]))})),qT.apply(void 0,[e].concat(n))):e}function HT(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach((function(e,n){var r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)}))}function VT(e,t){xT(e)&&!CT(t)&&Object.entries(t).filter((function(e){var t=ns(e,2)[1];return!yT(t)})).forEach((function(t){var n=ns(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function WT(e,t,n){var r=document.createElement(e);return bT(t)&&VT(r,t),_T(n)&&(r.innerText=n),r}function zT(e,t,n,r){xT(t)&&t.appendChild(WT(e,n,r))}function YT(e){TT(e)||ST(e)?Array.from(e).forEach(YT):xT(e)&&xT(e.parentNode)&&e.parentNode.removeChild(e)}function $T(e){if(xT(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function GT(e,t){return xT(t)&&xT(t.parentNode)&&xT(e)?(t.parentNode.replaceChild(e,t),e):null}function KT(e,t){if(!_T(e)||CT(e))return{};var n={},r=qT({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=ns(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":_T(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),qT(r,n)}function XT(e,t){if(xT(e)){var n=t;ET(n)||(n=!e.hidden),e.hidden=n}}function JT(e,t,n){if(TT(e))return Array.from(e).map((function(e){return JT(e,t,n)}));if(xT(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function QT(e,t){return xT(e)&&e.classList.contains(t)}function ZT(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function ex(e){return this.elements.container.querySelectorAll(e)}function tx(e){return this.elements.container.querySelector(e)}function nx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];xT(e)&&(e.focus({preventScroll:!0}),t&&JT(e,this.config.classNames.tabFocus))}Ov({target:"Array",proto:!0,forced:!DT||!FT},{reduce:function(e){return UT(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var rx,ix={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},ox={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var r=NT.isIPhone&&n&&ox.playsinline,i=ox[e]||"html5"!==t;return{api:i,ui:i&&ox.rangeInput&&("video"!==e||!NT.isIPhone||r)}},pip:!(NT.isIPhone||!kT(WT("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||WT("video").disablePictureInPicture)),airplay:kT(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(CT(e))return!1;var t=ns(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(ix).includes(n)&&(n+='; codecs="'.concat(ix[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(rx=document.createElement("input"),rx.type="range","range"===rx.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==RT,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ax=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function sx(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!CT(t)&&kT(n)){var s=t.split(" "),c=a;ax&&(c={passive:o,capture:a}),s.forEach((function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:c}),e[i?"addEventListener":"removeEventListener"](t,n,c)}))}}function cx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];sx.call(this,e,t,n,!0,r,i)}function ux(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];sx.call(this,e,t,n,!1,r,i)}function lx(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=function a(){ux(e,n,a,i,o);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];r.apply(t,c)};sx.call(this,e,n,a,!0,i,o)}function fx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(xT(e)&&!CT(t)){var i=new CustomEvent(t,{bubbles:n,detail:ts({},r,{plyr:this})});e.dispatchEvent(i)}}function hx(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i)})),this.eventListeners=[])}function px(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):cx.call(e,e.elements.container,"ready",t)})).then((function(){}))}function dx(e){IT(e)&&e.then(null,(function(){}))}function gx(e){return!!(ST(e)||_T(e)&&e.includes(":"))&&(ST(e)?e:e.split(":")).map(Number).every(wT)}function vx(e){if(!ST(e)||!e.every(wT))return null;var t=ns(e,2),n=t[0],r=t[1],i=function e(t,n){return 0===n?t:e(n,t%n)}(n,r);return[n/i,r/i]}function mx(e){var t=function(e){return gx(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!CT(this.embed)&&ST(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=vx([r.videoWidth,r.videoHeight])}return n}function yx(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=mx.call(this,e),r=ns(ST(n)?n:[0,0],2),i=100/r[0]*r[1];if(t.style.paddingBottom="".concat(i,"%"),this.isVimeo&&this.supported.ui){var o=(240-i)/4.8;this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:i,ratio:n}}var bx={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!CT(n)||ox.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:bx.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,CT(this.config.ratio)||yx.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=bx.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&kT(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=bx.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,s=r.readyState,c=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=c,e.currentTime=i,o||dx(e.play())})),e.media.load())}fx.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(YT(bx.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function wx(e){return ST(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}var _x=Yv("slice"),Ex=om("slice",{ACCESSORS:!0,0:0,1:2}),kx=Uv("species"),Sx=[].slice,Tx=Math.max;Ov({target:"Array",proto:!0,forced:!_x||!Ex},{slice:function(e,t){var n,r,i,o=hg(this),a=av(o.length),s=uv(e,a),c=uv(void 0===t?a:t,a);if(Pv(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Pv(n.prototype)?pg(n)&&null===(n=n[kx])&&(n=void 0):n=void 0,n===Array||void 0===n))return Sx.call(o,s,c);for(r=new(void 0===n?Array:n)(Tx(c-s,0)),i=0;s<c;s++,i++)s in o&&jv(r,i,o[s]);return r.length=i,r}});var xx=Tg.f,Ax=vv.f,Ox=Jg.set,Px=Uv("match"),Ix=eg.RegExp,jx=Ix.prototype,Cx=/a/g,Rx=/a/g,Lx=new Ix(Cx)!==Cx,Nx=zy.UNSUPPORTED_Y;if(ng&&xv("RegExp",!Lx||Nx||tg((function(){return Rx[Px]=!1,Ix(Cx)!=Cx||Ix(Rx)==Rx||"/a/i"!=Ix(Cx,"i")})))){for(var Mx=function(e,t){var n,r=this instanceof Mx,i=ib(e),o=void 0===t;if(!r&&i&&e.constructor===Mx&&o)return e;Lx?i&&!o&&(e=e.source):e instanceof Mx&&(o&&(t=Vy.call(e)),e=e.source),Nx&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=ky(Lx?new Ix(e,t):Ix(e,t),r?this:jx,Mx);return Nx&&n&&Ox(a,{sticky:n}),a},Ux=function(e){e in Mx||xx(Mx,e,{configurable:!0,get:function(){return Ix[e]},set:function(t){Ix[e]=t}})},Dx=Ax(Ix),Fx=0;Dx.length>Fx;)Ux(Dx[Fx++]);jx.constructor=Mx,Mx.prototype=jx,Qg(eg,"RegExp",Mx)}function Bx(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return CT(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}function qx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())}function Hx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function Vx(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=qx(t,"-"," "),t=qx(t,"_"," "),qx(t=Hx(t)," ","")}function Wx(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}Vk("RegExp");var zx={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Yx=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(CT(e)||CT(t))return"";var n=BT(t.i18n,e);if(CT(n))return Object.keys(zx).includes(e)?zx[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=ns(e,2),r=t[0],i=t[1];n=qx(n,r,i)})),n},$x=function(){function e(t){Xa(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Qa(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(CT(n))return null;var r=JSON.parse(n);return _T(t)&&t.length?r[t]:r}},{key:"set",value:function(t){if(e.supported&&this.enabled&&bT(t)){var n=this.get();CT(n)&&(n={}),qT(n,t),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;return window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0}catch(e){return!1}}}]),e}();function Gx(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",(function(){if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)})),i.addEventListener("error",(function(){throw new Error(i.status)})),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){r(e)}}))}function Kx(e,t){if(_T(e)){var n=_T(t),r=function(){return null!==document.getElementById(t)},i=function(e,t){e.innerHTML=t,n&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!r()){var o=$x.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("".concat("cache","-").concat(t));if(null!==s){var c=JSON.parse(s);i(a,c.content)}}Gx(e).then((function(e){CT(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),i(a,e))})).catch((function(){}))}}}var Xx=Math.ceil,Jx=Math.floor;Ov({target:"Math",stat:!0},{trunc:function(e){return(e>0?Jx:Xx)(e)}});var Qx=function(e){return Math.trunc(e/60/60%60,10)},Zx=function(e){return Math.trunc(e/60%60,10)},eA=function(e){return Math.trunc(e%60,10)};function tA(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!wT(e))return tA(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=Qx(e),o=Zx(e),a=eA(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var nA={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||NT.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=tx.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:ex.call(this,this.config.selectors.buttons.play),pause:tx.call(this,this.config.selectors.buttons.pause),restart:tx.call(this,this.config.selectors.buttons.restart),rewind:tx.call(this,this.config.selectors.buttons.rewind),fastForward:tx.call(this,this.config.selectors.buttons.fastForward),mute:tx.call(this,this.config.selectors.buttons.mute),pip:tx.call(this,this.config.selectors.buttons.pip),airplay:tx.call(this,this.config.selectors.buttons.airplay),settings:tx.call(this,this.config.selectors.buttons.settings),captions:tx.call(this,this.config.selectors.buttons.captions),fullscreen:tx.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=tx.call(this,this.config.selectors.progress),this.elements.inputs={seek:tx.call(this,this.config.selectors.inputs.seek),volume:tx.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:tx.call(this,this.config.selectors.display.buffer),currentTime:tx.call(this,this.config.selectors.display.currentTime),duration:tx.call(this,this.config.selectors.display.duration)},xT(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n=nA.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),i=document.createElementNS("http://www.w3.org/2000/svg","svg");VT(i,qT(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS("http://www.w3.org/2000/svg","use"),a="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.appendChild(o),i},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Yx(e,this.config),r=ts({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return WT("span",r,n)},createBadge:function(e){if(CT(e))return null;var t=WT("span",{class:this.config.classNames.menu.value});return t.appendChild(WT("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=qT({},t),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=Vx(t)).charAt(0).toLowerCase()+t.slice(1)}(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(r).includes(e)&&(o[e]=r[e],delete r[e])})),"button"!==o.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some((function(e){return e===n.config.classNames.control}))||qT(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),i="play",o.label="play",o.icon="play";break;default:CT(o.label)&&(o.label=i),CT(o.icon)&&(o.icon=e)}var a=WT(o.element);return o.toggle?(a.appendChild(nA.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(nA.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(nA.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(nA.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(nA.createIcon.call(this,o.icon)),a.appendChild(nA.createLabel.call(this,o.label))),qT(r,KT(this.config.selectors.buttons[i],r)),VT(a,r),"play"===i?(ST(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(a)):this.elements.buttons[i]=a,a},createRange:function(e,t){var n=WT("input",qT(KT(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Yx(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,nA.updateRangeFill.call(this,n),Bk.setup(n),n},createProgress:function(e,t){var n=WT("progress",qT(KT(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(WT("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?Yx(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=KT(this.config.selectors.display[e],t),r=WT("div",qT(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Yx(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;cx.call(this,e,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=ZT(e,'[role="menuitemradio"]');if(!o&&[32,39].includes(r.which))nA.showMenuPanel.call(n,t,!0);else 32!==r.which&&(40===r.which||o&&39===r.which?(i=e.nextElementSibling,xT(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,xT(i)||(i=e.parentNode.lastElementChild)),nx.call(n,i,!0))}}),!1),cx.call(this,e,"keyup",(function(e){13===e.which&&nA.focusFirstMenuItem.call(n,null,!0)}))},createMenuItem:function(e){var t=this,n=e.value,r=e.list,i=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,c=e.checked,u=void 0!==c&&c,l=KT(this.config.selectors.inputs[i]),f=WT("button",qT(l,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(l.class?l.class:"").trim(),"aria-checked":u,value:n})),h=WT("span");h.innerHTML=o,xT(s)&&h.appendChild(s),f.appendChild(h),Object.defineProperty(f,"checked",{enumerable:!0,get:function(){return"true"===f.getAttribute("aria-checked")},set:function(e){e&&Array.from(f.parentNode.children).filter((function(e){return ZT(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),f.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(f,"click keyup",(function(e){if(!OT(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,i){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}nA.showMenuPanel.call(t,"home",OT(e))}}),i,!1),nA.bindMenuItemShortcuts.call(this,f,i),r.appendChild(f)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!wT(e))return e;var n=Qx(this.duration)>0;return tA(e,n,t)},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];xT(e)&&wT(t)&&(e.innerText=nA.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(xT(this.elements.inputs.volume)&&nA.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),xT(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xT(e)&&(e.value=t,nA.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&AT(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&nA.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=wT(n)?n:0,i=xT(e)?e:t.elements.display.buffer;if(xT(i)){i.value=r;var o=i.getElementsByTagName("span")[0];xT(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=AT(e)?e.target:e;if(xT(t)&&"range"===t.getAttribute("type")){if(ZT(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=nA.formatTime(this.currentTime),r=nA.formatTime(this.duration),i=Yx("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(ZT(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);NT.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&xT(this.elements.inputs.seek)&&xT(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){return JT(t.elements.display.seekTooltip,n,e)};if(this.touch)r(!1);else{var i=0,o=this.elements.progress.getBoundingClientRect();if(AT(e))i=100/o.width*(e.pageX-o.left);else{if(!QT(this.elements.display.seekTooltip,n))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),nA.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),AT(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!xT(this.elements.display.duration)&&this.config.invertTime;nA.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||nA.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return XT(this.elements.display.currentTime,!0),void XT(this.elements.progress,!0);xT(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=xT(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&nA.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&nA.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),nA.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){XT(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var r=this.elements.settings.panels[e],i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=CT(n)?this[e]:n,CT(i)&&(i=this.config[e].default),!CT(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn("Unsupported value of '".concat(i,"' for ").concat(e));if(!this.config[e].options.includes(i))return void this.debug.warn("Disabled value of '".concat(i,"' for ").concat(e))}if(xT(o)||(o=r&&r.querySelector('[role="menu"]')),xT(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=nA.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));xT(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Yx("normal",this.config):"".concat(t,"&times;");case"quality":if(wT(t)){var n=Yx("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return Hx(t);case"captions":return oA.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(xT(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');ST(e)&&(this.options.quality=wx(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!CT(this.options.quality)&&this.options.quality.length>1;if(nA.toggleMenuButton.call(this,"quality",r),$T(n),nA.checkMenu.call(this),r){var i=function(e){var n=Yx("qualityBadge.".concat(e),t.config);return n.length?nA.createBadge.call(t,n):null};this.options.quality.sort((function(e,n){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(n)?1:-1})).forEach((function(e){nA.createMenuItem.call(t,{value:e,list:n,type:"quality",title:nA.getLabel.call(t,"quality",e),badge:i(e)})})),nA.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var e=this;if(xT(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=oA.getTracks.call(this),r=Boolean(n.length);if(nA.toggleMenuButton.call(this,"captions",r),$T(t),nA.checkMenu.call(this),r){var i=n.map((function(n,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:oA.getLabel.call(e,n),badge:n.language&&nA.createBadge.call(e,n.language.toUpperCase()),list:t,type:"language"}}));i.unshift({value:-1,checked:!this.captions.toggled,title:Yx("disabled",this.config),list:t,type:"language"}),i.forEach(nA.createMenuItem.bind(this)),nA.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(){var e=this;if(xT(this.elements.settings.panels.speed)){var t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var n=!CT(this.options.speed)&&this.options.speed.length>1;nA.toggleMenuButton.call(this,"speed",n),$T(t),nA.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){nA.createMenuItem.call(e,{value:n,list:t,type:"speed",title:nA.getLabel.call(e,"speed",n)})})),nA.updateSetting.call(this,"speed",t))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!CT(e)&&Object.values(e).some((function(e){return!e.hidden}));XT(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;xT(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');nx.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(xT(t)&&xT(n)){var r=t.hidden,i=r;if(ET(e))i=e;else if(OT(e)&&27===e.which)i=!1;else if(AT(e)){var o=kT(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),XT(t,!i),JT(this.elements.container,this.config.classNames.menu.open,i),i&&OT(e)?nA.focusFirstMenuItem.call(this,null,!0):i||r||nx.call(this,n,OT(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,r=t.scrollHeight;return YT(t),{width:n,height:r}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(xT(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(ox.transitions&&!ox.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=nA.getMenuSize.call(this,r),s=function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",ux.call(e,i,RT,t))};cx.call(this,i,RT,s),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}XT(o,!0),XT(r,!1),nA.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;xT(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=nA.bindMenuItemShortcuts,r=nA.createButton,i=nA.createProgress,o=nA.createRange,a=nA.createTime,s=nA.setQualityMenu,c=nA.setSpeedMenu,u=nA.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var l=WT("div",KT(this.config.selectors.controls.wrapper));this.elements.controls=l;var f={class:"plyr__controls__item"};return wx(this.config.controls).forEach((function(s){if("restart"===s&&l.appendChild(r.call(t,"restart",f)),"rewind"===s&&l.appendChild(r.call(t,"rewind",f)),"play"===s&&l.appendChild(r.call(t,"play",f)),"fast-forward"===s&&l.appendChild(r.call(t,"fast-forward",f)),"progress"===s){var c=WT("div",{class:"".concat(f.class," plyr__progress__container")}),h=WT("div",KT(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var p=WT("span",{class:t.config.classNames.tooltip},"00:00");h.appendChild(p),t.elements.display.seekTooltip=p}t.elements.progress=h,c.appendChild(t.elements.progress),l.appendChild(c)}if("current-time"===s&&l.appendChild(a.call(t,"currentTime",f)),"duration"===s&&l.appendChild(a.call(t,"duration",f)),"mute"===s||"volume"===s){var d=t.elements.volume;if(xT(d)&&l.contains(d)||(d=WT("div",qT({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=d,l.appendChild(d)),"mute"===s&&d.appendChild(r.call(t,"mute")),"volume"===s&&!NT.isIos){var g={max:1,step:.05,value:t.config.volume};d.appendChild(o.call(t,"volume",qT(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&l.appendChild(r.call(t,"captions",f)),"settings"===s&&!CT(t.config.settings)){var v=WT("div",qT({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));v.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var m=WT("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=WT("div"),b=WT("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=WT("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var i=WT("button",qT(KT(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,i,r),cx.call(t,i,"click",(function(){u.call(t,r,!1)}));var o=WT("span",null,Yx(r,t.config)),a=WT("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=WT("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),c=WT("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});c.appendChild(WT("span",{"aria-hidden":!0},Yx(r,t.config))),c.appendChild(WT("span",{class:t.config.classNames.hidden},Yx("menuBack",t.config))),cx.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),u.call(t,"home",!0))}),!1),cx.call(t,c,"click",(function(){u.call(t,"home",!1)})),s.appendChild(c),s.appendChild(WT("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[r]=i,t.elements.settings.panels[r]=s})),m.appendChild(y),v.appendChild(m),l.appendChild(v),t.elements.settings.popup=m,t.elements.settings.menu=v}if("pip"===s&&ox.pip&&l.appendChild(r.call(t,"pip",f)),"airplay"===s&&ox.airplay&&l.appendChild(r.call(t,"airplay",f)),"download"===s){var _=qT({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(_.download="");var E=t.config.urls.download;!jT(E)&&t.isEmbed&&qT(_,{icon:"logo-".concat(t.provider),label:t.provider}),l.appendChild(r.call(t,"download",_))}"fullscreen"===s&&l.appendChild(r.call(t,"fullscreen",f))})),this.isHTML5&&s.call(this,bx.getQualityOptions.call(this)),c.call(this),l},inject:function(){var e=this;if(this.config.loadSprite){var t=nA.getIconUrl.call(this);t.cors&&Kx(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;kT(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),xT(this.config.controls)||_T(this.config.controls)?n=this.config.controls:(n=nA.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:oA.getLabel.call(this)}),i=!1);var o,a=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=ns(e,2),r=n[0],i=n[1];t=qx(t,"{".concat(r,"}"),i)})),t};if(i&&(_T(this.config.controls)?n=a(n):xT(n)&&(n.innerHTML=a(n.innerHTML))),_T(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),xT(o)||(o=this.elements.container),o[xT(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),xT(this.elements.controls)||nA.findElements.call(this),!CT(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return QT(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];JT(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){ST(e)||TT(e)?Array.from(e).filter(Boolean).forEach(s):s(e)}))}if(NT.isEdge&&LT(o),this.config.tooltips.controls){var c=this.config,u=c.classNames,l=c.selectors,f="".concat(l.controls.wrapper," ").concat(l.labels," .").concat(u.hidden),h=ex.call(this,f);Array.from(h).forEach((function(t){JT(t,e.config.classNames.hidden,!1),JT(t,e.config.classNames.tooltip,!0)}))}}};function rA(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch(e){return null}}function iA(e){var t=new URLSearchParams;return bT(e)&&Object.entries(e).forEach((function(e){var n=ns(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var oA={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!ox.textTracks)ST(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&nA.setCaptionsMenu.call(this);else{if(xT(this.elements.captions)||(this.elements.captions=WT("div",KT(this.config.selectors.captions)),function(e,t){xT(e)&&xT(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),NT.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=rA(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Gx(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){YT(e)}))}))}var t=wx((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();if("auto"===n)n=ns(t,1)[0];var r=this.storage.get("captions");if(ET(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){var i=this.config.captions.update?"addtrack removetrack":"removetrack";cx.call(this,this.media.textTracks,i,oA.update.bind(this))}setTimeout(oA.update.bind(this),0)}},update:function(){var e=this,t=oA.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find((function(e){return e.language===i})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!o.get(e)})).forEach((function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),t.mode="hidden",cx.call(e,t,"cuechange",(function(){return oA.updateCues.call(e)}))})),(s&&this.language!==i||!t.includes(a))&&(oA.setLanguage.call(this,i),oA.toggle.call(this,r&&s)),JT(this.elements.container,this.config.classNames.captions.enabled,!CT(t)),ST(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&nA.setCaptionsMenu.call(this)},toggle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,i=yT(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){var o=oA.getTracks.call(this),a=oA.findTrack.call(this,[this.captions.language].concat(rs(this.captions.languages)),!0);return this.captions.language=a.language,void oA.set.call(this,o.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),JT(this.elements.container,r,i),this.captions.toggled=i,nA.updateSetting.call(this,"captions"),fx.call(this,this.media,i?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=oA.getTracks.call(this);if(-1!==e)if(wT(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=r||{},o=i.language;this.captions.currentTrackNode=r,nA.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),fx.call(this,this.media,"languagechange")}oA.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&oA.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else oA.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(_T(e)){var n=e.toLowerCase();this.captions.language=n;var r=oA.getTracks.call(this),i=oA.findTrack.call(this,[n]);oA.set.call(this,r.indexOf(i),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Array.from((this.media||{}).textTracks||[]);return n.filter((function(n){return!e.isHTML5||t||e.captions.meta.has(n)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=oA.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(i).sort((function(e,t){return o(t)-o(e)}));return e.every((function(e){return!(t=a.find((function(t){return t.language===e})))})),t||(r?a[0]:void 0)},getCurrentTrack:function(){return oA.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!PT(t)&&ox.textTracks&&this.captions.toggled&&(t=oA.getCurrentTrack.call(this)),PT(t)?CT(t.label)?CT(t.language)?Yx("enabled",this.config):e.language.toUpperCase():t.label:Yx("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(xT(this.elements.captions))if(yT(e)||Array.isArray(e)){var t=e;if(!t){var n=oA.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Wx)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){$T(this.elements.captions);var i=WT("span",KT(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),fx.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},aA={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.10/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,sidedock:!1,controls:!1,referrerPolicy:null},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},sA="picture-in-picture",cA="inline",uA={html5:"html5",youtube:"youtube",vimeo:"vimeo"},lA="audio",fA="video";var hA=function(){},pA=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Xa(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Qa(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):hA}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):hA}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):hA}}]),e}(),dA=function(){function e(t){var n=this;Xa(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,cx.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),cx.call(this.player,this.player.elements.container,"dblclick",(function(e){xT(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()})),cx.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return Qa(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;xT(e)&&(e.pressed=this.active),fx.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",JT(this.target,this.player.config.classNames.fullscreen.fallback,e),NT.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=_T(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=",".concat(n))):this.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!NT.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=ex.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=ns(n,1)[0],i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}}},{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");JT(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(NT.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?this.toggleFallback(!0):this.prefix?CT(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(NT.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),dx(this.player.play());else if(!e.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!CT(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return QT(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return NT.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(kT(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!kT(document["".concat(t,"ExitFullscreen")])&&!kT(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),gA=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function vA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(n,r){var i=new Image,o=function(){delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})}))}Ov({target:"Math",stat:!0},{sign:gA});var mA={addStyleHook:function(){JT(this.elements.container,this.config.selectors.container.replace(".",""),!0),JT(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void mA.toggleNativeControls.call(this,!0);xT(this.elements.controls)||(nA.inject.call(this),this.listeners.controls()),mA.toggleNativeControls.call(this),this.isHTML5&&oA.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,nA.updateVolume.call(this),nA.timeUpdate.call(this),mA.checkPlaying.call(this),JT(this.elements.container,this.config.classNames.pip.supported,ox.pip&&this.isHTML5&&this.isVideo),JT(this.elements.container,this.config.classNames.airplay.supported,ox.airplay&&this.isHTML5),JT(this.elements.container,this.config.classNames.isIos,NT.isIos),JT(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){fx.call(e,e.media,"ready")}),0),mA.setTitle.call(this),this.poster&&mA.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&nA.durationUpdate.call(this)},setTitle:function(){var e=Yx("play",this.config);if(_T(this.config.title)&&!CT(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=tx.call(this,"iframe");if(!xT(t))return;var n=CT(this.config.title)?"video":this.config.title,r=Yx("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){JT(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("poster",e),this.isHTML5?Promise.resolve(e):px.call(this).then((function(){return vA(e)})).catch((function(n){throw e===t.poster&&mA.togglePoster.call(t,!1),n})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),mA.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;JT(this.elements.container,this.config.classNames.playing,this.playing),JT(this.elements.container,this.config.classNames.paused,this.paused),JT(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",Yx(t.playing?"pause":"play",t.config))})),AT(e)&&"timeupdate"===e.type||mA.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){JT(t.elements.container,t.config.classNames.loading,t.loading),mA.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}}},yA=function(){function e(t){Xa(this,e),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Qa(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,r=e.keyCode?e.keyCode:e.which,i="keydown"===e.type,o=i&&r===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&wT(r)){if(i){var a=document.activeElement;if(xT(a)){var s=t.config.selectors.editable;if(a!==n.inputs.seek&&ZT(a,s))return;if(32===e.which&&ZT(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(r-48));break;case 32:case 75:o||dx(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}}},{key:"toggleMenu",value:function(e){nA.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,JT(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var r,i=e.timeStamp-this.lastKeyDown<=20;if("focus"!==e.type||i)r=t.config.classNames.tabFocus,JT(ex.call(t,".".concat(r)),r,!1),this.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&JT(document.activeElement,t.config.classNames.tabFocus,!0)}),10)}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&sx.call(t,window,"keydown keyup",this.handleKey,e,!1),sx.call(t,document.body,"click",this.toggleMenu,e),lx.call(t,document.body,"touchstart",this.firstTouch),sx.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&cx.call(e,n.container,"keydown keyup",this.handleKey,!1),cx.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(mA.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return mA.toggleControls.call(e,!1)}),o)}));var i=function(t){if(!t)return yx.call(e);var r=n.container.getBoundingClientRect(),i=r.width,o=r.height;return yx.call(e,"".concat(i,":").concat(o))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(i,50)};cx.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var r=e.fullscreen,a=r.target,s=r.usingNative;if(a===n.container&&(e.isEmbed||!CT(e.config.ratio))){var c="enterfullscreen"===t.type,u=i(c);u.padding;!function(t,n,r){if(e.isVimeo){var i=e.elements.wrapper.firstChild,o=ns(t,2)[1],a=ns(mx.call(e),2),s=a[0],c=a[1];i.style.maxWidth=r?"".concat(o/c*s,"px"):null,i.style.margin=r?"0 auto":null}}(u.ratio,0,c),s||(c?cx.call(e,window,"resize",o):ux.call(e,window,"resize",o))}}))}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(cx.call(t,t.media,"timeupdate seeking seeked",(function(e){return nA.timeUpdate.call(t,e)})),cx.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return nA.durationUpdate.call(t,e)})),cx.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),cx.call(t,t.media,"progress playing seeking seeked",(function(e){return nA.updateProgress.call(t,e)})),cx.call(t,t.media,"volumechange",(function(e){return nA.updateVolume.call(t,e)})),cx.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return mA.checkPlaying.call(t,e)})),cx.call(t,t.media,"waiting canplay seeked playing",(function(e){return mA.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=tx.call(t,".".concat(t.config.classNames.video));if(!xT(r))return;cx.call(t,n.container,"click",(function(i){([n.container,r].includes(i.target)||r.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(i,t.restart,"restart"),e.proxy(i,(function(){dx(t.play())}),"play")):e.proxy(i,(function(){dx(t.togglePlay())}),"play")))}))}t.supported.ui&&t.config.disableContextMenu&&cx.call(t,n.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),cx.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),cx.call(t,t.media,"ratechange",(function(){nA.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),cx.call(t,t.media,"qualitychange",(function(e){nA.updateSetting.call(t,"quality",null,e.detail.quality)})),cx.call(t,t.media,"ready qualitychange",(function(){nA.setDownloadUrl.call(t)}));var i=t.config.events.concat(["keyup","keydown"]).join(" ");cx.call(t,t.media,i,(function(e){var r=e.detail,i=void 0===r?{}:r;"error"===e.type&&(i=t.media.error),fx.call(t,n.container,e.type,!0,i)}))}},{key:"proxy",value:function(e,t,n){var r=this.player,i=r.config.listeners[n],o=!0;kT(i)&&(o=i.call(r,e)),!1!==o&&kT(t)&&t.call(r,e)}},{key:"bind",value:function(e,t,n,r){var i=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,s=a.config.listeners[r],c=kT(s);cx.call(a,e,t,(function(e){return i.proxy(e,n,r)}),o&&!c)}},{key:"controls",value:function(){var e=this,t=this.player,n=t.elements,r=NT.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach((function(n){e.bind(n,"click",(function(){dx(t.togglePlay())}),"play")})),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",t.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(n.buttons.mute,"click",(function(){t.muted=!t.muted}),"mute"),this.bind(n.buttons.captions,"click",(function(){return t.toggleCaptions()})),this.bind(n.buttons.download,"click",(function(){fx.call(t,t.media,"download")}),"download"),this.bind(n.buttons.fullscreen,"click",(function(){t.fullscreen.toggle()}),"fullscreen"),this.bind(n.buttons.pip,"click",(function(){t.pip="toggle"}),"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",(function(e){e.stopPropagation(),e.preventDefault(),nA.toggleMenu.call(t,e)}),null,!1),this.bind(n.buttons.settings,"keyup",(function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),nA.toggleMenu.call(t,e)):nA.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(n.settings.menu,"keydown",(function(e){27===e.which&&nA.toggleMenu.call(t,e)})),this.bind(n.inputs.seek,"mousedown mousemove",(function(e){var t=n.progress.getBoundingClientRect(),r=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",r)})),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(e){var n=e.currentTarget,r=e.keyCode?e.keyCode:e.which;if(!OT(e)||39===r||37===r){t.lastSeekTime=Date.now();var i=n.hasAttribute("play-on-seeked"),o=["mouseup","touchend","keyup"].includes(e.type);i&&o?(n.removeAttribute("play-on-seeked"),dx(t.play())):!o&&t.playing&&(n.setAttribute("play-on-seeked",""),t.pause())}})),NT.isIos){var i=ex.call(t,'input[type="range"]');Array.from(i).forEach((function(t){return e.bind(t,r,(function(e){return LT(e.target)}))}))}this.bind(n.inputs.seek,r,(function(e){var n=e.currentTarget,r=n.getAttribute("seek-value");CT(r)&&(r=n.value),n.removeAttribute("seek-value"),t.currentTime=r/n.max*t.duration}),"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",(function(e){return nA.updateSeekTooltip.call(t,e)})),this.bind(n.progress,"mousemove touchmove",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startMove(e)})),this.bind(n.progress,"mouseleave touchend click",(function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)})),this.bind(n.progress,"mousedown touchstart",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startScrubbing(e)})),this.bind(n.progress,"mouseup touchend",(function(e){var n=t.previewThumbnails;n&&n.loaded&&n.endScrubbing(e)})),NT.isWebkit&&Array.from(ex.call(t,'input[type="range"]')).forEach((function(n){e.bind(n,"input",(function(e){return nA.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!xT(n.display.duration)&&this.bind(n.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,nA.timeUpdate.call(t))})),this.bind(n.inputs.volume,r,(function(e){t.volume=e.target.value}),"volume"),this.bind(n.controls,"mouseenter mouseleave",(function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type})),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)})),this.bind(n.controls,"focusin",(function(){var r=t.config,i=t.timers;JT(n.controls,r.classNames.noTransition,!0),mA.toggleControls.call(t,!0),setTimeout((function(){JT(n.controls,r.classNames.noTransition,!1)}),0);var o=e.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return mA.toggleControls.call(t,!1)}),o)})),this.bind(n.inputs.volume,"wheel",(function(e){var n=e.webkitDirectionInvertedFromDevice,r=ns([e.deltaX,-e.deltaY].map((function(e){return n?-e:e})),2),i=r[0],o=r[1],a=Math.sign(Math.abs(i)>Math.abs(o)?i:o);t.increaseVolume(a/50);var s=t.media.volume;(1===a&&s<1||-1===a&&s>0)&&e.preventDefault()}),"volume",!1)}}]),e}(),bA=Yv("splice"),wA=om("splice",{ACCESSORS:!0,0:0,1:2}),_A=Math.max,EA=Math.min;Ov({target:"Array",proto:!0,forced:!bA||!wA},{splice:function(e,t){var n,r,i,o,a,s,c=Iv(this),u=av(c.length),l=uv(e,u),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=u-l):(n=f-2,r=EA(_A(iv(t),0),u-l)),u+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Fv(c,r),o=0;o<r;o++)(a=l+o)in c&&jv(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=u;o>u-r+n;o--)delete c[o-1]}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+l]=arguments[o+2];return c.length=u-r+n,i}});var kA=t((function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,s,c=document,u=r.async,l=(r.numRetries||0)+1,f=r.before||e,h=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(h)?((s=c.createElement("link")).rel="stylesheet",s.href=p,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=c.createElement("img")).src=p:((s=c.createElement("script")).src=t,s.async=void 0===u||u),s.onload=s.onerror=s.onbeforeload=function(e){var c=e.type[0];if(o)try{s.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((i+=1)<l)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,c,e.defaultPrevented)},!1!==f(t,s)&&c.head.appendChild(s)}function s(e,n,r){var s,c;if(n&&n.trim&&(s=n),c=(s?r:n)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function u(t,n){!function(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,c=[];for(r=function(e,n,r){if("e"==n&&c.push(e),"b"==n){if(!r)return;c.push(e)}--o||t(c)},i=0;i<s;i++)a(e[i],r,n)}(e,(function(e){o(c,e),t&&o({success:t,error:n},e),i(s,e)}),c)}if(c.returnPromise)return new Promise(u);u()}return s.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,s=[],c=e.length,u=c;for(i=function(e,n){n.length&&s.push(e),--u||t(s)};c--;)o=e[c],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,(function(e){o(t,e)})),s},s.done=function(e){i(e,[])},s.reset=function(){t={},n={},r={}},s.isDefined=function(e){return e in t},s}()}));function SA(e){return new Promise((function(t,n){kA(e,{success:t,error:n})}))}function TA(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,fx.call(this,this.media,e?"play":"pause"))}var xA={setup:function(){var e=this;JT(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,yx.call(e),bT(window.Vimeo)?xA.ready.call(e):SA(e.config.urls.vimeo.sdk).then((function(){xA.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,n=t.config.vimeo,r=iA(qT({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),i=t.media.getAttribute("src");CT(i)&&(i=t.media.getAttribute(t.config.attributes.embed.id));var o,a=CT(o=i)?null:wT(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o,s=WT("iframe"),c=Bx(t.config.urls.vimeo.iframe,a,r);s.setAttribute("src",c),s.setAttribute("allowfullscreen",""),s.setAttribute("allowtransparency",""),s.setAttribute("allow","autoplay"),CT(n.referrerPolicy)||s.setAttribute("referrerPolicy",n.referrerPolicy);var u=WT("div",{poster:t.poster,class:t.config.classNames.embedContainer});u.appendChild(s),t.media=GT(u,t.media),Gx(Bx(t.config.urls.vimeo.api,a),"json").then((function(e){if(!CT(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),mA.setPoster.call(t,n.href).catch((function(){}))}})),t.embed=new window.Vimeo.Player(s,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return TA.call(t,!0),t.embed.play()},t.media.pause=function(){return TA.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var l=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return l},set:function(e){var n=t.embed,r=t.media,i=t.paused,o=t.volume,a=i&&!n.hasPlayed;r.seeking=!0,fx.call(t,r,"seeking"),Promise.resolve(a&&n.setVolume(0)).then((function(){return n.setCurrentTime(e)})).then((function(){return a&&n.pause()})).then((function(){return a&&n.setVolume(o)})).catch((function(){}))}});var f=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return f},set:function(e){t.embed.setPlaybackRate(e).then((function(){f=e,fx.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var h=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return h},set:function(e){t.embed.setVolume(e).then((function(){h=e,fx.call(t,t.media,"volumechange")}))}});var p=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return p},set:function(e){var n=!!ET(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){p=n,fx.call(t,t.media,"volumechange")}))}});var d,g=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return g},set:function(e){var n=ET(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){g=n}))}}),t.embed.getVideoUrl().then((function(e){d=e,nA.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return d}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(n){var r=ns(n,2),i=r[0],o=r[1];t.embed.ratio=[i,o],yx.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(n){t.config.title=n,mA.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){l=e,fx.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,fx.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,oA.setup.call(t)})),t.embed.on("cuechange",(function(e){var n=e.cues,r=(void 0===n?[]:n).map((function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)}));oA.updateCues.call(t,r)})),t.embed.on("loaded",(function(){(t.embed.getPaused().then((function(e){TA.call(t,!e),e||fx.call(t,t.media,"playing")})),xT(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){fx.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){fx.call(t,t.media,"playing")})),t.embed.on("play",(function(){TA.call(t,!0),fx.call(t,t.media,"playing")})),t.embed.on("pause",(function(){TA.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,l=e.seconds,fx.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,fx.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&fx.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,fx.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,fx.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,fx.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,fx.call(t,t.media,"error")})),setTimeout((function(){return mA.build.call(t)}),0)}};function AA(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,fx.call(this,this.media,e?"play":"pause"))}function OA(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var PA={setup:function(){var e=this;if(JT(this.elements.wrapper,this.config.classNames.embed,!0),bT(window.YT)&&kT(window.YT.Player))PA.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){kT(t)&&t(),PA.ready.call(e)},SA(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;Gx(Bx(this.config.urls.youtube.api,e)).then((function(e){if(bT(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,mA.setTitle.call(t),t.embed.ratio=[i,r]}yx.call(t)})).catch((function(){yx.call(t)}))},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(CT(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");CT(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r,i,o=CT(r=n)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r,a=(i=e.provider,"".concat(i,"-").concat(Math.floor(1e4*Math.random()))),s=WT("div",{id:a,poster:e.poster});e.media=GT(s,e.media);var c=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};vA(c("maxres"),121).catch((function(){return vA(c("sd"),121)})).catch((function(){return vA(c("hq"))})).then((function(t){return mA.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}));var u=e.config.youtube;e.embed=new window.YT.Player(a,{videoId:o,host:OA(u),playerVars:qT({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},u),events:{onError:function(t){if(!e.media.error){var n=t.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:r},fx.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),fx.call(e,e.media,"ratechange")},onReady:function(t){if(!kT(e.media.play)){var n=t.target;PA.getTitle.call(e,o),e.media.play=function(){AA.call(e,!0),n.playVideo()},e.media.pause=function(){AA.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,fx.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var r=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return r},set:function(t){r=t,n.setVolume(100*r),fx.call(e,e.media,"volumechange")}});var i=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return i},set:function(t){var r=ET(t)?t:i;i=r,n[r?"mute":"unMute"](),fx.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var a=n.getAvailablePlaybackRates();e.options.speed=a.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&e.media.setAttribute("tabindex",-1),fx.call(e,e.media,"timeupdate"),fx.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&fx.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),fx.call(e,e.media,"canplaythrough"))}),200),setTimeout((function(){return mA.build.call(e)}),50)}},onStateChange:function(t){var n=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,fx.call(e,e.media,"seeked")),t.data){case-1:fx.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),fx.call(e,e.media,"progress");break;case 0:AA.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):fx.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(AA.call(e,!0),fx.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){fx.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),fx.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),AA.call(e,!1);break;case 3:fx.call(e,e.media,"waiting")}fx.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},IA={setup:function(){this.media?(JT(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),JT(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&JT(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=WT("div",{class:this.config.classNames.video}),HT(this.media,this.elements.wrapper),this.isEmbed&&(this.elements.poster=WT("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster))),this.isHTML5?bx.setup.call(this):this.isYouTube?PA.setup.call(this):this.isVimeo&&xA.setup.call(this)):this.debug.warn("No media element found!")}},jA=function(){function e(t){var n=this;Xa(this,e),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){n.on("loaded",e),n.on("error",t)})),this.load()}return Qa(e,[{key:"load",value:function(){var e=this;this.enabled&&(bT(window.google)&&bT(window.google.ima)?this.ready():SA(this.player.config.urls.googleIMA.sdk).then((function(){e.ready()})).catch((function(){e.trigger("error",new Error("Google IMA SDK failed to load"))})))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then((function(){t.clearSafetyTimer("onAdsManagerLoaded()")})),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){var e=this;this.elements.container=WT("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){return e.onAdsManagerLoaded(t)}),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){return e.onAdError(t)}),!1),this.requestAds()}},{key:"requestAds",value:function(){var e=this.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=this.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(t)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");var n=function(){var t=tA(Math.max(e.manager.getRemainingTime(),0)),n="".concat(Yx("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(n,100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=e.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return t.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return t.onAdEvent(e)}))})),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;CT(this.cuePoints)||this.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(xT(n)){var r=100/e.player.duration*t,i=WT("span",{class:e.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),n.appendChild(i)}}}))}},{key:"onAdEvent",value:function(e){var t=this,n=this.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){fx.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),r.isLinear()||(r.width=n.offsetWidth,r.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,n=this.player.elements.container;this.player.on("canplay",(function(){t.addCuePoints()})),this.player.on("ended",(function(){t.loader.contentComplete()})),this.player.on("timeupdate",(function(){e=t.player.currentTime})),this.player.on("seeked",(function(){var n=t.player.currentTime;CT(t.cuePoints)||t.cuePoints.forEach((function(r,i){e<r&&r<n&&(t.manager.discardAdBreak(),t.cuePoints.splice(i,1))}))})),window.addEventListener("resize",(function(){t.manager&&t.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)}))}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then((function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}})).catch((function(){}))}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,dx(this.player.media.play())}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var e=this;this.managerPromise.then((function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise((function(t){e.on("loaded",t),e.player.debug.log(e.manager)})),e.initialized=!1,e.requestAds()})).catch((function(){}))}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];ST(o)&&o.forEach((function(e){kT(e)&&e.apply(t,r)}))}},{key:"on",value:function(e,t){return ST(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout((function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")}),e)}},{key:"clearSafetyTimer",value:function(e){yT(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!CT(e.publisherId)||jT(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(jT(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(iA(t))}}]),e}(),CA=tm.findIndex,RA=!0,LA=om("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){RA=!1})),Ov({target:"Array",proto:!0,forced:RA||!LA},{findIndex:function(e){return CA(this,e,arguments.length>1?arguments[1]:void 0)}}),wm("findIndex");var NA=Math.min,MA=[].lastIndexOf,UA=!!MA&&1/[1].lastIndexOf(1,-0)<0,DA=vy("lastIndexOf"),FA=om("indexOf",{ACCESSORS:!0,1:0}),BA=UA||!DA||!FA?function(e){if(UA)return MA.apply(this,arguments)||0;var t=hg(this),n=av(t.length),r=n-1;for(arguments.length>1&&(r=NA(r,iv(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:MA;Ov({target:"Array",proto:!0,forced:BA!==[].lastIndexOf},{lastIndexOf:BA});var qA=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},HA=function(){function e(t){Xa(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Qa(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then((function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)}))}},{key:"getThumbnails",value:function(){var e=this;return new Promise((function(t){var n=e.player.config.previewThumbnails.src;if(CT(n))throw new Error("Missing previewThumbnails.src config attribute");var r=function(){e.thumbnails.sort((function(e,t){return e.height-t.height})),e.player.debug.log("Preview thumbnails",e.thumbnails),t()};if(kT(n))n((function(t){e.thumbnails=t,r()}));else{var i=(_T(n)?[n]:n).map((function(t){return e.getThumbnail(t)}));Promise.all(i).then(r)}}))}},{key:"getThumbnail",value:function(e){var t=this;return new Promise((function(n){Gx(e).then((function(r){var i,o,a={frames:(i=r,o=[],i.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var t={};e.split(/\r\n|\n|\r/).forEach((function(e){if(wT(t.startTime)){if(!CT(e.trim())&&CT(t.text)){var n=e.trim().split("#xywh="),r=ns(n,1);if(t.text=r[0],n[1]){var i=ns(n[1].split(","),4);t.x=i[0],t.y=i[1],t.w=i[2],t.h=i[3]}}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}})),t.text&&o.push(t)})),o),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var s=new Image;s.onload=function(){a.height=s.naturalHeight,a.width=s.naturalWidth,t.thumbnails.push(a),n()},s.src=a.urlPrefix+a.frames[0].text}))}))}},{key:"startMove",value:function(e){if(this.loaded&&AT(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=tA(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(yT(e.button)||!1===e.button||0===e.button)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):lx.call(this.player,this.player.media,"timeupdate",(function(){e.mouseDown||e.toggleScrubbingContainer(!1)}))}},{key:"listeners",value:function(){var e=this;this.player.on("play",(function(){e.toggleThumbContainer(!1,!0)})),this.player.on("seeked",(function(){e.toggleThumbContainer(!1)})),this.player.on("timeupdate",(function(){e.lastTime=e.player.media.currentTime}))}},{key:"render",value:function(){this.elements.thumb.container=WT("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=WT("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=WT("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=WT("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),xT(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=WT("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"destroy",value:function(){this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}},{key:"showImageAtCurrentTime",value:function(){var e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex((function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime})),n=t>=0,r=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach((function(n,i){e.loadedImages.includes(n.frames[t].text)&&(r=i)})),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(r)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,r=this.thumbnails[t],i=r.urlPrefix,o=r.frames[n],a=r.frames[n].text,s=i+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,o,t,n,a,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var c=new Image;c.src=s,c.dataset.index=n,c.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log("Loading image: ".concat(s)),c.onload=function(){return e.showImage(c,o,t,n,a,!0)},this.loadingImage=c,this.removeOldImages(c)}}},{key:"showImage",value:function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(i,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach((function(n){if("img"===n.tagName.toLowerCase()){var r=t.usingSprites?500:1e3;if(n.dataset.index!==e.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var i=t.currentImageContainer;setTimeout((function(){i.removeChild(n),t.player.debug.log("Removing thumb: ".concat(n.dataset.filename))}),r)}}}))}},{key:"preloadNearby",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(r){setTimeout((function(){var i=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===i){var o;o=n?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach((function(e){var n=e.text;if(n!==i&&!t.loadedImages.includes(n)){a=!0,t.player.debug.log("Preloading thumb filename: ".concat(n));var o=t.thumbnails[0].urlPrefix+n,s=new Image;s.src=o,s.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(n)),t.loadedImages.includes(n)||t.loadedImages.push(n),r()}}})),a||r()}}),300)}))}},{key:"getHigherQuality",value:function(e,t,n,r){var i=this;if(e<this.thumbnails.length-1){var o=t.naturalHeight;this.usingSprites&&(o=n.h),o<this.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))}),300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(n,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>i&&(o=i),n.style.left="".concat(o,"px")}},{key:"setScrubbingContainerSize",value:function(){var e=qA(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),t=e.width,n=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(e.naturalWidth*n,"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?qA(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),VA={insertElements:function(e,t){var n=this;_T(t)?zT(e,this.media,{src:t}):ST(t)&&t.forEach((function(t){zT(e,n.media,t)}))},change:function(e){var t=this;BT(e,"sources.length")?(bx.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],YT(t.media),t.media=null,xT(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=ns(n,1)[0],o=i.provider,a=void 0===o?uA.html5:o,s=i.src,c="html5"===a?r:"div",u="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:ox.check(r,a,t.config.playsinline),media:WT(c,u)}),t.elements.container.appendChild(t.media),ET(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),CT(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),mA.addStyleHook.call(t),t.isHTML5&&VA.insertElements.call(t,"source",n),t.config.title=e.title,IA.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&VA.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&mA.build.call(t),t.isHTML5&&t.media.load(),CT(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new HA(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var WA,zA=function(){function e(t,n){var r=this;if(Xa(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=ox.touch,this.media=t,_T(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||TT(this.media)||ST(this.media))&&(this.media=this.media[0]),this.config=qT({},aA,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new pA(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",ox),!yT(this.media)&&xT(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(ox.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),xT(a)){if(s=rA(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?uA.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?uA.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var c=["1","true"];c.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(CT(this.provider)||!Object.keys(uA).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=fA;break;case"video":case"audio":this.type=o,this.provider=uA.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=ox.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new yA(this),this.storage=new $x(this),this.media.plyr=this,xT(this.elements.container)||(this.elements.container=WT("div",{tabindex:0}),HT(this.media,this.elements.container)),mA.addStyleHook.call(this),IA.setup.call(this),this.config.debug&&cx.call(this,this.elements.container,this.config.events.join(" "),(function(e){r.debug.log("event: ".concat(e.type))})),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&mA.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new dA(this),this.config.ads.enabled&&(this.ads=new jA(this)),this.isHTML5&&this.config.autoplay&&setTimeout((function(){return dx(r.play())}),10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new HA(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Qa(e,[{key:"play",value:function(){var e=this;return kT(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then((function(){return e.ads.play()})).catch((function(){return dx(e.media.play())})),this.media.play()):null}},{key:"pause",value:function(){return this.playing&&kT(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(ET(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):kT(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=wT(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=wT(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(wT(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){oA.toggle.call(this,e,!1)}},{key:"airplay",value:function(){ox.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=QT(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=JT(this.elements.container,this.config.classNames.hideControls,n);if(r&&this.config.controls.includes("settings")&&!CT(this.config.settings)&&nA.toggleMenu.call(this,!1),r!==t){var i=r?"controlshidden":"controlsshown";fx.call(this,this.media,i)}return!r}return!1}},{key:"on",value:function(e,t){cx.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){lx.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){ux(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var r=function(){document.body.style.overflow="",t.embed=null,n?(Object.keys(t.elements).length&&(YT(t.elements.buttons.play),YT(t.elements.captions),YT(t.elements.controls),YT(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),kT(e)&&e()):(hx.call(t),GT(t.elements.original,t.elements.container),fx.call(t,t.elements.original,"destroyed",!0),kT(e)&&e.call(t.elements.original),t.ready=!1,setTimeout((function(){t.elements=null,t.media=null}),200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(mA.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&kT(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200))}}},{key:"supports",value:function(e){return ox.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===uA.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===uA.youtube}},{key:"isVimeo",get:function(){return this.provider===uA.vimeo}},{key:"isVideo",get:function(){return this.type===fA}},{key:"isAudio",get:function(){return this.type===lA}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){if(this.duration){var t=wT(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return wT(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=wT(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;_T(t)&&(t=Number(t)),wT(t)||(t=this.storage.get("volume")),wT(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!CT(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;ET(t)||(t=this.storage.get("muted")),ET(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}},{key:"speed",set:function(e){var t=this,n=null;wT(e)&&(n=e),wT(n)||(n=this.storage.get("speed")),wT(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}(n,r,i),this.config.speed.selected=n,setTimeout((function(){t.media.playbackRate=n}),0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,rs(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,rs(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var r=[!CT(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(wT),i=!0;if(!n.includes(r)){var o=function(e,t){return ST(e)&&e.length?e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e})):null}(n,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=ET(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){VA.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return jT(e)?e:this.source},set:function(e){jT(e)&&(this.config.urls.download=e,nA.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?mA.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=vx(mx.call(this));return ST(e)?e.join(":"):e},set:function(e){this.isVideo?_T(e)&&gx(e)?(this.config.ratio=e,yx.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){var t=ET(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){oA.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){oA.setLanguage.call(this,e,!1)},get:function(){return(oA.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(ox.pip){var t=ET(e)?e:!this.pip;kT(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?sA:cA),kT(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return ox.pip?CT(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===sA:null}}],[{key:"supported",value:function(e,t,n){return ox.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return Kx(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return _T(t)?r=Array.from(document.querySelectorAll(t)):TT(t)?r=Array.from(t):ST(t)&&(r=t.filter(xT)),CT(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();zA.defaults=(WA=aA,JSON.parse(JSON.stringify(WA)));var YA,$A={video:{type:"video",title:"View From A Blue Moon",sources:[{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",type:"video/mp4",size:576},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4",type:"video/mp4",size:720},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4",type:"video/mp4",size:1080},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1440p.mp4",type:"video/mp4",size:1440}],poster:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt",default:!0},{kind:"captions",label:"French",srclang:"fr",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"}]},audio:{type:"audio",title:"Kishi Bashi &ndash; &ldquo;It All Began With A Burst&rdquo;",sources:[{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3",type:"audio/mp3"},{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg",type:"audio/ogg"}]},youtube:{type:"video",sources:[{src:"https://youtube.com/watch?v=bTqVqk7FSmY",provider:"youtube"}]},vimeo:{type:"video",sources:[{src:"https://vimeo.com/40648169",provider:"vimeo"}]}},GA=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.classList[n?"add":"remove"](t)};YA="plyr.io",window.location.host===YA&&Kp({dsn:"https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555",whitelistUrls:[YA].map((function(e){return new RegExp("https://(([a-z0-9])+(.))*".concat(e))}))}),document.addEventListener("DOMContentLoaded",(function(){Qd.setup(".js-shr",{count:{className:"button__count"},wrapper:{className:"button--with-count"}});var e=new zA("#player",{debug:!0,title:"View From A Blue Moon",iconUrl:"dist/demo.svg",keyboard:{global:!0},tooltips:{controls:!0},captions:{active:!0},ads:{enabled:window.location.host.includes(YA),publisherId:"918848828995742"},previewThumbnails:{enabled:!0,src:["https://cdn.plyr.io/static/demo/thumbs/100p.vtt","https://cdn.plyr.io/static/demo/thumbs/240p.vtt"]},vimeo:{referrerPolicy:"no-referrer"}});window.player=e;var t=document.querySelectorAll("[data-source]"),n=Object.keys($A),r=Boolean(window.history&&window.history.pushState),i=window.location.hash.substring(1),o=i.length;function a(e){Array.from(t).forEach((function(e){return GA(e.parentElement,"active",!1)})),GA(document.querySelector('[data-source="'.concat(e,'"]')),"active",!0),Array.from(document.querySelectorAll(".plyr__cite")).forEach((function(e){e.hidden=!0})),document.querySelector(".plyr__cite--".concat(e)).hidden=!1}function s(t,r){!n.includes(t)||!r&&t===i||!i.length&&"video"===t||(e.source=$A[t],i=t,a(t))}Array.from(t).forEach((function(e){e.addEventListener("click",(function(){var t=e.getAttribute("data-source");s(t),r&&window.history.pushState({type:t},"","#".concat(t))}))})),window.addEventListener("popstate",(function(e){e.state&&Object.keys(e.state).includes("type")&&s(e.state.type)})),o||(i="video"),r&&n.includes(i)&&window.history.replaceState({type:i},"",o?"#".concat(i):""),"video"!==i&&s(i,!0),a(i)}))}();
//# sourceMappingURL=demo.min.js.map