"use strict";(()=>{var Ga=Object.create;var en=Object.defineProperty;var Qa=Object.getOwnPropertyDescriptor;var $a=Object.getOwnPropertyNames;var Ka=Object.getPrototypeOf,za=Object.prototype.hasOwnProperty;var d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ya=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of $a(t))!za.call(e,i)&&i!==r&&en(e,i,{get:()=>t[i],enumerable:!(n=Qa(t,i))||n.enumerable});return e};var $=(e,t,r)=>(r=e!=null?Ga(Ka(e)):{},Ya(t||!e||!e.__esModule?en(r,"default",{value:e,enumerable:!0}):r,e));var L=d((Af,tn)=>{var Ja=tn.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Ja)});var M=d((Ef,rn)=>{var Xa=rn.exports={version:"2.6.12"};typeof __e=="number"&&(__e=Xa)});var K=d((Tf,nn)=>{nn.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}});var U=d((If,sn)=>{var Za=K();sn.exports=function(e){if(!Za(e))throw TypeError(e+" is not an object!");return e}});var Be=d((xf,on)=>{on.exports=function(e){try{return!!e()}catch{return!0}}});var z=d((bf,an)=>{an.exports=!Be()(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})});var We=d((_f,un)=>{var cn=K(),Lt=L().document,ec=cn(Lt)&&cn(Lt.createElement);un.exports=function(e){return ec?Lt.createElement(e):{}}});var dn=d((Sf,ln)=>{ln.exports=!z()&&!Be()(function(){return Object.defineProperty(We()("div"),"a",{get:function(){return 7}}).a!=7})});var pn=d((Lf,fn)=>{var Ge=K();fn.exports=function(e,t){if(!Ge(e))return e;var r,n;if(t&&typeof(r=e.toString)=="function"&&!Ge(n=r.call(e))||typeof(r=e.valueOf)=="function"&&!Ge(n=r.call(e))||!t&&typeof(r=e.toString)=="function"&&!Ge(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}});var ge=d(yn=>{var mn=U(),tc=dn(),rc=pn(),nc=Object.defineProperty;yn.f=z()?Object.defineProperty:function(t,r,n){if(mn(t),r=rc(r,!0),mn(n),tc)try{return nc(t,r,n)}catch{}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[r]=n.value),t}});var wt=d((Rf,hn)=>{hn.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Y=d((Cf,vn)=>{var ic=ge(),sc=wt();vn.exports=z()?function(e,t,r){return ic.f(e,t,sc(1,r))}:function(e,t,r){return e[t]=r,e}});var Ae=d((Of,gn)=>{var oc={}.hasOwnProperty;gn.exports=function(e,t){return oc.call(e,t)}});var Qe=d((Mf,An)=>{var ac=0,cc=Math.random();An.exports=function(e){return"Symbol(".concat(e===void 0?"":e,")_",(++ac+cc).toString(36))}});var $e=d((Df,En)=>{En.exports=!1});var Ke=d((Pf,bn)=>{var uc=M(),Tn=L(),In="__core-js_shared__",xn=Tn[In]||(Tn[In]={});(bn.exports=function(e,t){return xn[e]||(xn[e]=t!==void 0?t:{})})("versions",[]).push({version:uc.version,mode:$e()?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})});var Sn=d((qf,_n)=>{_n.exports=Ke()("native-function-to-string",Function.toString)});var ne=d((kf,Rn)=>{var lc=L(),ze=Y(),Ln=Ae(),Rt=Qe()("src"),Ct=Sn(),wn="toString",dc=(""+Ct).split(wn);M().inspectSource=function(e){return Ct.call(e)};(Rn.exports=function(e,t,r,n){var i=typeof r=="function";i&&(Ln(r,"name")||ze(r,"name",t)),e[t]!==r&&(i&&(Ln(r,Rt)||ze(r,Rt,e[t]?""+e[t]:dc.join(String(t)))),e===lc?e[t]=r:n?e[t]?e[t]=r:ze(e,t,r):(delete e[t],ze(e,t,r)))})(Function.prototype,wn,function(){return typeof this=="function"&&this[Rt]||Ct.call(this)})});var Ee=d((jf,Cn)=>{Cn.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}});var Te=d((Hf,On)=>{var fc=Ee();On.exports=function(e,t,r){if(fc(e),t===void 0)return e;switch(r){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,s){return e.call(t,n,i,s)}}return function(){return e.apply(t,arguments)}}});var V=d((Ff,Dn)=>{var ie=L(),Ye=M(),pc=Y(),mc=ne(),Mn=Te(),Ot="prototype",_=function(e,t,r){var n=e&_.F,i=e&_.G,s=e&_.S,c=e&_.P,a=e&_.B,u=i?ie:s?ie[t]||(ie[t]={}):(ie[t]||{})[Ot],l=i?Ye:Ye[t]||(Ye[t]={}),p=l[Ot]||(l[Ot]={}),f,m,g,j;i&&(r=t);for(f in r)m=!n&&u&&u[f]!==void 0,g=(m?u:r)[f],j=a&&m?Mn(g,ie):c&&typeof g=="function"?Mn(Function.call,g):g,u&&mc(u,f,g,e&_.U),l[f]!=g&&pc(l,f,j),c&&p[f]!=g&&(p[f]=g)};ie.core=Ye;_.F=1;_.G=2;_.S=4;_.P=8;_.B=16;_.W=32;_.U=64;_.R=128;Dn.exports=_});var se=d((Nf,Pn)=>{var yc={}.toString;Pn.exports=function(e){return yc.call(e).slice(8,-1)}});var Mt=d((Uf,qn)=>{var hc=se();qn.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return hc(e)=="String"?e.split(""):Object(e)}});var Ie=d((Vf,kn)=>{kn.exports=function(e){if(e==null)throw TypeError("Can't call method on  "+e);return e}});var Je=d((Bf,jn)=>{var vc=Mt(),gc=Ie();jn.exports=function(e){return vc(gc(e))}});var Xe=d((Wf,Hn)=>{var Ac=Math.ceil,Ec=Math.floor;Hn.exports=function(e){return isNaN(e=+e)?0:(e>0?Ec:Ac)(e)}});var Dt=d((Gf,Fn)=>{var Tc=Xe(),Ic=Math.min;Fn.exports=function(e){return e>0?Ic(Tc(e),9007199254740991):0}});var Un=d((Qf,Nn)=>{var xc=Xe(),bc=Math.max,_c=Math.min;Nn.exports=function(e,t){return e=xc(e),e<0?bc(e+t,0):_c(e,t)}});var Pt=d(($f,Vn)=>{var Sc=Je(),Lc=Dt(),wc=Un();Vn.exports=function(e){return function(t,r,n){var i=Sc(t),s=Lc(i.length),c=wc(n,s),a;if(e&&r!=r){for(;s>c;)if(a=i[c++],a!=a)return!0}else for(;s>c;c++)if((e||c in i)&&i[c]===r)return e||c||0;return!e&&-1}}});var x=d((Kf,Wn)=>{var qt=Ke()("wks"),Rc=Qe(),kt=L().Symbol,Bn=typeof kt=="function",Cc=Wn.exports=function(e){return qt[e]||(qt[e]=Bn&&kt[e]||(Bn?kt:Rc)("Symbol."+e))};Cc.store=qt});var Ft=d((zf,Gn)=>{var jt=x()("unscopables"),Ht=Array.prototype;Ht[jt]==null&&Y()(Ht,jt,{});Gn.exports=function(e){Ht[jt][e]=!0}});var $n=d(()=>{"use strict";var Qn=V(),Oc=Pt()(!0);Qn(Qn.P,"Array",{includes:function(t){return Oc(this,t,arguments.length>1?arguments[1]:void 0)}});Ft()("includes")});var zn=d((Xf,Kn)=>{$n();Kn.exports=M().Array.includes});var Ze=d((Zf,Jn)=>{var Yn=Ke()("keys"),Mc=Qe();Jn.exports=function(e){return Yn[e]||(Yn[e]=Mc(e))}});var ei=d((ep,Zn)=>{var Xn=Ae(),Dc=Je(),Pc=Pt()(!1),qc=Ze()("IE_PROTO");Zn.exports=function(e,t){var r=Dc(e),n=0,i=[],s;for(s in r)s!=qc&&Xn(r,s)&&i.push(s);for(;t.length>n;)Xn(r,s=t[n++])&&(~Pc(i,s)||i.push(s));return i}});var Nt=d((tp,ti)=>{ti.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")});var et=d((rp,ri)=>{var kc=ei(),jc=Nt();ri.exports=Object.keys||function(t){return kc(t,jc)}});var ii=d(ni=>{ni.f=Object.getOwnPropertySymbols});var oi=d(si=>{si.f={}.propertyIsEnumerable});var Ut=d((sp,ai)=>{var Hc=Ie();ai.exports=function(e){return Object(Hc(e))}});var li=d((op,ui)=>{"use strict";var Fc=z(),ci=et(),Nc=ii(),Uc=oi(),Vc=Ut(),Bc=Mt(),tt=Object.assign;ui.exports=!tt||Be()(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),tt({},e)[r]!=7||Object.keys(tt({},t)).join("")!=n})?function(t,r){for(var n=Vc(t),i=arguments.length,s=1,c=Nc.f,a=Uc.f;i>s;)for(var u=Bc(arguments[s++]),l=c?ci(u).concat(c(u)):ci(u),p=l.length,f=0,m;p>f;)m=l[f++],(!Fc||a.call(u,m))&&(n[m]=u[m]);return n}:tt});var di=d(()=>{var Vt=V();Vt(Vt.S+Vt.F,"Object",{assign:li()})});var pi=d((up,fi)=>{di();fi.exports=M().Object.assign});var rt=d((lp,mi)=>{var Bt=se(),Wc=x()("toStringTag"),Gc=Bt(function(){return arguments}())=="Arguments",Qc=function(e,t){try{return e[t]}catch{}};mi.exports=function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=Qc(t=Object(e),Wc))=="string"?r:Gc?Bt(t):(n=Bt(t))=="Object"&&typeof t.callee=="function"?"Arguments":n}});var hi=d(()=>{"use strict";var $c=rt(),yi={};yi[x()("toStringTag")]="z";yi+""!="[object z]"&&ne()(Object.prototype,"toString",function(){return"[object "+$c(this)+"]"},!0)});var gi=d((pp,vi)=>{var Kc=Xe(),zc=Ie();vi.exports=function(e){return function(t,r){var n=String(zc(t)),i=Kc(r),s=n.length,c,a;return i<0||i>=s?e?"":void 0:(c=n.charCodeAt(i),c<55296||c>56319||i+1===s||(a=n.charCodeAt(i+1))<56320||a>57343?e?n.charAt(i):c:e?n.slice(i,i+2):(c-55296<<10)+(a-56320)+65536)}}});var oe=d((mp,Ai)=>{Ai.exports={}});var Ti=d((yp,Ei)=>{var Yc=ge(),Jc=U(),Xc=et();Ei.exports=z()?Object.defineProperties:function(t,r){Jc(t);for(var n=Xc(r),i=n.length,s=0,c;i>s;)Yc.f(t,c=n[s++],r[c]);return t}});var Wt=d((hp,xi)=>{var Ii=L().document;xi.exports=Ii&&Ii.documentElement});var Si=d((vp,_i)=>{var Zc=U(),eu=Ti(),bi=Nt(),tu=Ze()("IE_PROTO"),Gt=function(){},Qt="prototype",nt=function(){var e=We()("iframe"),t=bi.length,r="<",n=">",i;for(e.style.display="none",Wt().appendChild(e),e.src="javascript:",i=e.contentWindow.document,i.open(),i.write(r+"script"+n+"document.F=Object"+r+"/script"+n),i.close(),nt=i.F;t--;)delete nt[Qt][bi[t]];return nt()};_i.exports=Object.create||function(t,r){var n;return t!==null?(Gt[Qt]=Zc(t),n=new Gt,Gt[Qt]=null,n[tu]=t):n=nt(),r===void 0?n:eu(n,r)}});var it=d((gp,wi)=>{var ru=ge().f,nu=Ae(),Li=x()("toStringTag");wi.exports=function(e,t,r){e&&!nu(e=r?e:e.prototype,Li)&&ru(e,Li,{configurable:!0,value:t})}});var Oi=d((Ap,Ci)=>{"use strict";var iu=Si(),su=wt(),ou=it(),Ri={};Y()(Ri,x()("iterator"),function(){return this});Ci.exports=function(e,t,r){e.prototype=iu(Ri,{next:su(1,r)}),ou(e,t+" Iterator")}});var Pi=d((Ep,Di)=>{var au=Ae(),cu=Ut(),Mi=Ze()("IE_PROTO"),uu=Object.prototype;Di.exports=Object.getPrototypeOf||function(e){return e=cu(e),au(e,Mi)?e[Mi]:typeof e.constructor=="function"&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?uu:null}});var zt=d((Tp,Ni)=>{"use strict";var qi=$e(),$t=V(),lu=ne(),ki=Y(),ji=oe(),du=Oi(),fu=it(),pu=Pi(),xe=x()("iterator"),Kt=!([].keys&&"next"in[].keys()),mu="@@iterator",Hi="keys",st="values",Fi=function(){return this};Ni.exports=function(e,t,r,n,i,s,c){du(r,t,n);var a=function(Q){if(!Kt&&Q in f)return f[Q];switch(Q){case Hi:return function(){return new r(this,Q)};case st:return function(){return new r(this,Q)}}return function(){return new r(this,Q)}},u=t+" Iterator",l=i==st,p=!1,f=e.prototype,m=f[xe]||f[mu]||i&&f[i],g=m||a(i),j=i?l?a("entries"):g:void 0,R=t=="Array"&&f.entries||m,A,Ve,E;if(R&&(E=pu(R.call(new e)),E!==Object.prototype&&E.next&&(fu(E,u,!0),!qi&&typeof E[xe]!="function"&&ki(E,xe,Fi))),l&&m&&m.name!==st&&(p=!0,g=function(){return m.call(this)}),(!qi||c)&&(Kt||p||!f[xe])&&ki(f,xe,g),ji[t]=g,ji[u]=Fi,i)if(A={values:l?g:a(st),keys:s?g:a(Hi),entries:j},c)for(Ve in A)Ve in f||lu(f,Ve,A[Ve]);else $t($t.P+$t.F*(Kt||p),t,A);return A}});var Ui=d(()=>{"use strict";var yu=gi()(!0);zt()(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i,r;return t>=e.length?{value:void 0,done:!0}:(r=yu(e,t),this._i+=r.length,{value:r,done:!1})})});var Bi=d((bp,Vi)=>{Vi.exports=function(e,t){return{value:t,done:!!e}}});var Qi=d((_p,Gi)=>{"use strict";var Yt=Ft(),ot=Bi(),Wi=oe(),hu=Je();Gi.exports=zt()(Array,"Array",function(e,t){this._t=hu(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,ot(1)):t=="keys"?ot(0,r):t=="values"?ot(0,e[r]):ot(0,[r,e[r]])},"values");Wi.Arguments=Wi.Array;Yt("keys");Yt("values");Yt("entries")});var rs=d(()=>{var $i=Qi(),vu=et(),gu=ne(),Au=L(),Ki=Y(),es=oe(),ts=x(),zi=ts("iterator"),Yi=ts("toStringTag"),Ji=es.Array,Xi={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1};for(Jt=vu(Xi),at=0;at<Jt.length;at++)if(be=Jt[at],Zi=Xi[be],Xt=Au[be],B=Xt&&Xt.prototype,B&&(B[zi]||Ki(B,zi,Ji),B[Yi]||Ki(B,Yi,be),es[be]=Ji,Zi))for(_e in $i)B[_e]||gu(B,_e,$i[_e],!0);var be,Zi,Xt,B,_e,Jt,at});var is=d((wp,ns)=>{ns.exports=function(e,t,r,n){if(!(e instanceof t)||n!==void 0&&n in e)throw TypeError(r+": incorrect invocation!");return e}});var as=d((Rp,os)=>{var ss=U();os.exports=function(e,t,r,n){try{return n?t(ss(r)[0],r[1]):t(r)}catch(s){var i=e.return;throw i!==void 0&&ss(i.call(e)),s}}});var us=d((Cp,cs)=>{var Eu=oe(),Tu=x()("iterator"),Iu=Array.prototype;cs.exports=function(e){return e!==void 0&&(Eu.Array===e||Iu[Tu]===e)}});var ds=d((Op,ls)=>{var xu=rt(),bu=x()("iterator"),_u=oe();ls.exports=M().getIteratorMethod=function(e){if(e!=null)return e[bu]||e["@@iterator"]||_u[xu(e)]}});var ps=d((ct,fs)=>{var Su=Te(),Lu=as(),wu=us(),Ru=U(),Cu=Dt(),Ou=ds(),Zt={},er={},ct=fs.exports=function(e,t,r,n,i){var s=i?function(){return e}:Ou(e),c=Su(r,n,t?2:1),a=0,u,l,p,f;if(typeof s!="function")throw TypeError(e+" is not iterable!");if(wu(s)){for(u=Cu(e.length);u>a;a++)if(f=t?c(Ru(l=e[a])[0],l[1]):c(e[a]),f===Zt||f===er)return f}else for(p=s.call(e);!(l=p.next()).done;)if(f=Lu(p,c,l.value,t),f===Zt||f===er)return f};ct.BREAK=Zt;ct.RETURN=er});var tr=d((Mp,ys)=>{var ms=U(),Mu=Ee(),Du=x()("species");ys.exports=function(e,t){var r=ms(e).constructor,n;return r===void 0||(n=ms(r)[Du])==null?t:Mu(n)}});var vs=d((Dp,hs)=>{hs.exports=function(e,t,r){var n=r===void 0;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}});var cr=d((Pp,bs)=>{var ut=Te(),Pu=vs(),gs=Wt(),As=We(),H=L(),Es=H.process,or=H.setImmediate,ar=H.clearImmediate,Ts=H.MessageChannel,rr=H.Dispatch,nr=0,Le={},Is="onreadystatechange",J,ir,sr,Se=function(){var e=+this;if(Le.hasOwnProperty(e)){var t=Le[e];delete Le[e],t()}},xs=function(e){Se.call(e.data)};(!or||!ar)&&(or=function(t){for(var r=[],n=1;arguments.length>n;)r.push(arguments[n++]);return Le[++nr]=function(){Pu(typeof t=="function"?t:Function(t),r)},J(nr),nr},ar=function(t){delete Le[t]},se()(Es)=="process"?J=function(e){Es.nextTick(ut(Se,e,1))}:rr&&rr.now?J=function(e){rr.now(ut(Se,e,1))}:Ts?(ir=new Ts,sr=ir.port2,ir.port1.onmessage=xs,J=ut(sr.postMessage,sr,1)):H.addEventListener&&typeof postMessage=="function"&&!H.importScripts?(J=function(e){H.postMessage(e+"","*")},H.addEventListener("message",xs,!1)):Is in As("script")?J=function(e){gs.appendChild(As("script"))[Is]=function(){gs.removeChild(this),Se.call(e)}}:J=function(e){setTimeout(ut(Se,e,1),0)});bs.exports={set:or,clear:ar}});var ws=d((qp,Ls)=>{var X=L(),qu=cr().set,_s=X.MutationObserver||X.WebKitMutationObserver,lr=X.process,ur=X.Promise,Ss=se()(lr)=="process";Ls.exports=function(){var e,t,r,n=function(){var a,u;for(Ss&&(a=lr.domain)&&a.exit();e;){u=e.fn,e=e.next;try{u()}catch(l){throw e?r():t=void 0,l}}t=void 0,a&&a.enter()};if(Ss)r=function(){lr.nextTick(n)};else if(_s&&!(X.navigator&&X.navigator.standalone)){var i=!0,s=document.createTextNode("");new _s(n).observe(s,{characterData:!0}),r=function(){s.data=i=!i}}else if(ur&&ur.resolve){var c=ur.resolve(void 0);r=function(){c.then(n)}}else r=function(){qu.call(X,n)};return function(a){var u={fn:a,next:void 0};t&&(t.next=u),e||(e=u,r()),t=u}}});var lt=d((kp,Cs)=>{"use strict";var Rs=Ee();function ku(e){var t,r;this.promise=new e(function(n,i){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=i}),this.resolve=Rs(t),this.reject=Rs(r)}Cs.exports.f=function(e){return new ku(e)}});var dr=d((jp,Os)=>{Os.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}});var Ps=d((Hp,Ds)=>{var ju=L(),Ms=ju.navigator;Ds.exports=Ms&&Ms.userAgent||""});var fr=d((Fp,qs)=>{var Hu=U(),Fu=K(),Nu=lt();qs.exports=function(e,t){if(Hu(e),Fu(t)&&t.constructor===e)return t;var r=Nu.f(e),n=r.resolve;return n(t),r.promise}});var js=d((Np,ks)=>{var Uu=ne();ks.exports=function(e,t,r){for(var n in t)Uu(e,n,t[n],r);return e}});var Ns=d((Up,Fs)=>{"use strict";var Vu=L(),Bu=ge(),Wu=z(),Hs=x()("species");Fs.exports=function(e){var t=Vu[e];Wu&&t&&!t[Hs]&&Bu.f(t,Hs,{configurable:!0,get:function(){return this}})}});var Bs=d((Vp,Vs)=>{var mr=x()("iterator"),Us=!1;try{pr=[7][mr](),pr.return=function(){Us=!0},Array.from(pr,function(){throw 2})}catch{}var pr;Vs.exports=function(e,t){if(!t&&!Us)return!1;var r=!1;try{var n=[7],i=n[mr]();i.next=function(){return{done:r=!0}},n[mr]=function(){return i},e(n)}catch{}return r}});var to=d(()=>{"use strict";var Ws=$e(),W=L(),ae=Te(),Gu=rt(),w=V(),Qu=K(),$u=Ee(),Ku=is(),Gs=ps(),zu=tr(),zs=cr().set,Ys=ws()(),Js=lt(),yr=dr(),Yu=Ps(),Ju=fr(),G="Promise",Xs=W.TypeError,ue=W.process,Qs=ue&&ue.versions,Xu=Qs&&Qs.v8||"",P=W[G],we=Gu(ue)=="process",ft=function(){},dt,Zs,$s,vr,Re=Zs=Js.f,Ce=!!function(){try{var e=P.resolve(1),t=(e.constructor={})[x()("species")]=function(r){r(ft,ft)};return(we||typeof PromiseRejectionEvent=="function")&&e.then(ft)instanceof t&&Xu.indexOf("6.6")!==0&&Yu.indexOf("Chrome/66")===-1}catch{}}(),eo=function(e){var t;return Qu(e)&&typeof(t=e.then)=="function"?t:!1},gr=function(e,t){if(!e._n){e._n=!0;var r=e._c;Ys(function(){for(var n=e._v,i=e._s==1,s=0,c=function(a){var u=i?a.ok:a.fail,l=a.resolve,p=a.reject,f=a.domain,m,g,j;try{u?(i||(e._h==2&&el(e),e._h=1),u===!0?m=n:(f&&f.enter(),m=u(n),f&&(f.exit(),j=!0)),m===a.promise?p(Xs("Promise-chain cycle")):(g=eo(m))?g.call(m,l,p):l(m)):p(n)}catch(R){f&&!j&&f.exit(),p(R)}};r.length>s;)c(r[s++]);e._c=[],e._n=!1,t&&!e._h&&Zu(e)})}},Zu=function(e){zs.call(W,function(){var t=e._v,r=Ks(e),n,i,s;if(r&&(n=yr(function(){we?ue.emit("unhandledRejection",t,e):(i=W.onunhandledrejection)?i({promise:e,reason:t}):(s=W.console)&&s.error&&s.error("Unhandled promise rejection",t)}),e._h=we||Ks(e)?2:1),e._a=void 0,r&&n.e)throw n.v})},Ks=function(e){return e._h!==1&&(e._a||e._c).length===0},el=function(e){zs.call(W,function(){var t;we?ue.emit("rejectionHandled",e):(t=W.onrejectionhandled)&&t({promise:e,reason:e._v})})},ce=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),gr(t,!0))},hr=function(e){var t=this,r;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw Xs("Promise can't be resolved itself");(r=eo(e))?Ys(function(){var n={_w:t,_d:!1};try{r.call(e,ae(hr,n,1),ae(ce,n,1))}catch(i){ce.call(n,i)}}):(t._v=e,t._s=1,gr(t,!1))}catch(n){ce.call({_w:t,_d:!1},n)}}};Ce||(P=function(t){Ku(this,P,G,"_h"),$u(t),dt.call(this);try{t(ae(hr,this,1),ae(ce,this,1))}catch(r){ce.call(this,r)}},dt=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},dt.prototype=js()(P.prototype,{then:function(t,r){var n=Re(zu(this,P));return n.ok=typeof t=="function"?t:!0,n.fail=typeof r=="function"&&r,n.domain=we?ue.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&gr(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),$s=function(){var e=new dt;this.promise=e,this.resolve=ae(hr,e,1),this.reject=ae(ce,e,1)},Js.f=Re=function(e){return e===P||e===vr?new $s(e):Zs(e)});w(w.G+w.W+w.F*!Ce,{Promise:P});it()(P,G);Ns()(G);vr=M()[G];w(w.S+w.F*!Ce,G,{reject:function(t){var r=Re(this),n=r.reject;return n(t),r.promise}});w(w.S+w.F*(Ws||!Ce),G,{resolve:function(t){return Ju(Ws&&this===vr?P:this,t)}});w(w.S+w.F*!(Ce&&Bs()(function(e){P.all(e).catch(ft)})),G,{all:function(t){var r=this,n=Re(r),i=n.resolve,s=n.reject,c=yr(function(){var a=[],u=0,l=1;Gs(t,!1,function(p){var f=u++,m=!1;a.push(void 0),l++,r.resolve(p).then(function(g){m||(m=!0,a[f]=g,--l||i(a))},s)}),--l||i(a)});return c.e&&s(c.v),n.promise},race:function(t){var r=this,n=Re(r),i=n.reject,s=yr(function(){Gs(t,!1,function(c){r.resolve(c).then(n.resolve,i)})});return s.e&&i(s.v),n.promise}})});var no=d(()=>{"use strict";var Ar=V(),tl=M(),rl=L(),nl=tr(),ro=fr();Ar(Ar.P+Ar.R,"Promise",{finally:function(e){var t=nl(this,tl.Promise||rl.Promise),r=typeof e=="function";return this.then(r?function(n){return ro(t,e()).then(function(){return n})}:e,r?function(n){return ro(t,e()).then(function(){throw n})}:e)}})});var so=d(()=>{"use strict";var io=V(),il=lt(),sl=dr();io(io.S,"Promise",{try:function(e){var t=il.f(this),r=sl(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})});var ao=d((zp,oo)=>{hi();Ui();rs();to();no();so();oo.exports=M().Promise});var uo=d((Yp,co)=>{var ol=K(),al=se(),cl=x()("match");co.exports=function(e){var t;return ol(e)&&((t=e[cl])!==void 0?!!t:al(e)=="RegExp")}});var fo=d((Jp,lo)=>{var ul=uo(),ll=Ie();lo.exports=function(e,t,r){if(ul(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(ll(e))}});var mo=d((Xp,po)=>{var dl=x()("match");po.exports=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[dl]=!1,!"/./"[e](t)}catch{}}return!0}});var ho=d(()=>{"use strict";var Er=V(),fl=fo(),yo="includes";Er(Er.P+Er.F*mo()(yo),"String",{includes:function(t){return!!~fl(this,t,yo).indexOf(t,arguments.length>1?arguments[1]:void 0)}})});var go=d((tm,vo)=>{ho();vo.exports=M().String.includes});var ya=d(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});var dd=function(){function e(){var t=this;this.locked=new Map,this.addToLocked=function(r,n){var i=t.locked.get(r);i===void 0?n===void 0?t.locked.set(r,[]):t.locked.set(r,[n]):n!==void 0&&(i.unshift(n),t.locked.set(r,i))},this.isLocked=function(r){return t.locked.has(r)},this.lock=function(r){return new Promise(function(n,i){t.isLocked(r)?t.addToLocked(r,n):(t.addToLocked(r),n())})},this.unlock=function(r){var n=t.locked.get(r);if(n===void 0||n.length===0){t.locked.delete(r);return}var i=n.pop();t.locked.set(r,n),i!==void 0&&setTimeout(i,0)}}return e.getInstance=function(){return e.instance===void 0&&(e.instance=new e),e.instance},e}();function fd(){return dd.getInstance()}qr.default=fd});var Fr=d(re=>{"use strict";var fe=re&&re.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,s){function c(l){try{u(n.next(l))}catch(p){s(p)}}function a(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):new r(function(p){p(l.value)}).then(c,a)}u((n=n.apply(e,t||[])).next())})},pe=re&&re.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(l){return function(p){return u([l,p])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}};Object.defineProperty(re,"__esModule",{value:!0});var me=ya(),kr="browser-tabs-lock-key";function jr(e){return new Promise(function(t){return setTimeout(t,e)})}function Hr(e){for(var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",r="",n=0;n<e;n++){var i=Math.floor(Math.random()*t.length);r+=t[i]}return r}function pd(){return Date.now().toString()+Hr(15)}var md=function(){function e(){this.acquiredIatSet=new Set,this.id=pd(),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),e.waiters===void 0&&(e.waiters=[])}return e.prototype.acquireLock=function(t,r){return r===void 0&&(r=5e3),fe(this,void 0,void 0,function(){var n,i,s,c,a,u,l;return pe(this,function(p){switch(p.label){case 0:n=Date.now()+Hr(4),i=Date.now()+r,s=kr+"-"+t,c=window.localStorage,p.label=1;case 1:return Date.now()<i?[4,jr(30)]:[3,8];case 2:return p.sent(),a=c.getItem(s),a!==null?[3,5]:(u=this.id+"-"+t+"-"+n,[4,jr(Math.floor(Math.random()*25))]);case 3:return p.sent(),c.setItem(s,JSON.stringify({id:this.id,iat:n,timeoutKey:u,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,jr(30)];case 4:return p.sent(),l=c.getItem(s),l!==null&&(l=JSON.parse(l),l.id===this.id&&l.iat===n)?(this.acquiredIatSet.add(n),this.refreshLockWhileAcquired(s,n),[2,!0]):[3,7];case 5:return e.lockCorrector(),[4,this.waitForSomethingToChange(i)];case 6:p.sent(),p.label=7;case 7:return n=Date.now()+Hr(4),[3,1];case 8:return[2,!1]}})})},e.prototype.refreshLockWhileAcquired=function(t,r){return fe(this,void 0,void 0,function(){var n=this;return pe(this,function(i){return setTimeout(function(){return fe(n,void 0,void 0,function(){var s,c;return pe(this,function(a){switch(a.label){case 0:return[4,me.default().lock(r)];case 1:if(a.sent(),!this.acquiredIatSet.has(r))return me.default().unlock(r),[2];if(s=window.localStorage,c=s.getItem(t),c!==null)c=JSON.parse(c),c.timeRefreshed=Date.now(),s.setItem(t,JSON.stringify(c)),me.default().unlock(r);else return me.default().unlock(r),[2];return this.refreshLockWhileAcquired(t,r),[2]}})})},1e3),[2]})})},e.prototype.waitForSomethingToChange=function(t){return fe(this,void 0,void 0,function(){return pe(this,function(r){switch(r.label){case 0:return[4,new Promise(function(n){var i=!1,s=Date.now(),c=50,a=!1;function u(){if(a||(window.removeEventListener("storage",u),e.removeFromWaiting(u),clearTimeout(l),a=!0),!i){i=!0;var p=c-(Date.now()-s);p>0?setTimeout(n,p):n()}}window.addEventListener("storage",u),e.addToWaiting(u);var l=setTimeout(u,Math.max(0,t-Date.now()))})];case 1:return r.sent(),[2]}})})},e.addToWaiting=function(t){this.removeFromWaiting(t),e.waiters!==void 0&&e.waiters.push(t)},e.removeFromWaiting=function(t){e.waiters!==void 0&&(e.waiters=e.waiters.filter(function(r){return r!==t}))},e.notifyWaiters=function(){if(e.waiters!==void 0){var t=e.waiters.slice();t.forEach(function(r){return r()})}},e.prototype.releaseLock=function(t){return fe(this,void 0,void 0,function(){return pe(this,function(r){switch(r.label){case 0:return[4,this.releaseLock__private__(t)];case 1:return[2,r.sent()]}})})},e.prototype.releaseLock__private__=function(t){return fe(this,void 0,void 0,function(){var r,n,i;return pe(this,function(s){switch(s.label){case 0:return r=window.localStorage,n=kr+"-"+t,i=r.getItem(n),i===null?[2]:(i=JSON.parse(i),i.id!==this.id?[3,2]:[4,me.default().lock(i.iat)]);case 1:s.sent(),this.acquiredIatSet.delete(i.iat),r.removeItem(n),me.default().unlock(i.iat),e.notifyWaiters(),s.label=2;case 2:return[2]}})})},e.lockCorrector=function(){for(var t=Date.now()-5e3,r=window.localStorage,n=Object.keys(r),i=!1,s=0;s<n.length;s++){var c=n[s];if(c.includes(kr)){var a=r.getItem(c);a!==null&&(a=JSON.parse(a),(a.timeRefreshed===void 0&&a.timeAcquired<t||a.timeRefreshed!==void 0&&a.timeRefreshed<t)&&(r.removeItem(c),i=!0))}}i&&e.notifyWaiters()},e.waiters=void 0,e}();re.default=md});var xt=d((Hh,La)=>{La.exports=Sa;function Sa(e,t){if(!e)throw new Error(t||"Assertion failed")}Sa.equal=function(t,r,n){if(t!=r)throw new Error(n||"Assertion failed: "+t+" != "+r)}});var wa=d((Fh,$r)=>{typeof Object.create=="function"?$r.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$r.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var bt=d(h=>{"use strict";var gd=xt(),Ad=wa();h.inherits=Ad;function Ed(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Td(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=s&63|128):Ed(e,i)?(s=65536+((s&1023)<<10)+(e.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i<e.length;i++)r[i]=e[i]|0;return r}h.toArray=Td;function Id(e){for(var t="",r=0;r<e.length;r++)t+=Ca(e[r].toString(16));return t}h.toHex=Id;function Ra(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}h.htonl=Ra;function xd(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];t==="little"&&(i=Ra(i)),r+=Oa(i.toString(16))}return r}h.toHex32=xd;function Ca(e){return e.length===1?"0"+e:e}h.zero2=Ca;function Oa(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}h.zero8=Oa;function bd(e,t,r,n){var i=r-t;gd(i%4===0);for(var s=new Array(i/4),c=0,a=t;c<s.length;c++,a+=4){var u;n==="big"?u=e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3]:u=e[a+3]<<24|e[a+2]<<16|e[a+1]<<8|e[a],s[c]=u>>>0}return s}h.join32=bd;function _d(e,t){for(var r=new Array(e.length*4),n=0,i=0;n<e.length;n++,i+=4){var s=e[n];t==="big"?(r[i]=s>>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}h.split32=_d;function Sd(e,t){return e>>>t|e<<32-t}h.rotr32=Sd;function Ld(e,t){return e<<t|e>>>32-t}h.rotl32=Ld;function wd(e,t){return e+t>>>0}h.sum32=wd;function Rd(e,t,r){return e+t+r>>>0}h.sum32_3=Rd;function Cd(e,t,r,n){return e+t+r+n>>>0}h.sum32_4=Cd;function Od(e,t,r,n,i){return e+t+r+n+i>>>0}h.sum32_5=Od;function Md(e,t,r,n){var i=e[t],s=e[t+1],c=n+s>>>0,a=(c<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=c}h.sum64=Md;function Dd(e,t,r,n){var i=t+n>>>0,s=(i<t?1:0)+e+r;return s>>>0}h.sum64_hi=Dd;function Pd(e,t,r,n){var i=t+n;return i>>>0}h.sum64_lo=Pd;function qd(e,t,r,n,i,s,c,a){var u=0,l=t;l=l+n>>>0,u+=l<t?1:0,l=l+s>>>0,u+=l<s?1:0,l=l+a>>>0,u+=l<a?1:0;var p=e+r+i+c+u;return p>>>0}h.sum64_4_hi=qd;function kd(e,t,r,n,i,s,c,a){var u=t+n+s+a;return u>>>0}h.sum64_4_lo=kd;function jd(e,t,r,n,i,s,c,a,u,l){var p=0,f=t;f=f+n>>>0,p+=f<t?1:0,f=f+s>>>0,p+=f<s?1:0,f=f+a>>>0,p+=f<a?1:0,f=f+l>>>0,p+=f<l?1:0;var m=e+r+i+c+u+p;return m>>>0}h.sum64_5_hi=jd;function Hd(e,t,r,n,i,s,c,a,u,l){var p=t+n+s+a+l;return p>>>0}h.sum64_5_lo=Hd;function Fd(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}h.rotr64_hi=Fd;function Nd(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}h.rotr64_lo=Nd;function Ud(e,t,r){return e>>>r}h.shr64_hi=Ud;function Vd(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}h.shr64_lo=Vd});var Pa=d(Da=>{"use strict";var Ma=bt(),Bd=xt();function _t(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Da.BlockHash=_t;_t.prototype.update=function(t,r){if(t=Ma.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var n=t.length%this._delta8;this.pending=t.slice(t.length-n,t.length),this.pending.length===0&&(this.pending=null),t=Ma.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this};_t.prototype.digest=function(t){return this.update(this._pad()),Bd(this.pending===null),this._digest(t)};_t.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,n=r-(t+this.padLength)%r,i=new Array(n+this.padLength);i[0]=128;for(var s=1;s<n;s++)i[s]=0;if(t<<=3,this.endian==="big"){for(var c=8;c<this.padLength;c++)i[s++]=0;i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=t>>>24&255,i[s++]=t>>>16&255,i[s++]=t>>>8&255,i[s++]=t&255}else for(i[s++]=t&255,i[s++]=t>>>8&255,i[s++]=t>>>16&255,i[s++]=t>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,c=8;c<this.padLength;c++)i[s++]=0;return i}});var Ha=d(N=>{"use strict";var Wd=bt(),q=Wd.rotr32;function Gd(e,t,r,n){if(e===0)return qa(t,r,n);if(e===1||e===3)return ja(t,r,n);if(e===2)return ka(t,r,n)}N.ft_1=Gd;function qa(e,t,r){return e&t^~e&r}N.ch32=qa;function ka(e,t,r){return e&t^e&r^t&r}N.maj32=ka;function ja(e,t,r){return e^t^r}N.p32=ja;function Qd(e){return q(e,2)^q(e,13)^q(e,22)}N.s0_256=Qd;function $d(e){return q(e,6)^q(e,11)^q(e,25)}N.s1_256=$d;function Kd(e){return q(e,7)^q(e,18)^e>>>3}N.g0_256=Kd;function zd(e){return q(e,17)^q(e,19)^e>>>10}N.g1_256=zd});var Ua=d((Bh,Na)=>{"use strict";var ye=bt(),Yd=Pa(),he=Ha(),Jd=xt(),D=ye.sum32,Xd=ye.sum32_4,Zd=ye.sum32_5,ef=he.ch32,tf=he.maj32,rf=he.s0_256,nf=he.s1_256,sf=he.g0_256,of=he.g1_256,Fa=Yd.BlockHash,af=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;Fa.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=af,this.W=new Array(64)}ye.inherits(k,Fa);Na.exports=k;k.blockSize=512;k.outSize=256;k.hmacStrength=192;k.padLength=64;k.prototype._update=function(t,r){for(var n=this.W,i=0;i<16;i++)n[i]=t[r+i];for(;i<n.length;i++)n[i]=Xd(of(n[i-2]),n[i-7],sf(n[i-15]),n[i-16]);var s=this.h[0],c=this.h[1],a=this.h[2],u=this.h[3],l=this.h[4],p=this.h[5],f=this.h[6],m=this.h[7];for(Jd(this.k.length===n.length),i=0;i<n.length;i++){var g=Zd(m,nf(l),ef(l,p,f),this.k[i],n[i]),j=D(rf(s),tf(s,c,a));m=f,f=p,p=l,l=D(u,g),u=a,a=c,c=s,s=D(g,j)}this.h[0]=D(this.h[0],s),this.h[1]=D(this.h[1],c),this.h[2]=D(this.h[2],a),this.h[3]=D(this.h[3],u),this.h[4]=D(this.h[4],l),this.h[5]=D(this.h[5],p),this.h[6]=D(this.h[6],f),this.h[7]=D(this.h[7],m)};k.prototype._digest=function(t){return t==="hex"?ye.toHex32(this.h,"big"):ye.split32(this.h,"big")}});var yv=$(zn()),hv=$(pi()),vv=$(ao()),gv=$(go());var pt,pl=new Uint8Array(16);function Tr(){if(!pt&&(pt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!pt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pt(pl)}var T=[];for(let e=0;e<256;++e)T.push((e+256).toString(16).slice(1));function Ao(e,t=0){return(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+"-"+T[e[t+4]]+T[e[t+5]]+"-"+T[e[t+6]]+T[e[t+7]]+"-"+T[e[t+8]]+T[e[t+9]]+"-"+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase()}var ml=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ir={randomUUID:ml};function yl(e,t,r){if(Ir.randomUUID&&!t&&!e)return Ir.randomUUID();e=e||{};let n=e.random||(e.rng||Tr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return Ao(n)}var Oe=yl;function Eo(e=new Date){return new Date(e.getTime()-e.getTimezoneOffset()*60*1e3)}function To(e=new Date){let t=e.getTimezoneOffset()/60,r=t>0?"-":"+",n=Math.abs(t%1),i=`${r}${("00"+Math.abs(~~t)).slice(-2)}`;return n?`${i}:${60*n}`:`${i}:00`}function Me(e,t){return(document.querySelector(e)||{})[t]||""}function hl(e){return Object.assign(e.context,{canonicalUrl:Me("link[rel=canonical]","href"),contentLanguageId:Me("html","lang"),description:Me('meta[name="description"]',"content"),keywords:Me('meta[name="keywords"]',"content"),languageId:navigator.language,referrer:document.referrer,timezoneOffset:To(),title:Me("title","textContent"),url:location.href,userAgent:navigator.userAgent}),e}var Io=hl;var vl=[/^og:.*/,/^music:/,/^video:/,/^article:/,/^book:/,/^profile:/,/^fb:/];function gl(e){let t=!1;if(e&&e.getAttribute){let r=e.getAttribute("property");r&&(t=vl.some(n=>r.match(n)))}return t}function Al(e){let n=[].slice.call(document.querySelectorAll("meta")).filter(gl).reduce((i,s)=>Object.assign(i,{[s.getAttribute("property")]:s.getAttribute("content")}),{});return Object.assign(e.context,n),e}var xo=Al;function El(e){let t=window.devicePixelRatio||1,r=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return Object.assign(e.context,{devicePixelRatio:t,screenHeight:r,screenWidth:n}),e}var bo=El;var xr=[Io,xo,bo];var o;(a=>{let e;(A=>(A.Blog="Blog",A.Custom="Custom",A.CustomEvent="CustomEvent",A.Document="Document",A.Form="Form",A.ObjectEntry="ObjectEntry",A.Page="Page",A.WebContent="WebContent"))(e=a.ApplicationId||(a.ApplicationId={}));let t;(y=>(y.AssetClicked="assetClicked",y.AssetDepthReached="assetDepthReached",y.AssetDownloaded="assetDownloaded",y.AssetSubmitted="assetSubmitted",y.AssetViewed="assetViewed",y.BlogClicked="blogClicked",y.BlogDepthReached="blogDepthReached",y.BlogImpressionMade="blogImpressionMade",y.BlogViewed="blogViewed",y.DocumentDownloaded="documentDownloaded",y.DocumentImpressionMade="documentImpressionMade",y.DocumentPreviewed="documentPreviewed",y.FieldBlurred="fieldBlurred",y.FieldFocused="fieldFocused",y.FormSubmitted="formSubmitted",y.FormViewed="formViewed",y.ObjectEntryDownloaded="objectEntryDownloaded",y.ObjectEntryImpressionMade="objectEntryImpressionMade",y.ObjectEntryViewed="objectEntryViewed",y.PageDepthReached="pageDepthReached",y.PageLoaded="pageLoaded",y.PageRead="pageRead",y.PageUnloaded="pageUnloaded",y.PageViewed="pageViewed",y.TabBlurred="tabBlurred",y.TabFocused="tabFocused",y.WebContentClicked="webContentClicked",y.WebContentImpressionMade="webContentImpressionMade",y.WebContentViewed="webContentViewed"))(t=a.EventId||(a.EventId={}));let r;(f=>(f.View="view",f.Impression="impression",f.Download="download"))(r=a.ElementAction||(a.ElementAction={}));let n;(A=>(A.Blog="blog",A.BlogsEntry="com.liferay.blogs.model.BlogsEntry",A.Custom="custom",A.Document="document",A.FileEntry="com.liferay.portal.kernel.repository.model.FileEntry",A.JournalArticle="com.liferay.journal.model.JournalArticle",A.ObjectEntry="object-entry",A.WebContent="web-content"))(n=a.ElementType||(a.ElementType={}));let i;(E=>(E.AnalyticsAssetAction="analyticsAssetAction",E.AnalyticsAssetCategory="analyticsAssetCategory",E.AnalyticsExternalReferenceCode="analyticsExternalReferenceCode",E.AnalyticsAssetId="analyticsAssetId",E.AnalyticsAssetSubtype="analyticsAssetSubtype",E.AnalyticsAssetTitle="analyticsAssetTitle",E.AnalyticsAssetType="analyticsAssetType",E.AnalyticsAssetVersion="analyticsAssetVersion",E.AnalyticsObjectDefinitionName="analyticsObjectDefinitionName",E.AnalyticsWebContentResourcePk="analyticsWebContentResourcePk"))(i=a.DataSetList||(a.DataSetList={}));let s;(R=>(R.ChannelId="ac_client_channel_id",R.Contexts="ac_client_context",R.DisableTracking="ac_client_disable_tracking",R.Identity="ac_client_identity",R.PrevEmailAddressHash="ac_client_previous_email_address_hash",R.StorageVersion="ac_client_storage_version",R.UserId="ac_client_user_id"))(s=a.Keys||(a.Keys={}));let c;(f=>(f.Events="ac_client_batch",f.IdentityMessage="ac_message_queue_identity",f.Messages="ac_message_queue"))(c=a.Queues||(a.Queues={}))})(o||(o={}));function F(e,t=""){return typeof e=="object"?e.map(r=>`[data-analytics-asset-type="${r}"]${t}`).join(", "):`[data-analytics-asset-type="${e}"]${t}`}function Z(e,t){return De(e,F(t))}function De(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function le({innerText:e}){let t=e.split(/\s+/).filter(Boolean);return e!==""?t.length:0}function v(e,t){let r=[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetTitle,o.DataSetList.AnalyticsAssetType];return!!(e&&(t||r).every(i=>i in e.dataset))}Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector);var _o="1.3.0";var So="OSB-Asah-Project-ID";var Pe="loadEventStartSPA",ee="navigationStartSPA",Lo="pageLoadTimeSPA",mt="viewDurationSPA",br="p_p_id",wo="com_liferay_portlet_configuration_web_portlet_PortletConfigurationPortlet",Ro="p_l_mode",Co="com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet",_r="view";var Oo=new Set(["ja","ko","zh"]),yt=75,Sr=.75,Mo=265,Do=2048,Po=25,qo=255,ko=1024;function C(e,t){return function r(){let n=arguments;Tl(r),r.id=setTimeout(()=>{e.apply(null,n)},t)}}function Tl(e){clearTimeout(e.id)}var b=e=>(document.readyState==="interactive"||document.readyState==="complete"?e():document.addEventListener("DOMContentLoaded",e),()=>document.removeEventListener("DOMContentLoaded",e)),ht=(e,t)=>(e.forEach(r=>document.addEventListener(r,t)),()=>{e.forEach(r=>{document.removeEventListener(r,t)})}),de=({analytics:e,applicationId:t,eventType:r,getPayload:n,isTrackable:i,type:s})=>{let c=a=>{let u=a.target,l=Z(u,s);if(!i(l)||u.control)return;let p=u.tagName.toLowerCase(),f=l?n(l):{};Object.assign(f,{tagName:p}),p==="a"?Object.assign(f,{href:u.href,text:u.innerText}):p==="img"&&Object.assign(f,{src:u.src}),e.send(r,t,f)};return document.addEventListener("click",c),()=>document.removeEventListener("click",c)};function jo(e,t,r,n){let i=new Date,s=i.toISOString(),c=Eo(i).toISOString();return{applicationId:t,contextHash:n,eventDate:s,eventId:e,eventLocalDate:c,properties:r}}var Ho=(e,t)=>{let r=e.flatMap(({value:n})=>n.events);return t.filter(({contextHash:n,eventDate:i,eventId:s})=>!r.some(({contextHash:c,eventDate:a,eventId:u})=>n===c&&s===u&&i===a))};function Il(){return window.pageYOffset||document.documentElement.scrollTop}function xl(){let e=[document.body.clientHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight];return Math.max.apply(null,e)}function bl(e){let t=xl(),r=Il(),n={bottom:0,height:t,top:r};if(e){let i=e.getBoundingClientRect(),{bottom:s,height:c,top:a}=i;n={bottom:s,height:c,top:a}}return n}function vt(e){let{bottom:t,left:r,right:n,top:i}=e.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight,c=window.innerWidth||document.documentElement.clientWidth,a=i<=s&&t>=0,u=r<=c&&n>=0;return a&&u}var O=class{constructor(t=4){this.steps=t,this.stepsReached=[]}dispose(){this.steps=null,this.stepsReached=null}getDepthValue(t){let{bottom:r,height:n,top:i}=bl(t),s=window.innerHeight,c=(s-i)/n;return i<=0&&r>=0?c=s/(n+i):t||(c=(i+s)/n),c}getDepth(t){let r=this.getDepthValue(t),n=Math.round(r*100);return Math.min(Math.max(n,0),100)}onDepthReached(t,r){let n=this.getDepth(r),i=Math.floor(100/this.steps),s=Math.floor(n/i);this.stepsReached?.every(c=>c<s)&&(this.stepsReached.push(s),s>0&&t(s*i))}};function Lr({dataset:e}){let t={entryId:e.analyticsAssetId.trim()};return e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function _l(e,t){let r=new Date().toISOString(),n=new O,i=C(()=>{t.forEach(s=>{n.onDepthReached(c=>{let a=Lr(s);Object.assign(a,{depth:c,sessionId:r}),e.send(o.EventId.BlogDepthReached,o.ApplicationId.Blog,a)},s)})},1500);return document.addEventListener("scroll",i),()=>{document.removeEventListener("scroll",i)}}function Fo(e,{eventId:t,isTrackable:r}){let n=[],i=F([o.ElementType.Blog,o.ElementType.BlogsEntry]),s=b(()=>{Array.prototype.slice.call(document.querySelectorAll(i)).filter(r).forEach(a=>{let u=Lr(a);Object.assign(u,{numberOfWords:le(a)}),n.push(a),e.send(t,o.ApplicationId.Blog,u)})}),c=_l(e,n);return()=>{c(),s()}}function Sl(e){return de({analytics:e,applicationId:o.ApplicationId.Blog,eventType:o.EventId.BlogClicked,getPayload:Lr,isTrackable:v,type:o.ElementType.Blog})}function Ll(e){let t=Sl(e),r=Fo(e,{eventId:o.EventId.BlogImpressionMade,isTrackable:i=>v(i)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),n=Fo(e,{eventId:o.EventId.BlogViewed,isTrackable:i=>v(i)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),r(),n()}}var No=Ll;function qe({dataset:e}){let t={assetId:e.analyticsAssetId.trim()};return e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetCategory&&Object.assign(t,{category:e.analyticsAssetCategory.trim()}),t}function wl(e){let t=r=>{let n=r.target,i=De(n,'[data-analytics-asset-action="download"]'),s=Z(n,o.ElementType.Custom);i&&v(s,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType])&&e.send(o.EventId.AssetDownloaded,o.ApplicationId.Custom,qe(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Rl(e,t){let r=new Date().toISOString(),n=new O,i=C(()=>{t.forEach(s=>{n.onDepthReached(c=>{let a=qe(s);Object.assign(a,{depth:c,sessionId:r}),e.send(o.EventId.AssetDepthReached,o.ApplicationId.Custom,a)},s)})},1500);return document.addEventListener("scroll",i),()=>{document.removeEventListener("scroll",i)}}function Cl(e){let t=r=>{let n=r.target,i=Z(n,o.ElementType.Custom),s=v(i,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType]);!s||s&&(n.tagName!=="FORM"||r.defaultPrevented)||e.send(o.EventId.AssetSubmitted,o.ApplicationId.Custom,qe(i))};return document.addEventListener("submit",t),()=>document.removeEventListener("submit",t)}function Ol(e){let t=[],r=b(()=>{Array.prototype.slice.call(document.querySelectorAll('[data-analytics-asset-type="custom"]')).filter(i=>v(i,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType])).forEach(i=>{let s=!!i.getElementsByTagName("form").length,c=qe(i);Object.assign(c,{formEnabled:s}),t.push(i),e.send(o.EventId.AssetViewed,o.ApplicationId.Custom,c)})}),n=Rl(e,t);return()=>{n(),r()}}function Ml(e){return de({analytics:e,applicationId:o.ApplicationId.Custom,eventType:o.EventId.AssetClicked,getPayload:qe,isTrackable:t=>v(t,[o.DataSetList.AnalyticsAssetId,o.DataSetList.AnalyticsAssetType]),type:o.ElementType.Custom})}function Dl(e){let t=Ml(e),r=wl(e),n=Cl(e),i=Ol(e);return()=>{t(),r(),n(),i()}}var Uo=Dl;function Vo({dataset:e}){let t={fileEntryId:e.analyticsAssetId.trim()};return e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetVersion&&Object.assign(t,{fileEntryVersion:e.analyticsAssetVersion.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function Pl(e){let t=r=>{let n=r.target,i=De(n,'[data-analytics-asset-action="download"]'),s=Z(n,o.ElementType.Document);i&&v(s)&&e.send(o.EventId.DocumentDownloaded,o.ApplicationId.Document,Vo(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function ql(e){let t=b(()=>{Array.prototype.slice.call(document.querySelectorAll('[data-analytics-asset-action="preview"]')).filter(r=>v(r)).forEach(r=>{let n=Vo(r);e.send(o.EventId.DocumentPreviewed,o.ApplicationId.Document,n)})});return()=>t()}function kl(e){let t=Pl(e),r=ql(e);return()=>{t(),r()}}var Bo=kl;function Wo({dataset:e}){let t={fileEntryId:e.analyticsAssetId.trim()};return e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsAssetVersion&&Object.assign(t,{fileEntryVersion:e.analyticsAssetVersion.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function jl(e){let t=r=>{let n=r.target,i=n.parentElement,s=[n,i].find(c=>c?.dataset.analyticsAssetAction==="download");s&&v(s)&&e.send(o.EventId.DocumentDownloaded,o.ApplicationId.Document,Wo(s))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Hl(e,{eventId:t,isTrackable:r}){let n=F(o.ElementType.FileEntry),i=b(()=>{Array.prototype.slice.call(document.querySelectorAll(n)).filter(s=>r(s)).forEach(s=>{let c=Wo(s);e.send(t,o.ApplicationId.Document,c)})});return()=>i()}function Fl(e){let t=jl(e),r=Hl(e,{eventId:o.EventId.DocumentImpressionMade,isTrackable:n=>v(n)&&n.dataset.analyticsAssetAction===o.ElementAction.Impression||v(n)&&n.dataset.analyticsAssetAction===o.ElementAction.Download});return()=>{t(),r()}}var Go=Fl;function Qo(){if(window.URLSearchParams)return new window.URLSearchParams(location.search);let e=new Map;return(location.search.startsWith("?")?location.search.slice(1):location.search).split("&").forEach(n=>{if(!n)return;let[i,s]=n.includes("=")?n.split("=").map(decodeURIComponent):[n,""];e.set(i,s)}),{get:n=>e.get(n)}}function ke(e,t,r){window.performance.measure(e,t,r);let n=window.performance.getEntriesByName(e).pop();return n&&typeof n.duration=="number"?~~n.duration:0}function gt(e){window.performance.clearMarks(e),window.performance.mark(e)}function Nl(e){let t=window.Liferay;function r(){e.send(o.EventId.PageUnloaded,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode,viewDuration:ke(mt,ee)})}function n(){e.send(o.EventId.PageLoaded,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode,pageLoadTime:ke(Lo,Pe,ee)})}function i(a){return a.get(br)===wo}function s(a){return a.get(br)===Co}function c(a){return(a.get(Ro)||_r)===_r}if(t){let a=Qo();if(i(a)||s(a)||!c(a))return e._disposeInternal();if(t.SPA){let u=window.performance.getEntriesByName(Pe);if(gt(ee),!u.length){let l=gt.bind(null,Pe);gt(Pe),t?.on?.("beforeNavigate",l)}document.readyState==="complete"&&n(),t?.once?.("beforeNavigate",r)}}}var $o=Nl;function Ko(e){return e.dataset.analyticsAssetId||e.id||e.getAttribute("name")||e.action}function zo({form:e,name:t}){return{fieldName:t,...wr(e)}}function wr(e){let t={formId:Ko(e).trim()};return e.dataset.analyticsAssetTitle&&Object.assign(t,{title:e.dataset.analyticsAssetTitle.trim()}),e.dataset.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.dataset.analyticsExternalReferenceCode.trim()}),t}function je(e){return v(e)&&!!Ko(e)}function Ul(e){let t=r=>{let n=r.target,{form:i}=n;if(!i||!je(i))return;let s=zo(n),c=`${s.formId}${s.fieldName}blurred`;performance.mark(c);let a=`${s.formId}${s.fieldName}focused`;performance.measure("focusDuration",a,c);let u=performance.getEntriesByName("focusDuration").pop(),l=u&&typeof u.duration=="number"?~~u.duration:0;Object.assign(s,{focusDuration:l}),e.send(o.EventId.FieldBlurred,o.ApplicationId.Form,s),performance.clearMarks("focusDuration")};return document.addEventListener("blur",t,!0),()=>document.removeEventListener("blur",t,!0)}function Vl(e){let t=r=>{let n=r.target,{form:i}=n;if(!i||!je(i))return;let s=zo(n),c=`${s.formId}${s.fieldName}focused`;performance.mark(c),e.send(o.EventId.FieldFocused,o.ApplicationId.Form,s)};return document.addEventListener("focus",t,!0),()=>document.removeEventListener("focus",t,!0)}function Bl(e){let t=r=>{let n=r.target;!je(n)||je(n)&&r.defaultPrevented||e.send(o.EventId.FormSubmitted,o.ApplicationId.Form,wr(n))};return document.addEventListener("submit",t,!0),()=>document.removeEventListener("submit",t,!0)}function Wl(e){return b(()=>{Array.prototype.slice.call(document.querySelectorAll("form")).filter(t=>je(t)).forEach(t=>{let r=wr(t);e.send(o.EventId.FormViewed,o.ApplicationId.Form,r)})})}function Gl(e){let t=Ul(e),r=Vl(e),n=Bl(e),i=Wl(e);return()=>{t(),r(),n(),i()}}var Yo=Gl;var Rr=[o.DataSetList.AnalyticsAssetAction,o.DataSetList.AnalyticsExternalReferenceCode,o.DataSetList.AnalyticsAssetType,o.DataSetList.AnalyticsObjectDefinitionName];function Xo({dataset:e}){return{externalReferenceCode:e.analyticsExternalReferenceCode.trim(),objectDefinitionName:e.analyticsObjectDefinitionName.trim()}}function Ql(e){let t=r=>{let n=r.target;v(n,Rr)&&n.dataset.analyticsAssetAction==="download"&&e.send(o.EventId.ObjectEntryDownloaded,o.ApplicationId.ObjectEntry,Xo(n))};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}function Jo(e,{eventId:t,isTrackable:r}){let n=F(o.ElementType.ObjectEntry,':not([data-analytics-asset-viewed="true"])'),i=C(()=>{Array.prototype.slice.call(document.querySelectorAll(n)).filter(r).forEach(u=>{if(vt(u)){let l=Xo(u);u.dataset.analyticsAssetViewed=!0,e.send(t,o.ApplicationId.ObjectEntry,l)}})},250),s=b(i),c=ht(["scroll","resize"],i);return()=>{c(),s()}}function $l(e){let t=Ql(e),r=Jo(e,{eventId:o.EventId.ObjectEntryImpressionMade,isTrackable:i=>v(i,Rr)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),n=Jo(e,{eventId:o.EventId.ObjectEntryViewed,isTrackable:i=>v(i,Rr)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),r(),n()}}var Zo=$l;function ea(){let{clientHeight:e,scrollHeight:t}=document.documentElement;return e*100/t<=yt}var At=class{constructor(){this.timeReached=!1,this.depthReached=!ea()}dispose(){this.timeReached=!1,this.depthReached=!ea(),this.timeoutId&&clearTimeout(this.timeoutId)}setExpectedViewDuration(t,r){r&&!this.timeoutId&&(this.timeoutId=setTimeout(()=>this.onTimeReached(t),~~r))}onDepthReached(t){this.depthReached||(this.depthReached=!0,this.checkIsRead(t))}onTimeReached(t){this.timeReached=!0,this.checkIsRead(t)}checkIsRead(t){this.timeReached&&this.depthReached&&t()}};var ta=6e4;function zl(){let e=document.getElementById("main-content"),t=document.querySelector("meta[name='data-analytics-readable-content']");return t&&t.getAttribute("content")==="true"&&e?e.innerText:""}function Yl(){return document.documentElement.lang}function Jl(e){return e.replace(/\s+/gm,"").length/500*ta*Sr}function Xl(e){return le({innerText:e})/Mo*ta*Sr}function Zl(e){let t=Yl();return Oo.has(t)?Jl(e):Xl(e)}function ed(e){let t=new At,r=new O,n=b(()=>{let s=zl();t.setExpectedViewDuration(()=>e.send(o.EventId.PageRead,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode}),Zl(s))}),i=C(()=>{r.onDepthReached(s=>{s>=yt&&t.onDepthReached(()=>{e.send(o.EventId.PageRead,o.ApplicationId.Page,{externalReferenceCode:e._getContext().layoutExternalReferenceCode})})})},1500);return document.addEventListener("scroll",i),()=>{n(),document.removeEventListener("scroll",i),t.dispose(),r=new O}}var ra=ed;function td(e){let t=new O,r=C(()=>{t.onDepthReached(i=>{e.send(o.EventId.PageDepthReached,o.ApplicationId.Page,{depth:i,externalReferenceCode:e._getContext().layoutExternalReferenceCode})})},1500);document.addEventListener("scroll",r);let n=()=>{t.dispose(),t=new O};return window.addEventListener("load",n),()=>{document.removeEventListener("scroll",r),window.removeEventListener("load",n)}}var na=td;function rd(e){let t=window.performance.timing,r=t.loadEventStart-t.navigationStart,n={externalReferenceCode:e._getContext().layoutExternalReferenceCode,pageLoadTime:r};e.send(o.EventId.PageLoaded,o.ApplicationId.Page,n)}function nd(e){let r=window.performance.getEntriesByName(ee).length?ee:"navigationStart",n=ke(mt,r),i={externalReferenceCode:e._getContext().layoutExternalReferenceCode,viewDuration:n};e.send(o.EventId.PageUnloaded,o.ApplicationId.Page,i)}function id(e){let t=rd.bind(null,e);window.addEventListener("load",t);let r=nd.bind(null,e);return window.addEventListener("unload",r),()=>{window.removeEventListener("load",t),window.removeEventListener("unload",r)}}var ia=id;var oa=!0;function aa(){let e,t,r=document;return typeof r.hidden<"u"?(e="hidden",t="visibilitychange"):typeof r.msHidden<"u"?(e="msHidden",t="msvisibilitychange"):typeof r.webkitHidden<"u"&&(e="webkitHidden",t="webkitvisibilitychange"),{hidden:e,visibilityChange:t}}function sd(e){let{hidden:t}=aa();oa&&(document[t]?e.send(o.EventId.TabBlurred,o.ApplicationId.Page):e.send(o.EventId.TabFocused,o.ApplicationId.Page))}function od(e){let{visibilityChange:t}=aa();if(t){let r=sd.bind(null,e);return window.addEventListener("beforeunload",sa),document.addEventListener(t,r),()=>{window.removeEventListener("beforeunload",sa),document.removeEventListener(t,r)}}}function sa(){oa=!1}var ca=od;function la({dataset:e}){let t={articleId:e.analyticsAssetId.trim()};return e.analyticsAssetSubtype&&Object.assign(t,{subtype:e.analyticsAssetSubtype.trim()}),e.analyticsAssetTitle&&Object.assign(t,{title:e.analyticsAssetTitle.trim()}),e.analyticsAssetType&&Object.assign(t,{type:e.analyticsAssetType.trim()}),e.analyticsWebContentResourcePk&&Object.assign(t,{webContentResourcePk:e.analyticsWebContentResourcePk.trim()}),e.analyticsExternalReferenceCode&&Object.assign(t,{externalReferenceCode:e.analyticsExternalReferenceCode.trim()}),t}function ad(e){return de({analytics:e,applicationId:o.ApplicationId.WebContent,eventType:o.EventId.WebContentClicked,getPayload:la,isTrackable:v,type:[o.ElementType.WebContent,o.ElementType.JournalArticle]})}function ua(e,{eventId:t,isTrackable:r}){let n=F([o.ElementType.WebContent,o.ElementType.JournalArticle],':not([data-analytics-asset-viewed="true"])'),i=C(()=>{Array.prototype.slice.call(document.querySelectorAll(n)).filter(r).forEach(u=>{if(vt(u)){let l=la(u);Object.assign(l,{numberOfWords:le(u)}),u.dataset.analyticsAssetViewed=!0,e.send(t,o.ApplicationId.WebContent,l)}})},250),s=b(i),c=ht(["scroll","resize"],i);return()=>{c(),s()}}function cd(e){let t=ad(e),r=ua(e,{eventId:o.EventId.WebContentImpressionMade,isTrackable:i=>v(i)&&i.dataset?.analyticsAssetAction===o.ElementAction.Impression}),n=ua(e,{eventId:o.EventId.WebContentViewed,isTrackable:i=>v(i)&&(!i.dataset?.analyticsAssetAction||i.dataset?.analyticsAssetAction===o.ElementAction.View)});return()=>{t(),r(),n()}}var da=cd;var fa=[$o,No,Uo,Bo,Go,Yo,Zo,ra,na,ia,ca,da];function Cr(e){return e<=1?1:Cr(e-1)+Cr(e-2)}function Or(e,t){return Cr(Math.min(e,t))*1e3}var Mr=class{constructor(t){this.processInterval=null;this.attemptNumber=1,this.initialFlushInterval=t.flushInterval||2e3,this.processing=!1,this.queues=[],this.flushInterval=this.initialFlushInterval,this._startsFlushLoop()}addQueue(t,r={}){this.queues.push(Object.assign(r,{instance:t,name:t.name})),this.queues.sort(this._prioritize)}removeQueue(t){this.queues=this.queues.filter(({name:r})=>t!==r)}_prioritize({priority:t=1},{priority:r=1}){return r-t}_onFlushFail(){this.flushInterval=Or(++this.attemptNumber,7),this._startsFlushLoop()}_onFlushSuccess(){this.attemptNumber=1,this.flushInterval!==this.initialFlushInterval&&(this.flushInterval=this.initialFlushInterval,this._startsFlushLoop())}flush(){this.processing||this.queues.reduce((t,{instance:r})=>t.then(()=>!r.hasItems()||!r.shouldFlush()?Promise.resolve():r.acquireLock().then(n=>{if(!n)return Promise.resolve();this.processing=!0;let i=()=>r.releaseLock().then(()=>{this.processing=!1});return Promise.allSettled(r.onFlush()).then(s=>(this._onFlushSuccess(),r.onFlushSuccess(s),i(),Promise.resolve()))})).catch(()=>(this._onFlushFail(),r.onFlushFail(),Promise.reject())),Promise.resolve()).catch(()=>{})}_startsFlushLoop(){this.processInterval&&clearInterval(this.processInterval),this.processInterval=setInterval(()=>this.flush(),this.flushInterval)}dispose(){this.processInterval&&clearInterval(this.processInterval),this.flushInterval=this.initialFlushInterval,this.queues=[]}};var pa=Mr;var Pr=class{constructor({endpointUrl:t,projectId:r,timeout:n}){this.projectId=r,this.timeout=n||5e3,this.url=t}_getRequestParameters(){let t={"Content-Type":"application/json"};return this.projectId&&Object.assign(t,{[So]:this.projectId}),{cache:"default",credentials:"same-origin",headers:t,method:"POST",mode:"cors"}}_validateResponse(t){let r=t;return t.ok||(r=new Promise((n,i)=>i(t))),r}sendWithTimeout(t){return Promise.race([this.send(t),this._timeout()])}send(t){let r=this._getRequestParameters();return Object.assign(r,{body:JSON.stringify(t)}),fetch(this.url,r).then(this._validateResponse)}_timeout(){return new Promise((t,r)=>setTimeout(r,this.timeout))}};var ma=Pr;var Aa=$(Fr());var ha=$(Fr()),Nr=()=>{let e=window.Liferay,t=e?.Util?.LocalStorage,r=e?.Util?.Cookie?.get?.("CONSENT_TYPE_PERFORMANCE");return t&&r==="true"},S=e=>{let t=window.Liferay,r;try{let n;Nr()?n=t?.Util?.LocalStorage?.getItem(e,t?.Util?.LocalStorage?.TYPES?.PERFORMANCE):n=localStorage.getItem(e),r=JSON.parse(n)}catch{return}return r},I=(e,t)=>{let r=window.Liferay;try{Nr()?r?.Util?.LocalStorage?.setItem(e,JSON.stringify(t),r?.Util?.LocalStorage?.TYPES?.PERFORMANCE):localStorage.setItem(e,JSON.stringify(t))}catch{return}},va=e=>{let t=window.Liferay;try{Nr()?t?.Util?.LocalStorage?.removeItem(e,t?.Util?.LocalStorage?.TYPES?.PERFORMANCE):localStorage.removeItem(e)}catch{return}},yd=e=>Number(JSON.stringify(e).length*2/1024),ga=(e,t)=>{let r=S(e);if(!r?.length)return Promise.resolve();let n=new ha.default;return n.acquireLock(e).then(i=>{if(i)return yd(r)>t&&I(e,r.slice(1)),n.releaseLock(e)})};var Ur=class{constructor({analyticsInstance:t,name:r}){this.maxSize=512,this.name=r,this.lock=new Aa.default,this.analyticsInstance=t,S(this.name)||I(this.name,[]),this.addItem=this.addItem.bind(this)}addItem(t){this._enqueue(t),ga(this.name,this.maxSize)}_dequeue(t){let r=this.getItems();I(this.name,r.filter(({id:n,item:i})=>i?i.id!==t:t!==n))}_enqueue(t){let r=this.getItems();r.push(t),I(this.name,r)}getItems(){return S(this.name)||[]}hasItems(){return!!this.getItems().length}acquireLock(){return this.lock.acquireLock(this.name)}releaseLock(){return this.lock.releaseLock(this.name)}reset(){I(this.name,[])}shouldFlush(){return this.analyticsInstance._isTrackingDisabled()?(this.analyticsInstance._disposeInternal(),!1):!0}onFlush(){throw Error("onFlush should be implemented on the new class")}onFlushFail(){}onFlushSuccess(){}};var Et=Ur;var Vr=class extends Et{constructor({analyticsInstance:t,flushTo:r,name:n}){super({analyticsInstance:t,name:n}),this.clientAdapter=new ma({endpointUrl:r,projectId:t.config.projectId})}onFlush(){return this.getItems().map(r=>this.clientAdapter.sendWithTimeout(r).then(()=>{this._dequeue(r.id)}).catch(n=>(n.status===400&&this._dequeue(r.id),Promise.reject(n))))}};var Tt=Vr;var Br=class extends Tt{constructor({analyticsInstance:t,name:r=o.Queues.Messages}){super({analyticsInstance:t,flushTo:t.config.endpointUrl,name:r})}};var Ea=Br;function Ta(e){let t=[];return e.forEach((r,n)=>t.push([n,r])),t}var It=(e=o.Keys.Contexts)=>{let t=S(e),r=new Map;return t&&t.forEach(([n,i])=>r.set(n,i)),r},Fe=(e,t=o.Keys.Contexts)=>{I(t,Ta(e))};var Wr=class extends Et{constructor({analyticsInstance:t,flushTo:r,name:n}){super({analyticsInstance:t,name:n}),this.analyticsInstance=t,this.flushTo=r}onFlush(){let t=this.getItems(),r=It(),n=this._groupEventsByContextHash(t),i=this.analyticsInstance._getUserId(),s=[];return r.forEach((c,a)=>{let u=n[a];u&&s.push(this.analyticsInstance[this.flushTo].addItem(this._createMessage({context:c,events:u,userId:i})))}),s}onFlushSuccess(t){let r=this.getItems(),n=t?.filter(s=>s&&s.value&&s.value.events),i=Ho(n,r);I(this.name,i),this.analyticsInstance.resetContext(),this.reset()}_createMessage({context:t,events:r,userId:n}){let{channelId:i,...s}=t,{dataSourceId:c,identity:{emailAddressHashed:a}}=this.analyticsInstance.config;return{channelId:i,context:{...s},dataSourceId:c,emailAddressHashed:a,events:r,id:Oe(),userId:n}}_groupEventsByContextHash(t){return t.reduce((r,n)=>(r[n.contextHash]?r[n.contextHash].push(n):r[n.contextHash]=[n],r),{})}};var Ia=Wr;var Gr=class extends Ia{constructor({analyticsInstance:t,name:r=o.Queues.Events}){super({analyticsInstance:t,flushTo:o.Queues.Messages,name:r})}};var xa=Gr;var Qr=class extends Tt{constructor({analyticsInstance:t,name:r=o.Queues.IdentityMessage}){super({analyticsInstance:t,flushTo:t.config.identityEndpoint,name:r})}};var ba=Qr;var vd=[o.Queues.Events,o.Queues.IdentityMessage,o.Queues.Messages,o.Keys.ChannelId,o.Keys.Contexts,o.Keys.Identity,o.Keys.PrevEmailAddressHash,o.Keys.StorageVersion];function _a(){let e=document.cookie.split(";");if(e.length)for(let t of e){let[r]=t.split("=");vd.includes(r.trim())&&(document.cookie=`${r}=; expires=Thu, 01 Jan 1970 00:00:00 UTC`)}}var Kr=$(Ua());function zr(e){return typeof e!="object"||e===null?e:Array.isArray(e)?e.map(zr).sort():Object.keys(e).sort().reduce((t,r)=>(t[r]=zr(e[r]),t),{})}function cf(e){if(typeof e=="object"){let t=JSON.stringify(zr(e));return(0,Kr.default)().update(t).digest("hex")}return(0,Kr.default)().update(e).digest("hex")}var Ne=cf;var Yr=1,uf=[[1,()=>{let e=S(o.Keys.Contexts);e&&!Array.isArray(e[0])&&Fe(new Map)}]];function lf(){let e=S(o.Keys.StorageVersion);return e?parseFloat(e):0}function df(e=Yr){return I(o.Keys.StorageVersion,e.toString())}function Va(){let e=lf();return e===Yr||(uf.forEach(([t,r])=>{t>e&&r()}),df(Yr)),!0}var ff=[o.ApplicationId.Blog,o.ApplicationId.Custom,o.ApplicationId,o.ApplicationId.Form,o.ApplicationId.Page,o.ApplicationId.WebContent],St=e=>t=>e.map(r=>{if(typeof r=="function")return r(t)}).filter(Boolean),pf=e=>{let t="";return["string","number","boolean"].includes(typeof e)||(t="Attribute must be a String, Number, or Boolean."),t},Ba=e=>t=>{let r="";return String(t).length||(r=`${e} is required.`),r},mf=e=>t=>{let r="";return typeof t!="string"&&(r=`${e} must be a string.`),r},Jr=(e=qo)=>t=>{let r="";return String(t).length>e&&(r=`${t} exceeds maximum length of ${e}`),r},yf=(e=Po)=>({eventId:t,eventProps:r={}})=>{let n="";return Object.keys(r).length>e&&(n=`The Event ${t} attributes list exceeds maximum length of ${e}`),n},hf=e=>e.forEach(t=>console.error(new Error(t))),Wa=({applicationId:e,eventId:t,eventProps:r})=>{let n=St([mf("eventId"),Ba("eventId"),Jr()]),i=St([yf()]),s=St([Ba("eventPropKey"),Jr()]),c=[];ff.includes(e)||(c=[pf,Jr(ko)]);let a=St(c),u=[];if(u=u.concat(n(t)),r){u=u.concat(i({eventId:t,eventProps:r}));for(let l in r)u=u.concat(s(l),a(r[l]))}return u.length?(hf(u),!1):!0};var ve=window||global,Ue=class Ue{constructor(t,r){this._disposed=!1;this._pluginDisposers=[];this.config={channelId:"",dataSourceId:"",endpointUrl:"",flushInterval:0,identity:{emailAddressHashed:""},identityEndpoint:"",projectId:"",userId:""};this.middlewares=[];this.version="";if(this._isTrackingDisabled())return this;this._disposed=!1;let n=(t.endpointUrl||"").replace(/\/$/,"");return this.config=Object.assign(t,{endpointUrl:n,flushInterval:t.flushInterval||2e3,identityEndpoint:`${n}/identity`}),this.version=_o,_a(),r.forEach(i=>this.registerMiddleware(i)),this._queueFlushService=new pa(this.config),this._initializeEventQueue(),this._initializeEventMessageQueue(),this._initializeIdentityMessageQueue(),Va(),this._pluginDisposers=fa.map(i=>i(this)),this._ensureIntegrity(),this}static create(t,r=[]){let n=new Ue(t,r),i=window.Liferay;ve.Analytics=n,ve.Analytics.create=Ue.create,ve.Analytics.dispose=Ue.dispose;let s="",c="";return i&&i.ThemeDisplay&&i.ThemeDisplay.getUserEmailAddress&&i.ThemeDisplay.getUserEmailAddress().length&&i.ThemeDisplay.getUserName&&i.ThemeDisplay.getUserName().length&&(s=i.ThemeDisplay.getUserEmailAddress(),c=i.ThemeDisplay.getUserName()),n.setIdentity({email:s,name:c}),n}static dispose(){let t=ve.Analytics;t&&!t._isTrackingDisabled()&&t._disposeInternal()}getEvents(){return this[o.Queues.Events].getItems()}registerPlugin(t){typeof t=="function"&&t(this)}registerMiddleware(t){this._isTrackingDisabled()||typeof t=="function"&&xr.push(t)}reset(){this._isTrackingDisabled()||(this[o.Queues.Events].reset(),this.resetContext())}resetContext(){let t=this._getContext(),r=new Map;r.set(Ne(t),t),Fe(r)}track(t,r,n={}){let{assetType:i,...s}=r||{},c={applicationId:o.ApplicationId.CustomEvent,...n},a=i||c.applicationId;if(this._isTrackingDisabled()||this._disposed||!Wa({applicationId:a,eventId:t,eventProps:s}))return;let u=this._getCurrentContextHash();this[o.Queues.Events].addItem(jo(t,a,s,u))}send(t,r,n){r&&this.track(t,n,{applicationId:r})}setIdentity(t){if(this._isTrackingDisabled())return;let r={emailAddressHashed:t.email?Ne(t.email.toLowerCase()):""};this.config.identity=r;let n=this._getUserId();return this._sendIdentity(r,n),Promise.resolve(n)}_disposeInternal(){this._disposed=!0,this._queueFlushService&&this._queueFlushService.dispose(),this._pluginDisposers.length&&this._pluginDisposers.filter(t=>typeof t=="function").forEach(t=>t())}_ensureIntegrity(){let t=S(o.Keys.UserId);t&&this._setCookie(o.Keys.UserId,t)}_getCurrentContextHash(){let t=this._getContext(),r=Ne(t),n=It();return n.has(r)||(n.set(r,t),Fe(n)),r}_getContext(){let{context:t}=xr.reduce((n,i)=>i(n),{context:{channelId:this.config.channelId}}),r={...t};for(let n in r)r[n]=String(r[n]).slice(0,Do);return r}_getIdentityHash(t,r,n){return Ne({dataSourceId:t,identity:r,userId:n})}_getUserId(){let t=S(o.Keys.UserId),{emailAddressHashed:r}=this.config.identity,n=S(o.Keys.PrevEmailAddressHash);return t||(t=this._generateUserId()),r&&r!==n&&(n&&(t=this._generateUserId()),I(o.Keys.PrevEmailAddressHash,r)),t}_generateUserId(){let t=Oe();return I(o.Keys.UserId,t),this._setCookie(o.Keys.UserId,t),va(o.Keys.Identity),t}_isTrackingDisabled(){return ve[o.Keys.DisableTracking]||navigator.doNotTrack==="1"||navigator.doNotTrack==="yes"}_sendIdentity(t,r){let{dataSourceId:n}=this.config,{channelId:i}=this._getContext(),s=this._getIdentityHash(n,t,r),c=S(o.Keys.Identity),a=S(o.Keys.ChannelId);if(s!==c||i!==a){let{emailAddressHashed:u}=t;I(o.Keys.ChannelId,i),I(o.Keys.Identity,s),this[o.Queues.IdentityMessage].addItem({channelId:i,dataSourceId:n,emailAddressHashed:u,id:s,userId:r})}}_setCookie(t,r){let n=window.Liferay,i=new Date;if(i.setDate(i.getDate()+365),n?.Util?.Cookie)n.Util.Cookie.set?.(t,r,n?.Util?.Cookie?.TYPES?.PERSONALIZATION,{expires:i,secure:!0});else{let s=n?.ThemeDisplay?.getPathContext?.()||"/";document.cookie=`${t}=${r}; expires=${i.toUTCString()}; path=${s}; Secure`}}_initializeEventQueue(){let t=new xa({analyticsInstance:this});this[o.Queues.Events]=t,this._queueFlushService.addQueue(t,{priority:1})}_initializeEventMessageQueue(){let t=new Ea({analyticsInstance:this});this[o.Queues.Messages]=t,this._queueFlushService.addQueue(t,{priority:1})}_initializeIdentityMessageQueue(){let t=new ba({analyticsInstance:this});this[o.Queues.IdentityMessage]=t,this._queueFlushService.addQueue(t,{priority:10})}};o.Queues.Events,o.Queues.Messages,o.Queues.IdentityMessage;var Xr=Ue;ve.Analytics={create:Xr.create};})();
//# sourceMappingURL=analytics-all-min.js.map
