cobrowse-sdk-js 3.24.0 → 3.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/CobrowseIO.js +1 -1
- package/dist/CobrowseIO.mjs +1 -1
- package/dist/{CobrowseIO.static.C4ydqIN_.mjs → CobrowseIO.static.B7UDsxjP.mjs} +1 -1
- package/dist/{CobrowseIO.static.fveMib9t.mjs → CobrowseIO.static.D0KU8lRA.mjs} +1 -1
- package/dist/{CobrowseIO.static.DpIUswra.mjs → CobrowseIO.static.YcNudh90.mjs} +1 -1
- package/dist/CobrowseIO.static.exq-yM2T.mjs +1 -0
- package/dist/CobrowseIO.umd.js +1 -1
- package/dist/index.bundler.mjs +1 -1
- package/dist/pdf-viewer.umd.js +1 -1
- package/dist/universal-client.js +1 -1
- package/dist/universal-client.mjs +1 -1
- package/dist/{universal-client.static.DvXplm4V.mjs → universal-client.static.CAwmUYlo.mjs} +1 -1
- package/dist/{universal-client.static.CQXYGKmN.mjs → universal-client.static.gl5y6Om6.mjs} +1 -1
- package/package.json +2 -2
- package/dist/CobrowseIO.static.CUKXN9zU.mjs +0 -1
- /package/dist/{universal-client.static.Cl5FjAGj.mjs → universal-client.static.C7_tBjco.mjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,i={};function o(){if(r)return n;r=1;var t=function(e){return e&&e.Math===Math&&e};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var s,a,c,l,u,d,h,f,p={};function g(){return a?s:(a=1,s=function(e){try{return!!e()}catch(e){return!0}})}function m(){if(l)return c;l=1;var e=g();return c=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function _(){if(d)return u;d=1;var e=g();return u=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function v(){if(f)return h;f=1;var e=_(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var E,w,y,I,L,C,A,S,b,N,T,k,O,R,P,D,M,x,G,U,V,W,F,j,B,z,H,q,Q,$,Y,J,K,X,Z,ee,te,ne,re,ie,oe,se={};function ae(){if(E)return se;E=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return se.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,se}function ce(){return y?w:(y=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function le(){if(L)return I;L=1;var e=_(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return I=e?r:function(e){return function(){return n.apply(e,arguments)}},I}function ue(){if(A)return C;A=1;var e=le(),t=e({}.toString),n=e("".slice);return C=function(e){return n(t(e),8,-1)}}function de(){if(b)return S;b=1;var e=le(),t=g(),n=ue(),r=Object,i=e("".split);return S=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function he(){return T||(T=1,N=function(e){return null==e}),N}function fe(){if(O)return k;O=1;var e=he(),t=TypeError;return k=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function pe(){if(P)return R;P=1;var e=de(),t=fe();return R=function(n){return e(t(n))}}function ge(){if(M)return D;M=1;var e="object"==typeof document&&document.all;return D=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function me(){if(G)return x;G=1;var e=ge();return x=function(t){return"object"==typeof t?null!==t:e(t)}}function _e(){if(V)return U;V=1;var e=o(),t=ge();return U=function(n,r){return arguments.length<2?(i=e[n],t(i)?i:void 0):e[n]&&e[n][r];var i},U}function ve(){if(F)return W;F=1;var e=le();return W=e({}.isPrototypeOf)}function Ee(){if(B)return j;B=1;var e=o().navigator,t=e&&e.userAgent;return j=t?String(t):""}function we(){if(H)return z;H=1;var e,t,n=o(),r=Ee(),i=n.process,s=n.Deno,a=i&&i.versions||s&&s.version,c=a&&a.v8;return c&&(t=(e=c.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),z=t}function ye(){if(Q)return q;Q=1;var e=we(),t=g(),n=o().String;return q=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),q}function Ie(){if(Y)return $;Y=1;var e=ye();return $=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Le(){if(K)return J;K=1;var e=_e(),t=ge(),n=ve(),r=Ie(),i=Object;return J=r?function(e){return"symbol"==typeof e}:function(r){var o=e("Symbol");return t(o)&&n(o.prototype,i(r))}}function Ce(){if(Z)return X;Z=1;var e=String;return X=function(t){try{return e(t)}catch(e){return"Object"}}}function Ae(){if(te)return ee;te=1;var e=ge(),t=Ce(),n=TypeError;return ee=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Se(){if(re)return ne;re=1;var e=Ae(),t=he();return ne=function(n,r){var i=n[r];return t(i)?void 0:e(i)},ne}function be(){if(oe)return ie;oe=1;var e=v(),t=ge(),n=me(),r=TypeError;return ie=function(i,o){var s,a;if("string"===o&&t(s=i.toString)&&!n(a=e(s,i)))return a;if(t(s=i.valueOf)&&!n(a=e(s,i)))return a;if("string"!==o&&t(s=i.toString)&&!n(a=e(s,i)))return a;throw new r("Can't convert object to primitive value")}}var Ne,Te,ke,Oe,Re,Pe,De,Me,xe,Ge,Ue,Ve,We,Fe,je,Be,ze,He,qe,Qe,$e,Ye,Je,Ke,Xe={exports:{}};function Ze(){return Te?Ne:(Te=1,Ne=!1)}function et(){if(Oe)return ke;Oe=1;var e=o(),t=Object.defineProperty;return ke=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function tt(){if(Re)return Xe.exports;Re=1;var e=Ze(),t=o(),n=et(),r="__core-js_shared__",i=Xe.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xe.exports}function nt(){if(De)return Pe;De=1;var e=tt();return Pe=function(t,n){return e[t]||(e[t]=n||{})}}function rt(){if(xe)return Me;xe=1;var e=fe(),t=Object;return Me=function(n){return t(e(n))}}function it(){if(Ue)return Ge;Ue=1;var e=le(),t=rt(),n=e({}.hasOwnProperty);return Ge=Object.hasOwn||function(e,r){return n(t(e),r)}}function ot(){if(We)return Ve;We=1;var e=le(),t=0,n=Math.random(),r=e(1.1.toString);return Ve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function st(){if(je)return Fe;je=1;var e=o(),t=nt(),n=it(),r=ot(),i=ye(),s=Ie(),a=e.Symbol,c=t("wks"),l=s?a.for||a:a&&a.withoutSetter||r;return Fe=function(e){return n(c,e)||(c[e]=i&&n(a,e)?a[e]:l("Symbol."+e)),c[e]}}function at(){if(ze)return Be;ze=1;var e=v(),t=me(),n=Le(),r=Se(),i=be(),o=st(),s=TypeError,a=o("toPrimitive");return Be=function(o,c){if(!t(o)||n(o))return o;var l,u=r(o,a);if(u){if(void 0===c&&(c="default"),l=e(u,o,c),!t(l)||n(l))return l;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function ct(){if(qe)return He;qe=1;var e=at(),t=Le();return He=function(n){var r=e(n,"string");return t(r)?r:r+""}}function lt(){if($e)return Qe;$e=1;var e=o(),t=me(),n=e.document,r=t(n)&&t(n.createElement);return Qe=function(e){return r?n.createElement(e):{}}}function ut(){if(Je)return Ye;Je=1;var e=m(),t=g(),n=lt();return Ye=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function dt(){if(Ke)return p;Ke=1;var e=m(),t=v(),n=ae(),r=ce(),i=pe(),o=ct(),s=it(),a=ut(),c=Object.getOwnPropertyDescriptor;return p.f=e?c:function(e,l){if(e=i(e),l=o(l),a)try{return c(e,l)}catch(e){}if(s(e,l))return r(!t(n.f,e,l),e[l])},p}var ht,ft,pt,gt,mt,_t,vt,Et={};function wt(){if(ft)return ht;ft=1;var e=m(),t=g();return ht=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function yt(){if(gt)return pt;gt=1;var e=me(),t=String,n=TypeError;return pt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function It(){if(mt)return Et;mt=1;var e=m(),t=ut(),n=wt(),r=yt(),i=ct(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return Et.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var o=a(e,t);o&&o[u]&&(e[t]=n.value,n={configurable:l in n?n[l]:o[l],enumerable:c in n?n[c]:o[c],writable:!1})}return s(e,t,n)}:s:function(e,n,a){if(r(e),n=i(n),r(a),t)try{return s(e,n,a)}catch(e){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(e[n]=a.value),e},Et}function Lt(){if(vt)return _t;vt=1;var e=m(),t=It(),n=ce();return _t=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var Ct,At,St,bt,Nt,Tt,kt,Ot,Rt,Pt,Dt,Mt,xt,Gt,Ut,Vt={exports:{}};function Wt(){if(At)return Ct;At=1;var e=m(),t=it(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!e||e&&r(n,"name").configurable);return Ct={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Ft(){if(bt)return St;bt=1;var e=le(),t=ge(),n=tt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),St=n.inspectSource}function jt(){if(Ot)return kt;Ot=1;var e=nt(),t=ot(),n=e("keys");return kt=function(e){return n[e]||(n[e]=t(e))}}function Bt(){return Pt?Rt:(Pt=1,Rt={})}function zt(){if(Mt)return Dt;Mt=1;var e,t,n,r=function(){if(Tt)return Nt;Tt=1;var e=o(),t=ge(),n=e.WeakMap;return Nt=t(n)&&/native code/.test(String(n))}(),i=o(),s=me(),a=Lt(),c=it(),l=tt(),u=jt(),d=Bt(),h="Object already initialized",f=i.TypeError,p=i.WeakMap;if(r||l.state){var g=l.state||(l.state=new p);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(h);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=u("state");d[m]=!0,e=function(e,t){if(c(e,m))throw new f(h);return t.facade=e,a(e,m,t),t},t=function(e){return c(e,m)?e[m]:{}},n=function(e){return c(e,m)}}return Dt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!s(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}}function Ht(){if(xt)return Vt.exports;xt=1;var e=le(),t=g(),n=ge(),r=it(),i=m(),o=Wt().CONFIGURABLE,s=Ft(),a=zt(),c=a.enforce,l=a.get,u=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),p=e([].join),_=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),E=Vt.exports=function(e,t,n){"Symbol("===h(u(t),0,7)&&(t="["+f(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&r(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return r(s,"source")||(s.source=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=E(function(){return n(this)&&l(this).source||s(this)},"toString"),Vt.exports}function qt(){if(Ut)return Gt;Ut=1;var e=ge(),t=It(),n=Ht(),r=et();return Gt=function(i,o,s,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:o;if(e(s)&&n(s,l,a),a.global)c?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(c=!0):delete i[o]}catch(e){}c?i[o]=s:t.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},Gt}var Qt,$t,Yt,Jt,Kt,Xt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,un,dn={};function hn(){if(Jt)return Yt;Jt=1;var e=function(){if($t)return Qt;$t=1;var e=Math.ceil,t=Math.floor;return Qt=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Qt}();return Yt=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function fn(){if(Xt)return Kt;Xt=1;var e=hn(),t=Math.max,n=Math.min;return Kt=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}function pn(){if(en)return Zt;en=1;var e=hn(),t=Math.min;return Zt=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function gn(){if(nn)return tn;nn=1;var e=pn();return tn=function(t){return e(t.length)}}function mn(){if(an)return sn;an=1;var e=le(),t=it(),n=pe(),r=function(){if(on)return rn;on=1;var e=pe(),t=fn(),n=gn(),r=function(r){return function(i,o,s){var a=e(i),c=n(a);if(0===c)return!r&&-1;var l,u=t(s,c);if(r&&o!=o){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((r||u in a)&&a[u]===o)return r||u||0;return!r&&-1}};return rn={includes:r(!0),indexOf:r(!1)}}().indexOf,i=Bt(),o=e([].push);return sn=function(e,s){var a,c=n(e),l=0,u=[];for(a in c)!t(i,a)&&t(c,a)&&o(u,a);for(;s.length>l;)t(c,a=s[l++])&&(~r(u,a)||o(u,a));return u},sn}function _n(){return ln?cn:(ln=1,cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function vn(){if(un)return dn;un=1;var e=mn(),t=_n().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},dn}var En,wn,yn,In,Ln,Cn,An,Sn,bn,Nn,Tn,kn,On,Rn,Pn,Dn,Mn,xn,Gn,Un={};function Vn(){return En||(En=1,Un.f=Object.getOwnPropertySymbols),Un}function Wn(){if(Ln)return In;Ln=1;var e=it(),t=function(){if(yn)return wn;yn=1;var e=_e(),t=le(),n=vn(),r=Vn(),i=yt(),o=t([].concat);return wn=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),s=r.f;return s?o(t,s(e)):t}}(),n=dt(),r=It();return In=function(i,o,s){for(var a=t(o),c=r.f,l=n.f,u=0;u<a.length;u++){var d=a[u];e(i,d)||s&&e(s,d)||c(i,d,l(o,d))}},In}function Fn(){if(An)return Cn;An=1;var e=g(),t=ge(),n=/#|\.prototype\./,r=function(n,r){var c=o[i(n)];return c===a||c!==s&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return Cn=r}function jn(){if(bn)return Sn;bn=1;var e=o(),t=dt().f,n=Lt(),r=qt(),i=et(),s=Wn(),a=Fn();return Sn=function(o,c){var l,u,d,h,f,p=o.target,g=o.global,m=o.stat;if(l=g?e:m?e[p]||i(p,{}):e[p]&&e[p].prototype)for(u in c){if(h=c[u],d=o.dontCallGetSet?(f=t(l,u))&&f.value:l[u],!a(g?u:p+(m?".":"#")+u,o.forced)&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(o.sham||d&&d.sham)&&n(h,"sham",!0),r(l,u,h,o)}}}function Bn(){if(On)return kn;On=1;var e=function(){if(Tn)return Nn;Tn=1;var e={};return e[st()("toStringTag")]="z",Nn="[object z]"===String(e)}(),t=ge(),n=ue(),r=st()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return kn=e?n:function(e){var s,a,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(s=i(e),r))?a:o?n(s):"Object"===(c=n(s))&&t(s.callee)?"Arguments":c},kn}function zn(){if(Pn)return Rn;Pn=1;var e=Bn(),t=String;return Rn=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Hn(){if(Mn)return Dn;Mn=1;var e=yt();return Dn=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function qn(){if(Gn)return xn;Gn=1;var e=g(),t=o().RegExp,n=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),r=n||e(function(){return!t("a","y").sticky}),i=n||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return xn={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}var Qn,$n,Yn,Jn,Kn,Xn,Zn,er,tr,nr,rr,ir,or,sr,ar={};function cr(){if($n)return Qn;$n=1;var e=mn(),t=_n();return Qn=Object.keys||function(n){return e(n,t)},Qn}function lr(){if(Kn)return Jn;Kn=1;var e=_e();return Jn=e("document","documentElement")}function ur(){if(Zn)return Xn;Zn=1;var e,t=yt(),n=function(){if(Yn)return ar;Yn=1;var e=m(),t=wt(),n=It(),r=yt(),i=pe(),o=cr();return ar.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var s,a=i(t),c=o(t),l=c.length,u=0;l>u;)n.f(e,s=c[u++],a[s]);return e},ar}(),r=_n(),i=Bt(),o=lr(),s=lt(),a=jt(),c="prototype",l="script",u=a("IE_PROTO"),d=function(){},h=function(e){return"<"+l+">"+e+"</"+l+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}p="undefined"!=typeof document?document.domain&&e?f(e):function(){var e,t=s("iframe"),n="java"+l+":";return t.style.display="none",o.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F}():f(e);for(var t=r.length;t--;)delete p[c][r[t]];return p()};return i[u]=!0,Xn=Object.create||function(e,r){var i;return null!==e?(d[c]=t(e),i=new d,d[c]=null,i[u]=e):i=p(),void 0===r?i:n.f(i,r)},Xn}function dr(){if(tr)return er;tr=1;var e=g(),t=o().RegExp;return er=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}function hr(){if(rr)return nr;rr=1;var e=g(),t=o().RegExp;return nr=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}function fr(){if(or)return ir;or=1;var e,t,n=v(),r=le(),i=zn(),o=Hn(),s=qn(),a=nt(),c=ur(),l=zt().get,u=dr(),d=hr(),h=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,p=f,g=r("".charAt),m=r("".indexOf),_=r("".replace),E=r("".slice),w=(t=/b*/g,n(f,e=/a/,"a"),n(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex),y=s.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];return(w||I||y||u||d)&&(p=function(e){var t,r,s,a,u,d,v,L=this,C=l(L),A=i(e),S=C.raw;if(S)return S.lastIndex=L.lastIndex,t=n(p,S,A),L.lastIndex=S.lastIndex,t;var b=C.groups,N=y&&L.sticky,T=n(o,L),k=L.source,O=0,R=A;if(N&&(T=_(T,"y",""),-1===m(T,"g")&&(T+="g"),R=E(A,L.lastIndex),L.lastIndex>0&&(!L.multiline||L.multiline&&"\n"!==g(A,L.lastIndex-1))&&(k="(?: "+k+")",R=" "+R,O++),r=new RegExp("^(?:"+k+")",T)),I&&(r=new RegExp("^"+k+"$(?!\\s)",T)),w&&(s=L.lastIndex),a=n(f,N?r:L,R),N?a?(a.input=E(a.input,O),a[0]=E(a[0],O),a.index=L.lastIndex,L.lastIndex+=a[0].length):L.lastIndex=0:w&&a&&(L.lastIndex=L.global?a.index+a[0].length:s),I&&a&&a.length>1&&n(h,a[0],r,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a&&b)for(a.groups=d=c(null),u=0;u<b.length;u++)d[(v=b[u])[0]]=a[v[1]];return a}),ir=p}function pr(){if(sr)return i;sr=1;var e=jn(),t=fr();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),i}pr();var gr,mr,_r,vr,Er,wr,yr,Ir,Lr,Cr,Ar,Sr,br,Nr,Tr,kr,Or,Rr,Pr,Dr,Mr,xr,Gr,Ur,Vr,Wr,Fr,jr,Br,zr,Hr,qr,Qr,$r={};function Yr(){if(wr)return Er;wr=1;var e=st(),t=ur(),n=It().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),Er=function(e){i[r][e]=!0}}function Jr(){return Ir?yr:(Ir=1,yr={})}function Kr(){if(Sr)return Ar;Sr=1;var e=it(),t=ge(),n=rt(),r=jt(),i=function(){if(Cr)return Lr;Cr=1;var e=g();return Lr=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=r("IE_PROTO"),s=Object,a=s.prototype;return Ar=i?s.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof s?a:null},Ar}function Xr(){if(Nr)return br;Nr=1;var e,t,n,r=g(),i=ge(),o=me(),s=ur(),a=Kr(),c=qt(),l=st(),u=Ze(),d=l("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=a(a(n)))!==Object.prototype&&(e=t):h=!0),!o(e)||r(function(){var t={};return e[d].call(t)!==t})?e={}:u&&(e=s(e)),i(e[d])||c(e,d,function(){return this}),br={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Zr(){if(kr)return Tr;kr=1;var e=It().f,t=it(),n=st()("toStringTag");return Tr=function(r,i,o){r&&!o&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})}}function ei(){if(Rr)return Or;Rr=1;var e=Xr().IteratorPrototype,t=ur(),n=ce(),r=Zr(),i=Jr(),o=function(){return this};return Or=function(s,a,c,l){var u=a+" Iterator";return s.prototype=t(e,{next:n(+!l,c)}),r(s,u,!1,!0),i[u]=o,s}}function ti(){if(Dr)return Pr;Dr=1;var e=le(),t=Ae();return Pr=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function ni(){if(xr)return Mr;xr=1;var e=me();return Mr=function(t){return e(t)||null===t}}function ri(){if(Ur)return Gr;Ur=1;var e=ni(),t=String,n=TypeError;return Gr=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function ii(){if(Wr)return Vr;Wr=1;var e=ti(),t=me(),n=fe(),r=ri();return Vr=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(e){}return function(e,s){return n(e),r(s),t(e)?(o?i(e,s):e.__proto__=s,e):e}}():void 0),Vr}function oi(){if(jr)return Fr;jr=1;var e=jn(),t=v(),n=Ze(),r=Wt(),i=ge(),o=ei(),s=Kr(),a=ii(),c=Zr(),l=Lt(),u=qt(),d=st(),h=Jr(),f=Xr(),p=r.PROPER,g=r.CONFIGURABLE,m=f.IteratorPrototype,_=f.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",y="values",I="entries",L=function(){return this};return Fr=function(r,d,f,v,C,A,S){o(f,d,v);var b,N,T,k=function(e){if(e===C&&M)return M;if(!_&&e&&e in P)return P[e];switch(e){case w:case y:case I:return function(){return new f(this,e)}}return function(){return new f(this)}},O=d+" Iterator",R=!1,P=r.prototype,D=P[E]||P["@@iterator"]||C&&P[C],M=!_&&D||k(C),x="Array"===d&&P.entries||D;if(x&&(b=s(x.call(new r)))!==Object.prototype&&b.next&&(n||s(b)===m||(a?a(b,m):i(b[E])||u(b,E,L)),c(b,O,!0,!0),n&&(h[O]=L)),p&&C===y&&D&&D.name!==y&&(!n&&g?l(P,"name",y):(R=!0,M=function(){return t(D,this)})),C)if(N={values:k(y),keys:A?M:k(w),entries:k(I)},S)for(T in N)(_||R||!(T in P))&&u(P,T,N[T]);else e({target:d,proto:!0,forced:_||R},N);return n&&!S||P[E]===M||u(P,E,M,{name:C}),h[d]=M,N}}function si(){return zr?Br:(zr=1,Br=function(e,t){return{value:e,done:t}})}function ai(){if(qr)return Hr;qr=1;var e=pe(),t=Yr(),n=Jr(),r=zt(),i=It().f,o=oi(),s=si(),a=Ze(),c=m(),l="Array Iterator",u=r.set,d=r.getterFor(l);Hr=o(Array,"Array",function(t,n){u(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)},"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&c&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Hr}!function(){if(Qr)return $r;Qr=1;var e=o(),t=mr?gr:(mr=1,gr={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}),n=function(){if(vr)return _r;vr=1;var e=lt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return _r=t===Object.prototype?void 0:t}(),r=ai(),i=Lt(),s=Zr(),a=st()("iterator"),c=r.values,l=function(e,n){if(e){if(e[a]!==c)try{i(e,a,c)}catch(t){e[a]=c}if(s(e,n,!0),t[n])for(var o in r)if(e[o]!==r[o])try{i(e,o,r[o])}catch(t){e[o]=r[o]}}};for(var u in t)l(e[u]&&e[u].prototype,u);l(n,"DOMTokenList")}();var ci,li,ui,di,hi,fi,pi,gi,mi,_i,vi,Ei,wi,yi,Ii,Li,Ci,Ai,Si,bi,Ni,Ti,ki,Oi,Ri,Pi,Di,Mi,xi,Gi,Ui,Vi,Wi,Fi,ji,Bi,zi,Hi={},qi={};function Qi(){if(li)return ci;li=1;var e=le(),t=hn(),n=zn(),r=fe(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),a=function(e){return function(a,c){var l,u,d=n(r(a)),h=t(c),f=d.length;return h<0||h>=f?e?"":void 0:(l=o(d,h))<55296||l>56319||h+1===f||(u=o(d,h+1))<56320||u>57343?e?i(d,h):l:e?s(d,h,h+2):u-56320+(l-55296<<10)+65536}};return ci={codeAt:a(!1),charAt:a(!0)}}function $i(){if(hi)return di;hi=1;var e=g(),t=st(),n=m(),r=Ze(),i=t("iterator");return di=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),s="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),s+=n+e}),o.delete("a",2),o.delete("b",void 0),r&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(r||!n)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host})}function Yi(){if(pi)return fi;pi=1;var e=ue(),t=le();return fi=function(n){if("Function"===e(n))return t(n)}}function Ji(){if(mi)return gi;mi=1;var e=Yi(),t=Ae(),n=_(),r=e(e.bind);return gi=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},gi}function Ki(){if(vi)return _i;vi=1;var e=Ht(),t=It();return _i=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)}}function Xi(){if(wi)return Ei;wi=1;var e=ve(),t=TypeError;return Ei=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function Zi(){if(Ci)return Li;Ci=1;var e=v(),t=yt(),n=Se();return Li=function(r,i,o){var s,a;t(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=e(s,r)}catch(e){a=!0,s=e}if("throw"===i)throw o;if(a)throw s;return t(s),o}}function eo(){if(Si)return Ai;Si=1;var e=yt(),t=Zi();return Ai=function(n,r,i,o){try{return o?r(e(i)[0],i[1]):r(i)}catch(e){t(n,"throw",e)}}}function to(){if(Ni)return bi;Ni=1;var e=st(),t=Jr(),n=e("iterator"),r=Array.prototype;return bi=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function no(){if(ki)return Ti;ki=1;var e=le(),t=g(),n=ge(),r=Bn(),i=_e(),o=Ft(),s=function(){},a=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),u=!c.test(s),d=function(e){if(!n(e))return!1;try{return a(s,[],e),!0}catch(e){return!1}},h=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(c,o(e))}catch(e){return!0}};return h.sham=!0,Ti=!a||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function ro(){if(Ri)return Oi;Ri=1;var e=m(),t=It(),n=ce();return Oi=function(r,i,o){e?t.f(r,i,n(0,o)):r[i]=o}}function io(){if(Di)return Pi;Di=1;var e=Bn(),t=Se(),n=he(),r=Jr(),i=st()("iterator");return Pi=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function oo(){if(xi)return Mi;xi=1;var e=v(),t=Ae(),n=yt(),r=Ce(),i=io(),o=TypeError;return Mi=function(s,a){var c=arguments.length<2?i(s):a;if(t(c))return n(e(c,s));throw new o(r(s)+" is not iterable")},Mi}function so(){if(Ui)return Gi;Ui=1;var e=Ji(),t=v(),n=rt(),r=eo(),i=to(),o=no(),s=gn(),a=ro(),c=oo(),l=io(),u=Array;return Gi=function(d){var h=n(d),f=o(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=e(g,p>2?arguments[2]:void 0));var _,v,E,w,y,I,L=l(h),C=0;if(!L||this===u&&i(L))for(_=s(h),v=f?new this(_):u(_);_>C;C++)I=m?g(h[C],C):h[C],a(v,C,I);else for(v=f?new this:[],y=(w=c(h,L)).next;!(E=t(y,w)).done;C++)I=m?r(w,g,[E.value,C],!0):E.value,a(v,C,I);return v.length=C,v},Gi}function ao(){if(Wi)return Vi;Wi=1;var e=le();return Vi=e([].slice)}function co(){if(zi)return Bi;zi=1;var e=TypeError;return Bi=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}var lo,uo,ho,fo,po,go,mo,_o,vo,Eo,wo,yo={};function Io(){if(ho)return uo;ho=1;var e=o(),t=m(),n=Object.getOwnPropertyDescriptor;return uo=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function Lo(){if(po)return fo;po=1;var e=qt();return fo=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}}function Co(){if(mo)return go;mo=1;var e=ao(),t=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var s,a,c=1;c<o;){for(a=c,s=r[c];a&&i(r[a-1],s)>0;)r[a]=r[--a];a!==c++&&(r[a]=s)}else for(var l=t(o/2),u=n(e(r,0,l),i),d=n(e(r,l),i),h=u.length,f=d.length,p=0,g=0;p<h||g<f;)r[p+g]=p<h&&g<f?i(u[p],d[g])<=0?u[p++]:d[g++]:p<h?u[p++]:d[g++];return r};return go=n}function Ao(){if(vo)return _o;vo=1,ai(),function(){if(lo)return yo;lo=1;var e=jn(),t=le(),n=fn(),r=RangeError,i=String.fromCharCode,o=String.fromCodePoint,s=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],a=arguments.length,c=0;a>c;){if(t=+arguments[c++],n(t,1114111)!==t)throw new r(t+" is not a valid code point");o[c]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return s(o,"")}})}();var e=jn(),t=o(),n=Io(),r=_e(),i=v(),s=le(),a=m(),c=$i(),l=qt(),u=Ki(),d=Lo(),h=Zr(),f=ei(),p=zt(),g=Xi(),_=ge(),E=it(),w=Ji(),y=Bn(),I=yt(),L=me(),C=zn(),A=ur(),S=ce(),b=oo(),N=io(),T=si(),k=co(),O=st(),R=Co(),P=O("iterator"),D="URLSearchParams",M=D+"Iterator",x=p.set,G=p.getterFor(D),U=p.getterFor(M),V=n("fetch"),W=n("Request"),F=n("Headers"),j=W&&W.prototype,B=F&&F.prototype,z=t.TypeError,H=t.encodeURIComponent,q=String.fromCharCode,Q=r("String","fromCodePoint"),$=parseInt,Y=s("".charAt),J=s([].join),K=s([].push),X=s("".replace),Z=s([].shift),ee=s([].splice),te=s("".split),ne=s("".slice),re=s(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,se=function(e,t){var n=ne(e,t,t+2);return re(oe,n)?$(n,16):NaN},ae=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ue=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},de=function(e){for(var t=(e=X(e,ie," ")).length,n="",r=0;r<t;){var i=Y(e,r);if("%"===i){if("%"===Y(e,r+1)||r+3>t){n+="%",r++;continue}var o=se(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var s=ae(o);if(0===s)i=q(o);else{if(1===s||s>4){n+="�",r++;continue}for(var a=[o],c=1;c<s&&!(3+ ++r>t||"%"!==Y(e,r));){var l=se(e,r+1);if(l!=l){r+=3;break}if(l>191||l<128)break;K(a,l),r+=2,c++}if(a.length!==s){n+="�";continue}var u=ue(a);null===u?n+="�":i=Q(u)}}n+=i,r++}return n},he=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pe=function(e){return fe[e]},ve=function(e){return X(H(e),he,pe)},Ee=f(function(e,t){x(this,{type:M,target:G(e).entries,index:0,kind:t})},D,function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)},!0),we=function(e){this.entries=[],this.url=null,void 0!==e&&(L(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?ne(e,1):e:C(e)))};we.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,s,a,c,l=this.entries,u=N(e);if(u)for(n=(t=b(e,u)).next;!(r=i(n,t)).done;){if(s=(o=b(I(r.value))).next,(a=i(s,o)).done||(c=i(s,o)).done||!i(s,o).done)throw new z("Expected sequence with length 2");K(l,{key:C(a.value),value:C(c.value)})}else for(var d in e)E(e,d)&&K(l,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=te(t,"="),K(r,{key:de(Z(n)),value:de(J(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,ve(e.key)+"="+ve(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ye=function(){g(this,Ie);var e=x(this,new we(arguments.length>0?arguments[0]:void 0));a||(this.size=e.entries.length)},Ie=ye.prototype;if(d(Ie,{append:function(e,t){var n=G(this);k(arguments.length,2),K(n.entries,{key:C(e),value:C(t)}),a||this.size++,n.updateURL()},delete:function(e){for(var t=G(this),n=k(arguments.length,1),r=t.entries,i=C(e),o=n<2?void 0:arguments[1],s=void 0===o?o:C(o),c=0;c<r.length;){var l=r[c];if(l.key!==i||void 0!==s&&l.value!==s)c++;else if(ee(r,c,1),void 0!==s)break}a||(this.size=r.length),t.updateURL()},get:function(e){var t=G(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=G(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&K(r,t[i].value);return r},has:function(e){for(var t=G(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],o=void 0===i?i:C(i),s=0;s<t.length;){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=G(this);k(arguments.length,1);for(var r,i=n.entries,o=!1,s=C(e),c=C(t),l=0;l<i.length;l++)(r=i[l]).key===s&&(o?ee(i,l--,1):(o=!0,r.value=c));o||K(i,{key:s,value:c}),a||(this.size=i.length),n.updateURL()},sort:function(){var e=G(this);R(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=G(this).entries,r=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Ee(this,"keys")},values:function(){return new Ee(this,"values")},entries:function(){return new Ee(this,"entries")}},{enumerable:!0}),l(Ie,P,Ie.entries,{name:"entries"}),l(Ie,"toString",function(){return G(this).serialize()},{enumerable:!0}),a&&u(Ie,"size",{get:function(){return G(this).entries.length},configurable:!0,enumerable:!0}),h(ye,D),e({global:!0,constructor:!0,forced:!c},{URLSearchParams:ye}),!c&&_(F)){var Le=s(B.has),Ce=s(B.set),Ae=function(e){if(L(e)){var t,n=e.body;if(y(n)===D)return t=e.headers?new F(e.headers):new F,Le(t,"content-type")||Ce(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),A(e,{body:S(0,C(n)),headers:S(0,t)})}return e};if(_(V)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return V(e,arguments.length>1?Ae(arguments[1]):{})}}),_(W)){var Se=function(e){return g(this,j),new W(e,arguments.length>1?Ae(arguments[1]):{})};j.constructor=Se,Se.prototype=j,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Se})}}return _o={URLSearchParams:ye,getState:G}}wo||(wo=1,function(){if(Eo)return Hi;Eo=1,function(){if(ui)return qi;ui=1;var e=Qi().charAt,t=zn(),n=zt(),r=oi(),i=si(),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",function(e){s(this,{type:o,string:t(e),index:0})},function(){var t,n=a(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))})}();var e,t=jn(),n=m(),r=$i(),i=o(),s=Ji(),a=le(),c=qt(),l=Ki(),u=Xi(),d=it(),h=function(){if(Ii)return yi;Ii=1;var e=m(),t=le(),n=v(),r=g(),i=cr(),o=Vn(),s=ae(),a=rt(),c=de(),l=Object.assign,u=Object.defineProperty,d=t([].concat);return yi=!l||r(function(){if(e&&1!==l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!==l({},t)[r]||i(l({},n)).join("")!==o})?function(t,r){for(var l=a(t),u=arguments.length,h=1,f=o.f,p=s.f;u>h;)for(var g,m=c(arguments[h++]),_=f?d(i(m),f(m)):i(m),v=_.length,E=0;v>E;)g=_[E++],e&&!n(p,m,g)||(l[g]=m[g]);return l}:l,yi}(),f=so(),p=ao(),_=Qi().codeAt,E=function(){if(ji)return Fi;ji=1;var e=le(),t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,s=e(r.exec),a=Math.floor,c=String.fromCharCode,l=e("".charCodeAt),u=e([].join),d=e([].push),h=e("".replace),f=e("".split),p=e("".toLowerCase),g=function(e){return e+22+75*(e<26)},m=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;)e=a(e/35),r+=36;return a(r+36*e/(e+38))},_=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=l(e,n++);if(i>=55296&&i<=56319&&n<r){var o=l(e,n++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),n--)}else d(t,i)}return t}(e);var r,s,h=e.length,f=128,p=0,_=72;for(r=0;r<e.length;r++)(s=e[r])<128&&d(n,c(s));var v=n.length,E=v;for(v&&d(n,"-");E<h;){var w=t;for(r=0;r<e.length;r++)(s=e[r])>=f&&s<w&&(w=s);var y=E+1;if(w-f>a((t-p)/y))throw new o(i);for(p+=(w-f)*y,f=w,r=0;r<e.length;r++){if((s=e[r])<f&&++p>t)throw new o(i);if(s===f){for(var I=p,L=36;;){var C=L<=_?1:L>=_+26?26:L-_;if(I<C)break;var A=I-C,S=36-C;d(n,c(g(C+A%S))),I=a(A/S),L+=36}d(n,c(g(I))),_=m(p,y,E===v),p=0,E++}}p++,f++}return u(n,"")};return Fi=function(e){var t,i,o=[],a=f(h(p(e),r,"."),".");for(t=0;t<a.length;t++)i=a[t],d(o,s(n,i)?"xn--"+_(i):i);return u(o,".")},Fi}(),w=zn(),y=Zr(),I=co(),L=Ao(),C=zt(),A=C.set,S=C.getterFor("URL"),b=L.URLSearchParams,N=L.getState,T=i.URL,k=i.TypeError,O=i.parseInt,R=Math.floor,P=Math.pow,D=a("".charAt),M=a(/./.exec),x=a([].join),G=a(1.1.toString),U=a([].pop),V=a([].push),W=a("".replace),F=a([].shift),j=a("".split),B=a("".slice),z=a("".toLowerCase),H=a([].unshift),q="Invalid scheme",Q="Invalid host",$="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ce=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=R(e/256);return x(t,".")}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?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=G(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},he=h({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},he,{"#":1,"?":1,"{":1,"}":1}),pe=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ge=function(e,t){var n=_(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},_e=function(e,t){var n;return 2===e.length&&M(Y,D(e,0))&&(":"===(n=D(e,1))||!t&&"|"===n)},ve=function(e){var t;return e.length>1&&_e(B(e,0,2))&&(2===e.length||"/"===(t=D(e,2))||"\\"===t||"?"===t||"#"===t)},Ee=function(e){return"."===e||"%2e"===z(e)},we=function(e){return".."===(e=z(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},ye={},Ie={},Le={},Ce={},Ae={},Se={},be={},Ne={},Te={},ke={},Oe={},Re={},Pe={},De={},Me={},xe={},Ge={},Ue={},Ve={},We={},Fe={},je=function(e,t,n){var r,i,o,s=w(e);if(t){if(i=this.parse(s))throw new k(i);this.searchParams=null}else{if(void 0!==n&&(r=new je(n,!0)),i=this.parse(s,null,r))throw new k(i);(o=N(new b)).bindURL(this),this.searchParams=o}};je.prototype={type:"URL",parse:function(t,n,r){var i,o,s,a,c=this,l=n||ye,u=0,h="",g=!1,m=!1,_=!1;for(t=w(t),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=W(t,ie,""),t=W(t,oe,"$1")),t=W(t,se,""),i=f(t);u<=i.length;){switch(o=i[u],l){case ye:if(!o||!M(Y,o)){if(n)return q;l=Le;continue}h+=z(o),l=Ie;break;case Ie:if(o&&(M(J,o)||"+"===o||"-"===o||"."===o))h+=z(o);else{if(":"!==o){if(n)return q;h="",l=Le,u=0;continue}if(n&&(c.isSpecial()!==d(me,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,n)return void(c.isSpecial()&&me[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=De:c.isSpecial()&&r&&r.scheme===c.scheme?l=Ce:c.isSpecial()?l=Ne:"/"===i[u+1]?(l=Ae,u++):(c.cannotBeABaseURL=!0,V(c.path,""),l=Ve)}break;case Le:if(!r||r.cannotBeABaseURL&&"#"!==o)return q;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=p(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Fe;break}l="file"===r.scheme?De:Se;continue;case Ce:if("/"!==o||"/"!==i[u+1]){l=Se;continue}l=Te,u++;break;case Ae:if("/"===o){l=ke;break}l=Ue;continue;case Se:if(c.scheme=r.scheme,o===e)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())l=be;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query="",l=We;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.path.length--,l=Ue;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query,c.fragment="",l=Fe}break;case be:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Ue;continue}l=ke}else l=Te;break;case Ne:if(l=Te,"/"!==o||"/"!==D(h,u+1))continue;u++;break;case Te:if("/"!==o&&"\\"!==o){l=ke;continue}break;case ke:if("@"===o){g&&(h="%40"+h),g=!0,s=f(h);for(var v=0;v<s.length;v++){var E=s[v];if(":"!==E||_){var y=ge(E,pe);_?c.password+=y:c.username+=y}else _=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(g&&""===h)return"Invalid authority";u-=f(h).length+1,h="",l=Oe}else h+=o;break;case Oe:case Re:if(n&&"file"===c.scheme){l=xe;continue}if(":"!==o||m){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===h)return Q;if(n&&""===h&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(h))return a;if(h="",l=Ge,n)return;continue}"["===o?m=!0:"]"===o&&(m=!1),h+=o}else{if(""===h)return Q;if(a=c.parseHost(h))return a;if(h="",l=Pe,n===Re)return}break;case Pe:if(!M(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||n){if(""!==h){var I=O(h,10);if(I>65535)return $;c.port=c.isSpecial()&&I===me[c.scheme]?null:I,h=""}if(n)return;l=Ge;continue}return $}h+=o;break;case De:if(c.scheme="file","/"===o||"\\"===o)l=Me;else{if(!r||"file"!==r.scheme){l=Ue;continue}switch(o){case e:c.host=r.host,c.path=p(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=p(r.path),c.query="",l=We;break;case"#":c.host=r.host,c.path=p(r.path),c.query=r.query,c.fragment="",l=Fe;break;default:ve(x(p(i,u),""))||(c.host=r.host,c.path=p(r.path),c.shortenPath()),l=Ue;continue}}break;case Me:if("/"===o||"\\"===o){l=xe;break}r&&"file"===r.scheme&&!ve(x(p(i,u),""))&&(_e(r.path[0],!0)?V(c.path,r.path[0]):c.host=r.host),l=Ue;continue;case xe:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!n&&_e(h))l=Ue;else if(""===h){if(c.host="",n)return;l=Ge}else{if(a=c.parseHost(h))return a;if("localhost"===c.host&&(c.host=""),n)return;h="",l=Ge}continue}h+=o;break;case Ge:if(c.isSpecial()){if(l=Ue,"/"!==o&&"\\"!==o)continue}else if(n||"?"!==o)if(n||"#"!==o){if(o!==e&&(l=Ue,"/"!==o))continue}else c.fragment="",l=Fe;else c.query="",l=We;break;case Ue:if(o===e||"/"===o||"\\"===o&&c.isSpecial()||!n&&("?"===o||"#"===o)){if(we(h)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||V(c.path,"")):Ee(h)?"/"===o||"\\"===o&&c.isSpecial()||V(c.path,""):("file"===c.scheme&&!c.path.length&&_e(h)&&(c.host&&(c.host=""),h=D(h,0)+":"),V(c.path,h)),h="","file"===c.scheme&&(o===e||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)F(c.path);"?"===o?(c.query="",l=We):"#"===o&&(c.fragment="",l=Fe)}else h+=ge(o,fe);break;case Ve:"?"===o?(c.query="",l=We):"#"===o?(c.fragment="",l=Fe):o!==e&&(c.path[0]+=ge(o,ue));break;case We:n||"#"!==o?o!==e&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ge(o,ue)):(c.fragment="",l=Fe);break;case Fe:o!==e&&(c.fragment+=ge(o,he))}u++}},parseHost:function(e){var t,n,r;if("["===D(e,0)){if("]"!==D(e,e.length-1))return Q;if(t=function(e){var t,n,r,i,o,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,h=function(){return D(e,d)};if(":"===h()){if(":"!==D(e,1))return;d+=2,u=++l}for(;h();){if(8===l)return;if(":"!==h()){for(t=n=0;n<4&&M(te,h());)t=16*t+O(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!M(K,h()))return;for(;M(K,h());){if(o=O(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[l]=256*c[l]+i,2!==++r&&4!==r||l++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(s=l-u,l=7;0!==l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!==l)return;return c}(B(e,1,-1)),!t)return Q;this.host=t}else if(this.isSpecial()){if(e=E(e),M(ne,e))return Q;if(t=function(e){var t,n,r,i,o,s,a,c=j(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(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"===D(i,0)&&(o=M(X,i)?16:8,i=B(i,8===o?1:2)),""===i)s=0;else{if(!M(10===o?ee:8===o?Z:te,i))return e;s=O(i,o)}V(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=U(n),r=0;r<n.length;r++)a+=n[r]*P(256,3-r);return a}(e),null===t)return Q;this.host=t}else{if(M(re,e))return Q;for(t="",n=f(e),r=0;r<n.length;r++)t+=ge(n[r],ue);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&_e(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ce(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+x(s,"/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new k(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Be(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ce(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ge(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ge(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ce(e):ce(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?"":ce(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=w(e))?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ge))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=w(e))?this.query=null:("?"===D(e,0)&&(e=B(e,1)),this.query="",this.parse(e,We)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=w(e))?("#"===D(e,0)&&(e=B(e,1)),this.fragment="",this.parse(e,Fe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Be=function(e){var t=u(this,ze),r=I(arguments.length,1)>1?arguments[1]:void 0,i=A(t,new je(e,!1,r));n||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},ze=Be.prototype,He=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(n&&(l(ze,"href",He("serialize","setHref")),l(ze,"origin",He("getOrigin")),l(ze,"protocol",He("getProtocol","setProtocol")),l(ze,"username",He("getUsername","setUsername")),l(ze,"password",He("getPassword","setPassword")),l(ze,"host",He("getHost","setHost")),l(ze,"hostname",He("getHostname","setHostname")),l(ze,"port",He("getPort","setPort")),l(ze,"pathname",He("getPathname","setPathname")),l(ze,"search",He("getSearch","setSearch")),l(ze,"searchParams",He("getSearchParams")),l(ze,"hash",He("getHash","setHash"))),c(ze,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),c(ze,"toString",function(){return S(this).serialize()},{enumerable:!0}),T){var qe=T.createObjectURL,Qe=T.revokeObjectURL;qe&&c(Be,"createObjectURL",s(qe,T)),Qe&&c(Be,"revokeObjectURL",s(Qe,T))}y(Be,"URL"),t({global:!0,constructor:!0,forced:!r,sham:!n},{URL:Be})}());var So,bo,No={};!function(){if(So)return No;So=1;var e=jn(),t=v();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),bo||(bo=1,Ao());var To,ko={};!function(){if(To)return ko;To=1;var e=qt(),t=le(),n=zn(),r=co(),i=URLSearchParams,o=i.prototype,s=t(o.append),a=t(o.delete),c=t(o.forEach),l=t([].push),u=new i("a=1&a=2&b=3");u.delete("a",1),u.delete("b",void 0),u+""!="a=2"&&e(o,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=[];c(this,function(e,t){l(o,{key:t,value:e})}),r(t,1);for(var u,d=n(e),h=n(i),f=0,p=0,g=!1,m=o.length;f<m;)u=o[f++],g||u.key===d?(g=!0,a(this,u.key)):p++;for(;p<m;)(u=o[p++]).key===d&&u.value===h||s(this,u.key,u.value)},{enumerable:!0,unsafe:!0})}();var Oo,Ro={};!function(){if(Oo)return Ro;Oo=1;var e=qt(),t=le(),n=zn(),r=co(),i=URLSearchParams,o=i.prototype,s=t(o.getAll),a=t(o.has),c=new i("a=1");!c.has("a",2)&&c.has("a",void 0)||e(o,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=s(this,e);r(t,1);for(var c=n(i),l=0;l<o.length;)if(o[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})}();var Po,Do={};function Mo(e,t){this.v=e,this.k=t}function xo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Go(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Mo(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Uo(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Vo(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Vo(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Vo=function(e){this.s=e,this.n=e.next},Vo.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Vo(e)}function Wo(e){return new Mo(e,0)}function Fo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jo(e,t){return e.get(xo(e,t))}function Bo(e,t,n){Fo(e,t),t.set(e,n)}function zo(e,t,n){return e.set(xo(e,t),n),n}function Ho(e,t,n){return n(xo(e,t))}function qo(e,t){Fo(e,t),t.add(e)}function Qo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ko(e,t)}function Xo(e,t,n){t||(t=[]);var r=t.length++;return Object.defineProperty({},"_",{set:function(i){t[r]=i,e.apply(n,t)}})}function Zo(e){return function(){return new es(e.apply(this,arguments))}}function es(e){var t,n;function r(t,n){try{var o=e[t](n),s=o.value,a=s instanceof Mo;Promise.resolve(a?s.v:s).then(function(n){if(a){var c="return"===t?"return":"next";if(!s.k||n.done)return r(c,n);n=e[c](n).value}i(o.done?"return":"normal",n)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,s){var a={key:e,arg:i,resolve:o,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function ts(){ts=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),Ko(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ko(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=o[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},ts.apply(this,arguments)}!function(){if(Po)return Do;Po=1;var e=m(),t=le(),n=Ki(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!("size"in r)&&n(r,"size",{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})}(),es.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},es.prototype.next=function(e){return this._invoke("next",e)},es.prototype.throw=function(e){return this._invoke("throw",e)},es.prototype.return=function(e){return this._invoke("return",e)};var ns,rs,is,os,ss,as,cs,ls,us,ds,hs,fs,ps,gs,ms,_s={};function vs(){if(rs)return ns;rs=1;var e=_(),t=Function.prototype,n=t.apply,r=t.call;return ns="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),ns}function Es(){if(as)return ss;as=1;var e=Qi().charAt;return ss=function(t,n,r){return n+(r?e(t,n).length:1)},ss}function ws(){if(ls)return cs;ls=1;var e=le(),t=rt(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return cs=function(e,c,l,u,d,h){var f=l+e.length,p=u.length,g=a;return void 0!==d&&(d=t(d),g=s),i(h,g,function(t,i){var s;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return o(c,0,l);case"'":return o(c,f);case"<":s=d[o(i,1,-1)];break;default:var a=+i;if(0===a)return t;if(a>p){var h=n(a/10);return 0===h?t:h<=p?void 0===u[h-1]?r(i,1):u[h-1]+r(i,1):t}s=u[a-1]}return void 0===s?"":s})},cs}function ys(){if(ds)return us;ds=1;var e=o(),t=g(),n=e.RegExp,r=!t(function(){var e=!0;try{n(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||r!==i});return us={correct:r}}function Is(){if(fs)return hs;fs=1;var e=v(),t=it(),n=ve(),r=ys(),i=Hn(),o=RegExp.prototype;return hs=r.correct?function(e){return e.flags}:function(s){return r.correct||!n(o,s)||t(s,"flags")?s.flags:e(i,s)}}!function(){if(ms)return _s;ms=1;var e=vs(),t=v(),n=le(),r=function(){if(os)return is;os=1,pr();var e=v(),t=qt(),n=fr(),r=g(),i=st(),o=Lt(),s=i("species"),a=RegExp.prototype;return is=function(c,l,u,d){var h=i(c),f=!r(function(){var e={};return e[h]=function(){return 7},7!==""[c](e)}),p=f&&!r(function(){var e=!1,t=/a/;if("split"===c){var n={};n[s]=function(){return t},(t={constructor:n,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!p||u){var g=/./[h],m=l(h,""[c],function(t,r,i,o,s){var c=r.exec;return c===n||c===a.exec?f&&!s?{done:!0,value:e(g,r,i,o)}:{done:!0,value:e(t,i,r,o)}:{done:!1}});t(String.prototype,c,m[0]),t(a,h,m[1])}d&&o(a[h],"sham",!0)},is}(),i=g(),o=yt(),s=ge(),a=me(),c=hn(),l=pn(),u=zn(),d=fe(),h=Es(),f=Se(),p=ws(),m=Is(),_=function(){if(gs)return ps;gs=1;var e=v(),t=yt(),n=ge(),r=ue(),i=fr(),o=TypeError;return ps=function(s,a){var c=s.exec;if(n(c)){var l=e(c,s,a);return null!==l&&t(l),l}if("RegExp"===r(s))return e(i,s,a);throw new o("RegExp#exec called on incompatible receiver")},ps}(),E=st()("replace"),w=Math.max,y=Math.min,I=n([].concat),L=n([].push),C=n("".indexOf),A=n("".slice),S=function(e){return void 0===e?e:String(e)},b="$0"==="a".replace(/./,"$0"),N=!!/./[E]&&""===/./[E]("a","$0");r("replace",function(n,r,i){var g=N?"$":"$0";return[function(e,n){var i=d(this),o=a(e)?f(e,E):void 0;return o?t(o,e,i,n):t(r,u(i),e,n)},function(t,n){var a=o(this),d=u(t);if("string"==typeof n&&-1===C(n,g)&&-1===C(n,"$<")){var f=i(r,a,d,n);if(f.done)return f.value}var v=s(n);v||(n=u(n));var E,b=u(m(a)),N=-1!==C(b,"g");N&&(E=-1!==C(b,"u"),a.lastIndex=0);for(var T,k=[];null!==(T=_(a,d))&&(L(k,T),N);)""===u(T[0])&&(a.lastIndex=h(d,l(a.lastIndex),E));for(var O="",R=0,P=0;P<k.length;P++){for(var D,M=u((T=k[P])[0]),x=w(y(c(T.index),d.length),0),G=[],U=1;U<T.length;U++)L(G,S(T[U]));var V=T.groups;if(v){var W=I([M],G,x,d);void 0!==V&&L(W,V),D=u(e(n,void 0,W))}else D=p(M,d,x,G,V,n);x>=R&&(O+=A(d,R,x)+D,R=x+M.length)}return O+A(d,R)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!b||N)}();var Ls,Cs,As,Ss={};function bs(){if(Cs)return Ls;Cs=1;var e=ue();return Ls=Array.isArray||function(t){return"Array"===e(t)}}!function(){if(As)return Ss;As=1;var e=jn(),t=le(),n=bs(),r=t([].reverse),i=[1,2];e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}();var Ns,Ts={};!function(){if(Ns)return Ts;Ns=1;var e=jn(),t=o(),n=Xi(),r=yt(),i=ge(),s=Kr(),a=Ki(),c=ro(),l=g(),u=it(),d=st(),h=Xr().IteratorPrototype,f=m(),p=Ze(),_="constructor",v="Iterator",E=d("toStringTag"),w=TypeError,y=t[v],I=p||!i(y)||y.prototype!==h||!l(function(){y({})}),L=function(){if(n(this,h),s(this)===h)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){f?a(h,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===h)throw new w("You can't redefine this property");u(this,e)?this[e]=t:c(this,e,t)}}):h[e]=t};u(h,E)||C(E,v),!I&&u(h,_)&&h[_]!==Object||C(_,L),L.prototype=h,e({global:!0,constructor:!0,forced:I},{Iterator:L})}();var ks,Os,Rs,Ps,Ds,Ms,xs,Gs,Us,Vs,Ws,Fs={};function js(){return Os?ks:(Os=1,ks=function(e){return{iterator:e,next:e.next,done:!1}})}function Bs(){if(Ps)return Rs;Ps=1;var e=Zi();return Rs=function(t,n,r){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{r=e(t[i].iterator,n,r)}catch(e){n="throw",r=e}if("throw"===n)throw r;return r},Rs}function zs(){if(Ms)return Ds;Ms=1;var e=v(),t=ur(),n=Lt(),r=Lo(),i=st(),o=zt(),s=Se(),a=Xr().IteratorPrototype,c=si(),l=Zi(),u=Bs(),d=i("toStringTag"),h="IteratorHelper",f="WrapForValidIterator",p="normal",g="throw",m=o.set,_=function(n){var i=o.getterFor(n?f:h);return r(t(a),{next:function(){var e=i(this);if(n)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=i(this),r=t.iterator;if(t.done=!0,n){var o=s(r,"return");return o?e(o,r):c(void 0,!0)}if(t.inner)try{l(t.inner.iterator,p)}catch(e){return l(r,g,e)}if(t.openIters)try{u(t.openIters,p)}catch(e){return l(r,g,e)}return r&&l(r,p),c(void 0,!0)}})},E=_(!0),w=_(!1);return n(w,d,"Iterator Helper"),Ds=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?f:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?E:w,r}}function Hs(){return Gs?xs:(Gs=1,xs=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}})}function qs(){if(Vs)return Us;Vs=1;var e=o();return Us=function(t,n){var r=e.Iterator,i=r&&r.prototype,o=i&&i[t],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof n||(s=!1)}if(!s)return o}}!function(){if(Ws)return Fs;Ws=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=zs(),s=eo(),a=Zi(),c=Hs(),l=qs(),u=Ze(),d=!u&&!c("map",function(){}),h=!u&&!d&&l("map",TypeError),f=u||d||h,p=o(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return s(e,this.mapper,[n.value,this.counter++],!0)});e({target:"Iterator",proto:!0,real:!0,forced:f},{map:function(e){r(this);try{n(e)}catch(e){a(this,"throw",e)}return h?t(h,this,e):new p(i(this),{mapper:e})}})}();const Qs=e=>e.split(".").reverse().map(encodeURIComponent).join("/"),$s=["http:","https:"],Ys=e=>$s.includes(e);var Js=new WeakMap,Ks=new WeakMap,Xs=new WeakMap;class Zs{constructor(e,t,n,r,i,o){Bo(this,Js,e=>e.startsWith("#")),Bo(this,Ks,e=>e.hostname===this.proxyApiUrl.hostname),Bo(this,Xs,e=>`${e.pathname}${e.search}${e.hash}`.replace(/^.*?\/proxy\/1\/[^/]+/i,"")),Qo(this,"proxify",(e,t={})=>{if(!e)return e;if(jo(Js,this).call(this,e.toString()))return e;const n=Yo(Yo(Yo({},this.queryParams),this.getOrigin?{origin:this.getOrigin()}:{}),t);try{const t=new URL(e,this.baseUrl);if(!Ys(t.protocol))return e;const r=((e,t)=>{const{hostname:n,protocol:r,pathname:i,search:o,port:s,username:a,password:c,hash:l}=new URL(e),u=Qs(n),d=new URL(`${u}/${r}${i}${l}`,"http://placeholder.base");o&&d.searchParams.set("search",o.replace("?","")),s&&d.searchParams.set("port",s),a&&d.searchParams.set("username",a),c&&d.searchParams.set("password",c);for(const[e,n]of Object.entries(t||{}))d.searchParams.set(e,n);return`${d.pathname}${d.search}${d.hash}`})(jo(Ks,this).call(this,t)?this.unproxify(t.toString()):t.toString(),n);return new URL(`.${r}`,this.proxyApiUrl).toString()}catch(t){return e}}),Qo(this,"unproxify",e=>{if(!e)return e;if(jo(Js,this).call(this,e.toString()))return e;try{const t=new URL(e,this.baseUrl);if(!Ys(t.protocol))return e;if(!jo(Ks,this).call(this,t))return e;const n=(e=>{const{pathname:t,hash:n,searchParams:r}=new URL(e,"http://placeholder.base"),i=t.split("/"),o=i.findIndex(e=>"http:"===e||"https:"===e),s=i[o],a=i.slice(1,o).reverse().map(decodeURIComponent),c=i.slice(o+1,i.length),l=r.get("search"),u=r.get("port"),d=r.get("username"),h=r.get("password"),f=a.join("."),p=c.join("/");return new URL(`${s}//${d&&h?`${d}:${h}@`:""}${f}${u?`:${u}`:""}/${p}${l?`?${l}`:""}${n}`)})(jo(Xs,this).call(this,t));return n.toString()}catch(t){return e}}),this.proxyApiUrl=new URL(t,e),this.queryParams=i?Yo({},i):{},n&&(this.queryParams.access_token=n),this.baseUrl=r,this.getOrigin=o}}const ea="./proxy/1/universal/";var ta,na,ra,ia,oa,sa,aa,ca,la,ua,da,ha,fa,pa,ga,ma,_a,va,Ea,wa,ya,Ia,La,Ca,Aa,Sa,ba,Na,Ta,ka,Oa,Ra,Pa,Da,Ma,xa,Ga,Ua,Va,Wa,Fa,ja,Ba,za,Ha,qa,Qa,$a={};function Ya(){if(na)return ta;na=1;var e=It().f;return ta=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function Ja(){if(ia)return ra;ia=1;var e=ge(),t=me(),n=ii();return ra=function(r,i,o){var s,a;return n&&e(s=i.constructor)&&s!==o&&t(a=s.prototype)&&a!==o.prototype&&n(r,a),r}}function Ka(){if(sa)return oa;sa=1;var e=zn();return oa=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},oa}function Xa(){if(ca)return aa;ca=1;var e=me(),t=Lt();return aa=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},aa}function Za(){if(ua)return la;ua=1;var e=le(),t=Error,n=e("".replace),r=String(new t("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(r);return la=function(e,r){if(o&&"string"==typeof e&&!t.prepareStackTrace)for(;r--;)e=n(e,i,"");return e}}function ec(){if(ha)return da;ha=1;var e=g(),t=ce();return da=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}function tc(){if(ma)return ga;ma=1;var e=_e(),t=it(),n=Lt(),r=ve(),i=ii(),o=Wn(),s=Ya(),a=Ja(),c=Ka(),l=Xa(),u=function(){if(pa)return fa;pa=1;var e=Lt(),t=Za(),n=ec(),r=Error.captureStackTrace;return fa=function(i,o,s,a){n&&(r?r(i,o):e(i,"stack",t(s,a)))},fa}(),d=m(),h=Ze();return ga=function(f,p,g,m){var _="stackTraceLimit",v=m?2:1,E=f.split("."),w=E[E.length-1],y=e.apply(null,E);if(y){var I=y.prototype;if(!h&&t(I,"cause")&&delete I.cause,!g)return y;var L=e("Error"),C=p(function(e,t){var i=c(m?t:e,void 0),o=m?new y(e):new y;return void 0!==i&&n(o,"message",i),u(o,C,o.stack,2),this&&r(I,this)&&a(o,this,C),arguments.length>v&&l(o,arguments[v]),o});if(C.prototype=I,"Error"!==w?i?i(C,L):o(C,L,{name:!0}):d&&_ in y&&(s(C,y,_),s(C,y,"prepareStackTrace")),o(C,y),!h)try{I.name!==w&&n(I,"name",w),I.constructor=C}catch(e){}return C}},ga}function nc(){return Ea?va:(Ea=1,va=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)})}function rc(){if(ya)return wa;ya=1;var t="object"==typeof e&&e&&e.Object===Object&&e;return wa=t}function ic(){if(La)return Ia;La=1;var e=rc(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ia=n}function oc(){if(Oa)return ka;Oa=1;var e=ic().Symbol;return ka=e}function sc(){if(Ga)return xa;Ga=1;var e=oc(),t=function(){if(Pa)return Ra;Pa=1;var e=oc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Ra=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(Ma)return Da;Ma=1;var e=Object.prototype.toString;return Da=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return xa=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ac(){return Va?Ua:(Va=1,Ua=function(e){return null!=e&&"object"==typeof e})}function cc(){if(Fa)return Wa;Fa=1;var e=sc(),t=ac();return Wa=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function lc(){if(Ha)return za;Ha=1;var e=nc(),t=function(){if(Aa)return Ca;Aa=1;var e=ic();return Ca=function(){return e.Date.now()}}(),n=function(){if(Ba)return ja;Ba=1;var e=function(){if(Ta)return Na;Ta=1;var e=function(){if(ba)return Sa;ba=1;var e=/\s/;return Sa=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return Na=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}(),t=nc(),n=cc(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return ja=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var c="function"==typeof a.valueOf?a.valueOf():a;a=t(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var l=i.test(a);return l||o.test(a)?s(a.slice(2),l?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return za=function(o,s,a){var c,l,u,d,h,f,p=0,g=!1,m=!1,_=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,p=e,d=o.apply(n,t)}function E(e){var t=e-f;return void 0===f||t>=s||t<0||m&&e-p>=u}function w(){var e=t();if(E(e))return y(e);h=setTimeout(w,function(e){var t=s-(e-f);return m?i(t,u-(e-p)):t}(e))}function y(e){return h=void 0,_&&c?v(e):(c=l=void 0,d)}function I(){var e=t(),n=E(e);if(c=arguments,l=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(w,s),g?v(e):d}(f);if(m)return clearTimeout(h),h=setTimeout(w,s),v(f)}return void 0===h&&(h=setTimeout(w,s)),d}return s=n(s)||0,e(a)&&(g=!!a.leading,u=(m="maxWait"in a)?r(n(a.maxWait)||0,s):u,_="trailing"in a?!!a.trailing:_),I.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},I.flush=function(){return void 0===h?d:y(t())},I},za}!function(){if(_a)return $a;_a=1;var e=jn(),t=o(),n=vs(),r=tc(),i="WebAssembly",s=t[i],a=7!==new Error("e",{cause:7}).cause,c=function(t,n){var i={};i[t]=r(t,n,a),e({global:!0,constructor:!0,arity:1,forced:a},i)},l=function(t,n){if(s&&s[t]){var o={};o[t]=r(i+"."+t,n,a),e({target:i,stat:!0,constructor:!0,arity:1,forced:a},o)}};c("Error",function(e){return function(t){return n(e,this,arguments)}}),c("EvalError",function(e){return function(t){return n(e,this,arguments)}}),c("RangeError",function(e){return function(t){return n(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),c("TypeError",function(e){return function(t){return n(e,this,arguments)}}),c("URIError",function(e){return function(t){return n(e,this,arguments)}}),l("CompileError",function(e){return function(t){return n(e,this,arguments)}}),l("LinkError",function(e){return function(t){return n(e,this,arguments)}}),l("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})}();var uc=function(){if(Qa)return qa;Qa=1;var e=lc(),t=nc();return qa=function(n,r,i){var o=!0,s=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),e(n,r,{leading:o,maxWait:r,trailing:s})}}();const dc=t(uc),hc=dc(e=>{window.location.href=e},50,{leading:!0,trailing:!1});class fc{item(){return null}contains(){return!1}get length(){return 0}}const pc=(e,{proxify:t,unproxify:n})=>{const r=Object.assign({},e,{toString:function(){return""}});return new Proxy(r,{get:function(r,i){const o=n(e.href),s=new URL(o);return i===Symbol.toPrimitive?e=>s.toString():"toString"===i?function(){return s.toString()}:"replace"===i?function(n){return e.replace(t(n))}:"assign"===i?function(n){return e.assign(t(n))}:"reload"===i?function(){return e.reload()}:"ancestorOrigins"===i?new fc:void 0!==s[i]?s[i]:r[i]},set:function(e,n,r){return"href"===n?(hc(t(r)),!0):(e[n]=r,!0)}})};var gc,mc={};!function(){if(gc)return mc;gc=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=zs(),s=eo(),a=Ze(),c=Zi(),l=Hs(),u=qs(),d=!a&&!l("filter",function(){}),h=!a&&!d&&u("filter",TypeError),f=a||d||h,p=o(function(){for(var e,n,i=this.iterator,o=this.predicate,a=this.next;;){if(e=r(t(a,i)),this.done=!!e.done)return;if(n=e.value,s(i,o,[n,this.counter++],!0))return n}});e({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return h?t(h,this,e):new p(i(this),{predicate:e})}})}();var _c,vc,Ec,wc={};function yc(){if(vc)return _c;vc=1;var e=Ji(),t=v(),n=yt(),r=Ce(),i=to(),o=gn(),s=ve(),a=oo(),c=io(),l=Zi(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},h=d.prototype;return _c=function(f,p,g){var m,_,v,E,w,y,I,L=g&&g.that,C=!(!g||!g.AS_ENTRIES),A=!(!g||!g.IS_RECORD),S=!(!g||!g.IS_ITERATOR),b=!(!g||!g.INTERRUPTED),N=e(p,L),T=function(e){return m&&l(m,"normal"),new d(!0,e)},k=function(e){return C?(n(e),b?N(e[0],e[1],T):N(e[0],e[1])):b?N(e,T):N(e)};if(A)m=f.iterator;else if(S)m=f;else{if(!(_=c(f)))throw new u(r(f)+" is not iterable");if(i(_)){for(v=0,E=o(f);E>v;v++)if((w=k(f[v]))&&s(h,w))return w;return new d(!1)}m=a(f,_)}for(y=A?f.next:m.next;!(I=t(y,m)).done;){try{w=k(I.value)}catch(e){l(m,"throw",e)}if("object"==typeof w&&w&&s(h,w))return w}return new d(!1)}}!function(){if(Ec)return wc;Ec=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("forEach",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{forEach:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})}();var Ic,Lc,Cc,Ac,Sc,bc,Nc,Tc={};function kc(){if(Ac)return Cc;Ac=1;var e=le(),t=it(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=e("".charAt),s=e("".slice),a=e(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;return Cc=function(e,d){for(var h=!0,f="";d<e.length;){var p=o(e,d);if("\\"===p){var g=s(e,d,d+2);if(t(c,g))f+=c[g],d+=2;else{if("\\u"!==g)throw new n('Unknown escape sequence: "'+g+'"');var m=s(e,d+=2,d+4);if(!a(l,m))throw new n("Bad Unicode escape at: "+d);f+=i(r(m,16)),d+=4}}else{if('"'===p){h=!1,d++;break}if(a(u,p))throw new n("Bad control character in string literal at: "+d);f+=p,d++}}if(h)throw new n("Unterminated string at: "+d);return{value:f,end:d}},Cc}!function(){if(Nc)return Tc;Nc=1;var e=jn(),t=_e(),n=vs(),r=v(),i=le(),o=g(),s=bs(),a=ge(),c=function(){if(Lc)return Ic;Lc=1;var e=me(),t=zt().get;return Ic=function(n){if(!e(n))return!1;var r=t(n);return!!r&&"RawJSON"===r.type},Ic}(),l=Le(),u=ue(),d=zn(),h=ao(),f=kc(),p=ot(),m=ye(),_=function(){if(bc)return Sc;bc=1;var e=g();return Sc=!e(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}(),E=String,w=t("JSON","stringify"),y=i(/./.exec),I=i("".charAt),L=i("".charCodeAt),C=i("".replace),A=i("".slice),S=i([].push),b=i(1.1.toString),N=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,O=p(),R=O.length,P=!m||o(function(){var e=t("Symbol")("stringify detection");return"[null]"!==w([e])||"{}"!==w({a:e})||"{}"!==w(Object(e))}),D=o(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),M=P?function(e,t){var i=h(arguments),o=G(t);if(a(o)||void 0!==e&&!l(e))return i[1]=function(e,t){if(a(o)&&(t=r(o,this,E(e),t)),!l(t))return t},n(w,null,i)}:w,x=function(e,t,n){var r=I(n,t-1),i=I(n,t+1);return y(T,e)&&!y(k,i)||y(k,e)&&!y(T,r)?"\\u"+b(L(e,0),16):e},G=function(e){if(a(e))return e;if(s(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?S(n,i):"number"!=typeof i&&"Number"!==u(i)&&"String"!==u(i)||S(n,d(i))}var o=n.length,c=!0;return function(e,t){if(c)return c=!1,t;if(s(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};w&&e({target:"JSON",stat:!0,arity:3,forced:P||D||!_},{stringify:function(e,t,n){var i=G(t),o=[],s=M(e,function(e,t){var n=a(i)?r(i,this,E(e),t):t;return!_&&c(n)?O+(S(o,n.rawJSON)-1):n},n);if("string"!=typeof s)return s;if(D&&(s=C(s,N,x)),_)return s;for(var l="",u=s.length,d=0;d<u;d++){var h=I(s,d);if('"'===h){var p=f(s,++d).end-1,g=A(s,d,p);l+=A(g,0,R)===O?o[A(g,R)]:'"'+g+'"',d=p}else l+=h}return l}})}();var Oc,Rc,Pc={};Rc||(Rc=1,function(){if(Oc)return Pc;Oc=1;var e=jn(),t=m(),n=o(),r=_e(),i=le(),s=v(),a=ge(),c=me(),l=bs(),u=it(),d=zn(),h=gn(),f=ro(),p=g(),_=kc(),E=ye(),w=n.JSON,y=n.Number,I=n.SyntaxError,L=w&&w.parse,C=r("Object","keys"),A=Object.getOwnPropertyDescriptor,S=i("".charAt),b=i("".slice),N=i(/./.exec),T=i([].push),k=/^\d$/,O=/^[1-9]$/,R=/^[\d-]$/,P=/^[\t\n\r ]$/,D=function(e,t,n,r){var i,o,a,d,f,p=e[t],g=r&&p===r.value,m=g&&"string"==typeof r.source?{source:r.source}:{};if(c(p)){var _=l(p),v=g?r.nodes:_?[]:{};if(_)for(i=v.length,a=h(p),d=0;d<a;d++)M(p,d,D(p,""+d,n,d<i?v[d]:void 0));else for(o=C(p),a=h(o),d=0;d<a;d++)f=o[d],M(p,f,D(p,f,n,u(v,f)?v[f]:void 0))}return s(n,e,t,p,m)},M=function(e,n,r){if(t){var i=A(e,n);if(i&&!i.configurable)return}void 0===r?delete e[n]:f(e,n,r)},x=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},G=function(e,t){this.source=e,this.index=t};G.prototype={fork:function(e){return new G(this.source,e)},parse:function(){var e=this.source,t=this.skip(P,this.index),n=this.fork(t),r=S(e,t);if(N(R,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new I('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new x(t,r,e?null:b(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===S(e,t)&&!n){t++;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(P,t),o=this.fork(t).parse(),f(i,s,o),f(r,s,o.value),t=this.until([",","}"],o.end);var a=S(e,t);if(","===a)n=!0,t++;else if("}"===a){t++;break}}return this.node(1,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(P,t),"]"===S(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(T(i,o),T(r,o.value),t=this.until([",","]"],o.end),","===S(e,t))n=!0,t++;else if("]"===S(e,t)){t++;break}}return this.node(1,r,this.index,t,i)},string:function(){var e=this.index,t=_(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===S(e,n)&&n++,"0"===S(e,n))n++;else{if(!N(O,S(e,n)))throw new I("Failed to parse number at: "+n);n=this.skip(k,n+1)}if(!("."===S(e,n)&&(n=this.skip(k,n+1)),"e"!==S(e,n)&&"E"!==S(e,n)||(n++,"+"!==S(e,n)&&"-"!==S(e,n)||n++,n!==(n=this.skip(k,n)))))throw new I("Failed to parse number's exponent value at: "+n);return this.node(0,y(b(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(b(this.source,n,r)!==t)throw new I("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&N(e,S(n,t));t++);return t},until:function(e,t){t=this.skip(P,t);for(var n=S(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new I('Unexpected character: "'+n+'" at: '+t)}};var U=p(function(){var e,t="9007199254740993";return L(t,function(t,n,r){e=r.source}),e!==t}),V=E&&!p(function(){return 1/L("-0 \t")!=-1/0});e({target:"JSON",stat:!0,forced:U},{parse:function(e,t){return V&&!a(t)?L(e):function(e,t){e=d(e);var n=new G(e,0),r=n.parse(),i=r.value,o=n.skip(P,r.end);if(o<e.length)throw new I('Unexpected extra character: "'+S(e,o)+'" after the parsed data at: '+o);return a(t)?D({"":i},"",t,r):i}(e,t)}})}());const Dc=e=>Math.abs(Date.now()-e.timestamp)>864e6,Mc=e=>e.cobrowseio&&e.timestamp,xc=(e,{unproxify:t})=>{(e=>{Object.keys(e).forEach(t=>{const n=e.getItem(t);try{const r=JSON.parse(n);Mc(r)&&Dc(r)&&e.removeItem(t)}catch(e){}})})(e);const n=()=>{const e=`${new URL(t(window.location.href)).hostname}||`;return{addPrefix:t=>`${e}${t}`,isPrefix:t=>t.startsWith(e),removePrefix:t=>t.replace(e,"")}},r=t=>{const{addPrefix:r}=n(),i=r(t),o=e.getItem(i);try{const t=JSON.parse(o);if(Mc(t))return Dc(t)?(e.removeItem(i),null):t.value}catch(e){}return o},i=(t,r)=>{const{addPrefix:i}=n(),o=i(t),s={value:r,timestamp:Date.now(),cobrowseio:!0},a=JSON.stringify(s);return e.setItem(o,a)},o=t=>{const{addPrefix:r}=n(),i=r(t);return e.removeItem(i)},s=()=>{const{isPrefix:t}=n();Object.keys(e).forEach(n=>{t(n)&&e.removeItem(n)})},a=t=>{const{isPrefix:r,removePrefix:i}=n(),o=Object.keys(e).filter(r).map(i);return t>o.length-1?null:o[t]},c=t=>{if(Object.getOwnPropertyDescriptor(e,t))return!0;const{addPrefix:r}=n(),i=r(t);return!!Object.getOwnPropertyDescriptor(e,i)};return new Proxy(e,{get:(t,l)=>"getItem"===l?r:"setItem"===l?i:"removeItem"===l?o:"clear"===l?s:"key"===l?a:"hasOwnProperty"===l?c:"length"===l?(()=>{const{isPrefix:t}=n();return Object.keys(e).filter(t).length})():"toString"===l?function(){return t.toString()}:"prototype"===l?t.prototype:"isPrototypeOf"===l?t.isPrototypeOf:r(l),set:(e,t,n)=>(i(t,n),n),ownKeys(e){const{isPrefix:t,removePrefix:r}=n();return Reflect.ownKeys(e).filter(t).map(r)},getOwnPropertyDescriptor(e,t){const{addPrefix:r}=n(),i=r(t);return i in e?Object.getOwnPropertyDescriptor(e,i):Object.getOwnPropertyDescriptor(e,t)},has(e,t){if(t in e)return!0;const{addPrefix:r}=n();return r(t)in e},deleteProperty:(e,t)=>(o(t),!0)})},Gc=[e=>{const t=pc(window.location,e);window.cbioLocation=t,document.cbioLocation=t},e=>{Object.defineProperty(window,"localStorage",{value:xc(window.localStorage,e),writable:!1,configurable:!1})},e=>{Object.defineProperty(window,"sessionStorage",{value:xc(window.sessionStorage,e),writable:!1,configurable:!1})}],Uc=e=>e&&"object"==typeof e&&"document"in e&&"location"in e&&"top"in e&&"Math"in e;var Vc,Wc={};!function(){if(Vc)return Wc;Vc=1;var e=jn(),t=yc(),n=Ae(),r=yt(),i=js(),o=Zi(),s=qs(),a=vs(),c=g(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),d=!u&&s("reduce",l);e({target:"Iterator",proto:!0,real:!0,forced:u||d},{reduce:function(e){r(this);try{n(e)}catch(e){o(this,"throw",e)}var s=arguments.length<2,c=s?void 0:arguments[1];if(d)return a(d,this,s?[e]:[e,c]);var u=i(this),h=0;if(t(u,function(t){s?(s=!1,c=t):c=e(c,t,h),h++},{IS_RECORD:!0}),s)throw new l("Reduce of empty iterator with no initial value");return c}})}();const Fc=(e,t)=>t.reduce((e,t)=>e&&e[t]?e[t]:void 0,e);var jc,Bc={};!function(){if(jc)return Bc;jc=1;var e=jn(),t=rt(),n=gn(),r=hn(),i=Yr();e({target:"Array",proto:!0},{at:function(e){var i=t(this),o=n(i),s=r(e),a=s>=0?s:o+s;return a<0||a>=o?void 0:i[a]}}),i("at")}();var zc,Hc,qc,Qc,$c,Yc,Jc,Kc,Xc,Zc={};function el(){if(Hc)return zc;Hc=1;var e=TypeError;return zc=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function tl(){if(Qc)return qc;Qc=1;var e=bs(),t=gn(),n=el(),r=Ji(),i=function(o,s,a,c,l,u,d,h){for(var f,p,g=l,m=0,_=!!d&&r(d,h);m<c;)m in a&&(f=_?_(a[m],m,s):a[m],u>0&&e(f)?(p=t(f),g=i(o,s,f,p,g,u-1)-1):(n(g+1),o[g]=f),g++),m++;return g};return qc=i}function nl(){if(Yc)return $c;Yc=1;var e=bs(),t=no(),n=me(),r=st()("species"),i=Array;return $c=function(o){var s;return e(o)&&(s=o.constructor,(t(s)&&(s===i||e(s.prototype))||n(s)&&null===(s=s[r]))&&(s=void 0)),void 0===s?i:s},$c}function rl(){if(Kc)return Jc;Kc=1;var e=nl();return Jc=function(t,n){return new(e(t))(0===n?0:n)}}!function(){if(Xc)return Zc;Xc=1;var e=jn(),t=tl(),n=Ae(),r=rt(),i=gn(),o=rl();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=r(this),c=i(a);return n(e),(s=o(a,0)).length=t(s,a,a,c,0,1,e,arguments.length>1?arguments[1]:void 0),s}})}();var il,ol,sl,al,cl={};function ll(){if(ol)return il;ol=1;var e=m(),t=bs(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return il=i?function(e,i){if(t(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},il}!function(){if(sl)return cl;sl=1;var e=jn(),t=rt(),n=gn(),r=ll(),i=el();e({target:"Array",proto:!0,arity:1,forced:g()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var o=t(this),s=n(o),a=arguments.length;i(s+a);for(var c=0;c<a;c++)o[s]=arguments[c],s++;return r(o,s),s}})}(),al||(al=1,Yr()("flatMap"));var ul,dl,hl,fl={};function pl(){if(dl)return ul;dl=1;var e=Ce(),t=TypeError;return ul=function(n,r){if(!delete n[r])throw new t("Cannot delete property "+e(r)+" of "+e(n))},ul}!function(){if(hl)return fl;hl=1;var e=jn(),t=rt(),n=gn(),r=ll(),i=pl(),o=el();e({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var s=t(this),a=n(s),c=arguments.length;if(c){o(a+c);for(var l=a;l--;){var u=l+c;l in s?s[u]=s[l]:i(s,u)}for(var d=0;d<c;d++)s[d]=arguments[d]}return r(s,a+c)}})}();var gl,ml,_l,vl={};function El(){if(ml)return gl;ml=1;var e=v(),t=yt(),n=js(),r=io();return gl=function(i,o){o&&"string"==typeof i||t(i);var s=r(i);return n(t(void 0!==s?e(s,i):i))}}!function(){if(_l)return vl;_l=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=El(),s=zs(),a=Zi(),c=Ze(),l=Hs(),u=qs(),d=!c&&!l("flatMap",function(){}),h=!c&&!d&&u("flatMap",TypeError),f=c||d||h,p=s(function(){for(var e,n,i=this.iterator,s=this.mapper;;){if(n=this.inner)try{if(!(e=r(t(n.next,n.iterator))).done)return e.value;this.inner=null}catch(e){a(i,"throw",e)}if(e=r(t(this.next,i)),this.done=!!e.done)return;try{this.inner=o(s(e.value,this.counter++),!1)}catch(e){a(i,"throw",e)}}});e({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(e){r(this);try{n(e)}catch(e){a(this,"throw",e)}return h?t(h,this,e):new p(i(this),{mapper:e,inner:null})}})}();var wl,yl={};!function(){if(wl)return yl;wl=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("some",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{some:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var Il,Ll={};!function(){if(Il)return Ll;Il=1;var e=jn(),t=le(),n=fe(),r=hn(),i=zn(),o=g(),s=t("".charAt);e({target:"String",proto:!0,forced:o(function(){return"\ud842"!=="𠮷".at(-2)})},{at:function(e){var t=i(n(this)),o=t.length,a=r(e),c=a>=0?a:o+a;return c<0||c>=o?void 0:s(t,c)}})}();var Cl,Al,Sl,bl,Nl,Tl,kl,Ol,Rl,Pl,Dl,Ml,xl={exports:{}},Gl={};function Ul(){return Al?Cl:(Al=1,Cl="\t\n\v\f\r \u2028\u2029\ufeff")}function Vl(){if(bl)return Sl;bl=1;var e=le(),t=fe(),n=zn(),r=Ul(),i=e("".replace),o=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(e){return function(r){var a=n(t(r));return 1&e&&(a=i(a,o,"")),2&e&&(a=i(a,s,"$1")),a}};return Sl={start:a(1),end:a(2),trim:a(3)}}function Wl(){if(Tl)return Nl;Tl=1;var e=Wt().PROPER,t=g(),n=Ul();return Nl=function(r){return t(function(){return!!n[r]()||"
"!=="
"[r]()||e&&n[r].name!==r})}}!function(){if(kl)return Gl;kl=1;var e=jn(),t=Vl().trim;e({target:"String",proto:!0,forced:Wl()("trim")},{trim:function(){return t(this)}})}();var Fl=(Ml||(Ml=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(Dl||(Dl=1,Pl=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(Rl)return Ol;Rl=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return Ol=function(s,a){a=a||{};var c,l,u=typeof s;if("string"===u&&s.length>0)return function(o){if(!((o=String(o)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(s);if("number"===u&&isFinite(s))return a.long?(c=s,(l=Math.abs(c))>=r?o(c,l,r,"day"):l>=n?o(c,l,n,"hour"):l>=t?o(c,l,t,"minute"):l>=e?o(c,l,e,"second"):c+" ms"):function(i){var o=Math.abs(i);return o>=r?Math.round(i/r)+"d":o>=n?Math.round(i/n)+"h":o>=t?Math.round(i/t)+"m":o>=e?Math.round(i/e)+"s":i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},Ol}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}),Pl)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(xl,xl.exports)),xl.exports);const jl=t(Fl);var Bl,zl={};!function(){if(Bl)return zl;Bl=1;var e=jn(),t=m(),n=o(),r=le(),i=it(),s=ge(),a=ve(),c=zn(),l=Ki(),u=Wn(),d=n.Symbol,h=d&&d.prototype;if(t&&s(d)&&(!("description"in h)||void 0!==d().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=a(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};u(p,d),p.prototype=h,h.constructor=p;var g="Symbol(description detection)"===String(d("description detection")),_=r(h.valueOf),v=r(h.toString),E=/^Symbol\((.*)\)[^)]+$/,w=r("".replace),y=r("".slice);l(h,"description",{configurable:!0,get:function(){var e=_(this);if(i(f,e))return"";var t=v(e),n=g?y(t,7,-1):w(t,E,"$1");return""===n?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var Hl,ql,Ql,$l,Yl,Jl,Kl,Xl,Zl,eu,tu,nu,ru,iu,ou,su,au,cu,lu,uu,du,hu={};function fu(){return ql?Hl:(ql=1,Hl="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView)}function pu(){if($l)return Ql;$l=1;var e=hn(),t=pn(),n=RangeError;return Ql=function(r){if(void 0===r)return 0;var i=e(r),o=t(i);if(i!==o)throw new n("Wrong length or index");return o}}function gu(){if(iu)return ru;iu=1;var e=Array,t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;return ru={pack:function(s,a,c){var l,u,d,h=e(c),f=8*c-a-1,p=(1<<f)-1,g=p>>1,m=23===a?n(2,-24)-n(2,-77):0,_=s<0||0===s&&1/s<0?1:0,v=0;for((s=t(s))!=s||s===1/0?(u=s!=s?1:0,l=p):(l=r(i(s)/o),s*(d=n(2,-l))<1&&(l--,d*=2),(s+=l+g>=1?m/d:m*n(2,1-g))*d>=2&&(l++,d/=2),l+g>=p?(u=0,l=p):l+g>=1?(u=(s*d-1)*n(2,a),l+=g):(u=s*n(2,g-1)*n(2,a),l=0));a>=8;)h[v++]=255&u,u/=256,a-=8;for(l=l<<a|u,f+=a;f>0;)h[v++]=255&l,l/=256,f-=8;return h[v-1]|=128*_,h},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;)d=256*d+e[l--],c-=8;for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;)r=256*r+e[l--],c-=8;if(0===d)d=1-a;else{if(d===s)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=a}return(u?-1:1)*r*n(2,d-t)}},ru}function mu(){if(su)return ou;su=1;var e=rt(),t=fn(),n=gn();return ou=function(r){for(var i=e(this),o=n(i),s=arguments.length,a=t(s>1?arguments[1]:void 0,o),c=s>2?arguments[2]:void 0,l=void 0===c?o:t(c,o);l>a;)i[a++]=r;return i},ou}function _u(){if(cu)return au;cu=1;var e=o(),t=le(),n=m(),r=fu(),i=Wt(),s=Lt(),a=Ki(),c=Lo(),l=g(),u=Xi(),d=hn(),h=pn(),f=pu(),p=function(){if(nu)return tu;nu=1;var e=function(){if(eu)return Zl;eu=1;var e=(Jl||(Jl=1,Yl=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}),Yl),t=function(){if(Xl)return Kl;Xl=1;var e=4503599627370496;return Kl=function(t){return t+e-e},Kl}(),n=Math.abs;return Zl=function(r,i,o,s){var a=+r,c=n(a),l=e(a);if(c<s)return l*t(c/s/i)*s*i;var u=(1+i/2220446049250313e-31)*c,d=u-(u-c);return d>o||d!=d?l*(1/0):l*d},Zl}();return tu=Math.fround||function(t){return e(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},tu}(),_=gu(),v=Kr(),E=ii(),w=mu(),y=ao(),I=Ja(),L=Wn(),C=Zr(),A=zt(),S=i.PROPER,b=i.CONFIGURABLE,N="ArrayBuffer",T="DataView",k="prototype",O="Wrong index",R=A.getterFor(N),P=A.getterFor(T),D=A.set,M=e[N],x=M,G=x&&x[k],U=e[T],V=U&&U[k],W=Object.prototype,F=e.Array,j=e.RangeError,B=t(w),z=t([].reverse),H=_.pack,q=_.unpack,Q=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return H(p(e),23,4)},X=function(e){return H(e,52,8)},Z=function(e,t,n){a(e[k],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=P(e),o=f(n),s=!!r;if(o+t>i.byteLength)throw new j(O);var a=i.bytes,c=o+i.byteOffset,l=y(a,c,c+t);return s?l:z(l)},te=function(e,t,n,r,i,o){var s=P(e),a=f(n),c=r(+i),l=!!o;if(a+t>s.byteLength)throw new j(O);for(var u=s.bytes,d=a+s.byteOffset,h=0;h<t;h++)u[d+h]=c[l?h:t-h-1]};if(r){var ne=S&&M.name!==N;l(function(){M(1)})&&l(function(){new M(-1)})&&!l(function(){return new M,new M(1.5),new M(NaN),1!==M.length||ne&&!b})?ne&&b&&s(M,"name",N):((x=function(e){return u(this,G),I(new M(f(e)),this,x)})[k]=G,G.constructor=x,L(x,M)),E&&v(V)!==W&&E(V,W);var re=new U(new x(2)),ie=t(V.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(V,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else G=(x=function(e){u(this,G);var t=f(e);D(this,{type:N,bytes:B(F(t),0),byteLength:t}),n||(this.byteLength=t,this.detached=!1)})[k],U=function(e,t,r){u(this,V),u(e,G);var i=R(e),o=i.byteLength,s=d(t);if(s<0||s>o)throw new j("Wrong offset");if(s+(r=void 0===r?o-s:h(r))>o)throw new j("Wrong length");D(this,{type:T,buffer:e,byteLength:r,byteOffset:s,bytes:i.bytes}),n||(this.buffer=e,this.byteLength=r,this.byteOffset=s)},V=U[k],n&&(Z(x,"byteLength",R),Z(U,"buffer",P),Z(U,"byteLength",P),Z(U,"byteOffset",P)),c(V,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,Q,t)},setUint8:function(e,t){te(this,1,e,Q,t)},setInt16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,X,t,arguments.length>2&&arguments[2])}});return C(x,N),C(U,T),au={ArrayBuffer:x,DataView:U}}function vu(){if(uu)return lu;uu=1;var e=_e(),t=Ki(),n=st(),r=m(),i=n("species");return lu=function(n){var o=e(n);r&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})}}!function(){if(du)return hu;du=1;var e=jn(),t=o(),n=_u(),r=vu(),i="ArrayBuffer",s=n[i];e({global:!0,constructor:!0,forced:t[i]!==s},{ArrayBuffer:s}),r(i)}();var Eu,wu={};!function(){if(Eu)return wu;Eu=1;var e=jn(),t=Yi(),n=g(),r=_u(),i=yt(),o=fn(),s=pn(),a=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(a.prototype.slice),d=t(l.getUint8),h=t(l.setUint8);e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n(function(){return!new a(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&void 0===t)return u(i(this),e);for(var n=i(this).byteLength,r=o(e,n),l=o(void 0===t?n:t,n),f=new a(s(l-r)),p=new c(this),g=new c(f),m=0;r<l;)h(g,m++,d(p,r++));return f}})}();var yu,Iu,Lu,Cu,Au,Su={};function bu(){if(Iu)return yu;Iu=1;var e=o(),t=ti(),n=ue(),r=e.ArrayBuffer,i=e.TypeError;return yu=r&&t(r.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==n(e))throw new i("ArrayBuffer expected");return e.byteLength},yu}function Nu(){if(Cu)return Lu;Cu=1;var e=o(),t=fu(),n=bu(),r=e.DataView;return Lu=function(e){if(!t||0!==n(e))return!1;try{return new r(e),!1}catch(e){return!0}},Lu}!function(){if(Au)return Su;Au=1;var e=m(),t=Ki(),n=Nu(),r=ArrayBuffer.prototype;e&&!("detached"in r)&&t(r,"detached",{configurable:!0,get:function(){return n(this)}})}();var Tu,ku,Ou,Ru,Pu,Du,Mu,xu,Gu,Uu,Vu,Wu,Fu,ju,Bu,zu={};function Hu(){if(ku)return Tu;ku=1;var e=Nu(),t=TypeError;return Tu=function(n){if(e(n))throw new t("ArrayBuffer is detached");return n}}function qu(){if(Ru)return Ou;Ru=1;var e=o(),t=Ee(),n=ue(),r=function(e){return t.slice(0,e.length)===e};return Ou=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Qu(){if(Du)return Pu;Du=1;var e=qu();return Pu="NODE"===e}function $u(){if(xu)return Mu;xu=1;var e=o(),t=Qu();return Mu=function(n){if(t){try{return e.process.getBuiltinModule(n)}catch(e){}try{return Function('return require("'+n+'")')()}catch(e){}}}}function Yu(){if(Uu)return Gu;Uu=1;var e=o(),t=g(),n=we(),r=qu(),i=e.structuredClone;return Gu=!!i&&!t(function(){if("DENO"===r&&n>92||"NODE"===r&&n>94||"BROWSER"===r&&n>97)return!1;var e=new ArrayBuffer(8),t=i(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}),Gu}function Ju(){if(Wu)return Vu;Wu=1;var e,t,n,r,i=o(),s=$u(),a=Yu(),c=i.structuredClone,l=i.ArrayBuffer,u=i.MessageChannel,d=!1;if(a)d=function(e){c(e,{transfer:[e]})};else if(l)try{u||(e=s("worker_threads"))&&(u=e.MessageChannel),u&&(t=new u,n=new l(2),r=function(e){t.port1.postMessage(null,[e])},2===n.byteLength&&(r(n),0===n.byteLength&&(d=r)))}catch(e){}return Vu=d}function Ku(){if(ju)return Fu;ju=1;var e=o(),t=le(),n=ti(),r=pu(),i=Hu(),s=bu(),a=Ju(),c=Yu(),l=e.structuredClone,u=e.ArrayBuffer,d=e.DataView,h=Math.min,f=u.prototype,p=d.prototype,g=t(f.slice),m=n(f,"resizable","get"),_=n(f,"maxByteLength","get"),v=t(p.getInt8),E=t(p.setInt8);return Fu=(c||a)&&function(e,t,n){var o,f=s(e),p=void 0===t?f:r(t),w=!m||!m(e);if(i(e),c&&(e=l(e,{transfer:[e]}),f===p&&(n||w)))return e;if(f>=p&&(!n||w))o=g(e,0,p);else{var y=n&&!w&&_?{maxByteLength:_(e)}:void 0;o=new u(p,y);for(var I=new d(e),L=new d(o),C=h(p,f),A=0;A<C;A++)E(L,A,v(I,A))}return c||a(e),o},Fu}!function(){if(Bu)return zu;Bu=1;var e=jn(),t=Ku();t&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})}();var Xu,Zu,ed={};!function(){if(Xu)return ed;Xu=1;var e=jn(),t=Ku();t&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})}(),Zu||(Zu=1,jn()({target:"Object",stat:!0},{hasOwn:it()}));var td,nd,rd,id={};function od(){if(nd)return td;nd=1;var e=me(),t=ue(),n=st()("match");return td=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}!function(){if(rd)return id;rd=1;var e=m(),t=o(),n=le(),r=Fn(),i=Ja(),s=Lt(),a=ur(),c=vn().f,l=ve(),u=od(),d=zn(),h=Is(),f=qn(),p=Ya(),_=qt(),v=g(),E=it(),w=zt().enforce,y=vu(),I=st(),L=dr(),C=hr(),A=I("match"),S=t.RegExp,b=S.prototype,N=t.SyntaxError,T=n(b.exec),k=n("".charAt),O=n("".replace),R=n("".indexOf),P=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,x=/a/g,G=new S(M)!==M,U=f.MISSED_STICKY,V=f.UNSUPPORTED_Y;if(r("RegExp",e&&(!G||U||L||C||v(function(){return x[A]=!1,S(M)!==M||S(x)===x||"/a/i"!==String(S(M,"i"))})))){for(var W=function(e,t){var n,r,o,c,f,p,g=l(b,this),m=u(e),_=void 0===t,v=[],y=e;if(!g&&m&&_&&e.constructor===W)return e;if((m||l(b,e))&&(e=e.source,_&&(t=h(y))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),y=e,L&&"dotAll"in M&&(r=!!t&&R(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,U&&"sticky"in M&&(o=!!t&&R(t,"y")>-1)&&V&&(t=O(t,/y/g,"")),C&&(c=function(e){for(var t,n=e.length,r=0,i="",o=[],s=a(null),c=!1,l=!1,u=0,d="";r<=n;r++){if("\\"===(t=k(e,r)))t+=k(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:if(i+=t,"?:"===P(e,r+1,r+3))continue;T(D,P(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===d||E(s,d))throw new N("Invalid capture group name");s[d]=!0,o[o.length]=[d,u],l=!1,d="";continue}l?d+=t:i+=t}return[i,o]}(e),e=c[0],v=c[1]),f=i(S(e,t),g?this:b,W),(r||o||v.length)&&(p=w(f),r&&(p.dotAll=!0,p.raw=W(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=k(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+k(e,++r);return i}(e),n)),o&&(p.sticky=!0),v.length&&(p.groups=v)),e!==y)try{s(f,"source",""===y?"(?:)":y)}catch(e){}return f},F=c(S),j=0;F.length>j;)p(W,S,F[j++]);b.constructor=W,W.prototype=b,_(t,"RegExp",W,{constructor:!0})}y("RegExp")}();var sd,ad={};!function(){if(sd)return ad;sd=1;var e=m(),t=dr(),n=ue(),r=Ki(),i=zt().get,o=RegExp.prototype,s=TypeError;e&&t&&r(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===n(this))return!!i(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})}();var cd,ld={};!function(){if(cd)return ld;cd=1;var e=m(),t=Ki(),n=ys(),r=Hn();e&&!n.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:r}),n.correct=!0)}();var ud,dd,hd,fd,pd,gd,md,_d,vd,Ed,wd,yd,Id,Ld,Cd,Ad,Sd,bd,Nd,Td={};function kd(){if(dd)return ud;dd=1;var e=le(),t=Set.prototype;return ud={Set:Set,add:e(t.add),has:e(t.has),remove:e(t.delete),proto:t}}function Od(){if(fd)return hd;fd=1;var e=kd().has;return hd=function(t){return e(t),t}}function Rd(){if(gd)return pd;gd=1;var e=v();return pd=function(t,n,r){for(var i,o,s=r?t:t.iterator,a=t.next;!(i=e(a,s)).done;)if(void 0!==(o=n(i.value)))return o}}function Pd(){if(_d)return md;_d=1;var e=le(),t=Rd(),n=kd(),r=n.Set,i=n.proto,o=e(i.forEach),s=e(i.keys),a=s(new r).next;return md=function(e,n,r){return r?t({iterator:s(e),next:a},n):o(e,n)}}function Dd(){if(Ed)return vd;Ed=1;var e=kd(),t=Pd(),n=e.Set,r=e.add;return vd=function(e){var i=new n;return t(e,function(e){r(i,e)}),i}}function Md(){if(yd)return wd;yd=1;var e=ti(),t=kd();return wd=e(t.proto,"size","get")||function(e){return e.size}}function xd(){if(Ld)return Id;Ld=1;var e=Ae(),t=yt(),n=v(),r=hn(),i=js(),o="Invalid size",s=RangeError,a=TypeError,c=Math.max,l=function(t,n){this.set=t,this.size=c(n,0),this.has=e(t.has),this.keys=e(t.keys)};return l.prototype={getIterator:function(){return i(t(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},Id=function(e){t(e);var n=+e.size;if(n!=n)throw new a(o);var i=r(n);if(i<0)throw new s(o);return new l(e,i)}}function Gd(){if(bd)return Sd;bd=1;var e=_e(),t=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};return Sd=function(r,i){var o=e("Set");try{(new o)[r](t(0));try{return(new o)[r](t(-1)),!1}catch(e){if(!i)return!0;try{return(new o)[r](n(-1/0)),!1}catch(e){return i(new o([1,2])[r](n(1/0)))}}}catch(e){return!1}}}!function(){if(Nd)return Td;Nd=1;var e=jn(),t=function(){if(Ad)return Cd;Ad=1;var e=Od(),t=kd(),n=Dd(),r=Md(),i=xd(),o=Pd(),s=Rd(),a=t.has,c=t.remove;return Cd=function(t){var l=e(this),u=i(t),d=n(l);return r(l)<=u.size?o(l,function(e){u.includes(e)&&c(d,e)}):s(u.getIterator(),function(e){a(d,e)&&c(d,e)}),d},Cd}(),n=g();e({target:"Set",proto:!0,real:!0,forced:!Gd()("difference",function(e){return 0===e.size})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:t})}();var Ud,Vd,Wd,Fd={};!function(){if(Wd)return Fd;Wd=1;var e=jn(),t=g(),n=function(){if(Vd)return Ud;Vd=1;var e=Od(),t=kd(),n=Md(),r=xd(),i=Pd(),o=Rd(),s=t.Set,a=t.add,c=t.has;return Ud=function(t){var l=e(this),u=r(t),d=new s;return n(l)>u.size?o(u.getIterator(),function(e){c(l,e)&&a(d,e)}):i(l,function(e){u.includes(e)&&a(d,e)}),d},Ud}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||t(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}();var jd,Bd,zd,Hd={};!function(){if(zd)return Hd;zd=1;var e=jn(),t=function(){if(Bd)return jd;Bd=1;var e=Od(),t=kd().has,n=Md(),r=xd(),i=Pd(),o=Rd(),s=Zi();return jd=function(a){var c=e(this),l=r(a);if(n(c)<=l.size)return!1!==i(c,function(e){if(l.includes(e))return!1},!0);var u=l.getIterator();return!1!==o(u,function(e){if(t(c,e))return s(u,"normal",!1)})},jd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isDisjointFrom",function(e){return!e})},{isDisjointFrom:t})}();var qd,Qd,$d,Yd={};!function(){if($d)return Yd;$d=1;var e=jn(),t=function(){if(Qd)return qd;Qd=1;var e=Od(),t=Md(),n=Pd(),r=xd();return qd=function(i){var o=e(this),s=r(i);return!(t(o)>s.size)&&!1!==n(o,function(e){if(!s.includes(e))return!1},!0)},qd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isSubsetOf",function(e){return e})},{isSubsetOf:t})}();var Jd,Kd,Xd,Zd={};!function(){if(Xd)return Zd;Xd=1;var e=jn(),t=function(){if(Kd)return Jd;Kd=1;var e=Od(),t=kd().has,n=Md(),r=xd(),i=Rd(),o=Zi();return Jd=function(s){var a=e(this),c=r(s);if(n(a)<c.size)return!1;var l=c.getIterator();return!1!==i(l,function(e){if(!t(a,e))return o(l,"normal",!1)})},Jd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isSupersetOf",function(e){return!e})},{isSupersetOf:t})}();var eh,th,nh,rh,ih,oh={};function sh(){return rh?nh:(rh=1,nh=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}})}!function(){if(ih)return oh;ih=1;var e=jn(),t=function(){if(th)return eh;th=1;var e=Od(),t=kd(),n=Dd(),r=xd(),i=Rd(),o=t.add,s=t.has,a=t.remove;return eh=function(t){var c=e(this),l=r(t).getIterator(),u=n(c);return i(l,function(e){s(c,e)?a(u,e):o(u,e)}),u},eh}(),n=sh();e({target:"Set",proto:!0,real:!0,forced:!Gd()("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:t})}();var ah,ch,lh,uh={};!function(){if(lh)return uh;lh=1;var e=jn(),t=function(){if(ch)return ah;ch=1;var e=Od(),t=kd().add,n=Dd(),r=xd(),i=Rd();return ah=function(o){var s=e(this),a=r(o).getIterator(),c=n(s);return i(a,function(e){t(c,e)}),c},ah}(),n=sh();e({target:"Set",proto:!0,real:!0,forced:!Gd()("union")||!n("union")},{union:t})}();var dh,hh={};!function(){if(dh)return hh;dh=1;var e=jn(),t=le(),n=fe(),r=zn(),i=t("".charCodeAt);e({target:"String",proto:!0},{isWellFormed:function(){for(var e=r(n(this)),t=e.length,o=0;o<t;o++){var s=i(e,o);if(55296==(63488&s)&&(s>=56320||++o>=t||56320!=(64512&i(e,o))))return!1}return!0}})}();var fh,ph={};!function(){if(fh)return ph;fh=1;var e=jn(),t=v(),n=le(),r=fe(),i=ge(),o=me(),s=od(),a=zn(),c=Se(),l=Is(),u=ws(),d=st(),h=Ze(),f=d("replace"),p=TypeError,g=n("".indexOf),m=n("".replace),_=n("".slice),E=Math.max;e({target:"String",proto:!0},{replaceAll:function(e,n){var d,v,w,y,I,L,C,A,S,b,N=r(this),T=0,k="";if(o(e)){if((d=s(e))&&(v=a(r(l(e))),!~g(v,"g")))throw new p("`.replaceAll` does not allow non-global regexes");if(w=c(e,f))return t(w,e,N,n);if(h&&d)return m(a(N),e,n)}for(y=a(N),I=a(e),(L=i(n))||(n=a(n)),C=I.length,A=E(1,C),S=g(y,I);-1!==S;)b=L?a(n(I,S,y)):u(I,y,S,[],void 0,n),k+=_(y,T,S)+b,T=S+C,S=S+A>y.length?-1:g(y,I,S+A);return T<y.length&&(k+=_(y,T)),k}})}();var gh,mh,_h,vh,Eh,wh,yh,Ih,Lh,Ch,Ah,Sh,bh,Nh,Th,kh,Oh,Rh,Ph,Dh,Mh,xh,Gh,Uh,Vh,Wh,Fh,jh,Bh={exports:{}};function zh(){if(mh)return gh;mh=1;var e=st()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}return gh=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var o={};o[e]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(e){}return i}}function Hh(){if(vh)return _h;vh=1;var e,t,n,r=fu(),i=m(),s=o(),a=ge(),c=me(),l=it(),u=Bn(),d=Ce(),h=Lt(),f=qt(),p=Ki(),g=ve(),_=Kr(),v=ii(),E=st(),w=ot(),y=zt(),I=y.enforce,L=y.get,C=s.Int8Array,A=C&&C.prototype,S=s.Uint8ClampedArray,b=S&&S.prototype,N=C&&_(C),T=A&&_(A),k=Object.prototype,O=s.TypeError,R=E("toStringTag"),P=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",M=r&&!!v&&"Opera"!==u(s.opera),x=!1,G={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},V=function(e){var t=_(e);if(c(t)){var n=L(t);return n&&l(n,D)?n[D]:V(t)}},W=function(e){if(!c(e))return!1;var t=u(e);return l(G,t)||l(U,t)};for(e in G)(n=(t=s[e])&&t.prototype)?I(n)[D]=t:M=!1;for(e in U)(n=(t=s[e])&&t.prototype)&&(I(n)[D]=t);if((!M||!a(N)||N===Function.prototype)&&(N=function(){throw new O("Incorrect invocation")},M))for(e in G)s[e]&&v(s[e],N);if((!M||!T||T===k)&&(T=N.prototype,M))for(e in G)s[e]&&v(s[e].prototype,T);if(M&&_(b)!==T&&v(b,T),i&&!l(T,R))for(e in x=!0,p(T,R,{configurable:!0,get:function(){return c(this)?this[P]:void 0}}),G)s[e]&&h(s[e],P,e);return _h={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:x&&P,aTypedArray:function(e){if(W(e))return e;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(e){if(a(e)&&(!v||g(N,e)))return e;throw new O(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(i){if(n)for(var o in G){var a=s[o];if(a&&l(a.prototype,e))try{delete a.prototype[e]}catch(n){try{a.prototype[e]=t}catch(e){}}}T[e]&&!n||f(T,e,n?t:M&&A[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(i){if(v){if(n)for(r in G)if((o=s[r])&&l(o,e))try{delete o[e]}catch(e){}if(N[e]&&!n)return;try{return f(N,e,n?t:M&&N[e]||t)}catch(e){}}for(r in G)!(o=s[r])||o[e]&&!n||f(o,e,t)}},getTypedArrayConstructor:V,isView:function(e){if(!c(e))return!1;var t=u(e);return"DataView"===t||l(G,t)||l(U,t)},isTypedArray:W,TypedArray:N,TypedArrayPrototype:T},_h}function qh(){if(wh)return Eh;wh=1;var e=o(),t=g(),n=zh(),r=Hh().NATIVE_ARRAY_BUFFER_VIEWS,i=e.ArrayBuffer,s=e.Int8Array;return Eh=!r||!t(function(){s(1)})||!t(function(){new s(-1)})||!n(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||t(function(){return 1!==new s(new i(2),1,void 0).length})}function Qh(){if(Ih)return yh;Ih=1;var e=me(),t=Math.floor;return yh=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&t(n)===n}}function $h(){if(Ch)return Lh;Ch=1;var e=hn(),t=RangeError;return Lh=function(n){var r=e(n);if(r<0)throw new t("The argument can't be less than 0");return r}}function Yh(){if(Sh)return Ah;Sh=1;var e=$h(),t=RangeError;return Ah=function(n,r){var i=e(n);if(i%r)throw new t("Wrong offset");return i},Ah}function Jh(){if(Nh)return bh;Nh=1;var e=Math.round;return bh=function(t){var n=e(t);return n<0?0:n>255?255:255&n}}function Kh(){if(kh)return Th;kh=1;var e=no(),t=Ce(),n=TypeError;return Th=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Xh(){if(Rh)return Oh;Rh=1;var e=Bn();return Oh=function(t){var n=e(t);return"BigInt64Array"===n||"BigUint64Array"===n}}function Zh(){if(Dh)return Ph;Dh=1;var e=at(),t=TypeError;return Ph=function(n){var r=e(n,"number");if("number"==typeof r)throw new t("Can't convert number to bigint");return BigInt(r)}}function ef(){if(xh)return Mh;xh=1;var e=Ji(),t=v(),n=Kh(),r=rt(),i=gn(),o=oo(),s=io(),a=to(),c=Xh(),l=Hh().aTypedArrayConstructor,u=Zh();return Mh=function(d){var h,f,p,g,m,_,v,E,w=n(this),y=r(d),I=arguments.length,L=I>1?arguments[1]:void 0,C=void 0!==L,A=s(y);if(A&&!a(A))for(E=(v=o(y,A)).next,y=[];!(_=t(E,v)).done;)y.push(_.value);for(C&&I>2&&(L=e(L,arguments[2])),f=i(y),p=new(l(w))(f),g=c(p),h=0;f>h;h++)m=C?L(y[h],h):y[h],p[h]=g?u(m):+m;return p},Mh}function tf(){if(Wh)return Vh;Wh=1;var e=gn();return Vh=function(t,n,r){for(var i=0,o=arguments.length>2?r:e(n),s=new t(o);o>i;)s[i]=n[i++];return s},Vh}function nf(){if(Fh)return Bh.exports;Fh=1;var e=jn(),t=o(),n=v(),r=m(),i=qh(),s=Hh(),a=_u(),c=Xi(),l=ce(),u=Lt(),d=Qh(),h=pn(),f=pu(),p=Yh(),g=Jh(),_=ct(),E=it(),w=Bn(),y=me(),I=Le(),L=ur(),C=ve(),A=ii(),S=vn().f,b=ef(),N=function(){if(Uh)return Gh;Uh=1;var e=Ji(),t=le(),n=de(),r=rt(),i=gn(),o=rl(),s=t([].push),a=function(t){var a=1===t,c=2===t,l=3===t,u=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,g,m,_){for(var v,E,w=r(p),y=n(w),I=i(y),L=e(g,m),C=0,A=_||o,S=a?A(p,I):c||h?A(p,0):void 0;I>C;C++)if((f||C in y)&&(E=L(v=y[C],C,w),t))if(a)S[C]=E;else if(E)switch(t){case 3:return!0;case 5:return v;case 6:return C;case 2:s(S,v)}else switch(t){case 4:return!1;case 7:s(S,v)}return d?-1:l||u?u:S}};return Gh={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,T=vu(),k=Ki(),O=It(),R=dt(),P=tf(),D=zt(),M=Ja(),x=D.get,G=D.set,U=D.enforce,V=O.f,W=R.f,F=t.RangeError,j=a.ArrayBuffer,B=j.prototype,z=a.DataView,H=s.NATIVE_ARRAY_BUFFER_VIEWS,q=s.TYPED_ARRAY_TAG,Q=s.TypedArray,$=s.TypedArrayPrototype,Y=s.isTypedArray,J="BYTES_PER_ELEMENT",K="Wrong length",X=function(e,t){k(e,t,{configurable:!0,get:function(){return x(this)[t]}})},Z=function(e){var t;return C(B,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Y(e)&&!I(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=_(t),ee(e,t)?l(2,e[t]):W(e,t)},ne=function(e,t,n){return t=_(t),!(ee(e,t)&&y(n)&&E(n,"value"))||E(n,"get")||E(n,"set")||n.configurable||E(n,"writable")&&!n.writable||E(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};return r?(H||(R.f=te,O.f=ne,X($,"buffer"),X($,"byteOffset"),X($,"byteLength"),X($,"length")),e({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),Bh.exports=function(r,o,s){var a=r.match(/\d+/)[0]/8,l=r+(s?"Clamped":"")+"Array",d="get"+r,m="set"+r,_=t[l],v=_,E=v&&v.prototype,w={},I=function(e,t){V(e,t,{get:function(){return function(e,t){var n=x(e);return n.view[d](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=x(e);r.view[m](t*a+r.byteOffset,s?g(n):n,!0)}(this,t,e)},enumerable:!0})};H?i&&(v=o(function(e,t,r,i){return c(e,E),M(y(t)?Z(t)?void 0!==i?new _(t,p(r,a),i):void 0!==r?new _(t,p(r,a)):new _(t):Y(t)?P(v,t):n(b,v,t):new _(f(t)),e,v)}),A&&A(v,Q),N(S(_),function(e){e in v||u(v,e,_[e])}),v.prototype=E):(v=o(function(e,t,r,i){c(e,E);var o,s,l,u=0,d=0;if(y(t)){if(!Z(t))return Y(t)?P(v,t):n(b,v,t);o=t,d=p(r,a);var g=t.byteLength;if(void 0===i){if(g%a)throw new F(K);if((s=g-d)<0)throw new F(K)}else if((s=h(i)*a)+d>g)throw new F(K);l=s/a}else l=f(t),o=new j(s=l*a);for(G(e,{buffer:o,byteOffset:d,byteLength:s,length:l,view:new z(o)});u<l;)I(e,u++)}),A&&A(v,Q),E=v.prototype=L($)),E.constructor!==v&&u(E,"constructor",v),U(E).TypedArrayConstructor=v,q&&u(E,q,l);var C=v!==_;w[l]=v,e({global:!0,constructor:!0,forced:C,sham:!H},w),J in v||u(v,J,a),J in E||u(E,J,a),T(l)}):Bh.exports=function(){},Bh.exports}jh||(jh=1,nf()("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}}));var rf,of={};!function(){if(rf)return of;rf=1;var e=Hh(),t=gn(),n=hn(),r=e.aTypedArray;(0,e.exportTypedArrayMethod)("at",function(e){var i=r(this),o=t(i),s=n(e),a=s>=0?s:o+s;return a<0||a>=o?void 0:i[a]})}();var sf,af={};!function(){if(sf)return af;sf=1;var e=Hh(),t=mu(),n=Zh(),r=Bn(),i=v(),o=le(),s=g(),a=e.aTypedArray,c=e.exportTypedArrayMethod,l=o("".slice);c("fill",function(e){var o=arguments.length;a(this);var s="Big"===l(r(this),0,3)?n(e):+e;return i(t,this,s,o>1?arguments[1]:void 0,o>2?arguments[2]:void 0)},s(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))}();var cf,lf,uf,df={};function hf(){if(lf)return cf;lf=1;var e=Ji(),t=de(),n=rt(),r=gn(),i=function(i){var o=1===i;return function(s,a,c){for(var l,u=n(s),d=t(u),h=r(d),f=e(a,c);h-- >0;)if(f(l=d[h],h,u))switch(i){case 0:return l;case 1:return h}return o?-1:void 0}};return cf={findLast:i(0),findLastIndex:i(1)}}!function(){if(uf)return df;uf=1;var e=Hh(),t=hf().findLast,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLast",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var ff,pf={};!function(){if(ff)return pf;ff=1;var e=Hh(),t=hf().findLastIndex,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLastIndex",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var gf,mf={};!function(){if(gf)return mf;gf=1;var e=o(),t=v(),n=Hh(),r=gn(),i=Yh(),s=rt(),a=g(),c=e.RangeError,l=e.Int8Array,u=l&&l.prototype,d=u&&u.set,h=n.aTypedArray,f=n.exportTypedArrayMethod,p=!a(function(){var e=new Uint8ClampedArray(2);return t(d,e,{length:1,0:3},1),3!==e[1]}),m=p&&n.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var e=new l(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});f("set",function(e){h(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=s(e);if(p)return t(d,this,o,n);var a=this.length,l=r(o),u=0;if(l+n>a)throw new c("Wrong length");for(;u<l;)this[n+u]=o[u++]},!p||m)}();var _f,vf,Ef,wf,yf,If,Lf,Cf={};function Af(){if(vf)return _f;vf=1;var e=Ee().match(/firefox\/(\d+)/i);return _f=!!e&&+e[1]}function Sf(){if(wf)return Ef;wf=1;var e=Ee();return Ef=/MSIE|Trident/.test(e)}function bf(){if(If)return yf;If=1;var e=Ee().match(/AppleWebKit\/(\d+)\./);return yf=!!e&&+e[1]}!function(){if(Lf)return Cf;Lf=1;var e=o(),t=Yi(),n=g(),r=Ae(),i=Co(),s=Hh(),a=Af(),c=Sf(),l=we(),u=bf(),d=s.aTypedArray,h=s.exportTypedArrayMethod,f=e.Uint16Array,p=f&&t(f.prototype.sort),m=!(!p||n(function(){p(new f(2),null)})&&n(function(){p(new f(2),{})})),_=!!p&&!n(function(){if(l)return l<74;if(a)return a<67;if(c)return!0;if(u)return u<602;var e,t,n=new f(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(p(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});h("sort",function(e){return void 0!==e&&r(e),_?p(this,e):i(d(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))},!_||m)}();var Nf,Tf,kf,Of={};function Rf(){if(Tf)return Nf;Tf=1;var e=gn();return Nf=function(t,n){for(var r=e(t),i=new n(r),o=0;o<r;o++)i[o]=t[r-o-1];return i},Nf}!function(){if(kf)return Of;kf=1;var e=Rf(),t=Hh(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r("toReversed",function(){return e(n(this),i(this))})}();var Pf,Df={};!function(){if(Pf)return Df;Pf=1;var e=Hh(),t=le(),n=Ae(),r=tf(),i=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod,a=t(e.TypedArrayPrototype.sort);s("toSorted",function(e){void 0!==e&&n(e);var t=i(this),s=r(o(t),t);return a(s,e)})}();var Mf,xf,Gf,Uf={};function Vf(){if(xf)return Mf;xf=1;var e=gn(),t=hn(),n=RangeError;return Mf=function(r,i,o,s){var a=e(r),c=t(o),l=c<0?a+c:c;if(l>=a||l<0)throw new n("Incorrect index");for(var u=new i(a),d=0;d<a;d++)u[d]=d===l?s:r[d];return u},Mf}!function(){if(Gf)return Uf;Gf=1;var e=Vf(),t=Hh(),n=Xh(),r=hn(),i=Zh(),o=t.aTypedArray,s=t.getTypedArrayConstructor,a=t.exportTypedArrayMethod,c=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),l=c&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();a("with",{with:function(t,a){var c=o(this),l=r(t),u=n(c)?i(a):+a;return e(c,s(c),l,u)}}.with,!c||l)}();const Wf=((e,t)=>{const n=new Uint32Array(69632);let r=0,i=0;for(;r<2597;){const o=e[r++];if(o<0)i-=o;else{let s=e[r++];2&o&&(s=t[s]),1&o?n.fill(s,i,i+=e[r++]):n[i++]=s}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,61,2,62,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,63,2,0,0,4294836735,0,3221225471,0,4294901942,2,64,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,58,2,7,2,6,0,4286643967,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,0,65472,2,3,0,4093640191,0,929054175,0,65487,0,4294828015,0,4092591615,0,1885355487,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,69,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,70,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,9,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2151677951,2,29,2,10,0,909311,3,0,2,0,814743551,2,48,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,108,2,51,2,0,2,79,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,9,2,18,3,0,2,2,53,0,1046528,3,0,3,2,10,2,0,2,127,0,4294960127,2,9,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,0,12288,2,54,0,1048577,2,84,2,14,-1,2,14,0,131042,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,88,2,2,0,-16,2,89,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,2,18,2,0,0,3220242431,3,0,3,2,19,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,2,0,0,4351,2,0,2,10,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,10,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,99,2,100,2,22,2,23,3,0,3,0,67057663,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,2,25,0,1638399,0,57344,2,107,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-3,0,536870912,-4,2,20,2,0,2,36,0,1,2,0,2,65,2,6,2,12,2,9,2,0,2,113,-1,3,0,4,2,9,2,23,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,125,0,4227858432,2,20,2,43,2,36,2,17,2,37,2,17,2,124,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,145,2,0,2,56,2,55,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,59,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,133,0,4190109695,2,52,-2,2,134,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,66,2,17,2,0,2,42,-3,2,31,-2,2,0,2,45,2,57,2,44,2,45,2,135,2,46,0,8388351,-2,2,136,0,3028287487,2,47,2,138,0,33259519,2,23,2,7,2,48,-7,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,8323099,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,0,4294954999,2,0,-16,2,0,2,90,2,0,0,2105343,0,4160749584,0,65534,-34,2,8,2,155,-6,0,4194303871,0,4294903771,2,0,2,58,2,98,-3,2,0,0,1073684479,0,17407,-9,2,17,2,49,2,0,2,32,-14,2,17,2,32,-6,2,17,2,12,-6,2,8,0,3225419775,-7,2,156,3,0,6,0,8323103,-1,3,0,2,2,59,-37,2,60,2,157,2,158,2,159,2,160,2,161,-105,2,26,-32,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-22116,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,61,2,62,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,63,2,0,2,34,-1,2,17,2,64,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,65,3,0,2,0,131135,2,96,0,70256639,0,71303167,0,272,2,42,2,6,0,65279,2,0,2,48,-1,2,97,2,66,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,68,2,67,0,33554435,2,131,2,68,0,2952790016,0,131075,0,3594373096,0,67094296,2,67,-1,0,4294828e3,0,603979263,0,922746880,0,3,0,4294828001,0,602930687,0,1879048192,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,69,2,38,-1,2,4,0,917503,2,38,-1,2,70,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,71,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2147745791,3,19,2,0,122879,2,0,2,10,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,17,2,51,2,0,2,79,2,48,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,10,0,8160,-1,2,126,0,4227907585,2,0,2,37,2,0,2,50,0,4227915776,2,9,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,-3,2,84,2,14,-3,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,88,2,-17,2,89,0,524157950,2,4,2,0,2,90,2,4,2,0,2,22,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,0,3072,2,0,0,2147516415,2,9,3,0,2,2,25,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,0,4294965179,0,7,2,0,2,10,2,93,2,10,-1,0,1761345536,2,96,0,4294901823,2,38,2,20,2,97,2,35,2,98,0,2080440287,2,0,2,34,2,154,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,99,2,100,2,22,2,23,3,0,3,0,7,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,-3,2,107,3,0,3,2,20,-1,3,5,2,2,108,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,65,2,6,2,30,2,9,2,0,2,113,-1,3,0,4,2,9,2,17,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,124,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,96,0,4294934591,2,37,-7,2,0,0,197631,2,125,-1,2,20,2,43,2,37,2,17,0,3,2,17,2,124,2,21,2,126,2,127,-1,0,2490368,2,126,2,25,2,17,2,34,2,126,2,38,0,4294901904,0,4718591,2,126,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,68,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,49,0,251658240,-1,2,0,2,25,0,16,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,18,-3,3,0,2,2,54,2,133,0,2147549183,0,2,-2,2,134,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,17,2,0,2,42,-6,2,0,0,1,2,57,2,49,0,1,2,135,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,2,17,2,7,-8,2,35,0,4294836212,2,10,-3,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,9,-55,3,0,17,2,42,2,8,2,17,2,0,2,8,2,17,2,58,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,71,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,67583,-1,2,105,-2,0,8126475,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,2,145,-187,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,2,154,-57,2,8,2,155,-7,2,17,2,0,2,58,-4,2,0,0,1065361407,0,16384,-9,2,17,2,58,2,0,2,18,-14,2,17,2,18,-6,2,17,0,81919,-6,2,8,0,3223273399,-7,2,156,3,0,6,2,124,-1,3,0,2,0,2063,-37,2,60,2,157,2,158,2,159,2,160,2,161,-138,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-28252],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1073741823,1048575,3892314111,134217727,1061158911,536805376,4294910143,4294901759,4294901760,4095,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294770687,67043583,1023,32767,15,2047999,67043343,67051519,2147483648,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,4294836224,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,252,4294967288,16777215,4294705151,3221208447,4294902271,4294549472,4294921215,4285526655,4294966527,4294705152,4294966143,64,4294966719,3774873592,4194303999,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901761]),Ff=e=>!!(1&Wf[(e>>>5)+34816]>>>e),jf=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Bf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],zf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Hf(e){return e<=127?Bf[e]>0:Ff(e)}function qf(e){return e<=127?zf[e]>0:(e=>!!(1&Wf[(e>>>5)+0]>>>e))(e)||8204===e||8205===e}function Qf(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function $f(e){const t=e.currentChar;if(55296!=(64512&t))return 0;const n=e.source.charCodeAt(e.index+1);return 56320!=(64512&n)?0:65536+((1023&t)<<10)+(1023&n)}function Yf(e,t){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,4&t||(e.column=0,e.line++)}function Jf(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Kf(e){return 160===e||65279===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||8201===e||65519===e}function Xf(e){return e<65?e-48:e-65+10&15}function Zf(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return 143360&~e?4096&~e?"Punctuator":"Keyword":"Identifier"}}const ep=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function tp(e,t,n,r,i,o){return 2&r&&e.report(0),np(e,t,n,i,o)}function np(e,t,n,r,i){const{index:o}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index<e.end;){if(8&jf[e.currentChar]){const n=13===e.currentChar;Jf(e),n&&e.index<e.end&&10===e.currentChar&&(e.currentChar=t.charCodeAt(++e.index));break}if((8232^e.currentChar)<=1){Jf(e);break}Qf(e),e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column}if(e.options.onComment){const n={start:{line:i.line,column:i.column},end:{line:e.tokenLine,column:e.tokenColumn}};e.options.onComment(ep[255&r],t.slice(o,e.tokenIndex),i.index,e.tokenIndex,n)}return 1|n}function rp(e,t,n){const{index:r}=e;for(;e.index<e.end;)if(e.currentChar<43){let i=!1;for(;42===e.currentChar;)if(i||(n&=-5,i=!0),47===Qf(e)){if(Qf(e),e.options.onComment){const n={start:{line:e.tokenLine,column:e.tokenColumn},end:{line:e.line,column:e.column}};e.options.onComment(ep[1],t.slice(r,e.index-2),r-2,e.index,n)}return e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column,n}if(i)continue;8&jf[e.currentChar]?13===e.currentChar?(n|=5,Jf(e)):(Yf(e,n),n=-5&n|1):Qf(e)}else(8232^e.currentChar)<=1?(n=-5&n|1,Jf(e)):(n&=-5,Qf(e));e.report(18)}const ip={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'};class op extends SyntaxError{constructor(e,t,n,...r){const i=ip[n].replace(/%(\d+)/g,(e,t)=>r[t]);super("["+e.line+":"+e.column+"-"+t.line+":"+t.column+"]: "+i),Qo(this,"start",void 0),Qo(this,"end",void 0),Qo(this,"range",void 0),Qo(this,"loc",void 0),Qo(this,"description",void 0),this.start=e.index,this.end=t.index,this.range=[e.index,t.index],this.loc={start:{line:e.line,column:e.column},end:{line:t.line,column:t.column}},this.description=i}}function sp(e,t){return Object.hasOwn(e,t)?e[t]:void 0}const ap=["end of source","identifier","number","string","regular expression","false","true","null","template continuation","template tail","=>","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],cp={this:86111,function:86104,if:20569,return:20572,var:86088,else:20563,for:20567,new:86107,in:8673330,typeof:16863275,while:20578,case:20556,break:20555,try:20577,catch:20557,delete:16863276,throw:86112,switch:86110,continue:20559,default:20561,instanceof:8411187,do:20562,void:16863277,finally:20566,async:209005,await:209006,class:86094,const:86090,constructor:12399,debugger:20560,export:20564,extends:20565,false:86021,from:209011,get:209008,implements:36964,import:86106,interface:36965,let:241737,null:86023,of:471156,package:36966,private:36967,protected:36968,public:36969,set:209009,static:36970,super:86109,true:86022,with:20579,yield:241771,enum:86133,eval:537079926,as:77932,arguments:537079927,target:209029,meta:209030,accessor:12402};function lp(e,t,n){for(var r;zf[Qf(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),92!==e.currentChar&&e.currentChar<=126?null!==(r=sp(cp,e.tokenValue))&&void 0!==r?r:208897:dp(e,t,0,n)}function up(e,t){const n=fp(e);return Hf(n)||e.report(5),e.tokenValue=String.fromCodePoint(n),dp(e,t,1,4&jf[n])}function dp(e,t,n,r){let i=e.index;for(;e.index<e.end;)if(92===e.currentChar){e.tokenValue+=e.source.slice(i,e.index),n=1;const t=fp(e);qf(t)||e.report(5),r=r&&4&jf[t],e.tokenValue+=String.fromCodePoint(t),i=e.index}else{const t=$f(e);if(t>0)qf(t)||e.report(20,String.fromCodePoint(t)),e.currentChar=t,e.index++,e.column++;else if(!qf(e.currentChar))break;Qf(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(i,e.index));const{length:o}=e.tokenValue;if(r&&o>=2&&o<=11){const r=sp(cp,e.tokenValue);return void 0===r?208897|(n?-2147483648:0):n?209006===r?2050&t?-2147483528:-2147483648|r:1&t?36970===r?-2147483527:36864&~r?20480&~r?-2147274630:262144&t&&!(8&t)?-2147483648|r:-2147483528:-2147483527:!(262144&t)||8&t||20480&~r?241771===r?262144&t?-2147274630:1024&t?-2147483528:-2147483648|r:209005===r?-2147274630:36864&~r?-2147483528:12288|r|-2147483648:-2147483648|r:r}return 208897|(n?-2147483648:0)}function hp(e){let t=Qf(e);if(92===t)return 130;const n=$f(e);return n&&(t=n),Hf(t)||e.report(96),130}function fp(e){return 117!==e.source.charCodeAt(e.index+1)&&e.report(5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,function(e){let t=0;const n=e.currentChar;if(123===n){const n=e.index-2;for(;64&jf[Qf(e)];)if(t=t<<4|Xf(e.currentChar),t>1114111)throw new op({index:n,line:e.line,column:e.column},e.currentLocation,104);if(125!==e.currentChar)throw new op({index:n,line:e.line,column:e.column},e.currentLocation,7);return Qf(e),t}64&jf[n]||e.report(7);const r=e.source.charCodeAt(e.index+1);64&jf[r]||e.report(7);const i=e.source.charCodeAt(e.index+2);64&jf[i]||e.report(7);const o=e.source.charCodeAt(e.index+3);return 64&jf[o]||e.report(7),t=Xf(n)<<12|Xf(r)<<8|Xf(i)<<4|Xf(o),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,t}(e)}function pp(e,t,n){let r=e.currentChar,i=0,o=9,s=64&n?0:1,a=0,c=0;if(64&n)i="."+gp(e,r),r=e.currentChar,110===r&&e.report(12);else{if(48===r)if(r=Qf(e),120==(32|r)){for(n=136,r=Qf(e);4160&jf[r];)95!==r?(c=1,i=16*i+Xf(r),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?21:153)}else if(111==(32|r)){for(n=132,r=Qf(e);4128&jf[r];)95!==r?(c=1,i=8*i+(r-48),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?0:153)}else if(98==(32|r)){for(n=130,r=Qf(e);4224&jf[r];)95!==r?(c=1,i=2*i+(r-48),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?0:153)}else if(32&jf[r])for(1&t&&e.report(1),n=1;16&jf[r];){if(512&jf[r]){n=32,s=0;break}i=8*i+(r-48),r=Qf(e)}else 512&jf[r]?(1&t&&e.report(1),e.flags|=64,n=32):95===r&&e.report(0);if(48&n){if(s){for(;o>=0&&4112&jf[r];)if(95!==r)c=0,i=10*i+(r-48),r=Qf(e),--o;else{if(r=Qf(e),95===r||32&n)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);c=1}if(c)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);if(o>=0&&!Hf(r)&&46!==r)return e.tokenValue=i,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}i+=gp(e,r),r=e.currentChar,46===r&&(95===Qf(e)&&e.report(0),n=64,i+="."+gp(e,e.currentChar),r=e.currentChar)}}const l=e.index;let u=0;if(110===r&&128&n)u=1,r=Qf(e);else if(101==(32|r)){r=Qf(e),256&jf[r]&&(r=Qf(e));const{index:t}=e;16&jf[r]||e.report(11),i+=e.source.substring(l,t)+gp(e,r),r=e.currentChar}return(e.index<e.end&&16&jf[r]||Hf(r))&&e.report(13),u?(e.tokenRaw=e.source.slice(e.tokenIndex,e.index),e.tokenValue=BigInt(e.tokenRaw.slice(0,-1).replaceAll("_","")),134283388):(e.tokenValue=15&n?i:32&n?parseFloat(e.source.substring(e.tokenIndex,e.index)):+i,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266)}function gp(e,t){let n=0,r=e.index,i="";for(;4112&jf[t];){if(95===t){const{index:o}=e;if(95===(t=Qf(e)))throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);n=1,i+=e.source.substring(r,o),r=e.index;continue}n=0,t=Qf(e)}if(n)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);return i+e.source.substring(r,e.index)}var mp,_p;function vp(e){const t=e.index;let n=mp.Empty;e:for(;;){const t=e.currentChar;if(Qf(e),n&mp.Escape)n&=~mp.Escape;else switch(t){case 47:if(n)break;break e;case 92:n|=mp.Escape;break;case 91:n|=mp.Class;break;case 93:n&=mp.Escape}if(13!==t&&10!==t&&8232!==t&&8233!==t||e.report(34),e.index>=e.source.length)return e.report(34)}const r=e.index-1;let i=_p.Empty,o=e.currentChar;const{index:s}=e;for(;qf(o);){switch(o){case 103:i&_p.Global&&e.report(36,"g"),i|=_p.Global;break;case 105:i&_p.IgnoreCase&&e.report(36,"i"),i|=_p.IgnoreCase;break;case 109:i&_p.Multiline&&e.report(36,"m"),i|=_p.Multiline;break;case 117:i&_p.Unicode&&e.report(36,"u"),i&_p.UnicodeSets&&e.report(36,"vu"),i|=_p.Unicode;break;case 118:i&_p.Unicode&&e.report(36,"uv"),i&_p.UnicodeSets&&e.report(36,"v"),i|=_p.UnicodeSets;break;case 121:i&_p.Sticky&&e.report(36,"y"),i|=_p.Sticky;break;case 115:i&_p.DotAll&&e.report(36,"s"),i|=_p.DotAll;break;case 100:i&_p.Indices&&e.report(36,"d"),i|=_p.Indices;break;default:e.report(35)}o=Qf(e)}const a=e.source.slice(s,e.index),c=e.source.slice(t,r);return e.tokenRegExp={pattern:c,flags:a},e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=function(e,t,n){try{return new RegExp(t,n)}catch(t){if(!e.options.validateRegex)return null;e.report(34)}}(e,c,a),65540}function Ep(e,t,n){const{index:r}=e;let i="",o=Qf(e),s=e.index;for(;!(8&jf[o]);){if(o===n)return i+=e.source.slice(s,e.index),Qf(e),e.options.raw&&(e.tokenRaw=e.source.slice(r,e.index)),e.tokenValue=i,134283267;if(8&~o||92!==o)8232!==o&&8233!==o||(e.column=-1,e.line++);else{if(i+=e.source.slice(s,e.index),o=Qf(e),o<127||8232===o||8233===o){const n=wp(e,t,o);n>=0?i+=String.fromCodePoint(n):yp(e,n,0)}else i+=String.fromCodePoint(o);s=e.index+1}e.index>=e.end&&e.report(16),o=Qf(e)}e.report(16)}function wp(e,t,n,r=0){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index<e.end){const t=e.source.charCodeAt(e.index+1);10===t&&(e.index=e.index+1,e.currentChar=t)}case 10:case 8232:case 8233:return e.column=-1,e.line++,-1;case 48:case 49:case 50:case 51:{let i=n-48,o=e.index+1,s=e.column+1;if(o<e.end){const n=e.source.charCodeAt(o);if(32&jf[n]){if(1&t||r)return-2;if(e.currentChar=n,i=i<<3|n-48,o++,s++,o<e.end){const t=e.source.charCodeAt(o);32&jf[t]&&(e.currentChar=t,i=i<<3|t-48,o++,s++)}e.flags|=64}else if(0!==i||512&jf[n]){if(1&t||r)return-2;e.flags|=64}e.index=o-1,e.column=s-1}return i}case 52:case 53:case 54:case 55:{if(r||1&t)return-2;let i=n-48;const o=e.index+1,s=e.column+1;if(o<e.end){const t=e.source.charCodeAt(o);32&jf[t]&&(i=i<<3|t-48,e.currentChar=t,e.index=o,e.column=s)}return e.flags|=64,i}case 120:{const t=Qf(e);if(!(64&jf[t]))return-4;const n=Xf(t),r=Qf(e);return 64&jf[r]?n<<4|Xf(r):-4}case 117:{const t=Qf(e);if(123===e.currentChar){let t=0;for(;64&jf[Qf(e)];)if(t=t<<4|Xf(e.currentChar),t>1114111)return-5;return e.currentChar<1||125!==e.currentChar?-4:t}{if(!(64&jf[t]))return-4;const n=e.source.charCodeAt(e.index+1);if(!(64&jf[n]))return-4;const r=e.source.charCodeAt(e.index+2);if(!(64&jf[r]))return-4;const i=e.source.charCodeAt(e.index+3);return 64&jf[i]?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),Xf(t)<<12|Xf(n)<<8|Xf(r)<<4|Xf(i)):-4}}case 56:case 57:if(r||!e.options.webcompat||1&t)return-3;e.flags|=4096;default:return n}}function yp(e,t,n){switch(t){case-1:return;case-2:e.report(n?2:1);case-3:e.report(n?3:14);case-4:e.report(7);case-5:e.report(104)}}function Ip(e,t){const{index:n}=e;let r=67174409,i="",o=Qf(e);for(;96!==o;){if(36===o&&123===e.source.charCodeAt(e.index+1)){Qf(e),r=67174408;break}if(92===o)if(o=Qf(e),o>126)i+=String.fromCodePoint(o);else{const{index:n,line:s,column:a}=e,c=wp(e,1|t,o,1);if(c>=0)i+=String.fromCodePoint(c);else{if(-1!==c&&64&t){e.index=n,e.line=s,e.column=a,i=null,o=Lp(e,o),o<0&&(r=67174408);break}yp(e,c,1)}}else e.index<e.end&&(13===o&&10===e.source.charCodeAt(e.index)&&(i+=String.fromCodePoint(o),e.currentChar=e.source.charCodeAt(++e.index)),((83&o)<3&&10===o||(8232^o)<=1)&&(e.column=-1,e.line++),i+=String.fromCodePoint(o));e.index>=e.end&&e.report(17),o=Qf(e)}return Qf(e),e.tokenValue=i,e.tokenRaw=e.source.slice(n+1,e.index-(67174409===r?1:2)),r}function Lp(e,t){for(;96!==t;){switch(t){case 36:{const n=e.index+1;if(n<e.end&&123===e.source.charCodeAt(n))return e.index=n,e.column++,-t;break}case 10:case 8232:case 8233:e.column=-1,e.line++}e.index>=e.end&&e.report(17),t=Qf(e)}return t}function Cp(e,t){return e.index>=e.end&&e.report(0),e.index--,e.column--,Ip(e,t)}!function(e){e[e.Empty=0]="Empty",e[e.Escape=1]="Escape",e[e.Class=2]="Class"}(mp||(mp={})),function(e){e[e.Empty=0]="Empty",e[e.IgnoreCase=1]="IgnoreCase",e[e.Global=2]="Global",e[e.Multiline=4]="Multiline",e[e.Unicode=16]="Unicode",e[e.Sticky=8]="Sticky",e[e.DotAll=32]="DotAll",e[e.Indices=64]="Indices",e[e.UnicodeSets=128]="UnicodeSets"}(_p||(_p={}));const Ap=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function Sp(e,t){e.flags=1^(1|e.flags),e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(bp(e,t,0))}function bp(e,t,n){const r=0===e.index,{source:i}=e;for(;e.index<e.end;){e.tokenIndex=e.index,e.tokenColumn=e.column,e.tokenLine=e.line;let o=e.currentChar;if(o<=126){const s=Ap[o];switch(s){case 67174411:case 16:case 2162700:case 1074790415:case 69271571:case 20:case 21:case 1074790417:case 18:case 16842799:case 132:case 128:return Qf(e),s;case 208897:return lp(e,t,0);case 4096:return lp(e,t,1);case 134283266:return pp(e,t,144);case 134283267:return Ep(e,t,o);case 131:return Ip(e,t);case 136:return up(e,t);case 130:return hp(e);case 127:Qf(e);break;case 129:n|=5,Jf(e);break;case 135:Yf(e,n),n=-5&n|1;break;case 8456256:{const r=Qf(e);if(e.index<e.end){if(60===r)return e.index<e.end&&61===Qf(e)?(Qf(e),4194332):8390978;if(61===r)return Qf(e),8390718;if(33===r){const r=e.index+1;if(r+1<e.end&&45===i.charCodeAt(r)&&45==i.charCodeAt(r+1)){e.column+=3,e.currentChar=i.charCodeAt(e.index+=3),n=tp(e,i,n,t,2,e.tokenStart);continue}return 8456256}}return 8456256}case 1077936155:{Qf(e);const t=e.currentChar;return 61===t?61===Qf(e)?(Qf(e),8390458):8390460:62===t?(Qf(e),10):1077936155}case 16842798:return 61!==Qf(e)?16842798:61!==Qf(e)?8390461:(Qf(e),8390459);case 8391477:return 61!==Qf(e)?8391477:(Qf(e),4194340);case 8391476:{if(Qf(e),e.index>=e.end)return 8391476;const t=e.currentChar;return 61===t?(Qf(e),4194338):42!==t?8391476:61!==Qf(e)?8391735:(Qf(e),4194335)}case 8389959:return 61!==Qf(e)?8389959:(Qf(e),4194341);case 25233968:{Qf(e);const t=e.currentChar;return 43===t?(Qf(e),33619993):61===t?(Qf(e),4194336):25233968}case 25233969:{Qf(e);const o=e.currentChar;if(45===o){if(Qf(e),(1&n||r)&&62===e.currentChar){e.options.webcompat||e.report(112),Qf(e),n=tp(e,i,n,t,3,e.tokenStart);continue}return 33619994}return 61===o?(Qf(e),4194337):25233969}case 8457014:if(Qf(e),e.index<e.end){const r=e.currentChar;if(47===r){Qf(e),n=np(e,i,n,0,e.tokenStart);continue}if(42===r){Qf(e),n=rp(e,i,n);continue}if(32&t)return vp(e);if(61===r)return Qf(e),4259875}return 8457014;case 67108877:{const n=Qf(e);if(n>=48&&n<=57)return pp(e,t,80);if(46===n){const t=e.index+1;if(t<e.end&&46===i.charCodeAt(t))return e.column+=2,e.currentChar=i.charCodeAt(e.index+=2),14}return 67108877}case 8389702:{Qf(e);const t=e.currentChar;return 124===t?(Qf(e),61===e.currentChar?(Qf(e),4194344):8913465):61===t?(Qf(e),4194342):8389702}case 8390721:{Qf(e);const t=e.currentChar;if(61===t)return Qf(e),8390719;if(62!==t)return 8390721;if(Qf(e),e.index<e.end){const t=e.currentChar;if(62===t)return 61===Qf(e)?(Qf(e),4194334):8390980;if(61===t)return Qf(e),4194333}return 8390979}case 8390213:{Qf(e);const t=e.currentChar;return 38===t?(Qf(e),61===e.currentChar?(Qf(e),4194345):8913720):61===t?(Qf(e),4194343):8390213}case 22:{let t=Qf(e);if(63===t)return Qf(e),61===e.currentChar?(Qf(e),4194346):276824445;if(46===t){const n=e.index+1;if(n<e.end&&(t=i.charCodeAt(n),!(t>=48&&t<=57)))return Qf(e),67108990}return 22}}}else{if((8232^o)<=1){n=-5&n|1,Jf(e);continue}const r=$f(e);if(r>0&&(o=r),Ff(o))return e.tokenValue="",dp(e,t,0,0);if(Kf(o)){Qf(e);continue}e.report(20,String.fromCodePoint(o))}}return 1048576}function Np(e,t){var n,r;!(1&e.flags)&&1048576&~e.getToken()&&e.report(30,ap[255&e.getToken()]),Op(e,t,1074790417)||null===(n=(r=e.options).onInsertedSemicolon)||void 0===n||n.call(r,e.startIndex)}function Tp(e,t,n,r){return t-n<13&&"use strict"===r&&(!(1048576&~e.getToken())||1&e.flags)?1:0}function kp(e,t,n){return e.getToken()!==n?0:(Sp(e,t),1)}function Op(e,t,n){return e.getToken()===n&&(Sp(e,t),!0)}function Rp(e,t,n){e.getToken()!==n&&e.report(25,ap[255&n]),Sp(e,t)}function Pp(e,t){switch(t.type){case"ArrayExpression":{t.type="ArrayPattern";const{elements:n}=t;for(let t=0,r=n.length;t<r;++t){const r=n[t];r&&Pp(e,r)}return}case"ObjectExpression":{t.type="ObjectPattern";const{properties:n}=t;for(let t=0,r=n.length;t<r;++t)Pp(e,n[t]);return}case"AssignmentExpression":return t.type="AssignmentPattern","="!==t.operator&&e.report(71),delete t.operator,void Pp(e,t.left);case"Property":return void Pp(e,t.value);case"SpreadElement":t.type="RestElement",Pp(e,t.argument)}}function Dp(e,t,n,r,i){1&t&&(36864&~r||e.report(118),i||537079808&~r||e.report(119)),20480&~r&&-2147483528!==r||e.report(102),24&n&&73==(255&r)&&e.report(100),2050&t&&209006===r&&e.report(110),1025&t&&241771===r&&e.report(97,"yield")}function Mp(e,t,n){1&t&&(36864&~n||e.report(118),537079808&~n||e.report(119),-2147483527===n&&e.report(95),-2147483528===n&&e.report(95)),20480&~n||e.report(102),2050&t&&209006===n&&e.report(110),1025&t&&241771===n&&e.report(97,"yield")}function xp(e,t,n){return 209006===n&&(2050&t&&e.report(110),e.destructible|=128),241771===n&&1024&t&&e.report(97,"yield"),!(20480&~n&&36864&~n&&-2147483527!=n)}function Gp(e,t,n,r){for(;t;){if(t["$"+n])return r&&e.report(137),1;r&&t.loop&&(r=0),t=t.$}return 0}function Up(e){switch(e.type){case"JSXIdentifier":return e.name;case"JSXNamespacedName":return e.namespace+":"+e.name;case"JSXMemberExpression":return Up(e.object)+"."+Up(e.property)}}function Vp(e,t){return 1025&e?!(2&e&&209006===t||1024&e&&241771===t||12288&~t):!(12288&~t&&36864&~t)}function Wp(e,t,n){537079808&~n||(1&t&&e.report(119),e.flags|=512),Vp(t,n)||e.report(0)}const Fp={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jp={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};function Bp(e){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end)return void e.setToken(1048576);if(60===e.currentChar)return Qf(e),void e.setToken(8456256);if(123===e.currentChar)return Qf(e),void e.setToken(2162700);let t=0;for(;e.index<e.end;){const n=jf[e.source.charCodeAt(e.index)];if(1024&n?(t|=5,Jf(e)):2048&n?(Yf(e,t),t=-5&t|1):Qf(e),16384&jf[e.currentChar])break}e.tokenIndex===e.index&&e.report(0);const n=e.source.slice(e.tokenIndex,e.index);e.options.raw&&(e.tokenRaw=n),e.tokenValue=function(e){return e.replace(/&(?:[a-zA-Z]+|#[xX][\da-fA-F]+|#\d+);/g,e=>{var t,n,r;if("#"===e.charAt(1)){const t=e.charAt(2);return(n="X"===t||"x"===t?parseInt(e.slice(3),16):parseInt(e.slice(2),10))>=55296&&n<=57343||n>1114111?"�":String.fromCodePoint(null!==(r=sp(jp,n))&&void 0!==r?r:n)}return null!==(t=sp(Fp,e.slice(1,-1)))&&void 0!==t?t:e})}(n),e.setToken(137)}function zp(e){if(!(143360&~e.getToken())){const{index:t}=e;let n=e.currentChar;for(;32770&jf[n];)n=Qf(e);e.tokenValue+=e.source.slice(t,e.index),e.setToken(208897,!0)}return e.getToken()}class Hp{constructor(e,t){Qo(this,"parser",void 0),Qo(this,"parent",void 0),Qo(this,"refs",Object.create(null)),Qo(this,"privateIdentifiers",new Map),this.parser=e,this.parent=t}addPrivateIdentifier(e,t){const{privateIdentifiers:n}=this;let r=800&t;768&r||(r|=768);const i=n.get(e);this.hasPrivateIdentifier(e)&&((32&i)!=(32&r)||i&r&768)&&this.parser.report(146,e),n.set(e,this.hasPrivateIdentifier(e)?i|r:r)}addPrivateIdentifierRef(e){var t,n;null!==(n=(t=this.refs)[e])&&void 0!==n||(t[e]=[]),this.refs[e].push(this.parser.tokenStart)}isPrivateIdentifierDefined(e){var t;return this.hasPrivateIdentifier(e)||Boolean(null===(t=this.parent)||void 0===t?void 0:t.isPrivateIdentifierDefined(e))}validatePrivateIdentifierRefs(){for(const e in this.refs)if(!this.isPrivateIdentifierDefined(e)){const{index:t,line:n,column:r}=this.refs[e][0];throw new op({index:t,line:n,column:r},{index:t+e.length,line:n,column:r+e.length},4,e)}}hasPrivateIdentifier(e){return this.privateIdentifiers.has(e)}}class qp{constructor(e,t=2,n){Qo(this,"parser",void 0),Qo(this,"type",void 0),Qo(this,"parent",void 0),Qo(this,"scopeError",void 0),Qo(this,"variableBindings",new Map),this.parser=e,this.type=t,this.parent=n}createChildScope(e){return new qp(this.parser,e,this)}addVarOrBlock(e,t,n,r){4&n?this.addVarName(e,t,n):this.addBlockName(e,t,n,r),64&r&&this.parser.declareUnboundVariable(t)}addVarName(e,t,n){const{parser:r}=this;let i=this;for(;i&&!(128&i.type);){const{variableBindings:o}=i,s=o.get(t);s&&248&s&&(!r.options.webcompat||1&e||!(128&n&&68&s||128&s&&68&n))&&r.report(145,t),i===this&&s&&1&s&&1&n&&i.recordScopeError(145,t),s&&(256&s||512&s&&!r.options.webcompat)&&r.report(145,t),i.variableBindings.set(t,n),i=i.parent}}hasVariable(e){return this.variableBindings.has(e)}addBlockName(e,t,n,r){var i;const{parser:o}=this,s=this.variableBindings.get(t);!s||2&s||(1&n?this.recordScopeError(145,t):o.options.webcompat&&!(1&e)&&2&r&&64===s&&64===n||o.report(145,t)),64&this.type&&null!==(i=this.parent)&&void 0!==i&&i.hasVariable(t)&&!(2&this.parent.variableBindings.get(t))&&o.report(145,t),512&this.type&&s&&!(2&s)&&1&n&&this.recordScopeError(145,t),32&this.type&&768&this.parent.variableBindings.get(t)&&o.report(159,t),this.variableBindings.set(t,n)}recordScopeError(e,...t){this.scopeError={type:e,params:t,start:this.parser.tokenStart,end:this.parser.currentLocation}}reportScopeError(){const{scopeError:e}=this;if(e)throw new op(e.start,e.end,e.type,...e.params)}}function Qp(e,t,n){const r=e.createScope().createChildScope(512);return r.addBlockName(t,n,1,0),r}class $p{constructor(e,t={}){var n,r;Qo(this,"source",void 0),Qo(this,"lastOnToken",null),Qo(this,"options",void 0),Qo(this,"token",1048576),Qo(this,"flags",0),Qo(this,"index",0),Qo(this,"line",1),Qo(this,"column",0),Qo(this,"startIndex",0),Qo(this,"end",0),Qo(this,"tokenIndex",0),Qo(this,"startColumn",0),Qo(this,"tokenColumn",0),Qo(this,"tokenLine",1),Qo(this,"startLine",1),Qo(this,"tokenValue",""),Qo(this,"tokenRaw",""),Qo(this,"tokenRegExp",void 0),Qo(this,"currentChar",0),Qo(this,"exportedNames",new Set),Qo(this,"exportedBindings",new Set),Qo(this,"assignable",1),Qo(this,"destructible",0),Qo(this,"leadingDecorators",{decorators:[]}),this.source=e,this.end=e.length,this.currentChar=e.charCodeAt(0),this.options=function(e){const t=Yo({validateRegex:!0},e);return t.module&&!t.sourceType&&(t.sourceType="module"),!t.globalReturn||t.sourceType&&"script"!==t.sourceType||(t.sourceType="commonjs"),t}(t),Array.isArray(this.options.onComment)&&(this.options.onComment=(n=this.options.onComment,r=this.options,function(e,t,i,o,s){const a={type:e,value:t};r.ranges&&(a.start=i,a.end=o,a.range=[i,o]),r.loc&&(a.loc=s),n.push(a)})),Array.isArray(this.options.onToken)&&(this.options.onToken=function(e,t){return function(n,r,i,o){const s={token:n};t.ranges&&(s.start=r,s.end=i,s.range=[r,i]),t.loc&&(s.loc=o),e.push(s)}}(this.options.onToken,this.options))}getToken(){return this.token}setToken(e,t=!1){this.token=e;const{onToken:n}=this.options;if(n)if(1048576!==e){const r={start:{line:this.tokenLine,column:this.tokenColumn},end:{line:this.line,column:this.column}};!t&&this.lastOnToken&&n(...this.lastOnToken),this.lastOnToken=[Zf(e),this.tokenIndex,this.index,r]}else this.lastOnToken&&(n(...this.lastOnToken),this.lastOnToken=null);return e}get tokenStart(){return{index:this.tokenIndex,line:this.tokenLine,column:this.tokenColumn}}get currentLocation(){return{index:this.index,line:this.line,column:this.column}}finishNode(e,t,n){if(this.options.ranges){e.start=t.index;const r=n?n.index:this.startIndex;e.end=r,e.range=[t.index,r]}return this.options.loc&&(e.loc={start:{line:t.line,column:t.column},end:n?{line:n.line,column:n.column}:{line:this.startLine,column:this.startColumn}},this.options.source&&(e.loc.source=this.options.source)),e}addBindingToExports(e){this.exportedBindings.add(e)}declareUnboundVariable(e){const{exportedNames:t}=this;t.has(e)&&this.report(147,e),t.add(e)}report(e,...t){throw new op(this.tokenStart,this.currentLocation,e,...t)}createScopeIfLexical(e,t){if(this.options.lexical)return this.createScope(e,t)}createScope(e,t){return new qp(this,e,t)}createPrivateScopeIfLexical(e){if(this.options.lexical)return new Hp(this,e)}cloneIdentifier(e){return this.cloneLocationInformation(Yo({},e),e)}cloneStringLiteral(e){return this.cloneLocationInformation(Yo({},e),e)}cloneLocationInformation(e,t){return this.options.ranges&&(e.range=[...t.range]),this.options.loc&&(e.loc=Yo(Yo({},t.loc),{},{start:Yo({},t.loc.start),end:Yo({},t.loc.end)})),e}}function Yp(e,t,n){var r;let i;switch(132===e.getToken()&&Object.assign(e.leadingDecorators,{start:e.tokenStart,decorators:rm(e,t,void 0)}),e.getToken()){case 20564:i=function(e,t,n){const r=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;Sp(e,32|t);const i=[];let o=null,s=null,a=[];if(Op(e,32|t,20561)){switch(e.getToken()){case 86104:o=Wg(e,t,n,void 0,4,1,1,0,e.tokenStart);break;case 132:case 86094:o=nm(e,t,n,void 0,1);break;case 209005:{const{tokenStart:r}=e;o=Ug(e,t);const{flags:i}=e;1&i||(86104===e.getToken()?o=Wg(e,t,n,void 0,4,1,1,1,r):67174411===e.getToken()?(o=tm(e,t,void 0,o,1,1,0,i,r),o=Lg(e,t,void 0,o,0,0,r),o=_g(e,t,void 0,0,0,r,o)):143360&e.getToken()&&(n&&(n=Qp(e,t,e.tokenValue)),o=Ug(e,t),o=Kg(e,t,n,void 0,[o],1,r)));break}default:o=pg(e,t,void 0,1,0,e.tokenStart),Np(e,32|t)}return n&&e.declareUnboundVariable("default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:o},r)}switch(e.getToken()){case 8391476:{Sp(e,t);let i=null;Op(e,t,77932)&&(n&&e.declareUnboundVariable(e.tokenValue),i=Og(e,t)),Rp(e,t,209011),134283267!==e.getToken()&&e.report(105,"Export"),s=Vg(e,t);const o={type:"ExportAllDeclaration",source:s,exported:i,attributes:Ng(e,t)};return Np(e,32|t),e.finishNode(o,r)}case 2162700:{Sp(e,t);const r=[],o=[];let c=0;for(;143360&e.getToken()||134283267===e.getToken();){const{tokenStart:s,tokenValue:a}=e,l=Og(e,t);let u;"Literal"===l.type&&(c=1),77932===e.getToken()?(Sp(e,t),143360&e.getToken()||134283267===e.getToken()||e.report(106),n&&(r.push(e.tokenValue),o.push(a)),u=Og(e,t)):(n&&(r.push(e.tokenValue),o.push(e.tokenValue)),u="Literal"===l.type?e.cloneStringLiteral(l):e.cloneIdentifier(l)),i.push(e.finishNode({type:"ExportSpecifier",local:l,exported:u},s)),1074790415!==e.getToken()&&Rp(e,t,18)}Rp(e,t,1074790415),Op(e,t,209011)?(134283267!==e.getToken()&&e.report(105,"Export"),s=Vg(e,t),a=Ng(e,t),n&&r.forEach(t=>e.declareUnboundVariable(t))):(c&&e.report(172),n&&(r.forEach(t=>e.declareUnboundVariable(t)),o.forEach(t=>e.addBindingToExports(t)))),Np(e,32|t);break}case 132:case 86094:o=nm(e,t,n,void 0,2);break;case 86104:o=Wg(e,t,n,void 0,4,1,2,0,e.tokenStart);break;case 241737:o=og(e,t,n,void 0,8,64);break;case 86090:o=og(e,t,n,void 0,16,64);break;case 86088:o=sg(e,t,n,void 0,64);break;case 209005:{const{tokenStart:r}=e;if(Sp(e,t),!(1&e.flags)&&86104===e.getToken()){o=Wg(e,t,n,void 0,4,1,2,1,r);break}}default:e.report(30,ap[255&e.getToken()])}const c={type:"ExportNamedDeclaration",declaration:o,specifiers:i,source:s,attributes:a};return e.finishNode(c,r)}(e,t,n);break;case 86106:i=function(e,t,n){const r=e.tokenStart;Sp(e,t);let i=null;const{tokenStart:o}=e;let s=[];if(134283267===e.getToken())i=Vg(e,t);else{if(143360&e.getToken()){const r=lg(e,t,n);if(s=[e.finishNode({type:"ImportDefaultSpecifier",local:r},o)],Op(e,t,18))switch(e.getToken()){case 8391476:s.push(ug(e,t,n));break;case 2162700:dg(e,t,n,s);break;default:e.report(107)}}else switch(e.getToken()){case 8391476:s=[ug(e,t,n)];break;case 2162700:dg(e,t,n,s);break;case 67174411:return fg(e,t,void 0,r);case 67108877:return hg(e,t,r);default:e.report(30,ap[255&e.getToken()])}i=function(e,t){return Rp(e,t,209011),134283267!==e.getToken()&&e.report(105,"Import"),Vg(e,t)}(e,t)}const a={type:"ImportDeclaration",specifiers:s,source:i,attributes:Ng(e,t)};return Np(e,32|t),e.finishNode(a,r)}(e,t,n);break;default:i=Jp(e,t,n,void 0,4,{})}return null!==(r=e.leadingDecorators)&&void 0!==r&&r.decorators.length&&e.report(170),i}function Jp(e,t,n,r,i,o){const s=e.tokenStart;switch(e.getToken()){case 86104:return Wg(e,t,n,r,i,1,0,0,s);case 132:case 86094:return nm(e,t,n,r,0);case 86090:return og(e,t,n,r,16,0);case 241737:return function(e,t,n,r,i){const{tokenValue:o,tokenStart:s}=e,a=e.getToken();let c=Ug(e,t);if(2240512&e.getToken()){const i=ag(e,t,n,r,8,0);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:"let",declarations:i},s)}if(e.assignable=1,1&t&&e.report(85),21===e.getToken())return eg(e,t,n,r,i,{},o,c,a,0,s);if(10===e.getToken()){let n;e.options.lexical&&(n=Qp(e,t,o)),e.flags=128^(128|e.flags),c=Kg(e,t,n,r,[c],0,s)}else c=Lg(e,t,r,c,0,0,s),c=_g(e,t,r,0,0,s,c);return 18===e.getToken()&&(c=gg(e,t,r,0,s,c)),Zp(e,t,c,s)}(e,t,n,r,i);case 20564:e.report(103,"export");case 86106:switch(Sp(e,t),e.getToken()){case 67174411:return fg(e,t,r,s);case 67108877:return hg(e,t,s);default:e.report(103,"import")}case 209005:return tg(e,t,n,r,i,o,1);default:return Kp(e,t,n,r,i,o,1)}}function Kp(e,t,n,r,i,o,s){switch(e.getToken()){case 86088:return sg(e,t,n,r,0);case 20572:return function(e,t,n){4096&t||e.report(92);const r=e.tokenStart;Sp(e,32|t);const i=1&e.flags||1048576&e.getToken()?null:mg(e,t,n,0,1,e.tokenStart);return Np(e,32|t),e.finishNode({type:"ReturnStatement",argument:i},r)}(e,t,r);case 20569:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411),e.assignable=1;const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=rg(e,t,n,r,i);let c=null;return 20563===e.getToken()&&(Sp(e,32|t),c=rg(e,t,n,r,i)),e.finishNode({type:"IfStatement",test:s,consequent:a,alternate:c},o)}(e,t,n,r,o);case 20567:return function(e,t,n,r,i){var o;const s=e.tokenStart;Sp(e,t);const a=((2048&t)>0||(2&t)>0&&(8&t)>0)&&Op(e,t,209006);Rp(e,32|t,67174411),n=null===(o=n)||void 0===o?void 0:o.createChildScope(1);let c,l=null,u=null,d=0,h=null,f=86088===e.getToken()||241737===e.getToken()||86090===e.getToken();const{tokenStart:p}=e,g=e.getToken();if(f)241737===g?(h=Ug(e,t),2240512&e.getToken()?(8673330===e.getToken()?1&t&&e.report(67):h=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:ag(e,131072|t,n,r,8,32)},p),e.assignable=1):1&t?e.report(67):(f=!1,e.assignable=1,h=Lg(e,t,r,h,0,0,p),471156===e.getToken()&&e.report(115))):(Sp(e,t),h=e.finishNode(86088===g?{type:"VariableDeclaration",kind:"var",declarations:ag(e,131072|t,n,r,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:ag(e,131072|t,n,r,16,32)},p),e.assignable=1);else if(1074790417===g)a&&e.report(82);else if(2097152&~g)h=Ig(e,131072|t,r,1,0,1);else{const n=e.tokenStart;h=2162700===g?qg(e,t,void 0,r,1,0,0,2,32):jg(e,t,void 0,r,1,0,0,2,32),d=e.destructible,64&d&&e.report(63),e.assignable=16&d?2:1,h=Lg(e,131072|t,r,h,0,0,n)}if(!(262144&~e.getToken())){if(471156===e.getToken()){2&e.assignable&&e.report(80,a?"await":"of"),Pp(e,h),Sp(e,32|t),c=pg(e,t,r,1,0,e.tokenStart),Rp(e,32|t,16);const o=ig(e,t,n,r,i);return e.finishNode({type:"ForOfStatement",left:h,right:c,body:o,await:a},s)}2&e.assignable&&e.report(80,"in"),Pp(e,h),Sp(e,32|t),a&&e.report(82),c=mg(e,t,r,0,1,e.tokenStart),Rp(e,32|t,16);const o=ig(e,t,n,r,i);return e.finishNode({type:"ForInStatement",body:o,left:h,right:c},s)}a&&e.report(82),f||(8&d&&1077936155!==e.getToken()&&e.report(80,"loop"),h=_g(e,131072|t,r,0,0,p,h)),18===e.getToken()&&(h=gg(e,t,r,0,p,h)),Rp(e,32|t,1074790417),1074790417!==e.getToken()&&(l=mg(e,t,r,0,1,e.tokenStart)),Rp(e,32|t,1074790417),16!==e.getToken()&&(u=mg(e,t,r,0,1,e.tokenStart)),Rp(e,32|t,16);const m=ig(e,t,n,r,i);return e.finishNode({type:"ForStatement",init:h,test:l,update:u,body:m},s)}(e,t,n,r,o);case 20562:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,32|t);const s=ig(e,t,n,r,i);Rp(e,t,20578),Rp(e,32|t,67174411);const a=mg(e,t,r,0,1,e.tokenStart);return Rp(e,32|t,16),Op(e,32|t,1074790417),e.finishNode({type:"DoWhileStatement",body:s,test:a},o)}(e,t,n,r,o);case 20578:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411);const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=ig(e,t,n,r,i);return e.finishNode({type:"WhileStatement",test:s,body:a},o)}(e,t,n,r,o);case 86110:return function(e,t,n,r,i){var o;const s=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411);const a=mg(e,t,r,0,1,e.tokenStart);Rp(e,t,16),Rp(e,t,2162700);const c=[];let l=0;for(n=null===(o=n)||void 0===o?void 0:o.createChildScope(8);1074790415!==e.getToken();){const{tokenStart:o}=e;let s=null;const a=[];for(Op(e,32|t,20556)?s=mg(e,t,r,0,1,e.tokenStart):(Rp(e,32|t,20561),l&&e.report(89),l=1),Rp(e,32|t,21);20556!==e.getToken()&&1074790415!==e.getToken()&&20561!==e.getToken();)a.push(Jp(e,4|t,n,r,2,{$:i}));c.push(e.finishNode({type:"SwitchCase",test:s,consequent:a},o))}return Rp(e,32|t,1074790415),e.finishNode({type:"SwitchStatement",discriminant:a,cases:c},s)}(e,t,n,r,o);case 1074790417:return function(e,t){const n=e.tokenStart;return Sp(e,32|t),e.finishNode({type:"EmptyStatement"},n)}(e,t);case 2162700:return Xp(e,t,null==n?void 0:n.createChildScope(),r,o,e.tokenStart);case 86112:return function(e,t,n){const r=e.tokenStart;Sp(e,32|t),1&e.flags&&e.report(90);const i=mg(e,t,n,0,1,e.tokenStart);return Np(e,32|t),e.finishNode({type:"ThrowStatement",argument:i},r)}(e,t,r);case 20555:return function(e,t,n){const r=e.tokenStart;Sp(e,32|t);let i=null;if(!(1&e.flags)&&143360&e.getToken()){const{tokenValue:r}=e;i=Ug(e,32|t),Gp(e,n,r,0)||e.report(138,r)}else 132&t||e.report(69);return Np(e,32|t),e.finishNode({type:"BreakStatement",label:i},r)}(e,t,o);case 20559:return function(e,t,n){128&t||e.report(68);const r=e.tokenStart;Sp(e,t);let i=null;if(!(1&e.flags)&&143360&e.getToken()){const{tokenValue:r}=e;i=Ug(e,32|t),Gp(e,n,r,1)||e.report(138,r)}return Np(e,32|t),e.finishNode({type:"ContinueStatement",label:i},r)}(e,t,o);case 20577:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,32|t);const s=Xp(e,t,null==n?void 0:n.createChildScope(16),r,{$:i}),{tokenStart:a}=e,c=Op(e,32|t,20557)?function(e,t,n,r,i,o){var s;let a=null,c=n;var l;Op(e,t,67174411)&&(a=lm(e,t,n=null===(l=n)||void 0===l?void 0:l.createChildScope(4),r,2097152&~e.getToken()?512:256,0),18===e.getToken()?e.report(86):1077936155===e.getToken()&&e.report(87),Rp(e,32|t,16));c=null===(s=n)||void 0===s?void 0:s.createChildScope(32);const u=Xp(e,t,c,r,{$:i});return e.finishNode({type:"CatchClause",param:a,body:u},o)}(e,t,n,r,i,a):null;let l=null;return 20566===e.getToken()&&(Sp(e,32|t),l=Xp(e,t,null==n?void 0:n.createChildScope(4),r,{$:i})),c||l||e.report(88),e.finishNode({type:"TryStatement",block:s,handler:c,finalizer:l},o)}(e,t,n,r,o);case 20579:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),1&t&&e.report(91),Rp(e,32|t,67174411);const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=Kp(e,t,n,r,2,i,0);return e.finishNode({type:"WithStatement",object:s,body:a},o)}(e,t,n,r,o);case 20560:return function(e,t){const n=e.tokenStart;return Sp(e,32|t),Np(e,32|t),e.finishNode({type:"DebuggerStatement"},n)}(e,t);case 209005:return tg(e,t,n,r,i,o,0);case 20557:e.report(162);case 20566:e.report(163);case 86104:e.report(1&t?76:e.options.webcompat?77:78);case 86094:e.report(79);default:return function(e,t,n,r,i,o,s){const{tokenValue:a,tokenStart:c}=e,l=e.getToken();let u;return 241737===l?(u=Ug(e,t),1&t&&e.report(85),69271571===e.getToken()&&e.report(84)):u=Ag(e,t,r,2,0,1,0,1,e.tokenStart),143360&l&&21===e.getToken()?eg(e,t,n,r,i,o,a,u,l,s,c):(u=Lg(e,t,r,u,0,0,c),u=_g(e,t,r,0,0,c,u),18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c))}(e,t,n,r,i,o,s)}}function Xp(e,t,n,r,i,o=e.tokenStart,s="BlockStatement"){const a=[];for(Rp(e,32|t,2162700);1074790415!==e.getToken();)a.push(Jp(e,t,n,r,2,{$:i}));return Rp(e,32|t,1074790415),e.finishNode({type:s,body:a},o)}function Zp(e,t,n,r){return Np(e,32|t),e.finishNode({type:"ExpressionStatement",expression:n},r)}function eg(e,t,n,r,i,o,s,a,c,l,u){Dp(e,t,0,c,1),function(e,t,n){let r=t;for(;r;)r["$"+n]&&e.report(136,n),r=r.$;t["$"+n]=1}(e,o,s),Sp(e,32|t);const d=!l||1&t||!e.options.webcompat||86104!==e.getToken()?Kp(e,t,n,r,i,o,l):Wg(e,t,null==n?void 0:n.createChildScope(),r,i,0,0,0,e.tokenStart);return e.finishNode({type:"LabeledStatement",label:a,body:d},u)}function tg(e,t,n,r,i,o,s){const{tokenValue:a,tokenStart:c}=e,l=e.getToken();let u=Ug(e,t);if(21===e.getToken())return eg(e,t,n,r,i,o,a,u,l,1,c);const d=1&e.flags;if(!d){if(86104===e.getToken())return s||e.report(123),Wg(e,t,n,r,i,1,0,1,c);if(Vp(t,e.getToken()))return u=em(e,t,r,1,c),18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c)}return 67174411===e.getToken()?u=tm(e,t,r,u,1,1,0,d,c):(10===e.getToken()&&(Wp(e,t,l),36864&~l||(e.flags|=256),u=Yg(e,2048|t,r,e.tokenValue,u,0,1,0,c)),e.assignable=1),u=Lg(e,t,r,u,0,0,c),u=_g(e,t,r,0,0,c,u),e.assignable=1,18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c)}function ng(e,t,n,r,i){const o=e.startIndex;1074790417!==r&&(e.assignable=2,n=Lg(e,t,void 0,n,0,0,i),1074790417!==e.getToken()&&(n=_g(e,t,void 0,0,0,i,n),18===e.getToken()&&(n=gg(e,t,void 0,0,i,n))),Np(e,32|t));const s={type:"ExpressionStatement",expression:n};return"Literal"===n.type&&"string"==typeof n.value&&(s.directive=e.source.slice(i.index+1,o-1)),e.finishNode(s,i)}function rg(e,t,n,r,i){const{tokenStart:o}=e;return 1&t||!e.options.webcompat||86104!==e.getToken()?Kp(e,t,n,r,0,{$:i},0):Wg(e,t,null==n?void 0:n.createChildScope(),r,0,0,0,0,o)}function ig(e,t,n,r,i){return Kp(e,131072^(131072|t)|128,n,r,0,{loop:1,$:i},0)}function og(e,t,n,r,i,o){const s=e.tokenStart;Sp(e,t);const a=ag(e,t,n,r,i,o);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:8&i?"let":"const",declarations:a},s)}function sg(e,t,n,r,i){const o=e.tokenStart;Sp(e,t);const s=ag(e,t,n,r,4,i);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:"var",declarations:s},o)}function ag(e,t,n,r,i,o){let s=1;const a=[cg(e,t,n,r,i,o)];for(;Op(e,t,18);)s++,a.push(cg(e,t,n,r,i,o));return s>1&&32&o&&262144&e.getToken()&&e.report(61,ap[255&e.getToken()]),a}function cg(e,t,n,r,i,o){const{tokenStart:s}=e,a=e.getToken();let c=null;const l=lm(e,t,n,r,i,o);if(1077936155===e.getToken()){if(Sp(e,32|t),c=pg(e,t,r,1,0,e.tokenStart),(32&o||!(2097152&a))&&(471156===e.getToken()||8673330===e.getToken()&&(2097152&a||!(4&i)||1&t)))throw new op(s,e.currentLocation,60,471156===e.getToken()?"of":"in")}else(16&i||(2097152&a)>0)&&262144&~e.getToken()&&e.report(59,16&i?"const":"destructuring");return e.finishNode({type:"VariableDeclarator",id:l,init:c},s)}function lg(e,t,n){return Vp(t,e.getToken())||e.report(118),537079808&~e.getToken()||e.report(119),null==n||n.addBlockName(t,e.tokenValue,8,0),Ug(e,t)}function ug(e,t,n){const{tokenStart:r}=e;if(Sp(e,t),Rp(e,t,77932),!(134217728&~e.getToken()))throw new op(r,e.currentLocation,30,ap[255&e.getToken()]);return e.finishNode({type:"ImportNamespaceSpecifier",local:lg(e,t,n)},r)}function dg(e,t,n,r){for(Sp(e,t);143360&e.getToken()||134283267===e.getToken();){let{tokenValue:i,tokenStart:o}=e;const s=e.getToken(),a=Og(e,t);let c;Op(e,t,77932)?(134217728&~e.getToken()&&18!==e.getToken()?Dp(e,t,16,e.getToken(),0):e.report(106),i=e.tokenValue,c=Ug(e,t)):"Identifier"===a.type?(Dp(e,t,16,s,0),c=e.cloneIdentifier(a)):e.report(25,ap[108]),null==n||n.addBlockName(t,i,8,0),r.push(e.finishNode({type:"ImportSpecifier",local:c,imported:a},o)),1074790415!==e.getToken()&&Rp(e,t,18)}return Rp(e,t,1074790415),r}function hg(e,t,n){let r=Sg(e,t,e.finishNode({type:"Identifier",name:"import"},n),n);return r=Lg(e,t,void 0,r,0,0,n),r=_g(e,t,void 0,0,0,n,r),18===e.getToken()&&(r=gg(e,t,void 0,0,n,r)),Zp(e,t,r,n)}function fg(e,t,n,r){let i=bg(e,t,n,0,r);return i=Lg(e,t,n,i,0,0,r),18===e.getToken()&&(i=gg(e,t,n,0,r,i)),Zp(e,t,i,r)}function pg(e,t,n,r,i,o){let s=Ag(e,t,n,2,0,r,i,1,o);return s=Lg(e,t,n,s,i,0,o),_g(e,t,n,i,0,o,s)}function gg(e,t,n,r,i,o){const s=[o];for(;Op(e,32|t,18);)s.push(pg(e,t,n,1,r,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:s},i)}function mg(e,t,n,r,i,o){const s=pg(e,t,n,i,r,o);return 18===e.getToken()?gg(e,t,n,r,o,s):s}function _g(e,t,n,r,i,o,s){const a=e.getToken();if(!(4194304&~a)){2&e.assignable&&e.report(26),(!i&&1077936155===a&&"ArrayExpression"===s.type||"ObjectExpression"===s.type)&&Pp(e,s),Sp(e,32|t);const c=pg(e,t,n,1,r,e.tokenStart);return e.assignable=2,e.finishNode(i?{type:"AssignmentPattern",left:s,right:c}:{type:"AssignmentExpression",left:s,operator:ap[255&a],right:c},o)}return 8388608&~a||(s=wg(e,t,n,r,o,4,a,s)),Op(e,32|t,22)&&(s=Eg(e,t,n,s,o)),s}function vg(e,t,n,r,i,o,s){const a=e.getToken();Sp(e,32|t);const c=pg(e,t,n,1,r,e.tokenStart);return s=e.finishNode(i?{type:"AssignmentPattern",left:s,right:c}:{type:"AssignmentExpression",left:s,operator:ap[255&a],right:c},o),e.assignable=2,s}function Eg(e,t,n,r,i){const o=pg(e,131072^(131072|t),n,1,0,e.tokenStart);Rp(e,32|t,21),e.assignable=1;const s=pg(e,t,n,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:r,consequent:o,alternate:s},i)}function wg(e,t,n,r,i,o,s,a){const c=8673330&-((131072&t)>0);let l,u;for(e.assignable=2;8388608&e.getToken()&&(l=e.getToken(),u=3840&l,(524288&l&&268435456&s||524288&s&&268435456&l)&&e.report(165),!(u+((8391735===l)<<8)-((c===l)<<12)<=o));)Sp(e,32|t),a=e.finishNode({type:524288&l||268435456&l?"LogicalExpression":"BinaryExpression",left:a,right:wg(e,t,n,r,e.tokenStart,u,l,Ig(e,t,n,0,r,1)),operator:ap[255&l]},i);return 1077936155===e.getToken()&&e.report(26),a}function yg(e,t,n,r,i,o,s){const{tokenStart:a}=e;Rp(e,32|t,2162700);const c=[];if(1074790415!==e.getToken()){for(;134283267===e.getToken();){const{index:n,tokenStart:r,tokenIndex:i,tokenValue:o}=e,a=e.getToken(),l=Vg(e,t);if(Tp(e,n,i,o)){if(t|=1,128&e.flags)throw new op(r,e.currentLocation,66);if(64&e.flags)throw new op(r,e.currentLocation,9);if(4096&e.flags)throw new op(r,e.currentLocation,15);null==s||s.reportScopeError()}c.push(ng(e,t,l,a,r))}1&t&&(o&&(537079808&~o||e.report(119),36864&~o||e.report(40)),512&e.flags&&e.report(119),256&e.flags&&e.report(118))}for(e.flags=4928^(4928|e.flags),e.destructible=256^(256|e.destructible);1074790415!==e.getToken();)c.push(Jp(e,t,n,r,4,{}));return Rp(e,24&i?32|t:t,1074790415),e.flags&=-4289,1077936155===e.getToken()&&e.report(26),e.finishNode({type:"BlockStatement",body:c},a)}function Ig(e,t,n,r,i,o){const s=e.tokenStart;return Lg(e,t,n,Ag(e,t,n,2,0,r,i,o,s),i,0,s)}function Lg(e,t,n,r,i,o,s){if(33619968&~e.getToken()||1&e.flags){if(!(67108864&~e.getToken())){switch(t=131072^(131072|t),e.getToken()){case 67108877:{Sp(e,8^(262152|t)),16&t&&130===e.getToken()&&"super"===e.tokenValue&&e.report(173),e.assignable=1;const i=Cg(e,64|t,n);r=e.finishNode({type:"MemberExpression",object:r,computed:!1,property:i,optional:!1},s);break}case 69271571:{let o=!1;2048&~e.flags||(o=!0,e.flags=2048^(2048|e.flags)),Sp(e,32|t);const{tokenStart:a}=e,c=mg(e,t,n,i,1,a);Rp(e,t,20),e.assignable=1,r=e.finishNode({type:"MemberExpression",object:r,computed:!0,property:c,optional:!1},s),o&&(e.flags|=2048);break}case 67174411:{if(!(1024&~e.flags))return e.flags=1024^(1024|e.flags),r;let o=!1;2048&~e.flags||(o=!0,e.flags=2048^(2048|e.flags));const a=Gg(e,t,n,i);e.assignable=2,r=e.finishNode({type:"CallExpression",callee:r,arguments:a,optional:!1},s),o&&(e.flags|=2048);break}case 67108990:Sp(e,8^(262152|t)),e.flags|=2048,e.assignable=2,r=function(e,t,n,r,i){let o,s=!1;if(69271571!==e.getToken()&&67174411!==e.getToken()||2048&~e.flags||(s=!0,e.flags=2048^(2048|e.flags)),69271571===e.getToken()){Sp(e,32|t);const{tokenStart:s}=e,a=mg(e,t,n,0,1,s);Rp(e,t,20),e.assignable=2,o=e.finishNode({type:"MemberExpression",object:r,computed:!0,optional:!0,property:a},i)}else if(67174411===e.getToken()){const s=Gg(e,t,n,0);e.assignable=2,o=e.finishNode({type:"CallExpression",callee:r,arguments:s,optional:!0},i)}else{const s=Cg(e,t,n);e.assignable=2,o=e.finishNode({type:"MemberExpression",object:r,computed:!1,optional:!0,property:s},i)}return s&&(e.flags|=2048),o}(e,t,n,r,s);break;default:2048&~e.flags||e.report(166),e.assignable=2,r=e.finishNode({type:"TaggedTemplateExpression",tag:r,quasi:67174408===e.getToken()?Dg(e,64|t,n):Pg(e,t)},s)}r=Lg(e,t,n,r,0,1,s)}}else r=function(e,t,n,r){2&e.assignable&&e.report(55);const i=e.getToken();return Sp(e,t),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:n,operator:ap[255&i],prefix:!1},r)}(e,t,r,s);return 0!==o||2048&~e.flags||(e.flags=2048^(2048|e.flags),r=e.finishNode({type:"ChainExpression",expression:r},s)),r}function Cg(e,t,n){return 143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken()||130===e.getToken()||e.report(160),130===e.getToken()?am(e,t,n,0):Ug(e,t)}function Ag(e,t,n,r,i,o,s,a,c){if(!(143360&~e.getToken())){switch(e.getToken()){case 209006:return function(e,t,n,r,i,o){i&&(e.destructible|=128),524288&t&&e.report(177);const s=$g(e,t,n);if("ArrowFunctionExpression"===s.type||!(65536&e.getToken())){if(2048&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},176);if(2&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);if(8192&t&&2048&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);return s}if(8192&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},31);if(2048&t||2&t&&8&t){if(r)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);const i=Ig(e,t,n,0,0,1);return 8391735===e.getToken()&&e.report(33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:i},o)}if(2&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},98);return s}(e,t,n,i,s,c);case 241771:return function(e,t,n,r,i,o){if(r&&(e.destructible|=256),1024&t){Sp(e,32|t),8192&t&&e.report(32),i||e.report(26),22===e.getToken()&&e.report(124);let r=null,s=!1;return 1&e.flags?8391476===e.getToken()&&e.report(30,ap[255&e.getToken()]):(s=Op(e,32|t,8391476),(77824&e.getToken()||s)&&(r=pg(e,t,n,1,0,e.tokenStart))),e.assignable=2,e.finishNode({type:"YieldExpression",argument:r,delegate:s},o)}return 1&t&&e.report(97,"yield"),$g(e,t,n)}(e,t,n,s,o,c);case 209005:return function(e,t,n,r,i,o,s,a){const c=e.getToken(),l=Ug(e,t),{flags:u}=e;if(!(1&u)){if(86104===e.getToken())return Fg(e,t,n,1,r,a);if(Vp(t,e.getToken()))return i||e.report(0),36864&~e.getToken()||(e.flags|=256),em(e,t,n,o,a)}return s||67174411!==e.getToken()?10===e.getToken()?(Wp(e,t,c),s&&e.report(51),36864&~c||(e.flags|=256),Yg(e,t,n,e.tokenValue,l,s,o,0,a)):(e.assignable=1,l):tm(e,t,n,l,o,1,0,u,a)}(e,t,n,s,a,o,i,c)}const{tokenValue:l}=e,u=e.getToken(),d=Ug(e,64|t);return 10===e.getToken()?(a||e.report(0),Wp(e,t,u),36864&~u||(e.flags|=256),Yg(e,t,n,l,d,i,o,0,c)):(!(16&t)||32768&t||8192&t||"arguments"!==e.tokenValue||e.report(130),73==(255&u)&&(1&t&&e.report(113),24&r&&e.report(100)),e.assignable=1&t&&!(537079808&~u)?2:1,d)}if(!(134217728&~e.getToken()))return Vg(e,t);switch(e.getToken()){case 33619993:case 33619994:return function(e,t,n,r,i,o){r&&e.report(56),i||e.report(0);const s=e.getToken();Sp(e,32|t);const a=Ig(e,t,n,0,0,1);return 2&e.assignable&&e.report(55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:a,operator:ap[255&s],prefix:!0},o)}(e,t,n,i,a,c);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return function(e,t,n,r,i){r||e.report(0);const{tokenStart:o}=e,s=e.getToken();Sp(e,32|t);const a=Ig(e,t,n,0,i,1);var c;return 8391735===e.getToken()&&e.report(33),1&t&&16863276===s&&("Identifier"===a.type?e.report(121):(c=a).property&&"PrivateIdentifier"===c.property.type&&e.report(127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:ap[255&s],argument:a,prefix:!0},o)}(e,t,n,a,s);case 86104:return Fg(e,t,n,0,s,c);case 2162700:return function(e,t,n,r,i){const o=qg(e,t,void 0,n,r,i,0,2,0);return 64&e.destructible&&e.report(63),8&e.destructible&&e.report(62),o}(e,t,n,o?0:1,s);case 69271571:return function(e,t,n,r,i){const o=jg(e,t,void 0,n,r,i,0,2,0);return 64&e.destructible&&e.report(63),8&e.destructible&&e.report(62),o}(e,t,n,o?0:1,s);case 67174411:return function(e,t,n,r,i,o,s){var a;e.flags=128^(128|e.flags);const c=e.tokenStart;Sp(e,262176|t);const l=null===(a=e.createScopeIfLexical())||void 0===a?void 0:a.createChildScope(512);if(Op(e,t=131072^(131072|t),16))return Jg(e,t,l,n,[],r,0,s);let u,d=0;e.destructible&=-385;let h=[],f=0,p=0,g=0;const m=e.tokenStart;for(e.assignable=1;16!==e.getToken();){const{tokenStart:r}=e,i=e.getToken();if(143360&i)null==l||l.addBlockName(t,e.tokenValue,1,0),537079808&~i?36864&~i||(g=1):p=1,u=Ag(e,t,n,1,0,1,1,1,r),16===e.getToken()||18===e.getToken()?2&e.assignable&&(d|=16,p=1):(1077936155===e.getToken()?p=1:d|=16,u=Lg(e,t,n,u,1,0,r),16!==e.getToken()&&18!==e.getToken()&&(u=_g(e,t,n,1,0,r,u)));else{if(2097152&~i){if(14===i){u=zg(e,t,l,n,16,1,0,0,1,0),16&e.destructible&&e.report(74),p=1,!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),d|=8;break}if(d|=16,u=pg(e,t,n,1,1,r),!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),18===e.getToken()&&(f||(f=1,h=[u])),f){for(;Op(e,32|t,18);)h.push(pg(e,t,n,1,1,e.tokenStart));e.assignable=2,u=e.finishNode({type:"SequenceExpression",expressions:h},m)}return Rp(e,t,16),e.destructible=d,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:u},c):u}u=2162700===i?qg(e,262144|t,l,n,0,1,0,1,0):jg(e,262144|t,l,n,0,1,0,1,0),d|=e.destructible,p=1,e.assignable=2,16!==e.getToken()&&18!==e.getToken()&&(8&d&&e.report(122),u=Lg(e,t,n,u,0,0,r),d|=16,16!==e.getToken()&&18!==e.getToken()&&(u=_g(e,t,n,0,0,r,u)))}if(!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),!Op(e,32|t,18))break;if(f||(f=1,h=[u]),16===e.getToken()){d|=8;break}}return f&&(e.assignable=2,u=e.finishNode({type:"SequenceExpression",expressions:h},m)),Rp(e,t,16),16&d&&8&d&&e.report(151),d|=256&e.destructible?256:128&e.destructible?128:0,10===e.getToken()?(48&d&&e.report(49),2050&t&&128&d&&e.report(31),1025&t&&256&d&&e.report(32),p&&(e.flags|=128),g&&(e.flags|=256),Jg(e,t,l,n,f?h:[u],r,0,s)):(64&d&&e.report(63),8&d&&e.report(144),e.destructible=256^(256|e.destructible)|d,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:u},c):u)}(e,64|t,n,o,0,0,c);case 86021:case 86022:case 86023:return function(e,t){const n=e.tokenStart,r=ap[255&e.getToken()],i={type:"Literal",value:86023===e.getToken()?null:"true"===r};return e.options.raw&&(i.raw=r),Sp(e,t),e.assignable=2,e.finishNode(i,n)}(e,t);case 86111:return function(e,t){const{tokenStart:n}=e;return Sp(e,t),e.assignable=2,e.finishNode({type:"ThisExpression"},n)}(e,t);case 65540:return function(e,t){const{tokenRaw:n,tokenRegExp:r,tokenValue:i,tokenStart:o}=e;Sp(e,t),e.assignable=2;const s={type:"Literal",value:i,regex:r};return e.options.raw&&(s.raw=n),e.finishNode(s,o)}(e,t);case 132:case 86094:return function(e,t,n,r,i){let o=null,s=null;const a=rm(e,t,n);Sp(e,t=16384^(16385|t)),4096&e.getToken()&&20565!==e.getToken()&&(xp(e,t,e.getToken())&&e.report(118),537079808&~e.getToken()||e.report(119),o=Ug(e,t));let c=t;Op(e,32|t,20565)?(s=Ig(e,t,n,0,r,0),c|=512):c=512^(512|c);const l=om(e,c,t,void 0,n,2,0,r);return e.assignable=2,e.finishNode(Yo({type:"ClassExpression",id:o,superClass:s,body:l},e.options.next?{decorators:a}:null),i)}(e,t,n,s,c);case 86109:return function(e,t){const{tokenStart:n}=e;switch(Sp(e,t),e.getToken()){case 67108990:e.report(167);case 67174411:512&t||e.report(28),e.assignable=2;break;case 69271571:case 67108877:256&t||e.report(29),e.assignable=1;break;default:e.report(30,"super")}return e.finishNode({type:"Super"},n)}(e,t);case 67174409:return Pg(e,t);case 67174408:return Dg(e,t,n);case 86107:return function(e,t,n,r){const{tokenStart:i}=e,o=Ug(e,32|t),{tokenStart:s}=e;if(Op(e,t,67108877)){if(65536&t&&209029===e.getToken())return e.assignable=2,function(e,t,n,r){const i=Ug(e,t);return e.finishNode({type:"MetaProperty",meta:n,property:i},r)}(e,t,o,i);e.report(94)}e.assignable=2,16842752&~e.getToken()||e.report(65,ap[255&e.getToken()]);const a=Ag(e,t,n,2,1,0,r,1,s);t=131072^(131072|t),67108990===e.getToken()&&e.report(168);const c=Zg(e,t,n,a,r,s);return e.assignable=2,e.finishNode({type:"NewExpression",callee:c,arguments:67174411===e.getToken()?Gg(e,t,n,r):[]},i)}(e,t,n,s);case 134283388:return Rg(e,t);case 130:return am(e,t,n,0);case 86106:return function(e,t,n,r,i,o){let s=Ug(e,t);return 67108877===e.getToken()?Sg(e,t,s,o):(r&&e.report(142),s=bg(e,t,n,i,o),e.assignable=2,Lg(e,t,n,s,i,0,o))}(e,t,n,i,s,c);case 8456256:if(e.options.jsx)return dm(e,t,n,0,e.tokenStart);default:if(Vp(t,e.getToken()))return $g(e,t,n);e.report(30,ap[255&e.getToken()])}}function Sg(e,t,n,r){2&t||e.report(169),Sp(e,t);const i=e.getToken();return 209030!==i&&"meta"!==e.tokenValue?e.report(174):-2147483648&i&&e.report(175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:n,property:Ug(e,t)},r)}function bg(e,t,n,r,i){Rp(e,32|t,67174411),14===e.getToken()&&e.report(143);const o=pg(e,t,n,1,r,e.tokenStart);let s=null;18===e.getToken()&&(Rp(e,t,18),16!==e.getToken()&&(s=pg(e,131072^(131072|t),n,1,r,e.tokenStart)),Op(e,t,18));const a={type:"ImportExpression",source:o,options:s};return Rp(e,t,16),e.finishNode(a,i)}function Ng(e,t){if(!Op(e,t,20579))return[];Rp(e,t,2162700);const n=[],r=new Set;for(;1074790415!==e.getToken();){const i=e.tokenStart,o=kg(e,t);Rp(e,t,21);const s=Tg(e,t),a="Literal"===o.type?o.value:o.name;r.has(a)&&e.report(145,`${a}`),r.add(a),n.push(e.finishNode({type:"ImportAttribute",key:o,value:s},i)),1074790415!==e.getToken()&&Rp(e,t,18)}return Rp(e,t,1074790415),n}function Tg(e,t){if(134283267===e.getToken())return Vg(e,t);e.report(30,ap[255&e.getToken()])}function kg(e,t){return 134283267===e.getToken()?Vg(e,t):143360&e.getToken()?Ug(e,t):void e.report(30,ap[255&e.getToken()])}function Og(e,t){return 134283267===e.getToken()?(e.tokenValue.isWellFormed()||e.report(171),Vg(e,t)):143360&e.getToken()?Ug(e,t):void e.report(30,ap[255&e.getToken()])}function Rg(e,t){const{tokenRaw:n,tokenValue:r,tokenStart:i}=e;Sp(e,t),e.assignable=2;const o={type:"Literal",value:r,bigint:String(r)};return e.options.raw&&(o.raw=n),e.finishNode(o,i)}function Pg(e,t){e.assignable=2;const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;Rp(e,t,67174409);const o=[Mg(e,n,r,i,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:o},i)}function Dg(e,t,n){t=131072^(131072|t);const{tokenValue:r,tokenRaw:i,tokenStart:o}=e;Rp(e,-65&t|32,67174408);const s=[Mg(e,r,i,o,!1)],a=[mg(e,-65&t,n,0,1,e.tokenStart)];for(1074790415!==e.getToken()&&e.report(83);67174409!==e.setToken(Cp(e,t),!0);){const{tokenValue:r,tokenRaw:i,tokenStart:o}=e;Rp(e,-65&t|32,67174408),s.push(Mg(e,r,i,o,!1)),a.push(mg(e,t,n,0,1,e.tokenStart)),1074790415!==e.getToken()&&e.report(83)}{const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;Rp(e,t,67174409),s.push(Mg(e,n,r,i,!0))}return e.finishNode({type:"TemplateLiteral",expressions:a,quasis:s},o)}function Mg(e,t,n,r,i){const o=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:n},tail:i},r),s=i?1:2;return e.options.ranges&&(o.start+=1,o.range[0]+=1,o.end-=s,o.range[1]-=s),e.options.loc&&(o.loc.start.column+=1,o.loc.end.column-=s),o}function xg(e,t,n){const r=e.tokenStart;Rp(e,32|(t=131072^(131072|t)),14);const i=pg(e,t,n,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:i},r)}function Gg(e,t,n,r){Sp(e,32|t);const i=[];if(16===e.getToken())return Sp(e,64|t),i;for(;16!==e.getToken()&&(14===e.getToken()?i.push(xg(e,t,n)):i.push(pg(e,t,n,1,r,e.tokenStart)),18===e.getToken())&&(Sp(e,32|t),16!==e.getToken()););return Rp(e,64|t,16),i}function Ug(e,t){const{tokenValue:n,tokenStart:r}=e,i="await"===n&&!(-2147483648&e.getToken());return Sp(e,t|(i?32:0)),e.finishNode({type:"Identifier",name:n},r)}function Vg(e,t){const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;if(134283388===e.getToken())return Rg(e,t);const o={type:"Literal",value:n};return e.options.raw&&(o.raw=r),Sp(e,t),e.assignable=2,e.finishNode(o,i)}function Wg(e,t,n,r,i,o,s,a,c){var l,u;Sp(e,32|t);const d=o?kp(e,t,8391476):0;let h,f=null,p=n?e.createScope():void 0;if(67174411===e.getToken())1&s||e.report(39,"Function");else{const r=!(4&i)||8&t&&2&t?64|(a?1024:0)|(d?1024:0):4;var g;Mp(e,t,e.getToken()),n&&(4&r?n.addVarName(t,e.tokenValue,r):n.addBlockName(t,e.tokenValue,r,i),p=null===(g=p)||void 0===g?void 0:g.createChildScope(128),s&&2&s&&e.declareUnboundVariable(e.tokenValue)),h=e.getToken(),143360&e.getToken()?f=Ug(e,t):e.report(30,ap[255&e.getToken()])}{const e=28416;t=(t|e)^e|65536|(a?2048:0)|(d?1024:0)|(d?0:262144)}p=null===(l=p)||void 0===l?void 0:l.createChildScope(256);const m=Xg(e,-524289&t|8192,p,r,0,1),_=524428,v=yg(e,36864|(t|_)^_,null===(u=p)||void 0===u?void 0:u.createChildScope(64),r,8,h,p);return e.finishNode({type:"FunctionDeclaration",id:f,params:m,body:v,async:1===a,generator:1===d},c)}function Fg(e,t,n,r,i,o){var s,a;Sp(e,32|t);const c=kp(e,t,8391476),l=(r?2048:0)|(c?1024:0);let u,d=null,h=e.createScopeIfLexical();const f=552704;var p;143360&e.getToken()&&(Mp(e,(t|f)^f|l,e.getToken()),h=null===(p=h)||void 0===p?void 0:p.createChildScope(128),u=e.getToken(),d=Ug(e,t)),t=(t|f)^f|65536|l|(c?0:262144),h=null===(s=h)||void 0===s?void 0:s.createChildScope(256);const g=Xg(e,-524289&t|8192,h,n,i,1),m=yg(e,36864|-131229&t,null===(a=h)||void 0===a?void 0:a.createChildScope(64),n,0,u,h);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:d,params:g,body:m,async:1===r,generator:1===c},o)}function jg(e,t,n,r,i,o,s,a,c){const{tokenStart:l}=e;Sp(e,32|t);const u=[];let d=0;for(t=131072^(131072|t);20!==e.getToken();)if(Op(e,32|t,18))u.push(null);else{let i;const{tokenStart:l,tokenValue:h}=e,f=e.getToken();if(143360&f)if(i=Ag(e,t,r,a,0,1,o,1,l),1077936155===e.getToken()){2&e.assignable&&e.report(26),Sp(e,32|t),null==n||n.addVarOrBlock(t,h,a,c);const u=pg(e,t,r,1,o,e.tokenStart);i=e.finishNode(s?{type:"AssignmentPattern",left:i,right:u}:{type:"AssignmentExpression",operator:"=",left:i,right:u},l),d|=256&e.destructible?256:128&e.destructible?128:0}else 18===e.getToken()||20===e.getToken()?(2&e.assignable?d|=16:null==n||n.addVarOrBlock(t,h,a,c),d|=256&e.destructible?256:128&e.destructible?128:0):(d|=1&a?32:2&a?0:16,i=Lg(e,t,r,i,o,0,l),18!==e.getToken()&&20!==e.getToken()?(1077936155!==e.getToken()&&(d|=16),i=_g(e,t,r,o,s,l,i)):1077936155!==e.getToken()&&(d|=2&e.assignable?16:32));else 2097152&f?(i=2162700===e.getToken()?qg(e,t,n,r,0,o,s,a,c):jg(e,t,n,r,0,o,s,a,c),d|=e.destructible,e.assignable=16&e.destructible?2:1,18===e.getToken()||20===e.getToken()?2&e.assignable&&(d|=16):8&e.destructible?e.report(71):(i=Lg(e,t,r,i,o,0,l),d=2&e.assignable?16:0,18!==e.getToken()&&20!==e.getToken()?i=_g(e,t,r,o,s,l,i):1077936155!==e.getToken()&&(d|=2&e.assignable?16:32))):14===f?(i=zg(e,t,n,r,20,a,c,0,o,s),d|=e.destructible,18!==e.getToken()&&20!==e.getToken()&&e.report(30,ap[255&e.getToken()])):(i=Ig(e,t,r,1,0,1),18!==e.getToken()&&20!==e.getToken()?(i=_g(e,t,r,o,s,l,i),3&a||67174411!==f||(d|=16)):2&e.assignable?d|=16:67174411===f&&(d|=1&e.assignable&&3&a?32:16));if(u.push(i),!Op(e,32|t,18))break;if(20===e.getToken())break}Rp(e,t,20);const h=e.finishNode({type:s?"ArrayPattern":"ArrayExpression",elements:u},l);return!i&&4194304&e.getToken()?Bg(e,t,r,d,o,s,l,h):(e.destructible=d,h)}function Bg(e,t,n,r,i,o,s,a){1077936155!==e.getToken()&&e.report(26),Sp(e,32|t),16&r&&e.report(26),o||Pp(e,a);const{tokenStart:c}=e,l=pg(e,t,n,1,i,c);return e.destructible=72^(72|r)|(128&e.destructible?128:0)|(256&e.destructible?256:0),e.finishNode(o?{type:"AssignmentPattern",left:a,right:l}:{type:"AssignmentExpression",left:a,operator:"=",right:l},s)}function zg(e,t,n,r,i,o,s,a,c,l){const{tokenStart:u}=e;Sp(e,32|t);let d=null,h=0;const{tokenValue:f,tokenStart:p}=e;let g=e.getToken();if(143360&g)e.assignable=1,d=Ag(e,t,r,o,0,1,c,1,p),g=e.getToken(),d=Lg(e,t,r,d,c,0,p),18!==e.getToken()&&e.getToken()!==i&&(2&e.assignable&&1077936155===e.getToken()&&e.report(71),h|=16,d=_g(e,t,r,c,l,p,d)),2&e.assignable?h|=16:g===i||18===g?null==n||n.addVarOrBlock(t,f,o,s):h|=32,h|=128&e.destructible?128:0;else if(g===i)e.report(41);else{if(!(2097152&g)){h|=32,d=Ig(e,t,r,1,c,1);const{tokenStart:n}=e,o=e.getToken();return 1077936155===o?(2&e.assignable&&e.report(26),d=_g(e,t,r,c,l,n,d),h|=16):(18===o?h|=16:o!==i&&(d=_g(e,t,r,c,l,n,d)),h|=1&e.assignable?32:16),e.destructible=h,e.getToken()!==i&&18!==e.getToken()&&e.report(161),e.finishNode({type:l?"RestElement":"SpreadElement",argument:d},u)}d=2162700===e.getToken()?qg(e,t,n,r,1,c,l,o,s):jg(e,t,n,r,1,c,l,o,s),g=e.getToken(),1077936155!==g&&g!==i&&18!==g?(8&e.destructible&&e.report(71),d=Lg(e,t,r,d,c,0,p),h|=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(d=wg(e,t,r,1,p,4,g,d)),Op(e,32|t,22)&&(d=Eg(e,t,r,d,p)),h|=2&e.assignable?16:32):(1077936155!==e.getToken()&&(h|=16),d=_g(e,t,r,c,l,p,d))):h|=1074790415===i&&1077936155!==g?16:e.destructible}if(e.getToken()!==i)if(1&o&&(h|=a?16:32),Op(e,32|t,1077936155)){16&h&&e.report(26),Pp(e,d);const n=pg(e,t,r,1,c,e.tokenStart);d=e.finishNode(l?{type:"AssignmentPattern",left:d,right:n}:{type:"AssignmentExpression",left:d,operator:"=",right:n},p),h=16}else h|=16;return e.destructible=h,e.finishNode({type:l?"RestElement":"SpreadElement",argument:d},u)}function Hg(e,t,n,r,i,o){var s,a;const c=11264|(64&r?0:16896);t=(t|c)^c|(8&r?1024:0)|(16&r?2048:0)|(64&r?16384:0)|98560;let l=e.createScopeIfLexical(256);const u=function(e,t,n,r,i,o,s){Rp(e,t,67174411);const a=[];if(e.flags=128^(128|e.flags),16===e.getToken())return 512&i&&e.report(37,"Setter","one",""),Sp(e,t),a;256&i&&e.report(37,"Getter","no","s"),512&i&&14===e.getToken()&&e.report(38),t=131072^(131072|t);let c=0,l=0;for(;18!==e.getToken();){let o=null;const{tokenStart:u}=e;if(143360&e.getToken()?(1&t||(36864&~e.getToken()||(e.flags|=256),537079808&~e.getToken()||(e.flags|=512)),o=um(e,t,n,1|i,0)):(2162700===e.getToken()?o=qg(e,t,n,r,1,s,1,1,0):69271571===e.getToken()?o=jg(e,t,n,r,1,s,1,1,0):14===e.getToken()&&(o=zg(e,t,n,r,16,1,0,0,s,1)),l=1,48&e.destructible&&e.report(50)),1077936155===e.getToken()){Sp(e,32|t),l=1;const n=pg(e,t,r,1,0,e.tokenStart);o=e.finishNode({type:"AssignmentPattern",left:o,right:n},u)}if(c++,a.push(o),!Op(e,t,18))break;if(16===e.getToken())break}return 512&i&&1!==c&&e.report(37,"Setter","one",""),null==n||n.reportScopeError(),l&&(e.flags|=128),Rp(e,t,16),a}(e,-524289&t|8192,l,n,r,0,i);l=null===(s=l)||void 0===s?void 0:s.createChildScope(64);const d=yg(e,36864|-655373&t,l,n,0,void 0,null===(a=l)||void 0===a?void 0:a.parent);return e.finishNode({type:"FunctionExpression",params:u,body:d,async:(16&r)>0,generator:(8&r)>0,id:null},o)}function qg(e,t,n,r,i,o,s,a,c){const{tokenStart:l}=e;Sp(e,t);const u=[];let d=0,h=0;for(t=131072^(131072|t);1074790415!==e.getToken();){const{tokenValue:i,tokenStart:l}=e,f=e.getToken();if(14===f)u.push(zg(e,t,n,r,1074790415,a,c,0,o,s));else{let p,g=0,m=null;if(143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken())if(-2147483527===e.getToken()&&(d|=16),m=Ug(e,t),18===e.getToken()||1074790415===e.getToken()||1077936155===e.getToken())if(g|=4,1&t&&!(537079808&~f)?d|=16:Dp(e,t,a,f,0),null==n||n.addVarOrBlock(t,i,a,c),Op(e,32|t,1077936155)){d|=8;const n=pg(e,t,r,1,o,e.tokenStart);d|=256&e.destructible?256:128&e.destructible?128:0,p=e.finishNode({type:"AssignmentPattern",left:e.cloneIdentifier(m),right:n},l)}else d|=(209006===f?128:0)|(-2147483528===f?16:0),p=e.cloneIdentifier(m);else if(Op(e,32|t,21)){const{tokenStart:l}=e;if("__proto__"===i&&h++,143360&e.getToken()){const i=e.getToken(),u=e.tokenValue;p=Ag(e,t,r,a,0,1,o,1,l);const h=e.getToken();p=Lg(e,t,r,p,o,0,l),18===e.getToken()||1074790415===e.getToken()?1077936155===h||1074790415===h||18===h?(d|=128&e.destructible?128:0,2&e.assignable?d|=16:143360&~i||null==n||n.addVarOrBlock(t,u,a,c)):d|=1&e.assignable?32:16:4194304&~e.getToken()?(d|=16,8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,h,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l))):(2&e.assignable?d|=16:1077936155!==h?d|=32:null==n||n.addVarOrBlock(t,u,a,c),p=_g(e,t,r,o,s,l,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,o,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,18!==e.getToken()&&1074790415!==f&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,l,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&e.destructible?e.report(71):(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l)),d|=2&e.assignable?16:32):p=vg(e,t,r,o,s,l,p)))}else 69271571===e.getToken()?(d|=16,209005===f&&(g|=16),g|=2|(209008===f?256:209009===f?512:1),m=Qg(e,t,r,o),d|=e.assignable,p=Hg(e,t,r,g,o,e.tokenStart)):143360&e.getToken()?(d|=16,-2147483528===f&&e.report(95),209005===f?(1&e.flags&&e.report(132),g|=17):209008===f?g|=256:209009===f?g|=512:e.report(0),m=Ug(e,t),p=Hg(e,t,r,g,o,e.tokenStart)):67174411===e.getToken()?(d|=16,g|=1,p=Hg(e,t,r,g,o,e.tokenStart)):8391476===e.getToken()?(d|=16,209008===f?e.report(42):209009===f?e.report(43):209005!==f&&e.report(30,ap[52]),Sp(e,t),g|=9|(209005===f?16:0),143360&e.getToken()?m=Ug(e,t):134217728&~e.getToken()?69271571===e.getToken()?(g|=2,m=Qg(e,t,r,o),d|=e.assignable):e.report(30,ap[255&e.getToken()]):m=Vg(e,t),p=Hg(e,t,r,g,o,e.tokenStart)):134217728&~e.getToken()?e.report(133):(209005===f&&(g|=16),g|=209008===f?256:209009===f?512:1,d|=16,m=Vg(e,t),p=Hg(e,t,r,g,o,e.tokenStart));else if(134217728&~e.getToken())if(69271571===e.getToken())if(m=Qg(e,t,r,o),d|=256&e.destructible?256:0,g|=2,21===e.getToken()){Sp(e,32|t);const{tokenStart:i,tokenValue:l}=e,u=e.getToken();if(143360&e.getToken()){p=Ag(e,t,r,a,0,1,o,1,i);const h=e.getToken();p=Lg(e,t,r,p,o,0,i),4194304&~e.getToken()?18===e.getToken()||1074790415===e.getToken()?1077936155===h||1074790415===h||18===h?2&e.assignable?d|=16:143360&~u||null==n||n.addVarOrBlock(t,l,a,c):d|=1&e.assignable?32:16:(d|=16,p=_g(e,t,r,o,s,i,p)):(d|=2&e.assignable?16:1077936155===h?0:32,p=vg(e,t,r,o,s,i,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,0,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,i),d=1&e.assignable?0:16,18!==e.getToken()&&1074790415!==e.getToken()&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,i,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&d?e.report(62):(p=Lg(e,t,r,p,o,0,i),d=2&e.assignable?16|d:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,i,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,i)),d|=2&e.assignable?16:32):(1077936155!==e.getToken()&&(d|=16),p=vg(e,t,r,o,s,i,p))))}else 67174411===e.getToken()?(g|=1,p=Hg(e,t,r,g,o,e.tokenStart),d=16):e.report(44);else if(8391476===f)if(Rp(e,32|t,8391476),g|=8,143360&e.getToken()){const n=e.getToken();if(m=Ug(e,t),g|=1,67174411!==e.getToken())throw new op(e.tokenStart,e.currentLocation,209005===n?46:209008===n||209009===e.getToken()?45:47,ap[255&n]);d|=16,p=Hg(e,t,r,g,o,e.tokenStart)}else 134217728&~e.getToken()?69271571===e.getToken()?(d|=16,g|=3,m=Qg(e,t,r,o),p=Hg(e,t,r,g,o,e.tokenStart)):e.report(126):(d|=16,m=Vg(e,t),g|=1,p=Hg(e,t,r,g,o,e.tokenStart));else e.report(30,ap[255&f]);else if(m=Vg(e,t),21===e.getToken()){Rp(e,32|t,21);const{tokenStart:l}=e;if("__proto__"===i&&h++,143360&e.getToken()){p=Ag(e,t,r,a,0,1,o,1,l);const{tokenValue:i}=e,u=e.getToken();p=Lg(e,t,r,p,o,0,l),18===e.getToken()||1074790415===e.getToken()?1077936155===u||1074790415===u||18===u?2&e.assignable?d|=16:null==n||n.addVarOrBlock(t,i,a,c):d|=1&e.assignable?32:16:1077936155===e.getToken()?(2&e.assignable&&(d|=16),p=_g(e,t,r,o,s,l,p)):(d|=16,p=_g(e,t,r,o,s,l,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,0,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,l),d=1&e.assignable?0:16,18!==e.getToken()&&1074790415!==e.getToken()&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,l,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&~e.destructible&&(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l)),d|=2&e.assignable?16:32):p=vg(e,t,r,o,s,l,p)))}else 67174411===e.getToken()?(g|=1,p=Hg(e,t,r,g,o,e.tokenStart),d=16|e.assignable):e.report(134);d|=128&e.destructible?128:0,e.destructible=d,u.push(e.finishNode({type:"Property",key:m,value:p,kind:768&g?512&g?"set":"get":"init",computed:(2&g)>0,method:(1&g)>0,shorthand:(4&g)>0},l))}if(d|=e.destructible,18!==e.getToken())break;Sp(e,t)}Rp(e,t,1074790415),h>1&&(d|=64);const f=e.finishNode({type:s?"ObjectPattern":"ObjectExpression",properties:u},l);return!i&&4194304&e.getToken()?Bg(e,t,r,d,o,s,l,f):(e.destructible=d,f)}function Qg(e,t,n,r){Sp(e,32|t);const i=pg(e,131072^(131072|t),n,1,r,e.tokenStart);return Rp(e,t,20),i}function $g(e,t,n){const{tokenStart:r}=e,{tokenValue:i}=e;let o=0,s=0;537079808&~e.getToken()?36864&~e.getToken()||(s=1):o=1;const a=Ug(e,t);if(e.assignable=1,10===e.getToken()){const c=e.options.lexical?Qp(e,t,i):void 0;return o&&(e.flags|=128),s&&(e.flags|=256),Kg(e,t,c,n,[a],0,r)}return a}function Yg(e,t,n,r,i,o,s,a,c){return s||e.report(57),o&&e.report(51),e.flags&=-129,Kg(e,t,e.options.lexical?Qp(e,t,r):void 0,n,[i],a,c)}function Jg(e,t,n,r,i,o,s,a){o||e.report(57);for(let t=0;t<i.length;++t)Pp(e,i[t]);return Kg(e,t,n,r,i,s,a)}function Kg(e,t,n,r,i,o,s){var a;1&e.flags&&e.report(48),Rp(e,32|t,10);const c=535552;t=(t|c)^c|(o?2048:0);const l=2162700!==e.getToken();let u;if(null===(a=n)||void 0===a||a.reportScopeError(),l)e.flags=4928^(4928|e.flags),u=pg(e,t,r,1,0,e.tokenStart);else{var d;const i=131084;switch(u=yg(e,(t|i)^i|4096,n=null===(d=n)||void 0===d?void 0:d.createChildScope(64),r,16,void 0,void 0),e.getToken()){case 69271571:1&e.flags||e.report(116);break;case 67108877:case 67174409:case 22:e.report(117);case 67174411:1&e.flags||e.report(116),e.flags|=1024}8388608&~e.getToken()||1&e.flags||e.report(30,ap[255&e.getToken()]),33619968&~e.getToken()||e.report(125)}return e.assignable=2,e.finishNode({type:"ArrowFunctionExpression",params:i,body:u,async:1===o,expression:l,generator:!1},s)}function Xg(e,t,n,r,i,o){Rp(e,t,67174411),e.flags=128^(128|e.flags);const s=[];if(Op(e,t,16))return s;t=131072^(131072|t);let a=0;for(;18!==e.getToken();){let c;const{tokenStart:l}=e,u=e.getToken();if(143360&u?(1&t||(36864&~u||(e.flags|=256),537079808&~u||(e.flags|=512)),c=um(e,t,n,1|o,0)):(2162700===u?c=qg(e,t,n,r,1,i,1,o,0):69271571===u?c=jg(e,t,n,r,1,i,1,o,0):14===u?c=zg(e,t,n,r,16,o,0,0,i,1):e.report(30,ap[255&u]),a=1,48&e.destructible&&e.report(50)),1077936155===e.getToken()){Sp(e,32|t),a=1;const n=pg(e,t,r,1,i,e.tokenStart);c=e.finishNode({type:"AssignmentPattern",left:c,right:n},l)}if(s.push(c),!Op(e,t,18))break;if(16===e.getToken())break}return a&&(e.flags|=128),(a||1&t)&&(null==n||n.reportScopeError()),Rp(e,t,16),s}function Zg(e,t,n,r,i,o){const s=e.getToken();if(67108864&s){if(67108877===s){Sp(e,262144|t),e.assignable=1;const i=Cg(e,t,n);return Zg(e,t,n,e.finishNode({type:"MemberExpression",object:r,computed:!1,property:i,optional:!1},o),0,o)}if(69271571===s){Sp(e,32|t);const{tokenStart:s}=e,a=mg(e,t,n,i,1,s);return Rp(e,t,20),e.assignable=1,Zg(e,t,n,e.finishNode({type:"MemberExpression",object:r,computed:!0,property:a,optional:!1},o),0,o)}if(67174408===s||67174409===s)return e.assignable=2,Zg(e,t,n,e.finishNode({type:"TaggedTemplateExpression",tag:r,quasi:67174408===e.getToken()?Dg(e,64|t,n):Pg(e,64|t)},o),0,o)}return r}function em(e,t,n,r,i){return 209006===e.getToken()&&e.report(31),1025&t&&241771===e.getToken()&&e.report(32),Wp(e,t,e.getToken()),36864&~e.getToken()||(e.flags|=256),Yg(e,-524289&t|2048,n,e.tokenValue,Ug(e,t),0,r,1,i)}function tm(e,t,n,r,i,o,s,a,c){var l;Sp(e,32|t);const u=null===(l=e.createScopeIfLexical())||void 0===l?void 0:l.createChildScope(512);if(Op(e,t=131072^(131072|t),16))return 10===e.getToken()?(1&a&&e.report(48),Jg(e,t,u,n,[],i,1,c)):e.finishNode({type:"CallExpression",callee:r,arguments:[],optional:!1},c);let d=0,h=null,f=0;e.destructible=384^(384|e.destructible);const p=[];for(;16!==e.getToken();){const{tokenStart:i}=e,a=e.getToken();if(143360&a)null==u||u.addBlockName(t,e.tokenValue,o,0),537079808&~a?36864&~a||(e.flags|=256):e.flags|=512,h=Ag(e,t,n,o,0,1,1,1,i),16===e.getToken()||18===e.getToken()?2&e.assignable&&(d|=16,f=1):(1077936155===e.getToken()?f=1:d|=16,h=Lg(e,t,n,h,1,0,i),16!==e.getToken()&&18!==e.getToken()&&(h=_g(e,t,n,1,0,i,h)));else if(2097152&a)h=2162700===a?qg(e,t,u,n,0,1,0,o,s):jg(e,t,u,n,0,1,0,o,s),d|=e.destructible,f=1,16!==e.getToken()&&18!==e.getToken()&&(8&d&&e.report(122),h=Lg(e,t,n,h,0,0,i),d|=16,8388608&~e.getToken()||(h=wg(e,t,n,1,c,4,a,h)),Op(e,32|t,22)&&(h=Eg(e,t,n,h,c)));else{if(14!==a){for(h=pg(e,t,n,1,0,i),d=e.assignable,p.push(h);Op(e,32|t,18);)p.push(pg(e,t,n,1,0,i));return d|=e.assignable,Rp(e,t,16),e.destructible=16|d,e.assignable=2,e.finishNode({type:"CallExpression",callee:r,arguments:p,optional:!1},c)}h=zg(e,t,u,n,16,o,s,1,1,0),d|=(16===e.getToken()?0:16)|e.destructible,f=1}if(p.push(h),!Op(e,32|t,18))break}return Rp(e,t,16),d|=256&e.destructible?256:128&e.destructible?128:0,10===e.getToken()?(48&d&&e.report(27),(1&e.flags||1&a)&&e.report(48),128&d&&e.report(31),1025&t&&256&d&&e.report(32),f&&(e.flags|=128),Jg(e,2048|t,u,n,p,i,1,c)):(64&d&&e.report(63),8&d&&e.report(62),e.assignable=2,e.finishNode({type:"CallExpression",callee:r,arguments:p,optional:!1},c))}function nm(e,t,n,r,i){let o,s;e.leadingDecorators.decorators.length?(132===e.getToken()&&e.report(30,"@"),o=e.leadingDecorators.start,s=[...e.leadingDecorators.decorators],e.leadingDecorators.decorators.length=0):(o=e.tokenStart,s=rm(e,t,r)),Sp(e,t=16384^(16385|t));let a=null,c=null;const{tokenValue:l}=e;4096&e.getToken()&&20565!==e.getToken()?(xp(e,t,e.getToken())&&e.report(118),537079808&~e.getToken()||e.report(119),n&&(n.addBlockName(t,l,32,0),i&&2&i&&e.declareUnboundVariable(l)),a=Ug(e,t)):1&i||e.report(39,"Class");let u=t;Op(e,32|t,20565)?(c=Ig(e,t,r,0,0,0),u|=512):u=512^(512|u);const d=om(e,u,t,n,r,2,8,0);return e.finishNode(Yo({type:"ClassDeclaration",id:a,superClass:c,body:d},e.options.next?{decorators:s}:null),o)}function rm(e,t,n){const r=[];if(e.options.next)for(;132===e.getToken();)r.push(im(e,t,n));return r}function im(e,t,n){const r=e.tokenStart;Sp(e,32|t);const i=e.tokenStart;let o=Ag(e,t,n,2,0,1,0,1,r);return o=Lg(e,t,n,o,0,0,i),e.finishNode({type:"Decorator",expression:o},r)}function om(e,t,n,r,i,o,s,a){const{tokenStart:c}=e,l=e.createPrivateScopeIfLexical(i);Rp(e,32|t,2162700);const u=655360;t=(t|u)^u;const d=32&e.flags;e.flags=32^(32|e.flags);const h=[];for(;1074790415!==e.getToken();){const i=e.tokenStart,s=rm(e,t,l);s.length>0&&"constructor"===e.tokenValue&&e.report(109),1074790415===e.getToken()&&e.report(108),Op(e,t,1074790417)?s.length>0&&e.report(120):h.push(sm(e,t,r,l,n,o,s,0,a,s.length>0?i:e.tokenStart))}return Rp(e,8&s?32|t:t,1074790415),null==l||l.validatePrivateIdentifierRefs(),e.flags=-33&e.flags|d,e.finishNode({type:"ClassBody",body:h},c)}function sm(e,t,n,r,i,o,s,a,c,l){let u=a?32:0,d=null;const h=e.getToken();if(176128&h||-2147483528===h)switch(d=Ug(e,t),h){case 36970:if(!a&&67174411!==e.getToken()&&1048576&~e.getToken()&&1077936155!==e.getToken())return sm(e,t,n,r,i,o,s,1,c,l);break;case 209005:if(67174411!==e.getToken()&&!(1&e.flags)){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=16|(kp(e,t,8391476)?8:0)}break;case 209008:if(67174411!==e.getToken()){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=256}break;case 209009:if(67174411!==e.getToken()){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=512}break;case 12402:if(67174411!==e.getToken()&&!(1&e.flags)){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);e.options.next&&(u|=1024)}}else if(69271571===h)u|=2,d=Qg(e,i,r,c);else if(134217728&~h)if(8391476===h)u|=8,Sp(e,t);else if(130===e.getToken())u|=8192,d=am(e,16|t,r,768);else if(1073741824&~e.getToken()){if(a&&2162700===h)return function(e,t,n,r,i){var o;return Xp(e,t=592128|5764^(5764|t),n=null===(o=n)||void 0===o?void 0:o.createChildScope(),r,{},i,"StaticBlock")}(e,16|t,n,r,l);-2147483527===h?(d=Ug(e,t),67174411!==e.getToken()&&e.report(30,ap[255&e.getToken()])):e.report(30,ap[255&e.getToken()])}else u|=128;else d=Vg(e,t);if(1816&u&&(143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken()?d=Ug(e,t):134217728&~e.getToken()?69271571===e.getToken()?(u|=2,d=Qg(e,t,r,0)):130===e.getToken()?(u|=8192,d=am(e,t,r,u)):e.report(135):d=Vg(e,t)),2&u||("constructor"===e.tokenValue?(1073741824&~e.getToken()?32&u||67174411!==e.getToken()||(920&u?e.report(53,"accessor"):512&t||(32&e.flags?e.report(54):e.flags|=32)):e.report(129),u|=64):!(8192&u)&&32&u&&"prototype"===e.tokenValue&&e.report(52)),1024&u||67174411!==e.getToken()&&!(768&u))return cm(e,t,r,d,u,s,l);const f=Hg(e,16|t,r,u,c,e.tokenStart);return e.finishNode(Yo({type:"MethodDefinition",kind:!(32&u)&&64&u?"constructor":256&u?"get":512&u?"set":"method",static:(32&u)>0,computed:(2&u)>0,key:d,value:f},e.options.next?{decorators:s}:null),l)}function am(e,t,n,r){const{tokenStart:i}=e;Sp(e,t);const{tokenValue:o}=e;return"constructor"===o&&e.report(128),e.options.lexical&&(n||e.report(4,o),r?n.addPrivateIdentifier(o,r):n.addPrivateIdentifierRef(o)),Sp(e,t),e.finishNode({type:"PrivateIdentifier",name:o},i)}function cm(e,t,n,r,i,o,s){let a=null;if(8&i&&e.report(0),1077936155===e.getToken()){Sp(e,32|t);const{tokenStart:r}=e;537079927===e.getToken()&&e.report(119);const o=11264|(64&i?0:16896);a=Ag(e,16|(t=(t|o)^o|(8&i?1024:0)|(16&i?2048:0)|(64&i?16384:0)|65792),n,2,0,1,0,1,r),!(1073741824&~e.getToken())&&4194304&~e.getToken()||(a=Lg(e,16|t,n,a,0,0,r),a=_g(e,16|t,n,0,0,r,a))}return Np(e,t),e.finishNode(Yo({type:1024&i?"AccessorProperty":"PropertyDefinition",key:r,value:a,static:(32&i)>0,computed:(2&i)>0},e.options.next?{decorators:o}:null),s)}function lm(e,t,n,r,i,o){if(143360&e.getToken()||!(1&t)&&-2147483527===e.getToken())return um(e,t,n,i,o);2097152&~e.getToken()&&e.report(30,ap[255&e.getToken()]);const s=69271571===e.getToken()?jg(e,t,n,r,1,0,1,i,o):qg(e,t,n,r,1,0,1,i,o);return 16&e.destructible&&e.report(50),32&e.destructible&&e.report(50),s}function um(e,t,n,r,i){const o=e.getToken();1&t&&(537079808&~o?36864&~o&&-2147483527!==o||e.report(118):e.report(119)),20480&~o||e.report(102),241771===o&&(1024&t&&e.report(32),2&t&&e.report(111)),73==(255&o)&&24&r&&e.report(100),209006===o&&(2048&t&&e.report(176),2&t&&e.report(110));const{tokenValue:s,tokenStart:a}=e;return Sp(e,t),null==n||n.addVarOrBlock(t,s,r,i),e.finishNode({type:"Identifier",name:s},a)}function dm(e,t,n,r,i){if(r||Rp(e,t,8456256),8390721===e.getToken()){const o=function(e,t){return Bp(e),e.finishNode({type:"JSXOpeningFragment"},t)}(e,i),[s,a]=function(e,t,n,r){const i=[];for(;;){const o=fm(e,t,n,r);if("JSXClosingFragment"===o.type)return[i,o];i.push(o)}}(e,t,n,r);return e.finishNode({type:"JSXFragment",openingFragment:o,children:s,closingFragment:a},i)}8457014===e.getToken()&&e.report(30,ap[255&e.getToken()]);let o=null,s=[];const a=function(e,t,n,r,i){143360&~e.getToken()&&4096&~e.getToken()&&e.report(0);const o=gm(e,t),s=function(e,t,n){const r=[];for(;8457014!==e.getToken()&&8390721!==e.getToken()&&1048576!==e.getToken();)r.push(_m(e,t,n));return r}(e,t,n),a=8457014===e.getToken();return a&&Rp(e,t,8457014),8390721!==e.getToken()&&e.report(25,ap[65]),r||!a?Bp(e):Sp(e,t),e.finishNode({type:"JSXOpeningElement",name:o,attributes:s,selfClosing:a},i)}(e,t,n,r,i);if(!a.selfClosing){[s,o]=function(e,t,n,r){const i=[];for(;;){const o=hm(e,t,n,r);if("JSXClosingElement"===o.type)return[i,o];i.push(o)}}(e,t,n,r);const i=Up(o.name);Up(a.name)!==i&&e.report(155,i)}return e.finishNode({type:"JSXElement",children:s,openingElement:a,closingElement:o},i)}function hm(e,t,n,r){if(137===e.getToken())return pm(e,t);if(2162700===e.getToken())return Em(e,t,n,1,0);if(8456256===e.getToken()){const{tokenStart:i}=e;return Sp(e,t),8457014===e.getToken()?function(e,t,n,r){Rp(e,t,8457014);const i=gm(e,t);return 8390721!==e.getToken()&&e.report(25,ap[65]),n?Bp(e):Sp(e,t),e.finishNode({type:"JSXClosingElement",name:i},r)}(e,t,r,i):dm(e,t,n,1,i)}e.report(0)}function fm(e,t,n,r){if(137===e.getToken())return pm(e,t);if(2162700===e.getToken())return Em(e,t,n,1,0);if(8456256===e.getToken()){const{tokenStart:i}=e;return Sp(e,t),8457014===e.getToken()?function(e,t,n,r){return Rp(e,t,8457014),8390721!==e.getToken()&&e.report(25,ap[65]),n?Bp(e):Sp(e,t),e.finishNode({type:"JSXClosingFragment"},r)}(e,t,r,i):dm(e,t,n,1,i)}e.report(0)}function pm(e,t){const n=e.tokenStart;Sp(e,t);const r={type:"JSXText",value:e.tokenValue};return e.options.raw&&(r.raw=e.tokenRaw),e.finishNode(r,n)}function gm(e,t){const{tokenStart:n}=e;zp(e);let r=wm(e,t);if(21===e.getToken())return vm(e,t,r,n);for(;Op(e,t,67108877);)zp(e),r=mm(e,t,r,n);return r}function mm(e,t,n,r){const i=wm(e,t);return e.finishNode({type:"JSXMemberExpression",object:n,property:i},r)}function _m(e,t,n){const{tokenStart:r}=e;if(2162700===e.getToken())return function(e,t,n){const r=e.tokenStart;Sp(e,t),Rp(e,t,14);const i=pg(e,t,n,1,0,e.tokenStart);return Rp(e,t,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:i},r)}(e,t,n);zp(e);let i=null,o=wm(e,t);if(21===e.getToken()&&(o=vm(e,t,o,r)),1077936155===e.getToken())switch(function(e,t){return e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.setToken(8192&jf[e.currentChar]?function(e){const t=e.currentChar;let n=Qf(e);const r=e.index;for(;n!==t;)e.index>=e.end&&e.report(16),n=Qf(e);return n!==t&&e.report(16),e.tokenValue=e.source.slice(r,e.index),Qf(e),e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}(e):bp(e,t,0)),e.getToken()}(e,t)){case 134283267:i=Vg(e,t);break;case 8456256:i=dm(e,t,n,0,e.tokenStart);break;case 2162700:i=Em(e,t,n,0,1);break;default:e.report(154)}return e.finishNode({type:"JSXAttribute",value:i,name:o},r)}function vm(e,t,n,r){Rp(e,t,21);const i=wm(e,t);return e.finishNode({type:"JSXNamespacedName",namespace:n,name:i},r)}function Em(e,t,n,r,i){const{tokenStart:o}=e;Sp(e,32|t);const{tokenStart:s}=e;if(14===e.getToken())return function(e,t,n,r){Rp(e,t,14);const i=pg(e,t,n,1,0,e.tokenStart);return Rp(e,t,1074790415),e.finishNode({type:"JSXSpreadChild",expression:i},r)}(e,t,n,o);let a=null;return 1074790415===e.getToken()?(i&&e.report(157),a=function(e,t){return e.finishNode({type:"JSXEmptyExpression"},t,e.tokenStart)}(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):a=pg(e,t,n,1,0,s),1074790415!==e.getToken()&&e.report(25,ap[15]),r?Bp(e):Sp(e,t),e.finishNode({type:"JSXExpressionContainer",expression:a},o)}function wm(e,t){const n=e.tokenStart;143360&e.getToken()||e.report(30,ap[255&e.getToken()]);const{tokenValue:r}=e;return Sp(e,t),e.finishNode({type:"JSXIdentifier",name:r},n)}function ym(e,t){return function(e,t={},n=0){const r=new $p(e,t);"module"===r.options.sourceType&&(n|=3),"commonjs"===r.options.sourceType&&(n|=69632),r.options.impliedStrict&&(n|=1),function(e){const{source:t}=e;35===e.currentChar&&33===t.charCodeAt(e.index+1)&&(Qf(e),Qf(e),np(e,t,0,4,e.tokenStart))}(r);const i=r.createScopeIfLexical();let o=[],s="script";if(2&n){if(s="module",o=function(e,t,n){Sp(e,32|t);const r=[];for(;134283267===e.getToken();){const{tokenStart:n}=e,i=e.getToken();r.push(ng(e,t,Vg(e,t),i,n))}for(;1048576!==e.getToken();)r.push(Yp(e,t,n));return r}(r,8|n,i),i)for(const e of r.exportedBindings)i.hasVariable(e)||r.report(148,e)}else o=function(e,t,n){Sp(e,262176|t);const r=[];for(;134283267===e.getToken();){const{index:n,tokenValue:i,tokenStart:o,tokenIndex:s}=e,a=e.getToken(),c=Vg(e,t);if(Tp(e,n,s,i)){if(t|=1,64&e.flags)throw new op(e.tokenStart,e.currentLocation,9);if(4096&e.flags)throw new op(e.tokenStart,e.currentLocation,15)}r.push(ng(e,t,c,a,o))}for(;1048576!==e.getToken();)r.push(Jp(e,t,n,void 0,4,{}));return r}(r,8|n,i);return r.finishNode({type:"Program",sourceType:s,body:o},{index:0,line:1,column:0},r.currentLocation)}(e,Yo(Yo({},t),{},{sourceType:"script"}))}const{stringify:Im}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const Lm={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Cm=17,Am={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Cm,ClassExpression:Cm,FunctionExpression:Cm,ObjectExpression:Cm,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Sm(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i<r;i++){const r=t[i];e.write(", "),n[r.type](r,e)}}e.write(")")}function bm(e,t,n,r){const i=e.expressionsPrecedence[t.type];if(i===Cm)return!0;const o=e.expressionsPrecedence[n.type];return i!==o?!r&&15===i&&14===o&&"**"===n.operator||i<o:(13===i||14===i)&&("**"===t.operator&&"**"===n.operator?!r:13===i&&13===o&&("??"===t.operator||"??"===n.operator)||(r?Lm[t.operator]<=Lm[n.operator]:Lm[t.operator]<Lm[n.operator]))}function Nm(e,t,n,r){const{generator:i}=e;bm(e,t,n,r)?(e.write("("),i[t.type](t,e),e.write(")")):i[t.type](t,e)}function Tm(e,t,n,r){const i=t.split("\n"),o=i.length-1;if(e.write(i[0].trim()),o>0){e.write(r);for(let t=1;t<o;t++)e.write(n+i[t].trim()+r);e.write(n+i[o].trim())}}function km(e,t,n,r){const{length:i}=t;for(let o=0;o<i;o++){const i=t[o];e.write(n),"L"===i.type[0]?e.write("// "+i.value.trim()+"\n",i):(e.write("/*"),Tm(e,i.value,n,r),e.write("*/"+r))}}function Om(e,t){const{generator:n}=e,{declarations:r}=t;e.write(t.kind+" ");const{length:i}=r;if(i>0){n.VariableDeclarator(r[0],e);for(let t=1;t<i;t++)e.write(", "),n.VariableDeclarator(r[t],e)}}let Rm,Pm,Dm,Mm,xm,Gm;const Um={Program(e,t){const n=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:i}=t;i&&null!=e.comments&&km(t,e.comments,n,r);const o=e.body,{length:s}=o;for(let e=0;e<s;e++){const s=o[e];i&&null!=s.comments&&km(t,s.comments,n,r),t.write(n),this[s.type](s,t),t.write(r)}i&&null!=e.trailingComments&&km(t,e.trailingComments,n,r)},BlockStatement:Gm=function(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,o=n+t.indent;t.write("{");const s=e.body;if(null!=s&&s.length>0){t.write(r),i&&null!=e.comments&&km(t,e.comments,o,r);const{length:a}=s;for(let e=0;e<a;e++){const n=s[e];i&&null!=n.comments&&km(t,n.comments,o,r),t.write(o),this[n.type](n,t),t.write(r)}t.write(n)}else i&&null!=e.comments&&(t.write(r),km(t,e.comments,o,r),t.write(n));i&&null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write("}"),t.indentLevel--},ClassBody:Gm,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const n=t.expressionsPrecedence[e.expression.type];n===Cm||3===n&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t;t.indentLevel++;const o=n+t.indent,s=o+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);const{cases:a}=e,{length:c}=a;for(let e=0;e<c;e++){const n=a[e];i&&null!=n.comments&&km(t,n.comments,o,r),n.test?(t.write(o+"case "),this[n.test.type](n.test,t),t.write(":"+r)):t.write(o+"default:"+r);const{consequent:c}=n,{length:l}=c;for(let e=0;e<l;e++){const n=c[e];i&&null!=n.comments&&km(t,n.comments,s,r),t.write(s),this[n.type](n,t),t.write(r)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:n}=e;null==n.param?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:n}=e;"V"===n.type[0]?Om(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Rm=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:n}=e;"V"===n.type[0]?Om(t,n):this[n.type](n,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Rm,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Pm=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Sm(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Pm,VariableDeclaration(e,t){Om(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:n}=e,{type:r}=n,i=t.expressionsPrecedence[r];"C"===r[0]&&"l"===r[1]&&"E"===r[5]||!(i===Cm||i<t.expressionsPrecedence.ClassExpression)?this[n.type](n,t):(t.write("("),this[e.superClass.type](n,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:n,attributes:r}=e,{length:i}=n;let o=0;if(i>0){for(;o<i;){o>0&&t.write(", ");const e=n[o],r=e.type[6];if("D"===r)t.write(e.local.name,e),o++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),o++}}if(o<i){for(t.write("{");;){const e=n[o],{name:r}=e.imported;if(t.write(r,e),r!==e.local.name&&t.write(" as "+e.local.name),!(++o<i))break;t.write(", ")}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),r&&r.length>0){t.write(" with { ");for(let e=0;e<r.length;e++)this.ImportAttribute(r[e],t),e<r.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:n}=e,{length:r}=n;if(r>0)for(let e=0;;){const i=n[e],{name:o}=i.local;if(t.write(o,i),o!==i.exported.name&&t.write(" as "+i.exported.name),!(++e<r))break;t.write(", ")}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++)this.ImportAttribute(e.attributes[n],t),n<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++)this.ImportAttribute(e.attributes[n],t),n<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const n=e.kind[0];"g"!==n&&"s"!==n||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Sm(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:n}=e;null!=n&&(1===n.length&&"I"===n[0].type[0]?t.write(n[0].name,n[0]):Sm(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Dm=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Dm,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Nm(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e<i;e++){const i=r[e],o=n[e];t.write(o.value.raw,o),t.write("${"),this[i.type](i,t),t.write("}")}const o=n[n.length-1];t.write(o.value.raw,o),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Nm(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:xm=function(e,t){if(t.write("["),e.elements.length>0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e<r)){null==i&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:xm,ObjectExpression(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,o=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),i&&null!=e.comments&&km(t,e.comments,o,r);const s=","+r,{properties:a}=e,{length:c}=a;for(let e=0;;){const n=a[e];if(i&&null!=n.comments&&km(t,n.comments,o,r),t.write(o),this[n.type](n,t),!(++e<c))break;t.write(s)}t.write(r),i&&null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write(n+"}")}else i?null!=e.comments?(t.write(r),km(t,e.comments,o,r),null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write(n+"}")):null!=e.trailingComments?(t.write(r),km(t,e.trailingComments,o,r),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Sm(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:n,argument:r,argument:{type:i}}=e;t.write(n);const o=bm(t,r,e);o||!(n.length>1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Mm=function(e,t){const n="in"===e.operator;n&&t.write("("),Nm(t,e.left,e,!1),t.write(" "+e.operator+" "),Nm(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:Mm,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===Cm||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===Cm||n<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Sm(t,e.arguments)},CallExpression(e,t){const n=t.expressionsPrecedence[e.callee.type];n===Cm||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Sm(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const n=t.expressionsPrecedence[e.object.type];n===Cm||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(Im(e.value),e)},RegExpLiteral(e,t){const{regex:n}=e;t.write(`/${n.pattern}/${n.flags}`,e)}},Vm={};class Wm{constructor(e){const t=null==e?Vm:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:Um,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Am,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:n}=t;if("L"===n[0]&&"n"===n[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===n[0]&&"E"===n[8]||"L"===n[0]&&"i"===n[1]&&"string"==typeof t.value){const{length:t}=e;let{column:n,line:r}=this;for(let i=0;i<t;i++)"\n"===e[i]?(n=0,r++):n++;return this.column=n,void(this.line=r)}}const{length:n}=e,{lineEnd:r}=this;n>0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}function Fm(e,t){const n=new Wm(t);return n.generator[e.type](e,n),n.output}const jm=(e,t,n=null)=>{var r;if(!e)return e;const i=t[e.type];let o;if("function"==typeof i?o=i(e,n):null!=i&&i.enter&&(o=i.enter(e,n)),!1===o)return e;o&&(e=o);for(const n in e){const r=e[n];if(Array.isArray(r))for(let n=0;n<r.length;n++){const i=r[n];null!=i&&i.type&&(r[n]=jm(i,t,e))}else null!=r&&r.type&&(e[n]=jm(r,t,e))}return i&&"function"!=typeof i&&(null===(r=i.leave)||void 0===r||r.call(i,e,n)),e},Bm="cbioGetter",zm=["location","top","parent"],Hm="cbioSetter",qm=["location","top","parent"],Qm="cbioCaller",$m=["postMessage"],Ym="cbioImporter",Jm="cbioIsNative",Km="cbioPatchJs",Xm=["FunctionExpression","FunctionDeclaration","ArrowFunctionExpression"],Zm=e=>({type:"Literal",value:e}),e_=(e,t)=>"Literal"===(null==e?void 0:e.type)&&(null==e?void 0:e.value)===t,t_=e=>({type:"Identifier",name:e}),n_=(e,t)=>({type:"CallExpression",callee:e,arguments:t.map(e=>e&&"object"==typeof e?e:Zm(e||null))}),r_=(e,t,n)=>({type:"ConditionalExpression",test:e,consequent:t,alternate:n}),i_=(e,t,n)=>({type:"VariableDeclarator",id:e,init:n?r_({type:"BinaryExpression",left:t,right:t_("undefined"),operator:"!=="},t,n):t}),o_=(e,t,n)=>({type:"MemberExpression",object:e,property:t,computed:n}),s_=jl("cbio.js.ast.patch"),a_=(e,t)=>!(!e||"object"!=typeof e)&&("MemberExpression"===e.type&&"Identifier"===e.property.type&&e.property.name===t||"MemberExpression"===e.type&&"Literal"===e.property.type&&e.property.value===t||"Identifier"===e.type&&e.name===t||(e.object?a_(e.object,t):!!e.property&&a_(e.property,t))),c_=(e,t=[])=>{var n,r,i;return"Identifier"===(null===(n=e.property)||void 0===n?void 0:n.type)&&t.push(e.property.name),"Literal"===(null===(r=e.property)||void 0===r?void 0:r.type)&&t.push(e.property.value),"MemberExpression"===(null===(i=e.property)||void 0===i?void 0:i.type)&&t.push(e.property),e.name&&t.push(e.name),e.object?c_(e.object,t):t},l_=(e,t)=>{if("MemberExpression"===e.type){var n,r;if("Identifier"===(null===(n=e.property)||void 0===n?void 0:n.type)&&qm.includes(e.property.name)){const n=Yo({},e.object);return delete e.object,[n,c_(t).reverse()]}if("Literal"===(null===(r=e.property)||void 0===r?void 0:r.type)&&qm.includes(e.property.value)){const n=Yo({},e.object);return delete e.object,[n,c_(t).reverse()]}if(e.object)return l_(e.object,t)}return"Identifier"===e.type&&qm.includes(e.name)?[null,c_(t).reverse()]:null},u_=e=>e.length?e.reduce((e,t)=>e?{type:"MemberExpression",object:e,property:t.node,computed:t.computed}:t.node,null):null,d_=e=>{var t,n;if("AwaitExpression"===(null==e||null===(t=e.object)||void 0===t?void 0:t.type))return e;const{base:r,calls:i}=(e=>{const t=[];let n=e;for(;"CallExpression"===(null===(r=n)||void 0===r?void 0:r.type);){var r;t.push(n),n=n.callee}return{base:n,calls:t}})(e);if(!r)return e;const o=((e,t)=>{if("Identifier"!==e.type&&"MemberExpression"!==e.type)return null;const n=(e=>{const t=[];let n=e;for(;"MemberExpression"===(null===(r=n)||void 0===r?void 0:r.type);){var r;t.unshift({node:n.property,computed:n.computed}),n=n.object}return n&&t.unshift({node:n,computed:!1}),t})(e),r=n.findIndex(e=>e.computed||"Identifier"===e.node.type&&t.includes(e.node.name));return-1===r?null:{before:n.slice(0,r),identifier:n[r],after:n.slice(r+1)}})(r,zm);if(!o)return e;if(((e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t)(e,o.identifier.node.name))return e;if(o.identifier.computed&&"CallExpression"===e.type)return e;const s=u_(o.before),a={type:"ArrowFunctionExpression",params:[],body:null!==(n=u_([...o.before,o.identifier]))&&void 0!==n?n:o.identifier,async:!1,expression:!0};let c=n_(t_(Bm),[null!=s?s:Zm(null),o.identifier.computed?o.identifier.node:Zm(o.identifier.node.name),a]);o.after.length&&(c=u_([{node:c,computed:!1},...o.after]));for(let e=i.length-1;e>=0;e--)c=Yo(Yo({},i[e]),{},{callee:c});return c},h_=e=>{let t=e,n=!0;for(;n;){const e=d_(t);e===t?n=!1:t=e}return t},f_=(e,t,n)=>{const{proxify:r,url:i}=t,o=(()=>{const e=[];return{enter:()=>e.push(new Set),exit:()=>e.pop(),declare:t=>{var n;return null===(n=e.at(-1))||void 0===n?void 0:n.add(t)},isDeclared:t=>e.some(e=>e.has(t))}})();jm(e,{VariableDeclarator(e){if(!e.init)return;const t=h_(e.init);return t!==e.init?Yo(Yo({},e),{},{init:t}):void 0},CallExpression(e,t){if(!e.arguments.length)return;const n=e.arguments.map(h_);return((e,t)=>{var n,r,i;const o=(null===(n=e.callee)||void 0===n||null===(n=n.property)||void 0===n?void 0:n.name)||(null===(r=e.callee)||void 0===r?void 0:r.name);if("eval"===o&&!(e=>{var t;return"ConditionalExpression"===(null==e?void 0:e.type)&&(null==e||null===(t=e.test)||void 0===t||null===(t=t.callee)||void 0===t?void 0:t.name)===Jm})(t))return(({callee:e,arguments:t})=>{const n=n_(t_(Jm),[e.object?e.object:null,Zm("eval")]),r=n_(e,[n_(t_(Km),t)]),i=n_(e,t);return r_(n,r,i)})(e);if("SequenceExpression"===(null===(i=e.callee)||void 0===i?void 0:i.type)){const t=e.callee.expressions.at(-1);"Identifier"===t.type&&"eval"===t.name&&(e.arguments=[n_(t_(Km),e.arguments)])}if(!$m.includes(o))return e;const s=[...e.callee.object?[e.callee.object]:[Zm(null)],Zm(o),{type:"ArrayExpression",elements:e.arguments}];return n_(t_(Qm),s)})(Yo(Yo({},e),{},{arguments:n}),t)},ExpressionStatement(e){const t=h_(e.expression);if(t!==e.expression)return Yo(Yo({},e),{},{expression:t})},BinaryExpression(e){const t=h_(e.left),n=h_(e.right);if(t!==e.left||n!==e.right)return Yo(Yo({},e),{},{left:t,right:n})},AssignmentExpression(e){const t=h_(e.right);return((e,t)=>{if(!qm.some(t=>a_(e.left,t)))return e;if(((e,t)=>{var n,r;return!("Identifier"!==t.type||!e.isDeclared(t.name))||!("MemberExpression"!==t.type||"Identifier"!==(null===(n=t.object)||void 0===n?void 0:n.type)||!e.isDeclared(null===(r=t.object)||void 0===r?void 0:r.name))})(t,e.left))return e;const n=l_(e.left,e.left);if(!n)return e;const[r,i]=n,o={type:"ArrayExpression",elements:i.map(e=>e.type?e:Zm(e))};return n_(t_(Hm),[r,o,e.right])})(Yo(Yo({},e),{},{right:t}),o)},ObjectExpression(e){if(!e.properties.length)return;const t=e.properties.map(e=>Yo(Yo({},e),{},{value:h_(e.value)}));return Yo(Yo({},e),{},{properties:t})},ReturnStatement(e){if(!e.argument)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},NewExpression(e){if(!e.arguments.length)return;const t=e.arguments.map(h_);return Yo(Yo({},e),{},{arguments:t})},IfStatement(e){if(!e.test)return;const t=h_(e.test);return Yo(Yo({},e),{},{test:t})},UnaryExpression(e){if(!e.argument)return;if("delete"===e.operator)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},ConditionalExpression(e){const t=h_(e.test),n=h_(e.consequent),r=h_(e.alternate);if(t!==e.test||n!==e.consequent||r!==e.alternate)return Yo(Yo({},e),{},{test:t,consequent:n,alternate:r})},VariableDeclaration(e){const t=e.declarations.flatMap(e=>{if("ObjectPattern"!==e.id.type)return[e];const t=[];for(let n=0;n<e.id.properties.length;n++){const r=e.id.properties[n];if(!r.value)return[e];if("RestElement"===r.value.type)return[e];if("Literal"===r.key.type)return[e];if(!e.init)return[e];if("AwaitExpression"===e.init.type)return[e];const i={type:"MemberExpression",object:e.init,property:r.key};"AssignmentPattern"===r.value.type?t.push(i_(r.value.left,i,r.value.right)):t.push(i_(r.value,i))}return t}),n=Yo(Yo({},e),{},{declarations:t});return((e,t)=>{for(let n=0;n<t.declarations.length;n++){const r=t.declarations[n].id;"Identifier"===r.type&&e.declare(r.name)}})(o,n),n},Program:{enter(){o.enter()},leave(){o.exit()}},FunctionDeclaration:{enter(){o.enter()},leave(){o.exit()}},BlockStatement:{enter:(e,t)=>(o.enter(),Xm.includes(null==t?void 0:t.type)&&0===e.body.length?Yo(Yo({},e),{},{comments:n.filter(t=>t.start>=e.start&&t.end<=e.end).map(e=>({type:e.type,value:e.value}))}):e),leave(){o.exit()}},ExportNamedDeclaration(e){var t;if("Literal"===(null===(t=e.source)||void 0===t?void 0:t.type))return Yo(Yo({},e),{},{source:{value:r(e.source.value),raw:void 0}})},ImportDeclaration(e){var t;if("Literal"===(null===(t=e.source)||void 0===t?void 0:t.type))return Yo(Yo({},e),{},{source:{value:r(e.source.value),raw:void 0}})},ImportExpression(e){const t=Zm(i.toString()),n=n_(t_(Ym),[e.source,t]);return Yo(Yo({},e),{},{source:n})},LogicalExpression(e){const t=h_(e.left),n=h_(e.right);if(t!==e.left||n!==e.right)return Yo(Yo({},e),{},{left:t,right:n})},ArrayExpression(e){if(!e.elements.length)return;const t=e.elements.map(h_);return Yo(Yo({},e),{},{elements:t})},ThrowStatement(e){if(!e.argument)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},SequenceExpression(e){if(!e.expressions.length)return;const t=e.expressions.map(h_);return Yo(Yo({},e),{},{expressions:t})},ArrowFunctionExpression(e,t){if(!e.expression)return;if("CallExpression"===(null==t?void 0:t.type)&&[Bm,Hm,Qm,Ym,Jm,Km].includes(t.callee.name))return;const n=h_(e.body);return n!==e.body?Yo(Yo({},e),{},{body:n}):void 0},Literal(e){void 0!==e.raw&&(e.value=e.raw)},TemplateLiteral(e){if(!e.expressions.length)return;const t=e.expressions.map(h_);return Yo(Yo({},e),{},{expressions:t})},ForInStatement(e){const t=h_(e.right);if(t!==e.right)return Yo(Yo({},e),{},{right:t})},ForOfStatement(e){const t=h_(e.right);if(t!==e.right)return Yo(Yo({},e),{},{right:t})},SpreadElement(e){const t=h_(e.argument);if(t!==e.argument)return Yo(Yo({},e),{},{argument:t})},SwitchStatement(e){const t=h_(e.discriminant);if(t!==e.discriminant)return Yo(Yo({},e),{},{discriminant:t})}})},p_=(e,t)=>{try{const n=[],r=performance.now(),i=ym(e,{raw:!0,module:!0,next:!0,globalReturn:!0,onComment:n,ranges:!0}),o=performance.now()-r,s=performance.now();f_(i,t,n);const a=performance.now()-s,c=performance.now(),l=Fm(i,{comments:!0}),u=performance.now()-c;return s_("timer: create AST (ms)",Math.round(o)),s_("timer: patch AST (ms)",Math.round(a)),s_("timer: create script (ms)",Math.round(u)),l}catch(t){return s_("failed to patch script",t),e}},g_=jl("cbio.js.ast.unpatch"),m_=(e,t)=>{Object.keys(e).forEach(t=>{delete e[t]}),Object.assign(e,t)},__=e=>1===e.length?t_(e[0].value):e.reduce((e,t)=>e?"MemberExpression"===t.type?o_(e,t,!0):o_(e,t_(t.value),!1):t_(t.value),null),v_=(e,t,n,r)=>{var i,o;const{unproxify:s}=n;if("BlockStatement"===e.type&&Xm.includes(null==t?void 0:t.type)&&0===e.body.length&&(e.comments=r.filter(t=>t.start>=e.start&&t.end<=e.end).map(e=>({type:e.type,value:e.value}))),"CallExpression"===e.type&&e.callee.name===Bm){const i=e.arguments.at(-1).body;m_(e,i),v_(e,t,n,r)}if("CallExpression"===e.type&&e.callee.name===Qm){const[i,o,s]=e.arguments,a=e_(i,null)?t_(o.value):o_(i,t_(o.value),!1);m_(e,n_(a,s.elements)),v_(e,t,n,r)}if("CallExpression"===e.type&&e.callee.name===Hm){const[i,o,s]=e.arguments,a=e_(i,null)?__(o.elements):{type:"MemberExpression",object:i,property:__(o.elements)};m_(e,((e,t)=>({type:"AssignmentExpression",operator:"=",left:e,right:t}))(a,s)),v_(e,t,n,r)}if((e=>{var t;return"ConditionalExpression"===(null==e?void 0:e.type)&&(null==e||null===(t=e.test)||void 0===t||null===(t=t.callee)||void 0===t?void 0:t.name)===Jm})(e)&&(m_(e,e.alternate),v_(e,t,n,r)),"CallExpression"===e.type&&e.callee.name===Km){const[i]=e.arguments;m_(e,i),v_(e,t,n,r)}if("ExportNamedDeclaration"===e.type&&"Literal"===(null===(i=e.source)||void 0===i?void 0:i.type)&&(e.source.value=s(e.source.value),e.source.raw=void 0),"ImportDeclaration"===e.type&&"Literal"===(null===(o=e.source)||void 0===o?void 0:o.type)&&(e.source.value=s(e.source.value),e.source.raw=void 0),"CallExpression"===e.type&&e.callee.name===Ym){const[i]=e.arguments;m_(e,i),v_(e,t,n,r)}for(const t in e)e[t]&&"object"==typeof e[t]&&v_(e[t],e,n,r)},E_=(e,t)=>{const n=[],r=ym(e,{raw:!0,module:!0,next:!0,globalReturn:!0,onComment:n,ranges:!0});return v_(r,null,t,n),Fm(r,{comments:!0})},w_=(e,t)=>{try{if((e=>/^function\s*\(/.test(e))(e)){const n=(e=>`0,${e}`)(e);return(e=>e.trim().slice(4,-2))(E_(n,t))}return E_(e,t)}catch(t){return g_("failed to unpatch script",t),e}},y_=new Set(["","module","text/javascript","application/javascript","text/ecmascript","application/ecmascript"]),I_=e=>{if(!(e instanceof HTMLScriptElement))return!1;const t=e.getAttribute("type")||"";return y_.has(t.trim().toLowerCase())},L_=[(e,t)=>{e.cbioGetter=(({proxify:e,unproxify:t,isTopWindow:n,findTopWindow:r})=>(i,o,s)=>{const a=i||window,c=i?i[o]:s();return"location"===o&&a.cbioLocation?a.cbioLocation:"location"!==o||a!==window&&a!==document?"location"===o&&Uc(a)?a.cbioLocation?a.cbioLocation:pc(a.location,{proxify:e,unproxify:t}):"top"===o&&c===window.top?r(window):"parent"===o&&c===window.parent?n(window)?window:window.parent:c:a.cbioLocation})(t)},(e,t)=>{e.cbioSetter=(({proxify:e,isTopWindow:t,findTopWindow:n})=>(r,i,o)=>{if(0===i.length)return o;const s=r||window,[a,...c]=i,l=c.pop();if("location"===a&&(e=>e===window||e===window.parent||e===window.top)(s)){const r=(e=>e===window.top?n(window):e===window.parent?t(window)?window:window.parent:window)(s);return c.length||l?c.length?(Fc(r.cbioLocation,c)[l]=o,o):(r.cbioLocation[l]=o,o):(r.location=e(o),o)}if("location"===a&&(e=>e===document)(s))return c.length||l?c.length?(Fc(document.cbioLocation,c)[l]=o,o):(document.cbioLocation[l]=o,o):(document.location=e(o),o);if("top"===a&&s===window){const e=n(window);return c.length?(Fc(e,c)[l]=o,o):(e[l]=o,o)}if("parent"===a&&s===window){const e=t(window)?window:window.parent;return c.length?(Fc(e,c)[l]=o,o):(e[l]=o,o)}return c.length?(Fc(s[a],c)[l]=o,o):l?(s[a][l]=o,o):(s[a]=o,o)})(t)},(e,t)=>{e.cbioCaller=(({proxify:e})=>(t,n,r)=>{const i=t||window,o=i[n];if(!(o!==i.postMessage||i instanceof MessagePort||(e=>{try{return null!=e&&"object"==typeof e&&"function"==typeof e.postMessage&&"function"==typeof e.terminate&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}catch(e){return!1}})(i))){const[t,n,a]=r,c=[t,(s=n)?s.targetOrigin?"*"===s.targetOrigin?s:Yo(Yo({},s),{},{targetOrigin:e(s.targetOrigin)}):"*"===s?s:e(s):s,a];return c.length=r.length,o.apply(i,c)}var s;return o.apply(i,r)})(t)},(e,t)=>{e.cbioImporter=(({proxify:e})=>(t,n)=>{const r=new URL(t,n).toString();return e(r)})(t)},(e,t)=>{e.cbioIsNative=(e,t)=>{const n=e||window;return"eval"===t&&Uc(n)&&"function"==typeof(r=n[t])&&r.toString().includes("[native code]");var r}},(e,t)=>{e.cbioPatchJs=(({proxify:e})=>t=>p_(t.toString(),{proxify:e,url:window.location}))(t)}],C_=(e,t=window)=>{L_.forEach(n=>{try{n(t,e)}catch(e){console.log("Error while applying accessor",e)}})},A_=(e,t,n,r)=>{const i=(e=>e.includes("-")?e.split("-").map((e,t)=>0===t?e.toLowerCase():(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(e)).join(""):e)(t),o=Object.getOwnPropertyDescriptor(e,i).get,s=Object.getOwnPropertyDescriptor(e,i).set;Object.defineProperty(e,i,{get:function(){const e=o.call(this);return n?n(this,e):e},set:function(e){const t=r?r(this,null==e?void 0:e.toString()):null==e?void 0:e.toString();return s.call(this,t)}});const{getAttribute:a,setAttribute:c}=e;a&&(e.getAttribute=function(e){if((null==e?void 0:e.toLowerCase())===t.toLowerCase()){const t=a.apply(this,[e]);return n?n(this,t):t}return a.apply(this,[e])}),c&&(e.setAttribute=function(e,n){if(e.toLowerCase()===t.toLowerCase()){const t=r?r(this,null==n?void 0:n.toString()):null==n?void 0:n.toString();return c.apply(this,[e,t])}return c.apply(this,[e,n])})},S_=["integrity"],b_=(e,t)=>{const n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n},N_=(e,t)=>{const n=e[t.name];n&&n.parentNode.removeChild(n),e.appendChild(t)};function T_(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}const k_=/^[ \t\n\r\u000c]+/,O_=/^[, \t\n\r\u000c]+/,R_=/^[^ \t\n\r\u000c]+/,P_=/[,]+$/,D_=/^\d+$/,M_=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,x_=(e,t)=>{if(!e)return e;try{const n=function(e){const t=e.length;let n,r,i,o,s,a,c=0;function l(t){let n;const r=t.exec(e.substring(c));if(r)return[n]=r,c+=n.length,n}const u=[];for(;;){if(l(O_),c>=t){if(0===u.length)throw new Error("Must contain one or more image candidate strings.");return u}a=c,n=l(R_),r=[],","===n.slice(-1)?(n=n.replace(P_,""),h()):d()}function d(){for(l(k_),i="",o="in descriptor";;){if(s=e.charAt(c),"in descriptor"===o)if(T_(s))i&&(r.push(i),i="",o="after descriptor");else{if(","===s)return c+=1,i&&r.push(i),void h();if("("===s)i+=s,o="in parens";else{if(""===s)return i&&r.push(i),void h();i+=s}}else if("in parens"===o)if(")"===s)i+=s,o="in descriptor";else{if(""===s)return r.push(i),void h();i+=s}else if("after descriptor"===o)if(T_(s));else{if(""===s)return void h();o="in descriptor",c-=1}c+=1}}function h(){let t,i,o,s,c=!1;const l={};let d,h,f,p,g;for(s=0;s<r.length;s++)d=r[s],h=d[d.length-1],f=d.substring(0,d.length-1),p=parseInt(f,10),g=parseFloat(f),D_.test(f)&&"w"===h?((t||i)&&(c=!0),0===p?c=!0:t=p):M_.test(f)&&"x"===h?((t||i||o)&&(c=!0),g<0?c=!0:i=g):D_.test(f)&&"h"===h?((o||i)&&(c=!0),0===p?c=!0:o=p):c=!0;if(c)throw new Error(`Invalid srcset descriptor found in "${e}" at "${d}".`);l.source={value:n,startOffset:a},t&&(l.width={value:t}),i&&(l.density={value:i}),o&&(l.height={value:o}),u.push(l)}}(e);return n.map(e=>{const n=t(e.source.value),r=(e=>e.width?`${e.width.value}w`:e.height?`${e.height.value}h`:e.density?`${e.density.value}x`:null)(e);return r?`${n} ${r}`:n}).join(", ")}catch(t){return e}},G_=(e,t)=>{Object.defineProperty(e,t,{get:function(){},set:function(){}});const{getAttribute:n,setAttribute:r}=e;n&&(e.getAttribute=function(e){if((null==e?void 0:e.toLowerCase())!==t.toLowerCase())return n.apply(this,[e])}),r&&(e.setAttribute=function(e,n){if(e.toLowerCase()!==t.toLowerCase())return r.apply(this,[e,n])})};var U_,V_={};function W_(){if(U_)return V_;U_=1,Object.defineProperty(V_,"__esModule",{value:!0}),V_.parseCookie=a,V_.parse=a,V_.stringifyCookie=function(n,r){const i=(null==r?void 0:r.encode)||encodeURIComponent,o=[];for(const r of Object.keys(n)){const s=n[r];if(void 0===s)continue;if(!e.test(r))throw new TypeError(`cookie name is invalid: ${r}`);const a=i(s);if(!t.test(a))throw new TypeError(`cookie val is invalid: ${s}`);o.push(`${r}=${a}`)}return o.join("; ")},V_.stringifySetCookie=c,V_.serialize=c,V_.parseSetCookie=function(e,t){const n=(null==t?void 0:t.decode)||h,r=e.length,o=l(e,0,r),s=u(e,0,o),a=-1===s?{name:"",value:n(d(e,0,o))}:{name:d(e,0,s),value:n(d(e,s+1,o))};let c=o+1;for(;c<r;){const t=l(e,c,r),n=u(e,c,t),o=d(e,c,-1===n?t:n),s=-1===n?void 0:d(e,n+1,t);switch(o.toLowerCase()){case"httponly":a.httpOnly=!0;break;case"secure":a.secure=!0;break;case"partitioned":a.partitioned=!0;break;case"domain":a.domain=s;break;case"path":a.path=s;break;case"max-age":s&&i.test(s)&&(a.maxAge=Number(s));break;case"expires":if(!s)break;const e=new Date(s);Number.isFinite(e.valueOf())&&(a.expires=e);break;case"priority":if(!s)break;const t=s.toLowerCase();"low"!==t&&"medium"!==t&&"high"!==t||(a.priority=t);break;case"samesite":if(!s)break;const n=s.toLowerCase();"lax"!==n&&"strict"!==n&&"none"!==n||(a.sameSite=n)}c=t+1}return a},V_.stringifySetCookie=c,V_.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,o=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function a(e,t){const n=new s,r=e.length;if(r<2)return n;const i=(null==t?void 0:t.decode)||h;let o=0;do{const t=u(e,o,r);if(-1===t)break;const s=l(e,o,r);if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const a=d(e,o,t);void 0===n[a]&&(n[a]=i(d(e,t+1,s))),o=s+1}while(o<r);return n}function c(i,s,a){const c="object"==typeof i?i:Yo(Yo({},a),{},{name:i,value:String(s)}),l="object"==typeof s?s:a,u=(null==l?void 0:l.encode)||encodeURIComponent;if(!e.test(c.name))throw new TypeError(`argument name is invalid: ${c.name}`);const d=c.value?u(c.value):"";if(!t.test(d))throw new TypeError(`argument val is invalid: ${c.value}`);let h=c.name+"="+d;if(void 0!==c.maxAge){if(!Number.isInteger(c.maxAge))throw new TypeError(`option maxAge is invalid: ${c.maxAge}`);h+="; Max-Age="+c.maxAge}if(c.domain){if(!n.test(c.domain))throw new TypeError(`option domain is invalid: ${c.domain}`);h+="; Domain="+c.domain}if(c.path){if(!r.test(c.path))throw new TypeError(`option path is invalid: ${c.path}`);h+="; Path="+c.path}if(c.expires){if(f=c.expires,"[object Date]"!==o.call(f)||!Number.isFinite(c.expires.valueOf()))throw new TypeError(`option expires is invalid: ${c.expires}`);h+="; Expires="+c.expires.toUTCString()}var f;if(c.httpOnly&&(h+="; HttpOnly"),c.secure&&(h+="; Secure"),c.partitioned&&(h+="; Partitioned"),c.priority)switch("string"==typeof c.priority?c.priority.toLowerCase():void 0){case"low":h+="; Priority=Low";break;case"medium":h+="; Priority=Medium";break;case"high":h+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${c.priority}`)}if(c.sameSite)switch("string"==typeof c.sameSite?c.sameSite.toLowerCase():c.sameSite){case!0:case"strict":h+="; SameSite=Strict";break;case"lax":h+="; SameSite=Lax";break;case"none":h+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${c.sameSite}`)}return h}function l(e,t,n){const r=e.indexOf(";",t);return-1===r?n:r}function u(e,t,n){const r=e.indexOf("=",t);return r<n?r:-1}function d(e,t,n){let r=t,i=n;do{const t=e.charCodeAt(r);if(32!==t&&9!==t)break}while(++r<i);for(;i>r;){const t=e.charCodeAt(i-1);if(32!==t&&9!==t)break;i--}return e.slice(r,i)}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return V_}var F_=W_();const j_=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,B_=/^[\u0020-\u003A\u003D-\u007E]*$/,z_="||",H_=e=>{if(!e)return e;const t=new Date(e),n=new Date;return n.setDate(n.getDate()+7),t<n?t:n},q_=e=>{if(!e)return e;const t=Number(e);if(isNaN(t))return e;const n=604800;return t<n?t:n};class Q_{constructor(e,t){const n=new URL(e);this.targetHost=n.host,this.targetHostName=n.hostname,this.pathPrefix=t}filterCookies(e){const t=F_.parse(e,{decode:e=>e}),n=Object.entries(t).map(([e,t])=>{if(!e.includes(z_))return null;const[n,r]=e.split(z_,2);return this.targetHostName.endsWith(n)?`${r}=${t}`:null}).filter(e=>e);return n.join("; ")}rewriteCookie(e){var t;const[n]=e.split("=",1),r=F_.parse(e,{decode:e=>e}),i=r[n],o=Object.entries(r).reduce((e,[t,n])=>(e[t.toLowerCase()]=n,e),{}),s=null!==(t=o.domain)&&void 0!==t&&t.startsWith(".")?o.domain.substring(1):o.domain||this.targetHostName,a=`${this.pathPrefix}${Qs(s)}`,c=e.toLowerCase(),l=c.includes("httponly;")||c.endsWith("httponly");return((e,t,n)=>{let r=e+"="+((null==n?void 0:n.encode)||encodeURIComponent)(t);if(!n)return r;if(void 0!==n.maxAge){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);r+="; Max-Age="+n.maxAge}if(n.domain){if(!j_.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);r+="; Domain="+n.domain}if(n.path){if(!B_.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);r+="; Path="+n.path}if(n.expires){if(!(e=>"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date)(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.partitioned&&(r+="; Partitioned"),n.priority)switch(n.priority){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(n.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return r})(`${s}${z_}${n}`,i,{expires:H_(o.expires),domain:"",path:a,maxAge:q_(o["max-age"]),encode:e=>e,sameSite:"none",httpOnly:l,secure:!0})}}const $_="/proxy/1/universal/",Y_=(e,t)=>{const n=(new DOMParser).parseFromString(`<div id="cbioHTMLContainer">${e}</div>`,"text/html").body.querySelector("#cbioHTMLContainer");return n.querySelectorAll("a").forEach(e=>{const n=e.getAttribute("href");n&&e.setAttribute("href",t(n))}),n.querySelectorAll("img").forEach(e=>{const n=e.getAttribute("src");n&&e.setAttribute("src",t(n));const r=e.getAttribute("srcset");r&&e.setAttribute("srcset",x_(r,t))}),n.querySelectorAll("script").forEach(e=>{const n=e.getAttribute("src");n&&e.setAttribute("src",t(n))}),n.innerHTML},J_=(e,t)=>e.replace(/url\(\s*["']?([^"')]+)["']?\s*\)/g,(e,n)=>`url(${t(n)})`),K_="cbioWindowName",X_=(e,t,n,r)=>{const i=Object.getOwnPropertyDescriptor(e,t).get,o=Object.getOwnPropertyDescriptor(e,t).set;let s=r;return Object.defineProperty(e,t,{get:function(){const e=i.call(this);return null!=n&&n(e)?s:e},set:function(e){const t=i.call(this);return null!=n&&n(t)?(s=e,e):o.call(this,e)}}),{get:i,set:o}},Z_=(e,t)=>{const{proxify:n,unproxify:r}=t;try{const{contentWindow:i}=e;C_(t,i);const o=i.Function.prototype.toString;i.Function.prototype.toString=function(...e){const t=o.apply(this,e);return w_(t,{proxify:n,unproxify:r,url:window.location})}}catch(e){}},ev=e=>{try{return!!new URL(e)}catch(e){return!1}},tv=[({proxify:e,unproxify:t,frameName:n})=>{A_(HTMLAnchorElement.prototype,"href",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLAnchorElement.prototype,"target",void 0,(e,t)=>"_top"===t?n:t),A_(HTMLAnchorElement.prototype,"pathname",e=>new URL(t(e.href)).pathname,void 0),A_(HTMLAnchorElement.prototype,"origin",e=>new URL(t(e.href)).origin,void 0),A_(HTMLAnchorElement.prototype,"host",e=>new URL(t(e.href)).host,void 0),A_(HTMLAnchorElement.prototype,"hostname",e=>new URL(t(e.href)).hostname,void 0),A_(HTMLAnchorElement.prototype,"protocol",e=>new URL(t(e.href)).protocol,void 0),A_(HTMLAnchorElement.prototype,"search",e=>new URL(t(e.href)).search,void 0),A_(HTMLAnchorElement.prototype,"hash",e=>new URL(t(e.href)).hash,void 0),A_(HTMLAnchorElement.prototype,"port",e=>new URL(t(e.href)).port,void 0)},({proxify:e})=>{const t=window.fetch;window.fetch=function(n,r){if("string"==typeof n||n instanceof URL){const i=e(n),o=r||{},{integrity:s}=o,a=Jo(o,S_);return t(i,a)}if(n instanceof Request){const r=e(n.url);return new Promise((e,i)=>{var o;const s=(null===(o=n.method)||void 0===o?void 0:o.toUpperCase())||"GET";(["GET","HEAD"].includes(s)?Promise.resolve(void 0):n.blob()).then(o=>{const a={body:o,method:s,cache:n.cache,credentials:n.credentials,headers:n.headers,keepalive:n.keepalive,mode:n.mode,redirect:n.redirect,referrer:n.referrer,referrerPolicy:n.referrerPolicy,signal:n.signal};t(r,a).then(e).catch(i)})})}return t(n,r)}},({proxify:e,unproxify:t,parentOrigin:n,proxyPath:r,sdkVersion:i,frameName:o,proxyToken:s})=>{A_(HTMLFormElement.prototype,"action",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLFormElement.prototype,"target",void 0,(e,t)=>"_top"===t?o:t);const a=e=>{const t=new FormData(e),a=document.activeElement;a instanceof HTMLInputElement&&"submit"===a.type&&a.name&&t.append(a.name,a.value);const c=new URLSearchParams(t).toString();for(const t of e.elements)t.disabled=!0;N_(e,b_("search",c)),N_(e,b_("parent_origin",n)),N_(e,b_("proxy_path",r)),N_(e,b_("sdk_version",i)),N_(e,b_("frame_name",o)),N_(e,b_("access_token",s))};window.document.addEventListener("submit",e=>{"get"===e.target.method&&a(e.target)});const{submit:c}=window.HTMLFormElement.prototype;window.HTMLFormElement.prototype.submit=function(...e){return"get"!==this.method||a(this),c.apply(this,...e)}},({proxify:e,unproxify:t})=>{A_(HTMLIFrameElement.prototype,"src",(e,n)=>t(n),(t,n)=>e(n))},({proxify:e,unproxify:t})=>{A_(HTMLImageElement.prototype,"src",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLImageElement.prototype,"srcset",(e,n)=>x_(n,t),(t,n)=>x_(n,e))},({proxify:e,unproxify:t})=>{A_(HTMLLinkElement.prototype,"href",(e,n)=>t(n),(t,n)=>e(n)),G_(HTMLLinkElement.prototype,"integrity")},({unproxify:e})=>{A_(MessageEvent.prototype,"origin",(t,n)=>{try{const n=e(t.source.location);return new URL(n).origin}catch(e){}return n},void 0)},({proxify:e})=>{const t=window.history.pushState;window.history.pushState=function(n,r,i){const o=e(i);return t.apply(this,[n,r,o])}},({proxify:e})=>{const t=window.history.replaceState;window.history.replaceState=function(n,r,i){const o=e(i);return t.apply(this,[n,r,o])}},({proxify:e,unproxify:t})=>{A_(HTMLScriptElement.prototype,"src",(e,n)=>t(n),(t,n)=>null!=n&&n.endsWith("/pdf-viewer.chunk.js")?n:e(n)),A_(HTMLScriptElement.prototype,"text",(t,n)=>{if(!I_(t)||!n)return n;const r=n.toString();return w_(r,{proxify:e,url:window.location})},(t,n)=>{if(!I_(t)||!n)return n;const r=n.toString();return p_(r,{proxify:e,url:window.location})}),G_(HTMLScriptElement.prototype,"integrity")},({proxify:e})=>{const t=navigator.sendBeacon;navigator.sendBeacon=function(n,...r){const i=e(n);return t.apply(this,[i,...r])}},({proxify:e})=>{const t=window.XMLHttpRequest;window.XMLHttpRequest=function(){const n=new t;return n.open=function(r,i,...o){const s=e(i);t.prototype.open.apply(n,[r,s,...o])},n}},({proxify:e,frameName:t})=>{const n=window.open;window.open=function(r,i,o){const s=e(r);return n(s,"_top"===i?t:i,o)}},({unproxify:e})=>{const t=()=>new URL(e(window.location.href));A_(Document.prototype,"cookie",(e,n)=>new Q_(t(),$_).filterCookies(n),(e,n)=>new Q_(t(),$_).rewriteCookie(n))},({proxify:e,unproxify:t})=>{A_(HTMLSourceElement.prototype,"srcset",(e,n)=>x_(n,t),(t,n)=>x_(n,e))},({proxify:e})=>{A_(Element.prototype,"innerHTML",void 0,(t,n)=>{const r=(null==n?void 0:n.toString())||"";return Y_(r,e)});const{insertAdjacentHTML:t}=Element.prototype;Element.prototype.insertAdjacentHTML=function(n,r){const i=(null==r?void 0:r.toString())||"",o=Y_(i,e);return t.apply(this,[n,o])},A_(HTMLElement.prototype,"style",void 0,(t,n)=>J_(n,e))},({proxify:e})=>{const t=window.FontFace;window.FontFace=function(n,r,i){if("string"==typeof r){const o=J_(r,e);return new t(n,o,i)}return new t(n,r,i)}},({proxify:e})=>{const t=window.Worker;window.Worker=function(n,r){const i=e(n);return new t(i,r)}},({proxify:e})=>{const t=window.Request;window.Request=function(n,r){return"string"==typeof n&&(n=e(n)),"object"==typeof n&&n.url&&(n.url=e(n.url)),new t(n,r)}},()=>{A_(HTMLMetaElement.prototype,"http-equiv",void 0,(e,t)=>(e=>"content-security-policy"===(null==e?void 0:e.toLowerCase()))(t)?void 0:t)},({proxify:e})=>{const{appendChild:t}=HTMLStyleElement.prototype;HTMLStyleElement.prototype.appendChild=function(n){if(n.nodeType!==Node.TEXT_NODE)return t.apply(this,[n]);const r=J_(n.textContent,e),i=document.createTextNode(r);t.apply(this,[i])}},({proxify:e,unproxify:t})=>{A_(HTMLObjectElement.prototype,"data",(e,n)=>t(n),(t,n)=>e(n))},({unproxify:e})=>{const t=()=>new URL(e(window.location.href));A_(Document.prototype,"referrer",()=>t().origin,void 0),A_(Document.prototype,"URL",()=>t().href,void 0),A_(Document.prototype,"documentURI",()=>t().href,void 0),A_(Document.prototype,"domain",()=>t().host,void 0)},({proxify:e,unproxify:t,frameName:n})=>{const r=new URL(t(window.location.href));window.origin=r.origin;const i=Function.prototype.toString;Function.prototype.toString=function(...n){const r=i.apply(this,n);return w_(r,{proxify:e,unproxify:t,url:window.location})};const o=window.Function,s=window.Function.prototype;window.Function=function(...t){try{const n=t[t.length-1].toString(),r=p_(n,{proxify:e,url:window.location});return o.apply(this,[...t.slice(0,-1),r])}catch(e){throw console.warn("CobrowseIO: failed to rewrite Function code",e),e}},window.Function.prototype=s,window.Function.toString=function(){return"function Function() { [native code] }"};const{get:a,set:c}=X_(window,"name",e=>e===n,"");Object.defineProperty(window,K_,{get:a,set:c})},e=>{const{proxify:t,unproxify:n}=e;A_(Node.prototype,"textContent",(e,n)=>{if(!I_(e)||!n)return n;const r=n.toString();return w_(r,{proxify:t,url:window.location})},(e,n)=>{if(!I_(e)||!n)return n;const r=n.toString();return p_(r,{proxify:t,url:window.location})}),A_(Node.prototype,"baseURI",(e,t)=>n(t),void 0);const r=Node.prototype.appendChild;Node.prototype.appendChild=function(t){const n=r.call(this,t);if(!t.isConnected)return n;const i=(e=>"IFRAME"===e.tagName?[e]:e instanceof Element?e.querySelectorAll("iframe"):[])(t);return i.forEach(t=>{Z_(t,e),((e,{proxify:t})=>{try{const{contentWindow:n,contentDocument:r}=e,i=r||n.document,o=i.write;i.write=function(e){const n=(null==e?void 0:e.toString())||"",r=Y_(n,t);o.apply(i,[r])}}catch(e){}})(t,e)}),n}},({unproxify:e})=>{A_(PerformanceEntry.prototype,"name",(t,n)=>ev(n)?e(n):n,void 0),window.PerformanceScriptTiming&&(A_(window.PerformanceScriptTiming.prototype,"sourceURL",(t,n)=>ev(n)?e(n):n,void 0),A_(window.PerformanceScriptTiming.prototype,"invoker",(t,n)=>ev(n)?e(n):n,void 0))},({proxify:e})=>{Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{set(t){this.setProperty("background-image",J_(t,e))},get(){return this.getPropertyValue("background-image")}}),Object.defineProperty(CSSStyleDeclaration.prototype,"background",{set(t){this.setProperty("background",J_(t,e))},get(){return this.getPropertyValue("background")}})}];var nv,rv={};!function(){if(nv)return rv;nv=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("find",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{find:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}();class iv{constructor(e,t){this._message=e,this._node=t}get message(){return this._message}get node(){return this._node}}function ov(e,t){var n;let r;const i=t(e,(e=[])=>{r=e});return r=null!=r?r:e.childNodes,null!==(n=r)&&void 0!==n&&n.length?Yo(Yo({},i),{},{childNodes:Array.from(r).map(e=>ov(e,t))}):i}function sv(e,t){const n=[e];for(;n.length>0;){var r;const e=n.pop();let i;if(t(e,e=>i=null!=e?e:[]),i=null!=i?i:e.childNodes,null!==(r=i)&&void 0!==r&&r.length)for(let e=i.length-1;e>=0;e--)n.push(i[e])}}var av=new WeakMap,cv=new WeakMap,lv=new WeakMap;class uv{constructor(e){Bo(this,av,void 0),Bo(this,cv,{}),Bo(this,lv,{}),zo(av,this,e)}get id(){return jo(av,this)}get document(){return jo(cv,this)[jo(av,this)]||{id:jo(av,this),childNodes:[]}}node(e){return jo(cv,this)[(null==e?void 0:e.id)||e]}parent(e){return this.node(jo(lv,this)[(null==e?void 0:e.id)||e])}path(e,t=new Set([jo(av,this)])){let n=this.node(e);if(!n)return null;const r=[],i=new Set;for(;n&&!t.has(n.id);){const e=this.parent(n);if(!e)return null;if(!e.childNodes.some(e=>(e.id||e)===n.id))return null;if(i.has(e))throw new Error("cycle detected in VirtualDOM path computation");r.unshift(e),i.add(e),n=e}return r}applyPatch(e){const t=new Set;for(const n of e)if(n.id){const e=jo(cv,this)[n.id]||{},r=Yo(Yo({},e),n);jo(cv,this)[n.id]=r,t.add(n.id);const i=new Set((e.childNodes||[]).map(e=>e.id||e)),o=new Set((r.childNodes||[]).map(e=>e.id||e));o.forEach(e=>{jo(lv,this)[e]=r.id}),i.difference(o).forEach(e=>{sv(this.node(e),e=>{t.add(e.id)})})}else console.warn("diff missing id",n);const n=new Set([jo(av,this)]);return t.forEach(e=>{const r=this.path(e,n);if(!r)return delete jo(cv,this)[e],t.delete(e),void delete jo(lv,this)[e];for(const e of r)t.has(e.id)||(t.add(e.id),jo(cv,this)[e.id]=Yo({},e)),n.add(e.id)}),t.forEach(e=>{const t=jo(cv,this)[e];t.childNodes=(t.childNodes||[]).map(e=>{const n=e.id||e,r=jo(cv,this)[n];if(!r)throw new iv(`denormalisation failed for child ${n}`,t);return r})}),this}}function dv(e){try{return!e.document&&!1}catch(e){return!0}}function hv(e){return!!dv(e)||!("IFRAME"!==e.tagName||!dv(e.contentWindow))}function fv(e,t){const n=[];let r=e;for(;r.parentNode&&r.parentNode!==t;)n.push(r.parentNode),r=r.parentNode;if(r instanceof ShadowRoot)return[...n,r.host,...fv(r.host,t)];const i=r.defaultView&&r.defaultView.frameElement;return i?[...n,i,...fv(i)]:n}class pv{constructor(e){this.onPropertySet=e,this._klasses=new Set}_trackObserver(e){e.__cbio_observers||(e.__cbio_observers=new Set),e.__cbio_observers.add(this)}_untrackObserver(e){e.__cbio_observers&&e.__cbio_observers.delete(this)}_tap(e,t){if(e[`__cbio_override_${t}`])return;const n=Object.getOwnPropertyDescriptor(e.prototype,t);if(!n)return;e[`__cbio_override_${t}`]=!0;const r=n.set;n.set=function(n){r.call(this,n),e.__cbio_observers&&e.__cbio_observers.forEach(e=>{e.onPropertySet(this,t,n)})},Object.defineProperty(e.prototype,t,n)}observe(e,t){this._klasses.add(e),this._trackObserver(e),this._tap(e,t)}disconnect(){this._klasses.forEach(e=>this._untrackObserver(e)),this._klasses.clear()}}var gv,mv={};!function(){if(gv)return mv;gv=1;var e=jn(),t=o(),n=Zr();e({global:!0},{Reflect:{}}),n(t.Reflect,"Reflect",!0)}();var _v,vv={exports:{}};function Ev(){if(_v)return vv.exports;_v=1;var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}vv.exports=i,vv.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}p(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,i)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,c,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),c=o[t]),void 0===c)c=o[t]=n,++e._eventsCount;else if("function"==typeof c?c=o[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(i=a(e))>0&&c.length>i&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,l=u,console&&console.warn&&console.warn(l)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},vv.exports}var wv=Ev();const yv=t(wv),Iv=new class{constructor(){Qo(this,"_mousePosition",{x:-1,y:-1}),Qo(this,"_mouseIsDown",!1),Qo(this,"_mouseIsIn",!1),Qo(this,"track",e=>{e.addEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.addEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.addEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.addEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.addEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Qo(this,"untrack",e=>{e.removeEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.removeEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.removeEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.removeEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.removeEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Qo(this,"isDown",()=>this._mouseIsDown),Qo(this,"setDown",e=>{this._mouseIsDown=e,this.onChange&&this.onChange(this.state())}),Qo(this,"isIn",()=>this._mouseIsIn>0),Qo(this,"position",()=>this._mousePosition),Qo(this,"setPosition",(e,t,n)=>{if(n){const r=[n,...fv(n).filter(e=>{var t;return null===(t=e.matches)||void 0===t?void 0:t.call(e,"iframe")})],i=r.map(e=>e.getBoundingClientRect()).reduce((e,t)=>({x:e.x+t.x,y:e.y+t.y}),{x:0,y:0});e+=Math.round(i.x),t+=Math.round(i.y)}this._mousePosition={x:e,y:t},this.onChange&&this.onChange(this.state())}),Qo(this,"state",()=>Yo(Yo({},this.position()),{},{down:this.isDown(),in:this.isIn()})),Qo(this,"_onMouseDown",e=>{e.isTrusted&&this.setDown(!0)}),Qo(this,"_onMouseUp",e=>{e.isTrusted&&this.setDown(!1)}),Qo(this,"_onMouseEnter",e=>{e.isTrusted&&(this._mouseIsIn+=1)}),Qo(this,"_onMouseLeave",e=>{e.isTrusted&&e.target===e.currentTarget&&(this._mouseIsIn-=1)}),Qo(this,"_onMouseMove",dc(e=>{if(!e.isTrusted)return;const{clientX:t,clientY:n}=e,r=e.view&&e.view.frameElement;this.setPosition(t,n,r)},100))}};var Lv;Lv||(Lv=1,nf()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}}));var Cv,Av={};!function(){if(Cv)return Av;Cv=1;var e=Hh(),t=qh(),n=e.aTypedArrayConstructor;(0,e.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)}();const Sv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function bv(e){if(!function(e){return"string"==typeof e&&Sv.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const Nv=[];for(let e=0;e<256;++e)Nv.push((e+256).toString(16).slice(1));function Tv(e,t=0){return(Nv[e[t+0]]+Nv[e[t+1]]+Nv[e[t+2]]+Nv[e[t+3]]+"-"+Nv[e[t+4]]+Nv[e[t+5]]+"-"+Nv[e[t+6]]+Nv[e[t+7]]+"-"+Nv[e[t+8]]+Nv[e[t+9]]+"-"+Nv[e[t+10]]+Nv[e[t+11]]+Nv[e[t+12]]+Nv[e[t+13]]+Nv[e[t+14]]+Nv[e[t+15]]).toLowerCase()}var kv,Ov,Rv,Pv,Dv,Mv,xv,Gv,Uv,Vv,Wv,Fv,jv,Bv,zv={};function Hv(){if(Ov)return kv;Ov=1;var e=me(),t=String,n=TypeError;return kv=function(r){if(void 0===r||e(r))return r;throw new n(t(r)+" is not an object or undefined")}}function qv(){if(Pv)return Rv;Pv=1;var e=TypeError;return Rv=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}}function Qv(){if(Mv)return Dv;Mv=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e+"+/",n=e+"-_",r=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};return Dv={i2c:t,c2i:r(t),i2cUrl:n,c2iUrl:r(n)}}function $v(){if(Gv)return xv;Gv=1;var e=TypeError;return xv=function(t){var n=t&&t.alphabet;if(void 0===n||"base64"===n||"base64url"===n)return n||"base64";throw new e("Incorrect `alphabet` option")}}function Yv(){if(Vv)return Uv;Vv=1;var e=o(),t=le(),n=Hv(),r=qv(),i=it(),s=Qv(),a=$v(),c=Hu(),l=s.c2i,u=s.c2iUrl,d=e.SyntaxError,h=e.TypeError,f=t("".charAt),p=function(e,t){for(var n=e.length;t<n;t++){var r=f(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[f(e,0)]<<18)+(t[f(e,1)]<<12)+(t[f(e,2)]<<6)+t[f(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new d("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new d("Extra bits");return[o[0],o[1]]}return o},m=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};return Uv=function(e,t,o,s){r(e),n(t);var _="base64"===a(t)?l:u,v=t?t.lastChunkHandling:void 0;if(void 0===v&&(v="loose"),"loose"!==v&&"strict"!==v&&"stop-before-partial"!==v)throw new h("Incorrect `lastChunkHandling` option");o&&c(o.buffer);var E=e.length,w=o||[],y=0,I=0,L="",C=0;if(s)for(;;){if((C=p(e,C))===E){if(L.length>0){if("stop-before-partial"===v)break;if("loose"!==v)throw new d("Missing padding");if(1===L.length)throw new d("Malformed padding: exactly one additional character");y=m(w,g(L,_,!1),y)}I=E;break}var A=f(e,C);if(++C,"="===A){if(L.length<2)throw new d("Padding is too early");if(C=p(e,C),2===L.length){if(C===E){if("stop-before-partial"===v)break;throw new d("Malformed padding: only one =")}"="===f(e,C)&&(++C,C=p(e,C))}if(C<E)throw new d("Unexpected character after padding");y=m(w,g(L,_,"strict"===v),y),I=E;break}if(!i(_,A))throw new d("Unexpected character");var S=s-y;if(1===S&&2===L.length||2===S&&3===L.length)break;if(4===(L+=A).length&&(y=m(w,g(L,_,!1),y),L="",I=C,y===s))break}return{bytes:w,read:I,written:y}}}function Jv(){if(Fv)return Wv;Fv=1;var e=Bn(),t=TypeError;return Wv=function(n){if("Uint8Array"===e(n))return n;throw new t("Argument is not an Uint8Array")}}Bv||(Bv=1,function(){if(jv)return zv;jv=1;var e=jn(),t=o(),n=Yv(),r=Jv(),i=t.Uint8Array,s=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(e){}try{return void e.setFromBase64("a")}catch(e){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();i&&e({target:"Uint8Array",proto:!0,forced:s},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})}());var Kv,Xv,Zv,eE,tE={};eE||(eE=1,function(){if(Zv)return tE;Zv=1;var e=jn(),t=o(),n=qv(),r=Jv(),i=Hu(),s=function(){if(Xv)return Kv;Xv=1;var e=o(),t=le(),n=e.Uint8Array,r=e.SyntaxError,i=e.parseInt,s=Math.min,a=/[^\da-f]/i,c=t(a.exec),l=t("".slice);return Kv=function(e,t){var o=e.length;if(o%2!=0)throw new r("String should be an even number of characters");for(var u=t?s(t.length,o/2):o/2,d=t||new n(u),h=0,f=0;f<u;){var p=l(e,h,h+=2);if(c(a,p))throw new r("String should only contain hex characters");d[f++]=i(p,16)}return{bytes:d,read:h}}}();t.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=s(e,this).read;return{read:t,written:t/2}}})}());var nE,rE,iE={};rE||(rE=1,function(){if(nE)return iE;nE=1;var e=jn(),t=o(),n=le(),r=Hv(),i=Jv(),s=Hu(),a=Qv(),c=$v(),l=a.i2c,u=a.i2cUrl,d=n("".charAt),h=t.Uint8Array,f=!h||!h.prototype.toBase64||!function(){try{(new h).toBase64(null)}catch(e){return!0}}();h&&e({target:"Uint8Array",proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n="base64"===c(t)?l:u,o=!!t&&!!t.omitPadding;s(this.buffer);for(var a,h="",f=0,p=e.length,g=function(e){return d(n,a>>6*e&63)};f+2<p;f+=3)a=(e[f]<<16)+(e[f+1]<<8)+e[f+2],h+=g(3)+g(2)+g(1)+g(0);return f+2===p?(a=(e[f]<<16)+(e[f+1]<<8),h+=g(3)+g(2)+g(1)+(o?"":"=")):f+1===p&&(a=e[f]<<16,h+=g(3)+g(2)+(o?"":"==")),h}})}());var oE,sE,aE={};sE||(sE=1,function(){if(oE)return aE;oE=1;var e=jn(),t=o(),n=le(),r=Jv(),i=Hu(),s=n(1.1.toString),a=t.Uint8Array,c=!a||!a.prototype.toHex||!function(){try{return"ffffffffffffffff"===new a([255,255,255,255,255,255,255,255]).toHex()}catch(e){return!1}}();a&&e({target:"Uint8Array",proto:!0,forced:c},{toHex:function(){r(this),i(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var o=s(this[t],16);e+=1===o.length?"0"+o:o}return e}})}());const cE=new Uint8Array(16);function lE(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){var t,n,r,i;const o=null!==(t=null!==(n=(e=e||{}).random)&&void 0!==n?n:null===(r=(i=e).rng)||void 0===r?void 0:r.call(i))&&void 0!==t?t:crypto.getRandomValues(cE);if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,Tv(o)}(e)}function uE(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function dE(e,t){return e<<t|e>>>32-t}function hE(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[o-1][14]=8*(e.length-1)/2**32,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=dE(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],a=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=dE(i,5)+uE(n,o,a,c)+l+t[n]+r[e]>>>0;l=c,c=a,a=dE(o,30)>>>0,o=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function fE(e,t,n,r){return function(e,t,n,r,i,o){var s;const a="string"==typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,c="string"==typeof r?bv(r):r;if("string"==typeof r&&(r=bv(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+a.length);if(l.set(c),l.set(a,c.length),l=t(l),l[6]=15&l[6]|e,l[8]=63&l[8]|128,i){if(null!=o||(o=0),o<0||o+16>i.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[o+e]=l[e];return i}return Tv(l)}(80,hE,e,t,n,r)}function pE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}fE.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",fE.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";var gE=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=pE({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",pE({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,pE({},this.attributes,t))},withConverter:function(t){return e(pE({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const mE={};function _E(){try{const e="_cobrowse_test_item";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function vE(){_E()||vE.done||(vE.done=!0,console.warn("Warning: localStorage is not supported. Cobrowse falling back to cookie or in-memory storage and may not function as expected."))}function EE(e){return{setItem(t,n){vE();const r=JSON.stringify({value:n,group:e});_E()?window.localStorage.setItem(t,r):gE.set(t,r),mE[t]=r},getItem(t){try{let n;n=_E()?window.localStorage&&window.localStorage.getItem(t):gE.get(t),n||(n=mE[t]);const{value:r,group:i}=JSON.parse(n);return e&&e!==i?null:r}catch(e){return null}},removeItem(e){_E()&&window.localStorage.removeItem(e),gE.remove(e),mE[e]=void 0}}}const wE=jl("cbio.WindowTracking"),yE="_cobrowse_window_id";var IE=new WeakMap,LE=new WeakMap,CE=new WeakMap,AE=new WeakMap;class SE extends wv.EventEmitter{constructor(...e){super(...e),Bo(this,IE,bE._.call(SE)),Bo(this,LE,!1),Bo(this,CE,!1),Qo(this,"start",()=>{jo(CE,this)||(zo(CE,this,!0),wE("started"),jo(AE,this).call(this),document.addEventListener("visibilitychange",jo(AE,this),{capture:!0}),document.addEventListener("mouseover",jo(AE,this),{capture:!0}))}),Qo(this,"stop",()=>{wE("stopped"),this.removeAllListeners(),zo(CE,this,!1),document.removeEventListener("visibilitychange",jo(AE,this),{capture:!0}),document.removeEventListener("mouseover",jo(AE,this),{capture:!0})}),Qo(this,"isActive",()=>EE().getItem(yE)===this.id),Qo(this,"setTracksIframes",e=>{zo(LE,this,e),jo(AE,this).call(this)}),Qo(this,"shouldTrack",()=>!document.hidden&&(!(window.self!==window.top)||jo(LE,this))),Qo(this,"makeActive",()=>{this.isActive()||(wE("making active",window),EE().setItem(yE,this.id),this.emit("activate",window))}),Qo(this,"resignActive",()=>{this.isActive()&&(wE("resigning active",window),EE().setItem(yE,null))}),Bo(this,AE,()=>{this.shouldTrack()&&this.makeActive(),this.emit("updated")})}get id(){return jo(IE,this)}}var bE={_:()=>(document.__cobrowse_window_id=document.__cobrowse_window_id||lE(),document.__cobrowse_window_id)};const NE=new SE;var TE,kE,OE,RE,PE,DE,ME,xE,GE,UE,VE,WE,FE,jE,BE,zE,HE,qE,QE,$E,YE,JE,KE,XE,ZE,ew,tw,nw,rw,iw,ow,sw,aw,cw,lw,uw,dw,hw,fw,pw,gw,mw,_w,vw,Ew,ww,yw,Iw,Lw,Cw,Aw,Sw,bw,Nw,Tw,kw,Ow,Rw,Pw,Dw,Mw,xw,Gw,Uw,Vw,Ww,Fw,jw,Bw,zw,Hw,qw,Qw,$w,Yw,Jw,Kw,Xw,Zw,ey,ty,ny,ry,iy,oy,sy,ay,cy,ly,uy,dy,hy,fy,py,gy,my,_y,vy,Ey,wy,yy,Iy,Ly,Cy,Ay,Sy,by,Ny,Ty,ky,Oy,Ry,Py,Dy,My,xy,Gy,Uy,Vy,Wy,Fy,jy,By,zy,Hy,qy,Qy,$y,Yy,Jy,Ky,Xy,Zy,eI,tI,nI;function rI(){if(kE)return TE;kE=1;var e=Array.isArray;return TE=e}function iI(){if(DE)return PE;DE=1;var e=sc(),t=nc();return PE=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function oI(){if(WE)return VE;WE=1;var e=Function.prototype.toString;return VE=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function sI(){if(qE)return HE;qE=1;var e=function(){if(jE)return FE;jE=1;var e=iI(),t=function(){if(UE)return GE;UE=1;var e=function(){if(xE)return ME;xE=1;var e=ic()["__core-js_shared__"];return ME=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return GE=function(e){return!!t&&t in e}}(),n=nc(),r=oI(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,a=o.toString,c=s.hasOwnProperty,l=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return FE=function(o){return!(!n(o)||t(o))&&(e(o)?l:i).test(r(o))}}(),t=zE?BE:(zE=1,BE=function(e,t){return null==e?void 0:e[t]});return HE=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function aI(){if($E)return QE;$E=1;var e=sI()(Object,"create");return QE=e}function cI(){return uw?lw:(uw=1,lw=function(e,t){return e===t||e!=e&&t!=t})}function lI(){if(hw)return dw;hw=1;var e=cI();return dw=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function uI(){if(Iw)return yw;Iw=1;var e=cw?aw:(cw=1,aw=function(){this.__data__=[],this.size=0}),t=function(){if(pw)return fw;pw=1;var e=lI(),t=Array.prototype.splice;return fw=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(mw)return gw;mw=1;var e=lI();return gw=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(vw)return _w;vw=1;var e=lI();return _w=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(ww)return Ew;ww=1;var e=lI();return Ew=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,yw=o}function dI(){if(Cw)return Lw;Cw=1;var e=sI()(ic(),"Map");return Lw=e}function hI(){if(kw)return Tw;kw=1;var e=Nw?bw:(Nw=1,bw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Tw=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function fI(){if(Ww)return Vw;Ww=1;var e=function(){if(Sw)return Aw;Sw=1;var e=function(){if(sw)return ow;sw=1;var e=function(){if(JE)return YE;JE=1;var e=aI();return YE=function(){this.__data__=e?e(null):{},this.size=0}}(),t=XE?KE:(XE=1,KE=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(ew)return ZE;ew=1;var e=aI(),t=Object.prototype.hasOwnProperty;return ZE=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(nw)return tw;nw=1;var e=aI(),t=Object.prototype.hasOwnProperty;return tw=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(iw)return rw;iw=1;var e=aI();return rw=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ow=o}(),t=uI(),n=dI();return Aw=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Rw)return Ow;Rw=1;var e=hI();return Ow=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Dw)return Pw;Dw=1;var e=hI();return Pw=function(t){return e(this,t).get(t)}}(),r=function(){if(xw)return Mw;xw=1;var e=hI();return Mw=function(t){return e(this,t).has(t)}}(),i=function(){if(Uw)return Gw;Uw=1;var e=hI();return Gw=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Vw=o}function pI(){return $w?Qw:($w=1,Qw=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i})}function gI(){if(ey)return Zw;ey=1;var e=rI(),t=function(){if(RE)return OE;RE=1;var e=rI(),t=cc(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return OE=function(i,o){if(e(i))return!1;var s=typeof i;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}}(),n=function(){if(qw)return Hw;qw=1;var e=function(){if(zw)return Bw;zw=1;var e=function(){if(jw)return Fw;jw=1;var e=fI();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var s=n.apply(this,e);return i.cache=o.set(t,s)||o,s};return i.cache=new(t.Cache||e),i}return t.Cache=e,Fw=t}();return Bw=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return Hw=r}(),r=function(){if(Xw)return Kw;Xw=1;var e=function(){if(Jw)return Yw;Jw=1;var e=oc(),t=pI(),n=rI(),r=cc(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return Yw=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var s=i+"";return"0"==s&&1/i==-1/0?"-0":s},Yw}();return Kw=function(t){return null==t?"":e(t)}}();return Zw=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function mI(){if(ny)return ty;ny=1;var e=cc();return ty=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function _I(){if(iy)return ry;iy=1;var e=gI(),t=mI();return ry=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0},ry}function vI(){if(sy)return oy;sy=1;var e=sI(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return oy=t}function EI(){if(cy)return ay;cy=1;var e=vI();return ay=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function wI(){if(uy)return ly;uy=1;var e=EI(),t=cI(),n=Object.prototype.hasOwnProperty;return ly=function(r,i,o){var s=r[i];n.call(r,i)&&t(s,o)&&(void 0!==o||i in r)||e(r,i,o)}}function yI(){if(hy)return dy;hy=1;var e=/^(?:0|[1-9]\d*)$/;return dy=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function II(){if(Iy)return yy;Iy=1;var e=function(){if(wy)return Ey;wy=1;var e=sc(),t=ac();return Ey=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ac(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return yy=o}function LI(){return Cy?Ly:(Cy=1,Ly=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}function CI(){return Ry||(Ry=1,Oy=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),Oy}function AI(){if(Xy)return Ky;Xy=1;var e=function(){if($y)return Qy;$y=1;var e=zy?By:(zy=1,By=function(e){return function(){return e}}),t=vI(),n=qy?Hy:(qy=1,Hy=function(e){return e});return Qy=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}(),t=function(){if(Jy)return Yy;Jy=1;var e=Date.now;return Yy=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},Yy}(),n=t(e);return Ky=n}function SI(){if(eI)return Zy;eI=1;var e=function(){if(Uy)return Gy;Uy=1;var e=function(){if(xy)return My;xy=1;var e=CI(),t=function(){if(Dy)return Py;Dy=1;var e=oc(),t=II(),n=rI(),r=e?e.isConcatSpreadable:void 0;return Py=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return My=function n(r,i,o,s,a){var c=-1,l=r.length;for(o||(o=t),a||(a=[]);++c<l;){var u=r[c];i>0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}}();return Gy=function(t){return null!=t&&t.length?e(t,1):[]}}(),t=function(){if(jy)return Fy;jy=1;var e=Wy?Vy:(Wy=1,Vy=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return Fy=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=t(o.length-r,0),c=Array(a);++s<a;)c[s]=o[r+s];s=-1;for(var l=Array(r+1);++s<r;)l[s]=o[s];return l[r]=i(c),e(n,this,l)}},Fy}(),n=AI();return Zy=function(r){return n(t(r,void 0,e),r+"")}}var bI=function(){if(nI)return tI;nI=1;var e=function(){if(ky)return Ty;ky=1;var e=function(){if(my)return gy;my=1;var e=_I(),t=function(){if(py)return fy;py=1;var e=wI(),t=gI(),n=yI(),r=nc(),i=mI();return fy=function(o,s,a,c){if(!r(o))return o;for(var l=-1,u=(s=t(s,o)).length,d=u-1,h=o;null!=h&&++l<u;){var f=i(s[l]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(l!=d){var g=h[f];void 0===(p=c?c(g,f,h):void 0)&&(p=r(g)?g:n(s[l+1])?[]:{})}e(h,f,p),h=h[f]}return o},fy}(),n=gI();return gy=function(r,i,o){for(var s=-1,a=i.length,c={};++s<a;){var l=i[s],u=e(r,l);o(u,l)&&t(c,n(l,r),u)}return c},gy}(),t=function(){if(Ny)return by;Ny=1;var e=vy?_y:(vy=1,_y=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Sy)return Ay;Sy=1;var e=gI(),t=II(),n=rI(),r=yI(),i=LI(),o=mI();return Ay=function(s,a,c){for(var l=-1,u=(a=e(a,s)).length,d=!1;++l<u;){var h=o(a[l]);if(!(d=null!=s&&c(s,h)))break;s=s[h]}return d||++l!=u?d:!!(u=null==s?0:s.length)&&i(u)&&r(h,u)&&(n(s)||t(s))},Ay}();return by=function(n,r){return null!=n&&t(n,r,e)},by}();return Ty=function(n,r){return e(n,r,function(e,r){return t(n,r)})},Ty}(),t=SI()(function(t,n){return null==t?{}:e(t,n)});return tI=t}();const NI=t(bI),TI="abcdefghijklmnopqrstuvwxyz",kI=`0123456789${TI.toLowerCase()}${TI.toUpperCase()}`;function OI(e,t=kI){let n="";for(let r=e;r>0;r-=1)n+=t[Math.floor(Math.random()*t.length)];return n}const RI=new class{isDOMNode(e){return!!e&&!(!e.childNodes||"function"!=typeof e.appendChild||void 0===e.nodeType)}},PI=new class{constructor(){Qo(this,"_idMap",new Map),Qo(this,"_nodeMap",new Map),Qo(this,"_currentId",0),Qo(this,"_nextId",()=>(this._currentId+=1,this._currentId)),Qo(this,"track",e=>{if(!e)return null;if(!RI.isDOMNode(e))return e.id;if(!this.get(e)){const t=e.nodeType===window.Node.DOCUMENT_NODE?OI(5):`${this.track(document)}-${this._nextId()}`;this._idMap.set(t,e),this._nodeMap.set(e,t)}return this._nodeMap.get(e)}),Qo(this,"get",e=>e?RI.isDOMNode(e)?this._nodeMap.get(e)||null:e.id:null),Qo(this,"getById",e=>e&&this._idMap.get(e)||null),Qo(this,"forget",e=>{this._idMap.delete(this.get(e)),this._nodeMap.delete(e)})}};var DI,MI;let xI;try{xI=document.createElement("iframe"),document.documentElement.appendChild(xI),xI.style.display="none",xI.className="__cbio_ignored",xI.width=0,xI.height=0}catch(ab){console.warn("Failed to create unpolyfill iframe",ab)}const{Node:GI,Element:UI,MutationObserver:VI,Event:WI,EventTarget:FI}=null!==(DI=null===(MI=xI)||void 0===MI?void 0:MI.contentWindow)&&void 0!==DI?DI:window,jI=jl("cbio.NodeTree"),BI={[window.Node.COMMENT_NODE]:!0,[window.Node.CDATA_SECTION_NODE]:!0,[window.Node.ENTITY_REFERENCE_NODE]:!0,[window.Node.ENTITY_NODE]:!0,[window.Node.PROCESSING_INSTRUCTION_NODE]:!0,[window.Node.NOTATION_NODE]:!0,[window.Node.DOCUMENT_TYPE_NODE]:!0},zI=e=>{try{return e&&/\.(mjs|cjs|js)$/i.test(new URL(e,window.location.href).pathname)}catch(e){return!1}};var HI=new WeakMap;const qI=new class{constructor(){Bo(this,HI,".__cbio_ignored"),Qo(this,"isIgnored",e=>{var t,n;if(BI[e.nodeType])return jI("ignoring",e,"because of nodeType"),!0;if("SCRIPT"===e.tagName)return jI("ignoring",e,"because of SCRIPT"),!0;if("LINK"===e.tagName&&(e=>{var t,n,r;const i=null!==(t=null===(n=e.rel)||void 0===n?void 0:n.toUpperCase().split(/\s+/))&&void 0!==t?t:[],o=null===(r=e.as)||void 0===r?void 0:r.trim().toUpperCase();for(const t of i){if("MODULEPRELOAD"===t)return!0;if("PRELOAD"===t&&"SCRIPT"===o)return!0;if("PREFETCH"===t&&zI(e.href))return!0}return!1})(e))return jI("ignoring",e,"because it preloads a script"),!0;if(null!==(t=e.closest)&&void 0!==t&&t.call(e,jo(HI,this)))return jI("ignoring",e,"because child of classes"),!0;const r=e.parentNode||e.defaultView&&e.defaultView.frameElement;return"STYLE"===(null==r||null===(n=r.tagName)||void 0===n?void 0:n.toUpperCase())&&(jI("ignoring",e,"because child of STYLE"),!0)}),Qo(this,"children",e=>{const{get:t}=Object.getOwnPropertyDescriptor(GI.prototype,"childNodes"),{get:n}=Object.getOwnPropertyDescriptor(UI.prototype,"shadowRoot");return RI.isDOMNode(e)?"IFRAME"===e.tagName&&hv(e)?e.__document_id?[{id:e.__document_id,nodeType:9}]:[]:"IFRAME"!==e.tagName||hv(e)?e.nodeType===window.Node.ELEMENT_NODE&&n.apply(e)?[n.apply(e),...Array.from(t.apply(e))].filter(e=>!this.isIgnored(e)):Array.from(t.apply(e)).filter(e=>!this.isIgnored(e)):"complete"!==e.contentWindow.document.readyState?[]:[e.contentWindow.document].filter(e=>!this.isIgnored(e)):e.childNodes})}setIgnoredViews(e){if(Array.isArray(e))return zo(HI,this,[".__cbio_ignored",...e].filter(Boolean).join(",")),void jI("set ignored view selectors",jo(HI,this));jI("not updating #ignoredViews due to arg to being an array",e)}depthFirst(e,t){sv(e,(e,n)=>{n(this.children(e)),t(e,n)})}depthFirstMapped(e,t){return ov(e,(e,n)=>(n(this.children(e)),t(e,n)))}},QI=jl("cbio.Redaction");var $I=new WeakMap;const YI=new class{constructor(){Bo(this,$I,void 0)}init(e){zo($I,this,e),QI("initialising with new nodeIndex")}getRedactedBy(e){var t,n;return null!==(t=null===(n=jo($I,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isRedacted(e){var t,n;return null!==(t=null===(n=jo($I,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=jo($I,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}},JI=jl("cbio.DisabledViews");var KI=new WeakMap;const XI=new class{constructor(){Bo(this,KI,void 0)}init(e){zo(KI,this,e),JI("initialising with new nodeIndex")}getDisabledBy(e){var t,n;return null!==(t=null===(n=jo(KI,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isDisabled(e){var t,n;return null!==(t=null===(n=jo(KI,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=jo(KI,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}};class ZI{static fromImage(e){const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,t.width,t.height),this.fromCanvas(t)}static fromCanvas(e,t=1,n=.3){if(1===t)return e.toDataURL?e.toDataURL("image/webp",n):null;const r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e.width*t,r.height=e.height*t,i.drawImage(e,0,0,r.width,r.height),r.toDataURL("image/webp",n)}}let eL=null;const tL=e=>{try{if(e.media&&e.media.length&&!window.matchMedia(e.media).matches)return""}catch(t){console.warn("CobrowseIO: Media detection for sheet failed:",t,"sheet",e)}return[].slice.call(e.cssRules).reduce((e,t)=>{try{return e+t.cssText}catch(t){return e}},"")},nL=e=>"IMG"===e.tagName?e.currentSrc:"LINK"===e.tagName?e.href:null,rL=(e,t)=>{const n=nL(e);e.__cbio_content_cache=e.__cbio_content_cache||{},e.__cbio_content_cache[n]=t},iL=e=>{var t;const n=nL(e);return null===(t=e.__cbio_content_cache)||void 0===t?void 0:t[n]},oL=async e=>{const t=PI.getById(e);if(t)return"IMG"===t.tagName?(async e=>{if(iL(e))return;const t=nL(e),n=await(async()=>{try{await(n=e,new Promise(e=>{if(n.complete)return e();const t=()=>{clearTimeout(r),n.removeEventListener("load",t),n.removeEventListener("error",t),e()};n.addEventListener("load",t,{once:!0}),n.addEventListener("error",t,{once:!0});const r=setTimeout(t,5e3)}));const t=ZI.fromImage(e);if("data:,"!==t)return t}catch(e){}var n;try{return await(e=>new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>{try{const e=ZI.fromImage(r);t(e)}catch(e){n(e)}},r.onerror=n}))(t)}catch(e){}})();n&&rL(e,n)})(t):"LINK"===t.tagName&&"stylesheet"===t.rel?(async e=>{if(iL(e))return;const t=nL(e),n=await(async()=>{try{if(e.sheet)return tL(e.sheet)}catch(e){}try{return await(e=>new Promise((t,n)=>{const r=document.createElement("link");r.crossOrigin="anonymous",r.rel="stylesheet",r.href=e,r.setAttribute("class","__cbio_ignored"),r.onload=()=>{try{const e=tL(r.sheet);t(e)}catch(e){n(e)}finally{r.remove()}},r.onerror=e=>{r.remove(),n(e)},document.head.appendChild(r)}))(t)}catch(e){}})();n&&rL(e,n)})(t):void 0},sL={OBJECT:!0,EMBED:!0},aL=new Set(["A","AREA","AUDIO","BUTTON","DETAILS","DIALOG","EMBED","IFRAME","IMG","INPUT","LABEL","MENU","OBJECT","OPTGROUP","OPTION","SELECT","SUMMARY","TEXTAREA","VIDEO"]),cL=new Set(["button","link","menuitem","menuitemcheckbox","menuitemradio","checkbox","radio","switch","textbox","searchbox","spinbutton","slider","combobox","listbox","option"]),lL=new class{constructor(){Qo(this,"isLocalResource",e=>!!(/^https?:\/\/localhost/.test(e)||/^https?:\/\/127.0.0.1/.test(e)||/^file:\/\//.test(e)||/^blob:/.test(e)||/^ionic:/.test(e))),Qo(this,"serializeAdoptedStyleSheets",e=>{try{let t=[];return[...e.adoptedStyleSheets||[]].forEach(e=>{t=t.concat([].slice.call(e.cssRules))}),tL({cssRules:t})}catch(t){return console.warn("CobrowseIO: AdoptedStyleSheets serialize failed:",t.message,"for",e),""}})}_serializeAttributes(e,t){if(e.nodeType===window.Node.ELEMENT_NODE&&e.attributes){const n={};Array.from(e.attributes||[]).forEach(t=>{t.nodeName.startsWith("@")||("href"===t.nodeName||"src"===t.nodeName?n[t.nodeName]="string"==typeof e[t.nodeName]?e[t.nodeName]:t.nodeValue:n[t.nodeName]=t.nodeValue)}),t.attributes=n}}_serializeSelection(e,t){var n;let r=null;const i=e.getSelection();if(i&&"Range"===i.type&&!i.isCollapsed&&i.rangeCount>0)try{r=[...Array(i.rangeCount)].reduce((e,t,n)=>{const r=i.getRangeAt(n),{startOffset:o,endOffset:s}=r,a=YI.getRedactedBy(r.startContainer),c=YI.getRedactedBy(r.endContainer),l=PI.get(null!=a?a:r.startContainer),u=PI.get(null!=c?c:r.endContainer);return e.push({start:l,end:u,startOffset:a?0:o,endOffset:c?0:s}),e},[])}catch(e){console.warn("CobrowseIO: Could not serialize text selection",e)}else["INPUT","TEXTAREA"].includes(null===(n=e.activeElement)||void 0===n?void 0:n.tagName)&&e.activeElement.selectionStart!==e.activeElement.selectionEnd&&(r=!1);t.selection=r}_serializeDocument(e,t){if(e.nodeType===window.Node.DOCUMENT_NODE){var n,r,i,o,s,a;t.url=e.location&&e.location.href;const c=1===(null!==(n=null===(r=e.defaultView)||void 0===r||null===(r=r.visualViewport)||void 0===r?void 0:r.scale)&&void 0!==n?n:1),l=0===function(){if(null==eL){var e,t;const n=document.createElement("div");n.style.cssText="width: 100px; height: 100px; overflow: scroll; position: absolute; top: -500px; left: -500px; margin: 0px; padding: 0px; border: none;",null===(e=document.body)||void 0===e||e.appendChild(n),eL=n.offsetWidth-n.clientWidth,null===(t=document.body)||void 0===t||t.removeChild(n)}return eL}()&&c,u=l?null===(i=e.defaultView)||void 0===i?void 0:i.innerWidth:null===(o=e.documentElement)||void 0===o?void 0:o.clientWidth,d=l?null===(s=e.defaultView)||void 0===s?void 0:s.innerHeight:null===(a=e.documentElement)||void 0===a?void 0:a.clientHeight;t.size={width:u,height:d},t.focus=PI.get(e.activeElement);const h=e=>({name:e.name,publicId:e.publicId,systemId:e.systemId});t.doctype=null!=e.doctype?h(e.doctype):null,t.css=this.serializeAdoptedStyleSheets(e),this._serializeSelection(e,t)}}_serializeInput(e,t){if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"OPTION"===e.tagName){t.value=e.value,"radio"!==e.type&&"checkbox"!==e.type||void 0===e.checked||(t.checked=e.checked),t.selection=null;try{const{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;n!==r&&e===e.ownerDocument.activeElement&&(t.selection={start:n,end:r,direction:i})}catch(t){console.warn("Failed to serialise text selection for the input",e)}}}_serializeSelect(e,t){"SELECT"!==e.tagName||e.size&&1!==e.size||e.multiple||(t.preventDefault=!0)}_serializeOption(e,t){"OPTION"===e.tagName&&(t.selected=e.selected)}_serializeShadowRoot(e,t){e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&(t.css=this.serializeAdoptedStyleSheets(e))}_serializeStyle(e,t){var n;if("STYLE"===(null===(n=e.tagName)||void 0===n?void 0:n.toUpperCase()))try{e.sheet&&(t.css=tL(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}_serializeLinkStyleSheet(e,t){if("LINK"===e.tagName&&"stylesheet"===e.rel){const n=iL(e);if(n)return void(t.css=n);if(this.isLocalResource(e.href))try{e.sheet&&(t.css=tL(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}}_serializeCanvas(e,t,n){if("CANVAS"===e.tagName&&!n.isRedacted&&n.rasterizeCanvas)try{var r;const n=parseFloat(null===(r=e.attributes)||void 0===r||null===(r=r["data-cbio-quality"])||void 0===r?void 0:r.value)||.8;t.data=ZI.fromCanvas(e,n)}catch(t){e._cb_serialize_warned||(console.warn("Cobrowse failed to serialize canvas",e,"due to error",t),e._cb_serialize_warned=!0)}}_serializeImage(e,t,n){if("IMG"===e.tagName&&!n.isRedacted){const n=iL(e);if(n)return t.attributes.src=n,void delete t.attributes.srcset;if(this.isLocalResource(e.src))try{t.attributes.src=ZI.fromImage(e),delete t.attributes.srcset}catch(t){console.warn("CobrowseIO: Failed to serialize image",e)}}}_serializeScroll(e,t){var n,r;hv(e)||(e.nodeType===window.Node.DOCUMENT_NODE?t.scroll={x:(null===(n=e.defaultView)||void 0===n?void 0:n.pageXOffset)||0,y:(null===(r=e.defaultView)||void 0===r?void 0:r.pageYOffset)||0}:"HTML"!==e.tagName&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)&&(t.scroll={x:e.scrollLeft||0,y:e.scrollTop||0}))}_serializeRedaction(e,t,n){if(n.isRedacted){delete t.value;const n=this._getSize(e);if(1===e.nodeType){const r=window.getComputedStyle(e),i="inline"===r.display&&n.height>0?"inline-block":r.display;t.attributes=t.attributes&&Yo({id:t.attributes.id,class:t.attributes.class,style:`${t.attributes.style||""}; display: ${i} !important;flex-basis: unset !important;flex-shrink: 0;z-index:${r.zIndex};`},"EMBED"===e.nodeName?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{})}else 3===e.nodeType&&(t.nodeType=1,t.tagName="SPAN",t.attributes={style:n.height>0?"display: inline-block !important":void 0});t.redaction={height:`${n.height}px`,width:`${n.width}px`}}else t.redaction=void 0}_serializePseudoSelectors(e,t){var n,r,i;"function"==typeof e.matches&&(null===(n=t.attributes)||void 0===n||delete n.__cbio_pseudo_hover,null===(r=t.attributes)||void 0===r||delete r.__cbio_pseudo_active,null===(i=t.attributes)||void 0===i||delete i.__cbio_pseudo_focus,t.attributes=Yo(Yo(Yo(Yo({},t.attributes),e.matches(":hover")?{__cbio_pseudo_hover:""}:{}),e.matches(":active")?{__cbio_pseudo_active:""}:{}),e.matches(":focus")?{__cbio_pseudo_focus:""}:{}))}_serializeVisibility(e,t,n){e.tagName&&(n.forceHidden&&(t.attributes=Yo(Yo({},t.attributes),{},{style:"display: none !important;"})),null!=n&&n.includeVisibility&&(t.hidden=n.forceHidden||this._isExplicitlyHidden(e)||this._isHidden(e)&&e.parentElement&&!this._isHidden(e.parentElement),this._serializeInteractive(e,t)))}_isHidden(e){return this._isExplicitlyHidden(e)||this._isVisiblyHidden(e)}_isExplicitlyHidden(e){var t;return!0===e.hidden||"none"===(null===(t=e.style)||void 0===t?void 0:t.display)}_isVisiblyHidden(e){return"contents"!==getComputedStyle(e).display&&!this._checkVisibility(e)}_checkVisibility(e){return!e.checkVisibility||e.checkVisibility({visibilityProperty:!0})}_serializeInteractive(e,t){if(aL.has(e.tagName)||cL.has(e.getAttribute("role"))||e.hasAttribute("tabindex")&&Number(e.getAttribute("tabindex"))>=0)return void(t.interactive="semantic");if(e.hasAttribute("onclick"))return void(t.interactive="scripted");const n=this._getCustomCursor(e.parentElement),r=this._getCustomCursor(e);r&&n!==r&&(t.interactive="styled")}_getCustomCursor(e){if(!e)return;const t=getComputedStyle(e);return t.cursor&&"auto"!==t.cursor&&"default"!==t.cursor?t.cursor:void 0}_getSize(e){const t=null==e?void 0:e.nodeType;if(null==t)return{height:0,width:0};if(t===Node.ELEMENT_NODE)return e.getBoundingClientRect();{const t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}}_serializeDisabledView(e,t){t.disabled=XI.isDisabled(e)}_serialize(e,t){if(!PI.get(e))throw console.error("node missing id",e,e.parentNode),new Error("node missing id",e);if(!RI.isDOMNode(e))return e;if(!e.nodeType)throw new Error("node missing type",e);const n={id:PI.get(e),nodeType:e.nodeType};return this._serializeShadowRoot(e,n),this._serializeAttributes(e,n),this._serializeImage(e,n,t),this._serializeDocument(e,n),this._serializeScroll(e,n),this._serializeInput(e,n),this._serializeSelect(e,n),this._serializeOption(e,n),this._serializeStyle(e,n),this._serializeLinkStyleSheet(e,n),this._serializeCanvas(e,n,t),this._serializeRedaction(e,n,t),this._serializePseudoSelectors(e,n),this._serializeVisibility(e,n,t),this._serializeDisabledView(e,n),e.tagName&&(n.tagName=e.tagName),e.nodeValue&&(n.content=e.nodeValue),n}serialize(e,t=()=>{},n={}){const r=YI.getRedactedBy(e);if(r&&r!==e)return null;if(qI.isIgnored(e))return t([]),null;const i=Boolean(sL[e.tagName]),o=this._serialize(e,Yo({isRedacted:Boolean(r)||i},n));if(n.skipChildren||i)return o;if(r)return t([]),Yo(Yo({},o),{},{childNodes:[]});const s=qI.children(e);if(s){const e=s.map(e=>{if(!RI.isDOMNode(e))return Yo({},e);const t=PI.get(e);return t||console.warn("child node missing id",e),{id:t}});return Yo(Yo({},o),{},{childNodes:e})}return o}};var uL=new WeakMap,dL=new WeakMap,hL=new WeakMap,fL=new WeakMap,pL=new WeakSet;class gL{constructor(e=[],t=[],{document:n=window.document}={}){qo(this,pL),Bo(this,uL,void 0),Bo(this,dL,void 0),Bo(this,hL,new Set),Bo(this,fL,new Set),zo(uL,this,xo(pL,this,OL).call(this,...e)),zo(dL,this,xo(pL,this,OL).call(this,...t));for(const e of xo(pL,this,TL).call(this,n,jo(uL,this)))jo(hL,this).add(e);for(const e of xo(pL,this,TL).call(this,n,jo(dL,this)))jo(fL,this).add(e)}getIncludedBy(e){if(xo(pL,this,CL).call(this,e)||xo(pL,this,bL).call(this,e))return null;const t=xo(pL,this,AL).call(this,e);return t?xo(pL,this,bL).call(this,e.parentNode)?e:t:xo(pL,this,LL).call(this,e)?e:null}notifyChanges(e,t,n,r){const i=new Set,o=new Set,s=new Set([...jo(hL,this)]);for(const t of e){if(qI.isIgnored(t.target)||r.has(t.target))continue;const e=this.getIncludedBy(t.target);if(e&&e!==t.target&&i.add(e),"attributes"===t.type){const e=xo(pL,this,NL).call(this,t.target);for(const t of e)o.add(t);const n=xo(pL,this,CL).call(this,t.target);jo(fL,this).has(t.target)!==!!n&&o.add(t.target.parentNode)}else if("childList"===t.type){const e=xo(pL,this,mL).call(this,t.removedNodes),n=xo(pL,this,mL).call(this,t.addedNodes);if(!o.has(t.target)){const r=xo(pL,this,NL).call(this,t.target).length>0;(r&&n||!r&&e)&&o.add(t.target)}}}const a=xo(pL,this,IL).call(this,o);for(const e of a)qI.isIgnored(e)||i.add(e);xo(pL,this,_L).call(this,t,new Set([...i,...n]),r);for(const e of n)for(const t of jo(hL,this))e.contains(t)&&i.add(t);for(const e of s)jo(hL,this).has(e)||r.has(e)||qI.depthFirst(e,e=>i.add(e));return i}isIncluded(e){return Boolean(this.getIncludedBy(e))}}function mL(e){const t=[...e];return t.find(e=>!qI.isIgnored(e)&&xo(pL,this,CL).call(this,e))||t.find(e=>xo(pL,this,NL).call(this,e).length>0)}function _L(e,t,n){xo(pL,this,vL).call(this,e,t,n),xo(pL,this,EL).call(this,t,n)}function vL(e,t,n){for(const e of xo(pL,this,wL).call(this,n))jo(fL,this).delete(e);for(const t of xo(pL,this,wL).call(this,e))jo(fL,this).add(t);for(const n of t)e.has(n)||(xo(pL,this,CL).call(this,n)?jo(fL,this).add(n):jo(fL,this).delete(n))}function EL(e,t){for(const e of t)jo(hL,this).delete(e);for(const t of e)xo(pL,this,yL).call(this,t)}function*wL(e){for(const t of e)xo(pL,this,CL).call(this,t)&&(yield t)}function yL(e){const t=jo(hL,this).has(e);t&&this.getIncludedBy(e)!==e?jo(hL,this).delete(e):t||this.getIncludedBy(e)!==e||jo(hL,this).add(e)}function IL(e){const t=new Set([...e].flatMap(e=>[e,...fv(e)]));return[...t].flatMap(e=>[...e.childNodes||[]])}function LL(e){return xo(pL,this,kL).call(this,e,jo(uL,this))}function CL(e){return xo(pL,this,kL).call(this,e,jo(dL,this))}function AL(e){const t=xo(pL,this,SL).call(this,e);return t?fv(e,t).find(e=>xo(pL,this,bL).call(this,e.parentNode))||t:null}function SL(e){if(!RI.isDOMNode(e))return null;const{get:t}=Object.getOwnPropertyDescriptor(GI.prototype,"parentNode"),n=xo(pL,this,OL).call(this,jo(uL,this),jo(dL,this)),r=e&&e.nodeType===GI.ELEMENT_NODE&&t.call(e),i=r&&r.nodeType===GI.ELEMENT_NODE&&n&&r.closest(n);return xo(pL,this,kL).call(this,i,jo(uL,this))?xo(pL,this,CL).call(this,i)?null:i:null}function bL(e){return jo(dL,this)&&e&&"HTML"!==e.tagName&&e.querySelector&&e.querySelector(jo(dL,this))}function NL(e){return xo(pL,this,TL).call(this,e,jo(dL,this))}function TL(e,t){return t&&e.querySelectorAll?e.querySelectorAll(t):[]}function kL(e,t){return e&&t&&e.matches&&e.matches(t)}function OL(...e){return e.filter(Boolean).join(",")}const RL=["id","redaction"];var PL=new WeakMap,DL=new WeakMap,ML=new WeakMap,xL=new WeakMap,GL=new WeakMap;class UL extends wv.EventEmitter{constructor(...e){super(...e),Qo(this,"track",e=>{e.addEventListener("click",jo(ML,this),{capture:!0,passive:!0}),e.addEventListener("change",jo(xL,this),{capture:!0,passive:!0}),e.addEventListener("input",jo(GL,this),{capture:!0,passive:!0})}),Qo(this,"untrack",e=>{e.removeEventListener("click",jo(ML,this),{capture:!0,passive:!0}),e.removeEventListener("change",jo(xL,this),{capture:!0,passive:!0}),e.removeEventListener("input",jo(GL,this),{capture:!0,passive:!0})}),Bo(this,PL,e=>{const t=PI.get(e);if(!t)return;return lL.serialize(e,void 0,{skipChildren:!0})||{id:t,redaction:!0}}),Bo(this,DL,(e,t=!1)=>{const n=jo(PL,this).call(this,e);if(!n)return n;const{id:r,redaction:i}=n,o=Jo(n,RL);return Yo({id:r,redacted:Boolean(i)},t&&NI(o,["value","checked"]))}),Bo(this,ML,e=>{if(!e.isTrusted)return;const t=jo(DL,this).call(this,e.target);t&&this.emit("click",t)}),Bo(this,xL,e=>{const t=jo(DL,this).call(this,e.target,!0);t&&this.emit("change",t)}),Bo(this,GL,dc(e=>{const t=jo(DL,this).call(this,e.target,!0);t&&this.emit("input",t)},250))}}const VL=new UL;var WL,FL;function jL(){if(FL)return WL;FL=1;var e=o();return WL=e}var BL,zL,HL,qL,QL={};function $L(){if(HL)return zL;HL=1;var e=jL(),t=it(),n=function(){if(BL)return QL;BL=1;var e=st();return QL.f=e,QL}(),r=It().f;return zL=function(i){var o=e.Symbol||(e.Symbol={});t(o,i)||r(o,i,{value:n.f(i)})}}qL||(qL=1,$L()("asyncIterator"));var YL,JL,KL,XL={};function ZL(){if(JL)return YL;JL=1;var e=g();return YL=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(KL)return XL;KL=1;var e=jn(),t=le(),n=Ae(),r=rt(),i=gn(),o=pl(),s=zn(),a=g(),c=Co(),l=ZL(),u=Af(),d=Sf(),h=we(),f=bf(),p=[],m=t(p.sort),_=t(p.push),v=a(function(){p.sort(void 0)}),E=a(function(){p.sort(null)}),w=l("sort"),y=!a(function(){if(h)return h<70;if(!(u&&u>3)){if(d)return!0;if(f)return f<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:t+r,v:n})}for(p.sort(function(e,t){return t.v-e.v}),r=0;r<p.length;r++)t=p[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:v||!E||!w||!y},{sort:function(e){void 0!==e&&n(e);var t=r(this);if(y)return void 0===e?m(t):m(t,e);var a,l,u=[],d=i(t);for(l=0;l<d;l++)l in t&&_(u,t[l]);for(c(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),a=i(u),l=0;l<a;)t[l]=u[l++];for(;l<d;)o(t,l++);return t}})}();var eC,tC,nC,rC,iC,oC,sC,aC,cC,lC,uC={};!function(){if(eC)return uC;eC=1;var e=jn(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}(),tC||(tC=1,nf()("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})),nC||(nC=1,nf()("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})),rC||(rC=1,nf()("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})),iC||(iC=1,nf()("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})),oC||(oC=1,nf()("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})),sC||(sC=1,nf()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)),aC||(aC=1,nf()("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}}));var dC=(lC||(lC=1,cC=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l<u;l++)switch(n=r[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){a=!0,i+="(";break}case"}":if(o){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var d=r[l-1],h=1;"*"===r[l+1];)h++,l++;var f=r[l+1];s?!(h>1)||"/"!==d&&void 0!==d||"/"!==f&&void 0!==f?i+="([^/]*)":(i+="((?:[^/]*(?:/|$))*)",l++):i+=".*";break;default:i+=n}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}),cC);const hC=t(dC),fC=[];for(let e=0;e<256;++e)fC.push((e+256).toString(16).slice(1));let pC;const gC=new Uint8Array(16),mC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const _C=jl("cbio.ActivityDetection");var vC=new WeakMap,EC=new WeakMap,wC=new WeakMap,yC=new WeakMap,IC=new WeakMap,LC=new WeakMap,CC=new WeakMap;class AC extends wv.EventEmitter{constructor(e){super(),Bo(this,vC,!1),Bo(this,EC,!1),Bo(this,wC,null),Bo(this,yC,9e5),Qo(this,"start",()=>{jo(vC,this)||(zo(vC,this,!0),_C("started"),document.addEventListener("mouseenter",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("mouseleave",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("mousemove",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("touchstart",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("touchend",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("touchmove",jo(IC,this),{capture:!0,passive:!0}),document.addEventListener("visibilitychange",jo(IC,this),{capture:!0}),jo(IC,this).call(this))}),Qo(this,"stop",()=>{zo(EC,this,!1),zo(vC,this,!1),_C("stopped"),clearTimeout(jo(wC,this)),this.removeAllListeners(),document.removeEventListener("mouseenter",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("mouseleave",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("mousemove",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("touchstart",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("touchend",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("touchmove",jo(IC,this),{capture:!0,passive:!0}),document.removeEventListener("visibilitychange",jo(IC,this),{capture:!0})}),Qo(this,"isActive",()=>jo(EC,this)),Bo(this,IC,dc(()=>{jo(LC,this).call(this),clearTimeout(jo(wC,this)),zo(wC,this,setTimeout(jo(CC,this),jo(yC,this))),this.emit("activity")},500,{trailing:!1})),Bo(this,LC,()=>{jo(EC,this)||(document.hidden?_C("window is hidden, not becoming active"):(zo(EC,this,!0),_C("became active"),this.emit("active")))}),Bo(this,CC,()=>{jo(EC,this)&&(zo(EC,this,!1),_C("became inactive"),this.emit("inactive"))}),e&&zo(yC,this,e)}}var SC,bC={exports:{}},NC=(SC||(SC=1,function(e){let t,n,r;try{t=new TextDecoder}catch(e){}let i=0;const o={};let s,a,c,l,u,d,h,f=11281e4,p=1681e4,g={},m=0,_=0,v=[],E=[],w={useRecords:!1,mapsAsObjects:!0},y=!1,I=2;var L;try{new L("")}catch(e){I=1/0}class C{constructor(e){if(e&&(!e.keyMap&&!e._keyMap||e.useRecords||(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,n]of Object.entries(e.keyMap))this.mapKey.set(n,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[n,r]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(n)?this._keyMap[n]:n,r);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey){this._mapKey=new Map;for(let[e,t]of Object.entries(this._keyMap))this._mapKey.set(t,e)}let t={};return e.forEach((e,n)=>t[T(this._mapKey.has(n)?this._mapKey.get(n):n)]=e),t}mapDecode(e,t){let n=this.decode(e);return this._keyMap&&"Array"===n.constructor.name?n.map(e=>this.decodeKeys(e)):n}decode(e,t){if(n)return $(()=>(Y(),this?this.decode(e,t):C.prototype.decode.call(w,e,t)));r=t>-1?t:e.length,i=0,_=0,a=null,c=null,n=e;try{d=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){if(n=null,e instanceof Uint8Array)throw t;throw new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof C){if(g=this,u=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return s=this.structures,A();(!s||s.length>0)&&(s=[])}else g=w,(!s||s.length>0)&&(s=[]),u=null;return A()}decodeMultiple(e,t){let n,r=0;try{let o=e.length;y=!0;let s=this?this.decode(e,o):K.decode(e,o);if(!t){for(n=[s];i<o;)r=i,n.push(A());return n}if(!1===t(s))return;for(;i<o;)if(r=i,!1===t(A()))return}catch(e){throw e.lastPosition=r,e.values=n,e}finally{y=!1,Y()}}}function A(){try{let e=S();if(c){if(i>=c.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}i=c.postBundlePosition,c=null}if(i==r)s=null,n=null,l&&(l=null);else{if(i>r){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!y)throw new Error("Data read, but end of buffer not reached")}return e}catch(e){throw Y(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function S(){let e=n[i++],t=e>>5;if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:if(7==t)return function(){let e=n[i++],t=n[i++],r=(127&e)>>2;if(31===r)return t||3&e?NaN:128&e?-1/0:1/0;if(0===r){let n=((3&e)<<8|t)/(1<<24);return 128&e?-n:n}return M[3]=128&e|56+(r>>1),M[2]=(7&e)<<5|t>>3,M[1]=t<<5,M[0]=0,D[0]}();e=d.getUint16(i),i+=2;break;case 26:if(7==t){let e=d.getFloat32(i);if(g.useFloat32>2){let t=J[(127&n[i])<<1|n[i+1]>>7];return i+=4,(t*e+(e>0?.5:-.5)|0)/t}return i+=4,e}e=d.getUint32(i),i+=4;break;case 27:if(7==t){let e=d.getFloat64(i);return i+=8,e}if(t>1){if(d.getUint32(i)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=d.getUint32(i+4)}else g.int64AsNumber?(e=4294967296*d.getUint32(i),e+=d.getUint32(i+4)):e=d.getBigUint64(i);i+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let e,n=[],r=0;for(;(e=S())!=o;){if(r>=f)throw new Error(`Array length exceeds ${f}`);n[r++]=e}return 4==t?n:3==t?n.join(""):Buffer.concat(n);case 5:let i;if(g.mapsAsObjects){let e={},t=0;if(g.keyMap)for(;(i=S())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[T(g.decodeKey(i))]=S()}else for(;(i=S())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[T(i)]=S()}return e}{h&&(g.mapsAsObjects=!0,h=!1);let e=new Map;if(g.keyMap){let t=0;for(;(i=S())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(g.decodeKey(i),S())}}else{let t=0;for(;(i=S())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(i,S())}}return e}case 7:return o;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return l=e,g.copyBuffers?Uint8Array.prototype.slice.call(n,i,i+=l):n.subarray(i,i+=l);case 3:if(_>=i)return a.slice(i-m,(i+=e)-m);if(0==_&&r<140&&e<32){let t=e<16?P(e):function(e){let t=i,r=new Array(e);for(let o=0;o<e;o++){const e=n[i++];if((128&e)>0)return void(i=t);r[o]=e}return R.apply(String,r)}(e);if(null!=t)return t}return k(e);case 4:if(e>=f)throw new Error(`Array length exceeds ${f}`);let t=new Array(e);for(let n=0;n<e;n++)t[n]=S();return t;case 5:if(e>=p)throw new Error(`Map size exceeds ${f}`);if(g.mapsAsObjects){let t={};if(g.keyMap)for(let n=0;n<e;n++)t[T(g.decodeKey(S()))]=S();else for(let n=0;n<e;n++)t[T(S())]=S();return t}{h&&(g.mapsAsObjects=!0,h=!1);let t=new Map;if(g.keyMap)for(let n=0;n<e;n++)t.set(g.decodeKey(S()),S());else for(let n=0;n<e;n++)t.set(S(),S());return t}case 6:if(e>=57337){let t=s[8191&e];if(t)return t.read||(t.read=N(t)),t.read();if(e<65536){if(57343==e){let e=q(),t=S(),n=S();G(t,n);let r={};if(g.keyMap)for(let t=2;t<e;t++)r[T(g.decodeKey(n[t-2]))]=S();else for(let t=2;t<e;t++)r[T(n[t-2])]=S();return r}if(57342==e){let e=q(),t=S();for(let n=2;n<e;n++)G(t++,S());return S()}if(57337==e)return function(){let e=q(),t=i+S();for(let t=2;t<e;t++){let e=q();i+=e}let n=i;return i=t,c=[O(q()),O(q())],c.position0=0,c.position1=0,c.postBundlePosition=i,i=n,S()}();if(g.getShared&&(Q(),t=s[8191&e],t))return t.read||(t.read=N(t)),t.read()}}let o=v[e];if(o)return o.handlesRead?o(S):o(S());{let t=S();for(let n=0;n<E.length;n++){let r=E[n](e,t);if(void 0!==r)return r}return new x(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(u||F())[e];if(void 0!==t)return t;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw new Error("Unknown CBOR token "+e)}var l}const b=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function N(e){if(!e)throw new Error("Structure is required in record definition");return e.slowReads=0,function(){let e=n[i++];if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:e=d.getUint16(i),i+=2;break;case 26:e=d.getUint32(i),i+=4;break;default:throw new Error("Expected array header, but got "+n[i-1])}let t=this.compiledReader;for(;t;){if(t.propertyCount===e)return t(S);t=t.next}if(this.slowReads++>=I){let n=this.length==e?this:this.slice(0,e);return t=g.keyMap?new L("r","return {"+n.map(e=>g.decodeKey(e)).map(e=>b.test(e)?T(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"):new L("r","return {"+n.map(e=>b.test(e)?T(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"),this.compiledReader&&(t.next=this.compiledReader),t.propertyCount=e,this.compiledReader=t,t(S)}let r={};if(g.keyMap)for(let t=0;t<e;t++)r[T(g.decodeKey(this[t]))]=S();else for(let t=0;t<e;t++)r[T(this[t])]=S();return r}}function T(e){if("string"==typeof e)return"__proto__"===e?"__proto_":e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return e.toString();if(null==e)return e+"";throw new Error("Invalid property name type "+typeof e)}let k=O;function O(e){let r;if(e<16&&(r=P(e)))return r;if(e>64&&t)return t.decode(n.subarray(i,i+=e));const o=i+e,s=[];for(r="";i<o;){const e=n[i++];if(128&e)if(192==(224&e)){const t=63&n[i++];s.push((31&e)<<6|t)}else if(224==(240&e)){const t=63&n[i++],r=63&n[i++];s.push((31&e)<<12|t<<6|r)}else if(240==(248&e)){let t=(7&e)<<18|(63&n[i++])<<12|(63&n[i++])<<6|63&n[i++];t>65535&&(t-=65536,s.push(t>>>10&1023|55296),t=56320|1023&t),s.push(t)}else s.push(e);else s.push(e);s.length>=4096&&(r+=R.apply(String,s),s.length=0)}return s.length>0&&(r+=R.apply(String,s)),r}let R=String.fromCharCode;function P(e){if(e<4){if(e<2){if(0===e)return"";{let e=n[i++];return(128&e)>1?void(i-=1):R(e)}}{let t=n[i++],r=n[i++];if((128&t)>0||(128&r)>0)return void(i-=2);if(e<3)return R(t,r);let o=n[i++];return(128&o)>0?void(i-=3):R(t,r,o)}}{let t=n[i++],r=n[i++],o=n[i++],s=n[i++];if((128&t)>0||(128&r)>0||(128&o)>0||(128&s)>0)return void(i-=4);if(e<6){if(4===e)return R(t,r,o,s);{let e=n[i++];return(128&e)>0?void(i-=5):R(t,r,o,s,e)}}if(e<8){let a=n[i++],c=n[i++];if((128&a)>0||(128&c)>0)return void(i-=6);if(e<7)return R(t,r,o,s,a,c);let l=n[i++];return(128&l)>0?void(i-=7):R(t,r,o,s,a,c,l)}{let a=n[i++],c=n[i++],l=n[i++],u=n[i++];if((128&a)>0||(128&c)>0||(128&l)>0||(128&u)>0)return void(i-=8);if(e<10){if(8===e)return R(t,r,o,s,a,c,l,u);{let e=n[i++];return(128&e)>0?void(i-=9):R(t,r,o,s,a,c,l,u,e)}}if(e<12){let d=n[i++],h=n[i++];if((128&d)>0||(128&h)>0)return void(i-=10);if(e<11)return R(t,r,o,s,a,c,l,u,d,h);let f=n[i++];return(128&f)>0?void(i-=11):R(t,r,o,s,a,c,l,u,d,h,f)}{let d=n[i++],h=n[i++],f=n[i++],p=n[i++];if((128&d)>0||(128&h)>0||(128&f)>0||(128&p)>0)return void(i-=12);if(e<14){if(12===e)return R(t,r,o,s,a,c,l,u,d,h,f,p);{let e=n[i++];return(128&e)>0?void(i-=13):R(t,r,o,s,a,c,l,u,d,h,f,p,e)}}{let g=n[i++],m=n[i++];if((128&g)>0||(128&m)>0)return void(i-=14);if(e<15)return R(t,r,o,s,a,c,l,u,d,h,f,p,g,m);let _=n[i++];return(128&_)>0?void(i-=15):R(t,r,o,s,a,c,l,u,d,h,f,p,g,m,_)}}}}}let D=new Float32Array(1),M=new Uint8Array(D.buffer,0,4);new Array(4096);class x{constructor(e,t){this.value=e,this.tag=t}}v[0]=e=>new Date(e),v[1]=e=>new Date(Math.round(1e3*e)),v[2]=e=>{let t=BigInt(0);for(let n=0,r=e.byteLength;n<r;n++)t=BigInt(e[n])+(t<<BigInt(8));return t},v[3]=e=>BigInt(-1)-v[2](e),v[4]=e=>+(e[1]+"e"+e[0]),v[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const G=(e,t)=>{let n=s[e-=57344];n&&n.isShared&&((s.restoreStructures||(s.restoreStructures=[]))[e]=n),s[e]=t,t.read=N(t)};v[105]=e=>{let t=e.length,n=e[1];G(e[0],n);let r={};for(let i=2;i<t;i++)r[T(n[i-2])]=e[i];return r},v[14]=e=>c?c[0].slice(c.position0,c.position0+=e):new x(e,14),v[15]=e=>c?c[1].slice(c.position1,c.position1+=e):new x(e,15);let U={Error:Error,RegExp:RegExp};v[27]=e=>(U[e[0]]||Error)(e[1],e[2]);const V=e=>{if(132!=n[i++]){let e=new Error("Packed values structure must be followed by a 4 element array");throw n.length<i&&(e.incomplete=!0),e}let t=e();if(!t||!t.length){let e=new Error("Packed values structure must be followed by a 4 element array");throw e.incomplete=!0,e}return u=u?t.concat(u.slice(t.length)):t,u.prefixes=e(),u.suffixes=e(),e()};function W(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function F(){if(!u){if(!g.getShared)throw new Error("No packed values available");Q()}return u}V.handlesRead=!0,v[51]=V,v[6]=e=>{if(!u){if(!g.getShared)return new x(e,6);Q()}if("number"==typeof e)return u[16+(e>=0?2*e:-2*e-1)];let t=new Error("No support for non-integer packed references yet");throw void 0===e&&(t.incomplete=!0),t},v[28]=e=>{l||(l=new Map,l.id=0);let t,r=l.id++,o=i;t=n[i]>>5==4?[]:{};let s={target:t};l.set(r,s);let a=e();return s.used?(Object.getPrototypeOf(t)!==Object.getPrototypeOf(a)&&(i=o,t=a,l.set(r,{target:t}),a=e()),Object.assign(t,a)):(s.target=a,a)},v[28].handlesRead=!0,v[29]=e=>{let t=l.get(e);return t.used=!0,t.target},v[258]=e=>new Set(e),(v[259]=e=>(g.mapsAsObjects&&(g.mapsAsObjects=!1,h=!0),e())).handlesRead=!0;E.push((e,t)=>e>=225&&e<=255?W(F().prefixes[e-224],t):e>=28704&&e<=32767?W(F().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?W(F().prefixes[e-1879048192],t):e>=216&&e<=223?W(t,F().suffixes[e-216]):e>=27647&&e<=28671?W(t,F().suffixes[e-27639]):e>=1811940352&&e<=1879048191?W(t,F().suffixes[e-1811939328]):1399353956==e?{packedValues:u,structures:s.slice(0),version:t}:55799==e?t:void 0);const j=1==new Uint8Array(new Uint16Array([1]).buffer)[0],B=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],z=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<B.length;e++)H(B[e],z[e]);function H(e,t){let n,r="get"+e.name.slice(0,-5);"function"==typeof e?n=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i<2;i++){if(!i&&1==n)continue;let o=2==n?1:4==n?2:8==n?3:0;v[i?t:t-4]=1==n||i==j?r=>{if(!e)throw new Error("Could not find typed array for code "+t);return g.copyBuffers||1!==n&&(2!==n||1&r.byteOffset)&&(4!==n||3&r.byteOffset)&&(8!==n||7&r.byteOffset)?new e(Uint8Array.prototype.slice.call(r,0).buffer):new e(r.buffer,r.byteOffset,r.byteLength>>o)}:n=>{if(!e)throw new Error("Could not find typed array for code "+t);let s=new DataView(n.buffer,n.byteOffset,n.byteLength),a=n.length>>o,c=new e(a),l=s[r];for(let e=0;e<a;e++)c[e]=l.call(s,e<<o,i);return c}}}function q(){let e=31&n[i++];if(e>23)switch(e){case 24:e=n[i++];break;case 25:e=d.getUint16(i),i+=2;break;case 26:e=d.getUint32(i),i+=4}return e}function Q(){if(g.getShared){let e=$(()=>(n=null,g.getShared()))||{},t=e.structures||[];g.sharedVersion=e.version,u=g.sharedValues=e.packedValues,!0===s?g.structures=s=t:s.splice.apply(s,[0,t.length].concat(t))}}function $(e){let t=r,o=i,u=m,h=_,f=a,p=l,v=c,E=new Uint8Array(n.slice(0,r)),w=s,I=g,L=y,C=e();return r=t,i=o,m=u,_=h,a=f,l=p,c=v,n=E,y=L,s=w,g=I,d=new DataView(n.buffer,n.byteOffset,n.byteLength),C}function Y(){n=null,l=null,s=null}const J=new Array(147);for(let e=0;e<256;e++)J[e]=+("1e"+Math.floor(45.15-.30103*e));let K=new C({useRecords:!1});const X=K.decode,Z=K.decodeMultiple,ee={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};let te,ne,re;try{te=new TextEncoder}catch(e){}const ie="object"==typeof globalThis&&globalThis.Buffer,oe=void 0!==ie,se=oe?ie.allocUnsafeSlow:Uint8Array,ae=oe?ie:Uint8Array,ce=oe?4294967296:2144337920;let le,ue,de,he,fe=0,pe=null;const ge=/[\u0080-\uFFFF]/,me=Symbol("record-id");class _e extends C{constructor(e){let t,n,r,i,o;super(e),this.offset=0,e=e||{};let s=ae.prototype.utf8Write?function(e,t,n){return ue.utf8Write(e,t,n)}:!(!te||!te.encodeInto)&&function(e,t){return te.encodeInto(e,ue.subarray(t)).written},a=this,c=e.structures||e.saveStructures,l=e.maxSharedStructures;if(null==l&&(l=c?128:0),l>8190)throw new Error("Maximum maxSharedStructure is 8190");let u=e.sequential;u&&(l=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let d,h,f,p=e.sharedValues;if(p){f=Object.create(null);for(let e=0,t=p.length;e<t;e++)f[p[e]]=e}let g=[],m=0,_=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map(e=>this.encodeKeys(e))),this.encode(e,t)},this.encode=function(s,c){if(ue||(ue=new se(8192),de=new DataView(ue.buffer,0,8192),fe=0),he=ue.length-10,he-fe<2048?(ue=new se(ue.length),de=new DataView(ue.buffer,0,ue.length),he=ue.length-10,fe=0):c===xe&&(fe=fe+7&2147483640),t=fe,a.useSelfDescribedHeader&&(de.setUint32(fe,3654940416),fe+=3),o=a.structuredClone?new Map:null,a.bundleStrings&&"string"!=typeof s?(pe=[],pe.size=1/0):pe=null,n=a.structures,n){if(n.uninitialized){let e=a.getShared()||{};a.structures=n=e.structures||[],a.sharedVersion=e.version;let t=a.sharedValues=e.packedValues;if(t){f={};for(let e=0,n=t.length;e<n;e++)f[t[e]]=e}}let e=n.length;if(e>l&&!u&&(e=l),!n.transitions){n.transitions=Object.create(null);for(let t=0;t<e;t++){let e=n[t];if(!e)continue;let r,i=n.transitions;for(let n=0,o=e.length;n<o;n++){void 0===i[me]&&(i[me]=t);let o=e[n];r=i[o],r||(r=i[o]=Object.create(null)),i=r}i[me]=1048576|t}}u||(n.nextId=e)}if(r&&(r=!1),i=n||[],h=f,e.pack){let t=new Map;if(t.values=[],t.encoder=a,t.maxValues=e.maxPrivatePackedValues||(f?16:1/0),t.objectMap=f||!1,t.samplingPackedValues=d,Le(s,t),t.values.length>0){ue[fe++]=216,ue[fe++]=51,we(4);let e=t.values;v(e),we(0),we(0),h=Object.create(f||null);for(let t=0,n=e.length;t<n;t++)h[e[t]]=t}}le=c&Ue;try{if(le)return;if(v(s),pe&&be(t,v),a.offset=fe,o&&o.idsToInsert){fe+=2*o.idsToInsert.length,fe>he&&w(fe),a.offset=fe;let e=function(e,t){let n,r=2*t.length,i=e.length-r;t.sort((e,t)=>e.offset>t.offset?1:-1);for(let n=0;n<t.length;n++){let r=t[n];r.id=n;for(let t of r.references)e[t++]=n>>8,e[t]=255&n}for(;n=t.pop();){let t=n.offset;e.copyWithin(t+r,t,i),r-=2;let o=t+r;e[o++]=216,e[o++]=28,i=t}return e}(ue.subarray(t,fe),o.idsToInsert);return o=null,e}return c&xe?(ue.start=t,ue.end=fe,ue):ue.subarray(t,fe)}finally{if(n)if(_<10&&_++,n.length>l&&(n.length=l),m>1e4)n.transitions=null,_=0,m=0,g.length>0&&(g=[]);else if(g.length>0&&!u){for(let e=0,t=g.length;e<t;e++)g[e][me]=void 0;g=[]}if(r&&a.saveShared){a.structures.length>l&&(a.structures=a.structures.slice(0,l));let e=ue.subarray(t,fe);return!1===a.updateSharedData()?a.encode(s):e}c&Ge&&(fe=t)}},this.findCommonStringsToPack=()=>(d=new Map,f||(f=Object.create(null)),e=>{let t=e&&e.threshold||4,n=this.pack?e.maxPrivatePackedValues||16:0;p||(p=this.sharedValues=[]);for(let[e,i]of d)i.count>t&&(f[e]=n++,p.push(e),r=!0);for(;this.saveShared&&!1===this.updateSharedData(););d=null});const v=n=>{fe>he&&(ue=w(fe));var r,i=typeof n;if("string"===i){if(h){let t=h[n];if(t>=0)return void(t<16?ue[fe++]=t+224:(ue[fe++]=198,v(1&t?15-t>>1:t-16>>1)));if(d&&!e.pack){let e=d.get(n);e?e.count++:d.set(n,{count:1})}}let i,o=n.length;if(pe&&o>=4&&o<1024){if((pe.size+=o)>61440){let e,n=(pe[0]?3*pe[0].length+pe[1].length:0)+10;fe+n>he&&(ue=w(fe+n)),ue[fe++]=217,ue[fe++]=223,ue[fe++]=249,ue[fe++]=pe.position?132:130,ue[fe++]=26,e=fe-t,fe+=4,pe.position&&be(t,v),pe=["",""],pe.size=0,pe.position=e}let e=ge.test(n);return pe[e?0:1]+=n,ue[fe++]=e?206:207,void v(o)}i=o<32?1:o<256?2:o<65536?3:5;let a=3*o;if(fe+a>he&&(ue=w(fe+a)),o<64||!s){let e,t,s,a=fe+i;for(e=0;e<o;e++)t=n.charCodeAt(e),t<128?ue[a++]=t:t<2048?(ue[a++]=t>>6|192,ue[a++]=63&t|128):55296==(64512&t)&&56320==(64512&(s=n.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&s),e++,ue[a++]=t>>18|240,ue[a++]=t>>12&63|128,ue[a++]=t>>6&63|128,ue[a++]=63&t|128):(ue[a++]=t>>12|224,ue[a++]=t>>6&63|128,ue[a++]=63&t|128);r=a-fe-i}else r=s(n,fe+i,a);r<24?ue[fe++]=96|r:r<256?(i<2&&ue.copyWithin(fe+2,fe+1,fe+1+r),ue[fe++]=120,ue[fe++]=r):r<65536?(i<3&&ue.copyWithin(fe+3,fe+2,fe+2+r),ue[fe++]=121,ue[fe++]=r>>8,ue[fe++]=255&r):(i<5&&ue.copyWithin(fe+5,fe+3,fe+3+r),ue[fe++]=122,de.setUint32(fe,r),fe+=4),fe+=r}else if("number"===i)if(this.alwaysUseFloat||n>>>0!==n)if(this.alwaysUseFloat||(0|n)!==n){let e;if((e=this.useFloat32)>0&&n<4294967296&&n>=-2147483648){let t;if(ue[fe++]=250,de.setFloat32(fe,n),e<4||(0|(t=n*J[(127&ue[fe])<<1|ue[fe+1]>>7]))===t)return void(fe+=4);fe--}ue[fe++]=251,de.setFloat64(fe,n),fe+=8}else n>=-24?ue[fe++]=31-n:n>=-256?(ue[fe++]=56,ue[fe++]=~n):n>=-65536?(ue[fe++]=57,de.setUint16(fe,~n),fe+=2):(ue[fe++]=58,de.setUint32(fe,~n),fe+=4);else n<24?ue[fe++]=n:n<256?(ue[fe++]=24,ue[fe++]=n):n<65536?(ue[fe++]=25,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=26,de.setUint32(fe,n),fe+=4);else if("object"===i)if(n){if(o){let e=o.get(n);if(e){if(ue[fe++]=216,ue[fe++]=29,ue[fe++]=25,!e.references){let t=o.idsToInsert||(o.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(fe-t),void(fe+=2)}o.set(n,{offset:fe-t})}let e=n.constructor;if(e===Object)E(n);else if(e===Array){(r=n.length)<24?ue[fe++]=128|r:we(r);for(let e=0;e<r;e++)v(n[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(ue[fe++]=217,ue[fe++]=1,ue[fe++]=3),(r=n.size)<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,de.setUint32(fe,r),fe+=4),a.keyMap)for(let[e,t]of n)v(a.encodeKey(e)),v(t);else for(let[e,t]of n)v(e),v(t);else{for(let e=0,t=ne.length;e<t;e++)if(n instanceof re[e]){let t=ne[e],r=t.tag;return null==r&&(r=t.getTag&&t.getTag.call(this,n)),r<24?ue[fe++]=192|r:r<256?(ue[fe++]=216,ue[fe++]=r):r<65536?(ue[fe++]=217,ue[fe++]=r>>8,ue[fe++]=255&r):r>-1&&(ue[fe++]=218,de.setUint32(fe,r),fe+=4),void t.encode.call(this,n,v,w)}if(n[Symbol.iterator]){if(le){let e=new Error("Iterable should be serialized as iterator");throw e.iteratorNotHandled=!0,e}ue[fe++]=159;for(let e of n)v(e);return void(ue[fe++]=255)}if(n[Symbol.asyncIterator]||Ie(n)){let e=new Error("Iterable/blob should be serialized as iterator");throw e.iteratorNotHandled=!0,e}if(this.useToJSON&&n.toJSON){const e=n.toJSON();if(e!==n)return v(e)}E(n)}}else ue[fe++]=246;else if("boolean"===i)ue[fe++]=n?245:244;else if("bigint"===i){if(n<BigInt(1)<<BigInt(64)&&n>=0)ue[fe++]=27,de.setBigUint64(fe,n);else if(n>-(BigInt(1)<<BigInt(64))&&n<0)ue[fe++]=59,de.setBigUint64(fe,-n-BigInt(1));else{if(!this.largeBigIntToFloat){n>=BigInt(0)?ue[fe++]=194:(ue[fe++]=195,n=BigInt(-1)-n);let e=[];for(;n;)e.push(Number(n&BigInt(255))),n>>=BigInt(8);return void Se(new Uint8Array(e.reverse()),w)}ue[fe++]=251,de.setFloat64(fe,Number(n))}fe+=8}else{if("undefined"!==i)throw new Error("Unknown type: "+i);ue[fe++]=247}},E=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),n=Object.values(e),r=t.length;if(r<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,de.setUint32(fe,r),fe+=4),a.keyMap)for(let e=0;e<r;e++)v(a.encodeKey(t[e])),v(n[e]);else for(let e=0;e<r;e++)v(t[e]),v(n[e])}:e=>{ue[fe++]=185;let n=fe-t;fe+=2;let r=0;if(a.keyMap)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(v(a.encodeKey(t)),v(e[t]),r++);else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(v(t),v(e[t]),r++);ue[n+++t]=r>>8,ue[n+t]=255&r}:(e,t)=>{let n,o,s,a=i.transitions||(i.transitions=Object.create(null)),c=0,u=0;if(this.keyMap){s=Object.keys(e).map(e=>this.encodeKey(e)),u=s.length;for(let e=0;e<u;e++){let t=s[e];n=a[t],n||(n=a[t]=Object.create(null),c++),a=n}}else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(n=a[t],n||(1048576&a[me]&&(o=65535&a[me]),n=a[t]=Object.create(null),c++),a=n,u++);let d=a[me];if(void 0!==d)d&=65535,ue[fe++]=217,ue[fe++]=d>>8|224,ue[fe++]=255&d;else{if(s||(s=a.__keys__||(a.__keys__=Object.keys(e))),void 0===o?(d=i.nextId++,d||(d=0,i.nextId=1),d>=256&&(i.nextId=(d=l)+1)):d=o,i[d]=s,!(d<l)){if(a[me]=d,de.setUint32(fe,3655335680),fe+=3,c&&(m+=_*c),g.length>=256-l&&(g.shift()[me]=void 0),g.push(a),we(u+2),v(57344+d),v(s),t)return;for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&v(e[t]);return}ue[fe++]=217,ue[fe++]=d>>8|224,ue[fe++]=255&d,a=i.transitions;for(let e=0;e<u;e++)(void 0===a[me]||1048576&a[me])&&(a[me]=d),a=a[s[e]];a[me]=1048576|d,r=!0}if(u<24?ue[fe++]=128|u:we(u),!t)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&v(e[t])},w=e=>{let n;if(e>16777216){if(e-t>ce)throw new Error("Encoded buffer would be larger than maximum buffer size");n=Math.min(ce,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else n=1+(Math.max(e-t<<2,ue.length-1)>>12)<<12;let r=new se(n);return de=new DataView(r.buffer,0,n),ue.copy?ue.copy(r,0,t,e):r.set(ue.slice(t,e)),fe-=t,t=0,he=r.length-10,ue=r};let y=100,I=1e3;function*L(e,n,r){let i=e.constructor;if(i===Object){let t=!1!==a.useRecords;t?E(e,!0):ve(Object.keys(e).length,160);for(let r in e){let i=e[r];t||v(r),i&&"object"==typeof i?n[r]?yield*L(i,n[r]):yield*C(i,n,r):v(i)}}else if(i===Array){let r=e.length;we(r);for(let i=0;i<r;i++){let r=e[i];r&&("object"==typeof r||fe-t>y)?n.element?yield*L(r,n.element):yield*C(r,n,"element"):v(r)}}else if(e[Symbol.iterator]&&!e.buffer){ue[fe++]=159;for(let r of e)r&&("object"==typeof r||fe-t>y)?n.element?yield*L(r,n.element):yield*C(r,n,"element"):v(r);ue[fe++]=255}else Ie(e)?(ve(e.size,64),yield ue.subarray(t,fe),yield e,A()):e[Symbol.asyncIterator]?(ue[fe++]=159,yield ue.subarray(t,fe),yield e,A(),ue[fe++]=255):v(e);r&&fe>t?yield ue.subarray(t,fe):fe-t>y&&(yield ue.subarray(t,fe),A())}function*C(e,n,r){let i=fe-t;try{v(e),fe-t>y&&(yield ue.subarray(t,fe),A())}catch(o){if(!o.iteratorNotHandled)throw o;n[r]={},fe=t+i,yield*L.call(this,e,n[r])}}function A(){y=I,a.encode(null,Ue)}function S(e,t,n){return y=t&&t.chunkThreshold?I=t.chunkThreshold:100,e&&"object"==typeof e?(a.encode(null,Ue),n(e,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(e)]}function b(e,t){return N.apply(this,arguments)}function N(){return N=Zo(function*(e,t){for(let c of L(e,t,!0)){let e=c.constructor;if(e===ae||e===Uint8Array)yield c;else if(Ie(c)){let e,t=c.stream().getReader();for(;!(e=yield Wo(t.read())).done;)yield e.value}else if(c[Symbol.asyncIterator]){var n,r=!1,i=!1;try{for(var o,s=Uo(c);r=!(o=yield Wo(s.next())).done;r=!1){let e=o.value;A(),e?yield*Go(Uo(b(e,t.async||(t.async={})))):yield a.encode(e)}}catch(e){i=!0,n=e}finally{try{r&&null!=s.return&&(yield Wo(s.return()))}finally{if(i)throw n}}}else yield c}}),N.apply(this,arguments)}this.encodeAsIterable=function(e,t){return S(e,t,L)},this.encodeAsAsyncIterable=function(e,t){return S(e,t,b)}}useBuffer(e){ue=e,de=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),fe=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),n=new Ee(t,this.sharedValues,this.sharedVersion),r=this.saveShared(n,t=>(t&&t.version||0)==e);return!1===r?(n=this.getShared()||{},this.structures=n.structures||[],this.sharedValues=n.packedValues,this.sharedVersion=n.version,this.structures.nextId=this.structures.length):t.forEach((e,t)=>this.structures[t]=e),r}}function ve(e,t){e<24?ue[fe++]=t|e:e<256?(ue[fe++]=24|t,ue[fe++]=e):e<65536?(ue[fe++]=25|t,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=26|t,de.setUint32(fe,e),fe+=4)}class Ee{constructor(e,t,n){this.structures=e,this.packedValues=t,this.version=n}}function we(e){e<24?ue[fe++]=128|e:e<256?(ue[fe++]=152,ue[fe++]=e):e<65536?(ue[fe++]=153,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=154,de.setUint32(fe,e),fe+=4)}const ye="undefined"==typeof Blob?function(){}:Blob;function Ie(e){if(e instanceof ye)return!0;let t=e[Symbol.toStringTag];return"Blob"===t||"File"===t}function Le(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let n=t.get(e);if(n)2==++n.count&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let n=t.samplingPackedValues.get(e);n?n.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let n=0,r=e.length;n<r;n++)Le(e[n],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&&(r&&Le(n,t),Le(e[n],t))}break;case"function":console.log(e)}}const Ce=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Ae(e,t){return!Ce&&t>1&&(e-=4),{tag:e,encode:function(e,t){let n=e.byteLength,r=e.byteOffset||0,i=e.buffer||e;t(oe?ie.from(i,r,n):new Uint8Array(i,r,n))}}}function Se(e,t){let n=e.byteLength;n<24?ue[fe++]=64+n:n<256?(ue[fe++]=88,ue[fe++]=n):n<65536?(ue[fe++]=89,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=90,de.setUint32(fe,n),fe+=4),fe+n>=ue.length&&t(fe+n),ue.set(e.buffer?e:new Uint8Array(e),fe),fe+=n}function be(e,t){de.setUint32(pe.position+e,fe-pe.position-e+1);let n=pe;pe=null,t(n[0]),t(n[1])}re=[Date,Set,Error,RegExp,x,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,Ee],ne=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&n>=0&&n<4294967296?(ue[fe++]=26,de.setUint32(fe,n),fe+=4):(ue[fe++]=251,de.setFloat64(fe,n),fe+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,n){Se(e,n)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||oe&&!1!==this.tagUint8Array))return 64},encode(e,t,n){Se(e,n)}},Ae(68,1),Ae(69,2),Ae(70,4),Ae(71,8),Ae(72,1),Ae(77,2),Ae(78,4),Ae(79,8),Ae(85,4),Ae(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length>0){ue[fe++]=216,ue[fe++]=51,we(4);let e=n.values;t(e),we(0),we(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,n=e.length;t<n;t++)packedObjectMap[e[t]]=t}if(r){de.setUint32(fe,3655335424),fe+=3;let n=r.slice(0);n.unshift(57344),n.push(new x(e.version,1399353956)),t(n)}else t(new x(e.version,1399353956))}}];let Ne=new _e({useRecords:!1});const Te=Ne.encode,ke=Ne.encodeAsIterable,Oe=Ne.encodeAsAsyncIterable,{NEVER:Re,ALWAYS:Pe,DECIMAL_ROUND:De,DECIMAL_FIT:Me}=ee,xe=512,Ge=1024,Ue=2048;function Ve(){return(Ve=Zo(function*(e,t){const n=new _e(t);var r,i=!1,o=!1;try{for(var s,a=Uo(e);i=!(s=yield Wo(a.next())).done;i=!1){const e=s.value;yield n.encode(e)}}catch(e){o=!0,r=e}finally{try{i&&null!=a.return&&(yield Wo(a.return()))}finally{if(o)throw r}}})).apply(this,arguments)}e.ALWAYS=Pe,e.DECIMAL_FIT=Me,e.DECIMAL_ROUND=De,e.Decoder=C,e.Encoder=_e,e.FLOAT32_OPTIONS=ee,e.NEVER=Re,e.REUSE_BUFFER_MODE=xe,e.Tag=x,e.addExtension=function(e){if(e.Class){if(!e.encode)throw new Error("Extension has no encode function");re.unshift(e.Class),ne.unshift(e)}!function(e){v[e.tag]=e.decode}(e)},e.clearSource=Y,e.decode=X,e.decodeIter=function(e,t={}){if(!e||"object"!=typeof e)throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a promise");const n=new C(t);let r;const i=e=>{let t;r&&(e=Buffer.concat([r,e]),r=void 0);try{t=n.decodeMultiple(e)}catch(n){if(!n.incomplete)throw n;r=e.slice(n.lastPosition),t=n.values}return t};return"function"==typeof e[Symbol.iterator]?function*(){for(const t of e)yield*i(t)}():"function"==typeof e[Symbol.asyncIterator]?(o=Zo(function*(){var t,n=!1,r=!1;try{for(var o,s=Uo(e);n=!(o=yield Wo(s.next())).done;n=!1){const e=o.value;yield*Go(Uo(i(e)))}}catch(e){r=!0,t=e}finally{try{n&&null!=s.return&&(yield Wo(s.return()))}finally{if(r)throw t}}}),function(){return o.apply(this,arguments)})():void 0;var o},e.decodeMultiple=Z,e.encode=Te,e.encodeAsAsyncIterable=Oe,e.encodeAsIterable=ke,e.encodeIter=function(e,t={}){if(e&&"object"==typeof e){if("function"==typeof e[Symbol.iterator])return function*(e,t){const n=new _e(t);for(const t of e)yield n.encode(t)}(e,t);if("function"==typeof e.then||"function"==typeof e[Symbol.asyncIterator])return function(e,t){return Ve.apply(this,arguments)}(e,t);throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a Promise")}throw new Error("first argument must be an Iterable, Async Iterable, or a Promise for an Async Iterable")},e.isNativeAccelerationEnabled=!1,e.roundFloat32=function(e){D[0]=e;let t=J[(127&M[3])<<1|M[2]>>7];return(t*e+(e>0?.5:-.5)|0)/t},e.setSizeLimits=function(e){e.maxMapSize&&(p=e.maxMapSize),e.maxArraySize&&(f=e.maxArraySize),e.maxObjectSize&&e.maxObjectSize}}(bC.exports)),bC.exports);const TC=(e,t)=>t?.125*e+.875*t:e;var kC=new WeakMap,OC=new WeakMap,RC=new WeakMap,PC=new WeakMap,DC=new WeakMap;class MC{constructor(){Bo(this,kC,void 0),Bo(this,OC,void 0),Bo(this,RC,void 0),Bo(this,PC,void 0),Bo(this,DC,void 0),Qo(this,"reset",()=>{zo(kC,this,0),zo(OC,this,0),zo(RC,this,0),zo(PC,this,0),zo(DC,this,0)}),Qo(this,"latency",()=>{if(0===jo(kC,this))return 0;if(jo(DC,this)>0&&jo(kC,this)===jo(RC,this))return jo(DC,this);const e=Date.now()-jo(OC,this);return e>jo(DC,this)?TC(e,jo(DC,this)):jo(DC,this)}),Qo(this,"onSent",e=>{jo(RC,this)<jo(kC,this)||(zo(kC,this,e),zo(OC,this,Date.now()))}),Qo(this,"onReceived",e=>{let t;if(zo(RC,this,e),zo(PC,this,Date.now()),0===jo(kC,this)||0===jo(RC,this))t=0;else{if(jo(kC,this)!==jo(RC,this))return;t=jo(PC,this)-jo(OC,this)}zo(DC,this,TC(t,jo(DC,this)))}),this.reset()}}const xC=jl("cbio.CBORSocket");var GC=new WeakMap,UC=new WeakMap,VC=new WeakMap,WC=new WeakMap,FC=new WeakMap,jC=new WeakMap,BC=new WeakMap,zC=new WeakMap,HC=new WeakMap,qC=new WeakMap,QC=new WeakMap,$C=new WeakMap,YC=new WeakMap,JC=new WeakMap,KC=new WeakMap,XC=new WeakMap,ZC=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap,rA=new WeakMap,iA=new WeakMap,oA=new WeakMap;class sA extends wv.EventEmitter{constructor(e){super(),Bo(this,GC,void 0),Bo(this,UC,!1),Bo(this,VC,void 0),Bo(this,WC,0),Bo(this,FC,6e4),Bo(this,jC,1e3+Math.floor(1e3*Math.random())),Bo(this,BC,void 0),Bo(this,zC,void 0),Bo(this,HC,void 0),Bo(this,qC,0),Bo(this,QC,0),Bo(this,$C,new MC),Bo(this,YC,async()=>{var e,t;if(jo(VC,this))return void console.error("Socket already exists");xC("creating ws");const n=await jo(GC,this).getUrl(),r=["cbor",...await(null===(e=(t=jo(GC,this)).getProtocols)||void 0===e?void 0:e.call(t))||[]].filter(Boolean);if(!n)return;if(jo(UC,this))return;if(jo(VC,this))return;const i=jo(GC,this).createWebSocket?jo(GC,this).createWebSocket(n,r):new WebSocket(n,r);i.binaryType="arraybuffer",i.addEventListener("open",jo(XC,this)),i.addEventListener("message",jo(eA,this)),i.addEventListener("close",jo(rA,this)),i.addEventListener("error",jo(iA,this)),zo(VC,this,i),jo($C,this).reset()}),Bo(this,JC,(...e)=>{if(jo(VC,this))try{jo(VC,this).close(...e)}catch(e){xC("error closing socket",e)}zo(VC,this,null)}),Bo(this,KC,()=>{xC("navigator went offline"),jo(JC,this).call(this),jo(nA,this).call(this)}),Bo(this,XC,()=>{xC("ws opened"),this.emit("open"),clearTimeout(jo(zC,this)),zo(zC,this,setTimeout(()=>{xC("counting open as success"),zo(WC,this,0)},5e3))}),Bo(this,ZC,e=>{zo(QC,this,e),jo($C,this).onReceived(e)}),Bo(this,eA,e=>{try{const{event:t,data:n,ack:r}=NC.decode(new Uint8Array(e.data));return r?jo(ZC,this).call(this,r):t?this.emit("event",t,n):console.error("Socket received message without event",e)}catch(t){return console.error("Error processing message",e.data,t.stack)}}),Bo(this,tA,e=>{if(0===e)return 0;const t=1+.5*Math.random(),n=Math.floor((300*e)**1.2*t);return Math.min(Math.max(jo(jC,this),n),jo(FC,this))}),Bo(this,nA,()=>{if(jo(UC,this))return void xC("reconnect skipped as socket was closed");if(jo(HC,this))return void xC("reconnect skipped as reconnect already scheduled");if("undefined"!=typeof navigator&&!1===navigator.onLine)return xC("navigator offline"),void zo(HC,this,setTimeout(()=>{zo(HC,this,null),jo(nA,this).call(this)},1e3));const e=jo(tA,this).call(this,jo(WC,this));xC("reconnecting in",e,"attempts",jo(WC,this)),zo(HC,this,setTimeout(async()=>{zo(HC,this,null),jo(UC,this)?console.warn("tried to reconnect after close"):(zo(VC,this,null),await jo(YC,this).call(this).catch(jo(iA,this)),jo(VC,this)||jo(UC,this)||jo(nA,this).call(this))},e)),zo(WC,this,jo(WC,this)+1)}),Bo(this,rA,()=>{xC("ws closed"),this.emit("close"),xC("resetting message acks"),zo(qC,this,0),zo(QC,this,0),jo($C,this).onReceived(0),jo(UC,this)||jo(nA,this).call(this),clearTimeout(jo(zC,this))}),Bo(this,iA,e=>{jo(UC,this)?console.info("CobrowseIO: Called error after close.",e):0!==this.listenerCount("error")?this.emit("error",e):console.warn("CobrowseIO: Called handleError without listeners. Please report this.",e)}),Bo(this,oA,()=>{this.send("ping")}),Qo(this,"messageLag",()=>jo(QC,this)?jo(qC,this)-jo(QC,this):0),Qo(this,"setMaxReconnectDelay",e=>{xC("set max delay",e),zo(FC,this,e)}),Qo(this,"setMinReconnectDelay",e=>{xC("set min delay",e),zo(jC,this,e)}),Qo(this,"send",(e,t)=>{if(!this.connected)return!1;zo(qC,this,jo(qC,this)+1),jo($C,this).onSent(jo(qC,this));const n=Date.now(),r=NC.encode(t?{event:e,id:jo(qC,this),data:t}:{event:e});return xC("encoded",e,`${r.byteLength} bytes`,"in",Date.now()-n+"ms"),jo(VC,this).send(r),!0}),Qo(this,"close",(...e)=>{xC("close"),zo(UC,this,!0),jo(JC,this).call(this,...e),clearTimeout(jo(HC,this)),clearInterval(jo(BC,this)),this.removeAllListeners(),"undefined"!=typeof window&&(window.removeEventListener("unload",this.close),window.addEventListener("offline",jo(KC,this)))}),xC("created cbor socket"),zo(GC,this,e),zo(BC,this,setInterval(jo(oA,this),6e4)),"undefined"!=typeof window&&(window.addEventListener("unload",this.close),window.addEventListener("offline",jo(KC,this))),this.on("error",e=>xC("ws errored",e)),jo(nA,this).call(this)}get bufferedAmount(){return jo(VC,this)?jo(VC,this).bufferedAmount:1/0}get connected(){return!!jo(VC,this)&&jo(VC,this).readyState===jo(VC,this).OPEN}get metrics(){return jo($C,this)}}const aA=e=>e instanceof RegExp?e:e&&"string"==typeof e?hC(e,{flags:"i"}):null,cA=(e=[])=>{const t=[];return Array.isArray(e)?(e.forEach(e=>{const n=aA(e);n&&t.push(n)}),e=>t.some(t=>t.test(e))):()=>!1},lA=jl("cbio.IFrameBridge");var uA=new WeakMap,dA=new WeakMap,hA=new WeakMap,fA=new WeakMap,pA=new WeakMap,gA=new WeakMap,mA=new WeakMap,_A=new WeakMap,vA=new WeakMap,EA=new WeakMap;class wA extends wv.EventEmitter{get trustedOrigins(){return jo(uA,this)}set trustedOrigins(e){zo(uA,this,e),zo(dA,this,cA(e))}get trustedIframes(){return[...jo(pA,this)].filter(e=>e.contentWindow&&this.isTrusted(e.contentWindow))}constructor(e){super(),Bo(this,uA,[]),Bo(this,dA,()=>!1),Qo(this,"automaticTrustedOrigins",[]),Bo(this,hA,null),Bo(this,fA,new WeakMap),Bo(this,pA,new Set),Qo(this,"start",()=>{window.removeEventListener("message",jo(gA,this)),window.addEventListener("message",jo(gA,this)),jo(hA,this)&&this.send(jo(hA,this),"init",null,{trustedOnly:!1})}),Qo(this,"stop",()=>{window.removeEventListener("message",jo(gA,this))}),Bo(this,gA,e=>{if(!jo(_A,this).call(this,e))return lA("ignoring message, not a cobrowse message",e.data);this.establishTrust(e.source,e.origin);const{trustedOnly:t,event:n,data:r}=e.data;this.emit(n,r,{source:e.source,origin:e.origin,trusted:this.isTrusted(e.source),iframe:jo(EA,this).call(this,e.source),fromParent:jo(mA,this).call(this,e.source),trustedOnly:t})}),Bo(this,mA,(e,t=window.parent)=>e===t||t.parent!==t&&jo(mA,this).call(this,e,t.parent)),Bo(this,_A,e=>{if(!e.data)return!1;const{cobrowseio:t,event:n}=e.data;return!!t&&!!n}),Bo(this,vA,e=>this.automaticTrustedOrigins.includes(e)||jo(dA,this).call(this,e)),Qo(this,"isTrusted",e=>{const t=jo(fA,this).get(e);return!!t&&jo(vA,this).call(this,t)}),Bo(this,EA,e=>Array.from(jo(pA,this)).find(t=>t.contentWindow===e)),Qo(this,"send",(e,t,n,{trustedOnly:r=!0,targetOrigin:i}={})=>{let o=i||jo(fA,this).get(e);if(r&&!jo(vA,this).call(this,o))return lA(`not sending ${t} as target source is not trusted: ${o}`);r||o||(o="*"),e.postMessage({trustedOnly:r,cobrowseio:!0,event:t,data:n},o)}),Qo(this,"sendToParent",(e,t,{trustedOnly:n=!0}={})=>{jo(hA,this)&&this.send(jo(hA,this),e,t,{trustedOnly:n})}),Qo(this,"broadcastToChildren",(e,t,{trustedOnly:n=!0}={})=>{jo(pA,this).forEach(r=>{r.contentWindow&&this.send(r.contentWindow,e,t,{trustedOnly:n})})}),Qo(this,"track",e=>{jo(pA,this).has(e)||(jo(pA,this).add(e),this.emit("iframe_discovered",e))}),Qo(this,"remove",e=>{jo(pA,this).delete(e)}),Qo(this,"establishTrust",(e,t)=>{e&&jo(fA,this).set(e,t)}),Qo(this,"breakTrust",e=>{jo(fA,this).has(e)&&jo(fA,this).set(e,null)}),zo(hA,this,e),lA("iframe bridge constructed in",document,"with parent",jo(hA,this))}}var yA=new WeakMap,IA=new WeakMap,LA=new WeakMap,CA=new WeakMap,AA=new WeakMap;class SA extends wv.EventEmitter{constructor(e,t){super(),Bo(this,yA,void 0),Bo(this,IA,void 0),Bo(this,LA,new Map),Qo(this,"send",(e,t,{timeout:n=0,trustedOnly:r=!0}={})=>new Promise((i,o)=>{const s=mC.randomUUID?mC.randomUUID():function(e){var t,n,r,i;const o=null!==(t=null!==(n=(e=e||{}).random)&&void 0!==n?n:null===(r=(i=e).rng)||void 0===r?void 0:r.call(i))&&void 0!==t?t:function(){if(!pC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");pC=crypto.getRandomValues.bind(crypto)}return pC(gC)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(e,t=0){return(fC[e[t+0]]+fC[e[t+1]]+fC[e[t+2]]+fC[e[t+3]]+"-"+fC[e[t+4]]+fC[e[t+5]]+"-"+fC[e[t+6]]+fC[e[t+7]]+"-"+fC[e[t+8]]+fC[e[t+9]]+"-"+fC[e[t+10]]+fC[e[t+11]]+fC[e[t+12]]+fC[e[t+13]]+fC[e[t+14]]+fC[e[t+15]]).toLowerCase()}(o)}(a);var a;jo(LA,this).set(s,{resolve:i,reject:o});const c={id:s,method:e,data:t};jo(yA,this).send(jo(IA,this),"rpc:request",c,{trustedOnly:r}),n&&setTimeout(()=>{const e=jo(LA,this).get(s);e&&(e.reject(new Error("Request timed out")),jo(LA,this).delete(s))},n)})),Bo(this,CA,async(e,{source:t,trusted:n,trustedOnly:r})=>{const{id:i,method:o,data:s}=e,a=this.listeners(o);if(a.length>1)throw new Error("only a single RPC listener is allowed per event");if(0===a.length)return;const[c]=a;try{const e=await c(s,{trusted:n});jo(yA,this).send(t,"rpc:response",{id:i,data:e},{trustedOnly:r})}catch(e){jo(yA,this).send(t,"rpc:response",{id:i,error:e},{trustedOnly:r})}}),Bo(this,AA,(e,{trusted:t,trustedOnly:n})=>{if(n&&!t)return;const{error:r,id:i,data:o}=e,s=jo(LA,this).get(i);s&&(r?s.reject(r):s.resolve(o),jo(LA,this).delete(i))}),zo(yA,this,e),zo(IA,this,t),jo(yA,this).on("rpc:request",jo(CA,this)),jo(yA,this).on("rpc:response",jo(AA,this))}destroy(){jo(yA,this).off("rpc:request",jo(CA,this)),jo(yA,this).off("rpc:response",jo(AA,this)),zo(yA,this,null),zo(IA,this,null),jo(LA,this).clear(),zo(LA,this,null)}}function bA(e){try{return!e.document&&!1}catch(e){return!0}}function NA(e){return!!bA(e)||!("IFRAME"!==e.tagName||!bA(e.contentWindow))}const TA=["_blank","_self","_parent","_top","_unfencedTop"],kA=(e,t)=>e?TA.includes(e)?{name:"",target:e}:{name:e,target:t}:{name:"",target:t},OA=(e,t)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).get.call(e),RA=(e,t,n)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).set.call(e,n);class PA extends Event{constructor(e,t){super(e,t),this._view=t.view}get view(){return this._view}}var DA=new WeakMap,MA=new WeakMap,xA=new WeakMap,GA=new WeakMap,UA=new WeakMap,VA=new WeakMap,WA=new WeakMap;const FA=new class{constructor(){Qo(this,"beforeNavigate",void 0),Bo(this,DA,!1),Bo(this,MA,new Set),Qo(this,"track",e=>{e.addEventListener("click",jo(xA,this),{capture:!0}),e.addEventListener("click",jo(xA,this)),e.addEventListener("submit",jo(GA,this))}),Qo(this,"untrack",e=>{e.removeEventListener("click",jo(xA,this),{capture:!0}),e.removeEventListener("click",jo(xA,this)),e.removeEventListener("submit",jo(GA,this))}),Qo(this,"tap",e=>{if(jo(MA,this).has(e))return;const t=this,{open:n}=e;e.open=function(...e){return jo(UA,t).call(t,this,n,...e)};const{submit:r}=e.HTMLFormElement.prototype;e.HTMLFormElement.prototype.submit=function(...e){return jo(VA,t).call(t,this,r,...e)},jo(MA,this).add(e)}),Qo(this,"untap",e=>{}),Bo(this,xA,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("a");if(!n)return;if(!n.href)return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=kA(n.target,"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(n.href,r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.click(),delete n.__cbio_forceDefaultNavigation},e:e});o&&o!==n.href&&(n.href=o),s&&e.preventDefault()}),Bo(this,GA,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("form");if(!n)return;if(!OA(n,"action"))return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=kA(OA(n,"target"),"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(OA(n,"action"),r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.submit(),delete n.__cbio_forceDefaultNavigation},e:e});o&&RA(n,"action",o),s&&e.preventDefault()}),Bo(this,UA,(e,t,n,r,i)=>{if(!this.beforeNavigate)return t.call(e,n,r,i);const o=new PA("WindowOpen",{view:e}),{target:s,name:a}=kA(r,"_blank"),{rewrittenUrl:c,windowProxy:l}=this.beforeNavigate(n,s,i,{name:a,go:()=>t.call(e,n,r,i),e:o});return c?t.call(e,c,r,i):l||void 0}),Bo(this,VA,(e,t,...n)=>{if(!this.beforeNavigate)return t.call(e,...n);const r=e.parentElement,i=new PA("FormSubmit",{view:e.ownerDocument.defaultView}),{target:o,name:s}=kA(OA(e,"target"),"_self"),{rewrittenUrl:a,windowProxy:c}=this.beforeNavigate(OA(e,"action"),o,"",{name:s,go:()=>{const i=document.contains(r)&&!document.contains(e);i&&r.appendChild(e);const o=t.call(e,...n);return i&&e.remove(),o},e:i});return a&&RA(e,"action",a),c?null:t.call(e,...n)}),Bo(this,WA,()=>{zo(DA,this,!0)}),window.addEventListener("pagehide",jo(WA,this),{capture:!0,once:!0,passive:!0})}ensureNoNavigation(e=200){return new Promise(t=>{setTimeout(()=>{jo(DA,this)||t()},e)})}};var jA,BA,zA,HA,qA={};function QA(){if(BA)return jA;BA=1;var e=o();return jA=e.Promise}function $A(){if(HA)return zA;HA=1;var e=yt(),t=Kh(),n=he(),r=st()("species");return zA=function(i,o){var s,a=e(i).constructor;return void 0===a||n(s=e(a)[r])?o:t(s)},zA}var YA,JA,KA,XA,ZA={};function eS(){if(YA)return ZA;YA=1;var e=Ae(),t=TypeError,n=function(n){var r,i;this.promise=new n(function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n}),this.resolve=e(r),this.reject=e(i)};return ZA.f=function(e){return new n(e)},ZA}function tS(){if(KA)return JA;KA=1;var e=yt(),t=me(),n=eS();return JA=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise},JA}!function(){if(XA)return qA;XA=1;var e=jn(),t=Ze(),n=QA(),r=g(),i=_e(),o=ge(),s=$A(),a=tS(),c=qt(),l=n&&n.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=s(this,i("Promise")),n=o(e);return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}}),!t&&o(n)){var u=i("Promise").prototype.finally;l.finally!==u&&c(l,"finally",u,{unsafe:!0})}}();const nS=jl("cbio.RequestTracking");var rS=new WeakSet;class iS{constructor(){qo(this,rS),this.inFlightRequests=0,this.originalFetch=null,this.originalXHROpen=null,this.originalXHRSend=null}monitor(){this.originalFetch||(nS("monitoring network"),xo(rS,this,oS).call(this),xo(rS,this,sS).call(this))}destroy(){this.inFlightRequests=0}waitUntilStable(e={}){const{timeout:t=5e3,intervalMs:n=200}=e;nS("waitUntilStable");const r=Date.now();return new Promise(e=>{const i=setInterval(()=>Date.now()>r+t?(clearInterval(i),nS("network did not stabilise after %d millis",t),e(!1)):0===this.inFlightRequests?(clearInterval(i),nS("network stabilised"),e(!0)):void 0,n)})}}function oS(){if(this.originalFetch)return;this.originalFetch=window.fetch;const e=this;window.fetch=function(...t){return e.inFlightRequests++,e.originalFetch.apply(this,t).finally(()=>e.inFlightRequests--)}}function sS(){if(this.originalXHROpen)return;this.originalXHROpen=XMLHttpRequest.prototype.open,this.originalXHRSend=XMLHttpRequest.prototype.send;const e=this;XMLHttpRequest.prototype.open=function(...t){return this.__cbio_decrementCounter&&(this.removeEventListener("load",this.__cbio_decrementCounter),this.removeEventListener("error",this.__cbio_decrementCounter),this.removeEventListener("abort",this.__cbio_decrementCounter),this.removeEventListener("timeout",this.__cbio_decrementCounter)),this.__cbio_needsTracking=!0,e.originalXHROpen.apply(this,t)},XMLHttpRequest.prototype.send=function(...t){if(this.__cbio_needsTracking){this.__cbio_needsTracking=!1,e.inFlightRequests++;const t=()=>e.inFlightRequests--;this.__cbio_decrementCounter=t,this.addEventListener("load",t,{once:!0}),this.addEventListener("error",t,{once:!0}),this.addEventListener("abort",t,{once:!0}),this.addEventListener("timeout",t,{once:!0})}return e.originalXHRSend.apply(this,t)}}var aS,cS={};!function(){if(aS)return cS;aS=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("every",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{every:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var lS,uS,dS,hS,fS,pS,gS,mS,_S,vS,ES,wS,yS,IS,LS={},CS=[],AS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,SS=Array.isArray;function bS(e,t){for(var n in t)e[n]=t[n];return e}function NS(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function TS(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?lS.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return kS(e,s,r,i,null)}function kS(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++dS:i,__i:-1,__u:0};return null==i&&null!=uS.vnode&&uS.vnode(o),o}function OS(e){return e.children}function RS(e,t){this.props=e,this.context=t}function PS(e,t){if(null==t)return e.__?PS(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?PS(e):null}function DS(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],o=bS({},t);o.__v=t.__v+1,uS.vnode&&uS.vnode(o),HS(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?PS(t):n,!!(32&t.__u),i),o.__v=t.__v,o.__.__k[o.__i]=o,QS(r,o,i),t.__e=t.__=null,o.__e!=n&&MS(o)}}function MS(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),MS(e)}function xS(e){(!e.__d&&(e.__d=!0)&&hS.push(e)&&!GS.__r++||fS!=uS.debounceRendering)&&((fS=uS.debounceRendering)||pS)(GS)}function GS(){try{for(var e,t=1;hS.length;)hS.length>t&&hS.sort(gS),e=hS.shift(),t=hS.length,DS(e)}finally{hS.length=GS.__r=0}}function US(e,t,n,r,i,o,s,a,c,l,u){var d,h,f,p,g,m,_,v=r&&r.__k||CS,E=t.length;for(c=VS(n,t,v,c,E),d=0;d<E;d++)null!=(f=n.__k[d])&&(h=-1!=f.__i&&v[f.__i]||LS,f.__i=d,m=HS(e,f,h,i,o,s,a,c,l,u),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&JS(h.ref,null,f),u.push(f.ref,f.__c||p,f)),null==g&&null!=p&&(g=p),(_=!!(4&f.__u))||h.__k===f.__k?(c=WS(f,c,e,_),_&&h.__e&&(h.__e=null)):"function"==typeof f.type&&void 0!==m?c=m:p&&(c=p.nextSibling),f.__u&=-7);return n.__e=g,c}function VS(e,t,n,r,i){var o,s,a,c,l,u=n.length,d=u,h=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(s=t[o])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[o]=kS(null,s,null,null,null):SS(s)?s=e.__k[o]=kS(OS,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[o]=kS(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[o]=s,c=o+h,s.__=e,s.__b=e.__b+1,a=null,-1!=(l=s.__i=FS(s,n,c,d))&&(d--,(a=n[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>u?h--:i<u&&h++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,s.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(a=n[o])&&!(2&a.__u)&&(a.__e==r&&(r=PS(a)),KS(a,a));return r}function WS(e,t,n,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=WS(i[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=PS(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function FS(e,t,n,r){var i,o,s,a=e.key,c=e.type,l=t[n],u=null!=l&&!(2&l.__u);if(null===l&&null==a||u&&a==l.key&&c==l.type)return n;if(r>(u?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;)if(null!=(l=t[s=i>=0?i--:o++])&&!(2&l.__u)&&a==l.key&&c==l.type)return s;return-1}function jS(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||AS.test(t)?n:n+"px"}function BS(e,t,n,r,i){var o,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||jS(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||jS(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(ES,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n[vS]=r[vS]:(n[vS]=wS,e.addEventListener(t,o?IS:yS,o)):e.removeEventListener(t,o?IS:yS,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function zS(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[_S])t[_S]=wS++;else if(t[_S]<n[vS])return;return n(uS.event?uS.event(t):t)}}}function HS(e,t,n,r,i,o,s,a,c,l){var u,d,h,f,p,g,m,_,v,E,w,y,I,L,C,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(u=uS.__b)&&u(t);e:if("function"==typeof A)try{if(_=t.props,v=A.prototype&&A.prototype.render,E=(u=A.contextType)&&r[u.__c],w=u?E?E.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new A(_,w):(t.__c=d=new RS(_,w),d.constructor=A,d.render=XS),E&&E.sub(d),d.state||(d.state={}),d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),v&&null==d.__s&&(d.__s=d.state),v&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=bS({},d.__s)),bS(d.__s,A.getDerivedStateFromProps(_,d.__s))),f=d.props,p=d.state,d.__v=t,h)v&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),v&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(v&&null==A.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,w),t.__v==n.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,w)){t.__v!=n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),CS.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,w),v&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,p,g)})}if(d.context=w,d.props=_,d.__P=e,d.__e=!1,y=uS.__r,I=0,v)d.state=d.__s,d.__d=!1,y&&y(t),u=d.render(d.props,d.state,d.context),CS.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,y&&y(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++I<25);d.state=d.__s,null!=d.getChildContext&&(r=bS(bS({},r),d.getChildContext())),v&&!h&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(f,p)),L=null!=u&&u.type===OS&&null==u.key?$S(u.props.children):u,a=US(e,SS(L)?L:[L],t,n,r,i,o,s,a,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=o)if(e.then){for(t.__u|=c?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(C=o.length;C--;)NS(o[C]);qS(t)}else t.__e=n.__e,t.__k=n.__k,e.then||qS(t);uS.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=YS(n.__e,t,n,r,i,o,s,c,l);return(u=uS.diffed)&&u(t),128&t.__u?void 0:a}function qS(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(qS))}function QS(e,t,n){for(var r=0;r<n.length;r++)JS(n[r],n[++r],n[++r]);uS.__c&&uS.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){uS.__e(e,t.__v)}})}function $S(e){return"object"!=typeof e||null==e||e.__b>0?e:SS(e)?e.map($S):bS({},e)}function YS(e,t,n,r,i,o,s,a,c){var l,u,d,h,f,p,g,m=n.props||LS,_=t.props,v=t.type;if("svg"==v?i="http://www.w3.org/2000/svg":"math"==v?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!v&&(v?f.localName==v:3==f.nodeType)){e=f,o[l]=null;break}if(null==e){if(null==v)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),a&&(uS.__m&&uS.__m(t,o),a=!1),o=null}if(null==v)m===_||a&&e.data==_||(e.data=_);else{if(o=o&&lS.call(e.childNodes),!a&&null!=o)for(m={},l=0;l<e.attributes.length;l++)m[(f=e.attributes[l]).name]=f.value;for(l in m)f=m[l],"dangerouslySetInnerHTML"==l?d=f:"children"==l||l in _||"value"==l&&"defaultValue"in _||"checked"==l&&"defaultChecked"in _||BS(e,l,null,f,i);for(l in _)f=_[l],"children"==l?h=f:"dangerouslySetInnerHTML"==l?u=f:"value"==l?p=f:"checked"==l?g=f:a&&"function"!=typeof f||m[l]===f||BS(e,l,f,m[l],i);if(u)a||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),US("template"==t.type?e.content:e,SS(h)?h:[h],t,n,r,"foreignObject"==v?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&PS(n,0),a,c),null!=o)for(l=o.length;l--;)NS(o[l]);a||(l="value","progress"==v&&null==p?e.removeAttribute("value"):null!=p&&(p!==e[l]||"progress"==v&&!p||"option"==v&&p!=m[l])&&BS(e,l,p,m[l],i),l="checked",null!=g&&g!=e[l]&&BS(e,l,g,m[l],i))}return e}function JS(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){uS.__e(e,n)}}function KS(e,t,n){var r,i;if(uS.unmount&&uS.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||JS(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){uS.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&KS(r[i],t,n||"function"!=typeof e.type);n||NS(e.__e),e.__c=e.__=e.__e=void 0}function XS(e,t,n){return this.constructor(e,n)}function ZS(e,t,n){var r,i,o;t==document&&(t=document.documentElement),uS.__&&uS.__(e,t),r=t.__k,i=[],o=[],HS(t,e=t.__k=TS(OS,null,[e]),r||LS,LS,t.namespaceURI,r?null:t.firstChild?lS.call(t.childNodes):null,i,r?r.__e:t.firstChild,!1,o),QS(i,e,o)}lS=CS.slice,uS={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},dS=0,RS.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=bS({},this.state),"function"==typeof e&&(e=e(bS({},n),this.props)),e&&bS(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),xS(this))},RS.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xS(this))},RS.prototype.render=OS,hS=[],pS="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,gS=function(e,t){return e.__v.__b-t.__v.__b},GS.__r=0,mS=Math.random().toString(8),_S="__d"+mS,vS="__a"+mS,ES=/(PointerCapture)$|Capture$/i,wS=0,yS=zS(!1),IS=zS(!0);var eb,tb,nb,rb,ib=0,ob=[],sb=uS,ab=sb.__b,cb=sb.__r,lb=sb.diffed,ub=sb.__c,db=sb.unmount,hb=sb.__;function fb(e,t){sb.__h&&sb.__h(tb,e,ib||t),ib=0;var n=tb.__H||(tb.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function pb(e){return ib=1,function(e,t){var n=fb(eb++,2);if(n.t=e,!n.__c&&(n.__=[Ab(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=tb,!tb.__f)){var r=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var s=n.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),i&&i.call(this,e,t,r)||s};tb.__f=!0;var i=tb.shouldComponentUpdate,o=tb.componentWillUpdate;tb.componentWillUpdate=function(e,t,n){if(this.__e){var s=i;i=void 0,r(e,t,n),i=s}o&&o.call(this,e,t,n)},tb.shouldComponentUpdate=r}return n.__N||n.__}(Ab,e)}function gb(e,t){var n=fb(eb++,3);!sb.__s&&Cb(n.__H,t)&&(n.__=e,n.u=t,tb.__H.__h.push(n))}function mb(e){return ib=5,_b(function(){return{current:e}},[])}function _b(e,t){var n=fb(eb++,7);return Cb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function vb(e,t){return ib=8,_b(function(){return e},t)}function Eb(){for(var e;e=ob.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ib),t.__h.some(Lb),t.__h=[]}catch(n){t.__h=[],sb.__e(n,e.__v)}}}sb.__b=function(e){tb=null,ab&&ab(e)},sb.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),hb&&hb(e,t)},sb.__r=function(e){cb&&cb(e),eb=0;var t=(tb=e.__c).__H;t&&(nb===tb?(t.__h=[],tb.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ib),t.__h.some(Lb),t.__h=[],eb=0)),nb=tb},sb.diffed=function(e){lb&&lb(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ob.push(t)&&rb===sb.requestAnimationFrame||((rb=sb.requestAnimationFrame)||yb)(Eb)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),nb=tb=null},sb.__c=function(e,t){t.some(function(e){try{e.__h.some(Ib),e.__h=e.__h.filter(function(e){return!e.__||Lb(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],sb.__e(n,e.__v)}}),ub&&ub(e,t)},sb.unmount=function(e){db&&db(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Ib(e)}catch(e){t=e}}),n.__H=void 0,t&&sb.__e(t,n.__v))};var wb="function"==typeof requestAnimationFrame;function yb(e){var t,n=function(){clearTimeout(r),wb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);wb&&(t=requestAnimationFrame(n))}function Ib(e){var t=tb,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),tb=t}function Lb(e){var t=tb;e.__c=e.__(),tb=t}function Cb(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Ab(e,t){return"function"==typeof t?t(e):t}const Sb=(e,t,{hideFromAgent:n=!1,hideFromVirtualAgent:r=!1,document:i=window.document}={})=>{const o=i.createElement("div");n&&o.classList.add("__cbio_ignored"),r&&o.classList.add("__cbio_virtual_agent_ignored");const s=o.attachShadow({mode:"open"}),a=()=>{ZS(null,s),i.body.contains(o)&&i.body.removeChild(o)},c=t=>{ZS(TS(e,Yo(Yo({},t),{},{unmount:a})),s)};c(t),i.body.appendChild(o);const l=i.createElement("style");return l.textContent=window.__cbio_sdk_styles,s.prepend(l),{container:o,unmount:a,rerender:c}},bb="HighlightOverlay-module__disableAnimations___EEhxH";var Nb=0;function Tb(e,t,n,r,i,o){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)"ref"==a?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Nb,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===c[a]&&(c[a]=s[a]);return uS.vnode&&uS.vnode(l),l}const kb=({targetElement:e})=>{const t=mb(),n=mb(!1),r=vb(()=>{if(!e)return;const n=(e=>{const t=e.getBoundingClientRect(),n=document.documentElement.scrollTop,r=document.documentElement.scrollLeft,i=t.top+n,o=t.left+r,s=t.width,a=t.height;if(!s||!a)return null;const c=window.getComputedStyle(e);let l=c.borderRadius||c.borderTopLeftRadius;return"0px"===l&&(l="4px"),{top:i,left:o,width:s,height:a,borderRadius:l,paddedX:(s+6)/s,paddedY:(a+6)/a}})(e);if(!n||!t.current)return;const{top:r,left:i,width:o,height:s,borderRadius:a,paddedX:c,paddedY:l}=n;requestAnimationFrame(()=>{t.current.style.width=`${o}px`,t.current.style.height=`${s}px`,t.current.style.top=`${r}px`,t.current.style.left=`${i}px`,t.current.style.borderRadius=a,t.current.style.setProperty("--cbio-padded-x",c),t.current.style.setProperty("--cbio-padded-y",l)})},[e]),i=vb(()=>{e&&(n.current=!0,e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout(()=>{n.current=!1,r()},100))},[e,r]);return gb(()=>{i()},[i]),gb(()=>{r()},[r]),gb(()=>{const e=()=>{n.current||t.current&&(requestAnimationFrame(()=>{t.current.classList.add(bb)}),r(),requestAnimationFrame(()=>{t.current.classList.remove(bb)}))};return window.addEventListener("resize",e),window.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,{passive:!0,capture:!0}),clearTimeout(void 0)}},[r,e]),gb(()=>{let n;return e&&(n=new MutationObserver(()=>{const n=e.isConnected,r=!e.checkVisibility||e.checkVisibility();t.current.style.display=n&&r?"block":"none"}),n.observe(e,{attributes:!0,attributeFilter:["style","class"]}),n.observe(document.body,{childList:!0,subtree:!0})),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}},[e]),Tb("div",{className:"HighlightOverlay-module__overlay___CGVxb","data-test-id":"highlight-overlay",ref:t})};var Ob=new WeakMap;const Rb=new class{constructor(){Bo(this,Ob,null),Qo(this,"update",e=>{jo(Ob,this)?jo(Ob,this).rerender({targetElement:e}):zo(Ob,this,Sb(kb,{targetElement:e},{hideFromVirtualAgent:!0}))}),Qo(this,"hide",()=>{var e;null===(e=jo(Ob,this))||void 0===e||e.unmount(),zo(Ob,this,null)})}},Pb=["top","right","bottom","left"],Db=Math.min,Mb=Math.max,xb=Math.round,Gb=Math.floor,Ub=e=>({x:e,y:e}),Vb={left:"right",right:"left",bottom:"top",top:"bottom"},Wb={start:"end",end:"start"};function Fb(e,t,n){return Mb(e,Db(t,n))}function jb(e,t){return"function"==typeof e?e(t):e}function Bb(e){return e.split("-")[0]}function zb(e){return e.split("-")[1]}function Hb(e){return"x"===e?"y":"x"}function qb(e){return"y"===e?"height":"width"}const Qb=new Set(["top","bottom"]);function $b(e){return Qb.has(Bb(e))?"y":"x"}function Yb(e){return Hb($b(e))}function Jb(e){return e.replace(/start|end/g,e=>Wb[e])}const Kb=["left","right"],Xb=["right","left"],Zb=["top","bottom"],eN=["bottom","top"];function tN(e){return e.replace(/left|right|bottom|top/g,e=>Vb[e])}function nN(e){return"number"!=typeof e?function(e){return Yo({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function rN(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const iN=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],oN=["strategy"],sN=["mainAxis","crossAxis","limiter"];function aN(e,t,n){let{reference:r,floating:i}=e;const o=$b(t),s=Yb(t),a=qb(s),c=Bb(t),l="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let f;switch(c){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(zb(t)){case"start":f[s]-=h*(n&&l?-1:1);break;case"end":f[s]+=h*(n&&l?-1:1)}return f}async function cN(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=jb(t,e),p=nN(f),g=a[h?"floating"===d?"reference":"floating":d],m=rN(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),_="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),E=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=rN(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:v,strategy:c}):_);return{top:(m.top-w.top+p.top)/E.y,bottom:(w.bottom-m.bottom+p.bottom)/E.y,left:(m.left-w.left+p.left)/E.x,right:(w.right-m.right+p.right)/E.x}}function lN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uN(e){return Pb.some(t=>e[t]>=0)}const dN=new Set(["left","top"]);function hN(){return"undefined"!=typeof window}function fN(e){return mN(e)?(e.nodeName||"").toLowerCase():"#document"}function pN(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function gN(e){var t;return null==(t=(mN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mN(e){return!!hN()&&(e instanceof Node||e instanceof pN(e).Node)}function _N(e){return!!hN()&&(e instanceof Element||e instanceof pN(e).Element)}function vN(e){return!!hN()&&(e instanceof HTMLElement||e instanceof pN(e).HTMLElement)}function EN(e){return!(!hN()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pN(e).ShadowRoot)}const wN=new Set(["inline","contents"]);function yN(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=PN(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wN.has(i)}const IN=new Set(["table","td","th"]);function LN(e){return IN.has(fN(e))}const CN=[":popover-open",":modal"];function AN(e){return CN.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const SN=["transform","translate","scale","rotate","perspective"],bN=["transform","translate","scale","rotate","perspective","filter"],NN=["paint","layout","strict","content"];function TN(e){const t=kN(),n=_N(e)?PN(e):e;return SN.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||bN.some(e=>(n.willChange||"").includes(e))||NN.some(e=>(n.contain||"").includes(e))}function kN(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ON=new Set(["html","body","#document"]);function RN(e){return ON.has(fN(e))}function PN(e){return pN(e).getComputedStyle(e)}function DN(e){return _N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function MN(e){if("html"===fN(e))return e;const t=e.assignedSlot||e.parentNode||EN(e)&&e.host||gN(e);return EN(t)?t.host:t}function xN(e){const t=MN(e);return RN(t)?e.ownerDocument?e.ownerDocument.body:e.body:vN(t)&&yN(t)?t:xN(t)}function GN(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=xN(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=pN(i);if(o){const e=UN(s);return t.concat(s,s.visualViewport||[],yN(i)?i:[],e&&n?GN(e):[])}return t.concat(i,GN(i,[],n))}function UN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function VN(e){const t=PN(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vN(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=xb(n)!==o||xb(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function WN(e){return _N(e)?e:e.contextElement}function FN(e){const t=WN(e);if(!vN(t))return Ub(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=VN(t);let s=(o?xb(n.width):n.width)/r,a=(o?xb(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const jN=Ub(0);function BN(e){const t=pN(e);return kN()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:jN}function zN(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=WN(e);let s=Ub(1);t&&(r?_N(r)&&(s=FN(r)):s=FN(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==pN(e))&&t}(o,n,r)?BN(o):Ub(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const e=pN(o),t=r&&_N(r)?pN(r):r;let n=e,i=UN(n);for(;i&&r&&t!==n;){const e=FN(i),t=i.getBoundingClientRect(),r=PN(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=o,l+=s,n=pN(i),i=UN(n)}}return rN({width:u,height:d,x:c,y:l})}function HN(e,t){const n=DN(e).scrollLeft;return t?t.left+n:zN(gN(e)).left+n}function qN(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-HN(e,n),y:n.top+t.scrollTop}}const QN=new Set(["absolute","fixed"]);function $N(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=pN(e),r=gN(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const e=kN();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}const l=HN(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else l<=25&&(o+=l);return{width:o,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=gN(e),n=DN(e),r=e.ownerDocument.body,i=Mb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Mb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+HN(e);const a=-n.scrollTop;return"rtl"===PN(r).direction&&(s+=Mb(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(gN(e));else if(_N(t))r=function(e,t){const n=zN(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vN(e)?FN(e):Ub(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=BN(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rN(r)}function YN(e,t){const n=MN(e);return!(n===t||!_N(n)||RN(n))&&("fixed"===PN(n).position||YN(n,t))}function JN(e,t,n){const r=vN(t),i=gN(t),o="fixed"===n,s=zN(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=Ub(0);function l(){c.x=HN(i)}if(r||!r&&!o)if(("body"!==fN(t)||yN(i))&&(a=DN(t)),r){const e=zN(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();o&&!r&&i&&l();const u=!i||r||o?Ub(0):qN(i,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function KN(e){return"static"===PN(e).position}function XN(e,t){if(!vN(e)||"fixed"===PN(e).position)return null;if(t)return t(e);let n=e.offsetParent;return gN(e)===n&&(n=n.ownerDocument.body),n}function ZN(e,t){const n=pN(e);if(AN(e))return n;if(!vN(e)){let t=MN(e);for(;t&&!RN(t);){if(_N(t)&&!KN(t))return t;t=MN(t)}return n}let r=XN(e,t);for(;r&&LN(r)&&KN(r);)r=XN(r,t);return r&&RN(r)&&KN(r)&&!TN(r)?n:r||function(e){let t=MN(e);for(;vN(t)&&!RN(t);){if(TN(t))return t;if(AN(t))return null;t=MN(t)}return null}(e)||n}const eT={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,s=gN(r),a=!!t&&AN(t.floating);if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=Ub(1);const u=Ub(0),d=vN(r);if((d||!d&&!o)&&(("body"!==fN(r)||yN(s))&&(c=DN(r)),vN(r))){const e=zN(r);l=FN(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||o?Ub(0):qN(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:gN,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?AN(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=GN(e,[],!1).filter(e=>_N(e)&&"body"!==fN(e)),i=null;const o="fixed"===PN(e).position;let s=o?MN(e):e;for(;_N(s)&&!RN(s);){const t=PN(s),n=TN(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&QN.has(i.position)||yN(s)&&!n&&YN(e,s))?r=r.filter(e=>e!==s):i=t,s=MN(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=$N(t,n,i);return e.top=Mb(r.top,e.top),e.right=Db(r.right,e.right),e.bottom=Db(r.bottom,e.bottom),e.left=Mb(r.left,e.left),e},$N(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ZN,getElementRects:async function(e){const t=this.getOffsetParent||ZN,n=this.getDimensions,r=await n(e.floating);return{reference:JN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=VN(e);return{width:t,height:n}},getScale:FN,isElement:_N,isRTL:function(e){return"rtl"===PN(e).direction}};function tT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const nT=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=jb(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,l=Jo(o,sN),u={x:n,y:r},d=await cN(t,l),h=$b(Bb(i)),f=Hb(h);let p=u[f],g=u[h];if(s){const e="y"===f?"bottom":"right";p=Fb(p+d["y"===f?"top":"left"],p,p-d[e])}if(a){const e="y"===h?"bottom":"right";g=Fb(g+d["y"===h?"top":"left"],g,g-d[e])}const m=c.fn(Yo(Yo({},t),{},{[f]:p,[h]:g}));return Yo(Yo({},m),{},{data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[h]:a}}})}}},rT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=t,u=jb(e,t),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0}=u,_=Jo(u,iN);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Bb(i),E=$b(a),w=Bb(a)===a,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),I=f||(w||!m?[tN(a)]:function(e){const t=tN(e);return[Jb(e),t,Jb(t)]}(a)),L="none"!==g;!f&&L&&I.push(...function(e,t,n,r){const i=zb(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Xb:Kb:t?Kb:Xb;case"left":case"right":return t?Zb:eN;default:return[]}}(Bb(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(Jb)))),o}(a,m,g,y));const C=[a,...I],A=await cN(t,_),S=[];let b=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&S.push(A[v]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=zb(e),i=Yb(e),o=qb(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=tN(s)),[s,tN(s)]}(i,s,y);S.push(A[e[0]],A[e[1]])}if(b=[...b,{placement:i,overflows:S}],!S.every(e=>e<=0)){var N,T;const e=((null==(N=o.flip)?void 0:N.index)||0)+1,t=C[e];if(t&&("alignment"!==h||E===$b(t)||b.every(e=>$b(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:b},reset:{placement:t}};let n=null==(T=b.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var k;const e=null==(k=b.filter(e=>{if(L){const t=$b(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:k[0];e&&(n=e);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},iT=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,r=jb(e,t),{strategy:i="referenceHidden"}=r,o=Jo(r,oN);switch(i){case"referenceHidden":{const e=lN(await cN(t,Yo(Yo({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:uN(e)}}}case"escaped":{const e=lN(await cN(t,Yo(Yo({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:uN(e)}}}default:return{}}}}},oT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=jb(e,t)||{};if(null==l)return{};const d=nN(u),h={x:n,y:r},f=Yb(i),p=qb(f),g=await s.getDimensions(l),m="y"===f,_=m?"top":"left",v=m?"bottom":"right",E=m?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[f]-h[f]-o.floating[p],y=h[f]-o.reference[f],I=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let L=I?I[E]:0;L&&await(null==s.isElement?void 0:s.isElement(I))||(L=a.floating[E]||o.floating[p]);const C=w/2-y/2,A=L/2-g[p]/2-1,S=Db(d[_],A),b=Db(d[v],A),N=S,T=L-g[p]-b,k=L/2-g[p]/2+C,O=Fb(N,k,T),R=!c.arrow&&null!=zb(i)&&k!==O&&o.reference[p]/2-(k<N?S:b)-g[p]/2<0,P=R?k<N?k-N:k-T:0;return{[f]:h[f]+P,data:Yo({[f]:O,centerOffset:k-O-P},R&&{alignmentOffset:P}),reset:R}}}),sT=({title:e})=>Tb("div",{className:"Tooltip-module__tooltipTitle___h97ry",children:e}),aT=({arrowRef:e})=>Tb("div",{className:"Tooltip-module__tooltipArrow___7xBT0",ref:e}),cT=({targetElement:e,title:t})=>{const n=mb(),r=mb();return gb(()=>{var t;let i;return e&&(i=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=WN(e),u=i||o?[...l?GN(l):[],...GN(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const i=gN(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),o();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=l;if(a||t(),!h||!f)return;const p={rootMargin:-Gb(d)+"px "+-Gb(i.clientWidth-(u+h))+"px "+-Gb(i.clientHeight-(d+f))+"px "+-Gb(u)+"px",threshold:Mb(0,Db(1,c))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==c){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||tT(l,e.getBoundingClientRect())||s(),g=!1}try{r=new IntersectionObserver(m,Yo(Yo({},p),{},{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(l,n):null;let h,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g=c?zN(e):null;return c&&function t(){const r=zN(e);g&&!tT(g,r)&&n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}(e,n.current,async()=>{const t=await(async(e,t,n)=>{if(!e||!t||!n)return null;const{x:r,y:i,placement:o,middlewareData:s}=await((e,t,n)=>{const r=new Map,i=Yo({platform:eT},n),o=Yo(Yo({},i.platform),{},{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=aN(l,r,c),h=r,f={},p=0;for(let n=0;n<a.length;n++){const{name:o,fn:g}=a[n],{x:m,y:_,data:v,reset:E}=await g({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=_?_:d,f=Yo(Yo({},f),{},{[o]:Yo(Yo({},f[o]),v)}),E&&p<=50&&(p++,"object"==typeof E&&(E.placement&&(h=E.placement),E.rects&&(l=!0===E.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),({x:u,y:d}=aN(l,h,c))),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}})(e,t,Yo(Yo({},i),{},{platform:o}))})(e,t,{placement:"top",middleware:[(u=12,void 0===u&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:i,placement:o,middlewareData:s}=e,a=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Bb(n),a=zb(n),c="y"===$b(n),l=dN.has(s)?-1:1,u=o&&c?-1:1,d=jb(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),c?{x:f*u,y:h*l}:{x:h*l,y:f*u}}(e,u);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:Yo(Yo({},a),{},{placement:o})}}}),rT(),nT({padding:8}),oT({element:n}),iT()]}),{x:a,y:c}=s.arrow,l=!s.hide.referenceHidden;var u;return{tooltip:{x:r,y:i},arrow:{x:a,y:c,staticSide:{top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]]},isVisible:l}})(e,n.current,r.current);t&&(n.current.style.left=`${t.tooltip.x}px`,n.current.style.top=`${t.tooltip.y}px`,n.current.style.display=t.isVisible?"block":"none",r.current.style.left=t.arrow.x?`${t.arrow.x}px`:"",r.current.style.top=t.arrow.y?`${t.arrow.y}px`:"",r.current.style[t.arrow.staticSide]="-4px")})),null===(t=n.current)||void 0===t||t.classList.add("Tooltip-module__tooltipVisible___tvm2-"),()=>{var e;null===(e=i)||void 0===e||e()}},[e]),Tb("div",{className:"Tooltip-module__tooltip___kLn1a",role:"tooltip","aria-live":"polite",ref:n,children:[Tb(sT,{title:t}),Tb(aT,{arrowRef:r})]})};var lT=new WeakMap;const uT=new class{constructor(){Bo(this,lT,null),Qo(this,"update",(e,t)=>{jo(lT,this)?jo(lT,this).rerender({targetElement:e,title:t}):zo(lT,this,Sb(cT,{targetElement:e,title:t},{hideFromVirtualAgent:!0}))}),Qo(this,"hide",()=>{var e;null===(e=jo(lT,this))||void 0===e||e.unmount(),zo(lT,this,null)})}},dT=jl("cbio.Highlight");var hT=new WeakMap,fT=new WeakMap,pT=new WeakMap,gT=new WeakMap,mT=new WeakMap,_T=new WeakMap,vT=new WeakMap;const ET=new class{constructor(){Bo(this,hT,void 0),Qo(this,"highlight",async(e,t)=>{var n;const r=PI.getById(t.target.id);if(!r)return!1;const i=this.getNonEmpyElement(r);if(!i)return!1;const o=(null!==(n=e.highlightElement)&&void 0!==n?n:jo(fT,this))(i,t.title);return e.emit("highlight.updated",{target:i,visible:!0}),await o,e.emit("highlight.updated",{target:i,visible:!1}),!0}),Qo(this,"hide",()=>{var e;dT("hide",`resolve?=${!!jo(hT,this)}`),jo(_T,this).call(this),jo(gT,this).call(this),null===(e=jo(hT,this))||void 0===e||e.call(this),zo(hT,this,void 0)}),Bo(this,fT,(e,t)=>new Promise(n=>{dT("update",e,t),zo(hT,this,n),jo(pT,this).call(this,e,t),jo(mT,this).call(this)})),Bo(this,pT,(e,t)=>{Rb.update(e),uT.update(e,t)}),Bo(this,gT,()=>{uT.hide(),Rb.hide()}),Bo(this,mT,()=>{jo(_T,this).call(this),document.addEventListener("click",jo(vT,this),{capture:!0})}),Bo(this,_T,()=>{document.removeEventListener("click",jo(vT,this),!0)}),Bo(this,vT,e=>{e.isTrusted&&this.hide()})}getNonEmpyElement(e){let t=e;for(;t;){const e=t.getBoundingClientRect();if(e.width>0&&e.height>0)return t;dT("element is zero-width/height, trying parent",t),t=t.parentElement}}},wT="pdf",yT="xdoc",IT="universal";var LT=new WeakMap,CT=new WeakMap,AT=new WeakMap,ST=new WeakMap,bT=new WeakMap;class NT{constructor(e){Bo(this,LT,void 0),Bo(this,CT,void 0),Bo(this,AT,void 0),Qo(this,"findHandlerByUrl",e=>{if(!e)return null;try{const t=new URL(e,window.location.origin);return jo(CT,this).find(e=>e.shouldHandle(t))}catch(e){return console.warn("CobrowseIO: Failed to infer navigation type",e),null}}),Qo(this,"findHandlerByType",e=>jo(CT,this).find(t=>t.type===e)),Bo(this,ST,(e,t,n,{name:r,go:i,e:o})=>{const s=this.findHandlerByUrl(e);if(s&&!s.shouldHandleEvent(o))return o.eventPhase===Event.BUBBLING_PHASE&&console.warn("CobrowseIO: Inferred navigation type but event is already handled"),{rewrittenUrl:e};const a=o.view||window;return jo(AT,this).call(this,e,t,n,{name:r,go:i,e:o,type:null==s?void 0:s.type,block:()=>jo(bT,this).call(this,a,o)})}),Bo(this,bT,(e,t)=>{if(t.eventPhase===Event.CAPTURING_PHASE)return;const n=e.document,r=n.createElement("div");r.style.position="fixed",r.style.top=0,r.style.left=0,r.style.width="100vw",r.style.height="100vh",r.style.backgroundColor="black",r.style.zIndex="2147483647",r.style.margin=0,r.style.padding=0,r.style.border=0,r.style.borderRadius=0;const i=n.body.style.overflow;n.body.style.overflow="hidden",n.body.appendChild(r);const o=()=>{n.body.contains(r)&&n.body.removeChild(r),n.body.style.overflow=i,e.removeEventListener("popstate",o)};e.addEventListener("popstate",o),e.history.pushState({},"")}),Qo(this,"destroy",()=>{FA.beforeNavigate=null}),zo(LT,this,e.shouldNavigate),zo(CT,this,e.handlers),zo(AT,this,e.handleNavigation),FA.beforeNavigate=jo(ST,this)}runHandler(e,t,n,r){if(!e)return{rewrittenUrl:e};const i=null!=r.type?this.findHandlerByType(r.type):this.findHandlerByUrl(e);return i&&jo(LT,this).call(this,i.type)?i.handle(e,t,n,r):{rewrittenUrl:e}}}class TT{get type(){throw new Error("Getter 'type' must be implemented.")}shouldHandleEvent(e){throw new Error("Method 'shouldHandleEvent()' must be implemented.")}shouldHandle(e){throw new Error("Method 'shouldHandle()' must be implemented.")}handle(e,t,n,r){throw new Error("Method 'handle()' must be implemented.")}}const kT=Symbol("protected");function OT(e,t,n){e[kT]||Object.defineProperty(e,kT,{enumerable:!1,value:{}});const r=e[kT][t];return Object.getPrototypeOf(Object.getPrototypeOf(e))[t]=r,Object.defineProperty(e[kT],t,{enumerable:!1,value:n,configurable:!0}),n}var RT=new WeakMap,PT=new WeakMap,DT=new WeakMap;class MT{constructor(e,t){Bo(this,RT,void 0),Bo(this,PT,void 0),Bo(this,DT,e=>{const t=e[kT].proxyToken(),n=e[kT].proxyUrl(),r=new URL(n,jo(PT,this));return new Zs(r,ea,t,window.location)}),Qo(this,"openPdfViewer",(e,t,n)=>{const r=window.__cobrowse_io_openPdf,i=r=>{const{setPdfUrl:i}=r(e,{container:t,onLoadError:t=>{const r=jo(DT,this).call(this,jo(RT,this)).proxify(e);t!==r?(console.warn("CobrowseIO: Failed to fetch PDF document, attempting to proxy it"),i(r)):n()},onLoadSuccess:n,preventClose:!0})};"function"!=typeof r?import("./universal-client.static.CQXYGKmN.mjs").then(function(e){return e.C}).then(e=>{i(e.open)}):i(r)}),zo(RT,this,e),zo(PT,this,t)}}var xT=new WeakMap,GT=new WeakMap,UT=new WeakMap,VT=new WeakMap;class WT extends TT{constructor(e,t){super(),Bo(this,xT,void 0),Bo(this,GT,void 0),Bo(this,UT,e=>new URL(e,window.location.href).pathname.split("/").pop()),Bo(this,VT,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",i.load(e,t,n,{element:o,type:this.type}),jo(GT,this).openPdfViewer(e,o,()=>{const t=jo(UT,this).call(this,e);i.icon="",i.title=t,i.isLoading=!1})}),zo(xT,this,cA(t.pdfLinks)),zo(GT,this,new MT(e,t.api))}get type(){return wT}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",jo(xT,this).call(this,t)}handle(e,t,n,r){return jo(VT,this).call(this,e,t,n,r),{document:r.document}}}var FT=new WeakMap,jT=new WeakMap,BT=new WeakMap;class zT{constructor(e,t,n){Bo(this,FT,void 0),Bo(this,jT,void 0),Bo(this,BT,void 0),Qo(this,"createUniversalProxyFrameName",()=>`cbioUniversalFrame-${OI(5)}`),Qo(this,"createUniversalProxyUrl",(e,t)=>{const n=jo(FT,this)[kT].proxyToken(),r=jo(FT,this)[kT].proxyUrl(),i=new URL(r,jo(jT,this)),o={parent_origin:window.location.origin,proxy_path:i.pathname,sdk_version:jo(BT,this),frame_name:t};return new Zs(i,ea,n,window.location,o).proxify(e)}),Qo(this,"createUniversalProxyIFrame",(e,t)=>{const n=document.createElement("iframe");return n.allow="publickey-credentials-get *",n.style.width="100%",n.style.height="100%",n.style.backgroundColor="white",n.style.border="none",n.src=e,n.name=t,n}),zo(FT,this,e),zo(jT,this,t),zo(BT,this,n)}}var HT=new WeakMap,qT=new WeakMap,QT=new WeakMap,$T=new WeakMap;class YT extends TT{constructor(e,t){super(),Bo(this,HT,void 0),Bo(this,qT,void 0),Bo(this,QT,(e,t,n,r)=>{const{document:i}=r,o=jo(qT,this).createUniversalProxyFrameName(),s=jo(qT,this).createUniversalProxyUrl(e,o),a=jo(qT,this).createUniversalProxyIFrame(s,o);i.load(s,t,n,{element:a,type:this.type});const c=({handle:e,document:{url:t,icon:n,title:r,isLoading:o,isBlocked:s}},{trusted:c,iframe:l})=>{e||c&&l===a&&(i.url=t,i.icon=n,i.title=r,i.isLoading=o,i.isBlocked=s)};QU.on("document",c),i.once("closed",()=>{QU.off("document",c)})}),Bo(this,$T,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",o.style.backgroundColor="black",i.load(e,t,n,{element:o,type:this.type}),i.isLoading=!1,i.isBlocked=!0}),zo(HT,this,cA(t.universalLinks)),zo(qT,this,new zT(e,t.api,t.version))}get type(){return IT}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",!!Ys(t.protocol)&&jo(HT,this).call(this,t)}handle(e,t,n,r){return(this.shouldHandle(e)?jo(QT,this):jo($T,this))(e,t,n,r),{document:r.document}}}var JT,KT={};!function(){if(JT)return KT;JT=1;var e=jn(),t=yt(),n=yc(),r=js(),i=[].push;e({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return n(r(t(this)),i,{that:e,IS_RECORD:!0}),e}})}();var XT=new WeakMap;class ZT{constructor(e){Bo(this,XT,{}),this.fill(e)}fill(e){return zo(XT,this,e.reduce((e,t)=>(e[t]=!0,e),{})),this}all(){return jo(XT,this)}toArray(){return Object.keys(jo(XT,this)).filter(e=>jo(XT,this)[e])}toggle(e,t){return Array.isArray(e)||(e=[e]),e.filter(e=>e in jo(XT,this)).forEach(e=>{jo(XT,this)[e]=t}),this}}var ek,tk,nk,rk,ik,ok,sk,ak,ck,lk,uk,dk,hk,fk,pk,gk,mk,_k,vk,Ek,wk,yk,Ik,Lk,Ck,Ak,Sk,bk,Nk,Tk,kk,Ok,Rk,Pk,Dk,Mk,xk,Gk,Uk,Vk,Wk,Fk,jk,Bk,zk,Hk,qk,Qk,$k,Yk={};function Jk(){return tk?ek:(tk=1,ek=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function Kk(){if(ok)return ik;ok=1;var e=QA(),t=zh(),n=function(){if(rk)return nk;rk=1;var e=o(),t=QA(),n=ge(),r=Fn(),i=Ft(),s=st(),a=qu(),c=Ze(),l=we(),u=t&&t.prototype,d=s("species"),h=!1,f=n(e.PromiseRejectionEvent),p=r("Promise",function(){var e=i(t),n=e!==String(t);if(!n&&66===l)return!0;if(c&&(!u.catch||!u.finally))return!0;if(!l||l<51||!/native code/.test(e)){var r=new t(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[d]=o,!(h=r.then(function(){})instanceof o))return!0}return!(n||"BROWSER"!==a&&"DENO"!==a||f)});return nk={CONSTRUCTOR:p,REJECTION_EVENT:f,SUBCLASSING:h}}().CONSTRUCTOR;return ik=n||!t(function(t){e.all(t).then(void 0,function(){})})}function Xk(){if(vk)return _k;vk=1;var e=uI(),t=function(){if(ck)return ak;ck=1;var e=uI();return ak=function(){this.__data__=new e,this.size=0}}(),n=uk?lk:(uk=1,lk=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=hk?dk:(hk=1,dk=function(e){return this.__data__.get(e)}),i=pk?fk:(pk=1,fk=function(e){return this.__data__.has(e)}),o=function(){if(mk)return gk;mk=1;var e=uI(),t=dI(),n=fI();return gk=function(r,i){var o=this.__data__;if(o instanceof e){var s=o.__data__;if(!t||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,_k=s}function Zk(){if(kk)return Tk;kk=1;var e=function(){if(Ck)return Lk;Ck=1;var e=fI(),t=wk?Ek:(wk=1,Ek=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=Ik?yk:(Ik=1,yk=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Lk=r}(),t=Sk?Ak:(Sk=1,Ak=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=Nk?bk:(Nk=1,bk=function(e,t){return e.has(t)});return Tk=function(r,i,o,s,a,c){var l=1&o,u=r.length,d=i.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(r),f=c.get(i);if(h&&f)return h==i&&f==r;var p=-1,g=!0,m=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++p<u;){var _=r[p],v=i[p];if(s)var E=l?s(v,_,p,i,r,c):s(_,v,p,r,i,c);if(void 0!==E){if(E)continue;g=!1;break}if(m){if(!t(i,function(e,t){if(!n(m,t)&&(_===e||a(_,e,o,s,c)))return m.push(t)})){g=!1;break}}else if(_!==v&&!a(_,v,o,s,c)){g=!1;break}}return c.delete(r),c.delete(i),g}}function eO(){if(Rk)return Ok;Rk=1;var e=ic().Uint8Array;return Ok=e}function tO(){if(Wk)return Vk;Wk=1;var e=CI(),t=rI();return Vk=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}function nO(){return zk?Bk:(zk=1,Bk=function(){return[]})}function rO(){if(qk)return Hk;qk=1;var e=jk?Fk:(jk=1,Fk=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}),t=nO(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t;return Hk=i}!function(){if(sk)return Yk;sk=1;var e=jn(),t=v(),n=Ae(),r=eS(),i=Jk(),o=yc();e({target:"Promise",stat:!0,forced:Kk()},{allSettled:function(e){var s=this,a=r.f(s),c=a.resolve,l=a.reject,u=i(function(){var r=n(s.resolve),i=[],a=0,l=1;o(e,function(e){var n=a++,o=!1;l++,t(r,s,e).then(function(e){o||(o=!0,i[n]={status:"fulfilled",value:e},--l||c(i))},function(e){o||(o=!0,i[n]={status:"rejected",reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),a.promise}})}();var iO,oO,sO,aO,cO,lO,uO,dO={exports:{}};function hO(){return sO||(sO=1,function(e,t){var n=ic(),r=oO?iO:(oO=1,iO=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(dO,dO.exports)),dO.exports}function fO(){return uO?lO:(uO=1,lO=function(e){return function(t){return e(t)}})}var pO,gO,mO,_O,vO,EO,wO,yO,IO,LO,CO,AO,SO,bO,NO,TO,kO,OO,RO,PO,DO,MO,xO,GO,UO,VO,WO,FO,jO,BO,zO,HO,qO,QO,$O,YO,JO,KO,XO,ZO,eR,tR,nR,rR={exports:{}};function iR(){return pO||(pO=1,e=rR,t=rR.exports,n=rc(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=s),rR.exports;var e,t,n,r,i,o,s}function oR(){if(mO)return gO;mO=1;var e=function(){if(cO)return aO;cO=1;var e=sc(),t=LI(),n=ac(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,aO=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=fO(),n=iR(),r=n&&n.isTypedArray,i=r?t(r):e;return gO=i}function sR(){if(vO)return _O;vO=1;var e=($k||($k=1,Qk=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),Qk),t=II(),n=rI(),r=hO(),i=yI(),o=oR(),s=Object.prototype.hasOwnProperty;return _O=function(a,c){var l=n(a),u=!l&&t(a),d=!l&&!u&&r(a),h=!l&&!u&&!d&&o(a),f=l||u||d||h,p=f?e(a.length,String):[],g=p.length;for(var m in a)!c&&!s.call(a,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,g))||p.push(m);return p}}function aR(){if(wO)return EO;wO=1;var e=Object.prototype;return EO=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function cR(){return IO?yO:(IO=1,yO=function(e,t){return function(n){return e(t(n))}})}function lR(){if(NO)return bO;NO=1;var e=iI(),t=LI();return bO=function(n){return null!=n&&t(n.length)&&!e(n)}}function uR(){if(kO)return TO;kO=1;var e=sR(),t=function(){if(SO)return AO;SO=1;var e=aR(),t=function(){if(CO)return LO;CO=1;var e=cR()(Object.keys,Object);return LO=e}(),n=Object.prototype.hasOwnProperty;return AO=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}(),n=lR();return TO=function(r){return n(r)?e(r):t(r)}}function dR(){if(RO)return OO;RO=1;var e=tO(),t=rO(),n=uR();return OO=function(r){return e(r,n,t)}}function hR(){if(zO)return BO;zO=1;var e=function(){if(xO)return MO;xO=1;var e=sI()(ic(),"DataView");return MO=e}(),t=dI(),n=function(){if(UO)return GO;UO=1;var e=sI()(ic(),"Promise");return GO=e}(),r=function(){if(WO)return VO;WO=1;var e=sI()(ic(),"Set");return VO=e}(),i=function(){if(jO)return FO;jO=1;var e=sI()(ic(),"WeakMap");return FO=e}(),o=sc(),s=oI(),a="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",d="[object DataView]",h=s(e),f=s(t),p=s(n),g=s(r),m=s(i),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=d||t&&_(new t)!=a||n&&_(n.resolve())!=c||r&&_(new r)!=l||i&&_(new i)!=u)&&(_=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return d;case f:return a;case p:return c;case g:return l;case m:return u}return t}),BO=_}function fR(){if(qO)return HO;qO=1;var e=Xk(),t=Zk(),n=function(){if(Uk)return Gk;Uk=1;var e=oc(),t=eO(),n=cI(),r=Zk(),i=Dk?Pk:(Dk=1,Pk=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),o=xk?Mk:(xk=1,Mk=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return Gk=function(e,s,c,l,u,d,h){switch(c){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!d(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var f=i;case"[object Set]":var p=1&l;if(f||(f=o),e.size!=s.size&&!p)return!1;var g=h.get(e);if(g)return g==s;l|=2,h.set(e,s);var m=r(f(e),f(s),l,u,d,h);return h.delete(e),m;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}(),r=function(){if(DO)return PO;DO=1;var e=dR(),t=Object.prototype.hasOwnProperty;return PO=function(n,r,i,o,s,a){var c=1&i,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in r:t.call(r,h)))return!1}var f=a.get(n),p=a.get(r);if(f&&p)return f==r&&p==n;var g=!0;a.set(n,r),a.set(r,n);for(var m=c;++d<u;){var _=n[h=l[d]],v=r[h];if(o)var E=c?o(v,_,h,r,n,a):o(_,v,h,n,r,a);if(!(void 0===E?_===v||s(_,v,i,o,a):E)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=n.constructor,y=r.constructor;w==y||!("constructor"in n)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(g=!1)}return a.delete(n),a.delete(r),g}}(),i=hR(),o=rI(),s=hO(),a=oR(),c="[object Arguments]",l="[object Array]",u="[object Object]",d=Object.prototype.hasOwnProperty;return HO=function(h,f,p,g,m,_){var v=o(h),E=o(f),w=v?l:i(h),y=E?l:i(f),I=(w=w==c?u:w)==u,L=(y=y==c?u:y)==u,C=w==y;if(C&&s(h)){if(!s(f))return!1;v=!0,I=!1}if(C&&!I)return _||(_=new e),v||a(h)?t(h,f,p,g,m,_):n(h,f,w,p,g,m,_);if(!(1&p)){var A=I&&d.call(h,"__wrapped__"),S=L&&d.call(f,"__wrapped__");if(A||S){var b=A?h.value():h,N=S?f.value():f;return _||(_=new e),m(b,N,p,g,_)}}return!!C&&(_||(_=new e),r(h,f,p,g,m,_))}}function pR(){if($O)return QO;$O=1;var e=fR(),t=ac();return QO=function n(r,i,o,s,a){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,s,n,a))}}const gR=t(function(){if(nR)return tR;nR=1;var e=function(){if(JO)return YO;JO=1;var e=Xk(),t=pR();return YO=function(n,r,i,o){var s=i.length,a=s,c=!o;if(null==n)return!a;for(n=Object(n);s--;){var l=i[s];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++s<a;){var u=(l=i[s])[0],d=n[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in n))return!1}else{var f=new e;if(o)var p=o(d,h,u,n,r,f);if(!(void 0===p?t(h,d,3,o,f):p))return!1}}return!0}}(),t=function(){if(eR)return ZO;eR=1;var e=function(){if(XO)return KO;XO=1;var e=nc();return KO=function(t){return t==t&&!e(t)}}(),t=uR();return ZO=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],s=n[o];r[i]=[o,s,e(s)]}return r}}();return tR=function(n,r,i){return i="function"==typeof i?i:void 0,e(n,r,t(r),i)}}());var mR,_R,vR,ER,wR,yR,IR,LR,CR,AR,SR,bR,NR,TR;function kR(){if(ER)return vR;ER=1;var e=wI(),t=EI();return vR=function(n,r,i,o){var s=!i;i||(i={});for(var a=-1,c=r.length;++a<c;){var l=r[a],u=o?o(i[l],n[l],l,i,n):void 0;void 0===u&&(u=n[l]),s?t(i,l,u):e(i,l,u)}return i}}function OR(){if(bR)return SR;bR=1;var e=sR(),t=function(){if(AR)return CR;AR=1;var e=nc(),t=aR(),n=LR?IR:(LR=1,IR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return CR=function(i){if(!e(i))return n(i);var o=t(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s}}(),n=lR();return SR=function(r){return n(r)?e(r,!0):t(r)}}var RR,PR,DR,MR,xR,GR,UR,VR,WR,FR,jR,BR,zR,HR,qR,QR,$R,YR,JR,KR,XR,ZR,eP,tP,nP,rP,iP,oP,sP,aP,cP,lP,uP,dP,hP,fP,pP,gP,mP,_P,vP,EP,wP,yP,IP,LP,CP,AP,SP,bP,NP,TP,kP,OP,RP,PP={exports:{}};function DP(){if(UR)return GR;UR=1;var e=cR()(Object.getPrototypeOf,Object);return GR=e}function MP(){if(WR)return VR;WR=1;var e=CI(),t=DP(),n=rO(),r=nO(),i=Object.getOwnPropertySymbols;return VR=i?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r}function xP(){if(zR)return BR;zR=1;var e=tO(),t=MP(),n=OR();return BR=function(r){return e(r,n,t)}}function GP(){if($R)return QR;$R=1;var e=eO();return QR=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n},QR}function UP(){if(vP)return _P;vP=1;var e=Xk(),t=_R?mR:(_R=1,mR=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),n=wI(),r=function(){if(yR)return wR;yR=1;var e=kR(),t=uR();return wR=function(n,r){return n&&e(r,t(r),n)}}(),i=function(){if(TR)return NR;TR=1;var e=kR(),t=OR();return NR=function(n,r){return n&&e(r,t(r),n)}}(),o=(RR||(RR=1,function(e,t){var n=ic(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(PP,PP.exports)),PP.exports),s=DR?PR:(DR=1,PR=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),a=function(){if(xR)return MR;xR=1;var e=kR(),t=rO();return MR=function(n,r){return e(n,t(n),r)}}(),c=function(){if(jR)return FR;jR=1;var e=kR(),t=MP();return FR=function(n,r){return e(n,t(n),r)}}(),l=dR(),u=xP(),d=hR(),h=function(){if(qR)return HR;qR=1;var e=Object.prototype.hasOwnProperty;return HR=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}(),f=function(){if(iP)return rP;iP=1;var e=GP(),t=function(){if(JR)return YR;JR=1;var e=GP();return YR=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(XR)return KR;XR=1;var e=/\w*$/;return KR=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(eP)return ZR;eP=1;var e=oc(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return ZR=function(e){return n?Object(n.call(e)):{}},ZR}(),i=function(){if(nP)return tP;nP=1;var e=GP();return tP=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return rP=function(o,s,a){var c=o.constructor;switch(s){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,a);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}(),p=function(){if(cP)return aP;cP=1;var e=function(){if(sP)return oP;sP=1;var e=nc(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return oP=n}(),t=DP(),n=aR();return aP=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}(),g=rI(),m=hO(),_=function(){if(hP)return dP;hP=1;var e=function(){if(uP)return lP;uP=1;var e=hR(),t=ac();return lP=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=fO(),n=iR(),r=n&&n.isMap,i=r?t(r):e;return dP=i}(),v=nc(),E=function(){if(mP)return gP;mP=1;var e=function(){if(pP)return fP;pP=1;var e=hR(),t=ac();return fP=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=fO(),n=iR(),r=n&&n.isSet,i=r?t(r):e;return gP=i}(),w=uR(),y=OR(),I="[object Arguments]",L="[object Function]",C="[object Object]",A={};return A[I]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[C]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[L]=A["[object WeakMap]"]=!1,_P=function S(b,N,T,k,O,R){var P,D=1&N,M=2&N,x=4&N;if(T&&(P=O?T(b,k,O,R):T(b)),void 0!==P)return P;if(!v(b))return b;var G=g(b);if(G){if(P=h(b),!D)return s(b,P)}else{var U=d(b),V=U==L||"[object GeneratorFunction]"==U;if(m(b))return o(b,D);if(U==C||U==I||V&&!O){if(P=M||V?{}:p(b),!D)return M?c(b,i(P,b)):a(b,r(P,b))}else{if(!A[U])return O?b:{};P=f(b,U,D)}}R||(R=new e);var W=R.get(b);if(W)return W;R.set(b,P),E(b)?b.forEach(function(e){P.add(S(e,N,T,e,b,R))}):_(b)&&b.forEach(function(e,t){P.set(t,S(e,N,T,t,b,R))});var F=G?void 0:(x?M?u:l:M?y:w)(b);return t(F||b,function(e,t){F&&(e=b[t=e]),n(P,t,S(e,N,T,t,b,R))}),P}}function VP(){if(SP)return AP;SP=1;var e=gI(),t=wP?EP:(wP=1,EP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}),n=function(){if(CP)return LP;CP=1;var e=_I(),t=IP?yP:(IP=1,yP=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o});return LP=function(n,r){return r.length<2?n:e(n,t(r,0,-1))},LP}(),r=mI(),i=Object.prototype.hasOwnProperty;return AP=function(o,s){var a=-1,c=(s=e(s,o)).length;if(!c)return!0;for(;++a<c;){var l=r(s[a]);if("__proto__"===l&&!i.call(o,"__proto__"))return!1;if(("constructor"===l||"prototype"===l)&&a<c-1)return!1}var u=n(o,s);return null==u||delete u[r(t(s))]},AP}var WP=function(){if(RP)return OP;RP=1;var e=pI(),t=UP(),n=VP(),r=gI(),i=kR(),o=function(){if(kP)return TP;kP=1;var e=function(){if(NP)return bP;NP=1;var e=sc(),t=DP(),n=ac(),r=Function.prototype,i=Object.prototype,o=r.toString,s=i.hasOwnProperty,a=o.call(Object);return bP=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var c=s.call(i,"constructor")&&i.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==a}}();return TP=function(t){return e(t)?void 0:t}}(),s=SI(),a=xP(),c=s(function(s,c){var l={};if(null==s)return l;var u=!1;c=e(c,function(e){return e=r(e,s),u||(u=e.length>1),e}),i(s,a(s),l),u&&(l=t(l,7,o));for(var d=c.length;d--;)n(l,c[d]);return l});return OP=c}();const FP=t(WP);var jP,BP;const zP=t(function(){if(BP)return jP;BP=1;var e=pR();return jP=function(t,n){return e(t,n)}}());class HP extends Error{constructor(e,t){super(t),this.status=e,this.name="HTTPError"}}class qP extends HP{constructor(e,t,n){super(t,n),this.id=e,this.name="APIError"}}var QP=new WeakMap,$P=new WeakMap,YP=new WeakMap,JP=new WeakMap,KP=new WeakMap,XP=new WeakMap;class ZP extends wv.EventEmitter{constructor(...e){super(...e),Bo(this,QP,{}),Bo(this,$P,{}),Bo(this,YP,null),Bo(this,JP,null),Bo(this,KP,null),Bo(this,XP,async e=>{if(e.status>=400){const t=await e.json();throw new qP(t.id,e.status,t.message)}if(!e.ok)throw new Error("Failed to parse response, response not ok");return 204===e.status?null:await e.json()})}get _resource(){return console.warn("The _resource property is private and should not be accessed directly. It will soon be removed entirely. Please update your implementation to use only the public APIs."),jo($P,this)}get resource(){return jo($P,this)}url(){throw new Error("url() must be implemented")}id(){return this.field("id")}field(e){return(jo($P,this)||{})[e]}cache(e){zo($P,this,Yo(Yo({},jo($P,this)),e))}async fetch(){await Promise.allSettled([jo(YP,this),jo(JP,this),jo(KP,this)]);const e=await fetch(this.url(),{headers:FP(this.headers(),["Content-Type"])});return this.updateResource(await jo(XP,this).call(this,e))}async create(){zo(YP,this,(async()=>{const e=await fetch(this.url(),{method:"POST",headers:this.headers()});return this.updateResource(await jo(XP,this).call(this,e))})());try{return await jo(YP,this)}finally{zo(YP,this,null)}}async update(e){await Promise.allSettled([jo(JP,this)]),zo(JP,this,(async e=>{if(e&&Object.keys(e).length>0&&gR(jo($P,this),e,zP))return this;const t=await fetch(this.url(),{method:this.id()?"PUT":"POST",headers:this.headers(),body:JSON.stringify(e)});return this.updateResource(await jo(XP,this).call(this,t))})(e));try{return await jo(JP,this)}finally{zo(JP,this,null)}}async destroy(){zo(KP,this,(async()=>{const e=await fetch(this.url(),{method:"DELETE",headers:this.headers()});return this.updateResource(await jo(XP,this).call(this,e))})());try{return await jo(KP,this)}finally{zo(KP,this,null)}}updateResource(e){const t=this.clone();return zo($P,this,e||{}),this.emit("updated",this,t),this}clone(e){e&&zo($P,e,Yo({},jo($P,this)))}headers(){return Yo(Yo({},ZP.headers()),jo(QP,this))}setHeader(e,t){jo(QP,this)[e]=t}getHeader(e){return this.headers()[e]}static headers(){return xo(ZP,this,oD)._}static setHeader(e,t){oD._[e]=t}static getHeader(e){return oD._[e]}static set api(e){sD._=e}static get api(){return sD._}}var eD,tD,nD,rD,iD,oD={_:{}},sD={_:void 0},aD={};function cD(){if(tD)return eD;tD=1;var e=m(),t=g(),n=yt(),r=Ka(),i=Error.prototype.toString,o=t(function(){if(e){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==i.call(t))return!0}return"2: 1"!==i.call({message:1,name:2})||"Error"!==i.call({})});return eD=o?function(){var e=n(this),t=r(e.name,"Error"),i=r(e.message);return t?i?t+": "+i:t:i}:i,eD}function lD(){return rD?nD:(rD=1,nD={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}})}!function(){if(iD)return aD;iD=1;var e=jn(),t=_e(),n=$u(),r=g(),i=ur(),o=ce(),s=It().f,a=qt(),c=Ki(),l=it(),u=Xi(),d=yt(),h=cD(),f=Ka(),p=lD(),_=Za(),v=zt(),E=m(),w=Ze(),y="DOMException",I="DATA_CLONE_ERR",L=t("Error"),C=t(y)||function(){try{(new(t("MessageChannel")||n("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===I&&25===e.code)return e.constructor}}(),A=C&&C.prototype,S=L.prototype,b=v.set,N=v.getterFor(y),T="stack"in new L(y),k=function(e){return l(p,e)&&p[e].m?p[e].c:0},O=function(){u(this,R);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=k(n);if(b(this,{type:y,name:n,message:t,code:r}),E||(this.name=n,this.message=t,this.code=r),T){var i=new L(t);i.name=y,s(this,"stack",o(1,_(i.stack,1)))}},R=O.prototype=i(S),P=function(e){return{enumerable:!0,configurable:!0,get:e}},D=function(e){return P(function(){return N(this)[e]})};E&&(c(R,"code",D("code")),c(R,"message",D("message")),c(R,"name",D("name"))),s(R,"constructor",o(1,O));var M=r(function(){return!(new C instanceof L)}),x=M||r(function(){return S.toString!==h||"2: 1"!==String(new C(1,2))}),G=M||r(function(){return 25!==new C(1,"DataCloneError").code}),U=M||25!==C[I]||25!==A[I],V=w?x||G||U:M;e({global:!0,constructor:!0,forced:V},{DOMException:V?O:C});var W=t(y),F=W.prototype;for(var j in x&&(w||C===W)&&a(F,"toString",h),G&&E&&C===W&&c(F,"code",P(function(){return k(d(this).name)})),p)if(l(p,j)){var B=p[j],z=B.s,H=o(6,B.c);l(W,z)||s(W,z,H),l(F,z)||s(F,z,H)}}();var uD,dD={};!function(){if(uD)return dD;uD=1;var e=jn(),t=o(),n=_e(),r=ce(),i=It().f,s=it(),a=Xi(),c=Ja(),l=Ka(),u=lD(),d=Za(),h=m(),f=Ze(),p="DOMException",g=n("Error"),_=n(p),v=function(){a(this,E);var e=arguments.length,t=l(e<1?void 0:arguments[0]),n=l(e<2?void 0:arguments[1],"Error"),o=new _(t,n),s=new g(t);return s.name=p,i(o,"stack",r(1,d(s.stack,1))),c(o,this,v),o},E=v.prototype=_.prototype,w="stack"in new g(p),y="stack"in new _(1,2),I=_&&h&&Object.getOwnPropertyDescriptor(t,p),L=!(!I||I.writable&&I.configurable),C=w&&!L&&!y;e({global:!0,constructor:!0,forced:f||C},{DOMException:C?v:_});var A=n(p),S=A.prototype;if(S.constructor!==A)for(var b in f||i(S,"constructor",r(1,A)),u)if(s(u,b)){var N=u[b],T=N.s;s(A,T)||i(A,T,r(6,N.c))}}();var hD,fD={};function pD(e,t,n=Dq){const r=[null,`X-CobrowseSDKVersion=${n.version}`,"X-CobrowsePlatform=web",`X-CobrowseDevice=${n.deviceId()}`,`X-CobrowseLicense=${n.license}`].filter(Boolean).join("&"),i=new URL(e,n.api).toString().replace("https://","wss://").replace("http://","ws://");return new URL(`sockets/1/ws?${r}`,i).toString()}!function(){if(hD)return fD;hD=1;var e=_e(),t="DOMException";Zr()(e(t),t)}();class gD{constructor(e,t){this.rate=e,this.period=t,this._tracked=[]}limit(){const e=Date.now()-this.period;return this._tracked=this._tracked.filter(t=>t>e),!(this._tracked.length<this.rate&&(this._tracked.push(Date.now()),1))}}const mD="pointer",_D="scroll",vD="select",ED="keypress",wD="drawing",yD="arrows",ID="rectangles",LD="laser",CD="disappearing_ink",AD="full_device",SD="cursor",bD="universal",ND="highlight",TD=jl("cbio.Device"),kD="_cobrowse_device_id",OD="_cobrowse_device_registration";var RD=new WeakMap,PD=new WeakMap,DD=new WeakMap,MD=new WeakMap,xD=new WeakMap,GD=new WeakMap,UD=new WeakMap,VD=new WeakMap,WD=new WeakMap,FD=new WeakMap,jD=new WeakMap,BD=new WeakMap;class zD extends ZP{constructor(e){if(super(),Bo(this,RD,void 0),Bo(this,PD,void 0),Bo(this,DD,void 0),Bo(this,MD,!1),Bo(this,xD,void 0),Qo(this,"url",()=>new URL(`api/1/devices/${this.id()}`,zD.api).toString()),Qo(this,"reset",(e=!1)=>{TD("resetting device"),clearTimeout(jo(DD,this)),zo(DD,this,null),e||EE().removeItem(OD),jo(RD,this)&&(jo(RD,this).close(),zo(RD,this,null))}),Qo(this,"destroy",async()=>(TD("destroying device"),this.reset(),super.destroy())),Qo(this,"hasPendingUpdates",()=>{const e=this.field("custom_data")||{},t=jo(xD,this).customData||{};return!!Object.keys(t).find(n=>e[n]!==t[n])}),Bo(this,GD,()=>{if(!jo(xD,this).license)throw new Error("License required to generate storage key");return`${jo(xD,this).license}:${zD.api}`}),Qo(this,"_saveRegistration",()=>{const e=this.field("next_registration")||3600,t=(new Date).getTime();"number"!=typeof Date.now()&&console.error("Unexpected type returned for Date.now(), expecting number got "+typeof Date.now()),"number"!=typeof t&&console.error("Unexpected type for getTime() of Date, expecting number got "+typeof t);const n={notification_url:this.field("notification_url"),notification_token:this.field("notification_token"),custom_data:this.field("custom_data"),next_registration_time:t+1e3*e};return this.cache({next_registration_time:n.next_registration_time}),EE(jo(GD,this).call(this)).setItem(OD,n),this}),Qo(this,"_loadRegistration",()=>{if(jo(MD,this))return;zo(MD,this,!0);const e=EE(jo(GD,this).call(this)).getItem(OD);e&&(TD("restoring registration",e),this.cache(e))}),Qo(this,"updateRegistration",async e=>{if(jo(PD,this).limit())throw new Error("Cobrowse update rate limit exceeded. Maybe you're updating custom data too often?");return TD("updating registration"),await this.update({device:zD.info,custom_data:jo(xD,this).customData},e),jo(BD,this).call(this),this._saveRegistration(),this.emit("register"),this}),Qo(this,"runRegistrationLoop",async()=>{TD("starting registrations"),this._loadRegistration(),this.reset(!0),(this.hasPendingUpdates()||this.nextRegistration()<=0)&&await this.updateRegistration().catch(()=>{}),jo(BD,this).call(this),jo(UD,this).call(this)}),Qo(this,"pauseRegistrationLoop",async()=>{TD("pausing registrations"),this.reset(!0)}),Qo(this,"nextRegistration",()=>(this.field("next_registration_time")||0)-(new Date).getTime()),Qo(this,"clone",()=>{const e=new zD(jo(xD,this));return super.clone(e),e}),Qo(this,"_nextUpdate",(e=0)=>Math.max(Math.min(6e4*e,36e5),this.nextRegistration())),Bo(this,UD,(e=0)=>{if(jo(DD,this))return void console.error("CobrowseIO: tried to schedule registration while already scheduled");const t=this._nextUpdate(e);zo(DD,this,setTimeout(async()=>{if(!jo(DD,this))return console.error("Registration loop cancelled");try{return await this.updateRegistration(),zo(DD,this,!1),jo(UD,this).call(this)}catch(t){return console.warn("CobrowseIO: registration failed",t),zo(DD,this,!1),jo(UD,this).call(this,e+1)}},Math.max(1e3,t)))}),Bo(this,VD,()=>pD(this.field("notification_url"))),Bo(this,WD,()=>{const e=this.field("notification_token");return[`cbio.http.headers.authorization.bearer.${window.btoa(e).replaceAll("=","")}`]}),Bo(this,FD,()=>{jo(RD,this)||(zo(RD,this,new sA({getUrl:jo(VD,this),getProtocols:jo(WD,this)})),jo(RD,this).setMaxReconnectDelay(6e4),jo(RD,this).on("error",e=>{e&&console.warn("CobrowseIO notification socket error:",e)}),jo(RD,this).on("event",(e,t)=>{"notification"===e?this.emit("notification",t):"probe"===e&&jo(RD,this).send("alive",t)}),jo(RD,this).on("open",()=>{jo(RD,this).send("filter",{events:["probe","notification"]})}))}),Bo(this,jD,()=>{jo(RD,this)&&(console.log("CobrowseIO: Closing socket"),jo(RD,this).close(),zo(RD,this,null))}),Bo(this,BD,()=>{const e=this.field("notification_url"),t=this.field("notification_token");e&&t?jo(FD,this).call(this):jo(jD,this).call(this)}),TD("constructed"),!e)throw new Error("Device delegate is required");zo(xD,this,e),zo(PD,this,new gD(10,12e4))}id(){return zD.deviceId()}get customData(){return this.field("custom_data")||{}}static deviceCredentials(){let e=EE().getItem(kD)||{};return"string"==typeof e&&(e={id:e}),"object"!=typeof e&&(e={}),e.id||(e.id=lE()),e.token||(e.token=lE()),EE().setItem(kD,e),e}static deviceId(){return this.deviceCredentials().id}static deviceToken(){return this.deviceCredentials().token}static get info(){const e=[mD,_D,vD,ED,wD,yD,ID,CD,LD,SD,bD,ND,"calling"];return/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent)||e.push(AD),{platform:"web",device:window.navigator.userAgent,device_locale:window.navigator.language,device_timezone:window.Intl.DateTimeFormat().resolvedOptions().timeZone,os_version:window.navigator.platform,app_id:window.location.origin,app_name:window.document.title,app_build_configuration:"release",sdk_version:"3.24.0",capabilities:e}}}const HD=jl("cbio.Session");var qD=new WeakMap,QD=new WeakMap,$D=new WeakMap,YD=new WeakMap,JD=new WeakMap,KD=new WeakMap,XD=new WeakMap,ZD=new WeakMap,eM=new WeakMap,tM=new WeakMap,nM=new WeakMap,rM=new WeakMap,iM=new WeakMap;class oM extends ZP{constructor(e){if(super(),Bo(this,qD,void 0),Bo(this,QD,void 0),Bo(this,$D,{}),Bo(this,YD,e=>{this.setHeader("X-CobrowseDeviceToken",e)}),Bo(this,JD,()=>this.getHeader("X-CobrowseDeviceToken")),Qo(this,"activate",()=>(HD("activate session"),this.update({state:"active",device:zD.info,custom_data:jo(qD,this).customData}))),Qo(this,"end",()=>(HD("end session"),this.update({state:"ended"}))),Qo(this,"code",()=>this.field("code")),Qo(this,"state",()=>this.field("state")),Qo(this,"isActive",()=>"active"===this.state()),Qo(this,"isAuthorizing",()=>"authorizing"===this.state()),Qo(this,"isPending",()=>"pending"===this.state()),Qo(this,"isEnded",()=>"ended"===this.state()),Qo(this,"isVirtual",()=>!!this.field("virtual")),Qo(this,"redactionSelectors",()=>{const e=this.field("redaction_selectors");return Array.isArray(e)?e:[]}),Qo(this,"unredactionSelectors",()=>{const e=this.field("unredaction_selectors");return Array.isArray(e)?e:[]}),Qo(this,"agent",()=>this.field("agent")||!1),Qo(this,"agents",()=>this.field("agents")||[]),Qo(this,"requireConsent",()=>this.field("require_consent")),Qo(this,"endedReason",()=>this.field("ended_reason")),Qo(this,"fullDevice",()=>!0===this.field("full_device")||"on"===this.field("full_device")||"requested"===this.field("full_device")),Qo(this,"setFullDevice",e=>(jo(QD,this).toggle(["laser","drawing","disappearing_ink","arrows","rectangles","pointer","scroll","select","keypress","cursor"],"on"!==e),this.update({full_device:e}))),Qo(this,"update",e=>super.update(Yo({capabilities:jo(QD,this).toArray()},e))),Qo(this,"scale",()=>this.field("scale")||.5),Qo(this,"remoteControl",()=>this.field("remote_control")||"on"),Qo(this,"setRemoteControl",e=>this.update({remote_control:e})),Qo(this,"allowRemoteControl",()=>"on"===this.remoteControl()),Qo(this,"calling",()=>this.field("calling")),Qo(this,"setCalling",e=>this.update({calling:e})),Qo(this,"caller",()=>this.field("caller")),Qo(this,"updateResource",e=>{const t=this.isEnded();return super.updateResource(e),this.isEnded()&&!t&&(this.emit("ended",this),this.removeAllListeners()),this}),Qo(this,"clone",()=>{const e=new oM(jo(qD,this));return super.clone(e),e}),Bo(this,KD,OT(this,"setMetrics",(e={})=>{zo($D,this,Yo(Yo({},jo($D,this)),e)),this.emit("metrics.updated",this)})),Bo(this,XD,OT(this,"serialize",()=>Yo(Yo({},this.resource),{},{_locals:{token:jo(JD,this).call(this)}}))),Bo(this,ZD,OT(this,"serializeSanitized",()=>({state:this.resource.state,redaction_selectors:this.resource.redaction_selectors}))),Bo(this,eM,OT(this,"deserialize",e=>{const t=e._locals||{};return delete e._locals,t.token&&jo(YD,this).call(this,t.token),this.updateResource(e),this})),Bo(this,tM,OT(this,"compress",()=>`${this.resource.id}:${jo(JD,this).call(this)}`)),Bo(this,nM,OT(this,"decompress",e=>{const t=e.split(":");return jo(eM,this).call(this,{_locals:{token:t[t.length-1]},id:t.slice(0,-1).join(":")}),this})),Bo(this,rM,OT(this,"proxyToken",()=>this.field("proxy_token"))),Bo(this,iM,OT(this,"proxyUrl",()=>this.field("proxy_url"))),!e)throw new Error("Session delegate is required");zo(qD,this,e),zo(QD,this,new ZT(e.capabilities));const t=Math.ceil(Date.now()/36e5);jo(YD,this).call(this,fE(t+"",zD.deviceToken()))}get capabilities(){const e=this.field("capabilities");return null==e?jo(QD,this).toArray():jo(QD,this).toArray().filter(t=>null==e?void 0:e.includes(t))}url(){const e=this.id()||this.code();return new URL("api/1/sessions"+(e?`/${e}`:""),oM.api).toString()}get created(){return new Date(this.field("created"))}get expires(){return new Date(this.field("expires"))}get activated(){return this.field("activated")?new Date(this.field("activated")):null}get updated(){return this.field("updated")?new Date(this.field("updated")):null}get ended(){return this.field("ended")?new Date(this.field("ended")):null}get metrics(){return jo($D,this)}}const sM="_cobrowse_active_session",aM=jl("cbio.sessionStorage.ForwardingSessionStorage"),cM=function({window:e=window}={}){try{const t=new URL(e.location.href),n=t.searchParams.get(sM);return n?(aM("found forwarded session that can be loaded",n),t.searchParams.delete(sM),e.history.replaceState({},"",t)):aM("no forwarded session to load",t),n}catch(e){console.warn("Failed to attempt to extract forwarded session",e)}}();var lM=new WeakMap;class uM{constructor({activeSessionData:e=cM}={}){Bo(this,lM,void 0),zo(lM,this,e)}isSupported(e){const t=!!e.trustedOrigins.length;return aM("isSupported?",t),t}load(e){try{if(jo(lM,this))return aM("loading session",jo(lM,this)),new oM(e)[kT].decompress(jo(lM,this));aM("no session to load")}catch(e){aM("failed to load forwarded session",e)}return null}store(e,t){t||zo(lM,this,null)}reset(e){zo(lM,this,null)}}var dM=new WeakMap,hM=new WeakMap;class fM extends TT{constructor(e,t){super(),Bo(this,dM,void 0),Bo(this,hM,void 0),zo(dM,this,cA(t.trustedOrigins)),zo(hM,this,()=>e[kT].compress())}get type(){return yT}shouldHandleEvent(e){return!0}shouldHandle(e){const t=new URL(e,window.location.origin);return jo(dM,this).call(this,t.origin)}handle(e){const t=function(e,t,{window:n=window}={}){try{const r=new URL(e);return r.origin===n.location.origin?(aM("not rewriting url because we are not changing origin",r.toString()),e):(r.searchParams.set(sM,t),aM("rewriting trusted url for an active session",{from:e,to:r.toString()}),"string"==typeof e?r.toString():r)}catch(t){return aM("failed rewriting url",t),e}}(e,jo(hM,this).call(this));return{rewrittenUrl:t}}}const pM=jl("cbio.FrameLoop");class gM{constructor(){Qo(this,"isRunning",()=>this._running),Qo(this,"setSource",async e=>{if(e.constructor!==(this.source&&this.source.constructor))if(this.isRunning()){this.source&&this.source.capturingWillStop(),this.source=e;try{await this.source.capturingWillStart(),this.invalidateFrame()}catch(e){console.error(e)}}else this.source=e;else pM("frame source type not changed")}),Qo(this,"getSource",()=>this.source),Qo(this,"start",async()=>{pM("starting frame loop in",document),this.isRunning()||(this._running=!0,this.source.capturingWillStart())}),Qo(this,"stop",()=>{this.isRunning()&&(this.source.capturingWillStop(),this._running=!1)}),Qo(this,"invalidateFrame",()=>{if(!this.isRunning())throw new Error("FrameLoop was destroyed");pM("invalidate frame in",document),this.source&&this.source.reset()}),Qo(this,"destroy",()=>{pM("destroying frame loop in",document),this.stop(),this.source&&(this.source.destroy(),this.source=null)}),pM("FrameLoop constructed in",document),this._running=!1}}const mM=(e,t)=>{try{t()}catch(t){console.warn("CobrowseIO: failed to apply tap",e,t)}};class _M extends wv.EventEmitter{constructor(){super(),Qo(this,"windows",new Set),Qo(this,"tap",e=>{if(this.windows.has(e))return;this.windows.add(e);const t=this;mM("history.pushState",()=>{const n=e.history.pushState.bind(e.history);e.history.pushState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),mM("history.replaceState",()=>{const n=e.history.replaceState.bind(e.history);e.history.replaceState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),mM("CSSStyleSheet.insertRule",()=>{const{insertRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.insertRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),mM("CSSStyleSheet.deleteRule",()=>{const{deleteRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.deleteRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),mM("CSSStyleSheet.replace",()=>{const{replace:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replace=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),mM("CSSStyleSheet.replaceSync",()=>{const{replaceSync:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replaceSync=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),mM("Element.attachShadow",()=>{const{attachShadow:n}=e.Element.prototype;e.Element.prototype.attachShadow=function(e){const r=n.bind(this)(e);return t.emit("attachshadow",r),r}});const n=e=>{Object.getOwnPropertyNames(e.prototype).forEach(n=>{try{if("function"!=typeof e.prototype[n])return}catch(e){return}const r=e.prototype[n];e.prototype[n]=function(){return this.canvas.__cbio_emit_change||(this.canvas.__cbio_emit_change=dc(e=>t.emit("canvaschange",e),500,{leading:!1,trailing:!0})),this.canvas.__cbio_emit_change(this.canvas),r.apply(this,arguments)}})};mM("CanvasRenderingContext2D",()=>n(e.CanvasRenderingContext2D)),mM("WebGLRenderingContext",()=>n(e.WebGLRenderingContext)),e.WebGL2RenderingContext&&mM("WebGL2RenderingContext",()=>n(e.WebGL2RenderingContext)),mM("HTMLSelectElement.value",()=>{A_(e.HTMLSelectElement.prototype,"value",void 0,(e,n)=>(t.emit("selectchange",e),n))}),mM("HTMLSelectElement.selectedIndex",()=>{A_(e.HTMLSelectElement.prototype,"selectedIndex",void 0,(e,n)=>(t.emit("selectchange",e),n))}),mM("HTMLOptionElement.selected",()=>{A_(e.HTMLOptionElement.prototype,"selected",void 0,(e,n)=>{const r=e.closest("select");return r&&t.emit("selectchange",r),n})})}),Qo(this,"untap",()=>{}),this.setMaxListeners(200)}}const vM=new _M;class EM{constructor(e){Qo(this,"_init",()=>{this._propertyWatcher||(this._propertyWatcher=new pv(this._onPropertySet),vM.on("stylechange",this._onStyleSheetChange),vM.on("navigate",this._onNavigation),vM.on("canvaschange",this._onCanvasChange),vM.on("selectchange",this._onSelectChange))}),Qo(this,"observe",e=>{if(this._observing.has(e))return;this._init();const{value:t=e.addEventListener}=Object.getOwnPropertyDescriptor(FI.prototype,"addEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),Iv.track(e),VL.track(e),FA.track(e),this._observing.add(e);const n=(e.ownerDocument||e).defaultView;n&&!this._windows.has(n)&&(this._windows.add(n),vM.tap(n),FA.tap(n),this._propertyWatcher.observe(n.HTMLInputElement,"value"),this._propertyWatcher.observe(n.HTMLInputElement,"checked"),this._propertyWatcher.observe(n.HTMLTextAreaElement,"value"),this._propertyWatcher.observe(n.ShadowRoot,"adoptedStyleSheets"),this._propertyWatcher.observe(n.Document,"adoptedStyleSheets"),n.addEventListener&&(n.addEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),n.addEventListener("resize",this._onEvent,{capture:!0,passive:!0})))}),Qo(this,"disconnect",()=>{this._observing.forEach(e=>{const{value:t=e.removeEventListener}=Object.getOwnPropertyDescriptor(FI.prototype,"removeEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),Iv.untrack(e),VL.untrack(e),FA.untrack(e)}),this._observing.clear(),this._windows.forEach(e=>{vM.untap(e),FA.untap(e),e&&!hv(e)&&e.removeEventListener&&(e.removeEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),e.removeEventListener("resize",this._onEvent,{capture:!0,passive:!0}))}),this._windows.clear(),this._propertyWatcher&&(this._propertyWatcher.disconnect(),this._propertyWatcher=null,vM.off("stylechange",this._onStyleSheetChange),vM.off("navigate",this._onNavigation),vM.off("canvaschange",this._onCanvasChange),vM.off("selectchange",this._onSelectChange))}),Qo(this,"_getActualTarget",e=>{const{get:t}=Object.getOwnPropertyDescriptor(WI.prototype,"target");return t.apply(e)}),Qo(this,"_target",e=>{const t=this._getActualTarget(e);return t&&t.document||t}),Qo(this,"_onEvent",(e,t={})=>{this._onModification(this._target(e),Yo(Yo({},t),{},{type:e.type}))}),Qo(this,"_onSelectionEvent",e=>{var t;const n=this._getActualTarget(e),r=null!==(t=n.ownerDocument)&&void 0!==t?t:n;var i;r.__last_agent_selection_ts>Date.now()-100||("selectionchange"===e.type&&(["INPUT","TEXTAREA"].includes(null===(i=r.activeElement)||void 0===i?void 0:i.tagName)?(r.activeElement.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(r.activeElement,{type:e.type})):(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type}))),"select"===e.type&&(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type})))}),Qo(this,"_onStyleSheetChange",e=>{e.ownerNode&&this._onModification(e.ownerNode,{type:"stylesheet"});for(const n of this._observing){var t;null!==(t=n.adoptedStyleSheets)&&void 0!==t&&t.includes(e)&&this._onModification(n,{type:"adoptedstylesheet"})}}),Qo(this,"_onNavigation",e=>{this._onModification(e.document,{type:"navigation"})}),Qo(this,"_onCanvasChange",e=>{this._onModification(e,{type:"canvas"})}),Qo(this,"_onSelectChange",e=>{this._onModification(e,{type:"select",recursive:!0})}),Qo(this,"_onFocusChange",e=>{const t=this._getActualTarget(e);null!=t&&(this._onModification(t,{type:e.type}),t.ownerDocument&&this._onModification(t.ownerDocument,{type:e.type}))}),Qo(this,"_onInputEvent",e=>{const t=this._getActualTarget(e);"SELECT"===t.tagName||"TEXTAREA"===t.tagName?this._onModification(this._target(e),{recursive:!0,type:e.type}):"INPUT"===t.tagName&&("radio"===t.type&&t.name?(t.closest("form")||t.ownerDocument).querySelectorAll(`input[type=radio][name="${t.name}"]`).forEach(t=>this._onModification(t,{type:e.type})):this._onModification(this._target(e),{recursive:!0,type:e.type}))}),Qo(this,"_onPropertySet",e=>{this._onModification(e,{type:"property"})}),this._onModification=(...t)=>setTimeout(()=>e(...t),0),this._observing=new Set,this._windows=new Set}}const wM=jl("cbio.NodeScheduler");var yM=new WeakMap,IM=new WeakMap,LM=new WeakMap,CM=new WeakMap,AM=new WeakMap,SM=new WeakMap,bM=new WeakMap,NM=new WeakMap,TM=new WeakSet,kM=new WeakMap;class OM{constructor(e){qo(this,TM),Bo(this,yM,null),Bo(this,IM,null),Bo(this,LM,null),Bo(this,CM,0),Bo(this,AM,null),Bo(this,SM,new Map),Bo(this,bM,!1),Bo(this,NM,null),Bo(this,kM,()=>{if(!jo(bM,this))return;if(!jo(SM,this).size)return void zo(IM,this,setTimeout(jo(kM,this),1e3));jo(LM,this)||(zo(LM,this,jo(SM,this).entries()),zo(CM,this,jo(SM,this).size),zo(AM,this,performance.now()));let e=0,t=!1;for(;e<50;){var n;const r=null===(n=jo(LM,this))||void 0===n?void 0:n.next();if(!r||null!=r&&r.done){t=!0;break}const[i,{checkReady:o,serializerOptions:s}]=r.value;xo(TM,this,DM).call(this,i,o,s),e++}if(!t)return void zo(yM,this,requestAnimationFrame(jo(kM,this)));const r=Math.round(performance.now()-jo(AM,this));wM(`Took ${r}ms to process queue with size of ${jo(CM,this)}`),zo(LM,this,null),zo(CM,this,0),zo(AM,this,null),zo(IM,this,setTimeout(jo(kM,this),Math.max(1e3-r,0)))}),zo(NM,this,e)}getScheduledAncestor(e){if(jo(SM,this).has(e))return e;for(const t of jo(SM,this).keys())if(t.contains(e))return t;return null}tryScheduleElement(e,t,n){return!!jo(SM,this).has(e)||(jo(SM,this).size>1e3?(wM("reached queue size limit, skipping scheduling of node"),!1):(jo(SM,this).set(e,{checkReady:t,serializerOptions:n}),jo(bM,this)||xo(TM,this,RM).call(this),!0))}unscheduleElement(e){jo(SM,this).delete(e),jo(SM,this).size||xo(TM,this,PM).call(this)}destroy(){wM("destroy()"),xo(TM,this,PM).call(this),jo(SM,this).clear()}}function RM(){wM("start()"),zo(bM,this,!0),zo(yM,this,requestAnimationFrame(jo(kM,this)))}function PM(){wM("stop()"),zo(bM,this,!1),jo(yM,this)&&cancelAnimationFrame(jo(yM,this)),zo(yM,this,null),jo(IM,this)&&clearTimeout(jo(IM,this)),zo(IM,this,null),zo(LM,this,null),zo(CM,this,0),zo(AM,this,null)}function DM(e,t,n){var r;e.isConnected?t(e)&&(wM("scheduling node to be sent",e),this.unscheduleElement(e),null===(r=jo(NM,this))||void 0===r||r.call(this,e,n)):jo(SM,this).delete(e)}function MM(e){return"none"!==getComputedStyle(e).display}const xM=jl("cbio.PatchStream");var GM,UM,VM=new WeakMap;class WM extends wv.EventEmitter{constructor(e,t={}){var n;super(),Bo(this,VM,{includeVisibility:!1}),Qo(this,"start",()=>{xM("starting patch stream for",this._root),this._documents=new Set,this._iframeBridge.on("patch",this._onXDocIframeUpdate),performance.mark("cb:patch-stream-observe-start"),this._observe(this._root),performance.mark("cb:patch-stream-observe-end"),performance.measure("cb:patch-stream-observe","cb:patch-stream-observe-start","cb:patch-stream-observe-end"),vM.on("attachshadow",this._onAttachShadow)}),Qo(this,"_serializeWithScheduling",(e,t,n)=>{var r;if(!(r=e)||1!==r.nodeType||!r.isConnected||r.ownerDocument.head.contains(r)||null===r.firstElementChild||MM(e)||!function(e){var t;let n=0;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);if(!r)return!1;for(;r.nextNode();)if(n++,n>5)return!0;return!1}(e))return lL.serialize(e,t,n);if(!this._nodeScheduler.tryScheduleElement(e,MM,n))return lL.serialize(e,t,n);const i=Yo(Yo({},n),{},{skipChildren:!0,forceHidden:!0});return t([]),lL.serialize(e,t,i)}),Qo(this,"partialSync",e=>{const t=PI.getById(e);t&&this.emit("patch",{_t:"partialsync",modified:[lL.serialize(t,void 0,jo(VM,this))]})}),Qo(this,"stop",()=>{xM("stopping patch stream for",this._root),this._eventObserver.disconnect(),this._mutationObserver.disconnect(),this._iframeBridge.removeListener("patch",this._onXDocIframeUpdate),this._documents&&this._documents.clear(),this._documents=null,vM.off("attachshadow",this._onAttachShadow)}),Qo(this,"destroy",()=>{xM("destroying patch stream for",this._root),this.stop(),this.removeAllListeners(),qI.depthFirst(this._root,this._untrack),this._mutationObserver=null,this._eventObserver=null,this._iframeBridge=null,this._root=null,this._nodeScheduler.destroy(),this._nodeScheduler=null}),Qo(this,"_track",e=>{RI.isDOMNode(e)&&(PI.track(e),e.nodeType===window.Node.DOCUMENT_NODE&&this._observe(e),e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&this._observe(e),"IFRAME"===e.tagName&&(this._iframeBridge.track(e),e.removeEventListener("load",this._onIframeLoad,{capture:!0}),e.addEventListener("load",this._onIframeLoad,{capture:!0})))}),Qo(this,"_untrack",e=>{PI.forget(e),RI.isDOMNode(e)&&"IFRAME"===e.tagName&&(e.removeEventListener("load",this._onIframeLoad,{capture:!0}),this._iframeBridge.remove(e))}),Qo(this,"_onAttachShadow",e=>{const t=e.host;PI.get(t)&&(YI.isRedacted(t)||(this._observe(e),qI.isIgnored(t)||this.emit("patch",{_t:"attachshadow",modified:[lL.serialize(t,void 0,jo(VM,this)),qI.depthFirstMapped(e,(e,t)=>lL.serialize(e,t,jo(VM,this)))]})))}),Qo(this,"_onXDocIframeUpdate",(e,{iframe:t})=>{xM("xdoc iframe updated",t,e),t&&(YI.isRedacted(t)||qI.isIgnored(t)||(t.__document_id=e.document_id,this.emit("patch",{_t:"xdociframeupdate",modified:[lL.serialize(t,void 0,jo(VM,this)),...e.patch]})))}),Qo(this,"_onIframeLoad",({target:e})=>{xM("iframe loaded",e),YI.isRedacted(e)||(hv(e)||this._observe(e.contentWindow.document),this._iframeBridge.track(e),qI.isIgnored(e)||this.emit("patch",{_t:"iframeupdate",modified:[qI.depthFirstMapped(e,(e,t)=>lL.serialize(e,t,jo(VM,this)))]}))}),Qo(this,"_onEventMutation",(e,t={})=>{if(!this._eventObserver)return;if(this._mutationObserver&&this._onDOMChange(this._mutationObserver.takeRecords()),"TEXTAREA"===e.tagName&&qI.depthFirst(e,this._track),!PI.get(e))return;if(YI.isRedacted(e))return;if(qI.isIgnored(e))return;const n=Yo(Yo({},jo(VM,this)),{},{rasterizeCanvas:"canvas"===t.type});this.emit("patch",{_t:`eventmutation:${t.type}`,modified:[(()=>{var r;const i=null===(r=this._nodeScheduler)||void 0===r?void 0:r.getScheduledAncestor(e);i&&this._nodeScheduler.unscheduleElement(i);const o=i||e,s=Boolean(i),a=s||t.recursive?qI.depthFirstMapped(o,(e,t)=>this._serializeWithScheduling(e,t,n)):lL.serialize(o,void 0,n);return s&&a.attributes&&void 0===a.attributes.style&&(a.attributes.style=""),a})()]})}),Qo(this,"_getModifications",e=>{const t=new Set,n=new Set,r=new Set;return e.forEach(e=>{("characterData"===e.type||n.has(e.target)||PI.get(e.target))&&function(e,t,n,r){const i=new Set(e.addedNodes?[].slice.call(e.addedNodes):[]);r.has(e.target)||t.add(e.target);for(const e of i)qI.depthFirst(e,e=>{t.add(e),r.delete(e),n.add(e)});e.removedNodes&&[].slice.call(e.removedNodes).forEach(e=>{qI.depthFirst(e,e=>{t.delete(e),n.delete(e),r.add(e)})})}(e,n,r,t)}),t.forEach(e=>this._untrack(e)),n.forEach(e=>this._track(e)),{added:r,modified:n,removed:t}}),Qo(this,"_onDOMChange",e=>{const{added:t,modified:n,removed:r}=this._getModifications(e),i=YI.notifyChanges(e,t,n,r),o=XI.notifyChanges(e,t,n,r),s=new Map,a=[...n,...i,...o];for(const e of a){var c;const t=null===(c=this._nodeScheduler)||void 0===c?void 0:c.getScheduledAncestor(e);t&&this._nodeScheduler.unscheduleElement(t);const n=t||e,r=Boolean(t)||o.has(e),i=s.get(n);(void 0===i||!i&&r)&&s.set(n,r)}if(0===s.size)return;xM("DOM changed",s);const l=[];for(const[e,t]of s){const n=t?qI.depthFirstMapped(e,(e,t)=>this._serializeWithScheduling(e,t,jo(VM,this))):lL.serialize(e,void 0,jo(VM,this));n&&(t&&n.attributes&&void 0===n.attributes.style&&(n.attributes.style=""),l.push(n))}xM("DOM changes serialized",l),this.emit("patch",{_t:"domchange",modified:l})}),Qo(this,"_onScheduledNodeReady",(e,t)=>{xM("scheduled element ready",e);const n=qI.depthFirstMapped(e,(e,n)=>lL.serialize(e,n,t));this.emit("patch",{_t:"scheduled",modified:[n]})}),this._root=e,jo(VM,this).includeVisibility=null!==(n=t.includeVisibility)&&void 0!==n&&n,this._mutationObserver=new VI(this._onDOMChange),this._eventObserver=new EM(this._onEventMutation),this._nodeScheduler=new OM(this._onScheduledNodeReady),this._iframeBridge=QU}forceUpdate(){xM("forcing entire state update from",this._root);const e=Yo(Yo({},jo(VM,this)),{},{rasterizeCanvas:!0});performance.mark("cb:serialize-head-start");const t=Yo(Yo({},lL.serialize(this._root,void 0,jo(VM,this))),{},{scroll:void 0,childNodes:[Yo(Yo({},lL.serialize(this._root.documentElement,void 0,jo(VM,this))),{},{childNodes:[qI.depthFirstMapped(this._root.head,(e,t)=>lL.serialize(e,t,jo(VM,this)))]})]});performance.mark("cb:serialize-head-end"),performance.measure("cb:serialize-head","cb:serialize-head-start","cb:serialize-head-end"),this.emit("patch",{_t:"pre-force",flush:!0,modified:[t]}),performance.mark("cb:serialize-body-start");const n=qI.depthFirstMapped(this._root,(t,n)=>this._serializeWithScheduling(t,n,e));performance.mark("cb:serialize-body-end"),performance.measure("cb:serialize-body","cb:serialize-body-start","cb:serialize-body-end"),this.emit("patch",{_t:"forced",flush:!0,modified:[n]})}_observe(e){if(e.nodeType!==window.Node.DOCUMENT_NODE&&e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE)throw new Error(`CobrowseIO: observed a non-document or fragment node (type=${e.nodeType})`);if(!this._documents.has(e)){xM("starting observation of",e),this._documents.add(e),xM("doing initial node tracking on observe for",e),qI.depthFirst(e,this._track),this._eventObserver.observe(e);try{this._mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}catch(t){console.error("CobrowseIO failed to start mutation observer for",e)}}}}var FM=(UM||(UM=1,GM=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}),GM);const jM=t(FM);class BM{constructor(e){this._id=e,this.reset()}_difference(e,t){if(!t)return Yo({},e);const n={};for(const[r,i]of Object.entries(e))jM(i,t[r])||(n[r]=i);return n}compress(){const e=[],t=Object.values(this.modified);for(let n=0;n<t.length;n++){const r=t[n],i=this.state.node(r.id),o=this._difference(r,this._flatten(i||{}));Object.keys(o).length>0&&(o.id=r.id,e.push(o))}return e}mark(){return this.state.applyPatch(Object.values(this.modified)),this.modified={},this}_flatten(e){return e.childNodes?Yo(Yo({},e),{},{childNodes:e.childNodes.map(e=>({id:e.id}))}):e}push(e){if(!e||!e.modified)return console.error("invalid patch",e),this;for(const t of e.modified)t&&sv(t,e=>{this.modified[e.id]=Yo(Yo({},this.modified[e.id]),this._flatten(e))});return this}reset(e){return this.state=new uv(this._id),this.modified={},e&&this.push({_t:"reset",modified:[e]}),this}}const zM=jl("cbio.DOMFrameSource");var HM=new WeakMap;class qM{constructor(e,t={}){Bo(this,HM,{}),Qo(this,"_throttleCompressAndEmitFrame",dc(()=>this._compressAndEmitFrame(),110)),Qo(this,"capturingWillStart",()=>{if(zM("capturingWillStart for DOMFrameSource in",document),this._sendInterval)throw new Error("DOMFrameSource already running");this._compression||(this._compression=new BM(PI.track(document))),this._patchStream||(this._patchStream=new WM(document,jo(HM,this))),NE.on("activate",this.reset),this._patchStream.on("patch",e=>{this._compression.push(e),e.flush?this._compressAndEmitFrame():this._throttleCompressAndEmitFrame()}),this._sendInterval=setInterval(()=>this._compressAndEmitFrame(),500),this._patchStream.start()}),Qo(this,"capturingWillStop",()=>{zM("capturingWillStop for DOMFrameSource in",document),NE.removeListener("activate",this.reset),this._sendInterval&&(clearInterval(this._sendInterval),this._sendInterval=null),this._patchStream&&(this._patchStream.destroy(),this._patchStream=null),this._compression&&(this._compression.reset(),this._compression=null)}),Qo(this,"setCodecs",e=>{}),Qo(this,"reset",()=>{zM("resetting DOMFrameSource in",document),setTimeout(()=>{var e,t;null===(e=this._compression)||void 0===e||e.reset(),null===(t=this._patchStream)||void 0===t||t.forceUpdate()},0)}),Qo(this,"destroy",()=>{zM("destroying DOMFrameSource in",document),this.capturingWillStop(),this._onUpdate=null}),Qo(this,"partialSync",e=>{var t;null===(t=this._patchStream)||void 0===t||t.partialSync(e)}),zM("DOMFrameSource constructed in",document),this._onUpdate=e,zo(HM,this,t)}setOptions(e){zo(HM,this,e)}_compressAndEmitFrame(){if(!this._compression)return;if(!document||!PI.get(document))return;const e=this._compression.compress();e.length&&this._onUpdate({document_id:PI.get(document),patch:e})&&this._compression.mark()}}class QM{constructor(){this.videoTrack={},this.audioTrack={}}}class $M{}Qo($M,"Error","error"),Qo($M,"MediaInfo","media-info"),Qo($M,"MediaPacket","media-packet");const YM=Ev(),JM={timerInterval:100,logCallback:null};class KM extends YM{constructor(e,t){super(),this.options=t?Yo(Yo({},JM),t):JM,this.mediaRecorder=e,this.mediaInfo=new QM,this.mediaRecorder.addEventListener("dataavailable",async e=>{this.addBlob(e.data)}),this.mediaRecorder.addEventListener("error",e=>{this.emit($M.Error,e.error)})}start(){this.mediaRecorder.start(),"function"==typeof this.mediaRecorder.requestData?this.timer=window.setInterval(()=>{this.mediaRecorder.requestData()},this.options.timerInterval):this.timer=window.setTimeout(()=>{this.mediaRecorder.stop()},this.options.timerInterval)}stop(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop(),this.timer&&(clearInterval(this.timer),this.timer=null)}static isSupported(e){return"undefined"!=typeof MediaRecorder&&"function"==typeof MediaRecorder.prototype.requestData&&"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported(e)}}class XM{}function ZM(e,t){const n=function(e){for(var t=7;t>3;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element id")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current;for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.id=r,t.idLength=n,!0}Qo(XM,"Ebml",440786851),Qo(XM,"EbmlVersion",17030),Qo(XM,"EbmlReadVersion",17143),Qo(XM,"EbmlMaxIdLength",17138),Qo(XM,"EbmlMaxSizeLength",17139),Qo(XM,"DocType",17026),Qo(XM,"DocTypeVersion",17031),Qo(XM,"DocTypeReadVersion",17029),Qo(XM,"Void",236),Qo(XM,"Segment",408125543),Qo(XM,"SeekHead",290298740),Qo(XM,"Seek",19899),Qo(XM,"SeekID",21419),Qo(XM,"SeekPosition",21420),Qo(XM,"Info",357149030),Qo(XM,"TimestampScale",2807729),Qo(XM,"Duration",17545),Qo(XM,"DateUTC",17505),Qo(XM,"Title",31657),Qo(XM,"MuxingApp",19840),Qo(XM,"WritingApp",22337),Qo(XM,"Cluster",524531317),Qo(XM,"Timestamp",231),Qo(XM,"SimpleBlock",163),Qo(XM,"SegmentUID",29604),Qo(XM,"Tracks",374648427),Qo(XM,"TrackEntry",174),Qo(XM,"TrackNumber",215),Qo(XM,"TrackUID",29637),Qo(XM,"TrackType",131),Qo(XM,"FlagEnabled",185),Qo(XM,"FlagDefault",136),Qo(XM,"FlagForced",21930),Qo(XM,"FlagLacing",156),Qo(XM,"MinCache",28135),Qo(XM,"MaxBlockAdditionID",21998),Qo(XM,"CodecID",134),Qo(XM,"CodecDecodeAll",170),Qo(XM,"SeekPreRoll",22203),Qo(XM,"Video",224),Qo(XM,"FlagInterlaced",154),Qo(XM,"PixelWidth",176),Qo(XM,"PixelHeight",186),Qo(XM,"DefaultDuration",2352003),Qo(XM,"TrackTimestampScale",2306383),Qo(XM,"CodecName",2459272),Qo(XM,"CodecPrivate",25506),Qo(XM,"Audio",225),Qo(XM,"SamplingFrequency",181),Qo(XM,"Channels",159),Qo(XM,"Cues",475249515),Qo(XM,"CuePoint",187),Qo(XM,"CueTime",179),Qo(XM,"CueTrackPositions",183),Qo(XM,"CueTrack",247),Qo(XM,"CueClusterPosition",241),Qo(XM,"CueRefTime",150),Qo(XM,"CueBlockNumber",21368),Qo(XM,"Position",167),Qo(XM,"Colour",21936);class ex{}function tx(e){switch(e){case XM.Segment:case XM.Ebml:case XM.SeekHead:case XM.Seek:case XM.Cluster:case XM.Info:case XM.Tracks:case XM.TrackEntry:case XM.Video:case XM.Audio:case XM.Cues:case XM.CuePoint:case XM.CueTrackPositions:case XM.Colour:return ex.Master;case XM.EbmlVersion:case XM.EbmlReadVersion:case XM.EbmlMaxIdLength:case XM.EbmlMaxSizeLength:case XM.DocTypeVersion:case XM.DocTypeReadVersion:case XM.SeekPosition:case XM.TimestampScale:case XM.Timestamp:case XM.TrackNumber:case XM.TrackUID:case XM.TrackType:case XM.FlagEnabled:case XM.FlagDefault:case XM.FlagForced:case XM.FlagLacing:case XM.MinCache:case XM.MaxBlockAdditionID:case XM.CodecDecodeAll:case XM.SeekPreRoll:case XM.FlagInterlaced:case XM.PixelWidth:case XM.PixelHeight:case XM.DefaultDuration:case XM.Channels:case XM.CueTime:case XM.CueTrack:case XM.CueClusterPosition:case XM.CueRefTime:case XM.CueBlockNumber:case XM.Position:return ex.UnsignedInteger;case XM.DocType:case XM.CodecID:return ex.String;case XM.Void:case XM.SeekID:case XM.SimpleBlock:case XM.SegmentUID:case XM.CodecPrivate:return ex.Binary;case XM.Duration:case XM.TrackTimestampScale:case XM.SamplingFrequency:return ex.Float;case XM.DateUTC:return ex.Date;case XM.Title:case XM.MuxingApp:case XM.WritingApp:case XM.CodecName:return ex.Utf8String;default:throw Error(`cannot determine type of unknown ebml element with id ${e}`)}}function nx(e){let t=0;return e.forEach(e=>{t=t<<8|e}),t}Qo(ex,"Unknown",0),Qo(ex,"Master",1),Qo(ex,"UnsignedInteger",2),Qo(ex,"SignedInteger",3),Qo(ex,"String",4),Qo(ex,"Utf8String",5),Qo(ex,"Binary",6),Qo(ex,"Float",7),Qo(ex,"Date",8);class rx{constructor(){this.array=null,this.current=null,this.offset=0}addArray(e){if(null!=e&&0!=e.length)if(this.bytesToSkip>=e.length)this.bytesToSkip-=e.length;else{if(this.bytesToSkip&&(e=e.slice(this.bytesToSkip)),this.array){let t=new Uint8Array(this.array.length-this.offset+e.length);t.set(this.offset?this.array.slice(this.offset):this.array,0),t.set(e,this.array.length-this.offset),this.array=t,this.offset=0}else this.array=e;this.current=this.array[0]}}checkBounds(){if(this.offset===this.array.length)this.offset=0,this.current=null,this.array=null;else{if(!(this.offset<this.array.length))throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.current=this.array[this.offset]}}next(){return this.array?(this.offset++,this.checkBounds(),this.current):null}nextUnsafe(){return this.offset++,this.current=this.array[this.offset],this.current}get bytesAvailable(){return this.array?this.array.length-this.offset:0}trim(){if(this.array)if(this.offset<this.array.length)this.array=this.array.slice(this.offset),this.offset=0,this.current=this.array[0];else{if(this.offset>this.array.length)throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.array=null,this.offset=0,this.current=null}}extract(e){if(this.bytesAvailable>=e){const t=this.offset;let n=this.array.slice(t,t+e);return this.offset+=e,this.current=this.array[this.offset],this.checkBounds(),n}return null}skip(e){if(this.bytesAvailable>=e)return this.offset+=e,this.current=this.array[this.offset],void this.checkBounds();e-=this.bytesAvailable,this.array=null,this.offset=0,this.current=null,this.bytesToSkip=e}}class ix{get elementSize(){return this.idLength+this.sizeLength+this.size}get id(){return this._id}set id(e){this._id=e,this.name=function(e){switch(e){case XM.Ebml:return"EBML";case XM.EbmlVersion:return"EBMLVersion";case XM.EbmlReadVersion:return"EBMLReadVersion";case XM.EbmlMaxIdLength:return"EBMLMaxIDLength";case XM.EbmlMaxSizeLength:return"EBMLMaxSizeLength";case XM.DocType:return"DocType";case XM.DocTypeVersion:return"DocTypeVersion";case XM.DocTypeReadVersion:return"DocTypeReadVersion";case XM.Void:return"Void";case XM.Segment:return"Segment";case XM.SeekHead:return"SeekHead";case XM.Seek:return"Seek";case XM.SeekID:return"SeekID";case XM.SeekPosition:return"SeekPosition";case XM.Info:return"Info";case XM.TimestampScale:return"TimestampScale";case XM.Duration:return"Duration";case XM.DateUTC:return"DateUTC";case XM.Title:return"Title";case XM.MuxingApp:return"MuxingApp";case XM.WritingApp:return"WritinApp";case XM.Cluster:return"Cluster";case XM.Timestamp:return"Timestamp";case XM.SimpleBlock:return"SimpleBlock";case XM.SegmentUID:return"SegmentUID (unsupported by WebM)";case XM.Tracks:return"Tracks";case XM.TrackEntry:return"TrackEntry";case XM.TrackNumber:return"TrackNumber";case XM.TrackUID:return"TrackUID";case XM.TrackType:return"TrackType";case XM.FlagEnabled:return"FlagEnabled";case XM.FlagDefault:return"FlagDefault";case XM.FlagForced:return"FlagForced";case XM.FlagLacing:return"FlagLacing";case XM.MinCache:return"MinCache";case XM.MaxBlockAdditionID:return"MaxBlockAdditionID";case XM.CodecID:return"CodecID";case XM.CodecDecodeAll:return"CodecDecodeAll";case XM.SeekPreRoll:return"SeekPreRoll";case XM.Video:return"Video";case XM.FlagInterlaced:return"FlagInterlaced";case XM.PixelWidth:return"PixelWidth";case XM.PixelHeight:return"PixelHeight";case XM.DefaultDuration:return"DefaultDuration";case XM.TrackTimestampScale:return"TrackTimestampScale";case XM.CodecName:return"CodecName";case XM.CodecPrivate:return"CodecPrivate";case XM.Audio:return"Audio";case XM.SamplingFrequency:return"SamplingFrequency";case XM.Channels:return"Channels";case XM.Cues:return"Cues";case XM.CuePoint:return"CuePoint";case XM.CueTime:return"CueTime";case XM.CueTrackPositions:return"CueTrackPositions";case XM.CueTrack:return"CueTrack";case XM.CueClusterPosition:return"CueClusterPosition";case XM.CueRefTime:return"CueRefTime";case XM.CueBlockNumber:return"CueBlockNumber";case XM.Position:return"Position";case XM.Colour:return"Colour";default:return""}}(this._id),this.type=tx(this._id)}}function ox(e,t){const n=function(e){if(1==e)return 8;for(var t=7;t>0;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element size")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current-(1<<8-n);for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.sizeLength=n,t.size=r===1<<8*n-1?-1:r,!0}function sx(e,t){switch(e){case ex.UnsignedInteger:case ex.SignedInteger:return nx(t);case ex.String:return String.fromCharCode.apply(null,t);case ex.Utf8String:case ex.Float:throw new Error(`cannot read value of element with type ${e}`);case ex.Date:return 978307200+nx(t);case ex.Binary:return t}}class ax{constructor(e,t){this.data=e,this.ptsMs=t}}function cx(){return new Promise(e=>{let t=new FileReader;t.onload=()=>{e(t.result)},t.readAsArrayBuffer(this)})}class lx extends KM{constructor(e,t){super(e,t),this.state=lx.stateParseElementId,this.currentEbmlElement=new ix,this.uint8ArrayAggregator=new rx,this.clusterTimestamp=0,this.timestampMsScale=1,this.ebmlElementStack=[],Blob.prototype.arrayBuffer=Blob.prototype.arrayBuffer||cx}async addBlob(e){try{for(this.uint8ArrayAggregator.addArray(new Uint8Array(await e.arrayBuffer()));this.uint8ArrayAggregator.bytesAvailable;)switch(this.state){case lx.stateParseElementId:if(!ZM(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got new current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.state=lx.stateParseElementLength;break;case lx.stateParseElementLength:if(!ox(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got size ${this.currentEbmlElement.size} for current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.ebmlElementStack.length&&-1==this.currentEbmlElement.size&&(this.ebmlElementStack=[]),this.state=lx.stateParseElementValue;break;case lx.stateParseElementValue:const e=tx(this.currentEbmlElement.id);let n=e!==ex.Master||this.currentEbmlElement.id===XM.Colour;if(e===ex.Master&&-1!==this.currentEbmlElement.size&&this.ebmlElementStack.push({element:Object.assign(new ix,this.currentEbmlElement),bytesRemaining:this.currentEbmlElement.size}),this.currentEbmlElement.id===XM.CodecID){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;const t=sx(this.currentEbmlElement.type,e);1===this.currentTrackType?this.mediaInfo.videoTrack.codecName=t:2===this.currentTrackType&&(this.mediaInfo.audioTrack.codecName=t),null==this.options.logCallback||this.options.logCallback(`got codec id ${t}`)}else if(this.currentEbmlElement.id===XM.CodecPrivate){if(n=!1,null==this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))break}else if(this.currentEbmlElement.id===XM.TimestampScale){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.mediaInfo.timestampScale=sx(this.currentEbmlElement.type,e),this.timestampMsScale=this.mediaInfo.timestampScale/1e6,null==this.options.logCallback||this.options.logCallback(`got timestamp scale ${this.mediaInfo.timestampScale}`)}else if(this.currentEbmlElement.id===XM.Timestamp){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.clusterTimestamp=sx(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got cluser timestamp ${this.clusterTimestamp}`)}else if(this.currentEbmlElement.id===XM.TrackType){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.currentTrackType=sx(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got track with type ${this.currentTrackType}`)}else if(this.currentEbmlElement.id===XM.SimpleBlock){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;let t=new rx;t.addArray(e);let r={};ox(t,r),r.size;let i=nx(t.extract(2));t.current,t.next(),t.trim();let o=(this.clusterTimestamp+i)*this.timestampMsScale;this.emit($M.MediaPacket,new ax(t.array,o))}if(n&&this.uint8ArrayAggregator.skip(this.currentEbmlElement.size),e!==ex.Master&&this.ebmlElementStack.length){this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=this.currentEbmlElement.elementSize;do{if(0!==this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining)break;var t=this.ebmlElementStack.pop();this.ebmlElementStack.length&&(this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=t.element.elementSize),t.element.id===XM.Tracks&&this.emit($M.MediaInfo,this.mediaInfo)}while(this.ebmlElementStack.length)}this.state=lx.stateParseElementId}this.uint8ArrayAggregator.trim()}catch(e){this.stop(),this.emit($M.Error,e)}}}Qo(lx,"stateParseElementId",1),Qo(lx,"stateParseElementLength",2),Qo(lx,"stateParseElementValue",3);const ux=jl("cbio.H264Encoder");var dx=new WeakMap,hx=new WeakMap,fx=new WeakMap,px=new WeakMap;class gx{constructor(e,t){if(Bo(this,dx,void 0),Bo(this,hx,void 0),Bo(this,fx,void 0),Bo(this,px,[]),Qo(this,"reset",()=>{ux("resetting H264Encoder"),jo(px,this).forEach(e=>{jo(dx,this).handleFrame(e,gx.MIME_TYPE,1/0)})}),Qo(this,"destroy",()=>{ux("destroy H264Encoder"),jo(fx,this)&&(jo(fx,this).stop(),zo(fx,this,null)),zo(px,this,null)}),ux("H264Encoder constructed"),zo(dx,this,t),zo(hx,this,e),zo(fx,this,function(e){let t;return 0==("undefined"!=typeof MediaRecorder)?null:((0==("function"==typeof MediaRecorder.isTypeSupported)||MediaRecorder.isTypeSupported("video/webm;codecs=h264"))&&(t=new lx(new MediaRecorder(e,{mimeType:"video/webm;codecs=h264"}),void 0)),t)}(e)),!jo(fx,this))throw new Error("Failed to create MediaRecorderDemuxer");return jo(fx,this).on("media-packet",({data:e})=>{if(null===jo(fx,this))return;let t;0===e[0]&&0===e[1]&&0===e[2]&&1===e[3]?t=e[4]:0===e[0]&&0===e[1]&&1===e[2]&&(t=e[3]),7==(31&t)&&zo(px,this,[]),jo(px,this).push(e),jo(dx,this).handleFrame(e,gx.MIME_TYPE,1/0)}),jo(fx,this).start()}static isSupported(){return KM.isSupported("video/webm;codecs=h264")}}Qo(gx,"MIME_TYPE","video/avc");const mx=jl("cbio.JPEGEncoder");var _x=new WeakMap,vx=new WeakMap,Ex=new WeakMap,wx=new WeakMap,yx=new WeakMap;class Ix{constructor(e,t){Bo(this,_x,void 0),Bo(this,vx,void 0),Bo(this,Ex,void 0),Bo(this,wx,void 0),Bo(this,yx,()=>{if(!jo(Ex,this))return;const e=jo(Ex,this).scale();jo(vx,this).width=jo(_x,this).videoWidth*e,jo(vx,this).height=jo(_x,this).videoHeight*e,jo(vx,this).getContext("2d").drawImage(jo(_x,this),0,0,jo(vx,this).width,jo(vx,this).height),jo(vx,this).toBlob(async e=>{if(!jo(Ex,this))return;const t=new Uint8Array(await new Response(e).arrayBuffer());jo(Ex,this).handleFrame(t,Ix.MIME_TYPE,1)},Ix.MIME_TYPE,.5)}),Qo(this,"reset",()=>{}),Qo(this,"destroy",()=>{mx("destroy JPEGEncoder"),jo(wx,this)&&(clearInterval(jo(wx,this)),zo(wx,this,null)),zo(Ex,this,null),zo(_x,this,null),zo(vx,this,null)}),mx("JPEGEncoder constructed"),zo(Ex,this,t),zo(_x,this,document.createElement("video")),zo(vx,this,document.createElement("canvas")),jo(_x,this).srcObject=e,jo(_x,this).play(),zo(wx,this,setInterval(jo(yx,this),100))}}Qo(Ix,"MIME_TYPE","image/jpeg");const Lx=jl("cbio.MediaStreamFrameSource");var Cx=new WeakMap,Ax=new WeakMap,Sx=new WeakMap,bx=new WeakMap,Nx=new WeakMap,Tx=new WeakMap,kx=new WeakMap;class Ox{constructor(e){Bo(this,Cx,void 0),Bo(this,Ax,void 0),Bo(this,Sx,void 0),Bo(this,bx,null),Bo(this,Nx,[]),Bo(this,Tx,()=>jo(Nx,this).length&&!jo(Nx,this).includes(gx.MIME_TYPE)||!gx.isSupported()?Ix:gx),Bo(this,kx,async e=>{const t=jo(Tx,this).call(this);var n;return jo(bx,this)instanceof t||(Lx("Changing encoder to",t),null===(n=jo(bx,this))||void 0===n||n.destroy(),zo(bx,this,new t(e,jo(Sx,this)))),jo(bx,this)}),Qo(this,"setCodecs",e=>{zo(Nx,this,e||[]),jo(Ax,this)&&jo(kx,this).call(this,jo(Ax,this))}),Qo(this,"capturingWillStart",async()=>{Lx("capturingWillStart for MediaStreamFrameSource");const e=await jo(Sx,this).requestPermission();if(e)try{if(e instanceof MediaStream?zo(Ax,this,e):zo(Ax,this,await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{ideal:1400},height:{ideal:1e3},frameRate:{max:10}},audio:!1,selfBrowserSurface:"include"})),[Xo(zo,[Cx,this])._]=jo(Ax,this).getVideoTracks(),!jo(Cx,this))throw new Error("failed to get display media track");jo(Cx,this).onended=()=>{Lx("track ended"),zo(Cx,this,null),jo(Sx,this).captureEnded(),this.destroy()},jo(kx,this).call(this,jo(Ax,this)),jo(Sx,this).captureStarted(jo(Ax,this))}catch(e){jo(Sx,this).captureEnded(e)}}),Qo(this,"capturingWillStop",()=>{var e;Lx("capturingWillStop for MediaStreamFrameSource"),null===(e=jo(bx,this))||void 0===e||e.destroy(),zo(bx,this,null),zo(Ax,this,null),jo(Cx,this)&&(jo(Cx,this).stop(),zo(Cx,this,null),jo(Sx,this).captureEnded())}),Qo(this,"reset",()=>{var e;Lx("resetting MediaStreamFrameSource"),null===(e=jo(bx,this))||void 0===e||e.reset()}),Qo(this,"destroy",()=>{var e;Lx("destroying MediaStreamFrameSource"),this.capturingWillStop(),zo(Sx,this,null),null===(e=jo(bx,this))||void 0===e||e.destroy(),zo(bx,this,null)}),Lx("MediaStreamFrameSource constructed"),zo(Sx,this,e)}}const Rx=new class{constructor(){Qo(this,"proxify",e=>e),Qo(this,"unproxify",e=>e),Qo(this,"inUniversalProxy",!1)}},Px=["true","yes",void 0],Dx=["false","no"];var Mx=new WeakMap,xx=new WeakMap,Gx=new WeakMap;class Ux extends yv{constructor(e){super(),Bo(this,Mx,void 0),Bo(this,xx,void 0),Bo(this,Gx,e=>{e.url!==jo(xx,this)&&(zo(xx,this,e.url),this.emit("load",new Event("load")))}),zo(Mx,this,e),jo(Mx,this).on("updated",jo(Gx,this))}get closed(){return jo(Mx,this).isClosed}get location(){return new URL(jo(Mx,this).url)}close(){jo(Mx,this).close()}addEventListener(e,t,n){null!=n&&n.once?this.once(e,t):this.on(e,t)}removeEventListener(e,t){this.off(e,t)}}var Vx=new WeakMap,Wx=new WeakMap,Fx=new WeakMap,jx=new WeakMap,Bx=new WeakMap,zx=new WeakMap,Hx=new WeakMap,qx=new WeakMap,Qx=new WeakMap,$x=new WeakMap;let Yx=class extends yv{constructor(...e){super(...e),Bo(this,Vx,void 0),Bo(this,Wx,void 0),Bo(this,Fx,void 0),Bo(this,jx,void 0),Bo(this,Bx,void 0),Bo(this,zx,void 0),Bo(this,Hx,void 0),Bo(this,qx,void 0),Bo(this,Qx,!1),Bo(this,$x,void 0),Qo(this,"load",(e,t,n,{element:r,type:i}={})=>{zo(Wx,this,e);const o=(e=>"string"!=typeof e?{}:e.toLowerCase().split(",").reduce((e,t)=>{const[n,r]=t.split("=");return e[n]=Px.indexOf(r)>=0||!(Dx.indexOf(r)>=0)&&r,e},{}))(n);zo(Vx,this,o.popup?"_blank":t),zo(Fx,this,r),zo(jx,this,i),zo(Bx,this,""),zo(zx,this,""),zo(Hx,this,!0),zo(qx,this,!1),this.emit("updated",this)}),Qo(this,"close",()=>{jo(Qx,this)||(zo(Qx,this,!0),this.emit("closed",this))}),Qo(this,"serialize",()=>({url:this.url,icon:this.icon,title:this.title,isLoading:this.isLoading,isBlocked:this.isBlocked,isClosed:this.isClosed}))}get target(){return jo(Vx,this)}get url(){return jo(Wx,this)}set url(e){this.url!==e&&(zo(Wx,this,e),this.emit("updated",this))}get element(){return jo(Fx,this)}get type(){return jo(jx,this)}get icon(){return jo(Bx,this)}set icon(e){jo(Bx,this)!==e&&(zo(Bx,this,e),this.emit("updated",this))}get title(){return jo(zx,this)}set title(e){jo(zx,this)!==e&&(zo(zx,this,e),this.emit("updated",this))}get isLoading(){return jo(Hx,this)}set isLoading(e){jo(Hx,this)!==e&&(zo(Hx,this,e),this.emit("updated",this))}get isBlocked(){return jo(qx,this)}set isBlocked(e){jo(qx,this)!==e&&(zo(qx,this,e),this.emit("updated",this))}get isClosed(){return jo(Qx,this)}get windowProxy(){return jo($x,this)||zo($x,this,new Ux(this)),jo($x,this)}};var Jx=new WeakMap,Kx=new WeakMap,Xx=new WeakMap,Zx=new WeakMap,eG=new WeakMap,tG=new WeakMap,nG=new WeakMap,rG=new WeakMap;class iG{constructor({onDocumentAdded:e}){Bo(this,Jx,new Map),Bo(this,Kx,new Map),Bo(this,Xx,new Map),Bo(this,Zx,new Map),Bo(this,eG,void 0),Bo(this,tG,({handle:e,document:t},{trusted:n})=>{if(!n)return;const r=this.getDocumentByHandle(e);r&&!r.isClosed&&t.isClosed&&r.close(!0)}),Bo(this,nG,e=>{const t=jo(Kx,this).get(e);jo(Jx,this).delete(t),jo(Kx,this).delete(e);const n=jo(Zx,this).get(t);jo(Zx,this).delete(t),n&&jo(Xx,this).delete(n)}),Bo(this,rG,(e,t)=>{const n=()=>{const n={handle:e,document:t.serialize()};t.element?QU.broadcastToChildren("document",n):QU.sendToParent("document",n)};t.on("updated",n),n(),t.once("closed",()=>{t.off("updated",n),n(),jo(nG,this).call(this,t)})}),Qo(this,"addDocument",(e,t,n)=>{var r;jo(Jx,this).has(e)||n.isClosed||(jo(Jx,this).set(e,n),jo(Kx,this).set(n,e),t&&(jo(Xx,this).set(t,e),jo(Zx,this).set(e,t)),jo(rG,this).call(this,e,n),null===(r=jo(eG,this))||void 0===r||r.call(this,n))}),Qo(this,"closeAllDocuments",()=>{for(const[,e]of jo(Jx,this))e.close(),jo(nG,this).call(this,e)}),Qo(this,"getDocumentByHandle",e=>jo(Jx,this).get(e)),Qo(this,"resolveDocumentHandle",e=>jo(Xx,this).get(e)||lE()),Qo(this,"resolveDocument",(e,t)=>{const n=e||this.resolveDocumentHandle(t);return{handle:n,document:this.getDocumentByHandle(n)||new Yx}}),Qo(this,"destroy",()=>{QU.off("document",jo(tG,this))}),zo(eG,this,e),QU.on("document",jo(tG,this))}}var oG=new WeakMap,sG=new WeakMap;class aG{constructor(e){Bo(this,oG,void 0),Bo(this,sG,()=>{const e=Rx.unproxify(window.location.href),t=new URL((()=>{const e=document.querySelectorAll('link[rel="icon"]');return e.length>0?e[0].href:"/favicon.ico"})(),e).href;jo(oG,this).call(this,{url:e,icon:Rx.proxify(t),title:document.title,isLoading:"complete"!==document.readyState,isBlocked:!1})}),Qo(this,"sendLoading",e=>{jo(oG,this).call(this,{url:e,icon:"",title:"",isLoading:!0,isBlocked:!1})}),Qo(this,"sendBlocked",e=>{jo(oG,this).call(this,{url:e,icon:"",title:"",isLoading:!1,isBlocked:!0})}),Qo(this,"destroy",()=>{vM.off("navigate",jo(sG,this)),window.removeEventListener("popstate",jo(sG,this),{capture:!0}),document.removeEventListener("readystatechange",jo(sG,this),{capture:!0})}),zo(oG,this,e),vM.on("navigate",jo(sG,this)),window.addEventListener("popstate",jo(sG,this),{capture:!0}),document.addEventListener("readystatechange",jo(sG,this),{capture:!0}),jo(sG,this).call(this)}}var cG,lG,uG={};!function(){if(cG)return uG;cG=1;var e=jn(),t=tl(),n=rt(),r=gn(),i=hn(),o=rl();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,s=n(this),a=r(s),c=o(s,0);return c.length=t(c,s,s,a,0,void 0===e?1:i(e)),c}})}(),lG||(lG=1,Yr()("flat"));const dG=()=>Rx.unproxify(window.location.href),hG=(e,t)=>{if(!e)return e;const n=e.map(e=>"string"==typeof e?e:"object"==typeof e?Object.entries(e).filter(([e])=>cA([e])(t)).map(([e,t])=>t):null).filter(Boolean).flat(2);return[...new Set(n)]},fG=e=>{const t=dG();return hG(e,t)},pG=(e,t)=>{if(!e)return!1;if(!t)return!0;const n=hG(e,t),r=hG(e,dG());if(n.length!==r.length)return!0;const i=[...n].sort(),o=[...r].sort();return!i.every((e,t)=>e===o[t])};var gG=new WeakMap,mG=new WeakMap,_G=new WeakMap,vG=new WeakMap,EG=new WeakMap,wG=new WeakMap,yG=new WeakMap,IG=new WeakMap,LG=new WeakMap,CG=new WeakMap,AG=new WeakMap,SG=new WeakMap,bG=new WeakMap,NG=new WeakMap,TG=new WeakMap,kG=new WeakMap,OG=new WeakMap,RG=new WeakMap,PG=new WeakMap,DG=new WeakMap;class MG{constructor(e,t,n){Bo(this,gG,void 0),Bo(this,mG,void 0),Bo(this,_G,void 0),Bo(this,vG,void 0),Bo(this,EG,void 0),Bo(this,wG,void 0),Bo(this,yG,void 0),Bo(this,IG,e=>{var t;return!(null===(t=jo(gG,this))||void 0===t||!t.isActive()||!jo(gG,this)[kT].proxyToken())}),Qo(this,"handleNavigation",(e,t,n,r)=>{const{name:i,go:o,e:s,type:a,block:c}=r,{handle:l,document:u}=jo(EG,this).resolveDocument(r.handle,i),{windowProxy:d}=u,h=(s.view||window)!==window,f=!t||"_self"===t,p={url:e,target:t,windowFeatures:n,type:a,nav:{block:()=>(s.eventPhase===Event.CAPTURING_PHASE||(c(),h||jo(wG,this).sendBlocked(e)),{windowProxy:d}),parent:r=>(u.load(e,t,n,{type:r||a}),s.eventPhase===Event.CAPTURING_PHASE||(jo(EG,this).addDocument(l,i,u),jo(mG,this).open(e,t,n,{type:r||a,handle:l})),{windowProxy:d}),continue:()=>{const r=jo(yG,this).runHandler(e,t,n,{type:a,document:u});return r.rewrittenUrl?{rewrittenUrl:r.rewrittenUrl}:(r.document&&jo(EG,this).addDocument(l,i,r.document),{windowProxy:d})},replay:()=>o()},getConsent:()=>jo(mG,this).confirmOpen(e,a),windowProxy:d,setLoading:()=>!h&&f&&jo(wG,this).sendLoading(e)};return(Rx.inUniversalProxy?jo(CG,this):jo(LG,this))(p)}),Bo(this,LG,({target:e,type:t,nav:n,getConsent:r,windowProxy:i})=>t?t===yT?n.continue():jo(IG,this).call(this,t)?(r().then(({accepted:t})=>t?"_blank"===e?n.parent():void n.continue():n.replay()),{windowProxy:i}):n.continue():n.continue()),Bo(this,CG,({url:e,target:t,type:n,nav:r,getConsent:i,windowProxy:o,setLoading:s})=>{const a=new URL(Rx.unproxify(window.location.href)).origin,c=a!==new URL(e,a).origin;return n?c?jo(IG,this).call(this,n)?(i().then(({accepted:e})=>e?"_blank"===t?r.parent():n===wT?r.continue():(s(),void r.replay()):r.block()),{windowProxy:o}):r.continue():"_blank"===t?r.parent():n===wT?r.continue():(s(),{rewrittenUrl:e}):"_blank"===t?r.parent(IT):r.block()}),Bo(this,AG,e=>{jo(kG,this).call(this,e),e.isActive()&&!jo(vG,this)&&jo(bG,this).call(this)}),Bo(this,SG,()=>{jo(NG,this).call(this),jo(EG,this)&&jo(EG,this).closeAllDocuments()}),Bo(this,bG,()=>{var e;null!==(e=jo(vG,this))&&void 0!==e&&e.isRunning()||(zo(vG,this,new gM),jo(vG,this).setSource(new qM(e=>(jo(_G,this).call(this,"patch",e),!0))),jo(vG,this).start(),jo(vG,this).invalidateFrame())}),Bo(this,NG,()=>{jo(vG,this)&&jo(vG,this).destroy(),zo(vG,this,null)}),Bo(this,TG,(e,t)=>{jo(kG,this).call(this,jo(gG,this)),jo(OG,this).call(this),jo(RG,this).call(this),(pG(jo(mG,this).redactedViews,t)||pG(jo(mG,this).unredactedViews,t)||pG(jo(gG,this).redactionSelectors(),t)||pG(jo(gG,this).unredactionSelectors(),t))&&setTimeout(()=>{this.invalidateFrame()},0)}),Qo(this,"invalidateFrame",()=>{var e;null!==(e=jo(vG,this))&&void 0!==e&&e.isRunning()&&jo(vG,this).invalidateFrame()}),Qo(this,"partialSync",async e=>{var t;if(null===(t=jo(vG,this))||void 0===t||!t.isRunning())return;const n=jo(vG,this).getSource();n instanceof qM&&(await oL(e),n.partialSync(e))}),Bo(this,kG,e=>{var t,n;const r=null!==(t=jo(mG,this).redactedViews)&&void 0!==t?t:[],i=null!==(n=jo(mG,this).unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];YI.init(new gL(fG(o),fG(s)))}),Bo(this,OG,()=>{qI.setIgnoredViews(fG(jo(mG,this).ignoredViews))}),Bo(this,RG,()=>{XI.init(new gL(fG(jo(mG,this).disabledViews),fG(jo(mG,this).enabledViews)))}),Bo(this,PG,e=>jo(_G,this).call(this,"click",e)),Bo(this,DG,e=>jo(_G,this).call(this,"change",e)),Qo(this,"destroy",()=>{jo(gG,this)&&(jo(gG,this).removeListener("update",jo(AG,this)),jo(gG,this).removeListener("ended",jo(SG,this))),zo(gG,this,null),jo(yG,this)&&jo(yG,this).destroy(),zo(yG,this,null),vM.off("navigate",jo(TG,this)),VL.off("click",jo(PG,this)),VL.off("change",jo(DG,this)),jo(wG,this)&&jo(wG,this).destroy(),zo(wG,this,null),jo(EG,this)&&jo(EG,this).destroy(),zo(EG,this,null)}),zo(gG,this,e),zo(mG,this,t),zo(_G,this,n),jo(AG,this).call(this,e),e.on("updated",jo(AG,this)),e.on("ended",jo(SG,this)),Rx.inUniversalProxy&&zo(wG,this,new aG(e=>jo(_G,this).call(this,"document",{document:e}))),zo(EG,this,new iG({onDocumentAdded:e=>{e.element&&jo(mG,this).showDocument(e)}}));const r=new WT(e,t),i=new YT(e,t),o=new fM(e,t);zo(yG,this,new NT({shouldNavigate:jo(IG,this),handlers:[r,i,o],handleNavigation:this.handleNavigation})),vM.on("navigate",jo(TG,this)),VL.on("click",jo(PG,this)),VL.on("change",jo(DG,this)),jo(OG,this).call(this),jo(RG,this).call(this)}navigate(e,t,{type:n}){const r=jo(yG,this).navigate(e,t,{type:n});if("string"==typeof r)return window.open(r,t)}}const xG=jl("cbio.iframes.trust"),{entries:GG,setPrototypeOf:UG,isFrozen:VG,getPrototypeOf:WG,getOwnPropertyDescriptor:FG}=Object;let{freeze:jG,seal:BG,create:zG}=Object,{apply:HG,construct:qG}="undefined"!=typeof Reflect&&Reflect;jG||(jG=function(e){return e}),BG||(BG=function(e){return e}),HG||(HG=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),qG||(qG=function(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 new e(...n)});const QG=cU(Array.prototype.forEach),$G=cU(Array.prototype.lastIndexOf),YG=cU(Array.prototype.pop),JG=cU(Array.prototype.push),KG=cU(Array.prototype.splice),XG=cU(String.prototype.toLowerCase),ZG=cU(String.prototype.toString),eU=cU(String.prototype.match),tU=cU(String.prototype.replace),nU=cU(String.prototype.indexOf),rU=cU(String.prototype.trim),iU=cU(Object.prototype.hasOwnProperty),oU=cU(RegExp.prototype.test),sU=(aU=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qG(aU,t)});var aU;function cU(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return HG(e,t,r)}}function lU(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:XG;UG&&UG(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(VG(t)||(t[r]=e),i=e)}e[i]=!0}return e}function uU(e){for(let t=0;t<e.length;t++)iU(e,t)||(e[t]=null);return e}function dU(e){const t=zG(null);for(const[n,r]of GG(e))iU(e,n)&&(Array.isArray(r)?t[n]=uU(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=dU(r):t[n]=r);return t}function hU(e,t){for(;null!==e;){const n=FG(e,t);if(n){if(n.get)return cU(n.get);if("function"==typeof n.value)return cU(n.value)}e=WG(e)}return function(){return null}}const fU=jG(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pU=jG(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),gU=jG(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mU=jG(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_U=jG(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vU=jG(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),EU=jG(["#text"]),wU=jG(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yU=jG(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),IU=jG(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),LU=jG(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CU=BG(/\{\{[\w\W]*|[\w\W]*\}\}/gm),AU=BG(/<%[\w\W]*|[\w\W]*%>/gm),SU=BG(/\$\{[\w\W]*/gm),bU=BG(/^data-[\-\w.\u00B7-\uFFFF]+$/),NU=BG(/^aria-[\-\w]+$/),TU=BG(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kU=BG(/^(?:\w+script|data):/i),OU=BG(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),RU=BG(/^html$/i),PU=BG(/^[a-z][.\w]*(-[.\w]+)+$/i);var DU=Object.freeze({__proto__:null,ARIA_ATTR:NU,ATTR_WHITESPACE:OU,CUSTOM_ELEMENT:PU,DATA_ATTR:bU,DOCTYPE_NAME:RU,ERB_EXPR:AU,IS_ALLOWED_URI:TU,IS_SCRIPT_OR_DATA:kU,MUSTACHE_EXPR:CU,TMPLIT_EXPR:SU});const MU=function(){return"undefined"==typeof window?null:window};var xU=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:MU();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=hU(g,"cloneNode"),_=hU(g,"remove"),v=hU(g,"nextSibling"),E=hU(g,"childNodes"),w=hU(g,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let y,I="";const{implementation:L,createNodeIterator:C,createDocumentFragment:A,getElementsByTagName:S}=r,{importNode:b}=i;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof GG&&"function"==typeof w&&L&&void 0!==L.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:k,TMPLIT_EXPR:O,DATA_ATTR:R,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:x}=DU;let{IS_ALLOWED_URI:G}=DU,U=null;const V=lU({},[...fU,...pU,...gU,..._U,...EU]);let W=null;const F=lU({},[...wU,...yU,...IU,...LU]);let j=Object.seal(zG(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,z=null;const H=Object.seal(zG(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let q=!0,Q=!0,$=!1,Y=!0,J=!1,K=!0,X=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1,se=!0,ae=!1,ce={},le=null;const ue=lU({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const he=lU({},["audio","video","img","source","image","track"]);let fe=null;const pe=lU({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let ve=_e,Ee=!1,we=null;const ye=lU({},[ge,me,_e],ZG);let Ie=lU({},["mi","mo","mn","ms","mtext"]),Le=lU({},["annotation-xml"]);const Ce=lU({},["title","style","font","a","script"]);let Ae=null;const Se=["application/xhtml+xml","text/html"];let be=null,Ne=null;const Te=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ne||Ne!==e){if(e&&"object"==typeof e||(e={}),e=dU(e),Ae=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===Ae?ZG:XG,U=iU(e,"ALLOWED_TAGS")?lU({},e.ALLOWED_TAGS,be):V,W=iU(e,"ALLOWED_ATTR")?lU({},e.ALLOWED_ATTR,be):F,we=iU(e,"ALLOWED_NAMESPACES")?lU({},e.ALLOWED_NAMESPACES,ZG):ye,fe=iU(e,"ADD_URI_SAFE_ATTR")?lU(dU(pe),e.ADD_URI_SAFE_ATTR,be):pe,de=iU(e,"ADD_DATA_URI_TAGS")?lU(dU(he),e.ADD_DATA_URI_TAGS,be):he,le=iU(e,"FORBID_CONTENTS")?lU({},e.FORBID_CONTENTS,be):ue,B=iU(e,"FORBID_TAGS")?lU({},e.FORBID_TAGS,be):dU({}),z=iU(e,"FORBID_ATTR")?lU({},e.FORBID_ATTR,be):dU({}),ce=!!iU(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,G=e.ALLOWED_URI_REGEXP||TU,ve=e.NAMESPACE||_e,Ie=e.MATHML_TEXT_INTEGRATION_POINTS||Ie,Le=e.HTML_INTEGRATION_POINTS||Le,j=e.CUSTOM_ELEMENT_HANDLING||zG(null),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Q=!1),ne&&(te=!0),ce&&(U=lU({},EU),W=zG(null),!0===ce.html&&(lU(U,fU),lU(W,wU)),!0===ce.svg&&(lU(U,pU),lU(W,yU),lU(W,LU)),!0===ce.svgFilters&&(lU(U,gU),lU(W,yU),lU(W,LU)),!0===ce.mathMl&&(lU(U,_U),lU(W,IU),lU(W,LU))),H.tagCheck=null,H.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(U===V&&(U=dU(U)),lU(U,e.ADD_TAGS,be))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(W===F&&(W=dU(W)),lU(W,e.ADD_ATTR,be))),e.ADD_URI_SAFE_ATTR&&lU(fe,e.ADD_URI_SAFE_ATTR,be),e.FORBID_CONTENTS&&(le===ue&&(le=dU(le)),lU(le,e.FORBID_CONTENTS,be)),e.ADD_FORBID_CONTENTS&&(le===ue&&(le=dU(le)),lU(le,e.ADD_FORBID_CONTENTS,be)),se&&(U["#text"]=!0),X&&lU(U,["html","head","body"]),U.table&&(lU(U,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw sU('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw sU('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,I=y.createHTML("")}else void 0===y&&(y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,o)),null!==y&&"string"==typeof I&&(I=y.createHTML(""));jG&&jG(e),Ne=e}},Re=lU({},[...pU,...gU,...mU]),Pe=lU({},[..._U,...vU]),De=function(e){JG(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Me=function(e,t){try{JG(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){JG(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xe=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=eU(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ae&&ve===_e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=y?y.createHTML(e):e;if(ve===_e)try{t=(new f).parseFromString(i,Ae)}catch(e){}if(!t||!t.documentElement){t=L.createDocument(ve,"template",null);try{t.documentElement.innerHTML=Ee?I:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ve===_e?S.call(t,X?"html":"body")[0]:X?t.documentElement:o},Ge=function(e){return C.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ve=function(e){return"function"==typeof c&&e instanceof c};function We(e,t,r){QG(e,e=>{e.call(n,t,r,Ne)})}const Fe=function(e){let t=null;if(We(N.beforeSanitizeElements,e,null),Ue(e))return De(e),!0;const r=be(e.nodeName);if(We(N.uponSanitizeElement,e,{tagName:r,allowedTags:U}),K&&e.hasChildNodes()&&!Ve(e.firstElementChild)&&oU(/<[/\w!]/g,e.innerHTML)&&oU(/<[/\w!]/g,e.textContent))return De(e),!0;if(K&&e.namespaceURI===_e&&"style"===r&&Ve(e.firstElementChild))return De(e),!0;if(7===e.nodeType)return De(e),!0;if(K&&8===e.nodeType&&oU(/<[/\w]/g,e.data))return De(e),!0;if(B[r]||!(H.tagCheck instanceof Function&&H.tagCheck(r))&&!U[r]){if(!B[r]&&Be(r)){if(j.tagNameCheck instanceof RegExp&&oU(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}if(se&&!le[r]){const t=w(e)||e.parentNode,n=E(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,v(e))}}return De(e),!0}return e instanceof l&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=XG(e.tagName),r=XG(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===_e?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||Ie[r]):Boolean(Re[n]):e.namespaceURI===ge?t.namespaceURI===_e?"math"===n:t.namespaceURI===me?"math"===n&&Le[r]:Boolean(Pe[n]):e.namespaceURI===_e?!(t.namespaceURI===me&&!Le[r])&&!(t.namespaceURI===ge&&!Ie[r])&&!Pe[n]&&(Ce[n]||!Re[n]):!("application/xhtml+xml"!==Ae||!we[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!oU(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&3===e.nodeType&&(t=e.textContent,QG([T,k,O],e=>{t=tU(t,e," ")}),e.textContent!==t&&(JG(n.removed,{element:e.cloneNode()}),e.textContent=t)),We(N.afterSanitizeElements,e,null),!1):(De(e),!0)},je=function(e,t,n){if(z[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if(Q&&!z[t]&&oU(R,t));else if(q&&oU(P,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!W[t]||z[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&oU(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&oU(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&oU(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(fe[t]);else if(oU(G,tU(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==nU(n,"data:")||!de[e])if($&&!oU(D,tU(n,M,"")));else if(n)return!1;return!0},Be=function(e){return"annotation-xml"!==e&&eU(e,x)},ze=function(e){We(N.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:a,value:c}=o,l=be(s),u=c;let d="value"===s?u:rU(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,We(N.uponSanitizeAttribute,e,r),d=r.attrValue,!oe||"id"!==l&&"name"!==l||(Me(s,e),d="user-content-"+d),K&&oU(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Me(s,e);continue}if("attributename"===l&&eU(d,"href")){Me(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Me(s,e);continue}if(!Y&&oU(/\/>/i,d)){Me(s,e);continue}J&&QG([T,k,O],e=>{d=tU(d,e," ")});const h=be(e.nodeName);if(je(h,l,d)){if(y&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(a);else switch(p.getAttributeType(h,l)){case"TrustedHTML":d=y.createHTML(d);break;case"TrustedScriptURL":d=y.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),Ue(e)?De(e):YG(n.removed)}catch(t){Me(s,e)}}else Me(s,e)}We(N.afterSanitizeAttributes,e,null)},He=function(e){let t=null;const n=Ge(e);for(We(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)We(N.uponSanitizeShadowNode,t,null),Fe(t),ze(t),t.content instanceof s&&He(t.content);We(N.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if(Ee=!e,Ee&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Ve(e)){if("function"!=typeof e.toString)throw sU("toString is not a function");if("string"!=typeof(e=e.toString()))throw sU("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=be(e.nodeName);if(!U[t]||B[t])throw sU("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=xe("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!J&&!X&&-1===e.indexOf("<"))return y&&re?y.createHTML(e):e;if(r=xe(e),!r)return te?null:re?I:""}r&&ee&&De(r.firstChild);const u=Ge(ae?e:r);for(;a=u.nextNode();)Fe(a),ze(a),a.content instanceof s&&He(a.content);if(ae)return e;if(te){if(J){r.normalize();let e=r.innerHTML;QG([T,k,O],t=>{e=tU(e,t," ")}),r.innerHTML=e}if(ne)for(l=A.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(W.shadowroot||W.shadowrootmode)&&(l=b.call(i,l,!0)),l}let d=X?r.outerHTML:r.innerHTML;return X&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&oU(RU,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&QG([T,k,O],e=>{d=tU(d,e," ")}),y&&re?y.createHTML(d):d},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ne=null,Z=!1},n.isValidAttribute=function(e,t,n){Ne||Oe({});const r=be(e),i=be(t);return je(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&JG(N[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=$G(N[e],t);return-1===n?void 0:KG(N[e],n,1)[0]}return YG(N[e])},n.removeHooks=function(e){N[e]=[]},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const GU=jl("cbio.ControlEvents"),UU=new class{constructor(){Qo(this,"_applyScroll",(e,t)=>{const n=e.defaultView||e;n.scrollTo?n.scrollTo(t.x,t.y):(n.scrollTop=t.y,n.scrollLeft=t.x)}),Qo(this,"_updateCheckbox",(e,{checked:t})=>{if(void 0!==t&&"INPUT"===e.tagName&&void 0!==e.checked){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"checked");n&&n.set.call(e,t)}}),Qo(this,"_updateInnerHTML",(e,{innerHTML:t})=>{if(void 0!==t){const n=(new DOMParser).parseFromString(xU.sanitize(t),"text/html");e.replaceChildren(...n.body.children)}}),Qo(this,"_updateValue",(e,{value:t,selectedOptions:n},r)=>{if(void 0!==t&&"input"===r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value");n&&n.set.call(e,t)}"TEXTAREA"===e.tagName&&PI.track(e.childNodes[0]),"SELECT"===e.tagName&&null!=n&&[...e.options].forEach(e=>{e.selected=n.includes(e.value)})}),Qo(this,"_updateTarget",(e,t)=>{this._updateValue(e,t.target,t.state),this._updateCheckbox(e,t.target),this._updateInnerHTML(e,t.target)}),Qo(this,"_generateMouse",(e,t)=>new MouseEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generatePointer",(e,t)=>new PointerEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateKeypress",(e,t)=>new KeyboardEvent(t.state,{key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,charCode:t.charCode,keyCode:t.keyCode,which:t.which,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateFocus",(e,t)=>new FocusEvent(t.state,{bubbles:["focusin","focusout"].includes(t.state),cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateChange",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateInput",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,inputType:t.inputType,data:t.data})),Qo(this,"_generateSelection",(e,t)=>new CustomEvent("selection",{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,selection:t.selection})),Qo(this,"_generateEvent",(e,t,n)=>{switch(n.state.includes("move")&&GU("generate",n,"on",t),e){case"keypress":return this._generateKeypress(t,n);case"mouse":return this._generateMouse(t,n);case"pointer":return this._generatePointer(t,n);case"change":return this._generateChange(t,n);case"input":return this._generateInput(t,n);case"focus":return this._generateFocus(t,n);case"select":return this._generateSelection(t,n);default:return console.warn("CobrowseIO: unknown event type",e,n),null}}),Qo(this,"_setSelection",(e,{selection:t})=>{if(!(e.__cobrowse_user_selection_timestamp>Date.now()-100)&&e.getSelection&&e.getSelection())try{t?(e.__last_agent_selection_ts=Date.now(),e.getSelection().removeAllRanges(),t.forEach(t=>{const{start:n,startOffset:r,end:i,endOffset:o}=t,s=document.createRange(),a=PI.getById(n),c=PI.getById(i);s.setStart(a,r),s.setEnd(c,o),e.getSelection().addRange(s)})):e.getSelection().removeAllRanges()}catch(e){console.warn("Failed to apply selection",t,e)}}),Qo(this,"_setInputSelection",(e,{selection:t})=>{if(!(e.ownerDocument.__cobrowse_user_selection_timestamp>Date.now()-100)&&["text","textarea","search","url"].includes(e.type))try{if(e.ownerDocument.__last_agent_selection_ts=Date.now(),t){const{start:n,end:r,direction:i}=t;e.focus(),e.setSelectionRange(n,r,i)}else e.getRootNode({composed:!0}).activeElement===e&&e.setSelectionRange(null,null)}catch(e){console.warn("Failed to select text",e)}}),Qo(this,"applyEvent",(e,t)=>{if(!t.target)return null;const n=PI.getById(t.target.id);if(!n)return null;if(YI.isRedacted(n))return null;if(XI.isDisabled(n))return null;try{var r;if("scroll"===e)return this._applyScroll(n,t);if(null!==(r=n._cobrowse_suppress_events)&&void 0!==r&&r.has(t.state))return n._cobrowse_suppress_events.delete(t.state),0===n._cobrowse_suppress_events.size&&delete n._cobrowse_suppress_events.size,null;const i=this._generateEvent(e,n,t);return i&&(n.dispatchEvent(i)?(["keydown","keypress","input"].includes(t.state)&&this._updateTarget(n,t),["selectionchange"].includes(t.state)&&this._setSelection(n,t),["select"].includes(t.state)&&this._setInputSelection(n,t)):"keydown"===t.state?n._cobrowse_suppress_events=new Set(["keypress","input"]):"keypress"===t.state&&(n._cobrowse_suppress_events=new Set(["input"]))),i}catch(t){return console.warn("Error while injecting event",e,t),null}})}isTypingInput(e){if(e.target){const t=PI.getById(e.target.id);if(["text","email","number","password","search","tel","url","datetime","textarea"].includes(null==t?void 0:t.type))return!0}return!1}},VU=jl("cbio.iframes.control"),WU=jl("cbio.iframes.sessions");function FU(e,t){function n(t){const n=t[kT].serializeSanitized();if(e.broadcastToChildren("session",n,{trustedOnly:!1}),t.id()){const n=t[kT].serialize();e.broadcastToChildren("session",n,{trustedOnly:!0})}}function r(n,{iframe:r,trusted:i}){if(!r)return;const o=t.currentSession;if(o){const t=i?o[kT].serialize():o[kT].serializeSanitized();e.send(r.contentWindow,"session",t,{trustedOnly:i})}}function i(e,{trusted:r,fromParent:i}){if(!r)return WU("Ignoring untrusted session event");i&&(t.currentSession[kT].deserialize(e),n(t.currentSession))}return e.on("trust",r),e.on("session",i),{publish:n,unsubscribe:()=>{e.off("trust",r),e.off("session",i)}}}class jU{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const BU=jl("cbio.iframes.sync");function zU(e,t,{waitForParentSync:n}={}){let r,i=!n||new jU;function o(e){return{redactedViews:[...(null==e?void 0:e.redactedViews)||[],...t.redactedViews||[]],unredactedViews:[...(null==e?void 0:e.unredactedViews)||[],...t.unredactedViews||[]],ignoredViews:[...(null==e?void 0:e.ignoredViews)||[],...t.ignoredViews||[]],disabledViews:[...(null==e?void 0:e.disabledViews)||[],...t.disabledViews||[]],enabledViews:[...(null==e?void 0:e.enabledViews)||[],...t.enabledViews||[]],universalLinks:(null==e?void 0:e.universalLinks)||t.universalLinks||[],pdfLinks:(null==e?void 0:e.pdfLinks)||t.pdfLinks||[],api:(null==e?void 0:e.api)||t.api}}function s(e){const t=o(e);return Yo(Yo({},t),{},{redactedViews:t.redactedViews.filter(e=>"string"!=typeof e),unredactedViews:t.unredactedViews.filter(e=>"string"!=typeof e),ignoredViews:t.ignoredViews.filter(e=>"string"!=typeof e),disabledViews:t.disabledViews.filter(e=>"string"!=typeof e),enabledViews:t.enabledViews.filter(e=>"string"!=typeof e)})}async function a(t,{iframe:n}){n&&(await i.promise,e.send(n.contentWindow,"sync",s(r),{trustedOnly:!1}))}function c(e){BU("iframe available",e,"issuing sync"),e&&a(0,{iframe:e})}function l(t,{source:n,origin:o,trusted:a}){if(!a)return BU("Ignoring untrusted sync event");r=t,i.resolve(),e.broadcastToChildren("sync",s(t),{trustedOnly:!1})}return e.on("init",a),e.on("iframe_discovered",c),e.on("sync",l),{getSyncedConfig:async()=>(await i.promise,o(r)),unsubscribe:()=>{r=null,i=!n||new jU,e.off("init",a),e.off("iframe_discovered",c),e.off("sync",l)},sendSync:async()=>{await i.promise,e.broadcastToChildren("sync",s(r),{trustedOnly:!1})}}}const HU=jl("cbio.iframes"),qU=function(){let e=window;do{if(e=e.parent,NA(e))return e}while(e!==e.parent);return null}(),QU=new wA(qU),$U=new SA(QU,qU);!function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return xG("Ignoring untrusted sync event");e.sendToParent("trust",null,{trustedOnly:!1}),"complete"!==document.readyState&&window.addEventListener("load",()=>{e.sendToParent("trust",null,{trustedOnly:!1})},{once:!0,capture:!0})});const t=({target:t})=>{e.breakTrust(t.contentWindow)};e.on("trust",(n,{iframe:r,origin:i})=>{r&&(r.removeEventListener("load",t,{capture:!0}),r.addEventListener("load",t,{capture:!0}),e.establishTrust(r.contentWindow,i))})}(QU),function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return VU("Ignoring untrusted sync event");Iv.onChange=t=>e.sendToParent("mouse",t),Iv.track(window)}),e.on("mouse",(e,{iframe:t})=>{VU("Received mouse event in",e,document,"from",t),t&&(Iv.setPosition(e.x,e.y,t),Iv.setDown(e.down))}),e.on("control",(t,{trusted:n,trustedOnly:r})=>{if(VU("Received control event in",document),!n)return VU("Ignoring untrusted control event");UU.applyEvent(...t),e.broadcastToChildren("control",t,{trustedOnly:r})})}(QU);const YU=e=>t=>{const n=t[kT].proxyUrl(),r=new URL(n,e);HU("trusting",r.origin),QU.automaticTrustedOrigins=[r.origin]},JU="_cobrowse_active_highlight",KU=jl("cbio.HighlightTracking");var XU=new WeakMap,ZU=new WeakSet;function eV(e){EE().removeItem(JU),this.emit("end",e)}const tV=new class extends yv{constructor(...e){super(...e),qo(this,ZU),Bo(this,XU,new iS),Qo(this,"highlightAndWait",async(e,t)=>{const n=t.id;EE().setItem(JU,n),jo(XU,this).monitor();try{if(!await this.highlight(e,t))return KU("highlight did not run"),void xo(ZU,this,eV).call(this,{id:n,state:"not-found"});await FA.ensureNoNavigation(),await jo(XU,this).waitUntilStable(),xo(ZU,this,eV).call(this,{id:n,state:"resolved"})}finally{jo(XU,this).destroy()}})}async highlight(e,t){if(await ET.highlight(e,t))return!0;const n=await Promise.all(QU.trustedIframes.map(async e=>{const n=new SA(QU,e.contentWindow);try{return await n.send("highlight",t)}finally{n.destroy()}}));return n.some(Boolean)}resolvePendingHighlight(){const e=EE().getItem(JU);e&&(KU("resolving pending highlight",e),xo(ZU,this,eV).call(this,{id:e,state:"resolved"}))}};var nV=new WeakMap,rV=new WeakMap,iV=new WeakMap,oV=new WeakMap,sV=new WeakMap,aV=new WeakMap,cV=new WeakMap;class lV{constructor(e){Bo(this,nV,void 0),Bo(this,rV,void 0),Bo(this,iV,void 0),Bo(this,oV,void 0),Qo(this,"open",()=>{jo(nV,this).isEnded()||(jo(aV,this).call(this),jo(cV,this).call(this))}),Qo(this,"close",()=>{window.removeEventListener("visibilitychange",this.onVisibilityChange),jo(oV,this)&&(clearInterval(jo(oV,this)),zo(oV,this,null)),jo(nV,this)&&(jo(nV,this).removeListener("updated",this.open),zo(nV,this,null)),jo(iV,this)&&(jo(iV,this).close(),zo(iV,this,null)),jo(rV,this)&&(jo(rV,this).close(),zo(rV,this,null))}),Bo(this,sV,(e,t)=>{const n=new sA({getUrl:()=>pD(e),getProtocols:()=>[`cbio.http.headers.authorization.bearer.${window.btoa(jo(nV,this).field(t)).replaceAll("=","")}`]});return n.on("error",e=>{console.warn("CobrowseIO session socket error:",e)}),n}),Bo(this,aV,()=>{const e=jo(nV,this).field("control_url"),t=jo(nV,this).field("control_token");e&&t&&!jo(rV,this)&&(zo(rV,this,jo(sV,this).call(this,e,"control_token")),jo(rV,this).on("open",()=>{jo(rV,this).send("filter",{events:["session"]}),jo(nV,this).fetch().catch(e=>{console.warn("CobrowseIO failed fetching session state",e)})}),jo(rV,this).on("event",(e,t)=>{"session"===e&&jo(nV,this).updateResource(t)}))}),Bo(this,cV,()=>{const e=jo(nV,this).field("stream_url"),t=jo(nV,this).field("stream_token");if(e&&t&&!jo(iV,this)){zo(iV,this,jo(sV,this).call(this,e,"stream_token")),zo(oV,this,setInterval(()=>{const e=Math.round(jo(iV,this).metrics.latency());jo(nV,this)[kT].setMetrics({latency:e})},1e3));const t=["highlight","drawing","laser","url"],n=["touch","mouse","pointer","keypress","scroll","focus","input","change","select"];jo(iV,this).on("event",(e,r)=>{"sync"===e&&jo(nV,this).emit("sync",r),"remote-error"===e&&jo(nV,this).emit("remote-error",r),"client"===e?jo(nV,this).emit("client",r):"probe"===e?jo(iV,this).send("alive",r):t.includes(e)?jo(nV,this).emit(e,r):n.includes(e)&&jo(nV,this).emit("control",e,r),jo(nV,this)[kT].setMetrics({last_alive:new Date})}),jo(iV,this).on("open",()=>{jo(iV,this).send("filter",{events:[...n,...t,"sync","probe","remote-error","client","sdp","icecandidate"]}),jo(nV,this).emit("stream-open")})}}),zo(nV,this,e),e.on("updated",this.open),e[kT].setMetrics({last_alive:null,latency:null}),this.open()}get stream(){return jo(iV,this)}}const uV=new class{constructor(){Qo(this,"el",()=>(this._el||(this._el=document.createElement("img"),this._el.className="cbio_session_overlay",this._el.style.pointerEvents="none",this._el.style.visibility="visible",this._el.style.width="10vw",this._el.style.height="100vh",this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.display="none",this._el.style.top="0",this._el.style.left="0"),this._el)),Qo(this,"_arrayBufferToBase64",e=>{let t="";const n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e+=1)t+=String.fromCharCode(n[e]);return window.btoa(t)}),Qo(this,"remove",(e,t=1e3)=>{e.style.transition=`opacity ${t}ms ease-in-out`,e.style.opacity=1,e.addEventListener("transitionend",function(){e.remove()}),e.style.opacity=0}),Qo(this,"update",e=>{if(NE.isActive())if(e.image){const t=this.el().cloneNode(),n=`data:${e.mime_type};base64,${this._arrayBufferToBase64(e.image)}`,{id:r="cb_io_drawing"}=e;t.style.left=100*e.x+"%",t.style.top=100*e.y+"%",t.style.height=100*e.height+"%",t.style.width=100*e.width+"%",t.style.display="block",t.src=n,t.id=r,t.dataset.agent=e.agent,t.decode().then(()=>{const n=document.getElementById(r);n?n.replaceWith(t):document.body.appendChild(t),null!=e.disappears_in&&setTimeout(()=>{this.remove(t,e.fade_duration)},e.disappears_in)}).catch(e=>{console.error(e)})}else this.hide(e.agent)}),Qo(this,"hide",e=>{(null!=e?document.querySelectorAll(`.cbio_session_overlay[data-agent="${e}"]`):document.querySelectorAll(".cbio_session_overlay")).forEach(function(e){e.remove()})})}},dV=new Set;function hV(e,t,n,r={}){!function(e,t){const n=`${e}-${t}`;if(dV.has(n))return;const r=document.createElement("style");r.id=`cbio_session_ripple_stylesheet_${n}`,r.textContent=`\n @keyframes cbio_session_ripple_effect-${n} {\n 0% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 1;\n }\n 100% {\n transform: translate(-50%, -50%) scale(${t});\n opacity: 0;\n }\n }\n .cbio_session_ripple-${n} {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n position: absolute;\n z-index: 2147483647;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(${t});\n pointer-events: none;\n animation: cbio_session_ripple_effect-${n} ${e}ms ease-out forwards;\n }\n `,document.head.appendChild(r),dV.add(n)}(t,n);const i=(o=e,"rgba("+parseInt(o.slice(1,3),16)+", "+parseInt(o.slice(3,5),16)+", "+parseInt(o.slice(5,7),16)+", 0.25)");var o;const s=document.createElement("div");return s.classList.add(`cbio_session_ripple-${t}-${n}`),Object.assign(s.style,{backgroundColor:i},r),setTimeout(()=>{s.remove()},t),s}var fV=new WeakMap,pV=new WeakMap;class gV{constructor(e){Bo(this,fV,new Map),Bo(this,pV,null),zo(pV,this,e)}getInstanceForAgent(e){return jo(fV,this).has(e)||jo(fV,this).set(e,new(jo(pV,this))),jo(fV,this).get(e)}hide(){jo(fV,this).forEach((e,t)=>{e.hide(),jo(fV,this).delete(t)})}}const mV="#e94435";class _V{constructor(){Qo(this,"el",()=>(this._el||(this._el=document.createElement("div"),this._el.className="cbio_session_overlay",Object.assign(this._el.style,{position:"fixed",zIndex:"2147483647",width:"8px",height:"8px",background:mV,marginLeft:"-4px",marginTop:"-4px",borderRadius:"50%",border:"border: 1px solid white",pointerEvents:"none"})),this._el)),Qo(this,"hasChangedPosition",()=>null!=this.previousPosition&&(Math.abs(this.previousPosition.x-this.currentPosition.x)>1||Math.abs(this.previousPosition.y-this.currentPosition.y)>1)),Qo(this,"startAnimation",e=>{this._intervalId||(this._intervalId=setInterval(()=>this._createRipple(e),this.rippleInterval),this._createRipple(e))}),Qo(this,"stopAnimation",()=>{this._intervalId&&clearInterval(this._intervalId),this._el&&this._el.replaceChildren(),this.resetState()}),Qo(this,"update",e=>{NE.isActive()&&(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),"touchend"===e.state?this.hide():null!=e.x&&null!=e.y&&(this.currentPosition.x=100*e.x,this.currentPosition.y=100*e.y,this.el().style.background=e.colour,this.el().style.left=`${this.currentPosition.x}%`,this.el().style.top=`${this.currentPosition.y}%`,this.startAnimation(e.colour)))}),Qo(this,"hide",()=>{var e;null===(e=this._el)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(this._el),this.stopAnimation()}),this.rippleDuration=3e3,this.rippleInterval=750,this._el=null,this.resetState()}resetState(){this._intervalId=null,this.currentPosition={x:0,y:0},this.previousPosition=null,this.resetRippleScale()}resetRippleScale(){this.rippleScale=16}_createRipple(e=mV){this.hasChangedPosition()?this.rippleScale=6:this.rippleScale=Math.min(this.rippleScale+5,16),this.previousPosition=Yo({},this.currentPosition);const t=hV(e,this.rippleDuration,this.rippleScale);this.el().appendChild(t)}}const vV=new class extends gV{constructor(){super(_V)}update(e){this.getInstanceForAgent(e.agent).update(e)}};class EV{constructor(){Qo(this,"el",()=>{if(!this._el){const e="http://www.w3.org/2000/svg";this._el=document.createElementNS(e,"svg"),this._el.setAttribute("class","__cbio_ignored"),this._el.setAttribute("viewBox","0 0 35 35"),this._el.setAttribute("fill","none"),this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.height="32px",this._el.style.width="32px",this._el.style.marginLeft="-16px",this._el.style.marginTop="0px",this._el.style.color="red",this._el.style.transition="opacity 0.5s",this._el.style.opacity=1,this._el.style.pointerEvents="none";const t=document.createElementNS(e,"path");t.setAttribute("d","M26.5148 15.8441V17.0941C26.5148 17.7541 26.9798 17.2891 26.3198 17.2891C25.6598 17.2891 26.1248 17.7541 26.1248 17.0941V14.5108C26.1248 13.8361 24.5779 12.2891 23.9032 12.2891C23.2285 12.2891 21.6815 13.8361 21.6815 14.5108V17.0941C21.6815 17.7541 22.1465 17.2891 21.4865 17.2891C20.8265 17.2891 21.2915 17.7541 21.2915 17.0941V13.0108C21.2915 12.3361 19.7445 10.7891 19.0698 10.7891C18.3951 10.7891 16.8482 12.3361 16.8482 13.0108V17.0941C16.8482 17.7541 17.3131 17.2891 16.6532 17.2891C15.9932 17.2891 16.4582 17.7541 16.4582 17.0941V5.01073C16.4582 4.33602 14.9112 2.78906 14.2365 2.78906C13.5618 2.78906 12.0148 4.33602 12.0148 5.01073V18.5941C12.0148 19.0774 12.7237 18.5132 12.2771 18.6981C11.8306 18.8831 11.3166 18.7809 10.9748 18.4391L8.262 15.7263C7.85703 15.3213 6.23834 15.2209 5.72608 15.477C5.04602 15.8171 4.78867 17.6568 5.16142 18.3195L11.0678 28.0419C12.5818 30.7334 15.4298 32.3991 18.518 32.3991H21.3198C25.9066 32.3991 30.6248 27.6808 30.6248 23.0941V15.8441C30.6248 15.2614 29.1525 13.7891 28.5698 13.7891C27.9872 13.7891 26.5148 15.2614 26.5148 15.8441Z"),t.setAttribute("fill","currentColor"),t.setAttribute("fill-rule","evenodd"),t.setAttribute("clip-rule","evenodd");const n=document.createElementNS(e,"path");n.setAttribute("d","M10.6247 5.01011C10.6247 3.01544 12.2417 1.39844 14.2364 1.39844C16.2311 1.39844 17.8481 3.01544 17.8481 5.01011V9.61029C18.2296 9.47316 18.641 9.39844 19.0697 9.39844C20.4448 9.39844 21.6404 10.1669 22.2505 11.2978C22.7457 11.0425 23.3076 10.8984 23.9031 10.8984C25.2578 10.8984 26.4383 11.6443 27.0563 12.7478C27.5131 12.524 28.0268 12.3984 28.5697 12.3984C30.4724 12.3984 32.0147 13.9408 32.0147 15.8434V23.0934C32.0147 29.0001 27.2264 33.7884 21.3197 33.7884H18.5179C14.5663 33.7884 10.9219 31.657 8.98462 28.2129L4.07828 19.4905C3.03598 17.6375 3.7556 15.2894 5.65716 14.3386C7.08954 13.6225 8.81951 13.9032 9.95191 15.0356L10.6247 15.7084V5.01011ZM27.5147 15.8434V17.0934C27.5147 17.7534 26.9797 18.2884 26.3197 18.2884C25.6597 18.2884 25.1247 17.7534 25.1247 17.0934V14.5101C25.1247 13.8354 24.5778 13.2884 23.9031 13.2884C23.2284 13.2884 22.6814 13.8354 22.6814 14.5101V17.0934C22.6814 17.7534 22.1464 18.2884 21.4864 18.2884C20.8264 18.2884 20.2914 17.7534 20.2914 17.0934V13.0101C20.2914 12.3354 19.7444 11.7884 19.0697 11.7884C18.395 11.7884 17.8481 12.3354 17.8481 13.0101V17.0934C17.8481 17.7534 17.313 18.2884 16.6531 18.2884C15.9931 18.2884 15.4581 17.7534 15.4581 17.0934V5.01011C15.4581 4.3354 14.9111 3.78844 14.2364 3.78844C13.5617 3.78844 13.0147 4.3354 13.0147 5.01011V18.5934C13.0147 19.0767 12.7236 19.5125 12.277 19.6974C11.8305 19.8824 11.3165 19.7802 10.9747 19.4384L8.26192 16.7256C7.85695 16.3206 7.23826 16.2202 6.726 16.4763C6.04594 16.8164 5.78859 17.6561 6.16134 18.3188L11.0677 27.0412C12.5817 29.7327 15.4297 31.3984 18.5179 31.3984H21.3197C25.9065 31.3984 29.6247 27.6801 29.6247 23.0934V15.8434C29.6247 15.2607 29.1524 14.7884 28.5697 14.7884C27.9871 14.7884 27.5147 15.2607 27.5147 15.8434Z"),n.setAttribute("fill","white"),n.setAttribute("fill-rule","evenodd"),n.setAttribute("clip-rule","evenodd"),this._el.appendChild(t),this._el.appendChild(n)}return this._el}),Qo(this,"calculateOffset",e=>{var t;const n=PI.getById(e.target.id),r=null==n||null===(t=n.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t?void 0:t.frameElement;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect();return{offsetX:Math.round(i.left),offsetY:Math.round(i.top)}}),Qo(this,"getOffset",e=>{var t,n;const{offsetX:r,offsetY:i}=e;return void 0!==r&&void 0!==i?{offsetX:r*(null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth),offsetY:i*(null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight)}:this.calculateOffset(e)}),Qo(this,"_updatePosition",e=>{var t,n;let{x:r,y:i}=e;if(!1===r||!1===i)return;r*=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth,i*=null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight;const o=this.getOffset(e);r+=o.offsetX,i+=o.offsetY,this.el().style.top=`${i}px`,this.el().style.left=`${r}px`,this._lastPosition={x:r,y:i}}),Qo(this,"_getRippleStyle",()=>({position:"fixed",left:this._lastPosition.x-4+"px",top:`${this._lastPosition.y+4}px`})),Qo(this,"_createRipple",(e="#e94435")=>{const t=hV(e,1e3,12,this._getRippleStyle());document.body.appendChild(t)}),Qo(this,"update",(e,t)=>{if("mouse"===e&&NE.isActive())switch(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),t.colour&&(this.el().style.color=t.colour),t.state){case"mousedown":this._hideAfterTimeout(),this._createRipple(t.colour),this.interval||(this.interval=setInterval(()=>{this._createRipple(t.colour)},500));break;case"mouseup":this._hideAfterTimeout(),clearInterval(this.interval),this.interval=null;break;case"mousemove":this._hideAfterTimeout(),this._updatePosition(t)}}),Qo(this,"hide",()=>{clearTimeout(this.fadeTimeOut),this.el().parentNode&&this.el().parentNode.removeChild(this.el())})}_hideAfterTimeout(){clearTimeout(this.fadeTimeOut),this.el().style.opacity=1,this.fadeTimeOut=setTimeout(()=>{this.el().style.opacity=0},5e3)}}const wV=new class extends gV{constructor(){super(EV)}update(e,t){this.getInstanceForAgent(t.agent).update(e,t)}},yV={ar:{ALLOW:"سماح",CALLING_ACCEPT:"قبول",CALLING_AGENT_DECLINED:"تم رفض المكالمة من قبل الوكيل",CALLING_AGENT_WAITING:"في انتظار الوكيل...",CALLING_BACK:"عودة",CALLING_CAMERA_OFF:"الكاميرا مغلقة",CALLING_CAMERA_PERMISSION_DENIED:"تم رفض الوصول إلى الكاميرا. قم بتمكينه في إعدادات المتصفح الخاص بك.",CALLING_CAMERA_PERMISSION_PROMPT:"السماح بالوصول إلى الكاميرا",CALLING_CAMERA_STARTING:"الكاميرا تبدأ العمل",CALLING_CANCEL:"إلغاء",CALLING_DISABLE_AUDIO:"تعطيل الصوت",CALLING_DISABLE_VIDEO:"تعطيل الفيديو",CALLING_ENABLE_AUDIO:"تمكين الصوت",CALLING_ENABLE_VIDEO:"تفعيل الفيديو",CALLING_END:"إنهاء المكالمة",CALLING_IN_PROGRESS:"جارٍ الانضمام إلى مكالمة الفيديو",CALLING_JOIN:"انضم إلى المكالمة",CALLING_JOIN_PROMPT:"يرغب وكيل الدعم في الاتصال بك.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"أنا",CALLING_MICROPHONE_PERMISSION_DENIED:"تم رفض الوصول إلى الميكروفون. فعّله في إعدادات المتصفح الخاص بك.",CALLING_MICROPHONE_PERMISSION_PROMPT:"السماح بالوصول إلى الميكروفون",CALLING_NO_DEVICES:"لا شيء",CALLING_PERMISSION_NEEDED:"مطلوب إذن",CALLING_REJECT:"رفض المكالمة",CALLING_REJOIN_PROMPT:"لديك مكالمة نشطة مع وكيل الدعم. هل تريد الانضمام مرة أخرى؟",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"الوكيل",CALLING_REQUEST:"هل تريد الانضمام إلى مكالمة الفيديو؟",CALLING_RETRY:"إعادة المحاولة",CALLING_SAVE:"حفظ",CALLING_SELECT_CAMERA:"اختر الكاميرا",CALLING_SELECT_MICROPHONE:"اختر الميكروفون",CALLING_SELECT_SPEAKER:"اختر المتحدث",CALLING_SHOW_CALL_SETTINGS:"عرض إعدادات المكالمة",DENY:"رفض",END_SESSION:"إنهاء جلسة Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في عرض شاشتك.",FULL_DEVICE_REQUEST_TITLE:"السماح بالتقاط الشاشة كاملة؟",REMOTE_CONTROL_REQUEST_DESCRIPTION:"وكيل ادعم يريد التحكم بهذه الصفحة.",REMOTE_CONTROL_REQUEST_TITLE:"السماح بالتحكم عن بُعد؟",SESSION_REQUEST_DESCRIPTION:"يرغب أحد موظفي خدمة العملاء في استخدام هذه الصفحة معك،",SESSION_REQUEST_TITLE:"السماح بالتصفح المشترك؟",UNIVERSAL_PROXY_BLOCKED:"لا يمكن عرض هذه الصفحة مع وكيل الدعم",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في متابعتك إلى صفحات ويب أخرى.",UNIVERSAL_PROXY_REQUEST_TITLE:"السماح بمتابعة الجلسة؟"},cs:{ALLOW:"Povolit",CALLING_ACCEPT:"Přijmout",CALLING_AGENT_DECLINED:"Hovor odmítnut operátorem",CALLING_AGENT_WAITING:"Čekání na agenta...",CALLING_BACK:"Zpět",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Přístup ke kameře odepřen. Povolit jej v nastavení prohlížeče.",CALLING_CAMERA_PERMISSION_PROMPT:"Povolit přístup ke kameře",CALLING_CAMERA_STARTING:"Kamera se spouští",CALLING_CANCEL:"Zrušit",CALLING_DISABLE_AUDIO:"Zakázat zvuk",CALLING_DISABLE_VIDEO:"Zakázat video",CALLING_ENABLE_AUDIO:"Povolit zvuk",CALLING_ENABLE_VIDEO:"Povolit video",CALLING_END:"Ukončit hovor",CALLING_IN_PROGRESS:"Vstup do videohovoru",CALLING_JOIN:"Připojit se k hovoru",CALLING_JOIN_PROMPT:"Podpora by vás ráda kontaktovala telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Já",CALLING_MICROPHONE_PERMISSION_DENIED:"Přístup k mikrofonu odepřen. Povolte jej v nastavení prohlížeče.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povolit přístup k mikrofonu",CALLING_NO_DEVICES:"Žádný",CALLING_PERMISSION_NEEDED:"Vyžadováno povolení",CALLING_REJECT:"Odmítnout hovor",CALLING_REJOIN_PROMPT:"Máte aktivní hovor s podpůrným agentem. Chcete se znovu připojit?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstoupit do videohovoru?",CALLING_RETRY:"Opakovat pokus",CALLING_SAVE:"Uložit",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vybrat mikrofon",CALLING_SELECT_SPEAKER:"Vyberte reproduktor",CALLING_SHOW_CALL_SETTINGS:"Zobrazit nastavení hovoru",DENY:"Odmítnout",END_SESSION:"Zastavit sdílení",FULL_DEVICE_REQUEST_DESCRIPTION:"Podpora by si ráda prohlédla celou vaši obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povolit úplné snímání obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podpora by ráda ovládala tuto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povolit vzdálené ovládání?",SESSION_REQUEST_DESCRIPTION:"Podpůrný pracovník by s vámi chtěl dočasně používat tuto webovou stránku.",SESSION_REQUEST_TITLE:"Povolit společné prohlížení?",UNIVERSAL_PROXY_BLOCKED:"Tuto webovou stránku nelze zobrazit s podpůrným pracovníkem",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent podpory by vás rád sledoval na jiné webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povolit pokračování relace?"},da:{ALLOW:"Tillad",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Opkald afvist af agent",CALLING_AGENT_WAITING:"Venter på agent...",CALLING_BACK:"Tilbage",CALLING_CAMERA_OFF:"Kamera er slukket",CALLING_CAMERA_PERMISSION_DENIED:"Adgang til kamera nægtet. Aktivér det i dine browserindstillinger.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillad adgang til kamera",CALLING_CAMERA_STARTING:"Kamera starter",CALLING_CANCEL:"Annuller",CALLING_DISABLE_AUDIO:"Deaktiver lyd",CALLING_DISABLE_VIDEO:"Deaktiver video",CALLING_ENABLE_AUDIO:"Aktiver lyd",CALLING_ENABLE_VIDEO:"Aktivér video",CALLING_END:"Afslut opkald",CALLING_IN_PROGRESS:"Deltager i videoopkald",CALLING_JOIN:"Deltag i opkaldet",CALLING_JOIN_PROMPT:"En supportagent vil gerne ringe til dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mig",CALLING_MICROPHONE_PERMISSION_DENIED:"Adgang til mikrofon nægtet. Aktivér det i dine browserindstillinger.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillad adgang til mikrofon",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Tilladelse nødvendig",CALLING_REJECT:"Afvis opkald",CALLING_REJOIN_PROMPT:"Du har en aktiv samtale med en supportagent. Vil du genoptage den?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Deltage i videoopkald?",CALLING_RETRY:"Prøv igen",CALLING_SAVE:"Gem </translateOnlyThis>",CALLING_SELECT_CAMERA:"Vælg kamera",CALLING_SELECT_MICROPHONE:"Vælg mikrofon",CALLING_SELECT_SPEAKER:"Vælg højtaler",CALLING_SHOW_CALL_SETTINGS:"Vis opkaldsindstillinger",DENY:"Nægt",END_SESSION:"Stop deling",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent ønsker at se din hele skærm.",FULL_DEVICE_REQUEST_TITLE:"Tillad fuldskærmsoptagelse?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent ønsker at kontrollere denne side.",REMOTE_CONTROL_REQUEST_TITLE:"Tillad fjernbetjening?",SESSION_REQUEST_DESCRIPTION:"En supportagent ønsker midlertidigt at bruge denne webside sammen med dig.",SESSION_REQUEST_TITLE:"Tillad cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Denne webside kan ikke vises sammen med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vil gerne følge dig til andre websider.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillad fortsættelse af session?"},de:{ALLOW:"Erlauben",CALLING_ACCEPT:"Akzeptieren",CALLING_AGENT_DECLINED:"Anruf vom Agenten abgelehnt",CALLING_AGENT_WAITING:"Warten auf Agent...",CALLING_BACK:"Zurück",CALLING_CAMERA_OFF:"Kamera ist ausgeschaltet",CALLING_CAMERA_PERMISSION_DENIED:"Kamerazugriff verweigert. Aktivieren Sie ihn in den Browsereinstellungen.",CALLING_CAMERA_PERMISSION_PROMPT:"Zugriff auf die Kamera erlauben",CALLING_CAMERA_STARTING:"Kamera wird gestartet",CALLING_CANCEL:"Abbrechen",CALLING_DISABLE_AUDIO:"Audio deaktivieren",CALLING_DISABLE_VIDEO:"Video deaktivieren",CALLING_ENABLE_AUDIO:"Audio aktivieren",CALLING_ENABLE_VIDEO:"Video aktivieren",CALLING_END:"Anruf beenden",CALLING_IN_PROGRESS:"Beitreten zum Videoanruf",CALLING_JOIN:"Anruf beitreten",CALLING_JOIN_PROMPT:"Ein Support-Mitarbeiter möchte Sie anrufen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ich",CALLING_MICROPHONE_PERMISSION_DENIED:"Zugriff auf Mikrofon verweigert. Aktivieren Sie diesen in den Browsereinstellungen.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zugriff auf Mikrofon erlauben",CALLING_NO_DEVICES:"Keine",CALLING_PERMISSION_NEEDED:"Berechtigung erforderlich",CALLING_REJECT:"Anruf ablehnen",CALLING_REJOIN_PROMPT:"Sie sind in einem aktiven Gespräch mit einem Support-Mitarbeiter. Möchten Sie wieder beitreten?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Videoanruf starten?",CALLING_RETRY:"Erneut versuchen",CALLING_SAVE:"Speichern",CALLING_SELECT_CAMERA:"Kamera auswählen",CALLING_SELECT_MICROPHONE:"Mikrofon auswählen",CALLING_SELECT_SPEAKER:"Sprecher auswählen",CALLING_SHOW_CALL_SETTINGS:"Anrufeinstellungen anzeigen",DENY:"Ablehnen",END_SESSION:"Cobrowse-Sitzung beenden",FULL_DEVICE_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Ihren gesamten Bildschirm anzeigen.",FULL_DEVICE_REQUEST_TITLE:"Vollständige Bildschirmaufnahme erlauben?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Seite steuern.",REMOTE_CONTROL_REQUEST_TITLE:"Fernsteuerung erlauben?",SESSION_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Webseite vorübergehend mit Ihnen nutzen.",SESSION_REQUEST_TITLE:"Cobrowsing erlauben?",UNIVERSAL_PROXY_BLOCKED:"Diese Webseite kann nicht mit einem Support-Mitarbeiter angezeigt werden",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Sie zu anderen Webseiten begleiten.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sitzungsfortsetzung erlauben?"},en:{ALLOW:"Allow",CALLING_ACCEPT:"Accept",CALLING_AGENT_DECLINED:"Call declined by agent",CALLING_AGENT_WAITING:"Waiting for agent...",CALLING_BACK:"Back",CALLING_CAMERA_OFF:"Camera is off",CALLING_CAMERA_PERMISSION_DENIED:"Camera access denied. Enable it in your browser settings.",CALLING_CAMERA_PERMISSION_PROMPT:"Allow access to camera",CALLING_CAMERA_STARTING:"Camera is starting",CALLING_CANCEL:"Cancel",CALLING_DISABLE_AUDIO:"Disable audio",CALLING_DISABLE_VIDEO:"Disable video",CALLING_ENABLE_AUDIO:"Enable audio",CALLING_ENABLE_VIDEO:"Enable video",CALLING_END:"End call",CALLING_IN_PROGRESS:"Entering video call",CALLING_JOIN:"Join call",CALLING_JOIN_PROMPT:"A support agent would like to call you.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Microphone access denied. Enable it in your browser settings.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Allow access to microphone",CALLING_NO_DEVICES:"None",CALLING_PERMISSION_NEEDED:"Permission needed",CALLING_REJECT:"Reject call",CALLING_REJOIN_PROMPT:"You have an active call with a support agent. Do you want to rejoin?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Enter video call?",CALLING_RETRY:"Retry",CALLING_SAVE:"Save",CALLING_SELECT_CAMERA:"Select camera",CALLING_SELECT_MICROPHONE:"Select microphone",CALLING_SELECT_SPEAKER:"Select speaker",CALLING_SHOW_CALL_SETTINGS:"Show call settings",DENY:"Deny",END_SESSION:"Stop Sharing",FULL_DEVICE_REQUEST_DESCRIPTION:"A support agent would like to view your entire screen.",FULL_DEVICE_REQUEST_TITLE:"Allow full screen capture?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"A support agent would like to control this page.",REMOTE_CONTROL_REQUEST_TITLE:"Allow remote control?",SESSION_REQUEST_DESCRIPTION:"A support agent would like to temporarily use this web page with you.",SESSION_REQUEST_TITLE:"Allow cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"This web page cannot be viewed with a support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"A support agent would like to follow you to other web pages.",UNIVERSAL_PROXY_REQUEST_TITLE:"Allow session continuation?"},es:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Atrás",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar vídeo",CALLING_ENABLE_AUDIO:"Activar audio",CALLING_ENABLE_VIDEO:"Habilitar vídeo",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando en la videollamada",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Quieres volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Entrar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamadas",DENY:"Denegar",END_SESSION:"Finalizar Sesión",FULL_DEVICE_REQUEST_DESCRIPTION:"Un asistente de soporte solicita visualizar la totalidad de su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte desea controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte desea seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},"es-MX":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Regresar",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar video",CALLING_ENABLE_AUDIO:"Habilitar audio",CALLING_ENABLE_VIDEO:"Habilitar video",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando a llamada de video",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Deseas volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Ingresar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamada",DENY:"Denegar",END_SESSION:"Finalizar Sesión de Navegación Conjunta",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente de soporte quiere ver toda su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte quiere controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte quiere seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},et:{ALLOW:"Luba",CALLING_ACCEPT:"Nõustu",CALLING_AGENT_DECLINED:"Kõne agent poolt tagasi lükatud",CALLING_AGENT_WAITING:"Ootame agenti...",CALLING_BACK:"Tagasi",CALLING_CAMERA_OFF:"Kaamera on välja lülitatud",CALLING_CAMERA_PERMISSION_DENIED:"Kaamera ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_CAMERA_PERMISSION_PROMPT:"Luba juurdepääs kaamerale",CALLING_CAMERA_STARTING:"Kaamera käivitub",CALLING_CANCEL:"Tühista",CALLING_DISABLE_AUDIO:"Lülita heli välja",CALLING_DISABLE_VIDEO:"Keela video",CALLING_ENABLE_AUDIO:"Luba heli",CALLING_ENABLE_VIDEO:"Luba video",CALLING_END:"Lõpeta kõne",CALLING_IN_PROGRESS:"Videokõnesse sisenemine",CALLING_JOIN:"Liitu kõnega",CALLING_JOIN_PROMPT:"Toetusagend soovib teid helistada.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mina",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofoni ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Luba mikrofoni kasutamise õigus",CALLING_NO_DEVICES:"Mitte ükski",CALLING_PERMISSION_NEEDED:"Vaja luba",CALLING_REJECT:"Keela kõne",CALLING_REJOIN_PROMPT:"Teilitate jooksval kõnel tugiteenuse esindajaga. Kas soovite uuesti ühineda?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Esindaja",CALLING_REQUEST:"Sisene videokõnesse?",CALLING_RETRY:"Proovi uuesti",CALLING_SAVE:"Salvesta",CALLING_SELECT_CAMERA:"Vali kaamera",CALLING_SELECT_MICROPHONE:"Vali mikrofon",CALLING_SELECT_SPEAKER:"Vali kõneleja",CALLING_SHOW_CALL_SETTINGS:"Kuva kõne seadeid",DENY:"Keeldu",END_SESSION:"Jaga jagamine lõpetada",FULL_DEVICE_REQUEST_DESCRIPTION:"Tugiagendi soovib teie kogu ekraani vaadata.",FULL_DEVICE_REQUEST_TITLE:"Luba täisekraani salvestuse lubamine?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tugiteenindaja soovib seda lehte juhtida.",REMOTE_CONTROL_REQUEST_TITLE:"Lubate kaugjuhtimist?",SESSION_REQUEST_DESCRIPTION:"Toetusagent soovib seda veebilehte teiega ajutiselt kasutada.",SESSION_REQUEST_TITLE:"Luba koosturundus?",UNIVERSAL_PROXY_BLOCKED:"Seda veebilehte ei saa vaadata koos tugiesindajaga",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Toetusagendi soovib teid teistele veebilehtedele jälgida.",UNIVERSAL_PROXY_REQUEST_TITLE:"Kas lubada seansi jätkamine?"},fi:{ALLOW:"Salli",CALLING_ACCEPT:"Hyväksy",CALLING_AGENT_DECLINED:"Puhelu hylätty agentin toimesta",CALLING_AGENT_WAITING:"Odotetaan asiakaspalvelijaa...",CALLING_BACK:"Takaisin",CALLING_CAMERA_OFF:"Kamera on pois päältä",CALLING_CAMERA_PERMISSION_DENIED:"Kameran käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_CAMERA_PERMISSION_PROMPT:"Salli pääsy kameraan",CALLING_CAMERA_STARTING:"Kamera käynnistyy",CALLING_CANCEL:"Peruuta",CALLING_DISABLE_AUDIO:"Poista ääni käytöstä",CALLING_DISABLE_VIDEO:"Poista video käytöstä",CALLING_ENABLE_AUDIO:"Ota ääni käyttöön",CALLING_ENABLE_VIDEO:"Ota video käyttöön",CALLING_END:"Lopeta puhelu",CALLING_IN_PROGRESS:"Liityt videopuheluun",CALLING_JOIN:"Liity puheluun",CALLING_JOIN_PROMPT:"Tukihenkilö haluaisi soittaa sinulle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Minä",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofonin käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Salli pääsy mikrofonille",CALLING_NO_DEVICES:"Ei mitään",CALLING_PERMISSION_NEEDED:"Lupa tarvitaan",CALLING_REJECT:"Hylkää puhelu",CALLING_REJOIN_PROMPT:"Sinulla on aktiivinen puhelu tukiedustajan kanssa. Haluatko liittyä uudelleen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Asiakaspalvelija",CALLING_REQUEST:"Haluatko mennä videopuheluun?",CALLING_RETRY:"Yritä uudelleen",CALLING_SAVE:"Tallenna",CALLING_SELECT_CAMERA:"Valitse kamera",CALLING_SELECT_MICROPHONE:"Valitse mikrofoni",CALLING_SELECT_SPEAKER:"Valitse kaiutin",CALLING_SHOW_CALL_SETTINGS:"Näytä puheluasetukset",DENY:"Estä",END_SESSION:"Lopeta jakaminen",FULL_DEVICE_REQUEST_DESCRIPTION:"Tukihenkilö haluaa nähdä koko näyttösi.",FULL_DEVICE_REQUEST_TITLE:"Sallitaanko kokoruudun tallennus?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tukihenkilö haluaisi ohjata tätä sivua.",REMOTE_CONTROL_REQUEST_TITLE:"Sallitaanko etäohjaus?",SESSION_REQUEST_DESCRIPTION:"Asiakaspalvelija haluaisi väliaikaisesti käyttää tätä verkkosivua kanssasi.",SESSION_REQUEST_TITLE:"Salli yhteisselaus?",UNIVERSAL_PROXY_BLOCKED:"Tätä verkkosivua ei voi tarkastella tukihenkilön kanssa",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Tukihenkilö haluaa seurata sinua muille verkkosivuille.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sallitaanko istunnon jatkaminen?"},fr:{ALLOW:"Autoriser",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Appel refusé par l'agent",CALLING_AGENT_WAITING:"En attente de l'agent...",CALLING_BACK:"Retour",CALLING_CAMERA_OFF:"La caméra est éteinte",CALLING_CAMERA_PERMISSION_DENIED:"Accès à la caméra refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_CAMERA_PERMISSION_PROMPT:"Autoriser l'accès à la caméra",CALLING_CAMERA_STARTING:"La caméra démarre",CALLING_CANCEL:"Annuler",CALLING_DISABLE_AUDIO:"Désactiver l'audio",CALLING_DISABLE_VIDEO:"Désactiver la vidéo",CALLING_ENABLE_AUDIO:"Activer l'audio",CALLING_ENABLE_VIDEO:"Activer la vidéo",CALLING_END:"Terminer l'appel",CALLING_IN_PROGRESS:"Connexion à l'appel vidéo",CALLING_JOIN:"Rejoindre l'appel",CALLING_JOIN_PROMPT:"Un agent de support souhaite vous appeler.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Moi",CALLING_MICROPHONE_PERMISSION_DENIED:"Accès au microphone refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Autoriser l'accès au microphone",CALLING_NO_DEVICES:"Aucun",CALLING_PERMISSION_NEEDED:"Permission requise",CALLING_REJECT:"Rejeter l'appel",CALLING_REJOIN_PROMPT:"Vous êtes en communication avec un agent de support. Voulez-vous rejoindre à nouveau ?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Entrer dans l'appel vidéo ?",CALLING_RETRY:"Réessayer",CALLING_SAVE:"Enregistrer",CALLING_SELECT_CAMERA:"Sélectionner la caméra",CALLING_SELECT_MICROPHONE:"Sélectionner un microphone",CALLING_SELECT_SPEAKER:"Sélectionner le haut-parleur",CALLING_SHOW_CALL_SETTINGS:"Afficher les paramètres d'appel",DENY:"Refuser",END_SESSION:"Terminer la session de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait voir l'intégralité de votre écran.",FULL_DEVICE_REQUEST_TITLE:"Autoriser la capture d'écran complète ?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent du soutien souhaiterait avoir le contrôle de cette page.",REMOTE_CONTROL_REQUEST_TITLE:"Autoriser le contrôle à distance ?",SESSION_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait temporairement utiliser cette page Web avec vous.",SESSION_REQUEST_TITLE:"Autoriser le cobrowsing ?",UNIVERSAL_PROXY_BLOCKED:"Cette page Web ne peut pas être vue avec un agent de soutien",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait vous suivre vers d'autres pages Web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Autoriser la continuation de session ?"},hi:{ALLOW:"अनुमति देना",CALLING_ACCEPT:"स्वीकार करें",CALLING_AGENT_DECLINED:"एजेंट द्वारा कॉल अस्वीकार किया गया",CALLING_AGENT_WAITING:"एजेंट के लिए प्रतीक्षा कर रहे हैं...",CALLING_BACK:"वापस",CALLING_CAMERA_OFF:"कैमरा बंद है",CALLING_CAMERA_PERMISSION_DENIED:"कैमरा एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_CAMERA_PERMISSION_PROMPT:"कैमरा तक पहुंच की अनुमति दें",CALLING_CAMERA_STARTING:"कैमरा शुरू हो रहा है",CALLING_CANCEL:"रद्द करें",CALLING_DISABLE_AUDIO:"ऑडियो अक्षम करें",CALLING_DISABLE_VIDEO:"वीडियो अक्षम करें",CALLING_ENABLE_AUDIO:"ऑडियो सक्षम करें",CALLING_ENABLE_VIDEO:"वीडियो सक्षम करें",CALLING_END:"कॉल समाप्त करें",CALLING_IN_PROGRESS:"वीडियो कॉल में प्रवेश करना",CALLING_JOIN:"कॉल में शामिल हों",CALLING_JOIN_PROMPT:"एक समर्थन एजेंट आपको कॉल करना चाहता है।",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मैं",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_MICROPHONE_PERMISSION_PROMPT:"माइक्रोफोन तक पहुंच की अनुमति दें",CALLING_NO_DEVICES:"कोई नहीं",CALLING_PERMISSION_NEEDED:"अनुमति आवश्यक है",CALLING_REJECT:"कॉल अस्वीकार करें",CALLING_REJOIN_PROMPT:"आपका एक सक्रिय कॉल समर्थन एजेंट के साथ है। क्या आप पुनः जुड़ना चाहते हैं?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजेंट",CALLING_REQUEST:"वीडियो कॉल में प्रवेश करें?",CALLING_RETRY:"पुनः प्रयास करें",CALLING_SAVE:"सहेजें",CALLING_SELECT_CAMERA:"कैमरा चुनें",CALLING_SELECT_MICROPHONE:"माइक्रोफोन चुनें",CALLING_SELECT_SPEAKER:"वक्ता चुनें",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्स दिखाएं",DENY:"अस्वीकार करना",END_SESSION:"कोब्रोसे सत्र समाप्त करें",FULL_DEVICE_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपकी पूरी स्क्रीन देखना चाहेगा।",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कैप्चर की अनुमति दें?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक समर्थन एजेंट इस पेज को नियंत्रित करना चाहता है।",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोल की अनुमति दें?",SESSION_REQUEST_DESCRIPTION:"एक सहायता एजेंट अस्थायी रूप से आपके साथ इस वेब पेज का उपयोग करना चाहेगा।",SESSION_REQUEST_TITLE:"कोब्राउज़िंग की अनुमति दें?",UNIVERSAL_PROXY_BLOCKED:"यह वेब पेज सहायता एजेंट के साथ नहीं देखा जा सकता",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपका अन्य वेब पेजों में पीछा करना चाहेगा।",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र निरंतरता की अनुमति दें?"},it:{ALLOW:"Consenti",CALLING_ACCEPT:"Accetta",CALLING_AGENT_DECLINED:"Chiamata rifiutata dall'agente",CALLING_AGENT_WAITING:"In attesa dell'agente...",CALLING_BACK:"Indietro",CALLING_CAMERA_OFF:"La fotocamera è spenta",CALLING_CAMERA_PERMISSION_DENIED:"Accesso alla fotocamera negato. Attivalo nelle impostazioni del tuo browser.",CALLING_CAMERA_PERMISSION_PROMPT:"Consenti l'accesso alla fotocamera",CALLING_CAMERA_STARTING:"La fotocamera si sta avviando",CALLING_CANCEL:"Annulla",CALLING_DISABLE_AUDIO:"Disabilita audio",CALLING_DISABLE_VIDEO:"Disabilita video",CALLING_ENABLE_AUDIO:"Abilita audio",CALLING_ENABLE_VIDEO:"Abilita video",CALLING_END:"Termina chiamata",CALLING_IN_PROGRESS:"Partecipazione alla videochiamata",CALLING_JOIN:"Partecipa alla chiamata",CALLING_JOIN_PROMPT:"Un agente di supporto desidera chiamarla.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesso al microfono negato. Abilitalo nelle impostazioni del browser.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Consenti l'accesso al microfono",CALLING_NO_DEVICES:"Nessuno",CALLING_PERMISSION_NEEDED:"Permesso necessario",CALLING_REJECT:"Rifiuta chiamata",CALLING_REJOIN_PROMPT:"Hai una chiamata attiva con un agente di supporto. Vuoi rientrare?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Avviare la videochiamata?",CALLING_RETRY:"Riprova",CALLING_SAVE:"Salva",CALLING_SELECT_CAMERA:"Seleziona la fotocamera",CALLING_SELECT_MICROPHONE:"Seleziona microfono",CALLING_SELECT_SPEAKER:"Seleziona altoparlante",CALLING_SHOW_CALL_SETTINGS:"Mostra impostazioni chiamata",DENY:"Nega",END_SESSION:"Termina la sessione di Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera visualizzare tutto il tuo schermo.",FULL_DEVICE_REQUEST_TITLE:"Consentire cattura schermo completa?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera controllare questa pagina.",REMOTE_CONTROL_REQUEST_TITLE:"Consentire controllo remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe utilizzare temporaneamente questa pagina web con te.",SESSION_REQUEST_TITLE:"Consentire cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Questa pagina web non può essere visualizzata con un agente dell'assistenza",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe seguirti su altre pagine web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Consentire continuazione sessione?"},ja:{ALLOW:"許可する",CALLING_ACCEPT:"承諾する",CALLING_AGENT_DECLINED:"エージェントによって通話が拒否されました",CALLING_AGENT_WAITING:"エージェントを待っています...",CALLING_BACK:"戻る",CALLING_CAMERA_OFF:"カメラはオフです",CALLING_CAMERA_PERMISSION_DENIED:"カメラのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_CAMERA_PERMISSION_PROMPT:"カメラへのアクセスを許可する",CALLING_CAMERA_STARTING:"カメラが起動しています",CALLING_CANCEL:"キャンセル",CALLING_DISABLE_AUDIO:"音声を無効にする",CALLING_DISABLE_VIDEO:"ビデオを無効にする",CALLING_ENABLE_AUDIO:"音声を有効にする",CALLING_ENABLE_VIDEO:"ビデオを有効にする",CALLING_END:"通話終了",CALLING_IN_PROGRESS:"ビデオ通話に参加中",CALLING_JOIN:"通話に参加する",CALLING_JOIN_PROMPT:"サポート担当者があなたに電話をかけたいと考えています。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"私",CALLING_MICROPHONE_PERMISSION_DENIED:"マイクへのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_MICROPHONE_PERMISSION_PROMPT:"マイクへのアクセスを許可する",CALLING_NO_DEVICES:"なし",CALLING_PERMISSION_NEEDED:"許可が必要です",CALLING_REJECT:"通話を拒否する",CALLING_REJOIN_PROMPT:"サポートエージェントと通話中です。再接続しますか?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"エージェント",CALLING_REQUEST:"ビデオ通話に参加しますか?",CALLING_RETRY:"再試行",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"カメラを選択してください",CALLING_SELECT_MICROPHONE:"マイクを選択してください",CALLING_SELECT_SPEAKER:"話者を選択してください",CALLING_SHOW_CALL_SETTINGS:"通話設定を表示",DENY:"拒否",END_SESSION:"共同閲覧セッションを終了",FULL_DEVICE_REQUEST_DESCRIPTION:"サポート担当者が画面全体の表示を希望しています。",FULL_DEVICE_REQUEST_TITLE:"フルスクリーンキャプチャを許可しますか?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"サポートエージェントがこのページの管理を希望しています。",REMOTE_CONTROL_REQUEST_TITLE:"リモートコントロールを許可しますか?",SESSION_REQUEST_DESCRIPTION:"サポートエージェントが一時的にこのWebページを共用したいと考えています。",SESSION_REQUEST_TITLE:"コブラウジングを許可しますか?",UNIVERSAL_PROXY_BLOCKED:"このWebページはサポートエージェントと一緒に表示することはできません",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"サポートエージェントが他のWebページでもあなたをフォローしたいと考えています。",UNIVERSAL_PROXY_REQUEST_TITLE:"セッション継続を許可しますか?"},kk:{ALLOW:"Рұқсат етіңіз",CALLING_ACCEPT:"Қабылдау",CALLING_AGENT_DECLINED:"Қоңырауды агент қабылдамады",CALLING_AGENT_WAITING:"Агентті күтуде...",CALLING_BACK:"Артқа",CALLING_CAMERA_OFF:"Камера өшірілген",CALLING_CAMERA_PERMISSION_DENIED:"Камераға кіруге тыйым салынған. Оны шолғыш параметрлерінде қосыңыз.",CALLING_CAMERA_PERMISSION_PROMPT:"Камераға кіруге рұқсат беру",CALLING_CAMERA_STARTING:"Камера іске қосылуда",CALLING_CANCEL:"Болдырмау",CALLING_DISABLE_AUDIO:"Дыбысты өшіріңіз",CALLING_DISABLE_VIDEO:"Бейнені өшіру",CALLING_ENABLE_AUDIO:"Дыбысты қосу",CALLING_ENABLE_VIDEO:"Бейне қосу",CALLING_END:"Қоңырауды аяқтау",CALLING_IN_PROGRESS:"Видео қоңырауына кіру",CALLING_JOIN:"Қоңырауға қосылу",CALLING_JOIN_PROMPT:"Қолдау қызметінің өкілі сізге қоңырау шалғысы келеді.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Мен",CALLING_MICROPHONE_PERMISSION_DENIED:"Микрофонға қатынау тыйым салынды. Оны шолғыш параметрлеріңізде қосыңыз.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Микрофонға қолжетімділік беріңіз",CALLING_NO_DEVICES:"Жоқ",CALLING_PERMISSION_NEEDED:"Рұқсат қажет",CALLING_REJECT:"Қоңырауды қабылдамау",CALLING_REJOIN_PROMPT:"Сізде қолдау агентімен ағымдағы қоңырау бар. Қайта қосылғыңыз келе ме?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Бейне қоңырауға қосылу керек пе?",CALLING_RETRY:"Қайталау",CALLING_SAVE:"Сақтау",CALLING_SELECT_CAMERA:"Камераны таңдаңыз",CALLING_SELECT_MICROPHONE:"Микрофонды таңдаңыз",CALLING_SELECT_SPEAKER:"Дыбысты таңдау",CALLING_SHOW_CALL_SETTINGS:"Қоңырау параметрлерін көрсету",DENY:"Бас тарту",END_SESSION:"Бірлескен шолу сеансын аяқтаңыз",FULL_DEVICE_REQUEST_DESCRIPTION:"Қолдау агенті бүкіл экраныңызды көргісі келеді.",FULL_DEVICE_REQUEST_TITLE:"Толық экранды түсіруге рұқсат етесіз бе?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Көмекші агент осы бетті бақылағысы келеді.",REMOTE_CONTROL_REQUEST_TITLE:"Қашықтан басқаруға рұқсат етесіз бе?",SESSION_REQUEST_DESCRIPTION:"Қолдау агенті осы веб-бетті сізбен уақытша пайдаланғысы келеді.",SESSION_REQUEST_TITLE:"Кобраузингке рұқсат етесіз бе?",UNIVERSAL_PROXY_BLOCKED:"Бұл веб-бетті қолдау агентімен бірге көру мүмкін емес",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Қолдау агенті сізді басқа веб-беттерге де ілесе алуға тілек білдіреді.",UNIVERSAL_PROXY_REQUEST_TITLE:"Сеансты жалғастыруға рұқсат етесіз бе?"},ko:{ALLOW:"허용하다",CALLING_ACCEPT:"수락",CALLING_AGENT_DECLINED:"상담원이 전화를 거부했습니다",CALLING_AGENT_WAITING:"상담원 대기 중...",CALLING_BACK:"뒤로",CALLING_CAMERA_OFF:"카메라가 꺼져 있습니다",CALLING_CAMERA_PERMISSION_DENIED:"카메라 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_CAMERA_PERMISSION_PROMPT:"카메라 접근 허용",CALLING_CAMERA_STARTING:"카메라가 시작되고 있습니다",CALLING_CANCEL:"취소",CALLING_DISABLE_AUDIO:"오디오 비활성화",CALLING_DISABLE_VIDEO:"비디오 비활성화",CALLING_ENABLE_AUDIO:"오디오 활성화",CALLING_ENABLE_VIDEO:"비디오 활성화",CALLING_END:"통화 종료",CALLING_IN_PROGRESS:"영상 통화 참여 중",CALLING_JOIN:"통화 참여하기",CALLING_JOIN_PROMPT:"지원 상담원이 귀하에게 전화를 원합니다.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"나",CALLING_MICROPHONE_PERMISSION_DENIED:"마이크 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_MICROPHONE_PERMISSION_PROMPT:"마이크 접근 허용",CALLING_NO_DEVICES:"없음",CALLING_PERMISSION_NEEDED:"권한 필요",CALLING_REJECT:"통화 거절",CALLING_REJOIN_PROMPT:"지원 상담원과 통화 중입니다. 다시 연결하시겠습니까?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"상담원",CALLING_REQUEST:"영상 통화에 참여하시겠습니까?",CALLING_RETRY:"재시도",CALLING_SAVE:"저장",CALLING_SELECT_CAMERA:"카메라 선택",CALLING_SELECT_MICROPHONE:"마이크 선택",CALLING_SELECT_SPEAKER:"화자 선택",CALLING_SHOW_CALL_SETTINGS:"통화 설정 표시",DENY:"부인하다",END_SESSION:"Cobrowse 세션 종료",FULL_DEVICE_REQUEST_DESCRIPTION:"지원 담당자가 귀하의 전체 화면을 보고 싶어합니다.",FULL_DEVICE_REQUEST_TITLE:"전체 화면 캡처를 허용하시겠습니까?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"지원 담당자가 이 페이지를 관리하고 싶어합니다.",REMOTE_CONTROL_REQUEST_TITLE:"원격 제어를 허용하시겠습니까?",SESSION_REQUEST_DESCRIPTION:"지원 담당자가 귀하와 함께 이 웹 페이지를 일시적으로 사용하려고 합니다.",SESSION_REQUEST_TITLE:"코브라우징을 허용하시겠습니까?",UNIVERSAL_PROXY_BLOCKED:"이 웹 페이지는 지원 담당자와 함께 볼 수 없습니다",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"지원 담당자가 다른 웹 페이지로 귀하를 따라가고 싶어합니다.",UNIVERSAL_PROXY_REQUEST_TITLE:"세션 계속을 허용하시겠습니까?"},lt:{ALLOW:"Leisti",CALLING_ACCEPT:"Priimti",CALLING_AGENT_DECLINED:"Skambutis atmestas agento",CALLING_AGENT_WAITING:"Laukiama agento…",CALLING_BACK:"Atgal",CALLING_CAMERA_OFF:"Kamera išjungta",CALLING_CAMERA_PERMISSION_DENIED:"Prieiga prie kameros uždrausta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_CAMERA_PERMISSION_PROMPT:"Leisti prieigą prie kameros",CALLING_CAMERA_STARTING:"Kamera pradedama veikti",CALLING_CANCEL:"Atšaukti",CALLING_DISABLE_AUDIO:"Išjungti garsą",CALLING_DISABLE_VIDEO:"Išjungti vaizdo įrašą",CALLING_ENABLE_AUDIO:"Įjungti garsą",CALLING_ENABLE_VIDEO:"Įjungti vaizdo įrašą",CALLING_END:"Baigti skambutį",CALLING_IN_PROGRESS:"Prisijungimas prie vaizdo skambučio",CALLING_JOIN:"Prisijungti prie skambučio",CALLING_JOIN_PROMPT:"Paramaus agentas norėtų jums paskambinti.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mano",CALLING_MICROPHONE_PERMISSION_DENIED:"Prieiga prie mikrofono atmesta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Leisti prieigą prie mikrofono",CALLING_NO_DEVICES:"Nėra",CALLING_PERMISSION_NEEDED:"Reikalinga leidimas",CALLING_REJECT:"Atmesti skambutį",CALLING_REJOIN_PROMPT:"Jūs turite aktyvų skambutį su palaikymo agentu. Ar norite vėl prisijungti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agentas",CALLING_REQUEST:"Pradėti vaizdo skambutį?",CALLING_RETRY:"Bandyti dar kartą",CALLING_SAVE:"Išsaugoti",CALLING_SELECT_CAMERA:"Pasirinkite kamerą",CALLING_SELECT_MICROPHONE:"Pasirinkite mikrofoną",CALLING_SELECT_SPEAKER:"Pasirinkite kalbėtoją",CALLING_SHOW_CALL_SETTINGS:"Rodyti skambučio nustatymus",DENY:"Atmesti",END_SESSION:"Nutraukti bendrinimą",FULL_DEVICE_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų peržiūrėti visą jūsų ekraną.",FULL_DEVICE_REQUEST_TITLE:"Leisti fiksuoti visą ekraną?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Palaikymo agentas norėtų valdyti šį puslapį.",REMOTE_CONTROL_REQUEST_TITLE:"Leisti nuotolinę kontrolę?",SESSION_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų laikinai naudotis šiuo tinklapiu kartu su jumis.",SESSION_REQUEST_TITLE:"Leisti bendrą naršymą?",UNIVERSAL_PROXY_BLOCKED:"Šio puslapio negalima peržiūrėti su palaikymo agentu",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų jus sekti į kitas interneto svetaines.",UNIVERSAL_PROXY_REQUEST_TITLE:"Leisti tęsti sesiją?"},mr:{ALLOW:"परवानगी द्या",CALLING_ACCEPT:"स्वीकार करा",CALLING_AGENT_DECLINED:"एजंटने कॉल नाकारली",CALLING_AGENT_WAITING:"एजंटची वाट पाहत आहे...",CALLING_BACK:"मागे",CALLING_CAMERA_OFF:"कॅमेरा बंद आहे",CALLING_CAMERA_PERMISSION_DENIED:"कॅमेरा प्रवेश नाकारण्यात आला. आपल्या ब्राउझरच्या सेटिंग्जमध्ये याला सक्षम करा.",CALLING_CAMERA_PERMISSION_PROMPT:"कॅमेऱ्याला प्रवेश देणे",CALLING_CAMERA_STARTING:"कॅमेरा सुरू होत आहे",CALLING_CANCEL:"रद्द करा",CALLING_DISABLE_AUDIO:"ऑडिओ अक्षम करा",CALLING_DISABLE_VIDEO:"व्हिडिओ अक्षम करा",CALLING_ENABLE_AUDIO:"ऑडिओ सक्षम करा",CALLING_ENABLE_VIDEO:"व्हिडिओ सक्षम करा",CALLING_END:"कॉल संपवा",CALLING_IN_PROGRESS:"व्हिडिओ कॉल मध्ये प्रवेश करीत आहे",CALLING_JOIN:"कॉलमध्ये सामील व्हा",CALLING_JOIN_PROMPT:"एक समर्थन एजंट आपल्याशी बोलू इच्छितो.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मला",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन प्रवेश नाकारला गेला आहे. आपल्या ब्राउझर सेटिंग्जमध्ये ते सक्षम करा.",CALLING_MICROPHONE_PERMISSION_PROMPT:"मायक्रोफोनसाठी प्रवेशाची परवानगी द्या",CALLING_NO_DEVICES:"शून्य",CALLING_PERMISSION_NEEDED:"अनुमती आवश्यक आहे",CALLING_REJECT:"कॉल नाकारणे",CALLING_REJOIN_PROMPT:"आपण सध्या समर्थन एजंटसोबत कॉलवर आहात. आपण पुन्हा जोडू इच्छिता?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजंट",CALLING_REQUEST:"व्हिडिओ कॉलमध्ये प्रवेश करायचा आहे का?",CALLING_RETRY:"पुन्हा प्रयत्न करा",CALLING_SAVE:"जतन करा",CALLING_SELECT_CAMERA:"कॅमेरा निवडा",CALLING_SELECT_MICROPHONE:"माइक्रोफोन निवडा",CALLING_SELECT_SPEAKER:"वक्ता निवडा",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्ज दाखवा",DENY:"नकार द्या",END_SESSION:"कोब्राउझ सत्र समाप्त करा",FULL_DEVICE_REQUEST_DESCRIPTION:"सपोर्ट एजंट तुमची संपूर्ण स्क्रीन पाहू इच्छितो.",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कॅप्चरला परवानगी द्यायची?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक सहाय्यक एजंट या पृष्ठावर नियंत्रण ठेवण्यास आवडेल.",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोलला परवानगी द्यायची?",SESSION_REQUEST_DESCRIPTION:"सपोर्ट एजंट हे वेब पेज तुमच्यासोबत तात्पुरते वापरू इच्छितो.",SESSION_REQUEST_TITLE:"कोब्राउझिंगला परवानगी द्यायची?",UNIVERSAL_PROXY_BLOCKED:"हे वेब पेज समर्थन एजंटसोबत पाहिले जाऊ शकत नाही",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक समर्थन एजंट तुमचा इतर वेब पृष्ठांवर पाठपुरावा करू इच्छितो.",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र सातत्याला परवानगी द्यायची?"},ms:{ALLOW:"Benarkan",CALLING_ACCEPT:"Terima",CALLING_AGENT_DECLINED:"Panggilan ditolak oleh ejen",CALLING_AGENT_WAITING:"Menunggu ejen...",CALLING_BACK:"Kembali",CALLING_CAMERA_OFF:"Kamera dimatikan",CALLING_CAMERA_PERMISSION_DENIED:"Akses kamera dinafi. Aktifkannya dalam tetapan pelayar anda.",CALLING_CAMERA_PERMISSION_PROMPT:"Benarkan akses ke kamera",CALLING_CAMERA_STARTING:"Kamera sedang dimulakan",CALLING_CANCEL:"Batal",CALLING_DISABLE_AUDIO:"Lumpuhkan audio",CALLING_DISABLE_VIDEO:"Lumpuhkan video",CALLING_ENABLE_AUDIO:"Dayakan audio",CALLING_ENABLE_VIDEO:"Dayakan video",CALLING_END:"Tamatkan panggilan",CALLING_IN_PROGRESS:"Memasuki panggilan video",CALLING_JOIN:"Sertai panggilan",CALLING_JOIN_PROMPT:"Ejen sokongan ingin menghubungi anda.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Saya",CALLING_MICROPHONE_PERMISSION_DENIED:"Akses mikrofon ditolak. Aktifkan dalam tetapan pelayar anda.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Benarkan akses ke mikrofon",CALLING_NO_DEVICES:"Tiada",CALLING_PERMISSION_NEEDED:"Kebenaran diperlukan",CALLING_REJECT:"Tolak panggilan",CALLING_REJOIN_PROMPT:"Anda sedang dalam panggilan aktif dengan ejen sokongan. Adakah anda ingin menyertai semula?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Ejen",CALLING_REQUEST:"Masuk panggilan video?",CALLING_RETRY:"Cuba semula",CALLING_SAVE:"Simpan",CALLING_SELECT_CAMERA:"Pilih kamera",CALLING_SELECT_MICROPHONE:"Pilih mikrofon",CALLING_SELECT_SPEAKER:"Pilih pembesar suara",CALLING_SHOW_CALL_SETTINGS:"Tunjukkan tetapan panggilan",DENY:"Tolak",END_SESSION:"Berhenti Berkongsi",FULL_DEVICE_REQUEST_DESCRIPTION:"Ejen sokongan ingin melihat seluruh skrin anda.",FULL_DEVICE_REQUEST_TITLE:"Benarkan rakaman skrin penuh?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengawal halaman ini.",REMOTE_CONTROL_REQUEST_TITLE:"Benarkan kawalan jauh?",SESSION_REQUEST_DESCRIPTION:"Ejen sokongan ingin menggunakan halaman web ini dengan anda buat sementara waktu.",SESSION_REQUEST_TITLE:"Benarkan cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Halaman web ini tidak dapat dilihat bersama ejen sokongan",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengikuti anda ke halaman web lain.",UNIVERSAL_PROXY_REQUEST_TITLE:"Benarkan sambungan sesi?"},nl:{ALLOW:"Toestaan",CALLING_ACCEPT:"Accepteren",CALLING_AGENT_DECLINED:"Oproep geweigerd door agent",CALLING_AGENT_WAITING:"Wachten op agent...",CALLING_BACK:"Terug",CALLING_CAMERA_OFF:"Camera is uit",CALLING_CAMERA_PERMISSION_DENIED:"Toegang tot camera geweigerd. Schakel deze in de instellingen van uw browser in.",CALLING_CAMERA_PERMISSION_PROMPT:"Toegang tot camera toestaan",CALLING_CAMERA_STARTING:"Camera wordt gestart",CALLING_CANCEL:"Annuleren",CALLING_DISABLE_AUDIO:"Audio uitschakelen",CALLING_DISABLE_VIDEO:"Video uitschakelen",CALLING_ENABLE_AUDIO:"Audio inschakelen",CALLING_ENABLE_VIDEO:"Video inschakelen",CALLING_END:"Oproep beëindigen",CALLING_IN_PROGRESS:"In gesprek met video bellen",CALLING_JOIN:"Deelnemen aan oproep",CALLING_JOIN_PROMPT:"Een supportmedewerker wil u bellen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ik",CALLING_MICROPHONE_PERMISSION_DENIED:"Microfoon toegang geweigerd. Schakel dit in uw browserinstellingen in.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Toegang tot microfoon toestaan",CALLING_NO_DEVICES:"Geen",CALLING_PERMISSION_NEEDED:"Toestemming vereist",CALLING_REJECT:"Oproep weigeren",CALLING_REJOIN_PROMPT:"U bent in gesprek met een supportmedewerker. Wilt u opnieuw deelnemen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Video-oproep starten?",CALLING_RETRY:"Opnieuw proberen",CALLING_SAVE:"Opslaan",CALLING_SELECT_CAMERA:"Selecteer camera",CALLING_SELECT_MICROPHONE:"Selecteer microfoon",CALLING_SELECT_SPEAKER:"Selecteer spreker",CALLING_SHOW_CALL_SETTINGS:"Toon oproepinstellingen",DENY:"Afwijzen",END_SESSION:"Cobrowse-sessie beëindigen",FULL_DEVICE_REQUEST_DESCRIPTION:"Een support agent wilt jouw volledige scherm zien.",FULL_DEVICE_REQUEST_TITLE:"Volledige schermopname toestaan?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Een support agent wilt graag deze pagina bedienen.",REMOTE_CONTROL_REQUEST_TITLE:"Bediening op afstand toestaan?",SESSION_REQUEST_DESCRIPTION:"Een support agent wilt graag tijdelijk met u meekijken op deze webpagina.",SESSION_REQUEST_TITLE:"Cobrowsing toestaan?",UNIVERSAL_PROXY_BLOCKED:"Deze webpagina kan niet worden bekeken met een support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Een support agent wilt u graag volgen naar andere webpagina's.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sessievoortzetting toestaan?"},pl:{ALLOW:"Umożliwić",CALLING_ACCEPT:"Akceptuj",CALLING_AGENT_DECLINED:"Połączenie odrzucone przez agenta",CALLING_AGENT_WAITING:"Oczekiwanie na agenta...",CALLING_BACK:"Wstecz",CALLING_CAMERA_OFF:"Kamera jest wyłączona",CALLING_CAMERA_PERMISSION_DENIED:"Odmowa dostępu do kamery. Włącz ją w ustawieniach przeglądarki.",CALLING_CAMERA_PERMISSION_PROMPT:"Zezwól na dostęp do kamery",CALLING_CAMERA_STARTING:"Kamera się uruchamia",CALLING_CANCEL:"Anuluj",CALLING_DISABLE_AUDIO:"Wyłącz dźwięk",CALLING_DISABLE_VIDEO:"Wyłącz wideo",CALLING_ENABLE_AUDIO:"Włącz dźwięk",CALLING_ENABLE_VIDEO:"Włącz wideo",CALLING_END:"Zakończ rozmowę",CALLING_IN_PROGRESS:"Rozpoczynanie połączenia wideo",CALLING_JOIN:"Dołącz do rozmowy",CALLING_JOIN_PROMPT:"Agent wsparcia chciałby do Ciebie zadzwonić.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostęp do mikrofonu został odmówiony. Włącz go w ustawieniach przeglądarki.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zezwól na dostęp do mikrofonu",CALLING_NO_DEVICES:"Brak",CALLING_PERMISSION_NEEDED:"Wymagana zgoda",CALLING_REJECT:"Odrzuć połączenie",CALLING_REJOIN_PROMPT:"Masz aktywne połączenie z agentem wsparcia. Czy chcesz dołączyć ponownie?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Rozpocząć rozmowę wideo?",CALLING_RETRY:"Ponów próbę",CALLING_SAVE:"Zapisz",CALLING_SELECT_CAMERA:"Wybierz kamerę",CALLING_SELECT_MICROPHONE:"Wybierz mikrofon",CALLING_SELECT_SPEAKER:"Wybierz głośnik",CALLING_SHOW_CALL_SETTINGS:"Pokaż ustawienia połączenia",DENY:"Zaprzeczyć",END_SESSION:"Zakończ sesję Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby zobaczyć cały Twój ekran.",FULL_DEVICE_REQUEST_TITLE:"Czy zezwolić na pełne przechwycenie ekranu?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby kontrolować tę stronę.",REMOTE_CONTROL_REQUEST_TITLE:"Czy zezwolić na zdalne sterowanie?",SESSION_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby tymczasowo korzystać z tej strony internetowej razem z Tobą.",SESSION_REQUEST_TITLE:"Czy zezwolić na cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta strona internetowa nie może być oglądana z pracownikiem działu pomocy",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby podążać za Tobą na inne strony internetowe.",UNIVERSAL_PROXY_REQUEST_TITLE:"Czy zezwolić na kontynuację sesji?"},pt:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada recusada pelo agente",CALLING_AGENT_WAITING:"À espera do agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmara desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmara negado. Ative-o nas definições do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmara",CALLING_CAMERA_STARTING:"Câmara a iniciar-se",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Terminar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de lhe telefonar.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas definições do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Recusar chamada",CALLING_REJOIN_PROMPT:"Tem uma chamada ativa com um agente de suporte. Deseja voltar a participar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Selecionar câmara",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar definições de chamada",DENY:"Negado",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de ecrã?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controlo remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},"pt-BR":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada rejeitada pelo agente",CALLING_AGENT_WAITING:"Aguardando o agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmera está desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmera negado. Ative-o nas configurações do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmera",CALLING_CAMERA_STARTING:"A câmera está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Encerrar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de ligar para você.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas configurações do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Rejeitar chamada",CALLING_REJOIN_PROMPT:"Você está em uma ligação ativa com um agente de suporte. Deseja retornar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Salvar",CALLING_SELECT_CAMERA:"Selecionar câmera",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar configurações de chamada",DENY:"Negar",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de tela?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controle remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},ro:{ALLOW:"Permite",CALLING_ACCEPT:"Acceptă",CALLING_AGENT_DECLINED:"Apel respins de agent",CALLING_AGENT_WAITING:"Așteptând agentul...",CALLING_BACK:"Înapoi",CALLING_CAMERA_OFF:"Camera este oprită",CALLING_CAMERA_PERMISSION_DENIED:"Accesul la cameră a fost refuzat. Activați-l în setările browserului dvs.",CALLING_CAMERA_PERMISSION_PROMPT:"Permiteți accesul la cameră",CALLING_CAMERA_STARTING:"Camera pornește",CALLING_CANCEL:"Anulează",CALLING_DISABLE_AUDIO:"Dezactivează audio-ul",CALLING_DISABLE_VIDEO:"Dezactivează video-ul",CALLING_ENABLE_AUDIO:"Activează audio",CALLING_ENABLE_VIDEO:"Activează video-ul",CALLING_END:"Încheiere apel",CALLING_IN_PROGRESS:"Se inițiază apel video",CALLING_JOIN:"Alăturați-vă apelului",CALLING_JOIN_PROMPT:"Un agent de suport ar dori să vă contacteze telefonic.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesul la microfon a fost refuzat. Activați-l în setările browserului dumneavoastră.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permite accesul la microfon",CALLING_NO_DEVICES:"Niciunul",CALLING_PERMISSION_NEEDED:"Permisiune necesară",CALLING_REJECT:"Respinge apelul",CALLING_REJOIN_PROMPT:"Aveți un apel activ cu un agent de suport. Doriți să vă reconectați?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Doriți să intrați în apelul video?",CALLING_RETRY:"Reîncearcă",CALLING_SAVE:"Salvează",CALLING_SELECT_CAMERA:"Selectați camera",CALLING_SELECT_MICROPHONE:"Selectați microfonul",CALLING_SELECT_SPEAKER:"Selectați difuzorul",CALLING_SHOW_CALL_SETTINGS:"Afișați setările apelului",DENY:"Refuză",END_SESSION:"Opriți partajarea",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de asistență dorește să vadă întreg ecranul dumneavoastră.",FULL_DEVICE_REQUEST_TITLE:"Permite capturarea ecranului complet?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent de suport dorește să controleze această pagină.",REMOTE_CONTROL_REQUEST_TITLE:"Permite controlul de la distanță?",SESSION_REQUEST_DESCRIPTION:"Un agent de asistență dorește să utilizeze temporar această pagină web împreună cu dumneavoastră.",SESSION_REQUEST_TITLE:"Permiteți cobrowsing-ul?",UNIVERSAL_PROXY_BLOCKED:"Această pagină web nu poate fi vizualizată împreună cu un agent de asistență",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de suport dorește să vă urmărească pe alte pagini web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permiteți continuarea sesiunii?"},ru:{ALLOW:"Разрешить",CALLING_ACCEPT:"Принять",CALLING_AGENT_DECLINED:"Звонок отклонён агентом",CALLING_AGENT_WAITING:"Ожидание агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера выключена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ к камере запрещён. Включите его в настройках вашего браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Разрешить доступ к камере",CALLING_CAMERA_STARTING:"Камера запускается",CALLING_CANCEL:"Отменить",CALLING_DISABLE_AUDIO:"Отключить аудио",CALLING_DISABLE_VIDEO:"Отключить видео",CALLING_ENABLE_AUDIO:"Включить аудио",CALLING_ENABLE_VIDEO:"Включить видео",CALLING_END:"Завершить звонок",CALLING_IN_PROGRESS:"Вход в видеозвонок",CALLING_JOIN:"Присоединиться к звонку",CALLING_JOIN_PROMPT:"Служба поддержки хочет вам позвонить.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ к микрофону запрещён. Включите его в настройках браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Разрешить доступ к микрофону",CALLING_NO_DEVICES:"Нет",CALLING_PERMISSION_NEEDED:"Требуется разрешение",CALLING_REJECT:"Отклонить вызов",CALLING_REJOIN_PROMPT:"У вас активный звонок с агентом поддержки. Хотите присоединиться снова?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Начать видеозвонок?",CALLING_RETRY:"Повторить попытку",CALLING_SAVE:"Сохранить",CALLING_SELECT_CAMERA:"Выберите камеру",CALLING_SELECT_MICROPHONE:"Выберите микрофон",CALLING_SELECT_SPEAKER:"Выбрать динамик",CALLING_SHOW_CALL_SETTINGS:"Показать настройки вызова",DENY:"Отказать",END_SESSION:"Завершить сеанс совместного просмотра",FULL_DEVICE_REQUEST_DESCRIPTION:"Сотрудник службы поддержки хотел бы просмотреть весь экран.",FULL_DEVICE_REQUEST_TITLE:"Разрешить полный захват экрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент поддержки хотел бы контролировать эту страницу.",REMOTE_CONTROL_REQUEST_TITLE:"Разрешить дистанционное управление?",SESSION_REQUEST_DESCRIPTION:"Агент службы поддержки хотел бы временно использовать эту веб-страницу с вами.",SESSION_REQUEST_TITLE:"Разрешить кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Эта веб-страница не может быть просмотрена с агентом поддержки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент поддержки хотел бы следовать за вами на другие веб-страницы.",UNIVERSAL_PROXY_REQUEST_TITLE:"Разрешить продолжение сеанса?"},sk:{ALLOW:"Povoliť",CALLING_ACCEPT:"Prijať",CALLING_AGENT_DECLINED:"Hovor odmietol agent",CALLING_AGENT_WAITING:"Čakanie na agenta...",CALLING_BACK:"Späť",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Prístup ku kamere odmietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_CAMERA_PERMISSION_PROMPT:"Povoliť prístup ku kamere",CALLING_CAMERA_STARTING:"Kamera sa spúšťa",CALLING_CANCEL:"Zrušiť",CALLING_DISABLE_AUDIO:"Vypnúť zvuk",CALLING_DISABLE_VIDEO:"Zakázať video",CALLING_ENABLE_AUDIO:"Povoliť zvuk",CALLING_ENABLE_VIDEO:"Povoliť video",CALLING_END:"Ukončiť hovor",CALLING_IN_PROGRESS:"Pripájanie k videohovoru",CALLING_JOIN:"Pripojiť sa k hovoru",CALLING_JOIN_PROMPT:"Podporný agent vás chce kontaktovať telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Prístup k mikrofónu zamietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povoliť prístup k mikrofónu",CALLING_NO_DEVICES:"Žiadne",CALLING_PERMISSION_NEEDED:"Vyžaduje sa povolenie",CALLING_REJECT:"Zamietnuť hovor",CALLING_REJOIN_PROMPT:"Máte aktívne volanie s podporným agentom. Chcete sa znova pripojiť?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstúpiť do videohovoru?",CALLING_RETRY:"Opakovať pokus",CALLING_SAVE:"Uložiť",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vyberte mikrofón",CALLING_SELECT_SPEAKER:"Vybrať reproduktora",CALLING_SHOW_CALL_SETTINGS:"Zobraziť nastavenia hovoru",DENY:"Odmietnuť",END_SESSION:"Zastaviť zdieľanie",FULL_DEVICE_REQUEST_DESCRIPTION:"Podporný agent si želá zobraziť celú vašu obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povoliť úplné snímanie obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporný agent by chcel ovládať túto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povoliť vzdialenú správu?",SESSION_REQUEST_DESCRIPTION:"Podporný agent by chcel dočasne používať túto webovú stránku spolu s vami.",SESSION_REQUEST_TITLE:"Povoliť spolusurfovanie?",UNIVERSAL_PROXY_BLOCKED:"Túto webovú stránku nie je možné zobraziť so servisným agentom",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Podporný agent by vás rád sledoval na ďalšie webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povoliť pokračovanie relácie?"},sl:{ALLOW:"Dovoli",CALLING_ACCEPT:"Sprejmi",CALLING_AGENT_DECLINED:"Klic je agent zavrnil",CALLING_AGENT_WAITING:"Čakam na agenta...",CALLING_BACK:"Nazaj",CALLING_CAMERA_OFF:"Kamera je izklopljena",CALLING_CAMERA_PERMISSION_DENIED:"Dostop do kamere zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_CAMERA_PERMISSION_PROMPT:"Dovoli dostop do kamere",CALLING_CAMERA_STARTING:"Kamera se začenja",CALLING_CANCEL:"Prekliči",CALLING_DISABLE_AUDIO:"Onemogoči zvok",CALLING_DISABLE_VIDEO:"Onemogoči video",CALLING_ENABLE_AUDIO:"Omogoči zvok",CALLING_ENABLE_VIDEO:"Omogoči video",CALLING_END:"Končaj klic",CALLING_IN_PROGRESS:"Vstop v video klic",CALLING_JOIN:"Pridruži se klicu",CALLING_JOIN_PROMPT:"Podporni agent vas želi poklicati.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jaz",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostop do mikrofona zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Dovoli dostop do mikrofona",CALLING_NO_DEVICES:"Noben",CALLING_PERMISSION_NEEDED:"Potrebna dovoljenja",CALLING_REJECT:"Zavrni klic",CALLING_REJOIN_PROMPT:"Imate aktivni klic s podporo. Želite ponovno pristopiti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Želite vstopiti v video klic?",CALLING_RETRY:"Poskusi znova",CALLING_SAVE:"Shrani",CALLING_SELECT_CAMERA:"Izberite kamero",CALLING_SELECT_MICROPHONE:"Izberite mikrofon",CALLING_SELECT_SPEAKER:"Izberite zvočnika",CALLING_SHOW_CALL_SETTINGS:"Prikaži nastavitve klica",DENY:"Zanikati",END_SESSION:"Končaj sejo Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Agent za podporo si želi ogledati vaš celoten zaslon.",FULL_DEVICE_REQUEST_TITLE:"Dovoliti zajemanje celotnega zaslona?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporni agent želi nadzorovati to stran.",REMOTE_CONTROL_REQUEST_TITLE:"Dovoliti daljinsko upravljanje?",SESSION_REQUEST_DESCRIPTION:"Agent za podporo želi začasno uporabljati to spletno stran z vami.",SESSION_REQUEST_TITLE:"Dovoliti cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta spletna stran se ne more ogledovati z agentom za podporo",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent za podporo vas želi slediti na druge spletne strani.",UNIVERSAL_PROXY_REQUEST_TITLE:"Dovoliti nadaljevanje seje?"},sv:{ALLOW:"Tillåt",CALLING_ACCEPT:"Acceptera",CALLING_AGENT_DECLINED:"Samtal avvisades av agenten",CALLING_AGENT_WAITING:"Väntar på agent...",CALLING_BACK:"Tillbaka",CALLING_CAMERA_OFF:"Kameran är avstängd",CALLING_CAMERA_PERMISSION_DENIED:"Kameratillgång nekad. Aktivera den i dina webbläsarinställningar.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillåt åtkomst till kamera",CALLING_CAMERA_STARTING:"Kameran startar",CALLING_CANCEL:"Avbryt",CALLING_DISABLE_AUDIO:"Inaktivera ljud",CALLING_DISABLE_VIDEO:"Inaktivera video",CALLING_ENABLE_AUDIO:"Aktivera ljud",CALLING_ENABLE_VIDEO:"Aktivera video",CALLING_END:"Avsluta samtal",CALLING_IN_PROGRESS:"Ansluter till videosamtal",CALLING_JOIN:"Gå med i samtal",CALLING_JOIN_PROMPT:"En supportagent vill ringa dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jag",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofontillgång nekad. Aktivera den i din webbläsarinställningar.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillåt åtkomst till mikrofonen",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Behörighet krävs",CALLING_REJECT:"Avvisa samtal",CALLING_REJOIN_PROMPT:"Du har ett aktivt samtal med en supportagent. Vill du ansluta igen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Starta videosamtal?",CALLING_RETRY:"Försök igen",CALLING_SAVE:"Spara",CALLING_SELECT_CAMERA:"Välj kamera",CALLING_SELECT_MICROPHONE:"Välj mikrofon",CALLING_SELECT_SPEAKER:"Välj talare",CALLING_SHOW_CALL_SETTINGS:"Visa samtalsinställningar",DENY:"Neka",END_SESSION:"Sluta dela",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent vill se hela din skärm.",FULL_DEVICE_REQUEST_TITLE:"Tillåt fullskärmsinspelning?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent vill kontrollera denna sida.",REMOTE_CONTROL_REQUEST_TITLE:"Tillåt fjärrstyrning?",SESSION_REQUEST_DESCRIPTION:"En supportagent vill tillfälligt använda denna webbsida tillsammans med dig.",SESSION_REQUEST_TITLE:"Tillåt samvisning?",UNIVERSAL_PROXY_BLOCKED:"Den här webbsidan kan inte visas tillsammans med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vill följa dig till andra webbsidor.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillåt sessionens fortsättning?"},th:{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"กลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงกล้อง โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กำลังเริ่มกล้อง",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"สิ้นสุดการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ปฏิเสธการเข้าถึงไมโครโฟน เปิดใช้งานได้ที่การตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการสิทธิ์การอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่ฝ่ายสนับสนุน ต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"ตัวแทน",CALLING_REQUEST:"เข้าร่วมสายวิดีโอคอลหรือไม่?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้จับภาพหน้าจอแบบเต็มจอหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตให้ควบคุมระยะไกลได้หรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ร่วมท่องเว็บไหม?",UNIVERSAL_PROXY_BLOCKED:"ไม่สามารถดูหน้าเว็บนี้กับเจ้าหน้าที่สนับสนุนได้",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการต่อเซสชันไหม?"},"th-TH":{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"ย้อนกลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"การเข้าถึงกล้องถูกปฏิเสธ โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กล้องกำลังเริ่มทำงาน",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"ยุติการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่สนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงไมโครโฟน เปิดใช้งานได้ในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการการอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่สนับสนุน คุณต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"เจ้าหน้าที่",CALLING_REQUEST:"เข้าร่วมวิดีโอคอล?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้บันทึกหน้าจอเต็มหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"เจ้าหน้าที่สนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตการควบคุมระยะไกลหรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณเป็นการชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ใช้โคบราวซิ่งหรือไม่?",UNIVERSAL_PROXY_BLOCKED:"หน้าเว็บนี้ไม่สามารถดูได้พร้อมกับเจ้าหน้าที่สนับสนุน",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการเซสชันต่อหรือไม่?"},uk:{ALLOW:"Дозволити",CALLING_ACCEPT:"Прийняти",CALLING_AGENT_DECLINED:"Дзвінок відхилено агентом",CALLING_AGENT_WAITING:"Очікування агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера вимкнена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ до камери заборонено. Увімкніть його у налаштуваннях браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Дозволити доступ до камери",CALLING_CAMERA_STARTING:"Камера запускається",CALLING_CANCEL:"Скасувати",CALLING_DISABLE_AUDIO:"Вимкнути звук",CALLING_DISABLE_VIDEO:"Вимкнути відео",CALLING_ENABLE_AUDIO:"Увімкнути звук",CALLING_ENABLE_VIDEO:"Увімкнути відео",CALLING_END:"Завершити дзвінок",CALLING_IN_PROGRESS:"Вхід у відеодзвінок",CALLING_JOIN:"Приєднатися до дзвінка",CALLING_JOIN_PROMPT:"Агент підтримки хоче зателефонувати вам.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ до мікрофона заборонено. Увімкніть його в налаштуваннях браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Дозволити доступ до мікрофона",CALLING_NO_DEVICES:"Жоден",CALLING_PERMISSION_NEEDED:"Потрібен дозвіл",CALLING_REJECT:"Відхилити дзвінок",CALLING_REJOIN_PROMPT:"У вас активний дзвінок із агентом підтримки. Бажаєте приєднатися знову?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Почати відеодзвінок?",CALLING_RETRY:"Повторити спробу",CALLING_SAVE:"Зберегти",CALLING_SELECT_CAMERA:"Вибрати камеру",CALLING_SELECT_MICROPHONE:"Виберіть мікрофон",CALLING_SELECT_SPEAKER:"Вибрати динамік",CALLING_SHOW_CALL_SETTINGS:"Показати налаштування дзвінка",DENY:"Заперечую",END_SESSION:"Завершити сеанс Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Агент підтримки хотів би переглянути весь ваш екран.",FULL_DEVICE_REQUEST_TITLE:"Дозволити повне захоплення екрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент підтримки хотів би контролювати цю сторінку.",REMOTE_CONTROL_REQUEST_TITLE:"Дозволити дистанційне керування?",SESSION_REQUEST_DESCRIPTION:"Агент служби підтримки хотів би тимчасово використовувати цю веб-сторінку разом з вами.",SESSION_REQUEST_TITLE:"Дозволити кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Ця веб-сторінка не може бути переглянута з агентом підтримки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент підтримки хотів би слідувати за вами на інші веб-сторінки.",UNIVERSAL_PROXY_REQUEST_TITLE:"Дозволити продовження сеансу?"},vi:{ALLOW:"Cho phép",CALLING_ACCEPT:"Chấp nhận",CALLING_AGENT_DECLINED:"Cuộc gọi bị đại lý từ chối",CALLING_AGENT_WAITING:"Đang chờ đại lý...",CALLING_BACK:"Quay lại",CALLING_CAMERA_OFF:"Camera đã tắt",CALLING_CAMERA_PERMISSION_DENIED:"Truy cập camera bị từ chối. Hãy bật nó trong cài đặt trình duyệt của bạn.",CALLING_CAMERA_PERMISSION_PROMPT:"Cho phép truy cập camera",CALLING_CAMERA_STARTING:"Máy ảnh đang khởi động",CALLING_CANCEL:"Hủy bỏ",CALLING_DISABLE_AUDIO:"Tắt âm thanh",CALLING_DISABLE_VIDEO:"Vô hiệu hóa video",CALLING_ENABLE_AUDIO:"Bật âm thanh",CALLING_ENABLE_VIDEO:"Bật video",CALLING_END:"Kết thúc cuộc gọi",CALLING_IN_PROGRESS:"Đang tham gia cuộc gọi video",CALLING_JOIN:"Tham gia cuộc gọi",CALLING_JOIN_PROMPT:"Một nhân viên hỗ trợ muốn gọi cho bạn.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Tôi",CALLING_MICROPHONE_PERMISSION_DENIED:"Quyền truy cập micro bị từ chối. Vui lòng bật trong cài đặt trình duyệt của bạn.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Cho phép truy cập micro",CALLING_NO_DEVICES:"Không có gì",CALLING_PERMISSION_NEEDED:"Cần quyền truy cập",CALLING_REJECT:"Từ chối cuộc gọi",CALLING_REJOIN_PROMPT:"Bạn đang có một cuộc gọi đang hoạt động với nhân viên hỗ trợ. Bạn có muốn tham gia lại không?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Đại lý",CALLING_REQUEST:"Tham gia gọi video?",CALLING_RETRY:"Thử lại",CALLING_SAVE:"Lưu",CALLING_SELECT_CAMERA:"Chọn camera",CALLING_SELECT_MICROPHONE:"Chọn micro",CALLING_SELECT_SPEAKER:"Chọn người nói",CALLING_SHOW_CALL_SETTINGS:"Hiển thị cài đặt cuộc gọi",DENY:"Từ chối",END_SESSION:"Kết thúc phiên Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn xem toàn bộ màn hình của bạn.",FULL_DEVICE_REQUEST_TITLE:"Cho phép chụp toàn bộ màn hình?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn kiểm soát trang này.",REMOTE_CONTROL_REQUEST_TITLE:"Cho phép điều khiển từ xa?",SESSION_REQUEST_DESCRIPTION:"Một tổng đài viên muốn tạm thời sử dụng trang web này với bạn.",SESSION_REQUEST_TITLE:"Cho phép cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Trang web này không thể được xem cùng với một tổng đài viên hỗ trợ",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn theo dõi bạn đến các trang web khác.",UNIVERSAL_PROXY_REQUEST_TITLE:"Cho phép tiếp tục phiên?"},zh:{ALLOW:"允许",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"客服拒接电话",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"摄像头已关闭",CALLING_CAMERA_PERMISSION_DENIED:"摄像头访问被拒绝。请在您的浏览器设置中启用。",CALLING_CAMERA_PERMISSION_PROMPT:"允许访问摄像头",CALLING_CAMERA_STARTING:"摄像头正在启动",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"禁用音频",CALLING_DISABLE_VIDEO:"禁用视频",CALLING_ENABLE_AUDIO:"启用音频",CALLING_ENABLE_VIDEO:"启用视频",CALLING_END:"结束通话",CALLING_IN_PROGRESS:"进入视频通话",CALLING_JOIN:"加入通话",CALLING_JOIN_PROMPT:"支持代理想要给您打电话。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麦克风访问被拒绝。请在您的浏览器设置中启用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允许访问麦克风",CALLING_NO_DEVICES:"无",CALLING_PERMISSION_NEEDED:"需要权限",CALLING_REJECT:"拒绝通话",CALLING_REJOIN_PROMPT:"您当前正与一位支持代理通话。您想重新加入吗?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"坐席",CALLING_REQUEST:"开始视频通话?",CALLING_RETRY:"重试",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"选择摄像头",CALLING_SELECT_MICROPHONE:"选择麦克风",CALLING_SELECT_SPEAKER:"选择说话者",CALLING_SHOW_CALL_SETTINGS:"显示通话设置",DENY:"拒绝",END_SESSION:"结束共同浏览会话",FULL_DEVICE_REQUEST_DESCRIPTION:"客服代理希望查看您的整个屏幕。",FULL_DEVICE_REQUEST_TITLE:"允许全屏截图?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"客服代理希望控制此页面。",REMOTE_CONTROL_REQUEST_TITLE:"允许远程控制?",SESSION_REQUEST_DESCRIPTION:"客服代理希望与您暂时共享此网页。",SESSION_REQUEST_TITLE:"允许协同浏览?",UNIVERSAL_PROXY_BLOCKED:"此网页无法与客服代理一起查看",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟随您访问其他网页。",UNIVERSAL_PROXY_REQUEST_TITLE:"允许会话继续?"},"zh-Hant":{ALLOW:"允許",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"代理拒接通話",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"攝影機已關閉",CALLING_CAMERA_PERMISSION_DENIED:"相機存取被拒。請在瀏覽器設定中啟用。",CALLING_CAMERA_PERMISSION_PROMPT:"允許存取相機",CALLING_CAMERA_STARTING:"攝影機正在啟動",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"停用音訊",CALLING_DISABLE_VIDEO:"停用影片",CALLING_ENABLE_AUDIO:"啟用音訊",CALLING_ENABLE_VIDEO:"啟用影片",CALLING_END:"結束通話",CALLING_IN_PROGRESS:"進入視訊通話",CALLING_JOIN:"加入通話",CALLING_JOIN_PROMPT:"支援代理想要致電給您。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麥克風存取被拒。請在您的瀏覽器設定中啟用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允許存取麥克風",CALLING_NO_DEVICES:"無",CALLING_PERMISSION_NEEDED:"需要權限",CALLING_REJECT:"拒絕通話",CALLING_REJOIN_PROMPT:"您目前正與客服代理通話。您要重新加入嗎?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"代理",CALLING_REQUEST:"進入視訊通話?",CALLING_RETRY:"重試",CALLING_SAVE:"儲存",CALLING_SELECT_CAMERA:"選擇攝影機",CALLING_SELECT_MICROPHONE:"選擇麥克風",CALLING_SELECT_SPEAKER:"選擇講者",CALLING_SHOW_CALL_SETTINGS:"顯示通話設定",DENY:"拒絕",END_SESSION:"結束共同瀏覽會話",FULL_DEVICE_REQUEST_DESCRIPTION:"一位支援代理想檢視您的整個畫面。",FULL_DEVICE_REQUEST_TITLE:"允許全螢幕截圖?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"一位支援代理希望控制此頁面。",REMOTE_CONTROL_REQUEST_TITLE:"允許遠程控制?",SESSION_REQUEST_DESCRIPTION:"支援人員希望暫時與您一起使用此網頁。",SESSION_REQUEST_TITLE:"允許協同瀏覽?",UNIVERSAL_PROXY_BLOCKED:"此網頁無法與客服代理一起檢視",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟隨您訪問其他網頁。",UNIVERSAL_PROXY_REQUEST_TITLE:"允許會話繼續?"}},IV=["ar","he","fa","ur"];class LV{static getLocale(){for(const e of navigator.languages){if(yV[e])return new LV(e);if(e.includes("-")){const t=e.split("-")[0].toLowerCase();if(yV[t])return new LV(t)}}return new LV("en")}static tr(e){return this.getLocale().translate(e)}static direction(){return this.getLocale().direction}constructor(e){this.language=e,this.direction=IV.includes(e)?"rtl":"ltr"}translate(e){return yV[this.language][e]||yV.en[e]||e}}function CV(){for(var e,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&"string"==typeof e&&(n+=(n&&" ")+e);return n}const AV={base:"Button-module__base___gx4CL",primary:"Button-module__primary___TUjdp",secondary:"Button-module__secondary___CJVQq"},SV=["children","className","variant","disabled"],bV=e=>{let{children:t,className:n,variant:r,disabled:i}=e,o=Jo(e,SV);return Tb(OS,{children:Tb("button",Yo(Yo({className:CV(AV.base,AV[r],n),disabled:i},o),{},{children:t}))})},NV=({children:e,footer:t,style:n,corner:r="top-left",onCornerChange:i})=>{const[o,s]=pb({x:0,y:0}),[a,c]=pb(!1),[l,u]=pb(!1),d=mb(o),h=mb(null),f=mb({x:0,y:0}),p=mb(null),g=mb(r);gb(()=>{d.current=o},[o]),gb(()=>{var e,t;if(!h.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,i=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=h.current,c={"top-left":{x:0,y:0,dx:0,dy:0},"top-right":{x:n-o,y:0,dx:1,dy:0},"bottom-left":{x:0,y:i-a,dx:0,dy:1},"bottom-right":{x:n-o,y:i-a,dx:1,dy:1}},{x:l,y:u,dx:d,dy:f}=c[r];s({x:l,y:u}),p.current={dx:d,dy:f},g.current=r},[r]);const m=(e,t)=>{c(!0),u(!1),f.current={x:e-o.x,y:t-o.y}};gb(()=>{const e=e=>{var t,n;if(!a)return;const r=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,i=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let o=e.clientX-f.current.x,c=e.clientY-f.current.y;if(h.current){const{offsetWidth:e,offsetHeight:t}=h.current;o=Math.max(0,Math.min(o,r-e)),c=Math.max(0,Math.min(c,i-t))}s({x:o,y:c}),d.current={x:o,y:c}},t=e=>{var t,n;if(!a)return;e.preventDefault();const r=e.touches[0];if(!r)return;const i=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,o=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let c=r.clientX-f.current.x,l=r.clientY-f.current.y;if(h.current){const{offsetWidth:e,offsetHeight:t}=h.current;c=Math.max(0,Math.min(c,i-e)),l=Math.max(0,Math.min(l,o-t))}s({x:c,y:l}),d.current={x:c,y:l}},n=()=>{c(!1),window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n),setTimeout(v,0)};return a&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",n),window.addEventListener("touchmove",t,{passive:!1}),window.addEventListener("touchend",n)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n)}},[a]);const _=vb(()=>{var e,t;if(!h.current||!p.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:i,offsetHeight:o}=h.current,{dx:a,dy:c}=p.current;s({x:0===a?0:n-i,y:0===c?0:r-o})},[]);gb(()=>(window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_]),gb(()=>{const e=new ResizeObserver(()=>{u(!0),_(),setTimeout(()=>u(!1),300)});return h.current&&e.observe(h.current),()=>e.disconnect()},[_]);const v=()=>{var e,t;if(!h.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=h.current,c=[{name:"top-left",x:0,y:0,dx:0,dy:0},{name:"top-right",x:n-o,y:0,dx:1,dy:0},{name:"bottom-left",x:0,y:r-a,dx:0,dy:1},{name:"bottom-right",x:n-o,y:r-a,dx:1,dy:1}],l=d.current,f=(e,t)=>Math.hypot(e.x-t.x,e.y-t.y),m=c.reduce((e,t)=>f(l,t)<f(l,e)?t:e);u(!0),s({x:m.x,y:m.y}),p.current={dx:m.dx,dy:m.dy},g.current!==m.name&&(null==i||i(m.name),g.current=m.name),setTimeout(()=>u(!1),300)};return Tb("div",{ref:h,style:Yo(Yo({},n),{},{position:"fixed",left:o.x,top:o.y,transition:l?"left 0.3s ease, top 0.3s ease, transform 0.2s ease":"transform 0.2s ease"}),children:[Tb("div",{style:{cursor:a?"grabbing":"grab",transform:a?"scale(1.02)":"scale(1)",transition:"transform 0.2s ease"},onMouseDown:e=>{e.preventDefault(),m(e.clientX,e.clientY)},onTouchStart:e=>{const t=e.touches[0];t&&m(t.clientX,t.clientY)},children:e}),null!=t?t:null]})},TV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Tb("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Tb("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]}),kV=Tb("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Tb("path",{d:"M21.5 12V15C21.5 15.2652 21.3946 15.5196 21.2071 15.7071C21.0196 15.8946 20.7652 16 20.5 16H4.5C4.23478 16 3.98043 15.8946 3.79289 15.7071C3.60536 15.5196 3.5 15.2652 3.5 15L3.5 5C3.5 4.73478 3.60536 4.48043 3.79289 4.29289C3.98043 4.10536 4.23478 4 4.5 4L13.5 4M7.5 20H17.5M9.5 16V20M15.5 16V20M17.5 8L21.5 4M17.5 4L21.5 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),OV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"}),Tb("path",{d:"M5 10a7 7 0 0 0 14 0"}),Tb("path",{d:"M8 21l8 0"}),Tb("path",{d:"M12 17l0 4"})]}),RV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M3 3l18 18"}),Tb("path",{d:"M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1"}),Tb("path",{d:"M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85"}),Tb("path",{d:"M8 21l8 0"}),Tb("path",{d:"M12 17l0 4"})]}),PV=Tb("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Tb("path",{d:"M23.1068 13.9142L20.2784 16.7426L15.3286 14.6213L16.0357 11.7929C13.7429 11.0147 11.2574 11.0147 8.96465 11.7929L9.67175 14.6213L4.72201 16.7426L1.89358 13.9142C1.51851 13.5391 1.30779 13.0304 1.30779 12.5C1.30779 11.9696 1.51851 11.4609 1.89358 11.0858C4.81944 8.49517 8.59225 7.06493 12.5002 7.06493C16.4081 7.06493 20.1809 8.49517 23.1068 11.0858C23.4819 11.4609 23.6926 11.9696 23.6926 12.5C23.6926 13.0304 23.4819 13.5391 23.1068 13.9142Z",stroke:"#F5F6FB","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),DV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}),Tb("path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]}),MV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M3 3l18 18"}),Tb("path",{d:"M15 11v-1l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -.675 .946"}),Tb("path",{d:"M10 6h3a2 2 0 0 1 2 2v3m0 4v1a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h1"})]}),xV=Tb("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Tb("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Tb("path",{d:"M15 8a5 5 0 0 1 0 8"}),Tb("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),Tb("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]}),GV=Object.freeze({__proto__:null,DotsVertical:TV,EndSession:kV,Microphone:OV,MicrophoneOff:RV,Phone:PV,Video:DV,VideoOff:MV,Volume:xV}),UV=["name"],VV=e=>{let{name:t}=e;return Tb("div",Yo(Yo({"aria-hidden":"true",style:{display:"inline-block"}},Jo(e,UV)),{},{children:GV[t]}))},WV=["children","className","ariaLabel","title"],FV=e=>{let{children:t,className:n,ariaLabel:r,title:i}=e,o=Jo(e,WV);return Tb("button",Yo(Yo({className:CV("IconButton-module__base___Cg18y",n),"aria-label":r,title:null!=r?r:i},o),{},{children:t}))},jV=["children","className"],BV=e=>{let{children:t,className:n}=e;return Tb("div",Yo(Yo({className:"Modal-module__container___ZH7Ev",role:"dialog","aria-modal":"true"},Jo(e,jV)),{},{children:Tb("section",{className:CV("Modal-module__content___I-t2M",n),dir:LV.direction(),children:t})}))},zV="data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%2F%3E%3Cpath%20d%3D%5CiM6%209l6%206l6%20-6%5Ci%20%2F%3E%3C%2Fsvg%3E",HV=["children","iconUrl","className","ariaLabel","style"],qV=e=>{let{children:t,iconUrl:n,className:r,ariaLabel:i,style:o}=e,s=Jo(e,HV);const a=Yo(Yo({},n?{backgroundImage:`url("${n}"),url("${zV}")`,backgroundPosition:"left 4px center,right 4px center",padding:"8px 24px 8px 24px"}:{backgroundImage:`url("${zV}")`}),o);return Tb("select",Yo(Yo({className:CV("Select-module__base___M3sny",!n&&"Select-module__noIcon___WDzeV",r),"aria-label":i,style:a},s),{},{children:t}))},QV=["children"],$V=e=>{let{children:t}=e;return Tb("option",Yo(Yo({},Jo(e,QV)),{},{children:t}))},YV=({onClick:e})=>Tb("div",{className:"SessionStateOverlay-module__sessionStateOverlay___vT0jC",children:Tb(bV,{className:"SessionStateOverlay-module__endSessionButton___pO2E2",onClick:()=>e("session-end"),children:[LV.tr("END_SESSION"),Tb(VV,{className:"SessionStateOverlay-module__endSessionIcon___rHBj2",name:"EndSession"})]})});var JV=new WeakMap;const KV=new class extends yv{constructor(...e){super(...e),Bo(this,JV,null),Qo(this,"showSessionControls",()=>{this.hideSessionControls(),zo(JV,this,Sb(YV,{onClick:e=>this.emit("click",e)},{hideFromAgent:!0}))}),Qo(this,"hideSessionControls",()=>{var e;null===(e=jo(JV,this))||void 0===e||e.unmount(),zo(JV,this,null)})}},XV=({title:e,description:t,onDeny:n,onAllow:r})=>Tb(OS,{children:Tb(BV,{className:"ConsentDialog-module__content___9Rp4u","aria-labelledby":"title","aria-describedby":"description",children:[Tb("header",{children:Tb("h2",{id:"title",className:"ConsentDialog-module__title___QVdGh",children:e})}),Tb("div",{className:"ConsentDialog-module__body___azYOk",children:Tb("p",{id:"description",className:"ConsentDialog-module__description___zucXq",children:t})}),Tb("footer",{className:"ConsentDialog-module__buttons___f9Tr6",children:[Tb(bV,{variant:"secondary",onClick:n,children:LV.tr("DENY")}),Tb(bV,{variant:"primary",onClick:r,children:LV.tr("ALLOW")})]})]})});var ZV=new WeakMap;class eW{constructor(){Bo(this,ZV,void 0),Qo(this,"show",async(e,t)=>{var n;return null===(n=jo(ZV,this))||void 0===n||n.unmount(),new Promise(n=>{const r={title:e,description:t,onDeny:e=>{e.isTrusted&&(n(!1),this.hide())},onAllow:e=>{e.isTrusted&&(n(!0),this.hide())}};zo(ZV,this,Sb(XV,r,{hideFromAgent:!0}))})}),Qo(this,"hide",()=>{var e;null===(e=jo(ZV,this))||void 0===e||e.unmount(),zo(ZV,this,null)})}}const tW="_cobrowse_media_settings",nW={videoEnabled:!1,videoInputDeviceId:"default",audioEnabled:!1,audioInputDeviceId:"default",audioOutputDeviceId:"default"},rW={width:{ideal:1280},height:{ideal:720}},iW=({audioEnabled:e,audioInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{audio:!!e&&{deviceId:{[n]:t}}}},oW=({videoEnabled:e,videoInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{video:!!e&&Yo(Yo({},rW),{},{deviceId:{[n]:t}})}};var sW=new WeakMap,aW=new WeakMap,cW=new WeakMap;class lW extends yv{constructor(e){super(),Bo(this,sW,null),Bo(this,aW,void 0),Bo(this,cW,void 0),zo(sW,this,Yo(Yo({},nW),e.getItem(tW))),zo(aW,this,t=>e.setItem(tW,t)),zo(cW,this,()=>this.update(e.getItem(tW)))}get settings(){return Yo({},jo(sW,this))}update(e){var t;let n=!1;for(const[t,r]of Object.entries(e))void 0!==r&&t in jo(sW,this)&&jo(sW,this)[t]!==r&&(jo(sW,this)[t]=r,n=!0);n&&(null===(t=jo(aW,this))||void 0===t||t.call(this,jo(sW,this)),this.emit("updated",this))}toggleAudio(){this.update({audioEnabled:!jo(sW,this).audioEnabled})}toggleVideo(){this.update({videoEnabled:!jo(sW,this).videoEnabled})}reloadFromStorage(){jo(cW,this).call(this)}}const uW="prompt",dW=e=>({granted:"granted"===e,denied:"denied"===e,prompt:e===uW}),hW="MediaPreview-module__voiceVideoControlsToggle___k5XoS",fW="MediaPreview-module__voiceVideoControlsToggleOff___2nclS",pW="MediaPreview-module__voiceVideoControlsToggleOn___whg1G",gW="MediaPreview-module__voiceVideoControlsIcon___JYkty",mW="default",_W=(e,t)=>e.some(e=>e.deviceId===t),vW=({initialSettings:e,onSettingsChange:t,disabled:n})=>{const r=mb(null),i=mb(new MediaStream),{audioInputDevices:o,audioOutputDevices:s,videoInputDevices:a,audioPermission:c,videoPermission:l,updateDeviceLists:u,updatePermissions:d}=(()=>{const[e,t]=pb([]),[n,r]=pb([]),[i,o]=pb([]),[s,a]=pb(uW),[c,l]=pb(uW),u=_b(()=>dW(s),[s]),d=_b(()=>dW(c),[c]),h=mb(null),f=mb(null),p=vb(async()=>{if(!navigator.mediaDevices)return;const e=await navigator.mediaDevices.enumerateDevices(),n=[],i=[],s=[];e.forEach(e=>{e.deviceId&&("audioinput"===e.kind&&n.push(e),"audiooutput"===e.kind&&i.push(e),"videoinput"===e.kind&&s.push(e))}),t(n),r(i),o(s)},[]),g=()=>a(h.current.state),m=()=>l(f.current.state),_=vb(async()=>{try{var e,t;null===(e=h.current)||void 0===e||e.removeEventListener("change",g),h.current=await navigator.permissions.query({name:"microphone"}),h.current.addEventListener("change",g),null===(t=f.current)||void 0===t||t.removeEventListener("change",m),f.current=await navigator.permissions.query({name:"camera"}),f.current.addEventListener("change",m),a(h.current.state),l(f.current.state)}catch(e){console.warn("CobrowseIO: Failed to get permissions",e),a(uW),l(uW)}},[]);return gb(()=>{_()},[_]),gb(()=>{var e;return null===(e=navigator.mediaDevices)||void 0===e||e.addEventListener("devicechange",p),p(),()=>{var e;null===(e=navigator.mediaDevices)||void 0===e||e.removeEventListener("devicechange",p)}},[p]),gb(()=>{p()},[s,c,p]),{audioInputDevices:e,audioOutputDevices:n,videoInputDevices:i,audioPermission:u,videoPermission:d,updateDeviceLists:p,updatePermissions:_}})(),[h,f]=pb(!1),[p,g]=pb(e.videoEnabled),[m,_]=pb(e.videoInputDeviceId),[v,E]=pb(e.audioEnabled),[w,y]=pb(e.audioInputDeviceId),[I,L]=pb(e.audioOutputDeviceId);gb(()=>{null==t||t({videoEnabled:p,videoInputDeviceId:m,audioEnabled:v,audioInputDeviceId:w,audioOutputDeviceId:I})},[t,p,m,v,w,I]);const C=vb(e=>{i.current.getTracks().filter(t=>t.kind===e).forEach(e=>{e.stop(),i.current.removeTrack(e)})},[]);gb(()=>{r.current&&(r.current.srcObject=i.current)},[]),gb(()=>{if(!_W(o,w))return _W(o,mW)?y(mW):void(o.length&&y(o[0].deviceId))},[o,w]),gb(()=>{if(!_W(s,I))return _W(s,mW)?L(mW):void(s.length&&L(s[0].deviceId))},[s,I]),gb(()=>{if(!_W(a,m))return _W(a,mW)?_(mW):void(a.length&&_(a[0].deviceId))},[a,m]),gb(()=>{if(!p)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start video, mediaDevices is not available"),void g(!1);f(!0);const e=oW({videoEnabled:p,videoInputDeviceId:m});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get video",e),l.prompt&&g(!1)}).finally(()=>{d(),f(!1)}),()=>C("video")},[u,d,l,p,m,C]),gb(()=>{if(!v)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start audio, mediaDevices is not available"),void E(!1);const e=iW({audioEnabled:v,audioInputDeviceId:w});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get audio",e),c.prompt&&E(!1)}).finally(()=>{d()}),()=>C("audio")},[u,d,c,v,w,C]);const A=(e,t)=>Tb("div",{className:CV("MediaPreview-module__videoOverlay___e7YkR",t?"MediaPreview-module__videoOverlayTransparent___qVogL":"MediaPreview-module__videoOverlaySolid___uy0ao"),children:Tb("p",{className:"MediaPreview-module__videoOverlayText___L-nXB",children:e})}),S=(e,t)=>e?t.length?t.map(e=>Tb($V,{value:e.deviceId,children:e.label},e.deviceId)):Tb($V,{value:"",disabled:!0,selected:!0,children:LV.tr("CALLING_NO_DEVICES")}):Tb($V,{value:"",disabled:!0,selected:!0,children:LV.tr("CALLING_PERMISSION_NEEDED")});return Tb(OS,{children:[Tb("div",{className:"MediaPreview-module__previewContainer___jg4yL",children:[Tb("div",{className:"MediaPreview-module__videoContainer___-OEXn",children:[Tb("video",{ref:r,className:"MediaPreview-module__video___0LBZO",autoPlay:!0,playsInline:!0,muted:!0}),(()=>{const e=p&&l.granted;if(v){if(c.denied)return A(LV.tr("CALLING_MICROPHONE_PERMISSION_DENIED"),e);if(c.prompt)return A(LV.tr("CALLING_MICROPHONE_PERMISSION_PROMPT"),e)}return p?l.denied?A(LV.tr("CALLING_CAMERA_PERMISSION_DENIED"),e):l.prompt?A(LV.tr("CALLING_CAMERA_PERMISSION_PROMPT"),e):h?A(LV.tr("CALLING_CAMERA_STARTING"),e):null:A(LV.tr("CALLING_CAMERA_OFF"),e)})()]}),Tb(EW,{audioEnabled:v,toggleAudio:()=>E(e=>!e),videoEnabled:p,toggleVideo:()=>g(e=>!e),disabled:n})]}),Tb("div",{className:"MediaPreview-module__deviceContainer___NlbuY",children:[Tb(qV,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM9%202m0%203a3%203%200%200%201%203%20-3h0a3%203%200%200%201%203%203v5a3%203%200%200%201%20-3%203h0a3%203%200%200%201%20-3%20-3z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM5%2010a7%207%200%200%200%2014%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM8%2021l8%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM12%2017l0%204%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:LV.tr("CALLING_SELECT_MICROPHONE"),value:c.granted&&o.length?w:"",onChange:e=>y(e.target.value),disabled:n||!c.granted||!o.length,children:S(c.granted,o)}),Tb(qV,{iconUrl:"data:image/svg+xml,%20%20%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%20%20%20%20%3Cpath%20d%3D%5CiM15%208a5%205%200%200%201%200%208%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM17.7%205a9%209%200%200%201%200%2014%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM6%2015h-2a1%201%200%200%201%20-1%20-1v-4a1%201%200%200%201%201%20-1h2l3.5%20-4.5a.8%20.8%200%200%201%201.5%20.5v14a.8%20.8%200%200%201%20-1.5%20.5l-3.5%20-4.5%5Ci%20%2F%3E%20%20%3C%2Fsvg%3E",ariaLabel:LV.tr("CALLING_SELECT_SPEAKER"),value:c.granted&&s.length?I:"",onChange:e=>L(e.target.value),disabled:n||!c.granted||!s.length,children:S(c.granted,s)}),Tb(qV,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM15%2010l4.553%20-2.276a1%201%200%200%201%201.447%20.894v6.764a1%201%200%200%201%20-1.447%20.894l-4.553%20-2.276v-4z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM3%206m0%202a2%202%200%200%201%202%20-2h8a2%202%200%200%201%202%202v8a2%202%200%200%201%20-2%202h-8a2%202%200%200%201%20-2%20-2z%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:LV.tr("CALLING_SELECT_CAMERA"),value:l.granted&&a.length?m:"",onChange:e=>_(e.target.value),disabled:n||!l.granted||!a.length,children:S(l.granted,a)})]})]})},EW=({audioEnabled:e,toggleAudio:t,videoEnabled:n,toggleVideo:r,disabled:i})=>Tb("div",{className:"MediaPreview-module__voiceVideoControls___7f--Y",children:[Tb(FV,{onClick:t,ariaLabel:e?LV.tr("CALLING_DISABLE_AUDIO"):LV.tr("CALLING_ENABLE_AUDIO"),className:CV(hW,e?pW:fW),disabled:i,children:Tb(VV,{className:gW,name:e?"Microphone":"MicrophoneOff"})}),Tb(FV,{onClick:r,ariaLabel:n?LV.tr("CALLING_DISABLE_VIDEO"):LV.tr("CALLING_ENABLE_VIDEO"),className:CV(hW,n?pW:fW),disabled:i,style:{marginLeft:"-4px"},children:Tb(VV,{className:gW,name:n?"Video":"VideoOff"})})]}),wW="_cobrowse_calling_joined",yW="off",IW="requested",LW="rejected",CW="on";var AW=new WeakMap,SW=new WeakMap,bW=new WeakMap,NW=new WeakMap,TW=new WeakMap,kW=new WeakMap,OW=new WeakMap,RW=new WeakMap,PW=new WeakMap,DW=new WeakMap,MW=new WeakMap;class xW extends yv{constructor(e){super(),Bo(this,AW,void 0),Bo(this,SW,void 0),Bo(this,bW,void 0),Bo(this,NW,void 0),Bo(this,TW,void 0),Bo(this,kW,void 0),Bo(this,OW,void 0),Qo(this,"getTracks",()=>jo(SW,this).stream.getTracks()),Qo(this,"addTrack",e=>{jo(SW,this)[kT].addTrack(e)}),Qo(this,"removeTrack",e=>{jo(SW,this)[kT].removeTrack(e)}),Qo(this,"request",()=>{jo(RW,this).call(this),jo(TW,this).call(this,IW)}),Qo(this,"reject",()=>{jo(TW,this).call(this,LW)}),Qo(this,"answer",()=>{jo(RW,this).call(this),jo(TW,this).call(this,CW)}),Qo(this,"end",()=>{jo(TW,this).call(this,yW)}),Bo(this,RW,()=>{const e=this.hasJoined;jo(NW,this).setItem(wW,jo(bW,this)),e!==this.hasJoined&&jo(PW,this).call(this)}),Bo(this,PW,async()=>{this.emit("updated",this)}),Bo(this,DW,OT(this,"receiveSessionUpdate",(e,t)=>{var n,r,i;const o=jo(kW,this)!==e,s=(null!==(n=null===(r=jo(OW,this))||void 0===r?void 0:r.id)&&void 0!==n?n:null)!==(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null);zo(kW,this,e),zo(OW,this,t),(o||s)&&jo(PW,this).call(this)})),Bo(this,MW,OT(this,"destroy",()=>{jo(NW,this).removeItem(wW)})),zo(AW,this,e.getParticipants),zo(SW,this,e.localParticipant),zo(bW,this,e.sessionId),zo(NW,this,e.storage),zo(TW,this,e.updateCalling)}get state(){return jo(kW,this)}get caller(){return jo(OW,this)}get hasJoined(){return jo(NW,this).getItem(wW)===jo(bW,this)}get participants(){return jo(AW,this).call(this)}}const GW="primary",UW="secondary",VW=({title:e,description:t,primaryTitle:n,onPrimaryClick:r,secondaryTitle:i,onSecondaryClick:o,isDisabled:s,settings:a,handlePreviewSettingsChange:c})=>Tb(BV,{className:"CallDialog-module__content___sk6PW","aria-labelledby":"title","aria-describedby":"description",children:[Tb("header",{className:"CallDialog-module__header___kOjGP",children:[Tb("section",{className:"CallDialog-module__media___GUTLA",children:Tb(vW,{initialSettings:a,onSettingsChange:c})}),e?Tb("h2",{id:"title",className:"CallDialog-module__title___WUNJY",children:e}):null]}),t?Tb("div",{className:"CallDialog-module__body___AaCUz",children:Tb("p",{id:"description",className:"CallDialog-module__description___a-7qp",children:t})}):null,Tb("footer",{className:"CallDialog-module__buttonContainer___NtvjF",children:[Tb(bV,{variant:"secondary",onClick:o,children:i}),Tb(bV,{variant:"primary",onClick:r,disabled:s,children:n})]})]});var WW=new WeakMap,FW=new WeakMap,jW=new WeakMap,BW=new WeakMap,zW=new WeakMap,HW=new WeakMap,qW=new WeakMap;class QW{constructor({call:e,mediaSettings:t}){Bo(this,WW,void 0),Bo(this,FW,void 0),Bo(this,jW,void 0),Bo(this,BW,null),Qo(this,"show",e=>{zo(jW,this,jo(FW,this).settings);const t=e=>{zo(jW,this,e)};return new Promise(n=>{jo(HW,this).call(this,Yo({onPrimaryClick:()=>n({action:GW,settings:jo(jW,this)}),onSecondaryClick:()=>n({action:UW,settings:jo(jW,this)}),settings:jo(FW,this).settings,handlePreviewSettingsChange:t},e))})}),Qo(this,"hide",()=>{zo(jW,this,null),jo(qW,this).call(this)}),Bo(this,zW,async({state:e,caller:t,hasJoined:n})=>{const r=!t;if(e===IW&&!r){const{action:e}=await this.show({title:LV.tr("CALLING_REQUEST"),description:LV.tr("CALLING_JOIN_PROMPT"),primaryTitle:LV.tr("CALLING_ACCEPT"),secondaryTitle:LV.tr("CALLING_REJECT")});return e===GW?(jo(FW,this).update(jo(jW,this)),jo(WW,this).answer()):jo(WW,this).reject(),void this.hide()}if(e===IW&&r&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:LV.tr("CALLING_JOIN"),secondaryTitle:LV.tr("CALLING_CANCEL")});return void(e===GW?(jo(FW,this).update(jo(jW,this)),jo(WW,this).request()):(jo(WW,this).end(),this.hide()))}if(e===IW&&r&&n){const{action:e}=await this.show({title:LV.tr("CALLING_IN_PROGRESS"),description:LV.tr("CALLING_AGENT_WAITING"),primaryTitle:LV.tr("CALLING_JOIN"),secondaryTitle:LV.tr("CALLING_CANCEL"),isDisabled:!0});return e===UW&&jo(WW,this).end(),void this.hide()}if(e===LW&&r){const{action:e}=await this.show({title:LV.tr("CALLING_IN_PROGRESS"),description:LV.tr("CALLING_AGENT_DECLINED"),primaryTitle:LV.tr("CALLING_BACK"),secondaryTitle:LV.tr("CALLING_RETRY")});return void(e===GW?(jo(WW,this).end(),this.hide()):(jo(FW,this).update(jo(jW,this)),jo(WW,this).request()))}if(e===CW&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:LV.tr("CALLING_JOIN"),secondaryTitle:LV.tr("CALLING_CANCEL")});return e===GW?(jo(FW,this).update(jo(jW,this)),jo(WW,this).answer()):r&&jo(WW,this).end(),void this.hide()}e===CW&&jo(jW,this)&&jo(FW,this).update(jo(jW,this)),this.hide()}),Bo(this,HW,e=>{jo(BW,this)?jo(BW,this).rerender(e):zo(BW,this,Sb(VW,e,{hideFromAgent:!0}))}),Bo(this,qW,()=>{var e;null===(e=jo(BW,this))||void 0===e||e.unmount(),zo(BW,this,null)}),Qo(this,"destroy",()=>{jo(WW,this).off("updated",jo(zW,this)),jo(qW,this).call(this)}),zo(WW,this,e),zo(FW,this,t),jo(WW,this).on("updated",jo(zW,this)),jo(zW,this).call(this,jo(WW,this))}}var $W=new WeakMap,YW=new WeakMap,JW=new WeakMap,KW=new WeakMap,XW=new WeakMap,ZW=new WeakMap;class eF extends wv.EventEmitter{constructor(e,t){if(super(),Bo(this,$W,void 0),Bo(this,YW,void 0),Bo(this,JW,void 0),Bo(this,KW,void 0),Bo(this,XW,void 0),Bo(this,ZW,!1),!window.AudioContext)return;if(!e||!e.getAudioTracks().length)return;zo($W,this,new window.AudioContext),zo(YW,this,jo($W,this).createMediaStreamSource(e)),zo(JW,this,jo($W,this).createAnalyser()),jo(JW,this).fftSize=256,jo(YW,this).connect(jo(JW,this));const n=()=>{if(jo(ZW,this))return;const e=new Uint8Array(jo(JW,this).frequencyBinCount);jo(JW,this).getByteFrequencyData(e);const r=e.reduce((e,t)=>e+t,0),i=r/jo(JW,this).frequencyBinCount>t;jo(KW,this)!==i&&(zo(KW,this,i),this.emit("updated",this)),jo(KW,this)?setTimeout(()=>{zo(XW,this,requestAnimationFrame(n))},250):zo(XW,this,requestAnimationFrame(n))};n()}get hasNoise(){return jo(KW,this)||!1}destroy(){var e,t,n;zo(ZW,this,!0),cancelAnimationFrame(jo(XW,this)),null===(e=jo(YW,this))||void 0===e||e.disconnect(),zo(YW,this,null),null===(t=jo(JW,this))||void 0===t||t.disconnect(),zo(JW,this,null),null===(n=jo($W,this))||void 0===n||n.close(),zo($W,this,null)}}const tF="CallControls-module__toggle___1B90-",nF="CallControls-module__toggleOff___v-UzL",rF="CallControls-module__toggleOn___WtJ0M",iF="CallControls-module__icon___LBB4v",oF=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=pb(t.settings.audioEnabled),[o,s]=pb(t.settings.videoEnabled);return gb(()=>{t.on("updated",({settings:e})=>{i(e.audioEnabled),s(e.videoEnabled)})},[t]),Tb("div",{style:{display:"flex",justifyContent:"center"},children:Tb("div",{className:"CallControls-module__container___usQnp",children:[Tb("div",{className:"CallControls-module__toggleContainer___RVxBh",children:[Tb(FV,{className:CV(tF,r?rF:nF),ariaLabel:r?LV.tr("CALLING_DISABLE_AUDIO"):LV.tr("CALLING_ENABLE_AUDIO"),onClick:()=>t.toggleAudio(),children:Tb(VV,{name:r?"Microphone":"MicrophoneOff",className:iF})}),Tb(FV,{className:CV(tF,o?rF:nF),ariaLabel:o?LV.tr("CALLING_DISABLE_VIDEO"):LV.tr("CALLING_ENABLE_VIDEO"),onClick:()=>t.toggleVideo(),children:Tb(VV,{name:o?"Video":"VideoOff",className:iF})}),Tb(FV,{className:CV(tF,rF),ariaLabel:LV.tr("CALLING_SHOW_CALL_SETTINGS"),onClick:()=>n(),children:Tb(VV,{name:"DotsVertical",className:iF})})]}),Tb(FV,{className:"CallControls-module__end___1Gl91",ariaLabel:LV.tr("CALLING_END"),onClick:()=>e.end(),children:Tb(VV,{name:"Phone",className:iF})})]})})},sF="_cobrowse_participants_position",aF=e=>EE().setItem(sF,e),cF=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=pb(e.participants),[o,s]=pb(t.settings.audioOutputDeviceId);gb(()=>{const e=({settings:e})=>{s(e.audioOutputDeviceId)};return t.on("updated",e),()=>{t.off("updated",e)}},[t]),gb(()=>{const t=e=>{i(e)};return e.on("participants.updated",t),()=>{e.off("participants.updated",t)}},[e]);const a=_b(()=>[...r].sort((e,t)=>{const n=!e.agentId,r=!t.agentId;return n&&!r?-1:!n&&r?1:0}),[r]);return Tb(NV,{style:{zIndex:"2147483646"},corner:EE().getItem(sF)||"top-right",onCornerChange:aF,footer:Tb("div",{className:"CallParticipants-module__callControlsContainer___7B-Gr",children:Tb(oF,{call:e,mediaSettings:t,showSettingsDialog:n})}),children:Tb("div",{className:"CallParticipants-module__container___Ve9rt",children:a.map(e=>Tb(lF,{participant:e,audioOutputDeviceId:o},e.id))})})},lF=({participant:e,audioOutputDeviceId:t})=>{const n=mb(null),[r,i]=pb(e.hasVideo),[o,s]=pb(e.hasAudio),a=(e=>{const[t,n]=pb(!1),[r,i]=pb(e.hasAudio);return gb(()=>{const t=()=>{i(e.hasAudio)};return e.on("track.added",t),e.on("track.removed",t),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),gb(()=>{if(!r)return void n(!1);const t=({hasNoise:e})=>n(e),i=new eF(e.stream,15);return i.on("updated",t),t(i),()=>{i.off("updated",t),i.destroy()}},[r,e.stream]),t})(e),c=!e.agentId;return gb(()=>{const t=()=>{const{hasVideo:t,hasAudio:n}=e;i(t),s(n)};return e.on("track.added",t),e.on("track.removed",t),t(),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),gb(()=>{n.current.srcObject=e.stream},[e]),gb(()=>{n.current&&o&&t&&n.current.setSinkId(t)},[t,o]),Tb("div",{className:CV("CallParticipants-module__participantContainer___pxqEA",a&&"CallParticipants-module__participantSpeaking___Iv0HT"),children:[Tb("div",{className:"CallParticipants-module__videoContainer___tdKF2",children:[Tb("video",{className:"CallParticipants-module__video___HSfYq",ref:n,autoPlay:!0,playsInline:!0,muted:c}),r?null:Tb("div",{className:"CallParticipants-module__videoOverlay___fhTe0",children:[Tb("span",{className:"cbio-sr-only",children:LV.tr("CALLING_CAMERA_OFF")}),Tb(VV,{name:"VideoOff",className:"CallParticipants-module__videoOverlayIcon___foQCB"})]})]}),Tb("div",{className:"CallParticipants-module__statusContainer___bcsse",children:[Tb(VV,{className:"CallParticipants-module__statusIcon___dNlQZ",name:o?"Microphone":"MicrophoneOff"}),Tb("span",{className:"CallParticipants-module__statusTitle___6iPYt",children:c?LV.tr("CALLING_LOCAL_PARTICIPANT_DESCRIPTION"):LV.tr("CALLING_REMOTE_PARTICIPANT_DESCRIPTION")})]})]})};var uF=new WeakMap,dF=new WeakMap,hF=new WeakMap,fF=new WeakMap,pF=new WeakMap,gF=new WeakMap,mF=new WeakMap;class _F{constructor({call:e,mediaSettings:t,showSettingsDialog:n}){Bo(this,uF,void 0),Bo(this,dF,void 0),Bo(this,hF,void 0),Bo(this,fF,null),Bo(this,pF,({state:e,hasJoined:t})=>{e===CW&&t&&jo(gF,this).call(this),e===yW&&jo(mF,this).call(this)}),Bo(this,gF,()=>{if(jo(fF,this))return;const e={call:jo(uF,this),mediaSettings:jo(dF,this),showSettingsDialog:jo(hF,this)};zo(fF,this,Sb(cF,e,{hideFromAgent:!0}))}),Bo(this,mF,()=>{var e;null===(e=jo(fF,this))||void 0===e||e.unmount(),zo(fF,this,null)}),Qo(this,"destroy",()=>{jo(mF,this).call(this)}),zo(uF,this,e),zo(dF,this,t),zo(hF,this,n),jo(uF,this).on("updated",jo(pF,this)),jo(pF,this).call(this,jo(uF,this))}}const vF="Mouse",EF="Touch",wF="Pointer",yF="Focus",IF="KeyPress",LF="Scroll",CF="Change",AF="Input",SF="Laser",bF="Highlight",NF="Drawing",TF="Select";var kF=new WeakMap,OF=new WeakMap,RF=new WeakMap,PF=new WeakMap,DF=new WeakMap,MF=new WeakMap;class xF extends yv{constructor(e,t,{interval:n}={interval:3e3}){super(),Bo(this,kF,void 0),Bo(this,OF,void 0),Bo(this,RF,void 0),Bo(this,PF,void 0),Bo(this,DF,new Map),Qo(this,"ping",()=>{this.emit("ping",{id:jo(kF,this),instanceId:jo(OF,this),timeout:2*jo(RF,this)})}),Qo(this,"track",({id:e,instanceId:t,timeout:n,agent:r})=>{if(this.id===e)return;const i=jo(DF,this).has(e);i||jo(DF,this).set(e,{instances:new Map,agent:r});const o=jo(DF,this).get(e),s=o.instances.get(t),a=setTimeout(()=>jo(MF,this).call(this,e,t),n||2*jo(RF,this));s&&clearTimeout(s.timeout),o.instances.set(t,{timestamp:new Date,timeout:a}),i||this.emit("join",{id:e,agent:r}),s||this.ping()}),Bo(this,MF,(e,t)=>{const n=jo(DF,this).get(e);n.instances.delete(t),0===n.instances.size&&(jo(DF,this).delete(e),this.emit("leave",e))}),Qo(this,"all",()=>Array.from(jo(DF,this)).map(([e,{agent:t}])=>({id:e,agent:t}))),Qo(this,"destroy",()=>{for(const e of jo(DF,this).values()){for(const t of e.instances.values())clearTimeout(t.timeout);e.instances.clear()}jo(DF,this).clear(),clearInterval(jo(PF,this)),this.removeAllListeners()}),zo(kF,this,e),zo(OF,this,t),zo(RF,this,n),zo(PF,this,setInterval(this.ping,n))}get id(){return jo(kF,this)}}var GF=new WeakMap,UF=new WeakMap,VF=new WeakMap,WF=new WeakMap,FF=new WeakMap,jF=new WeakMap,BF=new WeakMap,zF=new WeakMap,HF=new WeakMap,qF=new WeakMap,QF=new WeakMap,$F=new WeakMap,YF=new WeakMap,JF=new WeakMap;class KF{constructor(e){Bo(this,GF,void 0),Bo(this,UF,void 0),Bo(this,VF,void 0),Bo(this,WF,void 0),Bo(this,FF,void 0),Bo(this,jF,void 0),Bo(this,BF,async()=>{zo(UF,this,new lW(EE()));const e={call:jo(GF,this),mediaSettings:jo(UF,this),showSettingsDialog:jo(qF,this)};zo(VF,this,new QW(e)),!jo(zF,this).call(this)||await jo(HF,this).call(this)?(zo(WF,this,new _F(e)),jo(UF,this).on("updated",jo(QF,this)),NE.on("activate",jo(YF,this)),jo(GF,this).on("updated",jo($F,this)),jo($F,this).call(this,jo(GF,this))):jo(GF,this).end()}),Bo(this,zF,()=>{const{state:e,hasJoined:t}=jo(GF,this);if(e===CW&&t&&NE.isActive()){const{audioEnabled:e,videoEnabled:t}=jo(UF,this).settings;return!e&&!t&&!navigator.userActivation.hasBeenActive}return!1}),Bo(this,HF,async()=>{const{action:e,settings:t}=await jo(VF,this).show({title:LV.tr("CALLING_JOIN"),description:LV.tr("CALLING_REJOIN_PROMPT"),primaryTitle:LV.tr("CALLING_JOIN"),secondaryTitle:LV.tr("CALLING_END")}),n="primary"===e;return n&&jo(UF,this).update(t),jo(VF,this).hide(),n}),Bo(this,qF,async()=>{const{action:e,settings:t}=await jo(VF,this).show({title:null,description:null,primaryTitle:LV.tr("CALLING_SAVE"),secondaryTitle:LV.tr("CALLING_CANCEL")});"primary"===e&&jo(UF,this).update(t),jo(VF,this).hide()}),Bo(this,QF,()=>{jo(JF,this).call(this,jo(UF,this).settings)}),Bo(this,$F,({state:e,hasJoined:t})=>{e===CW&&t&&NE.isActive()&&jo(JF,this).call(this,jo(UF,this).settings)}),Bo(this,YF,()=>{const{state:e,hasJoined:t}=jo(GF,this);e===CW&&t&&(jo(UF,this).reloadFromStorage(),jo(JF,this).call(this,jo(UF,this).settings))}),Bo(this,JF,async e=>{const{audioEnabled:t,videoEnabled:n}=e;if(t||zo(FF,this,null),n||zo(jF,this,null),jo(GF,this).getTracks().forEach(e=>{t||"audio"!==e.kind||jo(GF,this).removeTrack(e),n||"video"!==e.kind||jo(GF,this).removeTrack(e)}),!t&&!n)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start, mediaDevices is not available"),void jo(UF,this).update({audioEnabled:!1,videoEnabled:!1});const r=iW(e),i=oW(e),o=t&&!zP(jo(FF,this),r),s=n&&!zP(jo(jF,this),i);if(!o&&!s)return;const a=Yo(Yo({},o?r:{}),s?i:{});try{(await navigator.mediaDevices.getUserMedia(a)).getTracks().forEach(e=>{const t="audio"===e.kind&&jo(UF,this).settings.audioEnabled,n="video"===e.kind&&jo(UF,this).settings.videoEnabled;t||n?(jo(GF,this).addTrack(e),t&&zo(FF,this,r),n&&zo(jF,this,i)):e.stop()})}catch(e){console.warn("CobrowseIO: Failed to get media",e),jo(UF,this).update({videoEnabled:!1,audioEnabled:!1})}}),Qo(this,"destroy",()=>{var e,t,n;null===(e=jo(UF,this))||void 0===e||e.off("updated",jo(QF,this)),zo(UF,this,null),null===(t=jo(VF,this))||void 0===t||t.destroy(),zo(VF,this,null),null===(n=jo(WF,this))||void 0===n||n.destroy(),zo(WF,this,null),NE.off("activate",jo(YF,this)),jo(GF,this).off("updated",jo($F,this))}),zo(GF,this,e),jo(BF,this).call(this)}}var XF=new WeakMap;class ZF extends ZP{constructor(e){super(),Bo(this,XF,void 0),zo(XF,this,e.id()),this.setHeader("X-CobrowseDeviceToken",e.getHeader("X-CobrowseDeviceToken"))}url(){return new URL(`api/1/sessions/${jo(XF,this)}/ice`,ZF.api).toString()}}const ej=jl("cbio.Calling.Peer");var tj=new WeakMap,nj=new WeakMap,rj=new WeakMap,ij=new WeakMap,oj=new WeakMap,sj=new WeakMap,aj=new WeakMap,cj=new WeakMap,lj=new WeakMap,uj=new WeakMap,dj=new WeakMap,hj=new WeakMap,fj=new WeakMap,pj=new WeakMap,gj=new WeakMap,mj=new WeakMap,_j=new WeakMap,vj=new WeakMap,Ej=new WeakMap,wj=new WeakMap,yj=new WeakMap;class Ij extends yv{constructor(e){super(),Bo(this,tj,void 0),Bo(this,nj,void 0),Bo(this,rj,void 0),Bo(this,ij,void 0),Bo(this,oj,void 0),Bo(this,sj,void 0),Bo(this,aj,!1),Bo(this,cj,!1),Bo(this,lj,!1),Bo(this,uj,[]),Bo(this,dj,void 0),Bo(this,hj,void 0),Bo(this,fj,void 0),Bo(this,pj,!1),Bo(this,gj,void 0),Qo(this,"createConnection",e=>{ej("creating RTCPeerConnection for peer",this.id,"with connection id",e),jo(fj,this).connectionId=null!=e?e:null,zo(dj,this,new RTCPeerConnection({iceServers:jo(rj,this)})),zo(gj,this,jo(dj,this).createDataChannel("priming")),jo(dj,this).addEventListener("negotiationneeded",jo(mj,this)),jo(dj,this).addEventListener("icecandidate",jo(_j,this)),jo(dj,this).addEventListener("iceconnectionstatechange",jo(vj,this)),jo(dj,this).addEventListener("connectionstatechange",jo(Ej,this)),jo(dj,this).addEventListener("track",jo(wj,this)),this.emit("connection.created",this)}),Qo(this,"closeConnection",()=>{var e;ej("closing RTCPeerConnection for peer",this.id),null===(e=jo(gj,this))||void 0===e||e.close(),zo(gj,this,null),jo(dj,this).getSenders().forEach(e=>jo(dj,this).removeTrack(e)),jo(dj,this).removeEventListener("negotiationneeded",jo(mj,this)),jo(dj,this).removeEventListener("icecandidate",jo(_j,this)),jo(dj,this).removeEventListener("iceconnectionstatechange",jo(vj,this)),jo(dj,this).removeEventListener("connectionstatechange",jo(Ej,this)),jo(dj,this).removeEventListener("track",jo(wj,this)),jo(dj,this).close(),zo(dj,this,null)}),Bo(this,mj,async()=>{try{zo(aj,this,!0),await jo(dj,this).setLocalDescription(),jo(ij,this).call(this,jo(hj,this),jo(fj,this),jo(dj,this).localDescription)}finally{zo(aj,this,!1)}}),Bo(this,_j,e=>{e.candidate&&jo(oj,this).call(this,jo(hj,this),jo(fj,this),e.candidate)}),Bo(this,vj,()=>{"failed"===jo(dj,this).iceConnectionState&&(ej("ice connection failed for peer",this.id,"restarting ice"),jo(dj,this).restartIce())}),Bo(this,Ej,()=>{var e;"connected"===jo(dj,this).connectionState&&(ej("connected to peer",this.id),zo(pj,this,!0),null===(e=jo(gj,this))||void 0===e||e.close(),zo(gj,this,null),this.emit("connection.updated",this)),"disconnected"===jo(dj,this).connectionState&&(ej("disconnected from peer",this.id),zo(pj,this,!1),this.emit("connection.updated",this))}),Bo(this,wj,e=>{const t=e.streams[0];t?(t.removeEventListener("removetrack",jo(yj,this)),t.addEventListener("removetrack",jo(yj,this)),this.emit("track.added",e.track)):console.warn("CobrowseIO: Failed to add track, expected stream")}),Bo(this,yj,e=>{this.emit("track.removed",e.track)}),Qo(this,"handleOffer",async(e,t,n)=>{if(jo(hj,this).connectionId!==t.connectionId&&t.connectionId)return ej("offer intended for different connection");if(jo(fj,this).connectionId||(jo(fj,this).connectionId=e.connectionId),jo(fj,this).connectionId!==e.connectionId)return ej("offer from",e,"has a different connection id"),this.closeConnection(),this.createConnection(e.connectionId),this.handleOffer(e,t,n);const r=!jo(aj,this)&&("stable"===jo(dj,this).signalingState||jo(lj,this));if(zo(cj,this,!r&&!jo(sj,this)),jo(cj,this))return ej("offer collision, ignoring as the impolite peer");await jo(dj,this).setRemoteDescription(n);const i=jo(uj,this).length;i>0&&(ej("adding ice candidates from queue",i),await Promise.allSettled(jo(uj,this).map(e=>jo(dj,this).addIceCandidate(e))),jo(uj,this).length=0),await jo(dj,this).setLocalDescription(),jo(ij,this).call(this,jo(hj,this),jo(fj,this),jo(dj,this).localDescription)}),Qo(this,"handleAnswer",async(e,t,n)=>{if(jo(hj,this).connectionId!==t.connectionId)return ej("answer intended for different connection");if(jo(fj,this).connectionId||(jo(fj,this).connectionId=e.connectionId),jo(fj,this).connectionId!==e.connectionId)return ej("answer from different connection ignored");try{zo(lj,this,!0),await jo(dj,this).setRemoteDescription(n)}finally{zo(lj,this,!1)}const r=jo(uj,this).length;r>0&&(ej("adding ice candidates from queue",r),await Promise.allSettled(jo(uj,this).map(e=>jo(dj,this).addIceCandidate(e))),jo(uj,this).length=0)}),Qo(this,"handleIceCandidate",async(e,t,n)=>{if(jo(hj,this).connectionId!==t.connectionId)return ej("ice candidate intended for different connection");if(jo(fj,this).connectionId!==e.connectionId)return ej("ice candidate from different connection ignored");if(jo(dj,this).remoteDescription)try{await jo(dj,this).addIceCandidate(n)}catch(e){if(!jo(cj,this))throw e}else jo(uj,this).push(n)});const t=e.localClientId;zo(tj,this,e.remoteClientId),zo(nj,this,e.agentId),zo(rj,this,e.iceServers),zo(ij,this,e.sendSDP),zo(oj,this,e.sendCandidate),zo(sj,this,[t,jo(tj,this)].sort()[0]===t),zo(uj,this,[]),zo(hj,this,{clientId:t,connectionId:lE()}),zo(fj,this,{clientId:jo(tj,this),connectionId:null})}get id(){return jo(tj,this)}get agentId(){return jo(nj,this)}get isConnected(){return jo(pj,this)}get connection(){return jo(dj,this)}}const Lj=jl("cbio.Calling.Signalling"),Cj="sdp",Aj="icecandidate";var Sj=new WeakMap,bj=new WeakMap,Nj=new WeakMap,Tj=new WeakMap,kj=new WeakMap,Oj=new WeakMap;class Rj extends wv.EventEmitter{constructor(e,t){super(),Bo(this,Sj,void 0),Bo(this,bj,void 0),Bo(this,Nj,new Map),Qo(this,"sendSDP",(e,t,n)=>{Lj("sending sdp with type",n.type,"to",t),jo(Sj,this).send(Cj,{from:e,to:t,sdp:JSON.stringify(n)})}),Qo(this,"sendCandidate",(e,t,n)=>{Lj("sending ice candidate","to",t),jo(Sj,this).send(Aj,{from:e,to:t,candidate:JSON.stringify(n)})}),Qo(this,"takeLastOffer",e=>{const t=jo(Nj,this).get(e);return jo(Nj,this).delete(e),t}),Qo(this,"flushLastOfferCache",()=>{jo(Nj,this).clear()}),Bo(this,Tj,(e,t)=>{e===Cj&&jo(kj,this).call(this,t),e===Aj&&jo(Oj,this).call(this,t)}),Bo(this,kj,({from:e,to:t,sdp:n})=>{if(!jo(bj,this).call(this,t))return;const r=JSON.parse(n);Lj("receiving sdp with type",r.type,"from",e),"offer"===r.type&&jo(Nj,this).set(e.clientId,{from:e,to:t,sdp:r}),this.emit(Cj,e,t,r)}),Bo(this,Oj,({from:e,to:t,candidate:n})=>{jo(bj,this).call(this,t)&&(Lj("receiving ice candidate","from",e),this.emit(Aj,e,t,JSON.parse(n)))}),Qo(this,"destroy",()=>{jo(Sj,this).off("event",jo(Tj,this)),this.flushLastOfferCache()}),zo(Sj,this,e),zo(bj,this,t),jo(Sj,this).on("event",jo(Tj,this))}}const Pj=jl("cbio.Calling.PeerManager");var Dj=new WeakMap,Mj=new WeakMap,xj=new WeakMap,Gj=new WeakMap,Uj=new WeakMap,Vj=new WeakMap,Wj=new WeakMap;class Fj extends wv.EventEmitter{constructor(e,t){super(),Bo(this,Dj,void 0),Bo(this,Mj,void 0),Bo(this,xj,new Map),Qo(this,"createPeer",async(e,t,n)=>{if(jo(xj,this).has(t))return;Pj("creating peer",t);const r=new Ij({localClientId:e,remoteClientId:t,agentId:n,iceServers:jo(Mj,this),sendSDP:(e,t,n)=>jo(Dj,this).sendSDP(e,t,n),sendCandidate:(e,t,n)=>jo(Dj,this).sendCandidate(e,t,n)});r.on("connection.updated",jo(Gj,this)),jo(xj,this).set(t,r);const i=jo(Dj,this).takeLastOffer(t);if(i){const e=i.from.connectionId;Pj("using last offer with connection id",e),r.createConnection(e),await r.handleOffer(i.from,i.to,i.sdp)}else r.createConnection(null);Pj("peer created"),this.emit("peer.created",r)}),Bo(this,Gj,e=>{this.emit("peer.connection.updated",e)}),Qo(this,"removePeer",e=>{Pj("removing peer",e);const t=jo(xj,this).get(e);if(!t)return Pj("unknown peer",e);jo(Uj,this).call(this,t),this.emit("peer.removed",e)}),Qo(this,"reconnectPeers",()=>{this.peers.forEach(e=>{e.closeConnection(),e.createConnection(null)})}),Bo(this,Uj,e=>{e.off("connection.updated",jo(Gj,this)),e.closeConnection(),jo(xj,this).delete(e.id)}),Bo(this,Vj,(e,t,n)=>{Pj("receiving sdp",n.type,"from",e);const r=jo(xj,this).get(e.clientId);if(!r)return Pj("unknown peer",e.clientId);"offer"===n.type&&(jo(Dj,this).takeLastOffer(e.clientId),r.handleOffer(e,t,n)),"answer"===n.type&&r.handleAnswer(e,t,n)}),Bo(this,Wj,async(e,t,n)=>{Pj("receiving ice candidate from",e);const r=jo(xj,this).get(e.clientId);if(!r)return Pj("unknown peer",e.clientId);r.handleIceCandidate(e,t,n)}),Qo(this,"destroy",()=>{jo(Dj,this).flushLastOfferCache(),jo(Dj,this).off(Aj,jo(Wj,this)),jo(Dj,this).off(Cj,jo(Vj,this)),jo(xj,this).forEach(jo(Uj,this)),jo(xj,this).clear()}),zo(Dj,this,e),zo(Mj,this,t),jo(Dj,this).on(Cj,jo(Vj,this)),jo(Dj,this).on(Aj,jo(Wj,this))}get peers(){return[...jo(xj,this).values()]}}var jj=new WeakMap,Bj=new WeakMap,zj=new WeakMap,Hj=new WeakMap,qj=new WeakMap,Qj=new WeakMap;class $j extends wv.EventEmitter{constructor({id:e,agentId:t}){super(),Bo(this,jj,void 0),Bo(this,Bj,void 0),Bo(this,zj,void 0),Bo(this,Hj,OT(this,"_addTrack",e=>{jo(zj,this).getTrackById(e.id)||(jo(zj,this).getTracks().forEach(t=>{t.kind===e.kind&&jo(zj,this).removeTrack(t)}),jo(zj,this).addTrack(e),this.emit("track.added",e))})),Bo(this,qj,OT(this,"_removeTrack",e=>{const t=jo(zj,this).getTracks().some(t=>t.id===e.id);t&&(e.stop(),jo(zj,this).removeTrack(e),this.emit("track.removed",e))})),Bo(this,Qj,OT(this,"_destroy",()=>{jo(zj,this).getTracks().forEach(e=>{e.stop(),jo(zj,this).removeTrack(e)})})),zo(jj,this,e),zo(Bj,this,t),zo(zj,this,new MediaStream)}get id(){return jo(jj,this)}get agentId(){return jo(Bj,this)}get stream(){return jo(zj,this)}get hasAudio(){return jo(zj,this).getAudioTracks().some(e=>"live"===e.readyState)}get hasVideo(){return jo(zj,this).getVideoTracks().some(e=>"live"===e.readyState)}}const Yj=jl("cbio.Calling.LocalCallParticipant");var Jj=new WeakMap,Kj=new WeakMap,Xj=new WeakMap;class Zj extends $j{constructor({id:e,agentId:t}){super({id:e,agentId:t}),Bo(this,Jj,OT(this,"addTrack",e=>{Yj("adding track with kind",e.kind,"to local participant",this.id),this[kT]._addTrack(e)})),Bo(this,Kj,OT(this,"removeTrack",e=>{Yj("removing track with kind",e.kind,"from local participant",this.id),this[kT]._removeTrack(e)})),Bo(this,Xj,OT(this,"destroy",()=>{this[kT]._destroy()}))}}const eB=jl("cbio.Calling.RemoteCallParticipant");var tB=new WeakMap,nB=new WeakMap,rB=new WeakMap,iB=new WeakMap,oB=new WeakMap,sB=new WeakMap,aB=new WeakMap,cB=new WeakMap,lB=new WeakMap,uB=new WeakMap,dB=new WeakMap;class hB extends $j{constructor({id:e,agentId:t,peer:n,localParticipant:r}){super({id:e,agentId:t}),Bo(this,tB,void 0),Bo(this,nB,void 0),Bo(this,rB,()=>{const{stream:e,hasAudio:t,hasVideo:n}=jo(nB,this);(t||n)&&e.getTracks().forEach(t=>{jo(lB,this).call(this,t,e)})}),Bo(this,iB,()=>{jo(rB,this).call(this)}),Bo(this,oB,e=>{jo(lB,this).call(this,e,jo(nB,this).stream)}),Bo(this,sB,e=>{jo(uB,this).call(this,e)}),Bo(this,aB,e=>{this[kT]._addTrack(e)}),Bo(this,cB,e=>{this[kT]._removeTrack(e)}),Bo(this,lB,(e,...t)=>{eB("adding track with kind",e.kind,"to remote participant",this.id);const{connection:n}=jo(tB,this);if(n.getSenders().some(t=>{var n;return(null===(n=t.track)||void 0===n?void 0:n.id)===e.id}))return eB("track already exists");n.addTrack(e,...t)}),Bo(this,uB,e=>{eB("removing track with kind",e.kind,"from remote participant",this.id);const{connection:t}=jo(tB,this);t.getSenders().forEach(n=>{var r;(null===(r=n.track)||void 0===r?void 0:r.id)===e.id&&t.removeTrack(n)})}),Bo(this,dB,OT(this,"destroy",()=>{this[kT]._destroy(),jo(tB,this).off("connection.created",jo(iB,this)),jo(tB,this).off("track.added",jo(aB,this)),jo(tB,this).off("track.removed",jo(cB,this)),jo(nB,this).off("track.added",jo(oB,this)),jo(nB,this).off("track.removed",jo(sB,this))})),zo(tB,this,n),zo(nB,this,r),jo(tB,this).on("connection.created",jo(iB,this)),jo(tB,this).on("track.added",jo(aB,this)),jo(tB,this).on("track.removed",jo(cB,this));const{connection:i}=jo(tB,this);i.getReceivers().forEach(e=>{e.track&&jo(aB,this).call(this,e.track)}),jo(nB,this).on("track.added",jo(oB,this)),jo(nB,this).on("track.removed",jo(sB,this)),jo(rB,this).call(this)}}const fB=jl("cbio.Calling.Calling");var pB=new WeakMap,gB=new WeakMap,mB=new WeakMap,_B=new WeakMap,vB=new WeakMap,EB=new WeakMap,wB=new WeakMap,yB=new WeakMap,IB=new WeakMap,LB=new WeakMap,CB=new WeakMap,AB=new WeakMap,SB=new WeakMap,bB=new WeakMap,NB=new WeakMap,TB=new WeakMap,kB=new WeakSet,OB=new WeakMap,RB=new WeakMap,PB=new WeakMap,DB=new WeakMap,MB=new WeakMap,xB=new WeakMap,GB=new WeakMap,UB=new WeakMap,VB=new WeakMap;class WB{constructor(e){qo(this,kB),Bo(this,pB,void 0),Bo(this,gB,void 0),Bo(this,mB,void 0),Bo(this,_B,void 0),Bo(this,vB,void 0),Bo(this,EB,void 0),Bo(this,wB,void 0),Bo(this,yB,void 0),Bo(this,IB,void 0),Bo(this,LB,void 0),Bo(this,CB,void 0),Bo(this,AB,void 0),Bo(this,SB,void 0),Bo(this,bB,new Map),Bo(this,NB,new Set),Bo(this,TB,void 0),Qo(this,"handleSessionUpdate",(e,t)=>{e!==yW?(jo(CB,this)||(zo(SB,this,new Zj({id:jo(yB,this),agentId:jo(wB,this)})),zo(CB,this,new xW({getParticipants:()=>Ho(kB,this,FB),localParticipant:jo(SB,this),sessionId:jo(pB,this),storage:EE(),updateCalling:jo(gB,this)})),jo(CB,this).on("updated",jo(OB,this)),jo(OB,this).call(this,jo(CB,this))),jo(CB,this)[kT].receiveSessionUpdate(e,t),jo(AB,this)||zo(AB,this,new KF(jo(CB,this)))):jo(PB,this).call(this)}),Bo(this,OB,({state:e,hasJoined:t})=>{e===CW&&t&&jo(RB,this).call(this)}),Bo(this,RB,async()=>{if(!jo(TB,this)&&!jo(LB,this))try{zo(TB,this,!0);const e=await jo(mB,this).call(this);zo(LB,this,new Fj(jo(IB,this),e)),jo(_B,this).on("join",jo(DB,this)),jo(_B,this).on("leave",jo(MB,this)),await Promise.all(jo(_B,this).all().map(({id:e,agent:t})=>jo(LB,this).createPeer(jo(yB,this),e,t))),jo(LB,this).on("peer.created",jo(xB,this)),jo(LB,this).on("peer.removed",jo(GB,this)),jo(LB,this).on("peer.connection.updated",jo(UB,this)),await Promise.all(jo(LB,this).peers.map(jo(xB,this)))}finally{zo(TB,this,!1)}}),Bo(this,PB,()=>{var e,t,n,r,i,o,s,a;jo(_B,this).off("join",jo(DB,this)),jo(_B,this).off("leave",jo(MB,this)),jo(bB,this).forEach((e,t)=>{e[kT].destroy(),jo(bB,this).delete(t)}),null===(e=jo(SB,this))||void 0===e||e[kT].destroy(),zo(SB,this,null),null===(t=jo(LB,this))||void 0===t||t.off("peer.created",jo(xB,this)),null===(n=jo(LB,this))||void 0===n||n.off("peer.removed",jo(GB,this)),null===(r=jo(LB,this))||void 0===r||r.off("peer.connection.updated",jo(UB,this)),null===(i=jo(LB,this))||void 0===i||i.destroy(),zo(LB,this,null),null===(o=jo(AB,this))||void 0===o||o.destroy(),zo(AB,this,null),null===(s=jo(CB,this))||void 0===s||s.off("updated",jo(OB,this)),null===(a=jo(CB,this))||void 0===a||a[kT].destroy(),zo(CB,this,null)}),Bo(this,DB,({id:e,agent:t})=>{var n;const r=null!=t?t:null;null===(n=jo(LB,this))||void 0===n||n.createPeer(jo(_B,this).id,e,r)}),Bo(this,MB,e=>{var t;null===(t=jo(LB,this))||void 0===t||t.removePeer(e)}),Bo(this,xB,e=>{if(jo(bB,this).has(e.id))return;const t=new hB({id:e.id,agentId:e.agentId,peer:e,localParticipant:jo(SB,this)});var n;jo(bB,this).set(e.id,t),e.isConnected&&(jo(NB,this).add(e.id),null===(n=jo(CB,this))||void 0===n||n.emit("participants.updated",Ho(kB,this,FB)))}),Bo(this,GB,e=>{const t=jo(bB,this).get(e);if(!t)return fB("unknown participant",e);var n;t[kT].destroy(),jo(bB,this).delete(e),jo(NB,this).has(e)&&(jo(NB,this).delete(e),null===(n=jo(CB,this))||void 0===n||n.emit("participants.updated",Ho(kB,this,FB)))}),Bo(this,UB,e=>{var t;e.isConnected?jo(NB,this).add(e.id):jo(NB,this).delete(e.id),null===(t=jo(CB,this))||void 0===t||t.emit("participants.updated",Ho(kB,this,FB))}),Bo(this,VB,()=>{const{state:e,hasJoined:t}=jo(CB,this)||{};var n;e===CW&&t&&(null===(n=jo(LB,this))||void 0===n||n.reconnectPeers())}),Qo(this,"destroy",()=>{var e;jo(PB,this).call(this),null===(e=jo(IB,this))||void 0===e||e.destroy(),zo(IB,this,null),NE.off("activate",jo(VB,this))}),zo(pB,this,e.sessionId),zo(gB,this,e.updateCalling),zo(mB,this,e.fetchIceServers),zo(_B,this,e.clientTracker),zo(vB,this,e.socket),zo(wB,this,e.agentId),zo(yB,this,e.clientTracker.id),zo(IB,this,new Rj(jo(vB,this),({clientId:e})=>jo(yB,this)===e&&NE.isActive())),NE.on("activate",jo(VB,this))}get call(){return jo(CB,this)}}function FB(e){const t=jo(bB,e).values().filter(t=>jo(NB,e).has(t.id));return[jo(SB,e),...t]}const jB=jl("cbio.SessionContext"),BB=jl("cbio.SessionContext.events");var zB=new WeakMap,HB=new WeakMap,qB=new WeakMap,QB=new WeakMap,$B=new WeakMap,YB=new WeakMap,JB=new WeakMap,KB=new WeakMap,XB=new WeakMap,ZB=new WeakMap,ez=new WeakMap,tz=new WeakMap,nz=new WeakMap,rz=new WeakSet,iz=new WeakMap,oz=new WeakMap,sz=new WeakMap,az=new WeakMap,cz=new WeakMap,lz=new WeakMap,uz=new WeakMap,dz=new WeakMap,hz=new WeakMap,fz=new WeakMap,pz=new WeakMap,gz=new WeakMap,mz=new WeakMap,_z=new WeakMap,vz=new WeakMap,Ez=new WeakMap,wz=new WeakMap,yz=new WeakMap,Iz=new WeakMap,Lz=new WeakMap,Cz=new WeakMap,Az=new WeakMap,Sz=new WeakMap,bz=new WeakMap,Nz=new WeakMap,Tz=new WeakMap,kz=new WeakMap,Oz=new WeakMap,Rz=new WeakMap,Pz=new WeakMap;class Dz{constructor(e,t){qo(this,rz),Bo(this,zB,void 0),Bo(this,HB,void 0),Bo(this,qB,new gM),Bo(this,QB,void 0),Bo(this,$B,void 0),Bo(this,YB,void 0),Bo(this,JB,void 0),Bo(this,KB,void 0),Bo(this,XB,void 0),Bo(this,ZB,void 0),Bo(this,ez,()=>{jo(Az,this).call(this),jo(KB,this)||(zo(KB,this,new xF(this.delegate.deviceId(),lE())),jo(KB,this).on("ping",e=>jo(zB,this).stream.send("client",e)),this.session.on("client",jo(hz,this))),jo(XB,this)||(zo(XB,this,new WB({sessionId:this.session.id(),updateCalling:e=>this.session.update({calling:e}),fetchIceServers:()=>(async e=>{try{const t=new ZF(e);return await t.create(),t.resource.iceServers}catch(e){return console.warn("failed to fetch ice servers",e),[]}})(this.session),clientTracker:jo(KB,this),socket:jo(zB,this).stream,agentId:null})),jo(XB,this).handleSessionUpdate(this.session.calling(),this.session.caller())),jo(KB,this).ping(),zo(ZB,this,()=>{zo(ZB,this,null),tV.resolvePendingHighlight()})}),Bo(this,tz,e=>{var t;"session-end"===e&&null!==(t=this.session)&&void 0!==t&&t.isActive()&&this.session.end()}),Bo(this,nz,e=>{var t;return!(null===(t=this.session)||void 0===t||!t.isActive()||e===IT&&!this.session.capabilities.includes(bD))}),Qo(this,"handleNavigation",(e,t,n,r)=>{var i;const{name:o,go:s,type:a}=r,{handle:c,document:l}=jo(YB,this).resolveDocument(r.handle,o),{windowProxy:u}=l,d=i=>{const s=jo(JB,this).runHandler(e,i||t,n,Yo(Yo({},r),{},{document:l}));return s.rewrittenUrl?{rewrittenUrl:s.rewrittenUrl}:(s.document&&jo(YB,this).addDocument(c,o,s.document),{windowProxy:u})};if(!a)return d();if(a===yT)return d();const h=this.delegate.confirmOpen(e,a);return h?!0===h?d("_blank"):(null===(i=h.then)||void 0===i||i.call(h,e=>{if(!e)return s(),{windowProxy:u};d("_blank")}),{windowProxy:u}):{rewrittenUrl:e}}),Qo(this,"invalidateFrames",()=>{jo(qB,this).isRunning()&&jo(qB,this).invalidateFrame()}),Qo(this,"destroy",()=>{jB("destroy session context"),jo(Lz,this).call(this),KV.off("click",jo(tz,this)),jo(JB,this)&&jo(JB,this).destroy(),zo(JB,this,null),vM.off("navigate",jo(iz,this)),jo(zB,this)&&jo(zB,this).close(),zo(zB,this,null),jo(qB,this)&&jo(qB,this).destroy(),zo(qB,this,null),jo(XB,this)&&jo(XB,this).destroy(),zo(XB,this,null),jo(YB,this)&&jo(YB,this).destroy(),zo(YB,this,null),jo(KB,this)&&jo(KB,this).destroy(),zo(KB,this,null),NE.off("activate",jo(Az,this)),window.removeEventListener("focus",jo(Az,this),{capture:!0,passive:!0}),window.removeEventListener("hashchange",jo(Sz,this),{capture:!0,passive:!0}),Iv.onChange===jo(Rz,this)&&(Iv.onChange=null),VL.off("click",jo(Tz,this)),VL.off("change",jo(kz,this)),VL.off("input",jo(Oz,this)),QU.off("click",jo(Tz,this)),QU.off("change",jo(kz,this)),QU.off("input",jo(Oz,this)),tV.off("end",jo(lz,this)),this.session&&(this.session.removeListener("update",jo(Iz,this)),this.session.removeListener("ended",jo(Lz,this)),this.session.removeListener("sync",jo(sz,this)),this.session.removeListener("drawing",jo(uz,this)),this.session.removeListener("laser",jo(az,this)),this.session.removeListener("control",jo(dz,this)),this.session.removeListener("remote-error",jo(oz,this)),this.session.removeListener("client",jo(hz,this))),document.removeEventListener("DOMContentLoaded",jo(fz,this),{once:!0}),this.session=null}),Bo(this,iz,(e,t)=>{jo(pz,this).call(this,this.session),jo(gz,this).call(this),jo(mz,this).call(this),ET.hide(),(pG(this.delegate.redactedViews,t)||pG(this.delegate.unredactedViews,t)||pG(this.session.redactionSelectors(),t)||pG(this.session.unredactionSelectors(),t))&&this.invalidateFrames()}),Bo(this,oz,async e=>{const t=jo(qB,this).getSource();if(!(t instanceof qM))return;const{target:n,error:{cause:r}}=e;if("load-error"!==r)return;const i="string"==typeof n?n:n.id;await oL(i),t.partialSync(i)}),Bo(this,sz,({id:e})=>{e&&jo(QB,this)===e||(zo(QB,this,e),jo(qB,this).invalidateFrame())}),Bo(this,az,e=>{xo(rz,this,Mz).call(this,e)&&NE.isActive()&&(this.session.fullDevice()||vV.update(e))}),Bo(this,cz,async e=>{BB("on(highlight)",e),xo(rz,this,Mz).call(this,e)&&NE.isActive()&&(this.session.fullDevice()||await tV.highlightAndWait(this.delegate,e))}),Bo(this,lz,({id:e,state:t})=>{jo(Cz,this).call(this,"highlight",{type:bF,id:e,state:t,timestamp:new Date})}),Bo(this,uz,e=>{xo(rz,this,Mz).call(this,e)&&(e.image||uV.hide(e.agent),NE.isActive()&&(this.session.fullDevice()||uV.update(e)))}),Bo(this,dz,(e,t)=>{"focus"!==e||t.agent||NE.resignActive(),t.agent&&NE.isActive()&&(this.session.fullDevice()||this.session.allowRemoteControl()&&(this.session.capabilities.includes(SD)&&wV.update(e,t),xo(rz,this,Mz).call(this,t)&&UU.applyEvent(e,t)))}),Bo(this,hz,e=>{jo(KB,this).track(e)}),Bo(this,fz,e=>{this.session&&(e.isActive()?document.body?this.delegate.showSessionControls(e):document.addEventListener("DOMContentLoaded",jo(fz,this),{once:!0}):this.delegate.hideSessionControls(e))}),Bo(this,pz,e=>{var t,n;const r=null!==(t=this.delegate.redactedViews)&&void 0!==t?t:[],i=null!==(n=this.delegate.unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];YI.init(new gL(fG(o),fG(s)))}),Bo(this,gz,()=>{qI.setIgnoredViews(fG(this.delegate.ignoredViews))}),Bo(this,mz,()=>{XI.init(new gL(fG(this.delegate.disabledViews),fG(this.delegate.enabledViews)))}),Bo(this,_z,(e,t)=>{const n=!zP(e.redactionSelectors(),(null==t?void 0:t.redactionSelectors())||[]),r=!zP(e.unredactionSelectors(),(null==t?void 0:t.unredactionSelectors())||[]);return n||r}),Bo(this,vz,async e=>{if(!e.agent()||e.isActive()||e.isEnded())return null;if(jo($B,this))return null;if(zo($B,this,!0),!e.requireConsent())return e.activate();try{if(jB("authorizing session"),await e.update({state:"authorizing"}),!this.session||!e.isAuthorizing())return null;const t=await this.delegate.confirmSession(e);return this.session?!1===t?(jB("user rejected session request"),e.end()):(jB("session accepted"),e.activate()):null}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),this.session?e.end():null}}),Bo(this,Ez,async e=>{if("requested"!==e.remoteControl())return null;try{return!1===await this.delegate.confirmRemoteControl()?(jB("user rejeted remote control"),e.update({remote_control:"rejected"})):(jB("user accepted remote control"),e.update({remote_control:"on"}))}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),e.update({remote_control:"rejected"})}}),Bo(this,wz,async()=>{const e=this.session.resource.full_device;if(!0!==e&&"requested"!==e)return!1;if(!NE.isActive())return!1;if(this.session.capabilities.includes(AD))try{const e=await this.delegate.confirmFullDevice();return jB("full device request",e),e||await this.session.setFullDevice("rejected"),e}catch(e){return await this.session.setFullDevice("off"),!1}}),Bo(this,yz,async e=>{if(e.isEnded()||!jo(qB,this))return null;const t=jo(qB,this).getSource();e.fullDevice()?t instanceof Ox||await jo(qB,this).setSource(new Ox({handleFrame:jo(Nz,this),scale:e.scale,captureStarted:t=>{e.setFullDevice("on"),e.emit("media",t)},captureEnded:t=>{t&&console.warn("Full device mode failed: ",t),e.setFullDevice(t?"rejected":"off")},requestPermission:jo(wz,this)})):t instanceof qM?e.isVirtual()&&jo(qB,this).getSource().setOptions({includeVisibility:e.isVirtual()}):jo(qB,this).setSource(new qM(jo(bz,this),{includeVisibility:e.isVirtual()})),jo(qB,this).getSource().setCodecs(e.resource.video_codecs)}),Bo(this,Iz,(e,t)=>{if(this.session){if(jo(vz,this).call(this,e),jo(fz,this).call(this,e),jo(pz,this).call(this,e),jo(_z,this).call(this,e,t)&&this.invalidateFrames(),jo(Ez,this).call(this,e),jo(yz,this).call(this,e),e.isActive()&&jo(Pz,this).call(this),jo(XB,this)){const e=this.session.calling();if(e!==(null==t?void 0:t.calling())){const t=this.session.caller();jo(XB,this).handleSessionUpdate(e,t)}}}else jB("onSessionUpdated called after destroy()")}),Bo(this,Lz,()=>{uV.hide(),wV.hide(),vV.hide(),ET.hide(),this.delegate.hideSessionControls(this.session),jo(YB,this)&&jo(YB,this).closeAllDocuments()}),Bo(this,Cz,(e,t)=>!(!this.session||!this.session.isActive()||!this.session.fullDevice()&&!NE.isActive()||!jo(zB,this)||!jo(zB,this).stream||!jo(zB,this).stream.connected||!jo(zB,this).stream.bufferedAmount>100||(jo(zB,this).stream.send(e,t),0))),Bo(this,Az,()=>jo(Cz,this).call(this,"focus",{type:"Focus",timestamp:new Date})),Bo(this,Sz,()=>jo(Cz,this).call(this,"screen",{type:"Screen",timestamp:new Date,url:window.location.href,title:document.title})),Bo(this,bz,e=>{zo(HB,this,(jo(HB,this)||0)+1);const t=jo(Cz,this).call(this,"frame",{type:"Frame",id:jo(HB,this),data:e,timestamp:new Date,mime_type:"application/x-cbio-vdom-patch"});return t&&jo(ZB,this)&&jo(ZB,this).call(this),t}),Bo(this,Nz,(e,t,n)=>{jo(zB,this).stream.messageLag()>=n?jB("dropped frame due to message lag",jo(zB,this).stream.messageLag()):(zo(HB,this,(jo(HB,this)||0)+1),jo(Cz,this).call(this,"frame",{type:"Frame",id:jo(HB,this),data:e,timestamp:new Date,mime_type:t}))}),Bo(this,Tz,e=>{const t=Iv.position();jo(Cz,this).call(this,"mouse",{type:vF,x:t.x/window.innerWidth,y:t.y/window.innerHeight,target:e,state:"click",timestamp:new Date})}),Bo(this,kz,e=>{jo(Cz,this).call(this,"change",{type:CF,target:e,state:"change",timestamp:new Date})}),Bo(this,Oz,e=>{jo(Cz,this).call(this,"input",{type:AF,target:e,state:"input",timestamp:new Date})}),Bo(this,Rz,e=>{let t="mouseout";return e.in&&(t=e.down?"mousedown":"mouseup"),jo(Cz,this).call(this,"mouse",{type:vF,x:e.x/window.innerWidth,y:e.y/window.innerHeight,state:t,timestamp:new Date})}),Bo(this,Pz,()=>(jo(qB,this).isRunning()||(jB("start frames"),jo(qB,this).start()),this)),jB("session context constructed"),this.session=e,this.delegate=t,zo(zB,this,new lV(e)),NE.on("activate",jo(Az,this)),window.addEventListener("focus",jo(Az,this),{capture:!0,passive:!0}),window.addEventListener("hashchange",jo(Sz,this),{capture:!0,passive:!0}),Iv.onChange=jo(Rz,this),VL.on("click",jo(Tz,this)),VL.on("change",jo(kz,this)),VL.on("input",jo(Oz,this)),QU.on("click",jo(Tz,this)),QU.on("change",jo(kz,this)),QU.on("input",jo(Oz,this)),tV.on("end",jo(lz,this)),jo(Iz,this).call(this,e),e.on("updated",jo(Iz,this)),e.on("ended",jo(Lz,this)),e.on("sync",jo(sz,this)),e.on("highlight",jo(cz,this)),e.on("drawing",jo(uz,this)),e.on("laser",jo(az,this)),e.on("control",jo(dz,this)),e.on("remote-error",jo(oz,this)),e.once("stream-open",jo(ez,this)),zo(YB,this,new iG({onDocumentAdded:e=>this.delegate.showDocument(e)}));const n=new WT(e,t),r=new YT(e,t),i=new fM(e,t);zo(JB,this,new NT({shouldNavigate:jo(nz,this),handlers:[n,r,i],handleNavigation:this.handleNavigation})),vM.on("navigate",jo(iz,this)),KV.on("click",jo(tz,this)),jo(gz,this).call(this),jo(mz,this).call(this)}}function Mz(e){return{[vF]:[mD],[EF]:[mD],[wF]:[mD],[yF]:[ED,mD],[IF]:[ED],[LF]:[_D],[CF]:UU.isTypingInput(e)?[ED]:[ED,mD],[AF]:UU.isTypingInput(e)?[ED]:[ED,mD],[SF]:[LD],[bF]:[ND],[NF]:null!=e.disappears_in?[CD]:[wD,ID,yD],[TF]:[vD]}[e.type].some(e=>this.session.capabilities.includes(e))}const xz=jl("cbio.Integrations.Intercom");function Gz(){xz("Updating intercom integration"),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.CobrowseID=Dq.deviceId(),window.Intercom("update",{CobrowseID:Dq.deviceId()}),Dq.on("session.loaded",function(e){window.Intercom("update",{CobrowseSessionID:e.id()})})}const Uz=jl("cbio.Integrations.Zendesk");function Vz(e,t){let n={};"identify"===e&&t?(t.name&&(n.user_name=t.name),t.email&&(n.user_email=t.email),t.organization&&(n.user_organization=t.organization)):"prefill"===e&&t?(t.name&&t.name.value&&(n.user_name=t.name.value),t.email&&t.email.value&&(n.user_email=t.email.value),t.phone&&t.phone.value&&(n.user_phone=t.phone.value)):"logout"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null}),Jz(n)}let Wz=window.localStorage;function Fz(e,t){let n={};"identify"===e&&t?n={zendesk_web_user_id:t.appUserId,cobrowseio_deviceid:t.deviceId}:"logoutUser"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null,zendesk_web_user_id:null,zendesk_user_id:null,zendesk_ticket_id:null}),Jz(n)}function jz(){const e=Bz();if(!e)throw new Error("Missing client ID (ZD-buid)");const t=zz(e);if(!t)throw new Error("Instance ID could not be found");const n=Hz(t);window.zE.__cobrowseio_zendesk_tags_set||window.zE("messenger:set","conversationTags",[`cobrowseio_deviceid_${Dq.deviceId()}`]),Fz("identify",{appUserId:n,deviceId:Dq.deviceId()})}function Bz(){return Wz.getItem("ZD-buid")}function zz(e){var t;return null===(t=Object.keys(Wz).find(t=>t.match(/\w+\.clientId/)&&Wz[t]===e))||void 0===t||null===(t=t.split("."))||void 0===t?void 0:t[0]}function Hz(e){return Wz.getItem(`${e}.appUserId`)}function qz(){const e=(t,n)=>{Wz=sessionStorage.getItem("ZD-buid")?window.sessionStorage:window.localStorage;const r=Hz(zz(Bz()));r?t(r):setTimeout(e,Yz,t,n)};return new Promise(e)}function Qz(){Jz({zendesk_web_user_id:$z()})}function $z(){var e;return null===(e=window.Smooch.getUser())||void 0===e?void 0:e.id}const Yz=2e3;function Jz(e){Object.keys(e).length&&(Dq.customData=e)}function Kz(){const e=window.zE;window.zE=function(...t){const[n,r,i]=t;if("webWidget"===n&&Vz(r,i),"messenger"===n&&Fz(r,i),"messenger:set"===n&&"conversationTags"===r){let e=i;if(e&&e.length){const n=Dq.deviceId();e=[...e,`cobrowseio_deviceid_${n}`],t[2]=e,window.zE.__cobrowseio_zendesk_tags_set=!0}}return e(...t)};for(const t in e)window.zE[t]=e[t]}const Xz=jl("cbio.Integrations.Salesforce");function Zz(e){console.error("Error syncing Cobrowse.io with Salesforce Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}function eH(){Dq.currentSession&&Dq.currentSession.end()}function tH(e){if(!e)throw new Error("No messaging Session Id found");Dq.customData={salesforce_MessagingSessionId:nH(e)}}function nH(e){if(18===e.length)return e;if(15!==e.length)throw Error(`Invalid salesforce id: ${e}`);let t="";for(let n=0;n<3;n++){let r=0;for(let t=0;t<5;t++){const i=e.charAt(5*n+t);i>="A"&&i<="Z"&&(r+=1<<t)}t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ012345".charAt(r)}return e+t}function rH(){Xz("Detected Salesforce Enhanced Chat v1"),window.addEventListener("onEmbeddedMessagingConversationRouted",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.entryPayload;if(!n)throw new Error("No entry payload found");const r=JSON.parse(n);tH(null==r?void 0:r.recordId)})}function iH(){Xz("Detected Salesforce Enhanced Chat v2"),window.addEventListener("onEmbeddedMessageSent",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.relatedRecords;if(!n)throw new Error("No related records found");tH(n[0])})}const oH=jl("cbio.Integrations.Genesys");let sH;function aH(){if(!sH)try{var e;const t=window.CXBus||(null===(e=window)||void 0===e||null===(e=e._genesys)||void 0===e||null===(e=e.widgets)||void 0===e?void 0:e.bus);if(!t)throw new Error("Genesys bus not found");sH=t.registerPlugin("CobrowseIOExtension"),window.oCobrowseIOExtension=sH,oH("CobrowseIOExtension",sH),sH.subscribe("WebChat.opened",function(e){oH("CobrowseIOExtension.WebChat.opened",e),function(e){document.querySelector(".cx-menu .cx-cobrowseio")||(document.getElementsByClassName("cx-menu")[0].insertAdjacentHTML("beforeend",'<li role="none"><div class="cx-menu-item cx-cobrowseio cx-icon" role="button" data-icon="cobrowseio" tabindex="0" aria-label="Start Co-browse Opens the Co-browse session" title="Start Co-browse" style="display: block/;"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100" focusable="false" role="img" aria-hidden="true" alt="" data-gcb-service-node="true"><g class="cx-svg-icon-tone1" data-gcb-service-node="true"><path d="M11.5000001,3 L85.4166665,3 L87.6666668,3 C90.2624998,3 97,3.75367965 97,8.36940835 L97,30.4776335 L4.16666671,30.4776335 L4.16666671,70.4963922 C4.16666671,78.8021647 9.0333332,80.6810966 11.3333336,80.6810966 L88.6666664,80.6810966 C90.9625002,80.6810966 92.8333333,78.8021647 92.8333333,76.4963922 L92.8333333,41.8470419 L97,41.8470419 L97,79.5093796 C97,84.1251081 93.2624998,84.8787879 91.6666668,84.8787879 L8.3333332,84.8787879 C3.73750015,84.8787879 1,81.1251081 0,75.5093796 L0,8.36940835 C3,3.75367965 2.73750015,3 8.3333332,3 L8.5000001,3 Z M18.0297398,7.03030303 L5.9962825,7.03030303 C5.79033476,7.03030303 3.99999999,8.59607987 3.99999999,10.5175565 L3.999999,26.1125541 L93,26.1125541 L93,10.5175565 C93,8.59607987 91.2056692,7.03030303 89.0037175,7.03030303 L81.9702602,7.03030303 L18.0297398,7.03030303 Z M42.3451929,54.7727663 L42.3451929,68.6904309 L35,68.6904309 L35,47.7138693 C35,44.657411 37.4676761,42.1818182 40.5082059,42.1818182 L61.3971055,42.1818182 L61.3971055,49.5560425 L47.5394308,49.5560425 L66.3971054,67.9373646 L61.202867,73.154089 L42.3451929,54.7727663 Z" id="Fill-1-Copy""></path></g></svg></div></li>'),document.getElementsByClassName("cx-cobrowseio")[0].onclick=()=>async function(e){oH("Requesting cobrowse");const t=await Dq.createSessionCode();oH(`Generated session code: ${t}`),e.command("WebChatService.sendFilteredMessage",{message:`Customer requests Cobrowse session with code: ${t.substr(0,3)} ${t.substr(3)}`,regex:/Customer requests Cobrowse session with code:.*/}).done(function(e){oH("CobrowseIOExtension.WebChatService sent filtered message successfully",e)}).fail(function(e){oH("CobrowseIOExtension.WebChatService failed to send filtered message",e)})}(e))}(sH),function(e){e.command("WebChatService.updateUserData",{cobrowse_device_id:Dq.deviceId()}).done(function(e){oH("CobrowseIOExtension.WebChatService.updateUserData succeeded",e)}).fail(function(e){oH("CobrowseIOExtension.WebChatService.updateUserData failed",e)})}(sH)}),sH.subscribe("WebChatService.started",function(e){try{oH("CobrowseIOExtension.WebChatService.started",e);const t={cobrowse_device_id:Dq.deviceId()};e&&e.data&&(e.data.data&&e.data.data.conversationId&&(t.genesys_conversation_id=e.data.data.conversationId),e.data.userId&&"deprecated"!==e.data.userId&&(t.genesys_user_id=e.data.userId),e.data.sessionID&&"deprecated"!==e.data.sessionID&&(t.genesys_session_id=e.data.sessionID)),Dq.customData=t}catch(e){oH("Error during CobrowseIOExtension.WebChatService.started",e)}}),sH.subscribe("WebChatService.agentConnected",function(e){oH("CobrowseIOExtension.WebChatService.agentConnected",e)}),sH.subscribe("WebChatService.clientConnected",function(e){oH("CobrowseIOExtension.WebChatService.clientConnected",e)}),sH.subscribe("WebChatService.restored",function(e){oH("CobrowseIOExtension.WebChatService.restored",e)}),sH.subscribe("WebChatService.ended",function(e){oH("CobrowseIOExtension.WebChatService.ended",e),Dq.currentSession&&!Dq.currentSession.isEnded()&&Dq.currentSession.end()}),sH.subscribe("WebChat.started",function(e){try{if(oH("CobrowseIOExtension.WebChat.started",e),e&&e.data&&e.data.form){oH("e.data.form",e.data.form);const t=e.data.form||{};t.device_name=e.data.form.firstname?`${e.data.form.firstname}'s device`:"WebChat User's Device",Dq.customData=t}}catch(e){oH("Error during CobrowseIOExtension.WebChat.started",e)}}),sH.republish("ready"),sH.ready()}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}const cH=jl("cbio.Integrations.Freshchat");async function lH(){const e=Dq.deviceId();window.fcWidget.user.setProperties({cobrowse_device_id:e});const t=await window.fcWidget.user.get();if(t.success){cH("Freshchat initialized");const n=t.data,r={freshchat_numeric_user_id:n.id+"",freshchat_user_id:n.alias,cobrowse_device_id:e};n.isNameGenerated||(r.freshchat_user_first_name=n.firstName,r.freshchat_user_last_name=n.lastName),n.email&&(r.freshchat_user_email=n.email),Dq.customData=r}}const uH=jl("cbio.Integrations.Nice"),dH=jl("cbio.Integrations.Dynamics"),hH=jl("cbio.Integrations.ServiceNow"),fH=jl("cbio.Integrations.Talkdesk");let pH=!1;const gH=jl("cbio.Integrations.AmazonConnect"),mH=jl("cbio.Integrations");class _H{static watchProperty(e,t,n){let r=e[t];const i=()=>{mH(`monitoring changes to ${t}`,e),Object.defineProperty(e,t,{configurable:!0,set:o=>{mH("CobrowseIO detected",t,"as",o),r=o,Object.defineProperty(e,t,{configurable:!0,writable:!0,value:o}),setTimeout(()=>n(i),0)},get:()=>r})};r?(mH(`${t} already exists as`,e[t]),n(i)):i()}static initialize(){mH("Initializing integrations"),this.watchProperty(window,"Intercom",()=>function(){try{if(!window.Intercom||"function"!=typeof window.Intercom)throw new Error("expected window.Intercom to be a function");xz("Initializing intercom integration"),Gz(),window.Intercom("onShow",dc(Gz,12e4,{trailing:!1}))}catch(e){console.error("Error syncing Cobrowse.io with Intercom, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.watchProperty(window,"$zopim",()=>function(){try{if("function"!=typeof window.$zopim)throw new Error("expected window.$zopim to a be a function");window.$zopim(function(){Uz("Initializing zendesk integration"),window.$zopim.livechat.addTags(`cobrowseio_deviceid_${Dq.deviceId()}`),Dq.customData={cobrowseio_deviceid:Dq.deviceId()}})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeSalesforce(()=>function(){try{if("object"!=typeof window.embedded_svc)throw new Error("expected window.embedded_svc to a be an object");if(window.embedded_svc&&!window.embedded_svc.liveAgentAPI)throw new Error("expected liveAgentAPI on embedded_svc");Xz("Initializing Salesforce legacy integration"),window.embedded_svc.addEventHandler("onChatRequestSuccess",function(e){e&&e.liveAgentSessionKey&&(Dq.customData={salesforce_liveAgentSessionKey:e.liveAgentSessionKey})}),window.embedded_svc.addEventHandler("onChatEndedByAgent",eH),window.embedded_svc.addEventHandler("onChatEndedByChasitor",eH)}catch(e){Zz(e)}}(),()=>function(){try{var e;if("object"!=typeof window.embeddedservice_bootstrap)throw new Error("expected window.embeddedservice_bootstrap to a be an object");Xz("Initializing Salesforce Enhanced Chat integration"),(null!==(e=window.embeddedservice_bootstrap)&&void 0!==e&&null!==(e=e.settings)&&void 0!==e&&e.orgId?rH:iH)(),window.addEventListener("onEmbeddedMessagingConversationClosed",eH),window.addEventListener("onEmbeddedMessagingWindowClosed",eH)}catch(e){Zz(e)}}()),this.initializeGenesys(()=>function(){try{window.Genesys("subscribe","Database.ready",()=>{const e=Dq.deviceId();Dq.customData={cobrowse_device_id:e},window.Genesys("command","Database.set",{messaging:{customAttributes:{cobrowse_device_id:e}}})}),window.Genesys("subscribe","MessagingService.ready",()=>{window.Genesys("subscribe","MessagingService.conversationDisconnected",({data:e})=>{oH("MessagingService.conversationDisconnected triggered",e),Dq.currentSession&&!Dq.currentSession.isEnded()&&(oH("Ending Cobrowse session after conversation disconnected"),Dq.currentSession.end())})})}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>aH()),this.initializeZendesk(()=>function(){Kz();try{"true"===sessionStorage.getItem("ZD-widgetOpen")?qz().then(jz):window.zE("messenger:on","open",()=>{qz().then(jz)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (messenger), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{!function(){if(!window.zE||!window.zE.identify)throw new Error("missing window.zE or window.zE.identify");{Kz();const e=window.zE.identify;window.zE.identify=function(...t){const[n]=t;return Vz("identify",n),e(...t)}}}()}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (classic), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{window.Smooch.on("widget:opened",()=>{(function(){const e=(t,n)=>{const r=$z();r?t(r):setTimeout(e,Yz,t,n)};return new Promise(e)})().then(Qz)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (Sunshine Conversations), please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeFreshchat(()=>async function(){window.fcWidget?(window.fcWidget.on("user:created",e=>{e.success&&lH()}),window.fcWidget.on("widget:opened",async()=>{!0===(await window.fcWidget.user.isExists()).data&&await lH()})):cH("Freshchat not found")}()),this.initializeNice(()=>async function(){uH("Swizzling started");const e=Dq.deviceId();try{window.cxone("chat","setCustomerCustomField","cobrowse_device_id",e)}catch(e){console.log("Error setting Nice CX custom field",e)}window.cxone("chat","onAnyPushUpdate",({data:t,eventType:n})=>{var r;if("CaseCreated"===n){var i;uH("Nice case created");const{case:n}=t,r=n.id+"",o=null===(i=n.authorEndUserIdentity.fullName)||void 0===i?void 0:i.trim(),s=n.authorEndUserIdentity.idOnExternalPlatform;Dq.customData={nice_case_id:r,nice_external_contact_id:s,cobrowse_device_id:e,user_name:o}}else"CaseStatusChanged"===n&&"closed"===t.case.status&&null!==(r=Dq.currentSession)&&void 0!==r&&r.isActive()&&(uH("Nice case closed"),Dq.currentSession.end())})}()),this.initializeDynamics(()=>function(){const e=Dq.deviceId();let t=!1;function n(e){window.Microsoft.Omnichannel.LiveChatWidget.SDK.setContextProvider(()=>({"cobrowse-device":{value:e,isDisplayable:!0}})),t=!0,dH("Dynamics initialized")}Dq.customData={cobrowse_device_id:e},window.addEventListener("lcw:ready",()=>{t||n(e)});try{n(e)}catch(e){}}()),this.initializeServiceNow(()=>function(){const e=Dq.deviceId();Dq.customData={cobrowse_device_id:e},hH("ServiceNow initialized")}()),this.initializeTalkdesk(()=>function(){if("function"==typeof TalkdeskChatSDK){if(!window.webchat)return console.warn('Talkdesk not found in variable "webchat". Please load Talkdesk using:'),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if("function"!=typeof window.webchat.setContextParam)return console.warn("window.webchat.setContextParam is missing or of an unexpected value. Please load Talkdesk using:"),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if(!pH){const e={cobrowse_device_id:Dq.deviceId()};Dq.customData=e,window.webchat.setContextParam(e),pH=!0,fH("Talkdesk initialized")}}else console.warn("TalkdeskChatSDK is not a function, ignoring as Talkdesk widget might not be present.")}()),this.initializeAmazonConnect(()=>function(){const e=Dq.deviceId();Dq.customData={cobrowse_device_id:e},gH("AmazonConnect initialized")}())}static initializeGenesys(e,t){this.watchProperty(window,"Genesys",()=>e()),this.watchProperty(window,"CXBus",()=>t()),this.watchProperty(window,"_genesys",()=>this.watchProperty(window._genesys,"widgets",()=>this.watchProperty(window._genesys.widgets,"bus",()=>{setTimeout(()=>{t()},0)})))}static initializeSalesforce(e,t){this.watchProperty(window,"embedded_svc",()=>this.watchProperty(window.embedded_svc,"liveAgentAPI",()=>{e()})),this.watchProperty(window,"embeddedservice_bootstrap",()=>t())}static initializeFreshchat(e){this.watchProperty(window,"fcWidget",()=>e())}static initializeTalkdesk(e){this.watchProperty(window,"TalkdeskChatSDK",()=>this.watchProperty(window,"webchat",()=>this.watchProperty(window.webchat,"setContextParam",()=>e())))}static initializeZendesk(e,t,n){this.watchProperty(window,"zE",n=>{if(!window.zE.widget)return n();"messenger"===window.zE.widget?e():t()}),this.watchProperty(window,"Smooch",()=>n())}static initializeNice(e){this.watchProperty(window,"cxone",t=>{if(!window.cxone.guide)return this.watchProperty(window.cxone,"guide",()=>e()),t();e()})}static initializeDynamics(e){this.watchProperty(window,"Microsoft",()=>this.watchProperty(window.Microsoft,"Omnichannel",()=>this.watchProperty(window.Microsoft.Omnichannel,"LiveChatWidget",()=>this.watchProperty(window.Microsoft.Omnichannel.LiveChatWidget,"SDK",()=>{e()}))))}static initializeServiceNow(e){this.watchProperty(window,"ServiceNowChat",()=>e())}static initializeAmazonConnect(e){this.watchProperty(window,"amazon_connect",()=>e())}}class vH{static isHeadless(){return navigator.userAgent.toLowerCase().includes("headless")}}const EH=jl("cbio.sessionStorage.LocalSessionStorage");var wH=new WeakMap;class yH{constructor(){Bo(this,wH,EE())}isSupported(e){return EH("isSupported?",!0),!0}load(e){const t=jo(wH,this).getItem(sM);return t?(EH("loading session"),new oM(e)[kT].deserialize(t)):(EH("no session to load"),null)}store(e,t){null!=t&&t.isActive()?(EH("storing active session"),jo(wH,this).setItem(sM,t[kT].serialize())):(EH("removing inactive session"),jo(wH,this).removeItem(sM))}reset(e){jo(wH,this).removeItem(sM)}}const IH=jl("cbio.sessionStorage.CookieSessionStorage");function LH(e,t,n){return n?`${e}//${t}:${n}`:`${e}//${t}`}function CH(e,t){const n=function(e){try{return new URL(e)}catch(e){return null}}(e);if(!n)return null;const{hostname:r,protocol:i,port:o}=n,s=cA(t),a=r.split(".");for(let e=a.length-1;e>=0;e--){const t=a.slice(e).join("."),n=LH(i,t,o),r=LH(i,`.${t}`,o);if(s(n)&&s(r))return t}return null}class AH{isSupported(e){if(!e.trustedOrigins.length)return IH("isSupported?",!1,"no trusted origins"),!1;const t=CH(window.location.href,e.trustedOrigins);return IH("isSupported?",!!t,"domain",t),!!t}load(e){const t=gE.get(sM,{path:"/"});return t?(IH("loading session from cookie"),new oM(e)[kT].decompress(t)):(IH("no session to load from cookies"),null)}store(e,t){if(!this.isSupported(e))return;const n={path:"/",domain:CH(window.location.href,e.trustedOrigins),secure:!0,sameSite:"strict"};null!=t&&t.isActive()?(IH("storing active session to cookies"),gE.set(sM,t[kT].compress(),Yo(Yo({},n),{},{expires:1}))):(IH("removing inactive session from cookies"),gE.remove(sM,n))}reset(e){this.store(e,null)}}const SH=jl("cbio.sessionStorage");var bH=new WeakMap,NH=new WeakMap,TH=new WeakMap;class kH{static create(e){const t=new yH,n=new uM,r=new AH;return new kH(e,{load:[n,r,t],store:[t,r,n]})}constructor(e,{load:t=[],store:n=[]}){Bo(this,bH,void 0),Bo(this,NH,void 0),Bo(this,TH,void 0),zo(TH,this,e),zo(bH,this,t),zo(NH,this,n)}peek(){SH("peeking session");for(const e of jo(bH,this)){if(!e.isSupported(jo(TH,this)))continue;const t=e.load(jo(TH,this));if(t)return t}return null}async load(){SH("loading session");for(const e of jo(bH,this)){if(!e.isSupported(jo(TH,this)))continue;const t=e.load(jo(TH,this)),n=await(null==t?void 0:t.fetch());if(n){if(n.isActive())return n;await e.store(jo(TH,this),null)}}return null}async store(e){SH("storing session");for(const t of jo(NH,this))if(t.isSupported(jo(TH,this)))try{await t.store(jo(TH,this),e)}catch(e){console.error(`Unexpected error storing session: ${t.constructor.name}`,e)}}reset(){const e=new Set([...jo(bH,this),...jo(NH,this)]);for(const t of e)t.reset(jo(TH,this))}}const OH={load:Date.now()};var RH=new WeakMap,PH=new WeakMap,DH=new WeakMap,MH=new WeakMap,xH=new WeakMap,GH=new WeakMap,UH=new WeakMap,VH=new WeakMap,WH=new WeakMap,FH=new WeakMap,jH=new WeakMap,BH=new WeakMap,zH=new WeakMap;const HH=new class{constructor(){Bo(this,RH,void 0),Bo(this,PH,void 0),Bo(this,DH,[]),Bo(this,MH,window.matchMedia("(min-width: 768px)")),Qo(this,"singleTabFullScreen",!1),Qo(this,"enterFullScreen",()=>jo(PH,this).enterFullScreen()),Qo(this,"exitFullScreen",()=>jo(PH,this).exitFullScreen()),Qo(this,"getTabCount",()=>jo(DH,this).length),Qo(this,"newTab",(e,t,n,r,i,o)=>{const s=jo(PH,this).createTab({onTabClick:e=>{jo(VH,this).call(this,s)},onClose:i,confirmUnload:o});return s.setIcon(t),s.setTitle(n),s.setIsLoading(r),s.setContent(e),jo(DH,this).push(s),jo(VH,this).call(this,s),jo(PH,this).showModal(),1===jo(DH,this).length&&history.pushState({universalProxyOpen:!0},""),Yo(Yo({},s),{},{close:()=>jo(UH,this).call(this,s)})}),Bo(this,xH,()=>{1===jo(DH,this).length&&jo(UH,this).call(this,jo(DH,this)[0])}),Bo(this,GH,e=>{jo(DH,this).some(e=>e.confirmUnload)&&e.preventDefault()}),Qo(this,"closeAllTabs",()=>{jo(DH,this).forEach(jo(UH,this))}),Bo(this,UH,e=>{const t=jo(DH,this).indexOf(e);if(-1===t)return;if(e.removeTab(),jo(DH,this).splice(t,1),!jo(DH,this).length)return jo(PH,this).hideModal();const n=jo(DH,this).length-1;e.isActive()&&(t<=n?jo(DH,this)[t].show():jo(DH,this)[n].show())}),Bo(this,VH,e=>{jo(DH,this).forEach(e=>e.hide()),e.show()}),Bo(this,WH,()=>{const e=document.createElement("div"),t=e.attachShadow({mode:"open"}),n=document.createElement("div");n.style.background="rgba(50, 50, 50, 0.4)",n.style.position="fixed",n.style.zIndex="2147483645",n.style.bottom="0",n.style.top="0",n.style.left="0",n.style.right="0",n.style.display="flex",n.style.flexDirection="column",n.style.padding=jo(MH,this).matches?"25px":"0",t.appendChild(n);const r=jo(FH,this).call(this);n.appendChild(r.element);const i=jo(jH,this).call(this);n.appendChild(i.element);let o=null;return{element:n,showModal:()=>{this.isVisible||(document.body.appendChild(e),o=document.body.style.overflow,document.body.style.overflow="hidden",this.isVisible=!0,zo(RH,this,history.length))},hideModal:()=>{document.body.removeChild(e),document.body.style.overflow=o,this.isVisible=!1;const t=history.length-jo(RH,this);t>0&&history.go(-t)},createTab:({onTabClick:e,onClose:t,confirmUnload:n})=>{const o=jo(BH,this).call(this,{onTabClick:e,onCloseClick:e=>{e.stopPropagation(),t()}});r.addButton(o.element);const s=jo(zH,this).call(this);return i.addPanel(s.element),{setIcon:o.setIcon,setTitle:o.setTitle,setIsLoading:o.setIsLoading,showBanner:s.showBanner,hideBanner:s.hideBanner,show:()=>{o.setIsActive(!0),s.showPanel()},hide:()=>{o.setIsActive(!1),s.hidePanel()},removeTab:()=>{r.removeButton(o.element),i.removePanel(s.element)},isActive:()=>o.isActive,onClose:t,confirmUnload:n,setContent:s.setContent}},enterFullScreen:()=>{r.hide(),n.style.padding="0"},exitFullScreen:()=>{r.show(),n.style.padding=jo(MH,this).matches?"25px":"0"}}}),Bo(this,FH,()=>{const e=document.createElement("div");return e.style.display="flex",e.style.backgroundColor="#d6e2fb",e.style.borderBottom="1px solid #d8d8d8",e.style.paddingTop="6px",e.style.paddingLeft="6px",e.style.paddingBottom="5px",e.style.borderRadius="10px 10px 0 0",this.fullScreen&&(e.style.display="none"),{element:e,addButton:t=>e.appendChild(t),removeButton:t=>e.removeChild(t),show:()=>{e.style.display="flex"},hide:()=>{e.style.display="none "}}}),Bo(this,jH,()=>{const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.borderRadius="0 0 10px 10px",e.style.overflow="hidden",{element:e,addPanel:t=>e.appendChild(t),removePanel:t=>e.removeChild(t)}}),Bo(this,BH,({onTabClick:e,onCloseClick:t})=>{const n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="end",n.style.flex="1 1 0",n.style.backgroundColor="#ffffff66",n.style.padding="4px",n.style.maxWidth="200px",n.style.minWidth="0",n.style.overflow="hidden",n.style.cursor="pointer",n.style.borderRadius="9px",n.style.marginRight="6px";const r=document.createElement("img");r.style.flex="0 0 auto",r.style.width="16px",r.style.height="16px",r.style.marginRight="4px";const i=document.createElement("span");i.style.flex="1 1 auto",i.style.display="block",i.style.fontFamily="sans-serif",i.style.fontSize="13px",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.textOverflow="ellipsis";const o=document.createElement("button");o.style.flex="0 0 auto",o.style.width="24px",o.style.height="24px",o.style.border="none",o.style.background="none",o.style.padding="4px",o.style.cursor="pointer";const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("fill","none"),s.setAttribute("viewBox","0 0 24 24"),s.setAttribute("stroke-width","1.5"),s.setAttribute("stroke","currentColor"),s.style.width="16px",s.style.height="16px";const a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("d","M6 18 18 6M6 6l12 12"),s.appendChild(a),o.appendChild(s),n.appendChild(r),n.appendChild(i),n.appendChild(o),n.addEventListener("click",e),o.addEventListener("click",t),r.onerror=function(){this.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="gray"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418" /></svg>'},{element:n,icon:"",title:"",isActive:!1,isLoading:!1,setIcon:function(e){this.icon=e,r.src=e},setTitle:function(e){this.title=e,i.textContent=e},setIsActive:function(e){this.isActive=e,this.isActive?(n.style.backgroundColor="white",n.style.borderColor="#d8d8d8"):(n.style.backgroundColor="#ffffff66",n.style.borderColor="#efefef")},setIsLoading:function(e){this.isLoading=e,r.src=this.isLoading?'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"><animateTransform attributeName="transform" type="rotate" dur="0.75s" values="0 12 12;360 12 12" repeatCount="indefinite"/></path></svg>':this.icon}}}),Bo(this,zH,()=>{const e=document.createElement("div");e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.display="flex",e.style.flexDirection="column";const t=document.createElement("div");t.style.height="30px",t.style.width="100%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.backgroundColor="white",t.style.color="black",t.style.fontFamily="sans-serif",t.style.fontSize="13px",t.style.borderBottom="1px solid #d8d8d8";const n=document.createElement("div");return n.style.flex="1",e.appendChild(n),{element:e,showPanel:()=>{e.style.display="flex"},hidePanel:()=>{e.style.display="none"},showBanner:n=>{t.innerText=n,e.contains(t)||e.prepend(t)},hideBanner:()=>{e.contains(t)&&e.removeChild(t)},setContent:e=>{n.contains(e)||n.replaceChildren(e)}}}),zo(PH,this,jo(WH,this).call(this)),jo(MH,this).addEventListener("change",e=>{jo(PH,this).element.style.padding=e.matches?"25px":"0"}),window.addEventListener("popstate",jo(xH,this)),window.addEventListener("beforeunload",jo(GH,this))}},qH=jl("cbio.VirtualAgent.VirtualAgentEmbed");class QH extends ZP{constructor(){super(),Qo(this,"url",()=>new URL(`api/1/virtualagents/${encodeURIComponent(this.slug())}/embed`,QH.api).toString()),Qo(this,"slug",()=>this.field("slug")),Qo(this,"type",()=>this.field("type")),Qo(this,"data",()=>this.field("data")),qH("constructed")}static async load(e,t){var n;const r=new QH,i=EE(e.license),o=`_cobrowse_va_conversation_${t}`,{iat:s,resource:a,attempts:c=0}=null!==(n=i.getItem(o))&&void 0!==n?n:{};if(a&&s&&s>Date.now()-78e4)return qH("loaded agent embed data from storage"),r.updateResource(a),r;if(!a&&c){const e=$H(s,c);if(e>Date.now())return void console.warn(`Not loading virtual agent embed data, next retry at: ${new Date(e)}`)}try{qH("loading agent embed data from the API"),r.updateResource({slug:t}),await r.fetch()}catch(e){const t=$H(Date.now(),c);return console.error(`Unable to resolve virtual agent embed data. Next retry at ${new Date(t)}`,e),void i.setItem(o,{iat:Date.now(),attempts:c+1})}return i.setItem(o,{resource:r.resource,iat:Date.now()}),r}}function $H(e,t){return e+1e3*Math.min(Math.pow(2,t),900)}const YH=jl("cbio.VirtualAgent"),JH=jl("cbio.CobrowseIO");var KH=new WeakMap,XH=new WeakMap,ZH=new WeakMap,eq=new WeakMap,tq=new WeakMap,nq=new WeakMap,rq=new WeakMap,iq=new WeakMap,oq=new WeakMap,sq=new WeakMap,aq=new WeakMap,cq=new WeakMap,lq=new WeakMap,uq=new WeakMap,dq=new WeakMap,hq=new WeakMap,fq=new WeakMap,pq=new WeakMap,gq=new WeakMap,mq=new WeakMap,_q=new WeakMap,vq=new WeakMap,Eq=new WeakMap,wq=new WeakMap,yq=new WeakMap,Iq=new WeakMap,Lq=new WeakMap,Cq=new WeakMap,Aq=new WeakMap,Sq=new WeakSet,bq=new WeakMap,Nq=new WeakMap,Tq=new WeakMap;class kq extends wv.EventEmitter{constructor({sessionStorage:e}={}){super(),qo(this,Sq),Bo(this,KH,new AC),Bo(this,XH,void 0),Bo(this,ZH,!1),Bo(this,eq,!0),Bo(this,tq,kH.create(this)),Bo(this,nq,{}),Bo(this,rq,zD.info.capabilities),Bo(this,iq,new zD(this)),Bo(this,oq,new eW),Bo(this,sq,new eW),Bo(this,aq,new eW),Bo(this,cq,new eW),Bo(this,lq,void 0),Bo(this,uq,void 0),Bo(this,dq,void 0),Bo(this,hq,void 0),Bo(this,fq,void 0),Bo(this,pq,void 0),Bo(this,gq,void 0),Bo(this,mq,void 0),Bo(this,_q,void 0),Bo(this,vq,void 0),Qo(this,"start",async(e={})=>{if(JH("start()",e,"in",document),!vH.isHeadless()||e.allowHeadless){if(window.self!==window.top){if(!e.allowIFrameStart)return hv(window.parent)?(jo(_q,this)&&jo(_q,this).call(this),zo(_q,this,async function(e){const t=new oM(e),n=FU(QU,{currentSession:t}),r=zU(QU,e,{waitForParentSync:!0});QU.start();const i=await r.getSyncedConfig();let o;HU("synced config",i);const s=()=>{t.isActive()&&!o&&(HU("creating iframe context",o),YU(i.api)(t),o=new MG(t,Yo(Yo({},i),{},{trustedOrigins:e.trustedOrigins,version:e.version,showDocument:e.showDocument,confirmOpen:(e,t)=>$U.send("confirmOpen",{url:e,type:t}),open:(e,t,n,r)=>$U.send("open",{url:e,target:t,windowFeatures:n,options:r})}),QU.sendToParent),t.once("ended",()=>{HU("destroying iframe context",o),o.destroy(),o=null}))};QU.on("session",s);const a=(e,{trustedOnly:t,fromParent:n})=>{n?QU.broadcastToChildren("rpc:request",e,{trustedOnly:t}):QU.sendToParent("rpc:request",e,{trustedOnly:t})};QU.on("rpc:request",a);const c=(e,{trustedOnly:t,fromParent:n})=>{n?QU.broadcastToChildren("rpc:response",e,{trustedOnly:t}):QU.sendToParent("rpc:response",e,{trustedOnly:t})};QU.on("rpc:response",c);const l=()=>{var e;return null===(e=o)||void 0===e?void 0:e.invalidateFrame()};QU.on("sync",l);const u=(e,{trustedOnly:t})=>{var n;const{target:r,error:{cause:i}}=e,s="string"==typeof r?r:r.id;"load-error"===i&&(null===(n=o)||void 0===n||n.partialSync(s)),QU.broadcastToChildren("remote-error",e,{trustedOnly:t})};QU.on("remote-error",u);const d=async t=>tV.highlight(e,t);return $U.on("highlight",d),()=>{r.unsubscribe(),n.unsubscribe(),QU.off("remote-error",u),QU.off("sync",l),QU.off("session",s),QU.off("rpc:request",a),QU.off("rpc:response",c),$U.off("highlight",d)}}(this)),void JH("Starting Cobrowse in Iframe bridge mode with trusted origins:",QU.trustedOrigins,"for",document)):void JH("Not starting Cobrowse for same-origin iframe",document);NE.setTracksIframes(!0)}var t,n;jo(_q,this)&&jo(_q,this).call(this),zo(_q,this,function(e,{open:t}){const n=FU(QU,e);e.on("session.loaded",n.publish),e.on("session.updated",n.publish);const r=YU(e.api);e.on("session.loaded",r),e.on("session.updated",r);const i=zU(QU,e);e.on("session.sync",i.sendSync);const o=async({url:t,type:n})=>({accepted:await e.confirmOpen(t,n)});$U.on("confirmOpen",o);const s=({url:e,target:n,windowFeatures:r,options:i})=>{t(e,n,r,i)};return $U.on("open",s),QU.start(),()=>{n.unsubscribe(),i.unsubscribe(),e.off("session.loaded",n.publish),e.off("session.updated",n.publish),e.off("session.loaded",r),e.off("session.updated",r),e.off("session.sync",i.sendSync),$U.off("confirmOpen",o),$U.off("open",s)}}(this,{open:jo(Eq,this)})),this.license?jo(ZH,this)||(_H.initialize(),NE.start(),async function(){lL.isLocalResource(window.location.href)&&console.warn("CobrowseIO: This page was loaded from a local address, Cobrowse may not work as expected due to inaccessible resources. We recommend using ngrok for testing development versions.")}().catch(()=>{}),console.log("CobrowseIO started",kq.version,null===(t=document.timeline)||void 0===t?void 0:t.currentTime),zo(ZH,this,!0),"boolean"==typeof e.register&&zo(eq,this,e.register),this.registration&&xo(Sq,this,Oq).call(this),JH("attempting to restore session after start"),await jo(wq,this).call(this),null!==(n=this.currentSession)&&void 0!==n&&n.isActive()||this.hideSessionControls(),OH.start=Date.now(),await jo(Tq,this).call(this)):console.error("CobrowseIO.license must be set before calling start")}else console.warn("CobrowseIO: Not starting Cobrowse in a headless browser")}),Qo(this,"stop",async()=>(this.currentSession&&!this.currentSession.isEnded()&&await this.currentSession.end().catch(e=>{console.warn("CobrowseIO: Failed to end session on stop",e)}),jo(yq,this).call(this,null),NE.stop(),jo(KH,this).stop(),await jo(iq,this).destroy(),await jo(tq,this).reset(),zo(ZH,this,!1),jo(_q,this)&&(jo(_q,this).call(this),zo(_q,this,null)),this)),Qo(this,"open",(e,t,n,{type:r}={})=>jo(Eq,this).call(this,e,t,n,{type:r})),Bo(this,Eq,(e,t,n,r)=>{const i=()=>window.open(e,t,n);if(!jo(XH,this))return i();const{target:o,name:s}=kA(t,"_blank"),a=Yo(Yo({},r),{},{name:s,go:i}),{rewrittenUrl:c,windowProxy:l}=jo(XH,this).handleNavigation(e,o,n,a);return c?window.open(c,t,n):l}),Bo(this,wq,async()=>{try{const e=await jo(tq,this).load(this);e&&jo(yq,this).call(this,e,{invalidateFrames:!0})}catch(e){console.warn("CobrowseIO: Failed to fetch restored session",e),jo(yq,this).call(this,null)}return null}),Bo(this,yq,(e,{invalidateFrames:t=!1}={})=>{if(JH("setting current session",e),e&&jo(XH,this)&&jo(XH,this).session.id()===e.id())return;jo(oq,this).hide(),jo(sq,this).hide(),jo(aq,this).hide(),jo(cq,this).hide();const n=(e,t)=>QU.broadcastToChildren("control",[e,t]),r=e=>QU.broadcastToChildren("remote-error",e);jo(XH,this)&&(jo(XH,this).session.off("updated",jo(Iq,this)),jo(XH,this).session.off("ended",jo(Lq,this)),jo(XH,this).session.off("control",n),jo(XH,this).session.off("remote-error",r),jo(XH,this).session.off("metrics.updated",jo(Cq,this)),jo(XH,this).destroy(),zo(XH,this,null)),jo(tq,this).store(e),e&&(zo(XH,this,new Dz(e,this)),e.state()&&jo(Iq,this).call(this,e),e.on("updated",jo(Iq,this)),e.once("ended",jo(Lq,this)),e.on("sync",()=>this.emit("session.sync")),e.on("control",n),e.on("remote-error",r),e.on("metrics.updated",jo(Cq,this)),t&&jo(XH,this).invalidateFrames())}),Bo(this,Iq,e=>{jo(tq,this).store(e),e.fullDevice()||jo(aq,this).hide(),"requested"!==e.remoteControl()&&jo(sq,this).hide(),e.isAuthorizing()||jo(oq,this).hide(),this.emit("session.updated",e)}),Bo(this,Lq,e=>{this.emit("session.ended",e),jo(yq,this).call(this,null),zo(mq,this,!1)}),Bo(this,Cq,e=>{this.emit("session.metrics.updated",e)}),Bo(this,Aq,void 0),Qo(this,"hideSessionControls",()=>{KV.hideSessionControls()}),Bo(this,bq,dc(()=>{jo(iq,this).hasPendingUpdates()&&jo(ZH,this)&&this.registration&&jo(iq,this).updateRegistration().catch(e=>{console.warn("CobrowseIO: updating customData failed",e)})},8e3,{leading:!0,trailing:!0})),Qo(this,"confirmRemoteControl",async()=>jo(sq,this).show(LV.tr("REMOTE_CONTROL_REQUEST_TITLE"),LV.tr("REMOTE_CONTROL_REQUEST_DESCRIPTION"))),Qo(this,"confirmFullDevice",async()=>jo(aq,this).show(LV.tr("FULL_DEVICE_REQUEST_TITLE"),LV.tr("FULL_DEVICE_REQUEST_DESCRIPTION"))),Qo(this,"confirmSession",async()=>jo(oq,this).show(LV.tr("SESSION_REQUEST_TITLE"),LV.tr("SESSION_REQUEST_DESCRIPTION"))),Qo(this,"confirmOpen",(e,t)=>{if(t!==IT)return!0;if(jo(mq,this))return!0;const n=jo(cq,this).show(LV.tr("UNIVERSAL_PROXY_REQUEST_TITLE"),LV.tr("UNIVERSAL_PROXY_REQUEST_DESCRIPTION"));return n.then(e=>{e&&zo(mq,this,!0)}),n}),Qo(this,"showDocument",e=>{"_blank"!==e.target&&0===HH.getTabCount()?HH.enterFullScreen():HH.exitFullScreen();const t=e.type===IT,n=HH.newTab(e.element,"",e.url,e.isLoading,e.close,t);e.isBlocked&&n.showBanner(LV.tr("UNIVERSAL_PROXY_BLOCKED"));const r=()=>{n.setIcon(e.icon),n.setTitle(e.title||e.url),n.setIsLoading(e.isLoading),n.setContent(e.element),e.isBlocked?n.showBanner(LV.tr("UNIVERSAL_PROXY_BLOCKED")):n.hideBanner()};e.on("updated",r),e.once("closed",()=>{e.off("updated",r),n.close()})}),Qo(this,"getSession",async e=>{if(!jo(ZH,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.id()===e||this.currentSession.code()===e))return this.currentSession.fetch();const t=new oM(this).updateResource({id:e});return jo(yq,this).call(this,t),await t.fetch(),this.emit("session.loaded",t),t}),Qo(this,"createSession",async()=>{if(!jo(ZH,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.isActive()||this.currentSession.isAuthorizing()))throw new Error("Already in a session");(OH["load"]?Date.now()-OH.load:NaN)<8e3&&console.warn("Six digit codes have a short expiry time. You should wait to generate a code until it is required! Do not generate codes on page load.");const e=new oM(this);return jo(yq,this).call(this,e),await e.update({custom_data:this.customData,device:zD.info}),this.emit("session.loaded",e),e}),Qo(this,"createSessionCode",async()=>(await this.createSession()).code()),Qo(this,"client",async()=>this),Bo(this,Nq,e=>{e&&["license","api","registration","customData","showSessionControls","hideSessionControls","confirmSession","confirmRemoteControl","confirmFullDevice","trustedOrigins","redactedViews","unredactedViews","ignoredViews","disabledViews","enabledViews","capabilities","pdfLinks","universalLinks","confirmOpen","showDocument","highlightElement","virtualAgent"].forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}),Bo(this,Tq,async()=>{jo(vq,this)&&await async function(e,t){YH("Loading virtual agent %s",e);const n=await QH.load(t,e);if("elevenlabs"===(null==n?void 0:n.type())){const{loadElevenLabsWidget:e}=await import("./universal-client.static.DvXplm4V.mjs");await e(n,t)}}(jo(vq,this),this)}),JH("interface constructed in",document),e&&zo(tq,this,e),this.api="https://api.cobrowse.io",jo(Nq,this).call(this,window&&window.CobrowseIO),jo(iq,this).on("notification",e=>{const t=e["cobrowseio-code"];t&&this.getSession(t).catch(e=>{console.warn("CobrowseIO: session fetch failed:",e)})})}deviceId(){return zD.deviceId()}get currentSession(){return jo(XH,this)?jo(XH,this).session:jo(tq,this).peek()}set showSessionControls(e){var t;zo(Aq,this,e),KV.hideSessionControls(),null!==(t=jo(XH,this))&&void 0!==t&&t.session.isActive()&&jo(Aq,this).call(this)}get showSessionControls(){return jo(Aq,this)?jo(Aq,this):KV.showSessionControls}set license(e){if(jo(ZH,this)&&this.license!==e)throw new Error("Cannot change license once Cobrowse is started");ZP.setHeader("X-CobrowseLicense",e)}get license(){return ZP.getHeader("X-CobrowseLicense")}set api(e){if(jo(ZH,this)&&ZP.api!==e)throw new Error("Cannot change API once Cobrowse is started");ZP.api=e}get api(){return ZP.api}set registration(e){const t=!!e;t!==jo(eq,this)&&xo(Sq,this,Pq).call(this,t)}get registration(){return!!jo(eq,this)}set redactedViews(e){if(jo(ZH,this))throw new Error("Cannot set redacted views after Cobrowse is started");zo(lq,this,e)}get redactedViews(){return jo(lq,this)}set unredactedViews(e){if(jo(ZH,this))throw new Error("Cannot set unredacted views after Cobrowse is started");zo(uq,this,e)}get unredactedViews(){return jo(uq,this)}set ignoredViews(e){if(jo(ZH,this))throw new Error("Cannot set ignored views after Cobrowse is started");zo(dq,this,e)}get ignoredViews(){return jo(dq,this)}set disabledViews(e){if(jo(ZH,this))throw new Error("Cannot set disabled views after Cobrowse is started");zo(hq,this,e)}get disabledViews(){return jo(hq,this)}set enabledViews(e){if(jo(ZH,this))throw new Error("Cannot set enabled views after Cobrowse is started");zo(fq,this,e)}get enabledViews(){return jo(fq,this)}set capabilities(e){if(jo(ZH,this))throw new Error("Cannot set capabilities after Cobrowse is started");if(!Array.isArray(e))throw new Error("Capabilities should be an array");zo(rq,this,e.filter(e=>!!zD.info.capabilities.includes(e)||(console.warn(`Capability '${e}' not supported. Ignoring...`),!1)))}get capabilities(){return jo(rq,this)}set customData(e){if("object"!=typeof e)throw new Error("Custom data must be an object");if(zo(nq,this,Yo(Yo({},jo(nq,this)),e)),jo(ZH,this)&&setTimeout(jo(bq,this),0),this.currentSession&&this.currentSession.isActive()){const t=this.currentSession.resource.custom_data;if(!Object.keys(e).find(n=>t[n]!==e[n]))return void JH("no changes to session custom data");this.currentSession.update({custom_data:e}).catch(()=>{console.warn("CobrowseIO: failed to update custom data on active session")})}}get customData(){return Yo(Yo({},jo(iq,this).customData),jo(nq,this))}set trustedOrigins(e){const t=[];e.forEach(e=>{try{const n=new URL(e).origin,r=decodeURIComponent(n);return t.push(r)}catch(e){}if(Boolean(aA(e)))return t.push(e);console.warn("CobrowseIO: Invalid URL in trustedOrigins:",e)}),QU.trustedOrigins=t}get trustedOrigins(){return[...QU.trustedOrigins]}set pdfLinks(e){if(jo(ZH,this))throw new Error("Cannot set pdfLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in pdfLinks:",e),null)).filter(e=>e);zo(pq,this,t)}get pdfLinks(){return jo(pq,this)}set universalLinks(e){if(jo(ZH,this))throw new Error("Cannot set universalLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in universalLinks:",e),null)).filter(e=>e);zo(gq,this,t)}get universalLinks(){return jo(gq,this)}set virtualAgent(e){if(jo(ZH,this))throw new Error("Cannot set virtualAgent after Cobrowse is started");zo(vq,this,e)}get virtualAgent(){return jo(vq,this)}static get version(){return zD.info.sdk_version}get version(){return kq.version}}function Oq(){JH("starting registration"),jo(KH,this).on("active",jo(iq,this).runRegistrationLoop),jo(KH,this).on("inactive",jo(iq,this).pauseRegistrationLoop),jo(KH,this).start()}async function Rq(){JH("stopping registration"),jo(KH,this).stop(),jo(KH,this).off("active",jo(iq,this).runRegistrationLoop),jo(KH,this).off("inactive",jo(iq,this).pauseRegistrationLoop);try{await jo(iq,this).destroy()}catch(e){console.log("Failed to deregister device",e)}}function Pq(e){zo(eq,this,e),jo(ZH,this)&&(e?xo(Sq,this,Oq).call(this):xo(Sq,this,Rq).call(this))}ZP.setHeader("Content-Type","application/json"),ZP.setHeader("X-CobrowsePlatform","web"),ZP.setHeader("X-CobrowseSDKVersion",kq.version),ZP.setHeader("X-CobrowseDevice",zD.deviceId()),ZP.setHeader("X-CobrowseAPIVersion","1.63.3");const Dq=new kq;(()=>{const e=new URLSearchParams(window.location.search),t=e.get("access_token"),n=e.get("proxy_path"),r=e.get("parent_origin"),i=e.get("sdk_version"),o=e.get("frame_name"),s=new URL(n,window.location.origin).toString(),a={parent_origin:r,proxy_path:n,sdk_version:i,frame_name:o},c=new Zs(s,ea,t,void 0,a),l=c.unproxify(window.location.href),{proxify:u,unproxify:d}=new Zs(s,ea,t,l,a,()=>new URL(c.unproxify(window.location.href)).origin),h=e=>(e=>e[K_]||e.name)(e)===o,f=e=>h(e)||e===e.parent?e:f(e.parent),p={proxify:u,unproxify:d,parentOrigin:r,proxyPath:n,sdkVersion:i,frameName:o,proxyToken:t,isTopWindow:h,findTopWindow:f};(e=>{Gc.forEach(t=>{try{t(e)}catch(e){console.log("Error while applying proxy",e)}})})(p),C_(p),(e=>{tv.forEach(t=>{try{t(e)}catch(e){console.log("Error while applying patch",e)}})})(p),r&&(Rx.proxify=u,Rx.unproxify=d,Rx.inUniversalProxy=!0,Dq.trustedOrigins=[r],Dq.registration=!1,Dq.start())})();export{Yv as $,qo as A,Bo as B,zo as C,dc as D,jo as E,xo as F,jl as G,EE as H,hf as I,Yr as J,yt as K,js as L,$h as M,Zi as N,zs as O,Hs as P,qs as Q,Ze as R,eS as S,Jk as T,qh as U,Hh as V,ef as W,le as X,yc as Y,tf as Z,Yo as _,$L as a,_e as a0,zn as a1,$i as a2,Qo as a3,Ho as a4,Uo as a5,Xo as a6,ro as a7,Vl as a8,Wl as a9,ot as aa,no as ab,he as ac,me as ad,Le as ae,Bn as af,Lt as ag,gn as ah,Is as ai,kd as aj,Pd as ak,Ju as al,ec as am,Yu as an,It as b,dt as c,v as d,qt as e,Se as f,it as g,st as h,Xr as i,Ee as j,vs as k,Ji as l,ge as m,g as n,lr as o,ao as p,lt as q,o as r,co as s,Qu as t,Io as u,jn as v,Ae as w,m as x,ts as y,Jo as z};
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,i={};function o(){if(r)return n;r=1;var t=function(e){return e&&e.Math===Math&&e};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var s,a,c,l,u,d,h,f,p={};function g(){return a?s:(a=1,s=function(e){try{return!!e()}catch(e){return!0}})}function m(){if(l)return c;l=1;var e=g();return c=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function _(){if(d)return u;d=1;var e=g();return u=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function v(){if(f)return h;f=1;var e=_(),t=Function.prototype.call;return h=e?t.bind(t):function(){return t.apply(t,arguments)},h}var E,w,y,I,L,C,A,S,b,N,T,k,O,R,P,D,M,x,G,U,W,V,F,j,B,z,H,q,Q,$,Y,J,K,X,Z,ee,te,ne,re,ie,oe,se={};function ae(){if(E)return se;E=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return se.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,se}function ce(){return y?w:(y=1,w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function le(){if(L)return I;L=1;var e=_(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return I=e?r:function(e){return function(){return n.apply(e,arguments)}},I}function ue(){if(A)return C;A=1;var e=le(),t=e({}.toString),n=e("".slice);return C=function(e){return n(t(e),8,-1)}}function de(){if(b)return S;b=1;var e=le(),t=g(),n=ue(),r=Object,i=e("".split);return S=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function he(){return T||(T=1,N=function(e){return null==e}),N}function fe(){if(O)return k;O=1;var e=he(),t=TypeError;return k=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function pe(){if(P)return R;P=1;var e=de(),t=fe();return R=function(n){return e(t(n))}}function ge(){if(M)return D;M=1;var e="object"==typeof document&&document.all;return D=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function me(){if(G)return x;G=1;var e=ge();return x=function(t){return"object"==typeof t?null!==t:e(t)}}function _e(){if(W)return U;W=1;var e=o(),t=ge();return U=function(n,r){return arguments.length<2?(i=e[n],t(i)?i:void 0):e[n]&&e[n][r];var i},U}function ve(){if(F)return V;F=1;var e=le();return V=e({}.isPrototypeOf)}function Ee(){if(B)return j;B=1;var e=o().navigator,t=e&&e.userAgent;return j=t?String(t):""}function we(){if(H)return z;H=1;var e,t,n=o(),r=Ee(),i=n.process,s=n.Deno,a=i&&i.versions||s&&s.version,c=a&&a.v8;return c&&(t=(e=c.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),z=t}function ye(){if(Q)return q;Q=1;var e=we(),t=g(),n=o().String;return q=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),q}function Ie(){if(Y)return $;Y=1;var e=ye();return $=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Le(){if(K)return J;K=1;var e=_e(),t=ge(),n=ve(),r=Ie(),i=Object;return J=r?function(e){return"symbol"==typeof e}:function(r){var o=e("Symbol");return t(o)&&n(o.prototype,i(r))}}function Ce(){if(Z)return X;Z=1;var e=String;return X=function(t){try{return e(t)}catch(e){return"Object"}}}function Ae(){if(te)return ee;te=1;var e=ge(),t=Ce(),n=TypeError;return ee=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Se(){if(re)return ne;re=1;var e=Ae(),t=he();return ne=function(n,r){var i=n[r];return t(i)?void 0:e(i)},ne}function be(){if(oe)return ie;oe=1;var e=v(),t=ge(),n=me(),r=TypeError;return ie=function(i,o){var s,a;if("string"===o&&t(s=i.toString)&&!n(a=e(s,i)))return a;if(t(s=i.valueOf)&&!n(a=e(s,i)))return a;if("string"!==o&&t(s=i.toString)&&!n(a=e(s,i)))return a;throw new r("Can't convert object to primitive value")}}var Ne,Te,ke,Oe,Re,Pe,De,Me,xe,Ge,Ue,We,Ve,Fe,je,Be,ze,He,qe,Qe,$e,Ye,Je,Ke,Xe={exports:{}};function Ze(){return Te?Ne:(Te=1,Ne=!1)}function et(){if(Oe)return ke;Oe=1;var e=o(),t=Object.defineProperty;return ke=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function tt(){if(Re)return Xe.exports;Re=1;var e=Ze(),t=o(),n=et(),r="__core-js_shared__",i=Xe.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Xe.exports}function nt(){if(De)return Pe;De=1;var e=tt();return Pe=function(t,n){return e[t]||(e[t]=n||{})}}function rt(){if(xe)return Me;xe=1;var e=fe(),t=Object;return Me=function(n){return t(e(n))}}function it(){if(Ue)return Ge;Ue=1;var e=le(),t=rt(),n=e({}.hasOwnProperty);return Ge=Object.hasOwn||function(e,r){return n(t(e),r)}}function ot(){if(Ve)return We;Ve=1;var e=le(),t=0,n=Math.random(),r=e(1.1.toString);return We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function st(){if(je)return Fe;je=1;var e=o(),t=nt(),n=it(),r=ot(),i=ye(),s=Ie(),a=e.Symbol,c=t("wks"),l=s?a.for||a:a&&a.withoutSetter||r;return Fe=function(e){return n(c,e)||(c[e]=i&&n(a,e)?a[e]:l("Symbol."+e)),c[e]}}function at(){if(ze)return Be;ze=1;var e=v(),t=me(),n=Le(),r=Se(),i=be(),o=st(),s=TypeError,a=o("toPrimitive");return Be=function(o,c){if(!t(o)||n(o))return o;var l,u=r(o,a);if(u){if(void 0===c&&(c="default"),l=e(u,o,c),!t(l)||n(l))return l;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function ct(){if(qe)return He;qe=1;var e=at(),t=Le();return He=function(n){var r=e(n,"string");return t(r)?r:r+""}}function lt(){if($e)return Qe;$e=1;var e=o(),t=me(),n=e.document,r=t(n)&&t(n.createElement);return Qe=function(e){return r?n.createElement(e):{}}}function ut(){if(Je)return Ye;Je=1;var e=m(),t=g(),n=lt();return Ye=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function dt(){if(Ke)return p;Ke=1;var e=m(),t=v(),n=ae(),r=ce(),i=pe(),o=ct(),s=it(),a=ut(),c=Object.getOwnPropertyDescriptor;return p.f=e?c:function(e,l){if(e=i(e),l=o(l),a)try{return c(e,l)}catch(e){}if(s(e,l))return r(!t(n.f,e,l),e[l])},p}var ht,ft,pt,gt,mt,_t,vt,Et={};function wt(){if(ft)return ht;ft=1;var e=m(),t=g();return ht=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function yt(){if(gt)return pt;gt=1;var e=me(),t=String,n=TypeError;return pt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function It(){if(mt)return Et;mt=1;var e=m(),t=ut(),n=wt(),r=yt(),i=ct(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return Et.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var o=a(e,t);o&&o[u]&&(e[t]=n.value,n={configurable:l in n?n[l]:o[l],enumerable:c in n?n[c]:o[c],writable:!1})}return s(e,t,n)}:s:function(e,n,a){if(r(e),n=i(n),r(a),t)try{return s(e,n,a)}catch(e){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(e[n]=a.value),e},Et}function Lt(){if(vt)return _t;vt=1;var e=m(),t=It(),n=ce();return _t=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var Ct,At,St,bt,Nt,Tt,kt,Ot,Rt,Pt,Dt,Mt,xt,Gt,Ut,Wt={exports:{}};function Vt(){if(At)return Ct;At=1;var e=m(),t=it(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!e||e&&r(n,"name").configurable);return Ct={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Ft(){if(bt)return St;bt=1;var e=le(),t=ge(),n=tt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),St=n.inspectSource}function jt(){if(Ot)return kt;Ot=1;var e=nt(),t=ot(),n=e("keys");return kt=function(e){return n[e]||(n[e]=t(e))}}function Bt(){return Pt?Rt:(Pt=1,Rt={})}function zt(){if(Mt)return Dt;Mt=1;var e,t,n,r=function(){if(Tt)return Nt;Tt=1;var e=o(),t=ge(),n=e.WeakMap;return Nt=t(n)&&/native code/.test(String(n))}(),i=o(),s=me(),a=Lt(),c=it(),l=tt(),u=jt(),d=Bt(),h="Object already initialized",f=i.TypeError,p=i.WeakMap;if(r||l.state){var g=l.state||(l.state=new p);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(h);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=u("state");d[m]=!0,e=function(e,t){if(c(e,m))throw new f(h);return t.facade=e,a(e,m,t),t},t=function(e){return c(e,m)?e[m]:{}},n=function(e){return c(e,m)}}return Dt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!s(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}}function Ht(){if(xt)return Wt.exports;xt=1;var e=le(),t=g(),n=ge(),r=it(),i=m(),o=Vt().CONFIGURABLE,s=Ft(),a=zt(),c=a.enforce,l=a.get,u=String,d=Object.defineProperty,h=e("".slice),f=e("".replace),p=e([].join),_=i&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),v=String(String).split("String"),E=Wt.exports=function(e,t,n){"Symbol("===h(u(t),0,7)&&(t="["+f(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||o&&e.name!==t)&&(i?d(e,"name",{value:t,configurable:!0}):e.name=t),_&&n&&r(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return r(s,"source")||(s.source=p(v,"string"==typeof t?t:"")),e};return Function.prototype.toString=E(function(){return n(this)&&l(this).source||s(this)},"toString"),Wt.exports}function qt(){if(Ut)return Gt;Ut=1;var e=ge(),t=It(),n=Ht(),r=et();return Gt=function(i,o,s,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:o;if(e(s)&&n(s,l,a),a.global)c?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(c=!0):delete i[o]}catch(e){}c?i[o]=s:t.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},Gt}var Qt,$t,Yt,Jt,Kt,Xt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,un,dn={};function hn(){if(Jt)return Yt;Jt=1;var e=function(){if($t)return Qt;$t=1;var e=Math.ceil,t=Math.floor;return Qt=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Qt}();return Yt=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function fn(){if(Xt)return Kt;Xt=1;var e=hn(),t=Math.max,n=Math.min;return Kt=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}function pn(){if(en)return Zt;en=1;var e=hn(),t=Math.min;return Zt=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function gn(){if(nn)return tn;nn=1;var e=pn();return tn=function(t){return e(t.length)}}function mn(){if(an)return sn;an=1;var e=le(),t=it(),n=pe(),r=function(){if(on)return rn;on=1;var e=pe(),t=fn(),n=gn(),r=function(r){return function(i,o,s){var a=e(i),c=n(a);if(0===c)return!r&&-1;var l,u=t(s,c);if(r&&o!=o){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((r||u in a)&&a[u]===o)return r||u||0;return!r&&-1}};return rn={includes:r(!0),indexOf:r(!1)}}().indexOf,i=Bt(),o=e([].push);return sn=function(e,s){var a,c=n(e),l=0,u=[];for(a in c)!t(i,a)&&t(c,a)&&o(u,a);for(;s.length>l;)t(c,a=s[l++])&&(~r(u,a)||o(u,a));return u},sn}function _n(){return ln?cn:(ln=1,cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function vn(){if(un)return dn;un=1;var e=mn(),t=_n().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},dn}var En,wn,yn,In,Ln,Cn,An,Sn,bn,Nn,Tn,kn,On,Rn,Pn,Dn,Mn,xn,Gn,Un={};function Wn(){return En||(En=1,Un.f=Object.getOwnPropertySymbols),Un}function Vn(){if(Ln)return In;Ln=1;var e=it(),t=function(){if(yn)return wn;yn=1;var e=_e(),t=le(),n=vn(),r=Wn(),i=yt(),o=t([].concat);return wn=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),s=r.f;return s?o(t,s(e)):t}}(),n=dt(),r=It();return In=function(i,o,s){for(var a=t(o),c=r.f,l=n.f,u=0;u<a.length;u++){var d=a[u];e(i,d)||s&&e(s,d)||c(i,d,l(o,d))}},In}function Fn(){if(An)return Cn;An=1;var e=g(),t=ge(),n=/#|\.prototype\./,r=function(n,r){var c=o[i(n)];return c===a||c!==s&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return Cn=r}function jn(){if(bn)return Sn;bn=1;var e=o(),t=dt().f,n=Lt(),r=qt(),i=et(),s=Vn(),a=Fn();return Sn=function(o,c){var l,u,d,h,f,p=o.target,g=o.global,m=o.stat;if(l=g?e:m?e[p]||i(p,{}):e[p]&&e[p].prototype)for(u in c){if(h=c[u],d=o.dontCallGetSet?(f=t(l,u))&&f.value:l[u],!a(g?u:p+(m?".":"#")+u,o.forced)&&void 0!==d){if(typeof h==typeof d)continue;s(h,d)}(o.sham||d&&d.sham)&&n(h,"sham",!0),r(l,u,h,o)}}}function Bn(){if(On)return kn;On=1;var e=function(){if(Tn)return Nn;Tn=1;var e={};return e[st()("toStringTag")]="z",Nn="[object z]"===String(e)}(),t=ge(),n=ue(),r=st()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return kn=e?n:function(e){var s,a,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(s=i(e),r))?a:o?n(s):"Object"===(c=n(s))&&t(s.callee)?"Arguments":c},kn}function zn(){if(Pn)return Rn;Pn=1;var e=Bn(),t=String;return Rn=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Hn(){if(Mn)return Dn;Mn=1;var e=yt();return Dn=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function qn(){if(Gn)return xn;Gn=1;var e=g(),t=o().RegExp,n=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),r=n||e(function(){return!t("a","y").sticky}),i=n||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return xn={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}var Qn,$n,Yn,Jn,Kn,Xn,Zn,er,tr,nr,rr,ir,or,sr,ar={};function cr(){if($n)return Qn;$n=1;var e=mn(),t=_n();return Qn=Object.keys||function(n){return e(n,t)},Qn}function lr(){if(Kn)return Jn;Kn=1;var e=_e();return Jn=e("document","documentElement")}function ur(){if(Zn)return Xn;Zn=1;var e,t=yt(),n=function(){if(Yn)return ar;Yn=1;var e=m(),t=wt(),n=It(),r=yt(),i=pe(),o=cr();return ar.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var s,a=i(t),c=o(t),l=c.length,u=0;l>u;)n.f(e,s=c[u++],a[s]);return e},ar}(),r=_n(),i=Bt(),o=lr(),s=lt(),a=jt(),c="prototype",l="script",u=a("IE_PROTO"),d=function(){},h=function(e){return"<"+l+">"+e+"</"+l+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}p="undefined"!=typeof document?document.domain&&e?f(e):function(){var e,t=s("iframe"),n="java"+l+":";return t.style.display="none",o.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F}():f(e);for(var t=r.length;t--;)delete p[c][r[t]];return p()};return i[u]=!0,Xn=Object.create||function(e,r){var i;return null!==e?(d[c]=t(e),i=new d,d[c]=null,i[u]=e):i=p(),void 0===r?i:n.f(i,r)},Xn}function dr(){if(tr)return er;tr=1;var e=g(),t=o().RegExp;return er=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}function hr(){if(rr)return nr;rr=1;var e=g(),t=o().RegExp;return nr=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}function fr(){if(or)return ir;or=1;var e,t,n=v(),r=le(),i=zn(),o=Hn(),s=qn(),a=nt(),c=ur(),l=zt().get,u=dr(),d=hr(),h=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,p=f,g=r("".charAt),m=r("".indexOf),_=r("".replace),E=r("".slice),w=(t=/b*/g,n(f,e=/a/,"a"),n(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex),y=s.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];return(w||I||y||u||d)&&(p=function(e){var t,r,s,a,u,d,v,L=this,C=l(L),A=i(e),S=C.raw;if(S)return S.lastIndex=L.lastIndex,t=n(p,S,A),L.lastIndex=S.lastIndex,t;var b=C.groups,N=y&&L.sticky,T=n(o,L),k=L.source,O=0,R=A;if(N&&(T=_(T,"y",""),-1===m(T,"g")&&(T+="g"),R=E(A,L.lastIndex),L.lastIndex>0&&(!L.multiline||L.multiline&&"\n"!==g(A,L.lastIndex-1))&&(k="(?: "+k+")",R=" "+R,O++),r=new RegExp("^(?:"+k+")",T)),I&&(r=new RegExp("^"+k+"$(?!\\s)",T)),w&&(s=L.lastIndex),a=n(f,N?r:L,R),N?a?(a.input=E(a.input,O),a[0]=E(a[0],O),a.index=L.lastIndex,L.lastIndex+=a[0].length):L.lastIndex=0:w&&a&&(L.lastIndex=L.global?a.index+a[0].length:s),I&&a&&a.length>1&&n(h,a[0],r,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a&&b)for(a.groups=d=c(null),u=0;u<b.length;u++)d[(v=b[u])[0]]=a[v[1]];return a}),ir=p}function pr(){if(sr)return i;sr=1;var e=jn(),t=fr();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),i}pr();var gr,mr,_r,vr,Er,wr,yr,Ir,Lr,Cr,Ar,Sr,br,Nr,Tr,kr,Or,Rr,Pr,Dr,Mr,xr,Gr,Ur,Wr,Vr,Fr,jr,Br,zr,Hr,qr,Qr,$r={};function Yr(){if(wr)return Er;wr=1;var e=st(),t=ur(),n=It().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),Er=function(e){i[r][e]=!0}}function Jr(){return Ir?yr:(Ir=1,yr={})}function Kr(){if(Sr)return Ar;Sr=1;var e=it(),t=ge(),n=rt(),r=jt(),i=function(){if(Cr)return Lr;Cr=1;var e=g();return Lr=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=r("IE_PROTO"),s=Object,a=s.prototype;return Ar=i?s.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof s?a:null},Ar}function Xr(){if(Nr)return br;Nr=1;var e,t,n,r=g(),i=ge(),o=me(),s=ur(),a=Kr(),c=qt(),l=st(),u=Ze(),d=l("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=a(a(n)))!==Object.prototype&&(e=t):h=!0),!o(e)||r(function(){var t={};return e[d].call(t)!==t})?e={}:u&&(e=s(e)),i(e[d])||c(e,d,function(){return this}),br={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Zr(){if(kr)return Tr;kr=1;var e=It().f,t=it(),n=st()("toStringTag");return Tr=function(r,i,o){r&&!o&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})}}function ei(){if(Rr)return Or;Rr=1;var e=Xr().IteratorPrototype,t=ur(),n=ce(),r=Zr(),i=Jr(),o=function(){return this};return Or=function(s,a,c,l){var u=a+" Iterator";return s.prototype=t(e,{next:n(+!l,c)}),r(s,u,!1,!0),i[u]=o,s}}function ti(){if(Dr)return Pr;Dr=1;var e=le(),t=Ae();return Pr=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function ni(){if(xr)return Mr;xr=1;var e=me();return Mr=function(t){return e(t)||null===t}}function ri(){if(Ur)return Gr;Ur=1;var e=ni(),t=String,n=TypeError;return Gr=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function ii(){if(Vr)return Wr;Vr=1;var e=ti(),t=me(),n=fe(),r=ri();return Wr=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(e){}return function(e,s){return n(e),r(s),t(e)?(o?i(e,s):e.__proto__=s,e):e}}():void 0),Wr}function oi(){if(jr)return Fr;jr=1;var e=jn(),t=v(),n=Ze(),r=Vt(),i=ge(),o=ei(),s=Kr(),a=ii(),c=Zr(),l=Lt(),u=qt(),d=st(),h=Jr(),f=Xr(),p=r.PROPER,g=r.CONFIGURABLE,m=f.IteratorPrototype,_=f.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",y="values",I="entries",L=function(){return this};return Fr=function(r,d,f,v,C,A,S){o(f,d,v);var b,N,T,k=function(e){if(e===C&&M)return M;if(!_&&e&&e in P)return P[e];switch(e){case w:case y:case I:return function(){return new f(this,e)}}return function(){return new f(this)}},O=d+" Iterator",R=!1,P=r.prototype,D=P[E]||P["@@iterator"]||C&&P[C],M=!_&&D||k(C),x="Array"===d&&P.entries||D;if(x&&(b=s(x.call(new r)))!==Object.prototype&&b.next&&(n||s(b)===m||(a?a(b,m):i(b[E])||u(b,E,L)),c(b,O,!0,!0),n&&(h[O]=L)),p&&C===y&&D&&D.name!==y&&(!n&&g?l(P,"name",y):(R=!0,M=function(){return t(D,this)})),C)if(N={values:k(y),keys:A?M:k(w),entries:k(I)},S)for(T in N)(_||R||!(T in P))&&u(P,T,N[T]);else e({target:d,proto:!0,forced:_||R},N);return n&&!S||P[E]===M||u(P,E,M,{name:C}),h[d]=M,N}}function si(){return zr?Br:(zr=1,Br=function(e,t){return{value:e,done:t}})}function ai(){if(qr)return Hr;qr=1;var e=pe(),t=Yr(),n=Jr(),r=zt(),i=It().f,o=oi(),s=si(),a=Ze(),c=m(),l="Array Iterator",u=r.set,d=r.getterFor(l);Hr=o(Array,"Array",function(t,n){u(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)},"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&c&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return Hr}!function(){if(Qr)return $r;Qr=1;var e=o(),t=mr?gr:(mr=1,gr={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}),n=function(){if(vr)return _r;vr=1;var e=lt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return _r=t===Object.prototype?void 0:t}(),r=ai(),i=Lt(),s=Zr(),a=st()("iterator"),c=r.values,l=function(e,n){if(e){if(e[a]!==c)try{i(e,a,c)}catch(t){e[a]=c}if(s(e,n,!0),t[n])for(var o in r)if(e[o]!==r[o])try{i(e,o,r[o])}catch(t){e[o]=r[o]}}};for(var u in t)l(e[u]&&e[u].prototype,u);l(n,"DOMTokenList")}();var ci,li,ui,di,hi,fi,pi,gi,mi,_i,vi,Ei,wi,yi,Ii,Li,Ci,Ai,Si,bi,Ni,Ti,ki,Oi,Ri,Pi,Di,Mi,xi,Gi,Ui,Wi,Vi,Fi,ji,Bi,zi,Hi={},qi={};function Qi(){if(li)return ci;li=1;var e=le(),t=hn(),n=zn(),r=fe(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),a=function(e){return function(a,c){var l,u,d=n(r(a)),h=t(c),f=d.length;return h<0||h>=f?e?"":void 0:(l=o(d,h))<55296||l>56319||h+1===f||(u=o(d,h+1))<56320||u>57343?e?i(d,h):l:e?s(d,h,h+2):u-56320+(l-55296<<10)+65536}};return ci={codeAt:a(!1),charAt:a(!0)}}function $i(){if(hi)return di;hi=1;var e=g(),t=st(),n=m(),r=Ze(),i=t("iterator");return di=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),s="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),s+=n+e}),o.delete("a",2),o.delete("b",void 0),r&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(r||!n)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host})}function Yi(){if(pi)return fi;pi=1;var e=ue(),t=le();return fi=function(n){if("Function"===e(n))return t(n)}}function Ji(){if(mi)return gi;mi=1;var e=Yi(),t=Ae(),n=_(),r=e(e.bind);return gi=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},gi}function Ki(){if(vi)return _i;vi=1;var e=Ht(),t=It();return _i=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)}}function Xi(){if(wi)return Ei;wi=1;var e=ve(),t=TypeError;return Ei=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function Zi(){if(Ci)return Li;Ci=1;var e=v(),t=yt(),n=Se();return Li=function(r,i,o){var s,a;t(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=e(s,r)}catch(e){a=!0,s=e}if("throw"===i)throw o;if(a)throw s;return t(s),o}}function eo(){if(Si)return Ai;Si=1;var e=yt(),t=Zi();return Ai=function(n,r,i,o){try{return o?r(e(i)[0],i[1]):r(i)}catch(e){t(n,"throw",e)}}}function to(){if(Ni)return bi;Ni=1;var e=st(),t=Jr(),n=e("iterator"),r=Array.prototype;return bi=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function no(){if(ki)return Ti;ki=1;var e=le(),t=g(),n=ge(),r=Bn(),i=_e(),o=Ft(),s=function(){},a=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),u=!c.test(s),d=function(e){if(!n(e))return!1;try{return a(s,[],e),!0}catch(e){return!1}},h=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(c,o(e))}catch(e){return!0}};return h.sham=!0,Ti=!a||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function ro(){if(Ri)return Oi;Ri=1;var e=m(),t=It(),n=ce();return Oi=function(r,i,o){e?t.f(r,i,n(0,o)):r[i]=o}}function io(){if(Di)return Pi;Di=1;var e=Bn(),t=Se(),n=he(),r=Jr(),i=st()("iterator");return Pi=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function oo(){if(xi)return Mi;xi=1;var e=v(),t=Ae(),n=yt(),r=Ce(),i=io(),o=TypeError;return Mi=function(s,a){var c=arguments.length<2?i(s):a;if(t(c))return n(e(c,s));throw new o(r(s)+" is not iterable")},Mi}function so(){if(Ui)return Gi;Ui=1;var e=Ji(),t=v(),n=rt(),r=eo(),i=to(),o=no(),s=gn(),a=ro(),c=oo(),l=io(),u=Array;return Gi=function(d){var h=n(d),f=o(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=e(g,p>2?arguments[2]:void 0));var _,v,E,w,y,I,L=l(h),C=0;if(!L||this===u&&i(L))for(_=s(h),v=f?new this(_):u(_);_>C;C++)I=m?g(h[C],C):h[C],a(v,C,I);else for(v=f?new this:[],y=(w=c(h,L)).next;!(E=t(y,w)).done;C++)I=m?r(w,g,[E.value,C],!0):E.value,a(v,C,I);return v.length=C,v},Gi}function ao(){if(Vi)return Wi;Vi=1;var e=le();return Wi=e([].slice)}function co(){if(zi)return Bi;zi=1;var e=TypeError;return Bi=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}var lo,uo,ho,fo,po,go,mo,_o,vo,Eo,wo,yo={};function Io(){if(ho)return uo;ho=1;var e=o(),t=m(),n=Object.getOwnPropertyDescriptor;return uo=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function Lo(){if(po)return fo;po=1;var e=qt();return fo=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}}function Co(){if(mo)return go;mo=1;var e=ao(),t=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var s,a,c=1;c<o;){for(a=c,s=r[c];a&&i(r[a-1],s)>0;)r[a]=r[--a];a!==c++&&(r[a]=s)}else for(var l=t(o/2),u=n(e(r,0,l),i),d=n(e(r,l),i),h=u.length,f=d.length,p=0,g=0;p<h||g<f;)r[p+g]=p<h&&g<f?i(u[p],d[g])<=0?u[p++]:d[g++]:p<h?u[p++]:d[g++];return r};return go=n}function Ao(){if(vo)return _o;vo=1,ai(),function(){if(lo)return yo;lo=1;var e=jn(),t=le(),n=fn(),r=RangeError,i=String.fromCharCode,o=String.fromCodePoint,s=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],a=arguments.length,c=0;a>c;){if(t=+arguments[c++],n(t,1114111)!==t)throw new r(t+" is not a valid code point");o[c]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return s(o,"")}})}();var e=jn(),t=o(),n=Io(),r=_e(),i=v(),s=le(),a=m(),c=$i(),l=qt(),u=Ki(),d=Lo(),h=Zr(),f=ei(),p=zt(),g=Xi(),_=ge(),E=it(),w=Ji(),y=Bn(),I=yt(),L=me(),C=zn(),A=ur(),S=ce(),b=oo(),N=io(),T=si(),k=co(),O=st(),R=Co(),P=O("iterator"),D="URLSearchParams",M=D+"Iterator",x=p.set,G=p.getterFor(D),U=p.getterFor(M),W=n("fetch"),V=n("Request"),F=n("Headers"),j=V&&V.prototype,B=F&&F.prototype,z=t.TypeError,H=t.encodeURIComponent,q=String.fromCharCode,Q=r("String","fromCodePoint"),$=parseInt,Y=s("".charAt),J=s([].join),K=s([].push),X=s("".replace),Z=s([].shift),ee=s([].splice),te=s("".split),ne=s("".slice),re=s(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,se=function(e,t){var n=ne(e,t,t+2);return re(oe,n)?$(n,16):NaN},ae=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ue=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},de=function(e){for(var t=(e=X(e,ie," ")).length,n="",r=0;r<t;){var i=Y(e,r);if("%"===i){if("%"===Y(e,r+1)||r+3>t){n+="%",r++;continue}var o=se(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var s=ae(o);if(0===s)i=q(o);else{if(1===s||s>4){n+="�",r++;continue}for(var a=[o],c=1;c<s&&!(3+ ++r>t||"%"!==Y(e,r));){var l=se(e,r+1);if(l!=l){r+=3;break}if(l>191||l<128)break;K(a,l),r+=2,c++}if(a.length!==s){n+="�";continue}var u=ue(a);null===u?n+="�":i=Q(u)}}n+=i,r++}return n},he=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pe=function(e){return fe[e]},ve=function(e){return X(H(e),he,pe)},Ee=f(function(e,t){x(this,{type:M,target:G(e).entries,index:0,kind:t})},D,function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)},!0),we=function(e){this.entries=[],this.url=null,void 0!==e&&(L(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?ne(e,1):e:C(e)))};we.prototype={type:D,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,s,a,c,l=this.entries,u=N(e);if(u)for(n=(t=b(e,u)).next;!(r=i(n,t)).done;){if(s=(o=b(I(r.value))).next,(a=i(s,o)).done||(c=i(s,o)).done||!i(s,o).done)throw new z("Expected sequence with length 2");K(l,{key:C(a.value),value:C(c.value)})}else for(var d in e)E(e,d)&&K(l,{key:d,value:C(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=te(t,"="),K(r,{key:de(Z(n)),value:de(J(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],K(n,ve(e.key)+"="+ve(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ye=function(){g(this,Ie);var e=x(this,new we(arguments.length>0?arguments[0]:void 0));a||(this.size=e.entries.length)},Ie=ye.prototype;if(d(Ie,{append:function(e,t){var n=G(this);k(arguments.length,2),K(n.entries,{key:C(e),value:C(t)}),a||this.size++,n.updateURL()},delete:function(e){for(var t=G(this),n=k(arguments.length,1),r=t.entries,i=C(e),o=n<2?void 0:arguments[1],s=void 0===o?o:C(o),c=0;c<r.length;){var l=r[c];if(l.key!==i||void 0!==s&&l.value!==s)c++;else if(ee(r,c,1),void 0!==s)break}a||(this.size=r.length),t.updateURL()},get:function(e){var t=G(this).entries;k(arguments.length,1);for(var n=C(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=G(this).entries;k(arguments.length,1);for(var n=C(e),r=[],i=0;i<t.length;i++)t[i].key===n&&K(r,t[i].value);return r},has:function(e){for(var t=G(this).entries,n=k(arguments.length,1),r=C(e),i=n<2?void 0:arguments[1],o=void 0===i?i:C(i),s=0;s<t.length;){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=G(this);k(arguments.length,1);for(var r,i=n.entries,o=!1,s=C(e),c=C(t),l=0;l<i.length;l++)(r=i[l]).key===s&&(o?ee(i,l--,1):(o=!0,r.value=c));o||K(i,{key:s,value:c}),a||(this.size=i.length),n.updateURL()},sort:function(){var e=G(this);R(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=G(this).entries,r=w(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Ee(this,"keys")},values:function(){return new Ee(this,"values")},entries:function(){return new Ee(this,"entries")}},{enumerable:!0}),l(Ie,P,Ie.entries,{name:"entries"}),l(Ie,"toString",function(){return G(this).serialize()},{enumerable:!0}),a&&u(Ie,"size",{get:function(){return G(this).entries.length},configurable:!0,enumerable:!0}),h(ye,D),e({global:!0,constructor:!0,forced:!c},{URLSearchParams:ye}),!c&&_(F)){var Le=s(B.has),Ce=s(B.set),Ae=function(e){if(L(e)){var t,n=e.body;if(y(n)===D)return t=e.headers?new F(e.headers):new F,Le(t,"content-type")||Ce(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),A(e,{body:S(0,C(n)),headers:S(0,t)})}return e};if(_(W)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return W(e,arguments.length>1?Ae(arguments[1]):{})}}),_(V)){var Se=function(e){return g(this,j),new V(e,arguments.length>1?Ae(arguments[1]):{})};j.constructor=Se,Se.prototype=j,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Se})}}return _o={URLSearchParams:ye,getState:G}}wo||(wo=1,function(){if(Eo)return Hi;Eo=1,function(){if(ui)return qi;ui=1;var e=Qi().charAt,t=zn(),n=zt(),r=oi(),i=si(),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",function(e){s(this,{type:o,string:t(e),index:0})},function(){var t,n=a(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))})}();var e,t=jn(),n=m(),r=$i(),i=o(),s=Ji(),a=le(),c=qt(),l=Ki(),u=Xi(),d=it(),h=function(){if(Ii)return yi;Ii=1;var e=m(),t=le(),n=v(),r=g(),i=cr(),o=Wn(),s=ae(),a=rt(),c=de(),l=Object.assign,u=Object.defineProperty,d=t([].concat);return yi=!l||r(function(){if(e&&1!==l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!==l({},t)[r]||i(l({},n)).join("")!==o})?function(t,r){for(var l=a(t),u=arguments.length,h=1,f=o.f,p=s.f;u>h;)for(var g,m=c(arguments[h++]),_=f?d(i(m),f(m)):i(m),v=_.length,E=0;v>E;)g=_[E++],e&&!n(p,m,g)||(l[g]=m[g]);return l}:l,yi}(),f=so(),p=ao(),_=Qi().codeAt,E=function(){if(ji)return Fi;ji=1;var e=le(),t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,s=e(r.exec),a=Math.floor,c=String.fromCharCode,l=e("".charCodeAt),u=e([].join),d=e([].push),h=e("".replace),f=e("".split),p=e("".toLowerCase),g=function(e){return e+22+75*(e<26)},m=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;)e=a(e/35),r+=36;return a(r+36*e/(e+38))},_=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=l(e,n++);if(i>=55296&&i<=56319&&n<r){var o=l(e,n++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),n--)}else d(t,i)}return t}(e);var r,s,h=e.length,f=128,p=0,_=72;for(r=0;r<e.length;r++)(s=e[r])<128&&d(n,c(s));var v=n.length,E=v;for(v&&d(n,"-");E<h;){var w=t;for(r=0;r<e.length;r++)(s=e[r])>=f&&s<w&&(w=s);var y=E+1;if(w-f>a((t-p)/y))throw new o(i);for(p+=(w-f)*y,f=w,r=0;r<e.length;r++){if((s=e[r])<f&&++p>t)throw new o(i);if(s===f){for(var I=p,L=36;;){var C=L<=_?1:L>=_+26?26:L-_;if(I<C)break;var A=I-C,S=36-C;d(n,c(g(C+A%S))),I=a(A/S),L+=36}d(n,c(g(I))),_=m(p,y,E===v),p=0,E++}}p++,f++}return u(n,"")};return Fi=function(e){var t,i,o=[],a=f(h(p(e),r,"."),".");for(t=0;t<a.length;t++)i=a[t],d(o,s(n,i)?"xn--"+_(i):i);return u(o,".")},Fi}(),w=zn(),y=Zr(),I=co(),L=Ao(),C=zt(),A=C.set,S=C.getterFor("URL"),b=L.URLSearchParams,N=L.getState,T=i.URL,k=i.TypeError,O=i.parseInt,R=Math.floor,P=Math.pow,D=a("".charAt),M=a(/./.exec),x=a([].join),G=a(1.1.toString),U=a([].pop),W=a([].push),V=a("".replace),F=a([].shift),j=a("".split),B=a("".slice),z=a("".toLowerCase),H=a([].unshift),q="Invalid scheme",Q="Invalid host",$="Invalid port",Y=/[a-z]/i,J=/[\d+-.a-z]/i,K=/\d/,X=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ce=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=R(e/256);return x(t,".")}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?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=G(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},he=h({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=h({},he,{"#":1,"?":1,"{":1,"}":1}),pe=h({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ge=function(e,t){var n=_(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},me={ftp:21,file:null,http:80,https:443,ws:80,wss:443},_e=function(e,t){var n;return 2===e.length&&M(Y,D(e,0))&&(":"===(n=D(e,1))||!t&&"|"===n)},ve=function(e){var t;return e.length>1&&_e(B(e,0,2))&&(2===e.length||"/"===(t=D(e,2))||"\\"===t||"?"===t||"#"===t)},Ee=function(e){return"."===e||"%2e"===z(e)},we=function(e){return".."===(e=z(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},ye={},Ie={},Le={},Ce={},Ae={},Se={},be={},Ne={},Te={},ke={},Oe={},Re={},Pe={},De={},Me={},xe={},Ge={},Ue={},We={},Ve={},Fe={},je=function(e,t,n){var r,i,o,s=w(e);if(t){if(i=this.parse(s))throw new k(i);this.searchParams=null}else{if(void 0!==n&&(r=new je(n,!0)),i=this.parse(s,null,r))throw new k(i);(o=N(new b)).bindURL(this),this.searchParams=o}};je.prototype={type:"URL",parse:function(t,n,r){var i,o,s,a,c=this,l=n||ye,u=0,h="",g=!1,m=!1,_=!1;for(t=w(t),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=V(t,ie,""),t=V(t,oe,"$1")),t=V(t,se,""),i=f(t);u<=i.length;){switch(o=i[u],l){case ye:if(!o||!M(Y,o)){if(n)return q;l=Le;continue}h+=z(o),l=Ie;break;case Ie:if(o&&(M(J,o)||"+"===o||"-"===o||"."===o))h+=z(o);else{if(":"!==o){if(n)return q;h="",l=Le,u=0;continue}if(n&&(c.isSpecial()!==d(me,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,n)return void(c.isSpecial()&&me[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?l=De:c.isSpecial()&&r&&r.scheme===c.scheme?l=Ce:c.isSpecial()?l=Ne:"/"===i[u+1]?(l=Ae,u++):(c.cannotBeABaseURL=!0,W(c.path,""),l=We)}break;case Le:if(!r||r.cannotBeABaseURL&&"#"!==o)return q;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=p(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Fe;break}l="file"===r.scheme?De:Se;continue;case Ce:if("/"!==o||"/"!==i[u+1]){l=Se;continue}l=Te,u++;break;case Ae:if("/"===o){l=ke;break}l=Ue;continue;case Se:if(c.scheme=r.scheme,o===e)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())l=be;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query="",l=Ve;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.path.length--,l=Ue;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query,c.fragment="",l=Fe}break;case be:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Ue;continue}l=ke}else l=Te;break;case Ne:if(l=Te,"/"!==o||"/"!==D(h,u+1))continue;u++;break;case Te:if("/"!==o&&"\\"!==o){l=ke;continue}break;case ke:if("@"===o){g&&(h="%40"+h),g=!0,s=f(h);for(var v=0;v<s.length;v++){var E=s[v];if(":"!==E||_){var y=ge(E,pe);_?c.password+=y:c.username+=y}else _=!0}h=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(g&&""===h)return"Invalid authority";u-=f(h).length+1,h="",l=Oe}else h+=o;break;case Oe:case Re:if(n&&"file"===c.scheme){l=xe;continue}if(":"!==o||m){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===h)return Q;if(n&&""===h&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(h))return a;if(h="",l=Ge,n)return;continue}"["===o?m=!0:"]"===o&&(m=!1),h+=o}else{if(""===h)return Q;if(a=c.parseHost(h))return a;if(h="",l=Pe,n===Re)return}break;case Pe:if(!M(K,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||n){if(""!==h){var I=O(h,10);if(I>65535)return $;c.port=c.isSpecial()&&I===me[c.scheme]?null:I,h=""}if(n)return;l=Ge;continue}return $}h+=o;break;case De:if(c.scheme="file","/"===o||"\\"===o)l=Me;else{if(!r||"file"!==r.scheme){l=Ue;continue}switch(o){case e:c.host=r.host,c.path=p(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=p(r.path),c.query="",l=Ve;break;case"#":c.host=r.host,c.path=p(r.path),c.query=r.query,c.fragment="",l=Fe;break;default:ve(x(p(i,u),""))||(c.host=r.host,c.path=p(r.path),c.shortenPath()),l=Ue;continue}}break;case Me:if("/"===o||"\\"===o){l=xe;break}r&&"file"===r.scheme&&!ve(x(p(i,u),""))&&(_e(r.path[0],!0)?W(c.path,r.path[0]):c.host=r.host),l=Ue;continue;case xe:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!n&&_e(h))l=Ue;else if(""===h){if(c.host="",n)return;l=Ge}else{if(a=c.parseHost(h))return a;if("localhost"===c.host&&(c.host=""),n)return;h="",l=Ge}continue}h+=o;break;case Ge:if(c.isSpecial()){if(l=Ue,"/"!==o&&"\\"!==o)continue}else if(n||"?"!==o)if(n||"#"!==o){if(o!==e&&(l=Ue,"/"!==o))continue}else c.fragment="",l=Fe;else c.query="",l=Ve;break;case Ue:if(o===e||"/"===o||"\\"===o&&c.isSpecial()||!n&&("?"===o||"#"===o)){if(we(h)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||W(c.path,"")):Ee(h)?"/"===o||"\\"===o&&c.isSpecial()||W(c.path,""):("file"===c.scheme&&!c.path.length&&_e(h)&&(c.host&&(c.host=""),h=D(h,0)+":"),W(c.path,h)),h="","file"===c.scheme&&(o===e||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)F(c.path);"?"===o?(c.query="",l=Ve):"#"===o&&(c.fragment="",l=Fe)}else h+=ge(o,fe);break;case We:"?"===o?(c.query="",l=Ve):"#"===o?(c.fragment="",l=Fe):o!==e&&(c.path[0]+=ge(o,ue));break;case Ve:n||"#"!==o?o!==e&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ge(o,ue)):(c.fragment="",l=Fe);break;case Fe:o!==e&&(c.fragment+=ge(o,he))}u++}},parseHost:function(e){var t,n,r;if("["===D(e,0)){if("]"!==D(e,e.length-1))return Q;if(t=function(e){var t,n,r,i,o,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,d=0,h=function(){return D(e,d)};if(":"===h()){if(":"!==D(e,1))return;d+=2,u=++l}for(;h();){if(8===l)return;if(":"!==h()){for(t=n=0;n<4&&M(te,h());)t=16*t+O(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!M(K,h()))return;for(;M(K,h());){if(o=O(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}c[l]=256*c[l]+i,2!==++r&&4!==r||l++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;d++,u=++l}}if(null!==u)for(s=l-u,l=7;0!==l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!==l)return;return c}(B(e,1,-1)),!t)return Q;this.host=t}else if(this.isSpecial()){if(e=E(e),M(ne,e))return Q;if(t=function(e){var t,n,r,i,o,s,a,c=j(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(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"===D(i,0)&&(o=M(X,i)?16:8,i=B(i,8===o?1:2)),""===i)s=0;else{if(!M(10===o?ee:8===o?Z:te,i))return e;s=O(i,o)}W(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=U(n),r=0;r<n.length;r++)a+=n[r]*P(256,3-r);return a}(e),null===t)return Q;this.host=t}else{if(M(re,e))return Q;for(t="",n=f(e),r=0;r<n.length;r++)t+=ge(n[r],ue);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(me,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&_e(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ce(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+x(s,"/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new k(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Be(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ce(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(w(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ge(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(w(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ge(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ce(e):ce(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?"":ce(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getPort:function(){var e=this.port;return null===e?"":w(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=w(e))?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+x(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ge))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=w(e))?this.query=null:("?"===D(e,0)&&(e=B(e,1)),this.query="",this.parse(e,Ve)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=w(e))?("#"===D(e,0)&&(e=B(e,1)),this.fragment="",this.parse(e,Fe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Be=function(e){var t=u(this,ze),r=I(arguments.length,1)>1?arguments[1]:void 0,i=A(t,new je(e,!1,r));n||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},ze=Be.prototype,He=function(e,t){return{get:function(){return S(this)[e]()},set:t&&function(e){return S(this)[t](e)},configurable:!0,enumerable:!0}};if(n&&(l(ze,"href",He("serialize","setHref")),l(ze,"origin",He("getOrigin")),l(ze,"protocol",He("getProtocol","setProtocol")),l(ze,"username",He("getUsername","setUsername")),l(ze,"password",He("getPassword","setPassword")),l(ze,"host",He("getHost","setHost")),l(ze,"hostname",He("getHostname","setHostname")),l(ze,"port",He("getPort","setPort")),l(ze,"pathname",He("getPathname","setPathname")),l(ze,"search",He("getSearch","setSearch")),l(ze,"searchParams",He("getSearchParams")),l(ze,"hash",He("getHash","setHash"))),c(ze,"toJSON",function(){return S(this).serialize()},{enumerable:!0}),c(ze,"toString",function(){return S(this).serialize()},{enumerable:!0}),T){var qe=T.createObjectURL,Qe=T.revokeObjectURL;qe&&c(Be,"createObjectURL",s(qe,T)),Qe&&c(Be,"revokeObjectURL",s(Qe,T))}y(Be,"URL"),t({global:!0,constructor:!0,forced:!r,sham:!n},{URL:Be})}());var So,bo,No={};!function(){if(So)return No;So=1;var e=jn(),t=v();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),bo||(bo=1,Ao());var To,ko={};!function(){if(To)return ko;To=1;var e=qt(),t=le(),n=zn(),r=co(),i=URLSearchParams,o=i.prototype,s=t(o.append),a=t(o.delete),c=t(o.forEach),l=t([].push),u=new i("a=1&a=2&b=3");u.delete("a",1),u.delete("b",void 0),u+""!="a=2"&&e(o,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=[];c(this,function(e,t){l(o,{key:t,value:e})}),r(t,1);for(var u,d=n(e),h=n(i),f=0,p=0,g=!1,m=o.length;f<m;)u=o[f++],g||u.key===d?(g=!0,a(this,u.key)):p++;for(;p<m;)(u=o[p++]).key===d&&u.value===h||s(this,u.key,u.value)},{enumerable:!0,unsafe:!0})}();var Oo,Ro={};!function(){if(Oo)return Ro;Oo=1;var e=qt(),t=le(),n=zn(),r=co(),i=URLSearchParams,o=i.prototype,s=t(o.getAll),a=t(o.has),c=new i("a=1");!c.has("a",2)&&c.has("a",void 0)||e(o,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=s(this,e);r(t,1);for(var c=n(i),l=0;l<o.length;)if(o[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})}();var Po,Do={};function Mo(e,t){this.v=e,this.k=t}function xo(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Go(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Mo(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Uo(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Wo(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Wo(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Wo=function(e){this.s=e,this.n=e.next},Wo.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Wo(e)}function Vo(e){return new Mo(e,0)}function Fo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jo(e,t){return e.get(xo(e,t))}function Bo(e,t,n){Fo(e,t),t.set(e,n)}function zo(e,t,n){return e.set(xo(e,t),n),n}function Ho(e,t,n){return n(xo(e,t))}function qo(e,t){Fo(e,t),t.add(e)}function Qo(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(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 Yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach(function(t){Qo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jo(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ko(e,t)}function Xo(e,t,n){t||(t=[]);var r=t.length++;return Object.defineProperty({},"_",{set:function(i){t[r]=i,e.apply(n,t)}})}function Zo(e){return function(){return new es(e.apply(this,arguments))}}function es(e){var t,n;function r(t,n){try{var o=e[t](n),s=o.value,a=s instanceof Mo;Promise.resolve(a?s.v:s).then(function(n){if(a){var c="return"===t?"return":"next";if(!s.k||n.done)return r(c,n);n=e[c](n).value}i(o.done?"return":"normal",n)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,s){var a={key:e,arg:i,resolve:o,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function ts(){ts=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),Ko(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ko(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=o[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},ts.apply(this,arguments)}!function(){if(Po)return Do;Po=1;var e=m(),t=le(),n=Ki(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!("size"in r)&&n(r,"size",{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})}(),es.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},es.prototype.next=function(e){return this._invoke("next",e)},es.prototype.throw=function(e){return this._invoke("throw",e)},es.prototype.return=function(e){return this._invoke("return",e)};var ns,rs,is,os,ss,as,cs,ls,us,ds,hs,fs,ps,gs,ms,_s={};function vs(){if(rs)return ns;rs=1;var e=_(),t=Function.prototype,n=t.apply,r=t.call;return ns="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),ns}function Es(){if(as)return ss;as=1;var e=Qi().charAt;return ss=function(t,n,r){return n+(r?e(t,n).length:1)},ss}function ws(){if(ls)return cs;ls=1;var e=le(),t=rt(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return cs=function(e,c,l,u,d,h){var f=l+e.length,p=u.length,g=a;return void 0!==d&&(d=t(d),g=s),i(h,g,function(t,i){var s;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return o(c,0,l);case"'":return o(c,f);case"<":s=d[o(i,1,-1)];break;default:var a=+i;if(0===a)return t;if(a>p){var h=n(a/10);return 0===h?t:h<=p?void 0===u[h-1]?r(i,1):u[h-1]+r(i,1):t}s=u[a-1]}return void 0===s?"":s})},cs}function ys(){if(ds)return us;ds=1;var e=o(),t=g(),n=e.RegExp,r=!t(function(){var e=!0;try{n(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||r!==i});return us={correct:r}}function Is(){if(fs)return hs;fs=1;var e=v(),t=it(),n=ve(),r=ys(),i=Hn(),o=RegExp.prototype;return hs=r.correct?function(e){return e.flags}:function(s){return r.correct||!n(o,s)||t(s,"flags")?s.flags:e(i,s)}}!function(){if(ms)return _s;ms=1;var e=vs(),t=v(),n=le(),r=function(){if(os)return is;os=1,pr();var e=v(),t=qt(),n=fr(),r=g(),i=st(),o=Lt(),s=i("species"),a=RegExp.prototype;return is=function(c,l,u,d){var h=i(c),f=!r(function(){var e={};return e[h]=function(){return 7},7!==""[c](e)}),p=f&&!r(function(){var e=!1,t=/a/;if("split"===c){var n={};n[s]=function(){return t},(t={constructor:n,flags:""})[h]=/./[h]}return t.exec=function(){return e=!0,null},t[h](""),!e});if(!f||!p||u){var g=/./[h],m=l(h,""[c],function(t,r,i,o,s){var c=r.exec;return c===n||c===a.exec?f&&!s?{done:!0,value:e(g,r,i,o)}:{done:!0,value:e(t,i,r,o)}:{done:!1}});t(String.prototype,c,m[0]),t(a,h,m[1])}d&&o(a[h],"sham",!0)},is}(),i=g(),o=yt(),s=ge(),a=me(),c=hn(),l=pn(),u=zn(),d=fe(),h=Es(),f=Se(),p=ws(),m=Is(),_=function(){if(gs)return ps;gs=1;var e=v(),t=yt(),n=ge(),r=ue(),i=fr(),o=TypeError;return ps=function(s,a){var c=s.exec;if(n(c)){var l=e(c,s,a);return null!==l&&t(l),l}if("RegExp"===r(s))return e(i,s,a);throw new o("RegExp#exec called on incompatible receiver")},ps}(),E=st()("replace"),w=Math.max,y=Math.min,I=n([].concat),L=n([].push),C=n("".indexOf),A=n("".slice),S=function(e){return void 0===e?e:String(e)},b="$0"==="a".replace(/./,"$0"),N=!!/./[E]&&""===/./[E]("a","$0");r("replace",function(n,r,i){var g=N?"$":"$0";return[function(e,n){var i=d(this),o=a(e)?f(e,E):void 0;return o?t(o,e,i,n):t(r,u(i),e,n)},function(t,n){var a=o(this),d=u(t);if("string"==typeof n&&-1===C(n,g)&&-1===C(n,"$<")){var f=i(r,a,d,n);if(f.done)return f.value}var v=s(n);v||(n=u(n));var E,b=u(m(a)),N=-1!==C(b,"g");N&&(E=-1!==C(b,"u"),a.lastIndex=0);for(var T,k=[];null!==(T=_(a,d))&&(L(k,T),N);)""===u(T[0])&&(a.lastIndex=h(d,l(a.lastIndex),E));for(var O="",R=0,P=0;P<k.length;P++){for(var D,M=u((T=k[P])[0]),x=w(y(c(T.index),d.length),0),G=[],U=1;U<T.length;U++)L(G,S(T[U]));var W=T.groups;if(v){var V=I([M],G,x,d);void 0!==W&&L(V,W),D=u(e(n,void 0,V))}else D=p(M,d,x,G,W,n);x>=R&&(O+=A(d,R,x)+D,R=x+M.length)}return O+A(d,R)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!b||N)}();var Ls,Cs,As,Ss={};function bs(){if(Cs)return Ls;Cs=1;var e=ue();return Ls=Array.isArray||function(t){return"Array"===e(t)}}!function(){if(As)return Ss;As=1;var e=jn(),t=le(),n=bs(),r=t([].reverse),i=[1,2];e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}();var Ns,Ts={};!function(){if(Ns)return Ts;Ns=1;var e=jn(),t=o(),n=Xi(),r=yt(),i=ge(),s=Kr(),a=Ki(),c=ro(),l=g(),u=it(),d=st(),h=Xr().IteratorPrototype,f=m(),p=Ze(),_="constructor",v="Iterator",E=d("toStringTag"),w=TypeError,y=t[v],I=p||!i(y)||y.prototype!==h||!l(function(){y({})}),L=function(){if(n(this,h),s(this)===h)throw new w("Abstract class Iterator not directly constructable")},C=function(e,t){f?a(h,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===h)throw new w("You can't redefine this property");u(this,e)?this[e]=t:c(this,e,t)}}):h[e]=t};u(h,E)||C(E,v),!I&&u(h,_)&&h[_]!==Object||C(_,L),L.prototype=h,e({global:!0,constructor:!0,forced:I},{Iterator:L})}();var ks,Os,Rs,Ps,Ds,Ms,xs,Gs,Us,Ws,Vs,Fs={};function js(){return Os?ks:(Os=1,ks=function(e){return{iterator:e,next:e.next,done:!1}})}function Bs(){if(Ps)return Rs;Ps=1;var e=Zi();return Rs=function(t,n,r){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{r=e(t[i].iterator,n,r)}catch(e){n="throw",r=e}if("throw"===n)throw r;return r},Rs}function zs(){if(Ms)return Ds;Ms=1;var e=v(),t=ur(),n=Lt(),r=Lo(),i=st(),o=zt(),s=Se(),a=Xr().IteratorPrototype,c=si(),l=Zi(),u=Bs(),d=i("toStringTag"),h="IteratorHelper",f="WrapForValidIterator",p="normal",g="throw",m=o.set,_=function(n){var i=o.getterFor(n?f:h);return r(t(a),{next:function(){var e=i(this);if(n)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=i(this),r=t.iterator;if(t.done=!0,n){var o=s(r,"return");return o?e(o,r):c(void 0,!0)}if(t.inner)try{l(t.inner.iterator,p)}catch(e){return l(r,g,e)}if(t.openIters)try{u(t.openIters,p)}catch(e){return l(r,g,e)}return r&&l(r,p),c(void 0,!0)}})},E=_(!0),w=_(!1);return n(w,d,"Iterator Helper"),Ds=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?f:h,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return r.prototype=t?E:w,r}}function Hs(){return Gs?xs:(Gs=1,xs=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}})}function qs(){if(Ws)return Us;Ws=1;var e=o();return Us=function(t,n){var r=e.Iterator,i=r&&r.prototype,o=i&&i[t],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof n||(s=!1)}if(!s)return o}}!function(){if(Vs)return Fs;Vs=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=zs(),s=eo(),a=Zi(),c=Hs(),l=qs(),u=Ze(),d=!u&&!c("map",function(){}),h=!u&&!d&&l("map",TypeError),f=u||d||h,p=o(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return s(e,this.mapper,[n.value,this.counter++],!0)});e({target:"Iterator",proto:!0,real:!0,forced:f},{map:function(e){r(this);try{n(e)}catch(e){a(this,"throw",e)}return h?t(h,this,e):new p(i(this),{mapper:e})}})}();const Qs=e=>e.split(".").reverse().map(encodeURIComponent).join("/"),$s=["http:","https:"],Ys=e=>$s.includes(e);var Js=new WeakMap,Ks=new WeakMap,Xs=new WeakMap;class Zs{constructor(e,t,n,r,i,o){Bo(this,Js,e=>e.startsWith("#")),Bo(this,Ks,e=>e.hostname===this.proxyApiUrl.hostname),Bo(this,Xs,e=>`${e.pathname}${e.search}${e.hash}`.replace(/^.*?\/proxy\/1\/[^/]+/i,"")),Qo(this,"proxify",(e,t={})=>{if(!e)return e;if(jo(Js,this).call(this,e.toString()))return e;const n=Yo(Yo(Yo({},this.queryParams),this.getOrigin?{origin:this.getOrigin()}:{}),t);try{const t=new URL(e,this.baseUrl);if(!Ys(t.protocol))return e;const r=((e,t)=>{const{hostname:n,protocol:r,pathname:i,search:o,port:s,username:a,password:c,hash:l}=new URL(e),u=Qs(n),d=new URL(`${u}/${r}${i}${l}`,"http://placeholder.base");o&&d.searchParams.set("search",o.replace("?","")),s&&d.searchParams.set("port",s),a&&d.searchParams.set("username",a),c&&d.searchParams.set("password",c);for(const[e,n]of Object.entries(t||{}))d.searchParams.set(e,n);return`${d.pathname}${d.search}${d.hash}`})(jo(Ks,this).call(this,t)?this.unproxify(t.toString()):t.toString(),n);return new URL(`.${r}`,this.proxyApiUrl).toString()}catch(t){return e}}),Qo(this,"unproxify",e=>{if(!e)return e;if(jo(Js,this).call(this,e.toString()))return e;try{const t=new URL(e,this.baseUrl);if(!Ys(t.protocol))return e;if(!jo(Ks,this).call(this,t))return e;const n=(e=>{const{pathname:t,hash:n,searchParams:r}=new URL(e,"http://placeholder.base"),i=t.split("/"),o=i.findIndex(e=>"http:"===e||"https:"===e),s=i[o],a=i.slice(1,o).reverse().map(decodeURIComponent),c=i.slice(o+1,i.length),l=r.get("search"),u=r.get("port"),d=r.get("username"),h=r.get("password"),f=a.join("."),p=c.join("/");return new URL(`${s}//${d&&h?`${d}:${h}@`:""}${f}${u?`:${u}`:""}/${p}${l?`?${l}`:""}${n}`)})(jo(Xs,this).call(this,t));return n.toString()}catch(t){return e}}),this.proxyApiUrl=new URL(t,e),this.queryParams=i?Yo({},i):{},n&&(this.queryParams.access_token=n),this.baseUrl=r,this.getOrigin=o}}const ea="./proxy/1/universal/";var ta,na,ra,ia,oa,sa,aa,ca,la,ua,da,ha,fa,pa,ga,ma,_a,va,Ea,wa,ya,Ia,La,Ca,Aa,Sa,ba,Na,Ta,ka,Oa,Ra,Pa,Da,Ma,xa,Ga,Ua,Wa,Va,Fa,ja,Ba,za,Ha,qa,Qa,$a={};function Ya(){if(na)return ta;na=1;var e=It().f;return ta=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function Ja(){if(ia)return ra;ia=1;var e=ge(),t=me(),n=ii();return ra=function(r,i,o){var s,a;return n&&e(s=i.constructor)&&s!==o&&t(a=s.prototype)&&a!==o.prototype&&n(r,a),r}}function Ka(){if(sa)return oa;sa=1;var e=zn();return oa=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},oa}function Xa(){if(ca)return aa;ca=1;var e=me(),t=Lt();return aa=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},aa}function Za(){if(ua)return la;ua=1;var e=le(),t=Error,n=e("".replace),r=String(new t("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(r);return la=function(e,r){if(o&&"string"==typeof e&&!t.prepareStackTrace)for(;r--;)e=n(e,i,"");return e}}function ec(){if(ha)return da;ha=1;var e=g(),t=ce();return da=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}function tc(){if(ma)return ga;ma=1;var e=_e(),t=it(),n=Lt(),r=ve(),i=ii(),o=Vn(),s=Ya(),a=Ja(),c=Ka(),l=Xa(),u=function(){if(pa)return fa;pa=1;var e=Lt(),t=Za(),n=ec(),r=Error.captureStackTrace;return fa=function(i,o,s,a){n&&(r?r(i,o):e(i,"stack",t(s,a)))},fa}(),d=m(),h=Ze();return ga=function(f,p,g,m){var _="stackTraceLimit",v=m?2:1,E=f.split("."),w=E[E.length-1],y=e.apply(null,E);if(y){var I=y.prototype;if(!h&&t(I,"cause")&&delete I.cause,!g)return y;var L=e("Error"),C=p(function(e,t){var i=c(m?t:e,void 0),o=m?new y(e):new y;return void 0!==i&&n(o,"message",i),u(o,C,o.stack,2),this&&r(I,this)&&a(o,this,C),arguments.length>v&&l(o,arguments[v]),o});if(C.prototype=I,"Error"!==w?i?i(C,L):o(C,L,{name:!0}):d&&_ in y&&(s(C,y,_),s(C,y,"prepareStackTrace")),o(C,y),!h)try{I.name!==w&&n(I,"name",w),I.constructor=C}catch(e){}return C}},ga}function nc(){return Ea?va:(Ea=1,va=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)})}function rc(){if(ya)return wa;ya=1;var t="object"==typeof e&&e&&e.Object===Object&&e;return wa=t}function ic(){if(La)return Ia;La=1;var e=rc(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ia=n}function oc(){if(Oa)return ka;Oa=1;var e=ic().Symbol;return ka=e}function sc(){if(Ga)return xa;Ga=1;var e=oc(),t=function(){if(Pa)return Ra;Pa=1;var e=oc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Ra=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(Ma)return Da;Ma=1;var e=Object.prototype.toString;return Da=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return xa=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ac(){return Wa?Ua:(Wa=1,Ua=function(e){return null!=e&&"object"==typeof e})}function cc(){if(Fa)return Va;Fa=1;var e=sc(),t=ac();return Va=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function lc(){if(Ha)return za;Ha=1;var e=nc(),t=function(){if(Aa)return Ca;Aa=1;var e=ic();return Ca=function(){return e.Date.now()}}(),n=function(){if(Ba)return ja;Ba=1;var e=function(){if(Ta)return Na;Ta=1;var e=function(){if(ba)return Sa;ba=1;var e=/\s/;return Sa=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return Na=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}(),t=nc(),n=cc(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return ja=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var c="function"==typeof a.valueOf?a.valueOf():a;a=t(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var l=i.test(a);return l||o.test(a)?s(a.slice(2),l?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return za=function(o,s,a){var c,l,u,d,h,f,p=0,g=!1,m=!1,_=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function v(e){var t=c,n=l;return c=l=void 0,p=e,d=o.apply(n,t)}function E(e){var t=e-f;return void 0===f||t>=s||t<0||m&&e-p>=u}function w(){var e=t();if(E(e))return y(e);h=setTimeout(w,function(e){var t=s-(e-f);return m?i(t,u-(e-p)):t}(e))}function y(e){return h=void 0,_&&c?v(e):(c=l=void 0,d)}function I(){var e=t(),n=E(e);if(c=arguments,l=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(w,s),g?v(e):d}(f);if(m)return clearTimeout(h),h=setTimeout(w,s),v(f)}return void 0===h&&(h=setTimeout(w,s)),d}return s=n(s)||0,e(a)&&(g=!!a.leading,u=(m="maxWait"in a)?r(n(a.maxWait)||0,s):u,_="trailing"in a?!!a.trailing:_),I.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},I.flush=function(){return void 0===h?d:y(t())},I},za}!function(){if(_a)return $a;_a=1;var e=jn(),t=o(),n=vs(),r=tc(),i="WebAssembly",s=t[i],a=7!==new Error("e",{cause:7}).cause,c=function(t,n){var i={};i[t]=r(t,n,a),e({global:!0,constructor:!0,arity:1,forced:a},i)},l=function(t,n){if(s&&s[t]){var o={};o[t]=r(i+"."+t,n,a),e({target:i,stat:!0,constructor:!0,arity:1,forced:a},o)}};c("Error",function(e){return function(t){return n(e,this,arguments)}}),c("EvalError",function(e){return function(t){return n(e,this,arguments)}}),c("RangeError",function(e){return function(t){return n(e,this,arguments)}}),c("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),c("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),c("TypeError",function(e){return function(t){return n(e,this,arguments)}}),c("URIError",function(e){return function(t){return n(e,this,arguments)}}),l("CompileError",function(e){return function(t){return n(e,this,arguments)}}),l("LinkError",function(e){return function(t){return n(e,this,arguments)}}),l("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})}();var uc=function(){if(Qa)return qa;Qa=1;var e=lc(),t=nc();return qa=function(n,r,i){var o=!0,s=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),e(n,r,{leading:o,maxWait:r,trailing:s})}}();const dc=t(uc),hc=dc(e=>{window.location.href=e},50,{leading:!0,trailing:!1});class fc{item(){return null}contains(){return!1}get length(){return 0}}const pc=(e,{proxify:t,unproxify:n})=>{const r=Object.assign({},e,{toString:function(){return""}});return new Proxy(r,{get:function(r,i){const o=n(e.href),s=new URL(o);return i===Symbol.toPrimitive?e=>s.toString():"toString"===i?function(){return s.toString()}:"replace"===i?function(n){return e.replace(t(n))}:"assign"===i?function(n){return e.assign(t(n))}:"reload"===i?function(){return e.reload()}:"ancestorOrigins"===i?new fc:void 0!==s[i]?s[i]:r[i]},set:function(e,n,r){return"href"===n?(hc(t(r)),!0):(e[n]=r,!0)}})};var gc,mc={};!function(){if(gc)return mc;gc=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=zs(),s=eo(),a=Ze(),c=Zi(),l=Hs(),u=qs(),d=!a&&!l("filter",function(){}),h=!a&&!d&&u("filter",TypeError),f=a||d||h,p=o(function(){for(var e,n,i=this.iterator,o=this.predicate,a=this.next;;){if(e=r(t(a,i)),this.done=!!e.done)return;if(n=e.value,s(i,o,[n,this.counter++],!0))return n}});e({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return h?t(h,this,e):new p(i(this),{predicate:e})}})}();var _c,vc,Ec,wc={};function yc(){if(vc)return _c;vc=1;var e=Ji(),t=v(),n=yt(),r=Ce(),i=to(),o=gn(),s=ve(),a=oo(),c=io(),l=Zi(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},h=d.prototype;return _c=function(f,p,g){var m,_,v,E,w,y,I,L=g&&g.that,C=!(!g||!g.AS_ENTRIES),A=!(!g||!g.IS_RECORD),S=!(!g||!g.IS_ITERATOR),b=!(!g||!g.INTERRUPTED),N=e(p,L),T=function(e){return m&&l(m,"normal"),new d(!0,e)},k=function(e){return C?(n(e),b?N(e[0],e[1],T):N(e[0],e[1])):b?N(e,T):N(e)};if(A)m=f.iterator;else if(S)m=f;else{if(!(_=c(f)))throw new u(r(f)+" is not iterable");if(i(_)){for(v=0,E=o(f);E>v;v++)if((w=k(f[v]))&&s(h,w))return w;return new d(!1)}m=a(f,_)}for(y=A?f.next:m.next;!(I=t(y,m)).done;){try{w=k(I.value)}catch(e){l(m,"throw",e)}if("object"==typeof w&&w&&s(h,w))return w}return new d(!1)}}!function(){if(Ec)return wc;Ec=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("forEach",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{forEach:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})}();var Ic,Lc,Cc,Ac,Sc,bc,Nc,Tc={};function kc(){if(Ac)return Cc;Ac=1;var e=le(),t=it(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=e("".charAt),s=e("".slice),a=e(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;return Cc=function(e,d){for(var h=!0,f="";d<e.length;){var p=o(e,d);if("\\"===p){var g=s(e,d,d+2);if(t(c,g))f+=c[g],d+=2;else{if("\\u"!==g)throw new n('Unknown escape sequence: "'+g+'"');var m=s(e,d+=2,d+4);if(!a(l,m))throw new n("Bad Unicode escape at: "+d);f+=i(r(m,16)),d+=4}}else{if('"'===p){h=!1,d++;break}if(a(u,p))throw new n("Bad control character in string literal at: "+d);f+=p,d++}}if(h)throw new n("Unterminated string at: "+d);return{value:f,end:d}},Cc}!function(){if(Nc)return Tc;Nc=1;var e=jn(),t=_e(),n=vs(),r=v(),i=le(),o=g(),s=bs(),a=ge(),c=function(){if(Lc)return Ic;Lc=1;var e=me(),t=zt().get;return Ic=function(n){if(!e(n))return!1;var r=t(n);return!!r&&"RawJSON"===r.type},Ic}(),l=Le(),u=ue(),d=zn(),h=ao(),f=kc(),p=ot(),m=ye(),_=function(){if(bc)return Sc;bc=1;var e=g();return Sc=!e(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}(),E=String,w=t("JSON","stringify"),y=i(/./.exec),I=i("".charAt),L=i("".charCodeAt),C=i("".replace),A=i("".slice),S=i([].push),b=i(1.1.toString),N=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,O=p(),R=O.length,P=!m||o(function(){var e=t("Symbol")("stringify detection");return"[null]"!==w([e])||"{}"!==w({a:e})||"{}"!==w(Object(e))}),D=o(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),M=P?function(e,t){var i=h(arguments),o=G(t);if(a(o)||void 0!==e&&!l(e))return i[1]=function(e,t){if(a(o)&&(t=r(o,this,E(e),t)),!l(t))return t},n(w,null,i)}:w,x=function(e,t,n){var r=I(n,t-1),i=I(n,t+1);return y(T,e)&&!y(k,i)||y(k,e)&&!y(T,r)?"\\u"+b(L(e,0),16):e},G=function(e){if(a(e))return e;if(s(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?S(n,i):"number"!=typeof i&&"Number"!==u(i)&&"String"!==u(i)||S(n,d(i))}var o=n.length,c=!0;return function(e,t){if(c)return c=!1,t;if(s(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};w&&e({target:"JSON",stat:!0,arity:3,forced:P||D||!_},{stringify:function(e,t,n){var i=G(t),o=[],s=M(e,function(e,t){var n=a(i)?r(i,this,E(e),t):t;return!_&&c(n)?O+(S(o,n.rawJSON)-1):n},n);if("string"!=typeof s)return s;if(D&&(s=C(s,N,x)),_)return s;for(var l="",u=s.length,d=0;d<u;d++){var h=I(s,d);if('"'===h){var p=f(s,++d).end-1,g=A(s,d,p);l+=A(g,0,R)===O?o[A(g,R)]:'"'+g+'"',d=p}else l+=h}return l}})}();var Oc,Rc,Pc={};Rc||(Rc=1,function(){if(Oc)return Pc;Oc=1;var e=jn(),t=m(),n=o(),r=_e(),i=le(),s=v(),a=ge(),c=me(),l=bs(),u=it(),d=zn(),h=gn(),f=ro(),p=g(),_=kc(),E=ye(),w=n.JSON,y=n.Number,I=n.SyntaxError,L=w&&w.parse,C=r("Object","keys"),A=Object.getOwnPropertyDescriptor,S=i("".charAt),b=i("".slice),N=i(/./.exec),T=i([].push),k=/^\d$/,O=/^[1-9]$/,R=/^[\d-]$/,P=/^[\t\n\r ]$/,D=function(e,t,n,r){var i,o,a,d,f,p=e[t],g=r&&p===r.value,m=g&&"string"==typeof r.source?{source:r.source}:{};if(c(p)){var _=l(p),v=g?r.nodes:_?[]:{};if(_)for(i=v.length,a=h(p),d=0;d<a;d++)M(p,d,D(p,""+d,n,d<i?v[d]:void 0));else for(o=C(p),a=h(o),d=0;d<a;d++)f=o[d],M(p,f,D(p,f,n,u(v,f)?v[f]:void 0))}return s(n,e,t,p,m)},M=function(e,n,r){if(t){var i=A(e,n);if(i&&!i.configurable)return}void 0===r?delete e[n]:f(e,n,r)},x=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},G=function(e,t){this.source=e,this.index=t};G.prototype={fork:function(e){return new G(this.source,e)},parse:function(){var e=this.source,t=this.skip(P,this.index),n=this.fork(t),r=S(e,t);if(N(R,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new I('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new x(t,r,e?null:b(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===S(e,t)&&!n){t++;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(P,t),o=this.fork(t).parse(),f(i,s,o),f(r,s,o.value),t=this.until([",","}"],o.end);var a=S(e,t);if(","===a)n=!0,t++;else if("}"===a){t++;break}}return this.node(1,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(P,t),"]"===S(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(T(i,o),T(r,o.value),t=this.until([",","]"],o.end),","===S(e,t))n=!0,t++;else if("]"===S(e,t)){t++;break}}return this.node(1,r,this.index,t,i)},string:function(){var e=this.index,t=_(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===S(e,n)&&n++,"0"===S(e,n))n++;else{if(!N(O,S(e,n)))throw new I("Failed to parse number at: "+n);n=this.skip(k,n+1)}if(!("."===S(e,n)&&(n=this.skip(k,n+1)),"e"!==S(e,n)&&"E"!==S(e,n)||(n++,"+"!==S(e,n)&&"-"!==S(e,n)||n++,n!==(n=this.skip(k,n)))))throw new I("Failed to parse number's exponent value at: "+n);return this.node(0,y(b(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(b(this.source,n,r)!==t)throw new I("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&N(e,S(n,t));t++);return t},until:function(e,t){t=this.skip(P,t);for(var n=S(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new I('Unexpected character: "'+n+'" at: '+t)}};var U=p(function(){var e,t="9007199254740993";return L(t,function(t,n,r){e=r.source}),e!==t}),W=E&&!p(function(){return 1/L("-0 \t")!=-1/0});e({target:"JSON",stat:!0,forced:U},{parse:function(e,t){return W&&!a(t)?L(e):function(e,t){e=d(e);var n=new G(e,0),r=n.parse(),i=r.value,o=n.skip(P,r.end);if(o<e.length)throw new I('Unexpected extra character: "'+S(e,o)+'" after the parsed data at: '+o);return a(t)?D({"":i},"",t,r):i}(e,t)}})}());const Dc=e=>Math.abs(Date.now()-e.timestamp)>864e6,Mc=e=>e.cobrowseio&&e.timestamp,xc=(e,{unproxify:t})=>{(e=>{Object.keys(e).forEach(t=>{const n=e.getItem(t);try{const r=JSON.parse(n);Mc(r)&&Dc(r)&&e.removeItem(t)}catch(e){}})})(e);const n=()=>{const e=`${new URL(t(window.location.href)).hostname}||`;return{addPrefix:t=>`${e}${t}`,isPrefix:t=>t.startsWith(e),removePrefix:t=>t.replace(e,"")}},r=t=>{const{addPrefix:r}=n(),i=r(t),o=e.getItem(i);try{const t=JSON.parse(o);if(Mc(t))return Dc(t)?(e.removeItem(i),null):t.value}catch(e){}return o},i=(t,r)=>{const{addPrefix:i}=n(),o=i(t),s={value:r,timestamp:Date.now(),cobrowseio:!0},a=JSON.stringify(s);return e.setItem(o,a)},o=t=>{const{addPrefix:r}=n(),i=r(t);return e.removeItem(i)},s=()=>{const{isPrefix:t}=n();Object.keys(e).forEach(n=>{t(n)&&e.removeItem(n)})},a=t=>{const{isPrefix:r,removePrefix:i}=n(),o=Object.keys(e).filter(r).map(i);return t>o.length-1?null:o[t]},c=t=>{if(Object.getOwnPropertyDescriptor(e,t))return!0;const{addPrefix:r}=n(),i=r(t);return!!Object.getOwnPropertyDescriptor(e,i)};return new Proxy(e,{get:(t,l)=>"getItem"===l?r:"setItem"===l?i:"removeItem"===l?o:"clear"===l?s:"key"===l?a:"hasOwnProperty"===l?c:"length"===l?(()=>{const{isPrefix:t}=n();return Object.keys(e).filter(t).length})():"toString"===l?function(){return t.toString()}:"prototype"===l?t.prototype:"isPrototypeOf"===l?t.isPrototypeOf:r(l),set:(e,t,n)=>(i(t,n),n),ownKeys(e){const{isPrefix:t,removePrefix:r}=n();return Reflect.ownKeys(e).filter(t).map(r)},getOwnPropertyDescriptor(e,t){const{addPrefix:r}=n(),i=r(t);return i in e?Object.getOwnPropertyDescriptor(e,i):Object.getOwnPropertyDescriptor(e,t)},has(e,t){if(t in e)return!0;const{addPrefix:r}=n();return r(t)in e},deleteProperty:(e,t)=>(o(t),!0)})},Gc=[e=>{const t=pc(window.location,e);window.cbioLocation=t,document.cbioLocation=t},e=>{Object.defineProperty(window,"localStorage",{value:xc(window.localStorage,e),writable:!1,configurable:!1})},e=>{Object.defineProperty(window,"sessionStorage",{value:xc(window.sessionStorage,e),writable:!1,configurable:!1})}],Uc=e=>e&&"object"==typeof e&&"document"in e&&"location"in e&&"top"in e&&"Math"in e;var Wc,Vc={};!function(){if(Wc)return Vc;Wc=1;var e=jn(),t=yc(),n=Ae(),r=yt(),i=js(),o=Zi(),s=qs(),a=vs(),c=g(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),d=!u&&s("reduce",l);e({target:"Iterator",proto:!0,real:!0,forced:u||d},{reduce:function(e){r(this);try{n(e)}catch(e){o(this,"throw",e)}var s=arguments.length<2,c=s?void 0:arguments[1];if(d)return a(d,this,s?[e]:[e,c]);var u=i(this),h=0;if(t(u,function(t){s?(s=!1,c=t):c=e(c,t,h),h++},{IS_RECORD:!0}),s)throw new l("Reduce of empty iterator with no initial value");return c}})}();const Fc=(e,t)=>t.reduce((e,t)=>e&&e[t]?e[t]:void 0,e);var jc,Bc={};!function(){if(jc)return Bc;jc=1;var e=jn(),t=rt(),n=gn(),r=hn(),i=Yr();e({target:"Array",proto:!0},{at:function(e){var i=t(this),o=n(i),s=r(e),a=s>=0?s:o+s;return a<0||a>=o?void 0:i[a]}}),i("at")}();var zc,Hc,qc,Qc,$c,Yc,Jc,Kc,Xc,Zc={};function el(){if(Hc)return zc;Hc=1;var e=TypeError;return zc=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function tl(){if(Qc)return qc;Qc=1;var e=bs(),t=gn(),n=el(),r=Ji(),i=function(o,s,a,c,l,u,d,h){for(var f,p,g=l,m=0,_=!!d&&r(d,h);m<c;)m in a&&(f=_?_(a[m],m,s):a[m],u>0&&e(f)?(p=t(f),g=i(o,s,f,p,g,u-1)-1):(n(g+1),o[g]=f),g++),m++;return g};return qc=i}function nl(){if(Yc)return $c;Yc=1;var e=bs(),t=no(),n=me(),r=st()("species"),i=Array;return $c=function(o){var s;return e(o)&&(s=o.constructor,(t(s)&&(s===i||e(s.prototype))||n(s)&&null===(s=s[r]))&&(s=void 0)),void 0===s?i:s},$c}function rl(){if(Kc)return Jc;Kc=1;var e=nl();return Jc=function(t,n){return new(e(t))(0===n?0:n)}}!function(){if(Xc)return Zc;Xc=1;var e=jn(),t=tl(),n=Ae(),r=rt(),i=gn(),o=rl();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=r(this),c=i(a);return n(e),(s=o(a,0)).length=t(s,a,a,c,0,1,e,arguments.length>1?arguments[1]:void 0),s}})}();var il,ol,sl,al,cl={};function ll(){if(ol)return il;ol=1;var e=m(),t=bs(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return il=i?function(e,i){if(t(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},il}!function(){if(sl)return cl;sl=1;var e=jn(),t=rt(),n=gn(),r=ll(),i=el();e({target:"Array",proto:!0,arity:1,forced:g()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var o=t(this),s=n(o),a=arguments.length;i(s+a);for(var c=0;c<a;c++)o[s]=arguments[c],s++;return r(o,s),s}})}(),al||(al=1,Yr()("flatMap"));var ul,dl,hl,fl={};function pl(){if(dl)return ul;dl=1;var e=Ce(),t=TypeError;return ul=function(n,r){if(!delete n[r])throw new t("Cannot delete property "+e(r)+" of "+e(n))},ul}!function(){if(hl)return fl;hl=1;var e=jn(),t=rt(),n=gn(),r=ll(),i=pl(),o=el();e({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var s=t(this),a=n(s),c=arguments.length;if(c){o(a+c);for(var l=a;l--;){var u=l+c;l in s?s[u]=s[l]:i(s,u)}for(var d=0;d<c;d++)s[d]=arguments[d]}return r(s,a+c)}})}();var gl,ml,_l,vl={};function El(){if(ml)return gl;ml=1;var e=v(),t=yt(),n=js(),r=io();return gl=function(i,o){o&&"string"==typeof i||t(i);var s=r(i);return n(t(void 0!==s?e(s,i):i))}}!function(){if(_l)return vl;_l=1;var e=jn(),t=v(),n=Ae(),r=yt(),i=js(),o=El(),s=zs(),a=Zi(),c=Ze(),l=Hs(),u=qs(),d=!c&&!l("flatMap",function(){}),h=!c&&!d&&u("flatMap",TypeError),f=c||d||h,p=s(function(){for(var e,n,i=this.iterator,s=this.mapper;;){if(n=this.inner)try{if(!(e=r(t(n.next,n.iterator))).done)return e.value;this.inner=null}catch(e){a(i,"throw",e)}if(e=r(t(this.next,i)),this.done=!!e.done)return;try{this.inner=o(s(e.value,this.counter++),!1)}catch(e){a(i,"throw",e)}}});e({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(e){r(this);try{n(e)}catch(e){a(this,"throw",e)}return h?t(h,this,e):new p(i(this),{mapper:e,inner:null})}})}();var wl,yl={};!function(){if(wl)return yl;wl=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("some",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{some:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var Il,Ll={};!function(){if(Il)return Ll;Il=1;var e=jn(),t=le(),n=fe(),r=hn(),i=zn(),o=g(),s=t("".charAt);e({target:"String",proto:!0,forced:o(function(){return"\ud842"!=="𠮷".at(-2)})},{at:function(e){var t=i(n(this)),o=t.length,a=r(e),c=a>=0?a:o+a;return c<0||c>=o?void 0:s(t,c)}})}();var Cl,Al,Sl,bl,Nl,Tl,kl,Ol,Rl,Pl,Dl,Ml,xl={exports:{}},Gl={};function Ul(){return Al?Cl:(Al=1,Cl="\t\n\v\f\r \u2028\u2029\ufeff")}function Wl(){if(bl)return Sl;bl=1;var e=le(),t=fe(),n=zn(),r=Ul(),i=e("".replace),o=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(e){return function(r){var a=n(t(r));return 1&e&&(a=i(a,o,"")),2&e&&(a=i(a,s,"$1")),a}};return Sl={start:a(1),end:a(2),trim:a(3)}}function Vl(){if(Tl)return Nl;Tl=1;var e=Vt().PROPER,t=g(),n=Ul();return Nl=function(r){return t(function(){return!!n[r]()||"
"!=="
"[r]()||e&&n[r].name!==r})}}!function(){if(kl)return Gl;kl=1;var e=jn(),t=Wl().trim;e({target:"String",proto:!0,forced:Vl()("trim")},{trim:function(){return t(this)}})}();var Fl=(Ml||(Ml=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(Dl||(Dl=1,Pl=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(Rl)return Ol;Rl=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return Ol=function(s,a){a=a||{};var c,l,u=typeof s;if("string"===u&&s.length>0)return function(o){if(!((o=String(o)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(s);if("number"===u&&isFinite(s))return a.long?(c=s,(l=Math.abs(c))>=r?o(c,l,r,"day"):l>=n?o(c,l,n,"hour"):l>=t?o(c,l,t,"minute"):l>=e?o(c,l,e,"second"):c+" ms"):function(i){var o=Math.abs(i);return o>=r?Math.round(i/r)+"d":o>=n?Math.round(i/n)+"h":o>=t?Math.round(i/t)+"m":o>=e?Math.round(i/e)+"s":i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},Ol}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}),Pl)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(xl,xl.exports)),xl.exports);const jl=t(Fl);var Bl,zl={};!function(){if(Bl)return zl;Bl=1;var e=jn(),t=m(),n=o(),r=le(),i=it(),s=ge(),a=ve(),c=zn(),l=Ki(),u=Vn(),d=n.Symbol,h=d&&d.prototype;if(t&&s(d)&&(!("description"in h)||void 0!==d().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=a(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(f[t]=!0),t};u(p,d),p.prototype=h,h.constructor=p;var g="Symbol(description detection)"===String(d("description detection")),_=r(h.valueOf),v=r(h.toString),E=/^Symbol\((.*)\)[^)]+$/,w=r("".replace),y=r("".slice);l(h,"description",{configurable:!0,get:function(){var e=_(this);if(i(f,e))return"";var t=v(e),n=g?y(t,7,-1):w(t,E,"$1");return""===n?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var Hl,ql,Ql,$l,Yl,Jl,Kl,Xl,Zl,eu,tu,nu,ru,iu,ou,su,au,cu,lu,uu,du,hu={};function fu(){return ql?Hl:(ql=1,Hl="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView)}function pu(){if($l)return Ql;$l=1;var e=hn(),t=pn(),n=RangeError;return Ql=function(r){if(void 0===r)return 0;var i=e(r),o=t(i);if(i!==o)throw new n("Wrong length or index");return o}}function gu(){if(iu)return ru;iu=1;var e=Array,t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;return ru={pack:function(s,a,c){var l,u,d,h=e(c),f=8*c-a-1,p=(1<<f)-1,g=p>>1,m=23===a?n(2,-24)-n(2,-77):0,_=s<0||0===s&&1/s<0?1:0,v=0;for((s=t(s))!=s||s===1/0?(u=s!=s?1:0,l=p):(l=r(i(s)/o),s*(d=n(2,-l))<1&&(l--,d*=2),(s+=l+g>=1?m/d:m*n(2,1-g))*d>=2&&(l++,d/=2),l+g>=p?(u=0,l=p):l+g>=1?(u=(s*d-1)*n(2,a),l+=g):(u=s*n(2,g-1)*n(2,a),l=0));a>=8;)h[v++]=255&u,u/=256,a-=8;for(l=l<<a|u,f+=a;f>0;)h[v++]=255&l,l/=256,f-=8;return h[v-1]|=128*_,h},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,c=o-7,l=i-1,u=e[l--],d=127&u;for(u>>=7;c>0;)d=256*d+e[l--],c-=8;for(r=d&(1<<-c)-1,d>>=-c,c+=t;c>0;)r=256*r+e[l--],c-=8;if(0===d)d=1-a;else{if(d===s)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=a}return(u?-1:1)*r*n(2,d-t)}},ru}function mu(){if(su)return ou;su=1;var e=rt(),t=fn(),n=gn();return ou=function(r){for(var i=e(this),o=n(i),s=arguments.length,a=t(s>1?arguments[1]:void 0,o),c=s>2?arguments[2]:void 0,l=void 0===c?o:t(c,o);l>a;)i[a++]=r;return i},ou}function _u(){if(cu)return au;cu=1;var e=o(),t=le(),n=m(),r=fu(),i=Vt(),s=Lt(),a=Ki(),c=Lo(),l=g(),u=Xi(),d=hn(),h=pn(),f=pu(),p=function(){if(nu)return tu;nu=1;var e=function(){if(eu)return Zl;eu=1;var e=(Jl||(Jl=1,Yl=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}),Yl),t=function(){if(Xl)return Kl;Xl=1;var e=4503599627370496;return Kl=function(t){return t+e-e},Kl}(),n=Math.abs;return Zl=function(r,i,o,s){var a=+r,c=n(a),l=e(a);if(c<s)return l*t(c/s/i)*s*i;var u=(1+i/2220446049250313e-31)*c,d=u-(u-c);return d>o||d!=d?l*(1/0):l*d},Zl}();return tu=Math.fround||function(t){return e(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},tu}(),_=gu(),v=Kr(),E=ii(),w=mu(),y=ao(),I=Ja(),L=Vn(),C=Zr(),A=zt(),S=i.PROPER,b=i.CONFIGURABLE,N="ArrayBuffer",T="DataView",k="prototype",O="Wrong index",R=A.getterFor(N),P=A.getterFor(T),D=A.set,M=e[N],x=M,G=x&&x[k],U=e[T],W=U&&U[k],V=Object.prototype,F=e.Array,j=e.RangeError,B=t(w),z=t([].reverse),H=_.pack,q=_.unpack,Q=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},Y=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return H(p(e),23,4)},X=function(e){return H(e,52,8)},Z=function(e,t,n){a(e[k],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=P(e),o=f(n),s=!!r;if(o+t>i.byteLength)throw new j(O);var a=i.bytes,c=o+i.byteOffset,l=y(a,c,c+t);return s?l:z(l)},te=function(e,t,n,r,i,o){var s=P(e),a=f(n),c=r(+i),l=!!o;if(a+t>s.byteLength)throw new j(O);for(var u=s.bytes,d=a+s.byteOffset,h=0;h<t;h++)u[d+h]=c[l?h:t-h-1]};if(r){var ne=S&&M.name!==N;l(function(){M(1)})&&l(function(){new M(-1)})&&!l(function(){return new M,new M(1.5),new M(NaN),1!==M.length||ne&&!b})?ne&&b&&s(M,"name",N):((x=function(e){return u(this,G),I(new M(f(e)),this,x)})[k]=G,G.constructor=x,L(x,M)),E&&v(W)!==V&&E(W,V);var re=new U(new x(2)),ie=t(W.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(W,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else G=(x=function(e){u(this,G);var t=f(e);D(this,{type:N,bytes:B(F(t),0),byteLength:t}),n||(this.byteLength=t,this.detached=!1)})[k],U=function(e,t,r){u(this,W),u(e,G);var i=R(e),o=i.byteLength,s=d(t);if(s<0||s>o)throw new j("Wrong offset");if(s+(r=void 0===r?o-s:h(r))>o)throw new j("Wrong length");D(this,{type:T,buffer:e,byteLength:r,byteOffset:s,bytes:i.bytes}),n||(this.buffer=e,this.byteLength=r,this.byteOffset=s)},W=U[k],n&&(Z(x,"byteLength",R),Z(U,"buffer",P),Z(U,"byteLength",P),Z(U,"byteOffset",P)),c(W,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,Q,t)},setUint8:function(e,t){te(this,1,e,Q,t)},setInt16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,$,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,X,t,arguments.length>2&&arguments[2])}});return C(x,N),C(U,T),au={ArrayBuffer:x,DataView:U}}function vu(){if(uu)return lu;uu=1;var e=_e(),t=Ki(),n=st(),r=m(),i=n("species");return lu=function(n){var o=e(n);r&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})}}!function(){if(du)return hu;du=1;var e=jn(),t=o(),n=_u(),r=vu(),i="ArrayBuffer",s=n[i];e({global:!0,constructor:!0,forced:t[i]!==s},{ArrayBuffer:s}),r(i)}();var Eu,wu={};!function(){if(Eu)return wu;Eu=1;var e=jn(),t=Yi(),n=g(),r=_u(),i=yt(),o=fn(),s=pn(),a=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(a.prototype.slice),d=t(l.getUint8),h=t(l.setUint8);e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n(function(){return!new a(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&void 0===t)return u(i(this),e);for(var n=i(this).byteLength,r=o(e,n),l=o(void 0===t?n:t,n),f=new a(s(l-r)),p=new c(this),g=new c(f),m=0;r<l;)h(g,m++,d(p,r++));return f}})}();var yu,Iu,Lu,Cu,Au,Su={};function bu(){if(Iu)return yu;Iu=1;var e=o(),t=ti(),n=ue(),r=e.ArrayBuffer,i=e.TypeError;return yu=r&&t(r.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==n(e))throw new i("ArrayBuffer expected");return e.byteLength},yu}function Nu(){if(Cu)return Lu;Cu=1;var e=o(),t=fu(),n=bu(),r=e.DataView;return Lu=function(e){if(!t||0!==n(e))return!1;try{return new r(e),!1}catch(e){return!0}},Lu}!function(){if(Au)return Su;Au=1;var e=m(),t=Ki(),n=Nu(),r=ArrayBuffer.prototype;e&&!("detached"in r)&&t(r,"detached",{configurable:!0,get:function(){return n(this)}})}();var Tu,ku,Ou,Ru,Pu,Du,Mu,xu,Gu,Uu,Wu,Vu,Fu,ju,Bu,zu={};function Hu(){if(ku)return Tu;ku=1;var e=Nu(),t=TypeError;return Tu=function(n){if(e(n))throw new t("ArrayBuffer is detached");return n}}function qu(){if(Ru)return Ou;Ru=1;var e=o(),t=Ee(),n=ue(),r=function(e){return t.slice(0,e.length)===e};return Ou=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Qu(){if(Du)return Pu;Du=1;var e=qu();return Pu="NODE"===e}function $u(){if(xu)return Mu;xu=1;var e=o(),t=Qu();return Mu=function(n){if(t){try{return e.process.getBuiltinModule(n)}catch(e){}try{return Function('return require("'+n+'")')()}catch(e){}}}}function Yu(){if(Uu)return Gu;Uu=1;var e=o(),t=g(),n=we(),r=qu(),i=e.structuredClone;return Gu=!!i&&!t(function(){if("DENO"===r&&n>92||"NODE"===r&&n>94||"BROWSER"===r&&n>97)return!1;var e=new ArrayBuffer(8),t=i(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}),Gu}function Ju(){if(Vu)return Wu;Vu=1;var e,t,n,r,i=o(),s=$u(),a=Yu(),c=i.structuredClone,l=i.ArrayBuffer,u=i.MessageChannel,d=!1;if(a)d=function(e){c(e,{transfer:[e]})};else if(l)try{u||(e=s("worker_threads"))&&(u=e.MessageChannel),u&&(t=new u,n=new l(2),r=function(e){t.port1.postMessage(null,[e])},2===n.byteLength&&(r(n),0===n.byteLength&&(d=r)))}catch(e){}return Wu=d}function Ku(){if(ju)return Fu;ju=1;var e=o(),t=le(),n=ti(),r=pu(),i=Hu(),s=bu(),a=Ju(),c=Yu(),l=e.structuredClone,u=e.ArrayBuffer,d=e.DataView,h=Math.min,f=u.prototype,p=d.prototype,g=t(f.slice),m=n(f,"resizable","get"),_=n(f,"maxByteLength","get"),v=t(p.getInt8),E=t(p.setInt8);return Fu=(c||a)&&function(e,t,n){var o,f=s(e),p=void 0===t?f:r(t),w=!m||!m(e);if(i(e),c&&(e=l(e,{transfer:[e]}),f===p&&(n||w)))return e;if(f>=p&&(!n||w))o=g(e,0,p);else{var y=n&&!w&&_?{maxByteLength:_(e)}:void 0;o=new u(p,y);for(var I=new d(e),L=new d(o),C=h(p,f),A=0;A<C;A++)E(L,A,v(I,A))}return c||a(e),o},Fu}!function(){if(Bu)return zu;Bu=1;var e=jn(),t=Ku();t&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})}();var Xu,Zu,ed={};!function(){if(Xu)return ed;Xu=1;var e=jn(),t=Ku();t&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})}(),Zu||(Zu=1,jn()({target:"Object",stat:!0},{hasOwn:it()}));var td,nd,rd,id={};function od(){if(nd)return td;nd=1;var e=me(),t=ue(),n=st()("match");return td=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}!function(){if(rd)return id;rd=1;var e=m(),t=o(),n=le(),r=Fn(),i=Ja(),s=Lt(),a=ur(),c=vn().f,l=ve(),u=od(),d=zn(),h=Is(),f=qn(),p=Ya(),_=qt(),v=g(),E=it(),w=zt().enforce,y=vu(),I=st(),L=dr(),C=hr(),A=I("match"),S=t.RegExp,b=S.prototype,N=t.SyntaxError,T=n(b.exec),k=n("".charAt),O=n("".replace),R=n("".indexOf),P=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,x=/a/g,G=new S(M)!==M,U=f.MISSED_STICKY,W=f.UNSUPPORTED_Y;if(r("RegExp",e&&(!G||U||L||C||v(function(){return x[A]=!1,S(M)!==M||S(x)===x||"/a/i"!==String(S(M,"i"))})))){for(var V=function(e,t){var n,r,o,c,f,p,g=l(b,this),m=u(e),_=void 0===t,v=[],y=e;if(!g&&m&&_&&e.constructor===V)return e;if((m||l(b,e))&&(e=e.source,_&&(t=h(y))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),y=e,L&&"dotAll"in M&&(r=!!t&&R(t,"s")>-1)&&(t=O(t,/s/g,"")),n=t,U&&"sticky"in M&&(o=!!t&&R(t,"y")>-1)&&W&&(t=O(t,/y/g,"")),C&&(c=function(e){for(var t,n=e.length,r=0,i="",o=[],s=a(null),c=!1,l=!1,u=0,d="";r<=n;r++){if("\\"===(t=k(e,r)))t+=k(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:if(i+=t,"?:"===P(e,r+1,r+3))continue;T(D,P(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===d||E(s,d))throw new N("Invalid capture group name");s[d]=!0,o[o.length]=[d,u],l=!1,d="";continue}l?d+=t:i+=t}return[i,o]}(e),e=c[0],v=c[1]),f=i(S(e,t),g?this:b,V),(r||o||v.length)&&(p=w(f),r&&(p.dotAll=!0,p.raw=V(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=k(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+k(e,++r);return i}(e),n)),o&&(p.sticky=!0),v.length&&(p.groups=v)),e!==y)try{s(f,"source",""===y?"(?:)":y)}catch(e){}return f},F=c(S),j=0;F.length>j;)p(V,S,F[j++]);b.constructor=V,V.prototype=b,_(t,"RegExp",V,{constructor:!0})}y("RegExp")}();var sd,ad={};!function(){if(sd)return ad;sd=1;var e=m(),t=dr(),n=ue(),r=Ki(),i=zt().get,o=RegExp.prototype,s=TypeError;e&&t&&r(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===n(this))return!!i(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})}();var cd,ld={};!function(){if(cd)return ld;cd=1;var e=m(),t=Ki(),n=ys(),r=Hn();e&&!n.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:r}),n.correct=!0)}();var ud,dd,hd,fd,pd,gd,md,_d,vd,Ed,wd,yd,Id,Ld,Cd,Ad,Sd,bd,Nd,Td={};function kd(){if(dd)return ud;dd=1;var e=le(),t=Set.prototype;return ud={Set:Set,add:e(t.add),has:e(t.has),remove:e(t.delete),proto:t}}function Od(){if(fd)return hd;fd=1;var e=kd().has;return hd=function(t){return e(t),t}}function Rd(){if(gd)return pd;gd=1;var e=v();return pd=function(t,n,r){for(var i,o,s=r?t:t.iterator,a=t.next;!(i=e(a,s)).done;)if(void 0!==(o=n(i.value)))return o}}function Pd(){if(_d)return md;_d=1;var e=le(),t=Rd(),n=kd(),r=n.Set,i=n.proto,o=e(i.forEach),s=e(i.keys),a=s(new r).next;return md=function(e,n,r){return r?t({iterator:s(e),next:a},n):o(e,n)}}function Dd(){if(Ed)return vd;Ed=1;var e=kd(),t=Pd(),n=e.Set,r=e.add;return vd=function(e){var i=new n;return t(e,function(e){r(i,e)}),i}}function Md(){if(yd)return wd;yd=1;var e=ti(),t=kd();return wd=e(t.proto,"size","get")||function(e){return e.size}}function xd(){if(Ld)return Id;Ld=1;var e=Ae(),t=yt(),n=v(),r=hn(),i=js(),o="Invalid size",s=RangeError,a=TypeError,c=Math.max,l=function(t,n){this.set=t,this.size=c(n,0),this.has=e(t.has),this.keys=e(t.keys)};return l.prototype={getIterator:function(){return i(t(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},Id=function(e){t(e);var n=+e.size;if(n!=n)throw new a(o);var i=r(n);if(i<0)throw new s(o);return new l(e,i)}}function Gd(){if(bd)return Sd;bd=1;var e=_e(),t=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};return Sd=function(r,i){var o=e("Set");try{(new o)[r](t(0));try{return(new o)[r](t(-1)),!1}catch(e){if(!i)return!0;try{return(new o)[r](n(-1/0)),!1}catch(e){return i(new o([1,2])[r](n(1/0)))}}}catch(e){return!1}}}!function(){if(Nd)return Td;Nd=1;var e=jn(),t=function(){if(Ad)return Cd;Ad=1;var e=Od(),t=kd(),n=Dd(),r=Md(),i=xd(),o=Pd(),s=Rd(),a=t.has,c=t.remove;return Cd=function(t){var l=e(this),u=i(t),d=n(l);return r(l)<=u.size?o(l,function(e){u.includes(e)&&c(d,e)}):s(u.getIterator(),function(e){a(d,e)&&c(d,e)}),d},Cd}(),n=g();e({target:"Set",proto:!0,real:!0,forced:!Gd()("difference",function(e){return 0===e.size})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:t})}();var Ud,Wd,Vd,Fd={};!function(){if(Vd)return Fd;Vd=1;var e=jn(),t=g(),n=function(){if(Wd)return Ud;Wd=1;var e=Od(),t=kd(),n=Md(),r=xd(),i=Pd(),o=Rd(),s=t.Set,a=t.add,c=t.has;return Ud=function(t){var l=e(this),u=r(t),d=new s;return n(l)>u.size?o(u.getIterator(),function(e){c(l,e)&&a(d,e)}):i(l,function(e){u.includes(e)&&a(d,e)}),d},Ud}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||t(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}();var jd,Bd,zd,Hd={};!function(){if(zd)return Hd;zd=1;var e=jn(),t=function(){if(Bd)return jd;Bd=1;var e=Od(),t=kd().has,n=Md(),r=xd(),i=Pd(),o=Rd(),s=Zi();return jd=function(a){var c=e(this),l=r(a);if(n(c)<=l.size)return!1!==i(c,function(e){if(l.includes(e))return!1},!0);var u=l.getIterator();return!1!==o(u,function(e){if(t(c,e))return s(u,"normal",!1)})},jd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isDisjointFrom",function(e){return!e})},{isDisjointFrom:t})}();var qd,Qd,$d,Yd={};!function(){if($d)return Yd;$d=1;var e=jn(),t=function(){if(Qd)return qd;Qd=1;var e=Od(),t=Md(),n=Pd(),r=xd();return qd=function(i){var o=e(this),s=r(i);return!(t(o)>s.size)&&!1!==n(o,function(e){if(!s.includes(e))return!1},!0)},qd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isSubsetOf",function(e){return e})},{isSubsetOf:t})}();var Jd,Kd,Xd,Zd={};!function(){if(Xd)return Zd;Xd=1;var e=jn(),t=function(){if(Kd)return Jd;Kd=1;var e=Od(),t=kd().has,n=Md(),r=xd(),i=Rd(),o=Zi();return Jd=function(s){var a=e(this),c=r(s);if(n(a)<c.size)return!1;var l=c.getIterator();return!1!==i(l,function(e){if(!t(a,e))return o(l,"normal",!1)})},Jd}();e({target:"Set",proto:!0,real:!0,forced:!Gd()("isSupersetOf",function(e){return!e})},{isSupersetOf:t})}();var eh,th,nh,rh,ih,oh={};function sh(){return rh?nh:(rh=1,nh=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}})}!function(){if(ih)return oh;ih=1;var e=jn(),t=function(){if(th)return eh;th=1;var e=Od(),t=kd(),n=Dd(),r=xd(),i=Rd(),o=t.add,s=t.has,a=t.remove;return eh=function(t){var c=e(this),l=r(t).getIterator(),u=n(c);return i(l,function(e){s(c,e)?a(u,e):o(u,e)}),u},eh}(),n=sh();e({target:"Set",proto:!0,real:!0,forced:!Gd()("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:t})}();var ah,ch,lh,uh={};!function(){if(lh)return uh;lh=1;var e=jn(),t=function(){if(ch)return ah;ch=1;var e=Od(),t=kd().add,n=Dd(),r=xd(),i=Rd();return ah=function(o){var s=e(this),a=r(o).getIterator(),c=n(s);return i(a,function(e){t(c,e)}),c},ah}(),n=sh();e({target:"Set",proto:!0,real:!0,forced:!Gd()("union")||!n("union")},{union:t})}();var dh,hh={};!function(){if(dh)return hh;dh=1;var e=jn(),t=le(),n=fe(),r=zn(),i=t("".charCodeAt);e({target:"String",proto:!0},{isWellFormed:function(){for(var e=r(n(this)),t=e.length,o=0;o<t;o++){var s=i(e,o);if(55296==(63488&s)&&(s>=56320||++o>=t||56320!=(64512&i(e,o))))return!1}return!0}})}();var fh,ph={};!function(){if(fh)return ph;fh=1;var e=jn(),t=v(),n=le(),r=fe(),i=ge(),o=me(),s=od(),a=zn(),c=Se(),l=Is(),u=ws(),d=st(),h=Ze(),f=d("replace"),p=TypeError,g=n("".indexOf),m=n("".replace),_=n("".slice),E=Math.max;e({target:"String",proto:!0},{replaceAll:function(e,n){var d,v,w,y,I,L,C,A,S,b,N=r(this),T=0,k="";if(o(e)){if((d=s(e))&&(v=a(r(l(e))),!~g(v,"g")))throw new p("`.replaceAll` does not allow non-global regexes");if(w=c(e,f))return t(w,e,N,n);if(h&&d)return m(a(N),e,n)}for(y=a(N),I=a(e),(L=i(n))||(n=a(n)),C=I.length,A=E(1,C),S=g(y,I);-1!==S;)b=L?a(n(I,S,y)):u(I,y,S,[],void 0,n),k+=_(y,T,S)+b,T=S+C,S=S+A>y.length?-1:g(y,I,S+A);return T<y.length&&(k+=_(y,T)),k}})}();var gh,mh,_h,vh,Eh,wh,yh,Ih,Lh,Ch,Ah,Sh,bh,Nh,Th,kh,Oh,Rh,Ph,Dh,Mh,xh,Gh,Uh,Wh,Vh,Fh,jh,Bh={exports:{}};function zh(){if(mh)return gh;mh=1;var e=st()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}return gh=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var o={};o[e]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(e){}return i}}function Hh(){if(vh)return _h;vh=1;var e,t,n,r=fu(),i=m(),s=o(),a=ge(),c=me(),l=it(),u=Bn(),d=Ce(),h=Lt(),f=qt(),p=Ki(),g=ve(),_=Kr(),v=ii(),E=st(),w=ot(),y=zt(),I=y.enforce,L=y.get,C=s.Int8Array,A=C&&C.prototype,S=s.Uint8ClampedArray,b=S&&S.prototype,N=C&&_(C),T=A&&_(A),k=Object.prototype,O=s.TypeError,R=E("toStringTag"),P=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",M=r&&!!v&&"Opera"!==u(s.opera),x=!1,G={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(e){var t=_(e);if(c(t)){var n=L(t);return n&&l(n,D)?n[D]:W(t)}},V=function(e){if(!c(e))return!1;var t=u(e);return l(G,t)||l(U,t)};for(e in G)(n=(t=s[e])&&t.prototype)?I(n)[D]=t:M=!1;for(e in U)(n=(t=s[e])&&t.prototype)&&(I(n)[D]=t);if((!M||!a(N)||N===Function.prototype)&&(N=function(){throw new O("Incorrect invocation")},M))for(e in G)s[e]&&v(s[e],N);if((!M||!T||T===k)&&(T=N.prototype,M))for(e in G)s[e]&&v(s[e].prototype,T);if(M&&_(b)!==T&&v(b,T),i&&!l(T,R))for(e in x=!0,p(T,R,{configurable:!0,get:function(){return c(this)?this[P]:void 0}}),G)s[e]&&h(s[e],P,e);return _h={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:x&&P,aTypedArray:function(e){if(V(e))return e;throw new O("Target is not a typed array")},aTypedArrayConstructor:function(e){if(a(e)&&(!v||g(N,e)))return e;throw new O(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(i){if(n)for(var o in G){var a=s[o];if(a&&l(a.prototype,e))try{delete a.prototype[e]}catch(n){try{a.prototype[e]=t}catch(e){}}}T[e]&&!n||f(T,e,n?t:M&&A[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(i){if(v){if(n)for(r in G)if((o=s[r])&&l(o,e))try{delete o[e]}catch(e){}if(N[e]&&!n)return;try{return f(N,e,n?t:M&&N[e]||t)}catch(e){}}for(r in G)!(o=s[r])||o[e]&&!n||f(o,e,t)}},getTypedArrayConstructor:W,isView:function(e){if(!c(e))return!1;var t=u(e);return"DataView"===t||l(G,t)||l(U,t)},isTypedArray:V,TypedArray:N,TypedArrayPrototype:T},_h}function qh(){if(wh)return Eh;wh=1;var e=o(),t=g(),n=zh(),r=Hh().NATIVE_ARRAY_BUFFER_VIEWS,i=e.ArrayBuffer,s=e.Int8Array;return Eh=!r||!t(function(){s(1)})||!t(function(){new s(-1)})||!n(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||t(function(){return 1!==new s(new i(2),1,void 0).length})}function Qh(){if(Ih)return yh;Ih=1;var e=me(),t=Math.floor;return yh=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&t(n)===n}}function $h(){if(Ch)return Lh;Ch=1;var e=hn(),t=RangeError;return Lh=function(n){var r=e(n);if(r<0)throw new t("The argument can't be less than 0");return r}}function Yh(){if(Sh)return Ah;Sh=1;var e=$h(),t=RangeError;return Ah=function(n,r){var i=e(n);if(i%r)throw new t("Wrong offset");return i},Ah}function Jh(){if(Nh)return bh;Nh=1;var e=Math.round;return bh=function(t){var n=e(t);return n<0?0:n>255?255:255&n}}function Kh(){if(kh)return Th;kh=1;var e=no(),t=Ce(),n=TypeError;return Th=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Xh(){if(Rh)return Oh;Rh=1;var e=Bn();return Oh=function(t){var n=e(t);return"BigInt64Array"===n||"BigUint64Array"===n}}function Zh(){if(Dh)return Ph;Dh=1;var e=at(),t=TypeError;return Ph=function(n){var r=e(n,"number");if("number"==typeof r)throw new t("Can't convert number to bigint");return BigInt(r)}}function ef(){if(xh)return Mh;xh=1;var e=Ji(),t=v(),n=Kh(),r=rt(),i=gn(),o=oo(),s=io(),a=to(),c=Xh(),l=Hh().aTypedArrayConstructor,u=Zh();return Mh=function(d){var h,f,p,g,m,_,v,E,w=n(this),y=r(d),I=arguments.length,L=I>1?arguments[1]:void 0,C=void 0!==L,A=s(y);if(A&&!a(A))for(E=(v=o(y,A)).next,y=[];!(_=t(E,v)).done;)y.push(_.value);for(C&&I>2&&(L=e(L,arguments[2])),f=i(y),p=new(l(w))(f),g=c(p),h=0;f>h;h++)m=C?L(y[h],h):y[h],p[h]=g?u(m):+m;return p},Mh}function tf(){if(Vh)return Wh;Vh=1;var e=gn();return Wh=function(t,n,r){for(var i=0,o=arguments.length>2?r:e(n),s=new t(o);o>i;)s[i]=n[i++];return s},Wh}function nf(){if(Fh)return Bh.exports;Fh=1;var e=jn(),t=o(),n=v(),r=m(),i=qh(),s=Hh(),a=_u(),c=Xi(),l=ce(),u=Lt(),d=Qh(),h=pn(),f=pu(),p=Yh(),g=Jh(),_=ct(),E=it(),w=Bn(),y=me(),I=Le(),L=ur(),C=ve(),A=ii(),S=vn().f,b=ef(),N=function(){if(Uh)return Gh;Uh=1;var e=Ji(),t=le(),n=de(),r=rt(),i=gn(),o=rl(),s=t([].push),a=function(t){var a=1===t,c=2===t,l=3===t,u=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,g,m,_){for(var v,E,w=r(p),y=n(w),I=i(y),L=e(g,m),C=0,A=_||o,S=a?A(p,I):c||h?A(p,0):void 0;I>C;C++)if((f||C in y)&&(E=L(v=y[C],C,w),t))if(a)S[C]=E;else if(E)switch(t){case 3:return!0;case 5:return v;case 6:return C;case 2:s(S,v)}else switch(t){case 4:return!1;case 7:s(S,v)}return d?-1:l||u?u:S}};return Gh={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,T=vu(),k=Ki(),O=It(),R=dt(),P=tf(),D=zt(),M=Ja(),x=D.get,G=D.set,U=D.enforce,W=O.f,V=R.f,F=t.RangeError,j=a.ArrayBuffer,B=j.prototype,z=a.DataView,H=s.NATIVE_ARRAY_BUFFER_VIEWS,q=s.TYPED_ARRAY_TAG,Q=s.TypedArray,$=s.TypedArrayPrototype,Y=s.isTypedArray,J="BYTES_PER_ELEMENT",K="Wrong length",X=function(e,t){k(e,t,{configurable:!0,get:function(){return x(this)[t]}})},Z=function(e){var t;return C(B,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return Y(e)&&!I(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=_(t),ee(e,t)?l(2,e[t]):V(e,t)},ne=function(e,t,n){return t=_(t),!(ee(e,t)&&y(n)&&E(n,"value"))||E(n,"get")||E(n,"set")||n.configurable||E(n,"writable")&&!n.writable||E(n,"enumerable")&&!n.enumerable?W(e,t,n):(e[t]=n.value,e)};return r?(H||(R.f=te,O.f=ne,X($,"buffer"),X($,"byteOffset"),X($,"byteLength"),X($,"length")),e({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),Bh.exports=function(r,o,s){var a=r.match(/\d+/)[0]/8,l=r+(s?"Clamped":"")+"Array",d="get"+r,m="set"+r,_=t[l],v=_,E=v&&v.prototype,w={},I=function(e,t){W(e,t,{get:function(){return function(e,t){var n=x(e);return n.view[d](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=x(e);r.view[m](t*a+r.byteOffset,s?g(n):n,!0)}(this,t,e)},enumerable:!0})};H?i&&(v=o(function(e,t,r,i){return c(e,E),M(y(t)?Z(t)?void 0!==i?new _(t,p(r,a),i):void 0!==r?new _(t,p(r,a)):new _(t):Y(t)?P(v,t):n(b,v,t):new _(f(t)),e,v)}),A&&A(v,Q),N(S(_),function(e){e in v||u(v,e,_[e])}),v.prototype=E):(v=o(function(e,t,r,i){c(e,E);var o,s,l,u=0,d=0;if(y(t)){if(!Z(t))return Y(t)?P(v,t):n(b,v,t);o=t,d=p(r,a);var g=t.byteLength;if(void 0===i){if(g%a)throw new F(K);if((s=g-d)<0)throw new F(K)}else if((s=h(i)*a)+d>g)throw new F(K);l=s/a}else l=f(t),o=new j(s=l*a);for(G(e,{buffer:o,byteOffset:d,byteLength:s,length:l,view:new z(o)});u<l;)I(e,u++)}),A&&A(v,Q),E=v.prototype=L($)),E.constructor!==v&&u(E,"constructor",v),U(E).TypedArrayConstructor=v,q&&u(E,q,l);var C=v!==_;w[l]=v,e({global:!0,constructor:!0,forced:C,sham:!H},w),J in v||u(v,J,a),J in E||u(E,J,a),T(l)}):Bh.exports=function(){},Bh.exports}jh||(jh=1,nf()("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}}));var rf,of={};!function(){if(rf)return of;rf=1;var e=Hh(),t=gn(),n=hn(),r=e.aTypedArray;(0,e.exportTypedArrayMethod)("at",function(e){var i=r(this),o=t(i),s=n(e),a=s>=0?s:o+s;return a<0||a>=o?void 0:i[a]})}();var sf,af={};!function(){if(sf)return af;sf=1;var e=Hh(),t=mu(),n=Zh(),r=Bn(),i=v(),o=le(),s=g(),a=e.aTypedArray,c=e.exportTypedArrayMethod,l=o("".slice);c("fill",function(e){var o=arguments.length;a(this);var s="Big"===l(r(this),0,3)?n(e):+e;return i(t,this,s,o>1?arguments[1]:void 0,o>2?arguments[2]:void 0)},s(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))}();var cf,lf,uf,df={};function hf(){if(lf)return cf;lf=1;var e=Ji(),t=de(),n=rt(),r=gn(),i=function(i){var o=1===i;return function(s,a,c){for(var l,u=n(s),d=t(u),h=r(d),f=e(a,c);h-- >0;)if(f(l=d[h],h,u))switch(i){case 0:return l;case 1:return h}return o?-1:void 0}};return cf={findLast:i(0),findLastIndex:i(1)}}!function(){if(uf)return df;uf=1;var e=Hh(),t=hf().findLast,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLast",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var ff,pf={};!function(){if(ff)return pf;ff=1;var e=Hh(),t=hf().findLastIndex,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLastIndex",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var gf,mf={};!function(){if(gf)return mf;gf=1;var e=o(),t=v(),n=Hh(),r=gn(),i=Yh(),s=rt(),a=g(),c=e.RangeError,l=e.Int8Array,u=l&&l.prototype,d=u&&u.set,h=n.aTypedArray,f=n.exportTypedArrayMethod,p=!a(function(){var e=new Uint8ClampedArray(2);return t(d,e,{length:1,0:3},1),3!==e[1]}),m=p&&n.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var e=new l(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});f("set",function(e){h(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=s(e);if(p)return t(d,this,o,n);var a=this.length,l=r(o),u=0;if(l+n>a)throw new c("Wrong length");for(;u<l;)this[n+u]=o[u++]},!p||m)}();var _f,vf,Ef,wf,yf,If,Lf,Cf={};function Af(){if(vf)return _f;vf=1;var e=Ee().match(/firefox\/(\d+)/i);return _f=!!e&&+e[1]}function Sf(){if(wf)return Ef;wf=1;var e=Ee();return Ef=/MSIE|Trident/.test(e)}function bf(){if(If)return yf;If=1;var e=Ee().match(/AppleWebKit\/(\d+)\./);return yf=!!e&&+e[1]}!function(){if(Lf)return Cf;Lf=1;var e=o(),t=Yi(),n=g(),r=Ae(),i=Co(),s=Hh(),a=Af(),c=Sf(),l=we(),u=bf(),d=s.aTypedArray,h=s.exportTypedArrayMethod,f=e.Uint16Array,p=f&&t(f.prototype.sort),m=!(!p||n(function(){p(new f(2),null)})&&n(function(){p(new f(2),{})})),_=!!p&&!n(function(){if(l)return l<74;if(a)return a<67;if(c)return!0;if(u)return u<602;var e,t,n=new f(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(p(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});h("sort",function(e){return void 0!==e&&r(e),_?p(this,e):i(d(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))},!_||m)}();var Nf,Tf,kf,Of={};function Rf(){if(Tf)return Nf;Tf=1;var e=gn();return Nf=function(t,n){for(var r=e(t),i=new n(r),o=0;o<r;o++)i[o]=t[r-o-1];return i},Nf}!function(){if(kf)return Of;kf=1;var e=Rf(),t=Hh(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r("toReversed",function(){return e(n(this),i(this))})}();var Pf,Df={};!function(){if(Pf)return Df;Pf=1;var e=Hh(),t=le(),n=Ae(),r=tf(),i=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod,a=t(e.TypedArrayPrototype.sort);s("toSorted",function(e){void 0!==e&&n(e);var t=i(this),s=r(o(t),t);return a(s,e)})}();var Mf,xf,Gf,Uf={};function Wf(){if(xf)return Mf;xf=1;var e=gn(),t=hn(),n=RangeError;return Mf=function(r,i,o,s){var a=e(r),c=t(o),l=c<0?a+c:c;if(l>=a||l<0)throw new n("Incorrect index");for(var u=new i(a),d=0;d<a;d++)u[d]=d===l?s:r[d];return u},Mf}!function(){if(Gf)return Uf;Gf=1;var e=Wf(),t=Hh(),n=Xh(),r=hn(),i=Zh(),o=t.aTypedArray,s=t.getTypedArrayConstructor,a=t.exportTypedArrayMethod,c=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),l=c&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();a("with",{with:function(t,a){var c=o(this),l=r(t),u=n(c)?i(a):+a;return e(c,s(c),l,u)}}.with,!c||l)}();const Vf=((e,t)=>{const n=new Uint32Array(69632);let r=0,i=0;for(;r<2597;){const o=e[r++];if(o<0)i-=o;else{let s=e[r++];2&o&&(s=t[s]),1&o?n.fill(s,i,i+=e[r++]):n[i++]=s}}return n})([-1,2,26,2,27,2,5,-1,0,77595648,3,44,2,3,0,14,2,61,2,62,3,0,3,0,3168796671,0,4294956992,2,1,2,0,2,41,3,0,4,0,4294966523,3,0,4,2,16,2,63,2,0,0,4294836735,0,3221225471,0,4294901942,2,64,0,134152192,3,0,2,0,4294951935,3,0,2,0,2683305983,0,2684354047,2,17,2,0,0,4294961151,3,0,2,2,19,2,0,0,608174079,2,0,2,58,2,7,2,6,0,4286643967,3,0,2,2,1,3,0,3,0,4294901711,2,40,0,4089839103,0,2961209759,0,1342439375,0,4294543342,0,3547201023,0,1577204103,0,4194240,0,4294688750,2,2,0,80831,0,4261478351,0,4294549486,2,2,0,2967484831,0,196559,0,3594373100,0,3288319768,0,8469959,0,65472,2,3,0,4093640191,0,929054175,0,65487,0,4294828015,0,4092591615,0,1885355487,0,982991,2,3,2,0,0,2163244511,0,4227923919,0,4236247022,2,69,0,4284449919,0,851904,2,4,2,12,0,67076095,-1,2,70,0,1073741743,0,4093607775,-1,0,50331649,0,3265266687,2,33,0,4294844415,0,4278190047,2,20,2,137,-1,3,0,2,2,23,2,0,2,9,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,11,0,261632,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2151677951,2,29,2,10,0,909311,3,0,2,0,814743551,2,48,0,67090432,3,0,2,2,42,2,0,2,6,2,0,2,30,2,8,0,268374015,2,108,2,51,2,0,2,79,0,134153215,-1,2,7,2,0,2,8,0,2684354559,0,67044351,0,3221160064,2,9,2,18,3,0,2,2,53,0,1046528,3,0,3,2,10,2,0,2,127,0,4294960127,2,9,2,6,2,11,0,4294377472,2,12,3,0,16,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,0,12288,2,54,0,1048577,2,84,2,14,-1,2,14,0,131042,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,1046559,2,0,2,15,2,0,0,2147516671,2,21,3,88,2,2,0,-16,2,89,0,524222462,2,4,2,0,0,4269801471,2,4,3,0,2,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,2,18,2,0,0,3220242431,3,0,3,2,19,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,2,0,0,4351,2,0,2,10,3,0,2,0,67043391,0,3909091327,2,0,2,24,2,10,2,20,3,0,2,0,67076097,2,8,2,0,2,21,0,67059711,0,4236247039,3,0,2,0,939524103,0,8191999,2,99,2,100,2,22,2,23,3,0,3,0,67057663,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,3774349439,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,2,25,0,1638399,0,57344,2,107,3,0,3,2,20,2,26,2,27,2,5,2,28,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-3,0,536870912,-4,2,20,2,0,2,36,0,1,2,0,2,65,2,6,2,12,2,9,2,0,2,113,-1,3,0,4,2,9,2,23,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277137519,0,2269118463,-1,3,20,2,-1,2,33,2,38,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,47,2,0,0,4294950463,2,37,-7,2,0,0,203775,2,125,0,4227858432,2,20,2,43,2,36,2,17,2,37,2,17,2,124,2,21,3,0,2,2,38,0,2151677888,2,0,2,12,0,4294901764,2,145,2,0,2,56,2,55,0,5242879,3,0,2,0,402644511,-1,2,128,2,39,0,3,-1,2,129,2,130,2,0,0,67045375,2,40,0,4226678271,0,3766565279,0,2039759,2,132,2,41,0,1046437,0,6,3,0,2,0,3288270847,0,3,3,0,2,0,67043519,-5,2,0,0,4282384383,0,1056964609,-1,3,0,2,0,67043345,-1,2,0,2,42,2,23,2,50,2,11,2,59,2,38,-5,2,0,2,12,-3,3,0,2,0,2147484671,2,133,0,4190109695,2,52,-2,2,134,0,4244635647,0,27,2,0,2,8,2,43,2,0,2,66,2,17,2,0,2,42,-3,2,31,-2,2,0,2,45,2,57,2,44,2,45,2,135,2,46,0,8388351,-2,2,136,0,3028287487,2,47,2,138,0,33259519,2,23,2,7,2,48,-7,2,21,0,4294836223,0,3355443199,0,134152199,-2,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,2,30,3,0,124,2,12,3,0,18,2,38,-213,2,0,2,32,-54,3,0,17,2,42,2,8,2,23,2,0,2,8,2,23,2,51,2,0,2,21,2,52,2,139,2,25,-13,2,0,2,53,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,4294936575,2,0,0,4294934783,-2,0,8323099,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,0,1677656575,-130,2,26,-16,2,0,2,24,2,38,-16,0,4161266656,0,4071,0,15360,-4,0,28,-13,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,0,4294954999,2,0,-16,2,0,2,90,2,0,0,2105343,0,4160749584,0,65534,-34,2,8,2,155,-6,0,4194303871,0,4294903771,2,0,2,58,2,98,-3,2,0,0,1073684479,0,17407,-9,2,17,2,49,2,0,2,32,-14,2,17,2,32,-6,2,17,2,12,-6,2,8,0,3225419775,-7,2,156,3,0,6,0,8323103,-1,3,0,2,2,59,-37,2,60,2,157,2,158,2,159,2,160,2,161,-105,2,26,-32,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-22116,3,0,7,2,25,-6130,3,5,2,-1,0,69207040,3,44,2,3,0,14,2,61,2,62,-3,0,3168731136,0,4294956864,2,1,2,0,2,41,3,0,4,0,4294966275,3,0,4,2,16,2,63,2,0,2,34,-1,2,17,2,64,-1,2,0,0,2047,0,4294885376,3,0,2,0,3145727,0,2617294944,0,4294770688,2,25,2,65,3,0,2,0,131135,2,96,0,70256639,0,71303167,0,272,2,42,2,6,0,65279,2,0,2,48,-1,2,97,2,66,0,4278255616,0,4294836227,0,4294549473,0,600178175,0,2952806400,0,268632067,0,4294543328,0,57540095,0,1577058304,0,1835008,0,4294688736,2,68,2,67,0,33554435,2,131,2,68,0,2952790016,0,131075,0,3594373096,0,67094296,2,67,-1,0,4294828e3,0,603979263,0,922746880,0,3,0,4294828001,0,602930687,0,1879048192,0,393219,0,4294828016,0,671088639,0,2154840064,0,4227858435,0,4236247008,2,69,2,38,-1,2,4,0,917503,2,38,-1,2,70,0,537788335,0,4026531935,-1,0,1,-1,2,33,2,71,0,7936,-3,2,0,0,2147485695,0,1010761728,0,4292984930,0,16387,2,0,2,15,2,22,3,0,10,2,72,2,0,2,73,2,74,2,75,2,0,2,76,2,0,2,12,-1,2,25,3,0,2,2,13,2,4,3,0,18,2,77,2,5,3,0,2,2,78,0,2147745791,3,19,2,0,122879,2,0,2,10,0,276824064,-2,3,0,2,2,42,2,0,0,4294903295,2,0,2,30,2,8,-1,2,17,2,51,2,0,2,79,2,48,-1,2,21,2,0,2,29,-2,0,128,-2,2,28,2,10,0,8160,-1,2,126,0,4227907585,2,0,2,37,2,0,2,50,0,4227915776,2,9,2,6,2,11,-1,0,74440192,3,0,6,-2,3,0,8,2,13,2,0,2,80,2,9,2,0,2,81,2,82,2,83,-3,2,84,2,14,-3,2,85,2,86,2,87,2,0,2,34,-83,3,0,7,0,817183,2,0,2,15,2,0,0,33023,2,21,3,88,2,-17,2,89,0,524157950,2,4,2,0,2,90,2,4,2,0,2,22,2,28,2,16,3,0,2,2,49,2,0,-1,2,17,-16,3,0,206,-2,3,0,692,2,71,-1,2,17,2,9,3,0,8,2,91,0,3072,2,0,0,2147516415,2,9,3,0,2,2,25,2,92,2,93,3,0,2,2,94,2,0,2,20,2,95,0,4294965179,0,7,2,0,2,10,2,93,2,10,-1,0,1761345536,2,96,0,4294901823,2,38,2,20,2,97,2,35,2,98,0,2080440287,2,0,2,34,2,154,0,3296722943,2,0,0,1046675455,0,939524101,0,1837055,2,99,2,100,2,22,2,23,3,0,3,0,7,3,0,349,2,101,2,102,2,7,-264,3,0,11,2,24,3,0,2,2,32,-1,0,2700607615,2,103,2,104,3,0,2,2,19,2,105,3,0,10,2,9,2,17,2,0,2,46,2,0,2,31,2,106,-3,2,107,3,0,3,2,20,-1,3,5,2,2,108,2,0,2,8,2,109,-1,2,110,2,111,2,112,-1,3,0,3,2,12,-2,2,0,2,29,-8,2,20,2,0,2,36,-1,2,0,2,65,2,6,2,30,2,9,2,0,2,113,-1,3,0,4,2,9,2,17,2,114,2,7,2,0,2,115,2,0,2,116,2,117,2,118,2,0,2,10,3,0,9,2,21,2,30,2,31,2,119,2,120,-2,2,121,2,122,2,30,2,21,2,8,-2,2,123,2,30,3,32,2,-1,2,0,2,39,-2,0,4277075969,2,30,-1,3,20,2,-1,2,33,2,124,2,0,3,30,2,2,35,2,19,-3,3,0,2,2,34,-1,2,0,2,35,2,0,2,35,2,0,2,50,2,96,0,4294934591,2,37,-7,2,0,0,197631,2,125,-1,2,20,2,43,2,37,2,17,0,3,2,17,2,124,2,21,2,126,2,127,-1,0,2490368,2,126,2,25,2,17,2,34,2,126,2,38,0,4294901904,0,4718591,2,126,2,35,0,335544350,-1,2,128,0,2147487743,0,1,-1,2,129,2,130,2,8,-1,2,131,2,68,0,3758161920,0,3,2,132,0,12582911,0,655360,-1,2,0,2,29,0,2147485568,0,3,2,0,2,25,0,176,-5,2,0,2,49,0,251658240,-1,2,0,2,25,0,16,-1,2,0,0,16779263,-2,2,12,-1,2,38,-5,2,0,2,18,-3,3,0,2,2,54,2,133,0,2147549183,0,2,-2,2,134,2,36,0,10,0,4294965249,0,67633151,0,4026597376,2,0,0,536871935,2,17,2,0,2,42,-6,2,0,0,1,2,57,2,49,0,1,2,135,2,25,-3,2,136,2,36,2,137,2,138,0,16778239,2,17,2,7,-8,2,35,0,4294836212,2,10,-3,2,67,-2,3,0,28,2,32,-3,3,0,3,2,49,3,0,6,2,50,-81,2,17,3,0,2,2,36,3,0,33,2,25,0,126,3,0,124,2,12,3,0,18,2,38,-213,2,9,-55,3,0,17,2,42,2,8,2,17,2,0,2,8,2,17,2,58,2,0,2,25,2,50,2,139,2,25,-13,2,0,2,71,-6,3,0,2,-1,2,140,2,10,-1,3,0,2,0,67583,-1,2,105,-2,0,8126475,3,0,230,2,30,2,54,2,8,-3,3,0,3,2,35,-271,2,141,3,0,9,2,142,2,143,2,55,3,0,11,2,7,-72,3,0,3,2,144,2,145,-187,3,0,2,2,56,2,0,2,146,2,147,2,60,2,0,2,148,2,149,2,150,3,0,10,2,151,2,152,2,22,3,56,2,3,153,2,3,57,2,2,154,-57,2,8,2,155,-7,2,17,2,0,2,58,-4,2,0,0,1065361407,0,16384,-9,2,17,2,58,2,0,2,18,-14,2,17,2,18,-6,2,17,0,81919,-6,2,8,0,3223273399,-7,2,156,3,0,6,2,124,-1,3,0,2,0,2063,-37,2,60,2,157,2,158,2,159,2,160,2,161,-138,3,0,1335,-1,3,0,136,2,9,3,0,180,2,24,3,0,233,2,162,3,0,18,2,9,-77,3,0,16,2,9,-47,3,0,154,2,6,3,0,264,2,32,-28252],[4294967295,4294967291,4092460543,4294828031,4294967294,134217726,4294903807,268435455,2147483647,1073741823,1048575,3892314111,134217727,1061158911,536805376,4294910143,4294901759,4294901760,4095,262143,536870911,8388607,4160749567,4294902783,4294918143,65535,67043328,2281701374,4294967264,2097151,4194303,255,67108863,4294967039,511,524287,131071,63,127,3238002687,4294549487,4290772991,33554431,4294901888,4286578687,67043329,4294770687,67043583,1023,32767,15,2047999,67043343,67051519,2147483648,4294902e3,4292870143,4294966783,16383,67047423,4294967279,262083,20511,41943039,493567,4294959104,603979775,65536,602799615,805044223,4294965206,8191,1031749119,4294917631,2134769663,4286578493,4282253311,4294942719,33540095,4294905855,2868854591,1608515583,265232348,534519807,2147614720,1060109444,4093640016,17376,2139062143,224,4169138175,4294909951,4286578688,4294967292,4294965759,4294836224,4294966272,4294967280,32768,8289918,4294934399,4294901775,4294965375,1602223615,4294967259,4294443008,268369920,4292804608,4294967232,486341884,4294963199,3087007615,1073692671,4128527,4279238655,4294902015,4160684047,4290246655,469499899,4294967231,134086655,4294966591,2445279231,3670015,31,252,4294967288,16777215,4294705151,3221208447,4294902271,4294549472,4294921215,4285526655,4294966527,4294705152,4294966143,64,4294966719,3774873592,4194303999,1877934080,262151,2555904,536807423,67043839,3758096383,3959414372,3755993023,2080374783,4294835295,4294967103,4160749565,4294934527,4087,2016,2147446655,184024726,2862017156,1593309078,268434431,268434414,4294901761]),Ff=e=>!!(1&Vf[(e>>>5)+34816]>>>e),jf=[0,0,0,0,0,0,0,0,0,0,1032,0,0,2056,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8192,0,3,0,0,8192,0,0,0,256,0,33024,0,0,242,242,114,114,114,114,114,114,594,594,0,0,16384,0,0,0,0,67,67,67,67,67,67,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,1,0,0,4099,0,71,71,71,71,71,71,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,16384,0,0,0,0],Bf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],zf=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0];function Hf(e){return e<=127?Bf[e]>0:Ff(e)}function qf(e){return e<=127?zf[e]>0:(e=>!!(1&Vf[(e>>>5)+0]>>>e))(e)||8204===e||8205===e}function Qf(e){return e.column++,e.currentChar=e.source.charCodeAt(++e.index)}function $f(e){const t=e.currentChar;if(55296!=(64512&t))return 0;const n=e.source.charCodeAt(e.index+1);return 56320!=(64512&n)?0:65536+((1023&t)<<10)+(1023&n)}function Yf(e,t){e.currentChar=e.source.charCodeAt(++e.index),e.flags|=1,4&t||(e.column=0,e.line++)}function Jf(e){e.flags|=1,e.currentChar=e.source.charCodeAt(++e.index),e.column=0,e.line++}function Kf(e){return 160===e||65279===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||8201===e||65519===e}function Xf(e){return e<65?e-48:e-65+10&15}function Zf(e){switch(e){case 134283266:return"NumericLiteral";case 134283267:return"StringLiteral";case 86021:case 86022:return"BooleanLiteral";case 86023:return"NullLiteral";case 65540:return"RegularExpression";case 67174408:case 67174409:case 131:return"TemplateLiteral";default:return 143360&~e?4096&~e?"Punctuator":"Keyword":"Identifier"}}const ep=["SingleLine","MultiLine","HTMLOpen","HTMLClose","HashbangComment"];function tp(e,t,n,r,i,o){return 2&r&&e.report(0),np(e,t,n,i,o)}function np(e,t,n,r,i){const{index:o}=e;for(e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column;e.index<e.end;){if(8&jf[e.currentChar]){const n=13===e.currentChar;Jf(e),n&&e.index<e.end&&10===e.currentChar&&(e.currentChar=t.charCodeAt(++e.index));break}if((8232^e.currentChar)<=1){Jf(e);break}Qf(e),e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column}if(e.options.onComment){const n={start:{line:i.line,column:i.column},end:{line:e.tokenLine,column:e.tokenColumn}};e.options.onComment(ep[255&r],t.slice(o,e.tokenIndex),i.index,e.tokenIndex,n)}return 1|n}function rp(e,t,n){const{index:r}=e;for(;e.index<e.end;)if(e.currentChar<43){let i=!1;for(;42===e.currentChar;)if(i||(n&=-5,i=!0),47===Qf(e)){if(Qf(e),e.options.onComment){const n={start:{line:e.tokenLine,column:e.tokenColumn},end:{line:e.line,column:e.column}};e.options.onComment(ep[1],t.slice(r,e.index-2),r-2,e.index,n)}return e.tokenIndex=e.index,e.tokenLine=e.line,e.tokenColumn=e.column,n}if(i)continue;8&jf[e.currentChar]?13===e.currentChar?(n|=5,Jf(e)):(Yf(e,n),n=-5&n|1):Qf(e)}else(8232^e.currentChar)<=1?(n=-5&n|1,Jf(e)):(n&=-5,Qf(e));e.report(18)}const ip={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let` declaration not allowed here and `let` cannot be a regular var name in strict mode",84:"`let \n [` is a restricted production at the start of a statement",86:"Catch clause requires exactly one parameter, not more (and no trailing comma)",87:"Catch clause parameter does not support default values",88:"Missing catch or finally after try",89:"More than one default clause in switch statement",90:"Illegal newline after throw",91:"Strict mode code may not include a with statement",92:"Illegal return statement",93:"The left hand side of the for-header binding declaration is not destructible",94:"new.target only allowed within functions or static blocks",96:"'#' not followed by identifier",102:"Invalid keyword",101:"Can not use 'let' as a class name",100:"'A lexical declaration can't define a 'let' binding",99:"Can not use `let` as variable name in strict mode",97:"'%0' may not be used as an identifier in this context",98:"Await is only valid in async functions",103:"The %0 keyword can only be used with the module goal",104:"Unicode codepoint must not be greater than 0x10FFFF",105:"%0 source must be string",106:"Only a identifier or string can be used to indicate alias",107:"Only '*' or '{...}' can be imported after default",108:"Trailing decorator may be followed by method",109:"Decorators can't be used with a constructor",110:"Can not use `await` as identifier in module or async func",111:"Can not use `await` as identifier in module",112:"HTML comments are only allowed with web compatibility (Annex B)",113:"The identifier 'let' must not be in expression position in strict mode",114:"Cannot assign to `eval` and `arguments` in strict mode",115:"The left-hand side of a for-of loop may not start with 'let'",116:"Block body arrows can not be immediately invoked without a group",117:"Block body arrows can not be immediately accessed without a group",118:"Unexpected strict mode reserved word",119:"Unexpected eval or arguments in strict mode",120:"Decorators must not be followed by a semicolon",121:"Calling delete on expression not allowed in strict mode",122:"Pattern can not have a tail",124:"Can not have a `yield` expression on the left side of a ternary",125:"An arrow function can not have a postfix update operator",126:"Invalid object literal key character after generator star",127:"Private fields can not be deleted",129:"Classes may not have a field called constructor",128:"Classes may not have a private element named constructor",130:"A class field initializer or static block may not contain arguments",131:"Generators can only be declared at the top level or inside a block",132:"Async methods are a restricted production and cannot have a newline following it",133:"Unexpected character after object literal property name",135:"Invalid key token",136:"Label '%0' has already been declared",137:"continue statement must be nested within an iteration statement",138:"Undefined label '%0'",139:"Trailing comma is disallowed inside import(...) arguments",140:"Invalid binding in JSON import",141:"import() requires exactly one argument",142:"Cannot use new with import(...)",143:"... is not allowed in import()",144:"Expected '=>'",145:"Duplicate binding '%0'",146:"Duplicate private identifier #%0",147:"Cannot export a duplicate name '%0'",150:"Duplicate %0 for-binding",148:"Exported binding '%0' needs to refer to a top-level declared variable",149:"Unexpected private field",153:"Numeric separators are not allowed at the end of numeric literals",152:"Only one underscore is allowed as numeric separator",154:"JSX value should be either an expression or a quoted JSX text",155:"Expected corresponding JSX closing tag for %0",156:"Adjacent JSX elements must be wrapped in an enclosing tag",157:"JSX attributes must only be assigned a non-empty 'expression'",158:"'%0' has already been declared",159:"'%0' shadowed a catch clause binding",160:"Dot property must be an identifier",161:"Encountered invalid input after spread/rest argument",162:"Catch without try",163:"Finally without try",164:"Expected corresponding closing tag for JSX fragment",165:"Coalescing and logical operators used together in the same expression must be disambiguated with parentheses",166:"Invalid tagged template on optional chain",167:"Invalid optional chain from super property",168:"Invalid optional chain from new expression",169:'Cannot use "import.meta" outside a module',170:"Leading decorators must be attached to a class declaration",171:"An export name cannot include a lone surrogate",172:"A string literal cannot be used as an exported binding without `from`",173:"Private fields can't be accessed on super",174:"The only valid meta property for import is 'import.meta'",175:"'import.meta' must not contain escaped characters",176:'cannot use "await" as identifier inside an async function',177:'cannot use "await" in static blocks'};class op extends SyntaxError{constructor(e,t,n,...r){const i=ip[n].replace(/%(\d+)/g,(e,t)=>r[t]);super("["+e.line+":"+e.column+"-"+t.line+":"+t.column+"]: "+i),Qo(this,"start",void 0),Qo(this,"end",void 0),Qo(this,"range",void 0),Qo(this,"loc",void 0),Qo(this,"description",void 0),this.start=e.index,this.end=t.index,this.range=[e.index,t.index],this.loc={start:{line:e.line,column:e.column},end:{line:t.line,column:t.column}},this.description=i}}function sp(e,t){return Object.hasOwn(e,t)?e[t]:void 0}const ap=["end of source","identifier","number","string","regular expression","false","true","null","template continuation","template tail","=>","(","{",".","...","}",")",";",",","[","]",":","?","'",'"',"++","--","=","<<=",">>=",">>>=","**=","+=","-=","*=","/=","%=","^=","|=","&=","||=","&&=","??=","typeof","delete","void","!","~","+","-","in","instanceof","*","%","/","**","&&","||","===","!==","==","!=","<=",">=","<",">","<<",">>",">>>","&","|","^","var","let","const","break","case","catch","class","continue","debugger","default","do","else","export","extends","finally","for","function","if","import","new","return","super","switch","this","throw","try","while","with","implements","interface","package","private","protected","public","static","yield","as","async","await","constructor","get","set","accessor","from","of","enum","eval","arguments","escaped keyword","escaped future reserved keyword","reserved if strict","#","BigIntLiteral","??","?.","WhiteSpace","Illegal","LineTerminator","PrivateField","Template","@","target","meta","LineFeed","Escaped","JSXText"],cp={this:86111,function:86104,if:20569,return:20572,var:86088,else:20563,for:20567,new:86107,in:8673330,typeof:16863275,while:20578,case:20556,break:20555,try:20577,catch:20557,delete:16863276,throw:86112,switch:86110,continue:20559,default:20561,instanceof:8411187,do:20562,void:16863277,finally:20566,async:209005,await:209006,class:86094,const:86090,constructor:12399,debugger:20560,export:20564,extends:20565,false:86021,from:209011,get:209008,implements:36964,import:86106,interface:36965,let:241737,null:86023,of:471156,package:36966,private:36967,protected:36968,public:36969,set:209009,static:36970,super:86109,true:86022,with:20579,yield:241771,enum:86133,eval:537079926,as:77932,arguments:537079927,target:209029,meta:209030,accessor:12402};function lp(e,t,n){for(var r;zf[Qf(e)];);return e.tokenValue=e.source.slice(e.tokenIndex,e.index),92!==e.currentChar&&e.currentChar<=126?null!==(r=sp(cp,e.tokenValue))&&void 0!==r?r:208897:dp(e,t,0,n)}function up(e,t){const n=fp(e);return Hf(n)||e.report(5),e.tokenValue=String.fromCodePoint(n),dp(e,t,1,4&jf[n])}function dp(e,t,n,r){let i=e.index;for(;e.index<e.end;)if(92===e.currentChar){e.tokenValue+=e.source.slice(i,e.index),n=1;const t=fp(e);qf(t)||e.report(5),r=r&&4&jf[t],e.tokenValue+=String.fromCodePoint(t),i=e.index}else{const t=$f(e);if(t>0)qf(t)||e.report(20,String.fromCodePoint(t)),e.currentChar=t,e.index++,e.column++;else if(!qf(e.currentChar))break;Qf(e)}e.index<=e.end&&(e.tokenValue+=e.source.slice(i,e.index));const{length:o}=e.tokenValue;if(r&&o>=2&&o<=11){const r=sp(cp,e.tokenValue);return void 0===r?208897|(n?-2147483648:0):n?209006===r?2050&t?-2147483528:-2147483648|r:1&t?36970===r?-2147483527:36864&~r?20480&~r?-2147274630:262144&t&&!(8&t)?-2147483648|r:-2147483528:-2147483527:!(262144&t)||8&t||20480&~r?241771===r?262144&t?-2147274630:1024&t?-2147483528:-2147483648|r:209005===r?-2147274630:36864&~r?-2147483528:12288|r|-2147483648:-2147483648|r:r}return 208897|(n?-2147483648:0)}function hp(e){let t=Qf(e);if(92===t)return 130;const n=$f(e);return n&&(t=n),Hf(t)||e.report(96),130}function fp(e){return 117!==e.source.charCodeAt(e.index+1)&&e.report(5),e.currentChar=e.source.charCodeAt(e.index+=2),e.column+=2,function(e){let t=0;const n=e.currentChar;if(123===n){const n=e.index-2;for(;64&jf[Qf(e)];)if(t=t<<4|Xf(e.currentChar),t>1114111)throw new op({index:n,line:e.line,column:e.column},e.currentLocation,104);if(125!==e.currentChar)throw new op({index:n,line:e.line,column:e.column},e.currentLocation,7);return Qf(e),t}64&jf[n]||e.report(7);const r=e.source.charCodeAt(e.index+1);64&jf[r]||e.report(7);const i=e.source.charCodeAt(e.index+2);64&jf[i]||e.report(7);const o=e.source.charCodeAt(e.index+3);return 64&jf[o]||e.report(7),t=Xf(n)<<12|Xf(r)<<8|Xf(i)<<4|Xf(o),e.currentChar=e.source.charCodeAt(e.index+=4),e.column+=4,t}(e)}function pp(e,t,n){let r=e.currentChar,i=0,o=9,s=64&n?0:1,a=0,c=0;if(64&n)i="."+gp(e,r),r=e.currentChar,110===r&&e.report(12);else{if(48===r)if(r=Qf(e),120==(32|r)){for(n=136,r=Qf(e);4160&jf[r];)95!==r?(c=1,i=16*i+Xf(r),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?21:153)}else if(111==(32|r)){for(n=132,r=Qf(e);4128&jf[r];)95!==r?(c=1,i=8*i+(r-48),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?0:153)}else if(98==(32|r)){for(n=130,r=Qf(e);4224&jf[r];)95!==r?(c=1,i=2*i+(r-48),a++,r=Qf(e)):(c||e.report(152),c=0,r=Qf(e));0!==a&&c||e.report(0===a?0:153)}else if(32&jf[r])for(1&t&&e.report(1),n=1;16&jf[r];){if(512&jf[r]){n=32,s=0;break}i=8*i+(r-48),r=Qf(e)}else 512&jf[r]?(1&t&&e.report(1),e.flags|=64,n=32):95===r&&e.report(0);if(48&n){if(s){for(;o>=0&&4112&jf[r];)if(95!==r)c=0,i=10*i+(r-48),r=Qf(e),--o;else{if(r=Qf(e),95===r||32&n)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);c=1}if(c)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);if(o>=0&&!Hf(r)&&46!==r)return e.tokenValue=i,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266}i+=gp(e,r),r=e.currentChar,46===r&&(95===Qf(e)&&e.report(0),n=64,i+="."+gp(e,e.currentChar),r=e.currentChar)}}const l=e.index;let u=0;if(110===r&&128&n)u=1,r=Qf(e);else if(101==(32|r)){r=Qf(e),256&jf[r]&&(r=Qf(e));const{index:t}=e;16&jf[r]||e.report(11),i+=e.source.substring(l,t)+gp(e,r),r=e.currentChar}return(e.index<e.end&&16&jf[r]||Hf(r))&&e.report(13),u?(e.tokenRaw=e.source.slice(e.tokenIndex,e.index),e.tokenValue=BigInt(e.tokenRaw.slice(0,-1).replaceAll("_","")),134283388):(e.tokenValue=15&n?i:32&n?parseFloat(e.source.substring(e.tokenIndex,e.index)):+i,e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283266)}function gp(e,t){let n=0,r=e.index,i="";for(;4112&jf[t];){if(95===t){const{index:o}=e;if(95===(t=Qf(e)))throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},152);n=1,i+=e.source.substring(r,o),r=e.index;continue}n=0,t=Qf(e)}if(n)throw new op(e.currentLocation,{index:e.index+1,line:e.line,column:e.column},153);return i+e.source.substring(r,e.index)}var mp,_p;function vp(e){const t=e.index;let n=mp.Empty;e:for(;;){const t=e.currentChar;if(Qf(e),n&mp.Escape)n&=~mp.Escape;else switch(t){case 47:if(n)break;break e;case 92:n|=mp.Escape;break;case 91:n|=mp.Class;break;case 93:n&=mp.Escape}if(13!==t&&10!==t&&8232!==t&&8233!==t||e.report(34),e.index>=e.source.length)return e.report(34)}const r=e.index-1;let i=_p.Empty,o=e.currentChar;const{index:s}=e;for(;qf(o);){switch(o){case 103:i&_p.Global&&e.report(36,"g"),i|=_p.Global;break;case 105:i&_p.IgnoreCase&&e.report(36,"i"),i|=_p.IgnoreCase;break;case 109:i&_p.Multiline&&e.report(36,"m"),i|=_p.Multiline;break;case 117:i&_p.Unicode&&e.report(36,"u"),i&_p.UnicodeSets&&e.report(36,"vu"),i|=_p.Unicode;break;case 118:i&_p.Unicode&&e.report(36,"uv"),i&_p.UnicodeSets&&e.report(36,"v"),i|=_p.UnicodeSets;break;case 121:i&_p.Sticky&&e.report(36,"y"),i|=_p.Sticky;break;case 115:i&_p.DotAll&&e.report(36,"s"),i|=_p.DotAll;break;case 100:i&_p.Indices&&e.report(36,"d"),i|=_p.Indices;break;default:e.report(35)}o=Qf(e)}const a=e.source.slice(s,e.index),c=e.source.slice(t,r);return e.tokenRegExp={pattern:c,flags:a},e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),e.tokenValue=function(e,t,n){try{return new RegExp(t,n)}catch(t){if(!e.options.validateRegex)return null;e.report(34)}}(e,c,a),65540}function Ep(e,t,n){const{index:r}=e;let i="",o=Qf(e),s=e.index;for(;!(8&jf[o]);){if(o===n)return i+=e.source.slice(s,e.index),Qf(e),e.options.raw&&(e.tokenRaw=e.source.slice(r,e.index)),e.tokenValue=i,134283267;if(8&~o||92!==o)8232!==o&&8233!==o||(e.column=-1,e.line++);else{if(i+=e.source.slice(s,e.index),o=Qf(e),o<127||8232===o||8233===o){const n=wp(e,t,o);n>=0?i+=String.fromCodePoint(n):yp(e,n,0)}else i+=String.fromCodePoint(o);s=e.index+1}e.index>=e.end&&e.report(16),o=Qf(e)}e.report(16)}function wp(e,t,n,r=0){switch(n){case 98:return 8;case 102:return 12;case 114:return 13;case 110:return 10;case 116:return 9;case 118:return 11;case 13:if(e.index<e.end){const t=e.source.charCodeAt(e.index+1);10===t&&(e.index=e.index+1,e.currentChar=t)}case 10:case 8232:case 8233:return e.column=-1,e.line++,-1;case 48:case 49:case 50:case 51:{let i=n-48,o=e.index+1,s=e.column+1;if(o<e.end){const n=e.source.charCodeAt(o);if(32&jf[n]){if(1&t||r)return-2;if(e.currentChar=n,i=i<<3|n-48,o++,s++,o<e.end){const t=e.source.charCodeAt(o);32&jf[t]&&(e.currentChar=t,i=i<<3|t-48,o++,s++)}e.flags|=64}else if(0!==i||512&jf[n]){if(1&t||r)return-2;e.flags|=64}e.index=o-1,e.column=s-1}return i}case 52:case 53:case 54:case 55:{if(r||1&t)return-2;let i=n-48;const o=e.index+1,s=e.column+1;if(o<e.end){const t=e.source.charCodeAt(o);32&jf[t]&&(i=i<<3|t-48,e.currentChar=t,e.index=o,e.column=s)}return e.flags|=64,i}case 120:{const t=Qf(e);if(!(64&jf[t]))return-4;const n=Xf(t),r=Qf(e);return 64&jf[r]?n<<4|Xf(r):-4}case 117:{const t=Qf(e);if(123===e.currentChar){let t=0;for(;64&jf[Qf(e)];)if(t=t<<4|Xf(e.currentChar),t>1114111)return-5;return e.currentChar<1||125!==e.currentChar?-4:t}{if(!(64&jf[t]))return-4;const n=e.source.charCodeAt(e.index+1);if(!(64&jf[n]))return-4;const r=e.source.charCodeAt(e.index+2);if(!(64&jf[r]))return-4;const i=e.source.charCodeAt(e.index+3);return 64&jf[i]?(e.index+=3,e.column+=3,e.currentChar=e.source.charCodeAt(e.index),Xf(t)<<12|Xf(n)<<8|Xf(r)<<4|Xf(i)):-4}}case 56:case 57:if(r||!e.options.webcompat||1&t)return-3;e.flags|=4096;default:return n}}function yp(e,t,n){switch(t){case-1:return;case-2:e.report(n?2:1);case-3:e.report(n?3:14);case-4:e.report(7);case-5:e.report(104)}}function Ip(e,t){const{index:n}=e;let r=67174409,i="",o=Qf(e);for(;96!==o;){if(36===o&&123===e.source.charCodeAt(e.index+1)){Qf(e),r=67174408;break}if(92===o)if(o=Qf(e),o>126)i+=String.fromCodePoint(o);else{const{index:n,line:s,column:a}=e,c=wp(e,1|t,o,1);if(c>=0)i+=String.fromCodePoint(c);else{if(-1!==c&&64&t){e.index=n,e.line=s,e.column=a,i=null,o=Lp(e,o),o<0&&(r=67174408);break}yp(e,c,1)}}else e.index<e.end&&(13===o&&10===e.source.charCodeAt(e.index)&&(i+=String.fromCodePoint(o),e.currentChar=e.source.charCodeAt(++e.index)),((83&o)<3&&10===o||(8232^o)<=1)&&(e.column=-1,e.line++),i+=String.fromCodePoint(o));e.index>=e.end&&e.report(17),o=Qf(e)}return Qf(e),e.tokenValue=i,e.tokenRaw=e.source.slice(n+1,e.index-(67174409===r?1:2)),r}function Lp(e,t){for(;96!==t;){switch(t){case 36:{const n=e.index+1;if(n<e.end&&123===e.source.charCodeAt(n))return e.index=n,e.column++,-t;break}case 10:case 8232:case 8233:e.column=-1,e.line++}e.index>=e.end&&e.report(17),t=Qf(e)}return t}function Cp(e,t){return e.index>=e.end&&e.report(0),e.index--,e.column--,Ip(e,t)}!function(e){e[e.Empty=0]="Empty",e[e.Escape=1]="Escape",e[e.Class=2]="Class"}(mp||(mp={})),function(e){e[e.Empty=0]="Empty",e[e.IgnoreCase=1]="IgnoreCase",e[e.Global=2]="Global",e[e.Multiline=4]="Multiline",e[e.Unicode=16]="Unicode",e[e.Sticky=8]="Sticky",e[e.DotAll=32]="DotAll",e[e.Indices=64]="Indices",e[e.UnicodeSets=128]="UnicodeSets"}(_p||(_p={}));const Ap=[128,128,128,128,128,128,128,128,128,127,135,127,127,129,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,127,16842798,134283267,130,208897,8391477,8390213,134283267,67174411,16,8391476,25233968,18,25233969,67108877,8457014,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,134283266,21,1074790417,8456256,1077936155,8390721,22,132,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,208897,69271571,136,20,8389959,208897,131,4096,4096,4096,4096,4096,4096,4096,208897,4096,208897,208897,4096,208897,4096,208897,4096,208897,4096,4096,4096,208897,4096,4096,208897,4096,4096,2162700,8389702,1074790415,16842799,128];function Sp(e,t){e.flags=1^(1|e.flags),e.startIndex=e.index,e.startColumn=e.column,e.startLine=e.line,e.setToken(bp(e,t,0))}function bp(e,t,n){const r=0===e.index,{source:i}=e;for(;e.index<e.end;){e.tokenIndex=e.index,e.tokenColumn=e.column,e.tokenLine=e.line;let o=e.currentChar;if(o<=126){const s=Ap[o];switch(s){case 67174411:case 16:case 2162700:case 1074790415:case 69271571:case 20:case 21:case 1074790417:case 18:case 16842799:case 132:case 128:return Qf(e),s;case 208897:return lp(e,t,0);case 4096:return lp(e,t,1);case 134283266:return pp(e,t,144);case 134283267:return Ep(e,t,o);case 131:return Ip(e,t);case 136:return up(e,t);case 130:return hp(e);case 127:Qf(e);break;case 129:n|=5,Jf(e);break;case 135:Yf(e,n),n=-5&n|1;break;case 8456256:{const r=Qf(e);if(e.index<e.end){if(60===r)return e.index<e.end&&61===Qf(e)?(Qf(e),4194332):8390978;if(61===r)return Qf(e),8390718;if(33===r){const r=e.index+1;if(r+1<e.end&&45===i.charCodeAt(r)&&45==i.charCodeAt(r+1)){e.column+=3,e.currentChar=i.charCodeAt(e.index+=3),n=tp(e,i,n,t,2,e.tokenStart);continue}return 8456256}}return 8456256}case 1077936155:{Qf(e);const t=e.currentChar;return 61===t?61===Qf(e)?(Qf(e),8390458):8390460:62===t?(Qf(e),10):1077936155}case 16842798:return 61!==Qf(e)?16842798:61!==Qf(e)?8390461:(Qf(e),8390459);case 8391477:return 61!==Qf(e)?8391477:(Qf(e),4194340);case 8391476:{if(Qf(e),e.index>=e.end)return 8391476;const t=e.currentChar;return 61===t?(Qf(e),4194338):42!==t?8391476:61!==Qf(e)?8391735:(Qf(e),4194335)}case 8389959:return 61!==Qf(e)?8389959:(Qf(e),4194341);case 25233968:{Qf(e);const t=e.currentChar;return 43===t?(Qf(e),33619993):61===t?(Qf(e),4194336):25233968}case 25233969:{Qf(e);const o=e.currentChar;if(45===o){if(Qf(e),(1&n||r)&&62===e.currentChar){e.options.webcompat||e.report(112),Qf(e),n=tp(e,i,n,t,3,e.tokenStart);continue}return 33619994}return 61===o?(Qf(e),4194337):25233969}case 8457014:if(Qf(e),e.index<e.end){const r=e.currentChar;if(47===r){Qf(e),n=np(e,i,n,0,e.tokenStart);continue}if(42===r){Qf(e),n=rp(e,i,n);continue}if(32&t)return vp(e);if(61===r)return Qf(e),4259875}return 8457014;case 67108877:{const n=Qf(e);if(n>=48&&n<=57)return pp(e,t,80);if(46===n){const t=e.index+1;if(t<e.end&&46===i.charCodeAt(t))return e.column+=2,e.currentChar=i.charCodeAt(e.index+=2),14}return 67108877}case 8389702:{Qf(e);const t=e.currentChar;return 124===t?(Qf(e),61===e.currentChar?(Qf(e),4194344):8913465):61===t?(Qf(e),4194342):8389702}case 8390721:{Qf(e);const t=e.currentChar;if(61===t)return Qf(e),8390719;if(62!==t)return 8390721;if(Qf(e),e.index<e.end){const t=e.currentChar;if(62===t)return 61===Qf(e)?(Qf(e),4194334):8390980;if(61===t)return Qf(e),4194333}return 8390979}case 8390213:{Qf(e);const t=e.currentChar;return 38===t?(Qf(e),61===e.currentChar?(Qf(e),4194345):8913720):61===t?(Qf(e),4194343):8390213}case 22:{let t=Qf(e);if(63===t)return Qf(e),61===e.currentChar?(Qf(e),4194346):276824445;if(46===t){const n=e.index+1;if(n<e.end&&(t=i.charCodeAt(n),!(t>=48&&t<=57)))return Qf(e),67108990}return 22}}}else{if((8232^o)<=1){n=-5&n|1,Jf(e);continue}const r=$f(e);if(r>0&&(o=r),Ff(o))return e.tokenValue="",dp(e,t,0,0);if(Kf(o)){Qf(e);continue}e.report(20,String.fromCodePoint(o))}}return 1048576}function Np(e,t){var n,r;!(1&e.flags)&&1048576&~e.getToken()&&e.report(30,ap[255&e.getToken()]),Op(e,t,1074790417)||null===(n=(r=e.options).onInsertedSemicolon)||void 0===n||n.call(r,e.startIndex)}function Tp(e,t,n,r){return t-n<13&&"use strict"===r&&(!(1048576&~e.getToken())||1&e.flags)?1:0}function kp(e,t,n){return e.getToken()!==n?0:(Sp(e,t),1)}function Op(e,t,n){return e.getToken()===n&&(Sp(e,t),!0)}function Rp(e,t,n){e.getToken()!==n&&e.report(25,ap[255&n]),Sp(e,t)}function Pp(e,t){switch(t.type){case"ArrayExpression":{t.type="ArrayPattern";const{elements:n}=t;for(let t=0,r=n.length;t<r;++t){const r=n[t];r&&Pp(e,r)}return}case"ObjectExpression":{t.type="ObjectPattern";const{properties:n}=t;for(let t=0,r=n.length;t<r;++t)Pp(e,n[t]);return}case"AssignmentExpression":return t.type="AssignmentPattern","="!==t.operator&&e.report(71),delete t.operator,void Pp(e,t.left);case"Property":return void Pp(e,t.value);case"SpreadElement":t.type="RestElement",Pp(e,t.argument)}}function Dp(e,t,n,r,i){1&t&&(36864&~r||e.report(118),i||537079808&~r||e.report(119)),20480&~r&&-2147483528!==r||e.report(102),24&n&&73==(255&r)&&e.report(100),2050&t&&209006===r&&e.report(110),1025&t&&241771===r&&e.report(97,"yield")}function Mp(e,t,n){1&t&&(36864&~n||e.report(118),537079808&~n||e.report(119),-2147483527===n&&e.report(95),-2147483528===n&&e.report(95)),20480&~n||e.report(102),2050&t&&209006===n&&e.report(110),1025&t&&241771===n&&e.report(97,"yield")}function xp(e,t,n){return 209006===n&&(2050&t&&e.report(110),e.destructible|=128),241771===n&&1024&t&&e.report(97,"yield"),!(20480&~n&&36864&~n&&-2147483527!=n)}function Gp(e,t,n,r){for(;t;){if(t["$"+n])return r&&e.report(137),1;r&&t.loop&&(r=0),t=t.$}return 0}function Up(e){switch(e.type){case"JSXIdentifier":return e.name;case"JSXNamespacedName":return e.namespace+":"+e.name;case"JSXMemberExpression":return Up(e.object)+"."+Up(e.property)}}function Wp(e,t){return 1025&e?!(2&e&&209006===t||1024&e&&241771===t||12288&~t):!(12288&~t&&36864&~t)}function Vp(e,t,n){537079808&~n||(1&t&&e.report(119),e.flags|=512),Wp(t,n)||e.report(0)}const Fp={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jp={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};function Bp(e){if(e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.index>=e.end)return void e.setToken(1048576);if(60===e.currentChar)return Qf(e),void e.setToken(8456256);if(123===e.currentChar)return Qf(e),void e.setToken(2162700);let t=0;for(;e.index<e.end;){const n=jf[e.source.charCodeAt(e.index)];if(1024&n?(t|=5,Jf(e)):2048&n?(Yf(e,t),t=-5&t|1):Qf(e),16384&jf[e.currentChar])break}e.tokenIndex===e.index&&e.report(0);const n=e.source.slice(e.tokenIndex,e.index);e.options.raw&&(e.tokenRaw=n),e.tokenValue=function(e){return e.replace(/&(?:[a-zA-Z]+|#[xX][\da-fA-F]+|#\d+);/g,e=>{var t,n,r;if("#"===e.charAt(1)){const t=e.charAt(2);return(n="X"===t||"x"===t?parseInt(e.slice(3),16):parseInt(e.slice(2),10))>=55296&&n<=57343||n>1114111?"�":String.fromCodePoint(null!==(r=sp(jp,n))&&void 0!==r?r:n)}return null!==(t=sp(Fp,e.slice(1,-1)))&&void 0!==t?t:e})}(n),e.setToken(137)}function zp(e){if(!(143360&~e.getToken())){const{index:t}=e;let n=e.currentChar;for(;32770&jf[n];)n=Qf(e);e.tokenValue+=e.source.slice(t,e.index),e.setToken(208897,!0)}return e.getToken()}class Hp{constructor(e,t){Qo(this,"parser",void 0),Qo(this,"parent",void 0),Qo(this,"refs",Object.create(null)),Qo(this,"privateIdentifiers",new Map),this.parser=e,this.parent=t}addPrivateIdentifier(e,t){const{privateIdentifiers:n}=this;let r=800&t;768&r||(r|=768);const i=n.get(e);this.hasPrivateIdentifier(e)&&((32&i)!=(32&r)||i&r&768)&&this.parser.report(146,e),n.set(e,this.hasPrivateIdentifier(e)?i|r:r)}addPrivateIdentifierRef(e){var t,n;null!==(n=(t=this.refs)[e])&&void 0!==n||(t[e]=[]),this.refs[e].push(this.parser.tokenStart)}isPrivateIdentifierDefined(e){var t;return this.hasPrivateIdentifier(e)||Boolean(null===(t=this.parent)||void 0===t?void 0:t.isPrivateIdentifierDefined(e))}validatePrivateIdentifierRefs(){for(const e in this.refs)if(!this.isPrivateIdentifierDefined(e)){const{index:t,line:n,column:r}=this.refs[e][0];throw new op({index:t,line:n,column:r},{index:t+e.length,line:n,column:r+e.length},4,e)}}hasPrivateIdentifier(e){return this.privateIdentifiers.has(e)}}class qp{constructor(e,t=2,n){Qo(this,"parser",void 0),Qo(this,"type",void 0),Qo(this,"parent",void 0),Qo(this,"scopeError",void 0),Qo(this,"variableBindings",new Map),this.parser=e,this.type=t,this.parent=n}createChildScope(e){return new qp(this.parser,e,this)}addVarOrBlock(e,t,n,r){4&n?this.addVarName(e,t,n):this.addBlockName(e,t,n,r),64&r&&this.parser.declareUnboundVariable(t)}addVarName(e,t,n){const{parser:r}=this;let i=this;for(;i&&!(128&i.type);){const{variableBindings:o}=i,s=o.get(t);s&&248&s&&(!r.options.webcompat||1&e||!(128&n&&68&s||128&s&&68&n))&&r.report(145,t),i===this&&s&&1&s&&1&n&&i.recordScopeError(145,t),s&&(256&s||512&s&&!r.options.webcompat)&&r.report(145,t),i.variableBindings.set(t,n),i=i.parent}}hasVariable(e){return this.variableBindings.has(e)}addBlockName(e,t,n,r){var i;const{parser:o}=this,s=this.variableBindings.get(t);!s||2&s||(1&n?this.recordScopeError(145,t):o.options.webcompat&&!(1&e)&&2&r&&64===s&&64===n||o.report(145,t)),64&this.type&&null!==(i=this.parent)&&void 0!==i&&i.hasVariable(t)&&!(2&this.parent.variableBindings.get(t))&&o.report(145,t),512&this.type&&s&&!(2&s)&&1&n&&this.recordScopeError(145,t),32&this.type&&768&this.parent.variableBindings.get(t)&&o.report(159,t),this.variableBindings.set(t,n)}recordScopeError(e,...t){this.scopeError={type:e,params:t,start:this.parser.tokenStart,end:this.parser.currentLocation}}reportScopeError(){const{scopeError:e}=this;if(e)throw new op(e.start,e.end,e.type,...e.params)}}function Qp(e,t,n){const r=e.createScope().createChildScope(512);return r.addBlockName(t,n,1,0),r}class $p{constructor(e,t={}){var n,r;Qo(this,"source",void 0),Qo(this,"lastOnToken",null),Qo(this,"options",void 0),Qo(this,"token",1048576),Qo(this,"flags",0),Qo(this,"index",0),Qo(this,"line",1),Qo(this,"column",0),Qo(this,"startIndex",0),Qo(this,"end",0),Qo(this,"tokenIndex",0),Qo(this,"startColumn",0),Qo(this,"tokenColumn",0),Qo(this,"tokenLine",1),Qo(this,"startLine",1),Qo(this,"tokenValue",""),Qo(this,"tokenRaw",""),Qo(this,"tokenRegExp",void 0),Qo(this,"currentChar",0),Qo(this,"exportedNames",new Set),Qo(this,"exportedBindings",new Set),Qo(this,"assignable",1),Qo(this,"destructible",0),Qo(this,"leadingDecorators",{decorators:[]}),this.source=e,this.end=e.length,this.currentChar=e.charCodeAt(0),this.options=function(e){const t=Yo({validateRegex:!0},e);return t.module&&!t.sourceType&&(t.sourceType="module"),!t.globalReturn||t.sourceType&&"script"!==t.sourceType||(t.sourceType="commonjs"),t}(t),Array.isArray(this.options.onComment)&&(this.options.onComment=(n=this.options.onComment,r=this.options,function(e,t,i,o,s){const a={type:e,value:t};r.ranges&&(a.start=i,a.end=o,a.range=[i,o]),r.loc&&(a.loc=s),n.push(a)})),Array.isArray(this.options.onToken)&&(this.options.onToken=function(e,t){return function(n,r,i,o){const s={token:n};t.ranges&&(s.start=r,s.end=i,s.range=[r,i]),t.loc&&(s.loc=o),e.push(s)}}(this.options.onToken,this.options))}getToken(){return this.token}setToken(e,t=!1){this.token=e;const{onToken:n}=this.options;if(n)if(1048576!==e){const r={start:{line:this.tokenLine,column:this.tokenColumn},end:{line:this.line,column:this.column}};!t&&this.lastOnToken&&n(...this.lastOnToken),this.lastOnToken=[Zf(e),this.tokenIndex,this.index,r]}else this.lastOnToken&&(n(...this.lastOnToken),this.lastOnToken=null);return e}get tokenStart(){return{index:this.tokenIndex,line:this.tokenLine,column:this.tokenColumn}}get currentLocation(){return{index:this.index,line:this.line,column:this.column}}finishNode(e,t,n){if(this.options.ranges){e.start=t.index;const r=n?n.index:this.startIndex;e.end=r,e.range=[t.index,r]}return this.options.loc&&(e.loc={start:{line:t.line,column:t.column},end:n?{line:n.line,column:n.column}:{line:this.startLine,column:this.startColumn}},this.options.source&&(e.loc.source=this.options.source)),e}addBindingToExports(e){this.exportedBindings.add(e)}declareUnboundVariable(e){const{exportedNames:t}=this;t.has(e)&&this.report(147,e),t.add(e)}report(e,...t){throw new op(this.tokenStart,this.currentLocation,e,...t)}createScopeIfLexical(e,t){if(this.options.lexical)return this.createScope(e,t)}createScope(e,t){return new qp(this,e,t)}createPrivateScopeIfLexical(e){if(this.options.lexical)return new Hp(this,e)}cloneIdentifier(e){return this.cloneLocationInformation(Yo({},e),e)}cloneStringLiteral(e){return this.cloneLocationInformation(Yo({},e),e)}cloneLocationInformation(e,t){return this.options.ranges&&(e.range=[...t.range]),this.options.loc&&(e.loc=Yo(Yo({},t.loc),{},{start:Yo({},t.loc.start),end:Yo({},t.loc.end)})),e}}function Yp(e,t,n){var r;let i;switch(132===e.getToken()&&Object.assign(e.leadingDecorators,{start:e.tokenStart,decorators:rm(e,t,void 0)}),e.getToken()){case 20564:i=function(e,t,n){const r=e.leadingDecorators.decorators.length?e.leadingDecorators.start:e.tokenStart;Sp(e,32|t);const i=[];let o=null,s=null,a=[];if(Op(e,32|t,20561)){switch(e.getToken()){case 86104:o=Vg(e,t,n,void 0,4,1,1,0,e.tokenStart);break;case 132:case 86094:o=nm(e,t,n,void 0,1);break;case 209005:{const{tokenStart:r}=e;o=Ug(e,t);const{flags:i}=e;1&i||(86104===e.getToken()?o=Vg(e,t,n,void 0,4,1,1,1,r):67174411===e.getToken()?(o=tm(e,t,void 0,o,1,1,0,i,r),o=Lg(e,t,void 0,o,0,0,r),o=_g(e,t,void 0,0,0,r,o)):143360&e.getToken()&&(n&&(n=Qp(e,t,e.tokenValue)),o=Ug(e,t),o=Kg(e,t,n,void 0,[o],1,r)));break}default:o=pg(e,t,void 0,1,0,e.tokenStart),Np(e,32|t)}return n&&e.declareUnboundVariable("default"),e.finishNode({type:"ExportDefaultDeclaration",declaration:o},r)}switch(e.getToken()){case 8391476:{Sp(e,t);let i=null;Op(e,t,77932)&&(n&&e.declareUnboundVariable(e.tokenValue),i=Og(e,t)),Rp(e,t,209011),134283267!==e.getToken()&&e.report(105,"Export"),s=Wg(e,t);const o={type:"ExportAllDeclaration",source:s,exported:i,attributes:Ng(e,t)};return Np(e,32|t),e.finishNode(o,r)}case 2162700:{Sp(e,t);const r=[],o=[];let c=0;for(;143360&e.getToken()||134283267===e.getToken();){const{tokenStart:s,tokenValue:a}=e,l=Og(e,t);let u;"Literal"===l.type&&(c=1),77932===e.getToken()?(Sp(e,t),143360&e.getToken()||134283267===e.getToken()||e.report(106),n&&(r.push(e.tokenValue),o.push(a)),u=Og(e,t)):(n&&(r.push(e.tokenValue),o.push(e.tokenValue)),u="Literal"===l.type?e.cloneStringLiteral(l):e.cloneIdentifier(l)),i.push(e.finishNode({type:"ExportSpecifier",local:l,exported:u},s)),1074790415!==e.getToken()&&Rp(e,t,18)}Rp(e,t,1074790415),Op(e,t,209011)?(134283267!==e.getToken()&&e.report(105,"Export"),s=Wg(e,t),a=Ng(e,t),n&&r.forEach(t=>e.declareUnboundVariable(t))):(c&&e.report(172),n&&(r.forEach(t=>e.declareUnboundVariable(t)),o.forEach(t=>e.addBindingToExports(t)))),Np(e,32|t);break}case 132:case 86094:o=nm(e,t,n,void 0,2);break;case 86104:o=Vg(e,t,n,void 0,4,1,2,0,e.tokenStart);break;case 241737:o=og(e,t,n,void 0,8,64);break;case 86090:o=og(e,t,n,void 0,16,64);break;case 86088:o=sg(e,t,n,void 0,64);break;case 209005:{const{tokenStart:r}=e;if(Sp(e,t),!(1&e.flags)&&86104===e.getToken()){o=Vg(e,t,n,void 0,4,1,2,1,r);break}}default:e.report(30,ap[255&e.getToken()])}const c={type:"ExportNamedDeclaration",declaration:o,specifiers:i,source:s,attributes:a};return e.finishNode(c,r)}(e,t,n);break;case 86106:i=function(e,t,n){const r=e.tokenStart;Sp(e,t);let i=null;const{tokenStart:o}=e;let s=[];if(134283267===e.getToken())i=Wg(e,t);else{if(143360&e.getToken()){const r=lg(e,t,n);if(s=[e.finishNode({type:"ImportDefaultSpecifier",local:r},o)],Op(e,t,18))switch(e.getToken()){case 8391476:s.push(ug(e,t,n));break;case 2162700:dg(e,t,n,s);break;default:e.report(107)}}else switch(e.getToken()){case 8391476:s=[ug(e,t,n)];break;case 2162700:dg(e,t,n,s);break;case 67174411:return fg(e,t,void 0,r);case 67108877:return hg(e,t,r);default:e.report(30,ap[255&e.getToken()])}i=function(e,t){return Rp(e,t,209011),134283267!==e.getToken()&&e.report(105,"Import"),Wg(e,t)}(e,t)}const a={type:"ImportDeclaration",specifiers:s,source:i,attributes:Ng(e,t)};return Np(e,32|t),e.finishNode(a,r)}(e,t,n);break;default:i=Jp(e,t,n,void 0,4,{})}return null!==(r=e.leadingDecorators)&&void 0!==r&&r.decorators.length&&e.report(170),i}function Jp(e,t,n,r,i,o){const s=e.tokenStart;switch(e.getToken()){case 86104:return Vg(e,t,n,r,i,1,0,0,s);case 132:case 86094:return nm(e,t,n,r,0);case 86090:return og(e,t,n,r,16,0);case 241737:return function(e,t,n,r,i){const{tokenValue:o,tokenStart:s}=e,a=e.getToken();let c=Ug(e,t);if(2240512&e.getToken()){const i=ag(e,t,n,r,8,0);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:"let",declarations:i},s)}if(e.assignable=1,1&t&&e.report(85),21===e.getToken())return eg(e,t,n,r,i,{},o,c,a,0,s);if(10===e.getToken()){let n;e.options.lexical&&(n=Qp(e,t,o)),e.flags=128^(128|e.flags),c=Kg(e,t,n,r,[c],0,s)}else c=Lg(e,t,r,c,0,0,s),c=_g(e,t,r,0,0,s,c);return 18===e.getToken()&&(c=gg(e,t,r,0,s,c)),Zp(e,t,c,s)}(e,t,n,r,i);case 20564:e.report(103,"export");case 86106:switch(Sp(e,t),e.getToken()){case 67174411:return fg(e,t,r,s);case 67108877:return hg(e,t,s);default:e.report(103,"import")}case 209005:return tg(e,t,n,r,i,o,1);default:return Kp(e,t,n,r,i,o,1)}}function Kp(e,t,n,r,i,o,s){switch(e.getToken()){case 86088:return sg(e,t,n,r,0);case 20572:return function(e,t,n){4096&t||e.report(92);const r=e.tokenStart;Sp(e,32|t);const i=1&e.flags||1048576&e.getToken()?null:mg(e,t,n,0,1,e.tokenStart);return Np(e,32|t),e.finishNode({type:"ReturnStatement",argument:i},r)}(e,t,r);case 20569:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411),e.assignable=1;const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=rg(e,t,n,r,i);let c=null;return 20563===e.getToken()&&(Sp(e,32|t),c=rg(e,t,n,r,i)),e.finishNode({type:"IfStatement",test:s,consequent:a,alternate:c},o)}(e,t,n,r,o);case 20567:return function(e,t,n,r,i){var o;const s=e.tokenStart;Sp(e,t);const a=((2048&t)>0||(2&t)>0&&(8&t)>0)&&Op(e,t,209006);Rp(e,32|t,67174411),n=null===(o=n)||void 0===o?void 0:o.createChildScope(1);let c,l=null,u=null,d=0,h=null,f=86088===e.getToken()||241737===e.getToken()||86090===e.getToken();const{tokenStart:p}=e,g=e.getToken();if(f)241737===g?(h=Ug(e,t),2240512&e.getToken()?(8673330===e.getToken()?1&t&&e.report(67):h=e.finishNode({type:"VariableDeclaration",kind:"let",declarations:ag(e,131072|t,n,r,8,32)},p),e.assignable=1):1&t?e.report(67):(f=!1,e.assignable=1,h=Lg(e,t,r,h,0,0,p),471156===e.getToken()&&e.report(115))):(Sp(e,t),h=e.finishNode(86088===g?{type:"VariableDeclaration",kind:"var",declarations:ag(e,131072|t,n,r,4,32)}:{type:"VariableDeclaration",kind:"const",declarations:ag(e,131072|t,n,r,16,32)},p),e.assignable=1);else if(1074790417===g)a&&e.report(82);else if(2097152&~g)h=Ig(e,131072|t,r,1,0,1);else{const n=e.tokenStart;h=2162700===g?qg(e,t,void 0,r,1,0,0,2,32):jg(e,t,void 0,r,1,0,0,2,32),d=e.destructible,64&d&&e.report(63),e.assignable=16&d?2:1,h=Lg(e,131072|t,r,h,0,0,n)}if(!(262144&~e.getToken())){if(471156===e.getToken()){2&e.assignable&&e.report(80,a?"await":"of"),Pp(e,h),Sp(e,32|t),c=pg(e,t,r,1,0,e.tokenStart),Rp(e,32|t,16);const o=ig(e,t,n,r,i);return e.finishNode({type:"ForOfStatement",left:h,right:c,body:o,await:a},s)}2&e.assignable&&e.report(80,"in"),Pp(e,h),Sp(e,32|t),a&&e.report(82),c=mg(e,t,r,0,1,e.tokenStart),Rp(e,32|t,16);const o=ig(e,t,n,r,i);return e.finishNode({type:"ForInStatement",body:o,left:h,right:c},s)}a&&e.report(82),f||(8&d&&1077936155!==e.getToken()&&e.report(80,"loop"),h=_g(e,131072|t,r,0,0,p,h)),18===e.getToken()&&(h=gg(e,t,r,0,p,h)),Rp(e,32|t,1074790417),1074790417!==e.getToken()&&(l=mg(e,t,r,0,1,e.tokenStart)),Rp(e,32|t,1074790417),16!==e.getToken()&&(u=mg(e,t,r,0,1,e.tokenStart)),Rp(e,32|t,16);const m=ig(e,t,n,r,i);return e.finishNode({type:"ForStatement",init:h,test:l,update:u,body:m},s)}(e,t,n,r,o);case 20562:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,32|t);const s=ig(e,t,n,r,i);Rp(e,t,20578),Rp(e,32|t,67174411);const a=mg(e,t,r,0,1,e.tokenStart);return Rp(e,32|t,16),Op(e,32|t,1074790417),e.finishNode({type:"DoWhileStatement",body:s,test:a},o)}(e,t,n,r,o);case 20578:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411);const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=ig(e,t,n,r,i);return e.finishNode({type:"WhileStatement",test:s,body:a},o)}(e,t,n,r,o);case 86110:return function(e,t,n,r,i){var o;const s=e.tokenStart;Sp(e,t),Rp(e,32|t,67174411);const a=mg(e,t,r,0,1,e.tokenStart);Rp(e,t,16),Rp(e,t,2162700);const c=[];let l=0;for(n=null===(o=n)||void 0===o?void 0:o.createChildScope(8);1074790415!==e.getToken();){const{tokenStart:o}=e;let s=null;const a=[];for(Op(e,32|t,20556)?s=mg(e,t,r,0,1,e.tokenStart):(Rp(e,32|t,20561),l&&e.report(89),l=1),Rp(e,32|t,21);20556!==e.getToken()&&1074790415!==e.getToken()&&20561!==e.getToken();)a.push(Jp(e,4|t,n,r,2,{$:i}));c.push(e.finishNode({type:"SwitchCase",test:s,consequent:a},o))}return Rp(e,32|t,1074790415),e.finishNode({type:"SwitchStatement",discriminant:a,cases:c},s)}(e,t,n,r,o);case 1074790417:return function(e,t){const n=e.tokenStart;return Sp(e,32|t),e.finishNode({type:"EmptyStatement"},n)}(e,t);case 2162700:return Xp(e,t,null==n?void 0:n.createChildScope(),r,o,e.tokenStart);case 86112:return function(e,t,n){const r=e.tokenStart;Sp(e,32|t),1&e.flags&&e.report(90);const i=mg(e,t,n,0,1,e.tokenStart);return Np(e,32|t),e.finishNode({type:"ThrowStatement",argument:i},r)}(e,t,r);case 20555:return function(e,t,n){const r=e.tokenStart;Sp(e,32|t);let i=null;if(!(1&e.flags)&&143360&e.getToken()){const{tokenValue:r}=e;i=Ug(e,32|t),Gp(e,n,r,0)||e.report(138,r)}else 132&t||e.report(69);return Np(e,32|t),e.finishNode({type:"BreakStatement",label:i},r)}(e,t,o);case 20559:return function(e,t,n){128&t||e.report(68);const r=e.tokenStart;Sp(e,t);let i=null;if(!(1&e.flags)&&143360&e.getToken()){const{tokenValue:r}=e;i=Ug(e,32|t),Gp(e,n,r,1)||e.report(138,r)}return Np(e,32|t),e.finishNode({type:"ContinueStatement",label:i},r)}(e,t,o);case 20577:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,32|t);const s=Xp(e,t,null==n?void 0:n.createChildScope(16),r,{$:i}),{tokenStart:a}=e,c=Op(e,32|t,20557)?function(e,t,n,r,i,o){var s;let a=null,c=n;var l;Op(e,t,67174411)&&(a=lm(e,t,n=null===(l=n)||void 0===l?void 0:l.createChildScope(4),r,2097152&~e.getToken()?512:256,0),18===e.getToken()?e.report(86):1077936155===e.getToken()&&e.report(87),Rp(e,32|t,16));c=null===(s=n)||void 0===s?void 0:s.createChildScope(32);const u=Xp(e,t,c,r,{$:i});return e.finishNode({type:"CatchClause",param:a,body:u},o)}(e,t,n,r,i,a):null;let l=null;return 20566===e.getToken()&&(Sp(e,32|t),l=Xp(e,t,null==n?void 0:n.createChildScope(4),r,{$:i})),c||l||e.report(88),e.finishNode({type:"TryStatement",block:s,handler:c,finalizer:l},o)}(e,t,n,r,o);case 20579:return function(e,t,n,r,i){const o=e.tokenStart;Sp(e,t),1&t&&e.report(91),Rp(e,32|t,67174411);const s=mg(e,t,r,0,1,e.tokenStart);Rp(e,32|t,16);const a=Kp(e,t,n,r,2,i,0);return e.finishNode({type:"WithStatement",object:s,body:a},o)}(e,t,n,r,o);case 20560:return function(e,t){const n=e.tokenStart;return Sp(e,32|t),Np(e,32|t),e.finishNode({type:"DebuggerStatement"},n)}(e,t);case 209005:return tg(e,t,n,r,i,o,0);case 20557:e.report(162);case 20566:e.report(163);case 86104:e.report(1&t?76:e.options.webcompat?77:78);case 86094:e.report(79);default:return function(e,t,n,r,i,o,s){const{tokenValue:a,tokenStart:c}=e,l=e.getToken();let u;return 241737===l?(u=Ug(e,t),1&t&&e.report(85),69271571===e.getToken()&&e.report(84)):u=Ag(e,t,r,2,0,1,0,1,e.tokenStart),143360&l&&21===e.getToken()?eg(e,t,n,r,i,o,a,u,l,s,c):(u=Lg(e,t,r,u,0,0,c),u=_g(e,t,r,0,0,c,u),18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c))}(e,t,n,r,i,o,s)}}function Xp(e,t,n,r,i,o=e.tokenStart,s="BlockStatement"){const a=[];for(Rp(e,32|t,2162700);1074790415!==e.getToken();)a.push(Jp(e,t,n,r,2,{$:i}));return Rp(e,32|t,1074790415),e.finishNode({type:s,body:a},o)}function Zp(e,t,n,r){return Np(e,32|t),e.finishNode({type:"ExpressionStatement",expression:n},r)}function eg(e,t,n,r,i,o,s,a,c,l,u){Dp(e,t,0,c,1),function(e,t,n){let r=t;for(;r;)r["$"+n]&&e.report(136,n),r=r.$;t["$"+n]=1}(e,o,s),Sp(e,32|t);const d=!l||1&t||!e.options.webcompat||86104!==e.getToken()?Kp(e,t,n,r,i,o,l):Vg(e,t,null==n?void 0:n.createChildScope(),r,i,0,0,0,e.tokenStart);return e.finishNode({type:"LabeledStatement",label:a,body:d},u)}function tg(e,t,n,r,i,o,s){const{tokenValue:a,tokenStart:c}=e,l=e.getToken();let u=Ug(e,t);if(21===e.getToken())return eg(e,t,n,r,i,o,a,u,l,1,c);const d=1&e.flags;if(!d){if(86104===e.getToken())return s||e.report(123),Vg(e,t,n,r,i,1,0,1,c);if(Wp(t,e.getToken()))return u=em(e,t,r,1,c),18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c)}return 67174411===e.getToken()?u=tm(e,t,r,u,1,1,0,d,c):(10===e.getToken()&&(Vp(e,t,l),36864&~l||(e.flags|=256),u=Yg(e,2048|t,r,e.tokenValue,u,0,1,0,c)),e.assignable=1),u=Lg(e,t,r,u,0,0,c),u=_g(e,t,r,0,0,c,u),e.assignable=1,18===e.getToken()&&(u=gg(e,t,r,0,c,u)),Zp(e,t,u,c)}function ng(e,t,n,r,i){const o=e.startIndex;1074790417!==r&&(e.assignable=2,n=Lg(e,t,void 0,n,0,0,i),1074790417!==e.getToken()&&(n=_g(e,t,void 0,0,0,i,n),18===e.getToken()&&(n=gg(e,t,void 0,0,i,n))),Np(e,32|t));const s={type:"ExpressionStatement",expression:n};return"Literal"===n.type&&"string"==typeof n.value&&(s.directive=e.source.slice(i.index+1,o-1)),e.finishNode(s,i)}function rg(e,t,n,r,i){const{tokenStart:o}=e;return 1&t||!e.options.webcompat||86104!==e.getToken()?Kp(e,t,n,r,0,{$:i},0):Vg(e,t,null==n?void 0:n.createChildScope(),r,0,0,0,0,o)}function ig(e,t,n,r,i){return Kp(e,131072^(131072|t)|128,n,r,0,{loop:1,$:i},0)}function og(e,t,n,r,i,o){const s=e.tokenStart;Sp(e,t);const a=ag(e,t,n,r,i,o);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:8&i?"let":"const",declarations:a},s)}function sg(e,t,n,r,i){const o=e.tokenStart;Sp(e,t);const s=ag(e,t,n,r,4,i);return Np(e,32|t),e.finishNode({type:"VariableDeclaration",kind:"var",declarations:s},o)}function ag(e,t,n,r,i,o){let s=1;const a=[cg(e,t,n,r,i,o)];for(;Op(e,t,18);)s++,a.push(cg(e,t,n,r,i,o));return s>1&&32&o&&262144&e.getToken()&&e.report(61,ap[255&e.getToken()]),a}function cg(e,t,n,r,i,o){const{tokenStart:s}=e,a=e.getToken();let c=null;const l=lm(e,t,n,r,i,o);if(1077936155===e.getToken()){if(Sp(e,32|t),c=pg(e,t,r,1,0,e.tokenStart),(32&o||!(2097152&a))&&(471156===e.getToken()||8673330===e.getToken()&&(2097152&a||!(4&i)||1&t)))throw new op(s,e.currentLocation,60,471156===e.getToken()?"of":"in")}else(16&i||(2097152&a)>0)&&262144&~e.getToken()&&e.report(59,16&i?"const":"destructuring");return e.finishNode({type:"VariableDeclarator",id:l,init:c},s)}function lg(e,t,n){return Wp(t,e.getToken())||e.report(118),537079808&~e.getToken()||e.report(119),null==n||n.addBlockName(t,e.tokenValue,8,0),Ug(e,t)}function ug(e,t,n){const{tokenStart:r}=e;if(Sp(e,t),Rp(e,t,77932),!(134217728&~e.getToken()))throw new op(r,e.currentLocation,30,ap[255&e.getToken()]);return e.finishNode({type:"ImportNamespaceSpecifier",local:lg(e,t,n)},r)}function dg(e,t,n,r){for(Sp(e,t);143360&e.getToken()||134283267===e.getToken();){let{tokenValue:i,tokenStart:o}=e;const s=e.getToken(),a=Og(e,t);let c;Op(e,t,77932)?(134217728&~e.getToken()&&18!==e.getToken()?Dp(e,t,16,e.getToken(),0):e.report(106),i=e.tokenValue,c=Ug(e,t)):"Identifier"===a.type?(Dp(e,t,16,s,0),c=e.cloneIdentifier(a)):e.report(25,ap[108]),null==n||n.addBlockName(t,i,8,0),r.push(e.finishNode({type:"ImportSpecifier",local:c,imported:a},o)),1074790415!==e.getToken()&&Rp(e,t,18)}return Rp(e,t,1074790415),r}function hg(e,t,n){let r=Sg(e,t,e.finishNode({type:"Identifier",name:"import"},n),n);return r=Lg(e,t,void 0,r,0,0,n),r=_g(e,t,void 0,0,0,n,r),18===e.getToken()&&(r=gg(e,t,void 0,0,n,r)),Zp(e,t,r,n)}function fg(e,t,n,r){let i=bg(e,t,n,0,r);return i=Lg(e,t,n,i,0,0,r),18===e.getToken()&&(i=gg(e,t,n,0,r,i)),Zp(e,t,i,r)}function pg(e,t,n,r,i,o){let s=Ag(e,t,n,2,0,r,i,1,o);return s=Lg(e,t,n,s,i,0,o),_g(e,t,n,i,0,o,s)}function gg(e,t,n,r,i,o){const s=[o];for(;Op(e,32|t,18);)s.push(pg(e,t,n,1,r,e.tokenStart));return e.finishNode({type:"SequenceExpression",expressions:s},i)}function mg(e,t,n,r,i,o){const s=pg(e,t,n,i,r,o);return 18===e.getToken()?gg(e,t,n,r,o,s):s}function _g(e,t,n,r,i,o,s){const a=e.getToken();if(!(4194304&~a)){2&e.assignable&&e.report(26),(!i&&1077936155===a&&"ArrayExpression"===s.type||"ObjectExpression"===s.type)&&Pp(e,s),Sp(e,32|t);const c=pg(e,t,n,1,r,e.tokenStart);return e.assignable=2,e.finishNode(i?{type:"AssignmentPattern",left:s,right:c}:{type:"AssignmentExpression",left:s,operator:ap[255&a],right:c},o)}return 8388608&~a||(s=wg(e,t,n,r,o,4,a,s)),Op(e,32|t,22)&&(s=Eg(e,t,n,s,o)),s}function vg(e,t,n,r,i,o,s){const a=e.getToken();Sp(e,32|t);const c=pg(e,t,n,1,r,e.tokenStart);return s=e.finishNode(i?{type:"AssignmentPattern",left:s,right:c}:{type:"AssignmentExpression",left:s,operator:ap[255&a],right:c},o),e.assignable=2,s}function Eg(e,t,n,r,i){const o=pg(e,131072^(131072|t),n,1,0,e.tokenStart);Rp(e,32|t,21),e.assignable=1;const s=pg(e,t,n,1,0,e.tokenStart);return e.assignable=2,e.finishNode({type:"ConditionalExpression",test:r,consequent:o,alternate:s},i)}function wg(e,t,n,r,i,o,s,a){const c=8673330&-((131072&t)>0);let l,u;for(e.assignable=2;8388608&e.getToken()&&(l=e.getToken(),u=3840&l,(524288&l&&268435456&s||524288&s&&268435456&l)&&e.report(165),!(u+((8391735===l)<<8)-((c===l)<<12)<=o));)Sp(e,32|t),a=e.finishNode({type:524288&l||268435456&l?"LogicalExpression":"BinaryExpression",left:a,right:wg(e,t,n,r,e.tokenStart,u,l,Ig(e,t,n,0,r,1)),operator:ap[255&l]},i);return 1077936155===e.getToken()&&e.report(26),a}function yg(e,t,n,r,i,o,s){const{tokenStart:a}=e;Rp(e,32|t,2162700);const c=[];if(1074790415!==e.getToken()){for(;134283267===e.getToken();){const{index:n,tokenStart:r,tokenIndex:i,tokenValue:o}=e,a=e.getToken(),l=Wg(e,t);if(Tp(e,n,i,o)){if(t|=1,128&e.flags)throw new op(r,e.currentLocation,66);if(64&e.flags)throw new op(r,e.currentLocation,9);if(4096&e.flags)throw new op(r,e.currentLocation,15);null==s||s.reportScopeError()}c.push(ng(e,t,l,a,r))}1&t&&(o&&(537079808&~o||e.report(119),36864&~o||e.report(40)),512&e.flags&&e.report(119),256&e.flags&&e.report(118))}for(e.flags=4928^(4928|e.flags),e.destructible=256^(256|e.destructible);1074790415!==e.getToken();)c.push(Jp(e,t,n,r,4,{}));return Rp(e,24&i?32|t:t,1074790415),e.flags&=-4289,1077936155===e.getToken()&&e.report(26),e.finishNode({type:"BlockStatement",body:c},a)}function Ig(e,t,n,r,i,o){const s=e.tokenStart;return Lg(e,t,n,Ag(e,t,n,2,0,r,i,o,s),i,0,s)}function Lg(e,t,n,r,i,o,s){if(33619968&~e.getToken()||1&e.flags){if(!(67108864&~e.getToken())){switch(t=131072^(131072|t),e.getToken()){case 67108877:{Sp(e,8^(262152|t)),16&t&&130===e.getToken()&&"super"===e.tokenValue&&e.report(173),e.assignable=1;const i=Cg(e,64|t,n);r=e.finishNode({type:"MemberExpression",object:r,computed:!1,property:i,optional:!1},s);break}case 69271571:{let o=!1;2048&~e.flags||(o=!0,e.flags=2048^(2048|e.flags)),Sp(e,32|t);const{tokenStart:a}=e,c=mg(e,t,n,i,1,a);Rp(e,t,20),e.assignable=1,r=e.finishNode({type:"MemberExpression",object:r,computed:!0,property:c,optional:!1},s),o&&(e.flags|=2048);break}case 67174411:{if(!(1024&~e.flags))return e.flags=1024^(1024|e.flags),r;let o=!1;2048&~e.flags||(o=!0,e.flags=2048^(2048|e.flags));const a=Gg(e,t,n,i);e.assignable=2,r=e.finishNode({type:"CallExpression",callee:r,arguments:a,optional:!1},s),o&&(e.flags|=2048);break}case 67108990:Sp(e,8^(262152|t)),e.flags|=2048,e.assignable=2,r=function(e,t,n,r,i){let o,s=!1;if(69271571!==e.getToken()&&67174411!==e.getToken()||2048&~e.flags||(s=!0,e.flags=2048^(2048|e.flags)),69271571===e.getToken()){Sp(e,32|t);const{tokenStart:s}=e,a=mg(e,t,n,0,1,s);Rp(e,t,20),e.assignable=2,o=e.finishNode({type:"MemberExpression",object:r,computed:!0,optional:!0,property:a},i)}else if(67174411===e.getToken()){const s=Gg(e,t,n,0);e.assignable=2,o=e.finishNode({type:"CallExpression",callee:r,arguments:s,optional:!0},i)}else{const s=Cg(e,t,n);e.assignable=2,o=e.finishNode({type:"MemberExpression",object:r,computed:!1,optional:!0,property:s},i)}return s&&(e.flags|=2048),o}(e,t,n,r,s);break;default:2048&~e.flags||e.report(166),e.assignable=2,r=e.finishNode({type:"TaggedTemplateExpression",tag:r,quasi:67174408===e.getToken()?Dg(e,64|t,n):Pg(e,t)},s)}r=Lg(e,t,n,r,0,1,s)}}else r=function(e,t,n,r){2&e.assignable&&e.report(55);const i=e.getToken();return Sp(e,t),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:n,operator:ap[255&i],prefix:!1},r)}(e,t,r,s);return 0!==o||2048&~e.flags||(e.flags=2048^(2048|e.flags),r=e.finishNode({type:"ChainExpression",expression:r},s)),r}function Cg(e,t,n){return 143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken()||130===e.getToken()||e.report(160),130===e.getToken()?am(e,t,n,0):Ug(e,t)}function Ag(e,t,n,r,i,o,s,a,c){if(!(143360&~e.getToken())){switch(e.getToken()){case 209006:return function(e,t,n,r,i,o){i&&(e.destructible|=128),524288&t&&e.report(177);const s=$g(e,t,n);if("ArrowFunctionExpression"===s.type||!(65536&e.getToken())){if(2048&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},176);if(2&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);if(8192&t&&2048&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},110);return s}if(8192&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},31);if(2048&t||2&t&&8&t){if(r)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},0);const i=Ig(e,t,n,0,0,1);return 8391735===e.getToken()&&e.report(33),e.assignable=2,e.finishNode({type:"AwaitExpression",argument:i},o)}if(2&t)throw new op(o,{index:e.startIndex,line:e.startLine,column:e.startColumn},98);return s}(e,t,n,i,s,c);case 241771:return function(e,t,n,r,i,o){if(r&&(e.destructible|=256),1024&t){Sp(e,32|t),8192&t&&e.report(32),i||e.report(26),22===e.getToken()&&e.report(124);let r=null,s=!1;return 1&e.flags?8391476===e.getToken()&&e.report(30,ap[255&e.getToken()]):(s=Op(e,32|t,8391476),(77824&e.getToken()||s)&&(r=pg(e,t,n,1,0,e.tokenStart))),e.assignable=2,e.finishNode({type:"YieldExpression",argument:r,delegate:s},o)}return 1&t&&e.report(97,"yield"),$g(e,t,n)}(e,t,n,s,o,c);case 209005:return function(e,t,n,r,i,o,s,a){const c=e.getToken(),l=Ug(e,t),{flags:u}=e;if(!(1&u)){if(86104===e.getToken())return Fg(e,t,n,1,r,a);if(Wp(t,e.getToken()))return i||e.report(0),36864&~e.getToken()||(e.flags|=256),em(e,t,n,o,a)}return s||67174411!==e.getToken()?10===e.getToken()?(Vp(e,t,c),s&&e.report(51),36864&~c||(e.flags|=256),Yg(e,t,n,e.tokenValue,l,s,o,0,a)):(e.assignable=1,l):tm(e,t,n,l,o,1,0,u,a)}(e,t,n,s,a,o,i,c)}const{tokenValue:l}=e,u=e.getToken(),d=Ug(e,64|t);return 10===e.getToken()?(a||e.report(0),Vp(e,t,u),36864&~u||(e.flags|=256),Yg(e,t,n,l,d,i,o,0,c)):(!(16&t)||32768&t||8192&t||"arguments"!==e.tokenValue||e.report(130),73==(255&u)&&(1&t&&e.report(113),24&r&&e.report(100)),e.assignable=1&t&&!(537079808&~u)?2:1,d)}if(!(134217728&~e.getToken()))return Wg(e,t);switch(e.getToken()){case 33619993:case 33619994:return function(e,t,n,r,i,o){r&&e.report(56),i||e.report(0);const s=e.getToken();Sp(e,32|t);const a=Ig(e,t,n,0,0,1);return 2&e.assignable&&e.report(55),e.assignable=2,e.finishNode({type:"UpdateExpression",argument:a,operator:ap[255&s],prefix:!0},o)}(e,t,n,i,a,c);case 16863276:case 16842798:case 16842799:case 25233968:case 25233969:case 16863275:case 16863277:return function(e,t,n,r,i){r||e.report(0);const{tokenStart:o}=e,s=e.getToken();Sp(e,32|t);const a=Ig(e,t,n,0,i,1);var c;return 8391735===e.getToken()&&e.report(33),1&t&&16863276===s&&("Identifier"===a.type?e.report(121):(c=a).property&&"PrivateIdentifier"===c.property.type&&e.report(127)),e.assignable=2,e.finishNode({type:"UnaryExpression",operator:ap[255&s],argument:a,prefix:!0},o)}(e,t,n,a,s);case 86104:return Fg(e,t,n,0,s,c);case 2162700:return function(e,t,n,r,i){const o=qg(e,t,void 0,n,r,i,0,2,0);return 64&e.destructible&&e.report(63),8&e.destructible&&e.report(62),o}(e,t,n,o?0:1,s);case 69271571:return function(e,t,n,r,i){const o=jg(e,t,void 0,n,r,i,0,2,0);return 64&e.destructible&&e.report(63),8&e.destructible&&e.report(62),o}(e,t,n,o?0:1,s);case 67174411:return function(e,t,n,r,i,o,s){var a;e.flags=128^(128|e.flags);const c=e.tokenStart;Sp(e,262176|t);const l=null===(a=e.createScopeIfLexical())||void 0===a?void 0:a.createChildScope(512);if(Op(e,t=131072^(131072|t),16))return Jg(e,t,l,n,[],r,0,s);let u,d=0;e.destructible&=-385;let h=[],f=0,p=0,g=0;const m=e.tokenStart;for(e.assignable=1;16!==e.getToken();){const{tokenStart:r}=e,i=e.getToken();if(143360&i)null==l||l.addBlockName(t,e.tokenValue,1,0),537079808&~i?36864&~i||(g=1):p=1,u=Ag(e,t,n,1,0,1,1,1,r),16===e.getToken()||18===e.getToken()?2&e.assignable&&(d|=16,p=1):(1077936155===e.getToken()?p=1:d|=16,u=Lg(e,t,n,u,1,0,r),16!==e.getToken()&&18!==e.getToken()&&(u=_g(e,t,n,1,0,r,u)));else{if(2097152&~i){if(14===i){u=zg(e,t,l,n,16,1,0,0,1,0),16&e.destructible&&e.report(74),p=1,!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),d|=8;break}if(d|=16,u=pg(e,t,n,1,1,r),!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),18===e.getToken()&&(f||(f=1,h=[u])),f){for(;Op(e,32|t,18);)h.push(pg(e,t,n,1,1,e.tokenStart));e.assignable=2,u=e.finishNode({type:"SequenceExpression",expressions:h},m)}return Rp(e,t,16),e.destructible=d,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:u},c):u}u=2162700===i?qg(e,262144|t,l,n,0,1,0,1,0):jg(e,262144|t,l,n,0,1,0,1,0),d|=e.destructible,p=1,e.assignable=2,16!==e.getToken()&&18!==e.getToken()&&(8&d&&e.report(122),u=Lg(e,t,n,u,0,0,r),d|=16,16!==e.getToken()&&18!==e.getToken()&&(u=_g(e,t,n,0,0,r,u)))}if(!f||16!==e.getToken()&&18!==e.getToken()||h.push(u),!Op(e,32|t,18))break;if(f||(f=1,h=[u]),16===e.getToken()){d|=8;break}}return f&&(e.assignable=2,u=e.finishNode({type:"SequenceExpression",expressions:h},m)),Rp(e,t,16),16&d&&8&d&&e.report(151),d|=256&e.destructible?256:128&e.destructible?128:0,10===e.getToken()?(48&d&&e.report(49),2050&t&&128&d&&e.report(31),1025&t&&256&d&&e.report(32),p&&(e.flags|=128),g&&(e.flags|=256),Jg(e,t,l,n,f?h:[u],r,0,s)):(64&d&&e.report(63),8&d&&e.report(144),e.destructible=256^(256|e.destructible)|d,e.options.preserveParens?e.finishNode({type:"ParenthesizedExpression",expression:u},c):u)}(e,64|t,n,o,0,0,c);case 86021:case 86022:case 86023:return function(e,t){const n=e.tokenStart,r=ap[255&e.getToken()],i={type:"Literal",value:86023===e.getToken()?null:"true"===r};return e.options.raw&&(i.raw=r),Sp(e,t),e.assignable=2,e.finishNode(i,n)}(e,t);case 86111:return function(e,t){const{tokenStart:n}=e;return Sp(e,t),e.assignable=2,e.finishNode({type:"ThisExpression"},n)}(e,t);case 65540:return function(e,t){const{tokenRaw:n,tokenRegExp:r,tokenValue:i,tokenStart:o}=e;Sp(e,t),e.assignable=2;const s={type:"Literal",value:i,regex:r};return e.options.raw&&(s.raw=n),e.finishNode(s,o)}(e,t);case 132:case 86094:return function(e,t,n,r,i){let o=null,s=null;const a=rm(e,t,n);Sp(e,t=16384^(16385|t)),4096&e.getToken()&&20565!==e.getToken()&&(xp(e,t,e.getToken())&&e.report(118),537079808&~e.getToken()||e.report(119),o=Ug(e,t));let c=t;Op(e,32|t,20565)?(s=Ig(e,t,n,0,r,0),c|=512):c=512^(512|c);const l=om(e,c,t,void 0,n,2,0,r);return e.assignable=2,e.finishNode(Yo({type:"ClassExpression",id:o,superClass:s,body:l},e.options.next?{decorators:a}:null),i)}(e,t,n,s,c);case 86109:return function(e,t){const{tokenStart:n}=e;switch(Sp(e,t),e.getToken()){case 67108990:e.report(167);case 67174411:512&t||e.report(28),e.assignable=2;break;case 69271571:case 67108877:256&t||e.report(29),e.assignable=1;break;default:e.report(30,"super")}return e.finishNode({type:"Super"},n)}(e,t);case 67174409:return Pg(e,t);case 67174408:return Dg(e,t,n);case 86107:return function(e,t,n,r){const{tokenStart:i}=e,o=Ug(e,32|t),{tokenStart:s}=e;if(Op(e,t,67108877)){if(65536&t&&209029===e.getToken())return e.assignable=2,function(e,t,n,r){const i=Ug(e,t);return e.finishNode({type:"MetaProperty",meta:n,property:i},r)}(e,t,o,i);e.report(94)}e.assignable=2,16842752&~e.getToken()||e.report(65,ap[255&e.getToken()]);const a=Ag(e,t,n,2,1,0,r,1,s);t=131072^(131072|t),67108990===e.getToken()&&e.report(168);const c=Zg(e,t,n,a,r,s);return e.assignable=2,e.finishNode({type:"NewExpression",callee:c,arguments:67174411===e.getToken()?Gg(e,t,n,r):[]},i)}(e,t,n,s);case 134283388:return Rg(e,t);case 130:return am(e,t,n,0);case 86106:return function(e,t,n,r,i,o){let s=Ug(e,t);return 67108877===e.getToken()?Sg(e,t,s,o):(r&&e.report(142),s=bg(e,t,n,i,o),e.assignable=2,Lg(e,t,n,s,i,0,o))}(e,t,n,i,s,c);case 8456256:if(e.options.jsx)return dm(e,t,n,0,e.tokenStart);default:if(Wp(t,e.getToken()))return $g(e,t,n);e.report(30,ap[255&e.getToken()])}}function Sg(e,t,n,r){2&t||e.report(169),Sp(e,t);const i=e.getToken();return 209030!==i&&"meta"!==e.tokenValue?e.report(174):-2147483648&i&&e.report(175),e.assignable=2,e.finishNode({type:"MetaProperty",meta:n,property:Ug(e,t)},r)}function bg(e,t,n,r,i){Rp(e,32|t,67174411),14===e.getToken()&&e.report(143);const o=pg(e,t,n,1,r,e.tokenStart);let s=null;18===e.getToken()&&(Rp(e,t,18),16!==e.getToken()&&(s=pg(e,131072^(131072|t),n,1,r,e.tokenStart)),Op(e,t,18));const a={type:"ImportExpression",source:o,options:s};return Rp(e,t,16),e.finishNode(a,i)}function Ng(e,t){if(!Op(e,t,20579))return[];Rp(e,t,2162700);const n=[],r=new Set;for(;1074790415!==e.getToken();){const i=e.tokenStart,o=kg(e,t);Rp(e,t,21);const s=Tg(e,t),a="Literal"===o.type?o.value:o.name;r.has(a)&&e.report(145,`${a}`),r.add(a),n.push(e.finishNode({type:"ImportAttribute",key:o,value:s},i)),1074790415!==e.getToken()&&Rp(e,t,18)}return Rp(e,t,1074790415),n}function Tg(e,t){if(134283267===e.getToken())return Wg(e,t);e.report(30,ap[255&e.getToken()])}function kg(e,t){return 134283267===e.getToken()?Wg(e,t):143360&e.getToken()?Ug(e,t):void e.report(30,ap[255&e.getToken()])}function Og(e,t){return 134283267===e.getToken()?(e.tokenValue.isWellFormed()||e.report(171),Wg(e,t)):143360&e.getToken()?Ug(e,t):void e.report(30,ap[255&e.getToken()])}function Rg(e,t){const{tokenRaw:n,tokenValue:r,tokenStart:i}=e;Sp(e,t),e.assignable=2;const o={type:"Literal",value:r,bigint:String(r)};return e.options.raw&&(o.raw=n),e.finishNode(o,i)}function Pg(e,t){e.assignable=2;const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;Rp(e,t,67174409);const o=[Mg(e,n,r,i,!0)];return e.finishNode({type:"TemplateLiteral",expressions:[],quasis:o},i)}function Dg(e,t,n){t=131072^(131072|t);const{tokenValue:r,tokenRaw:i,tokenStart:o}=e;Rp(e,-65&t|32,67174408);const s=[Mg(e,r,i,o,!1)],a=[mg(e,-65&t,n,0,1,e.tokenStart)];for(1074790415!==e.getToken()&&e.report(83);67174409!==e.setToken(Cp(e,t),!0);){const{tokenValue:r,tokenRaw:i,tokenStart:o}=e;Rp(e,-65&t|32,67174408),s.push(Mg(e,r,i,o,!1)),a.push(mg(e,t,n,0,1,e.tokenStart)),1074790415!==e.getToken()&&e.report(83)}{const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;Rp(e,t,67174409),s.push(Mg(e,n,r,i,!0))}return e.finishNode({type:"TemplateLiteral",expressions:a,quasis:s},o)}function Mg(e,t,n,r,i){const o=e.finishNode({type:"TemplateElement",value:{cooked:t,raw:n},tail:i},r),s=i?1:2;return e.options.ranges&&(o.start+=1,o.range[0]+=1,o.end-=s,o.range[1]-=s),e.options.loc&&(o.loc.start.column+=1,o.loc.end.column-=s),o}function xg(e,t,n){const r=e.tokenStart;Rp(e,32|(t=131072^(131072|t)),14);const i=pg(e,t,n,1,0,e.tokenStart);return e.assignable=1,e.finishNode({type:"SpreadElement",argument:i},r)}function Gg(e,t,n,r){Sp(e,32|t);const i=[];if(16===e.getToken())return Sp(e,64|t),i;for(;16!==e.getToken()&&(14===e.getToken()?i.push(xg(e,t,n)):i.push(pg(e,t,n,1,r,e.tokenStart)),18===e.getToken())&&(Sp(e,32|t),16!==e.getToken()););return Rp(e,64|t,16),i}function Ug(e,t){const{tokenValue:n,tokenStart:r}=e,i="await"===n&&!(-2147483648&e.getToken());return Sp(e,t|(i?32:0)),e.finishNode({type:"Identifier",name:n},r)}function Wg(e,t){const{tokenValue:n,tokenRaw:r,tokenStart:i}=e;if(134283388===e.getToken())return Rg(e,t);const o={type:"Literal",value:n};return e.options.raw&&(o.raw=r),Sp(e,t),e.assignable=2,e.finishNode(o,i)}function Vg(e,t,n,r,i,o,s,a,c){var l,u;Sp(e,32|t);const d=o?kp(e,t,8391476):0;let h,f=null,p=n?e.createScope():void 0;if(67174411===e.getToken())1&s||e.report(39,"Function");else{const r=!(4&i)||8&t&&2&t?64|(a?1024:0)|(d?1024:0):4;var g;Mp(e,t,e.getToken()),n&&(4&r?n.addVarName(t,e.tokenValue,r):n.addBlockName(t,e.tokenValue,r,i),p=null===(g=p)||void 0===g?void 0:g.createChildScope(128),s&&2&s&&e.declareUnboundVariable(e.tokenValue)),h=e.getToken(),143360&e.getToken()?f=Ug(e,t):e.report(30,ap[255&e.getToken()])}{const e=28416;t=(t|e)^e|65536|(a?2048:0)|(d?1024:0)|(d?0:262144)}p=null===(l=p)||void 0===l?void 0:l.createChildScope(256);const m=Xg(e,-524289&t|8192,p,r,0,1),_=524428,v=yg(e,36864|(t|_)^_,null===(u=p)||void 0===u?void 0:u.createChildScope(64),r,8,h,p);return e.finishNode({type:"FunctionDeclaration",id:f,params:m,body:v,async:1===a,generator:1===d},c)}function Fg(e,t,n,r,i,o){var s,a;Sp(e,32|t);const c=kp(e,t,8391476),l=(r?2048:0)|(c?1024:0);let u,d=null,h=e.createScopeIfLexical();const f=552704;var p;143360&e.getToken()&&(Mp(e,(t|f)^f|l,e.getToken()),h=null===(p=h)||void 0===p?void 0:p.createChildScope(128),u=e.getToken(),d=Ug(e,t)),t=(t|f)^f|65536|l|(c?0:262144),h=null===(s=h)||void 0===s?void 0:s.createChildScope(256);const g=Xg(e,-524289&t|8192,h,n,i,1),m=yg(e,36864|-131229&t,null===(a=h)||void 0===a?void 0:a.createChildScope(64),n,0,u,h);return e.assignable=2,e.finishNode({type:"FunctionExpression",id:d,params:g,body:m,async:1===r,generator:1===c},o)}function jg(e,t,n,r,i,o,s,a,c){const{tokenStart:l}=e;Sp(e,32|t);const u=[];let d=0;for(t=131072^(131072|t);20!==e.getToken();)if(Op(e,32|t,18))u.push(null);else{let i;const{tokenStart:l,tokenValue:h}=e,f=e.getToken();if(143360&f)if(i=Ag(e,t,r,a,0,1,o,1,l),1077936155===e.getToken()){2&e.assignable&&e.report(26),Sp(e,32|t),null==n||n.addVarOrBlock(t,h,a,c);const u=pg(e,t,r,1,o,e.tokenStart);i=e.finishNode(s?{type:"AssignmentPattern",left:i,right:u}:{type:"AssignmentExpression",operator:"=",left:i,right:u},l),d|=256&e.destructible?256:128&e.destructible?128:0}else 18===e.getToken()||20===e.getToken()?(2&e.assignable?d|=16:null==n||n.addVarOrBlock(t,h,a,c),d|=256&e.destructible?256:128&e.destructible?128:0):(d|=1&a?32:2&a?0:16,i=Lg(e,t,r,i,o,0,l),18!==e.getToken()&&20!==e.getToken()?(1077936155!==e.getToken()&&(d|=16),i=_g(e,t,r,o,s,l,i)):1077936155!==e.getToken()&&(d|=2&e.assignable?16:32));else 2097152&f?(i=2162700===e.getToken()?qg(e,t,n,r,0,o,s,a,c):jg(e,t,n,r,0,o,s,a,c),d|=e.destructible,e.assignable=16&e.destructible?2:1,18===e.getToken()||20===e.getToken()?2&e.assignable&&(d|=16):8&e.destructible?e.report(71):(i=Lg(e,t,r,i,o,0,l),d=2&e.assignable?16:0,18!==e.getToken()&&20!==e.getToken()?i=_g(e,t,r,o,s,l,i):1077936155!==e.getToken()&&(d|=2&e.assignable?16:32))):14===f?(i=zg(e,t,n,r,20,a,c,0,o,s),d|=e.destructible,18!==e.getToken()&&20!==e.getToken()&&e.report(30,ap[255&e.getToken()])):(i=Ig(e,t,r,1,0,1),18!==e.getToken()&&20!==e.getToken()?(i=_g(e,t,r,o,s,l,i),3&a||67174411!==f||(d|=16)):2&e.assignable?d|=16:67174411===f&&(d|=1&e.assignable&&3&a?32:16));if(u.push(i),!Op(e,32|t,18))break;if(20===e.getToken())break}Rp(e,t,20);const h=e.finishNode({type:s?"ArrayPattern":"ArrayExpression",elements:u},l);return!i&&4194304&e.getToken()?Bg(e,t,r,d,o,s,l,h):(e.destructible=d,h)}function Bg(e,t,n,r,i,o,s,a){1077936155!==e.getToken()&&e.report(26),Sp(e,32|t),16&r&&e.report(26),o||Pp(e,a);const{tokenStart:c}=e,l=pg(e,t,n,1,i,c);return e.destructible=72^(72|r)|(128&e.destructible?128:0)|(256&e.destructible?256:0),e.finishNode(o?{type:"AssignmentPattern",left:a,right:l}:{type:"AssignmentExpression",left:a,operator:"=",right:l},s)}function zg(e,t,n,r,i,o,s,a,c,l){const{tokenStart:u}=e;Sp(e,32|t);let d=null,h=0;const{tokenValue:f,tokenStart:p}=e;let g=e.getToken();if(143360&g)e.assignable=1,d=Ag(e,t,r,o,0,1,c,1,p),g=e.getToken(),d=Lg(e,t,r,d,c,0,p),18!==e.getToken()&&e.getToken()!==i&&(2&e.assignable&&1077936155===e.getToken()&&e.report(71),h|=16,d=_g(e,t,r,c,l,p,d)),2&e.assignable?h|=16:g===i||18===g?null==n||n.addVarOrBlock(t,f,o,s):h|=32,h|=128&e.destructible?128:0;else if(g===i)e.report(41);else{if(!(2097152&g)){h|=32,d=Ig(e,t,r,1,c,1);const{tokenStart:n}=e,o=e.getToken();return 1077936155===o?(2&e.assignable&&e.report(26),d=_g(e,t,r,c,l,n,d),h|=16):(18===o?h|=16:o!==i&&(d=_g(e,t,r,c,l,n,d)),h|=1&e.assignable?32:16),e.destructible=h,e.getToken()!==i&&18!==e.getToken()&&e.report(161),e.finishNode({type:l?"RestElement":"SpreadElement",argument:d},u)}d=2162700===e.getToken()?qg(e,t,n,r,1,c,l,o,s):jg(e,t,n,r,1,c,l,o,s),g=e.getToken(),1077936155!==g&&g!==i&&18!==g?(8&e.destructible&&e.report(71),d=Lg(e,t,r,d,c,0,p),h|=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(d=wg(e,t,r,1,p,4,g,d)),Op(e,32|t,22)&&(d=Eg(e,t,r,d,p)),h|=2&e.assignable?16:32):(1077936155!==e.getToken()&&(h|=16),d=_g(e,t,r,c,l,p,d))):h|=1074790415===i&&1077936155!==g?16:e.destructible}if(e.getToken()!==i)if(1&o&&(h|=a?16:32),Op(e,32|t,1077936155)){16&h&&e.report(26),Pp(e,d);const n=pg(e,t,r,1,c,e.tokenStart);d=e.finishNode(l?{type:"AssignmentPattern",left:d,right:n}:{type:"AssignmentExpression",left:d,operator:"=",right:n},p),h=16}else h|=16;return e.destructible=h,e.finishNode({type:l?"RestElement":"SpreadElement",argument:d},u)}function Hg(e,t,n,r,i,o){var s,a;const c=11264|(64&r?0:16896);t=(t|c)^c|(8&r?1024:0)|(16&r?2048:0)|(64&r?16384:0)|98560;let l=e.createScopeIfLexical(256);const u=function(e,t,n,r,i,o,s){Rp(e,t,67174411);const a=[];if(e.flags=128^(128|e.flags),16===e.getToken())return 512&i&&e.report(37,"Setter","one",""),Sp(e,t),a;256&i&&e.report(37,"Getter","no","s"),512&i&&14===e.getToken()&&e.report(38),t=131072^(131072|t);let c=0,l=0;for(;18!==e.getToken();){let o=null;const{tokenStart:u}=e;if(143360&e.getToken()?(1&t||(36864&~e.getToken()||(e.flags|=256),537079808&~e.getToken()||(e.flags|=512)),o=um(e,t,n,1|i,0)):(2162700===e.getToken()?o=qg(e,t,n,r,1,s,1,1,0):69271571===e.getToken()?o=jg(e,t,n,r,1,s,1,1,0):14===e.getToken()&&(o=zg(e,t,n,r,16,1,0,0,s,1)),l=1,48&e.destructible&&e.report(50)),1077936155===e.getToken()){Sp(e,32|t),l=1;const n=pg(e,t,r,1,0,e.tokenStart);o=e.finishNode({type:"AssignmentPattern",left:o,right:n},u)}if(c++,a.push(o),!Op(e,t,18))break;if(16===e.getToken())break}return 512&i&&1!==c&&e.report(37,"Setter","one",""),null==n||n.reportScopeError(),l&&(e.flags|=128),Rp(e,t,16),a}(e,-524289&t|8192,l,n,r,0,i);l=null===(s=l)||void 0===s?void 0:s.createChildScope(64);const d=yg(e,36864|-655373&t,l,n,0,void 0,null===(a=l)||void 0===a?void 0:a.parent);return e.finishNode({type:"FunctionExpression",params:u,body:d,async:(16&r)>0,generator:(8&r)>0,id:null},o)}function qg(e,t,n,r,i,o,s,a,c){const{tokenStart:l}=e;Sp(e,t);const u=[];let d=0,h=0;for(t=131072^(131072|t);1074790415!==e.getToken();){const{tokenValue:i,tokenStart:l}=e,f=e.getToken();if(14===f)u.push(zg(e,t,n,r,1074790415,a,c,0,o,s));else{let p,g=0,m=null;if(143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken())if(-2147483527===e.getToken()&&(d|=16),m=Ug(e,t),18===e.getToken()||1074790415===e.getToken()||1077936155===e.getToken())if(g|=4,1&t&&!(537079808&~f)?d|=16:Dp(e,t,a,f,0),null==n||n.addVarOrBlock(t,i,a,c),Op(e,32|t,1077936155)){d|=8;const n=pg(e,t,r,1,o,e.tokenStart);d|=256&e.destructible?256:128&e.destructible?128:0,p=e.finishNode({type:"AssignmentPattern",left:e.cloneIdentifier(m),right:n},l)}else d|=(209006===f?128:0)|(-2147483528===f?16:0),p=e.cloneIdentifier(m);else if(Op(e,32|t,21)){const{tokenStart:l}=e;if("__proto__"===i&&h++,143360&e.getToken()){const i=e.getToken(),u=e.tokenValue;p=Ag(e,t,r,a,0,1,o,1,l);const h=e.getToken();p=Lg(e,t,r,p,o,0,l),18===e.getToken()||1074790415===e.getToken()?1077936155===h||1074790415===h||18===h?(d|=128&e.destructible?128:0,2&e.assignable?d|=16:143360&~i||null==n||n.addVarOrBlock(t,u,a,c)):d|=1&e.assignable?32:16:4194304&~e.getToken()?(d|=16,8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,h,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l))):(2&e.assignable?d|=16:1077936155!==h?d|=32:null==n||n.addVarOrBlock(t,u,a,c),p=_g(e,t,r,o,s,l,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,o,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,18!==e.getToken()&&1074790415!==f&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,l,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&e.destructible?e.report(71):(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l)),d|=2&e.assignable?16:32):p=vg(e,t,r,o,s,l,p)))}else 69271571===e.getToken()?(d|=16,209005===f&&(g|=16),g|=2|(209008===f?256:209009===f?512:1),m=Qg(e,t,r,o),d|=e.assignable,p=Hg(e,t,r,g,o,e.tokenStart)):143360&e.getToken()?(d|=16,-2147483528===f&&e.report(95),209005===f?(1&e.flags&&e.report(132),g|=17):209008===f?g|=256:209009===f?g|=512:e.report(0),m=Ug(e,t),p=Hg(e,t,r,g,o,e.tokenStart)):67174411===e.getToken()?(d|=16,g|=1,p=Hg(e,t,r,g,o,e.tokenStart)):8391476===e.getToken()?(d|=16,209008===f?e.report(42):209009===f?e.report(43):209005!==f&&e.report(30,ap[52]),Sp(e,t),g|=9|(209005===f?16:0),143360&e.getToken()?m=Ug(e,t):134217728&~e.getToken()?69271571===e.getToken()?(g|=2,m=Qg(e,t,r,o),d|=e.assignable):e.report(30,ap[255&e.getToken()]):m=Wg(e,t),p=Hg(e,t,r,g,o,e.tokenStart)):134217728&~e.getToken()?e.report(133):(209005===f&&(g|=16),g|=209008===f?256:209009===f?512:1,d|=16,m=Wg(e,t),p=Hg(e,t,r,g,o,e.tokenStart));else if(134217728&~e.getToken())if(69271571===e.getToken())if(m=Qg(e,t,r,o),d|=256&e.destructible?256:0,g|=2,21===e.getToken()){Sp(e,32|t);const{tokenStart:i,tokenValue:l}=e,u=e.getToken();if(143360&e.getToken()){p=Ag(e,t,r,a,0,1,o,1,i);const h=e.getToken();p=Lg(e,t,r,p,o,0,i),4194304&~e.getToken()?18===e.getToken()||1074790415===e.getToken()?1077936155===h||1074790415===h||18===h?2&e.assignable?d|=16:143360&~u||null==n||n.addVarOrBlock(t,l,a,c):d|=1&e.assignable?32:16:(d|=16,p=_g(e,t,r,o,s,i,p)):(d|=2&e.assignable?16:1077936155===h?0:32,p=vg(e,t,r,o,s,i,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,0,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,i),d=1&e.assignable?0:16,18!==e.getToken()&&1074790415!==e.getToken()&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,i,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&d?e.report(62):(p=Lg(e,t,r,p,o,0,i),d=2&e.assignable?16|d:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,i,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,i)),d|=2&e.assignable?16:32):(1077936155!==e.getToken()&&(d|=16),p=vg(e,t,r,o,s,i,p))))}else 67174411===e.getToken()?(g|=1,p=Hg(e,t,r,g,o,e.tokenStart),d=16):e.report(44);else if(8391476===f)if(Rp(e,32|t,8391476),g|=8,143360&e.getToken()){const n=e.getToken();if(m=Ug(e,t),g|=1,67174411!==e.getToken())throw new op(e.tokenStart,e.currentLocation,209005===n?46:209008===n||209009===e.getToken()?45:47,ap[255&n]);d|=16,p=Hg(e,t,r,g,o,e.tokenStart)}else 134217728&~e.getToken()?69271571===e.getToken()?(d|=16,g|=3,m=Qg(e,t,r,o),p=Hg(e,t,r,g,o,e.tokenStart)):e.report(126):(d|=16,m=Wg(e,t),g|=1,p=Hg(e,t,r,g,o,e.tokenStart));else e.report(30,ap[255&f]);else if(m=Wg(e,t),21===e.getToken()){Rp(e,32|t,21);const{tokenStart:l}=e;if("__proto__"===i&&h++,143360&e.getToken()){p=Ag(e,t,r,a,0,1,o,1,l);const{tokenValue:i}=e,u=e.getToken();p=Lg(e,t,r,p,o,0,l),18===e.getToken()||1074790415===e.getToken()?1077936155===u||1074790415===u||18===u?2&e.assignable?d|=16:null==n||n.addVarOrBlock(t,i,a,c):d|=1&e.assignable?32:16:1077936155===e.getToken()?(2&e.assignable&&(d|=16),p=_g(e,t,r,o,s,l,p)):(d|=16,p=_g(e,t,r,o,s,l,p))}else 2097152&~e.getToken()?(p=Ig(e,t,r,1,0,1),d|=1&e.assignable?32:16,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):(p=Lg(e,t,r,p,o,0,l),d=1&e.assignable?0:16,18!==e.getToken()&&1074790415!==e.getToken()&&(1077936155!==e.getToken()&&(d|=16),p=_g(e,t,r,o,s,l,p)))):(p=69271571===e.getToken()?jg(e,t,n,r,0,o,s,a,c):qg(e,t,n,r,0,o,s,a,c),d=e.destructible,e.assignable=16&d?2:1,18===e.getToken()||1074790415===e.getToken()?2&e.assignable&&(d|=16):8&~e.destructible&&(p=Lg(e,t,r,p,o,0,l),d=2&e.assignable?16:0,4194304&~e.getToken()?(8388608&~e.getToken()||(p=wg(e,t,r,1,l,4,f,p)),Op(e,32|t,22)&&(p=Eg(e,t,r,p,l)),d|=2&e.assignable?16:32):p=vg(e,t,r,o,s,l,p)))}else 67174411===e.getToken()?(g|=1,p=Hg(e,t,r,g,o,e.tokenStart),d=16|e.assignable):e.report(134);d|=128&e.destructible?128:0,e.destructible=d,u.push(e.finishNode({type:"Property",key:m,value:p,kind:768&g?512&g?"set":"get":"init",computed:(2&g)>0,method:(1&g)>0,shorthand:(4&g)>0},l))}if(d|=e.destructible,18!==e.getToken())break;Sp(e,t)}Rp(e,t,1074790415),h>1&&(d|=64);const f=e.finishNode({type:s?"ObjectPattern":"ObjectExpression",properties:u},l);return!i&&4194304&e.getToken()?Bg(e,t,r,d,o,s,l,f):(e.destructible=d,f)}function Qg(e,t,n,r){Sp(e,32|t);const i=pg(e,131072^(131072|t),n,1,r,e.tokenStart);return Rp(e,t,20),i}function $g(e,t,n){const{tokenStart:r}=e,{tokenValue:i}=e;let o=0,s=0;537079808&~e.getToken()?36864&~e.getToken()||(s=1):o=1;const a=Ug(e,t);if(e.assignable=1,10===e.getToken()){const c=e.options.lexical?Qp(e,t,i):void 0;return o&&(e.flags|=128),s&&(e.flags|=256),Kg(e,t,c,n,[a],0,r)}return a}function Yg(e,t,n,r,i,o,s,a,c){return s||e.report(57),o&&e.report(51),e.flags&=-129,Kg(e,t,e.options.lexical?Qp(e,t,r):void 0,n,[i],a,c)}function Jg(e,t,n,r,i,o,s,a){o||e.report(57);for(let t=0;t<i.length;++t)Pp(e,i[t]);return Kg(e,t,n,r,i,s,a)}function Kg(e,t,n,r,i,o,s){var a;1&e.flags&&e.report(48),Rp(e,32|t,10);const c=535552;t=(t|c)^c|(o?2048:0);const l=2162700!==e.getToken();let u;if(null===(a=n)||void 0===a||a.reportScopeError(),l)e.flags=4928^(4928|e.flags),u=pg(e,t,r,1,0,e.tokenStart);else{var d;const i=131084;switch(u=yg(e,(t|i)^i|4096,n=null===(d=n)||void 0===d?void 0:d.createChildScope(64),r,16,void 0,void 0),e.getToken()){case 69271571:1&e.flags||e.report(116);break;case 67108877:case 67174409:case 22:e.report(117);case 67174411:1&e.flags||e.report(116),e.flags|=1024}8388608&~e.getToken()||1&e.flags||e.report(30,ap[255&e.getToken()]),33619968&~e.getToken()||e.report(125)}return e.assignable=2,e.finishNode({type:"ArrowFunctionExpression",params:i,body:u,async:1===o,expression:l,generator:!1},s)}function Xg(e,t,n,r,i,o){Rp(e,t,67174411),e.flags=128^(128|e.flags);const s=[];if(Op(e,t,16))return s;t=131072^(131072|t);let a=0;for(;18!==e.getToken();){let c;const{tokenStart:l}=e,u=e.getToken();if(143360&u?(1&t||(36864&~u||(e.flags|=256),537079808&~u||(e.flags|=512)),c=um(e,t,n,1|o,0)):(2162700===u?c=qg(e,t,n,r,1,i,1,o,0):69271571===u?c=jg(e,t,n,r,1,i,1,o,0):14===u?c=zg(e,t,n,r,16,o,0,0,i,1):e.report(30,ap[255&u]),a=1,48&e.destructible&&e.report(50)),1077936155===e.getToken()){Sp(e,32|t),a=1;const n=pg(e,t,r,1,i,e.tokenStart);c=e.finishNode({type:"AssignmentPattern",left:c,right:n},l)}if(s.push(c),!Op(e,t,18))break;if(16===e.getToken())break}return a&&(e.flags|=128),(a||1&t)&&(null==n||n.reportScopeError()),Rp(e,t,16),s}function Zg(e,t,n,r,i,o){const s=e.getToken();if(67108864&s){if(67108877===s){Sp(e,262144|t),e.assignable=1;const i=Cg(e,t,n);return Zg(e,t,n,e.finishNode({type:"MemberExpression",object:r,computed:!1,property:i,optional:!1},o),0,o)}if(69271571===s){Sp(e,32|t);const{tokenStart:s}=e,a=mg(e,t,n,i,1,s);return Rp(e,t,20),e.assignable=1,Zg(e,t,n,e.finishNode({type:"MemberExpression",object:r,computed:!0,property:a,optional:!1},o),0,o)}if(67174408===s||67174409===s)return e.assignable=2,Zg(e,t,n,e.finishNode({type:"TaggedTemplateExpression",tag:r,quasi:67174408===e.getToken()?Dg(e,64|t,n):Pg(e,64|t)},o),0,o)}return r}function em(e,t,n,r,i){return 209006===e.getToken()&&e.report(31),1025&t&&241771===e.getToken()&&e.report(32),Vp(e,t,e.getToken()),36864&~e.getToken()||(e.flags|=256),Yg(e,-524289&t|2048,n,e.tokenValue,Ug(e,t),0,r,1,i)}function tm(e,t,n,r,i,o,s,a,c){var l;Sp(e,32|t);const u=null===(l=e.createScopeIfLexical())||void 0===l?void 0:l.createChildScope(512);if(Op(e,t=131072^(131072|t),16))return 10===e.getToken()?(1&a&&e.report(48),Jg(e,t,u,n,[],i,1,c)):e.finishNode({type:"CallExpression",callee:r,arguments:[],optional:!1},c);let d=0,h=null,f=0;e.destructible=384^(384|e.destructible);const p=[];for(;16!==e.getToken();){const{tokenStart:i}=e,a=e.getToken();if(143360&a)null==u||u.addBlockName(t,e.tokenValue,o,0),537079808&~a?36864&~a||(e.flags|=256):e.flags|=512,h=Ag(e,t,n,o,0,1,1,1,i),16===e.getToken()||18===e.getToken()?2&e.assignable&&(d|=16,f=1):(1077936155===e.getToken()?f=1:d|=16,h=Lg(e,t,n,h,1,0,i),16!==e.getToken()&&18!==e.getToken()&&(h=_g(e,t,n,1,0,i,h)));else if(2097152&a)h=2162700===a?qg(e,t,u,n,0,1,0,o,s):jg(e,t,u,n,0,1,0,o,s),d|=e.destructible,f=1,16!==e.getToken()&&18!==e.getToken()&&(8&d&&e.report(122),h=Lg(e,t,n,h,0,0,i),d|=16,8388608&~e.getToken()||(h=wg(e,t,n,1,c,4,a,h)),Op(e,32|t,22)&&(h=Eg(e,t,n,h,c)));else{if(14!==a){for(h=pg(e,t,n,1,0,i),d=e.assignable,p.push(h);Op(e,32|t,18);)p.push(pg(e,t,n,1,0,i));return d|=e.assignable,Rp(e,t,16),e.destructible=16|d,e.assignable=2,e.finishNode({type:"CallExpression",callee:r,arguments:p,optional:!1},c)}h=zg(e,t,u,n,16,o,s,1,1,0),d|=(16===e.getToken()?0:16)|e.destructible,f=1}if(p.push(h),!Op(e,32|t,18))break}return Rp(e,t,16),d|=256&e.destructible?256:128&e.destructible?128:0,10===e.getToken()?(48&d&&e.report(27),(1&e.flags||1&a)&&e.report(48),128&d&&e.report(31),1025&t&&256&d&&e.report(32),f&&(e.flags|=128),Jg(e,2048|t,u,n,p,i,1,c)):(64&d&&e.report(63),8&d&&e.report(62),e.assignable=2,e.finishNode({type:"CallExpression",callee:r,arguments:p,optional:!1},c))}function nm(e,t,n,r,i){let o,s;e.leadingDecorators.decorators.length?(132===e.getToken()&&e.report(30,"@"),o=e.leadingDecorators.start,s=[...e.leadingDecorators.decorators],e.leadingDecorators.decorators.length=0):(o=e.tokenStart,s=rm(e,t,r)),Sp(e,t=16384^(16385|t));let a=null,c=null;const{tokenValue:l}=e;4096&e.getToken()&&20565!==e.getToken()?(xp(e,t,e.getToken())&&e.report(118),537079808&~e.getToken()||e.report(119),n&&(n.addBlockName(t,l,32,0),i&&2&i&&e.declareUnboundVariable(l)),a=Ug(e,t)):1&i||e.report(39,"Class");let u=t;Op(e,32|t,20565)?(c=Ig(e,t,r,0,0,0),u|=512):u=512^(512|u);const d=om(e,u,t,n,r,2,8,0);return e.finishNode(Yo({type:"ClassDeclaration",id:a,superClass:c,body:d},e.options.next?{decorators:s}:null),o)}function rm(e,t,n){const r=[];if(e.options.next)for(;132===e.getToken();)r.push(im(e,t,n));return r}function im(e,t,n){const r=e.tokenStart;Sp(e,32|t);const i=e.tokenStart;let o=Ag(e,t,n,2,0,1,0,1,r);return o=Lg(e,t,n,o,0,0,i),e.finishNode({type:"Decorator",expression:o},r)}function om(e,t,n,r,i,o,s,a){const{tokenStart:c}=e,l=e.createPrivateScopeIfLexical(i);Rp(e,32|t,2162700);const u=655360;t=(t|u)^u;const d=32&e.flags;e.flags=32^(32|e.flags);const h=[];for(;1074790415!==e.getToken();){const i=e.tokenStart,s=rm(e,t,l);s.length>0&&"constructor"===e.tokenValue&&e.report(109),1074790415===e.getToken()&&e.report(108),Op(e,t,1074790417)?s.length>0&&e.report(120):h.push(sm(e,t,r,l,n,o,s,0,a,s.length>0?i:e.tokenStart))}return Rp(e,8&s?32|t:t,1074790415),null==l||l.validatePrivateIdentifierRefs(),e.flags=-33&e.flags|d,e.finishNode({type:"ClassBody",body:h},c)}function sm(e,t,n,r,i,o,s,a,c,l){let u=a?32:0,d=null;const h=e.getToken();if(176128&h||-2147483528===h)switch(d=Ug(e,t),h){case 36970:if(!a&&67174411!==e.getToken()&&1048576&~e.getToken()&&1077936155!==e.getToken())return sm(e,t,n,r,i,o,s,1,c,l);break;case 209005:if(67174411!==e.getToken()&&!(1&e.flags)){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=16|(kp(e,t,8391476)?8:0)}break;case 209008:if(67174411!==e.getToken()){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=256}break;case 209009:if(67174411!==e.getToken()){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);u|=512}break;case 12402:if(67174411!==e.getToken()&&!(1&e.flags)){if(!(1073741824&~e.getToken()))return cm(e,t,r,d,u,s,l);e.options.next&&(u|=1024)}}else if(69271571===h)u|=2,d=Qg(e,i,r,c);else if(134217728&~h)if(8391476===h)u|=8,Sp(e,t);else if(130===e.getToken())u|=8192,d=am(e,16|t,r,768);else if(1073741824&~e.getToken()){if(a&&2162700===h)return function(e,t,n,r,i){var o;return Xp(e,t=592128|5764^(5764|t),n=null===(o=n)||void 0===o?void 0:o.createChildScope(),r,{},i,"StaticBlock")}(e,16|t,n,r,l);-2147483527===h?(d=Ug(e,t),67174411!==e.getToken()&&e.report(30,ap[255&e.getToken()])):e.report(30,ap[255&e.getToken()])}else u|=128;else d=Wg(e,t);if(1816&u&&(143360&e.getToken()||-2147483528===e.getToken()||-2147483527===e.getToken()?d=Ug(e,t):134217728&~e.getToken()?69271571===e.getToken()?(u|=2,d=Qg(e,t,r,0)):130===e.getToken()?(u|=8192,d=am(e,t,r,u)):e.report(135):d=Wg(e,t)),2&u||("constructor"===e.tokenValue?(1073741824&~e.getToken()?32&u||67174411!==e.getToken()||(920&u?e.report(53,"accessor"):512&t||(32&e.flags?e.report(54):e.flags|=32)):e.report(129),u|=64):!(8192&u)&&32&u&&"prototype"===e.tokenValue&&e.report(52)),1024&u||67174411!==e.getToken()&&!(768&u))return cm(e,t,r,d,u,s,l);const f=Hg(e,16|t,r,u,c,e.tokenStart);return e.finishNode(Yo({type:"MethodDefinition",kind:!(32&u)&&64&u?"constructor":256&u?"get":512&u?"set":"method",static:(32&u)>0,computed:(2&u)>0,key:d,value:f},e.options.next?{decorators:s}:null),l)}function am(e,t,n,r){const{tokenStart:i}=e;Sp(e,t);const{tokenValue:o}=e;return"constructor"===o&&e.report(128),e.options.lexical&&(n||e.report(4,o),r?n.addPrivateIdentifier(o,r):n.addPrivateIdentifierRef(o)),Sp(e,t),e.finishNode({type:"PrivateIdentifier",name:o},i)}function cm(e,t,n,r,i,o,s){let a=null;if(8&i&&e.report(0),1077936155===e.getToken()){Sp(e,32|t);const{tokenStart:r}=e;537079927===e.getToken()&&e.report(119);const o=11264|(64&i?0:16896);a=Ag(e,16|(t=(t|o)^o|(8&i?1024:0)|(16&i?2048:0)|(64&i?16384:0)|65792),n,2,0,1,0,1,r),!(1073741824&~e.getToken())&&4194304&~e.getToken()||(a=Lg(e,16|t,n,a,0,0,r),a=_g(e,16|t,n,0,0,r,a))}return Np(e,t),e.finishNode(Yo({type:1024&i?"AccessorProperty":"PropertyDefinition",key:r,value:a,static:(32&i)>0,computed:(2&i)>0},e.options.next?{decorators:o}:null),s)}function lm(e,t,n,r,i,o){if(143360&e.getToken()||!(1&t)&&-2147483527===e.getToken())return um(e,t,n,i,o);2097152&~e.getToken()&&e.report(30,ap[255&e.getToken()]);const s=69271571===e.getToken()?jg(e,t,n,r,1,0,1,i,o):qg(e,t,n,r,1,0,1,i,o);return 16&e.destructible&&e.report(50),32&e.destructible&&e.report(50),s}function um(e,t,n,r,i){const o=e.getToken();1&t&&(537079808&~o?36864&~o&&-2147483527!==o||e.report(118):e.report(119)),20480&~o||e.report(102),241771===o&&(1024&t&&e.report(32),2&t&&e.report(111)),73==(255&o)&&24&r&&e.report(100),209006===o&&(2048&t&&e.report(176),2&t&&e.report(110));const{tokenValue:s,tokenStart:a}=e;return Sp(e,t),null==n||n.addVarOrBlock(t,s,r,i),e.finishNode({type:"Identifier",name:s},a)}function dm(e,t,n,r,i){if(r||Rp(e,t,8456256),8390721===e.getToken()){const o=function(e,t){return Bp(e),e.finishNode({type:"JSXOpeningFragment"},t)}(e,i),[s,a]=function(e,t,n,r){const i=[];for(;;){const o=fm(e,t,n,r);if("JSXClosingFragment"===o.type)return[i,o];i.push(o)}}(e,t,n,r);return e.finishNode({type:"JSXFragment",openingFragment:o,children:s,closingFragment:a},i)}8457014===e.getToken()&&e.report(30,ap[255&e.getToken()]);let o=null,s=[];const a=function(e,t,n,r,i){143360&~e.getToken()&&4096&~e.getToken()&&e.report(0);const o=gm(e,t),s=function(e,t,n){const r=[];for(;8457014!==e.getToken()&&8390721!==e.getToken()&&1048576!==e.getToken();)r.push(_m(e,t,n));return r}(e,t,n),a=8457014===e.getToken();return a&&Rp(e,t,8457014),8390721!==e.getToken()&&e.report(25,ap[65]),r||!a?Bp(e):Sp(e,t),e.finishNode({type:"JSXOpeningElement",name:o,attributes:s,selfClosing:a},i)}(e,t,n,r,i);if(!a.selfClosing){[s,o]=function(e,t,n,r){const i=[];for(;;){const o=hm(e,t,n,r);if("JSXClosingElement"===o.type)return[i,o];i.push(o)}}(e,t,n,r);const i=Up(o.name);Up(a.name)!==i&&e.report(155,i)}return e.finishNode({type:"JSXElement",children:s,openingElement:a,closingElement:o},i)}function hm(e,t,n,r){if(137===e.getToken())return pm(e,t);if(2162700===e.getToken())return Em(e,t,n,1,0);if(8456256===e.getToken()){const{tokenStart:i}=e;return Sp(e,t),8457014===e.getToken()?function(e,t,n,r){Rp(e,t,8457014);const i=gm(e,t);return 8390721!==e.getToken()&&e.report(25,ap[65]),n?Bp(e):Sp(e,t),e.finishNode({type:"JSXClosingElement",name:i},r)}(e,t,r,i):dm(e,t,n,1,i)}e.report(0)}function fm(e,t,n,r){if(137===e.getToken())return pm(e,t);if(2162700===e.getToken())return Em(e,t,n,1,0);if(8456256===e.getToken()){const{tokenStart:i}=e;return Sp(e,t),8457014===e.getToken()?function(e,t,n,r){return Rp(e,t,8457014),8390721!==e.getToken()&&e.report(25,ap[65]),n?Bp(e):Sp(e,t),e.finishNode({type:"JSXClosingFragment"},r)}(e,t,r,i):dm(e,t,n,1,i)}e.report(0)}function pm(e,t){const n=e.tokenStart;Sp(e,t);const r={type:"JSXText",value:e.tokenValue};return e.options.raw&&(r.raw=e.tokenRaw),e.finishNode(r,n)}function gm(e,t){const{tokenStart:n}=e;zp(e);let r=wm(e,t);if(21===e.getToken())return vm(e,t,r,n);for(;Op(e,t,67108877);)zp(e),r=mm(e,t,r,n);return r}function mm(e,t,n,r){const i=wm(e,t);return e.finishNode({type:"JSXMemberExpression",object:n,property:i},r)}function _m(e,t,n){const{tokenStart:r}=e;if(2162700===e.getToken())return function(e,t,n){const r=e.tokenStart;Sp(e,t),Rp(e,t,14);const i=pg(e,t,n,1,0,e.tokenStart);return Rp(e,t,1074790415),e.finishNode({type:"JSXSpreadAttribute",argument:i},r)}(e,t,n);zp(e);let i=null,o=wm(e,t);if(21===e.getToken()&&(o=vm(e,t,o,r)),1077936155===e.getToken())switch(function(e,t){return e.startIndex=e.tokenIndex=e.index,e.startColumn=e.tokenColumn=e.column,e.startLine=e.tokenLine=e.line,e.setToken(8192&jf[e.currentChar]?function(e){const t=e.currentChar;let n=Qf(e);const r=e.index;for(;n!==t;)e.index>=e.end&&e.report(16),n=Qf(e);return n!==t&&e.report(16),e.tokenValue=e.source.slice(r,e.index),Qf(e),e.options.raw&&(e.tokenRaw=e.source.slice(e.tokenIndex,e.index)),134283267}(e):bp(e,t,0)),e.getToken()}(e,t)){case 134283267:i=Wg(e,t);break;case 8456256:i=dm(e,t,n,0,e.tokenStart);break;case 2162700:i=Em(e,t,n,0,1);break;default:e.report(154)}return e.finishNode({type:"JSXAttribute",value:i,name:o},r)}function vm(e,t,n,r){Rp(e,t,21);const i=wm(e,t);return e.finishNode({type:"JSXNamespacedName",namespace:n,name:i},r)}function Em(e,t,n,r,i){const{tokenStart:o}=e;Sp(e,32|t);const{tokenStart:s}=e;if(14===e.getToken())return function(e,t,n,r){Rp(e,t,14);const i=pg(e,t,n,1,0,e.tokenStart);return Rp(e,t,1074790415),e.finishNode({type:"JSXSpreadChild",expression:i},r)}(e,t,n,o);let a=null;return 1074790415===e.getToken()?(i&&e.report(157),a=function(e,t){return e.finishNode({type:"JSXEmptyExpression"},t,e.tokenStart)}(e,{index:e.startIndex,line:e.startLine,column:e.startColumn})):a=pg(e,t,n,1,0,s),1074790415!==e.getToken()&&e.report(25,ap[15]),r?Bp(e):Sp(e,t),e.finishNode({type:"JSXExpressionContainer",expression:a},o)}function wm(e,t){const n=e.tokenStart;143360&e.getToken()||e.report(30,ap[255&e.getToken()]);const{tokenValue:r}=e;return Sp(e,t),e.finishNode({type:"JSXIdentifier",name:r},n)}function ym(e,t){return function(e,t={},n=0){const r=new $p(e,t);"module"===r.options.sourceType&&(n|=3),"commonjs"===r.options.sourceType&&(n|=69632),r.options.impliedStrict&&(n|=1),function(e){const{source:t}=e;35===e.currentChar&&33===t.charCodeAt(e.index+1)&&(Qf(e),Qf(e),np(e,t,0,4,e.tokenStart))}(r);const i=r.createScopeIfLexical();let o=[],s="script";if(2&n){if(s="module",o=function(e,t,n){Sp(e,32|t);const r=[];for(;134283267===e.getToken();){const{tokenStart:n}=e,i=e.getToken();r.push(ng(e,t,Wg(e,t),i,n))}for(;1048576!==e.getToken();)r.push(Yp(e,t,n));return r}(r,8|n,i),i)for(const e of r.exportedBindings)i.hasVariable(e)||r.report(148,e)}else o=function(e,t,n){Sp(e,262176|t);const r=[];for(;134283267===e.getToken();){const{index:n,tokenValue:i,tokenStart:o,tokenIndex:s}=e,a=e.getToken(),c=Wg(e,t);if(Tp(e,n,s,i)){if(t|=1,64&e.flags)throw new op(e.tokenStart,e.currentLocation,9);if(4096&e.flags)throw new op(e.tokenStart,e.currentLocation,15)}r.push(ng(e,t,c,a,o))}for(;1048576!==e.getToken();)r.push(Jp(e,t,n,void 0,4,{}));return r}(r,8|n,i);return r.finishNode({type:"Program",sourceType:s,body:o},{index:0,line:1,column:0},r.currentLocation)}(e,Yo(Yo({},t),{},{sourceType:"script"}))}const{stringify:Im}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const Lm={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Cm=17,Am={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Cm,ClassExpression:Cm,FunctionExpression:Cm,ObjectExpression:Cm,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Sm(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i<r;i++){const r=t[i];e.write(", "),n[r.type](r,e)}}e.write(")")}function bm(e,t,n,r){const i=e.expressionsPrecedence[t.type];if(i===Cm)return!0;const o=e.expressionsPrecedence[n.type];return i!==o?!r&&15===i&&14===o&&"**"===n.operator||i<o:(13===i||14===i)&&("**"===t.operator&&"**"===n.operator?!r:13===i&&13===o&&("??"===t.operator||"??"===n.operator)||(r?Lm[t.operator]<=Lm[n.operator]:Lm[t.operator]<Lm[n.operator]))}function Nm(e,t,n,r){const{generator:i}=e;bm(e,t,n,r)?(e.write("("),i[t.type](t,e),e.write(")")):i[t.type](t,e)}function Tm(e,t,n,r){const i=t.split("\n"),o=i.length-1;if(e.write(i[0].trim()),o>0){e.write(r);for(let t=1;t<o;t++)e.write(n+i[t].trim()+r);e.write(n+i[o].trim())}}function km(e,t,n,r){const{length:i}=t;for(let o=0;o<i;o++){const i=t[o];e.write(n),"L"===i.type[0]?e.write("// "+i.value.trim()+"\n",i):(e.write("/*"),Tm(e,i.value,n,r),e.write("*/"+r))}}function Om(e,t){const{generator:n}=e,{declarations:r}=t;e.write(t.kind+" ");const{length:i}=r;if(i>0){n.VariableDeclarator(r[0],e);for(let t=1;t<i;t++)e.write(", "),n.VariableDeclarator(r[t],e)}}let Rm,Pm,Dm,Mm,xm,Gm;const Um={Program(e,t){const n=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:i}=t;i&&null!=e.comments&&km(t,e.comments,n,r);const o=e.body,{length:s}=o;for(let e=0;e<s;e++){const s=o[e];i&&null!=s.comments&&km(t,s.comments,n,r),t.write(n),this[s.type](s,t),t.write(r)}i&&null!=e.trailingComments&&km(t,e.trailingComments,n,r)},BlockStatement:Gm=function(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,o=n+t.indent;t.write("{");const s=e.body;if(null!=s&&s.length>0){t.write(r),i&&null!=e.comments&&km(t,e.comments,o,r);const{length:a}=s;for(let e=0;e<a;e++){const n=s[e];i&&null!=n.comments&&km(t,n.comments,o,r),t.write(o),this[n.type](n,t),t.write(r)}t.write(n)}else i&&null!=e.comments&&(t.write(r),km(t,e.comments,o,r),t.write(n));i&&null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write("}"),t.indentLevel--},ClassBody:Gm,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const n=t.expressionsPrecedence[e.expression.type];n===Cm||3===n&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t;t.indentLevel++;const o=n+t.indent,s=o+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);const{cases:a}=e,{length:c}=a;for(let e=0;e<c;e++){const n=a[e];i&&null!=n.comments&&km(t,n.comments,o,r),n.test?(t.write(o+"case "),this[n.test.type](n.test,t),t.write(":"+r)):t.write(o+"default:"+r);const{consequent:c}=n,{length:l}=c;for(let e=0;e<l;e++){const n=c[e];i&&null!=n.comments&&km(t,n.comments,s,r),t.write(s),this[n.type](n,t),t.write(r)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:n}=e;null==n.param?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:n}=e;"V"===n.type[0]?Om(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Rm=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:n}=e;"V"===n.type[0]?Om(t,n):this[n.type](n,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Rm,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:Pm=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Sm(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:Pm,VariableDeclaration(e,t){Om(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:n}=e,{type:r}=n,i=t.expressionsPrecedence[r];"C"===r[0]&&"l"===r[1]&&"E"===r[5]||!(i===Cm||i<t.expressionsPrecedence.ClassExpression)?this[n.type](n,t):(t.write("("),this[e.superClass.type](n,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:n,attributes:r}=e,{length:i}=n;let o=0;if(i>0){for(;o<i;){o>0&&t.write(", ");const e=n[o],r=e.type[6];if("D"===r)t.write(e.local.name,e),o++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),o++}}if(o<i){for(t.write("{");;){const e=n[o],{name:r}=e.imported;if(t.write(r,e),r!==e.local.name&&t.write(" as "+e.local.name),!(++o<i))break;t.write(", ")}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),r&&r.length>0){t.write(" with { ");for(let e=0;e<r.length;e++)this.ImportAttribute(r[e],t),e<r.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:n}=e,{length:r}=n;if(r>0)for(let e=0;;){const i=n[e],{name:o}=i.local;if(t.write(o,i),o!==i.exported.name&&t.write(" as "+i.exported.name),!(++e<r))break;t.write(", ")}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++)this.ImportAttribute(e.attributes[n],t),n<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let n=0;n<e.attributes.length;n++)this.ImportAttribute(e.attributes[n],t),n<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const n=e.kind[0];"g"!==n&&"s"!==n||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Sm(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:n}=e;null!=n&&(1===n.length&&"I"===n[0].type[0]?t.write(n[0].name,n[0]):Sm(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Dm=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Dm,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),Nm(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e<i;e++){const i=r[e],o=n[e];t.write(o.value.raw,o),t.write("${"),this[i.type](i,t),t.write("}")}const o=n[n.length-1];t.write(o.value.raw,o),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){Nm(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:xm=function(e,t){if(t.write("["),e.elements.length>0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e<r)){null==i&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:xm,ObjectExpression(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,o=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),i&&null!=e.comments&&km(t,e.comments,o,r);const s=","+r,{properties:a}=e,{length:c}=a;for(let e=0;;){const n=a[e];if(i&&null!=n.comments&&km(t,n.comments,o,r),t.write(o),this[n.type](n,t),!(++e<c))break;t.write(s)}t.write(r),i&&null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write(n+"}")}else i?null!=e.comments?(t.write(r),km(t,e.comments,o,r),null!=e.trailingComments&&km(t,e.trailingComments,o,r),t.write(n+"}")):null!=e.trailingComments?(t.write(r),km(t,e.trailingComments,o,r),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null!=e.value?(t.write(" = "),this[e.value.type](e.value,t),t.write(";")):"F"!==e.key.type[0]&&t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Sm(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:n,argument:r,argument:{type:i}}=e;t.write(n);const o=bm(t,r,e);o||!(n.length>1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),o?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Mm=function(e,t){const n="in"===e.operator;n&&t.write("("),Nm(t,e.left,e,!1),t.write(" "+e.operator+" "),Nm(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:Mm,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===Cm||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===Cm||n<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Sm(t,e.arguments)},CallExpression(e,t){const n=t.expressionsPrecedence[e.callee.type];n===Cm||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Sm(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const n=t.expressionsPrecedence[e.object.type];n===Cm||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(Im(e.value),e)},RegExpLiteral(e,t){const{regex:n}=e;t.write(`/${n.pattern}/${n.flags}`,e)}},Wm={};class Vm{constructor(e){const t=null==e?Wm:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:Um,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:Am,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:n}=t;if("L"===n[0]&&"n"===n[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===n[0]&&"E"===n[8]||"L"===n[0]&&"i"===n[1]&&"string"==typeof t.value){const{length:t}=e;let{column:n,line:r}=this;for(let i=0;i<t;i++)"\n"===e[i]?(n=0,r++):n++;return this.column=n,void(this.line=r)}}const{length:n}=e,{lineEnd:r}=this;n>0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}function Fm(e,t){const n=new Vm(t);return n.generator[e.type](e,n),n.output}const jm=(e,t,n=null)=>{var r;if(!e)return e;const i=t[e.type];let o;if("function"==typeof i?o=i(e,n):null!=i&&i.enter&&(o=i.enter(e,n)),!1===o)return e;o&&(e=o);for(const n in e){const r=e[n];if(Array.isArray(r))for(let n=0;n<r.length;n++){const i=r[n];null!=i&&i.type&&(r[n]=jm(i,t,e))}else null!=r&&r.type&&(e[n]=jm(r,t,e))}return i&&"function"!=typeof i&&(null===(r=i.leave)||void 0===r||r.call(i,e,n)),e},Bm="cbioGetter",zm=["location","top","parent"],Hm="cbioSetter",qm=["location","top","parent"],Qm="cbioCaller",$m=["postMessage"],Ym="cbioImporter",Jm="cbioIsNative",Km="cbioPatchJs",Xm=["FunctionExpression","FunctionDeclaration","ArrowFunctionExpression"],Zm=e=>({type:"Literal",value:e}),e_=(e,t)=>"Literal"===(null==e?void 0:e.type)&&(null==e?void 0:e.value)===t,t_=e=>({type:"Identifier",name:e}),n_=(e,t)=>({type:"CallExpression",callee:e,arguments:t.map(e=>e&&"object"==typeof e?e:Zm(e||null))}),r_=(e,t,n)=>({type:"ConditionalExpression",test:e,consequent:t,alternate:n}),i_=(e,t,n)=>({type:"VariableDeclarator",id:e,init:n?r_({type:"BinaryExpression",left:t,right:t_("undefined"),operator:"!=="},t,n):t}),o_=(e,t,n)=>({type:"MemberExpression",object:e,property:t,computed:n}),s_=jl("cbio.js.ast.patch"),a_=(e,t)=>!(!e||"object"!=typeof e)&&("MemberExpression"===e.type&&"Identifier"===e.property.type&&e.property.name===t||"MemberExpression"===e.type&&"Literal"===e.property.type&&e.property.value===t||"Identifier"===e.type&&e.name===t||(e.object?a_(e.object,t):!!e.property&&a_(e.property,t))),c_=(e,t=[])=>{var n,r,i;return"Identifier"===(null===(n=e.property)||void 0===n?void 0:n.type)&&t.push(e.property.name),"Literal"===(null===(r=e.property)||void 0===r?void 0:r.type)&&t.push(e.property.value),"MemberExpression"===(null===(i=e.property)||void 0===i?void 0:i.type)&&t.push(e.property),e.name&&t.push(e.name),e.object?c_(e.object,t):t},l_=(e,t)=>{if("MemberExpression"===e.type){var n,r;if("Identifier"===(null===(n=e.property)||void 0===n?void 0:n.type)&&qm.includes(e.property.name)){const n=Yo({},e.object);return delete e.object,[n,c_(t).reverse()]}if("Literal"===(null===(r=e.property)||void 0===r?void 0:r.type)&&qm.includes(e.property.value)){const n=Yo({},e.object);return delete e.object,[n,c_(t).reverse()]}if(e.object)return l_(e.object,t)}return"Identifier"===e.type&&qm.includes(e.name)?[null,c_(t).reverse()]:null},u_=e=>e.length?e.reduce((e,t)=>e?{type:"MemberExpression",object:e,property:t.node,computed:t.computed}:t.node,null):null,d_=e=>{var t,n;if("AwaitExpression"===(null==e||null===(t=e.object)||void 0===t?void 0:t.type))return e;const{base:r,calls:i}=(e=>{const t=[];let n=e;for(;"CallExpression"===(null===(r=n)||void 0===r?void 0:r.type);){var r;t.push(n),n=n.callee}return{base:n,calls:t}})(e);if(!r)return e;const o=((e,t)=>{if("Identifier"!==e.type&&"MemberExpression"!==e.type)return null;const n=(e=>{const t=[];let n=e;for(;"MemberExpression"===(null===(r=n)||void 0===r?void 0:r.type);){var r;t.unshift({node:n.property,computed:n.computed}),n=n.object}return n&&t.unshift({node:n,computed:!1}),t})(e),r=n.findIndex(e=>e.computed||"Identifier"===e.node.type&&t.includes(e.node.name));return-1===r?null:{before:n.slice(0,r),identifier:n[r],after:n.slice(r+1)}})(r,zm);if(!o)return e;if(((e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t)(e,o.identifier.node.name))return e;if(o.identifier.computed&&"CallExpression"===e.type)return e;const s=u_(o.before),a={type:"ArrowFunctionExpression",params:[],body:null!==(n=u_([...o.before,o.identifier]))&&void 0!==n?n:o.identifier,async:!1,expression:!0};let c=n_(t_(Bm),[null!=s?s:Zm(null),o.identifier.computed?o.identifier.node:Zm(o.identifier.node.name),a]);o.after.length&&(c=u_([{node:c,computed:!1},...o.after]));for(let e=i.length-1;e>=0;e--)c=Yo(Yo({},i[e]),{},{callee:c});return c},h_=e=>{let t=e,n=!0;for(;n;){const e=d_(t);e===t?n=!1:t=e}return t},f_=(e,t,n)=>{const{proxify:r,url:i}=t,o=(()=>{const e=[];return{enter:()=>e.push(new Set),exit:()=>e.pop(),declare:t=>{var n;return null===(n=e.at(-1))||void 0===n?void 0:n.add(t)},isDeclared:t=>e.some(e=>e.has(t))}})();jm(e,{VariableDeclarator(e){if(!e.init)return;const t=h_(e.init);return t!==e.init?Yo(Yo({},e),{},{init:t}):void 0},CallExpression(e,t){if(!e.arguments.length)return;const n=e.arguments.map(h_);return((e,t)=>{var n,r,i;const o=(null===(n=e.callee)||void 0===n||null===(n=n.property)||void 0===n?void 0:n.name)||(null===(r=e.callee)||void 0===r?void 0:r.name);if("eval"===o&&!(e=>{var t;return"ConditionalExpression"===(null==e?void 0:e.type)&&(null==e||null===(t=e.test)||void 0===t||null===(t=t.callee)||void 0===t?void 0:t.name)===Jm})(t))return(({callee:e,arguments:t})=>{const n=n_(t_(Jm),[e.object?e.object:null,Zm("eval")]),r=n_(e,[n_(t_(Km),t)]),i=n_(e,t);return r_(n,r,i)})(e);if("SequenceExpression"===(null===(i=e.callee)||void 0===i?void 0:i.type)){const t=e.callee.expressions.at(-1);"Identifier"===t.type&&"eval"===t.name&&(e.arguments=[n_(t_(Km),e.arguments)])}if(!$m.includes(o))return e;const s=[...e.callee.object?[e.callee.object]:[Zm(null)],Zm(o),{type:"ArrayExpression",elements:e.arguments}];return n_(t_(Qm),s)})(Yo(Yo({},e),{},{arguments:n}),t)},ExpressionStatement(e){const t=h_(e.expression);if(t!==e.expression)return Yo(Yo({},e),{},{expression:t})},BinaryExpression(e){const t=h_(e.left),n=h_(e.right);if(t!==e.left||n!==e.right)return Yo(Yo({},e),{},{left:t,right:n})},AssignmentExpression(e){const t=h_(e.right);return((e,t)=>{if(!qm.some(t=>a_(e.left,t)))return e;if(((e,t)=>{var n,r;return!("Identifier"!==t.type||!e.isDeclared(t.name))||!("MemberExpression"!==t.type||"Identifier"!==(null===(n=t.object)||void 0===n?void 0:n.type)||!e.isDeclared(null===(r=t.object)||void 0===r?void 0:r.name))})(t,e.left))return e;const n=l_(e.left,e.left);if(!n)return e;const[r,i]=n,o={type:"ArrayExpression",elements:i.map(e=>e.type?e:Zm(e))};return n_(t_(Hm),[r,o,e.right])})(Yo(Yo({},e),{},{right:t}),o)},ObjectExpression(e){if(!e.properties.length)return;const t=e.properties.map(e=>Yo(Yo({},e),{},{value:h_(e.value)}));return Yo(Yo({},e),{},{properties:t})},ReturnStatement(e){if(!e.argument)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},NewExpression(e){if(!e.arguments.length)return;const t=e.arguments.map(h_);return Yo(Yo({},e),{},{arguments:t})},IfStatement(e){if(!e.test)return;const t=h_(e.test);return Yo(Yo({},e),{},{test:t})},UnaryExpression(e){if(!e.argument)return;if("delete"===e.operator)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},ConditionalExpression(e){const t=h_(e.test),n=h_(e.consequent),r=h_(e.alternate);if(t!==e.test||n!==e.consequent||r!==e.alternate)return Yo(Yo({},e),{},{test:t,consequent:n,alternate:r})},VariableDeclaration(e){const t=e.declarations.flatMap(e=>{if("ObjectPattern"!==e.id.type)return[e];const t=[];for(let n=0;n<e.id.properties.length;n++){const r=e.id.properties[n];if(!r.value)return[e];if("RestElement"===r.value.type)return[e];if("Literal"===r.key.type)return[e];if(!e.init)return[e];if("AwaitExpression"===e.init.type)return[e];const i={type:"MemberExpression",object:e.init,property:r.key};"AssignmentPattern"===r.value.type?t.push(i_(r.value.left,i,r.value.right)):t.push(i_(r.value,i))}return t}),n=Yo(Yo({},e),{},{declarations:t});return((e,t)=>{for(let n=0;n<t.declarations.length;n++){const r=t.declarations[n].id;"Identifier"===r.type&&e.declare(r.name)}})(o,n),n},Program:{enter(){o.enter()},leave(){o.exit()}},FunctionDeclaration:{enter(){o.enter()},leave(){o.exit()}},BlockStatement:{enter:(e,t)=>(o.enter(),Xm.includes(null==t?void 0:t.type)&&0===e.body.length?Yo(Yo({},e),{},{comments:n.filter(t=>t.start>=e.start&&t.end<=e.end).map(e=>({type:e.type,value:e.value}))}):e),leave(){o.exit()}},ExportNamedDeclaration(e){var t;if("Literal"===(null===(t=e.source)||void 0===t?void 0:t.type))return Yo(Yo({},e),{},{source:{value:r(e.source.value),raw:void 0}})},ImportDeclaration(e){var t;if("Literal"===(null===(t=e.source)||void 0===t?void 0:t.type))return Yo(Yo({},e),{},{source:{value:r(e.source.value),raw:void 0}})},ImportExpression(e){const t=Zm(i.toString()),n=n_(t_(Ym),[e.source,t]);return Yo(Yo({},e),{},{source:n})},LogicalExpression(e){const t=h_(e.left),n=h_(e.right);if(t!==e.left||n!==e.right)return Yo(Yo({},e),{},{left:t,right:n})},ArrayExpression(e){if(!e.elements.length)return;const t=e.elements.map(h_);return Yo(Yo({},e),{},{elements:t})},ThrowStatement(e){if(!e.argument)return;const t=h_(e.argument);return Yo(Yo({},e),{},{argument:t})},SequenceExpression(e){if(!e.expressions.length)return;const t=e.expressions.map(h_);return Yo(Yo({},e),{},{expressions:t})},ArrowFunctionExpression(e,t){if(!e.expression)return;if("CallExpression"===(null==t?void 0:t.type)&&[Bm,Hm,Qm,Ym,Jm,Km].includes(t.callee.name))return;const n=h_(e.body);return n!==e.body?Yo(Yo({},e),{},{body:n}):void 0},Literal(e){void 0!==e.raw&&(e.value=e.raw)},TemplateLiteral(e){if(!e.expressions.length)return;const t=e.expressions.map(h_);return Yo(Yo({},e),{},{expressions:t})},ForInStatement(e){const t=h_(e.right);if(t!==e.right)return Yo(Yo({},e),{},{right:t})},ForOfStatement(e){const t=h_(e.right);if(t!==e.right)return Yo(Yo({},e),{},{right:t})},SpreadElement(e){const t=h_(e.argument);if(t!==e.argument)return Yo(Yo({},e),{},{argument:t})},SwitchStatement(e){const t=h_(e.discriminant);if(t!==e.discriminant)return Yo(Yo({},e),{},{discriminant:t})}})},p_=(e,t)=>{try{const n=[],r=performance.now(),i=ym(e,{raw:!0,module:!0,next:!0,globalReturn:!0,onComment:n,ranges:!0}),o=performance.now()-r,s=performance.now();f_(i,t,n);const a=performance.now()-s,c=performance.now(),l=Fm(i,{comments:!0}),u=performance.now()-c;return s_("timer: create AST (ms)",Math.round(o)),s_("timer: patch AST (ms)",Math.round(a)),s_("timer: create script (ms)",Math.round(u)),l}catch(t){return s_("failed to patch script",t),e}},g_=jl("cbio.js.ast.unpatch"),m_=(e,t)=>{Object.keys(e).forEach(t=>{delete e[t]}),Object.assign(e,t)},__=e=>1===e.length?t_(e[0].value):e.reduce((e,t)=>e?"MemberExpression"===t.type?o_(e,t,!0):o_(e,t_(t.value),!1):t_(t.value),null),v_=(e,t,n,r)=>{var i,o;const{unproxify:s}=n;if("BlockStatement"===e.type&&Xm.includes(null==t?void 0:t.type)&&0===e.body.length&&(e.comments=r.filter(t=>t.start>=e.start&&t.end<=e.end).map(e=>({type:e.type,value:e.value}))),"CallExpression"===e.type&&e.callee.name===Bm){const i=e.arguments.at(-1).body;m_(e,i),v_(e,t,n,r)}if("CallExpression"===e.type&&e.callee.name===Qm){const[i,o,s]=e.arguments,a=e_(i,null)?t_(o.value):o_(i,t_(o.value),!1);m_(e,n_(a,s.elements)),v_(e,t,n,r)}if("CallExpression"===e.type&&e.callee.name===Hm){const[i,o,s]=e.arguments,a=e_(i,null)?__(o.elements):{type:"MemberExpression",object:i,property:__(o.elements)};m_(e,((e,t)=>({type:"AssignmentExpression",operator:"=",left:e,right:t}))(a,s)),v_(e,t,n,r)}if((e=>{var t;return"ConditionalExpression"===(null==e?void 0:e.type)&&(null==e||null===(t=e.test)||void 0===t||null===(t=t.callee)||void 0===t?void 0:t.name)===Jm})(e)&&(m_(e,e.alternate),v_(e,t,n,r)),"CallExpression"===e.type&&e.callee.name===Km){const[i]=e.arguments;m_(e,i),v_(e,t,n,r)}if("ExportNamedDeclaration"===e.type&&"Literal"===(null===(i=e.source)||void 0===i?void 0:i.type)&&(e.source.value=s(e.source.value),e.source.raw=void 0),"ImportDeclaration"===e.type&&"Literal"===(null===(o=e.source)||void 0===o?void 0:o.type)&&(e.source.value=s(e.source.value),e.source.raw=void 0),"CallExpression"===e.type&&e.callee.name===Ym){const[i]=e.arguments;m_(e,i),v_(e,t,n,r)}for(const t in e)e[t]&&"object"==typeof e[t]&&v_(e[t],e,n,r)},E_=(e,t)=>{const n=[],r=ym(e,{raw:!0,module:!0,next:!0,globalReturn:!0,onComment:n,ranges:!0});return v_(r,null,t,n),Fm(r,{comments:!0})},w_=(e,t)=>{try{if((e=>/^function\s*\(/.test(e))(e)){const n=(e=>`0,${e}`)(e);return(e=>e.trim().slice(4,-2))(E_(n,t))}return E_(e,t)}catch(t){return g_("failed to unpatch script",t),e}},y_=new Set(["","module","text/javascript","application/javascript","text/ecmascript","application/ecmascript"]),I_=e=>{if(!(e instanceof HTMLScriptElement))return!1;const t=e.getAttribute("type")||"";return y_.has(t.trim().toLowerCase())},L_=[(e,t)=>{e.cbioGetter=(({proxify:e,unproxify:t,isTopWindow:n,findTopWindow:r})=>(i,o,s)=>{const a=i||window,c=i?i[o]:s();return"location"===o&&a.cbioLocation?a.cbioLocation:"location"!==o||a!==window&&a!==document?"location"===o&&Uc(a)?a.cbioLocation?a.cbioLocation:pc(a.location,{proxify:e,unproxify:t}):"top"===o&&c===window.top?r(window):"parent"===o&&c===window.parent?n(window)?window:window.parent:c:a.cbioLocation})(t)},(e,t)=>{e.cbioSetter=(({proxify:e,isTopWindow:t,findTopWindow:n})=>(r,i,o)=>{if(0===i.length)return o;const s=r||window,[a,...c]=i,l=c.pop();if("location"===a&&(e=>e===window||e===window.parent||e===window.top)(s)){const r=(e=>e===window.top?n(window):e===window.parent?t(window)?window:window.parent:window)(s);return c.length||l?c.length?(Fc(r.cbioLocation,c)[l]=o,o):(r.cbioLocation[l]=o,o):(r.location=e(o),o)}if("location"===a&&(e=>e===document)(s))return c.length||l?c.length?(Fc(document.cbioLocation,c)[l]=o,o):(document.cbioLocation[l]=o,o):(document.location=e(o),o);if("top"===a&&s===window){const e=n(window);return c.length?(Fc(e,c)[l]=o,o):(e[l]=o,o)}if("parent"===a&&s===window){const e=t(window)?window:window.parent;return c.length?(Fc(e,c)[l]=o,o):(e[l]=o,o)}return c.length?(Fc(s[a],c)[l]=o,o):l?(s[a][l]=o,o):(s[a]=o,o)})(t)},(e,t)=>{e.cbioCaller=(({proxify:e})=>(t,n,r)=>{const i=t||window,o=i[n];if(!(o!==i.postMessage||i instanceof MessagePort||(e=>{try{return null!=e&&"object"==typeof e&&"function"==typeof e.postMessage&&"function"==typeof e.terminate&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}catch(e){return!1}})(i))){const[t,n,a]=r,c=[t,(s=n)?s.targetOrigin?"*"===s.targetOrigin?s:Yo(Yo({},s),{},{targetOrigin:e(s.targetOrigin)}):"*"===s?s:e(s):s,a];return c.length=r.length,o.apply(i,c)}var s;return o.apply(i,r)})(t)},(e,t)=>{e.cbioImporter=(({proxify:e})=>(t,n)=>{const r=new URL(t,n).toString();return e(r)})(t)},(e,t)=>{e.cbioIsNative=(e,t)=>{const n=e||window;return"eval"===t&&Uc(n)&&"function"==typeof(r=n[t])&&r.toString().includes("[native code]");var r}},(e,t)=>{e.cbioPatchJs=(({proxify:e})=>t=>p_(t.toString(),{proxify:e,url:window.location}))(t)}],C_=(e,t=window)=>{L_.forEach(n=>{try{n(t,e)}catch(e){console.log("Error while applying accessor",e)}})},A_=(e,t,n,r)=>{const i=(e=>e.includes("-")?e.split("-").map((e,t)=>0===t?e.toLowerCase():(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(e)).join(""):e)(t),o=Object.getOwnPropertyDescriptor(e,i).get,s=Object.getOwnPropertyDescriptor(e,i).set;Object.defineProperty(e,i,{get:function(){const e=o.call(this);return n?n(this,e):e},set:function(e){const t=r?r(this,null==e?void 0:e.toString()):null==e?void 0:e.toString();return s.call(this,t)}});const{getAttribute:a,setAttribute:c}=e;a&&(e.getAttribute=function(e){if((null==e?void 0:e.toLowerCase())===t.toLowerCase()){const t=a.apply(this,[e]);return n?n(this,t):t}return a.apply(this,[e])}),c&&(e.setAttribute=function(e,n){if(e.toLowerCase()===t.toLowerCase()){const t=r?r(this,null==n?void 0:n.toString()):null==n?void 0:n.toString();return c.apply(this,[e,t])}return c.apply(this,[e,n])})},S_=["integrity"],b_=(e,t)=>{const n=document.createElement("input");return n.type="hidden",n.name=e,n.value=t,n},N_=(e,t)=>{const n=e[t.name];n&&n.parentNode.removeChild(n),e.appendChild(t)};function T_(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}const k_=/^[ \t\n\r\u000c]+/,O_=/^[, \t\n\r\u000c]+/,R_=/^[^ \t\n\r\u000c]+/,P_=/[,]+$/,D_=/^\d+$/,M_=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,x_=(e,t)=>{if(!e)return e;try{const n=function(e){const t=e.length;let n,r,i,o,s,a,c=0;function l(t){let n;const r=t.exec(e.substring(c));if(r)return[n]=r,c+=n.length,n}const u=[];for(;;){if(l(O_),c>=t){if(0===u.length)throw new Error("Must contain one or more image candidate strings.");return u}a=c,n=l(R_),r=[],","===n.slice(-1)?(n=n.replace(P_,""),h()):d()}function d(){for(l(k_),i="",o="in descriptor";;){if(s=e.charAt(c),"in descriptor"===o)if(T_(s))i&&(r.push(i),i="",o="after descriptor");else{if(","===s)return c+=1,i&&r.push(i),void h();if("("===s)i+=s,o="in parens";else{if(""===s)return i&&r.push(i),void h();i+=s}}else if("in parens"===o)if(")"===s)i+=s,o="in descriptor";else{if(""===s)return r.push(i),void h();i+=s}else if("after descriptor"===o)if(T_(s));else{if(""===s)return void h();o="in descriptor",c-=1}c+=1}}function h(){let t,i,o,s,c=!1;const l={};let d,h,f,p,g;for(s=0;s<r.length;s++)d=r[s],h=d[d.length-1],f=d.substring(0,d.length-1),p=parseInt(f,10),g=parseFloat(f),D_.test(f)&&"w"===h?((t||i)&&(c=!0),0===p?c=!0:t=p):M_.test(f)&&"x"===h?((t||i||o)&&(c=!0),g<0?c=!0:i=g):D_.test(f)&&"h"===h?((o||i)&&(c=!0),0===p?c=!0:o=p):c=!0;if(c)throw new Error(`Invalid srcset descriptor found in "${e}" at "${d}".`);l.source={value:n,startOffset:a},t&&(l.width={value:t}),i&&(l.density={value:i}),o&&(l.height={value:o}),u.push(l)}}(e);return n.map(e=>{const n=t(e.source.value),r=(e=>e.width?`${e.width.value}w`:e.height?`${e.height.value}h`:e.density?`${e.density.value}x`:null)(e);return r?`${n} ${r}`:n}).join(", ")}catch(t){return e}},G_=(e,t)=>{Object.defineProperty(e,t,{get:function(){},set:function(){}});const{getAttribute:n,setAttribute:r}=e;n&&(e.getAttribute=function(e){if((null==e?void 0:e.toLowerCase())!==t.toLowerCase())return n.apply(this,[e])}),r&&(e.setAttribute=function(e,n){if(e.toLowerCase()!==t.toLowerCase())return r.apply(this,[e,n])})};var U_,W_={};function V_(){if(U_)return W_;U_=1,Object.defineProperty(W_,"__esModule",{value:!0}),W_.parseCookie=a,W_.parse=a,W_.stringifyCookie=function(n,r){const i=(null==r?void 0:r.encode)||encodeURIComponent,o=[];for(const r of Object.keys(n)){const s=n[r];if(void 0===s)continue;if(!e.test(r))throw new TypeError(`cookie name is invalid: ${r}`);const a=i(s);if(!t.test(a))throw new TypeError(`cookie val is invalid: ${s}`);o.push(`${r}=${a}`)}return o.join("; ")},W_.stringifySetCookie=c,W_.serialize=c,W_.parseSetCookie=function(e,t){const n=(null==t?void 0:t.decode)||h,r=e.length,o=l(e,0,r),s=u(e,0,o),a=-1===s?{name:"",value:n(d(e,0,o))}:{name:d(e,0,s),value:n(d(e,s+1,o))};let c=o+1;for(;c<r;){const t=l(e,c,r),n=u(e,c,t),o=d(e,c,-1===n?t:n),s=-1===n?void 0:d(e,n+1,t);switch(o.toLowerCase()){case"httponly":a.httpOnly=!0;break;case"secure":a.secure=!0;break;case"partitioned":a.partitioned=!0;break;case"domain":a.domain=s;break;case"path":a.path=s;break;case"max-age":s&&i.test(s)&&(a.maxAge=Number(s));break;case"expires":if(!s)break;const e=new Date(s);Number.isFinite(e.valueOf())&&(a.expires=e);break;case"priority":if(!s)break;const t=s.toLowerCase();"low"!==t&&"medium"!==t&&"high"!==t||(a.priority=t);break;case"samesite":if(!s)break;const n=s.toLowerCase();"lax"!==n&&"strict"!==n&&"none"!==n||(a.sameSite=n)}c=t+1}return a},W_.stringifySetCookie=c,W_.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=/^-?\d+$/,o=Object.prototype.toString,s=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function a(e,t){const n=new s,r=e.length;if(r<2)return n;const i=(null==t?void 0:t.decode)||h;let o=0;do{const t=u(e,o,r);if(-1===t)break;const s=l(e,o,r);if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const a=d(e,o,t);void 0===n[a]&&(n[a]=i(d(e,t+1,s))),o=s+1}while(o<r);return n}function c(i,s,a){const c="object"==typeof i?i:Yo(Yo({},a),{},{name:i,value:String(s)}),l="object"==typeof s?s:a,u=(null==l?void 0:l.encode)||encodeURIComponent;if(!e.test(c.name))throw new TypeError(`argument name is invalid: ${c.name}`);const d=c.value?u(c.value):"";if(!t.test(d))throw new TypeError(`argument val is invalid: ${c.value}`);let h=c.name+"="+d;if(void 0!==c.maxAge){if(!Number.isInteger(c.maxAge))throw new TypeError(`option maxAge is invalid: ${c.maxAge}`);h+="; Max-Age="+c.maxAge}if(c.domain){if(!n.test(c.domain))throw new TypeError(`option domain is invalid: ${c.domain}`);h+="; Domain="+c.domain}if(c.path){if(!r.test(c.path))throw new TypeError(`option path is invalid: ${c.path}`);h+="; Path="+c.path}if(c.expires){if(f=c.expires,"[object Date]"!==o.call(f)||!Number.isFinite(c.expires.valueOf()))throw new TypeError(`option expires is invalid: ${c.expires}`);h+="; Expires="+c.expires.toUTCString()}var f;if(c.httpOnly&&(h+="; HttpOnly"),c.secure&&(h+="; Secure"),c.partitioned&&(h+="; Partitioned"),c.priority)switch("string"==typeof c.priority?c.priority.toLowerCase():void 0){case"low":h+="; Priority=Low";break;case"medium":h+="; Priority=Medium";break;case"high":h+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${c.priority}`)}if(c.sameSite)switch("string"==typeof c.sameSite?c.sameSite.toLowerCase():c.sameSite){case!0:case"strict":h+="; SameSite=Strict";break;case"lax":h+="; SameSite=Lax";break;case"none":h+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${c.sameSite}`)}return h}function l(e,t,n){const r=e.indexOf(";",t);return-1===r?n:r}function u(e,t,n){const r=e.indexOf("=",t);return r<n?r:-1}function d(e,t,n){let r=t,i=n;do{const t=e.charCodeAt(r);if(32!==t&&9!==t)break}while(++r<i);for(;i>r;){const t=e.charCodeAt(i-1);if(32!==t&&9!==t)break;i--}return e.slice(r,i)}function h(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}return W_}var F_=V_();const j_=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,B_=/^[\u0020-\u003A\u003D-\u007E]*$/,z_="||",H_=e=>{if(!e)return e;const t=new Date(e),n=new Date;return n.setDate(n.getDate()+7),t<n?t:n},q_=e=>{if(!e)return e;const t=Number(e);if(isNaN(t))return e;const n=604800;return t<n?t:n};class Q_{constructor(e,t){const n=new URL(e);this.targetHost=n.host,this.targetHostName=n.hostname,this.pathPrefix=t}filterCookies(e){const t=F_.parse(e,{decode:e=>e}),n=Object.entries(t).map(([e,t])=>{if(!e.includes(z_))return null;const[n,r]=e.split(z_,2);return this.targetHostName.endsWith(n)?`${r}=${t}`:null}).filter(e=>e);return n.join("; ")}rewriteCookie(e){var t;const[n]=e.split("=",1),r=F_.parse(e,{decode:e=>e}),i=r[n],o=Object.entries(r).reduce((e,[t,n])=>(e[t.toLowerCase()]=n,e),{}),s=null!==(t=o.domain)&&void 0!==t&&t.startsWith(".")?o.domain.substring(1):o.domain||this.targetHostName,a=`${this.pathPrefix}${Qs(s)}`,c=e.toLowerCase(),l=c.includes("httponly;")||c.endsWith("httponly");return((e,t,n)=>{let r=e+"="+((null==n?void 0:n.encode)||encodeURIComponent)(t);if(!n)return r;if(void 0!==n.maxAge){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);r+="; Max-Age="+n.maxAge}if(n.domain){if(!j_.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);r+="; Domain="+n.domain}if(n.path){if(!B_.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);r+="; Path="+n.path}if(n.expires){if(!(e=>"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date)(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.partitioned&&(r+="; Partitioned"),n.priority)switch(n.priority){case"low":r+="; Priority=Low";break;case"medium":r+="; Priority=Medium";break;case"high":r+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(n.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return r})(`${s}${z_}${n}`,i,{expires:H_(o.expires),domain:"",path:a,maxAge:q_(o["max-age"]),encode:e=>e,sameSite:"none",httpOnly:l,secure:!0})}}const $_="/proxy/1/universal/",Y_=(e,t)=>{const n=(new DOMParser).parseFromString(`<div id="cbioHTMLContainer">${e}</div>`,"text/html").body.querySelector("#cbioHTMLContainer");return n.querySelectorAll("a").forEach(e=>{const n=e.getAttribute("href");n&&e.setAttribute("href",t(n))}),n.querySelectorAll("img").forEach(e=>{const n=e.getAttribute("src");n&&e.setAttribute("src",t(n));const r=e.getAttribute("srcset");r&&e.setAttribute("srcset",x_(r,t))}),n.querySelectorAll("script").forEach(e=>{const n=e.getAttribute("src");n&&e.setAttribute("src",t(n))}),n.innerHTML},J_=(e,t)=>e.replace(/url\(\s*["']?([^"')]+)["']?\s*\)/g,(e,n)=>`url(${t(n)})`),K_="cbioWindowName",X_=(e,t,n,r)=>{const i=Object.getOwnPropertyDescriptor(e,t).get,o=Object.getOwnPropertyDescriptor(e,t).set;let s=r;return Object.defineProperty(e,t,{get:function(){const e=i.call(this);return null!=n&&n(e)?s:e},set:function(e){const t=i.call(this);return null!=n&&n(t)?(s=e,e):o.call(this,e)}}),{get:i,set:o}},Z_=(e,t)=>{const{proxify:n,unproxify:r}=t;try{const{contentWindow:i}=e;C_(t,i);const o=i.Function.prototype.toString;i.Function.prototype.toString=function(...e){const t=o.apply(this,e);return w_(t,{proxify:n,unproxify:r,url:window.location})}}catch(e){}},ev=e=>{try{return!!new URL(e)}catch(e){return!1}},tv=[({proxify:e,unproxify:t,frameName:n})=>{A_(HTMLAnchorElement.prototype,"href",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLAnchorElement.prototype,"target",void 0,(e,t)=>"_top"===t?n:t),A_(HTMLAnchorElement.prototype,"pathname",e=>new URL(t(e.href)).pathname,void 0),A_(HTMLAnchorElement.prototype,"origin",e=>new URL(t(e.href)).origin,void 0),A_(HTMLAnchorElement.prototype,"host",e=>new URL(t(e.href)).host,void 0),A_(HTMLAnchorElement.prototype,"hostname",e=>new URL(t(e.href)).hostname,void 0),A_(HTMLAnchorElement.prototype,"protocol",e=>new URL(t(e.href)).protocol,void 0),A_(HTMLAnchorElement.prototype,"search",e=>new URL(t(e.href)).search,void 0),A_(HTMLAnchorElement.prototype,"hash",e=>new URL(t(e.href)).hash,void 0),A_(HTMLAnchorElement.prototype,"port",e=>new URL(t(e.href)).port,void 0)},({proxify:e})=>{const t=window.fetch;window.fetch=function(n,r){if("string"==typeof n||n instanceof URL){const i=e(n),o=r||{},{integrity:s}=o,a=Jo(o,S_);return t(i,a)}if(n instanceof Request){const r=e(n.url);return new Promise((e,i)=>{var o;const s=(null===(o=n.method)||void 0===o?void 0:o.toUpperCase())||"GET";(["GET","HEAD"].includes(s)?Promise.resolve(void 0):n.blob()).then(o=>{const a={body:o,method:s,cache:n.cache,credentials:n.credentials,headers:n.headers,keepalive:n.keepalive,mode:n.mode,redirect:n.redirect,referrer:n.referrer,referrerPolicy:n.referrerPolicy,signal:n.signal};t(r,a).then(e).catch(i)})})}return t(n,r)}},({proxify:e,unproxify:t,parentOrigin:n,proxyPath:r,sdkVersion:i,frameName:o,proxyToken:s})=>{A_(HTMLFormElement.prototype,"action",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLFormElement.prototype,"target",void 0,(e,t)=>"_top"===t?o:t);const a=e=>{const t=new FormData(e),a=document.activeElement;a instanceof HTMLInputElement&&"submit"===a.type&&a.name&&t.append(a.name,a.value);const c=new URLSearchParams(t).toString();for(const t of e.elements)t.disabled=!0;N_(e,b_("search",c)),N_(e,b_("parent_origin",n)),N_(e,b_("proxy_path",r)),N_(e,b_("sdk_version",i)),N_(e,b_("frame_name",o)),N_(e,b_("access_token",s))};window.document.addEventListener("submit",e=>{"get"===e.target.method&&a(e.target)});const{submit:c}=window.HTMLFormElement.prototype;window.HTMLFormElement.prototype.submit=function(...e){return"get"!==this.method||a(this),c.apply(this,...e)}},({proxify:e,unproxify:t})=>{A_(HTMLIFrameElement.prototype,"src",(e,n)=>t(n),(t,n)=>e(n))},({proxify:e,unproxify:t})=>{A_(HTMLImageElement.prototype,"src",(e,n)=>t(n),(t,n)=>e(n)),A_(HTMLImageElement.prototype,"srcset",(e,n)=>x_(n,t),(t,n)=>x_(n,e))},({proxify:e,unproxify:t})=>{A_(HTMLLinkElement.prototype,"href",(e,n)=>t(n),(t,n)=>e(n)),G_(HTMLLinkElement.prototype,"integrity")},({unproxify:e})=>{A_(MessageEvent.prototype,"origin",(t,n)=>{try{const n=e(t.source.location);return new URL(n).origin}catch(e){}return n},void 0)},({proxify:e})=>{const t=window.history.pushState;window.history.pushState=function(n,r,i){const o=e(i);return t.apply(this,[n,r,o])}},({proxify:e})=>{const t=window.history.replaceState;window.history.replaceState=function(n,r,i){const o=e(i);return t.apply(this,[n,r,o])}},({proxify:e,unproxify:t})=>{A_(HTMLScriptElement.prototype,"src",(e,n)=>t(n),(t,n)=>null!=n&&n.endsWith("/pdf-viewer.chunk.js")?n:e(n)),A_(HTMLScriptElement.prototype,"text",(t,n)=>{if(!I_(t)||!n)return n;const r=n.toString();return w_(r,{proxify:e,url:window.location})},(t,n)=>{if(!I_(t)||!n)return n;const r=n.toString();return p_(r,{proxify:e,url:window.location})}),G_(HTMLScriptElement.prototype,"integrity")},({proxify:e})=>{const t=navigator.sendBeacon;navigator.sendBeacon=function(n,...r){const i=e(n);return t.apply(this,[i,...r])}},({proxify:e})=>{const t=window.XMLHttpRequest;window.XMLHttpRequest=function(){const n=new t;return n.open=function(r,i,...o){const s=e(i);t.prototype.open.apply(n,[r,s,...o])},n}},({proxify:e,frameName:t})=>{const n=window.open;window.open=function(r,i,o){const s=e(r);return n(s,"_top"===i?t:i,o)}},({unproxify:e})=>{const t=()=>new URL(e(window.location.href));A_(Document.prototype,"cookie",(e,n)=>new Q_(t(),$_).filterCookies(n),(e,n)=>new Q_(t(),$_).rewriteCookie(n))},({proxify:e,unproxify:t})=>{A_(HTMLSourceElement.prototype,"srcset",(e,n)=>x_(n,t),(t,n)=>x_(n,e))},({proxify:e})=>{A_(Element.prototype,"innerHTML",void 0,(t,n)=>{const r=(null==n?void 0:n.toString())||"";return Y_(r,e)});const{insertAdjacentHTML:t}=Element.prototype;Element.prototype.insertAdjacentHTML=function(n,r){const i=(null==r?void 0:r.toString())||"",o=Y_(i,e);return t.apply(this,[n,o])},A_(HTMLElement.prototype,"style",void 0,(t,n)=>J_(n,e))},({proxify:e})=>{const t=window.FontFace;window.FontFace=function(n,r,i){if("string"==typeof r){const o=J_(r,e);return new t(n,o,i)}return new t(n,r,i)}},({proxify:e})=>{const t=window.Worker;window.Worker=function(n,r){const i=e(n);return new t(i,r)}},({proxify:e})=>{const t=window.Request;window.Request=function(n,r){return"string"==typeof n&&(n=e(n)),"object"==typeof n&&n.url&&(n.url=e(n.url)),new t(n,r)}},()=>{A_(HTMLMetaElement.prototype,"http-equiv",void 0,(e,t)=>(e=>"content-security-policy"===(null==e?void 0:e.toLowerCase()))(t)?void 0:t)},({proxify:e})=>{const{appendChild:t}=HTMLStyleElement.prototype;HTMLStyleElement.prototype.appendChild=function(n){if(n.nodeType!==Node.TEXT_NODE)return t.apply(this,[n]);const r=J_(n.textContent,e),i=document.createTextNode(r);t.apply(this,[i])}},({proxify:e,unproxify:t})=>{A_(HTMLObjectElement.prototype,"data",(e,n)=>t(n),(t,n)=>e(n))},({unproxify:e})=>{const t=()=>new URL(e(window.location.href));A_(Document.prototype,"referrer",()=>t().origin,void 0),A_(Document.prototype,"URL",()=>t().href,void 0),A_(Document.prototype,"documentURI",()=>t().href,void 0),A_(Document.prototype,"domain",()=>t().host,void 0)},({proxify:e,unproxify:t,frameName:n})=>{const r=new URL(t(window.location.href));window.origin=r.origin;const i=Function.prototype.toString;Function.prototype.toString=function(...n){const r=i.apply(this,n);return w_(r,{proxify:e,unproxify:t,url:window.location})};const o=window.Function,s=window.Function.prototype;window.Function=function(...t){try{const n=t[t.length-1].toString(),r=p_(n,{proxify:e,url:window.location});return o.apply(this,[...t.slice(0,-1),r])}catch(e){throw console.warn("CobrowseIO: failed to rewrite Function code",e),e}},window.Function.prototype=s,window.Function.toString=function(){return"function Function() { [native code] }"};const{get:a,set:c}=X_(window,"name",e=>e===n,"");Object.defineProperty(window,K_,{get:a,set:c})},e=>{const{proxify:t,unproxify:n}=e;A_(Node.prototype,"textContent",(e,n)=>{if(!I_(e)||!n)return n;const r=n.toString();return w_(r,{proxify:t,url:window.location})},(e,n)=>{if(!I_(e)||!n)return n;const r=n.toString();return p_(r,{proxify:t,url:window.location})}),A_(Node.prototype,"baseURI",(e,t)=>n(t),void 0);const r=Node.prototype.appendChild;Node.prototype.appendChild=function(t){const n=r.call(this,t);if(!t.isConnected)return n;const i=(e=>"IFRAME"===e.tagName?[e]:e instanceof Element?e.querySelectorAll("iframe"):[])(t);return i.forEach(t=>{Z_(t,e),((e,{proxify:t})=>{try{const{contentWindow:n,contentDocument:r}=e,i=r||n.document,o=i.write;i.write=function(e){const n=(null==e?void 0:e.toString())||"",r=Y_(n,t);o.apply(i,[r])}}catch(e){}})(t,e)}),n}},({unproxify:e})=>{A_(PerformanceEntry.prototype,"name",(t,n)=>ev(n)?e(n):n,void 0),window.PerformanceScriptTiming&&(A_(window.PerformanceScriptTiming.prototype,"sourceURL",(t,n)=>ev(n)?e(n):n,void 0),A_(window.PerformanceScriptTiming.prototype,"invoker",(t,n)=>ev(n)?e(n):n,void 0))},({proxify:e})=>{Object.defineProperty(CSSStyleDeclaration.prototype,"backgroundImage",{set(t){this.setProperty("background-image",J_(t,e))},get(){return this.getPropertyValue("background-image")}}),Object.defineProperty(CSSStyleDeclaration.prototype,"background",{set(t){this.setProperty("background",J_(t,e))},get(){return this.getPropertyValue("background")}})}];var nv,rv={};!function(){if(nv)return rv;nv=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("find",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{find:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}();class iv{constructor(e,t){this._message=e,this._node=t}get message(){return this._message}get node(){return this._node}}function ov(e,t){var n;let r;const i=t(e,(e=[])=>{r=e});return r=null!=r?r:e.childNodes,null!==(n=r)&&void 0!==n&&n.length?Yo(Yo({},i),{},{childNodes:Array.from(r).map(e=>ov(e,t))}):i}function sv(e,t){const n=[e];for(;n.length>0;){var r;const e=n.pop();let i;if(t(e,e=>i=null!=e?e:[]),i=null!=i?i:e.childNodes,null!==(r=i)&&void 0!==r&&r.length)for(let e=i.length-1;e>=0;e--)n.push(i[e])}}var av=new WeakMap,cv=new WeakMap,lv=new WeakMap;class uv{constructor(e){Bo(this,av,void 0),Bo(this,cv,{}),Bo(this,lv,{}),zo(av,this,e)}get id(){return jo(av,this)}get document(){return jo(cv,this)[jo(av,this)]||{id:jo(av,this),childNodes:[]}}node(e){return jo(cv,this)[(null==e?void 0:e.id)||e]}parent(e){return this.node(jo(lv,this)[(null==e?void 0:e.id)||e])}path(e,t=new Set([jo(av,this)])){let n=this.node(e);if(!n)return null;const r=[],i=new Set;for(;n&&!t.has(n.id);){const e=this.parent(n);if(!e)return null;if(!e.childNodes.some(e=>(e.id||e)===n.id))return null;if(i.has(e))throw new Error("cycle detected in VirtualDOM path computation");r.unshift(e),i.add(e),n=e}return r}applyPatch(e){const t=new Set;for(const n of e)if(n.id){const e=jo(cv,this)[n.id]||{},r=Yo(Yo({},e),n);jo(cv,this)[n.id]=r,t.add(n.id);const i=new Set((e.childNodes||[]).map(e=>e.id||e)),o=new Set((r.childNodes||[]).map(e=>e.id||e));o.forEach(e=>{jo(lv,this)[e]=r.id}),i.difference(o).forEach(e=>{sv(this.node(e),e=>{t.add(e.id)})})}else console.warn("diff missing id",n);const n=new Set([jo(av,this)]);return t.forEach(e=>{const r=this.path(e,n);if(!r)return delete jo(cv,this)[e],t.delete(e),void delete jo(lv,this)[e];for(const e of r)t.has(e.id)||(t.add(e.id),jo(cv,this)[e.id]=Yo({},e)),n.add(e.id)}),t.forEach(e=>{const t=jo(cv,this)[e];t.childNodes=(t.childNodes||[]).map(e=>{const n=e.id||e,r=jo(cv,this)[n];if(!r)throw new iv(`denormalisation failed for child ${n}`,t);return r})}),this}}function dv(e){try{return!e.document&&!1}catch(e){return!0}}function hv(e){return!!dv(e)||!("IFRAME"!==e.tagName||!dv(e.contentWindow))}function fv(e,t){const n=[];let r=e;for(;r.parentNode&&r.parentNode!==t;)n.push(r.parentNode),r=r.parentNode;if(r instanceof ShadowRoot)return[...n,r.host,...fv(r.host,t)];const i=r.defaultView&&r.defaultView.frameElement;return i?[...n,i,...fv(i)]:n}class pv{constructor(e){this.onPropertySet=e,this._klasses=new Set}_trackObserver(e){e.__cbio_observers||(e.__cbio_observers=new Set),e.__cbio_observers.add(this)}_untrackObserver(e){e.__cbio_observers&&e.__cbio_observers.delete(this)}_tap(e,t){if(e[`__cbio_override_${t}`])return;const n=Object.getOwnPropertyDescriptor(e.prototype,t);if(!n)return;e[`__cbio_override_${t}`]=!0;const r=n.set;n.set=function(n){r.call(this,n),e.__cbio_observers&&e.__cbio_observers.forEach(e=>{e.onPropertySet(this,t,n)})},Object.defineProperty(e.prototype,t,n)}observe(e,t){this._klasses.add(e),this._trackObserver(e),this._tap(e,t)}disconnect(){this._klasses.forEach(e=>this._untrackObserver(e)),this._klasses.clear()}}var gv,mv={};!function(){if(gv)return mv;gv=1;var e=jn(),t=o(),n=Zr();e({global:!0},{Reflect:{}}),n(t.Reflect,"Reflect",!0)}();var _v,vv={exports:{}};function Ev(){if(_v)return vv.exports;_v=1;var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}vv.exports=i,vv.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}p(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,i)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,c,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),c=o[t]),void 0===c)c=o[t]=n,++e._eventsCount;else if("function"==typeof c?c=o[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(i=a(e))>0&&c.length>i&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,l=u,console&&console.warn&&console.warn(l)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},vv.exports}var wv=Ev();const yv=t(wv),Iv=new class{constructor(){Qo(this,"_mousePosition",{x:-1,y:-1}),Qo(this,"_mouseIsDown",!1),Qo(this,"_mouseIsIn",!1),Qo(this,"track",e=>{e.addEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.addEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.addEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.addEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.addEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Qo(this,"untrack",e=>{e.removeEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.removeEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.removeEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.removeEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.removeEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Qo(this,"isDown",()=>this._mouseIsDown),Qo(this,"setDown",e=>{this._mouseIsDown=e,this.onChange&&this.onChange(this.state())}),Qo(this,"isIn",()=>this._mouseIsIn>0),Qo(this,"position",()=>this._mousePosition),Qo(this,"setPosition",(e,t,n)=>{if(n){const r=[n,...fv(n).filter(e=>{var t;return null===(t=e.matches)||void 0===t?void 0:t.call(e,"iframe")})],i=r.map(e=>e.getBoundingClientRect()).reduce((e,t)=>({x:e.x+t.x,y:e.y+t.y}),{x:0,y:0});e+=Math.round(i.x),t+=Math.round(i.y)}this._mousePosition={x:e,y:t},this.onChange&&this.onChange(this.state())}),Qo(this,"state",()=>Yo(Yo({},this.position()),{},{down:this.isDown(),in:this.isIn()})),Qo(this,"_onMouseDown",e=>{e.isTrusted&&this.setDown(!0)}),Qo(this,"_onMouseUp",e=>{e.isTrusted&&this.setDown(!1)}),Qo(this,"_onMouseEnter",e=>{e.isTrusted&&(this._mouseIsIn+=1)}),Qo(this,"_onMouseLeave",e=>{e.isTrusted&&e.target===e.currentTarget&&(this._mouseIsIn-=1)}),Qo(this,"_onMouseMove",dc(e=>{if(!e.isTrusted)return;const{clientX:t,clientY:n}=e,r=e.view&&e.view.frameElement;this.setPosition(t,n,r)},100))}};var Lv;Lv||(Lv=1,nf()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}}));var Cv,Av={};!function(){if(Cv)return Av;Cv=1;var e=Hh(),t=qh(),n=e.aTypedArrayConstructor;(0,e.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)}();const Sv=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function bv(e){if(!function(e){return"string"==typeof e&&Sv.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const Nv=[];for(let e=0;e<256;++e)Nv.push((e+256).toString(16).slice(1));function Tv(e,t=0){return(Nv[e[t+0]]+Nv[e[t+1]]+Nv[e[t+2]]+Nv[e[t+3]]+"-"+Nv[e[t+4]]+Nv[e[t+5]]+"-"+Nv[e[t+6]]+Nv[e[t+7]]+"-"+Nv[e[t+8]]+Nv[e[t+9]]+"-"+Nv[e[t+10]]+Nv[e[t+11]]+Nv[e[t+12]]+Nv[e[t+13]]+Nv[e[t+14]]+Nv[e[t+15]]).toLowerCase()}var kv,Ov,Rv,Pv,Dv,Mv,xv,Gv,Uv,Wv,Vv,Fv,jv,Bv,zv={};function Hv(){if(Ov)return kv;Ov=1;var e=me(),t=String,n=TypeError;return kv=function(r){if(void 0===r||e(r))return r;throw new n(t(r)+" is not an object or undefined")}}function qv(){if(Pv)return Rv;Pv=1;var e=TypeError;return Rv=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}}function Qv(){if(Mv)return Dv;Mv=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e+"+/",n=e+"-_",r=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};return Dv={i2c:t,c2i:r(t),i2cUrl:n,c2iUrl:r(n)}}function $v(){if(Gv)return xv;Gv=1;var e=TypeError;return xv=function(t){var n=t&&t.alphabet;if(void 0===n||"base64"===n||"base64url"===n)return n||"base64";throw new e("Incorrect `alphabet` option")}}function Yv(){if(Wv)return Uv;Wv=1;var e=o(),t=le(),n=Hv(),r=qv(),i=it(),s=Qv(),a=$v(),c=Hu(),l=s.c2i,u=s.c2iUrl,d=e.SyntaxError,h=e.TypeError,f=t("".charAt),p=function(e,t){for(var n=e.length;t<n;t++){var r=f(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},g=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[f(e,0)]<<18)+(t[f(e,1)]<<12)+(t[f(e,2)]<<6)+t[f(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new d("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new d("Extra bits");return[o[0],o[1]]}return o},m=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};return Uv=function(e,t,o,s){r(e),n(t);var _="base64"===a(t)?l:u,v=t?t.lastChunkHandling:void 0;if(void 0===v&&(v="loose"),"loose"!==v&&"strict"!==v&&"stop-before-partial"!==v)throw new h("Incorrect `lastChunkHandling` option");o&&c(o.buffer);var E=e.length,w=o||[],y=0,I=0,L="",C=0;if(s)for(;;){if((C=p(e,C))===E){if(L.length>0){if("stop-before-partial"===v)break;if("loose"!==v)throw new d("Missing padding");if(1===L.length)throw new d("Malformed padding: exactly one additional character");y=m(w,g(L,_,!1),y)}I=E;break}var A=f(e,C);if(++C,"="===A){if(L.length<2)throw new d("Padding is too early");if(C=p(e,C),2===L.length){if(C===E){if("stop-before-partial"===v)break;throw new d("Malformed padding: only one =")}"="===f(e,C)&&(++C,C=p(e,C))}if(C<E)throw new d("Unexpected character after padding");y=m(w,g(L,_,"strict"===v),y),I=E;break}if(!i(_,A))throw new d("Unexpected character");var S=s-y;if(1===S&&2===L.length||2===S&&3===L.length)break;if(4===(L+=A).length&&(y=m(w,g(L,_,!1),y),L="",I=C,y===s))break}return{bytes:w,read:I,written:y}}}function Jv(){if(Fv)return Vv;Fv=1;var e=Bn(),t=TypeError;return Vv=function(n){if("Uint8Array"===e(n))return n;throw new t("Argument is not an Uint8Array")}}Bv||(Bv=1,function(){if(jv)return zv;jv=1;var e=jn(),t=o(),n=Yv(),r=Jv(),i=t.Uint8Array,s=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(e){}try{return void e.setFromBase64("a")}catch(e){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();i&&e({target:"Uint8Array",proto:!0,forced:s},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})}());var Kv,Xv,Zv,eE,tE={};eE||(eE=1,function(){if(Zv)return tE;Zv=1;var e=jn(),t=o(),n=qv(),r=Jv(),i=Hu(),s=function(){if(Xv)return Kv;Xv=1;var e=o(),t=le(),n=e.Uint8Array,r=e.SyntaxError,i=e.parseInt,s=Math.min,a=/[^\da-f]/i,c=t(a.exec),l=t("".slice);return Kv=function(e,t){var o=e.length;if(o%2!=0)throw new r("String should be an even number of characters");for(var u=t?s(t.length,o/2):o/2,d=t||new n(u),h=0,f=0;f<u;){var p=l(e,h,h+=2);if(c(a,p))throw new r("String should only contain hex characters");d[f++]=i(p,16)}return{bytes:d,read:h}}}();t.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=s(e,this).read;return{read:t,written:t/2}}})}());var nE,rE,iE={};rE||(rE=1,function(){if(nE)return iE;nE=1;var e=jn(),t=o(),n=le(),r=Hv(),i=Jv(),s=Hu(),a=Qv(),c=$v(),l=a.i2c,u=a.i2cUrl,d=n("".charAt),h=t.Uint8Array,f=!h||!h.prototype.toBase64||!function(){try{(new h).toBase64(null)}catch(e){return!0}}();h&&e({target:"Uint8Array",proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n="base64"===c(t)?l:u,o=!!t&&!!t.omitPadding;s(this.buffer);for(var a,h="",f=0,p=e.length,g=function(e){return d(n,a>>6*e&63)};f+2<p;f+=3)a=(e[f]<<16)+(e[f+1]<<8)+e[f+2],h+=g(3)+g(2)+g(1)+g(0);return f+2===p?(a=(e[f]<<16)+(e[f+1]<<8),h+=g(3)+g(2)+g(1)+(o?"":"=")):f+1===p&&(a=e[f]<<16,h+=g(3)+g(2)+(o?"":"==")),h}})}());var oE,sE,aE={};sE||(sE=1,function(){if(oE)return aE;oE=1;var e=jn(),t=o(),n=le(),r=Jv(),i=Hu(),s=n(1.1.toString),a=t.Uint8Array,c=!a||!a.prototype.toHex||!function(){try{return"ffffffffffffffff"===new a([255,255,255,255,255,255,255,255]).toHex()}catch(e){return!1}}();a&&e({target:"Uint8Array",proto:!0,forced:c},{toHex:function(){r(this),i(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var o=s(this[t],16);e+=1===o.length?"0"+o:o}return e}})}());const cE=new Uint8Array(16);function lE(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){var t,n,r,i;const o=null!==(t=null!==(n=(e=e||{}).random)&&void 0!==n?n:null===(r=(i=e).rng)||void 0===r?void 0:r.call(i))&&void 0!==t?t:crypto.getRandomValues(cE);if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,Tv(o)}(e)}function uE(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function dE(e,t){return e<<t|e>>>32-t}function hE(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[o-1][14]=8*(e.length-1)/2**32,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=dE(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],a=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=dE(i,5)+uE(n,o,a,c)+l+t[n]+r[e]>>>0;l=c,c=a,a=dE(o,30)>>>0,o=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function fE(e,t,n,r){return function(e,t,n,r,i,o){var s;const a="string"==typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,c="string"==typeof r?bv(r):r;if("string"==typeof r&&(r=bv(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+a.length);if(l.set(c),l.set(a,c.length),l=t(l),l[6]=15&l[6]|e,l[8]=63&l[8]|128,i){if(null!=o||(o=0),o<0||o+16>i.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[o+e]=l[e];return i}return Tv(l)}(80,hE,e,t,n,r)}function pE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}fE.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",fE.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";var gE=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=pE({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(a in r||(r[a]=t.read(s,a)),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",pE({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,pE({},this.attributes,t))},withConverter:function(t){return e(pE({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const mE={};function _E(){try{const e="_cobrowse_test_item";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function vE(){_E()||vE.done||(vE.done=!0,console.warn("Warning: localStorage is not supported. Cobrowse falling back to cookie or in-memory storage and may not function as expected."))}function EE(e){return{setItem(t,n){vE();const r=JSON.stringify({value:n,group:e});_E()?window.localStorage.setItem(t,r):gE.set(t,r),mE[t]=r},getItem(t){try{let n;n=_E()?window.localStorage&&window.localStorage.getItem(t):gE.get(t),n||(n=mE[t]);const{value:r,group:i}=JSON.parse(n);return e&&e!==i?null:r}catch(e){return null}},removeItem(e){_E()&&window.localStorage.removeItem(e),gE.remove(e),mE[e]=void 0}}}const wE=jl("cbio.WindowTracking"),yE="_cobrowse_window_id";var IE=new WeakMap,LE=new WeakMap,CE=new WeakMap,AE=new WeakMap;class SE extends wv.EventEmitter{constructor(...e){super(...e),Bo(this,IE,bE._.call(SE)),Bo(this,LE,!1),Bo(this,CE,!1),Qo(this,"start",()=>{jo(CE,this)||(zo(CE,this,!0),wE("started"),jo(AE,this).call(this),document.addEventListener("visibilitychange",jo(AE,this),{capture:!0}),document.addEventListener("mouseover",jo(AE,this),{capture:!0}))}),Qo(this,"stop",()=>{wE("stopped"),this.removeAllListeners(),zo(CE,this,!1),document.removeEventListener("visibilitychange",jo(AE,this),{capture:!0}),document.removeEventListener("mouseover",jo(AE,this),{capture:!0})}),Qo(this,"isActive",()=>EE().getItem(yE)===this.id),Qo(this,"setTracksIframes",e=>{zo(LE,this,e),jo(AE,this).call(this)}),Qo(this,"shouldTrack",()=>!document.hidden&&(!(window.self!==window.top)||jo(LE,this))),Qo(this,"makeActive",()=>{this.isActive()||(wE("making active",window),EE().setItem(yE,this.id),this.emit("activate",window))}),Qo(this,"resignActive",()=>{this.isActive()&&(wE("resigning active",window),EE().setItem(yE,null))}),Bo(this,AE,()=>{this.shouldTrack()&&this.makeActive(),this.emit("updated")})}get id(){return jo(IE,this)}}var bE={_:()=>(document.__cobrowse_window_id=document.__cobrowse_window_id||lE(),document.__cobrowse_window_id)};const NE=new SE;var TE,kE,OE,RE,PE,DE,ME,xE,GE,UE,WE,VE,FE,jE,BE,zE,HE,qE,QE,$E,YE,JE,KE,XE,ZE,ew,tw,nw,rw,iw,ow,sw,aw,cw,lw,uw,dw,hw,fw,pw,gw,mw,_w,vw,Ew,ww,yw,Iw,Lw,Cw,Aw,Sw,bw,Nw,Tw,kw,Ow,Rw,Pw,Dw,Mw,xw,Gw,Uw,Ww,Vw,Fw,jw,Bw,zw,Hw,qw,Qw,$w,Yw,Jw,Kw,Xw,Zw,ey,ty,ny,ry,iy,oy,sy,ay,cy,ly,uy,dy,hy,fy,py,gy,my,_y,vy,Ey,wy,yy,Iy,Ly,Cy,Ay,Sy,by,Ny,Ty,ky,Oy,Ry,Py,Dy,My,xy,Gy,Uy,Wy,Vy,Fy,jy,By,zy,Hy,qy,Qy,$y,Yy,Jy,Ky,Xy,Zy,eI,tI,nI;function rI(){if(kE)return TE;kE=1;var e=Array.isArray;return TE=e}function iI(){if(DE)return PE;DE=1;var e=sc(),t=nc();return PE=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function oI(){if(VE)return WE;VE=1;var e=Function.prototype.toString;return WE=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function sI(){if(qE)return HE;qE=1;var e=function(){if(jE)return FE;jE=1;var e=iI(),t=function(){if(UE)return GE;UE=1;var e=function(){if(xE)return ME;xE=1;var e=ic()["__core-js_shared__"];return ME=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return GE=function(e){return!!t&&t in e}}(),n=nc(),r=oI(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,a=o.toString,c=s.hasOwnProperty,l=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return FE=function(o){return!(!n(o)||t(o))&&(e(o)?l:i).test(r(o))}}(),t=zE?BE:(zE=1,BE=function(e,t){return null==e?void 0:e[t]});return HE=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function aI(){if($E)return QE;$E=1;var e=sI()(Object,"create");return QE=e}function cI(){return uw?lw:(uw=1,lw=function(e,t){return e===t||e!=e&&t!=t})}function lI(){if(hw)return dw;hw=1;var e=cI();return dw=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function uI(){if(Iw)return yw;Iw=1;var e=cw?aw:(cw=1,aw=function(){this.__data__=[],this.size=0}),t=function(){if(pw)return fw;pw=1;var e=lI(),t=Array.prototype.splice;return fw=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(mw)return gw;mw=1;var e=lI();return gw=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(vw)return _w;vw=1;var e=lI();return _w=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(ww)return Ew;ww=1;var e=lI();return Ew=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,yw=o}function dI(){if(Cw)return Lw;Cw=1;var e=sI()(ic(),"Map");return Lw=e}function hI(){if(kw)return Tw;kw=1;var e=Nw?bw:(Nw=1,bw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return Tw=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function fI(){if(Vw)return Ww;Vw=1;var e=function(){if(Sw)return Aw;Sw=1;var e=function(){if(sw)return ow;sw=1;var e=function(){if(JE)return YE;JE=1;var e=aI();return YE=function(){this.__data__=e?e(null):{},this.size=0}}(),t=XE?KE:(XE=1,KE=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(ew)return ZE;ew=1;var e=aI(),t=Object.prototype.hasOwnProperty;return ZE=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(nw)return tw;nw=1;var e=aI(),t=Object.prototype.hasOwnProperty;return tw=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(iw)return rw;iw=1;var e=aI();return rw=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ow=o}(),t=uI(),n=dI();return Aw=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Rw)return Ow;Rw=1;var e=hI();return Ow=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(Dw)return Pw;Dw=1;var e=hI();return Pw=function(t){return e(this,t).get(t)}}(),r=function(){if(xw)return Mw;xw=1;var e=hI();return Mw=function(t){return e(this,t).has(t)}}(),i=function(){if(Uw)return Gw;Uw=1;var e=hI();return Gw=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Ww=o}function pI(){return $w?Qw:($w=1,Qw=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i})}function gI(){if(ey)return Zw;ey=1;var e=rI(),t=function(){if(RE)return OE;RE=1;var e=rI(),t=cc(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return OE=function(i,o){if(e(i))return!1;var s=typeof i;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}}(),n=function(){if(qw)return Hw;qw=1;var e=function(){if(zw)return Bw;zw=1;var e=function(){if(jw)return Fw;jw=1;var e=fI();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var s=n.apply(this,e);return i.cache=o.set(t,s)||o,s};return i.cache=new(t.Cache||e),i}return t.Cache=e,Fw=t}();return Bw=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return Hw=r}(),r=function(){if(Xw)return Kw;Xw=1;var e=function(){if(Jw)return Yw;Jw=1;var e=oc(),t=pI(),n=rI(),r=cc(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return Yw=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var s=i+"";return"0"==s&&1/i==-1/0?"-0":s},Yw}();return Kw=function(t){return null==t?"":e(t)}}();return Zw=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function mI(){if(ny)return ty;ny=1;var e=cc();return ty=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function _I(){if(iy)return ry;iy=1;var e=gI(),t=mI();return ry=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0},ry}function vI(){if(sy)return oy;sy=1;var e=sI(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return oy=t}function EI(){if(cy)return ay;cy=1;var e=vI();return ay=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function wI(){if(uy)return ly;uy=1;var e=EI(),t=cI(),n=Object.prototype.hasOwnProperty;return ly=function(r,i,o){var s=r[i];n.call(r,i)&&t(s,o)&&(void 0!==o||i in r)||e(r,i,o)}}function yI(){if(hy)return dy;hy=1;var e=/^(?:0|[1-9]\d*)$/;return dy=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function II(){if(Iy)return yy;Iy=1;var e=function(){if(wy)return Ey;wy=1;var e=sc(),t=ac();return Ey=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=ac(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return yy=o}function LI(){return Cy?Ly:(Cy=1,Ly=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}function CI(){return Ry||(Ry=1,Oy=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),Oy}function AI(){if(Xy)return Ky;Xy=1;var e=function(){if($y)return Qy;$y=1;var e=zy?By:(zy=1,By=function(e){return function(){return e}}),t=vI(),n=qy?Hy:(qy=1,Hy=function(e){return e});return Qy=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}(),t=function(){if(Jy)return Yy;Jy=1;var e=Date.now;return Yy=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},Yy}(),n=t(e);return Ky=n}function SI(){if(eI)return Zy;eI=1;var e=function(){if(Uy)return Gy;Uy=1;var e=function(){if(xy)return My;xy=1;var e=CI(),t=function(){if(Dy)return Py;Dy=1;var e=oc(),t=II(),n=rI(),r=e?e.isConcatSpreadable:void 0;return Py=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return My=function n(r,i,o,s,a){var c=-1,l=r.length;for(o||(o=t),a||(a=[]);++c<l;){var u=r[c];i>0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}}();return Gy=function(t){return null!=t&&t.length?e(t,1):[]}}(),t=function(){if(jy)return Fy;jy=1;var e=Vy?Wy:(Vy=1,Wy=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return Fy=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=t(o.length-r,0),c=Array(a);++s<a;)c[s]=o[r+s];s=-1;for(var l=Array(r+1);++s<r;)l[s]=o[s];return l[r]=i(c),e(n,this,l)}},Fy}(),n=AI();return Zy=function(r){return n(t(r,void 0,e),r+"")}}var bI=function(){if(nI)return tI;nI=1;var e=function(){if(ky)return Ty;ky=1;var e=function(){if(my)return gy;my=1;var e=_I(),t=function(){if(py)return fy;py=1;var e=wI(),t=gI(),n=yI(),r=nc(),i=mI();return fy=function(o,s,a,c){if(!r(o))return o;for(var l=-1,u=(s=t(s,o)).length,d=u-1,h=o;null!=h&&++l<u;){var f=i(s[l]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(l!=d){var g=h[f];void 0===(p=c?c(g,f,h):void 0)&&(p=r(g)?g:n(s[l+1])?[]:{})}e(h,f,p),h=h[f]}return o},fy}(),n=gI();return gy=function(r,i,o){for(var s=-1,a=i.length,c={};++s<a;){var l=i[s],u=e(r,l);o(u,l)&&t(c,n(l,r),u)}return c},gy}(),t=function(){if(Ny)return by;Ny=1;var e=vy?_y:(vy=1,_y=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Sy)return Ay;Sy=1;var e=gI(),t=II(),n=rI(),r=yI(),i=LI(),o=mI();return Ay=function(s,a,c){for(var l=-1,u=(a=e(a,s)).length,d=!1;++l<u;){var h=o(a[l]);if(!(d=null!=s&&c(s,h)))break;s=s[h]}return d||++l!=u?d:!!(u=null==s?0:s.length)&&i(u)&&r(h,u)&&(n(s)||t(s))},Ay}();return by=function(n,r){return null!=n&&t(n,r,e)},by}();return Ty=function(n,r){return e(n,r,function(e,r){return t(n,r)})},Ty}(),t=SI()(function(t,n){return null==t?{}:e(t,n)});return tI=t}();const NI=t(bI),TI="abcdefghijklmnopqrstuvwxyz",kI=`0123456789${TI.toLowerCase()}${TI.toUpperCase()}`;function OI(e,t=kI){let n="";for(let r=e;r>0;r-=1)n+=t[Math.floor(Math.random()*t.length)];return n}const RI=new class{isDOMNode(e){return!!e&&!(!e.childNodes||"function"!=typeof e.appendChild||void 0===e.nodeType)}},PI=new class{constructor(){Qo(this,"_idMap",new Map),Qo(this,"_nodeMap",new Map),Qo(this,"_currentId",0),Qo(this,"_nextId",()=>(this._currentId+=1,this._currentId)),Qo(this,"track",e=>{if(!e)return null;if(!RI.isDOMNode(e))return e.id;if(!this.get(e)){const t=e.nodeType===window.Node.DOCUMENT_NODE?OI(5):`${this.track(document)}-${this._nextId()}`;this._idMap.set(t,e),this._nodeMap.set(e,t)}return this._nodeMap.get(e)}),Qo(this,"get",e=>e?RI.isDOMNode(e)?this._nodeMap.get(e)||null:e.id:null),Qo(this,"getById",e=>e&&this._idMap.get(e)||null),Qo(this,"forget",e=>{this._idMap.delete(this.get(e)),this._nodeMap.delete(e)})}};var DI,MI;let xI;try{xI=document.createElement("iframe"),document.documentElement.appendChild(xI),xI.style.display="none",xI.className="__cbio_ignored",xI.width=0,xI.height=0}catch(rb){console.warn("Failed to create unpolyfill iframe",rb)}const{Node:GI,Element:UI,MutationObserver:WI,Event:VI,EventTarget:FI}=null!==(DI=null===(MI=xI)||void 0===MI?void 0:MI.contentWindow)&&void 0!==DI?DI:window,jI=jl("cbio.NodeTree"),BI={[window.Node.COMMENT_NODE]:!0,[window.Node.CDATA_SECTION_NODE]:!0,[window.Node.ENTITY_REFERENCE_NODE]:!0,[window.Node.ENTITY_NODE]:!0,[window.Node.PROCESSING_INSTRUCTION_NODE]:!0,[window.Node.NOTATION_NODE]:!0,[window.Node.DOCUMENT_TYPE_NODE]:!0},zI=e=>{try{return e&&/\.(mjs|cjs|js)$/i.test(new URL(e,window.location.href).pathname)}catch(e){return!1}};var HI=new WeakMap;const qI=new class{constructor(){Bo(this,HI,".__cbio_ignored"),Qo(this,"isIgnored",e=>{var t,n;if(BI[e.nodeType])return jI("ignoring",e,"because of nodeType"),!0;if("SCRIPT"===e.tagName)return jI("ignoring",e,"because of SCRIPT"),!0;if("LINK"===e.tagName&&(e=>{var t,n,r;const i=null!==(t=null===(n=e.rel)||void 0===n?void 0:n.toUpperCase().split(/\s+/))&&void 0!==t?t:[],o=null===(r=e.as)||void 0===r?void 0:r.trim().toUpperCase();for(const t of i){if("MODULEPRELOAD"===t)return!0;if("PRELOAD"===t&&"SCRIPT"===o)return!0;if("PREFETCH"===t&&zI(e.href))return!0}return!1})(e))return jI("ignoring",e,"because it preloads a script"),!0;if(null!==(t=e.closest)&&void 0!==t&&t.call(e,jo(HI,this)))return jI("ignoring",e,"because child of classes"),!0;const r=e.parentNode||e.defaultView&&e.defaultView.frameElement;return"STYLE"===(null==r||null===(n=r.tagName)||void 0===n?void 0:n.toUpperCase())&&(jI("ignoring",e,"because child of STYLE"),!0)}),Qo(this,"children",e=>{const{get:t}=Object.getOwnPropertyDescriptor(GI.prototype,"childNodes"),{get:n}=Object.getOwnPropertyDescriptor(UI.prototype,"shadowRoot");return RI.isDOMNode(e)?"IFRAME"===e.tagName&&hv(e)?e.__document_id?[{id:e.__document_id,nodeType:9}]:[]:"IFRAME"!==e.tagName||hv(e)?e.nodeType===window.Node.ELEMENT_NODE&&n.apply(e)?[n.apply(e),...Array.from(t.apply(e))].filter(e=>!this.isIgnored(e)):Array.from(t.apply(e)).filter(e=>!this.isIgnored(e)):"complete"!==e.contentWindow.document.readyState?[]:[e.contentWindow.document].filter(e=>!this.isIgnored(e)):e.childNodes})}setIgnoredViews(e){if(Array.isArray(e))return zo(HI,this,[".__cbio_ignored",...e].filter(Boolean).join(",")),void jI("set ignored view selectors",jo(HI,this));jI("not updating #ignoredViews due to arg to being an array",e)}depthFirst(e,t){sv(e,(e,n)=>{n(this.children(e)),t(e,n)})}depthFirstMapped(e,t){return ov(e,(e,n)=>(n(this.children(e)),t(e,n)))}},QI=jl("cbio.Redaction");var $I=new WeakMap;const YI=new class{constructor(){Bo(this,$I,void 0)}init(e){zo($I,this,e),QI("initialising with new nodeIndex")}getRedactedBy(e){var t,n;return null!==(t=null===(n=jo($I,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isRedacted(e){var t,n;return null!==(t=null===(n=jo($I,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=jo($I,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}},JI=jl("cbio.DisabledViews");var KI=new WeakMap;const XI=new class{constructor(){Bo(this,KI,void 0)}init(e){zo(KI,this,e),JI("initialising with new nodeIndex")}getDisabledBy(e){var t,n;return null!==(t=null===(n=jo(KI,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isDisabled(e){var t,n;return null!==(t=null===(n=jo(KI,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=jo(KI,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}};class ZI{static fromImage(e){const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,t.width,t.height),this.fromCanvas(t)}static fromCanvas(e,t=1,n=.3){if(1===t)return e.toDataURL?e.toDataURL("image/webp",n):null;const r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e.width*t,r.height=e.height*t,i.drawImage(e,0,0,r.width,r.height),r.toDataURL("image/webp",n)}}let eL=null;const tL=e=>{try{if(e.media&&e.media.length&&!window.matchMedia(e.media).matches)return""}catch(t){console.warn("CobrowseIO: Media detection for sheet failed:",t,"sheet",e)}return[].slice.call(e.cssRules).reduce((e,t)=>{try{return e+t.cssText}catch(t){return e}},"")},nL=e=>"IMG"===e.tagName?e.currentSrc:"LINK"===e.tagName?e.href:null,rL=(e,t)=>{const n=nL(e);e.__cbio_content_cache=e.__cbio_content_cache||{},e.__cbio_content_cache[n]=t},iL=e=>{var t;const n=nL(e);return null===(t=e.__cbio_content_cache)||void 0===t?void 0:t[n]},oL=async e=>{const t=PI.getById(e);if(t)return"IMG"===t.tagName?(async e=>{if(iL(e))return;const t=nL(e),n=await(async()=>{try{await(n=e,new Promise(e=>{if(n.complete)return e();const t=()=>{clearTimeout(r),n.removeEventListener("load",t),n.removeEventListener("error",t),e()};n.addEventListener("load",t,{once:!0}),n.addEventListener("error",t,{once:!0});const r=setTimeout(t,5e3)}));const t=ZI.fromImage(e);if("data:,"!==t)return t}catch(e){}var n;try{return await(e=>new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>{try{const e=ZI.fromImage(r);t(e)}catch(e){n(e)}},r.onerror=n}))(t)}catch(e){}})();n&&rL(e,n)})(t):"LINK"===t.tagName&&"stylesheet"===t.rel?(async e=>{if(iL(e))return;const t=nL(e),n=await(async()=>{try{if(e.sheet)return tL(e.sheet)}catch(e){}try{return await(e=>new Promise((t,n)=>{const r=document.createElement("link");r.crossOrigin="anonymous",r.rel="stylesheet",r.href=e,r.setAttribute("class","__cbio_ignored"),r.onload=()=>{try{const e=tL(r.sheet);t(e)}catch(e){n(e)}finally{r.remove()}},r.onerror=e=>{r.remove(),n(e)},document.head.appendChild(r)}))(t)}catch(e){}})();n&&rL(e,n)})(t):void 0},sL={OBJECT:!0,EMBED:!0},aL=new Set(["A","AREA","AUDIO","BUTTON","DETAILS","DIALOG","EMBED","IFRAME","IMG","INPUT","LABEL","MENU","OBJECT","OPTGROUP","OPTION","SELECT","SUMMARY","TEXTAREA","VIDEO"]),cL=new Set(["button","link","menuitem","menuitemcheckbox","menuitemradio","checkbox","radio","switch","textbox","searchbox","spinbutton","slider","combobox","listbox","option"]),lL=new class{constructor(){Qo(this,"isLocalResource",e=>!!(/^https?:\/\/localhost/.test(e)||/^https?:\/\/127.0.0.1/.test(e)||/^file:\/\//.test(e)||/^blob:/.test(e)||/^ionic:/.test(e))),Qo(this,"serializeAdoptedStyleSheets",e=>{try{let t=[];return[...e.adoptedStyleSheets||[]].forEach(e=>{t=t.concat([].slice.call(e.cssRules))}),tL({cssRules:t})}catch(t){return console.warn("CobrowseIO: AdoptedStyleSheets serialize failed:",t.message,"for",e),""}})}_serializeAttributes(e,t){if(e.nodeType===window.Node.ELEMENT_NODE&&e.attributes){const n={},r=Array.from(e.attributes||[]),i="svg"===e.tagName?(e=>{const t=[],n=[];return e.forEach(e=>{(e=>/^[^a-zA-Z0-9]/.test(e))(e.name)?t.push(e):n.push(e)}),t.concat(n)})(r):r;i.forEach(t=>{t.nodeName.startsWith("@")||("href"===t.nodeName||"src"===t.nodeName?n[t.nodeName]="string"==typeof e[t.nodeName]?e[t.nodeName]:t.nodeValue:n[t.nodeName]=t.nodeValue)}),t.attributes=n}}_serializeSelection(e,t){var n;let r=null;const i=e.getSelection();if(i&&"Range"===i.type&&!i.isCollapsed&&i.rangeCount>0)try{r=[...Array(i.rangeCount)].reduce((e,t,n)=>{const r=i.getRangeAt(n),{startOffset:o,endOffset:s}=r,a=YI.getRedactedBy(r.startContainer),c=YI.getRedactedBy(r.endContainer),l=PI.get(null!=a?a:r.startContainer),u=PI.get(null!=c?c:r.endContainer);return e.push({start:l,end:u,startOffset:a?0:o,endOffset:c?0:s}),e},[])}catch(e){console.warn("CobrowseIO: Could not serialize text selection",e)}else["INPUT","TEXTAREA"].includes(null===(n=e.activeElement)||void 0===n?void 0:n.tagName)&&e.activeElement.selectionStart!==e.activeElement.selectionEnd&&(r=!1);t.selection=r}_serializeDocument(e,t){if(e.nodeType===window.Node.DOCUMENT_NODE){var n,r,i,o,s,a;t.url=e.location&&e.location.href;const c=1===(null!==(n=null===(r=e.defaultView)||void 0===r||null===(r=r.visualViewport)||void 0===r?void 0:r.scale)&&void 0!==n?n:1),l=0===function(){if(null==eL){var e,t;const n=document.createElement("div");n.style.cssText="width: 100px; height: 100px; overflow: scroll; position: absolute; top: -500px; left: -500px; margin: 0px; padding: 0px; border: none;",null===(e=document.body)||void 0===e||e.appendChild(n),eL=n.offsetWidth-n.clientWidth,null===(t=document.body)||void 0===t||t.removeChild(n)}return eL}()&&c,u=l?null===(i=e.defaultView)||void 0===i?void 0:i.innerWidth:null===(o=e.documentElement)||void 0===o?void 0:o.clientWidth,d=l?null===(s=e.defaultView)||void 0===s?void 0:s.innerHeight:null===(a=e.documentElement)||void 0===a?void 0:a.clientHeight;t.size={width:u,height:d},t.focus=PI.get(e.activeElement);const h=e=>({name:e.name,publicId:e.publicId,systemId:e.systemId});t.doctype=null!=e.doctype?h(e.doctype):null,t.css=this.serializeAdoptedStyleSheets(e),this._serializeSelection(e,t)}}_serializeInput(e,t){if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"OPTION"===e.tagName){t.value=e.value,"radio"!==e.type&&"checkbox"!==e.type||void 0===e.checked||(t.checked=e.checked),t.selection=null;try{const{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;n!==r&&e===e.ownerDocument.activeElement&&(t.selection={start:n,end:r,direction:i})}catch(t){console.warn("Failed to serialise text selection for the input",e)}}}_serializeSelect(e,t){"SELECT"!==e.tagName||e.size&&1!==e.size||e.multiple||(t.preventDefault=!0)}_serializeOption(e,t){"OPTION"===e.tagName&&(t.selected=e.selected)}_serializeShadowRoot(e,t){e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&(t.css=this.serializeAdoptedStyleSheets(e))}_serializeStyle(e,t){var n;if("STYLE"===(null===(n=e.tagName)||void 0===n?void 0:n.toUpperCase()))try{e.sheet&&(t.css=tL(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}_serializeLinkStyleSheet(e,t){if("LINK"===e.tagName&&"stylesheet"===e.rel){const n=iL(e);if(n)return void(t.css=n);if(this.isLocalResource(e.href))try{e.sheet&&(t.css=tL(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}}_serializeCanvas(e,t,n){if("CANVAS"===e.tagName&&!n.isRedacted&&n.rasterizeCanvas)try{var r;const n=parseFloat(null===(r=e.attributes)||void 0===r||null===(r=r["data-cbio-quality"])||void 0===r?void 0:r.value)||.8;t.data=ZI.fromCanvas(e,n)}catch(t){e._cb_serialize_warned||(console.warn("Cobrowse failed to serialize canvas",e,"due to error",t),e._cb_serialize_warned=!0)}}_serializeImage(e,t,n){if("IMG"===e.tagName&&!n.isRedacted){const n=iL(e);if(n)return t.attributes.src=n,void delete t.attributes.srcset;if(this.isLocalResource(e.src))try{t.attributes.src=ZI.fromImage(e),delete t.attributes.srcset}catch(t){console.warn("CobrowseIO: Failed to serialize image",e)}}}_serializeScroll(e,t){var n,r;hv(e)||(e.nodeType===window.Node.DOCUMENT_NODE?t.scroll={x:(null===(n=e.defaultView)||void 0===n?void 0:n.pageXOffset)||0,y:(null===(r=e.defaultView)||void 0===r?void 0:r.pageYOffset)||0}:"HTML"!==e.tagName&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)&&(t.scroll={x:e.scrollLeft||0,y:e.scrollTop||0}))}_serializeRedaction(e,t,n){if(n.isRedacted){delete t.value;const n=this._getSize(e);if(1===e.nodeType){const r=window.getComputedStyle(e),i="inline"===r.display&&n.height>0?"inline-block":r.display;t.attributes=t.attributes&&Yo({id:t.attributes.id,class:t.attributes.class,style:`${t.attributes.style||""}; display: ${i} !important;flex-basis: unset !important;flex-shrink: 0;z-index:${r.zIndex};`},"EMBED"===e.nodeName?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{})}else 3===e.nodeType&&(t.nodeType=1,t.tagName="SPAN",t.attributes={style:n.height>0?"display: inline-block !important":void 0});t.redaction={height:`${n.height}px`,width:`${n.width}px`}}else t.redaction=void 0}_serializePseudoSelectors(e,t){var n,r,i;"function"==typeof e.matches&&(null===(n=t.attributes)||void 0===n||delete n.__cbio_pseudo_hover,null===(r=t.attributes)||void 0===r||delete r.__cbio_pseudo_active,null===(i=t.attributes)||void 0===i||delete i.__cbio_pseudo_focus,t.attributes=Yo(Yo(Yo(Yo({},t.attributes),e.matches(":hover")?{__cbio_pseudo_hover:""}:{}),e.matches(":active")?{__cbio_pseudo_active:""}:{}),e.matches(":focus")?{__cbio_pseudo_focus:""}:{}))}_serializeVisibility(e,t,n){e.tagName&&(n.forceHidden&&(t.attributes=Yo(Yo({},t.attributes),{},{style:"display: none !important;"})),null!=n&&n.includeVisibility&&(t.hidden=n.forceHidden||this._isExplicitlyHidden(e)||this._isHidden(e)&&e.parentElement&&!this._isHidden(e.parentElement),this._serializeInteractive(e,t)))}_isHidden(e){return this._isExplicitlyHidden(e)||this._isVisiblyHidden(e)}_isExplicitlyHidden(e){var t;return!0===e.hidden||"none"===(null===(t=e.style)||void 0===t?void 0:t.display)}_isVisiblyHidden(e){return"contents"!==getComputedStyle(e).display&&!this._checkVisibility(e)}_checkVisibility(e){return!e.checkVisibility||e.checkVisibility({visibilityProperty:!0})}_serializeInteractive(e,t){if(aL.has(e.tagName)||cL.has(e.getAttribute("role"))||e.hasAttribute("tabindex")&&Number(e.getAttribute("tabindex"))>=0)return void(t.interactive="semantic");if(e.hasAttribute("onclick"))return void(t.interactive="scripted");const n=this._getCustomCursor(e.parentElement),r=this._getCustomCursor(e);r&&n!==r&&(t.interactive="styled")}_getCustomCursor(e){if(!e)return;const t=getComputedStyle(e);return t.cursor&&"auto"!==t.cursor&&"default"!==t.cursor?t.cursor:void 0}_getSize(e){const t=null==e?void 0:e.nodeType;if(null==t)return{height:0,width:0};if(t===Node.ELEMENT_NODE)return e.getBoundingClientRect();{const t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}}_serializeDisabledView(e,t){t.disabled=XI.isDisabled(e)}_serialize(e,t){if(!PI.get(e))throw console.error("node missing id",e,e.parentNode),new Error("node missing id",e);if(!RI.isDOMNode(e))return e;if(!e.nodeType)throw new Error("node missing type",e);const n={id:PI.get(e),nodeType:e.nodeType};return this._serializeShadowRoot(e,n),this._serializeAttributes(e,n),this._serializeImage(e,n,t),this._serializeDocument(e,n),this._serializeScroll(e,n),this._serializeInput(e,n),this._serializeSelect(e,n),this._serializeOption(e,n),this._serializeStyle(e,n),this._serializeLinkStyleSheet(e,n),this._serializeCanvas(e,n,t),this._serializeRedaction(e,n,t),this._serializePseudoSelectors(e,n),this._serializeVisibility(e,n,t),this._serializeDisabledView(e,n),e.tagName&&(n.tagName=e.tagName),e.nodeValue&&(n.content=e.nodeValue),n}serialize(e,t=()=>{},n={}){const r=YI.getRedactedBy(e);if(r&&r!==e)return null;if(qI.isIgnored(e))return t([]),null;const i=Boolean(sL[e.tagName]),o=this._serialize(e,Yo({isRedacted:Boolean(r)||i},n));if(n.skipChildren||i)return o;if(r)return t([]),Yo(Yo({},o),{},{childNodes:[]});const s=qI.children(e);if(s){const e=s.map(e=>{if(!RI.isDOMNode(e))return Yo({},e);const t=PI.get(e);return t||console.warn("child node missing id",e),{id:t}});return Yo(Yo({},o),{},{childNodes:e})}return o}};var uL=new WeakMap,dL=new WeakMap,hL=new WeakMap,fL=new WeakMap,pL=new WeakSet;class gL{constructor(e=[],t=[],{document:n=window.document}={}){qo(this,pL),Bo(this,uL,void 0),Bo(this,dL,void 0),Bo(this,hL,new Set),Bo(this,fL,new Set),zo(uL,this,xo(pL,this,OL).call(this,...e)),zo(dL,this,xo(pL,this,OL).call(this,...t));for(const e of xo(pL,this,TL).call(this,n,jo(uL,this)))jo(hL,this).add(e);for(const e of xo(pL,this,TL).call(this,n,jo(dL,this)))jo(fL,this).add(e)}getIncludedBy(e){if(xo(pL,this,CL).call(this,e)||xo(pL,this,bL).call(this,e))return null;const t=xo(pL,this,AL).call(this,e);return t?xo(pL,this,bL).call(this,e.parentNode)?e:t:xo(pL,this,LL).call(this,e)?e:null}notifyChanges(e,t,n,r){const i=new Set,o=new Set,s=new Set([...jo(hL,this)]);for(const t of e){if(qI.isIgnored(t.target)||r.has(t.target))continue;const e=this.getIncludedBy(t.target);if(e&&e!==t.target&&i.add(e),"attributes"===t.type){const e=xo(pL,this,NL).call(this,t.target);for(const t of e)o.add(t);const n=xo(pL,this,CL).call(this,t.target);jo(fL,this).has(t.target)!==!!n&&o.add(t.target.parentNode)}else if("childList"===t.type){const e=xo(pL,this,mL).call(this,t.removedNodes),n=xo(pL,this,mL).call(this,t.addedNodes);if(!o.has(t.target)){const r=xo(pL,this,NL).call(this,t.target).length>0;(r&&n||!r&&e)&&o.add(t.target)}}}const a=xo(pL,this,IL).call(this,o);for(const e of a)qI.isIgnored(e)||i.add(e);xo(pL,this,_L).call(this,t,new Set([...i,...n]),r);for(const e of n)for(const t of jo(hL,this))e.contains(t)&&i.add(t);for(const e of s)jo(hL,this).has(e)||r.has(e)||qI.depthFirst(e,e=>i.add(e));return i}isIncluded(e){return Boolean(this.getIncludedBy(e))}}function mL(e){const t=[...e];return t.find(e=>!qI.isIgnored(e)&&xo(pL,this,CL).call(this,e))||t.find(e=>xo(pL,this,NL).call(this,e).length>0)}function _L(e,t,n){xo(pL,this,vL).call(this,e,t,n),xo(pL,this,EL).call(this,t,n)}function vL(e,t,n){for(const e of xo(pL,this,wL).call(this,n))jo(fL,this).delete(e);for(const t of xo(pL,this,wL).call(this,e))jo(fL,this).add(t);for(const n of t)e.has(n)||(xo(pL,this,CL).call(this,n)?jo(fL,this).add(n):jo(fL,this).delete(n))}function EL(e,t){for(const e of t)jo(hL,this).delete(e);for(const t of e)xo(pL,this,yL).call(this,t)}function*wL(e){for(const t of e)xo(pL,this,CL).call(this,t)&&(yield t)}function yL(e){const t=jo(hL,this).has(e);t&&this.getIncludedBy(e)!==e?jo(hL,this).delete(e):t||this.getIncludedBy(e)!==e||jo(hL,this).add(e)}function IL(e){const t=new Set([...e].flatMap(e=>[e,...fv(e)]));return[...t].flatMap(e=>[...e.childNodes||[]])}function LL(e){return xo(pL,this,kL).call(this,e,jo(uL,this))}function CL(e){return xo(pL,this,kL).call(this,e,jo(dL,this))}function AL(e){const t=xo(pL,this,SL).call(this,e);return t?fv(e,t).find(e=>xo(pL,this,bL).call(this,e.parentNode))||t:null}function SL(e){if(!RI.isDOMNode(e))return null;const{get:t}=Object.getOwnPropertyDescriptor(GI.prototype,"parentNode"),n=xo(pL,this,OL).call(this,jo(uL,this),jo(dL,this)),r=e&&e.nodeType===GI.ELEMENT_NODE&&t.call(e),i=r&&r.nodeType===GI.ELEMENT_NODE&&n&&r.closest(n);return xo(pL,this,kL).call(this,i,jo(uL,this))?xo(pL,this,CL).call(this,i)?null:i:null}function bL(e){return jo(dL,this)&&e&&"HTML"!==e.tagName&&e.querySelector&&e.querySelector(jo(dL,this))}function NL(e){return xo(pL,this,TL).call(this,e,jo(dL,this))}function TL(e,t){return t&&e.querySelectorAll?e.querySelectorAll(t):[]}function kL(e,t){return e&&t&&e.matches&&e.matches(t)}function OL(...e){return e.filter(Boolean).join(",")}const RL=["id","redaction"];var PL=new WeakMap,DL=new WeakMap,ML=new WeakMap,xL=new WeakMap,GL=new WeakMap;class UL extends wv.EventEmitter{constructor(...e){super(...e),Qo(this,"track",e=>{e.addEventListener("click",jo(ML,this),{capture:!0,passive:!0}),e.addEventListener("change",jo(xL,this),{capture:!0,passive:!0}),e.addEventListener("input",jo(GL,this),{capture:!0,passive:!0})}),Qo(this,"untrack",e=>{e.removeEventListener("click",jo(ML,this),{capture:!0,passive:!0}),e.removeEventListener("change",jo(xL,this),{capture:!0,passive:!0}),e.removeEventListener("input",jo(GL,this),{capture:!0,passive:!0})}),Bo(this,PL,e=>{const t=PI.get(e);if(!t)return;return lL.serialize(e,void 0,{skipChildren:!0})||{id:t,redaction:!0}}),Bo(this,DL,(e,t=!1)=>{const n=jo(PL,this).call(this,e);if(!n)return n;const{id:r,redaction:i}=n,o=Jo(n,RL);return Yo({id:r,redacted:Boolean(i)},t&&NI(o,["value","checked"]))}),Bo(this,ML,e=>{if(!e.isTrusted)return;const t=jo(DL,this).call(this,e.target);t&&this.emit("click",t)}),Bo(this,xL,e=>{const t=jo(DL,this).call(this,e.target,!0);t&&this.emit("change",t)}),Bo(this,GL,dc(e=>{const t=jo(DL,this).call(this,e.target,!0);t&&this.emit("input",t)},250))}}const WL=new UL;var VL,FL;function jL(){if(FL)return VL;FL=1;var e=o();return VL=e}var BL,zL,HL,qL,QL={};function $L(){if(HL)return zL;HL=1;var e=jL(),t=it(),n=function(){if(BL)return QL;BL=1;var e=st();return QL.f=e,QL}(),r=It().f;return zL=function(i){var o=e.Symbol||(e.Symbol={});t(o,i)||r(o,i,{value:n.f(i)})}}qL||(qL=1,$L()("asyncIterator"));var YL,JL,KL,XL={};function ZL(){if(JL)return YL;JL=1;var e=g();return YL=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}!function(){if(KL)return XL;KL=1;var e=jn(),t=le(),n=Ae(),r=rt(),i=gn(),o=pl(),s=zn(),a=g(),c=Co(),l=ZL(),u=Af(),d=Sf(),h=we(),f=bf(),p=[],m=t(p.sort),_=t(p.push),v=a(function(){p.sort(void 0)}),E=a(function(){p.sort(null)}),w=l("sort"),y=!a(function(){if(h)return h<70;if(!(u&&u>3)){if(d)return!0;if(f)return f<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:t+r,v:n})}for(p.sort(function(e,t){return t.v-e.v}),r=0;r<p.length;r++)t=p[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:v||!E||!w||!y},{sort:function(e){void 0!==e&&n(e);var t=r(this);if(y)return void 0===e?m(t):m(t,e);var a,l,u=[],d=i(t);for(l=0;l<d;l++)l in t&&_(u,t[l]);for(c(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),a=i(u),l=0;l<a;)t[l]=u[l++];for(;l<d;)o(t,l++);return t}})}();var eC,tC,nC,rC,iC,oC,sC,aC,cC,lC,uC={};!function(){if(eC)return uC;eC=1;var e=jn(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}(),tC||(tC=1,nf()("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})),nC||(nC=1,nf()("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})),rC||(rC=1,nf()("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})),iC||(iC=1,nf()("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})),oC||(oC=1,nf()("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})),sC||(sC=1,nf()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)),aC||(aC=1,nf()("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}}));var dC=(lC||(lC=1,cC=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l<u;l++)switch(n=r[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){a=!0,i+="(";break}case"}":if(o){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var d=r[l-1],h=1;"*"===r[l+1];)h++,l++;var f=r[l+1];s?!(h>1)||"/"!==d&&void 0!==d||"/"!==f&&void 0!==f?i+="([^/]*)":(i+="((?:[^/]*(?:/|$))*)",l++):i+=".*";break;default:i+=n}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}),cC);const hC=t(dC),fC=jl("cbio.ActivityDetection");var pC=new WeakMap,gC=new WeakMap,mC=new WeakMap,_C=new WeakMap,vC=new WeakMap,EC=new WeakMap,wC=new WeakMap;class yC extends wv.EventEmitter{constructor(e){super(),Bo(this,pC,!1),Bo(this,gC,!1),Bo(this,mC,null),Bo(this,_C,9e5),Qo(this,"start",()=>{jo(pC,this)||(zo(pC,this,!0),fC("started"),document.addEventListener("mouseenter",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("mouseleave",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("mousemove",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("touchstart",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("touchend",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("touchmove",jo(vC,this),{capture:!0,passive:!0}),document.addEventListener("visibilitychange",jo(vC,this),{capture:!0}),jo(vC,this).call(this))}),Qo(this,"stop",()=>{zo(gC,this,!1),zo(pC,this,!1),fC("stopped"),clearTimeout(jo(mC,this)),this.removeAllListeners(),document.removeEventListener("mouseenter",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("mouseleave",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("mousemove",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("touchstart",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("touchend",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("touchmove",jo(vC,this),{capture:!0,passive:!0}),document.removeEventListener("visibilitychange",jo(vC,this),{capture:!0})}),Qo(this,"isActive",()=>jo(gC,this)),Bo(this,vC,dc(()=>{jo(EC,this).call(this),clearTimeout(jo(mC,this)),zo(mC,this,setTimeout(jo(wC,this),jo(_C,this))),this.emit("activity")},500,{trailing:!1})),Bo(this,EC,()=>{jo(gC,this)||(document.hidden?fC("window is hidden, not becoming active"):(zo(gC,this,!0),fC("became active"),this.emit("active")))}),Bo(this,wC,()=>{jo(gC,this)&&(zo(gC,this,!1),fC("became inactive"),this.emit("inactive"))}),e&&zo(_C,this,e)}}var IC,LC={exports:{}},CC=(IC||(IC=1,function(e){let t,n,r;try{t=new TextDecoder}catch(e){}let i=0;const o={};let s,a,c,l,u,d,h,f=11281e4,p=1681e4,g={},m=0,_=0,v=[],E=[],w={useRecords:!1,mapsAsObjects:!0},y=!1,I=2;var L;try{new L("")}catch(e){I=1/0}class C{constructor(e){if(e&&(!e.keyMap&&!e._keyMap||e.useRecords||(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,n]of Object.entries(e.keyMap))this.mapKey.set(n,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[n,r]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(n)?this._keyMap[n]:n,r);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey){this._mapKey=new Map;for(let[e,t]of Object.entries(this._keyMap))this._mapKey.set(t,e)}let t={};return e.forEach((e,n)=>t[T(this._mapKey.has(n)?this._mapKey.get(n):n)]=e),t}mapDecode(e,t){let n=this.decode(e);return this._keyMap&&"Array"===n.constructor.name?n.map(e=>this.decodeKeys(e)):n}decode(e,t){if(n)return $(()=>(Y(),this?this.decode(e,t):C.prototype.decode.call(w,e,t)));r=t>-1?t:e.length,i=0,_=0,a=null,c=null,n=e;try{d=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){if(n=null,e instanceof Uint8Array)throw t;throw new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof C){if(g=this,u=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return s=this.structures,A();(!s||s.length>0)&&(s=[])}else g=w,(!s||s.length>0)&&(s=[]),u=null;return A()}decodeMultiple(e,t){let n,r=0;try{let o=e.length;y=!0;let s=this?this.decode(e,o):K.decode(e,o);if(!t){for(n=[s];i<o;)r=i,n.push(A());return n}if(!1===t(s))return;for(;i<o;)if(r=i,!1===t(A()))return}catch(e){throw e.lastPosition=r,e.values=n,e}finally{y=!1,Y()}}}function A(){try{let e=S();if(c){if(i>=c.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}i=c.postBundlePosition,c=null}if(i==r)s=null,n=null,l&&(l=null);else{if(i>r){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!y)throw new Error("Data read, but end of buffer not reached")}return e}catch(e){throw Y(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function S(){let e=n[i++],t=e>>5;if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:if(7==t)return function(){let e=n[i++],t=n[i++],r=(127&e)>>2;if(31===r)return t||3&e?NaN:128&e?-1/0:1/0;if(0===r){let n=((3&e)<<8|t)/(1<<24);return 128&e?-n:n}return M[3]=128&e|56+(r>>1),M[2]=(7&e)<<5|t>>3,M[1]=t<<5,M[0]=0,D[0]}();e=d.getUint16(i),i+=2;break;case 26:if(7==t){let e=d.getFloat32(i);if(g.useFloat32>2){let t=J[(127&n[i])<<1|n[i+1]>>7];return i+=4,(t*e+(e>0?.5:-.5)|0)/t}return i+=4,e}e=d.getUint32(i),i+=4;break;case 27:if(7==t){let e=d.getFloat64(i);return i+=8,e}if(t>1){if(d.getUint32(i)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=d.getUint32(i+4)}else g.int64AsNumber?(e=4294967296*d.getUint32(i),e+=d.getUint32(i+4)):e=d.getBigUint64(i);i+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let e,n=[],r=0;for(;(e=S())!=o;){if(r>=f)throw new Error(`Array length exceeds ${f}`);n[r++]=e}return 4==t?n:3==t?n.join(""):Buffer.concat(n);case 5:let i;if(g.mapsAsObjects){let e={},t=0;if(g.keyMap)for(;(i=S())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[T(g.decodeKey(i))]=S()}else for(;(i=S())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[T(i)]=S()}return e}{h&&(g.mapsAsObjects=!0,h=!1);let e=new Map;if(g.keyMap){let t=0;for(;(i=S())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(g.decodeKey(i),S())}}else{let t=0;for(;(i=S())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(i,S())}}return e}case 7:return o;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return l=e,g.copyBuffers?Uint8Array.prototype.slice.call(n,i,i+=l):n.subarray(i,i+=l);case 3:if(_>=i)return a.slice(i-m,(i+=e)-m);if(0==_&&r<140&&e<32){let t=e<16?P(e):function(e){let t=i,r=new Array(e);for(let o=0;o<e;o++){const e=n[i++];if((128&e)>0)return void(i=t);r[o]=e}return R.apply(String,r)}(e);if(null!=t)return t}return k(e);case 4:if(e>=f)throw new Error(`Array length exceeds ${f}`);let t=new Array(e);for(let n=0;n<e;n++)t[n]=S();return t;case 5:if(e>=p)throw new Error(`Map size exceeds ${f}`);if(g.mapsAsObjects){let t={};if(g.keyMap)for(let n=0;n<e;n++)t[T(g.decodeKey(S()))]=S();else for(let n=0;n<e;n++)t[T(S())]=S();return t}{h&&(g.mapsAsObjects=!0,h=!1);let t=new Map;if(g.keyMap)for(let n=0;n<e;n++)t.set(g.decodeKey(S()),S());else for(let n=0;n<e;n++)t.set(S(),S());return t}case 6:if(e>=57337){let t=s[8191&e];if(t)return t.read||(t.read=N(t)),t.read();if(e<65536){if(57343==e){let e=q(),t=S(),n=S();G(t,n);let r={};if(g.keyMap)for(let t=2;t<e;t++)r[T(g.decodeKey(n[t-2]))]=S();else for(let t=2;t<e;t++)r[T(n[t-2])]=S();return r}if(57342==e){let e=q(),t=S();for(let n=2;n<e;n++)G(t++,S());return S()}if(57337==e)return function(){let e=q(),t=i+S();for(let t=2;t<e;t++){let e=q();i+=e}let n=i;return i=t,c=[O(q()),O(q())],c.position0=0,c.position1=0,c.postBundlePosition=i,i=n,S()}();if(g.getShared&&(Q(),t=s[8191&e],t))return t.read||(t.read=N(t)),t.read()}}let o=v[e];if(o)return o.handlesRead?o(S):o(S());{let t=S();for(let n=0;n<E.length;n++){let r=E[n](e,t);if(void 0!==r)return r}return new x(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(u||F())[e];if(void 0!==t)return t;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw new Error("Unknown CBOR token "+e)}var l}const b=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function N(e){if(!e)throw new Error("Structure is required in record definition");return e.slowReads=0,function(){let e=n[i++];if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:e=d.getUint16(i),i+=2;break;case 26:e=d.getUint32(i),i+=4;break;default:throw new Error("Expected array header, but got "+n[i-1])}let t=this.compiledReader;for(;t;){if(t.propertyCount===e)return t(S);t=t.next}if(this.slowReads++>=I){let n=this.length==e?this:this.slice(0,e);return t=g.keyMap?new L("r","return {"+n.map(e=>g.decodeKey(e)).map(e=>b.test(e)?T(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"):new L("r","return {"+n.map(e=>b.test(e)?T(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"),this.compiledReader&&(t.next=this.compiledReader),t.propertyCount=e,this.compiledReader=t,t(S)}let r={};if(g.keyMap)for(let t=0;t<e;t++)r[T(g.decodeKey(this[t]))]=S();else for(let t=0;t<e;t++)r[T(this[t])]=S();return r}}function T(e){if("string"==typeof e)return"__proto__"===e?"__proto_":e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return e.toString();if(null==e)return e+"";throw new Error("Invalid property name type "+typeof e)}let k=O;function O(e){let r;if(e<16&&(r=P(e)))return r;if(e>64&&t)return t.decode(n.subarray(i,i+=e));const o=i+e,s=[];for(r="";i<o;){const e=n[i++];if(128&e)if(192==(224&e)){const t=63&n[i++];s.push((31&e)<<6|t)}else if(224==(240&e)){const t=63&n[i++],r=63&n[i++];s.push((31&e)<<12|t<<6|r)}else if(240==(248&e)){let t=(7&e)<<18|(63&n[i++])<<12|(63&n[i++])<<6|63&n[i++];t>65535&&(t-=65536,s.push(t>>>10&1023|55296),t=56320|1023&t),s.push(t)}else s.push(e);else s.push(e);s.length>=4096&&(r+=R.apply(String,s),s.length=0)}return s.length>0&&(r+=R.apply(String,s)),r}let R=String.fromCharCode;function P(e){if(e<4){if(e<2){if(0===e)return"";{let e=n[i++];return(128&e)>1?void(i-=1):R(e)}}{let t=n[i++],r=n[i++];if((128&t)>0||(128&r)>0)return void(i-=2);if(e<3)return R(t,r);let o=n[i++];return(128&o)>0?void(i-=3):R(t,r,o)}}{let t=n[i++],r=n[i++],o=n[i++],s=n[i++];if((128&t)>0||(128&r)>0||(128&o)>0||(128&s)>0)return void(i-=4);if(e<6){if(4===e)return R(t,r,o,s);{let e=n[i++];return(128&e)>0?void(i-=5):R(t,r,o,s,e)}}if(e<8){let a=n[i++],c=n[i++];if((128&a)>0||(128&c)>0)return void(i-=6);if(e<7)return R(t,r,o,s,a,c);let l=n[i++];return(128&l)>0?void(i-=7):R(t,r,o,s,a,c,l)}{let a=n[i++],c=n[i++],l=n[i++],u=n[i++];if((128&a)>0||(128&c)>0||(128&l)>0||(128&u)>0)return void(i-=8);if(e<10){if(8===e)return R(t,r,o,s,a,c,l,u);{let e=n[i++];return(128&e)>0?void(i-=9):R(t,r,o,s,a,c,l,u,e)}}if(e<12){let d=n[i++],h=n[i++];if((128&d)>0||(128&h)>0)return void(i-=10);if(e<11)return R(t,r,o,s,a,c,l,u,d,h);let f=n[i++];return(128&f)>0?void(i-=11):R(t,r,o,s,a,c,l,u,d,h,f)}{let d=n[i++],h=n[i++],f=n[i++],p=n[i++];if((128&d)>0||(128&h)>0||(128&f)>0||(128&p)>0)return void(i-=12);if(e<14){if(12===e)return R(t,r,o,s,a,c,l,u,d,h,f,p);{let e=n[i++];return(128&e)>0?void(i-=13):R(t,r,o,s,a,c,l,u,d,h,f,p,e)}}{let g=n[i++],m=n[i++];if((128&g)>0||(128&m)>0)return void(i-=14);if(e<15)return R(t,r,o,s,a,c,l,u,d,h,f,p,g,m);let _=n[i++];return(128&_)>0?void(i-=15):R(t,r,o,s,a,c,l,u,d,h,f,p,g,m,_)}}}}}let D=new Float32Array(1),M=new Uint8Array(D.buffer,0,4);new Array(4096);class x{constructor(e,t){this.value=e,this.tag=t}}v[0]=e=>new Date(e),v[1]=e=>new Date(Math.round(1e3*e)),v[2]=e=>{let t=BigInt(0);for(let n=0,r=e.byteLength;n<r;n++)t=BigInt(e[n])+(t<<BigInt(8));return t},v[3]=e=>BigInt(-1)-v[2](e),v[4]=e=>+(e[1]+"e"+e[0]),v[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const G=(e,t)=>{let n=s[e-=57344];n&&n.isShared&&((s.restoreStructures||(s.restoreStructures=[]))[e]=n),s[e]=t,t.read=N(t)};v[105]=e=>{let t=e.length,n=e[1];G(e[0],n);let r={};for(let i=2;i<t;i++)r[T(n[i-2])]=e[i];return r},v[14]=e=>c?c[0].slice(c.position0,c.position0+=e):new x(e,14),v[15]=e=>c?c[1].slice(c.position1,c.position1+=e):new x(e,15);let U={Error:Error,RegExp:RegExp};v[27]=e=>(U[e[0]]||Error)(e[1],e[2]);const W=e=>{if(132!=n[i++]){let e=new Error("Packed values structure must be followed by a 4 element array");throw n.length<i&&(e.incomplete=!0),e}let t=e();if(!t||!t.length){let e=new Error("Packed values structure must be followed by a 4 element array");throw e.incomplete=!0,e}return u=u?t.concat(u.slice(t.length)):t,u.prefixes=e(),u.suffixes=e(),e()};function V(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function F(){if(!u){if(!g.getShared)throw new Error("No packed values available");Q()}return u}W.handlesRead=!0,v[51]=W,v[6]=e=>{if(!u){if(!g.getShared)return new x(e,6);Q()}if("number"==typeof e)return u[16+(e>=0?2*e:-2*e-1)];let t=new Error("No support for non-integer packed references yet");throw void 0===e&&(t.incomplete=!0),t},v[28]=e=>{l||(l=new Map,l.id=0);let t,r=l.id++,o=i;t=n[i]>>5==4?[]:{};let s={target:t};l.set(r,s);let a=e();return s.used?(Object.getPrototypeOf(t)!==Object.getPrototypeOf(a)&&(i=o,t=a,l.set(r,{target:t}),a=e()),Object.assign(t,a)):(s.target=a,a)},v[28].handlesRead=!0,v[29]=e=>{let t=l.get(e);return t.used=!0,t.target},v[258]=e=>new Set(e),(v[259]=e=>(g.mapsAsObjects&&(g.mapsAsObjects=!1,h=!0),e())).handlesRead=!0;E.push((e,t)=>e>=225&&e<=255?V(F().prefixes[e-224],t):e>=28704&&e<=32767?V(F().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?V(F().prefixes[e-1879048192],t):e>=216&&e<=223?V(t,F().suffixes[e-216]):e>=27647&&e<=28671?V(t,F().suffixes[e-27639]):e>=1811940352&&e<=1879048191?V(t,F().suffixes[e-1811939328]):1399353956==e?{packedValues:u,structures:s.slice(0),version:t}:55799==e?t:void 0);const j=1==new Uint8Array(new Uint16Array([1]).buffer)[0],B=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],z=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<B.length;e++)H(B[e],z[e]);function H(e,t){let n,r="get"+e.name.slice(0,-5);"function"==typeof e?n=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i<2;i++){if(!i&&1==n)continue;let o=2==n?1:4==n?2:8==n?3:0;v[i?t:t-4]=1==n||i==j?r=>{if(!e)throw new Error("Could not find typed array for code "+t);return g.copyBuffers||1!==n&&(2!==n||1&r.byteOffset)&&(4!==n||3&r.byteOffset)&&(8!==n||7&r.byteOffset)?new e(Uint8Array.prototype.slice.call(r,0).buffer):new e(r.buffer,r.byteOffset,r.byteLength>>o)}:n=>{if(!e)throw new Error("Could not find typed array for code "+t);let s=new DataView(n.buffer,n.byteOffset,n.byteLength),a=n.length>>o,c=new e(a),l=s[r];for(let e=0;e<a;e++)c[e]=l.call(s,e<<o,i);return c}}}function q(){let e=31&n[i++];if(e>23)switch(e){case 24:e=n[i++];break;case 25:e=d.getUint16(i),i+=2;break;case 26:e=d.getUint32(i),i+=4}return e}function Q(){if(g.getShared){let e=$(()=>(n=null,g.getShared()))||{},t=e.structures||[];g.sharedVersion=e.version,u=g.sharedValues=e.packedValues,!0===s?g.structures=s=t:s.splice.apply(s,[0,t.length].concat(t))}}function $(e){let t=r,o=i,u=m,h=_,f=a,p=l,v=c,E=new Uint8Array(n.slice(0,r)),w=s,I=g,L=y,C=e();return r=t,i=o,m=u,_=h,a=f,l=p,c=v,n=E,y=L,s=w,g=I,d=new DataView(n.buffer,n.byteOffset,n.byteLength),C}function Y(){n=null,l=null,s=null}const J=new Array(147);for(let e=0;e<256;e++)J[e]=+("1e"+Math.floor(45.15-.30103*e));let K=new C({useRecords:!1});const X=K.decode,Z=K.decodeMultiple,ee={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};let te,ne,re;try{te=new TextEncoder}catch(e){}const ie="object"==typeof globalThis&&globalThis.Buffer,oe=void 0!==ie,se=oe?ie.allocUnsafeSlow:Uint8Array,ae=oe?ie:Uint8Array,ce=oe?4294967296:2144337920;let le,ue,de,he,fe=0,pe=null;const ge=/[\u0080-\uFFFF]/,me=Symbol("record-id");class _e extends C{constructor(e){let t,n,r,i,o;super(e),this.offset=0,e=e||{};let s=ae.prototype.utf8Write?function(e,t,n){return ue.utf8Write(e,t,n)}:!(!te||!te.encodeInto)&&function(e,t){return te.encodeInto(e,ue.subarray(t)).written},a=this,c=e.structures||e.saveStructures,l=e.maxSharedStructures;if(null==l&&(l=c?128:0),l>8190)throw new Error("Maximum maxSharedStructure is 8190");let u=e.sequential;u&&(l=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let d,h,f,p=e.sharedValues;if(p){f=Object.create(null);for(let e=0,t=p.length;e<t;e++)f[p[e]]=e}let g=[],m=0,_=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map(e=>this.encodeKeys(e))),this.encode(e,t)},this.encode=function(s,c){if(ue||(ue=new se(8192),de=new DataView(ue.buffer,0,8192),fe=0),he=ue.length-10,he-fe<2048?(ue=new se(ue.length),de=new DataView(ue.buffer,0,ue.length),he=ue.length-10,fe=0):c===xe&&(fe=fe+7&2147483640),t=fe,a.useSelfDescribedHeader&&(de.setUint32(fe,3654940416),fe+=3),o=a.structuredClone?new Map:null,a.bundleStrings&&"string"!=typeof s?(pe=[],pe.size=1/0):pe=null,n=a.structures,n){if(n.uninitialized){let e=a.getShared()||{};a.structures=n=e.structures||[],a.sharedVersion=e.version;let t=a.sharedValues=e.packedValues;if(t){f={};for(let e=0,n=t.length;e<n;e++)f[t[e]]=e}}let e=n.length;if(e>l&&!u&&(e=l),!n.transitions){n.transitions=Object.create(null);for(let t=0;t<e;t++){let e=n[t];if(!e)continue;let r,i=n.transitions;for(let n=0,o=e.length;n<o;n++){void 0===i[me]&&(i[me]=t);let o=e[n];r=i[o],r||(r=i[o]=Object.create(null)),i=r}i[me]=1048576|t}}u||(n.nextId=e)}if(r&&(r=!1),i=n||[],h=f,e.pack){let t=new Map;if(t.values=[],t.encoder=a,t.maxValues=e.maxPrivatePackedValues||(f?16:1/0),t.objectMap=f||!1,t.samplingPackedValues=d,Le(s,t),t.values.length>0){ue[fe++]=216,ue[fe++]=51,we(4);let e=t.values;v(e),we(0),we(0),h=Object.create(f||null);for(let t=0,n=e.length;t<n;t++)h[e[t]]=t}}le=c&Ue;try{if(le)return;if(v(s),pe&&be(t,v),a.offset=fe,o&&o.idsToInsert){fe+=2*o.idsToInsert.length,fe>he&&w(fe),a.offset=fe;let e=function(e,t){let n,r=2*t.length,i=e.length-r;t.sort((e,t)=>e.offset>t.offset?1:-1);for(let n=0;n<t.length;n++){let r=t[n];r.id=n;for(let t of r.references)e[t++]=n>>8,e[t]=255&n}for(;n=t.pop();){let t=n.offset;e.copyWithin(t+r,t,i),r-=2;let o=t+r;e[o++]=216,e[o++]=28,i=t}return e}(ue.subarray(t,fe),o.idsToInsert);return o=null,e}return c&xe?(ue.start=t,ue.end=fe,ue):ue.subarray(t,fe)}finally{if(n)if(_<10&&_++,n.length>l&&(n.length=l),m>1e4)n.transitions=null,_=0,m=0,g.length>0&&(g=[]);else if(g.length>0&&!u){for(let e=0,t=g.length;e<t;e++)g[e][me]=void 0;g=[]}if(r&&a.saveShared){a.structures.length>l&&(a.structures=a.structures.slice(0,l));let e=ue.subarray(t,fe);return!1===a.updateSharedData()?a.encode(s):e}c&Ge&&(fe=t)}},this.findCommonStringsToPack=()=>(d=new Map,f||(f=Object.create(null)),e=>{let t=e&&e.threshold||4,n=this.pack?e.maxPrivatePackedValues||16:0;p||(p=this.sharedValues=[]);for(let[e,i]of d)i.count>t&&(f[e]=n++,p.push(e),r=!0);for(;this.saveShared&&!1===this.updateSharedData(););d=null});const v=n=>{fe>he&&(ue=w(fe));var r,i=typeof n;if("string"===i){if(h){let t=h[n];if(t>=0)return void(t<16?ue[fe++]=t+224:(ue[fe++]=198,v(1&t?15-t>>1:t-16>>1)));if(d&&!e.pack){let e=d.get(n);e?e.count++:d.set(n,{count:1})}}let i,o=n.length;if(pe&&o>=4&&o<1024){if((pe.size+=o)>61440){let e,n=(pe[0]?3*pe[0].length+pe[1].length:0)+10;fe+n>he&&(ue=w(fe+n)),ue[fe++]=217,ue[fe++]=223,ue[fe++]=249,ue[fe++]=pe.position?132:130,ue[fe++]=26,e=fe-t,fe+=4,pe.position&&be(t,v),pe=["",""],pe.size=0,pe.position=e}let e=ge.test(n);return pe[e?0:1]+=n,ue[fe++]=e?206:207,void v(o)}i=o<32?1:o<256?2:o<65536?3:5;let a=3*o;if(fe+a>he&&(ue=w(fe+a)),o<64||!s){let e,t,s,a=fe+i;for(e=0;e<o;e++)t=n.charCodeAt(e),t<128?ue[a++]=t:t<2048?(ue[a++]=t>>6|192,ue[a++]=63&t|128):55296==(64512&t)&&56320==(64512&(s=n.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&s),e++,ue[a++]=t>>18|240,ue[a++]=t>>12&63|128,ue[a++]=t>>6&63|128,ue[a++]=63&t|128):(ue[a++]=t>>12|224,ue[a++]=t>>6&63|128,ue[a++]=63&t|128);r=a-fe-i}else r=s(n,fe+i,a);r<24?ue[fe++]=96|r:r<256?(i<2&&ue.copyWithin(fe+2,fe+1,fe+1+r),ue[fe++]=120,ue[fe++]=r):r<65536?(i<3&&ue.copyWithin(fe+3,fe+2,fe+2+r),ue[fe++]=121,ue[fe++]=r>>8,ue[fe++]=255&r):(i<5&&ue.copyWithin(fe+5,fe+3,fe+3+r),ue[fe++]=122,de.setUint32(fe,r),fe+=4),fe+=r}else if("number"===i)if(this.alwaysUseFloat||n>>>0!==n)if(this.alwaysUseFloat||(0|n)!==n){let e;if((e=this.useFloat32)>0&&n<4294967296&&n>=-2147483648){let t;if(ue[fe++]=250,de.setFloat32(fe,n),e<4||(0|(t=n*J[(127&ue[fe])<<1|ue[fe+1]>>7]))===t)return void(fe+=4);fe--}ue[fe++]=251,de.setFloat64(fe,n),fe+=8}else n>=-24?ue[fe++]=31-n:n>=-256?(ue[fe++]=56,ue[fe++]=~n):n>=-65536?(ue[fe++]=57,de.setUint16(fe,~n),fe+=2):(ue[fe++]=58,de.setUint32(fe,~n),fe+=4);else n<24?ue[fe++]=n:n<256?(ue[fe++]=24,ue[fe++]=n):n<65536?(ue[fe++]=25,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=26,de.setUint32(fe,n),fe+=4);else if("object"===i)if(n){if(o){let e=o.get(n);if(e){if(ue[fe++]=216,ue[fe++]=29,ue[fe++]=25,!e.references){let t=o.idsToInsert||(o.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(fe-t),void(fe+=2)}o.set(n,{offset:fe-t})}let e=n.constructor;if(e===Object)E(n);else if(e===Array){(r=n.length)<24?ue[fe++]=128|r:we(r);for(let e=0;e<r;e++)v(n[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(ue[fe++]=217,ue[fe++]=1,ue[fe++]=3),(r=n.size)<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,de.setUint32(fe,r),fe+=4),a.keyMap)for(let[e,t]of n)v(a.encodeKey(e)),v(t);else for(let[e,t]of n)v(e),v(t);else{for(let e=0,t=ne.length;e<t;e++)if(n instanceof re[e]){let t=ne[e],r=t.tag;return null==r&&(r=t.getTag&&t.getTag.call(this,n)),r<24?ue[fe++]=192|r:r<256?(ue[fe++]=216,ue[fe++]=r):r<65536?(ue[fe++]=217,ue[fe++]=r>>8,ue[fe++]=255&r):r>-1&&(ue[fe++]=218,de.setUint32(fe,r),fe+=4),void t.encode.call(this,n,v,w)}if(n[Symbol.iterator]){if(le){let e=new Error("Iterable should be serialized as iterator");throw e.iteratorNotHandled=!0,e}ue[fe++]=159;for(let e of n)v(e);return void(ue[fe++]=255)}if(n[Symbol.asyncIterator]||Ie(n)){let e=new Error("Iterable/blob should be serialized as iterator");throw e.iteratorNotHandled=!0,e}if(this.useToJSON&&n.toJSON){const e=n.toJSON();if(e!==n)return v(e)}E(n)}}else ue[fe++]=246;else if("boolean"===i)ue[fe++]=n?245:244;else if("bigint"===i){if(n<BigInt(1)<<BigInt(64)&&n>=0)ue[fe++]=27,de.setBigUint64(fe,n);else if(n>-(BigInt(1)<<BigInt(64))&&n<0)ue[fe++]=59,de.setBigUint64(fe,-n-BigInt(1));else{if(!this.largeBigIntToFloat){n>=BigInt(0)?ue[fe++]=194:(ue[fe++]=195,n=BigInt(-1)-n);let e=[];for(;n;)e.push(Number(n&BigInt(255))),n>>=BigInt(8);return void Se(new Uint8Array(e.reverse()),w)}ue[fe++]=251,de.setFloat64(fe,Number(n))}fe+=8}else{if("undefined"!==i)throw new Error("Unknown type: "+i);ue[fe++]=247}},E=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),n=Object.values(e),r=t.length;if(r<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,de.setUint32(fe,r),fe+=4),a.keyMap)for(let e=0;e<r;e++)v(a.encodeKey(t[e])),v(n[e]);else for(let e=0;e<r;e++)v(t[e]),v(n[e])}:e=>{ue[fe++]=185;let n=fe-t;fe+=2;let r=0;if(a.keyMap)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(v(a.encodeKey(t)),v(e[t]),r++);else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(v(t),v(e[t]),r++);ue[n+++t]=r>>8,ue[n+t]=255&r}:(e,t)=>{let n,o,s,a=i.transitions||(i.transitions=Object.create(null)),c=0,u=0;if(this.keyMap){s=Object.keys(e).map(e=>this.encodeKey(e)),u=s.length;for(let e=0;e<u;e++){let t=s[e];n=a[t],n||(n=a[t]=Object.create(null),c++),a=n}}else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(n=a[t],n||(1048576&a[me]&&(o=65535&a[me]),n=a[t]=Object.create(null),c++),a=n,u++);let d=a[me];if(void 0!==d)d&=65535,ue[fe++]=217,ue[fe++]=d>>8|224,ue[fe++]=255&d;else{if(s||(s=a.__keys__||(a.__keys__=Object.keys(e))),void 0===o?(d=i.nextId++,d||(d=0,i.nextId=1),d>=256&&(i.nextId=(d=l)+1)):d=o,i[d]=s,!(d<l)){if(a[me]=d,de.setUint32(fe,3655335680),fe+=3,c&&(m+=_*c),g.length>=256-l&&(g.shift()[me]=void 0),g.push(a),we(u+2),v(57344+d),v(s),t)return;for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&v(e[t]);return}ue[fe++]=217,ue[fe++]=d>>8|224,ue[fe++]=255&d,a=i.transitions;for(let e=0;e<u;e++)(void 0===a[me]||1048576&a[me])&&(a[me]=d),a=a[s[e]];a[me]=1048576|d,r=!0}if(u<24?ue[fe++]=128|u:we(u),!t)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&v(e[t])},w=e=>{let n;if(e>16777216){if(e-t>ce)throw new Error("Encoded buffer would be larger than maximum buffer size");n=Math.min(ce,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else n=1+(Math.max(e-t<<2,ue.length-1)>>12)<<12;let r=new se(n);return de=new DataView(r.buffer,0,n),ue.copy?ue.copy(r,0,t,e):r.set(ue.slice(t,e)),fe-=t,t=0,he=r.length-10,ue=r};let y=100,I=1e3;function*L(e,n,r){let i=e.constructor;if(i===Object){let t=!1!==a.useRecords;t?E(e,!0):ve(Object.keys(e).length,160);for(let r in e){let i=e[r];t||v(r),i&&"object"==typeof i?n[r]?yield*L(i,n[r]):yield*C(i,n,r):v(i)}}else if(i===Array){let r=e.length;we(r);for(let i=0;i<r;i++){let r=e[i];r&&("object"==typeof r||fe-t>y)?n.element?yield*L(r,n.element):yield*C(r,n,"element"):v(r)}}else if(e[Symbol.iterator]&&!e.buffer){ue[fe++]=159;for(let r of e)r&&("object"==typeof r||fe-t>y)?n.element?yield*L(r,n.element):yield*C(r,n,"element"):v(r);ue[fe++]=255}else Ie(e)?(ve(e.size,64),yield ue.subarray(t,fe),yield e,A()):e[Symbol.asyncIterator]?(ue[fe++]=159,yield ue.subarray(t,fe),yield e,A(),ue[fe++]=255):v(e);r&&fe>t?yield ue.subarray(t,fe):fe-t>y&&(yield ue.subarray(t,fe),A())}function*C(e,n,r){let i=fe-t;try{v(e),fe-t>y&&(yield ue.subarray(t,fe),A())}catch(o){if(!o.iteratorNotHandled)throw o;n[r]={},fe=t+i,yield*L.call(this,e,n[r])}}function A(){y=I,a.encode(null,Ue)}function S(e,t,n){return y=t&&t.chunkThreshold?I=t.chunkThreshold:100,e&&"object"==typeof e?(a.encode(null,Ue),n(e,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(e)]}function b(e,t){return N.apply(this,arguments)}function N(){return N=Zo(function*(e,t){for(let c of L(e,t,!0)){let e=c.constructor;if(e===ae||e===Uint8Array)yield c;else if(Ie(c)){let e,t=c.stream().getReader();for(;!(e=yield Vo(t.read())).done;)yield e.value}else if(c[Symbol.asyncIterator]){var n,r=!1,i=!1;try{for(var o,s=Uo(c);r=!(o=yield Vo(s.next())).done;r=!1){let e=o.value;A(),e?yield*Go(Uo(b(e,t.async||(t.async={})))):yield a.encode(e)}}catch(e){i=!0,n=e}finally{try{r&&null!=s.return&&(yield Vo(s.return()))}finally{if(i)throw n}}}else yield c}}),N.apply(this,arguments)}this.encodeAsIterable=function(e,t){return S(e,t,L)},this.encodeAsAsyncIterable=function(e,t){return S(e,t,b)}}useBuffer(e){ue=e,de=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),fe=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),n=new Ee(t,this.sharedValues,this.sharedVersion),r=this.saveShared(n,t=>(t&&t.version||0)==e);return!1===r?(n=this.getShared()||{},this.structures=n.structures||[],this.sharedValues=n.packedValues,this.sharedVersion=n.version,this.structures.nextId=this.structures.length):t.forEach((e,t)=>this.structures[t]=e),r}}function ve(e,t){e<24?ue[fe++]=t|e:e<256?(ue[fe++]=24|t,ue[fe++]=e):e<65536?(ue[fe++]=25|t,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=26|t,de.setUint32(fe,e),fe+=4)}class Ee{constructor(e,t,n){this.structures=e,this.packedValues=t,this.version=n}}function we(e){e<24?ue[fe++]=128|e:e<256?(ue[fe++]=152,ue[fe++]=e):e<65536?(ue[fe++]=153,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=154,de.setUint32(fe,e),fe+=4)}const ye="undefined"==typeof Blob?function(){}:Blob;function Ie(e){if(e instanceof ye)return!0;let t=e[Symbol.toStringTag];return"Blob"===t||"File"===t}function Le(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let n=t.get(e);if(n)2==++n.count&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let n=t.samplingPackedValues.get(e);n?n.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let n=0,r=e.length;n<r;n++)Le(e[n],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&&(r&&Le(n,t),Le(e[n],t))}break;case"function":console.log(e)}}const Ce=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Ae(e,t){return!Ce&&t>1&&(e-=4),{tag:e,encode:function(e,t){let n=e.byteLength,r=e.byteOffset||0,i=e.buffer||e;t(oe?ie.from(i,r,n):new Uint8Array(i,r,n))}}}function Se(e,t){let n=e.byteLength;n<24?ue[fe++]=64+n:n<256?(ue[fe++]=88,ue[fe++]=n):n<65536?(ue[fe++]=89,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=90,de.setUint32(fe,n),fe+=4),fe+n>=ue.length&&t(fe+n),ue.set(e.buffer?e:new Uint8Array(e),fe),fe+=n}function be(e,t){de.setUint32(pe.position+e,fe-pe.position-e+1);let n=pe;pe=null,t(n[0]),t(n[1])}re=[Date,Set,Error,RegExp,x,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,Ee],ne=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&n>=0&&n<4294967296?(ue[fe++]=26,de.setUint32(fe,n),fe+=4):(ue[fe++]=251,de.setFloat64(fe,n),fe+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,n){Se(e,n)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||oe&&!1!==this.tagUint8Array))return 64},encode(e,t,n){Se(e,n)}},Ae(68,1),Ae(69,2),Ae(70,4),Ae(71,8),Ae(72,1),Ae(77,2),Ae(78,4),Ae(79,8),Ae(85,4),Ae(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length>0){ue[fe++]=216,ue[fe++]=51,we(4);let e=n.values;t(e),we(0),we(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,n=e.length;t<n;t++)packedObjectMap[e[t]]=t}if(r){de.setUint32(fe,3655335424),fe+=3;let n=r.slice(0);n.unshift(57344),n.push(new x(e.version,1399353956)),t(n)}else t(new x(e.version,1399353956))}}];let Ne=new _e({useRecords:!1});const Te=Ne.encode,ke=Ne.encodeAsIterable,Oe=Ne.encodeAsAsyncIterable,{NEVER:Re,ALWAYS:Pe,DECIMAL_ROUND:De,DECIMAL_FIT:Me}=ee,xe=512,Ge=1024,Ue=2048;function We(){return(We=Zo(function*(e,t){const n=new _e(t);var r,i=!1,o=!1;try{for(var s,a=Uo(e);i=!(s=yield Vo(a.next())).done;i=!1){const e=s.value;yield n.encode(e)}}catch(e){o=!0,r=e}finally{try{i&&null!=a.return&&(yield Vo(a.return()))}finally{if(o)throw r}}})).apply(this,arguments)}e.ALWAYS=Pe,e.DECIMAL_FIT=Me,e.DECIMAL_ROUND=De,e.Decoder=C,e.Encoder=_e,e.FLOAT32_OPTIONS=ee,e.NEVER=Re,e.REUSE_BUFFER_MODE=xe,e.Tag=x,e.addExtension=function(e){if(e.Class){if(!e.encode)throw new Error("Extension has no encode function");re.unshift(e.Class),ne.unshift(e)}!function(e){v[e.tag]=e.decode}(e)},e.clearSource=Y,e.decode=X,e.decodeIter=function(e,t={}){if(!e||"object"!=typeof e)throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a promise");const n=new C(t);let r;const i=e=>{let t;r&&(e=Buffer.concat([r,e]),r=void 0);try{t=n.decodeMultiple(e)}catch(n){if(!n.incomplete)throw n;r=e.slice(n.lastPosition),t=n.values}return t};return"function"==typeof e[Symbol.iterator]?function*(){for(const t of e)yield*i(t)}():"function"==typeof e[Symbol.asyncIterator]?(o=Zo(function*(){var t,n=!1,r=!1;try{for(var o,s=Uo(e);n=!(o=yield Vo(s.next())).done;n=!1){const e=o.value;yield*Go(Uo(i(e)))}}catch(e){r=!0,t=e}finally{try{n&&null!=s.return&&(yield Vo(s.return()))}finally{if(r)throw t}}}),function(){return o.apply(this,arguments)})():void 0;var o},e.decodeMultiple=Z,e.encode=Te,e.encodeAsAsyncIterable=Oe,e.encodeAsIterable=ke,e.encodeIter=function(e,t={}){if(e&&"object"==typeof e){if("function"==typeof e[Symbol.iterator])return function*(e,t){const n=new _e(t);for(const t of e)yield n.encode(t)}(e,t);if("function"==typeof e.then||"function"==typeof e[Symbol.asyncIterator])return function(e,t){return We.apply(this,arguments)}(e,t);throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a Promise")}throw new Error("first argument must be an Iterable, Async Iterable, or a Promise for an Async Iterable")},e.isNativeAccelerationEnabled=!1,e.roundFloat32=function(e){D[0]=e;let t=J[(127&M[3])<<1|M[2]>>7];return(t*e+(e>0?.5:-.5)|0)/t},e.setSizeLimits=function(e){e.maxMapSize&&(p=e.maxMapSize),e.maxArraySize&&(f=e.maxArraySize),e.maxObjectSize&&e.maxObjectSize}}(LC.exports)),LC.exports);const AC=(e,t)=>t?.125*e+.875*t:e;var SC=new WeakMap,bC=new WeakMap,NC=new WeakMap,TC=new WeakMap,kC=new WeakMap;class OC{constructor(){Bo(this,SC,void 0),Bo(this,bC,void 0),Bo(this,NC,void 0),Bo(this,TC,void 0),Bo(this,kC,void 0),Qo(this,"reset",()=>{zo(SC,this,0),zo(bC,this,0),zo(NC,this,0),zo(TC,this,0),zo(kC,this,0)}),Qo(this,"latency",()=>{if(0===jo(SC,this))return 0;if(jo(kC,this)>0&&jo(SC,this)===jo(NC,this))return jo(kC,this);const e=Date.now()-jo(bC,this);return e>jo(kC,this)?AC(e,jo(kC,this)):jo(kC,this)}),Qo(this,"onSent",e=>{jo(NC,this)<jo(SC,this)||(zo(SC,this,e),zo(bC,this,Date.now()))}),Qo(this,"onReceived",e=>{let t;if(zo(NC,this,e),zo(TC,this,Date.now()),0===jo(SC,this)||0===jo(NC,this))t=0;else{if(jo(SC,this)!==jo(NC,this))return;t=jo(TC,this)-jo(bC,this)}zo(kC,this,AC(t,jo(kC,this)))}),this.reset()}}const RC=jl("cbio.CBORSocket");var PC=new WeakMap,DC=new WeakMap,MC=new WeakMap,xC=new WeakMap,GC=new WeakMap,UC=new WeakMap,WC=new WeakMap,VC=new WeakMap,FC=new WeakMap,jC=new WeakMap,BC=new WeakMap,zC=new WeakMap,HC=new WeakMap,qC=new WeakMap,QC=new WeakMap,$C=new WeakMap,YC=new WeakMap,JC=new WeakMap,KC=new WeakMap,XC=new WeakMap,ZC=new WeakMap,eA=new WeakMap,tA=new WeakMap;class nA extends wv.EventEmitter{constructor(e){super(),Bo(this,PC,void 0),Bo(this,DC,!1),Bo(this,MC,void 0),Bo(this,xC,0),Bo(this,GC,6e4),Bo(this,UC,1e3+Math.floor(1e3*Math.random())),Bo(this,WC,void 0),Bo(this,VC,void 0),Bo(this,FC,void 0),Bo(this,jC,0),Bo(this,BC,0),Bo(this,zC,new OC),Bo(this,HC,async()=>{var e,t;if(jo(MC,this))return void console.error("Socket already exists");RC("creating ws");const n=await jo(PC,this).getUrl(),r=["cbor",...await(null===(e=(t=jo(PC,this)).getProtocols)||void 0===e?void 0:e.call(t))||[]].filter(Boolean);if(!n)return;if(jo(DC,this))return;if(jo(MC,this))return;const i=jo(PC,this).createWebSocket?jo(PC,this).createWebSocket(n,r):new WebSocket(n,r);i.binaryType="arraybuffer",i.addEventListener("open",jo($C,this)),i.addEventListener("message",jo(JC,this)),i.addEventListener("close",jo(ZC,this)),i.addEventListener("error",jo(eA,this)),zo(MC,this,i),jo(zC,this).reset()}),Bo(this,qC,(...e)=>{if(jo(MC,this))try{jo(MC,this).close(...e)}catch(e){RC("error closing socket",e)}zo(MC,this,null)}),Bo(this,QC,()=>{RC("navigator went offline"),jo(qC,this).call(this),jo(XC,this).call(this)}),Bo(this,$C,()=>{RC("ws opened"),this.emit("open"),clearTimeout(jo(VC,this)),zo(VC,this,setTimeout(()=>{RC("counting open as success"),zo(xC,this,0)},5e3))}),Bo(this,YC,e=>{zo(BC,this,e),jo(zC,this).onReceived(e)}),Bo(this,JC,e=>{try{const{event:t,data:n,ack:r}=CC.decode(new Uint8Array(e.data));return r?jo(YC,this).call(this,r):t?this.emit("event",t,n):console.error("Socket received message without event",e)}catch(t){return console.error("Error processing message",e.data,t.stack)}}),Bo(this,KC,e=>{if(0===e)return 0;const t=1+.5*Math.random(),n=Math.floor((300*e)**1.2*t);return Math.min(Math.max(jo(UC,this),n),jo(GC,this))}),Bo(this,XC,()=>{if(jo(DC,this))return void RC("reconnect skipped as socket was closed");if(jo(FC,this))return void RC("reconnect skipped as reconnect already scheduled");if("undefined"!=typeof navigator&&!1===navigator.onLine)return RC("navigator offline"),void zo(FC,this,setTimeout(()=>{zo(FC,this,null),jo(XC,this).call(this)},1e3));const e=jo(KC,this).call(this,jo(xC,this));RC("reconnecting in",e,"attempts",jo(xC,this)),zo(FC,this,setTimeout(async()=>{zo(FC,this,null),jo(DC,this)?console.warn("tried to reconnect after close"):(zo(MC,this,null),await jo(HC,this).call(this).catch(jo(eA,this)),jo(MC,this)||jo(DC,this)||jo(XC,this).call(this))},e)),zo(xC,this,jo(xC,this)+1)}),Bo(this,ZC,()=>{RC("ws closed"),this.emit("close"),RC("resetting message acks"),zo(jC,this,0),zo(BC,this,0),jo(zC,this).onReceived(0),jo(DC,this)||jo(XC,this).call(this),clearTimeout(jo(VC,this))}),Bo(this,eA,e=>{jo(DC,this)?console.info("CobrowseIO: Called error after close.",e):0!==this.listenerCount("error")?this.emit("error",e):console.warn("CobrowseIO: Called handleError without listeners. Please report this.",e)}),Bo(this,tA,()=>{this.send("ping")}),Qo(this,"messageLag",()=>jo(BC,this)?jo(jC,this)-jo(BC,this):0),Qo(this,"setMaxReconnectDelay",e=>{RC("set max delay",e),zo(GC,this,e)}),Qo(this,"setMinReconnectDelay",e=>{RC("set min delay",e),zo(UC,this,e)}),Qo(this,"send",(e,t)=>{if(!this.connected)return!1;zo(jC,this,jo(jC,this)+1),jo(zC,this).onSent(jo(jC,this));const n=Date.now(),r=CC.encode(t?{event:e,id:jo(jC,this),data:t}:{event:e});return RC("encoded",e,`${r.byteLength} bytes`,"in",Date.now()-n+"ms"),jo(MC,this).send(r),!0}),Qo(this,"close",(...e)=>{RC("close"),zo(DC,this,!0),jo(qC,this).call(this,...e),clearTimeout(jo(FC,this)),clearInterval(jo(WC,this)),this.emit("close"),this.removeAllListeners(),"undefined"!=typeof window&&(window.removeEventListener("unload",this.close),window.removeEventListener("offline",jo(QC,this)))}),RC("created cbor socket"),zo(PC,this,e),zo(WC,this,setInterval(jo(tA,this),6e4)),"undefined"!=typeof window&&(window.addEventListener("unload",this.close),window.addEventListener("offline",jo(QC,this))),this.on("error",e=>RC("ws errored",e)),jo(XC,this).call(this)}get bufferedAmount(){return jo(MC,this)?jo(MC,this).bufferedAmount:1/0}get connected(){return!!jo(MC,this)&&jo(MC,this).readyState===jo(MC,this).OPEN}get metrics(){return jo(zC,this)}}const rA=e=>e instanceof RegExp?e:e&&"string"==typeof e?hC(e,{flags:"i"}):null,iA=(e=[])=>{const t=[];return Array.isArray(e)?(e.forEach(e=>{const n=rA(e);n&&t.push(n)}),e=>t.some(t=>t.test(e))):()=>!1},oA=jl("cbio.IFrameBridge");var sA=new WeakMap,aA=new WeakMap,cA=new WeakMap,lA=new WeakMap,uA=new WeakMap,dA=new WeakMap,hA=new WeakMap,fA=new WeakMap,pA=new WeakMap,gA=new WeakMap;class mA extends wv.EventEmitter{get trustedOrigins(){return jo(sA,this)}set trustedOrigins(e){zo(sA,this,e),zo(aA,this,iA(e))}get trustedIframes(){return[...jo(uA,this)].filter(e=>e.contentWindow&&this.isTrusted(e.contentWindow))}constructor(e){super(),Bo(this,sA,[]),Bo(this,aA,()=>!1),Qo(this,"automaticTrustedOrigins",[]),Bo(this,cA,null),Bo(this,lA,new WeakMap),Bo(this,uA,new Set),Qo(this,"start",()=>{window.removeEventListener("message",jo(dA,this)),window.addEventListener("message",jo(dA,this)),jo(cA,this)&&this.send(jo(cA,this),"init",null,{trustedOnly:!1})}),Qo(this,"stop",()=>{window.removeEventListener("message",jo(dA,this))}),Bo(this,dA,e=>{if(!jo(fA,this).call(this,e))return oA("ignoring message, not a cobrowse message",e.data);this.establishTrust(e.source,e.origin);const{trustedOnly:t,event:n,data:r}=e.data;this.emit(n,r,{source:e.source,origin:e.origin,trusted:this.isTrusted(e.source),iframe:jo(gA,this).call(this,e.source),fromParent:jo(hA,this).call(this,e.source),trustedOnly:t})}),Bo(this,hA,(e,t=window.parent)=>e===t||t.parent!==t&&jo(hA,this).call(this,e,t.parent)),Bo(this,fA,e=>{if(!e.data)return!1;const{cobrowseio:t,event:n}=e.data;return!!t&&!!n}),Bo(this,pA,e=>this.automaticTrustedOrigins.includes(e)||jo(aA,this).call(this,e)),Qo(this,"isTrusted",e=>{const t=jo(lA,this).get(e);return!!t&&jo(pA,this).call(this,t)}),Bo(this,gA,e=>Array.from(jo(uA,this)).find(t=>t.contentWindow===e)),Qo(this,"send",(e,t,n,{trustedOnly:r=!0,targetOrigin:i}={})=>{let o=i||jo(lA,this).get(e);if(r&&!jo(pA,this).call(this,o))return oA(`not sending ${t} as target source is not trusted: ${o}`);r||o||(o="*"),e.postMessage({trustedOnly:r,cobrowseio:!0,event:t,data:n},o)}),Qo(this,"sendToParent",(e,t,{trustedOnly:n=!0}={})=>{jo(cA,this)&&this.send(jo(cA,this),e,t,{trustedOnly:n})}),Qo(this,"broadcastToChildren",(e,t,{trustedOnly:n=!0}={})=>{jo(uA,this).forEach(r=>{r.contentWindow&&this.send(r.contentWindow,e,t,{trustedOnly:n})})}),Qo(this,"track",e=>{jo(uA,this).has(e)||(jo(uA,this).add(e),this.emit("iframe_discovered",e))}),Qo(this,"remove",e=>{jo(uA,this).delete(e)}),Qo(this,"establishTrust",(e,t)=>{e&&jo(lA,this).set(e,t)}),Qo(this,"breakTrust",e=>{jo(lA,this).has(e)&&jo(lA,this).set(e,null)}),zo(cA,this,e),oA("iframe bridge constructed in",document,"with parent",jo(cA,this))}}var _A=new WeakMap,vA=new WeakMap,EA=new WeakMap,wA=new WeakMap,yA=new WeakMap;class IA extends wv.EventEmitter{constructor(e,t){super(),Bo(this,_A,void 0),Bo(this,vA,void 0),Bo(this,EA,new Map),Qo(this,"send",(e,t,{timeout:n=0,trustedOnly:r=!0}={})=>new Promise((i,o)=>{const s=lE();jo(EA,this).set(s,{resolve:i,reject:o});const a={id:s,method:e,data:t};jo(_A,this).send(jo(vA,this),"rpc:request",a,{trustedOnly:r}),n&&setTimeout(()=>{const e=jo(EA,this).get(s);e&&(e.reject(new Error("Request timed out")),jo(EA,this).delete(s))},n)})),Bo(this,wA,async(e,{source:t,trusted:n,trustedOnly:r})=>{const{id:i,method:o,data:s}=e,a=this.listeners(o);if(a.length>1)throw new Error("only a single RPC listener is allowed per event");if(0===a.length)return;const[c]=a;try{const e=await c(s,{trusted:n});jo(_A,this).send(t,"rpc:response",{id:i,data:e},{trustedOnly:r})}catch(e){jo(_A,this).send(t,"rpc:response",{id:i,error:e},{trustedOnly:r})}}),Bo(this,yA,(e,{trusted:t,trustedOnly:n})=>{if(n&&!t)return;const{error:r,id:i,data:o}=e,s=jo(EA,this).get(i);s&&(r?s.reject(r):s.resolve(o),jo(EA,this).delete(i))}),zo(_A,this,e),zo(vA,this,t),jo(_A,this).on("rpc:request",jo(wA,this)),jo(_A,this).on("rpc:response",jo(yA,this))}destroy(){jo(_A,this).off("rpc:request",jo(wA,this)),jo(_A,this).off("rpc:response",jo(yA,this)),zo(_A,this,null),zo(vA,this,null),jo(EA,this).clear(),zo(EA,this,null)}}function LA(e){try{return!e.document&&!1}catch(e){return!0}}function CA(e){return!!LA(e)||!("IFRAME"!==e.tagName||!LA(e.contentWindow))}const AA=["_blank","_self","_parent","_top","_unfencedTop"],SA=(e,t)=>e?AA.includes(e)?{name:"",target:e}:{name:e,target:t}:{name:"",target:t},bA=(e,t)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).get.call(e),NA=(e,t,n)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).set.call(e,n);class TA extends Event{constructor(e,t){super(e,t),this._view=t.view}get view(){return this._view}}var kA=new WeakMap,OA=new WeakMap,RA=new WeakMap,PA=new WeakMap,DA=new WeakMap,MA=new WeakMap,xA=new WeakMap;const GA=new class{constructor(){Qo(this,"beforeNavigate",void 0),Bo(this,kA,!1),Bo(this,OA,new Set),Qo(this,"track",e=>{e.addEventListener("click",jo(RA,this),{capture:!0}),e.addEventListener("click",jo(RA,this)),e.addEventListener("submit",jo(PA,this))}),Qo(this,"untrack",e=>{e.removeEventListener("click",jo(RA,this),{capture:!0}),e.removeEventListener("click",jo(RA,this)),e.removeEventListener("submit",jo(PA,this))}),Qo(this,"tap",e=>{if(jo(OA,this).has(e))return;const t=this,{open:n}=e;e.open=function(...e){return jo(DA,t).call(t,this,n,...e)};const{submit:r}=e.HTMLFormElement.prototype;e.HTMLFormElement.prototype.submit=function(...e){return jo(MA,t).call(t,this,r,...e)},jo(OA,this).add(e)}),Qo(this,"untap",e=>{}),Bo(this,RA,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("a");if(!n)return;if(!n.href)return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=SA(n.target,"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(n.href,r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.click(),delete n.__cbio_forceDefaultNavigation},e:e});o&&o!==n.href&&(n.href=o),s&&e.preventDefault()}),Bo(this,PA,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("form");if(!n)return;if(!bA(n,"action"))return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=SA(bA(n,"target"),"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(bA(n,"action"),r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.submit(),delete n.__cbio_forceDefaultNavigation},e:e});o&&NA(n,"action",o),s&&e.preventDefault()}),Bo(this,DA,(e,t,n,r,i)=>{if(!this.beforeNavigate)return t.call(e,n,r,i);const o=new TA("WindowOpen",{view:e}),{target:s,name:a}=SA(r,"_blank"),{rewrittenUrl:c,windowProxy:l}=this.beforeNavigate(n,s,i,{name:a,go:()=>t.call(e,n,r,i),e:o});return c?t.call(e,c,r,i):l||void 0}),Bo(this,MA,(e,t,...n)=>{if(!this.beforeNavigate)return t.call(e,...n);const r=e.parentElement,i=new TA("FormSubmit",{view:e.ownerDocument.defaultView}),{target:o,name:s}=SA(bA(e,"target"),"_self"),{rewrittenUrl:a,windowProxy:c}=this.beforeNavigate(bA(e,"action"),o,"",{name:s,go:()=>{const i=document.contains(r)&&!document.contains(e);i&&r.appendChild(e);const o=t.call(e,...n);return i&&e.remove(),o},e:i});return a&&NA(e,"action",a),c?null:t.call(e,...n)}),Bo(this,xA,()=>{zo(kA,this,!0)}),window.addEventListener("pagehide",jo(xA,this),{capture:!0,once:!0,passive:!0})}ensureNoNavigation(e=200){return new Promise(t=>{setTimeout(()=>{jo(kA,this)||t()},e)})}};var UA,WA,VA,FA,jA={};function BA(){if(WA)return UA;WA=1;var e=o();return UA=e.Promise}function zA(){if(FA)return VA;FA=1;var e=yt(),t=Kh(),n=he(),r=st()("species");return VA=function(i,o){var s,a=e(i).constructor;return void 0===a||n(s=e(a)[r])?o:t(s)},VA}var HA,qA,QA,$A,YA={};function JA(){if(HA)return YA;HA=1;var e=Ae(),t=TypeError,n=function(n){var r,i;this.promise=new n(function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n}),this.resolve=e(r),this.reject=e(i)};return YA.f=function(e){return new n(e)},YA}function KA(){if(QA)return qA;QA=1;var e=yt(),t=me(),n=JA();return qA=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise},qA}!function(){if($A)return jA;$A=1;var e=jn(),t=Ze(),n=BA(),r=g(),i=_e(),o=ge(),s=zA(),a=KA(),c=qt(),l=n&&n.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=s(this,i("Promise")),n=o(e);return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}}),!t&&o(n)){var u=i("Promise").prototype.finally;l.finally!==u&&c(l,"finally",u,{unsafe:!0})}}();const XA=jl("cbio.RequestTracking");var ZA=new WeakSet;class eS{constructor(){qo(this,ZA),this.inFlightRequests=0,this.originalFetch=null,this.originalXHROpen=null,this.originalXHRSend=null}monitor(){this.originalFetch||(XA("monitoring network"),xo(ZA,this,tS).call(this),xo(ZA,this,nS).call(this))}destroy(){this.inFlightRequests=0}waitUntilStable(e={}){const{timeout:t=5e3,intervalMs:n=200}=e;XA("waitUntilStable");const r=Date.now();return new Promise(e=>{const i=setInterval(()=>Date.now()>r+t?(clearInterval(i),XA("network did not stabilise after %d millis",t),e(!1)):0===this.inFlightRequests?(clearInterval(i),XA("network stabilised"),e(!0)):void 0,n)})}}function tS(){if(this.originalFetch)return;this.originalFetch=window.fetch;const e=this;window.fetch=function(...t){return e.inFlightRequests++,e.originalFetch.apply(this,t).finally(()=>e.inFlightRequests--)}}function nS(){if(this.originalXHROpen)return;this.originalXHROpen=XMLHttpRequest.prototype.open,this.originalXHRSend=XMLHttpRequest.prototype.send;const e=this;XMLHttpRequest.prototype.open=function(...t){return this.__cbio_decrementCounter&&(this.removeEventListener("load",this.__cbio_decrementCounter),this.removeEventListener("error",this.__cbio_decrementCounter),this.removeEventListener("abort",this.__cbio_decrementCounter),this.removeEventListener("timeout",this.__cbio_decrementCounter)),this.__cbio_needsTracking=!0,e.originalXHROpen.apply(this,t)},XMLHttpRequest.prototype.send=function(...t){if(this.__cbio_needsTracking){this.__cbio_needsTracking=!1,e.inFlightRequests++;const t=()=>e.inFlightRequests--;this.__cbio_decrementCounter=t,this.addEventListener("load",t,{once:!0}),this.addEventListener("error",t,{once:!0}),this.addEventListener("abort",t,{once:!0}),this.addEventListener("timeout",t,{once:!0})}return e.originalXHRSend.apply(this,t)}}var rS,iS={};!function(){if(rS)return iS;rS=1;var e=jn(),t=v(),n=yc(),r=Ae(),i=yt(),o=js(),s=Zi(),a=qs()("every",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{every:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var oS,sS,aS,cS,lS,uS,dS,hS,fS,pS,gS,mS,_S,vS,ES={},wS=[],yS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,IS=Array.isArray;function LS(e,t){for(var n in t)e[n]=t[n];return e}function CS(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function AS(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?oS.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return SS(e,s,r,i,null)}function SS(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++aS:i,__i:-1,__u:0};return null==i&&null!=sS.vnode&&sS.vnode(o),o}function bS(e){return e.children}function NS(e,t){this.props=e,this.context=t}function TS(e,t){if(null==t)return e.__?TS(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?TS(e):null}function kS(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],o=LS({},t);o.__v=t.__v+1,sS.vnode&&sS.vnode(o),FS(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?TS(t):n,!!(32&t.__u),i),o.__v=t.__v,o.__.__k[o.__i]=o,BS(r,o,i),t.__e=t.__=null,o.__e!=n&&OS(o)}}function OS(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),OS(e)}function RS(e){(!e.__d&&(e.__d=!0)&&cS.push(e)&&!PS.__r++||lS!=sS.debounceRendering)&&((lS=sS.debounceRendering)||uS)(PS)}function PS(){try{for(var e,t=1;cS.length;)cS.length>t&&cS.sort(dS),e=cS.shift(),t=cS.length,kS(e)}finally{cS.length=PS.__r=0}}function DS(e,t,n,r,i,o,s,a,c,l,u){var d,h,f,p,g,m,_,v=r&&r.__k||wS,E=t.length;for(c=MS(n,t,v,c,E),d=0;d<E;d++)null!=(f=n.__k[d])&&(h=-1!=f.__i&&v[f.__i]||ES,f.__i=d,m=FS(e,f,h,i,o,s,a,c,l,u),p=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&qS(h.ref,null,f),u.push(f.ref,f.__c||p,f)),null==g&&null!=p&&(g=p),(_=!!(4&f.__u))||h.__k===f.__k?(c=xS(f,c,e,_),_&&h.__e&&(h.__e=null)):"function"==typeof f.type&&void 0!==m?c=m:p&&(c=p.nextSibling),f.__u&=-7);return n.__e=g,c}function MS(e,t,n,r,i){var o,s,a,c,l,u=n.length,d=u,h=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(s=t[o])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[o]=SS(null,s,null,null,null):IS(s)?s=e.__k[o]=SS(bS,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[o]=SS(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[o]=s,c=o+h,s.__=e,s.__b=e.__b+1,a=null,-1!=(l=s.__i=GS(s,n,c,d))&&(d--,(a=n[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>u?h--:i<u&&h++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?h--:l==c+1?h++:(l>c?h--:h++,s.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(a=n[o])&&!(2&a.__u)&&(a.__e==r&&(r=TS(a)),QS(a,a));return r}function xS(e,t,n,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=xS(i[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=TS(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function GS(e,t,n,r){var i,o,s,a=e.key,c=e.type,l=t[n],u=null!=l&&!(2&l.__u);if(null===l&&null==a||u&&a==l.key&&c==l.type)return n;if(r>(u?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;)if(null!=(l=t[s=i>=0?i--:o++])&&!(2&l.__u)&&a==l.key&&c==l.type)return s;return-1}function US(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||yS.test(t)?n:n+"px"}function WS(e,t,n,r,i){var o,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||US(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||US(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(gS,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n[pS]=r[pS]:(n[pS]=mS,e.addEventListener(t,o?vS:_S,o)):e.removeEventListener(t,o?vS:_S,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function VS(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[fS])t[fS]=mS++;else if(t[fS]<n[pS])return;return n(sS.event?sS.event(t):t)}}}function FS(e,t,n,r,i,o,s,a,c,l){var u,d,h,f,p,g,m,_,v,E,w,y,I,L,C,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(u=sS.__b)&&u(t);e:if("function"==typeof A)try{if(_=t.props,v=A.prototype&&A.prototype.render,E=(u=A.contextType)&&r[u.__c],w=u?E?E.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(v?t.__c=d=new A(_,w):(t.__c=d=new NS(_,w),d.constructor=A,d.render=$S),E&&E.sub(d),d.state||(d.state={}),d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),v&&null==d.__s&&(d.__s=d.state),v&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=LS({},d.__s)),LS(d.__s,A.getDerivedStateFromProps(_,d.__s))),f=d.props,p=d.state,d.__v=t,h)v&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),v&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(v&&null==A.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,w),t.__v==n.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,w)){t.__v!=n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),wS.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,w),v&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,p,g)})}if(d.context=w,d.props=_,d.__P=e,d.__e=!1,y=sS.__r,I=0,v)d.state=d.__s,d.__d=!1,y&&y(t),u=d.render(d.props,d.state,d.context),wS.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,y&&y(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++I<25);d.state=d.__s,null!=d.getChildContext&&(r=LS(LS({},r),d.getChildContext())),v&&!h&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(f,p)),L=null!=u&&u.type===bS&&null==u.key?zS(u.props.children):u,a=DS(e,IS(L)?L:[L],t,n,r,i,o,s,a,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),m&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=o)if(e.then){for(t.__u|=c?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(C=o.length;C--;)CS(o[C]);jS(t)}else t.__e=n.__e,t.__k=n.__k,e.then||jS(t);sS.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=HS(n.__e,t,n,r,i,o,s,c,l);return(u=sS.diffed)&&u(t),128&t.__u?void 0:a}function jS(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(jS))}function BS(e,t,n){for(var r=0;r<n.length;r++)qS(n[r],n[++r],n[++r]);sS.__c&&sS.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){sS.__e(e,t.__v)}})}function zS(e){return"object"!=typeof e||null==e||e.__b>0?e:IS(e)?e.map(zS):LS({},e)}function HS(e,t,n,r,i,o,s,a,c){var l,u,d,h,f,p,g,m=n.props||ES,_=t.props,v=t.type;if("svg"==v?i="http://www.w3.org/2000/svg":"math"==v?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!v&&(v?f.localName==v:3==f.nodeType)){e=f,o[l]=null;break}if(null==e){if(null==v)return document.createTextNode(_);e=document.createElementNS(i,v,_.is&&_),a&&(sS.__m&&sS.__m(t,o),a=!1),o=null}if(null==v)m===_||a&&e.data==_||(e.data=_);else{if(o=o&&oS.call(e.childNodes),!a&&null!=o)for(m={},l=0;l<e.attributes.length;l++)m[(f=e.attributes[l]).name]=f.value;for(l in m)f=m[l],"dangerouslySetInnerHTML"==l?d=f:"children"==l||l in _||"value"==l&&"defaultValue"in _||"checked"==l&&"defaultChecked"in _||WS(e,l,null,f,i);for(l in _)f=_[l],"children"==l?h=f:"dangerouslySetInnerHTML"==l?u=f:"value"==l?p=f:"checked"==l?g=f:a&&"function"!=typeof f||m[l]===f||WS(e,l,f,m[l],i);if(u)a||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),DS("template"==t.type?e.content:e,IS(h)?h:[h],t,n,r,"foreignObject"==v?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&TS(n,0),a,c),null!=o)for(l=o.length;l--;)CS(o[l]);a||(l="value","progress"==v&&null==p?e.removeAttribute("value"):null!=p&&(p!==e[l]||"progress"==v&&!p||"option"==v&&p!=m[l])&&WS(e,l,p,m[l],i),l="checked",null!=g&&g!=e[l]&&WS(e,l,g,m[l],i))}return e}function qS(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){sS.__e(e,n)}}function QS(e,t,n){var r,i;if(sS.unmount&&sS.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||qS(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){sS.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&QS(r[i],t,n||"function"!=typeof e.type);n||CS(e.__e),e.__c=e.__=e.__e=void 0}function $S(e,t,n){return this.constructor(e,n)}function YS(e,t,n){var r,i,o;t==document&&(t=document.documentElement),sS.__&&sS.__(e,t),r=t.__k,i=[],o=[],FS(t,e=t.__k=AS(bS,null,[e]),r||ES,ES,t.namespaceURI,r?null:t.firstChild?oS.call(t.childNodes):null,i,r?r.__e:t.firstChild,!1,o),BS(i,e,o)}oS=wS.slice,sS={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},aS=0,NS.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=LS({},this.state),"function"==typeof e&&(e=e(LS({},n),this.props)),e&&LS(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),RS(this))},NS.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),RS(this))},NS.prototype.render=bS,cS=[],uS="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dS=function(e,t){return e.__v.__b-t.__v.__b},PS.__r=0,hS=Math.random().toString(8),fS="__d"+hS,pS="__a"+hS,gS=/(PointerCapture)$|Capture$/i,mS=0,_S=VS(!1),vS=VS(!0);var JS,KS,XS,ZS,eb=0,tb=[],nb=sS,rb=nb.__b,ib=nb.__r,ob=nb.diffed,sb=nb.__c,ab=nb.unmount,cb=nb.__;function lb(e,t){nb.__h&&nb.__h(KS,e,eb||t),eb=0;var n=KS.__H||(KS.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ub(e){return eb=1,function(e,t){var n=lb(JS++,2);if(n.t=e,!n.__c&&(n.__=[yb(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=KS,!KS.__f)){var r=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var s=n.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),i&&i.call(this,e,t,r)||s};KS.__f=!0;var i=KS.shouldComponentUpdate,o=KS.componentWillUpdate;KS.componentWillUpdate=function(e,t,n){if(this.__e){var s=i;i=void 0,r(e,t,n),i=s}o&&o.call(this,e,t,n)},KS.shouldComponentUpdate=r}return n.__N||n.__}(yb,e)}function db(e,t){var n=lb(JS++,3);!nb.__s&&wb(n.__H,t)&&(n.__=e,n.u=t,KS.__H.__h.push(n))}function hb(e){return eb=5,fb(function(){return{current:e}},[])}function fb(e,t){var n=lb(JS++,7);return wb(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function pb(e,t){return eb=8,fb(function(){return e},t)}function gb(){for(var e;e=tb.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(vb),t.__h.some(Eb),t.__h=[]}catch(n){t.__h=[],nb.__e(n,e.__v)}}}nb.__b=function(e){KS=null,rb&&rb(e)},nb.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),cb&&cb(e,t)},nb.__r=function(e){ib&&ib(e),JS=0;var t=(KS=e.__c).__H;t&&(XS===KS?(t.__h=[],KS.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(vb),t.__h.some(Eb),t.__h=[],JS=0)),XS=KS},nb.diffed=function(e){ob&&ob(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==tb.push(t)&&ZS===nb.requestAnimationFrame||((ZS=nb.requestAnimationFrame)||_b)(gb)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),XS=KS=null},nb.__c=function(e,t){t.some(function(e){try{e.__h.some(vb),e.__h=e.__h.filter(function(e){return!e.__||Eb(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],nb.__e(n,e.__v)}}),sb&&sb(e,t)},nb.unmount=function(e){ab&&ab(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{vb(e)}catch(e){t=e}}),n.__H=void 0,t&&nb.__e(t,n.__v))};var mb="function"==typeof requestAnimationFrame;function _b(e){var t,n=function(){clearTimeout(r),mb&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);mb&&(t=requestAnimationFrame(n))}function vb(e){var t=KS,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),KS=t}function Eb(e){var t=KS;e.__c=e.__(),KS=t}function wb(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function yb(e,t){return"function"==typeof t?t(e):t}const Ib=(e,t,{hideFromAgent:n=!1,hideFromVirtualAgent:r=!1,document:i=window.document}={})=>{const o=i.createElement("div");n&&o.classList.add("__cbio_ignored"),r&&o.classList.add("__cbio_virtual_agent_ignored");const s=o.attachShadow({mode:"open"}),a=()=>{YS(null,s),i.body.contains(o)&&i.body.removeChild(o)},c=t=>{YS(AS(e,Yo(Yo({},t),{},{unmount:a})),s)};c(t),i.body.appendChild(o);const l=i.createElement("style");return l.textContent=window.__cbio_sdk_styles,s.prepend(l),{container:o,unmount:a,rerender:c}},Lb="HighlightOverlay-module__disableAnimations___EEhxH";var Cb=0;function Ab(e,t,n,r,i,o){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)"ref"==a?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Cb,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===c[a]&&(c[a]=s[a]);return sS.vnode&&sS.vnode(l),l}const Sb=({targetElement:e})=>{const t=hb(),n=hb(!1),r=pb(()=>{if(!e)return;const n=(e=>{const t=e.getBoundingClientRect(),n=document.documentElement.scrollTop,r=document.documentElement.scrollLeft,i=t.top+n,o=t.left+r,s=t.width,a=t.height;if(!s||!a)return null;const c=window.getComputedStyle(e);let l=c.borderRadius||c.borderTopLeftRadius;return"0px"===l&&(l="4px"),{top:i,left:o,width:s,height:a,borderRadius:l,paddedX:(s+6)/s,paddedY:(a+6)/a}})(e);if(!n||!t.current)return;const{top:r,left:i,width:o,height:s,borderRadius:a,paddedX:c,paddedY:l}=n;requestAnimationFrame(()=>{t.current.style.width=`${o}px`,t.current.style.height=`${s}px`,t.current.style.top=`${r}px`,t.current.style.left=`${i}px`,t.current.style.borderRadius=a,t.current.style.setProperty("--cbio-padded-x",c),t.current.style.setProperty("--cbio-padded-y",l)})},[e]),i=pb(()=>{e&&(n.current=!0,e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout(()=>{n.current=!1,r()},100))},[e,r]);return db(()=>{i()},[i]),db(()=>{r()},[r]),db(()=>{const e=()=>{n.current||t.current&&(requestAnimationFrame(()=>{t.current.classList.add(Lb)}),r(),requestAnimationFrame(()=>{t.current.classList.remove(Lb)}))};return window.addEventListener("resize",e),window.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,{passive:!0,capture:!0}),clearTimeout(void 0)}},[r,e]),db(()=>{let n;return e&&(n=new MutationObserver(()=>{const n=e.isConnected,r=!e.checkVisibility||e.checkVisibility();t.current.style.display=n&&r?"block":"none"}),n.observe(e,{attributes:!0,attributeFilter:["style","class"]}),n.observe(document.body,{childList:!0,subtree:!0})),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}},[e]),Ab("div",{className:"HighlightOverlay-module__overlay___CGVxb","data-test-id":"highlight-overlay",ref:t})};var bb=new WeakMap;const Nb=new class{constructor(){Bo(this,bb,null),Qo(this,"update",e=>{jo(bb,this)?jo(bb,this).rerender({targetElement:e}):zo(bb,this,Ib(Sb,{targetElement:e},{hideFromVirtualAgent:!0}))}),Qo(this,"hide",()=>{var e;null===(e=jo(bb,this))||void 0===e||e.unmount(),zo(bb,this,null)})}},Tb=["top","right","bottom","left"],kb=Math.min,Ob=Math.max,Rb=Math.round,Pb=Math.floor,Db=e=>({x:e,y:e}),Mb={left:"right",right:"left",bottom:"top",top:"bottom"},xb={start:"end",end:"start"};function Gb(e,t,n){return Ob(e,kb(t,n))}function Ub(e,t){return"function"==typeof e?e(t):e}function Wb(e){return e.split("-")[0]}function Vb(e){return e.split("-")[1]}function Fb(e){return"x"===e?"y":"x"}function jb(e){return"y"===e?"height":"width"}const Bb=new Set(["top","bottom"]);function zb(e){return Bb.has(Wb(e))?"y":"x"}function Hb(e){return Fb(zb(e))}function qb(e){return e.replace(/start|end/g,e=>xb[e])}const Qb=["left","right"],$b=["right","left"],Yb=["top","bottom"],Jb=["bottom","top"];function Kb(e){return e.replace(/left|right|bottom|top/g,e=>Mb[e])}function Xb(e){return"number"!=typeof e?function(e){return Yo({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function Zb(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const eN=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],tN=["strategy"],nN=["mainAxis","crossAxis","limiter"];function rN(e,t,n){let{reference:r,floating:i}=e;const o=zb(t),s=Hb(t),a=jb(s),c=Wb(t),l="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let f;switch(c){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Vb(t)){case"start":f[s]-=h*(n&&l?-1:1);break;case"end":f[s]+=h*(n&&l?-1:1)}return f}async function iN(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=Ub(t,e),p=Xb(f),g=a[h?"floating"===d?"reference":"floating":d],m=Zb(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),_="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),E=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=Zb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:v,strategy:c}):_);return{top:(m.top-w.top+p.top)/E.y,bottom:(w.bottom-m.bottom+p.bottom)/E.y,left:(m.left-w.left+p.left)/E.x,right:(w.right-m.right+p.right)/E.x}}function oN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function sN(e){return Tb.some(t=>e[t]>=0)}const aN=new Set(["left","top"]);function cN(){return"undefined"!=typeof window}function lN(e){return hN(e)?(e.nodeName||"").toLowerCase():"#document"}function uN(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function dN(e){var t;return null==(t=(hN(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function hN(e){return!!cN()&&(e instanceof Node||e instanceof uN(e).Node)}function fN(e){return!!cN()&&(e instanceof Element||e instanceof uN(e).Element)}function pN(e){return!!cN()&&(e instanceof HTMLElement||e instanceof uN(e).HTMLElement)}function gN(e){return!(!cN()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof uN(e).ShadowRoot)}const mN=new Set(["inline","contents"]);function _N(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=TN(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!mN.has(i)}const vN=new Set(["table","td","th"]);function EN(e){return vN.has(lN(e))}const wN=[":popover-open",":modal"];function yN(e){return wN.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const IN=["transform","translate","scale","rotate","perspective"],LN=["transform","translate","scale","rotate","perspective","filter"],CN=["paint","layout","strict","content"];function AN(e){const t=SN(),n=fN(e)?TN(e):e;return IN.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||LN.some(e=>(n.willChange||"").includes(e))||CN.some(e=>(n.contain||"").includes(e))}function SN(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const bN=new Set(["html","body","#document"]);function NN(e){return bN.has(lN(e))}function TN(e){return uN(e).getComputedStyle(e)}function kN(e){return fN(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ON(e){if("html"===lN(e))return e;const t=e.assignedSlot||e.parentNode||gN(e)&&e.host||dN(e);return gN(t)?t.host:t}function RN(e){const t=ON(e);return NN(t)?e.ownerDocument?e.ownerDocument.body:e.body:pN(t)&&_N(t)?t:RN(t)}function PN(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=RN(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=uN(i);if(o){const e=DN(s);return t.concat(s,s.visualViewport||[],_N(i)?i:[],e&&n?PN(e):[])}return t.concat(i,PN(i,[],n))}function DN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function MN(e){const t=TN(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=pN(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Rb(n)!==o||Rb(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function xN(e){return fN(e)?e:e.contextElement}function GN(e){const t=xN(e);if(!pN(t))return Db(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=MN(t);let s=(o?Rb(n.width):n.width)/r,a=(o?Rb(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const UN=Db(0);function WN(e){const t=uN(e);return SN()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:UN}function VN(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=xN(e);let s=Db(1);t&&(r?fN(r)&&(s=GN(r)):s=GN(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==uN(e))&&t}(o,n,r)?WN(o):Db(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const e=uN(o),t=r&&fN(r)?uN(r):r;let n=e,i=DN(n);for(;i&&r&&t!==n;){const e=GN(i),t=i.getBoundingClientRect(),r=TN(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=o,l+=s,n=uN(i),i=DN(n)}}return Zb({width:u,height:d,x:c,y:l})}function FN(e,t){const n=kN(e).scrollLeft;return t?t.left+n:VN(dN(e)).left+n}function jN(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-FN(e,n),y:n.top+t.scrollTop}}const BN=new Set(["absolute","fixed"]);function zN(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=uN(e),r=dN(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const e=SN();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}const l=FN(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else l<=25&&(o+=l);return{width:o,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=dN(e),n=kN(e),r=e.ownerDocument.body,i=Ob(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Ob(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+FN(e);const a=-n.scrollTop;return"rtl"===TN(r).direction&&(s+=Ob(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(dN(e));else if(fN(t))r=function(e,t){const n=VN(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=pN(e)?GN(e):Db(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=WN(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Zb(r)}function HN(e,t){const n=ON(e);return!(n===t||!fN(n)||NN(n))&&("fixed"===TN(n).position||HN(n,t))}function qN(e,t,n){const r=pN(t),i=dN(t),o="fixed"===n,s=VN(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=Db(0);function l(){c.x=FN(i)}if(r||!r&&!o)if(("body"!==lN(t)||_N(i))&&(a=kN(t)),r){const e=VN(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();o&&!r&&i&&l();const u=!i||r||o?Db(0):jN(i,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function QN(e){return"static"===TN(e).position}function $N(e,t){if(!pN(e)||"fixed"===TN(e).position)return null;if(t)return t(e);let n=e.offsetParent;return dN(e)===n&&(n=n.ownerDocument.body),n}function YN(e,t){const n=uN(e);if(yN(e))return n;if(!pN(e)){let t=ON(e);for(;t&&!NN(t);){if(fN(t)&&!QN(t))return t;t=ON(t)}return n}let r=$N(e,t);for(;r&&EN(r)&&QN(r);)r=$N(r,t);return r&&NN(r)&&QN(r)&&!AN(r)?n:r||function(e){let t=ON(e);for(;pN(t)&&!NN(t);){if(AN(t))return t;if(yN(t))return null;t=ON(t)}return null}(e)||n}const JN={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,s=dN(r),a=!!t&&yN(t.floating);if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=Db(1);const u=Db(0),d=pN(r);if((d||!d&&!o)&&(("body"!==lN(r)||_N(s))&&(c=kN(r)),pN(r))){const e=VN(r);l=GN(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||o?Db(0):jN(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+h.x,y:n.y*l.y-c.scrollTop*l.y+u.y+h.y}},getDocumentElement:dN,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?yN(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=PN(e,[],!1).filter(e=>fN(e)&&"body"!==lN(e)),i=null;const o="fixed"===TN(e).position;let s=o?ON(e):e;for(;fN(s)&&!NN(s);){const t=TN(s),n=AN(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&BN.has(i.position)||_N(s)&&!n&&HN(e,s))?r=r.filter(e=>e!==s):i=t,s=ON(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=zN(t,n,i);return e.top=Ob(r.top,e.top),e.right=kb(r.right,e.right),e.bottom=kb(r.bottom,e.bottom),e.left=Ob(r.left,e.left),e},zN(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:YN,getElementRects:async function(e){const t=this.getOffsetParent||YN,n=this.getDimensions,r=await n(e.floating);return{reference:qN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=MN(e);return{width:t,height:n}},getScale:GN,isElement:fN,isRTL:function(e){return"rtl"===TN(e).direction}};function KN(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const XN=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=Ub(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,l=Jo(o,nN),u={x:n,y:r},d=await iN(t,l),h=zb(Wb(i)),f=Fb(h);let p=u[f],g=u[h];if(s){const e="y"===f?"bottom":"right";p=Gb(p+d["y"===f?"top":"left"],p,p-d[e])}if(a){const e="y"===h?"bottom":"right";g=Gb(g+d["y"===h?"top":"left"],g,g-d[e])}const m=c.fn(Yo(Yo({},t),{},{[f]:p,[h]:g}));return Yo(Yo({},m),{},{data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[h]:a}}})}}},ZN=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=t,u=Ub(e,t),{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0}=u,_=Jo(u,eN);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Wb(i),E=zb(a),w=Wb(a)===a,y=await(null==c.isRTL?void 0:c.isRTL(l.floating)),I=f||(w||!m?[Kb(a)]:function(e){const t=Kb(e);return[qb(e),t,qb(t)]}(a)),L="none"!==g;!f&&L&&I.push(...function(e,t,n,r){const i=Vb(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?$b:Qb:t?Qb:$b;case"left":case"right":return t?Yb:Jb;default:return[]}}(Wb(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(qb)))),o}(a,m,g,y));const C=[a,...I],A=await iN(t,_),S=[];let b=(null==(r=o.flip)?void 0:r.overflows)||[];if(d&&S.push(A[v]),h){const e=function(e,t,n){void 0===n&&(n=!1);const r=Vb(e),i=Hb(e),o=jb(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Kb(s)),[s,Kb(s)]}(i,s,y);S.push(A[e[0]],A[e[1]])}if(b=[...b,{placement:i,overflows:S}],!S.every(e=>e<=0)){var N,T;const e=((null==(N=o.flip)?void 0:N.index)||0)+1,t=C[e];if(t&&("alignment"!==h||E===zb(t)||b.every(e=>zb(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:b},reset:{placement:t}};let n=null==(T=b.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:T.placement;if(!n)switch(p){case"bestFit":{var k;const e=null==(k=b.filter(e=>{if(L){const t=zb(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:k[0];e&&(n=e);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},eT=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,r=Ub(e,t),{strategy:i="referenceHidden"}=r,o=Jo(r,tN);switch(i){case"referenceHidden":{const e=oN(await iN(t,Yo(Yo({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:sN(e)}}}case"escaped":{const e=oN(await iN(t,Yo(Yo({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:sN(e)}}}default:return{}}}}},tT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=Ub(e,t)||{};if(null==l)return{};const d=Xb(u),h={x:n,y:r},f=Hb(i),p=jb(f),g=await s.getDimensions(l),m="y"===f,_=m?"top":"left",v=m?"bottom":"right",E=m?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[f]-h[f]-o.floating[p],y=h[f]-o.reference[f],I=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let L=I?I[E]:0;L&&await(null==s.isElement?void 0:s.isElement(I))||(L=a.floating[E]||o.floating[p]);const C=w/2-y/2,A=L/2-g[p]/2-1,S=kb(d[_],A),b=kb(d[v],A),N=S,T=L-g[p]-b,k=L/2-g[p]/2+C,O=Gb(N,k,T),R=!c.arrow&&null!=Vb(i)&&k!==O&&o.reference[p]/2-(k<N?S:b)-g[p]/2<0,P=R?k<N?k-N:k-T:0;return{[f]:h[f]+P,data:Yo({[f]:O,centerOffset:k-O-P},R&&{alignmentOffset:P}),reset:R}}}),nT=({title:e})=>Ab("div",{className:"Tooltip-module__tooltipTitle___h97ry",children:e}),rT=({arrowRef:e})=>Ab("div",{className:"Tooltip-module__tooltipArrow___7xBT0",ref:e}),iT=({targetElement:e,title:t})=>{const n=hb(),r=hb();return db(()=>{var t;let i;return e&&(i=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=xN(e),u=i||o?[...l?PN(l):[],...PN(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=l&&a?function(e,t){let n,r=null;const i=dN(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),o();const l=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=l;if(a||t(),!h||!f)return;const p={rootMargin:-Pb(d)+"px "+-Pb(i.clientWidth-(u+h))+"px "+-Pb(i.clientHeight-(d+f))+"px "+-Pb(u)+"px",threshold:Ob(0,kb(1,c))||1};let g=!0;function m(t){const r=t[0].intersectionRatio;if(r!==c){if(!g)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||KN(l,e.getBoundingClientRect())||s(),g=!1}try{r=new IntersectionObserver(m,Yo(Yo({},p),{},{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(l,n):null;let h,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let g=c?VN(e):null;return c&&function t(){const r=VN(e);g&&!KN(g,r)&&n(),g=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(h)}}(e,n.current,async()=>{const t=await(async(e,t,n)=>{if(!e||!t||!n)return null;const{x:r,y:i,placement:o,middlewareData:s}=await((e,t,n)=>{const r=new Map,i=Yo({platform:JN},n),o=Yo(Yo({},i.platform),{},{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=rN(l,r,c),h=r,f={},p=0;for(let n=0;n<a.length;n++){const{name:o,fn:g}=a[n],{x:m,y:_,data:v,reset:E}=await g({x:u,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=_?_:d,f=Yo(Yo({},f),{},{[o]:Yo(Yo({},f[o]),v)}),E&&p<=50&&(p++,"object"==typeof E&&(E.placement&&(h=E.placement),E.rects&&(l=!0===E.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),({x:u,y:d}=rN(l,h,c))),n=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:f}})(e,t,Yo(Yo({},i),{},{platform:o}))})(e,t,{placement:"top",middleware:[(u=12,void 0===u&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:i,placement:o,middlewareData:s}=e,a=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Wb(n),a=Vb(n),c="y"===zb(n),l=aN.has(s)?-1:1,u=o&&c?-1:1,d=Ub(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),c?{x:f*u,y:h*l}:{x:h*l,y:f*u}}(e,u);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:Yo(Yo({},a),{},{placement:o})}}}),ZN(),XN({padding:8}),tT({element:n}),eT()]}),{x:a,y:c}=s.arrow,l=!s.hide.referenceHidden;var u;return{tooltip:{x:r,y:i},arrow:{x:a,y:c,staticSide:{top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]]},isVisible:l}})(e,n.current,r.current);t&&(n.current.style.left=`${t.tooltip.x}px`,n.current.style.top=`${t.tooltip.y}px`,n.current.style.display=t.isVisible?"block":"none",r.current.style.left=t.arrow.x?`${t.arrow.x}px`:"",r.current.style.top=t.arrow.y?`${t.arrow.y}px`:"",r.current.style[t.arrow.staticSide]="-4px")})),null===(t=n.current)||void 0===t||t.classList.add("Tooltip-module__tooltipVisible___tvm2-"),()=>{var e;null===(e=i)||void 0===e||e()}},[e]),Ab("div",{className:"Tooltip-module__tooltip___kLn1a",role:"tooltip","aria-live":"polite",ref:n,children:[Ab(nT,{title:t}),Ab(rT,{arrowRef:r})]})};var oT=new WeakMap;const sT=new class{constructor(){Bo(this,oT,null),Qo(this,"update",(e,t)=>{jo(oT,this)?jo(oT,this).rerender({targetElement:e,title:t}):zo(oT,this,Ib(iT,{targetElement:e,title:t},{hideFromVirtualAgent:!0}))}),Qo(this,"hide",()=>{var e;null===(e=jo(oT,this))||void 0===e||e.unmount(),zo(oT,this,null)})}},aT=jl("cbio.Highlight");var cT=new WeakMap,lT=new WeakMap,uT=new WeakMap,dT=new WeakMap,hT=new WeakMap,fT=new WeakMap,pT=new WeakMap;const gT=new class{constructor(){Bo(this,cT,void 0),Qo(this,"highlight",async(e,t)=>{var n;const r=PI.getById(t.target.id);if(!r)return!1;const i=this.getNonEmpyElement(r);if(!i)return!1;const o=(null!==(n=e.highlightElement)&&void 0!==n?n:jo(lT,this))(i,t.title);return e.emit("highlight.updated",{target:i,visible:!0}),await o,e.emit("highlight.updated",{target:i,visible:!1}),!0}),Qo(this,"hide",()=>{var e;aT("hide",`resolve?=${!!jo(cT,this)}`),jo(fT,this).call(this),jo(dT,this).call(this),null===(e=jo(cT,this))||void 0===e||e.call(this),zo(cT,this,void 0)}),Bo(this,lT,(e,t)=>new Promise(n=>{aT("update",e,t),zo(cT,this,n),jo(uT,this).call(this,e,t),jo(hT,this).call(this)})),Bo(this,uT,(e,t)=>{Nb.update(e),sT.update(e,t)}),Bo(this,dT,()=>{sT.hide(),Nb.hide()}),Bo(this,hT,()=>{jo(fT,this).call(this),document.addEventListener("click",jo(pT,this),{capture:!0})}),Bo(this,fT,()=>{document.removeEventListener("click",jo(pT,this),!0)}),Bo(this,pT,e=>{e.isTrusted&&this.hide()})}getNonEmpyElement(e){let t=e;for(;t;){const e=t.getBoundingClientRect();if(e.width>0&&e.height>0)return t;aT("element is zero-width/height, trying parent",t),t=t.parentElement}}},mT="pdf",_T="xdoc",vT="universal";var ET=new WeakMap,wT=new WeakMap,yT=new WeakMap,IT=new WeakMap,LT=new WeakMap;class CT{constructor(e){Bo(this,ET,void 0),Bo(this,wT,void 0),Bo(this,yT,void 0),Qo(this,"findHandlerByUrl",e=>{if(!e)return null;try{const t=new URL(e,window.location.origin);return jo(wT,this).find(e=>e.shouldHandle(t))}catch(e){return console.warn("CobrowseIO: Failed to infer navigation type",e),null}}),Qo(this,"findHandlerByType",e=>jo(wT,this).find(t=>t.type===e)),Bo(this,IT,(e,t,n,{name:r,go:i,e:o})=>{const s=this.findHandlerByUrl(e);if(s&&!s.shouldHandleEvent(o))return o.eventPhase===Event.BUBBLING_PHASE&&console.warn("CobrowseIO: Inferred navigation type but event is already handled"),{rewrittenUrl:e};const a=o.view||window;return jo(yT,this).call(this,e,t,n,{name:r,go:i,e:o,type:null==s?void 0:s.type,block:()=>jo(LT,this).call(this,a,o)})}),Bo(this,LT,(e,t)=>{if(t.eventPhase===Event.CAPTURING_PHASE)return;const n=e.document,r=n.createElement("div");r.style.position="fixed",r.style.top=0,r.style.left=0,r.style.width="100vw",r.style.height="100vh",r.style.backgroundColor="black",r.style.zIndex="2147483647",r.style.margin=0,r.style.padding=0,r.style.border=0,r.style.borderRadius=0;const i=n.body.style.overflow;n.body.style.overflow="hidden",n.body.appendChild(r);const o=()=>{n.body.contains(r)&&n.body.removeChild(r),n.body.style.overflow=i,e.removeEventListener("popstate",o)};e.addEventListener("popstate",o),e.history.pushState({},"")}),Qo(this,"destroy",()=>{GA.beforeNavigate=null}),zo(ET,this,e.shouldNavigate),zo(wT,this,e.handlers),zo(yT,this,e.handleNavigation),GA.beforeNavigate=jo(IT,this)}runHandler(e,t,n,r){if(!e)return{rewrittenUrl:e};const i=null!=r.type?this.findHandlerByType(r.type):this.findHandlerByUrl(e);return i&&jo(ET,this).call(this,i.type)?i.handle(e,t,n,r):{rewrittenUrl:e}}}class AT{get type(){throw new Error("Getter 'type' must be implemented.")}shouldHandleEvent(e){throw new Error("Method 'shouldHandleEvent()' must be implemented.")}shouldHandle(e){throw new Error("Method 'shouldHandle()' must be implemented.")}handle(e,t,n,r){throw new Error("Method 'handle()' must be implemented.")}}const ST=Symbol("protected");function bT(e,t,n){e[ST]||Object.defineProperty(e,ST,{enumerable:!1,value:{}});const r=e[ST][t];return Object.getPrototypeOf(Object.getPrototypeOf(e))[t]=r,Object.defineProperty(e[ST],t,{enumerable:!1,value:n,configurable:!0}),n}var NT=new WeakMap,TT=new WeakMap,kT=new WeakMap;class OT{constructor(e,t){Bo(this,NT,void 0),Bo(this,TT,void 0),Bo(this,kT,e=>{const t=e[ST].proxyToken(),n=e[ST].proxyUrl(),r=new URL(n,jo(TT,this));return new Zs(r,ea,t,window.location)}),Qo(this,"openPdfViewer",(e,t,n)=>{const r=window.__cobrowse_io_openPdf,i=r=>{const{setPdfUrl:i}=r(e,{container:t,onLoadError:t=>{const r=jo(kT,this).call(this,jo(NT,this)).proxify(e);t!==r?(console.warn("CobrowseIO: Failed to fetch PDF document, attempting to proxy it"),i(r)):n()},onLoadSuccess:n,preventClose:!0})};"function"!=typeof r?import("./universal-client.static.gl5y6Om6.mjs").then(function(e){return e.C}).then(e=>{i(e.open)}):i(r)}),zo(NT,this,e),zo(TT,this,t)}}var RT=new WeakMap,PT=new WeakMap,DT=new WeakMap,MT=new WeakMap;class xT extends AT{constructor(e,t){super(),Bo(this,RT,void 0),Bo(this,PT,void 0),Bo(this,DT,e=>new URL(e,window.location.href).pathname.split("/").pop()),Bo(this,MT,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",i.load(e,t,n,{element:o,type:this.type}),jo(PT,this).openPdfViewer(e,o,()=>{const t=jo(DT,this).call(this,e);i.icon="",i.title=t,i.isLoading=!1})}),zo(RT,this,iA(t.pdfLinks)),zo(PT,this,new OT(e,t.api))}get type(){return mT}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",jo(RT,this).call(this,t)}handle(e,t,n,r){return jo(MT,this).call(this,e,t,n,r),{document:r.document}}}var GT=new WeakMap,UT=new WeakMap,WT=new WeakMap;class VT{constructor(e,t,n){Bo(this,GT,void 0),Bo(this,UT,void 0),Bo(this,WT,void 0),Qo(this,"createUniversalProxyFrameName",()=>`cbioUniversalFrame-${OI(5)}`),Qo(this,"createUniversalProxyUrl",(e,t)=>{const n=jo(GT,this)[ST].proxyToken(),r=jo(GT,this)[ST].proxyUrl(),i=new URL(r,jo(UT,this)),o={parent_origin:window.location.origin,proxy_path:i.pathname,sdk_version:jo(WT,this),frame_name:t};return new Zs(i,ea,n,window.location,o).proxify(e)}),Qo(this,"createUniversalProxyIFrame",(e,t)=>{const n=document.createElement("iframe");return n.allow="publickey-credentials-get *",n.style.width="100%",n.style.height="100%",n.style.backgroundColor="white",n.style.border="none",n.src=e,n.name=t,n}),zo(GT,this,e),zo(UT,this,t),zo(WT,this,n)}}var FT=new WeakMap,jT=new WeakMap,BT=new WeakMap,zT=new WeakMap;class HT extends AT{constructor(e,t){super(),Bo(this,FT,void 0),Bo(this,jT,void 0),Bo(this,BT,(e,t,n,r)=>{const{document:i}=r,o=jo(jT,this).createUniversalProxyFrameName(),s=jo(jT,this).createUniversalProxyUrl(e,o),a=jo(jT,this).createUniversalProxyIFrame(s,o);i.load(s,t,n,{element:a,type:this.type});const c=({handle:e,document:{url:t,icon:n,title:r,isLoading:o,isBlocked:s}},{trusted:c,iframe:l})=>{e||c&&l===a&&(i.url=t,i.icon=n,i.title=r,i.isLoading=o,i.isBlocked=s)};BU.on("document",c),i.once("closed",()=>{BU.off("document",c)})}),Bo(this,zT,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",o.style.backgroundColor="black",i.load(e,t,n,{element:o,type:this.type}),i.isLoading=!1,i.isBlocked=!0}),zo(FT,this,iA(t.universalLinks)),zo(jT,this,new VT(e,t.api,t.version))}get type(){return vT}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",!!Ys(t.protocol)&&jo(FT,this).call(this,t)}handle(e,t,n,r){return(this.shouldHandle(e)?jo(BT,this):jo(zT,this))(e,t,n,r),{document:r.document}}}var qT,QT={};!function(){if(qT)return QT;qT=1;var e=jn(),t=yt(),n=yc(),r=js(),i=[].push;e({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return n(r(t(this)),i,{that:e,IS_RECORD:!0}),e}})}();var $T=new WeakMap;class YT{constructor(e){Bo(this,$T,{}),this.fill(e)}fill(e){return zo($T,this,e.reduce((e,t)=>(e[t]=!0,e),{})),this}all(){return jo($T,this)}toArray(){return Object.keys(jo($T,this)).filter(e=>jo($T,this)[e])}toggle(e,t){return Array.isArray(e)||(e=[e]),e.filter(e=>e in jo($T,this)).forEach(e=>{jo($T,this)[e]=t}),this}}var JT,KT,XT,ZT,ek,tk,nk,rk,ik,ok,sk,ak,ck,lk,uk,dk,hk,fk,pk,gk,mk,_k,vk,Ek,wk,yk,Ik,Lk,Ck,Ak,Sk,bk,Nk,Tk,kk,Ok,Rk,Pk,Dk,Mk,xk,Gk,Uk,Wk,Vk,Fk,jk,Bk,zk,Hk={};function qk(){return KT?JT:(KT=1,JT=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function Qk(){if(tk)return ek;tk=1;var e=BA(),t=zh(),n=function(){if(ZT)return XT;ZT=1;var e=o(),t=BA(),n=ge(),r=Fn(),i=Ft(),s=st(),a=qu(),c=Ze(),l=we(),u=t&&t.prototype,d=s("species"),h=!1,f=n(e.PromiseRejectionEvent),p=r("Promise",function(){var e=i(t),n=e!==String(t);if(!n&&66===l)return!0;if(c&&(!u.catch||!u.finally))return!0;if(!l||l<51||!/native code/.test(e)){var r=new t(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[d]=o,!(h=r.then(function(){})instanceof o))return!0}return!(n||"BROWSER"!==a&&"DENO"!==a||f)});return XT={CONSTRUCTOR:p,REJECTION_EVENT:f,SUBCLASSING:h}}().CONSTRUCTOR;return ek=n||!t(function(t){e.all(t).then(void 0,function(){})})}function $k(){if(pk)return fk;pk=1;var e=uI(),t=function(){if(ik)return rk;ik=1;var e=uI();return rk=function(){this.__data__=new e,this.size=0}}(),n=sk?ok:(sk=1,ok=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=ck?ak:(ck=1,ak=function(e){return this.__data__.get(e)}),i=uk?lk:(uk=1,lk=function(e){return this.__data__.has(e)}),o=function(){if(hk)return dk;hk=1;var e=uI(),t=dI(),n=fI();return dk=function(r,i){var o=this.__data__;if(o instanceof e){var s=o.__data__;if(!t||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,fk=s}function Yk(){if(Sk)return Ak;Sk=1;var e=function(){if(wk)return Ek;wk=1;var e=fI(),t=mk?gk:(mk=1,gk=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=vk?_k:(vk=1,_k=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Ek=r}(),t=Ik?yk:(Ik=1,yk=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=Ck?Lk:(Ck=1,Lk=function(e,t){return e.has(t)});return Ak=function(r,i,o,s,a,c){var l=1&o,u=r.length,d=i.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(r),f=c.get(i);if(h&&f)return h==i&&f==r;var p=-1,g=!0,m=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++p<u;){var _=r[p],v=i[p];if(s)var E=l?s(v,_,p,i,r,c):s(_,v,p,r,i,c);if(void 0!==E){if(E)continue;g=!1;break}if(m){if(!t(i,function(e,t){if(!n(m,t)&&(_===e||a(_,e,o,s,c)))return m.push(t)})){g=!1;break}}else if(_!==v&&!a(_,v,o,s,c)){g=!1;break}}return c.delete(r),c.delete(i),g}}function Jk(){if(Nk)return bk;Nk=1;var e=ic().Uint8Array;return bk=e}function Kk(){if(xk)return Mk;xk=1;var e=CI(),t=rI();return Mk=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}function Xk(){return Vk?Wk:(Vk=1,Wk=function(){return[]})}function Zk(){if(jk)return Fk;jk=1;var e=Uk?Gk:(Uk=1,Gk=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}),t=Xk(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t;return Fk=i}!function(){if(nk)return Hk;nk=1;var e=jn(),t=v(),n=Ae(),r=JA(),i=qk(),o=yc();e({target:"Promise",stat:!0,forced:Qk()},{allSettled:function(e){var s=this,a=r.f(s),c=a.resolve,l=a.reject,u=i(function(){var r=n(s.resolve),i=[],a=0,l=1;o(e,function(e){var n=a++,o=!1;l++,t(r,s,e).then(function(e){o||(o=!0,i[n]={status:"fulfilled",value:e},--l||c(i))},function(e){o||(o=!0,i[n]={status:"rejected",reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),a.promise}})}();var eO,tO,nO,rO,iO,oO,sO,aO={exports:{}};function cO(){return nO||(nO=1,function(e,t){var n=ic(),r=tO?eO:(tO=1,eO=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(aO,aO.exports)),aO.exports}function lO(){return sO?oO:(sO=1,oO=function(e){return function(t){return e(t)}})}var uO,dO,hO,fO,pO,gO,mO,_O,vO,EO,wO,yO,IO,LO,CO,AO,SO,bO,NO,TO,kO,OO,RO,PO,DO,MO,xO,GO,UO,WO,VO,FO,jO,BO,zO,HO,qO,QO,$O,YO,JO,KO,XO,ZO={exports:{}};function eR(){return uO||(uO=1,e=ZO,t=ZO.exports,n=rc(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=s),ZO.exports;var e,t,n,r,i,o,s}function tR(){if(hO)return dO;hO=1;var e=function(){if(iO)return rO;iO=1;var e=sc(),t=LI(),n=ac(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,rO=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=lO(),n=eR(),r=n&&n.isTypedArray,i=r?t(r):e;return dO=i}function nR(){if(pO)return fO;pO=1;var e=(zk||(zk=1,Bk=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),Bk),t=II(),n=rI(),r=cO(),i=yI(),o=tR(),s=Object.prototype.hasOwnProperty;return fO=function(a,c){var l=n(a),u=!l&&t(a),d=!l&&!u&&r(a),h=!l&&!u&&!d&&o(a),f=l||u||d||h,p=f?e(a.length,String):[],g=p.length;for(var m in a)!c&&!s.call(a,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,g))||p.push(m);return p}}function rR(){if(mO)return gO;mO=1;var e=Object.prototype;return gO=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function iR(){return vO?_O:(vO=1,_O=function(e,t){return function(n){return e(t(n))}})}function oR(){if(CO)return LO;CO=1;var e=iI(),t=LI();return LO=function(n){return null!=n&&t(n.length)&&!e(n)}}function sR(){if(SO)return AO;SO=1;var e=nR(),t=function(){if(IO)return yO;IO=1;var e=rR(),t=function(){if(wO)return EO;wO=1;var e=iR()(Object.keys,Object);return EO=e}(),n=Object.prototype.hasOwnProperty;return yO=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}(),n=oR();return AO=function(r){return n(r)?e(r):t(r)}}function aR(){if(NO)return bO;NO=1;var e=Kk(),t=Zk(),n=sR();return bO=function(r){return e(r,n,t)}}function cR(){if(VO)return WO;VO=1;var e=function(){if(RO)return OO;RO=1;var e=sI()(ic(),"DataView");return OO=e}(),t=dI(),n=function(){if(DO)return PO;DO=1;var e=sI()(ic(),"Promise");return PO=e}(),r=function(){if(xO)return MO;xO=1;var e=sI()(ic(),"Set");return MO=e}(),i=function(){if(UO)return GO;UO=1;var e=sI()(ic(),"WeakMap");return GO=e}(),o=sc(),s=oI(),a="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",d="[object DataView]",h=s(e),f=s(t),p=s(n),g=s(r),m=s(i),_=o;return(e&&_(new e(new ArrayBuffer(1)))!=d||t&&_(new t)!=a||n&&_(n.resolve())!=c||r&&_(new r)!=l||i&&_(new i)!=u)&&(_=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case h:return d;case f:return a;case p:return c;case g:return l;case m:return u}return t}),WO=_}function lR(){if(jO)return FO;jO=1;var e=$k(),t=Yk(),n=function(){if(Dk)return Pk;Dk=1;var e=oc(),t=Jk(),n=cI(),r=Yk(),i=kk?Tk:(kk=1,Tk=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),o=Rk?Ok:(Rk=1,Ok=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return Pk=function(e,s,c,l,u,d,h){switch(c){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!d(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var f=i;case"[object Set]":var p=1&l;if(f||(f=o),e.size!=s.size&&!p)return!1;var g=h.get(e);if(g)return g==s;l|=2,h.set(e,s);var m=r(f(e),f(s),l,u,d,h);return h.delete(e),m;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}(),r=function(){if(kO)return TO;kO=1;var e=aR(),t=Object.prototype.hasOwnProperty;return TO=function(n,r,i,o,s,a){var c=1&i,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in r:t.call(r,h)))return!1}var f=a.get(n),p=a.get(r);if(f&&p)return f==r&&p==n;var g=!0;a.set(n,r),a.set(r,n);for(var m=c;++d<u;){var _=n[h=l[d]],v=r[h];if(o)var E=c?o(v,_,h,r,n,a):o(_,v,h,n,r,a);if(!(void 0===E?_===v||s(_,v,i,o,a):E)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=n.constructor,y=r.constructor;w==y||!("constructor"in n)||!("constructor"in r)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(g=!1)}return a.delete(n),a.delete(r),g}}(),i=cR(),o=rI(),s=cO(),a=tR(),c="[object Arguments]",l="[object Array]",u="[object Object]",d=Object.prototype.hasOwnProperty;return FO=function(h,f,p,g,m,_){var v=o(h),E=o(f),w=v?l:i(h),y=E?l:i(f),I=(w=w==c?u:w)==u,L=(y=y==c?u:y)==u,C=w==y;if(C&&s(h)){if(!s(f))return!1;v=!0,I=!1}if(C&&!I)return _||(_=new e),v||a(h)?t(h,f,p,g,m,_):n(h,f,w,p,g,m,_);if(!(1&p)){var A=I&&d.call(h,"__wrapped__"),S=L&&d.call(f,"__wrapped__");if(A||S){var b=A?h.value():h,N=S?f.value():f;return _||(_=new e),m(b,N,p,g,_)}}return!!C&&(_||(_=new e),r(h,f,p,g,m,_))}}function uR(){if(zO)return BO;zO=1;var e=lR(),t=ac();return BO=function n(r,i,o,s,a){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,s,n,a))}}const dR=t(function(){if(XO)return KO;XO=1;var e=function(){if(qO)return HO;qO=1;var e=$k(),t=uR();return HO=function(n,r,i,o){var s=i.length,a=s,c=!o;if(null==n)return!a;for(n=Object(n);s--;){var l=i[s];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++s<a;){var u=(l=i[s])[0],d=n[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in n))return!1}else{var f=new e;if(o)var p=o(d,h,u,n,r,f);if(!(void 0===p?t(h,d,3,o,f):p))return!1}}return!0}}(),t=function(){if(JO)return YO;JO=1;var e=function(){if($O)return QO;$O=1;var e=nc();return QO=function(t){return t==t&&!e(t)}}(),t=sR();return YO=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],s=n[o];r[i]=[o,s,e(s)]}return r}}();return KO=function(n,r,i){return i="function"==typeof i?i:void 0,e(n,r,t(r),i)}}());var hR,fR,pR,gR,mR,_R,vR,ER,wR,yR,IR,LR,CR,AR;function SR(){if(gR)return pR;gR=1;var e=wI(),t=EI();return pR=function(n,r,i,o){var s=!i;i||(i={});for(var a=-1,c=r.length;++a<c;){var l=r[a],u=o?o(i[l],n[l],l,i,n):void 0;void 0===u&&(u=n[l]),s?t(i,l,u):e(i,l,u)}return i}}function bR(){if(LR)return IR;LR=1;var e=nR(),t=function(){if(yR)return wR;yR=1;var e=nc(),t=rR(),n=ER?vR:(ER=1,vR=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return wR=function(i){if(!e(i))return n(i);var o=t(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s}}(),n=oR();return IR=function(r){return n(r)?e(r,!0):t(r)}}var NR,TR,kR,OR,RR,PR,DR,MR,xR,GR,UR,WR,VR,FR,jR,BR,zR,HR,qR,QR,$R,YR,JR,KR,XR,ZR,eP,tP,nP,rP,iP,oP,sP,aP,cP,lP,uP,dP,hP,fP,pP,gP,mP,_P,vP,EP,wP,yP,IP,LP,CP,AP,SP,bP,NP,TP={exports:{}};function kP(){if(DR)return PR;DR=1;var e=iR()(Object.getPrototypeOf,Object);return PR=e}function OP(){if(xR)return MR;xR=1;var e=CI(),t=kP(),n=Zk(),r=Xk(),i=Object.getOwnPropertySymbols;return MR=i?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r}function RP(){if(VR)return WR;VR=1;var e=Kk(),t=OP(),n=bR();return WR=function(r){return e(r,n,t)}}function PP(){if(zR)return BR;zR=1;var e=Jk();return BR=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n},BR}function DP(){if(pP)return fP;pP=1;var e=$k(),t=fR?hR:(fR=1,hR=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),n=wI(),r=function(){if(_R)return mR;_R=1;var e=SR(),t=sR();return mR=function(n,r){return n&&e(r,t(r),n)}}(),i=function(){if(AR)return CR;AR=1;var e=SR(),t=bR();return CR=function(n,r){return n&&e(r,t(r),n)}}(),o=(NR||(NR=1,function(e,t){var n=ic(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(TP,TP.exports)),TP.exports),s=kR?TR:(kR=1,TR=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),a=function(){if(RR)return OR;RR=1;var e=SR(),t=Zk();return OR=function(n,r){return e(n,t(n),r)}}(),c=function(){if(UR)return GR;UR=1;var e=SR(),t=OP();return GR=function(n,r){return e(n,t(n),r)}}(),l=aR(),u=RP(),d=cR(),h=function(){if(jR)return FR;jR=1;var e=Object.prototype.hasOwnProperty;return FR=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}(),f=function(){if(eP)return ZR;eP=1;var e=PP(),t=function(){if(qR)return HR;qR=1;var e=PP();return HR=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if($R)return QR;$R=1;var e=/\w*$/;return QR=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(JR)return YR;JR=1;var e=oc(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return YR=function(e){return n?Object(n.call(e)):{}},YR}(),i=function(){if(XR)return KR;XR=1;var e=PP();return KR=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return ZR=function(o,s,a){var c=o.constructor;switch(s){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,a);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}(),p=function(){if(iP)return rP;iP=1;var e=function(){if(nP)return tP;nP=1;var e=nc(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return tP=n}(),t=kP(),n=rR();return rP=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}(),g=rI(),m=cO(),_=function(){if(cP)return aP;cP=1;var e=function(){if(sP)return oP;sP=1;var e=cR(),t=ac();return oP=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=lO(),n=eR(),r=n&&n.isMap,i=r?t(r):e;return aP=i}(),v=nc(),E=function(){if(hP)return dP;hP=1;var e=function(){if(uP)return lP;uP=1;var e=cR(),t=ac();return lP=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=lO(),n=eR(),r=n&&n.isSet,i=r?t(r):e;return dP=i}(),w=sR(),y=bR(),I="[object Arguments]",L="[object Function]",C="[object Object]",A={};return A[I]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[C]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[L]=A["[object WeakMap]"]=!1,fP=function S(b,N,T,k,O,R){var P,D=1&N,M=2&N,x=4&N;if(T&&(P=O?T(b,k,O,R):T(b)),void 0!==P)return P;if(!v(b))return b;var G=g(b);if(G){if(P=h(b),!D)return s(b,P)}else{var U=d(b),W=U==L||"[object GeneratorFunction]"==U;if(m(b))return o(b,D);if(U==C||U==I||W&&!O){if(P=M||W?{}:p(b),!D)return M?c(b,i(P,b)):a(b,r(P,b))}else{if(!A[U])return O?b:{};P=f(b,U,D)}}R||(R=new e);var V=R.get(b);if(V)return V;R.set(b,P),E(b)?b.forEach(function(e){P.add(S(e,N,T,e,b,R))}):_(b)&&b.forEach(function(e,t){P.set(t,S(e,N,T,t,b,R))});var F=G?void 0:(x?M?u:l:M?y:w)(b);return t(F||b,function(e,t){F&&(e=b[t=e]),n(P,t,S(e,N,T,t,b,R))}),P}}function MP(){if(IP)return yP;IP=1;var e=gI(),t=mP?gP:(mP=1,gP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}),n=function(){if(wP)return EP;wP=1;var e=_I(),t=vP?_P:(vP=1,_P=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o});return EP=function(n,r){return r.length<2?n:e(n,t(r,0,-1))},EP}(),r=mI(),i=Object.prototype.hasOwnProperty;return yP=function(o,s){var a=-1,c=(s=e(s,o)).length;if(!c)return!0;for(;++a<c;){var l=r(s[a]);if("__proto__"===l&&!i.call(o,"__proto__"))return!1;if(("constructor"===l||"prototype"===l)&&a<c-1)return!1}var u=n(o,s);return null==u||delete u[r(t(s))]},yP}var xP=function(){if(NP)return bP;NP=1;var e=pI(),t=DP(),n=MP(),r=gI(),i=SR(),o=function(){if(SP)return AP;SP=1;var e=function(){if(CP)return LP;CP=1;var e=sc(),t=kP(),n=ac(),r=Function.prototype,i=Object.prototype,o=r.toString,s=i.hasOwnProperty,a=o.call(Object);return LP=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var c=s.call(i,"constructor")&&i.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==a}}();return AP=function(t){return e(t)?void 0:t}}(),s=SI(),a=RP(),c=s(function(s,c){var l={};if(null==s)return l;var u=!1;c=e(c,function(e){return e=r(e,s),u||(u=e.length>1),e}),i(s,a(s),l),u&&(l=t(l,7,o));for(var d=c.length;d--;)n(l,c[d]);return l});return bP=c}();const GP=t(xP);var UP,WP;const VP=t(function(){if(WP)return UP;WP=1;var e=uR();return UP=function(t,n){return e(t,n)}}());class FP extends Error{constructor(e,t){super(t),this.status=e,this.name="HTTPError"}}class jP extends FP{constructor(e,t,n){super(t,n),this.id=e,this.name="APIError"}}var BP=new WeakMap,zP=new WeakMap,HP=new WeakMap,qP=new WeakMap,QP=new WeakMap,$P=new WeakMap;class YP extends wv.EventEmitter{constructor(...e){super(...e),Bo(this,BP,{}),Bo(this,zP,{}),Bo(this,HP,null),Bo(this,qP,null),Bo(this,QP,null),Bo(this,$P,async e=>{if(e.status>=400){const t=await e.json();throw new jP(t.id,e.status,t.message)}if(!e.ok)throw new Error("Failed to parse response, response not ok");return 204===e.status?null:await e.json()})}get _resource(){return console.warn("The _resource property is private and should not be accessed directly. It will soon be removed entirely. Please update your implementation to use only the public APIs."),jo(zP,this)}get resource(){return jo(zP,this)}url(){throw new Error("url() must be implemented")}id(){return this.field("id")}field(e){return(jo(zP,this)||{})[e]}cache(e){zo(zP,this,Yo(Yo({},jo(zP,this)),e))}async fetch(){await Promise.allSettled([jo(HP,this),jo(qP,this),jo(QP,this)]);const e=await fetch(this.url(),{headers:GP(this.headers(),["Content-Type"])});return this.updateResource(await jo($P,this).call(this,e))}async create(){zo(HP,this,(async()=>{const e=await fetch(this.url(),{method:"POST",headers:this.headers()});return this.updateResource(await jo($P,this).call(this,e))})());try{return await jo(HP,this)}finally{zo(HP,this,null)}}async update(e){await Promise.allSettled([jo(qP,this)]),zo(qP,this,(async e=>{if(e&&Object.keys(e).length>0&&dR(jo(zP,this),e,VP))return this;const t=await fetch(this.url(),{method:this.id()?"PUT":"POST",headers:this.headers(),body:JSON.stringify(e)});return this.updateResource(await jo($P,this).call(this,t))})(e));try{return await jo(qP,this)}finally{zo(qP,this,null)}}async destroy(){zo(QP,this,(async()=>{const e=await fetch(this.url(),{method:"DELETE",headers:this.headers()});return this.updateResource(await jo($P,this).call(this,e))})());try{return await jo(QP,this)}finally{zo(QP,this,null)}}updateResource(e){const t=this.clone();return zo(zP,this,e||{}),this.emit("updated",this,t),this}clone(e){e&&zo(zP,e,Yo({},jo(zP,this)))}headers(){return Yo(Yo({},YP.headers()),jo(BP,this))}setHeader(e,t){jo(BP,this)[e]=t}getHeader(e){return this.headers()[e]}static headers(){return xo(YP,this,tD)._}static setHeader(e,t){tD._[e]=t}static getHeader(e){return tD._[e]}static set api(e){nD._=e}static get api(){return nD._}}var JP,KP,XP,ZP,eD,tD={_:{}},nD={_:void 0},rD={};function iD(){if(KP)return JP;KP=1;var e=m(),t=g(),n=yt(),r=Ka(),i=Error.prototype.toString,o=t(function(){if(e){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==i.call(t))return!0}return"2: 1"!==i.call({message:1,name:2})||"Error"!==i.call({})});return JP=o?function(){var e=n(this),t=r(e.name,"Error"),i=r(e.message);return t?i?t+": "+i:t:i}:i,JP}function oD(){return ZP?XP:(ZP=1,XP={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}})}!function(){if(eD)return rD;eD=1;var e=jn(),t=_e(),n=$u(),r=g(),i=ur(),o=ce(),s=It().f,a=qt(),c=Ki(),l=it(),u=Xi(),d=yt(),h=iD(),f=Ka(),p=oD(),_=Za(),v=zt(),E=m(),w=Ze(),y="DOMException",I="DATA_CLONE_ERR",L=t("Error"),C=t(y)||function(){try{(new(t("MessageChannel")||n("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===I&&25===e.code)return e.constructor}}(),A=C&&C.prototype,S=L.prototype,b=v.set,N=v.getterFor(y),T="stack"in new L(y),k=function(e){return l(p,e)&&p[e].m?p[e].c:0},O=function(){u(this,R);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=k(n);if(b(this,{type:y,name:n,message:t,code:r}),E||(this.name=n,this.message=t,this.code=r),T){var i=new L(t);i.name=y,s(this,"stack",o(1,_(i.stack,1)))}},R=O.prototype=i(S),P=function(e){return{enumerable:!0,configurable:!0,get:e}},D=function(e){return P(function(){return N(this)[e]})};E&&(c(R,"code",D("code")),c(R,"message",D("message")),c(R,"name",D("name"))),s(R,"constructor",o(1,O));var M=r(function(){return!(new C instanceof L)}),x=M||r(function(){return S.toString!==h||"2: 1"!==String(new C(1,2))}),G=M||r(function(){return 25!==new C(1,"DataCloneError").code}),U=M||25!==C[I]||25!==A[I],W=w?x||G||U:M;e({global:!0,constructor:!0,forced:W},{DOMException:W?O:C});var V=t(y),F=V.prototype;for(var j in x&&(w||C===V)&&a(F,"toString",h),G&&E&&C===V&&c(F,"code",P(function(){return k(d(this).name)})),p)if(l(p,j)){var B=p[j],z=B.s,H=o(6,B.c);l(V,z)||s(V,z,H),l(F,z)||s(F,z,H)}}();var sD,aD={};!function(){if(sD)return aD;sD=1;var e=jn(),t=o(),n=_e(),r=ce(),i=It().f,s=it(),a=Xi(),c=Ja(),l=Ka(),u=oD(),d=Za(),h=m(),f=Ze(),p="DOMException",g=n("Error"),_=n(p),v=function(){a(this,E);var e=arguments.length,t=l(e<1?void 0:arguments[0]),n=l(e<2?void 0:arguments[1],"Error"),o=new _(t,n),s=new g(t);return s.name=p,i(o,"stack",r(1,d(s.stack,1))),c(o,this,v),o},E=v.prototype=_.prototype,w="stack"in new g(p),y="stack"in new _(1,2),I=_&&h&&Object.getOwnPropertyDescriptor(t,p),L=!(!I||I.writable&&I.configurable),C=w&&!L&&!y;e({global:!0,constructor:!0,forced:f||C},{DOMException:C?v:_});var A=n(p),S=A.prototype;if(S.constructor!==A)for(var b in f||i(S,"constructor",r(1,A)),u)if(s(u,b)){var N=u[b],T=N.s;s(A,T)||i(A,T,r(6,N.c))}}();var cD,lD={};function uD(e,t,n=kq){const r=[null,`X-CobrowseSDKVersion=${n.version}`,"X-CobrowsePlatform=web",`X-CobrowseDevice=${n.deviceId()}`,`X-CobrowseLicense=${n.license}`].filter(Boolean).join("&"),i=new URL(e,n.api).toString().replace("https://","wss://").replace("http://","ws://");return new URL(`sockets/1/ws?${r}`,i).toString()}!function(){if(cD)return lD;cD=1;var e=_e(),t="DOMException";Zr()(e(t),t)}();class dD{constructor(e,t){this.rate=e,this.period=t,this._tracked=[]}limit(){const e=Date.now()-this.period;return this._tracked=this._tracked.filter(t=>t>e),!(this._tracked.length<this.rate&&(this._tracked.push(Date.now()),1))}}const hD="pointer",fD="scroll",pD="select",gD="keypress",mD="drawing",_D="arrows",vD="rectangles",ED="laser",wD="disappearing_ink",yD="full_device",ID="cursor",LD="universal",CD="highlight",AD=jl("cbio.Device"),SD="_cobrowse_device_id",bD="_cobrowse_device_registration";var ND=new WeakMap,TD=new WeakMap,kD=new WeakMap,OD=new WeakMap,RD=new WeakMap,PD=new WeakMap,DD=new WeakMap,MD=new WeakMap,xD=new WeakMap,GD=new WeakMap,UD=new WeakMap,WD=new WeakMap;class VD extends YP{constructor(e){if(super(),Bo(this,ND,void 0),Bo(this,TD,void 0),Bo(this,kD,void 0),Bo(this,OD,!1),Bo(this,RD,void 0),Qo(this,"url",()=>new URL(`api/1/devices/${this.id()}`,VD.api).toString()),Qo(this,"reset",(e=!1)=>{AD("resetting device"),clearTimeout(jo(kD,this)),zo(kD,this,null),e||EE().removeItem(bD),jo(ND,this)&&(jo(ND,this).close(),zo(ND,this,null))}),Qo(this,"destroy",async()=>(AD("destroying device"),this.reset(),super.destroy())),Qo(this,"hasPendingUpdates",()=>{const e=this.field("custom_data")||{},t=jo(RD,this).customData||{};return!!Object.keys(t).find(n=>e[n]!==t[n])}),Bo(this,PD,()=>{if(!jo(RD,this).license)throw new Error("License required to generate storage key");return`${jo(RD,this).license}:${VD.api}`}),Qo(this,"_saveRegistration",()=>{const e=this.field("next_registration")||3600,t=(new Date).getTime();"number"!=typeof Date.now()&&console.error("Unexpected type returned for Date.now(), expecting number got "+typeof Date.now()),"number"!=typeof t&&console.error("Unexpected type for getTime() of Date, expecting number got "+typeof t);const n={notification_url:this.field("notification_url"),notification_token:this.field("notification_token"),custom_data:this.field("custom_data"),next_registration_time:t+1e3*e};return this.cache({next_registration_time:n.next_registration_time}),EE(jo(PD,this).call(this)).setItem(bD,n),this}),Qo(this,"_loadRegistration",()=>{if(jo(OD,this))return;zo(OD,this,!0);const e=EE(jo(PD,this).call(this)).getItem(bD);e&&(AD("restoring registration",e),this.cache(e))}),Qo(this,"updateRegistration",async e=>{if(jo(TD,this).limit())throw new Error("Cobrowse update rate limit exceeded. Maybe you're updating custom data too often?");return AD("updating registration"),await this.update({device:VD.info,custom_data:jo(RD,this).customData},e),jo(WD,this).call(this),this._saveRegistration(),this.emit("register"),this}),Qo(this,"runRegistrationLoop",async()=>{AD("starting registrations"),this._loadRegistration(),this.reset(!0),(this.hasPendingUpdates()||this.nextRegistration()<=0)&&await this.updateRegistration().catch(()=>{}),jo(WD,this).call(this),jo(DD,this).call(this)}),Qo(this,"pauseRegistrationLoop",async()=>{AD("pausing registrations"),this.reset(!0)}),Qo(this,"nextRegistration",()=>(this.field("next_registration_time")||0)-(new Date).getTime()),Qo(this,"clone",()=>{const e=new VD(jo(RD,this));return super.clone(e),e}),Qo(this,"_nextUpdate",(e=0)=>Math.max(Math.min(6e4*e,36e5),this.nextRegistration())),Bo(this,DD,(e=0)=>{if(jo(kD,this))return void console.error("CobrowseIO: tried to schedule registration while already scheduled");const t=this._nextUpdate(e);zo(kD,this,setTimeout(async()=>{if(!jo(kD,this))return console.error("Registration loop cancelled");try{return await this.updateRegistration(),zo(kD,this,!1),jo(DD,this).call(this)}catch(t){return console.warn("CobrowseIO: registration failed",t),zo(kD,this,!1),jo(DD,this).call(this,e+1)}},Math.max(1e3,t)))}),Bo(this,MD,()=>uD(this.field("notification_url"))),Bo(this,xD,()=>{const e=this.field("notification_token");return[`cbio.http.headers.authorization.bearer.${window.btoa(e).replaceAll("=","")}`]}),Bo(this,GD,()=>{jo(ND,this)||(zo(ND,this,new nA({getUrl:jo(MD,this),getProtocols:jo(xD,this)})),jo(ND,this).setMaxReconnectDelay(6e4),jo(ND,this).on("error",e=>{e&&console.warn("CobrowseIO notification socket error:",e)}),jo(ND,this).on("event",(e,t)=>{"notification"===e?this.emit("notification",t):"probe"===e&&jo(ND,this).send("alive",t)}),jo(ND,this).on("open",()=>{jo(ND,this).send("filter",{events:["probe","notification"]})}))}),Bo(this,UD,()=>{jo(ND,this)&&(console.log("CobrowseIO: Closing socket"),jo(ND,this).close(),zo(ND,this,null))}),Bo(this,WD,()=>{const e=this.field("notification_url"),t=this.field("notification_token");e&&t?jo(GD,this).call(this):jo(UD,this).call(this)}),AD("constructed"),!e)throw new Error("Device delegate is required");zo(RD,this,e),zo(TD,this,new dD(10,12e4))}id(){return VD.deviceId()}get customData(){return this.field("custom_data")||{}}static deviceCredentials(){let e=EE().getItem(SD)||{};return"string"==typeof e&&(e={id:e}),"object"!=typeof e&&(e={}),e.id||(e.id=lE()),e.token||(e.token=lE()),EE().setItem(SD,e),e}static deviceId(){return this.deviceCredentials().id}static deviceToken(){return this.deviceCredentials().token}static get info(){const e=[hD,fD,pD,gD,mD,_D,vD,wD,ED,ID,LD,CD,"calling"];return/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent)||e.push(yD),{platform:"web",device:window.navigator.userAgent,device_locale:window.navigator.language,device_timezone:window.Intl.DateTimeFormat().resolvedOptions().timeZone,os_version:window.navigator.platform,app_id:window.location.origin,app_name:window.document.title,app_build_configuration:"release",sdk_version:"3.24.2",capabilities:e}}}const FD=jl("cbio.Session");var jD=new WeakMap,BD=new WeakMap,zD=new WeakMap,HD=new WeakMap,qD=new WeakMap,QD=new WeakMap,$D=new WeakMap,YD=new WeakMap,JD=new WeakMap,KD=new WeakMap,XD=new WeakMap,ZD=new WeakMap,eM=new WeakMap;class tM extends YP{constructor(e){if(super(),Bo(this,jD,void 0),Bo(this,BD,void 0),Bo(this,zD,{}),Bo(this,HD,e=>{this.setHeader("X-CobrowseDeviceToken",e)}),Bo(this,qD,()=>this.getHeader("X-CobrowseDeviceToken")),Qo(this,"activate",()=>(FD("activate session"),this.update({state:"active",device:VD.info,custom_data:jo(jD,this).customData}))),Qo(this,"end",()=>(FD("end session"),this.update({state:"ended"}))),Qo(this,"code",()=>this.field("code")),Qo(this,"state",()=>this.field("state")),Qo(this,"isActive",()=>"active"===this.state()),Qo(this,"isAuthorizing",()=>"authorizing"===this.state()),Qo(this,"isPending",()=>"pending"===this.state()),Qo(this,"isEnded",()=>"ended"===this.state()),Qo(this,"isVirtual",()=>!!this.field("virtual")),Qo(this,"redactionSelectors",()=>{const e=this.field("redaction_selectors");return Array.isArray(e)?e:[]}),Qo(this,"unredactionSelectors",()=>{const e=this.field("unredaction_selectors");return Array.isArray(e)?e:[]}),Qo(this,"agent",()=>this.field("agent")||!1),Qo(this,"agents",()=>this.field("agents")||[]),Qo(this,"requireConsent",()=>this.field("require_consent")),Qo(this,"endedReason",()=>this.field("ended_reason")),Qo(this,"fullDevice",()=>!0===this.field("full_device")||"on"===this.field("full_device")||"requested"===this.field("full_device")),Qo(this,"setFullDevice",e=>(jo(BD,this).toggle(["laser","drawing","disappearing_ink","arrows","rectangles","pointer","scroll","select","keypress","cursor"],"on"!==e),this.update({full_device:e}))),Qo(this,"update",e=>super.update(Yo({capabilities:jo(BD,this).toArray()},e))),Qo(this,"scale",()=>this.field("scale")||.5),Qo(this,"remoteControl",()=>this.field("remote_control")||"on"),Qo(this,"setRemoteControl",e=>this.update({remote_control:e})),Qo(this,"allowRemoteControl",()=>"on"===this.remoteControl()),Qo(this,"calling",()=>this.field("calling")),Qo(this,"setCalling",e=>this.update({calling:e})),Qo(this,"caller",()=>this.field("caller")),Qo(this,"updateResource",e=>{const t=this.isEnded();return super.updateResource(e),this.isEnded()&&!t&&(this.emit("ended",this),this.removeAllListeners()),this}),Qo(this,"clone",()=>{const e=new tM(jo(jD,this));return super.clone(e),e}),Bo(this,QD,bT(this,"setMetrics",(e={})=>{zo(zD,this,Yo(Yo({},jo(zD,this)),e)),this.emit("metrics.updated",this)})),Bo(this,$D,bT(this,"serialize",()=>Yo(Yo({},this.resource),{},{_locals:{token:jo(qD,this).call(this)}}))),Bo(this,YD,bT(this,"serializeSanitized",()=>({state:this.resource.state,redaction_selectors:this.resource.redaction_selectors}))),Bo(this,JD,bT(this,"deserialize",e=>{const t=e._locals||{};return delete e._locals,t.token&&jo(HD,this).call(this,t.token),this.updateResource(e),this})),Bo(this,KD,bT(this,"compress",()=>`${this.resource.id}:${jo(qD,this).call(this)}`)),Bo(this,XD,bT(this,"decompress",e=>{const t=e.split(":");return jo(JD,this).call(this,{_locals:{token:t[t.length-1]},id:t.slice(0,-1).join(":")}),this})),Bo(this,ZD,bT(this,"proxyToken",()=>this.field("proxy_token"))),Bo(this,eM,bT(this,"proxyUrl",()=>this.field("proxy_url"))),!e)throw new Error("Session delegate is required");zo(jD,this,e),zo(BD,this,new YT(e.capabilities));const t=Math.ceil(Date.now()/36e5);jo(HD,this).call(this,fE(t+"",VD.deviceToken()))}get capabilities(){const e=this.field("capabilities");return null==e?jo(BD,this).toArray():jo(BD,this).toArray().filter(t=>null==e?void 0:e.includes(t))}url(){const e=this.id()||this.code();return new URL("api/1/sessions"+(e?`/${e}`:""),tM.api).toString()}get created(){return new Date(this.field("created"))}get expires(){return new Date(this.field("expires"))}get activated(){return this.field("activated")?new Date(this.field("activated")):null}get updated(){return this.field("updated")?new Date(this.field("updated")):null}get ended(){return this.field("ended")?new Date(this.field("ended")):null}get metrics(){return jo(zD,this)}}const nM="_cobrowse_active_session",rM=jl("cbio.sessionStorage.ForwardingSessionStorage"),iM=function({window:e=window}={}){try{const t=new URL(e.location.href),n=t.searchParams.get(nM);return n?(rM("found forwarded session that can be loaded",n),t.searchParams.delete(nM),e.history.replaceState({},"",t)):rM("no forwarded session to load",t),n}catch(e){console.warn("Failed to attempt to extract forwarded session",e)}}();var oM=new WeakMap;class sM{constructor({activeSessionData:e=iM}={}){Bo(this,oM,void 0),zo(oM,this,e)}isSupported(e){const t=!!e.trustedOrigins.length;return rM("isSupported?",t),t}load(e){try{if(jo(oM,this))return rM("loading session",jo(oM,this)),new tM(e)[ST].decompress(jo(oM,this));rM("no session to load")}catch(e){rM("failed to load forwarded session",e)}return null}store(e,t){t||zo(oM,this,null)}reset(e){zo(oM,this,null)}}var aM=new WeakMap,cM=new WeakMap;class lM extends AT{constructor(e,t){super(),Bo(this,aM,void 0),Bo(this,cM,void 0),zo(aM,this,iA(t.trustedOrigins)),zo(cM,this,()=>e[ST].compress())}get type(){return _T}shouldHandleEvent(e){return!0}shouldHandle(e){const t=new URL(e,window.location.origin);return jo(aM,this).call(this,t.origin)}handle(e){const t=function(e,t,{window:n=window}={}){try{const r=new URL(e);return r.origin===n.location.origin?(rM("not rewriting url because we are not changing origin",r.toString()),e):(r.searchParams.set(nM,t),rM("rewriting trusted url for an active session",{from:e,to:r.toString()}),"string"==typeof e?r.toString():r)}catch(t){return rM("failed rewriting url",t),e}}(e,jo(cM,this).call(this));return{rewrittenUrl:t}}}const uM=jl("cbio.FrameLoop");class dM{constructor(){Qo(this,"isRunning",()=>this._running),Qo(this,"setSource",async e=>{if(e.constructor!==(this.source&&this.source.constructor))if(this.isRunning()){this.source&&this.source.capturingWillStop(),this.source=e;try{await this.source.capturingWillStart(),this.invalidateFrame()}catch(e){console.error(e)}}else this.source=e;else uM("frame source type not changed")}),Qo(this,"getSource",()=>this.source),Qo(this,"start",async()=>{uM("starting frame loop in",document),this.isRunning()||(this._running=!0,this.source.capturingWillStart())}),Qo(this,"stop",()=>{this.isRunning()&&(this.source.capturingWillStop(),this._running=!1)}),Qo(this,"invalidateFrame",()=>{if(!this.isRunning())throw new Error("FrameLoop was destroyed");uM("invalidate frame in",document),this.source&&this.source.reset()}),Qo(this,"destroy",()=>{uM("destroying frame loop in",document),this.stop(),this.source&&(this.source.destroy(),this.source=null)}),uM("FrameLoop constructed in",document),this._running=!1}}const hM=(e,t)=>{try{t()}catch(t){console.warn("CobrowseIO: failed to apply tap",e,t)}};class fM extends wv.EventEmitter{constructor(){super(),Qo(this,"windows",new Set),Qo(this,"tap",e=>{if(this.windows.has(e))return;this.windows.add(e);const t=this;hM("history.pushState",()=>{const n=e.history.pushState.bind(e.history);e.history.pushState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),hM("history.replaceState",()=>{const n=e.history.replaceState.bind(e.history);e.history.replaceState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),hM("CSSStyleSheet.insertRule",()=>{const{insertRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.insertRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),hM("CSSStyleSheet.deleteRule",()=>{const{deleteRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.deleteRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),hM("CSSStyleSheet.replace",()=>{const{replace:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replace=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),hM("CSSStyleSheet.replaceSync",()=>{const{replaceSync:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replaceSync=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),hM("Element.attachShadow",()=>{const{attachShadow:n}=e.Element.prototype;e.Element.prototype.attachShadow=function(e){const r=n.bind(this)(e);return t.emit("attachshadow",r),r}});const n=e=>{Object.getOwnPropertyNames(e.prototype).forEach(n=>{try{if("function"!=typeof e.prototype[n])return}catch(e){return}const r=e.prototype[n];e.prototype[n]=function(){return this.canvas.__cbio_emit_change||(this.canvas.__cbio_emit_change=dc(e=>t.emit("canvaschange",e),500,{leading:!1,trailing:!0})),this.canvas.__cbio_emit_change(this.canvas),r.apply(this,arguments)}})};hM("CanvasRenderingContext2D",()=>n(e.CanvasRenderingContext2D)),hM("WebGLRenderingContext",()=>n(e.WebGLRenderingContext)),e.WebGL2RenderingContext&&hM("WebGL2RenderingContext",()=>n(e.WebGL2RenderingContext)),hM("HTMLSelectElement.value",()=>{A_(e.HTMLSelectElement.prototype,"value",void 0,(e,n)=>(t.emit("selectchange",e),n))}),hM("HTMLSelectElement.selectedIndex",()=>{A_(e.HTMLSelectElement.prototype,"selectedIndex",void 0,(e,n)=>(t.emit("selectchange",e),n))}),hM("HTMLOptionElement.selected",()=>{A_(e.HTMLOptionElement.prototype,"selected",void 0,(e,n)=>{const r=e.closest("select");return r&&t.emit("selectchange",r),n})})}),Qo(this,"untap",()=>{}),this.setMaxListeners(200)}}const pM=new fM;class gM{constructor(e){Qo(this,"_init",()=>{this._propertyWatcher||(this._propertyWatcher=new pv(this._onPropertySet),pM.on("stylechange",this._onStyleSheetChange),pM.on("navigate",this._onNavigation),pM.on("canvaschange",this._onCanvasChange),pM.on("selectchange",this._onSelectChange))}),Qo(this,"observe",e=>{if(this._observing.has(e))return;this._init();const{value:t=e.addEventListener}=Object.getOwnPropertyDescriptor(FI.prototype,"addEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),Iv.track(e),WL.track(e),GA.track(e),this._observing.add(e);const n=(e.ownerDocument||e).defaultView;n&&!this._windows.has(n)&&(this._windows.add(n),pM.tap(n),GA.tap(n),this._propertyWatcher.observe(n.HTMLInputElement,"value"),this._propertyWatcher.observe(n.HTMLInputElement,"checked"),this._propertyWatcher.observe(n.HTMLTextAreaElement,"value"),this._propertyWatcher.observe(n.ShadowRoot,"adoptedStyleSheets"),this._propertyWatcher.observe(n.Document,"adoptedStyleSheets"),n.addEventListener&&(n.addEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),n.addEventListener("resize",this._onEvent,{capture:!0,passive:!0})))}),Qo(this,"disconnect",()=>{this._observing.forEach(e=>{const{value:t=e.removeEventListener}=Object.getOwnPropertyDescriptor(FI.prototype,"removeEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),Iv.untrack(e),WL.untrack(e),GA.untrack(e)}),this._observing.clear(),this._windows.forEach(e=>{pM.untap(e),GA.untap(e),e&&!hv(e)&&e.removeEventListener&&(e.removeEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),e.removeEventListener("resize",this._onEvent,{capture:!0,passive:!0}))}),this._windows.clear(),this._propertyWatcher&&(this._propertyWatcher.disconnect(),this._propertyWatcher=null,pM.off("stylechange",this._onStyleSheetChange),pM.off("navigate",this._onNavigation),pM.off("canvaschange",this._onCanvasChange),pM.off("selectchange",this._onSelectChange))}),Qo(this,"_getActualTarget",e=>{const{get:t}=Object.getOwnPropertyDescriptor(VI.prototype,"target");return t.apply(e)}),Qo(this,"_target",e=>{const t=this._getActualTarget(e);return t&&t.document||t}),Qo(this,"_onEvent",(e,t={})=>{this._onModification(this._target(e),Yo(Yo({},t),{},{type:e.type}))}),Qo(this,"_onSelectionEvent",e=>{var t;const n=this._getActualTarget(e),r=null!==(t=n.ownerDocument)&&void 0!==t?t:n;var i;r.__last_agent_selection_ts>Date.now()-100||("selectionchange"===e.type&&(["INPUT","TEXTAREA"].includes(null===(i=r.activeElement)||void 0===i?void 0:i.tagName)?(r.activeElement.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(r.activeElement,{type:e.type})):(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type}))),"select"===e.type&&(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type})))}),Qo(this,"_onStyleSheetChange",e=>{e.ownerNode&&this._onModification(e.ownerNode,{type:"stylesheet"});for(const n of this._observing){var t;null!==(t=n.adoptedStyleSheets)&&void 0!==t&&t.includes(e)&&this._onModification(n,{type:"adoptedstylesheet"})}}),Qo(this,"_onNavigation",e=>{this._onModification(e.document,{type:"navigation"})}),Qo(this,"_onCanvasChange",e=>{this._onModification(e,{type:"canvas"})}),Qo(this,"_onSelectChange",e=>{this._onModification(e,{type:"select",recursive:!0})}),Qo(this,"_onFocusChange",e=>{const t=this._getActualTarget(e);null!=t&&(this._onModification(t,{type:e.type}),t.ownerDocument&&this._onModification(t.ownerDocument,{type:e.type}))}),Qo(this,"_onInputEvent",e=>{const t=this._getActualTarget(e);"SELECT"===t.tagName||"TEXTAREA"===t.tagName?this._onModification(this._target(e),{recursive:!0,type:e.type}):"INPUT"===t.tagName&&("radio"===t.type&&t.name?(t.closest("form")||t.ownerDocument).querySelectorAll(`input[type=radio][name="${t.name}"]`).forEach(t=>this._onModification(t,{type:e.type})):this._onModification(this._target(e),{recursive:!0,type:e.type}))}),Qo(this,"_onPropertySet",e=>{this._onModification(e,{type:"property"})}),this._onModification=(...t)=>setTimeout(()=>e(...t),0),this._observing=new Set,this._windows=new Set}}const mM=jl("cbio.NodeScheduler");var _M=new WeakMap,vM=new WeakMap,EM=new WeakMap,wM=new WeakMap,yM=new WeakMap,IM=new WeakMap,LM=new WeakMap,CM=new WeakMap,AM=new WeakSet,SM=new WeakMap;class bM{constructor(e){qo(this,AM),Bo(this,_M,null),Bo(this,vM,null),Bo(this,EM,null),Bo(this,wM,0),Bo(this,yM,null),Bo(this,IM,new Map),Bo(this,LM,!1),Bo(this,CM,null),Bo(this,SM,()=>{if(!jo(LM,this))return;if(!jo(IM,this).size)return void zo(vM,this,setTimeout(jo(SM,this),1e3));jo(EM,this)||(zo(EM,this,jo(IM,this).entries()),zo(wM,this,jo(IM,this).size),zo(yM,this,performance.now()));let e=0,t=!1;for(;e<50;){var n;const r=null===(n=jo(EM,this))||void 0===n?void 0:n.next();if(!r||null!=r&&r.done){t=!0;break}const[i,{checkReady:o,serializerOptions:s}]=r.value;xo(AM,this,kM).call(this,i,o,s),e++}if(!t)return void zo(_M,this,requestAnimationFrame(jo(SM,this)));const r=Math.round(performance.now()-jo(yM,this));mM(`Took ${r}ms to process queue with size of ${jo(wM,this)}`),zo(EM,this,null),zo(wM,this,0),zo(yM,this,null),zo(vM,this,setTimeout(jo(SM,this),Math.max(1e3-r,0)))}),zo(CM,this,e)}getScheduledAncestor(e){if(jo(IM,this).has(e))return e;for(const t of jo(IM,this).keys())if(t.contains(e))return t;return null}tryScheduleElement(e,t,n){return!!jo(IM,this).has(e)||(jo(IM,this).size>1e3?(mM("reached queue size limit, skipping scheduling of node"),!1):(jo(IM,this).set(e,{checkReady:t,serializerOptions:n}),jo(LM,this)||xo(AM,this,NM).call(this),!0))}unscheduleElement(e){jo(IM,this).delete(e),jo(IM,this).size||xo(AM,this,TM).call(this)}destroy(){mM("destroy()"),xo(AM,this,TM).call(this),jo(IM,this).clear()}}function NM(){mM("start()"),zo(LM,this,!0),zo(_M,this,requestAnimationFrame(jo(SM,this)))}function TM(){mM("stop()"),zo(LM,this,!1),jo(_M,this)&&cancelAnimationFrame(jo(_M,this)),zo(_M,this,null),jo(vM,this)&&clearTimeout(jo(vM,this)),zo(vM,this,null),zo(EM,this,null),zo(wM,this,0),zo(yM,this,null)}function kM(e,t,n){var r;e.isConnected?t(e)&&(mM("scheduling node to be sent",e),this.unscheduleElement(e),null===(r=jo(CM,this))||void 0===r||r.call(this,e,n)):jo(IM,this).delete(e)}function OM(e){return"none"!==getComputedStyle(e).display}const RM=jl("cbio.PatchStream");var PM,DM,MM=new WeakMap;class xM extends wv.EventEmitter{constructor(e,t={}){var n;super(),Bo(this,MM,{includeVisibility:!1}),Qo(this,"start",()=>{RM("starting patch stream for",this._root),this._documents=new Set,this._iframeBridge.on("patch",this._onXDocIframeUpdate),performance.mark("cb:patch-stream-observe-start"),this._observe(this._root),performance.mark("cb:patch-stream-observe-end"),performance.measure("cb:patch-stream-observe","cb:patch-stream-observe-start","cb:patch-stream-observe-end"),pM.on("attachshadow",this._onAttachShadow)}),Qo(this,"_serializeWithScheduling",(e,t,n)=>{var r;if(!(r=e)||1!==r.nodeType||!r.isConnected||r.ownerDocument.head.contains(r)||null===r.firstElementChild||OM(e)||!function(e){var t;let n=0;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);if(!r)return!1;for(;r.nextNode();)if(n++,n>5)return!0;return!1}(e))return lL.serialize(e,t,n);if(!this._nodeScheduler.tryScheduleElement(e,OM,n))return lL.serialize(e,t,n);const i=Yo(Yo({},n),{},{skipChildren:!0,forceHidden:!0});return t([]),lL.serialize(e,t,i)}),Qo(this,"partialSync",e=>{const t=PI.getById(e);t&&this.emit("patch",{_t:"partialsync",modified:[lL.serialize(t,void 0,jo(MM,this))]})}),Qo(this,"stop",()=>{RM("stopping patch stream for",this._root),this._eventObserver.disconnect(),this._mutationObserver.disconnect(),this._iframeBridge.removeListener("patch",this._onXDocIframeUpdate),this._documents&&this._documents.clear(),this._documents=null,pM.off("attachshadow",this._onAttachShadow)}),Qo(this,"destroy",()=>{RM("destroying patch stream for",this._root),this.stop(),this.removeAllListeners(),qI.depthFirst(this._root,this._untrack),this._mutationObserver=null,this._eventObserver=null,this._iframeBridge=null,this._root=null,this._nodeScheduler.destroy(),this._nodeScheduler=null}),Qo(this,"_track",e=>{RI.isDOMNode(e)&&(PI.track(e),e.nodeType===window.Node.DOCUMENT_NODE&&this._observe(e),e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&this._observe(e),"IFRAME"===e.tagName&&(this._iframeBridge.track(e),e.removeEventListener("load",this._onIframeLoad,{capture:!0}),e.addEventListener("load",this._onIframeLoad,{capture:!0})))}),Qo(this,"_untrack",e=>{PI.forget(e),RI.isDOMNode(e)&&"IFRAME"===e.tagName&&(e.removeEventListener("load",this._onIframeLoad,{capture:!0}),this._iframeBridge.remove(e))}),Qo(this,"_onAttachShadow",e=>{const t=e.host;PI.get(t)&&(YI.isRedacted(t)||(this._observe(e),qI.isIgnored(t)||this.emit("patch",{_t:"attachshadow",modified:[lL.serialize(t,void 0,jo(MM,this)),qI.depthFirstMapped(e,(e,t)=>lL.serialize(e,t,jo(MM,this)))]})))}),Qo(this,"_onXDocIframeUpdate",(e,{iframe:t})=>{RM("xdoc iframe updated",t,e),t&&(YI.isRedacted(t)||qI.isIgnored(t)||(t.__document_id=e.document_id,this.emit("patch",{_t:"xdociframeupdate",modified:[lL.serialize(t,void 0,jo(MM,this)),...e.patch]})))}),Qo(this,"_onIframeLoad",({target:e})=>{RM("iframe loaded",e),YI.isRedacted(e)||(hv(e)||this._observe(e.contentWindow.document),this._iframeBridge.track(e),qI.isIgnored(e)||this.emit("patch",{_t:"iframeupdate",modified:[qI.depthFirstMapped(e,(e,t)=>lL.serialize(e,t,jo(MM,this)))]}))}),Qo(this,"_onEventMutation",(e,t={})=>{if(!this._eventObserver)return;if(this._mutationObserver&&this._onDOMChange(this._mutationObserver.takeRecords()),"TEXTAREA"===e.tagName&&qI.depthFirst(e,this._track),!PI.get(e))return;if(YI.isRedacted(e))return;if(qI.isIgnored(e))return;const n=Yo(Yo({},jo(MM,this)),{},{rasterizeCanvas:"canvas"===t.type});this.emit("patch",{_t:`eventmutation:${t.type}`,modified:[(()=>{var r;const i=null===(r=this._nodeScheduler)||void 0===r?void 0:r.getScheduledAncestor(e);i&&this._nodeScheduler.unscheduleElement(i);const o=i||e,s=Boolean(i),a=s||t.recursive?qI.depthFirstMapped(o,(e,t)=>this._serializeWithScheduling(e,t,n)):lL.serialize(o,void 0,n);return s&&a.attributes&&void 0===a.attributes.style&&(a.attributes.style=""),a})()]})}),Qo(this,"_getModifications",e=>{const t=new Set,n=new Set,r=new Set;return e.forEach(e=>{("characterData"===e.type||n.has(e.target)||PI.get(e.target))&&function(e,t,n,r){const i=new Set(e.addedNodes?[].slice.call(e.addedNodes):[]);r.has(e.target)||t.add(e.target);for(const e of i)qI.depthFirst(e,e=>{t.add(e),r.delete(e),n.add(e)});e.removedNodes&&[].slice.call(e.removedNodes).forEach(e=>{qI.depthFirst(e,e=>{t.delete(e),n.delete(e),r.add(e)})})}(e,n,r,t)}),t.forEach(e=>this._untrack(e)),n.forEach(e=>this._track(e)),{added:r,modified:n,removed:t}}),Qo(this,"_onDOMChange",e=>{const{added:t,modified:n,removed:r}=this._getModifications(e),i=YI.notifyChanges(e,t,n,r),o=XI.notifyChanges(e,t,n,r),s=new Map,a=[...n,...i,...o];for(const e of a){var c;const t=null===(c=this._nodeScheduler)||void 0===c?void 0:c.getScheduledAncestor(e);t&&this._nodeScheduler.unscheduleElement(t);const n=t||e,r=Boolean(t)||o.has(e),i=s.get(n);(void 0===i||!i&&r)&&s.set(n,r)}if(0===s.size)return;RM("DOM changed",s);const l=[];for(const[e,t]of s){const n=t?qI.depthFirstMapped(e,(e,t)=>this._serializeWithScheduling(e,t,jo(MM,this))):lL.serialize(e,void 0,jo(MM,this));n&&(t&&n.attributes&&void 0===n.attributes.style&&(n.attributes.style=""),l.push(n))}RM("DOM changes serialized",l),this.emit("patch",{_t:"domchange",modified:l})}),Qo(this,"_onScheduledNodeReady",(e,t)=>{RM("scheduled element ready",e);const n=qI.depthFirstMapped(e,(e,n)=>lL.serialize(e,n,t));this.emit("patch",{_t:"scheduled",modified:[n]})}),this._root=e,jo(MM,this).includeVisibility=null!==(n=t.includeVisibility)&&void 0!==n&&n,this._mutationObserver=new WI(this._onDOMChange),this._eventObserver=new gM(this._onEventMutation),this._nodeScheduler=new bM(this._onScheduledNodeReady),this._iframeBridge=BU}forceUpdate(){RM("forcing entire state update from",this._root);const e=Yo(Yo({},jo(MM,this)),{},{rasterizeCanvas:!0});performance.mark("cb:serialize-head-start");const t=Yo(Yo({},lL.serialize(this._root,void 0,jo(MM,this))),{},{scroll:void 0,childNodes:[Yo(Yo({},lL.serialize(this._root.documentElement,void 0,jo(MM,this))),{},{childNodes:[qI.depthFirstMapped(this._root.head,(e,t)=>lL.serialize(e,t,jo(MM,this)))]})]});performance.mark("cb:serialize-head-end"),performance.measure("cb:serialize-head","cb:serialize-head-start","cb:serialize-head-end"),this.emit("patch",{_t:"pre-force",flush:!0,modified:[t]}),performance.mark("cb:serialize-body-start");const n=qI.depthFirstMapped(this._root,(t,n)=>this._serializeWithScheduling(t,n,e));performance.mark("cb:serialize-body-end"),performance.measure("cb:serialize-body","cb:serialize-body-start","cb:serialize-body-end"),this.emit("patch",{_t:"forced",flush:!0,modified:[n]})}_observe(e){if(e.nodeType!==window.Node.DOCUMENT_NODE&&e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE)throw new Error(`CobrowseIO: observed a non-document or fragment node (type=${e.nodeType})`);if(!this._documents.has(e)){RM("starting observation of",e),this._documents.add(e),RM("doing initial node tracking on observe for",e),qI.depthFirst(e,this._track),this._eventObserver.observe(e);try{this._mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}catch(t){console.error("CobrowseIO failed to start mutation observer for",e)}}}}var GM=(DM||(DM=1,PM=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}),PM);const UM=t(GM);class WM{constructor(e){this._id=e,this.reset()}_difference(e,t){if(!t)return Yo({},e);const n={};for(const[r,i]of Object.entries(e))UM(i,t[r])||(n[r]=i);return n}compress(){const e=[],t=Object.values(this.modified);for(let n=0;n<t.length;n++){const r=t[n],i=this.state.node(r.id),o=this._difference(r,this._flatten(i||{}));Object.keys(o).length>0&&(o.id=r.id,e.push(o))}return e}mark(){return this.state.applyPatch(Object.values(this.modified)),this.modified={},this}_flatten(e){return e.childNodes?Yo(Yo({},e),{},{childNodes:e.childNodes.map(e=>({id:e.id}))}):e}push(e){if(!e||!e.modified)return console.error("invalid patch",e),this;for(const t of e.modified)t&&sv(t,e=>{this.modified[e.id]=Yo(Yo({},this.modified[e.id]),this._flatten(e))});return this}reset(e){return this.state=new uv(this._id),this.modified={},e&&this.push({_t:"reset",modified:[e]}),this}}const VM=jl("cbio.DOMFrameSource");var FM=new WeakMap;class jM{constructor(e,t={}){Bo(this,FM,{}),Qo(this,"_throttleCompressAndEmitFrame",dc(()=>this._compressAndEmitFrame(),110)),Qo(this,"capturingWillStart",()=>{if(VM("capturingWillStart for DOMFrameSource in",document),this._sendInterval)throw new Error("DOMFrameSource already running");this._compression||(this._compression=new WM(PI.track(document))),this._patchStream||(this._patchStream=new xM(document,jo(FM,this))),NE.on("activate",this.reset),this._patchStream.on("patch",e=>{this._compression.push(e),e.flush?this._compressAndEmitFrame():this._throttleCompressAndEmitFrame()}),this._sendInterval=setInterval(()=>this._compressAndEmitFrame(),500),this._patchStream.start()}),Qo(this,"capturingWillStop",()=>{VM("capturingWillStop for DOMFrameSource in",document),NE.removeListener("activate",this.reset),this._sendInterval&&(clearInterval(this._sendInterval),this._sendInterval=null),this._patchStream&&(this._patchStream.destroy(),this._patchStream=null),this._compression&&(this._compression.reset(),this._compression=null)}),Qo(this,"setCodecs",e=>{}),Qo(this,"reset",()=>{VM("resetting DOMFrameSource in",document),setTimeout(()=>{var e,t;null===(e=this._compression)||void 0===e||e.reset(),null===(t=this._patchStream)||void 0===t||t.forceUpdate()},0)}),Qo(this,"destroy",()=>{VM("destroying DOMFrameSource in",document),this.capturingWillStop(),this._onUpdate=null}),Qo(this,"partialSync",e=>{var t;null===(t=this._patchStream)||void 0===t||t.partialSync(e)}),VM("DOMFrameSource constructed in",document),this._onUpdate=e,zo(FM,this,t)}setOptions(e){zo(FM,this,e)}_compressAndEmitFrame(){if(!this._compression)return;if(!document||!PI.get(document))return;const e=this._compression.compress();e.length&&this._onUpdate({document_id:PI.get(document),patch:e})&&this._compression.mark()}}class BM{constructor(){this.videoTrack={},this.audioTrack={}}}class zM{}Qo(zM,"Error","error"),Qo(zM,"MediaInfo","media-info"),Qo(zM,"MediaPacket","media-packet");const HM=Ev(),qM={timerInterval:100,logCallback:null};class QM extends HM{constructor(e,t){super(),this.options=t?Yo(Yo({},qM),t):qM,this.mediaRecorder=e,this.mediaInfo=new BM,this.mediaRecorder.addEventListener("dataavailable",async e=>{this.addBlob(e.data)}),this.mediaRecorder.addEventListener("error",e=>{this.emit(zM.Error,e.error)})}start(){this.mediaRecorder.start(),"function"==typeof this.mediaRecorder.requestData?this.timer=window.setInterval(()=>{this.mediaRecorder.requestData()},this.options.timerInterval):this.timer=window.setTimeout(()=>{this.mediaRecorder.stop()},this.options.timerInterval)}stop(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop(),this.timer&&(clearInterval(this.timer),this.timer=null)}static isSupported(e){return"undefined"!=typeof MediaRecorder&&"function"==typeof MediaRecorder.prototype.requestData&&"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported(e)}}class $M{}function YM(e,t){const n=function(e){for(var t=7;t>3;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element id")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current;for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.id=r,t.idLength=n,!0}Qo($M,"Ebml",440786851),Qo($M,"EbmlVersion",17030),Qo($M,"EbmlReadVersion",17143),Qo($M,"EbmlMaxIdLength",17138),Qo($M,"EbmlMaxSizeLength",17139),Qo($M,"DocType",17026),Qo($M,"DocTypeVersion",17031),Qo($M,"DocTypeReadVersion",17029),Qo($M,"Void",236),Qo($M,"Segment",408125543),Qo($M,"SeekHead",290298740),Qo($M,"Seek",19899),Qo($M,"SeekID",21419),Qo($M,"SeekPosition",21420),Qo($M,"Info",357149030),Qo($M,"TimestampScale",2807729),Qo($M,"Duration",17545),Qo($M,"DateUTC",17505),Qo($M,"Title",31657),Qo($M,"MuxingApp",19840),Qo($M,"WritingApp",22337),Qo($M,"Cluster",524531317),Qo($M,"Timestamp",231),Qo($M,"SimpleBlock",163),Qo($M,"SegmentUID",29604),Qo($M,"Tracks",374648427),Qo($M,"TrackEntry",174),Qo($M,"TrackNumber",215),Qo($M,"TrackUID",29637),Qo($M,"TrackType",131),Qo($M,"FlagEnabled",185),Qo($M,"FlagDefault",136),Qo($M,"FlagForced",21930),Qo($M,"FlagLacing",156),Qo($M,"MinCache",28135),Qo($M,"MaxBlockAdditionID",21998),Qo($M,"CodecID",134),Qo($M,"CodecDecodeAll",170),Qo($M,"SeekPreRoll",22203),Qo($M,"Video",224),Qo($M,"FlagInterlaced",154),Qo($M,"PixelWidth",176),Qo($M,"PixelHeight",186),Qo($M,"DefaultDuration",2352003),Qo($M,"TrackTimestampScale",2306383),Qo($M,"CodecName",2459272),Qo($M,"CodecPrivate",25506),Qo($M,"Audio",225),Qo($M,"SamplingFrequency",181),Qo($M,"Channels",159),Qo($M,"Cues",475249515),Qo($M,"CuePoint",187),Qo($M,"CueTime",179),Qo($M,"CueTrackPositions",183),Qo($M,"CueTrack",247),Qo($M,"CueClusterPosition",241),Qo($M,"CueRefTime",150),Qo($M,"CueBlockNumber",21368),Qo($M,"Position",167),Qo($M,"Colour",21936);class JM{}function KM(e){switch(e){case $M.Segment:case $M.Ebml:case $M.SeekHead:case $M.Seek:case $M.Cluster:case $M.Info:case $M.Tracks:case $M.TrackEntry:case $M.Video:case $M.Audio:case $M.Cues:case $M.CuePoint:case $M.CueTrackPositions:case $M.Colour:return JM.Master;case $M.EbmlVersion:case $M.EbmlReadVersion:case $M.EbmlMaxIdLength:case $M.EbmlMaxSizeLength:case $M.DocTypeVersion:case $M.DocTypeReadVersion:case $M.SeekPosition:case $M.TimestampScale:case $M.Timestamp:case $M.TrackNumber:case $M.TrackUID:case $M.TrackType:case $M.FlagEnabled:case $M.FlagDefault:case $M.FlagForced:case $M.FlagLacing:case $M.MinCache:case $M.MaxBlockAdditionID:case $M.CodecDecodeAll:case $M.SeekPreRoll:case $M.FlagInterlaced:case $M.PixelWidth:case $M.PixelHeight:case $M.DefaultDuration:case $M.Channels:case $M.CueTime:case $M.CueTrack:case $M.CueClusterPosition:case $M.CueRefTime:case $M.CueBlockNumber:case $M.Position:return JM.UnsignedInteger;case $M.DocType:case $M.CodecID:return JM.String;case $M.Void:case $M.SeekID:case $M.SimpleBlock:case $M.SegmentUID:case $M.CodecPrivate:return JM.Binary;case $M.Duration:case $M.TrackTimestampScale:case $M.SamplingFrequency:return JM.Float;case $M.DateUTC:return JM.Date;case $M.Title:case $M.MuxingApp:case $M.WritingApp:case $M.CodecName:return JM.Utf8String;default:throw Error(`cannot determine type of unknown ebml element with id ${e}`)}}function XM(e){let t=0;return e.forEach(e=>{t=t<<8|e}),t}Qo(JM,"Unknown",0),Qo(JM,"Master",1),Qo(JM,"UnsignedInteger",2),Qo(JM,"SignedInteger",3),Qo(JM,"String",4),Qo(JM,"Utf8String",5),Qo(JM,"Binary",6),Qo(JM,"Float",7),Qo(JM,"Date",8);class ZM{constructor(){this.array=null,this.current=null,this.offset=0}addArray(e){if(null!=e&&0!=e.length)if(this.bytesToSkip>=e.length)this.bytesToSkip-=e.length;else{if(this.bytesToSkip&&(e=e.slice(this.bytesToSkip)),this.array){let t=new Uint8Array(this.array.length-this.offset+e.length);t.set(this.offset?this.array.slice(this.offset):this.array,0),t.set(e,this.array.length-this.offset),this.array=t,this.offset=0}else this.array=e;this.current=this.array[0]}}checkBounds(){if(this.offset===this.array.length)this.offset=0,this.current=null,this.array=null;else{if(!(this.offset<this.array.length))throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.current=this.array[this.offset]}}next(){return this.array?(this.offset++,this.checkBounds(),this.current):null}nextUnsafe(){return this.offset++,this.current=this.array[this.offset],this.current}get bytesAvailable(){return this.array?this.array.length-this.offset:0}trim(){if(this.array)if(this.offset<this.array.length)this.array=this.array.slice(this.offset),this.offset=0,this.current=this.array[0];else{if(this.offset>this.array.length)throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.array=null,this.offset=0,this.current=null}}extract(e){if(this.bytesAvailable>=e){const t=this.offset;let n=this.array.slice(t,t+e);return this.offset+=e,this.current=this.array[this.offset],this.checkBounds(),n}return null}skip(e){if(this.bytesAvailable>=e)return this.offset+=e,this.current=this.array[this.offset],void this.checkBounds();e-=this.bytesAvailable,this.array=null,this.offset=0,this.current=null,this.bytesToSkip=e}}class ex{get elementSize(){return this.idLength+this.sizeLength+this.size}get id(){return this._id}set id(e){this._id=e,this.name=function(e){switch(e){case $M.Ebml:return"EBML";case $M.EbmlVersion:return"EBMLVersion";case $M.EbmlReadVersion:return"EBMLReadVersion";case $M.EbmlMaxIdLength:return"EBMLMaxIDLength";case $M.EbmlMaxSizeLength:return"EBMLMaxSizeLength";case $M.DocType:return"DocType";case $M.DocTypeVersion:return"DocTypeVersion";case $M.DocTypeReadVersion:return"DocTypeReadVersion";case $M.Void:return"Void";case $M.Segment:return"Segment";case $M.SeekHead:return"SeekHead";case $M.Seek:return"Seek";case $M.SeekID:return"SeekID";case $M.SeekPosition:return"SeekPosition";case $M.Info:return"Info";case $M.TimestampScale:return"TimestampScale";case $M.Duration:return"Duration";case $M.DateUTC:return"DateUTC";case $M.Title:return"Title";case $M.MuxingApp:return"MuxingApp";case $M.WritingApp:return"WritinApp";case $M.Cluster:return"Cluster";case $M.Timestamp:return"Timestamp";case $M.SimpleBlock:return"SimpleBlock";case $M.SegmentUID:return"SegmentUID (unsupported by WebM)";case $M.Tracks:return"Tracks";case $M.TrackEntry:return"TrackEntry";case $M.TrackNumber:return"TrackNumber";case $M.TrackUID:return"TrackUID";case $M.TrackType:return"TrackType";case $M.FlagEnabled:return"FlagEnabled";case $M.FlagDefault:return"FlagDefault";case $M.FlagForced:return"FlagForced";case $M.FlagLacing:return"FlagLacing";case $M.MinCache:return"MinCache";case $M.MaxBlockAdditionID:return"MaxBlockAdditionID";case $M.CodecID:return"CodecID";case $M.CodecDecodeAll:return"CodecDecodeAll";case $M.SeekPreRoll:return"SeekPreRoll";case $M.Video:return"Video";case $M.FlagInterlaced:return"FlagInterlaced";case $M.PixelWidth:return"PixelWidth";case $M.PixelHeight:return"PixelHeight";case $M.DefaultDuration:return"DefaultDuration";case $M.TrackTimestampScale:return"TrackTimestampScale";case $M.CodecName:return"CodecName";case $M.CodecPrivate:return"CodecPrivate";case $M.Audio:return"Audio";case $M.SamplingFrequency:return"SamplingFrequency";case $M.Channels:return"Channels";case $M.Cues:return"Cues";case $M.CuePoint:return"CuePoint";case $M.CueTime:return"CueTime";case $M.CueTrackPositions:return"CueTrackPositions";case $M.CueTrack:return"CueTrack";case $M.CueClusterPosition:return"CueClusterPosition";case $M.CueRefTime:return"CueRefTime";case $M.CueBlockNumber:return"CueBlockNumber";case $M.Position:return"Position";case $M.Colour:return"Colour";default:return""}}(this._id),this.type=KM(this._id)}}function tx(e,t){const n=function(e){if(1==e)return 8;for(var t=7;t>0;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element size")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current-(1<<8-n);for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.sizeLength=n,t.size=r===1<<8*n-1?-1:r,!0}function nx(e,t){switch(e){case JM.UnsignedInteger:case JM.SignedInteger:return XM(t);case JM.String:return String.fromCharCode.apply(null,t);case JM.Utf8String:case JM.Float:throw new Error(`cannot read value of element with type ${e}`);case JM.Date:return 978307200+XM(t);case JM.Binary:return t}}class rx{constructor(e,t){this.data=e,this.ptsMs=t}}function ix(){return new Promise(e=>{let t=new FileReader;t.onload=()=>{e(t.result)},t.readAsArrayBuffer(this)})}class ox extends QM{constructor(e,t){super(e,t),this.state=ox.stateParseElementId,this.currentEbmlElement=new ex,this.uint8ArrayAggregator=new ZM,this.clusterTimestamp=0,this.timestampMsScale=1,this.ebmlElementStack=[],Blob.prototype.arrayBuffer=Blob.prototype.arrayBuffer||ix}async addBlob(e){try{for(this.uint8ArrayAggregator.addArray(new Uint8Array(await e.arrayBuffer()));this.uint8ArrayAggregator.bytesAvailable;)switch(this.state){case ox.stateParseElementId:if(!YM(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got new current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.state=ox.stateParseElementLength;break;case ox.stateParseElementLength:if(!tx(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got size ${this.currentEbmlElement.size} for current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.ebmlElementStack.length&&-1==this.currentEbmlElement.size&&(this.ebmlElementStack=[]),this.state=ox.stateParseElementValue;break;case ox.stateParseElementValue:const e=KM(this.currentEbmlElement.id);let n=e!==JM.Master||this.currentEbmlElement.id===$M.Colour;if(e===JM.Master&&-1!==this.currentEbmlElement.size&&this.ebmlElementStack.push({element:Object.assign(new ex,this.currentEbmlElement),bytesRemaining:this.currentEbmlElement.size}),this.currentEbmlElement.id===$M.CodecID){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;const t=nx(this.currentEbmlElement.type,e);1===this.currentTrackType?this.mediaInfo.videoTrack.codecName=t:2===this.currentTrackType&&(this.mediaInfo.audioTrack.codecName=t),null==this.options.logCallback||this.options.logCallback(`got codec id ${t}`)}else if(this.currentEbmlElement.id===$M.CodecPrivate){if(n=!1,null==this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))break}else if(this.currentEbmlElement.id===$M.TimestampScale){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.mediaInfo.timestampScale=nx(this.currentEbmlElement.type,e),this.timestampMsScale=this.mediaInfo.timestampScale/1e6,null==this.options.logCallback||this.options.logCallback(`got timestamp scale ${this.mediaInfo.timestampScale}`)}else if(this.currentEbmlElement.id===$M.Timestamp){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.clusterTimestamp=nx(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got cluser timestamp ${this.clusterTimestamp}`)}else if(this.currentEbmlElement.id===$M.TrackType){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.currentTrackType=nx(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got track with type ${this.currentTrackType}`)}else if(this.currentEbmlElement.id===$M.SimpleBlock){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;let t=new ZM;t.addArray(e);let r={};tx(t,r),r.size;let i=XM(t.extract(2));t.current,t.next(),t.trim();let o=(this.clusterTimestamp+i)*this.timestampMsScale;this.emit(zM.MediaPacket,new rx(t.array,o))}if(n&&this.uint8ArrayAggregator.skip(this.currentEbmlElement.size),e!==JM.Master&&this.ebmlElementStack.length){this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=this.currentEbmlElement.elementSize;do{if(0!==this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining)break;var t=this.ebmlElementStack.pop();this.ebmlElementStack.length&&(this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=t.element.elementSize),t.element.id===$M.Tracks&&this.emit(zM.MediaInfo,this.mediaInfo)}while(this.ebmlElementStack.length)}this.state=ox.stateParseElementId}this.uint8ArrayAggregator.trim()}catch(e){this.stop(),this.emit(zM.Error,e)}}}Qo(ox,"stateParseElementId",1),Qo(ox,"stateParseElementLength",2),Qo(ox,"stateParseElementValue",3);const sx=jl("cbio.H264Encoder");var ax=new WeakMap,cx=new WeakMap,lx=new WeakMap,ux=new WeakMap;class dx{constructor(e,t){if(Bo(this,ax,void 0),Bo(this,cx,void 0),Bo(this,lx,void 0),Bo(this,ux,[]),Qo(this,"reset",()=>{sx("resetting H264Encoder"),jo(ux,this).forEach(e=>{jo(ax,this).handleFrame(e,dx.MIME_TYPE,1/0)})}),Qo(this,"destroy",()=>{sx("destroy H264Encoder"),jo(lx,this)&&(jo(lx,this).stop(),zo(lx,this,null)),zo(ux,this,null)}),sx("H264Encoder constructed"),zo(ax,this,t),zo(cx,this,e),zo(lx,this,function(e){let t;return 0==("undefined"!=typeof MediaRecorder)?null:((0==("function"==typeof MediaRecorder.isTypeSupported)||MediaRecorder.isTypeSupported("video/webm;codecs=h264"))&&(t=new ox(new MediaRecorder(e,{mimeType:"video/webm;codecs=h264"}),void 0)),t)}(e)),!jo(lx,this))throw new Error("Failed to create MediaRecorderDemuxer");return jo(lx,this).on("media-packet",({data:e})=>{if(null===jo(lx,this))return;let t;0===e[0]&&0===e[1]&&0===e[2]&&1===e[3]?t=e[4]:0===e[0]&&0===e[1]&&1===e[2]&&(t=e[3]),7==(31&t)&&zo(ux,this,[]),jo(ux,this).push(e),jo(ax,this).handleFrame(e,dx.MIME_TYPE,1/0)}),jo(lx,this).start()}static isSupported(){return QM.isSupported("video/webm;codecs=h264")}}Qo(dx,"MIME_TYPE","video/avc");const hx=jl("cbio.JPEGEncoder");var fx=new WeakMap,px=new WeakMap,gx=new WeakMap,mx=new WeakMap,_x=new WeakMap;class vx{constructor(e,t){Bo(this,fx,void 0),Bo(this,px,void 0),Bo(this,gx,void 0),Bo(this,mx,void 0),Bo(this,_x,()=>{if(!jo(gx,this))return;const e=jo(gx,this).scale();jo(px,this).width=jo(fx,this).videoWidth*e,jo(px,this).height=jo(fx,this).videoHeight*e,jo(px,this).getContext("2d").drawImage(jo(fx,this),0,0,jo(px,this).width,jo(px,this).height),jo(px,this).toBlob(async e=>{if(!jo(gx,this))return;const t=new Uint8Array(await new Response(e).arrayBuffer());jo(gx,this).handleFrame(t,vx.MIME_TYPE,1)},vx.MIME_TYPE,.5)}),Qo(this,"reset",()=>{}),Qo(this,"destroy",()=>{hx("destroy JPEGEncoder"),jo(mx,this)&&(clearInterval(jo(mx,this)),zo(mx,this,null)),zo(gx,this,null),zo(fx,this,null),zo(px,this,null)}),hx("JPEGEncoder constructed"),zo(gx,this,t),zo(fx,this,document.createElement("video")),zo(px,this,document.createElement("canvas")),jo(fx,this).srcObject=e,jo(fx,this).play(),zo(mx,this,setInterval(jo(_x,this),100))}}Qo(vx,"MIME_TYPE","image/jpeg");const Ex=jl("cbio.MediaStreamFrameSource");var wx=new WeakMap,yx=new WeakMap,Ix=new WeakMap,Lx=new WeakMap,Cx=new WeakMap,Ax=new WeakMap,Sx=new WeakMap;class bx{constructor(e){Bo(this,wx,void 0),Bo(this,yx,void 0),Bo(this,Ix,void 0),Bo(this,Lx,null),Bo(this,Cx,[]),Bo(this,Ax,()=>jo(Cx,this).length&&!jo(Cx,this).includes(dx.MIME_TYPE)||!dx.isSupported()?vx:dx),Bo(this,Sx,async e=>{const t=jo(Ax,this).call(this);var n;return jo(Lx,this)instanceof t||(Ex("Changing encoder to",t),null===(n=jo(Lx,this))||void 0===n||n.destroy(),zo(Lx,this,new t(e,jo(Ix,this)))),jo(Lx,this)}),Qo(this,"setCodecs",e=>{zo(Cx,this,e||[]),jo(yx,this)&&jo(Sx,this).call(this,jo(yx,this))}),Qo(this,"capturingWillStart",async()=>{Ex("capturingWillStart for MediaStreamFrameSource");const e=await jo(Ix,this).requestPermission();if(e)try{if(e instanceof MediaStream?zo(yx,this,e):zo(yx,this,await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{ideal:1400},height:{ideal:1e3},frameRate:{max:10}},audio:!1,selfBrowserSurface:"include"})),[Xo(zo,[wx,this])._]=jo(yx,this).getVideoTracks(),!jo(wx,this))throw new Error("failed to get display media track");jo(wx,this).onended=()=>{Ex("track ended"),zo(wx,this,null),jo(Ix,this).captureEnded(),this.destroy()},jo(Sx,this).call(this,jo(yx,this)),jo(Ix,this).captureStarted(jo(yx,this))}catch(e){jo(Ix,this).captureEnded(e)}}),Qo(this,"capturingWillStop",()=>{var e;Ex("capturingWillStop for MediaStreamFrameSource"),null===(e=jo(Lx,this))||void 0===e||e.destroy(),zo(Lx,this,null),zo(yx,this,null),jo(wx,this)&&(jo(wx,this).stop(),zo(wx,this,null),jo(Ix,this).captureEnded())}),Qo(this,"reset",()=>{var e;Ex("resetting MediaStreamFrameSource"),null===(e=jo(Lx,this))||void 0===e||e.reset()}),Qo(this,"destroy",()=>{var e;Ex("destroying MediaStreamFrameSource"),this.capturingWillStop(),zo(Ix,this,null),null===(e=jo(Lx,this))||void 0===e||e.destroy(),zo(Lx,this,null)}),Ex("MediaStreamFrameSource constructed"),zo(Ix,this,e)}}const Nx=new class{constructor(){Qo(this,"proxify",e=>e),Qo(this,"unproxify",e=>e),Qo(this,"inUniversalProxy",!1)}},Tx=["true","yes",void 0],kx=["false","no"];var Ox=new WeakMap,Rx=new WeakMap,Px=new WeakMap;class Dx extends yv{constructor(e){super(),Bo(this,Ox,void 0),Bo(this,Rx,void 0),Bo(this,Px,e=>{e.url!==jo(Rx,this)&&(zo(Rx,this,e.url),this.emit("load",new Event("load")))}),zo(Ox,this,e),jo(Ox,this).on("updated",jo(Px,this))}get closed(){return jo(Ox,this).isClosed}get location(){return new URL(jo(Ox,this).url)}close(){jo(Ox,this).close()}addEventListener(e,t,n){null!=n&&n.once?this.once(e,t):this.on(e,t)}removeEventListener(e,t){this.off(e,t)}}var Mx=new WeakMap,xx=new WeakMap,Gx=new WeakMap,Ux=new WeakMap,Wx=new WeakMap,Vx=new WeakMap,Fx=new WeakMap,jx=new WeakMap,Bx=new WeakMap,zx=new WeakMap;let Hx=class extends yv{constructor(...e){super(...e),Bo(this,Mx,void 0),Bo(this,xx,void 0),Bo(this,Gx,void 0),Bo(this,Ux,void 0),Bo(this,Wx,void 0),Bo(this,Vx,void 0),Bo(this,Fx,void 0),Bo(this,jx,void 0),Bo(this,Bx,!1),Bo(this,zx,void 0),Qo(this,"load",(e,t,n,{element:r,type:i}={})=>{zo(xx,this,e);const o=(e=>"string"!=typeof e?{}:e.toLowerCase().split(",").reduce((e,t)=>{const[n,r]=t.split("=");return e[n]=Tx.indexOf(r)>=0||!(kx.indexOf(r)>=0)&&r,e},{}))(n);zo(Mx,this,o.popup?"_blank":t),zo(Gx,this,r),zo(Ux,this,i),zo(Wx,this,""),zo(Vx,this,""),zo(Fx,this,!0),zo(jx,this,!1),this.emit("updated",this)}),Qo(this,"close",()=>{jo(Bx,this)||(zo(Bx,this,!0),this.emit("closed",this))}),Qo(this,"serialize",()=>({url:this.url,icon:this.icon,title:this.title,isLoading:this.isLoading,isBlocked:this.isBlocked,isClosed:this.isClosed}))}get target(){return jo(Mx,this)}get url(){return jo(xx,this)}set url(e){this.url!==e&&(zo(xx,this,e),this.emit("updated",this))}get element(){return jo(Gx,this)}get type(){return jo(Ux,this)}get icon(){return jo(Wx,this)}set icon(e){jo(Wx,this)!==e&&(zo(Wx,this,e),this.emit("updated",this))}get title(){return jo(Vx,this)}set title(e){jo(Vx,this)!==e&&(zo(Vx,this,e),this.emit("updated",this))}get isLoading(){return jo(Fx,this)}set isLoading(e){jo(Fx,this)!==e&&(zo(Fx,this,e),this.emit("updated",this))}get isBlocked(){return jo(jx,this)}set isBlocked(e){jo(jx,this)!==e&&(zo(jx,this,e),this.emit("updated",this))}get isClosed(){return jo(Bx,this)}get windowProxy(){return jo(zx,this)||zo(zx,this,new Dx(this)),jo(zx,this)}};var qx=new WeakMap,Qx=new WeakMap,$x=new WeakMap,Yx=new WeakMap,Jx=new WeakMap,Kx=new WeakMap,Xx=new WeakMap,Zx=new WeakMap;class eG{constructor({onDocumentAdded:e}){Bo(this,qx,new Map),Bo(this,Qx,new Map),Bo(this,$x,new Map),Bo(this,Yx,new Map),Bo(this,Jx,void 0),Bo(this,Kx,({handle:e,document:t},{trusted:n})=>{if(!n)return;const r=this.getDocumentByHandle(e);r&&!r.isClosed&&t.isClosed&&r.close(!0)}),Bo(this,Xx,e=>{const t=jo(Qx,this).get(e);jo(qx,this).delete(t),jo(Qx,this).delete(e);const n=jo(Yx,this).get(t);jo(Yx,this).delete(t),n&&jo($x,this).delete(n)}),Bo(this,Zx,(e,t)=>{const n=()=>{const n={handle:e,document:t.serialize()};t.element?BU.broadcastToChildren("document",n):BU.sendToParent("document",n)};t.on("updated",n),n(),t.once("closed",()=>{t.off("updated",n),n(),jo(Xx,this).call(this,t)})}),Qo(this,"addDocument",(e,t,n)=>{var r;jo(qx,this).has(e)||n.isClosed||(jo(qx,this).set(e,n),jo(Qx,this).set(n,e),t&&(jo($x,this).set(t,e),jo(Yx,this).set(e,t)),jo(Zx,this).call(this,e,n),null===(r=jo(Jx,this))||void 0===r||r.call(this,n))}),Qo(this,"closeAllDocuments",()=>{for(const[,e]of jo(qx,this))e.close(),jo(Xx,this).call(this,e)}),Qo(this,"getDocumentByHandle",e=>jo(qx,this).get(e)),Qo(this,"resolveDocumentHandle",e=>jo($x,this).get(e)||lE()),Qo(this,"resolveDocument",(e,t)=>{const n=e||this.resolveDocumentHandle(t);return{handle:n,document:this.getDocumentByHandle(n)||new Hx}}),Qo(this,"destroy",()=>{BU.off("document",jo(Kx,this))}),zo(Jx,this,e),BU.on("document",jo(Kx,this))}}var tG=new WeakMap,nG=new WeakMap;class rG{constructor(e){Bo(this,tG,void 0),Bo(this,nG,()=>{const e=Nx.unproxify(window.location.href),t=new URL((()=>{const e=document.querySelectorAll('link[rel="icon"]');return e.length>0?e[0].href:"/favicon.ico"})(),e).href;jo(tG,this).call(this,{url:e,icon:Nx.proxify(t),title:document.title,isLoading:"complete"!==document.readyState,isBlocked:!1})}),Qo(this,"sendLoading",e=>{jo(tG,this).call(this,{url:e,icon:"",title:"",isLoading:!0,isBlocked:!1})}),Qo(this,"sendBlocked",e=>{jo(tG,this).call(this,{url:e,icon:"",title:"",isLoading:!1,isBlocked:!0})}),Qo(this,"destroy",()=>{pM.off("navigate",jo(nG,this)),window.removeEventListener("popstate",jo(nG,this),{capture:!0}),document.removeEventListener("readystatechange",jo(nG,this),{capture:!0})}),zo(tG,this,e),pM.on("navigate",jo(nG,this)),window.addEventListener("popstate",jo(nG,this),{capture:!0}),document.addEventListener("readystatechange",jo(nG,this),{capture:!0}),jo(nG,this).call(this)}}var iG,oG,sG={};!function(){if(iG)return sG;iG=1;var e=jn(),t=tl(),n=rt(),r=gn(),i=hn(),o=rl();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,s=n(this),a=r(s),c=o(s,0);return c.length=t(c,s,s,a,0,void 0===e?1:i(e)),c}})}(),oG||(oG=1,Yr()("flat"));const aG=()=>Nx.unproxify(window.location.href),cG=(e,t)=>{if(!e)return e;const n=e.map(e=>"string"==typeof e?e:"object"==typeof e?Object.entries(e).filter(([e])=>iA([e])(t)).map(([e,t])=>t):null).filter(Boolean).flat(2);return[...new Set(n)]},lG=e=>{const t=aG();return cG(e,t)},uG=(e,t)=>{if(!e)return!1;if(!t)return!0;const n=cG(e,t),r=cG(e,aG());if(n.length!==r.length)return!0;const i=[...n].sort(),o=[...r].sort();return!i.every((e,t)=>e===o[t])};var dG=new WeakMap,hG=new WeakMap,fG=new WeakMap,pG=new WeakMap,gG=new WeakMap,mG=new WeakMap,_G=new WeakMap,vG=new WeakMap,EG=new WeakMap,wG=new WeakMap,yG=new WeakMap,IG=new WeakMap,LG=new WeakMap,CG=new WeakMap,AG=new WeakMap,SG=new WeakMap,bG=new WeakMap,NG=new WeakMap,TG=new WeakMap,kG=new WeakMap;class OG{constructor(e,t,n){Bo(this,dG,void 0),Bo(this,hG,void 0),Bo(this,fG,void 0),Bo(this,pG,void 0),Bo(this,gG,void 0),Bo(this,mG,void 0),Bo(this,_G,void 0),Bo(this,vG,e=>{var t;return!(null===(t=jo(dG,this))||void 0===t||!t.isActive()||!jo(dG,this)[ST].proxyToken())}),Qo(this,"handleNavigation",(e,t,n,r)=>{const{name:i,go:o,e:s,type:a,block:c}=r,{handle:l,document:u}=jo(gG,this).resolveDocument(r.handle,i),{windowProxy:d}=u,h=(s.view||window)!==window,f=!t||"_self"===t,p={url:e,target:t,windowFeatures:n,type:a,nav:{block:()=>(s.eventPhase===Event.CAPTURING_PHASE||(c(),h||jo(mG,this).sendBlocked(e)),{windowProxy:d}),parent:r=>(u.load(e,t,n,{type:r||a}),s.eventPhase===Event.CAPTURING_PHASE||(jo(gG,this).addDocument(l,i,u),jo(hG,this).open(e,t,n,{type:r||a,handle:l})),{windowProxy:d}),continue:()=>{const r=jo(_G,this).runHandler(e,t,n,{type:a,document:u});return r.rewrittenUrl?{rewrittenUrl:r.rewrittenUrl}:(r.document&&jo(gG,this).addDocument(l,i,r.document),{windowProxy:d})},replay:()=>o()},getConsent:()=>jo(hG,this).confirmOpen(e,a),windowProxy:d,setLoading:()=>!h&&f&&jo(mG,this).sendLoading(e)};return(Nx.inUniversalProxy?jo(wG,this):jo(EG,this))(p)}),Bo(this,EG,({target:e,type:t,nav:n,getConsent:r,windowProxy:i})=>t?t===_T?n.continue():jo(vG,this).call(this,t)?(r().then(({accepted:t})=>t?"_blank"===e?n.parent():void n.continue():n.replay()),{windowProxy:i}):n.continue():n.continue()),Bo(this,wG,({url:e,target:t,type:n,nav:r,getConsent:i,windowProxy:o,setLoading:s})=>{const a=new URL(Nx.unproxify(window.location.href)).origin,c=a!==new URL(e,a).origin;return n?c?jo(vG,this).call(this,n)?(i().then(({accepted:e})=>e?"_blank"===t?r.parent():n===mT?r.continue():(s(),void r.replay()):r.block()),{windowProxy:o}):r.continue():"_blank"===t?r.parent():n===mT?r.continue():(s(),{rewrittenUrl:e}):"_blank"===t?r.parent(vT):r.block()}),Bo(this,yG,e=>{jo(SG,this).call(this,e),e.isActive()&&!jo(pG,this)&&jo(LG,this).call(this)}),Bo(this,IG,()=>{jo(CG,this).call(this),jo(gG,this)&&jo(gG,this).closeAllDocuments()}),Bo(this,LG,()=>{var e;null!==(e=jo(pG,this))&&void 0!==e&&e.isRunning()||(zo(pG,this,new dM),jo(pG,this).setSource(new jM(e=>(jo(fG,this).call(this,"patch",e),!0))),jo(pG,this).start(),jo(pG,this).invalidateFrame())}),Bo(this,CG,()=>{jo(pG,this)&&jo(pG,this).destroy(),zo(pG,this,null)}),Bo(this,AG,(e,t)=>{jo(SG,this).call(this,jo(dG,this)),jo(bG,this).call(this),jo(NG,this).call(this),(uG(jo(hG,this).redactedViews,t)||uG(jo(hG,this).unredactedViews,t)||uG(jo(dG,this).redactionSelectors(),t)||uG(jo(dG,this).unredactionSelectors(),t))&&setTimeout(()=>{this.invalidateFrame()},0)}),Qo(this,"invalidateFrame",()=>{var e;null!==(e=jo(pG,this))&&void 0!==e&&e.isRunning()&&jo(pG,this).invalidateFrame()}),Qo(this,"partialSync",async e=>{var t;if(null===(t=jo(pG,this))||void 0===t||!t.isRunning())return;const n=jo(pG,this).getSource();n instanceof jM&&(await oL(e),n.partialSync(e))}),Bo(this,SG,e=>{var t,n;const r=null!==(t=jo(hG,this).redactedViews)&&void 0!==t?t:[],i=null!==(n=jo(hG,this).unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];YI.init(new gL(lG(o),lG(s)))}),Bo(this,bG,()=>{qI.setIgnoredViews(lG(jo(hG,this).ignoredViews))}),Bo(this,NG,()=>{XI.init(new gL(lG(jo(hG,this).disabledViews),lG(jo(hG,this).enabledViews)))}),Bo(this,TG,e=>jo(fG,this).call(this,"click",e)),Bo(this,kG,e=>jo(fG,this).call(this,"change",e)),Qo(this,"destroy",()=>{jo(dG,this)&&(jo(dG,this).removeListener("update",jo(yG,this)),jo(dG,this).removeListener("ended",jo(IG,this))),zo(dG,this,null),jo(_G,this)&&jo(_G,this).destroy(),zo(_G,this,null),pM.off("navigate",jo(AG,this)),WL.off("click",jo(TG,this)),WL.off("change",jo(kG,this)),jo(mG,this)&&jo(mG,this).destroy(),zo(mG,this,null),jo(gG,this)&&jo(gG,this).destroy(),zo(gG,this,null)}),zo(dG,this,e),zo(hG,this,t),zo(fG,this,n),jo(yG,this).call(this,e),e.on("updated",jo(yG,this)),e.on("ended",jo(IG,this)),Nx.inUniversalProxy&&zo(mG,this,new rG(e=>jo(fG,this).call(this,"document",{document:e}))),zo(gG,this,new eG({onDocumentAdded:e=>{e.element&&jo(hG,this).showDocument(e)}}));const r=new xT(e,t),i=new HT(e,t),o=new lM(e,t);zo(_G,this,new CT({shouldNavigate:jo(vG,this),handlers:[r,i,o],handleNavigation:this.handleNavigation})),pM.on("navigate",jo(AG,this)),WL.on("click",jo(TG,this)),WL.on("change",jo(kG,this)),jo(bG,this).call(this),jo(NG,this).call(this)}navigate(e,t,{type:n}){const r=jo(_G,this).navigate(e,t,{type:n});if("string"==typeof r)return window.open(r,t)}}const RG=jl("cbio.iframes.trust"),{entries:PG,setPrototypeOf:DG,isFrozen:MG,getPrototypeOf:xG,getOwnPropertyDescriptor:GG}=Object;let{freeze:UG,seal:WG,create:VG}=Object,{apply:FG,construct:jG}="undefined"!=typeof Reflect&&Reflect;UG||(UG=function(e){return e}),WG||(WG=function(e){return e}),FG||(FG=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),jG||(jG=function(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 new e(...n)});const BG=iU(Array.prototype.forEach),zG=iU(Array.prototype.lastIndexOf),HG=iU(Array.prototype.pop),qG=iU(Array.prototype.push),QG=iU(Array.prototype.splice),$G=iU(String.prototype.toLowerCase),YG=iU(String.prototype.toString),JG=iU(String.prototype.match),KG=iU(String.prototype.replace),XG=iU(String.prototype.indexOf),ZG=iU(String.prototype.trim),eU=iU(Object.prototype.hasOwnProperty),tU=iU(RegExp.prototype.test),nU=(rU=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jG(rU,t)});var rU;function iU(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return FG(e,t,r)}}function oU(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$G;DG&&DG(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(MG(t)||(t[r]=e),i=e)}e[i]=!0}return e}function sU(e){for(let t=0;t<e.length;t++)eU(e,t)||(e[t]=null);return e}function aU(e){const t=VG(null);for(const[n,r]of PG(e))eU(e,n)&&(Array.isArray(r)?t[n]=sU(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=aU(r):t[n]=r);return t}function cU(e,t){for(;null!==e;){const n=GG(e,t);if(n){if(n.get)return iU(n.get);if("function"==typeof n.value)return iU(n.value)}e=xG(e)}return function(){return null}}const lU=UG(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),uU=UG(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),dU=UG(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hU=UG(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fU=UG(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),pU=UG(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gU=UG(["#text"]),mU=UG(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_U=UG(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vU=UG(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),EU=UG(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wU=WG(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yU=WG(/<%[\w\W]*|[\w\W]*%>/gm),IU=WG(/\$\{[\w\W]*/gm),LU=WG(/^data-[\-\w.\u00B7-\uFFFF]+$/),CU=WG(/^aria-[\-\w]+$/),AU=WG(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),SU=WG(/^(?:\w+script|data):/i),bU=WG(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),NU=WG(/^html$/i),TU=WG(/^[a-z][.\w]*(-[.\w]+)+$/i);var kU=Object.freeze({__proto__:null,ARIA_ATTR:CU,ATTR_WHITESPACE:bU,CUSTOM_ELEMENT:TU,DATA_ATTR:LU,DOCTYPE_NAME:NU,ERB_EXPR:yU,IS_ALLOWED_URI:AU,IS_SCRIPT_OR_DATA:SU,MUSTACHE_EXPR:wU,TMPLIT_EXPR:IU});const OU=function(){return"undefined"==typeof window?null:window};var RU=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:OU();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=l.prototype,m=cU(g,"cloneNode"),_=cU(g,"remove"),v=cU(g,"nextSibling"),E=cU(g,"childNodes"),w=cU(g,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let y,I="";const{implementation:L,createNodeIterator:C,createDocumentFragment:A,getElementsByTagName:S}=r,{importNode:b}=i;let N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof PG&&"function"==typeof w&&L&&void 0!==L.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:k,TMPLIT_EXPR:O,DATA_ATTR:R,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:x}=kU;let{IS_ALLOWED_URI:G}=kU,U=null;const W=oU({},[...lU,...uU,...dU,...fU,...gU]);let V=null;const F=oU({},[...mU,..._U,...vU,...EU]);let j=Object.seal(VG(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,z=null;const H=Object.seal(VG(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let q=!0,Q=!0,$=!1,Y=!0,J=!1,K=!0,X=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1,se=!0,ae=!1,ce={},le=null;const ue=oU({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const he=oU({},["audio","video","img","source","image","track"]);let fe=null;const pe=oU({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ge="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",_e="http://www.w3.org/1999/xhtml";let ve=_e,Ee=!1,we=null;const ye=oU({},[ge,me,_e],YG);let Ie=oU({},["mi","mo","mn","ms","mtext"]),Le=oU({},["annotation-xml"]);const Ce=oU({},["title","style","font","a","script"]);let Ae=null;const Se=["application/xhtml+xml","text/html"];let be=null,Ne=null;const Te=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ne||Ne!==e){if(e&&"object"==typeof e||(e={}),e=aU(e),Ae=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===Ae?YG:$G,U=eU(e,"ALLOWED_TAGS")?oU({},e.ALLOWED_TAGS,be):W,V=eU(e,"ALLOWED_ATTR")?oU({},e.ALLOWED_ATTR,be):F,we=eU(e,"ALLOWED_NAMESPACES")?oU({},e.ALLOWED_NAMESPACES,YG):ye,fe=eU(e,"ADD_URI_SAFE_ATTR")?oU(aU(pe),e.ADD_URI_SAFE_ATTR,be):pe,de=eU(e,"ADD_DATA_URI_TAGS")?oU(aU(he),e.ADD_DATA_URI_TAGS,be):he,le=eU(e,"FORBID_CONTENTS")?oU({},e.FORBID_CONTENTS,be):ue,B=eU(e,"FORBID_TAGS")?oU({},e.FORBID_TAGS,be):aU({}),z=eU(e,"FORBID_ATTR")?oU({},e.FORBID_ATTR,be):aU({}),ce=!!eU(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,$=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,G=e.ALLOWED_URI_REGEXP||AU,ve=e.NAMESPACE||_e,Ie=e.MATHML_TEXT_INTEGRATION_POINTS||Ie,Le=e.HTML_INTEGRATION_POINTS||Le,j=e.CUSTOM_ELEMENT_HANDLING||VG(null),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Q=!1),ne&&(te=!0),ce&&(U=oU({},gU),V=VG(null),!0===ce.html&&(oU(U,lU),oU(V,mU)),!0===ce.svg&&(oU(U,uU),oU(V,_U),oU(V,EU)),!0===ce.svgFilters&&(oU(U,dU),oU(V,_U),oU(V,EU)),!0===ce.mathMl&&(oU(U,fU),oU(V,vU),oU(V,EU))),H.tagCheck=null,H.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(U===W&&(U=aU(U)),oU(U,e.ADD_TAGS,be))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(V===F&&(V=aU(V)),oU(V,e.ADD_ATTR,be))),e.ADD_URI_SAFE_ATTR&&oU(fe,e.ADD_URI_SAFE_ATTR,be),e.FORBID_CONTENTS&&(le===ue&&(le=aU(le)),oU(le,e.FORBID_CONTENTS,be)),e.ADD_FORBID_CONTENTS&&(le===ue&&(le=aU(le)),oU(le,e.ADD_FORBID_CONTENTS,be)),se&&(U["#text"]=!0),X&&oU(U,["html","head","body"]),U.table&&(oU(U,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw nU('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw nU('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');y=e.TRUSTED_TYPES_POLICY,I=y.createHTML("")}else void 0===y&&(y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,o)),null!==y&&"string"==typeof I&&(I=y.createHTML(""));UG&&UG(e),Ne=e}},Re=oU({},[...uU,...dU,...hU]),Pe=oU({},[...fU,...pU]),De=function(e){qG(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Me=function(e,t){try{qG(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){qG(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{De(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},xe=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=JG(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ae&&ve===_e&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=y?y.createHTML(e):e;if(ve===_e)try{t=(new f).parseFromString(i,Ae)}catch(e){}if(!t||!t.documentElement){t=L.createDocument(ve,"template",null);try{t.documentElement.innerHTML=Ee?I:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ve===_e?S.call(t,X?"html":"body")[0]:X?t.documentElement:o},Ge=function(e){return C.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},We=function(e){return"function"==typeof c&&e instanceof c};function Ve(e,t,r){BG(e,e=>{e.call(n,t,r,Ne)})}const Fe=function(e){let t=null;if(Ve(N.beforeSanitizeElements,e,null),Ue(e))return De(e),!0;const r=be(e.nodeName);if(Ve(N.uponSanitizeElement,e,{tagName:r,allowedTags:U}),K&&e.hasChildNodes()&&!We(e.firstElementChild)&&tU(/<[/\w!]/g,e.innerHTML)&&tU(/<[/\w!]/g,e.textContent))return De(e),!0;if(K&&e.namespaceURI===_e&&"style"===r&&We(e.firstElementChild))return De(e),!0;if(7===e.nodeType)return De(e),!0;if(K&&8===e.nodeType&&tU(/<[/\w]/g,e.data))return De(e),!0;if(B[r]||!(H.tagCheck instanceof Function&&H.tagCheck(r))&&!U[r]){if(!B[r]&&Be(r)){if(j.tagNameCheck instanceof RegExp&&tU(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}if(se&&!le[r]){const t=w(e)||e.parentNode,n=E(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,v(e))}}return De(e),!0}return e instanceof l&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=$G(e.tagName),r=$G(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===_e?"svg"===n:t.namespaceURI===ge?"svg"===n&&("annotation-xml"===r||Ie[r]):Boolean(Re[n]):e.namespaceURI===ge?t.namespaceURI===_e?"math"===n:t.namespaceURI===me?"math"===n&&Le[r]:Boolean(Pe[n]):e.namespaceURI===_e?!(t.namespaceURI===me&&!Le[r])&&!(t.namespaceURI===ge&&!Ie[r])&&!Pe[n]&&(Ce[n]||!Re[n]):!("application/xhtml+xml"!==Ae||!we[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!tU(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&3===e.nodeType&&(t=e.textContent,BG([T,k,O],e=>{t=KG(t,e," ")}),e.textContent!==t&&(qG(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ve(N.afterSanitizeElements,e,null),!1):(De(e),!0)},je=function(e,t,n){if(z[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if(Q&&!z[t]&&tU(R,t));else if(q&&tU(P,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!V[t]||z[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&tU(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&tU(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&tU(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(fe[t]);else if(tU(G,KG(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==XG(n,"data:")||!de[e])if($&&!tU(D,KG(n,M,"")));else if(n)return!1;return!0},Be=function(e){return"annotation-xml"!==e&&JG(e,x)},ze=function(e){Ve(N.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:a,value:c}=o,l=be(s),u=c;let d="value"===s?u:ZG(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ve(N.uponSanitizeAttribute,e,r),d=r.attrValue,!oe||"id"!==l&&"name"!==l||(Me(s,e),d="user-content-"+d),K&&tU(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){Me(s,e);continue}if("attributename"===l&&JG(d,"href")){Me(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Me(s,e);continue}if(!Y&&tU(/\/>/i,d)){Me(s,e);continue}J&&BG([T,k,O],e=>{d=KG(d,e," ")});const h=be(e.nodeName);if(je(h,l,d)){if(y&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(a);else switch(p.getAttributeType(h,l)){case"TrustedHTML":d=y.createHTML(d);break;case"TrustedScriptURL":d=y.createScriptURL(d)}if(d!==u)try{a?e.setAttributeNS(a,s,d):e.setAttribute(s,d),Ue(e)?De(e):HG(n.removed)}catch(t){Me(s,e)}}else Me(s,e)}Ve(N.afterSanitizeAttributes,e,null)},He=function(e){let t=null;const n=Ge(e);for(Ve(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Ve(N.uponSanitizeShadowNode,t,null),Fe(t),ze(t),t.content instanceof s&&He(t.content);Ve(N.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if(Ee=!e,Ee&&(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw nU("toString is not a function");if("string"!=typeof(e=e.toString()))throw nU("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=be(e.nodeName);if(!U[t]||B[t])throw nU("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=xe("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!J&&!X&&-1===e.indexOf("<"))return y&&re?y.createHTML(e):e;if(r=xe(e),!r)return te?null:re?I:""}r&&ee&&De(r.firstChild);const u=Ge(ae?e:r);for(;a=u.nextNode();)Fe(a),ze(a),a.content instanceof s&&He(a.content);if(ae)return e;if(te){if(J){r.normalize();let e=r.innerHTML;BG([T,k,O],t=>{e=KG(e,t," ")}),r.innerHTML=e}if(ne)for(l=A.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(V.shadowroot||V.shadowrootmode)&&(l=b.call(i,l,!0)),l}let d=X?r.outerHTML:r.innerHTML;return X&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&tU(NU,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&BG([T,k,O],e=>{d=KG(d,e," ")}),y&&re?y.createHTML(d):d},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ne=null,Z=!1},n.isValidAttribute=function(e,t,n){Ne||Oe({});const r=be(e),i=be(t);return je(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&qG(N[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=zG(N[e],t);return-1===n?void 0:QG(N[e],n,1)[0]}return HG(N[e])},n.removeHooks=function(e){N[e]=[]},n.removeAllHooks=function(){N={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const PU=jl("cbio.ControlEvents"),DU=new class{constructor(){Qo(this,"_applyScroll",(e,t)=>{const n=e.defaultView||e;n.scrollTo?n.scrollTo(t.x,t.y):(n.scrollTop=t.y,n.scrollLeft=t.x)}),Qo(this,"_updateCheckbox",(e,{checked:t})=>{if(void 0!==t&&"INPUT"===e.tagName&&void 0!==e.checked){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"checked");n&&n.set.call(e,t)}}),Qo(this,"_updateInnerHTML",(e,{innerHTML:t})=>{if(void 0!==t){const n=(new DOMParser).parseFromString(RU.sanitize(t),"text/html");e.replaceChildren(...n.body.children)}}),Qo(this,"_updateValue",(e,{value:t,selectedOptions:n},r)=>{if(void 0!==t&&"input"===r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value");n&&n.set.call(e,t)}"TEXTAREA"===e.tagName&&PI.track(e.childNodes[0]),"SELECT"===e.tagName&&null!=n&&[...e.options].forEach(e=>{e.selected=n.includes(e.value)})}),Qo(this,"_updateTarget",(e,t)=>{this._updateValue(e,t.target,t.state),this._updateCheckbox(e,t.target),this._updateInnerHTML(e,t.target)}),Qo(this,"_generateMouse",(e,t)=>new MouseEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generatePointer",(e,t)=>new PointerEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateKeypress",(e,t)=>new KeyboardEvent(t.state,{key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,charCode:t.charCode,keyCode:t.keyCode,which:t.which,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateFocus",(e,t)=>new FocusEvent(t.state,{bubbles:["focusin","focusout"].includes(t.state),cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateChange",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Qo(this,"_generateInput",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,inputType:t.inputType,data:t.data})),Qo(this,"_generateSelection",(e,t)=>new CustomEvent("selection",{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,selection:t.selection})),Qo(this,"_generateEvent",(e,t,n)=>{switch(n.state.includes("move")&&PU("generate",n,"on",t),e){case"keypress":return this._generateKeypress(t,n);case"mouse":return this._generateMouse(t,n);case"pointer":return this._generatePointer(t,n);case"change":return this._generateChange(t,n);case"input":return this._generateInput(t,n);case"focus":return this._generateFocus(t,n);case"select":return this._generateSelection(t,n);default:return console.warn("CobrowseIO: unknown event type",e,n),null}}),Qo(this,"_setSelection",(e,{selection:t})=>{if(!(e.__cobrowse_user_selection_timestamp>Date.now()-100)&&e.getSelection&&e.getSelection())try{t?(e.__last_agent_selection_ts=Date.now(),e.getSelection().removeAllRanges(),t.forEach(t=>{const{start:n,startOffset:r,end:i,endOffset:o}=t,s=document.createRange(),a=PI.getById(n),c=PI.getById(i);s.setStart(a,r),s.setEnd(c,o),e.getSelection().addRange(s)})):e.getSelection().removeAllRanges()}catch(e){console.warn("Failed to apply selection",t,e)}}),Qo(this,"_setInputSelection",(e,{selection:t})=>{if(!(e.ownerDocument.__cobrowse_user_selection_timestamp>Date.now()-100)&&["text","textarea","search","url"].includes(e.type))try{if(e.ownerDocument.__last_agent_selection_ts=Date.now(),t){const{start:n,end:r,direction:i}=t;e.focus(),e.setSelectionRange(n,r,i)}else e.getRootNode({composed:!0}).activeElement===e&&e.setSelectionRange(null,null)}catch(e){console.warn("Failed to select text",e)}}),Qo(this,"applyEvent",(e,t)=>{if(!t.target)return null;const n=PI.getById(t.target.id);if(!n)return null;if(YI.isRedacted(n))return null;if(XI.isDisabled(n))return null;try{var r;if("scroll"===e)return this._applyScroll(n,t);if(null!==(r=n._cobrowse_suppress_events)&&void 0!==r&&r.has(t.state))return n._cobrowse_suppress_events.delete(t.state),0===n._cobrowse_suppress_events.size&&delete n._cobrowse_suppress_events.size,null;const i=this._generateEvent(e,n,t);return i&&(n.dispatchEvent(i)?(["keydown","keypress","input"].includes(t.state)&&this._updateTarget(n,t),["selectionchange"].includes(t.state)&&this._setSelection(n,t),["select"].includes(t.state)&&this._setInputSelection(n,t)):"keydown"===t.state?n._cobrowse_suppress_events=new Set(["keypress","input"]):"keypress"===t.state&&(n._cobrowse_suppress_events=new Set(["input"]))),i}catch(t){return console.warn("Error while injecting event",e,t),null}})}isTypingInput(e){if(e.target){const t=PI.getById(e.target.id);if(["text","email","number","password","search","tel","url","datetime","textarea"].includes(null==t?void 0:t.type))return!0}return!1}},MU=jl("cbio.iframes.control"),xU=jl("cbio.iframes.sessions");function GU(e,t){function n(t){const n=t[ST].serializeSanitized();if(e.broadcastToChildren("session",n,{trustedOnly:!1}),t.id()){const n=t[ST].serialize();e.broadcastToChildren("session",n,{trustedOnly:!0})}}function r(n,{iframe:r,trusted:i}){if(!r)return;const o=t.currentSession;if(o){const t=i?o[ST].serialize():o[ST].serializeSanitized();e.send(r.contentWindow,"session",t,{trustedOnly:i})}}function i(e,{trusted:r,fromParent:i}){if(!r)return xU("Ignoring untrusted session event");i&&(t.currentSession[ST].deserialize(e),n(t.currentSession))}return e.on("trust",r),e.on("session",i),{publish:n,unsubscribe:()=>{e.off("trust",r),e.off("session",i)}}}class UU{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const WU=jl("cbio.iframes.sync");function VU(e,t,{waitForParentSync:n}={}){let r,i=!n||new UU;function o(e){return{redactedViews:[...(null==e?void 0:e.redactedViews)||[],...t.redactedViews||[]],unredactedViews:[...(null==e?void 0:e.unredactedViews)||[],...t.unredactedViews||[]],ignoredViews:[...(null==e?void 0:e.ignoredViews)||[],...t.ignoredViews||[]],disabledViews:[...(null==e?void 0:e.disabledViews)||[],...t.disabledViews||[]],enabledViews:[...(null==e?void 0:e.enabledViews)||[],...t.enabledViews||[]],universalLinks:(null==e?void 0:e.universalLinks)||t.universalLinks||[],pdfLinks:(null==e?void 0:e.pdfLinks)||t.pdfLinks||[],api:(null==e?void 0:e.api)||t.api}}function s(e){const t=o(e);return Yo(Yo({},t),{},{redactedViews:t.redactedViews.filter(e=>"string"!=typeof e),unredactedViews:t.unredactedViews.filter(e=>"string"!=typeof e),ignoredViews:t.ignoredViews.filter(e=>"string"!=typeof e),disabledViews:t.disabledViews.filter(e=>"string"!=typeof e),enabledViews:t.enabledViews.filter(e=>"string"!=typeof e)})}async function a(t,{iframe:n}){n&&(await i.promise,e.send(n.contentWindow,"sync",s(r),{trustedOnly:!1}))}function c(e){WU("iframe available",e,"issuing sync"),e&&a(0,{iframe:e})}function l(t,{source:n,origin:o,trusted:a}){if(!a)return WU("Ignoring untrusted sync event");r=t,i.resolve(),e.broadcastToChildren("sync",s(t),{trustedOnly:!1})}return e.on("init",a),e.on("iframe_discovered",c),e.on("sync",l),{getSyncedConfig:async()=>(await i.promise,o(r)),unsubscribe:()=>{r=null,i=!n||new UU,e.off("init",a),e.off("iframe_discovered",c),e.off("sync",l)},sendSync:async()=>{await i.promise,e.broadcastToChildren("sync",s(r),{trustedOnly:!1})}}}const FU=jl("cbio.iframes"),jU=function(){let e=window;do{if(e=e.parent,CA(e))return e}while(e!==e.parent);return null}(),BU=new mA(jU),zU=new IA(BU,jU);!function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return RG("Ignoring untrusted sync event");e.sendToParent("trust",null,{trustedOnly:!1}),"complete"!==document.readyState&&window.addEventListener("load",()=>{e.sendToParent("trust",null,{trustedOnly:!1})},{once:!0,capture:!0})});const t=({target:t})=>{e.breakTrust(t.contentWindow)};e.on("trust",(n,{iframe:r,origin:i})=>{r&&(r.removeEventListener("load",t,{capture:!0}),r.addEventListener("load",t,{capture:!0}),e.establishTrust(r.contentWindow,i))})}(BU),function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return MU("Ignoring untrusted sync event");Iv.onChange=t=>e.sendToParent("mouse",t),Iv.track(window)}),e.on("mouse",(e,{iframe:t})=>{MU("Received mouse event in",e,document,"from",t),t&&(Iv.setPosition(e.x,e.y,t),Iv.setDown(e.down))}),e.on("control",(t,{trusted:n,trustedOnly:r})=>{if(MU("Received control event in",document),!n)return MU("Ignoring untrusted control event");DU.applyEvent(...t),e.broadcastToChildren("control",t,{trustedOnly:r})})}(BU);const HU=e=>t=>{const n=t[ST].proxyUrl(),r=new URL(n,e);FU("trusting",r.origin),BU.automaticTrustedOrigins=[r.origin]},qU="_cobrowse_active_highlight",QU=jl("cbio.HighlightTracking");var $U=new WeakMap,YU=new WeakSet;function JU(e){EE().removeItem(qU),this.emit("end",e)}const KU=new class extends yv{constructor(...e){super(...e),qo(this,YU),Bo(this,$U,new eS),Qo(this,"highlightAndWait",async(e,t)=>{const n=t.id;EE().setItem(qU,n),jo($U,this).monitor();try{if(!await this.highlight(e,t))return QU("highlight did not run"),void xo(YU,this,JU).call(this,{id:n,state:"not-found"});await GA.ensureNoNavigation(),await jo($U,this).waitUntilStable(),xo(YU,this,JU).call(this,{id:n,state:"resolved"})}finally{jo($U,this).destroy()}})}async highlight(e,t){if(await gT.highlight(e,t))return!0;const n=await Promise.all(BU.trustedIframes.map(async e=>{const n=new IA(BU,e.contentWindow);try{return await n.send("highlight",t)}finally{n.destroy()}}));return n.some(Boolean)}resolvePendingHighlight(){const e=EE().getItem(qU);e&&(QU("resolving pending highlight",e),xo(YU,this,JU).call(this,{id:e,state:"resolved"}))}};var XU=new WeakMap,ZU=new WeakMap,eW=new WeakMap,tW=new WeakMap,nW=new WeakMap,rW=new WeakMap,iW=new WeakMap;class oW{constructor(e){Bo(this,XU,void 0),Bo(this,ZU,void 0),Bo(this,eW,void 0),Bo(this,tW,void 0),Qo(this,"open",()=>{jo(XU,this).isEnded()||(jo(rW,this).call(this),jo(iW,this).call(this))}),Qo(this,"close",()=>{window.removeEventListener("visibilitychange",this.onVisibilityChange),jo(tW,this)&&(clearInterval(jo(tW,this)),zo(tW,this,null)),jo(XU,this)&&(jo(XU,this).removeListener("updated",this.open),zo(XU,this,null)),jo(eW,this)&&(jo(eW,this).close(),zo(eW,this,null)),jo(ZU,this)&&(jo(ZU,this).close(),zo(ZU,this,null))}),Bo(this,nW,(e,t)=>{const n=new nA({getUrl:()=>uD(e),getProtocols:()=>[`cbio.http.headers.authorization.bearer.${window.btoa(jo(XU,this).field(t)).replaceAll("=","")}`]});return n.on("error",e=>{console.warn("CobrowseIO session socket error:",e)}),n}),Bo(this,rW,()=>{const e=jo(XU,this).field("control_url"),t=jo(XU,this).field("control_token");e&&t&&!jo(ZU,this)&&(zo(ZU,this,jo(nW,this).call(this,e,"control_token")),jo(ZU,this).on("open",()=>{jo(ZU,this).send("filter",{events:["session"]}),jo(XU,this).fetch().catch(e=>{console.warn("CobrowseIO failed fetching session state",e)})}),jo(ZU,this).on("event",(e,t)=>{"session"===e&&jo(XU,this).updateResource(t)}))}),Bo(this,iW,()=>{const e=jo(XU,this).field("stream_url"),t=jo(XU,this).field("stream_token");if(e&&t&&!jo(eW,this)){zo(eW,this,jo(nW,this).call(this,e,"stream_token")),zo(tW,this,setInterval(()=>{const e=Math.round(jo(eW,this).metrics.latency());jo(XU,this)[ST].setMetrics({latency:e})},1e3));const t=["highlight","drawing","laser","url"],n=["touch","mouse","pointer","keypress","scroll","focus","input","change","select"];jo(eW,this).on("event",(e,r)=>{"sync"===e&&jo(XU,this).emit("sync",r),"remote-error"===e&&jo(XU,this).emit("remote-error",r),"client"===e?jo(XU,this).emit("client",r):"probe"===e?jo(eW,this).send("alive",r):t.includes(e)?jo(XU,this).emit(e,r):n.includes(e)&&jo(XU,this).emit("control",e,r),jo(XU,this)[ST].setMetrics({last_alive:new Date})}),jo(eW,this).on("open",()=>{jo(eW,this).send("filter",{events:[...n,...t,"sync","probe","remote-error","client","sdp","icecandidate"]}),jo(XU,this).emit("stream-open")})}}),zo(XU,this,e),e.on("updated",this.open),e[ST].setMetrics({last_alive:null,latency:null}),this.open()}get stream(){return jo(eW,this)}}const sW=new class{constructor(){Qo(this,"el",()=>(this._el||(this._el=document.createElement("img"),this._el.className="cbio_session_overlay",this._el.style.pointerEvents="none",this._el.style.visibility="visible",this._el.style.width="10vw",this._el.style.height="100vh",this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.display="none",this._el.style.top="0",this._el.style.left="0"),this._el)),Qo(this,"_arrayBufferToBase64",e=>{let t="";const n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e+=1)t+=String.fromCharCode(n[e]);return window.btoa(t)}),Qo(this,"remove",(e,t=1e3)=>{e.style.transition=`opacity ${t}ms ease-in-out`,e.style.opacity=1,e.addEventListener("transitionend",function(){e.remove()}),e.style.opacity=0}),Qo(this,"update",e=>{if(NE.isActive())if(e.image){const t=this.el().cloneNode(),n=`data:${e.mime_type};base64,${this._arrayBufferToBase64(e.image)}`,{id:r="cb_io_drawing"}=e;t.style.left=100*e.x+"%",t.style.top=100*e.y+"%",t.style.height=100*e.height+"%",t.style.width=100*e.width+"%",t.style.display="block",t.src=n,t.id=r,t.dataset.agent=e.agent,t.decode().then(()=>{const n=document.getElementById(r);n?n.replaceWith(t):document.body.appendChild(t),null!=e.disappears_in&&setTimeout(()=>{this.remove(t,e.fade_duration)},e.disappears_in)}).catch(e=>{console.error(e)})}else this.hide(e.agent)}),Qo(this,"hide",e=>{(null!=e?document.querySelectorAll(`.cbio_session_overlay[data-agent="${e}"]`):document.querySelectorAll(".cbio_session_overlay")).forEach(function(e){e.remove()})})}},aW=new Set;function cW(e,t,n,r={}){!function(e,t){const n=`${e}-${t}`;if(aW.has(n))return;const r=document.createElement("style");r.id=`cbio_session_ripple_stylesheet_${n}`,r.textContent=`\n @keyframes cbio_session_ripple_effect-${n} {\n 0% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 1;\n }\n 100% {\n transform: translate(-50%, -50%) scale(${t});\n opacity: 0;\n }\n }\n .cbio_session_ripple-${n} {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n position: absolute;\n z-index: 2147483647;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(${t});\n pointer-events: none;\n animation: cbio_session_ripple_effect-${n} ${e}ms ease-out forwards;\n }\n `,document.head.appendChild(r),aW.add(n)}(t,n);const i=(o=e,"rgba("+parseInt(o.slice(1,3),16)+", "+parseInt(o.slice(3,5),16)+", "+parseInt(o.slice(5,7),16)+", 0.25)");var o;const s=document.createElement("div");return s.classList.add(`cbio_session_ripple-${t}-${n}`),Object.assign(s.style,{backgroundColor:i},r),setTimeout(()=>{s.remove()},t),s}var lW=new WeakMap,uW=new WeakMap;class dW{constructor(e){Bo(this,lW,new Map),Bo(this,uW,null),zo(uW,this,e)}getInstanceForAgent(e){return jo(lW,this).has(e)||jo(lW,this).set(e,new(jo(uW,this))),jo(lW,this).get(e)}hide(){jo(lW,this).forEach((e,t)=>{e.hide(),jo(lW,this).delete(t)})}}const hW="#e94435";class fW{constructor(){Qo(this,"el",()=>(this._el||(this._el=document.createElement("div"),this._el.className="cbio_session_overlay",Object.assign(this._el.style,{position:"fixed",zIndex:"2147483647",width:"8px",height:"8px",background:hW,marginLeft:"-4px",marginTop:"-4px",borderRadius:"50%",border:"border: 1px solid white",pointerEvents:"none"})),this._el)),Qo(this,"hasChangedPosition",()=>null!=this.previousPosition&&(Math.abs(this.previousPosition.x-this.currentPosition.x)>1||Math.abs(this.previousPosition.y-this.currentPosition.y)>1)),Qo(this,"startAnimation",e=>{this._intervalId||(this._intervalId=setInterval(()=>this._createRipple(e),this.rippleInterval),this._createRipple(e))}),Qo(this,"stopAnimation",()=>{this._intervalId&&clearInterval(this._intervalId),this._el&&this._el.replaceChildren(),this.resetState()}),Qo(this,"update",e=>{NE.isActive()&&(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),"touchend"===e.state?this.hide():null!=e.x&&null!=e.y&&(this.currentPosition.x=100*e.x,this.currentPosition.y=100*e.y,this.el().style.background=e.colour,this.el().style.left=`${this.currentPosition.x}%`,this.el().style.top=`${this.currentPosition.y}%`,this.startAnimation(e.colour)))}),Qo(this,"hide",()=>{var e;null===(e=this._el)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(this._el),this.stopAnimation()}),this.rippleDuration=3e3,this.rippleInterval=750,this._el=null,this.resetState()}resetState(){this._intervalId=null,this.currentPosition={x:0,y:0},this.previousPosition=null,this.resetRippleScale()}resetRippleScale(){this.rippleScale=16}_createRipple(e=hW){this.hasChangedPosition()?this.rippleScale=6:this.rippleScale=Math.min(this.rippleScale+5,16),this.previousPosition=Yo({},this.currentPosition);const t=cW(e,this.rippleDuration,this.rippleScale);this.el().appendChild(t)}}const pW=new class extends dW{constructor(){super(fW)}update(e){this.getInstanceForAgent(e.agent).update(e)}};class gW{constructor(){Qo(this,"el",()=>{if(!this._el){const e="http://www.w3.org/2000/svg";this._el=document.createElementNS(e,"svg"),this._el.setAttribute("class","__cbio_ignored"),this._el.setAttribute("viewBox","0 0 35 35"),this._el.setAttribute("fill","none"),this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.height="32px",this._el.style.width="32px",this._el.style.marginLeft="-16px",this._el.style.marginTop="0px",this._el.style.color="red",this._el.style.transition="opacity 0.5s",this._el.style.opacity=1,this._el.style.pointerEvents="none";const t=document.createElementNS(e,"path");t.setAttribute("d","M26.5148 15.8441V17.0941C26.5148 17.7541 26.9798 17.2891 26.3198 17.2891C25.6598 17.2891 26.1248 17.7541 26.1248 17.0941V14.5108C26.1248 13.8361 24.5779 12.2891 23.9032 12.2891C23.2285 12.2891 21.6815 13.8361 21.6815 14.5108V17.0941C21.6815 17.7541 22.1465 17.2891 21.4865 17.2891C20.8265 17.2891 21.2915 17.7541 21.2915 17.0941V13.0108C21.2915 12.3361 19.7445 10.7891 19.0698 10.7891C18.3951 10.7891 16.8482 12.3361 16.8482 13.0108V17.0941C16.8482 17.7541 17.3131 17.2891 16.6532 17.2891C15.9932 17.2891 16.4582 17.7541 16.4582 17.0941V5.01073C16.4582 4.33602 14.9112 2.78906 14.2365 2.78906C13.5618 2.78906 12.0148 4.33602 12.0148 5.01073V18.5941C12.0148 19.0774 12.7237 18.5132 12.2771 18.6981C11.8306 18.8831 11.3166 18.7809 10.9748 18.4391L8.262 15.7263C7.85703 15.3213 6.23834 15.2209 5.72608 15.477C5.04602 15.8171 4.78867 17.6568 5.16142 18.3195L11.0678 28.0419C12.5818 30.7334 15.4298 32.3991 18.518 32.3991H21.3198C25.9066 32.3991 30.6248 27.6808 30.6248 23.0941V15.8441C30.6248 15.2614 29.1525 13.7891 28.5698 13.7891C27.9872 13.7891 26.5148 15.2614 26.5148 15.8441Z"),t.setAttribute("fill","currentColor"),t.setAttribute("fill-rule","evenodd"),t.setAttribute("clip-rule","evenodd");const n=document.createElementNS(e,"path");n.setAttribute("d","M10.6247 5.01011C10.6247 3.01544 12.2417 1.39844 14.2364 1.39844C16.2311 1.39844 17.8481 3.01544 17.8481 5.01011V9.61029C18.2296 9.47316 18.641 9.39844 19.0697 9.39844C20.4448 9.39844 21.6404 10.1669 22.2505 11.2978C22.7457 11.0425 23.3076 10.8984 23.9031 10.8984C25.2578 10.8984 26.4383 11.6443 27.0563 12.7478C27.5131 12.524 28.0268 12.3984 28.5697 12.3984C30.4724 12.3984 32.0147 13.9408 32.0147 15.8434V23.0934C32.0147 29.0001 27.2264 33.7884 21.3197 33.7884H18.5179C14.5663 33.7884 10.9219 31.657 8.98462 28.2129L4.07828 19.4905C3.03598 17.6375 3.7556 15.2894 5.65716 14.3386C7.08954 13.6225 8.81951 13.9032 9.95191 15.0356L10.6247 15.7084V5.01011ZM27.5147 15.8434V17.0934C27.5147 17.7534 26.9797 18.2884 26.3197 18.2884C25.6597 18.2884 25.1247 17.7534 25.1247 17.0934V14.5101C25.1247 13.8354 24.5778 13.2884 23.9031 13.2884C23.2284 13.2884 22.6814 13.8354 22.6814 14.5101V17.0934C22.6814 17.7534 22.1464 18.2884 21.4864 18.2884C20.8264 18.2884 20.2914 17.7534 20.2914 17.0934V13.0101C20.2914 12.3354 19.7444 11.7884 19.0697 11.7884C18.395 11.7884 17.8481 12.3354 17.8481 13.0101V17.0934C17.8481 17.7534 17.313 18.2884 16.6531 18.2884C15.9931 18.2884 15.4581 17.7534 15.4581 17.0934V5.01011C15.4581 4.3354 14.9111 3.78844 14.2364 3.78844C13.5617 3.78844 13.0147 4.3354 13.0147 5.01011V18.5934C13.0147 19.0767 12.7236 19.5125 12.277 19.6974C11.8305 19.8824 11.3165 19.7802 10.9747 19.4384L8.26192 16.7256C7.85695 16.3206 7.23826 16.2202 6.726 16.4763C6.04594 16.8164 5.78859 17.6561 6.16134 18.3188L11.0677 27.0412C12.5817 29.7327 15.4297 31.3984 18.5179 31.3984H21.3197C25.9065 31.3984 29.6247 27.6801 29.6247 23.0934V15.8434C29.6247 15.2607 29.1524 14.7884 28.5697 14.7884C27.9871 14.7884 27.5147 15.2607 27.5147 15.8434Z"),n.setAttribute("fill","white"),n.setAttribute("fill-rule","evenodd"),n.setAttribute("clip-rule","evenodd"),this._el.appendChild(t),this._el.appendChild(n)}return this._el}),Qo(this,"calculateOffset",e=>{var t;const n=PI.getById(e.target.id),r=null==n||null===(t=n.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t?void 0:t.frameElement;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect();return{offsetX:Math.round(i.left),offsetY:Math.round(i.top)}}),Qo(this,"getOffset",e=>{var t,n;const{offsetX:r,offsetY:i}=e;return void 0!==r&&void 0!==i?{offsetX:r*(null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth),offsetY:i*(null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight)}:this.calculateOffset(e)}),Qo(this,"_updatePosition",e=>{var t,n;let{x:r,y:i}=e;if(!1===r||!1===i)return;r*=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth,i*=null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight;const o=this.getOffset(e);r+=o.offsetX,i+=o.offsetY,this.el().style.top=`${i}px`,this.el().style.left=`${r}px`,this._lastPosition={x:r,y:i}}),Qo(this,"_getRippleStyle",()=>({position:"fixed",left:this._lastPosition.x-4+"px",top:`${this._lastPosition.y+4}px`})),Qo(this,"_createRipple",(e="#e94435")=>{const t=cW(e,1e3,12,this._getRippleStyle());document.body.appendChild(t)}),Qo(this,"update",(e,t)=>{if("mouse"===e&&NE.isActive())switch(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),t.colour&&(this.el().style.color=t.colour),t.state){case"mousedown":this._hideAfterTimeout(),this._createRipple(t.colour),this.interval||(this.interval=setInterval(()=>{this._createRipple(t.colour)},500));break;case"mouseup":this._hideAfterTimeout(),clearInterval(this.interval),this.interval=null;break;case"mousemove":this._hideAfterTimeout(),this._updatePosition(t)}}),Qo(this,"hide",()=>{clearTimeout(this.fadeTimeOut),this.el().parentNode&&this.el().parentNode.removeChild(this.el())})}_hideAfterTimeout(){clearTimeout(this.fadeTimeOut),this.el().style.opacity=1,this.fadeTimeOut=setTimeout(()=>{this.el().style.opacity=0},5e3)}}const mW=new class extends dW{constructor(){super(gW)}update(e,t){this.getInstanceForAgent(t.agent).update(e,t)}},_W={ar:{ALLOW:"سماح",CALLING_ACCEPT:"قبول",CALLING_AGENT_DECLINED:"تم رفض المكالمة من قبل الوكيل",CALLING_AGENT_WAITING:"في انتظار الوكيل...",CALLING_BACK:"عودة",CALLING_CAMERA_OFF:"الكاميرا مغلقة",CALLING_CAMERA_PERMISSION_DENIED:"تم رفض الوصول إلى الكاميرا. قم بتمكينه في إعدادات المتصفح الخاص بك.",CALLING_CAMERA_PERMISSION_PROMPT:"السماح بالوصول إلى الكاميرا",CALLING_CAMERA_STARTING:"الكاميرا تبدأ العمل",CALLING_CANCEL:"إلغاء",CALLING_DISABLE_AUDIO:"تعطيل الصوت",CALLING_DISABLE_VIDEO:"تعطيل الفيديو",CALLING_ENABLE_AUDIO:"تمكين الصوت",CALLING_ENABLE_VIDEO:"تفعيل الفيديو",CALLING_END:"إنهاء المكالمة",CALLING_IN_PROGRESS:"جارٍ الانضمام إلى مكالمة الفيديو",CALLING_JOIN:"انضم إلى المكالمة",CALLING_JOIN_PROMPT:"يرغب وكيل الدعم في الاتصال بك.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"أنا",CALLING_MICROPHONE_PERMISSION_DENIED:"تم رفض الوصول إلى الميكروفون. فعّله في إعدادات المتصفح الخاص بك.",CALLING_MICROPHONE_PERMISSION_PROMPT:"السماح بالوصول إلى الميكروفون",CALLING_NO_DEVICES:"لا شيء",CALLING_PERMISSION_NEEDED:"مطلوب إذن",CALLING_REJECT:"رفض المكالمة",CALLING_REJOIN_PROMPT:"لديك مكالمة نشطة مع وكيل الدعم. هل تريد الانضمام مرة أخرى؟",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"الوكيل",CALLING_REQUEST:"هل تريد الانضمام إلى مكالمة الفيديو؟",CALLING_RETRY:"إعادة المحاولة",CALLING_SAVE:"حفظ",CALLING_SELECT_CAMERA:"اختر الكاميرا",CALLING_SELECT_MICROPHONE:"اختر الميكروفون",CALLING_SELECT_SPEAKER:"اختر المتحدث",CALLING_SHOW_CALL_SETTINGS:"عرض إعدادات المكالمة",DENY:"رفض",END_SESSION:"إنهاء جلسة Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في عرض شاشتك.",FULL_DEVICE_REQUEST_TITLE:"السماح بالتقاط الشاشة كاملة؟",REMOTE_CONTROL_REQUEST_DESCRIPTION:"وكيل ادعم يريد التحكم بهذه الصفحة.",REMOTE_CONTROL_REQUEST_TITLE:"السماح بالتحكم عن بُعد؟",SESSION_REQUEST_DESCRIPTION:"يرغب أحد موظفي خدمة العملاء في استخدام هذه الصفحة معك،",SESSION_REQUEST_TITLE:"السماح بالتصفح المشترك؟",UNIVERSAL_PROXY_BLOCKED:"لا يمكن عرض هذه الصفحة مع وكيل الدعم",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في متابعتك إلى صفحات ويب أخرى.",UNIVERSAL_PROXY_REQUEST_TITLE:"السماح بمتابعة الجلسة؟"},cs:{ALLOW:"Povolit",CALLING_ACCEPT:"Přijmout",CALLING_AGENT_DECLINED:"Hovor odmítnut operátorem",CALLING_AGENT_WAITING:"Čekání na agenta...",CALLING_BACK:"Zpět",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Přístup ke kameře odepřen. Povolit jej v nastavení prohlížeče.",CALLING_CAMERA_PERMISSION_PROMPT:"Povolit přístup ke kameře",CALLING_CAMERA_STARTING:"Kamera se spouští",CALLING_CANCEL:"Zrušit",CALLING_DISABLE_AUDIO:"Zakázat zvuk",CALLING_DISABLE_VIDEO:"Zakázat video",CALLING_ENABLE_AUDIO:"Povolit zvuk",CALLING_ENABLE_VIDEO:"Povolit video",CALLING_END:"Ukončit hovor",CALLING_IN_PROGRESS:"Vstup do videohovoru",CALLING_JOIN:"Připojit se k hovoru",CALLING_JOIN_PROMPT:"Podpora by vás ráda kontaktovala telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Já",CALLING_MICROPHONE_PERMISSION_DENIED:"Přístup k mikrofonu odepřen. Povolte jej v nastavení prohlížeče.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povolit přístup k mikrofonu",CALLING_NO_DEVICES:"Žádný",CALLING_PERMISSION_NEEDED:"Vyžadováno povolení",CALLING_REJECT:"Odmítnout hovor",CALLING_REJOIN_PROMPT:"Máte aktivní hovor s podpůrným agentem. Chcete se znovu připojit?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstoupit do videohovoru?",CALLING_RETRY:"Opakovat pokus",CALLING_SAVE:"Uložit",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vybrat mikrofon",CALLING_SELECT_SPEAKER:"Vyberte reproduktor",CALLING_SHOW_CALL_SETTINGS:"Zobrazit nastavení hovoru",DENY:"Odmítnout",END_SESSION:"Zastavit sdílení",FULL_DEVICE_REQUEST_DESCRIPTION:"Podpora by si ráda prohlédla celou vaši obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povolit úplné snímání obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podpora by ráda ovládala tuto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povolit vzdálené ovládání?",SESSION_REQUEST_DESCRIPTION:"Podpůrný pracovník by s vámi chtěl dočasně používat tuto webovou stránku.",SESSION_REQUEST_TITLE:"Povolit společné prohlížení?",UNIVERSAL_PROXY_BLOCKED:"Tuto webovou stránku nelze zobrazit s podpůrným pracovníkem",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent podpory by vás rád sledoval na jiné webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povolit pokračování relace?"},da:{ALLOW:"Tillad",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Opkald afvist af agent",CALLING_AGENT_WAITING:"Venter på agent...",CALLING_BACK:"Tilbage",CALLING_CAMERA_OFF:"Kamera er slukket",CALLING_CAMERA_PERMISSION_DENIED:"Adgang til kamera nægtet. Aktivér det i dine browserindstillinger.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillad adgang til kamera",CALLING_CAMERA_STARTING:"Kamera starter",CALLING_CANCEL:"Annuller",CALLING_DISABLE_AUDIO:"Deaktiver lyd",CALLING_DISABLE_VIDEO:"Deaktiver video",CALLING_ENABLE_AUDIO:"Aktiver lyd",CALLING_ENABLE_VIDEO:"Aktivér video",CALLING_END:"Afslut opkald",CALLING_IN_PROGRESS:"Deltager i videoopkald",CALLING_JOIN:"Deltag i opkaldet",CALLING_JOIN_PROMPT:"En supportagent vil gerne ringe til dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mig",CALLING_MICROPHONE_PERMISSION_DENIED:"Adgang til mikrofon nægtet. Aktivér det i dine browserindstillinger.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillad adgang til mikrofon",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Tilladelse nødvendig",CALLING_REJECT:"Afvis opkald",CALLING_REJOIN_PROMPT:"Du har en aktiv samtale med en supportagent. Vil du genoptage den?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Deltage i videoopkald?",CALLING_RETRY:"Prøv igen",CALLING_SAVE:"Gem </translateOnlyThis>",CALLING_SELECT_CAMERA:"Vælg kamera",CALLING_SELECT_MICROPHONE:"Vælg mikrofon",CALLING_SELECT_SPEAKER:"Vælg højtaler",CALLING_SHOW_CALL_SETTINGS:"Vis opkaldsindstillinger",DENY:"Nægt",END_SESSION:"Stop deling",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent ønsker at se din hele skærm.",FULL_DEVICE_REQUEST_TITLE:"Tillad fuldskærmsoptagelse?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent ønsker at kontrollere denne side.",REMOTE_CONTROL_REQUEST_TITLE:"Tillad fjernbetjening?",SESSION_REQUEST_DESCRIPTION:"En supportagent ønsker midlertidigt at bruge denne webside sammen med dig.",SESSION_REQUEST_TITLE:"Tillad cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Denne webside kan ikke vises sammen med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vil gerne følge dig til andre websider.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillad fortsættelse af session?"},de:{ALLOW:"Erlauben",CALLING_ACCEPT:"Akzeptieren",CALLING_AGENT_DECLINED:"Anruf vom Agenten abgelehnt",CALLING_AGENT_WAITING:"Warten auf Agent...",CALLING_BACK:"Zurück",CALLING_CAMERA_OFF:"Kamera ist ausgeschaltet",CALLING_CAMERA_PERMISSION_DENIED:"Kamerazugriff verweigert. Aktivieren Sie ihn in den Browsereinstellungen.",CALLING_CAMERA_PERMISSION_PROMPT:"Zugriff auf die Kamera erlauben",CALLING_CAMERA_STARTING:"Kamera wird gestartet",CALLING_CANCEL:"Abbrechen",CALLING_DISABLE_AUDIO:"Audio deaktivieren",CALLING_DISABLE_VIDEO:"Video deaktivieren",CALLING_ENABLE_AUDIO:"Audio aktivieren",CALLING_ENABLE_VIDEO:"Video aktivieren",CALLING_END:"Anruf beenden",CALLING_IN_PROGRESS:"Beitreten zum Videoanruf",CALLING_JOIN:"Anruf beitreten",CALLING_JOIN_PROMPT:"Ein Support-Mitarbeiter möchte Sie anrufen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ich",CALLING_MICROPHONE_PERMISSION_DENIED:"Zugriff auf Mikrofon verweigert. Aktivieren Sie diesen in den Browsereinstellungen.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zugriff auf Mikrofon erlauben",CALLING_NO_DEVICES:"Keine",CALLING_PERMISSION_NEEDED:"Berechtigung erforderlich",CALLING_REJECT:"Anruf ablehnen",CALLING_REJOIN_PROMPT:"Sie sind in einem aktiven Gespräch mit einem Support-Mitarbeiter. Möchten Sie wieder beitreten?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Videoanruf starten?",CALLING_RETRY:"Erneut versuchen",CALLING_SAVE:"Speichern",CALLING_SELECT_CAMERA:"Kamera auswählen",CALLING_SELECT_MICROPHONE:"Mikrofon auswählen",CALLING_SELECT_SPEAKER:"Sprecher auswählen",CALLING_SHOW_CALL_SETTINGS:"Anrufeinstellungen anzeigen",DENY:"Ablehnen",END_SESSION:"Cobrowse-Sitzung beenden",FULL_DEVICE_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Ihren gesamten Bildschirm anzeigen.",FULL_DEVICE_REQUEST_TITLE:"Vollständige Bildschirmaufnahme erlauben?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Seite steuern.",REMOTE_CONTROL_REQUEST_TITLE:"Fernsteuerung erlauben?",SESSION_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Webseite vorübergehend mit Ihnen nutzen.",SESSION_REQUEST_TITLE:"Cobrowsing erlauben?",UNIVERSAL_PROXY_BLOCKED:"Diese Webseite kann nicht mit einem Support-Mitarbeiter angezeigt werden",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Sie zu anderen Webseiten begleiten.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sitzungsfortsetzung erlauben?"},en:{ALLOW:"Allow",CALLING_ACCEPT:"Accept",CALLING_AGENT_DECLINED:"Call declined by agent",CALLING_AGENT_WAITING:"Waiting for agent...",CALLING_BACK:"Back",CALLING_CAMERA_OFF:"Camera is off",CALLING_CAMERA_PERMISSION_DENIED:"Camera access denied. Enable it in your browser settings.",CALLING_CAMERA_PERMISSION_PROMPT:"Allow access to camera",CALLING_CAMERA_STARTING:"Camera is starting",CALLING_CANCEL:"Cancel",CALLING_DISABLE_AUDIO:"Disable audio",CALLING_DISABLE_VIDEO:"Disable video",CALLING_ENABLE_AUDIO:"Enable audio",CALLING_ENABLE_VIDEO:"Enable video",CALLING_END:"End call",CALLING_IN_PROGRESS:"Entering video call",CALLING_JOIN:"Join call",CALLING_JOIN_PROMPT:"A support agent would like to call you.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Microphone access denied. Enable it in your browser settings.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Allow access to microphone",CALLING_NO_DEVICES:"None",CALLING_PERMISSION_NEEDED:"Permission needed",CALLING_REJECT:"Reject call",CALLING_REJOIN_PROMPT:"You have an active call with a support agent. Do you want to rejoin?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Enter video call?",CALLING_RETRY:"Retry",CALLING_SAVE:"Save",CALLING_SELECT_CAMERA:"Select camera",CALLING_SELECT_MICROPHONE:"Select microphone",CALLING_SELECT_SPEAKER:"Select speaker",CALLING_SHOW_CALL_SETTINGS:"Show call settings",DENY:"Deny",END_SESSION:"Stop Sharing",FULL_DEVICE_REQUEST_DESCRIPTION:"A support agent would like to view your entire screen.",FULL_DEVICE_REQUEST_TITLE:"Allow full screen capture?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"A support agent would like to control this page.",REMOTE_CONTROL_REQUEST_TITLE:"Allow remote control?",SESSION_REQUEST_DESCRIPTION:"A support agent would like to temporarily use this web page with you.",SESSION_REQUEST_TITLE:"Allow cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"This web page cannot be viewed with a support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"A support agent would like to follow you to other web pages.",UNIVERSAL_PROXY_REQUEST_TITLE:"Allow session continuation?"},es:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Atrás",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar vídeo",CALLING_ENABLE_AUDIO:"Activar audio",CALLING_ENABLE_VIDEO:"Habilitar vídeo",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando en la videollamada",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Quieres volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Entrar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamadas",DENY:"Denegar",END_SESSION:"Finalizar Sesión",FULL_DEVICE_REQUEST_DESCRIPTION:"Un asistente de soporte solicita visualizar la totalidad de su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte desea controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte desea seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},"es-MX":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Regresar",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar video",CALLING_ENABLE_AUDIO:"Habilitar audio",CALLING_ENABLE_VIDEO:"Habilitar video",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando a llamada de video",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Deseas volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Ingresar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamada",DENY:"Denegar",END_SESSION:"Finalizar Sesión de Navegación Conjunta",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente de soporte quiere ver toda su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte quiere controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte quiere seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},et:{ALLOW:"Luba",CALLING_ACCEPT:"Nõustu",CALLING_AGENT_DECLINED:"Kõne agent poolt tagasi lükatud",CALLING_AGENT_WAITING:"Ootame agenti...",CALLING_BACK:"Tagasi",CALLING_CAMERA_OFF:"Kaamera on välja lülitatud",CALLING_CAMERA_PERMISSION_DENIED:"Kaamera ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_CAMERA_PERMISSION_PROMPT:"Luba juurdepääs kaamerale",CALLING_CAMERA_STARTING:"Kaamera käivitub",CALLING_CANCEL:"Tühista",CALLING_DISABLE_AUDIO:"Lülita heli välja",CALLING_DISABLE_VIDEO:"Keela video",CALLING_ENABLE_AUDIO:"Luba heli",CALLING_ENABLE_VIDEO:"Luba video",CALLING_END:"Lõpeta kõne",CALLING_IN_PROGRESS:"Videokõnesse sisenemine",CALLING_JOIN:"Liitu kõnega",CALLING_JOIN_PROMPT:"Toetusagend soovib teid helistada.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mina",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofoni ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Luba mikrofoni kasutamise õigus",CALLING_NO_DEVICES:"Mitte ükski",CALLING_PERMISSION_NEEDED:"Vaja luba",CALLING_REJECT:"Keela kõne",CALLING_REJOIN_PROMPT:"Teilitate jooksval kõnel tugiteenuse esindajaga. Kas soovite uuesti ühineda?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Esindaja",CALLING_REQUEST:"Sisene videokõnesse?",CALLING_RETRY:"Proovi uuesti",CALLING_SAVE:"Salvesta",CALLING_SELECT_CAMERA:"Vali kaamera",CALLING_SELECT_MICROPHONE:"Vali mikrofon",CALLING_SELECT_SPEAKER:"Vali kõneleja",CALLING_SHOW_CALL_SETTINGS:"Kuva kõne seadeid",DENY:"Keeldu",END_SESSION:"Jaga jagamine lõpetada",FULL_DEVICE_REQUEST_DESCRIPTION:"Tugiagendi soovib teie kogu ekraani vaadata.",FULL_DEVICE_REQUEST_TITLE:"Luba täisekraani salvestuse lubamine?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tugiteenindaja soovib seda lehte juhtida.",REMOTE_CONTROL_REQUEST_TITLE:"Lubate kaugjuhtimist?",SESSION_REQUEST_DESCRIPTION:"Toetusagent soovib seda veebilehte teiega ajutiselt kasutada.",SESSION_REQUEST_TITLE:"Luba koosturundus?",UNIVERSAL_PROXY_BLOCKED:"Seda veebilehte ei saa vaadata koos tugiesindajaga",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Toetusagendi soovib teid teistele veebilehtedele jälgida.",UNIVERSAL_PROXY_REQUEST_TITLE:"Kas lubada seansi jätkamine?"},fi:{ALLOW:"Salli",CALLING_ACCEPT:"Hyväksy",CALLING_AGENT_DECLINED:"Puhelu hylätty agentin toimesta",CALLING_AGENT_WAITING:"Odotetaan asiakaspalvelijaa...",CALLING_BACK:"Takaisin",CALLING_CAMERA_OFF:"Kamera on pois päältä",CALLING_CAMERA_PERMISSION_DENIED:"Kameran käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_CAMERA_PERMISSION_PROMPT:"Salli pääsy kameraan",CALLING_CAMERA_STARTING:"Kamera käynnistyy",CALLING_CANCEL:"Peruuta",CALLING_DISABLE_AUDIO:"Poista ääni käytöstä",CALLING_DISABLE_VIDEO:"Poista video käytöstä",CALLING_ENABLE_AUDIO:"Ota ääni käyttöön",CALLING_ENABLE_VIDEO:"Ota video käyttöön",CALLING_END:"Lopeta puhelu",CALLING_IN_PROGRESS:"Liityt videopuheluun",CALLING_JOIN:"Liity puheluun",CALLING_JOIN_PROMPT:"Tukihenkilö haluaisi soittaa sinulle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Minä",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofonin käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Salli pääsy mikrofonille",CALLING_NO_DEVICES:"Ei mitään",CALLING_PERMISSION_NEEDED:"Lupa tarvitaan",CALLING_REJECT:"Hylkää puhelu",CALLING_REJOIN_PROMPT:"Sinulla on aktiivinen puhelu tukiedustajan kanssa. Haluatko liittyä uudelleen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Asiakaspalvelija",CALLING_REQUEST:"Haluatko mennä videopuheluun?",CALLING_RETRY:"Yritä uudelleen",CALLING_SAVE:"Tallenna",CALLING_SELECT_CAMERA:"Valitse kamera",CALLING_SELECT_MICROPHONE:"Valitse mikrofoni",CALLING_SELECT_SPEAKER:"Valitse kaiutin",CALLING_SHOW_CALL_SETTINGS:"Näytä puheluasetukset",DENY:"Estä",END_SESSION:"Lopeta jakaminen",FULL_DEVICE_REQUEST_DESCRIPTION:"Tukihenkilö haluaa nähdä koko näyttösi.",FULL_DEVICE_REQUEST_TITLE:"Sallitaanko kokoruudun tallennus?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tukihenkilö haluaisi ohjata tätä sivua.",REMOTE_CONTROL_REQUEST_TITLE:"Sallitaanko etäohjaus?",SESSION_REQUEST_DESCRIPTION:"Asiakaspalvelija haluaisi väliaikaisesti käyttää tätä verkkosivua kanssasi.",SESSION_REQUEST_TITLE:"Salli yhteisselaus?",UNIVERSAL_PROXY_BLOCKED:"Tätä verkkosivua ei voi tarkastella tukihenkilön kanssa",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Tukihenkilö haluaa seurata sinua muille verkkosivuille.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sallitaanko istunnon jatkaminen?"},fr:{ALLOW:"Autoriser",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Appel refusé par l'agent",CALLING_AGENT_WAITING:"En attente de l'agent...",CALLING_BACK:"Retour",CALLING_CAMERA_OFF:"La caméra est éteinte",CALLING_CAMERA_PERMISSION_DENIED:"Accès à la caméra refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_CAMERA_PERMISSION_PROMPT:"Autoriser l'accès à la caméra",CALLING_CAMERA_STARTING:"La caméra démarre",CALLING_CANCEL:"Annuler",CALLING_DISABLE_AUDIO:"Désactiver l'audio",CALLING_DISABLE_VIDEO:"Désactiver la vidéo",CALLING_ENABLE_AUDIO:"Activer l'audio",CALLING_ENABLE_VIDEO:"Activer la vidéo",CALLING_END:"Terminer l'appel",CALLING_IN_PROGRESS:"Connexion à l'appel vidéo",CALLING_JOIN:"Rejoindre l'appel",CALLING_JOIN_PROMPT:"Un agent de support souhaite vous appeler.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Moi",CALLING_MICROPHONE_PERMISSION_DENIED:"Accès au microphone refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Autoriser l'accès au microphone",CALLING_NO_DEVICES:"Aucun",CALLING_PERMISSION_NEEDED:"Permission requise",CALLING_REJECT:"Rejeter l'appel",CALLING_REJOIN_PROMPT:"Vous êtes en communication avec un agent de support. Voulez-vous rejoindre à nouveau ?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Entrer dans l'appel vidéo ?",CALLING_RETRY:"Réessayer",CALLING_SAVE:"Enregistrer",CALLING_SELECT_CAMERA:"Sélectionner la caméra",CALLING_SELECT_MICROPHONE:"Sélectionner un microphone",CALLING_SELECT_SPEAKER:"Sélectionner le haut-parleur",CALLING_SHOW_CALL_SETTINGS:"Afficher les paramètres d'appel",DENY:"Refuser",END_SESSION:"Terminer la session de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait voir l'intégralité de votre écran.",FULL_DEVICE_REQUEST_TITLE:"Autoriser la capture d'écran complète ?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent du soutien souhaiterait avoir le contrôle de cette page.",REMOTE_CONTROL_REQUEST_TITLE:"Autoriser le contrôle à distance ?",SESSION_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait temporairement utiliser cette page Web avec vous.",SESSION_REQUEST_TITLE:"Autoriser le cobrowsing ?",UNIVERSAL_PROXY_BLOCKED:"Cette page Web ne peut pas être vue avec un agent de soutien",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait vous suivre vers d'autres pages Web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Autoriser la continuation de session ?"},hi:{ALLOW:"अनुमति देना",CALLING_ACCEPT:"स्वीकार करें",CALLING_AGENT_DECLINED:"एजेंट द्वारा कॉल अस्वीकार किया गया",CALLING_AGENT_WAITING:"एजेंट के लिए प्रतीक्षा कर रहे हैं...",CALLING_BACK:"वापस",CALLING_CAMERA_OFF:"कैमरा बंद है",CALLING_CAMERA_PERMISSION_DENIED:"कैमरा एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_CAMERA_PERMISSION_PROMPT:"कैमरा तक पहुंच की अनुमति दें",CALLING_CAMERA_STARTING:"कैमरा शुरू हो रहा है",CALLING_CANCEL:"रद्द करें",CALLING_DISABLE_AUDIO:"ऑडियो अक्षम करें",CALLING_DISABLE_VIDEO:"वीडियो अक्षम करें",CALLING_ENABLE_AUDIO:"ऑडियो सक्षम करें",CALLING_ENABLE_VIDEO:"वीडियो सक्षम करें",CALLING_END:"कॉल समाप्त करें",CALLING_IN_PROGRESS:"वीडियो कॉल में प्रवेश करना",CALLING_JOIN:"कॉल में शामिल हों",CALLING_JOIN_PROMPT:"एक समर्थन एजेंट आपको कॉल करना चाहता है।",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मैं",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_MICROPHONE_PERMISSION_PROMPT:"माइक्रोफोन तक पहुंच की अनुमति दें",CALLING_NO_DEVICES:"कोई नहीं",CALLING_PERMISSION_NEEDED:"अनुमति आवश्यक है",CALLING_REJECT:"कॉल अस्वीकार करें",CALLING_REJOIN_PROMPT:"आपका एक सक्रिय कॉल समर्थन एजेंट के साथ है। क्या आप पुनः जुड़ना चाहते हैं?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजेंट",CALLING_REQUEST:"वीडियो कॉल में प्रवेश करें?",CALLING_RETRY:"पुनः प्रयास करें",CALLING_SAVE:"सहेजें",CALLING_SELECT_CAMERA:"कैमरा चुनें",CALLING_SELECT_MICROPHONE:"माइक्रोफोन चुनें",CALLING_SELECT_SPEAKER:"वक्ता चुनें",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्स दिखाएं",DENY:"अस्वीकार करना",END_SESSION:"कोब्रोसे सत्र समाप्त करें",FULL_DEVICE_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपकी पूरी स्क्रीन देखना चाहेगा।",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कैप्चर की अनुमति दें?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक समर्थन एजेंट इस पेज को नियंत्रित करना चाहता है।",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोल की अनुमति दें?",SESSION_REQUEST_DESCRIPTION:"एक सहायता एजेंट अस्थायी रूप से आपके साथ इस वेब पेज का उपयोग करना चाहेगा।",SESSION_REQUEST_TITLE:"कोब्राउज़िंग की अनुमति दें?",UNIVERSAL_PROXY_BLOCKED:"यह वेब पेज सहायता एजेंट के साथ नहीं देखा जा सकता",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपका अन्य वेब पेजों में पीछा करना चाहेगा।",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र निरंतरता की अनुमति दें?"},it:{ALLOW:"Consenti",CALLING_ACCEPT:"Accetta",CALLING_AGENT_DECLINED:"Chiamata rifiutata dall'agente",CALLING_AGENT_WAITING:"In attesa dell'agente...",CALLING_BACK:"Indietro",CALLING_CAMERA_OFF:"La fotocamera è spenta",CALLING_CAMERA_PERMISSION_DENIED:"Accesso alla fotocamera negato. Attivalo nelle impostazioni del tuo browser.",CALLING_CAMERA_PERMISSION_PROMPT:"Consenti l'accesso alla fotocamera",CALLING_CAMERA_STARTING:"La fotocamera si sta avviando",CALLING_CANCEL:"Annulla",CALLING_DISABLE_AUDIO:"Disabilita audio",CALLING_DISABLE_VIDEO:"Disabilita video",CALLING_ENABLE_AUDIO:"Abilita audio",CALLING_ENABLE_VIDEO:"Abilita video",CALLING_END:"Termina chiamata",CALLING_IN_PROGRESS:"Partecipazione alla videochiamata",CALLING_JOIN:"Partecipa alla chiamata",CALLING_JOIN_PROMPT:"Un agente di supporto desidera chiamarla.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesso al microfono negato. Abilitalo nelle impostazioni del browser.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Consenti l'accesso al microfono",CALLING_NO_DEVICES:"Nessuno",CALLING_PERMISSION_NEEDED:"Permesso necessario",CALLING_REJECT:"Rifiuta chiamata",CALLING_REJOIN_PROMPT:"Hai una chiamata attiva con un agente di supporto. Vuoi rientrare?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Avviare la videochiamata?",CALLING_RETRY:"Riprova",CALLING_SAVE:"Salva",CALLING_SELECT_CAMERA:"Seleziona la fotocamera",CALLING_SELECT_MICROPHONE:"Seleziona microfono",CALLING_SELECT_SPEAKER:"Seleziona altoparlante",CALLING_SHOW_CALL_SETTINGS:"Mostra impostazioni chiamata",DENY:"Nega",END_SESSION:"Termina la sessione di Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera visualizzare tutto il tuo schermo.",FULL_DEVICE_REQUEST_TITLE:"Consentire cattura schermo completa?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera controllare questa pagina.",REMOTE_CONTROL_REQUEST_TITLE:"Consentire controllo remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe utilizzare temporaneamente questa pagina web con te.",SESSION_REQUEST_TITLE:"Consentire cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Questa pagina web non può essere visualizzata con un agente dell'assistenza",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe seguirti su altre pagine web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Consentire continuazione sessione?"},ja:{ALLOW:"許可する",CALLING_ACCEPT:"承諾する",CALLING_AGENT_DECLINED:"エージェントによって通話が拒否されました",CALLING_AGENT_WAITING:"エージェントを待っています...",CALLING_BACK:"戻る",CALLING_CAMERA_OFF:"カメラはオフです",CALLING_CAMERA_PERMISSION_DENIED:"カメラのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_CAMERA_PERMISSION_PROMPT:"カメラへのアクセスを許可する",CALLING_CAMERA_STARTING:"カメラが起動しています",CALLING_CANCEL:"キャンセル",CALLING_DISABLE_AUDIO:"音声を無効にする",CALLING_DISABLE_VIDEO:"ビデオを無効にする",CALLING_ENABLE_AUDIO:"音声を有効にする",CALLING_ENABLE_VIDEO:"ビデオを有効にする",CALLING_END:"通話終了",CALLING_IN_PROGRESS:"ビデオ通話に参加中",CALLING_JOIN:"通話に参加する",CALLING_JOIN_PROMPT:"サポート担当者があなたに電話をかけたいと考えています。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"私",CALLING_MICROPHONE_PERMISSION_DENIED:"マイクへのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_MICROPHONE_PERMISSION_PROMPT:"マイクへのアクセスを許可する",CALLING_NO_DEVICES:"なし",CALLING_PERMISSION_NEEDED:"許可が必要です",CALLING_REJECT:"通話を拒否する",CALLING_REJOIN_PROMPT:"サポートエージェントと通話中です。再接続しますか?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"エージェント",CALLING_REQUEST:"ビデオ通話に参加しますか?",CALLING_RETRY:"再試行",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"カメラを選択してください",CALLING_SELECT_MICROPHONE:"マイクを選択してください",CALLING_SELECT_SPEAKER:"話者を選択してください",CALLING_SHOW_CALL_SETTINGS:"通話設定を表示",DENY:"拒否",END_SESSION:"共同閲覧セッションを終了",FULL_DEVICE_REQUEST_DESCRIPTION:"サポート担当者が画面全体の表示を希望しています。",FULL_DEVICE_REQUEST_TITLE:"フルスクリーンキャプチャを許可しますか?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"サポートエージェントがこのページの管理を希望しています。",REMOTE_CONTROL_REQUEST_TITLE:"リモートコントロールを許可しますか?",SESSION_REQUEST_DESCRIPTION:"サポートエージェントが一時的にこのWebページを共用したいと考えています。",SESSION_REQUEST_TITLE:"コブラウジングを許可しますか?",UNIVERSAL_PROXY_BLOCKED:"このWebページはサポートエージェントと一緒に表示することはできません",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"サポートエージェントが他のWebページでもあなたをフォローしたいと考えています。",UNIVERSAL_PROXY_REQUEST_TITLE:"セッション継続を許可しますか?"},kk:{ALLOW:"Рұқсат етіңіз",CALLING_ACCEPT:"Қабылдау",CALLING_AGENT_DECLINED:"Қоңырауды агент қабылдамады",CALLING_AGENT_WAITING:"Агентті күтуде...",CALLING_BACK:"Артқа",CALLING_CAMERA_OFF:"Камера өшірілген",CALLING_CAMERA_PERMISSION_DENIED:"Камераға кіруге тыйым салынған. Оны шолғыш параметрлерінде қосыңыз.",CALLING_CAMERA_PERMISSION_PROMPT:"Камераға кіруге рұқсат беру",CALLING_CAMERA_STARTING:"Камера іске қосылуда",CALLING_CANCEL:"Болдырмау",CALLING_DISABLE_AUDIO:"Дыбысты өшіріңіз",CALLING_DISABLE_VIDEO:"Бейнені өшіру",CALLING_ENABLE_AUDIO:"Дыбысты қосу",CALLING_ENABLE_VIDEO:"Бейне қосу",CALLING_END:"Қоңырауды аяқтау",CALLING_IN_PROGRESS:"Видео қоңырауына кіру",CALLING_JOIN:"Қоңырауға қосылу",CALLING_JOIN_PROMPT:"Қолдау қызметінің өкілі сізге қоңырау шалғысы келеді.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Мен",CALLING_MICROPHONE_PERMISSION_DENIED:"Микрофонға қатынау тыйым салынды. Оны шолғыш параметрлеріңізде қосыңыз.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Микрофонға қолжетімділік беріңіз",CALLING_NO_DEVICES:"Жоқ",CALLING_PERMISSION_NEEDED:"Рұқсат қажет",CALLING_REJECT:"Қоңырауды қабылдамау",CALLING_REJOIN_PROMPT:"Сізде қолдау агентімен ағымдағы қоңырау бар. Қайта қосылғыңыз келе ме?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Бейне қоңырауға қосылу керек пе?",CALLING_RETRY:"Қайталау",CALLING_SAVE:"Сақтау",CALLING_SELECT_CAMERA:"Камераны таңдаңыз",CALLING_SELECT_MICROPHONE:"Микрофонды таңдаңыз",CALLING_SELECT_SPEAKER:"Дыбысты таңдау",CALLING_SHOW_CALL_SETTINGS:"Қоңырау параметрлерін көрсету",DENY:"Бас тарту",END_SESSION:"Бірлескен шолу сеансын аяқтаңыз",FULL_DEVICE_REQUEST_DESCRIPTION:"Қолдау агенті бүкіл экраныңызды көргісі келеді.",FULL_DEVICE_REQUEST_TITLE:"Толық экранды түсіруге рұқсат етесіз бе?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Көмекші агент осы бетті бақылағысы келеді.",REMOTE_CONTROL_REQUEST_TITLE:"Қашықтан басқаруға рұқсат етесіз бе?",SESSION_REQUEST_DESCRIPTION:"Қолдау агенті осы веб-бетті сізбен уақытша пайдаланғысы келеді.",SESSION_REQUEST_TITLE:"Кобраузингке рұқсат етесіз бе?",UNIVERSAL_PROXY_BLOCKED:"Бұл веб-бетті қолдау агентімен бірге көру мүмкін емес",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Қолдау агенті сізді басқа веб-беттерге де ілесе алуға тілек білдіреді.",UNIVERSAL_PROXY_REQUEST_TITLE:"Сеансты жалғастыруға рұқсат етесіз бе?"},ko:{ALLOW:"허용하다",CALLING_ACCEPT:"수락",CALLING_AGENT_DECLINED:"상담원이 전화를 거부했습니다",CALLING_AGENT_WAITING:"상담원 대기 중...",CALLING_BACK:"뒤로",CALLING_CAMERA_OFF:"카메라가 꺼져 있습니다",CALLING_CAMERA_PERMISSION_DENIED:"카메라 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_CAMERA_PERMISSION_PROMPT:"카메라 접근 허용",CALLING_CAMERA_STARTING:"카메라가 시작되고 있습니다",CALLING_CANCEL:"취소",CALLING_DISABLE_AUDIO:"오디오 비활성화",CALLING_DISABLE_VIDEO:"비디오 비활성화",CALLING_ENABLE_AUDIO:"오디오 활성화",CALLING_ENABLE_VIDEO:"비디오 활성화",CALLING_END:"통화 종료",CALLING_IN_PROGRESS:"영상 통화 참여 중",CALLING_JOIN:"통화 참여하기",CALLING_JOIN_PROMPT:"지원 상담원이 귀하에게 전화를 원합니다.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"나",CALLING_MICROPHONE_PERMISSION_DENIED:"마이크 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_MICROPHONE_PERMISSION_PROMPT:"마이크 접근 허용",CALLING_NO_DEVICES:"없음",CALLING_PERMISSION_NEEDED:"권한 필요",CALLING_REJECT:"통화 거절",CALLING_REJOIN_PROMPT:"지원 상담원과 통화 중입니다. 다시 연결하시겠습니까?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"상담원",CALLING_REQUEST:"영상 통화에 참여하시겠습니까?",CALLING_RETRY:"재시도",CALLING_SAVE:"저장",CALLING_SELECT_CAMERA:"카메라 선택",CALLING_SELECT_MICROPHONE:"마이크 선택",CALLING_SELECT_SPEAKER:"화자 선택",CALLING_SHOW_CALL_SETTINGS:"통화 설정 표시",DENY:"부인하다",END_SESSION:"Cobrowse 세션 종료",FULL_DEVICE_REQUEST_DESCRIPTION:"지원 담당자가 귀하의 전체 화면을 보고 싶어합니다.",FULL_DEVICE_REQUEST_TITLE:"전체 화면 캡처를 허용하시겠습니까?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"지원 담당자가 이 페이지를 관리하고 싶어합니다.",REMOTE_CONTROL_REQUEST_TITLE:"원격 제어를 허용하시겠습니까?",SESSION_REQUEST_DESCRIPTION:"지원 담당자가 귀하와 함께 이 웹 페이지를 일시적으로 사용하려고 합니다.",SESSION_REQUEST_TITLE:"코브라우징을 허용하시겠습니까?",UNIVERSAL_PROXY_BLOCKED:"이 웹 페이지는 지원 담당자와 함께 볼 수 없습니다",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"지원 담당자가 다른 웹 페이지로 귀하를 따라가고 싶어합니다.",UNIVERSAL_PROXY_REQUEST_TITLE:"세션 계속을 허용하시겠습니까?"},lt:{ALLOW:"Leisti",CALLING_ACCEPT:"Priimti",CALLING_AGENT_DECLINED:"Skambutis atmestas agento",CALLING_AGENT_WAITING:"Laukiama agento…",CALLING_BACK:"Atgal",CALLING_CAMERA_OFF:"Kamera išjungta",CALLING_CAMERA_PERMISSION_DENIED:"Prieiga prie kameros uždrausta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_CAMERA_PERMISSION_PROMPT:"Leisti prieigą prie kameros",CALLING_CAMERA_STARTING:"Kamera pradedama veikti",CALLING_CANCEL:"Atšaukti",CALLING_DISABLE_AUDIO:"Išjungti garsą",CALLING_DISABLE_VIDEO:"Išjungti vaizdo įrašą",CALLING_ENABLE_AUDIO:"Įjungti garsą",CALLING_ENABLE_VIDEO:"Įjungti vaizdo įrašą",CALLING_END:"Baigti skambutį",CALLING_IN_PROGRESS:"Prisijungimas prie vaizdo skambučio",CALLING_JOIN:"Prisijungti prie skambučio",CALLING_JOIN_PROMPT:"Paramaus agentas norėtų jums paskambinti.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mano",CALLING_MICROPHONE_PERMISSION_DENIED:"Prieiga prie mikrofono atmesta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Leisti prieigą prie mikrofono",CALLING_NO_DEVICES:"Nėra",CALLING_PERMISSION_NEEDED:"Reikalinga leidimas",CALLING_REJECT:"Atmesti skambutį",CALLING_REJOIN_PROMPT:"Jūs turite aktyvų skambutį su palaikymo agentu. Ar norite vėl prisijungti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agentas",CALLING_REQUEST:"Pradėti vaizdo skambutį?",CALLING_RETRY:"Bandyti dar kartą",CALLING_SAVE:"Išsaugoti",CALLING_SELECT_CAMERA:"Pasirinkite kamerą",CALLING_SELECT_MICROPHONE:"Pasirinkite mikrofoną",CALLING_SELECT_SPEAKER:"Pasirinkite kalbėtoją",CALLING_SHOW_CALL_SETTINGS:"Rodyti skambučio nustatymus",DENY:"Atmesti",END_SESSION:"Nutraukti bendrinimą",FULL_DEVICE_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų peržiūrėti visą jūsų ekraną.",FULL_DEVICE_REQUEST_TITLE:"Leisti fiksuoti visą ekraną?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Palaikymo agentas norėtų valdyti šį puslapį.",REMOTE_CONTROL_REQUEST_TITLE:"Leisti nuotolinę kontrolę?",SESSION_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų laikinai naudotis šiuo tinklapiu kartu su jumis.",SESSION_REQUEST_TITLE:"Leisti bendrą naršymą?",UNIVERSAL_PROXY_BLOCKED:"Šio puslapio negalima peržiūrėti su palaikymo agentu",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų jus sekti į kitas interneto svetaines.",UNIVERSAL_PROXY_REQUEST_TITLE:"Leisti tęsti sesiją?"},mr:{ALLOW:"परवानगी द्या",CALLING_ACCEPT:"स्वीकार करा",CALLING_AGENT_DECLINED:"एजंटने कॉल नाकारली",CALLING_AGENT_WAITING:"एजंटची वाट पाहत आहे...",CALLING_BACK:"मागे",CALLING_CAMERA_OFF:"कॅमेरा बंद आहे",CALLING_CAMERA_PERMISSION_DENIED:"कॅमेरा प्रवेश नाकारण्यात आला. आपल्या ब्राउझरच्या सेटिंग्जमध्ये याला सक्षम करा.",CALLING_CAMERA_PERMISSION_PROMPT:"कॅमेऱ्याला प्रवेश देणे",CALLING_CAMERA_STARTING:"कॅमेरा सुरू होत आहे",CALLING_CANCEL:"रद्द करा",CALLING_DISABLE_AUDIO:"ऑडिओ अक्षम करा",CALLING_DISABLE_VIDEO:"व्हिडिओ अक्षम करा",CALLING_ENABLE_AUDIO:"ऑडिओ सक्षम करा",CALLING_ENABLE_VIDEO:"व्हिडिओ सक्षम करा",CALLING_END:"कॉल संपवा",CALLING_IN_PROGRESS:"व्हिडिओ कॉल मध्ये प्रवेश करीत आहे",CALLING_JOIN:"कॉलमध्ये सामील व्हा",CALLING_JOIN_PROMPT:"एक समर्थन एजंट आपल्याशी बोलू इच्छितो.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मला",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन प्रवेश नाकारला गेला आहे. आपल्या ब्राउझर सेटिंग्जमध्ये ते सक्षम करा.",CALLING_MICROPHONE_PERMISSION_PROMPT:"मायक्रोफोनसाठी प्रवेशाची परवानगी द्या",CALLING_NO_DEVICES:"शून्य",CALLING_PERMISSION_NEEDED:"अनुमती आवश्यक आहे",CALLING_REJECT:"कॉल नाकारणे",CALLING_REJOIN_PROMPT:"आपण सध्या समर्थन एजंटसोबत कॉलवर आहात. आपण पुन्हा जोडू इच्छिता?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजंट",CALLING_REQUEST:"व्हिडिओ कॉलमध्ये प्रवेश करायचा आहे का?",CALLING_RETRY:"पुन्हा प्रयत्न करा",CALLING_SAVE:"जतन करा",CALLING_SELECT_CAMERA:"कॅमेरा निवडा",CALLING_SELECT_MICROPHONE:"माइक्रोफोन निवडा",CALLING_SELECT_SPEAKER:"वक्ता निवडा",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्ज दाखवा",DENY:"नकार द्या",END_SESSION:"कोब्राउझ सत्र समाप्त करा",FULL_DEVICE_REQUEST_DESCRIPTION:"सपोर्ट एजंट तुमची संपूर्ण स्क्रीन पाहू इच्छितो.",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कॅप्चरला परवानगी द्यायची?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक सहाय्यक एजंट या पृष्ठावर नियंत्रण ठेवण्यास आवडेल.",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोलला परवानगी द्यायची?",SESSION_REQUEST_DESCRIPTION:"सपोर्ट एजंट हे वेब पेज तुमच्यासोबत तात्पुरते वापरू इच्छितो.",SESSION_REQUEST_TITLE:"कोब्राउझिंगला परवानगी द्यायची?",UNIVERSAL_PROXY_BLOCKED:"हे वेब पेज समर्थन एजंटसोबत पाहिले जाऊ शकत नाही",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक समर्थन एजंट तुमचा इतर वेब पृष्ठांवर पाठपुरावा करू इच्छितो.",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र सातत्याला परवानगी द्यायची?"},ms:{ALLOW:"Benarkan",CALLING_ACCEPT:"Terima",CALLING_AGENT_DECLINED:"Panggilan ditolak oleh ejen",CALLING_AGENT_WAITING:"Menunggu ejen...",CALLING_BACK:"Kembali",CALLING_CAMERA_OFF:"Kamera dimatikan",CALLING_CAMERA_PERMISSION_DENIED:"Akses kamera dinafi. Aktifkannya dalam tetapan pelayar anda.",CALLING_CAMERA_PERMISSION_PROMPT:"Benarkan akses ke kamera",CALLING_CAMERA_STARTING:"Kamera sedang dimulakan",CALLING_CANCEL:"Batal",CALLING_DISABLE_AUDIO:"Lumpuhkan audio",CALLING_DISABLE_VIDEO:"Lumpuhkan video",CALLING_ENABLE_AUDIO:"Dayakan audio",CALLING_ENABLE_VIDEO:"Dayakan video",CALLING_END:"Tamatkan panggilan",CALLING_IN_PROGRESS:"Memasuki panggilan video",CALLING_JOIN:"Sertai panggilan",CALLING_JOIN_PROMPT:"Ejen sokongan ingin menghubungi anda.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Saya",CALLING_MICROPHONE_PERMISSION_DENIED:"Akses mikrofon ditolak. Aktifkan dalam tetapan pelayar anda.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Benarkan akses ke mikrofon",CALLING_NO_DEVICES:"Tiada",CALLING_PERMISSION_NEEDED:"Kebenaran diperlukan",CALLING_REJECT:"Tolak panggilan",CALLING_REJOIN_PROMPT:"Anda sedang dalam panggilan aktif dengan ejen sokongan. Adakah anda ingin menyertai semula?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Ejen",CALLING_REQUEST:"Masuk panggilan video?",CALLING_RETRY:"Cuba semula",CALLING_SAVE:"Simpan",CALLING_SELECT_CAMERA:"Pilih kamera",CALLING_SELECT_MICROPHONE:"Pilih mikrofon",CALLING_SELECT_SPEAKER:"Pilih pembesar suara",CALLING_SHOW_CALL_SETTINGS:"Tunjukkan tetapan panggilan",DENY:"Tolak",END_SESSION:"Berhenti Berkongsi",FULL_DEVICE_REQUEST_DESCRIPTION:"Ejen sokongan ingin melihat seluruh skrin anda.",FULL_DEVICE_REQUEST_TITLE:"Benarkan rakaman skrin penuh?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengawal halaman ini.",REMOTE_CONTROL_REQUEST_TITLE:"Benarkan kawalan jauh?",SESSION_REQUEST_DESCRIPTION:"Ejen sokongan ingin menggunakan halaman web ini dengan anda buat sementara waktu.",SESSION_REQUEST_TITLE:"Benarkan cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Halaman web ini tidak dapat dilihat bersama ejen sokongan",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengikuti anda ke halaman web lain.",UNIVERSAL_PROXY_REQUEST_TITLE:"Benarkan sambungan sesi?"},nl:{ALLOW:"Toestaan",CALLING_ACCEPT:"Accepteren",CALLING_AGENT_DECLINED:"Oproep geweigerd door agent",CALLING_AGENT_WAITING:"Wachten op agent...",CALLING_BACK:"Terug",CALLING_CAMERA_OFF:"Camera is uit",CALLING_CAMERA_PERMISSION_DENIED:"Toegang tot camera geweigerd. Schakel deze in de instellingen van uw browser in.",CALLING_CAMERA_PERMISSION_PROMPT:"Toegang tot camera toestaan",CALLING_CAMERA_STARTING:"Camera wordt gestart",CALLING_CANCEL:"Annuleren",CALLING_DISABLE_AUDIO:"Audio uitschakelen",CALLING_DISABLE_VIDEO:"Video uitschakelen",CALLING_ENABLE_AUDIO:"Audio inschakelen",CALLING_ENABLE_VIDEO:"Video inschakelen",CALLING_END:"Oproep beëindigen",CALLING_IN_PROGRESS:"In gesprek met video bellen",CALLING_JOIN:"Deelnemen aan oproep",CALLING_JOIN_PROMPT:"Een supportmedewerker wil u bellen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ik",CALLING_MICROPHONE_PERMISSION_DENIED:"Microfoon toegang geweigerd. Schakel dit in uw browserinstellingen in.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Toegang tot microfoon toestaan",CALLING_NO_DEVICES:"Geen",CALLING_PERMISSION_NEEDED:"Toestemming vereist",CALLING_REJECT:"Oproep weigeren",CALLING_REJOIN_PROMPT:"U bent in gesprek met een supportmedewerker. Wilt u opnieuw deelnemen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Video-oproep starten?",CALLING_RETRY:"Opnieuw proberen",CALLING_SAVE:"Opslaan",CALLING_SELECT_CAMERA:"Selecteer camera",CALLING_SELECT_MICROPHONE:"Selecteer microfoon",CALLING_SELECT_SPEAKER:"Selecteer spreker",CALLING_SHOW_CALL_SETTINGS:"Toon oproepinstellingen",DENY:"Afwijzen",END_SESSION:"Cobrowse-sessie beëindigen",FULL_DEVICE_REQUEST_DESCRIPTION:"Een support agent wilt jouw volledige scherm zien.",FULL_DEVICE_REQUEST_TITLE:"Volledige schermopname toestaan?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Een support agent wilt graag deze pagina bedienen.",REMOTE_CONTROL_REQUEST_TITLE:"Bediening op afstand toestaan?",SESSION_REQUEST_DESCRIPTION:"Een support agent wilt graag tijdelijk met u meekijken op deze webpagina.",SESSION_REQUEST_TITLE:"Cobrowsing toestaan?",UNIVERSAL_PROXY_BLOCKED:"Deze webpagina kan niet worden bekeken met een support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Een support agent wilt u graag volgen naar andere webpagina's.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sessievoortzetting toestaan?"},pl:{ALLOW:"Umożliwić",CALLING_ACCEPT:"Akceptuj",CALLING_AGENT_DECLINED:"Połączenie odrzucone przez agenta",CALLING_AGENT_WAITING:"Oczekiwanie na agenta...",CALLING_BACK:"Wstecz",CALLING_CAMERA_OFF:"Kamera jest wyłączona",CALLING_CAMERA_PERMISSION_DENIED:"Odmowa dostępu do kamery. Włącz ją w ustawieniach przeglądarki.",CALLING_CAMERA_PERMISSION_PROMPT:"Zezwól na dostęp do kamery",CALLING_CAMERA_STARTING:"Kamera się uruchamia",CALLING_CANCEL:"Anuluj",CALLING_DISABLE_AUDIO:"Wyłącz dźwięk",CALLING_DISABLE_VIDEO:"Wyłącz wideo",CALLING_ENABLE_AUDIO:"Włącz dźwięk",CALLING_ENABLE_VIDEO:"Włącz wideo",CALLING_END:"Zakończ rozmowę",CALLING_IN_PROGRESS:"Rozpoczynanie połączenia wideo",CALLING_JOIN:"Dołącz do rozmowy",CALLING_JOIN_PROMPT:"Agent wsparcia chciałby do Ciebie zadzwonić.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostęp do mikrofonu został odmówiony. Włącz go w ustawieniach przeglądarki.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zezwól na dostęp do mikrofonu",CALLING_NO_DEVICES:"Brak",CALLING_PERMISSION_NEEDED:"Wymagana zgoda",CALLING_REJECT:"Odrzuć połączenie",CALLING_REJOIN_PROMPT:"Masz aktywne połączenie z agentem wsparcia. Czy chcesz dołączyć ponownie?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Rozpocząć rozmowę wideo?",CALLING_RETRY:"Ponów próbę",CALLING_SAVE:"Zapisz",CALLING_SELECT_CAMERA:"Wybierz kamerę",CALLING_SELECT_MICROPHONE:"Wybierz mikrofon",CALLING_SELECT_SPEAKER:"Wybierz głośnik",CALLING_SHOW_CALL_SETTINGS:"Pokaż ustawienia połączenia",DENY:"Zaprzeczyć",END_SESSION:"Zakończ sesję Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby zobaczyć cały Twój ekran.",FULL_DEVICE_REQUEST_TITLE:"Czy zezwolić na pełne przechwycenie ekranu?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby kontrolować tę stronę.",REMOTE_CONTROL_REQUEST_TITLE:"Czy zezwolić na zdalne sterowanie?",SESSION_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby tymczasowo korzystać z tej strony internetowej razem z Tobą.",SESSION_REQUEST_TITLE:"Czy zezwolić na cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta strona internetowa nie może być oglądana z pracownikiem działu pomocy",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby podążać za Tobą na inne strony internetowe.",UNIVERSAL_PROXY_REQUEST_TITLE:"Czy zezwolić na kontynuację sesji?"},pt:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada recusada pelo agente",CALLING_AGENT_WAITING:"À espera do agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmara desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmara negado. Ative-o nas definições do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmara",CALLING_CAMERA_STARTING:"Câmara a iniciar-se",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Terminar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de lhe telefonar.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas definições do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Recusar chamada",CALLING_REJOIN_PROMPT:"Tem uma chamada ativa com um agente de suporte. Deseja voltar a participar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Selecionar câmara",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar definições de chamada",DENY:"Negado",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de ecrã?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controlo remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},"pt-BR":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada rejeitada pelo agente",CALLING_AGENT_WAITING:"Aguardando o agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmera está desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmera negado. Ative-o nas configurações do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmera",CALLING_CAMERA_STARTING:"A câmera está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Encerrar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de ligar para você.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas configurações do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Rejeitar chamada",CALLING_REJOIN_PROMPT:"Você está em uma ligação ativa com um agente de suporte. Deseja retornar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Salvar",CALLING_SELECT_CAMERA:"Selecionar câmera",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar configurações de chamada",DENY:"Negar",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de tela?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controle remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},ro:{ALLOW:"Permite",CALLING_ACCEPT:"Acceptă",CALLING_AGENT_DECLINED:"Apel respins de agent",CALLING_AGENT_WAITING:"Așteptând agentul...",CALLING_BACK:"Înapoi",CALLING_CAMERA_OFF:"Camera este oprită",CALLING_CAMERA_PERMISSION_DENIED:"Accesul la cameră a fost refuzat. Activați-l în setările browserului dvs.",CALLING_CAMERA_PERMISSION_PROMPT:"Permiteți accesul la cameră",CALLING_CAMERA_STARTING:"Camera pornește",CALLING_CANCEL:"Anulează",CALLING_DISABLE_AUDIO:"Dezactivează audio-ul",CALLING_DISABLE_VIDEO:"Dezactivează video-ul",CALLING_ENABLE_AUDIO:"Activează audio",CALLING_ENABLE_VIDEO:"Activează video-ul",CALLING_END:"Încheiere apel",CALLING_IN_PROGRESS:"Se inițiază apel video",CALLING_JOIN:"Alăturați-vă apelului",CALLING_JOIN_PROMPT:"Un agent de suport ar dori să vă contacteze telefonic.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesul la microfon a fost refuzat. Activați-l în setările browserului dumneavoastră.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permite accesul la microfon",CALLING_NO_DEVICES:"Niciunul",CALLING_PERMISSION_NEEDED:"Permisiune necesară",CALLING_REJECT:"Respinge apelul",CALLING_REJOIN_PROMPT:"Aveți un apel activ cu un agent de suport. Doriți să vă reconectați?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Doriți să intrați în apelul video?",CALLING_RETRY:"Reîncearcă",CALLING_SAVE:"Salvează",CALLING_SELECT_CAMERA:"Selectați camera",CALLING_SELECT_MICROPHONE:"Selectați microfonul",CALLING_SELECT_SPEAKER:"Selectați difuzorul",CALLING_SHOW_CALL_SETTINGS:"Afișați setările apelului",DENY:"Refuză",END_SESSION:"Opriți partajarea",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de asistență dorește să vadă întreg ecranul dumneavoastră.",FULL_DEVICE_REQUEST_TITLE:"Permite capturarea ecranului complet?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent de suport dorește să controleze această pagină.",REMOTE_CONTROL_REQUEST_TITLE:"Permite controlul de la distanță?",SESSION_REQUEST_DESCRIPTION:"Un agent de asistență dorește să utilizeze temporar această pagină web împreună cu dumneavoastră.",SESSION_REQUEST_TITLE:"Permiteți cobrowsing-ul?",UNIVERSAL_PROXY_BLOCKED:"Această pagină web nu poate fi vizualizată împreună cu un agent de asistență",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de suport dorește să vă urmărească pe alte pagini web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permiteți continuarea sesiunii?"},ru:{ALLOW:"Разрешить",CALLING_ACCEPT:"Принять",CALLING_AGENT_DECLINED:"Звонок отклонён агентом",CALLING_AGENT_WAITING:"Ожидание агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера выключена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ к камере запрещён. Включите его в настройках вашего браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Разрешить доступ к камере",CALLING_CAMERA_STARTING:"Камера запускается",CALLING_CANCEL:"Отменить",CALLING_DISABLE_AUDIO:"Отключить аудио",CALLING_DISABLE_VIDEO:"Отключить видео",CALLING_ENABLE_AUDIO:"Включить аудио",CALLING_ENABLE_VIDEO:"Включить видео",CALLING_END:"Завершить звонок",CALLING_IN_PROGRESS:"Вход в видеозвонок",CALLING_JOIN:"Присоединиться к звонку",CALLING_JOIN_PROMPT:"Служба поддержки хочет вам позвонить.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ к микрофону запрещён. Включите его в настройках браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Разрешить доступ к микрофону",CALLING_NO_DEVICES:"Нет",CALLING_PERMISSION_NEEDED:"Требуется разрешение",CALLING_REJECT:"Отклонить вызов",CALLING_REJOIN_PROMPT:"У вас активный звонок с агентом поддержки. Хотите присоединиться снова?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Начать видеозвонок?",CALLING_RETRY:"Повторить попытку",CALLING_SAVE:"Сохранить",CALLING_SELECT_CAMERA:"Выберите камеру",CALLING_SELECT_MICROPHONE:"Выберите микрофон",CALLING_SELECT_SPEAKER:"Выбрать динамик",CALLING_SHOW_CALL_SETTINGS:"Показать настройки вызова",DENY:"Отказать",END_SESSION:"Завершить сеанс совместного просмотра",FULL_DEVICE_REQUEST_DESCRIPTION:"Сотрудник службы поддержки хотел бы просмотреть весь экран.",FULL_DEVICE_REQUEST_TITLE:"Разрешить полный захват экрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент поддержки хотел бы контролировать эту страницу.",REMOTE_CONTROL_REQUEST_TITLE:"Разрешить дистанционное управление?",SESSION_REQUEST_DESCRIPTION:"Агент службы поддержки хотел бы временно использовать эту веб-страницу с вами.",SESSION_REQUEST_TITLE:"Разрешить кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Эта веб-страница не может быть просмотрена с агентом поддержки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент поддержки хотел бы следовать за вами на другие веб-страницы.",UNIVERSAL_PROXY_REQUEST_TITLE:"Разрешить продолжение сеанса?"},sk:{ALLOW:"Povoliť",CALLING_ACCEPT:"Prijať",CALLING_AGENT_DECLINED:"Hovor odmietol agent",CALLING_AGENT_WAITING:"Čakanie na agenta...",CALLING_BACK:"Späť",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Prístup ku kamere odmietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_CAMERA_PERMISSION_PROMPT:"Povoliť prístup ku kamere",CALLING_CAMERA_STARTING:"Kamera sa spúšťa",CALLING_CANCEL:"Zrušiť",CALLING_DISABLE_AUDIO:"Vypnúť zvuk",CALLING_DISABLE_VIDEO:"Zakázať video",CALLING_ENABLE_AUDIO:"Povoliť zvuk",CALLING_ENABLE_VIDEO:"Povoliť video",CALLING_END:"Ukončiť hovor",CALLING_IN_PROGRESS:"Pripájanie k videohovoru",CALLING_JOIN:"Pripojiť sa k hovoru",CALLING_JOIN_PROMPT:"Podporný agent vás chce kontaktovať telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Prístup k mikrofónu zamietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povoliť prístup k mikrofónu",CALLING_NO_DEVICES:"Žiadne",CALLING_PERMISSION_NEEDED:"Vyžaduje sa povolenie",CALLING_REJECT:"Zamietnuť hovor",CALLING_REJOIN_PROMPT:"Máte aktívne volanie s podporným agentom. Chcete sa znova pripojiť?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstúpiť do videohovoru?",CALLING_RETRY:"Opakovať pokus",CALLING_SAVE:"Uložiť",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vyberte mikrofón",CALLING_SELECT_SPEAKER:"Vybrať reproduktora",CALLING_SHOW_CALL_SETTINGS:"Zobraziť nastavenia hovoru",DENY:"Odmietnuť",END_SESSION:"Zastaviť zdieľanie",FULL_DEVICE_REQUEST_DESCRIPTION:"Podporný agent si želá zobraziť celú vašu obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povoliť úplné snímanie obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporný agent by chcel ovládať túto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povoliť vzdialenú správu?",SESSION_REQUEST_DESCRIPTION:"Podporný agent by chcel dočasne používať túto webovú stránku spolu s vami.",SESSION_REQUEST_TITLE:"Povoliť spolusurfovanie?",UNIVERSAL_PROXY_BLOCKED:"Túto webovú stránku nie je možné zobraziť so servisným agentom",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Podporný agent by vás rád sledoval na ďalšie webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povoliť pokračovanie relácie?"},sl:{ALLOW:"Dovoli",CALLING_ACCEPT:"Sprejmi",CALLING_AGENT_DECLINED:"Klic je agent zavrnil",CALLING_AGENT_WAITING:"Čakam na agenta...",CALLING_BACK:"Nazaj",CALLING_CAMERA_OFF:"Kamera je izklopljena",CALLING_CAMERA_PERMISSION_DENIED:"Dostop do kamere zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_CAMERA_PERMISSION_PROMPT:"Dovoli dostop do kamere",CALLING_CAMERA_STARTING:"Kamera se začenja",CALLING_CANCEL:"Prekliči",CALLING_DISABLE_AUDIO:"Onemogoči zvok",CALLING_DISABLE_VIDEO:"Onemogoči video",CALLING_ENABLE_AUDIO:"Omogoči zvok",CALLING_ENABLE_VIDEO:"Omogoči video",CALLING_END:"Končaj klic",CALLING_IN_PROGRESS:"Vstop v video klic",CALLING_JOIN:"Pridruži se klicu",CALLING_JOIN_PROMPT:"Podporni agent vas želi poklicati.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jaz",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostop do mikrofona zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Dovoli dostop do mikrofona",CALLING_NO_DEVICES:"Noben",CALLING_PERMISSION_NEEDED:"Potrebna dovoljenja",CALLING_REJECT:"Zavrni klic",CALLING_REJOIN_PROMPT:"Imate aktivni klic s podporo. Želite ponovno pristopiti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Želite vstopiti v video klic?",CALLING_RETRY:"Poskusi znova",CALLING_SAVE:"Shrani",CALLING_SELECT_CAMERA:"Izberite kamero",CALLING_SELECT_MICROPHONE:"Izberite mikrofon",CALLING_SELECT_SPEAKER:"Izberite zvočnika",CALLING_SHOW_CALL_SETTINGS:"Prikaži nastavitve klica",DENY:"Zanikati",END_SESSION:"Končaj sejo Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Agent za podporo si želi ogledati vaš celoten zaslon.",FULL_DEVICE_REQUEST_TITLE:"Dovoliti zajemanje celotnega zaslona?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporni agent želi nadzorovati to stran.",REMOTE_CONTROL_REQUEST_TITLE:"Dovoliti daljinsko upravljanje?",SESSION_REQUEST_DESCRIPTION:"Agent za podporo želi začasno uporabljati to spletno stran z vami.",SESSION_REQUEST_TITLE:"Dovoliti cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta spletna stran se ne more ogledovati z agentom za podporo",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent za podporo vas želi slediti na druge spletne strani.",UNIVERSAL_PROXY_REQUEST_TITLE:"Dovoliti nadaljevanje seje?"},sv:{ALLOW:"Tillåt",CALLING_ACCEPT:"Acceptera",CALLING_AGENT_DECLINED:"Samtal avvisades av agenten",CALLING_AGENT_WAITING:"Väntar på agent...",CALLING_BACK:"Tillbaka",CALLING_CAMERA_OFF:"Kameran är avstängd",CALLING_CAMERA_PERMISSION_DENIED:"Kameratillgång nekad. Aktivera den i dina webbläsarinställningar.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillåt åtkomst till kamera",CALLING_CAMERA_STARTING:"Kameran startar",CALLING_CANCEL:"Avbryt",CALLING_DISABLE_AUDIO:"Inaktivera ljud",CALLING_DISABLE_VIDEO:"Inaktivera video",CALLING_ENABLE_AUDIO:"Aktivera ljud",CALLING_ENABLE_VIDEO:"Aktivera video",CALLING_END:"Avsluta samtal",CALLING_IN_PROGRESS:"Ansluter till videosamtal",CALLING_JOIN:"Gå med i samtal",CALLING_JOIN_PROMPT:"En supportagent vill ringa dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jag",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofontillgång nekad. Aktivera den i din webbläsarinställningar.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillåt åtkomst till mikrofonen",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Behörighet krävs",CALLING_REJECT:"Avvisa samtal",CALLING_REJOIN_PROMPT:"Du har ett aktivt samtal med en supportagent. Vill du ansluta igen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Starta videosamtal?",CALLING_RETRY:"Försök igen",CALLING_SAVE:"Spara",CALLING_SELECT_CAMERA:"Välj kamera",CALLING_SELECT_MICROPHONE:"Välj mikrofon",CALLING_SELECT_SPEAKER:"Välj talare",CALLING_SHOW_CALL_SETTINGS:"Visa samtalsinställningar",DENY:"Neka",END_SESSION:"Sluta dela",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent vill se hela din skärm.",FULL_DEVICE_REQUEST_TITLE:"Tillåt fullskärmsinspelning?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent vill kontrollera denna sida.",REMOTE_CONTROL_REQUEST_TITLE:"Tillåt fjärrstyrning?",SESSION_REQUEST_DESCRIPTION:"En supportagent vill tillfälligt använda denna webbsida tillsammans med dig.",SESSION_REQUEST_TITLE:"Tillåt samvisning?",UNIVERSAL_PROXY_BLOCKED:"Den här webbsidan kan inte visas tillsammans med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vill följa dig till andra webbsidor.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillåt sessionens fortsättning?"},th:{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"กลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงกล้อง โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กำลังเริ่มกล้อง",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"สิ้นสุดการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ปฏิเสธการเข้าถึงไมโครโฟน เปิดใช้งานได้ที่การตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการสิทธิ์การอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่ฝ่ายสนับสนุน ต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"ตัวแทน",CALLING_REQUEST:"เข้าร่วมสายวิดีโอคอลหรือไม่?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้จับภาพหน้าจอแบบเต็มจอหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตให้ควบคุมระยะไกลได้หรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ร่วมท่องเว็บไหม?",UNIVERSAL_PROXY_BLOCKED:"ไม่สามารถดูหน้าเว็บนี้กับเจ้าหน้าที่สนับสนุนได้",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการต่อเซสชันไหม?"},"th-TH":{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"ย้อนกลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"การเข้าถึงกล้องถูกปฏิเสธ โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กล้องกำลังเริ่มทำงาน",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"ยุติการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่สนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงไมโครโฟน เปิดใช้งานได้ในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการการอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่สนับสนุน คุณต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"เจ้าหน้าที่",CALLING_REQUEST:"เข้าร่วมวิดีโอคอล?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้บันทึกหน้าจอเต็มหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"เจ้าหน้าที่สนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตการควบคุมระยะไกลหรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณเป็นการชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ใช้โคบราวซิ่งหรือไม่?",UNIVERSAL_PROXY_BLOCKED:"หน้าเว็บนี้ไม่สามารถดูได้พร้อมกับเจ้าหน้าที่สนับสนุน",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการเซสชันต่อหรือไม่?"},uk:{ALLOW:"Дозволити",CALLING_ACCEPT:"Прийняти",CALLING_AGENT_DECLINED:"Дзвінок відхилено агентом",CALLING_AGENT_WAITING:"Очікування агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера вимкнена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ до камери заборонено. Увімкніть його у налаштуваннях браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Дозволити доступ до камери",CALLING_CAMERA_STARTING:"Камера запускається",CALLING_CANCEL:"Скасувати",CALLING_DISABLE_AUDIO:"Вимкнути звук",CALLING_DISABLE_VIDEO:"Вимкнути відео",CALLING_ENABLE_AUDIO:"Увімкнути звук",CALLING_ENABLE_VIDEO:"Увімкнути відео",CALLING_END:"Завершити дзвінок",CALLING_IN_PROGRESS:"Вхід у відеодзвінок",CALLING_JOIN:"Приєднатися до дзвінка",CALLING_JOIN_PROMPT:"Агент підтримки хоче зателефонувати вам.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ до мікрофона заборонено. Увімкніть його в налаштуваннях браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Дозволити доступ до мікрофона",CALLING_NO_DEVICES:"Жоден",CALLING_PERMISSION_NEEDED:"Потрібен дозвіл",CALLING_REJECT:"Відхилити дзвінок",CALLING_REJOIN_PROMPT:"У вас активний дзвінок із агентом підтримки. Бажаєте приєднатися знову?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Почати відеодзвінок?",CALLING_RETRY:"Повторити спробу",CALLING_SAVE:"Зберегти",CALLING_SELECT_CAMERA:"Вибрати камеру",CALLING_SELECT_MICROPHONE:"Виберіть мікрофон",CALLING_SELECT_SPEAKER:"Вибрати динамік",CALLING_SHOW_CALL_SETTINGS:"Показати налаштування дзвінка",DENY:"Заперечую",END_SESSION:"Завершити сеанс Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Агент підтримки хотів би переглянути весь ваш екран.",FULL_DEVICE_REQUEST_TITLE:"Дозволити повне захоплення екрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент підтримки хотів би контролювати цю сторінку.",REMOTE_CONTROL_REQUEST_TITLE:"Дозволити дистанційне керування?",SESSION_REQUEST_DESCRIPTION:"Агент служби підтримки хотів би тимчасово використовувати цю веб-сторінку разом з вами.",SESSION_REQUEST_TITLE:"Дозволити кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Ця веб-сторінка не може бути переглянута з агентом підтримки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент підтримки хотів би слідувати за вами на інші веб-сторінки.",UNIVERSAL_PROXY_REQUEST_TITLE:"Дозволити продовження сеансу?"},vi:{ALLOW:"Cho phép",CALLING_ACCEPT:"Chấp nhận",CALLING_AGENT_DECLINED:"Cuộc gọi bị đại lý từ chối",CALLING_AGENT_WAITING:"Đang chờ đại lý...",CALLING_BACK:"Quay lại",CALLING_CAMERA_OFF:"Camera đã tắt",CALLING_CAMERA_PERMISSION_DENIED:"Truy cập camera bị từ chối. Hãy bật nó trong cài đặt trình duyệt của bạn.",CALLING_CAMERA_PERMISSION_PROMPT:"Cho phép truy cập camera",CALLING_CAMERA_STARTING:"Máy ảnh đang khởi động",CALLING_CANCEL:"Hủy bỏ",CALLING_DISABLE_AUDIO:"Tắt âm thanh",CALLING_DISABLE_VIDEO:"Vô hiệu hóa video",CALLING_ENABLE_AUDIO:"Bật âm thanh",CALLING_ENABLE_VIDEO:"Bật video",CALLING_END:"Kết thúc cuộc gọi",CALLING_IN_PROGRESS:"Đang tham gia cuộc gọi video",CALLING_JOIN:"Tham gia cuộc gọi",CALLING_JOIN_PROMPT:"Một nhân viên hỗ trợ muốn gọi cho bạn.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Tôi",CALLING_MICROPHONE_PERMISSION_DENIED:"Quyền truy cập micro bị từ chối. Vui lòng bật trong cài đặt trình duyệt của bạn.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Cho phép truy cập micro",CALLING_NO_DEVICES:"Không có gì",CALLING_PERMISSION_NEEDED:"Cần quyền truy cập",CALLING_REJECT:"Từ chối cuộc gọi",CALLING_REJOIN_PROMPT:"Bạn đang có một cuộc gọi đang hoạt động với nhân viên hỗ trợ. Bạn có muốn tham gia lại không?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Đại lý",CALLING_REQUEST:"Tham gia gọi video?",CALLING_RETRY:"Thử lại",CALLING_SAVE:"Lưu",CALLING_SELECT_CAMERA:"Chọn camera",CALLING_SELECT_MICROPHONE:"Chọn micro",CALLING_SELECT_SPEAKER:"Chọn người nói",CALLING_SHOW_CALL_SETTINGS:"Hiển thị cài đặt cuộc gọi",DENY:"Từ chối",END_SESSION:"Kết thúc phiên Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn xem toàn bộ màn hình của bạn.",FULL_DEVICE_REQUEST_TITLE:"Cho phép chụp toàn bộ màn hình?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn kiểm soát trang này.",REMOTE_CONTROL_REQUEST_TITLE:"Cho phép điều khiển từ xa?",SESSION_REQUEST_DESCRIPTION:"Một tổng đài viên muốn tạm thời sử dụng trang web này với bạn.",SESSION_REQUEST_TITLE:"Cho phép cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Trang web này không thể được xem cùng với một tổng đài viên hỗ trợ",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn theo dõi bạn đến các trang web khác.",UNIVERSAL_PROXY_REQUEST_TITLE:"Cho phép tiếp tục phiên?"},zh:{ALLOW:"允许",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"客服拒接电话",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"摄像头已关闭",CALLING_CAMERA_PERMISSION_DENIED:"摄像头访问被拒绝。请在您的浏览器设置中启用。",CALLING_CAMERA_PERMISSION_PROMPT:"允许访问摄像头",CALLING_CAMERA_STARTING:"摄像头正在启动",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"禁用音频",CALLING_DISABLE_VIDEO:"禁用视频",CALLING_ENABLE_AUDIO:"启用音频",CALLING_ENABLE_VIDEO:"启用视频",CALLING_END:"结束通话",CALLING_IN_PROGRESS:"进入视频通话",CALLING_JOIN:"加入通话",CALLING_JOIN_PROMPT:"支持代理想要给您打电话。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麦克风访问被拒绝。请在您的浏览器设置中启用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允许访问麦克风",CALLING_NO_DEVICES:"无",CALLING_PERMISSION_NEEDED:"需要权限",CALLING_REJECT:"拒绝通话",CALLING_REJOIN_PROMPT:"您当前正与一位支持代理通话。您想重新加入吗?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"坐席",CALLING_REQUEST:"开始视频通话?",CALLING_RETRY:"重试",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"选择摄像头",CALLING_SELECT_MICROPHONE:"选择麦克风",CALLING_SELECT_SPEAKER:"选择说话者",CALLING_SHOW_CALL_SETTINGS:"显示通话设置",DENY:"拒绝",END_SESSION:"结束共同浏览会话",FULL_DEVICE_REQUEST_DESCRIPTION:"客服代理希望查看您的整个屏幕。",FULL_DEVICE_REQUEST_TITLE:"允许全屏截图?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"客服代理希望控制此页面。",REMOTE_CONTROL_REQUEST_TITLE:"允许远程控制?",SESSION_REQUEST_DESCRIPTION:"客服代理希望与您暂时共享此网页。",SESSION_REQUEST_TITLE:"允许协同浏览?",UNIVERSAL_PROXY_BLOCKED:"此网页无法与客服代理一起查看",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟随您访问其他网页。",UNIVERSAL_PROXY_REQUEST_TITLE:"允许会话继续?"},"zh-Hant":{ALLOW:"允許",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"代理拒接通話",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"攝影機已關閉",CALLING_CAMERA_PERMISSION_DENIED:"相機存取被拒。請在瀏覽器設定中啟用。",CALLING_CAMERA_PERMISSION_PROMPT:"允許存取相機",CALLING_CAMERA_STARTING:"攝影機正在啟動",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"停用音訊",CALLING_DISABLE_VIDEO:"停用影片",CALLING_ENABLE_AUDIO:"啟用音訊",CALLING_ENABLE_VIDEO:"啟用影片",CALLING_END:"結束通話",CALLING_IN_PROGRESS:"進入視訊通話",CALLING_JOIN:"加入通話",CALLING_JOIN_PROMPT:"支援代理想要致電給您。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麥克風存取被拒。請在您的瀏覽器設定中啟用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允許存取麥克風",CALLING_NO_DEVICES:"無",CALLING_PERMISSION_NEEDED:"需要權限",CALLING_REJECT:"拒絕通話",CALLING_REJOIN_PROMPT:"您目前正與客服代理通話。您要重新加入嗎?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"代理",CALLING_REQUEST:"進入視訊通話?",CALLING_RETRY:"重試",CALLING_SAVE:"儲存",CALLING_SELECT_CAMERA:"選擇攝影機",CALLING_SELECT_MICROPHONE:"選擇麥克風",CALLING_SELECT_SPEAKER:"選擇講者",CALLING_SHOW_CALL_SETTINGS:"顯示通話設定",DENY:"拒絕",END_SESSION:"結束共同瀏覽會話",FULL_DEVICE_REQUEST_DESCRIPTION:"一位支援代理想檢視您的整個畫面。",FULL_DEVICE_REQUEST_TITLE:"允許全螢幕截圖?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"一位支援代理希望控制此頁面。",REMOTE_CONTROL_REQUEST_TITLE:"允許遠程控制?",SESSION_REQUEST_DESCRIPTION:"支援人員希望暫時與您一起使用此網頁。",SESSION_REQUEST_TITLE:"允許協同瀏覽?",UNIVERSAL_PROXY_BLOCKED:"此網頁無法與客服代理一起檢視",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟隨您訪問其他網頁。",UNIVERSAL_PROXY_REQUEST_TITLE:"允許會話繼續?"}},vW=["ar","he","fa","ur"];class EW{static getLocale(){for(const e of navigator.languages){if(_W[e])return new EW(e);if(e.includes("-")){const t=e.split("-")[0].toLowerCase();if(_W[t])return new EW(t)}}return new EW("en")}static tr(e){return this.getLocale().translate(e)}static direction(){return this.getLocale().direction}constructor(e){this.language=e,this.direction=vW.includes(e)?"rtl":"ltr"}translate(e){return _W[this.language][e]||_W.en[e]||e}}function wW(){for(var e,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&"string"==typeof e&&(n+=(n&&" ")+e);return n}const yW={base:"Button-module__base___gx4CL",primary:"Button-module__primary___TUjdp",secondary:"Button-module__secondary___CJVQq"},IW=["children","className","variant","disabled"],LW=e=>{let{children:t,className:n,variant:r,disabled:i}=e,o=Jo(e,IW);return Ab(bS,{children:Ab("button",Yo(Yo({className:wW(yW.base,yW[r],n),disabled:i},o),{},{children:t}))})},CW=({children:e,footer:t,style:n,corner:r="top-left",onCornerChange:i})=>{const[o,s]=ub({x:0,y:0}),[a,c]=ub(!1),[l,u]=ub(!1),d=hb(o),h=hb(null),f=hb({x:0,y:0}),p=hb(null),g=hb(r);db(()=>{d.current=o},[o]),db(()=>{var e,t;if(!h.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,i=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=h.current,c={"top-left":{x:0,y:0,dx:0,dy:0},"top-right":{x:n-o,y:0,dx:1,dy:0},"bottom-left":{x:0,y:i-a,dx:0,dy:1},"bottom-right":{x:n-o,y:i-a,dx:1,dy:1}},{x:l,y:u,dx:d,dy:f}=c[r];s({x:l,y:u}),p.current={dx:d,dy:f},g.current=r},[r]);const m=(e,t)=>{c(!0),u(!1),f.current={x:e-o.x,y:t-o.y}};db(()=>{const e=e=>{var t,n;if(!a)return;const r=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,i=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let o=e.clientX-f.current.x,c=e.clientY-f.current.y;if(h.current){const{offsetWidth:e,offsetHeight:t}=h.current;o=Math.max(0,Math.min(o,r-e)),c=Math.max(0,Math.min(c,i-t))}s({x:o,y:c}),d.current={x:o,y:c}},t=e=>{var t,n;if(!a)return;e.preventDefault();const r=e.touches[0];if(!r)return;const i=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,o=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let c=r.clientX-f.current.x,l=r.clientY-f.current.y;if(h.current){const{offsetWidth:e,offsetHeight:t}=h.current;c=Math.max(0,Math.min(c,i-e)),l=Math.max(0,Math.min(l,o-t))}s({x:c,y:l}),d.current={x:c,y:l}},n=()=>{c(!1),window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n),setTimeout(v,0)};return a&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",n),window.addEventListener("touchmove",t,{passive:!1}),window.addEventListener("touchend",n)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n)}},[a]);const _=pb(()=>{var e,t;if(!h.current||!p.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:i,offsetHeight:o}=h.current,{dx:a,dy:c}=p.current;s({x:0===a?0:n-i,y:0===c?0:r-o})},[]);db(()=>(window.addEventListener("resize",_),()=>window.removeEventListener("resize",_)),[_]),db(()=>{const e=new ResizeObserver(()=>{u(!0),_(),setTimeout(()=>u(!1),300)});return h.current&&e.observe(h.current),()=>e.disconnect()},[_]);const v=()=>{var e,t;if(!h.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=h.current,c=[{name:"top-left",x:0,y:0,dx:0,dy:0},{name:"top-right",x:n-o,y:0,dx:1,dy:0},{name:"bottom-left",x:0,y:r-a,dx:0,dy:1},{name:"bottom-right",x:n-o,y:r-a,dx:1,dy:1}],l=d.current,f=(e,t)=>Math.hypot(e.x-t.x,e.y-t.y),m=c.reduce((e,t)=>f(l,t)<f(l,e)?t:e);u(!0),s({x:m.x,y:m.y}),p.current={dx:m.dx,dy:m.dy},g.current!==m.name&&(null==i||i(m.name),g.current=m.name),setTimeout(()=>u(!1),300)};return Ab("div",{ref:h,style:Yo(Yo({},n),{},{position:"fixed",left:o.x,top:o.y,transition:l?"left 0.3s ease, top 0.3s ease, transform 0.2s ease":"transform 0.2s ease"}),children:[Ab("div",{style:{cursor:a?"grabbing":"grab",transform:a?"scale(1.02)":"scale(1)",transition:"transform 0.2s ease"},onMouseDown:e=>{e.preventDefault(),m(e.clientX,e.clientY)},onTouchStart:e=>{const t=e.touches[0];t&&m(t.clientX,t.clientY)},children:e}),null!=t?t:null]})},AW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ab("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Ab("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]}),SW=Ab("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ab("path",{d:"M21.5 12V15C21.5 15.2652 21.3946 15.5196 21.2071 15.7071C21.0196 15.8946 20.7652 16 20.5 16H4.5C4.23478 16 3.98043 15.8946 3.79289 15.7071C3.60536 15.5196 3.5 15.2652 3.5 15L3.5 5C3.5 4.73478 3.60536 4.48043 3.79289 4.29289C3.98043 4.10536 4.23478 4 4.5 4L13.5 4M7.5 20H17.5M9.5 16V20M15.5 16V20M17.5 8L21.5 4M17.5 4L21.5 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),bW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"}),Ab("path",{d:"M5 10a7 7 0 0 0 14 0"}),Ab("path",{d:"M8 21l8 0"}),Ab("path",{d:"M12 17l0 4"})]}),NW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M3 3l18 18"}),Ab("path",{d:"M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1"}),Ab("path",{d:"M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85"}),Ab("path",{d:"M8 21l8 0"}),Ab("path",{d:"M12 17l0 4"})]}),TW=Ab("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ab("path",{d:"M23.1068 13.9142L20.2784 16.7426L15.3286 14.6213L16.0357 11.7929C13.7429 11.0147 11.2574 11.0147 8.96465 11.7929L9.67175 14.6213L4.72201 16.7426L1.89358 13.9142C1.51851 13.5391 1.30779 13.0304 1.30779 12.5C1.30779 11.9696 1.51851 11.4609 1.89358 11.0858C4.81944 8.49517 8.59225 7.06493 12.5002 7.06493C16.4081 7.06493 20.1809 8.49517 23.1068 11.0858C23.4819 11.4609 23.6926 11.9696 23.6926 12.5C23.6926 13.0304 23.4819 13.5391 23.1068 13.9142Z",stroke:"#F5F6FB","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),kW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}),Ab("path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]}),OW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M3 3l18 18"}),Ab("path",{d:"M15 11v-1l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -.675 .946"}),Ab("path",{d:"M10 6h3a2 2 0 0 1 2 2v3m0 4v1a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h1"})]}),RW=Ab("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Ab("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Ab("path",{d:"M15 8a5 5 0 0 1 0 8"}),Ab("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),Ab("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]}),PW=Object.freeze({__proto__:null,DotsVertical:AW,EndSession:SW,Microphone:bW,MicrophoneOff:NW,Phone:TW,Video:kW,VideoOff:OW,Volume:RW}),DW=["name"],MW=e=>{let{name:t}=e;return Ab("div",Yo(Yo({"aria-hidden":"true",style:{display:"inline-block"}},Jo(e,DW)),{},{children:PW[t]}))},xW=["children","className","ariaLabel","title"],GW=e=>{let{children:t,className:n,ariaLabel:r,title:i}=e,o=Jo(e,xW);return Ab("button",Yo(Yo({className:wW("IconButton-module__base___Cg18y",n),"aria-label":r,title:null!=r?r:i},o),{},{children:t}))},UW=["children","className"],WW=e=>{let{children:t,className:n}=e;return Ab("div",Yo(Yo({className:"Modal-module__container___ZH7Ev",role:"dialog","aria-modal":"true"},Jo(e,UW)),{},{children:Ab("section",{className:wW("Modal-module__content___I-t2M",n),dir:EW.direction(),children:t})}))},VW="data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%2F%3E%3Cpath%20d%3D%5CiM6%209l6%206l6%20-6%5Ci%20%2F%3E%3C%2Fsvg%3E",FW=["children","iconUrl","className","ariaLabel","style"],jW=e=>{let{children:t,iconUrl:n,className:r,ariaLabel:i,style:o}=e,s=Jo(e,FW);const a=Yo(Yo({},n?{backgroundImage:`url("${n}"),url("${VW}")`,backgroundPosition:"left 4px center,right 4px center",padding:"8px 24px 8px 24px"}:{backgroundImage:`url("${VW}")`}),o);return Ab("select",Yo(Yo({className:wW("Select-module__base___M3sny",!n&&"Select-module__noIcon___WDzeV",r),"aria-label":i,style:a},s),{},{children:t}))},BW=["children"],zW=e=>{let{children:t}=e;return Ab("option",Yo(Yo({},Jo(e,BW)),{},{children:t}))},HW=({onClick:e})=>Ab("div",{className:"SessionStateOverlay-module__sessionStateOverlay___vT0jC",children:Ab(LW,{className:"SessionStateOverlay-module__endSessionButton___pO2E2",onClick:()=>e("session-end"),children:[EW.tr("END_SESSION"),Ab(MW,{className:"SessionStateOverlay-module__endSessionIcon___rHBj2",name:"EndSession"})]})});var qW=new WeakMap;const QW=new class extends yv{constructor(...e){super(...e),Bo(this,qW,null),Qo(this,"showSessionControls",()=>{this.hideSessionControls(),zo(qW,this,Ib(HW,{onClick:e=>this.emit("click",e)},{hideFromAgent:!0}))}),Qo(this,"hideSessionControls",()=>{var e;null===(e=jo(qW,this))||void 0===e||e.unmount(),zo(qW,this,null)})}},$W=({title:e,description:t,onDeny:n,onAllow:r})=>Ab(bS,{children:Ab(WW,{className:"ConsentDialog-module__content___9Rp4u","aria-labelledby":"title","aria-describedby":"description",children:[Ab("header",{children:Ab("h2",{id:"title",className:"ConsentDialog-module__title___QVdGh",children:e})}),Ab("div",{className:"ConsentDialog-module__body___azYOk",children:Ab("p",{id:"description",className:"ConsentDialog-module__description___zucXq",children:t})}),Ab("footer",{className:"ConsentDialog-module__buttons___f9Tr6",children:[Ab(LW,{variant:"secondary",onClick:n,children:EW.tr("DENY")}),Ab(LW,{variant:"primary",onClick:r,children:EW.tr("ALLOW")})]})]})});var YW=new WeakMap;class JW{constructor(){Bo(this,YW,void 0),Qo(this,"show",async(e,t)=>{var n;return null===(n=jo(YW,this))||void 0===n||n.unmount(),new Promise(n=>{const r={title:e,description:t,onDeny:e=>{e.isTrusted&&(n(!1),this.hide())},onAllow:e=>{e.isTrusted&&(n(!0),this.hide())}};zo(YW,this,Ib($W,r,{hideFromAgent:!0}))})}),Qo(this,"hide",()=>{var e;null===(e=jo(YW,this))||void 0===e||e.unmount(),zo(YW,this,null)})}}const KW="_cobrowse_media_settings",XW={videoEnabled:!1,videoInputDeviceId:"default",audioEnabled:!1,audioInputDeviceId:"default",audioOutputDeviceId:"default"},ZW={width:{ideal:1280},height:{ideal:720}},eV=({audioEnabled:e,audioInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{audio:!!e&&{deviceId:{[n]:t}}}},tV=({videoEnabled:e,videoInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{video:!!e&&Yo(Yo({},ZW),{},{deviceId:{[n]:t}})}};var nV=new WeakMap,rV=new WeakMap,iV=new WeakMap;class oV extends yv{constructor(e){super(),Bo(this,nV,null),Bo(this,rV,void 0),Bo(this,iV,void 0),zo(nV,this,Yo(Yo({},XW),e.getItem(KW))),zo(rV,this,t=>e.setItem(KW,t)),zo(iV,this,()=>this.update(e.getItem(KW)))}get settings(){return Yo({},jo(nV,this))}update(e){var t;let n=!1;for(const[t,r]of Object.entries(e))void 0!==r&&t in jo(nV,this)&&jo(nV,this)[t]!==r&&(jo(nV,this)[t]=r,n=!0);n&&(null===(t=jo(rV,this))||void 0===t||t.call(this,jo(nV,this)),this.emit("updated",this))}toggleAudio(){this.update({audioEnabled:!jo(nV,this).audioEnabled})}toggleVideo(){this.update({videoEnabled:!jo(nV,this).videoEnabled})}reloadFromStorage(){jo(iV,this).call(this)}}const sV="prompt",aV=e=>({granted:"granted"===e,denied:"denied"===e,prompt:e===sV}),cV="MediaPreview-module__voiceVideoControlsToggle___k5XoS",lV="MediaPreview-module__voiceVideoControlsToggleOff___2nclS",uV="MediaPreview-module__voiceVideoControlsToggleOn___whg1G",dV="MediaPreview-module__voiceVideoControlsIcon___JYkty",hV="default",fV=(e,t)=>e.some(e=>e.deviceId===t),pV=({initialSettings:e,onSettingsChange:t,disabled:n})=>{const r=hb(null),i=hb(new MediaStream),{audioInputDevices:o,audioOutputDevices:s,videoInputDevices:a,audioPermission:c,videoPermission:l,updateDeviceLists:u,updatePermissions:d}=(()=>{const[e,t]=ub([]),[n,r]=ub([]),[i,o]=ub([]),[s,a]=ub(sV),[c,l]=ub(sV),u=fb(()=>aV(s),[s]),d=fb(()=>aV(c),[c]),h=hb(null),f=hb(null),p=pb(async()=>{if(!navigator.mediaDevices)return;const e=await navigator.mediaDevices.enumerateDevices(),n=[],i=[],s=[];e.forEach(e=>{e.deviceId&&("audioinput"===e.kind&&n.push(e),"audiooutput"===e.kind&&i.push(e),"videoinput"===e.kind&&s.push(e))}),t(n),r(i),o(s)},[]),g=()=>a(h.current.state),m=()=>l(f.current.state),_=pb(async()=>{try{var e,t;null===(e=h.current)||void 0===e||e.removeEventListener("change",g),h.current=await navigator.permissions.query({name:"microphone"}),h.current.addEventListener("change",g),null===(t=f.current)||void 0===t||t.removeEventListener("change",m),f.current=await navigator.permissions.query({name:"camera"}),f.current.addEventListener("change",m),a(h.current.state),l(f.current.state)}catch(e){console.warn("CobrowseIO: Failed to get permissions",e),a(sV),l(sV)}},[]);return db(()=>{_()},[_]),db(()=>{var e;return null===(e=navigator.mediaDevices)||void 0===e||e.addEventListener("devicechange",p),p(),()=>{var e;null===(e=navigator.mediaDevices)||void 0===e||e.removeEventListener("devicechange",p)}},[p]),db(()=>{p()},[s,c,p]),{audioInputDevices:e,audioOutputDevices:n,videoInputDevices:i,audioPermission:u,videoPermission:d,updateDeviceLists:p,updatePermissions:_}})(),[h,f]=ub(!1),[p,g]=ub(e.videoEnabled),[m,_]=ub(e.videoInputDeviceId),[v,E]=ub(e.audioEnabled),[w,y]=ub(e.audioInputDeviceId),[I,L]=ub(e.audioOutputDeviceId);db(()=>{null==t||t({videoEnabled:p,videoInputDeviceId:m,audioEnabled:v,audioInputDeviceId:w,audioOutputDeviceId:I})},[t,p,m,v,w,I]);const C=pb(e=>{i.current.getTracks().filter(t=>t.kind===e).forEach(e=>{e.stop(),i.current.removeTrack(e)})},[]);db(()=>{r.current&&(r.current.srcObject=i.current)},[]),db(()=>{if(!fV(o,w))return fV(o,hV)?y(hV):void(o.length&&y(o[0].deviceId))},[o,w]),db(()=>{if(!fV(s,I))return fV(s,hV)?L(hV):void(s.length&&L(s[0].deviceId))},[s,I]),db(()=>{if(!fV(a,m))return fV(a,hV)?_(hV):void(a.length&&_(a[0].deviceId))},[a,m]),db(()=>{if(!p)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start video, mediaDevices is not available"),void g(!1);f(!0);const e=tV({videoEnabled:p,videoInputDeviceId:m});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get video",e),l.prompt&&g(!1)}).finally(()=>{d(),f(!1)}),()=>C("video")},[u,d,l,p,m,C]),db(()=>{if(!v)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start audio, mediaDevices is not available"),void E(!1);const e=eV({audioEnabled:v,audioInputDeviceId:w});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get audio",e),c.prompt&&E(!1)}).finally(()=>{d()}),()=>C("audio")},[u,d,c,v,w,C]);const A=(e,t)=>Ab("div",{className:wW("MediaPreview-module__videoOverlay___e7YkR",t?"MediaPreview-module__videoOverlayTransparent___qVogL":"MediaPreview-module__videoOverlaySolid___uy0ao"),children:Ab("p",{className:"MediaPreview-module__videoOverlayText___L-nXB",children:e})}),S=(e,t)=>e?t.length?t.map(e=>Ab(zW,{value:e.deviceId,children:e.label},e.deviceId)):Ab(zW,{value:"",disabled:!0,selected:!0,children:EW.tr("CALLING_NO_DEVICES")}):Ab(zW,{value:"",disabled:!0,selected:!0,children:EW.tr("CALLING_PERMISSION_NEEDED")});return Ab(bS,{children:[Ab("div",{className:"MediaPreview-module__previewContainer___jg4yL",children:[Ab("div",{className:"MediaPreview-module__videoContainer___-OEXn",children:[Ab("video",{ref:r,className:"MediaPreview-module__video___0LBZO",autoPlay:!0,playsInline:!0,muted:!0}),(()=>{const e=p&&l.granted;if(v){if(c.denied)return A(EW.tr("CALLING_MICROPHONE_PERMISSION_DENIED"),e);if(c.prompt)return A(EW.tr("CALLING_MICROPHONE_PERMISSION_PROMPT"),e)}return p?l.denied?A(EW.tr("CALLING_CAMERA_PERMISSION_DENIED"),e):l.prompt?A(EW.tr("CALLING_CAMERA_PERMISSION_PROMPT"),e):h?A(EW.tr("CALLING_CAMERA_STARTING"),e):null:A(EW.tr("CALLING_CAMERA_OFF"),e)})()]}),Ab(gV,{audioEnabled:v,toggleAudio:()=>E(e=>!e),videoEnabled:p,toggleVideo:()=>g(e=>!e),disabled:n})]}),Ab("div",{className:"MediaPreview-module__deviceContainer___NlbuY",children:[Ab(jW,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM9%202m0%203a3%203%200%200%201%203%20-3h0a3%203%200%200%201%203%203v5a3%203%200%200%201%20-3%203h0a3%203%200%200%201%20-3%20-3z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM5%2010a7%207%200%200%200%2014%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM8%2021l8%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM12%2017l0%204%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:EW.tr("CALLING_SELECT_MICROPHONE"),value:c.granted&&o.length?w:"",onChange:e=>y(e.target.value),disabled:n||!c.granted||!o.length,children:S(c.granted,o)}),Ab(jW,{iconUrl:"data:image/svg+xml,%20%20%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%20%20%20%20%3Cpath%20d%3D%5CiM15%208a5%205%200%200%201%200%208%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM17.7%205a9%209%200%200%201%200%2014%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM6%2015h-2a1%201%200%200%201%20-1%20-1v-4a1%201%200%200%201%201%20-1h2l3.5%20-4.5a.8%20.8%200%200%201%201.5%20.5v14a.8%20.8%200%200%201%20-1.5%20.5l-3.5%20-4.5%5Ci%20%2F%3E%20%20%3C%2Fsvg%3E",ariaLabel:EW.tr("CALLING_SELECT_SPEAKER"),value:c.granted&&s.length?I:"",onChange:e=>L(e.target.value),disabled:n||!c.granted||!s.length,children:S(c.granted,s)}),Ab(jW,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM15%2010l4.553%20-2.276a1%201%200%200%201%201.447%20.894v6.764a1%201%200%200%201%20-1.447%20.894l-4.553%20-2.276v-4z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM3%206m0%202a2%202%200%200%201%202%20-2h8a2%202%200%200%201%202%202v8a2%202%200%200%201%20-2%202h-8a2%202%200%200%201%20-2%20-2z%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:EW.tr("CALLING_SELECT_CAMERA"),value:l.granted&&a.length?m:"",onChange:e=>_(e.target.value),disabled:n||!l.granted||!a.length,children:S(l.granted,a)})]})]})},gV=({audioEnabled:e,toggleAudio:t,videoEnabled:n,toggleVideo:r,disabled:i})=>Ab("div",{className:"MediaPreview-module__voiceVideoControls___7f--Y",children:[Ab(GW,{onClick:t,ariaLabel:e?EW.tr("CALLING_DISABLE_AUDIO"):EW.tr("CALLING_ENABLE_AUDIO"),className:wW(cV,e?uV:lV),disabled:i,children:Ab(MW,{className:dV,name:e?"Microphone":"MicrophoneOff"})}),Ab(GW,{onClick:r,ariaLabel:n?EW.tr("CALLING_DISABLE_VIDEO"):EW.tr("CALLING_ENABLE_VIDEO"),className:wW(cV,n?uV:lV),disabled:i,style:{marginLeft:"-4px"},children:Ab(MW,{className:dV,name:n?"Video":"VideoOff"})})]}),mV="_cobrowse_calling_joined",_V="off",vV="requested",EV="rejected",wV="on";var yV=new WeakMap,IV=new WeakMap,LV=new WeakMap,CV=new WeakMap,AV=new WeakMap,SV=new WeakMap,bV=new WeakMap,NV=new WeakMap,TV=new WeakMap,kV=new WeakMap,OV=new WeakMap;class RV extends yv{constructor(e){super(),Bo(this,yV,void 0),Bo(this,IV,void 0),Bo(this,LV,void 0),Bo(this,CV,void 0),Bo(this,AV,void 0),Bo(this,SV,void 0),Bo(this,bV,void 0),Qo(this,"getTracks",()=>jo(IV,this).stream.getTracks()),Qo(this,"addTrack",e=>{jo(IV,this)[ST].addTrack(e)}),Qo(this,"removeTrack",e=>{jo(IV,this)[ST].removeTrack(e)}),Qo(this,"request",()=>{jo(NV,this).call(this),jo(AV,this).call(this,vV)}),Qo(this,"reject",()=>{jo(AV,this).call(this,EV)}),Qo(this,"answer",()=>{jo(NV,this).call(this),jo(AV,this).call(this,wV)}),Qo(this,"end",()=>{jo(AV,this).call(this,_V)}),Bo(this,NV,()=>{const e=this.hasJoined;jo(CV,this).setItem(mV,jo(LV,this)),e!==this.hasJoined&&jo(TV,this).call(this)}),Bo(this,TV,async()=>{this.emit("updated",this)}),Bo(this,kV,bT(this,"receiveSessionUpdate",(e,t)=>{var n,r,i;const o=jo(SV,this)!==e,s=(null!==(n=null===(r=jo(bV,this))||void 0===r?void 0:r.id)&&void 0!==n?n:null)!==(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null);zo(SV,this,e),zo(bV,this,t),(o||s)&&jo(TV,this).call(this)})),Bo(this,OV,bT(this,"destroy",()=>{jo(CV,this).removeItem(mV)})),zo(yV,this,e.getParticipants),zo(IV,this,e.localParticipant),zo(LV,this,e.sessionId),zo(CV,this,e.storage),zo(AV,this,e.updateCalling)}get state(){return jo(SV,this)}get caller(){return jo(bV,this)}get hasJoined(){return jo(CV,this).getItem(mV)===jo(LV,this)}get participants(){return jo(yV,this).call(this)}}const PV="primary",DV="secondary",MV=({title:e,description:t,primaryTitle:n,onPrimaryClick:r,secondaryTitle:i,onSecondaryClick:o,isDisabled:s,settings:a,handlePreviewSettingsChange:c})=>Ab(WW,{className:"CallDialog-module__content___sk6PW","aria-labelledby":"title","aria-describedby":"description",children:[Ab("header",{className:"CallDialog-module__header___kOjGP",children:[Ab("section",{className:"CallDialog-module__media___GUTLA",children:Ab(pV,{initialSettings:a,onSettingsChange:c})}),e?Ab("h2",{id:"title",className:"CallDialog-module__title___WUNJY",children:e}):null]}),t?Ab("div",{className:"CallDialog-module__body___AaCUz",children:Ab("p",{id:"description",className:"CallDialog-module__description___a-7qp",children:t})}):null,Ab("footer",{className:"CallDialog-module__buttonContainer___NtvjF",children:[Ab(LW,{variant:"secondary",onClick:o,children:i}),Ab(LW,{variant:"primary",onClick:r,disabled:s,children:n})]})]});var xV=new WeakMap,GV=new WeakMap,UV=new WeakMap,WV=new WeakMap,VV=new WeakMap,FV=new WeakMap,jV=new WeakMap;class BV{constructor({call:e,mediaSettings:t}){Bo(this,xV,void 0),Bo(this,GV,void 0),Bo(this,UV,void 0),Bo(this,WV,null),Qo(this,"show",e=>{zo(UV,this,jo(GV,this).settings);const t=e=>{zo(UV,this,e)};return new Promise(n=>{jo(FV,this).call(this,Yo({onPrimaryClick:()=>n({action:PV,settings:jo(UV,this)}),onSecondaryClick:()=>n({action:DV,settings:jo(UV,this)}),settings:jo(GV,this).settings,handlePreviewSettingsChange:t},e))})}),Qo(this,"hide",()=>{zo(UV,this,null),jo(jV,this).call(this)}),Bo(this,VV,async({state:e,caller:t,hasJoined:n})=>{const r=!t;if(e===vV&&!r){const{action:e}=await this.show({title:EW.tr("CALLING_REQUEST"),description:EW.tr("CALLING_JOIN_PROMPT"),primaryTitle:EW.tr("CALLING_ACCEPT"),secondaryTitle:EW.tr("CALLING_REJECT")});return e===PV?(jo(GV,this).update(jo(UV,this)),jo(xV,this).answer()):jo(xV,this).reject(),void this.hide()}if(e===vV&&r&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:EW.tr("CALLING_JOIN"),secondaryTitle:EW.tr("CALLING_CANCEL")});return void(e===PV?(jo(GV,this).update(jo(UV,this)),jo(xV,this).request()):(jo(xV,this).end(),this.hide()))}if(e===vV&&r&&n){const{action:e}=await this.show({title:EW.tr("CALLING_IN_PROGRESS"),description:EW.tr("CALLING_AGENT_WAITING"),primaryTitle:EW.tr("CALLING_JOIN"),secondaryTitle:EW.tr("CALLING_CANCEL"),isDisabled:!0});return e===DV&&jo(xV,this).end(),void this.hide()}if(e===EV&&r){const{action:e}=await this.show({title:EW.tr("CALLING_IN_PROGRESS"),description:EW.tr("CALLING_AGENT_DECLINED"),primaryTitle:EW.tr("CALLING_BACK"),secondaryTitle:EW.tr("CALLING_RETRY")});return void(e===PV?(jo(xV,this).end(),this.hide()):(jo(GV,this).update(jo(UV,this)),jo(xV,this).request()))}if(e===wV&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:EW.tr("CALLING_JOIN"),secondaryTitle:EW.tr("CALLING_CANCEL")});return e===PV?(jo(GV,this).update(jo(UV,this)),jo(xV,this).answer()):r&&jo(xV,this).end(),void this.hide()}e===wV&&jo(UV,this)&&jo(GV,this).update(jo(UV,this)),this.hide()}),Bo(this,FV,e=>{jo(WV,this)?jo(WV,this).rerender(e):zo(WV,this,Ib(MV,e,{hideFromAgent:!0}))}),Bo(this,jV,()=>{var e;null===(e=jo(WV,this))||void 0===e||e.unmount(),zo(WV,this,null)}),Qo(this,"destroy",()=>{jo(xV,this).off("updated",jo(VV,this)),jo(jV,this).call(this)}),zo(xV,this,e),zo(GV,this,t),jo(xV,this).on("updated",jo(VV,this)),jo(VV,this).call(this,jo(xV,this))}}var zV=new WeakMap,HV=new WeakMap,qV=new WeakMap,QV=new WeakMap,$V=new WeakMap,YV=new WeakMap;class JV extends wv.EventEmitter{constructor(e,t){if(super(),Bo(this,zV,void 0),Bo(this,HV,void 0),Bo(this,qV,void 0),Bo(this,QV,void 0),Bo(this,$V,void 0),Bo(this,YV,!1),!window.AudioContext)return;if(!e||!e.getAudioTracks().length)return;zo(zV,this,new window.AudioContext),zo(HV,this,jo(zV,this).createMediaStreamSource(e)),zo(qV,this,jo(zV,this).createAnalyser()),jo(qV,this).fftSize=256,jo(HV,this).connect(jo(qV,this));const n=()=>{if(jo(YV,this))return;const e=new Uint8Array(jo(qV,this).frequencyBinCount);jo(qV,this).getByteFrequencyData(e);const r=e.reduce((e,t)=>e+t,0),i=r/jo(qV,this).frequencyBinCount>t;jo(QV,this)!==i&&(zo(QV,this,i),this.emit("updated",this)),jo(QV,this)?setTimeout(()=>{zo($V,this,requestAnimationFrame(n))},250):zo($V,this,requestAnimationFrame(n))};n()}get hasNoise(){return jo(QV,this)||!1}destroy(){var e,t,n;zo(YV,this,!0),cancelAnimationFrame(jo($V,this)),null===(e=jo(HV,this))||void 0===e||e.disconnect(),zo(HV,this,null),null===(t=jo(qV,this))||void 0===t||t.disconnect(),zo(qV,this,null),null===(n=jo(zV,this))||void 0===n||n.close(),zo(zV,this,null)}}const KV="CallControls-module__toggle___1B90-",XV="CallControls-module__toggleOff___v-UzL",ZV="CallControls-module__toggleOn___WtJ0M",eF="CallControls-module__icon___LBB4v",tF=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=ub(t.settings.audioEnabled),[o,s]=ub(t.settings.videoEnabled);return db(()=>{t.on("updated",({settings:e})=>{i(e.audioEnabled),s(e.videoEnabled)})},[t]),Ab("div",{style:{display:"flex",justifyContent:"center"},children:Ab("div",{className:"CallControls-module__container___usQnp",children:[Ab("div",{className:"CallControls-module__toggleContainer___RVxBh",children:[Ab(GW,{className:wW(KV,r?ZV:XV),ariaLabel:r?EW.tr("CALLING_DISABLE_AUDIO"):EW.tr("CALLING_ENABLE_AUDIO"),onClick:()=>t.toggleAudio(),children:Ab(MW,{name:r?"Microphone":"MicrophoneOff",className:eF})}),Ab(GW,{className:wW(KV,o?ZV:XV),ariaLabel:o?EW.tr("CALLING_DISABLE_VIDEO"):EW.tr("CALLING_ENABLE_VIDEO"),onClick:()=>t.toggleVideo(),children:Ab(MW,{name:o?"Video":"VideoOff",className:eF})}),Ab(GW,{className:wW(KV,ZV),ariaLabel:EW.tr("CALLING_SHOW_CALL_SETTINGS"),onClick:()=>n(),children:Ab(MW,{name:"DotsVertical",className:eF})})]}),Ab(GW,{className:"CallControls-module__end___1Gl91",ariaLabel:EW.tr("CALLING_END"),onClick:()=>e.end(),children:Ab(MW,{name:"Phone",className:eF})})]})})},nF="_cobrowse_participants_position",rF=e=>EE().setItem(nF,e),iF=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=ub(e.participants),[o,s]=ub(t.settings.audioOutputDeviceId);db(()=>{const e=({settings:e})=>{s(e.audioOutputDeviceId)};return t.on("updated",e),()=>{t.off("updated",e)}},[t]),db(()=>{const t=e=>{i(e)};return e.on("participants.updated",t),()=>{e.off("participants.updated",t)}},[e]);const a=fb(()=>[...r].sort((e,t)=>{const n=!e.agentId,r=!t.agentId;return n&&!r?-1:!n&&r?1:0}),[r]);return Ab(CW,{style:{zIndex:"2147483646"},corner:EE().getItem(nF)||"top-right",onCornerChange:rF,footer:Ab("div",{className:"CallParticipants-module__callControlsContainer___7B-Gr",children:Ab(tF,{call:e,mediaSettings:t,showSettingsDialog:n})}),children:Ab("div",{className:"CallParticipants-module__container___Ve9rt",children:a.map(e=>Ab(oF,{participant:e,audioOutputDeviceId:o},e.id))})})},oF=({participant:e,audioOutputDeviceId:t})=>{const n=hb(null),[r,i]=ub(e.hasVideo),[o,s]=ub(e.hasAudio),a=(e=>{const[t,n]=ub(!1),[r,i]=ub(e.hasAudio);return db(()=>{const t=()=>{i(e.hasAudio)};return e.on("track.added",t),e.on("track.removed",t),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),db(()=>{if(!r)return void n(!1);const t=({hasNoise:e})=>n(e),i=new JV(e.stream,15);return i.on("updated",t),t(i),()=>{i.off("updated",t),i.destroy()}},[r,e.stream]),t})(e),c=!e.agentId;return db(()=>{const t=()=>{const{hasVideo:t,hasAudio:n}=e;i(t),s(n)};return e.on("track.added",t),e.on("track.removed",t),t(),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),db(()=>{n.current.srcObject=e.stream},[e]),db(()=>{n.current&&o&&t&&n.current.setSinkId(t)},[t,o]),Ab("div",{className:wW("CallParticipants-module__participantContainer___pxqEA",a&&"CallParticipants-module__participantSpeaking___Iv0HT"),children:[Ab("div",{className:"CallParticipants-module__videoContainer___tdKF2",children:[Ab("video",{className:"CallParticipants-module__video___HSfYq",ref:n,autoPlay:!0,playsInline:!0,muted:c}),r?null:Ab("div",{className:"CallParticipants-module__videoOverlay___fhTe0",children:[Ab("span",{className:"cbio-sr-only",children:EW.tr("CALLING_CAMERA_OFF")}),Ab(MW,{name:"VideoOff",className:"CallParticipants-module__videoOverlayIcon___foQCB"})]})]}),Ab("div",{className:"CallParticipants-module__statusContainer___bcsse",children:[Ab(MW,{className:"CallParticipants-module__statusIcon___dNlQZ",name:o?"Microphone":"MicrophoneOff"}),Ab("span",{className:"CallParticipants-module__statusTitle___6iPYt",children:c?EW.tr("CALLING_LOCAL_PARTICIPANT_DESCRIPTION"):EW.tr("CALLING_REMOTE_PARTICIPANT_DESCRIPTION")})]})]})};var sF=new WeakMap,aF=new WeakMap,cF=new WeakMap,lF=new WeakMap,uF=new WeakMap,dF=new WeakMap,hF=new WeakMap;class fF{constructor({call:e,mediaSettings:t,showSettingsDialog:n}){Bo(this,sF,void 0),Bo(this,aF,void 0),Bo(this,cF,void 0),Bo(this,lF,null),Bo(this,uF,({state:e,hasJoined:t})=>{e===wV&&t&&jo(dF,this).call(this),e===_V&&jo(hF,this).call(this)}),Bo(this,dF,()=>{if(jo(lF,this))return;const e={call:jo(sF,this),mediaSettings:jo(aF,this),showSettingsDialog:jo(cF,this)};zo(lF,this,Ib(iF,e,{hideFromAgent:!0}))}),Bo(this,hF,()=>{var e;null===(e=jo(lF,this))||void 0===e||e.unmount(),zo(lF,this,null)}),Qo(this,"destroy",()=>{jo(hF,this).call(this)}),zo(sF,this,e),zo(aF,this,t),zo(cF,this,n),jo(sF,this).on("updated",jo(uF,this)),jo(uF,this).call(this,jo(sF,this))}}const pF="Mouse",gF="Touch",mF="Pointer",_F="Focus",vF="KeyPress",EF="Scroll",wF="Change",yF="Input",IF="Laser",LF="Highlight",CF="Drawing",AF="Select";var SF=new WeakMap,bF=new WeakMap,NF=new WeakMap,TF=new WeakMap,kF=new WeakMap,OF=new WeakMap;class RF extends yv{constructor(e,t,{interval:n}={interval:3e3}){super(),Bo(this,SF,void 0),Bo(this,bF,void 0),Bo(this,NF,void 0),Bo(this,TF,void 0),Bo(this,kF,new Map),Qo(this,"ping",()=>{this.emit("ping",{id:jo(SF,this),instanceId:jo(bF,this),timeout:2*jo(NF,this)})}),Qo(this,"track",({id:e,instanceId:t,timeout:n,agent:r})=>{if(this.id===e)return;const i=jo(kF,this).has(e);i||jo(kF,this).set(e,{instances:new Map,agent:r});const o=jo(kF,this).get(e),s=o.instances.get(t),a=setTimeout(()=>jo(OF,this).call(this,e,t),n||2*jo(NF,this));s&&clearTimeout(s.timeout),o.instances.set(t,{timestamp:new Date,timeout:a}),i||this.emit("join",{id:e,agent:r}),s||this.ping()}),Bo(this,OF,(e,t)=>{const n=jo(kF,this).get(e);n.instances.delete(t),0===n.instances.size&&(jo(kF,this).delete(e),this.emit("leave",e))}),Qo(this,"all",()=>Array.from(jo(kF,this)).map(([e,{agent:t}])=>({id:e,agent:t}))),Qo(this,"destroy",()=>{for(const e of jo(kF,this).values()){for(const t of e.instances.values())clearTimeout(t.timeout);e.instances.clear()}jo(kF,this).clear(),clearInterval(jo(TF,this)),this.removeAllListeners()}),zo(SF,this,e),zo(bF,this,t),zo(NF,this,n),zo(TF,this,setInterval(this.ping,n))}get id(){return jo(SF,this)}}var PF=new WeakMap,DF=new WeakMap,MF=new WeakMap,xF=new WeakMap,GF=new WeakMap,UF=new WeakMap,WF=new WeakMap,VF=new WeakMap,FF=new WeakMap,jF=new WeakMap,BF=new WeakMap,zF=new WeakMap,HF=new WeakMap,qF=new WeakMap;class QF{constructor(e){Bo(this,PF,void 0),Bo(this,DF,void 0),Bo(this,MF,void 0),Bo(this,xF,void 0),Bo(this,GF,void 0),Bo(this,UF,void 0),Bo(this,WF,async()=>{zo(DF,this,new oV(EE()));const e={call:jo(PF,this),mediaSettings:jo(DF,this),showSettingsDialog:jo(jF,this)};zo(MF,this,new BV(e)),!jo(VF,this).call(this)||await jo(FF,this).call(this)?(zo(xF,this,new fF(e)),jo(DF,this).on("updated",jo(BF,this)),NE.on("activate",jo(HF,this)),jo(PF,this).on("updated",jo(zF,this)),jo(zF,this).call(this,jo(PF,this))):jo(PF,this).end()}),Bo(this,VF,()=>{const{state:e,hasJoined:t}=jo(PF,this);if(e===wV&&t&&NE.isActive()){const{audioEnabled:e,videoEnabled:t}=jo(DF,this).settings;return!e&&!t&&!navigator.userActivation.hasBeenActive}return!1}),Bo(this,FF,async()=>{const{action:e,settings:t}=await jo(MF,this).show({title:EW.tr("CALLING_JOIN"),description:EW.tr("CALLING_REJOIN_PROMPT"),primaryTitle:EW.tr("CALLING_JOIN"),secondaryTitle:EW.tr("CALLING_END")}),n="primary"===e;return n&&jo(DF,this).update(t),jo(MF,this).hide(),n}),Bo(this,jF,async()=>{const{action:e,settings:t}=await jo(MF,this).show({title:null,description:null,primaryTitle:EW.tr("CALLING_SAVE"),secondaryTitle:EW.tr("CALLING_CANCEL")});"primary"===e&&jo(DF,this).update(t),jo(MF,this).hide()}),Bo(this,BF,()=>{jo(qF,this).call(this,jo(DF,this).settings)}),Bo(this,zF,({state:e,hasJoined:t})=>{e===wV&&t&&NE.isActive()&&jo(qF,this).call(this,jo(DF,this).settings)}),Bo(this,HF,()=>{const{state:e,hasJoined:t}=jo(PF,this);e===wV&&t&&(jo(DF,this).reloadFromStorage(),jo(qF,this).call(this,jo(DF,this).settings))}),Bo(this,qF,async e=>{const{audioEnabled:t,videoEnabled:n}=e;if(t||zo(GF,this,null),n||zo(UF,this,null),jo(PF,this).getTracks().forEach(e=>{t||"audio"!==e.kind||jo(PF,this).removeTrack(e),n||"video"!==e.kind||jo(PF,this).removeTrack(e)}),!t&&!n)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start, mediaDevices is not available"),void jo(DF,this).update({audioEnabled:!1,videoEnabled:!1});const r=eV(e),i=tV(e),o=t&&!VP(jo(GF,this),r),s=n&&!VP(jo(UF,this),i);if(!o&&!s)return;const a=Yo(Yo({},o?r:{}),s?i:{});try{(await navigator.mediaDevices.getUserMedia(a)).getTracks().forEach(e=>{const t="audio"===e.kind&&jo(DF,this).settings.audioEnabled,n="video"===e.kind&&jo(DF,this).settings.videoEnabled;t||n?(jo(PF,this).addTrack(e),t&&zo(GF,this,r),n&&zo(UF,this,i)):e.stop()})}catch(e){console.warn("CobrowseIO: Failed to get media",e),jo(DF,this).update({videoEnabled:!1,audioEnabled:!1})}}),Qo(this,"destroy",()=>{var e,t,n;null===(e=jo(DF,this))||void 0===e||e.off("updated",jo(BF,this)),zo(DF,this,null),null===(t=jo(MF,this))||void 0===t||t.destroy(),zo(MF,this,null),null===(n=jo(xF,this))||void 0===n||n.destroy(),zo(xF,this,null),NE.off("activate",jo(HF,this)),jo(PF,this).off("updated",jo(zF,this))}),zo(PF,this,e),jo(WF,this).call(this)}}var $F=new WeakMap;class YF extends YP{constructor(e){super(),Bo(this,$F,void 0),zo($F,this,e.id()),this.setHeader("X-CobrowseDeviceToken",e.getHeader("X-CobrowseDeviceToken"))}url(){return new URL(`api/1/sessions/${jo($F,this)}/ice`,YF.api).toString()}}const JF=jl("cbio.Calling.Peer");var KF=new WeakMap,XF=new WeakMap,ZF=new WeakMap,ej=new WeakMap,tj=new WeakMap,nj=new WeakMap,rj=new WeakMap,ij=new WeakMap,oj=new WeakMap,sj=new WeakMap,aj=new WeakMap,cj=new WeakMap,lj=new WeakMap,uj=new WeakMap,dj=new WeakMap,hj=new WeakMap,fj=new WeakMap,pj=new WeakMap,gj=new WeakMap,mj=new WeakMap,_j=new WeakMap;class vj extends yv{constructor(e){super(),Bo(this,KF,void 0),Bo(this,XF,void 0),Bo(this,ZF,void 0),Bo(this,ej,void 0),Bo(this,tj,void 0),Bo(this,nj,void 0),Bo(this,rj,!1),Bo(this,ij,!1),Bo(this,oj,!1),Bo(this,sj,[]),Bo(this,aj,void 0),Bo(this,cj,void 0),Bo(this,lj,void 0),Bo(this,uj,!1),Bo(this,dj,void 0),Qo(this,"createConnection",e=>{JF("creating RTCPeerConnection for peer",this.id,"with connection id",e),jo(lj,this).connectionId=null!=e?e:null,zo(aj,this,new RTCPeerConnection({iceServers:jo(ZF,this)})),zo(dj,this,jo(aj,this).createDataChannel("priming")),jo(aj,this).addEventListener("negotiationneeded",jo(hj,this)),jo(aj,this).addEventListener("icecandidate",jo(fj,this)),jo(aj,this).addEventListener("iceconnectionstatechange",jo(pj,this)),jo(aj,this).addEventListener("connectionstatechange",jo(gj,this)),jo(aj,this).addEventListener("track",jo(mj,this)),this.emit("connection.created",this)}),Qo(this,"closeConnection",()=>{var e;JF("closing RTCPeerConnection for peer",this.id),null===(e=jo(dj,this))||void 0===e||e.close(),zo(dj,this,null),jo(aj,this).getSenders().forEach(e=>jo(aj,this).removeTrack(e)),jo(aj,this).removeEventListener("negotiationneeded",jo(hj,this)),jo(aj,this).removeEventListener("icecandidate",jo(fj,this)),jo(aj,this).removeEventListener("iceconnectionstatechange",jo(pj,this)),jo(aj,this).removeEventListener("connectionstatechange",jo(gj,this)),jo(aj,this).removeEventListener("track",jo(mj,this)),jo(aj,this).close(),zo(aj,this,null)}),Bo(this,hj,async()=>{try{zo(rj,this,!0),await jo(aj,this).setLocalDescription(),jo(ej,this).call(this,jo(cj,this),jo(lj,this),jo(aj,this).localDescription)}finally{zo(rj,this,!1)}}),Bo(this,fj,e=>{e.candidate&&jo(tj,this).call(this,jo(cj,this),jo(lj,this),e.candidate)}),Bo(this,pj,()=>{"failed"===jo(aj,this).iceConnectionState&&(JF("ice connection failed for peer",this.id,"restarting ice"),jo(aj,this).restartIce())}),Bo(this,gj,()=>{var e;"connected"===jo(aj,this).connectionState&&(JF("connected to peer",this.id),zo(uj,this,!0),null===(e=jo(dj,this))||void 0===e||e.close(),zo(dj,this,null),this.emit("connection.updated",this)),"disconnected"===jo(aj,this).connectionState&&(JF("disconnected from peer",this.id),zo(uj,this,!1),this.emit("connection.updated",this))}),Bo(this,mj,e=>{const t=e.streams[0];t?(t.removeEventListener("removetrack",jo(_j,this)),t.addEventListener("removetrack",jo(_j,this)),this.emit("track.added",e.track)):console.warn("CobrowseIO: Failed to add track, expected stream")}),Bo(this,_j,e=>{this.emit("track.removed",e.track)}),Qo(this,"handleOffer",async(e,t,n)=>{if(jo(cj,this).connectionId!==t.connectionId&&t.connectionId)return JF("offer intended for different connection");if(jo(lj,this).connectionId||(jo(lj,this).connectionId=e.connectionId),jo(lj,this).connectionId!==e.connectionId)return JF("offer from",e,"has a different connection id"),this.closeConnection(),this.createConnection(e.connectionId),this.handleOffer(e,t,n);const r=!jo(rj,this)&&("stable"===jo(aj,this).signalingState||jo(oj,this));if(zo(ij,this,!r&&!jo(nj,this)),jo(ij,this))return JF("offer collision, ignoring as the impolite peer");await jo(aj,this).setRemoteDescription(n);const i=jo(sj,this).length;i>0&&(JF("adding ice candidates from queue",i),await Promise.allSettled(jo(sj,this).map(e=>jo(aj,this).addIceCandidate(e))),jo(sj,this).length=0),await jo(aj,this).setLocalDescription(),jo(ej,this).call(this,jo(cj,this),jo(lj,this),jo(aj,this).localDescription)}),Qo(this,"handleAnswer",async(e,t,n)=>{if(jo(cj,this).connectionId!==t.connectionId)return JF("answer intended for different connection");if(jo(lj,this).connectionId||(jo(lj,this).connectionId=e.connectionId),jo(lj,this).connectionId!==e.connectionId)return JF("answer from different connection ignored");try{zo(oj,this,!0),await jo(aj,this).setRemoteDescription(n)}finally{zo(oj,this,!1)}const r=jo(sj,this).length;r>0&&(JF("adding ice candidates from queue",r),await Promise.allSettled(jo(sj,this).map(e=>jo(aj,this).addIceCandidate(e))),jo(sj,this).length=0)}),Qo(this,"handleIceCandidate",async(e,t,n)=>{if(jo(cj,this).connectionId!==t.connectionId)return JF("ice candidate intended for different connection");if(jo(lj,this).connectionId!==e.connectionId)return JF("ice candidate from different connection ignored");if(jo(aj,this).remoteDescription)try{await jo(aj,this).addIceCandidate(n)}catch(e){if(!jo(ij,this))throw e}else jo(sj,this).push(n)});const t=e.localClientId;zo(KF,this,e.remoteClientId),zo(XF,this,e.agentId),zo(ZF,this,e.iceServers),zo(ej,this,e.sendSDP),zo(tj,this,e.sendCandidate),zo(nj,this,[t,jo(KF,this)].sort()[0]===t),zo(sj,this,[]),zo(cj,this,{clientId:t,connectionId:lE()}),zo(lj,this,{clientId:jo(KF,this),connectionId:null})}get id(){return jo(KF,this)}get agentId(){return jo(XF,this)}get isConnected(){return jo(uj,this)}get connection(){return jo(aj,this)}}const Ej=jl("cbio.Calling.Signalling"),wj="sdp",yj="icecandidate";var Ij=new WeakMap,Lj=new WeakMap,Cj=new WeakMap,Aj=new WeakMap,Sj=new WeakMap,bj=new WeakMap;class Nj extends wv.EventEmitter{constructor(e,t){super(),Bo(this,Ij,void 0),Bo(this,Lj,void 0),Bo(this,Cj,new Map),Qo(this,"sendSDP",(e,t,n)=>{Ej("sending sdp with type",n.type,"to",t),jo(Ij,this).send(wj,{from:e,to:t,sdp:JSON.stringify(n)})}),Qo(this,"sendCandidate",(e,t,n)=>{Ej("sending ice candidate","to",t),jo(Ij,this).send(yj,{from:e,to:t,candidate:JSON.stringify(n)})}),Qo(this,"takeLastOffer",e=>{const t=jo(Cj,this).get(e);return jo(Cj,this).delete(e),t}),Qo(this,"flushLastOfferCache",()=>{jo(Cj,this).clear()}),Bo(this,Aj,(e,t)=>{e===wj&&jo(Sj,this).call(this,t),e===yj&&jo(bj,this).call(this,t)}),Bo(this,Sj,({from:e,to:t,sdp:n})=>{if(!jo(Lj,this).call(this,t))return;const r=JSON.parse(n);Ej("receiving sdp with type",r.type,"from",e),"offer"===r.type&&jo(Cj,this).set(e.clientId,{from:e,to:t,sdp:r}),this.emit(wj,e,t,r)}),Bo(this,bj,({from:e,to:t,candidate:n})=>{jo(Lj,this).call(this,t)&&(Ej("receiving ice candidate","from",e),this.emit(yj,e,t,JSON.parse(n)))}),Qo(this,"destroy",()=>{jo(Ij,this).off("event",jo(Aj,this)),this.flushLastOfferCache()}),zo(Ij,this,e),zo(Lj,this,t),jo(Ij,this).on("event",jo(Aj,this))}}const Tj=jl("cbio.Calling.PeerManager");var kj=new WeakMap,Oj=new WeakMap,Rj=new WeakMap,Pj=new WeakMap,Dj=new WeakMap,Mj=new WeakMap,xj=new WeakMap;class Gj extends wv.EventEmitter{constructor(e,t){super(),Bo(this,kj,void 0),Bo(this,Oj,void 0),Bo(this,Rj,new Map),Qo(this,"createPeer",async(e,t,n)=>{if(jo(Rj,this).has(t))return;Tj("creating peer",t);const r=new vj({localClientId:e,remoteClientId:t,agentId:n,iceServers:jo(Oj,this),sendSDP:(e,t,n)=>jo(kj,this).sendSDP(e,t,n),sendCandidate:(e,t,n)=>jo(kj,this).sendCandidate(e,t,n)});r.on("connection.updated",jo(Pj,this)),jo(Rj,this).set(t,r);const i=jo(kj,this).takeLastOffer(t);if(i){const e=i.from.connectionId;Tj("using last offer with connection id",e),r.createConnection(e),await r.handleOffer(i.from,i.to,i.sdp)}else r.createConnection(null);Tj("peer created"),this.emit("peer.created",r)}),Bo(this,Pj,e=>{this.emit("peer.connection.updated",e)}),Qo(this,"removePeer",e=>{Tj("removing peer",e);const t=jo(Rj,this).get(e);if(!t)return Tj("unknown peer",e);jo(Dj,this).call(this,t),this.emit("peer.removed",e)}),Qo(this,"reconnectPeers",()=>{this.peers.forEach(e=>{e.closeConnection(),e.createConnection(null)})}),Bo(this,Dj,e=>{e.off("connection.updated",jo(Pj,this)),e.closeConnection(),jo(Rj,this).delete(e.id)}),Bo(this,Mj,(e,t,n)=>{Tj("receiving sdp",n.type,"from",e);const r=jo(Rj,this).get(e.clientId);if(!r)return Tj("unknown peer",e.clientId);"offer"===n.type&&(jo(kj,this).takeLastOffer(e.clientId),r.handleOffer(e,t,n)),"answer"===n.type&&r.handleAnswer(e,t,n)}),Bo(this,xj,async(e,t,n)=>{Tj("receiving ice candidate from",e);const r=jo(Rj,this).get(e.clientId);if(!r)return Tj("unknown peer",e.clientId);r.handleIceCandidate(e,t,n)}),Qo(this,"destroy",()=>{jo(kj,this).flushLastOfferCache(),jo(kj,this).off(yj,jo(xj,this)),jo(kj,this).off(wj,jo(Mj,this)),jo(Rj,this).forEach(jo(Dj,this)),jo(Rj,this).clear()}),zo(kj,this,e),zo(Oj,this,t),jo(kj,this).on(wj,jo(Mj,this)),jo(kj,this).on(yj,jo(xj,this))}get peers(){return[...jo(Rj,this).values()]}}var Uj=new WeakMap,Wj=new WeakMap,Vj=new WeakMap,Fj=new WeakMap,jj=new WeakMap,Bj=new WeakMap;class zj extends wv.EventEmitter{constructor({id:e,agentId:t}){super(),Bo(this,Uj,void 0),Bo(this,Wj,void 0),Bo(this,Vj,void 0),Bo(this,Fj,bT(this,"_addTrack",e=>{jo(Vj,this).getTrackById(e.id)||(jo(Vj,this).getTracks().forEach(t=>{t.kind===e.kind&&jo(Vj,this).removeTrack(t)}),jo(Vj,this).addTrack(e),this.emit("track.added",e))})),Bo(this,jj,bT(this,"_removeTrack",e=>{const t=jo(Vj,this).getTracks().some(t=>t.id===e.id);t&&(e.stop(),jo(Vj,this).removeTrack(e),this.emit("track.removed",e))})),Bo(this,Bj,bT(this,"_destroy",()=>{jo(Vj,this).getTracks().forEach(e=>{e.stop(),jo(Vj,this).removeTrack(e)})})),zo(Uj,this,e),zo(Wj,this,t),zo(Vj,this,new MediaStream)}get id(){return jo(Uj,this)}get agentId(){return jo(Wj,this)}get stream(){return jo(Vj,this)}get hasAudio(){return jo(Vj,this).getAudioTracks().some(e=>"live"===e.readyState)}get hasVideo(){return jo(Vj,this).getVideoTracks().some(e=>"live"===e.readyState)}}const Hj=jl("cbio.Calling.LocalCallParticipant");var qj=new WeakMap,Qj=new WeakMap,$j=new WeakMap;class Yj extends zj{constructor({id:e,agentId:t}){super({id:e,agentId:t}),Bo(this,qj,bT(this,"addTrack",e=>{Hj("adding track with kind",e.kind,"to local participant",this.id),this[ST]._addTrack(e)})),Bo(this,Qj,bT(this,"removeTrack",e=>{Hj("removing track with kind",e.kind,"from local participant",this.id),this[ST]._removeTrack(e)})),Bo(this,$j,bT(this,"destroy",()=>{this[ST]._destroy()}))}}const Jj=jl("cbio.Calling.RemoteCallParticipant");var Kj=new WeakMap,Xj=new WeakMap,Zj=new WeakMap,eB=new WeakMap,tB=new WeakMap,nB=new WeakMap,rB=new WeakMap,iB=new WeakMap,oB=new WeakMap,sB=new WeakMap,aB=new WeakMap;class cB extends zj{constructor({id:e,agentId:t,peer:n,localParticipant:r}){super({id:e,agentId:t}),Bo(this,Kj,void 0),Bo(this,Xj,void 0),Bo(this,Zj,()=>{const{stream:e,hasAudio:t,hasVideo:n}=jo(Xj,this);(t||n)&&e.getTracks().forEach(t=>{jo(oB,this).call(this,t,e)})}),Bo(this,eB,()=>{jo(Zj,this).call(this)}),Bo(this,tB,e=>{jo(oB,this).call(this,e,jo(Xj,this).stream)}),Bo(this,nB,e=>{jo(sB,this).call(this,e)}),Bo(this,rB,e=>{this[ST]._addTrack(e)}),Bo(this,iB,e=>{this[ST]._removeTrack(e)}),Bo(this,oB,(e,...t)=>{Jj("adding track with kind",e.kind,"to remote participant",this.id);const{connection:n}=jo(Kj,this);if(n.getSenders().some(t=>{var n;return(null===(n=t.track)||void 0===n?void 0:n.id)===e.id}))return Jj("track already exists");n.addTrack(e,...t)}),Bo(this,sB,e=>{Jj("removing track with kind",e.kind,"from remote participant",this.id);const{connection:t}=jo(Kj,this);t.getSenders().forEach(n=>{var r;(null===(r=n.track)||void 0===r?void 0:r.id)===e.id&&t.removeTrack(n)})}),Bo(this,aB,bT(this,"destroy",()=>{this[ST]._destroy(),jo(Kj,this).off("connection.created",jo(eB,this)),jo(Kj,this).off("track.added",jo(rB,this)),jo(Kj,this).off("track.removed",jo(iB,this)),jo(Xj,this).off("track.added",jo(tB,this)),jo(Xj,this).off("track.removed",jo(nB,this))})),zo(Kj,this,n),zo(Xj,this,r),jo(Kj,this).on("connection.created",jo(eB,this)),jo(Kj,this).on("track.added",jo(rB,this)),jo(Kj,this).on("track.removed",jo(iB,this));const{connection:i}=jo(Kj,this);i.getReceivers().forEach(e=>{e.track&&jo(rB,this).call(this,e.track)}),jo(Xj,this).on("track.added",jo(tB,this)),jo(Xj,this).on("track.removed",jo(nB,this)),jo(Zj,this).call(this)}}const lB=jl("cbio.Calling.Calling");var uB=new WeakMap,dB=new WeakMap,hB=new WeakMap,fB=new WeakMap,pB=new WeakMap,gB=new WeakMap,mB=new WeakMap,_B=new WeakMap,vB=new WeakMap,EB=new WeakMap,wB=new WeakMap,yB=new WeakMap,IB=new WeakMap,LB=new WeakMap,CB=new WeakMap,AB=new WeakMap,SB=new WeakSet,bB=new WeakMap,NB=new WeakMap,TB=new WeakMap,kB=new WeakMap,OB=new WeakMap,RB=new WeakMap,PB=new WeakMap,DB=new WeakMap,MB=new WeakMap;class xB{constructor(e){qo(this,SB),Bo(this,uB,void 0),Bo(this,dB,void 0),Bo(this,hB,void 0),Bo(this,fB,void 0),Bo(this,pB,void 0),Bo(this,gB,void 0),Bo(this,mB,void 0),Bo(this,_B,void 0),Bo(this,vB,void 0),Bo(this,EB,void 0),Bo(this,wB,void 0),Bo(this,yB,void 0),Bo(this,IB,void 0),Bo(this,LB,new Map),Bo(this,CB,new Set),Bo(this,AB,void 0),Qo(this,"handleSessionUpdate",(e,t)=>{e!==_V?(jo(wB,this)||(zo(IB,this,new Yj({id:jo(_B,this),agentId:jo(mB,this)})),zo(wB,this,new RV({getParticipants:()=>Ho(SB,this,GB),localParticipant:jo(IB,this),sessionId:jo(uB,this),storage:EE(),updateCalling:jo(dB,this)})),jo(wB,this).on("updated",jo(bB,this)),jo(bB,this).call(this,jo(wB,this))),jo(wB,this)[ST].receiveSessionUpdate(e,t),jo(yB,this)||zo(yB,this,new QF(jo(wB,this)))):jo(TB,this).call(this)}),Bo(this,bB,({state:e,hasJoined:t})=>{e===wV&&t&&jo(NB,this).call(this)}),Bo(this,NB,async()=>{if(!jo(AB,this)&&!jo(EB,this))try{zo(AB,this,!0);const e=await jo(hB,this).call(this);zo(EB,this,new Gj(jo(vB,this),e)),jo(fB,this).on("join",jo(kB,this)),jo(fB,this).on("leave",jo(OB,this)),await Promise.all(jo(fB,this).all().map(({id:e,agent:t})=>jo(EB,this).createPeer(jo(_B,this),e,t))),jo(EB,this).on("peer.created",jo(RB,this)),jo(EB,this).on("peer.removed",jo(PB,this)),jo(EB,this).on("peer.connection.updated",jo(DB,this)),await Promise.all(jo(EB,this).peers.map(jo(RB,this)))}finally{zo(AB,this,!1)}}),Bo(this,TB,()=>{var e,t,n,r,i,o,s,a;jo(fB,this).off("join",jo(kB,this)),jo(fB,this).off("leave",jo(OB,this)),jo(LB,this).forEach((e,t)=>{e[ST].destroy(),jo(LB,this).delete(t)}),null===(e=jo(IB,this))||void 0===e||e[ST].destroy(),zo(IB,this,null),null===(t=jo(EB,this))||void 0===t||t.off("peer.created",jo(RB,this)),null===(n=jo(EB,this))||void 0===n||n.off("peer.removed",jo(PB,this)),null===(r=jo(EB,this))||void 0===r||r.off("peer.connection.updated",jo(DB,this)),null===(i=jo(EB,this))||void 0===i||i.destroy(),zo(EB,this,null),null===(o=jo(yB,this))||void 0===o||o.destroy(),zo(yB,this,null),null===(s=jo(wB,this))||void 0===s||s.off("updated",jo(bB,this)),null===(a=jo(wB,this))||void 0===a||a[ST].destroy(),zo(wB,this,null)}),Bo(this,kB,({id:e,agent:t})=>{var n;const r=null!=t?t:null;null===(n=jo(EB,this))||void 0===n||n.createPeer(jo(fB,this).id,e,r)}),Bo(this,OB,e=>{var t;null===(t=jo(EB,this))||void 0===t||t.removePeer(e)}),Bo(this,RB,e=>{if(jo(LB,this).has(e.id))return;const t=new cB({id:e.id,agentId:e.agentId,peer:e,localParticipant:jo(IB,this)});var n;jo(LB,this).set(e.id,t),e.isConnected&&(jo(CB,this).add(e.id),null===(n=jo(wB,this))||void 0===n||n.emit("participants.updated",Ho(SB,this,GB)))}),Bo(this,PB,e=>{const t=jo(LB,this).get(e);if(!t)return lB("unknown participant",e);var n;t[ST].destroy(),jo(LB,this).delete(e),jo(CB,this).has(e)&&(jo(CB,this).delete(e),null===(n=jo(wB,this))||void 0===n||n.emit("participants.updated",Ho(SB,this,GB)))}),Bo(this,DB,e=>{var t;e.isConnected?jo(CB,this).add(e.id):jo(CB,this).delete(e.id),null===(t=jo(wB,this))||void 0===t||t.emit("participants.updated",Ho(SB,this,GB))}),Bo(this,MB,()=>{const{state:e,hasJoined:t}=jo(wB,this)||{};var n;e===wV&&t&&(null===(n=jo(EB,this))||void 0===n||n.reconnectPeers())}),Qo(this,"destroy",()=>{var e;jo(TB,this).call(this),null===(e=jo(vB,this))||void 0===e||e.destroy(),zo(vB,this,null),NE.off("activate",jo(MB,this))}),zo(uB,this,e.sessionId),zo(dB,this,e.updateCalling),zo(hB,this,e.fetchIceServers),zo(fB,this,e.clientTracker),zo(pB,this,e.socket),zo(mB,this,e.agentId),zo(_B,this,e.clientTracker.id),zo(vB,this,new Nj(jo(pB,this),({clientId:e})=>jo(_B,this)===e&&NE.isActive())),NE.on("activate",jo(MB,this))}get call(){return jo(wB,this)}}function GB(e){const t=jo(LB,e).values().filter(t=>jo(CB,e).has(t.id));return[jo(IB,e),...t]}const UB=jl("cbio.SessionContext"),WB=jl("cbio.SessionContext.events");var VB=new WeakMap,FB=new WeakMap,jB=new WeakMap,BB=new WeakMap,zB=new WeakMap,HB=new WeakMap,qB=new WeakMap,QB=new WeakMap,$B=new WeakMap,YB=new WeakMap,JB=new WeakMap,KB=new WeakMap,XB=new WeakMap,ZB=new WeakSet,ez=new WeakMap,tz=new WeakMap,nz=new WeakMap,rz=new WeakMap,iz=new WeakMap,oz=new WeakMap,sz=new WeakMap,az=new WeakMap,cz=new WeakMap,lz=new WeakMap,uz=new WeakMap,dz=new WeakMap,hz=new WeakMap,fz=new WeakMap,pz=new WeakMap,gz=new WeakMap,mz=new WeakMap,_z=new WeakMap,vz=new WeakMap,Ez=new WeakMap,wz=new WeakMap,yz=new WeakMap,Iz=new WeakMap,Lz=new WeakMap,Cz=new WeakMap,Az=new WeakMap,Sz=new WeakMap,bz=new WeakMap,Nz=new WeakMap,Tz=new WeakMap;class kz{constructor(e,t){qo(this,ZB),Bo(this,VB,void 0),Bo(this,FB,void 0),Bo(this,jB,new dM),Bo(this,BB,void 0),Bo(this,zB,void 0),Bo(this,HB,void 0),Bo(this,qB,void 0),Bo(this,QB,void 0),Bo(this,$B,void 0),Bo(this,YB,void 0),Bo(this,JB,()=>{jo(yz,this).call(this),jo(QB,this)||(zo(QB,this,new RF(this.delegate.deviceId(),lE())),jo(QB,this).on("ping",e=>jo(VB,this).stream.send("client",e)),this.session.on("client",jo(cz,this))),jo($B,this)||(zo($B,this,new xB({sessionId:this.session.id(),updateCalling:e=>this.session.update({calling:e}),fetchIceServers:()=>(async e=>{try{const t=new YF(e);return await t.create(),t.resource.iceServers}catch(e){return console.warn("failed to fetch ice servers",e),[]}})(this.session),clientTracker:jo(QB,this),socket:jo(VB,this).stream,agentId:null})),jo($B,this).handleSessionUpdate(this.session.calling(),this.session.caller())),jo(QB,this).ping(),zo(YB,this,()=>{zo(YB,this,null),KU.resolvePendingHighlight()})}),Bo(this,KB,e=>{var t;"session-end"===e&&null!==(t=this.session)&&void 0!==t&&t.isActive()&&this.session.end()}),Bo(this,XB,e=>{var t;return!(null===(t=this.session)||void 0===t||!t.isActive()||e===vT&&!this.session.capabilities.includes(LD))}),Qo(this,"handleNavigation",(e,t,n,r)=>{var i;const{name:o,go:s,type:a}=r,{handle:c,document:l}=jo(HB,this).resolveDocument(r.handle,o),{windowProxy:u}=l,d=i=>{const s=jo(qB,this).runHandler(e,i||t,n,Yo(Yo({},r),{},{document:l}));return s.rewrittenUrl?{rewrittenUrl:s.rewrittenUrl}:(s.document&&jo(HB,this).addDocument(c,o,s.document),{windowProxy:u})};if(!a)return d();if(a===_T)return d();const h=this.delegate.confirmOpen(e,a);return h?!0===h?d("_blank"):(null===(i=h.then)||void 0===i||i.call(h,e=>{if(!e)return s(),{windowProxy:u};d("_blank")}),{windowProxy:u}):{rewrittenUrl:e}}),Qo(this,"invalidateFrames",()=>{jo(jB,this).isRunning()&&jo(jB,this).invalidateFrame()}),Qo(this,"destroy",()=>{UB("destroy session context"),jo(Ez,this).call(this),QW.off("click",jo(KB,this)),jo(qB,this)&&jo(qB,this).destroy(),zo(qB,this,null),pM.off("navigate",jo(ez,this)),jo(VB,this)&&jo(VB,this).close(),zo(VB,this,null),jo(jB,this)&&jo(jB,this).destroy(),zo(jB,this,null),jo($B,this)&&jo($B,this).destroy(),zo($B,this,null),jo(HB,this)&&jo(HB,this).destroy(),zo(HB,this,null),jo(QB,this)&&jo(QB,this).destroy(),zo(QB,this,null),NE.off("activate",jo(yz,this)),window.removeEventListener("focus",jo(yz,this),{capture:!0,passive:!0}),window.removeEventListener("hashchange",jo(Iz,this),{capture:!0,passive:!0}),Iv.onChange===jo(Nz,this)&&(Iv.onChange=null),WL.off("click",jo(Az,this)),WL.off("change",jo(Sz,this)),WL.off("input",jo(bz,this)),BU.off("click",jo(Az,this)),BU.off("change",jo(Sz,this)),BU.off("input",jo(bz,this)),KU.off("end",jo(oz,this)),this.session&&(this.session.removeListener("update",jo(vz,this)),this.session.removeListener("ended",jo(Ez,this)),this.session.removeListener("sync",jo(nz,this)),this.session.removeListener("drawing",jo(sz,this)),this.session.removeListener("laser",jo(rz,this)),this.session.removeListener("control",jo(az,this)),this.session.removeListener("remote-error",jo(tz,this)),this.session.removeListener("client",jo(cz,this))),document.removeEventListener("DOMContentLoaded",jo(lz,this),{once:!0}),this.session=null}),Bo(this,ez,(e,t)=>{jo(uz,this).call(this,this.session),jo(dz,this).call(this),jo(hz,this).call(this),gT.hide(),(uG(this.delegate.redactedViews,t)||uG(this.delegate.unredactedViews,t)||uG(this.session.redactionSelectors(),t)||uG(this.session.unredactionSelectors(),t))&&this.invalidateFrames()}),Bo(this,tz,async e=>{const t=jo(jB,this).getSource();if(!(t instanceof jM))return;const{target:n,error:{cause:r}}=e;if("load-error"!==r)return;const i="string"==typeof n?n:n.id;await oL(i),t.partialSync(i)}),Bo(this,nz,({id:e})=>{e&&jo(BB,this)===e||(zo(BB,this,e),jo(jB,this).invalidateFrame())}),Bo(this,rz,e=>{xo(ZB,this,Oz).call(this,e)&&NE.isActive()&&(this.session.fullDevice()||pW.update(e))}),Bo(this,iz,async e=>{WB("on(highlight)",e),xo(ZB,this,Oz).call(this,e)&&NE.isActive()&&(this.session.fullDevice()||await KU.highlightAndWait(this.delegate,e))}),Bo(this,oz,({id:e,state:t})=>{jo(wz,this).call(this,"highlight",{type:LF,id:e,state:t,timestamp:new Date})}),Bo(this,sz,e=>{xo(ZB,this,Oz).call(this,e)&&(e.image||sW.hide(e.agent),NE.isActive()&&(this.session.fullDevice()||sW.update(e)))}),Bo(this,az,(e,t)=>{"focus"!==e||t.agent||NE.resignActive(),t.agent&&NE.isActive()&&(this.session.fullDevice()||this.session.allowRemoteControl()&&(this.session.capabilities.includes(ID)&&mW.update(e,t),xo(ZB,this,Oz).call(this,t)&&DU.applyEvent(e,t)))}),Bo(this,cz,e=>{jo(QB,this).track(e)}),Bo(this,lz,e=>{this.session&&(e.isActive()?document.body?this.delegate.showSessionControls(e):document.addEventListener("DOMContentLoaded",jo(lz,this),{once:!0}):this.delegate.hideSessionControls(e))}),Bo(this,uz,e=>{var t,n;const r=null!==(t=this.delegate.redactedViews)&&void 0!==t?t:[],i=null!==(n=this.delegate.unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];YI.init(new gL(lG(o),lG(s)))}),Bo(this,dz,()=>{qI.setIgnoredViews(lG(this.delegate.ignoredViews))}),Bo(this,hz,()=>{XI.init(new gL(lG(this.delegate.disabledViews),lG(this.delegate.enabledViews)))}),Bo(this,fz,(e,t)=>{const n=!VP(e.redactionSelectors(),(null==t?void 0:t.redactionSelectors())||[]),r=!VP(e.unredactionSelectors(),(null==t?void 0:t.unredactionSelectors())||[]);return n||r}),Bo(this,pz,async e=>{if(!e.agent()||e.isActive()||e.isEnded())return null;if(jo(zB,this))return null;if(zo(zB,this,!0),!e.requireConsent())return e.activate();try{if(UB("authorizing session"),await e.update({state:"authorizing"}),!this.session||!e.isAuthorizing())return null;const t=await this.delegate.confirmSession(e);return this.session?!1===t?(UB("user rejected session request"),e.end()):(UB("session accepted"),e.activate()):null}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),this.session?e.end():null}}),Bo(this,gz,async e=>{if("requested"!==e.remoteControl())return null;try{return!1===await this.delegate.confirmRemoteControl()?(UB("user rejeted remote control"),e.update({remote_control:"rejected"})):(UB("user accepted remote control"),e.update({remote_control:"on"}))}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),e.update({remote_control:"rejected"})}}),Bo(this,mz,async()=>{const e=this.session.resource.full_device;if(!0!==e&&"requested"!==e)return!1;if(!NE.isActive())return!1;if(this.session.capabilities.includes(yD))try{const e=await this.delegate.confirmFullDevice();return UB("full device request",e),e||await this.session.setFullDevice("rejected"),e}catch(e){return await this.session.setFullDevice("off"),!1}}),Bo(this,_z,async e=>{if(e.isEnded()||!jo(jB,this))return null;const t=jo(jB,this).getSource();e.fullDevice()?t instanceof bx||await jo(jB,this).setSource(new bx({handleFrame:jo(Cz,this),scale:e.scale,captureStarted:t=>{e.setFullDevice("on"),e.emit("media",t)},captureEnded:t=>{t&&console.warn("Full device mode failed: ",t),e.setFullDevice(t?"rejected":"off")},requestPermission:jo(mz,this)})):t instanceof jM?e.isVirtual()&&jo(jB,this).getSource().setOptions({includeVisibility:e.isVirtual()}):jo(jB,this).setSource(new jM(jo(Lz,this),{includeVisibility:e.isVirtual()})),jo(jB,this).getSource().setCodecs(e.resource.video_codecs)}),Bo(this,vz,(e,t)=>{if(this.session){if(jo(pz,this).call(this,e),jo(lz,this).call(this,e),jo(uz,this).call(this,e),jo(fz,this).call(this,e,t)&&this.invalidateFrames(),jo(gz,this).call(this,e),jo(_z,this).call(this,e),e.isActive()&&jo(Tz,this).call(this),jo($B,this)){const e=this.session.calling();if(e!==(null==t?void 0:t.calling())){const t=this.session.caller();jo($B,this).handleSessionUpdate(e,t)}}}else UB("onSessionUpdated called after destroy()")}),Bo(this,Ez,()=>{sW.hide(),mW.hide(),pW.hide(),gT.hide(),this.delegate.hideSessionControls(this.session),jo(HB,this)&&jo(HB,this).closeAllDocuments()}),Bo(this,wz,(e,t)=>!(!this.session||!this.session.isActive()||!this.session.fullDevice()&&!NE.isActive()||!jo(VB,this)||!jo(VB,this).stream||!jo(VB,this).stream.connected||!jo(VB,this).stream.bufferedAmount>100||(jo(VB,this).stream.send(e,t),0))),Bo(this,yz,()=>jo(wz,this).call(this,"focus",{type:"Focus",timestamp:new Date})),Bo(this,Iz,()=>jo(wz,this).call(this,"screen",{type:"Screen",timestamp:new Date,url:window.location.href,title:document.title})),Bo(this,Lz,e=>{zo(FB,this,(jo(FB,this)||0)+1);const t=jo(wz,this).call(this,"frame",{type:"Frame",id:jo(FB,this),data:e,timestamp:new Date,mime_type:"application/x-cbio-vdom-patch"});return t&&jo(YB,this)&&jo(YB,this).call(this),t}),Bo(this,Cz,(e,t,n)=>{jo(VB,this).stream.messageLag()>=n?UB("dropped frame due to message lag",jo(VB,this).stream.messageLag()):(zo(FB,this,(jo(FB,this)||0)+1),jo(wz,this).call(this,"frame",{type:"Frame",id:jo(FB,this),data:e,timestamp:new Date,mime_type:t}))}),Bo(this,Az,e=>{const t=Iv.position();jo(wz,this).call(this,"mouse",{type:pF,x:t.x/window.innerWidth,y:t.y/window.innerHeight,target:e,state:"click",timestamp:new Date})}),Bo(this,Sz,e=>{jo(wz,this).call(this,"change",{type:wF,target:e,state:"change",timestamp:new Date})}),Bo(this,bz,e=>{jo(wz,this).call(this,"input",{type:yF,target:e,state:"input",timestamp:new Date})}),Bo(this,Nz,e=>{let t="mouseout";return e.in&&(t=e.down?"mousedown":"mouseup"),jo(wz,this).call(this,"mouse",{type:pF,x:e.x/window.innerWidth,y:e.y/window.innerHeight,state:t,timestamp:new Date})}),Bo(this,Tz,()=>(jo(jB,this).isRunning()||(UB("start frames"),jo(jB,this).start()),this)),UB("session context constructed"),this.session=e,this.delegate=t,zo(VB,this,new oW(e)),NE.on("activate",jo(yz,this)),window.addEventListener("focus",jo(yz,this),{capture:!0,passive:!0}),window.addEventListener("hashchange",jo(Iz,this),{capture:!0,passive:!0}),Iv.onChange=jo(Nz,this),WL.on("click",jo(Az,this)),WL.on("change",jo(Sz,this)),WL.on("input",jo(bz,this)),BU.on("click",jo(Az,this)),BU.on("change",jo(Sz,this)),BU.on("input",jo(bz,this)),KU.on("end",jo(oz,this)),jo(vz,this).call(this,e),e.on("updated",jo(vz,this)),e.on("ended",jo(Ez,this)),e.on("sync",jo(nz,this)),e.on("highlight",jo(iz,this)),e.on("drawing",jo(sz,this)),e.on("laser",jo(rz,this)),e.on("control",jo(az,this)),e.on("remote-error",jo(tz,this)),e.once("stream-open",jo(JB,this)),zo(HB,this,new eG({onDocumentAdded:e=>this.delegate.showDocument(e)}));const n=new xT(e,t),r=new HT(e,t),i=new lM(e,t);zo(qB,this,new CT({shouldNavigate:jo(XB,this),handlers:[n,r,i],handleNavigation:this.handleNavigation})),pM.on("navigate",jo(ez,this)),QW.on("click",jo(KB,this)),jo(dz,this).call(this),jo(hz,this).call(this)}}function Oz(e){return{[pF]:[hD],[gF]:[hD],[mF]:[hD],[_F]:[gD,hD],[vF]:[gD],[EF]:[fD],[wF]:DU.isTypingInput(e)?[gD]:[gD,hD],[yF]:DU.isTypingInput(e)?[gD]:[gD,hD],[IF]:[ED],[LF]:[CD],[CF]:null!=e.disappears_in?[wD]:[mD,vD,_D],[AF]:[pD]}[e.type].some(e=>this.session.capabilities.includes(e))}const Rz=jl("cbio.Integrations.Intercom");function Pz(){Rz("Updating intercom integration"),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.CobrowseID=kq.deviceId(),window.Intercom("update",{CobrowseID:kq.deviceId()}),kq.on("session.loaded",function(e){window.Intercom("update",{CobrowseSessionID:e.id()})})}const Dz=jl("cbio.Integrations.Zendesk");function Mz(e,t){let n={};"identify"===e&&t?(t.name&&(n.user_name=t.name),t.email&&(n.user_email=t.email),t.organization&&(n.user_organization=t.organization)):"prefill"===e&&t?(t.name&&t.name.value&&(n.user_name=t.name.value),t.email&&t.email.value&&(n.user_email=t.email.value),t.phone&&t.phone.value&&(n.user_phone=t.phone.value)):"logout"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null}),qz(n)}let xz=window.localStorage;function Gz(e,t){let n={};"identify"===e&&t?n={zendesk_web_user_id:t.appUserId,cobrowseio_deviceid:t.deviceId}:"logoutUser"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null,zendesk_web_user_id:null,zendesk_user_id:null,zendesk_ticket_id:null}),qz(n)}function Uz(){const e=Wz();if(!e)throw new Error("Missing client ID (ZD-buid)");const t=Vz(e);if(!t)throw new Error("Instance ID could not be found");const n=Fz(t);window.zE.__cobrowseio_zendesk_tags_set||window.zE("messenger:set","conversationTags",[`cobrowseio_deviceid_${kq.deviceId()}`]),Gz("identify",{appUserId:n,deviceId:kq.deviceId()})}function Wz(){return xz.getItem("ZD-buid")}function Vz(e){var t;return null===(t=Object.keys(xz).find(t=>t.match(/\w+\.clientId/)&&xz[t]===e))||void 0===t||null===(t=t.split("."))||void 0===t?void 0:t[0]}function Fz(e){return xz.getItem(`${e}.appUserId`)}function jz(){const e=(t,n)=>{xz=sessionStorage.getItem("ZD-buid")?window.sessionStorage:window.localStorage;const r=Fz(Vz(Wz()));r?t(r):setTimeout(e,Hz,t,n)};return new Promise(e)}function Bz(){qz({zendesk_web_user_id:zz()})}function zz(){var e;return null===(e=window.Smooch.getUser())||void 0===e?void 0:e.id}const Hz=2e3;function qz(e){Object.keys(e).length&&(kq.customData=e)}function Qz(){const e=window.zE;window.zE=function(...t){const[n,r,i]=t;if("webWidget"===n&&Mz(r,i),"messenger"===n&&Gz(r,i),"messenger:set"===n&&"conversationTags"===r){let e=i;if(e&&e.length){const n=kq.deviceId();e=[...e,`cobrowseio_deviceid_${n}`],t[2]=e,window.zE.__cobrowseio_zendesk_tags_set=!0}}return e(...t)};for(const t in e)window.zE[t]=e[t]}const $z=jl("cbio.Integrations.Salesforce");function Yz(e){console.error("Error syncing Cobrowse.io with Salesforce Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}function Jz(){kq.currentSession&&kq.currentSession.end()}function Kz(e){if(!e)throw new Error("No messaging Session Id found");kq.customData={salesforce_MessagingSessionId:Xz(e)}}function Xz(e){if(18===e.length)return e;if(15!==e.length)throw Error(`Invalid salesforce id: ${e}`);let t="";for(let n=0;n<3;n++){let r=0;for(let t=0;t<5;t++){const i=e.charAt(5*n+t);i>="A"&&i<="Z"&&(r+=1<<t)}t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ012345".charAt(r)}return e+t}function Zz(){$z("Detected Salesforce Enhanced Chat v1"),window.addEventListener("onEmbeddedMessagingConversationRouted",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.entryPayload;if(!n)throw new Error("No entry payload found");const r=JSON.parse(n);Kz(null==r?void 0:r.recordId)})}function eH(){$z("Detected Salesforce Enhanced Chat v2"),window.addEventListener("onEmbeddedMessageSent",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.relatedRecords;if(!n)throw new Error("No related records found");Kz(n[0])})}const tH=jl("cbio.Integrations.Genesys");let nH;function rH(){if(!nH)try{var e;const t=window.CXBus||(null===(e=window)||void 0===e||null===(e=e._genesys)||void 0===e||null===(e=e.widgets)||void 0===e?void 0:e.bus);if(!t)throw new Error("Genesys bus not found");nH=t.registerPlugin("CobrowseIOExtension"),window.oCobrowseIOExtension=nH,tH("CobrowseIOExtension",nH),nH.subscribe("WebChat.opened",function(e){tH("CobrowseIOExtension.WebChat.opened",e),function(e){document.querySelector(".cx-menu .cx-cobrowseio")||(document.getElementsByClassName("cx-menu")[0].insertAdjacentHTML("beforeend",'<li role="none"><div class="cx-menu-item cx-cobrowseio cx-icon" role="button" data-icon="cobrowseio" tabindex="0" aria-label="Start Co-browse Opens the Co-browse session" title="Start Co-browse" style="display: block/;"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100" focusable="false" role="img" aria-hidden="true" alt="" data-gcb-service-node="true"><g class="cx-svg-icon-tone1" data-gcb-service-node="true"><path d="M11.5000001,3 L85.4166665,3 L87.6666668,3 C90.2624998,3 97,3.75367965 97,8.36940835 L97,30.4776335 L4.16666671,30.4776335 L4.16666671,70.4963922 C4.16666671,78.8021647 9.0333332,80.6810966 11.3333336,80.6810966 L88.6666664,80.6810966 C90.9625002,80.6810966 92.8333333,78.8021647 92.8333333,76.4963922 L92.8333333,41.8470419 L97,41.8470419 L97,79.5093796 C97,84.1251081 93.2624998,84.8787879 91.6666668,84.8787879 L8.3333332,84.8787879 C3.73750015,84.8787879 1,81.1251081 0,75.5093796 L0,8.36940835 C3,3.75367965 2.73750015,3 8.3333332,3 L8.5000001,3 Z M18.0297398,7.03030303 L5.9962825,7.03030303 C5.79033476,7.03030303 3.99999999,8.59607987 3.99999999,10.5175565 L3.999999,26.1125541 L93,26.1125541 L93,10.5175565 C93,8.59607987 91.2056692,7.03030303 89.0037175,7.03030303 L81.9702602,7.03030303 L18.0297398,7.03030303 Z M42.3451929,54.7727663 L42.3451929,68.6904309 L35,68.6904309 L35,47.7138693 C35,44.657411 37.4676761,42.1818182 40.5082059,42.1818182 L61.3971055,42.1818182 L61.3971055,49.5560425 L47.5394308,49.5560425 L66.3971054,67.9373646 L61.202867,73.154089 L42.3451929,54.7727663 Z" id="Fill-1-Copy""></path></g></svg></div></li>'),document.getElementsByClassName("cx-cobrowseio")[0].onclick=()=>async function(e){tH("Requesting cobrowse");const t=await kq.createSessionCode();tH(`Generated session code: ${t}`),e.command("WebChatService.sendFilteredMessage",{message:`Customer requests Cobrowse session with code: ${t.substr(0,3)} ${t.substr(3)}`,regex:/Customer requests Cobrowse session with code:.*/}).done(function(e){tH("CobrowseIOExtension.WebChatService sent filtered message successfully",e)}).fail(function(e){tH("CobrowseIOExtension.WebChatService failed to send filtered message",e)})}(e))}(nH),function(e){e.command("WebChatService.updateUserData",{cobrowse_device_id:kq.deviceId()}).done(function(e){tH("CobrowseIOExtension.WebChatService.updateUserData succeeded",e)}).fail(function(e){tH("CobrowseIOExtension.WebChatService.updateUserData failed",e)})}(nH)}),nH.subscribe("WebChatService.started",function(e){try{tH("CobrowseIOExtension.WebChatService.started",e);const t={cobrowse_device_id:kq.deviceId()};e&&e.data&&(e.data.data&&e.data.data.conversationId&&(t.genesys_conversation_id=e.data.data.conversationId),e.data.userId&&"deprecated"!==e.data.userId&&(t.genesys_user_id=e.data.userId),e.data.sessionID&&"deprecated"!==e.data.sessionID&&(t.genesys_session_id=e.data.sessionID)),kq.customData=t}catch(e){tH("Error during CobrowseIOExtension.WebChatService.started",e)}}),nH.subscribe("WebChatService.agentConnected",function(e){tH("CobrowseIOExtension.WebChatService.agentConnected",e)}),nH.subscribe("WebChatService.clientConnected",function(e){tH("CobrowseIOExtension.WebChatService.clientConnected",e)}),nH.subscribe("WebChatService.restored",function(e){tH("CobrowseIOExtension.WebChatService.restored",e)}),nH.subscribe("WebChatService.ended",function(e){tH("CobrowseIOExtension.WebChatService.ended",e),kq.currentSession&&!kq.currentSession.isEnded()&&kq.currentSession.end()}),nH.subscribe("WebChat.started",function(e){try{if(tH("CobrowseIOExtension.WebChat.started",e),e&&e.data&&e.data.form){tH("e.data.form",e.data.form);const t=e.data.form||{};t.device_name=e.data.form.firstname?`${e.data.form.firstname}'s device`:"WebChat User's Device",kq.customData=t}}catch(e){tH("Error during CobrowseIOExtension.WebChat.started",e)}}),nH.republish("ready"),nH.ready()}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}const iH=jl("cbio.Integrations.Freshchat");async function oH(){const e=kq.deviceId();window.fcWidget.user.setProperties({cobrowse_device_id:e});const t=await window.fcWidget.user.get();if(t.success){iH("Freshchat initialized");const n=t.data,r={freshchat_numeric_user_id:n.id+"",freshchat_user_id:n.alias,cobrowse_device_id:e};n.isNameGenerated||(r.freshchat_user_first_name=n.firstName,r.freshchat_user_last_name=n.lastName),n.email&&(r.freshchat_user_email=n.email),kq.customData=r}}const sH=jl("cbio.Integrations.Nice"),aH=jl("cbio.Integrations.Dynamics"),cH=jl("cbio.Integrations.ServiceNow"),lH=jl("cbio.Integrations.Talkdesk");let uH=!1;const dH=jl("cbio.Integrations.AmazonConnect"),hH=jl("cbio.Integrations");class fH{static watchProperty(e,t,n){let r=e[t];const i=()=>{hH(`monitoring changes to ${t}`,e),Object.defineProperty(e,t,{configurable:!0,set:o=>{hH("CobrowseIO detected",t,"as",o),r=o,Object.defineProperty(e,t,{configurable:!0,writable:!0,value:o}),setTimeout(()=>n(i),0)},get:()=>r})};r?(hH(`${t} already exists as`,e[t]),n(i)):i()}static initialize(){hH("Initializing integrations"),this.watchProperty(window,"Intercom",()=>function(){try{if(!window.Intercom||"function"!=typeof window.Intercom)throw new Error("expected window.Intercom to be a function");Rz("Initializing intercom integration"),Pz(),window.Intercom("onShow",dc(Pz,12e4,{trailing:!1}))}catch(e){console.error("Error syncing Cobrowse.io with Intercom, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.watchProperty(window,"$zopim",()=>function(){try{if("function"!=typeof window.$zopim)throw new Error("expected window.$zopim to a be a function");window.$zopim(function(){Dz("Initializing zendesk integration"),window.$zopim.livechat.addTags(`cobrowseio_deviceid_${kq.deviceId()}`),kq.customData={cobrowseio_deviceid:kq.deviceId()}})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeSalesforce(()=>function(){try{if("object"!=typeof window.embedded_svc)throw new Error("expected window.embedded_svc to a be an object");if(window.embedded_svc&&!window.embedded_svc.liveAgentAPI)throw new Error("expected liveAgentAPI on embedded_svc");$z("Initializing Salesforce legacy integration"),window.embedded_svc.addEventHandler("onChatRequestSuccess",function(e){e&&e.liveAgentSessionKey&&(kq.customData={salesforce_liveAgentSessionKey:e.liveAgentSessionKey})}),window.embedded_svc.addEventHandler("onChatEndedByAgent",Jz),window.embedded_svc.addEventHandler("onChatEndedByChasitor",Jz)}catch(e){Yz(e)}}(),()=>function(){try{var e;if("object"!=typeof window.embeddedservice_bootstrap)throw new Error("expected window.embeddedservice_bootstrap to a be an object");$z("Initializing Salesforce Enhanced Chat integration"),(null!==(e=window.embeddedservice_bootstrap)&&void 0!==e&&null!==(e=e.settings)&&void 0!==e&&e.orgId?Zz:eH)(),window.addEventListener("onEmbeddedMessagingConversationClosed",Jz),window.addEventListener("onEmbeddedMessagingWindowClosed",Jz)}catch(e){Yz(e)}}()),this.initializeGenesys(()=>function(){try{window.Genesys("subscribe","Database.ready",()=>{const e=kq.deviceId();kq.customData={cobrowse_device_id:e},window.Genesys("command","Database.set",{messaging:{customAttributes:{cobrowse_device_id:e}}})}),window.Genesys("subscribe","MessagingService.ready",()=>{window.Genesys("subscribe","MessagingService.conversationDisconnected",({data:e})=>{tH("MessagingService.conversationDisconnected triggered",e),kq.currentSession&&!kq.currentSession.isEnded()&&(tH("Ending Cobrowse session after conversation disconnected"),kq.currentSession.end())})})}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>rH()),this.initializeZendesk(()=>function(){Qz();try{"true"===sessionStorage.getItem("ZD-widgetOpen")?jz().then(Uz):window.zE("messenger:on","open",()=>{jz().then(Uz)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (messenger), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{!function(){if(!window.zE||!window.zE.identify)throw new Error("missing window.zE or window.zE.identify");{Qz();const e=window.zE.identify;window.zE.identify=function(...t){const[n]=t;return Mz("identify",n),e(...t)}}}()}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (classic), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{window.Smooch.on("widget:opened",()=>{(function(){const e=(t,n)=>{const r=zz();r?t(r):setTimeout(e,Hz,t,n)};return new Promise(e)})().then(Bz)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (Sunshine Conversations), please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeFreshchat(()=>async function(){window.fcWidget?(window.fcWidget.on("user:created",e=>{e.success&&oH()}),window.fcWidget.on("widget:opened",async()=>{!0===(await window.fcWidget.user.isExists()).data&&await oH()})):iH("Freshchat not found")}()),this.initializeNice(()=>async function(){sH("Swizzling started");const e=kq.deviceId();try{window.cxone("chat","setCustomerCustomField","cobrowse_device_id",e)}catch(e){console.log("Error setting Nice CX custom field",e)}window.cxone("chat","onAnyPushUpdate",({data:t,eventType:n})=>{var r;if("CaseCreated"===n){var i;sH("Nice case created");const{case:n}=t,r=n.id+"",o=null===(i=n.authorEndUserIdentity.fullName)||void 0===i?void 0:i.trim(),s=n.authorEndUserIdentity.idOnExternalPlatform;kq.customData={nice_case_id:r,nice_external_contact_id:s,cobrowse_device_id:e,user_name:o}}else"CaseStatusChanged"===n&&"closed"===t.case.status&&null!==(r=kq.currentSession)&&void 0!==r&&r.isActive()&&(sH("Nice case closed"),kq.currentSession.end())})}()),this.initializeDynamics(()=>function(){const e=kq.deviceId();let t=!1;function n(e){window.Microsoft.Omnichannel.LiveChatWidget.SDK.setContextProvider(()=>({"cobrowse-device":{value:e,isDisplayable:!0}})),t=!0,aH("Dynamics initialized")}kq.customData={cobrowse_device_id:e},window.addEventListener("lcw:ready",()=>{t||n(e)});try{n(e)}catch(e){}}()),this.initializeServiceNow(()=>function(){const e=kq.deviceId();kq.customData={cobrowse_device_id:e},cH("ServiceNow initialized")}()),this.initializeTalkdesk(()=>function(){if("function"==typeof TalkdeskChatSDK){if(!window.webchat)return console.warn('Talkdesk not found in variable "webchat". Please load Talkdesk using:'),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if("function"!=typeof window.webchat.setContextParam)return console.warn("window.webchat.setContextParam is missing or of an unexpected value. Please load Talkdesk using:"),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if(!uH){const e={cobrowse_device_id:kq.deviceId()};kq.customData=e,window.webchat.setContextParam(e),uH=!0,lH("Talkdesk initialized")}}else console.warn("TalkdeskChatSDK is not a function, ignoring as Talkdesk widget might not be present.")}()),this.initializeAmazonConnect(()=>function(){const e=kq.deviceId();kq.customData={cobrowse_device_id:e},dH("AmazonConnect initialized")}())}static initializeGenesys(e,t){this.watchProperty(window,"Genesys",()=>e()),this.watchProperty(window,"CXBus",()=>t()),this.watchProperty(window,"_genesys",()=>this.watchProperty(window._genesys,"widgets",()=>this.watchProperty(window._genesys.widgets,"bus",()=>{setTimeout(()=>{t()},0)})))}static initializeSalesforce(e,t){this.watchProperty(window,"embedded_svc",()=>this.watchProperty(window.embedded_svc,"liveAgentAPI",()=>{e()})),this.watchProperty(window,"embeddedservice_bootstrap",()=>t())}static initializeFreshchat(e){this.watchProperty(window,"fcWidget",()=>e())}static initializeTalkdesk(e){this.watchProperty(window,"TalkdeskChatSDK",()=>this.watchProperty(window,"webchat",()=>this.watchProperty(window.webchat,"setContextParam",()=>e())))}static initializeZendesk(e,t,n){this.watchProperty(window,"zE",n=>{if(!window.zE.widget)return n();"messenger"===window.zE.widget?e():t()}),this.watchProperty(window,"Smooch",()=>n())}static initializeNice(e){this.watchProperty(window,"cxone",t=>{if(!window.cxone.guide)return this.watchProperty(window.cxone,"guide",()=>e()),t();e()})}static initializeDynamics(e){this.watchProperty(window,"Microsoft",()=>this.watchProperty(window.Microsoft,"Omnichannel",()=>this.watchProperty(window.Microsoft.Omnichannel,"LiveChatWidget",()=>this.watchProperty(window.Microsoft.Omnichannel.LiveChatWidget,"SDK",()=>{e()}))))}static initializeServiceNow(e){this.watchProperty(window,"ServiceNowChat",()=>e())}static initializeAmazonConnect(e){this.watchProperty(window,"amazon_connect",()=>e())}}class pH{static isHeadless(){return navigator.userAgent.toLowerCase().includes("headless")}}const gH=jl("cbio.sessionStorage.LocalSessionStorage");var mH=new WeakMap;class _H{constructor(){Bo(this,mH,EE())}isSupported(e){return gH("isSupported?",!0),!0}load(e){const t=jo(mH,this).getItem(nM);return t?(gH("loading session"),new tM(e)[ST].deserialize(t)):(gH("no session to load"),null)}store(e,t){null!=t&&t.isActive()?(gH("storing active session"),jo(mH,this).setItem(nM,t[ST].serialize())):(gH("removing inactive session"),jo(mH,this).removeItem(nM))}reset(e){jo(mH,this).removeItem(nM)}}const vH=jl("cbio.sessionStorage.CookieSessionStorage");function EH(e,t,n){return n?`${e}//${t}:${n}`:`${e}//${t}`}function wH(e,t){const n=function(e){try{return new URL(e)}catch(e){return null}}(e);if(!n)return null;const{hostname:r,protocol:i,port:o}=n,s=iA(t),a=r.split(".");for(let e=a.length-1;e>=0;e--){const t=a.slice(e).join("."),n=EH(i,t,o),r=EH(i,`.${t}`,o);if(s(n)&&s(r))return t}return null}class yH{isSupported(e){if(!e.trustedOrigins.length)return vH("isSupported?",!1,"no trusted origins"),!1;const t=wH(window.location.href,e.trustedOrigins);return vH("isSupported?",!!t,"domain",t),!!t}load(e){const t=gE.get(nM,{path:"/"});return t?(vH("loading session from cookie"),new tM(e)[ST].decompress(t)):(vH("no session to load from cookies"),null)}store(e,t){if(!this.isSupported(e))return;const n={path:"/",domain:wH(window.location.href,e.trustedOrigins),secure:!0,sameSite:"strict"};null!=t&&t.isActive()?(vH("storing active session to cookies"),gE.set(nM,t[ST].compress(),Yo(Yo({},n),{},{expires:1}))):(vH("removing inactive session from cookies"),gE.remove(nM,n))}reset(e){this.store(e,null)}}const IH=jl("cbio.sessionStorage");var LH=new WeakMap,CH=new WeakMap,AH=new WeakMap;class SH{static create(e){const t=new _H,n=new sM,r=new yH;return new SH(e,{load:[n,r,t],store:[t,r,n]})}constructor(e,{load:t=[],store:n=[]}){Bo(this,LH,void 0),Bo(this,CH,void 0),Bo(this,AH,void 0),zo(AH,this,e),zo(LH,this,t),zo(CH,this,n)}peek(){IH("peeking session");for(const e of jo(LH,this)){if(!e.isSupported(jo(AH,this)))continue;const t=e.load(jo(AH,this));if(t)return t}return null}async load(){IH("loading session");for(const e of jo(LH,this)){if(!e.isSupported(jo(AH,this)))continue;const t=e.load(jo(AH,this)),n=await(null==t?void 0:t.fetch());if(n){if(n.isActive())return n;await e.store(jo(AH,this),null)}}return null}async store(e){IH("storing session");for(const t of jo(CH,this))if(t.isSupported(jo(AH,this)))try{await t.store(jo(AH,this),e)}catch(e){console.error(`Unexpected error storing session: ${t.constructor.name}`,e)}}reset(){const e=new Set([...jo(LH,this),...jo(CH,this)]);for(const t of e)t.reset(jo(AH,this))}}const bH={load:Date.now()};var NH=new WeakMap,TH=new WeakMap,kH=new WeakMap,OH=new WeakMap,RH=new WeakMap,PH=new WeakMap,DH=new WeakMap,MH=new WeakMap,xH=new WeakMap,GH=new WeakMap,UH=new WeakMap,WH=new WeakMap,VH=new WeakMap;const FH=new class{constructor(){Bo(this,NH,void 0),Bo(this,TH,void 0),Bo(this,kH,[]),Bo(this,OH,window.matchMedia("(min-width: 768px)")),Qo(this,"singleTabFullScreen",!1),Qo(this,"enterFullScreen",()=>jo(TH,this).enterFullScreen()),Qo(this,"exitFullScreen",()=>jo(TH,this).exitFullScreen()),Qo(this,"getTabCount",()=>jo(kH,this).length),Qo(this,"newTab",(e,t,n,r,i,o)=>{const s=jo(TH,this).createTab({onTabClick:e=>{jo(MH,this).call(this,s)},onClose:i,confirmUnload:o});return s.setIcon(t),s.setTitle(n),s.setIsLoading(r),s.setContent(e),jo(kH,this).push(s),jo(MH,this).call(this,s),jo(TH,this).showModal(),1===jo(kH,this).length&&history.pushState({universalProxyOpen:!0},""),Yo(Yo({},s),{},{close:()=>jo(DH,this).call(this,s)})}),Bo(this,RH,()=>{1===jo(kH,this).length&&jo(DH,this).call(this,jo(kH,this)[0])}),Bo(this,PH,e=>{jo(kH,this).some(e=>e.confirmUnload)&&e.preventDefault()}),Qo(this,"closeAllTabs",()=>{jo(kH,this).forEach(jo(DH,this))}),Bo(this,DH,e=>{const t=jo(kH,this).indexOf(e);if(-1===t)return;if(e.removeTab(),jo(kH,this).splice(t,1),!jo(kH,this).length)return jo(TH,this).hideModal();const n=jo(kH,this).length-1;e.isActive()&&(t<=n?jo(kH,this)[t].show():jo(kH,this)[n].show())}),Bo(this,MH,e=>{jo(kH,this).forEach(e=>e.hide()),e.show()}),Bo(this,xH,()=>{const e=document.createElement("div"),t=e.attachShadow({mode:"open"}),n=document.createElement("div");n.style.background="rgba(50, 50, 50, 0.4)",n.style.position="fixed",n.style.zIndex="2147483645",n.style.bottom="0",n.style.top="0",n.style.left="0",n.style.right="0",n.style.display="flex",n.style.flexDirection="column",n.style.padding=jo(OH,this).matches?"25px":"0",t.appendChild(n);const r=jo(GH,this).call(this);n.appendChild(r.element);const i=jo(UH,this).call(this);n.appendChild(i.element);let o=null;return{element:n,showModal:()=>{this.isVisible||(document.body.appendChild(e),o=document.body.style.overflow,document.body.style.overflow="hidden",this.isVisible=!0,zo(NH,this,history.length))},hideModal:()=>{document.body.removeChild(e),document.body.style.overflow=o,this.isVisible=!1;const t=history.length-jo(NH,this);t>0&&history.go(-t)},createTab:({onTabClick:e,onClose:t,confirmUnload:n})=>{const o=jo(WH,this).call(this,{onTabClick:e,onCloseClick:e=>{e.stopPropagation(),t()}});r.addButton(o.element);const s=jo(VH,this).call(this);return i.addPanel(s.element),{setIcon:o.setIcon,setTitle:o.setTitle,setIsLoading:o.setIsLoading,showBanner:s.showBanner,hideBanner:s.hideBanner,show:()=>{o.setIsActive(!0),s.showPanel()},hide:()=>{o.setIsActive(!1),s.hidePanel()},removeTab:()=>{r.removeButton(o.element),i.removePanel(s.element)},isActive:()=>o.isActive,onClose:t,confirmUnload:n,setContent:s.setContent}},enterFullScreen:()=>{r.hide(),n.style.padding="0"},exitFullScreen:()=>{r.show(),n.style.padding=jo(OH,this).matches?"25px":"0"}}}),Bo(this,GH,()=>{const e=document.createElement("div");return e.style.display="flex",e.style.backgroundColor="#d6e2fb",e.style.borderBottom="1px solid #d8d8d8",e.style.paddingTop="6px",e.style.paddingLeft="6px",e.style.paddingBottom="5px",e.style.borderRadius="10px 10px 0 0",this.fullScreen&&(e.style.display="none"),{element:e,addButton:t=>e.appendChild(t),removeButton:t=>e.removeChild(t),show:()=>{e.style.display="flex"},hide:()=>{e.style.display="none "}}}),Bo(this,UH,()=>{const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.borderRadius="0 0 10px 10px",e.style.overflow="hidden",{element:e,addPanel:t=>e.appendChild(t),removePanel:t=>e.removeChild(t)}}),Bo(this,WH,({onTabClick:e,onCloseClick:t})=>{const n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="end",n.style.flex="1 1 0",n.style.backgroundColor="#ffffff66",n.style.padding="4px",n.style.maxWidth="200px",n.style.minWidth="0",n.style.overflow="hidden",n.style.cursor="pointer",n.style.borderRadius="9px",n.style.marginRight="6px";const r=document.createElement("img");r.style.flex="0 0 auto",r.style.width="16px",r.style.height="16px",r.style.marginRight="4px";const i=document.createElement("span");i.style.flex="1 1 auto",i.style.display="block",i.style.fontFamily="sans-serif",i.style.fontSize="13px",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.textOverflow="ellipsis";const o=document.createElement("button");o.style.flex="0 0 auto",o.style.width="24px",o.style.height="24px",o.style.border="none",o.style.background="none",o.style.padding="4px",o.style.cursor="pointer";const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("fill","none"),s.setAttribute("viewBox","0 0 24 24"),s.setAttribute("stroke-width","1.5"),s.setAttribute("stroke","currentColor"),s.style.width="16px",s.style.height="16px";const a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("d","M6 18 18 6M6 6l12 12"),s.appendChild(a),o.appendChild(s),n.appendChild(r),n.appendChild(i),n.appendChild(o),n.addEventListener("click",e),o.addEventListener("click",t),r.onerror=function(){this.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="gray"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418" /></svg>'},{element:n,icon:"",title:"",isActive:!1,isLoading:!1,setIcon:function(e){this.icon=e,r.src=e},setTitle:function(e){this.title=e,i.textContent=e},setIsActive:function(e){this.isActive=e,this.isActive?(n.style.backgroundColor="white",n.style.borderColor="#d8d8d8"):(n.style.backgroundColor="#ffffff66",n.style.borderColor="#efefef")},setIsLoading:function(e){this.isLoading=e,r.src=this.isLoading?'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"><animateTransform attributeName="transform" type="rotate" dur="0.75s" values="0 12 12;360 12 12" repeatCount="indefinite"/></path></svg>':this.icon}}}),Bo(this,VH,()=>{const e=document.createElement("div");e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.display="flex",e.style.flexDirection="column";const t=document.createElement("div");t.style.height="30px",t.style.width="100%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.backgroundColor="white",t.style.color="black",t.style.fontFamily="sans-serif",t.style.fontSize="13px",t.style.borderBottom="1px solid #d8d8d8";const n=document.createElement("div");return n.style.flex="1",e.appendChild(n),{element:e,showPanel:()=>{e.style.display="flex"},hidePanel:()=>{e.style.display="none"},showBanner:n=>{t.innerText=n,e.contains(t)||e.prepend(t)},hideBanner:()=>{e.contains(t)&&e.removeChild(t)},setContent:e=>{n.contains(e)||n.replaceChildren(e)}}}),zo(TH,this,jo(xH,this).call(this)),jo(OH,this).addEventListener("change",e=>{jo(TH,this).element.style.padding=e.matches?"25px":"0"}),window.addEventListener("popstate",jo(RH,this)),window.addEventListener("beforeunload",jo(PH,this))}},jH=jl("cbio.VirtualAgent.VirtualAgentEmbed");class BH extends YP{constructor(){super(),Qo(this,"url",()=>new URL(`api/1/virtualagents/${encodeURIComponent(this.slug())}/embed`,BH.api).toString()),Qo(this,"slug",()=>this.field("slug")),Qo(this,"type",()=>this.field("type")),Qo(this,"data",()=>this.field("data")),jH("constructed")}static async load(e,t){var n;const r=new BH,i=EE(e.license),o=`_cobrowse_va_conversation_${t}`,{iat:s,resource:a,attempts:c=0}=null!==(n=i.getItem(o))&&void 0!==n?n:{};if(a&&s&&s>Date.now()-78e4)return jH("loaded agent embed data from storage"),r.updateResource(a),r;if(!a&&c){const e=zH(s,c);if(e>Date.now())return void console.warn(`Not loading virtual agent embed data, next retry at: ${new Date(e)}`)}try{jH("loading agent embed data from the API"),r.updateResource({slug:t}),await r.fetch()}catch(e){const t=zH(Date.now(),c);return console.error(`Unable to resolve virtual agent embed data. Next retry at ${new Date(t)}`,e),void i.setItem(o,{iat:Date.now(),attempts:c+1})}return i.setItem(o,{resource:r.resource,iat:Date.now()}),r}}function zH(e,t){return e+1e3*Math.min(Math.pow(2,t),900)}const HH=jl("cbio.VirtualAgent"),qH=jl("cbio.CobrowseIO");var QH=new WeakMap,$H=new WeakMap,YH=new WeakMap,JH=new WeakMap,KH=new WeakMap,XH=new WeakMap,ZH=new WeakMap,eq=new WeakMap,tq=new WeakMap,nq=new WeakMap,rq=new WeakMap,iq=new WeakMap,oq=new WeakMap,sq=new WeakMap,aq=new WeakMap,cq=new WeakMap,lq=new WeakMap,uq=new WeakMap,dq=new WeakMap,hq=new WeakMap,fq=new WeakMap,pq=new WeakMap,gq=new WeakMap,mq=new WeakMap,_q=new WeakMap,vq=new WeakMap,Eq=new WeakMap,wq=new WeakMap,yq=new WeakMap,Iq=new WeakSet,Lq=new WeakMap,Cq=new WeakMap,Aq=new WeakMap;class Sq extends wv.EventEmitter{constructor({sessionStorage:e}={}){super(),qo(this,Iq),Bo(this,QH,new yC),Bo(this,$H,void 0),Bo(this,YH,!1),Bo(this,JH,!0),Bo(this,KH,SH.create(this)),Bo(this,XH,{}),Bo(this,ZH,VD.info.capabilities),Bo(this,eq,new VD(this)),Bo(this,tq,new JW),Bo(this,nq,new JW),Bo(this,rq,new JW),Bo(this,iq,new JW),Bo(this,oq,void 0),Bo(this,sq,void 0),Bo(this,aq,void 0),Bo(this,cq,void 0),Bo(this,lq,void 0),Bo(this,uq,void 0),Bo(this,dq,void 0),Bo(this,hq,void 0),Bo(this,fq,void 0),Bo(this,pq,void 0),Qo(this,"start",async(e={})=>{if(qH("start()",e,"in",document),!pH.isHeadless()||e.allowHeadless){if(window.self!==window.top){if(!e.allowIFrameStart)return hv(window.parent)?(jo(fq,this)&&jo(fq,this).call(this),zo(fq,this,async function(e){const t=new tM(e),n=GU(BU,{currentSession:t}),r=VU(BU,e,{waitForParentSync:!0});BU.start();const i=await r.getSyncedConfig();let o;FU("synced config",i);const s=()=>{t.isActive()&&!o&&(FU("creating iframe context",o),HU(i.api)(t),o=new OG(t,Yo(Yo({},i),{},{trustedOrigins:e.trustedOrigins,version:e.version,showDocument:e.showDocument,confirmOpen:(e,t)=>zU.send("confirmOpen",{url:e,type:t}),open:(e,t,n,r)=>zU.send("open",{url:e,target:t,windowFeatures:n,options:r})}),BU.sendToParent),t.once("ended",()=>{FU("destroying iframe context",o),o.destroy(),o=null}))};BU.on("session",s);const a=(e,{trustedOnly:t,fromParent:n})=>{n?BU.broadcastToChildren("rpc:request",e,{trustedOnly:t}):BU.sendToParent("rpc:request",e,{trustedOnly:t})};BU.on("rpc:request",a);const c=(e,{trustedOnly:t,fromParent:n})=>{n?BU.broadcastToChildren("rpc:response",e,{trustedOnly:t}):BU.sendToParent("rpc:response",e,{trustedOnly:t})};BU.on("rpc:response",c);const l=()=>{var e;return null===(e=o)||void 0===e?void 0:e.invalidateFrame()};BU.on("sync",l);const u=(e,{trustedOnly:t})=>{var n;const{target:r,error:{cause:i}}=e,s="string"==typeof r?r:r.id;"load-error"===i&&(null===(n=o)||void 0===n||n.partialSync(s)),BU.broadcastToChildren("remote-error",e,{trustedOnly:t})};BU.on("remote-error",u);const d=async t=>KU.highlight(e,t);return zU.on("highlight",d),()=>{r.unsubscribe(),n.unsubscribe(),BU.off("remote-error",u),BU.off("sync",l),BU.off("session",s),BU.off("rpc:request",a),BU.off("rpc:response",c),zU.off("highlight",d)}}(this)),void qH("Starting Cobrowse in Iframe bridge mode with trusted origins:",BU.trustedOrigins,"for",document)):void qH("Not starting Cobrowse for same-origin iframe",document);NE.setTracksIframes(!0)}var t,n;jo(fq,this)&&jo(fq,this).call(this),zo(fq,this,function(e,{open:t}){const n=GU(BU,e);e.on("session.loaded",n.publish),e.on("session.updated",n.publish);const r=HU(e.api);e.on("session.loaded",r),e.on("session.updated",r);const i=VU(BU,e);e.on("session.sync",i.sendSync);const o=async({url:t,type:n})=>({accepted:await e.confirmOpen(t,n)});zU.on("confirmOpen",o);const s=({url:e,target:n,windowFeatures:r,options:i})=>{t(e,n,r,i)};return zU.on("open",s),BU.start(),()=>{n.unsubscribe(),i.unsubscribe(),e.off("session.loaded",n.publish),e.off("session.updated",n.publish),e.off("session.loaded",r),e.off("session.updated",r),e.off("session.sync",i.sendSync),zU.off("confirmOpen",o),zU.off("open",s)}}(this,{open:jo(gq,this)})),this.license?jo(YH,this)||(fH.initialize(),NE.start(),async function(){lL.isLocalResource(window.location.href)&&console.warn("CobrowseIO: This page was loaded from a local address, Cobrowse may not work as expected due to inaccessible resources. We recommend using ngrok for testing development versions.")}().catch(()=>{}),console.log("CobrowseIO started",Sq.version,null===(t=document.timeline)||void 0===t?void 0:t.currentTime),zo(YH,this,!0),"boolean"==typeof e.register&&zo(JH,this,e.register),this.registration&&xo(Iq,this,bq).call(this),qH("attempting to restore session after start"),await jo(mq,this).call(this),null!==(n=this.currentSession)&&void 0!==n&&n.isActive()||this.hideSessionControls(),bH.start=Date.now(),await jo(Aq,this).call(this)):console.error("CobrowseIO.license must be set before calling start")}else console.warn("CobrowseIO: Not starting Cobrowse in a headless browser")}),Qo(this,"stop",async()=>(this.currentSession&&!this.currentSession.isEnded()&&await this.currentSession.end().catch(e=>{console.warn("CobrowseIO: Failed to end session on stop",e)}),jo(_q,this).call(this,null),NE.stop(),jo(QH,this).stop(),await jo(eq,this).destroy(),await jo(KH,this).reset(),zo(YH,this,!1),jo(fq,this)&&(jo(fq,this).call(this),zo(fq,this,null)),this)),Qo(this,"open",(e,t,n,{type:r}={})=>jo(gq,this).call(this,e,t,n,{type:r})),Bo(this,gq,(e,t,n,r)=>{const i=()=>window.open(e,t,n);if(!jo($H,this))return i();const{target:o,name:s}=SA(t,"_blank"),a=Yo(Yo({},r),{},{name:s,go:i}),{rewrittenUrl:c,windowProxy:l}=jo($H,this).handleNavigation(e,o,n,a);return c?window.open(c,t,n):l}),Bo(this,mq,async()=>{try{const e=await jo(KH,this).load(this);e&&jo(_q,this).call(this,e,{invalidateFrames:!0})}catch(e){console.warn("CobrowseIO: Failed to fetch restored session",e),jo(_q,this).call(this,null)}return null}),Bo(this,_q,(e,{invalidateFrames:t=!1}={})=>{if(qH("setting current session",e),e&&jo($H,this)){const t=jo($H,this).session.id();if(t&&t===e.id())return}jo(tq,this).hide(),jo(nq,this).hide(),jo(rq,this).hide(),jo(iq,this).hide();const n=(e,t)=>BU.broadcastToChildren("control",[e,t]),r=e=>BU.broadcastToChildren("remote-error",e);jo($H,this)&&(jo($H,this).session.off("updated",jo(vq,this)),jo($H,this).session.off("ended",jo(Eq,this)),jo($H,this).session.off("control",n),jo($H,this).session.off("remote-error",r),jo($H,this).session.off("metrics.updated",jo(wq,this)),jo($H,this).destroy(),zo($H,this,null)),jo(KH,this).store(e),e&&(zo($H,this,new kz(e,this)),e.state()&&jo(vq,this).call(this,e),e.on("updated",jo(vq,this)),e.once("ended",jo(Eq,this)),e.on("sync",()=>this.emit("session.sync")),e.on("control",n),e.on("remote-error",r),e.on("metrics.updated",jo(wq,this)),t&&jo($H,this).invalidateFrames())}),Bo(this,vq,e=>{jo(KH,this).store(e),e.fullDevice()||jo(rq,this).hide(),"requested"!==e.remoteControl()&&jo(nq,this).hide(),e.isAuthorizing()||jo(tq,this).hide(),this.emit("session.updated",e)}),Bo(this,Eq,e=>{this.emit("session.ended",e),jo(_q,this).call(this,null),zo(hq,this,!1)}),Bo(this,wq,e=>{this.emit("session.metrics.updated",e)}),Bo(this,yq,void 0),Qo(this,"hideSessionControls",()=>{QW.hideSessionControls()}),Bo(this,Lq,dc(()=>{jo(eq,this).hasPendingUpdates()&&jo(YH,this)&&this.registration&&jo(eq,this).updateRegistration().catch(e=>{console.warn("CobrowseIO: updating customData failed",e)})},8e3,{leading:!0,trailing:!0})),Qo(this,"confirmRemoteControl",async()=>jo(nq,this).show(EW.tr("REMOTE_CONTROL_REQUEST_TITLE"),EW.tr("REMOTE_CONTROL_REQUEST_DESCRIPTION"))),Qo(this,"confirmFullDevice",async()=>jo(rq,this).show(EW.tr("FULL_DEVICE_REQUEST_TITLE"),EW.tr("FULL_DEVICE_REQUEST_DESCRIPTION"))),Qo(this,"confirmSession",async()=>jo(tq,this).show(EW.tr("SESSION_REQUEST_TITLE"),EW.tr("SESSION_REQUEST_DESCRIPTION"))),Qo(this,"confirmOpen",(e,t)=>{if(t!==vT)return!0;if(jo(hq,this))return!0;const n=jo(iq,this).show(EW.tr("UNIVERSAL_PROXY_REQUEST_TITLE"),EW.tr("UNIVERSAL_PROXY_REQUEST_DESCRIPTION"));return n.then(e=>{e&&zo(hq,this,!0)}),n}),Qo(this,"showDocument",e=>{"_blank"!==e.target&&0===FH.getTabCount()?FH.enterFullScreen():FH.exitFullScreen();const t=e.type===vT,n=FH.newTab(e.element,"",e.url,e.isLoading,e.close,t);e.isBlocked&&n.showBanner(EW.tr("UNIVERSAL_PROXY_BLOCKED"));const r=()=>{n.setIcon(e.icon),n.setTitle(e.title||e.url),n.setIsLoading(e.isLoading),n.setContent(e.element),e.isBlocked?n.showBanner(EW.tr("UNIVERSAL_PROXY_BLOCKED")):n.hideBanner()};e.on("updated",r),e.once("closed",()=>{e.off("updated",r),n.close()})}),Qo(this,"getSession",async e=>{if(!jo(YH,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.id()===e||this.currentSession.code()===e))return this.currentSession.fetch();const t=new tM(this).updateResource({id:e});return jo(_q,this).call(this,t),await t.fetch(),this.emit("session.loaded",t),t}),Qo(this,"createSession",async()=>{if(!jo(YH,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.isActive()||this.currentSession.isAuthorizing()))throw new Error("Already in a session");(bH["load"]?Date.now()-bH.load:NaN)<8e3&&console.warn("Six digit codes have a short expiry time. You should wait to generate a code until it is required! Do not generate codes on page load.");const e=new tM(this);jo(_q,this).call(this,e);try{await e.update({custom_data:this.customData,device:VD.info})}catch(e){throw jo(_q,this).call(this,null),e}return this.emit("session.loaded",e),e}),Qo(this,"createSessionCode",async()=>(await this.createSession()).code()),Qo(this,"client",async()=>this),Bo(this,Cq,e=>{e&&["license","api","registration","customData","showSessionControls","hideSessionControls","confirmSession","confirmRemoteControl","confirmFullDevice","trustedOrigins","redactedViews","unredactedViews","ignoredViews","disabledViews","enabledViews","capabilities","pdfLinks","universalLinks","confirmOpen","showDocument","highlightElement","virtualAgent"].forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}),Bo(this,Aq,async()=>{jo(pq,this)&&await async function(e,t){HH("Loading virtual agent %s",e);const n=await BH.load(t,e);if("elevenlabs"===(null==n?void 0:n.type())){const{loadElevenLabsWidget:e}=await import("./universal-client.static.CAwmUYlo.mjs");await e(n,t)}}(jo(pq,this),this)}),qH("interface constructed in",document),e&&zo(KH,this,e),this.api="https://api.cobrowse.io",jo(Cq,this).call(this,window&&window.CobrowseIO),jo(eq,this).on("notification",e=>{const t=e["cobrowseio-code"];t&&this.getSession(t).catch(e=>{console.warn("CobrowseIO: session fetch failed:",e)})})}deviceId(){return VD.deviceId()}get currentSession(){return jo($H,this)?jo($H,this).session:jo(KH,this).peek()}set showSessionControls(e){var t;zo(yq,this,e),QW.hideSessionControls(),null!==(t=jo($H,this))&&void 0!==t&&t.session.isActive()&&jo(yq,this).call(this)}get showSessionControls(){return jo(yq,this)?jo(yq,this):QW.showSessionControls}set license(e){if(jo(YH,this)&&this.license!==e)throw new Error("Cannot change license once Cobrowse is started");YP.setHeader("X-CobrowseLicense",e)}get license(){return YP.getHeader("X-CobrowseLicense")}set api(e){if(jo(YH,this)&&YP.api!==e)throw new Error("Cannot change API once Cobrowse is started");YP.api=e}get api(){return YP.api}set registration(e){const t=!!e;t!==jo(JH,this)&&xo(Iq,this,Tq).call(this,t)}get registration(){return!!jo(JH,this)}set redactedViews(e){if(jo(YH,this))throw new Error("Cannot set redacted views after Cobrowse is started");zo(oq,this,e)}get redactedViews(){return jo(oq,this)}set unredactedViews(e){if(jo(YH,this))throw new Error("Cannot set unredacted views after Cobrowse is started");zo(sq,this,e)}get unredactedViews(){return jo(sq,this)}set ignoredViews(e){if(jo(YH,this))throw new Error("Cannot set ignored views after Cobrowse is started");zo(aq,this,e)}get ignoredViews(){return jo(aq,this)}set disabledViews(e){if(jo(YH,this))throw new Error("Cannot set disabled views after Cobrowse is started");zo(cq,this,e)}get disabledViews(){return jo(cq,this)}set enabledViews(e){if(jo(YH,this))throw new Error("Cannot set enabled views after Cobrowse is started");zo(lq,this,e)}get enabledViews(){return jo(lq,this)}set capabilities(e){if(jo(YH,this))throw new Error("Cannot set capabilities after Cobrowse is started");if(!Array.isArray(e))throw new Error("Capabilities should be an array");zo(ZH,this,e.filter(e=>!!VD.info.capabilities.includes(e)||(console.warn(`Capability '${e}' not supported. Ignoring...`),!1)))}get capabilities(){return jo(ZH,this)}set customData(e){if("object"!=typeof e)throw new Error("Custom data must be an object");if(zo(XH,this,Yo(Yo({},jo(XH,this)),e)),jo(YH,this)&&setTimeout(jo(Lq,this),0),this.currentSession&&this.currentSession.isActive()){const t=this.currentSession.resource.custom_data;if(!Object.keys(e).find(n=>t[n]!==e[n]))return void qH("no changes to session custom data");this.currentSession.update({custom_data:e}).catch(()=>{console.warn("CobrowseIO: failed to update custom data on active session")})}}get customData(){return Yo(Yo({},jo(eq,this).customData),jo(XH,this))}set trustedOrigins(e){const t=[];e.forEach(e=>{try{const n=new URL(e).origin,r=decodeURIComponent(n);return t.push(r)}catch(e){}if(Boolean(rA(e)))return t.push(e);console.warn("CobrowseIO: Invalid URL in trustedOrigins:",e)}),BU.trustedOrigins=t}get trustedOrigins(){return[...BU.trustedOrigins]}set pdfLinks(e){if(jo(YH,this))throw new Error("Cannot set pdfLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in pdfLinks:",e),null)).filter(e=>e);zo(uq,this,t)}get pdfLinks(){return jo(uq,this)}set universalLinks(e){if(jo(YH,this))throw new Error("Cannot set universalLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in universalLinks:",e),null)).filter(e=>e);zo(dq,this,t)}get universalLinks(){return jo(dq,this)}set virtualAgent(e){if(jo(YH,this))throw new Error("Cannot set virtualAgent after Cobrowse is started");zo(pq,this,e)}get virtualAgent(){return jo(pq,this)}static get version(){return VD.info.sdk_version}get version(){return Sq.version}}function bq(){qH("starting registration"),jo(QH,this).on("active",jo(eq,this).runRegistrationLoop),jo(QH,this).on("inactive",jo(eq,this).pauseRegistrationLoop),jo(QH,this).start()}async function Nq(){qH("stopping registration"),jo(QH,this).stop(),jo(QH,this).off("active",jo(eq,this).runRegistrationLoop),jo(QH,this).off("inactive",jo(eq,this).pauseRegistrationLoop);try{await jo(eq,this).destroy()}catch(e){console.log("Failed to deregister device",e)}}function Tq(e){zo(JH,this,e),jo(YH,this)&&(e?xo(Iq,this,bq).call(this):xo(Iq,this,Nq).call(this))}YP.setHeader("Content-Type","application/json"),YP.setHeader("X-CobrowsePlatform","web"),YP.setHeader("X-CobrowseSDKVersion",Sq.version),YP.setHeader("X-CobrowseDevice",VD.deviceId()),YP.setHeader("X-CobrowseAPIVersion","1.63.3");const kq=new Sq;(()=>{const e=new URLSearchParams(window.location.search),t=e.get("access_token"),n=e.get("proxy_path"),r=e.get("parent_origin"),i=e.get("sdk_version"),o=e.get("frame_name"),s=new URL(n,window.location.origin).toString(),a={parent_origin:r,proxy_path:n,sdk_version:i,frame_name:o},c=new Zs(s,ea,t,void 0,a),l=c.unproxify(window.location.href),{proxify:u,unproxify:d}=new Zs(s,ea,t,l,a,()=>new URL(c.unproxify(window.location.href)).origin),h=e=>(e=>e[K_]||e.name)(e)===o,f=e=>h(e)||e===e.parent?e:f(e.parent),p={proxify:u,unproxify:d,parentOrigin:r,proxyPath:n,sdkVersion:i,frameName:o,proxyToken:t,isTopWindow:h,findTopWindow:f};(e=>{Gc.forEach(t=>{try{t(e)}catch(e){console.log("Error while applying proxy",e)}})})(p),C_(p),(e=>{tv.forEach(t=>{try{t(e)}catch(e){console.log("Error while applying patch",e)}})})(p),r&&(Nx.proxify=u,Nx.unproxify=d,Nx.inUniversalProxy=!0,kq.trustedOrigins=[r],kq.registration=!1,kq.start())})();export{Yv as $,qo as A,Bo as B,zo as C,dc as D,jo as E,xo as F,jl as G,EE as H,hf as I,Yr as J,yt as K,js as L,$h as M,Zi as N,zs as O,Hs as P,qs as Q,Ze as R,JA as S,qk as T,qh as U,Hh as V,ef as W,le as X,yc as Y,tf as Z,Yo as _,$L as a,_e as a0,zn as a1,$i as a2,Qo as a3,Ho as a4,Uo as a5,Xo as a6,ro as a7,Wl as a8,Vl as a9,ot as aa,no as ab,he as ac,me as ad,Le as ae,Bn as af,Lt as ag,gn as ah,Is as ai,kd as aj,Pd as ak,Ju as al,ec as am,Yu as an,It as b,dt as c,v as d,qt as e,Se as f,it as g,st as h,Xr as i,Ee as j,vs as k,Ji as l,ge as m,g as n,lr as o,ao as p,lt as q,o as r,co as s,Qu as t,Io as u,jn as v,Ae as w,m as x,ts as y,Jo as z};
|
|
2
2
|
;window.__cbio_sdk_styles = ".HighlightOverlay-module__overlay___CGVxb{animation:HighlightOverlay-module__highlightOverlayFadeIn___ywNcQ .4s cubic-bezier(.25,.46,.45,.94) forwards,HighlightOverlay-module__highlightOverlayPulse___ON7dv 2.5s cubic-bezier(.25,.46,.45,.94) .4s infinite;box-shadow:var(--cbio-color-highlight-backdrop) 0 0 0 5000px;opacity:0;pointer-events:none;position:absolute;transform-origin:center;transition:all .3s ease-in-out;z-index:2147483646}.HighlightOverlay-module__disableAnimations___EEhxH{transition:none!important}@media (prefers-reduced-motion:reduce){.HighlightOverlay-module__overlay___CGVxb{animation:none;opacity:1;outline:3px solid #8481f8cc;transition:none}}@keyframes HighlightOverlay-module__highlightOverlayFadeIn___ywNcQ{0%{opacity:0}to{opacity:1}}@keyframes HighlightOverlay-module__highlightOverlayPulse___ON7dv{0%,to{box-shadow:0 0 0 3px #8481f8cc,0 0 0 5000px var(--cbio-color-highlight-backdrop);transform:scaleX(1) scaleY(1)}50%{box-shadow:0 0 0 3px #8481f8,0 0 0 5000px var(--cbio-color-highlight-backdrop);transform:scaleX(var(--cbio-padded-x)) scaleY(var(--cbio-padded-y))}}.Tooltip-module__tooltip___kLn1a{background-color:var(--cbio-color-background-primary);border:1px solid var(--cbio-color-border);border-radius:var(--cbio-radius-md);box-sizing:border-box;left:0;max-width:400px;opacity:0;position:absolute;top:0;transition:opacity .4s ease-out,top .4s ease-out;width:max-content;z-index:2147483646}.Tooltip-module__tooltipVisible___tvm2-{opacity:1}@media (prefers-reduced-motion:reduce){.Tooltip-module__tooltip___kLn1a{transition:none}}.Tooltip-module__tooltipTitle___h97ry{background-color:var(--cbio-color-background-primary);border-radius:var(--cbio-radius-md);color:var(--cbio-color-text-secondary);font-family:var(--cbio-font-family-base);font-size:var(--cbio-font-size-sm);line-height:var(--cbio-line-height-sm);padding:12px;position:relative;z-index:1}.Tooltip-module__tooltipArrow___7xBT0{background-color:var(--cbio-color-background-primary);border-bottom:1px solid var(--cbio-color-border);border-radius:2px;border-right:1px solid var(--cbio-color-border);height:12px;position:absolute;transform:rotate(45deg);width:12px}:host,:root{--cbio-font-family-base:Helvetica Neue,Helvetica,Arial,sans-serif;--cbio-font-size-sm:14px;--cbio-line-height-sm:20px;--cbio-font-size-md:18px;--cbio-line-height-md:130%;--cbio-font-size-lg:20px;--cbio-line-height-lg:24px;--cbio-radius-md:8px;--cbio-radius-lg:24px;--cbio-radius-pill:9999px;--cbio-color-text-primary:#26252c;--cbio-color-text-secondary:#6f6d82;--cbio-color-text-muted:#92909d;--cbio-color-text-strong:#0e0c26;--cbio-color-text-light:#f5f6fb;--cbio-color-text-white:#fff;--cbio-color-background-primary:#fff;--cbio-color-background-secondary:#36008e;--cbio-color-background-light:#eeeff1;--cbio-color-modal-backdrop:#00000059;--cbio-color-highlight-backdrop:#29284199;--cbio-color-accent-primary:#6556f0;--cbio-color-accent-primary-hover:#4126a7;--cbio-color-danger:#dc2626;--cbio-color-danger-hover:#b91c1c;--cbio-color-danger-hover-soft:#fca5a5;--cbio-color-border:#bcc1d4;--cbio-shadow-buttons:0px 4px 12px #00000059}.cbio-sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.Button-module__base___gx4CL{appearance:none;border:none;border-radius:var(--cbio-radius-md);cursor:pointer;font-family:var(--cbio-font-family-base);font-size:var(--cbio-font-size-sm);line-height:var(--cbio-line-height-sm);padding:10px 16px;user-select:none;white-space:nowrap}.Button-module__base___gx4CL:disabled{cursor:not-allowed;opacity:.5;pointer-events:none}.Button-module__primary___TUjdp{background-color:var(--cbio-color-accent-primary);color:var(--cbio-color-text-light);font-weight:700}.Button-module__primary___TUjdp:hover{background-color:var(--cbio-color-accent-primary-hover)}.Button-module__secondary___CJVQq{background-color:var(--cbio-color-background-light);color:var(--cbio-color-text-strong)}.Button-module__secondary___CJVQq:hover{background-color:initial}.IconButton-module__base___Cg18y{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;margin:0;padding:0}.Modal-module__container___ZH7Ev{align-items:center;background:var(--cbio-color-modal-backdrop);bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:2147483647}.Modal-module__content___I-t2M{border-radius:var(--cbio-radius-md);box-shadow:0 4px 4px #00000040;box-sizing:border-box;color:var(--cbio-color-text-secondary);margin:24px;padding:24px;position:fixed;z-index:2147483647}.Modal-module__content___I-t2M,.Select-module__base___M3sny{background-color:var(--cbio-color-background-primary);font-family:var(--cbio-font-family-base)}.Select-module__base___M3sny{text-wrap:nowrap;appearance:none;background-repeat:no-repeat;background-size:16px;border:none;border-radius:var(--cbio-radius-md);color:#393842;cursor:pointer;font-size:var(--cbio-font-size-sm);overflow:hidden;text-overflow:ellipsis;width:100%}.Select-module__base___M3sny:disabled{cursor:not-allowed}.Select-module__base___M3sny:not(:disabled):hover{box-shadow:inset 0 0 0 1px #c7cbfe}.Select-module__noIcon___WDzeV{background-position:right 4px center;padding:8px 16px 8px 8px}.SessionStateOverlay-module__sessionStateOverlay___vT0jC{bottom:20px;display:flex;gap:12px;left:50%;position:fixed;transform:translateX(-50%);z-index:2147483647}.SessionStateOverlay-module__endSessionButton___pO2E2{align-items:center;appearance:none;background:var(--cbio-color-danger);border:none;border-radius:var(--cbio-radius-md);box-shadow:var(--cbio-shadow-buttons);color:var(--cbio-color-text-light);cursor:pointer;display:flex;font-family:var(--cbio-font-family-base);font-size:var(--cbio-font-size-sm);font-weight:700;gap:8px;line-height:var(--cbio-line-height-sm);padding:10px 16px;user-select:none;white-space:nowrap}.SessionStateOverlay-module__endSessionButton___pO2E2:hover{background:var(--cbio-color-danger-hover)}.SessionStateOverlay-module__endSessionIcon___rHBj2{height:24px;width:24px}.ConsentDialog-module__content___9Rp4u{max-width:400px}.ConsentDialog-module__title___QVdGh{color:var(--cbio-color-text-primary);font-size:var(--cbio-font-size-lg);font-weight:700;line-height:var(--cbio-line-height-lg);margin-bottom:6px;margin-top:0}.ConsentDialog-module__body___azYOk{color:var(--cbio-color-text-muted);display:flex;flex-direction:column;font-size:var(--cbio-font-size-md);line-height:var(--cbio-line-height-md)}.ConsentDialog-module__confirmation___9d6Am{color:var(--cbio-color-text-primary);margin:0}.ConsentDialog-module__description___zucXq{margin:0}.ConsentDialog-module__buttons___f9Tr6{display:flex;gap:8px;justify-content:end;margin-top:32px}.CallDialog-module__content___sk6PW{display:flex;flex-direction:column;max-width:500px}.CallDialog-module__header___kOjGP{display:flex;flex-direction:column;gap:35px}.CallDialog-module__media___GUTLA{display:flex;flex-direction:column;gap:12px}.CallDialog-module__body___AaCUz{color:var(--cbio-color-text-muted);display:flex;flex-direction:column;font-size:var(--cbio-font-size-md);line-height:var(--cbio-line-height-md);margin-top:8px}.CallDialog-module__title___WUNJY{color:var(--cbio-color-text-primary);font-size:var(--cbio-font-size-lg);font-weight:700;line-height:var(--cbio-line-height-lg);margin:0}.CallDialog-module__description___a-7qp{margin:0}.CallDialog-module__buttonContainer___NtvjF{display:flex;gap:8px;justify-content:flex-end;margin-top:35px}.MediaPreview-module__previewContainer___jg4yL{position:relative}.MediaPreview-module__videoContainer___-OEXn{aspect-ratio:16/9;border-radius:var(--cbio-radius-md);height:100%;overflow:hidden;position:relative;width:100%}.MediaPreview-module__video___0LBZO{background-color:#000;height:100%;transform:scaleX(-1);width:100%}.MediaPreview-module__videoOverlay___e7YkR{align-items:center;bottom:0;color:var(--cbio-color-text-white);display:flex;font-size:var(--cbio-font-size-md);justify-content:center;left:0;position:absolute;right:0;top:0}.MediaPreview-module__videoOverlaySolid___uy0ao{background-color:#000}.MediaPreview-module__videoOverlayTransparent___qVogL{background-color:#0006}.MediaPreview-module__videoOverlayText___L-nXB{padding:0 12px;text-align:center}.MediaPreview-module__deviceContainer___NlbuY{display:flex;flex-direction:row;gap:12px}@media (max-width:768px){.MediaPreview-module__deviceContainer___NlbuY{flex-direction:column}}.MediaPreview-module__voiceVideoControls___7f--Y{background-color:var(--cbio-color-background-primary);border-radius:var(--cbio-radius-lg);bottom:12px;display:flex;left:50%;position:absolute;transform:translateX(-50%)}.MediaPreview-module__voiceVideoControlsToggle___k5XoS{border-radius:var(--cbio-radius-pill);height:36px;width:36px}.MediaPreview-module__voiceVideoControlsToggle___k5XoS:disabled{cursor:not-allowed}.MediaPreview-module__voiceVideoControlsToggleOff___2nclS{color:var(--cbio-color-danger)}.MediaPreview-module__voiceVideoControlsToggleOff___2nclS:not(:disabled):hover{background-color:var(--cbio-color-background-light)}.MediaPreview-module__voiceVideoControlsToggleOn___whg1G{color:var(--cbio-color-text-strong)}.MediaPreview-module__voiceVideoControlsToggleOn___whg1G:not(:disabled):hover{background-color:var(--cbio-color-background-light)}.MediaPreview-module__voiceVideoControlsIcon___JYkty{height:24px;width:24px}.CallParticipants-module__container___Ve9rt{display:grid;gap:12px;grid-auto-rows:min-content;padding:12px;width:300px}.CallParticipants-module__callControlsContainer___7B-Gr{padding-bottom:12px;width:300px}.CallParticipants-module__participantContainer___pxqEA{border-radius:var(--cbio-radius-md);box-shadow:0 0 8px #00000040;overflow:hidden;position:relative}.CallParticipants-module__participantSpeaking___Iv0HT{outline:2px solid var(--cbio-color-accent-primary);outline-offset:2px}.CallParticipants-module__videoContainer___tdKF2{aspect-ratio:16/9;height:100%;position:relative;width:100%}.CallParticipants-module__video___HSfYq{background-color:var(--cbio-color-background-secondary);height:100%;transform:scaleX(-1);width:100%}.CallParticipants-module__videoOverlay___fhTe0{align-items:center;background-color:var(--cbio-color-background-secondary);bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.CallParticipants-module__statusContainer___bcsse{align-items:center;bottom:0;color:var(--cbio-color-text-white);display:flex;gap:8px;justify-content:center;padding:8px;position:absolute;user-select:none}.CallParticipants-module__statusTitle___6iPYt{font-family:var(--cbio-font-family-base);font-size:var(--cbio-font-size-sm);text-shadow:0 0 4px #000}.CallParticipants-module__statusIcon___dNlQZ{filter:drop-shadow(0 0 4px black);height:20px;width:20px}.CallParticipants-module__videoOverlayIcon___foQCB{color:var(--cbio-color-danger);height:24px;width:24px}.CallControls-module__container___usQnp{border-radius:var(--cbio-radius-md);box-shadow:var(--cbio-shadow-buttons);color:var(--cbio-color-text-light);display:flex;overflow:hidden}.CallControls-module__toggleContainer___RVxBh{align-items:center;background-color:#292841;display:flex;gap:10px;padding:10px 12px}.CallControls-module__toggle___1B90-{height:24px;width:24px}.CallControls-module__toggleOff___v-UzL{color:#ef4444}.CallControls-module__toggleOff___v-UzL:hover{color:var(--cbio-color-danger-hover-soft)}.CallControls-module__toggleOn___WtJ0M{color:var(--cbio-color-text-light)}.CallControls-module__toggleOn___WtJ0M:hover{color:var(--cbio-color-border)}.CallControls-module__icon___LBB4v{height:24px;width:24px}.CallControls-module__end___1Gl91{background-color:var(--cbio-color-danger)!important;height:100%;width:44px}.CallControls-module__end___1Gl91:hover{background-color:var(--cbio-color-danger-hover)!important}";
|