vendor: 5,256 bytes, line 1
1var Sentry=function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=function(e){return e&&e.Math==Math&&e},n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")(),r={},o=function(e){try{return!!e()}catch(e){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),a=s,c=Function.prototype.call,u=a?c.bind(c):function(){return c.apply(c,arguments)},l={},d={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,f=p&&!d.call({1:2},1);l.f=f?function(e){var t=p(this,e);return!!t&&t.enumerable}:d;var h,m,g=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},v=s,y=Function.prototype,_=y.call,b=v&&y.bind.bind(_,_),S=v?b:function(e){return function(){return _.apply(e,arguments)}},w=S,k=w({}.toString),E=w("".slice),x=function(e){return E(k(e),8,-1)},T=o,I=x,C=Object,R=S("".split),M=T((function(){return!C("z").propertyIsEnumerable(0)}))?function(e){return"String"==I(e)?R(e,""):C(e)}:C,A=function(e){return null==e},O=A,L=TypeError,P=function(e){if(O(e))throw L("Can't call method on "+e);return e},D=M,N=P,F=function(e){return D(N(e))},$="object"==typeof document&&document.all,U={all:$,IS_HTMLDDA:void 0===$&&void 0!==$},j=U.all,B=U.IS_HTMLDDA?function(e){return"function"==typeof e||e===j}:function(e){return"function"==typeof e},H=B,z=U.all,q=U.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:H(e)||e===z}:function(e){return"object"==typeof e?null!==e:H(e)},W=n,V=B,G=function(e,t){return arguments.length<2?(n=W[e],V(n)?n:void 0):W[e]&&W[e][t];var n},K=S({}.isPrototypeOf),J=G("navigator","userAgent")||"",Y=n,X=J,Z=Y.process,Q=Y.Deno,ee=Z&&Z.versions||Q&&Q.version,te=ee&&ee.v8;te&&(m=(h=te.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!m&&X&&(!(h=X.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=X.match(/Chrome\/(\d+)/))&&(m=+h[1]);var ne=m,re=ne,oe=o,ie=!!Object.getOwnPropertySymbols&&!oe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&re&&re<41})),se=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=G,ce=B,ue=K,le=Object,de=se?function(e){return"symbol"==typeof e}:function(e){var t=ae("Symbol");return ce(t)&&ue(t.prototype,le(e))},pe=String,fe=function(e){try{return pe(e)}catch(e){return"Object"}},he=B,me=fe,ge=TypeError,ve=function(e){if(he(e))return e;throw ge(me(e)+" is not a function")},ye=ve,_e=A,be=function(e,t){var n=e[t];return _e(n)?void 0:ye(n)},Se=u,we=B,ke=q,Ee=TypeError,xe={exports:{}},Te=n,Ie=Object.defineProperty,Ce=function(e,t){try{Ie(Te,e,{value:t,configurable:!0,writable:!0})}catch(n){Te[e]=t}return t},Re=Ce,Me="__core-js_shared__",Ae=n[Me]||Re(Me,{}),Oe=Ae;(xe.exports=function(e,t){return Oe[e]||(Oe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Le=xe.exports,Pe=P,De=Object,Ne=function(e){return De(Pe(e))},Fe=Ne,$e=S({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return $e(Fe(e),t)},je=S,Be=0,He=Math.random(),ze=je(1..toString),qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ze(++Be+He,36)},We=n,Ve=Ue,Ge=qe,Ke=ie,Je=se,Ye=Le("wks"),Xe=We.Symbol,Ze=Xe&&Xe.for,Qe=Je?Xe:Xe&&Xe.withoutSetter||Ge,et=function(e){if(!Ve(Ye,e)||!Ke&&"string"!=typeof Ye[e]){var t="Symbol."+e;Ke&&Ve(Xe,e)?Ye[e]=Xe[e]:Ye[e]=Je&&Ze?Ze(t):Qe(t)}return Ye[e]},tt=u,nt=q,rt=de,ot=be,it=function(e,t){var n,r;if("string"===t&&we(n=e.toString)&&!ke(r=Se(n,e)))return r;if(we(n=e.valueOf)&&!ke(r=Se(n,e)))return r;if("string"!==t&&we(n=e.toString)&&!ke(r=Se(n,e)))return r;throw Ee("Can't convert object to primitive value")},st=TypeError,at=et("toPrimitive"),ct=function(e,t){if(!nt(e)||rt(e))return e;var n,r=ot(e,at);if(r){if(void 0===t&&(t="default"),n=tt(r,e,t),!nt(n)||rt(n))return n;throw st("Can't convert object to primitive value")}return void 0===t&&(t="number"),it(e,t)},ut=ct,lt=de,dt=function(e){var t=ut(e,"string");return lt(t)?t:t+""},pt=q,ft=n.document,ht=pt(ft)&&pt(ft.createElement),mt=function(e){return ht?ft.createElement(e):{}},gt=mt,vt=!i&&!o((function(){return 7!=Object.defineProperty(gt("div"),"a",{get:function(){return 7}}).a})),yt=i,_t=u,bt=l,St=g,wt=F,kt=dt,Et=Ue,xt=vt,Tt=Object.getOwnPropertyDescriptor;r.f=yt?Tt:function(e,t){if(e=wt(e),t=kt(t),xt)try{return Tt(e,t)}catch(e){}if(Et(e,t))return St(!_t(bt.f,e,t),e[t])};var It={},Ct=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=q,Mt=String,At=TypeError,Ot=function(e){if(Rt(e))return e;throw At(Mt(e)+" is not an object")},Lt=i,Pt=vt,Dt=Ct,Nt=Ot,Ft=dt,$t=TypeError,Ut=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,Bt="enumerable",Ht="configurable",zt="writable";It.f=Lt?Dt?function(e,t,n){if(Nt(e),t=Ft(t),Nt(n),"function"==typeof e&&"prototype"===t&&"value"in n&&zt in n&&!n[zt]){var r=jt(e,t);
1r&&r[zt]&&(e[t]=n.value,n={configurable:Ht in n?n[Ht]:r[Ht],enumerable:Bt in n?n[Bt]:r[Bt],writable:!1})}return Ut(e,t,n)}:Ut:function(e,t,n){if(Nt(e),t=Ft(t),Nt(n),Pt)try{return Ut(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $t("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var qt=It,Wt=g,Vt=i?function(e,t,n){return qt.f(e,t,Wt(1,n))}:function(e,t,n){return e[t]=n,e},Gt={exports:{}},Kt=i,Jt=Ue,Yt=Function.prototype,Xt=Kt&&Object.getOwnPropertyDescriptor,Zt=Jt(Yt,"name"),Qt={PROPER:Zt&&"something"===function(){}.name,CONFIGURABLE:Zt&&(!Kt||Kt&&Xt(Yt,"name").configurable)},en=B,tn=Ae,nn=S(Function.toString);en(tn.inspectSource)||(tn.inspectSource=function(e){return nn(e)});var rn,on,sn,an=tn.inspectSource,cn=B,un=n.WeakMap,ln=cn(un)&&/native code/.test(String(un)),dn=qe,pn=Le("keys"),fn=function(e){return pn[e]||(pn[e]=dn(e))},hn={},mn=ln,gn=n,vn=q,yn=Vt,_n=Ue,bn=Ae,Sn=fn,wn=hn,kn="Object already initialized",En=gn.TypeError,xn=gn.WeakMap;if(mn||bn.state){var Tn=bn.state||(bn.state=new xn);Tn.get=Tn.get,Tn.has=Tn.has,Tn.set=Tn.set,rn=function(e,t){if(Tn.has(e))throw En(kn);return t.facade=e,Tn.set(e,t),t},on=function(e){return Tn.get(e)||{}},sn=function(e){return Tn.has(e)}}else{var In=Sn("state");wn[In]=!0,rn=function(e,t){if(_n(e,In))throw En(kn);return t.facade=e,yn(e,In,t),t},on=function(e){return _n(e,In)?e[In]:{}},sn=function(e){return _n(e,In)}}var Cn={set:rn,get:on,has:sn,enforce:function(e){return sn(e)?on(e):rn(e,{})},getterFor:function(e){return function(t){var n;
vendor: 6,535 bytes, line 1
1if(!vn(t)||(n=on(t)).type!==e)throw En("Incompatible receiver, "+e+" required");return n}}},Rn=o,Mn=B,An=Ue,On=i,Ln=Qt.CONFIGURABLE,Pn=an,Dn=Cn.enforce,Nn=Cn.get,Fn=Object.defineProperty,$n=On&&!Rn((function(){return 8!==Fn((function(){}),"length",{value:8}).length})),Un=String(String).split("String"),jn=Gt.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!An(e,"name")||Ln&&e.name!==t)&&(On?Fn(e,"name",{value:t,configurable:!0}):e.name=t),$n&&n&&An(n,"arity")&&e.length!==n.arity&&Fn(e,"length",{value:n.arity});try{n&&An(n,"constructor")&&n.constructor?On&&Fn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Dn(e);return An(r,"source")||(r.source=Un.join("string"==typeof t?t:"")),e};Function.prototype.toString=jn((function(){return Mn(this)&&Nn(this).source||Pn(this)}),"toString");var Bn,Hn=Gt.exports,zn=B,qn=It,Wn=Hn,Vn=Ce,Gn=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(zn(n)&&Wn(n,i,r),r.global)o?e[t]=n:Vn(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:qn.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Kn={},Jn=Math.ceil,Yn=Math.floor,Xn=Math.trunc||function(e){var t=+e;return(t>0?Yn:Jn)(t)},Zn=Xn,Qn=function(e){var t=+e;return t!=t||0===t?0:Zn(t)},er=Qn,tr=Math.max,nr=Math.min,rr=function(e,t){var n=er(e);return n<0?tr(n+t,0):nr(n,t)},or=Qn,ir=Math.min,sr=function(e){return e>0?ir(or(e),9007199254740991):0},ar=function(e){return sr(e.length)},cr=F,ur=rr,lr=ar,dr={indexOf:(Bn=!1,function(e,t,n){var r,o=cr(e),i=lr(o),s=ur(n,i);if(Bn&&t!=t){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((Bn||s in o)&&o[s]===t)return Bn||s||0;return!Bn&&-1})},pr=Ue,fr=F,hr=dr.indexOf,mr=hn,gr=S([].push),vr=function(e,t){var n,r=fr(e),o=0,i=[];for(n in r)!pr(mr,n)&&pr(r,n)&&gr(i,n);for(;t.length>o;)pr(r,n=t[o++])&&(~hr(i,n)||gr(i,n));return i},yr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_r=vr,br=yr.concat("length","prototype");Kn.f=Object.getOwnPropertyNames||function(e){return _r(e,br)};var Sr={};Sr.f=Object.getOwnPropertySymbols;var wr=G,kr=Kn,Er=Sr,xr=Ot,Tr=S([].concat),Ir=wr("Reflect","ownKeys")||function(e){var t=kr.f(xr(e)),n=Er.f;return n?Tr(t,n(e)):t},Cr=Ue,Rr=Ir,Mr=r,Ar=It,Or=function(e,t,n){for(var r=Rr(t),o=Ar.f,i=Mr.f,s=0;s<r.length;s++){var a=r[s];Cr(e,a)||n&&Cr(n,a)||o(e,a,i(t,a))}},Lr=o,Pr=B,Dr=/#|\.prototype\./,Nr=function(e,t){var n=$r[Fr(e)];return n==jr||n!=Ur&&(Pr(t)?Lr(t):!!t)},Fr=Nr.normalize=function(e){return String(e).replace(Dr,".").toLowerCase()},$r=Nr.data={},Ur=Nr.NATIVE="N",jr=Nr.POLYFILL="P",Br=Nr,Hr=n,zr=r.f,qr=Vt,Wr=Gn,Vr=Ce,Gr=Or,Kr=Br,Jr=function(e,t){var n,r,o,i,s,a=e.target,c=e.global,u=e.stat;if(n=c?Hr:u?Hr[a]||Vr(a,{}):(Hr[a]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(s=zr(n,r))&&s.value:n[r],!Kr(c?r:a+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gr(i,o)}(e.sham||o&&o.sham)&&qr(i,"sham",!0),Wr(n,r,i,e)}},Yr=s,Xr=Function.prototype,Zr=Xr.apply,Qr=Xr.call,eo="object"==typeof Reflect&&Reflect.apply||(Yr?Qr.bind(Zr):function(){return Qr.apply(Zr,arguments)}),to=B,no=String,ro=TypeError,oo=S,io=Ot,so=function(e){if("object"==typeof e||to(e))return e;throw ro("Can't set "+no(e)+" as a prototype")},ao=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=oo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return io(n),so(r),t?e(n,r):n.__proto__=r,n}}():void 0),co=It.f,uo=B,lo=q,po=ao,fo=function(e,t,n){var r,o;return po&&uo(r=t.constructor)&&r!==n&&lo(o=r.prototype)&&o!==n.prototype&&po(e,o),e},ho={};ho[et("toStringTag")]="z";var mo="[object z]"===String(ho),go=B,vo=x,yo=et("toStringTag"),_o=Object,bo="Arguments"==vo(function(){return arguments}()),So=mo?vo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=_o(e),yo))?n:bo?vo(t):"Object"==(r=vo(t))&&go(t.callee)?"Arguments":r},wo=So,ko=String,Eo=function(e){if("Symbol"===wo(e))throw TypeError("Cannot convert a Symbol value to a string");return ko(e)},xo=Eo,To=function(e,t){return void 0===e?arguments.length<2?"":t:xo(e)},Io=q,Co=Vt,Ro=Error,Mo=S("".replace),Ao=String(Ro("zxcasd").stack),Oo=/\n\s*at [^:]*:[^\n]*/,Lo=Oo.test(Ao),Po=function(e,t){if(Lo&&"string"==typeof e&&!Ro.prepareStackTrace)for(;t--;)e=Mo(e,Oo,"");return e},Do=g,No=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Do(1,7)),7!==e.stack)})),Fo=G,$o=Ue,Uo=Vt,jo=K,Bo=ao,Ho=Or,zo=function(e,t,n){n in e||co(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},qo=fo,Wo=To,Vo=function(e,t){Io(t)&&"cause"in t&&Co(e,"cause",t.cause)},Go=Po,Ko=No,Jo=i,Yo=Jr,Xo=eo,Zo=function(e,t,n,r){var o="stackTraceLimit",i=r?2:1,s=e.split("."),a=s[s.length-1],c=Fo.apply(null,s);if(c){var u=c.prototype;if($o(u,"cause")&&delete u.cause,!n)return c;var l=Fo("Error"),d=t((function(e,t){var n=Wo(r?t:e,void 0),o=r?new c(e):new c;return void 0!==n&&Uo(o,"message",n),Ko&&Uo(o,"stack",Go(o.stack,2)),this&&jo(u,this)&&qo(o,this,d),arguments.length>i&&Vo(o,arguments[i]),o}));d.prototype=u,"Error"!==a?Bo?Bo(d,l):Ho(d,l,{name:!0}):Jo&&o in c&&(zo(d,c,o),zo(d,c,"prepareStackTrace")),Ho(d,c);try{u.name!==a&&Uo(u,"name",a),u.constructor=d}catch(e){}return d}},Qo="WebAssembly",ei=n[Qo],ti=7!==Error("e",{cause:7}).cause,ni=function(e,t){var n={};n[e]=Zo(e,t,ti),Yo({global:!0,constructor:!0,arity:1,forced:ti},n)},ri=function(e,t){if(ei&&ei[e]){var n={};n[e]=Zo(Qo+"."+e,t,ti),Yo({target:Qo,stat:!0,constructor:!0,arity:1,forced:ti},n)}};ni("Error",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("EvalError",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("RangeError",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("ReferenceError",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("SyntaxError",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("TypeError",(function(e){return function(t){return Xo(e,this,arguments)}})),ni("URIError",(function(e){return function(t){return Xo(e,this,arguments)}})),ri("CompileError",(function(e){return function(t){return Xo(e,this,arguments)}})),ri("LinkError",(function(e){return function(t){return Xo(e,this,arguments)}}
vendor: 4,221 bytes, line 1
1)),ri("RuntimeError",(function(e){return function(t){return Xo(e,this,arguments)}}));var oi=x,ii=Array.isArray||function(e){return"Array"==oi(e)},si=S([].slice),ai=Jr,ci=G,ui=eo,li=u,di=S,pi=o,fi=ii,hi=B,mi=q,gi=de,vi=si,yi=ie,_i=ci("JSON","stringify"),bi=di(/./.exec),Si=di("".charAt),wi=di("".charCodeAt),ki=di("".replace),Ei=di(1..toString),xi=/[\uD800-\uDFFF]/g,Ti=/^[\uD800-\uDBFF]$/,Ii=/^[\uDC00-\uDFFF]$/,Ci=!yi||pi((function(){var e=ci("Symbol")();return"[null]"!=_i([e])||"{}"!=_i({a:e})||"{}"!=_i(Object(e))})),Ri=pi((function(){return'"\\udf06\\ud834"'!==_i("\udf06\ud834")||'"\\udead"'!==_i("\udead")})),Mi=function(e,t){var n=vi(arguments),r=t;if((mi(t)||void 0!==e)&&!gi(e))return fi(t)||(t=function(e,t){if(hi(r)&&(t=li(r,this,e,t)),!gi(t))return t}),n[1]=t,ui(_i,null,n)},Ai=function(e,t,n){var r=Si(n,t-1),o=Si(n,t+1);return bi(Ti,e)&&!bi(Ii,o)||bi(Ii,e)&&!bi(Ti,r)?"\\u"+Ei(wi(e,0),16):e};_i&&ai({target:"JSON",stat:!0,arity:3,forced:Ci||Ri},{stringify:function(e,t,n){var r=vi(arguments),o=ui(Ci?Mi:_i,null,r);return Ri&&"string"==typeof o?ki(o,xi,Ai):o}});var Oi="process"==x(n.process),Li=It.f,Pi=Ue,Di=et("toStringTag"),Ni=function(e,t,n){e&&!n&&(e=e.prototype),e&&!Pi(e,Di)&&Li(e,Di,{configurable:!0,value:t})},Fi=G,$i=It,Ui=i,ji=et("species"),Bi=K,Hi=TypeError,zi=function(e,t){if(Bi(t,e))return e;throw Hi("Incorrect invocation")},qi=S,Wi=o,Vi=B,Gi=So,Ki=an,Ji=function(){},Yi=[],Xi=G("Reflect","construct"),Zi=/^\s*(?:class|function)\b/,Qi=qi(Zi.exec),es=!Zi.exec(Ji),ts=function(e){if(!Vi(e))return!1;try{return Xi(Ji,Yi,e),!0}catch(e){return!1}},ns=function(e){if(!Vi(e))return!1;switch(Gi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return es||!!Qi(Zi,Ki(e))}catch(e){return!0}};ns.sham=!0;var rs,os,is,ss,as=!Xi||Wi((function(){var e;return ts(ts.call)||!ts(Object)||!ts((function(){e=!0}))||e}))?ns:ts,cs=as,us=fe,ls=TypeError,ds=Ot,ps=function(e){if(cs(e))return e;throw ls(us(e)+" is not a constructor")},fs=A,hs=et("species"),ms=function(e,t){var n,r=ds(e).constructor;return void 0===r||fs(n=ds(r)[hs])?t:ps(n)},gs=x,vs=S,ys=function(e){if("Function"===gs(e))return vs(e)},_s=ve,bs=s,Ss=ys(ys.bind),ws=function(e,t){return _s(e),void 0===t?e:bs?Ss(e,t):function(){return e.apply(t,arguments)}},ks=G("document","documentElement"),Es=TypeError,xs=function(e,t){if(e<t)throw Es("Not enough arguments");return e},Ts=/(?:ipad|iphone|ipod).*applewebkit/i.test(J),Is=n,Cs=eo,Rs=ws,Ms=B,As=Ue,Os=o,Ls=ks,Ps=si,Ds=mt,Ns=xs,Fs=Ts,$s=Oi,Us=Is.setImmediate,js=Is.clearImmediate,Bs=Is.process,Hs=Is.Dispatch,zs=Is.Function,qs=Is.MessageChannel,Ws=Is.String,Vs=0,Gs={},Ks="onreadystatechange";try{rs=Is.location}catch(e){}var Js=function(e){if(As(Gs,e)){var t=Gs[e];delete Gs[e],t()}},Ys=function(e){return function(){Js(e)}},Xs=function(e){Js(e.data)},Zs=function(e){Is.postMessage(Ws(e),rs.protocol+"//"+rs.host)};Us&&js||(Us=function(e){Ns(arguments.length,1);var t=Ms(e)?e:zs(e),n=Ps(arguments,1);return Gs[++Vs]=function(){Cs(t,void 0,n)},os(Vs),Vs},js=function(e){delete Gs[e]},$s?os=function(e){Bs.nextTick(Ys(e))}:Hs&&Hs.now?os=function(e){Hs.now(Ys(e))}:qs&&!Fs?(ss=(is=new qs).port2,is.port1.onmessage=Xs,os=Rs(ss.postMessage,ss)):Is.addEventListener&&Ms(Is.postMessage)&&!Is.importScripts&&rs&&"file:"!==rs.protocol&&!Os(Zs)?(os=Zs,Is.addEventListener("message",Xs,!1)):os=Ks in Ds("script")?function(e){Ls.appendChild(Ds("script"))[Ks]=function(){Ls.removeChild(this),Js(e)}}:function(e){setTimeout(Ys(e),0)});var Qs,ea,ta,na,ra,oa,ia,sa,aa={set:Us},ca=n,ua=/ipad|iphone|ipod/i.test(J)&&void 0!==ca.Pebble,la=/web0s(?!.*chrome)/i.test(J),da=n,pa=ws,fa=r.f,ha=aa.set,ma=Ts,ga=ua,va=la,ya=Oi,_a=da.MutationObserver||da.WebKitMutationObserver,ba=da.document,Sa=da.process,wa=da.Promise,ka=fa(da,"queueMicrotask"),Ea=ka&&ka.value;Ea||(Qs=function(){var e,t;for(ya&&(e=Sa.domain)&&e.exit();ea;){t=ea.fn,ea=ea.next;try{t()}catch(e){throw ea?na():ta=void 0,e}}ta=void 0,e&&e.enter()},ma||ya||va||!_a||!ba?!ga&&wa&&wa.resolve?((ia=wa.resolve(void 0)).constructor=wa,sa=pa(ia.then,ia),na=function(){sa(Qs)}):ya?na=function(){Sa.nextTick(Qs)}:(ha=pa(ha,da),na=function(){ha(Qs)}):(ra=!0,oa=ba.createTextNode(""),new _a(Qs).observe(oa,{characterData:!0}
vendor: 4,703 bytes, line 1
1),na=function(){oa.data=ra=!ra}));var xa=Ea||function(e){var t={fn:e,next:void 0};ta&&(ta.next=t),ea||(ea=t,na()),ta=t},Ta=n,Ia=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ca=function(){this.head=null,this.tail=null};Ca.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var Ra=Ca,Ma=n.Promise,Aa="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Oa=!Aa&&!Oi&&"object"==typeof window&&"object"==typeof document,La=n,Pa=Ma,Da=B,Na=Br,Fa=an,$a=et,Ua=Oa,ja=Aa,Ba=ne;Pa&&Pa.prototype;var Ha=$a("species"),za=!1,qa=Da(La.PromiseRejectionEvent),Wa=Na("Promise",(function(){var e=Fa(Pa),t=e!==String(Pa);if(!t&&66===Ba)return!0;if(!Ba||Ba<51||!/native code/.test(e)){var n=new Pa((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[Ha]=r,!(za=n.then((function(){}))instanceof r))return!0}return!t&&(Ua||ja)&&!qa})),Va={CONSTRUCTOR:Wa,REJECTION_EVENT:qa,SUBCLASSING:za},Ga={},Ka=ve,Ja=TypeError,Ya=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw Ja("Bad Promise constructor");t=e,n=r})),this.resolve=Ka(t),this.reject=Ka(n)};Ga.f=function(e){return new Ya(e)};var Xa,Za,Qa,ec=Jr,tc=Oi,nc=n,rc=u,oc=Gn,ic=ao,sc=Ni,ac=function(e){var t=Fi(e),n=$i.f;Ui&&t&&!t[ji]&&n(t,ji,{configurable:!0,get:function(){return this}})},cc=ve,uc=B,lc=q,dc=zi,pc=ms,fc=aa.set,hc=xa,mc=function(e,t){var n=Ta.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))},gc=Ia,vc=Ra,yc=Cn,_c=Ma,bc=Ga,Sc="Promise",wc=Va.CONSTRUCTOR,kc=Va.REJECTION_EVENT,Ec=Va.SUBCLASSING,xc=yc.getterFor(Sc),Tc=yc.set,Ic=_c&&_c.prototype,Cc=_c,Rc=Ic,Mc=nc.TypeError,Ac=nc.document,Oc=nc.process,Lc=bc.f,Pc=Lc,Dc=!!(Ac&&Ac.createEvent&&nc.dispatchEvent),Nc="unhandledrejection",Fc=function(e){var t;return!(!lc(e)||!uc(t=e.then))&&t},$c=function(e,t){var n,r,o,i=t.value,s=1==t.state,a=s?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(s||(2===t.rejection&&zc(t),t.rejection=1),!0===a?n=i:(l&&l.enter(),n=a(i),l&&(l.exit(),o=!0)),n===e.promise?u(Mc("Promise-chain cycle")):(r=Fc(n))?rc(r,n,c,u):c(n)):u(i)}catch(e){l&&!o&&l.exit(),u(e)}},Uc=function(e,t){e.notified||(e.notified=!0,hc((function(){for(var n,r=e.reactions;n=r.get();)$c(n,e);e.notified=!1,t&&!e.rejection&&Bc(e)})))},jc=function(e,t,n){var r,o;Dc?((r=Ac.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),nc.dispatchEvent(r)):r={promise:t,reason:n},!kc&&(o=nc["on"+e])?o(r):e===Nc&&mc("Unhandled promise rejection",n)},Bc=function(e){rc(fc,nc,(function(){var t,n=e.facade,r=e.value;if(Hc(e)&&(t=gc((function(){tc?Oc.emit("unhandledRejection",r,n):jc(Nc,n,r)})),e.rejection=tc||Hc(e)?2:1,t.error))throw t.value}))},Hc=function(e){return 1!==e.rejection&&!e.parent},zc=function(e){rc(fc,nc,(function(){var t=e.facade;tc?Oc.emit("rejectionHandled",t):jc("rejectionhandled",t,e.value)}))},qc=function(e,t,n){return function(r){e(t,r,n)}},Wc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Uc(e,!0))},Vc=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Mc("Promise can't be resolved itself");var r=Fc(t);r?hc((function(){var n={done:!1};try{rc(r,t,qc(Vc,n,e),qc(Wc,n,e))}catch(t){Wc(n,t,e)}})):(e.value=t,e.state=1,Uc(e,!1))}catch(t){Wc({done:!1},t,e)}}};if(wc&&(Cc=function(e){dc(this,Rc),cc(e),rc(Xa,this);var t=xc(this);try{e(qc(Vc,t),qc(Wc,t))}catch(e){Wc(t,e)}},Rc=Cc.prototype,(Xa=function(e){Tc(this,{type:Sc,done:!1,notified:!1,parent:!1,reactions:new vc,rejection:!1,state:0,value:void 0})}).prototype=oc(Rc,"then",(function(e,t){var n=xc(this),r=Lc(pc(this,Cc));return n.parent=!0,r.ok=!uc(e)||e,r.fail=uc(t)&&t,r.domain=tc?Oc.domain:void 0,0==n.state?n.reactions.add(r):hc((function(){$c(r,n)})),r.promise})),Za=function(){var e=new Xa,t=xc(e);this.promise=e,this.resolve=qc(Vc,t),this.reject=qc(Wc,t)},bc.f=Lc=function(e){return e===Cc||undefined===e?new Za(e):Pc(e)},uc(_c)&&Ic!==Object.prototype)){Qa=Ic.then,Ec||oc(Ic,"then",(function(e,t){var n=this;return new Cc((function(e,t){rc(Qa,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Ic.constructor}catch(e){}ic&&ic(Ic,Rc)}ec({global:!0,constructor:!0,wrap:!0,forced:wc},{Promise:Cc}),sc(Cc,Sc,!1),ac(Sc);var Gc={},Kc=Gc,Jc=et("iterator"),Yc=Array.prototype,Xc=function(e){return void 0!==e&&(Kc.Array===e||Yc[Jc]===e)},Zc=So,Qc=be,eu=A,tu=Gc,nu=et("iterator"),ru=function(e){if(!eu(e))return Qc(e,nu)||Qc(e,"@@iterator")||tu[Zc(e)]},ou=u,iu=ve,su=Ot,au=fe,cu=ru,uu=TypeError,lu=function(e,t){var n=arguments.length<2?cu(e):t;if(iu(n))return su(ou(n,e));throw uu(au(e)+" is not iterable")}
vendor: 7,059 bytes, line 1
1,du=u,pu=Ot,fu=be,hu=function(e,t,n){var r,o;pu(e);try{if(!(r=fu(e,"return"))){if("throw"===t)throw n;return n}r=du(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return pu(r),n},mu=ws,gu=u,vu=Ot,yu=fe,_u=Xc,bu=ar,Su=K,wu=lu,ku=ru,Eu=hu,xu=TypeError,Tu=function(e,t){this.stopped=e,this.result=t},Iu=Tu.prototype,Cu=function(e,t,n){var r,o,i,s,a,c,u,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=mu(t,l),g=function(e){return r&&Eu(r,"normal",e),new Tu(!0,e)},v=function(e){return d?(vu(e),h?m(e[0],e[1],g):m(e[0],e[1])):h?m(e,g):m(e)};if(p)r=e.iterator;else if(f)r=e;else{if(!(o=ku(e)))throw xu(yu(e)+" is not iterable");if(_u(o)){for(i=0,s=bu(e);s>i;i++)if((a=v(e[i]))&&Su(Iu,a))return a;return new Tu(!1)}r=wu(e,o)}for(c=p?e.next:r.next;!(u=gu(c,r)).done;){try{a=v(u.value)}catch(e){Eu(r,"throw",e)}if("object"==typeof a&&a&&Su(Iu,a))return a}return new Tu(!1)},Ru=et("iterator"),Mu=!1;try{var Au=0,Ou={next:function(){return{done:!!Au++}},return:function(){Mu=!0}};Ou[Ru]=function(){return this},Array.from(Ou,(function(){throw 2}))}catch(e){}var Lu=Ma,Pu=function(e,t){if(!t&&!Mu)return!1;var n=!1;try{var r={};r[Ru]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Du=Va.CONSTRUCTOR||!Pu((function(e){Lu.all(e).then(void 0,(function(){}))})),Nu=u,Fu=ve,$u=Ga,Uu=Ia,ju=Cu;Jr({target:"Promise",stat:!0,forced:Du},{all:function(e){var t=this,n=$u.f(t),r=n.resolve,o=n.reject,i=Uu((function(){var n=Fu(t.resolve),i=[],s=0,a=1;ju(e,(function(e){var c=s++,u=!1;a++,Nu(n,t,e).then((function(e){u||(u=!0,i[c]=e,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise}});var Bu=Jr,Hu=Va.CONSTRUCTOR,zu=Ma,qu=G,Wu=B,Vu=Gn,Gu=zu&&zu.prototype;if(Bu({target:"Promise",proto:!0,forced:Hu,real:!0},{catch:function(e){return this.then(void 0,e)}}),Wu(zu)){var Ku=qu("Promise").prototype.catch;Gu.catch!==Ku&&Vu(Gu,"catch",Ku,{unsafe:!0})}var Ju=u,Yu=ve,Xu=Ga,Zu=Ia,Qu=Cu;Jr({target:"Promise",stat:!0,forced:Du},{race:function(e){var t=this,n=Xu.f(t),r=n.reject,o=Zu((function(){var o=Yu(t.resolve);Qu(e,(function(e){Ju(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var el=u,tl=Ga;Jr({target:"Promise",stat:!0,forced:Va.CONSTRUCTOR},{reject:function(e){var t=tl.f(this);return el(t.reject,void 0,e),t.promise}});var nl=Ot,rl=q,ol=Ga,il=function(e,t){if(nl(e),rl(t)&&t.constructor===e)return t;var n=ol.f(e);return(0,n.resolve)(t),n.promise},sl=Jr,al=Va.CONSTRUCTOR,cl=il;G("Promise"),sl({target:"Promise",stat:!0,forced:al},{resolve:function(e){return cl(this,e)}});var ul=TypeError,ll=function(e){if(e>9007199254740991)throw ul("Maximum allowed index exceeded");return e},dl=ve,pl=Ot,fl=function(e){return{iterator:e,next:dl(pl(e).next)}},hl=u,ml=G,gl=be,vl=function(e,t,n,r){try{var o=gl(e,"return");if(o)return ml("Promise").resolve(hl(o,e)).then((function(){t(n)}),(function(e){r(e)}))}catch(e){return r(e)}t(n)},yl=u,_l=ve,bl=Ot,Sl=q,wl=ll,kl=G,El=fl,xl=vl,Tl=function(e){var t=0==e,n=1==e,r=2==e,o=3==e;return function(e,i,s){var a=El(e),c=kl("Promise"),u=a.iterator,l=a.next,d=0,p=void 0!==i;return!p&&t||_l(i),new c((function(e,a){var f=function(e){xl(u,a,e,a)},h=function(){try{if(p)try{wl(d)}catch(e){f(e)}c.resolve(bl(yl(l,u))).then((function(l){try{if(bl(l).done)t?(s.length=d,e(s)):e(!o&&(r||void 0));else{var m=l.value;try{if(p){var g=i(m,d),v=function(i){if(n)h();else if(r)i?h():xl(u,e,!1,a);else if(t)try{s[d++]=i,h()}catch(e){f(e)}else i?xl(u,e,o||m,a):h()};Sl(g)?c.resolve(g).then(v,f):v(g)}else s[d++]=m,h()}catch(e){f(e)}}}catch(e){a(e)}}),a)}catch(e){a(e)}};h()}))}},Il={forEach:Tl(1),every:Tl(2),some:Tl(3),find:Tl(4)},Cl=Il.forEach;Jr({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{forEach:function(e){return Cl(this,e)}});var Rl={},Ml=vr,Al=yr,Ol=Object.keys||function(e){return Ml(e,Al)},Ll=i,Pl=Ct,Dl=It,Nl=Ot,Fl=F,$l=Ol;Rl.f=Ll&&!Pl?Object.defineProperties:function(e,t){Nl(e);for(var n,r=Fl(t),o=$l(t),i=o.length,s=0;i>s;)Dl.f(e,n=o[s++],r[n]);return e};var Ul,jl=Ot,Bl=Rl,Hl=yr,zl=hn,ql=ks,Wl=mt,Vl="prototype",Gl="script",Kl=fn("IE_PROTO"),Jl=function(){},Yl=function(e){return"<"+Gl+">"+e+"</"+Gl+">"},Xl=function(e){e.write(Yl("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zl=function(){try{Ul=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Zl="undefined"!=typeof document?document.domain&&Ul?Xl(Ul):(t=Wl("iframe"),n="java"+Gl+":",t.style.display="none",ql.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Yl("document.F=Object")),e.close(),e.F):Xl(Ul);for(var r=Hl.length;r--;)delete Zl[Vl][Hl[r]];return Zl()};zl[Kl]=!0;var Ql,ed,td,nd=Object.create||function(e,t){var n;return null!==e?(Jl[Vl]=jl(e),n=new Jl,Jl[Vl]=null,n[Kl]=e):n=Zl(),void 0===t?n:Bl.f(n,t)},rd=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),od=Ue,id=B,sd=Ne,ad=rd,cd=fn("IE_PROTO"),ud=Object,ld=ud.prototype,dd=ad?ud.getPrototypeOf:function(e){var t=sd(e);if(od(t,cd))return t[cd];var n=t.constructor;return id(n)&&t instanceof n?n.prototype:t instanceof ud?ld:null},pd=o,fd=B,hd=q,md=dd,gd=Gn,vd=et("iterator"),yd=!1;[].keys&&("next"in(td=[].keys())?(ed=md(md(td)))!==Object.prototype&&(Ql=ed):yd=!0);var _d=!hd(Ql)||pd((function(){var e={};return Ql[vd].call(e)!==e}));_d&&(Ql={}),fd(Ql[vd])||gd(Ql,vd,(function(){return this}));var bd={IteratorPrototype:Ql,BUGGY_SAFARI_ITERATORS:yd},Sd=Jr,wd=n,kd=zi,Ed=B,xd=Vt,Td=o,Id=Ue,Cd=bd.IteratorPrototype,Rd=et("toStringTag"),Md=wd.Iterator,Ad=!Ed(Md)||Md.prototype!==Cd||!Td((function(){Md({})})),Od=function(){kd(this,Cd)};Id(Cd,Rd)||xd(Cd,Rd,"Iterator"),!Ad&&Id(Cd,"constructor")&&Cd.constructor!==Object||xd(Cd,"constructor",Od),Od.prototype=Cd,Sd({global:!0,constructor:!0,forced:Ad},{Iterator:Od});var Ld=Cu,Pd=ve,Dd=fl;Jr({target:"Iterator",proto:!0,real:!0,forced:!0},{forEach:function(e){var t=Dd(this),n=0;Pd(e),Ld(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}});var Nd=et,Fd=nd,$d=It.f,Ud=Nd("unscopables"),jd=Array.prototype;null==jd[Ud]&&$d(jd,Ud,{configurable:!0,value:Fd(null)});var Bd=function(e){jd[Ud][e]=!0},Hd=bd.IteratorPrototype,zd=nd,qd=g,Wd=Ni,Vd=Gc,Gd=function(){return this},Kd=function(e,t,n,r){var o=t+" Iterator";return e.prototype=zd(Hd,{next:qd(+!r,n)}),Wd(e,o,!1),Vd[o]=Gd,e},Jd=Jr,Yd=u,Xd=B,Zd=Kd,Qd=dd,ep=ao,tp=Ni,np=Vt,rp=Gn,op=Gc,ip=Qt.PROPER,sp=Qt.CONFIGURABLE,ap=bd.IteratorPrototype,cp=bd.BUGGY_SAFARI_ITERATORS,up=et("iterator"),lp="keys",dp="values",pp="entries",fp=function(){return this},hp=function(e,t,n,r,o,i,s){Zd(n,t,r);var a,c,u,l=function(e){if(e===o&&m)return m;if(!cp&&e in f)return f[e];switch(e){case lp:case dp:case pp:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",p=!1,f=e.prototype,h=f[up]||f["@@iterator"]||o&&f[o],m=!cp&&h||l(o),g="Array"==t&&f.entries||h;if(g&&(a=Qd(g.call(new e)))!==Object.prototype&&a.next&&(Qd(a)!==ap&&(ep?ep(a,ap):Xd(a[up])||rp(a,up,fp)),tp(a,d,!0)),ip&&o==dp&&h&&h.name!==dp&&(sp?np(f,"name",dp):(p=!0,m=function(){return Yd(h,this)}
1)),o)if(c={values:l(dp),keys:i?m:l(lp),entries:l(pp)},s)for(u in c)(cp||p||!(u in f))&&rp(f,u,c[u]);else Jd({target:t,proto:!0,forced:cp||p},c);return f[up]!==m&&rp(f,up,m,{name:o}),op[t]=m,c},mp=function(e,t){return{value:e,done:t}},gp=F,vp=Bd,yp=Gc,_p=Cn,bp=It.f,Sp=hp,wp=mp,kp=i,Ep="Array Iterator",xp=_p.set,Tp=_p.getterFor(Ep),Ip=Sp(Array,"Array",(function(e,t){xp(this,{type:Ep,target:gp(e),index:0,kind:t})}),(function(){var e=Tp(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,wp(void 0,!0)):wp("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),Cp=yp.Arguments=yp.Array;if(vp("keys"),vp("values"),vp("entries"),kp&&"values"!==Cp.name)try{bp(Cp,"name",{value:"values"})}catch(e){}var Rp=mt("span").classList,Mp=Rp&&Rp.constructor&&Rp.constructor.prototype,Ap=Mp===Object.prototype?void 0:Mp,Op=n,Lp={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Pp=Ap,Dp=Ip,Np=Vt,Fp=et,$p=Fp("iterator"),Up=Fp("toStringTag"),jp=Dp.values,Bp=function(e,t){if(e){if(e[$p]!==jp)try{Np(e,$p,jp)}catch(t){e[$p]=jp}if(e[Up]||Np(e,Up,t),Lp[t])for(var n in Dp)if(e[n]!==Dp[n])try{Np(e,n,Dp[n])}catch(t){e[n]=Dp[n]}}};for(var Hp in Lp)Bp(Op[Hp]&&Op[Hp].prototype,Hp);Bp(Pp,"DOMTokenList");var zp,qp,Wp=Gn,Vp=function(e,t,n){for(var r in t)Wp(e,r,t[r],n);return e},Gp=n,Kp=Ae,Jp=B,Yp=dd,Xp=Gn,Zp="USE_FUNCTION_CONSTRUCTOR",Qp=et("asyncIterator"),ef=Gp.AsyncIterator,tf=Kp.AsyncIteratorPrototype;if(tf)zp=tf;else if(Jp(ef))zp=ef.prototype;else if(Kp[Zp]||Gp[Zp])try{qp=Yp(Yp(Yp(Function("return async function*(){}()")()))),Yp(qp)===Object.prototype&&(zp=qp)}catch(e){}zp||(zp={}),Jp(zp[Qp])||Xp(zp,Qp,(function(){return this}));var nf=u,rf=Ia,of=Ot,sf=nd,af=Vt,cf=Vp,uf=et,lf=Cn,df=be,pf=zp,ff=mp,hf=hu,mf=G("Promise"),gf="AsyncIteratorHelper",vf="WrapForValidAsyncIterator",yf=lf.set,_f=uf("toStringTag"),bf=function(e){var t=!e,n=e?vf:gf,r=lf.getterFor(n),o=function(e){var n=rf((function(){return r(e)})),o=n.error,i=n.value;return o||t&&i.done?{exit:!0,value:o?mf.reject(i):mf.resolve(ff(void 0,!0))}:{exit:!1,value:i}},i=function(e,n){var r=function(){var r=n();if(t){e.awaiting=r;var o=function(){e.awaiting===r&&(e.awaiting=null)};r.then(o,o)}return r};return e.awaiting?e.awaiting=e.awaiting.then(r,r):r()},s=cf(sf(pf),{next:function(){var e=o(this),t=e.exit,n=e.value;return t?n:i(n,(function(){var e=rf((function(){return of(n.nextHandler(mf))})),t=e.error,r=e.value;return t&&(n.done=!0),t?mf.reject(r):mf.resolve(r)}))},return:function(){var t=o(this),n=t.exit,r=t.value;return n?r:i(r,(function(){r.done=!0;var t,n,o=r.iterator,i=rf((function(){if(r.inner)try{hf(r.inner.iterator,"return")}catch(e){return hf(o,"throw",e)}return df(o,"return")}));return t=n=i.value,i.error?mf.reject(n):void 0===t?mf.resolve(ff(void 0,!0)):(n=(i=rf((function(){return nf(t,o)}))).value,i.error?mf.reject(n):e?mf.resolve(n):mf.resolve(n).then((function(e){return of(e),ff(void 0,!0)})))}))}});return t&&af(s,_f,"Async Iterator Helper"),s},Sf=bf(!1),wf=bf(!0),kf=function(e,t){var n=t?vf:gf,r=function(t,r){r?(r.iterator=t.iterator,r.next=t.next):r=t,r.type=n,r.nextHandler=e,r.counter=0,r.done=!1,r.awaiting=null,yf(this,r)};return r.prototype=t?wf:Sf,r},Ef=Jr,xf=u,Tf=ve,If=Ot,Cf=q,Rf=fl,Mf=mp,Af=vl,Of=kf((function(e){var t=this,n=t.iterator,r=t.filterer;return new e((function(o,i){var s=function(e){t.done=!0,i(e)},a=function(e){Af(n,s,e,s)},c=function(){try{e.resolve(If(xf(t.next,n))).then((function(n){try{if(If(n).done)t.done=!0,o(Mf(void 0,!0));else{var i=n.value;try{var u=r(i,t.counter++),l=function(e){e?o(Mf(i,!1)):c()};Cf(u)?e.resolve(u).then(l,a):l(u)}catch(e){a(e)}}}catch(e){s(e)}}),s)}catch(e){s(e)}};c()}))}));Ef({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{filter:function(e){return new Of(Rf(this),{filterer:Tf(e)})}});var Lf=u,Pf=nd,Df=Vt,Nf=Vp,Ff=et,$f=Cn,Uf=be,jf=bd.IteratorPrototype,Bf=mp,Hf=hu,zf="IteratorHelper",qf="WrapForValidIterator",Wf=$f.set,Vf=Ff("toStringTag"),Gf=function(e){var t=e?qf:zf,n=$f.getterFor(t),r=Nf(Pf(jf),{next:function(){var t=n(this);if(e)return t.nextHandler();try{var r=t.done?void 0:t.nextHandler();return Bf(r,t.done)}catch(e){throw t.done=!0,e}},return:function(){var t=n(this),r=t.iterator;if(t.done=!0,e){var o=Uf(r,"return");return o?Lf(o,r):Bf(void 0,!0)}if(t.inner)try{Hf(t.inner.iterator,"return")}catch(e){return Hf(r,"throw",e)}return Hf(r,"return"),Bf(void 0,!0)}});return e||Df(r,Vf,"Iterator Helper"),r},Kf=Gf(!1),Jf=Gf(!0),Yf=function(e,t){var n=t?qf:zf,r=function(t,r){r?(r.iterator=t.iterator,r.next=t.next):r=t,r.type=n,r.nextHandler=e,r.counter=0,r.done=!1,Wf(this,r)};return r.prototype=t?Jf:Kf,r},Xf=Ot,Zf=hu,Qf=function(e,t,n,r){try{return r?t(Xf(n)[0],n[1]):t(n)}catch(t){Zf(e,"throw",t)}},eh=Jr,th=u,nh=ve,rh=Ot,oh=fl,ih=Qf,sh=Yf((function(){for(var e,t,n=this.iterator,r=this.filterer,o=this.next;;){if(e=rh(th(o,n)),this.done=!!e.done)return;if(t=e.value,ih(n,r,[t,this.counter++],!0))return t}}));eh({target:"Iterator",proto:!0,real:!0,forced:!0},{filter:function(e){return new sh(oh(this),{filterer:nh(e)})}});var ah=i,ch=ii,uh=TypeError,lh=Object.getOwnPropertyDescriptor,dh=ah&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),ph=dh?function(e,t){if(ch(e)&&!lh(e,"length").writable)throw uh("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},fh=Jr,hh=Ne,mh=ar,gh=ph,vh=ll,yh=o((function(){return 4294967297!==[].push.call({length:4294967296},1)})),_h=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();fh({target:"Array",proto:!0,arity:1,forced:yh||_h},{push:function(e){var t=hh(this),n=mh(t),r=arguments.length;vh(n+r);for(var o=0;o<r;o++)t[n]=arguments[o],n++;return gh(t,n),n}});var bh=fe,Sh=TypeError,wh=function(e,t){if(!delete e[t])throw Sh("Cannot delete property "+bh(t)+" of "+bh(e))},kh=dt,Eh=It,xh=g,Th=function(e,t,n){var r=kh(t);r in e?Eh.f(e,r,xh(0,n)):e[r]=n},Ih=rr,Ch=ar,Rh=Th,Mh=Array,Ah=Math.max,Oh=function(e,t,n){for(var r=Ch(e),o=Ih(t,r),i=Ih(void 0===n?r:n,r),s=Mh(Ah(i-o,0)),a=0;o<i;o++,a++)Rh(s,a,e[o]);return s.length=a,s},Lh=Oh,Ph=Math.floor,Dh=function(e,t){var n=e.length,r=Ph(n/2);
1return n<8?Nh(e,t):Fh(e,Dh(Lh(e,0,r),t),Dh(Lh(e,r),t),t)},Nh=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},Fh=function(e,t,n,r){for(var o=t.length,i=n.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?r(t[s],n[a])<=0?t[s++]:n[a++]:s<o?t[s++]:n[a++];return e},$h=Dh,Uh=o,jh=function(e,t){var n=[][e];return!!n&&Uh((function(){n.call(null,t||function(){return 1},1)}))},Bh=J.match(/firefox\/(\d+)/i),Hh=!!Bh&&+Bh[1],zh=/MSIE|Trident/.test(J),qh=J.match(/AppleWebKit\/(\d+)\./),Wh=!!qh&&+qh[1],Vh=Jr,Gh=S,Kh=ve,Jh=Ne,Yh=ar,Xh=wh,Zh=Eo,Qh=o,em=$h,tm=jh,nm=Hh,rm=zh,om=ne,im=Wh,sm=[],am=Gh(sm.sort),cm=Gh(sm.push),um=Qh((function(){sm.sort(void 0)})),lm=Qh((function(){sm.sort(null)})),dm=tm("sort"),pm=!Qh((function(){if(om)return om<70;if(!(nm&&nm>3)){if(rm)return!0;if(im)return im<603;var e,t,n,r,o="";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++)sm.push({k:t+r,v:n})}for(sm.sort((function(e,t){return t.v-e.v})),r=0;r<sm.length;r++)t=sm[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Vh({target:"Array",proto:!0,forced:um||!lm||!dm||!pm},{sort:function(e){void 0!==e&&Kh(e);var t=Jh(this);if(pm)return void 0===e?am(t):am(t,e);var n,r,o=[],i=Yh(t);for(r=0;r<i;r++)r in t&&cm(o,t[r]);for(em(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Zh(t)>Zh(n)?1:-1}}(e)),n=Yh(o),r=0;r<n;)t[r]=o[r++];for(;r<i;)Xh(t,r++);return t}});var fm=Il.some;Jr({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{some:function(e){return fm(this,e)}});var hm=Cu,mm=ve,gm=fl;Jr({target:"Iterator",proto:!0,real:!0,forced:!0},{some:function(e){var t=gm(this),n=0;return mm(e),hm(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var vm=Il.every;Jr({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{every:function(e){return vm(this,e)}});var ym=Cu,_m=ve,bm=fl;Jr({target:"Iterator",proto:!0,real:!0,forced:!0},{every:function(e){var t=bm(this),n=0;return _m(e),!ym(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}});var Sm=Jr,wm=i,km=n,Em=S,xm=Ue,Tm=B,Im=K,Cm=Eo,Rm=It.f,Mm=Or,Am=km.Symbol,Om=Am&&Am.prototype;if(wm&&Tm(Am)&&(!("description"in Om)||void 0!==Am().description)){var Lm={},Pm=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Cm(arguments[0]),t=Im(Om,this)?new Am(e):void 0===e?Am():Am(e);return""===e&&(Lm[t]=!0),t};Mm(Pm,Am),Pm.prototype=Om,Om.constructor=Pm;var Dm="Symbol(test)"==String(Am("test")),Nm=Em(Om.valueOf),Fm=Em(Om.toString),$m=/^Symbol\((.*)\)[^)]+$/,Um=Em("".replace),jm=Em("".slice);Rm(Om,"description",{configurable:!0,get:function(){var e=Nm(this);if(xm(Lm,e))return"";var t=Fm(e),n=Dm?jm(t,7,-1):Um(t,$m,"$1");return""===n?void 0:n}}),Sm({global:!0,constructor:!0,forced:!0},{Symbol:Pm})}var Bm=Jr,Hm=u,zm=ve,qm=Ot,Wm=q,Vm=fl,Gm=mp,Km=vl,Jm=kf((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(o,i){var s=function(e){t.done=!0,i(e)},a=function(e){Km(n,s,e,s)};e.resolve(qm(Hm(t.next,n))).then((function(n){try{if(qm(n).done)t.done=!0,o(Gm(void 0,!0));else{var i=n.value;try{var c=r(i,t.counter++),u=function(e){o(Gm(e,!1))};Wm(c)?e.resolve(c).then(u,a):u(c)}catch(e){a(e)}}}catch(e){s(e)}}),s)}))}));Bm({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{map:function(e){return new Jm(Vm(this),{mapper:zm(e)})}});var Ym=Jr,Xm=u,Zm=ve,Qm=Ot,eg=fl,tg=Qf,ng=Yf((function(){var e=this.iterator,t=Qm(Xm(this.next,e));if(!(this.done=!!t.done))return tg(e,this.mapper,[t.value,this.counter++],!0)}));Ym({target:"Iterator",proto:!0,real:!0,forced:!0},{map:function(e){return new ng(eg(this),{mapper:Zm(e)})}});var rg,og,ig,sg="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,ag=i,cg=n,ug=B,lg=q,dg=Ue,pg=So,fg=fe,hg=Vt,mg=Gn,gg=It.f,vg=K,yg=dd,_g=ao,bg=et,Sg=qe,wg=Cn.enforce,kg=Cn.get,Eg=cg.Int8Array,xg=Eg&&Eg.prototype,Tg=cg.Uint8ClampedArray,Ig=Tg&&Tg.prototype,Cg=Eg&&yg(Eg),Rg=xg&&yg(xg),Mg=Object.prototype,Ag=cg.TypeError,Og=bg("toStringTag"),Lg=Sg("TYPED_ARRAY_TAG"),Pg="TypedArrayConstructor",Dg=sg&&!!_g&&"Opera"!==pg(cg.opera),Ng={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Fg={BigInt64Array:8,BigUint64Array:8},$g=function(e){var t=yg(e);if(lg(t)){var n=kg(t);return n&&dg(n,Pg)?n[Pg]:$g(t)}};for(rg in Ng)(ig=(og=cg[rg])&&og.prototype)?wg(ig)[Pg]=og:Dg=!1;for(rg in Fg)(ig=(og=cg[rg])&&og.prototype)&&(wg(ig)[Pg]=og);if((!Dg||!ug(Cg)||Cg===Function.prototype)&&(Cg=function(){throw Ag("Incorrect invocation")},Dg))for(rg in Ng)cg[rg]&&_g(cg[rg],Cg);if((!Dg||!Rg||Rg===Mg)&&(Rg=Cg.prototype,Dg))for(rg in Ng)cg[rg]&&_g(cg[rg].prototype,Rg);if(Dg&&yg(Ig)!==Rg&&_g(Ig,Rg),ag&&!dg(Rg,Og))for(rg in gg(Rg,Og,{get:function(){return lg(this)?this[Lg]:void 0}}),Ng)cg[rg]&&hg(cg[rg],Lg,rg);var Ug={NATIVE_ARRAY_BUFFER_VIEWS:Dg,aTypedArray:function(e){if(function(e){if(!lg(e))return!1;var t=pg(e);return dg(Ng,t)||dg(Fg,t)}(e))return e;throw Ag("Target is not a typed array")},aTypedArrayConstructor:function(e){if(ug(e)&&(!_g||vg(Cg,e)))return e;throw Ag(fg(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(ag){if(n)for(var o in Ng){var i=cg[o];if(i&&dg(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}Rg[e]&&!n||mg(Rg,e,n?t:Dg&&xg[e]||t,r)}},getTypedArrayConstructor:$g,TypedArrayPrototype:Rg},jg=ar,Bg=Qn,Hg=Ug.aTypedArray;(0,Ug.exportTypedArrayMethod)("at",(function(e){var t=Hg(this),n=jg(t),r=Bg(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:t[o]}));var zg=ws,qg=M,Wg=Ne,Vg=ar,Gg=function(e){var t=1==e;return function(n,r,o){for(var i,s=Wg(n),a=qg(s),c=zg(r,o),u=Vg(a);u-- >0;)if(c(i=a[u],u,s))switch(e){case 0:return i;case 1:return u}return t?-1:void 0}},Kg={findLast:Gg(0),findLastIndex:Gg(1)},Jg=Kg.findLast,Yg=Ug.aTypedArray;(0,Ug.exportTypedArrayMethod)("findLast",(function(e){return Jg(Yg(this),e,arguments.length>1?arguments[1]:void 0)}));var Xg=Kg.findLastIndex,Zg=Ug.aTypedArray;(0,Ug.exportTypedArrayMethod)("findLastIndex",(function(e){return Xg(Zg(this),e,arguments.length>1?arguments[1]:void 0)}));var Qg=Qn,ev=RangeError,tv=function(e){var t=Qg(e);
1if(t<0)throw ev("The argument can't be less than 0");return t},nv=RangeError,rv=n,ov=u,iv=Ug,sv=ar,av=function(e,t){var n=tv(e);if(n%t)throw nv("Wrong offset");return n},cv=Ne,uv=o,lv=rv.RangeError,dv=rv.Int8Array,pv=dv&&dv.prototype,fv=pv&&pv.set,hv=iv.aTypedArray,mv=iv.exportTypedArrayMethod,gv=!uv((function(){var e=new Uint8ClampedArray(2);return ov(fv,e,{length:1,0:3},1),3!==e[1]})),vv=gv&&iv.NATIVE_ARRAY_BUFFER_VIEWS&&uv((function(){var e=new dv(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));mv("set",(function(e){hv(this);var t=av(arguments.length>1?arguments[1]:void 0,1),n=cv(e);if(gv)return ov(fv,this,n,t);var r=this.length,o=sv(n),i=0;if(o+t>r)throw lv("Wrong length");for(;i<o;)this[t+i]=n[i++]}),!gv||vv);var yv=ys,_v=o,bv=ve,Sv=$h,wv=Hh,kv=zh,Ev=ne,xv=Wh,Tv=Ug.aTypedArray,Iv=Ug.exportTypedArrayMethod,Cv=n.Uint16Array,Rv=Cv&&yv(Cv.prototype.sort),Mv=!(!Rv||_v((function(){Rv(new Cv(2),null)}))&&_v((function(){Rv(new Cv(2),{})}))),Av=!!Rv&&!_v((function(){if(Ev)return Ev<74;if(wv)return wv<67;if(kv)return!0;if(xv)return xv<602;var e,t,n=new Cv(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(Rv(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));Iv("sort",(function(e){return void 0!==e&&bv(e),Av?Rv(this,e):Sv(Tv(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))}),!Av||Mv);var Ov=ar,Lv=function(e,t){for(var n=Ov(e),r=new t(n),o=0;o<n;o++)r[o]=e[n-o-1];return r},Pv=Ug.aTypedArray,Dv=Ug.getTypedArrayConstructor;(0,Ug.exportTypedArrayMethod)("toReversed",(function(){return Lv(Pv(this),Dv(this))}));var Nv=ar,Fv=function(e,t){for(var n=0,r=Nv(t),o=new e(r);r>n;)o[n]=t[n++];return o},$v=ve,Uv=Fv,jv=Ug.aTypedArray,Bv=Ug.getTypedArrayConstructor,Hv=Ug.exportTypedArrayMethod,zv=S(Ug.TypedArrayPrototype.sort);Hv("toSorted",(function(e){void 0!==e&&$v(e);var t=jv(this),n=Uv(Bv(t),t);return zv(n,e)}));var qv=ar,Wv=Qn,Vv=RangeError,Gv=So,Kv=S("".slice),Jv=function(e){return"Big"===Kv(Gv(e),0,3)},Yv=ct,Xv=TypeError,Zv=function(e){var t=Yv(e,"number");if("number"==typeof t)throw Xv("Can't convert number to bigint");return BigInt(t)},Qv=function(e,t,n,r){var o=qv(e),i=Wv(n),s=i<0?o+i:i;if(s>=o||s<0)throw Vv("Incorrect index");for(var a=new t(o),c=0;c<o;c++)a[c]=c===s?r:e[c];return a},ey=Jv,ty=Qn,ny=Zv,ry=Ug.aTypedArray,oy=Ug.getTypedArrayConstructor,iy=Ug.exportTypedArrayMethod,sy=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();iy("with",{with:function(e,t){var n=ry(this),r=ty(e),o=ey(n)?ny(t):+t;return Qv(n,oy(n),r,o)}}.with,!sy);var ay,cy,uy,ly,dy,py,fy,hy,my=ii,gy=as,vy=q,yy=et("species"),_y=Array,by=function(e){var t;return my(e)&&(t=e.constructor,(gy(t)&&(t===_y||my(t.prototype))||vy(t)&&null===(t=t[yy]))&&(t=void 0)),void 0===t?_y:t},Sy=function(e,t){return new(by(e))(0===t?0:t)},wy=ws,ky=M,Ey=Ne,xy=ar,Ty=Sy,Iy=S([].push),Cy={filterReject:(ay=7,cy=1==ay,uy=2==ay,ly=3==ay,dy=4==ay,py=6==ay,fy=7==ay,hy=5==ay||py,function(e,t,n,r){for(var o,i,s=Ey(e),a=ky(s),c=wy(t,n),u=xy(a),l=0,d=r||Ty,p=cy?d(e,u):uy||fy?d(e,0):void 0;u>l;l++)if((hy||l in a)&&(i=c(o=a[l],l,s),ay))if(cy)p[l]=i;else if(i)switch(ay){case 3:return!0;case 5:return o;case 6:return l;case 2:Iy(p,o)}else switch(ay){case 4:return!1;case 7:Iy(p,o)}return py?-1:ly||dy?dy:p})},Ry=ms,My=Ug.aTypedArrayConstructor,Ay=Ug.getTypedArrayConstructor,Oy=function(e){return My(Ry(e,Ay(e)))},Ly=Fv,Py=Oy,Dy=function(e,t){return Ly(Py(e),t)},Ny=Cy.filterReject,Fy=Dy,$y=Ug.aTypedArray;(0,Ug.exportTypedArrayMethod)("filterReject",(function(e){var t=Ny($y(this),e,arguments.length>1?arguments[1]:void 0);return Fy(this,t)}),!0);var Uy=ws,jy=M,By=Ne,Hy=dt,zy=ar,qy=nd,Wy=Fv,Vy=Array,Gy=S([].push),Ky=function(e,t,n,r){for(var o,i,s,a=By(e),c=jy(a),u=Uy(t,n),l=qy(null),d=zy(c),p=0;d>p;p++)s=c[p],(i=Hy(u(s,p,a)))in l?Gy(l[i],s):l[i]=[s];if(r&&(o=r(a))!==Vy)for(i in l)l[i]=Wy(o,l[i]);return l},Jy=Oy,Yy=Ug.aTypedArray;(0,Ug.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return Ky(Yy(this),e,t,Jy)}),!0);var Xy=ar,Zy=Jv,Qy=rr,e_=Zv,t_=Qn,n_=o,r_=Ug.aTypedArray,o_=Ug.getTypedArrayConstructor,i_=Ug.exportTypedArrayMethod,s_=Math.max,a_=Math.min;i_("toSpliced",(function(e,t){var n,r,o,i,s,a,c,u=r_(this),l=o_(u),d=Xy(u),p=Qy(e,d),f=arguments.length,h=0;if(0===f)n=r=0;else if(1===f)n=0,r=d-p;else if(r=a_(s_(t_(t),0),d-p),n=f-2){i=new l(n),o=Zy(i);for(var m=2;m<f;m++)s=arguments[m],i[m-2]=o?e_(s):+s}for(c=new l(a=d+n-r);h<p;h++)c[h]=u[h];for(;h<p+n;h++)c[h]=i[h-p];for(;h<a;h++)c[h]=u[h+r-n];return c}),!!n_((function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf
1:function(){return e[0]=2,3}});return 2!==t[0]||3!==t[1]})));var c_=S,u_=ve,l_=A,d_=ar,p_=Ne,f_=Sy,h_=G("Map"),m_=h_.prototype,g_=c_(m_.forEach),v_=c_(m_.has),y_=c_(m_.set),__=c_([].push),b_=function(e){var t,n,r,o=p_(this),i=d_(o),s=f_(o,0),a=new h_,c=l_(e)?function(e){return e}:u_(e);for(t=0;t<i;t++)r=c(n=o[t]),v_(a,r)||y_(a,r,n);return g_(a,(function(e){__(s,e)})),s},S_=Dy,w_=Ug.aTypedArray,k_=Ug.exportTypedArrayMethod,E_=S(b_);k_("uniqueBy",(function(e){return S_(this,E_(w_(this),e))}),!0);const x_="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var T_=n;Jr({global:!0,forced:T_.globalThis!==T_},{globalThis:T_});const I_=globalThis,C_="10.10.0";function R_(){return M_(I_),I_}function M_(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||C_,t[C_]=t[C_]||{}}function A_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I_;const r=n.__SENTRY__=n.__SENTRY__||{},o=r[C_]=r[C_]||{};return o[e]||(o[e]=t())}const O_=["debug","info","warn","error","log","assert","trace"],L_="Sentry Logger ",P_={};function D_(e){if(!("console"in I_))return e();const t=I_.console,n={},r=Object.keys(P_);r.forEach((e=>{const r=P_[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function N_(){return $_().enabled}function F_(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];x_&&N_()&&D_((()=>{I_.console[e](`${L_}[${e}]:`,...n)}))}function $_(){return x_?A_("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const U_={enable:function(){$_().enabled=!0},disable:function(){$_().enabled=!1},isEnabled:N_,log:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];F_("log",...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];F_("warn",...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];F_("error",...t)}},j_=50,B_="?",H_=/\(error: (.*)\)/,z_=/captureMessage|captureException/;function q_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=[],i=e.split("\n");for(let e=t;e<i.length;e++){let t=i[e];t.length>1024&&(t=t.slice(0,1024));const s=H_.test(t)?t.replace(H_,"$1"):t;if(!s.match(/\S*Error: /)){for(const e of r){const t=e(s);if(t){o.push(t);break}}if(o.length>=j_+n)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(W_(t).function||"")&&t.pop();t.reverse(),z_.test(W_(t).function||"")&&(t.pop(),z_.test(W_(t).function||"")&&t.pop());return t.slice(0,j_).map((e=>({...e,filename:e.filename||W_(t).filename,function:e.function||B_})))}(o.slice(n))}}function W_(e){return e[e.length-1]||{}}const V_="<anonymous>";function G_(e){try{return e&&"function"==typeof e&&e.name||V_}catch(e){return V_}}function K_(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}const J_={},Y_={};function X_(e,t){J_[e]=J_[e]||[],J_[e].push(t)}function Z_(e,t){if(!Y_[e]){Y_[e]=!0;try{t()}catch(t){x_&&U_.error(`Error while instrumenting ${e}`,t)}}}function Q_(e,t){const n=e&&J_[e];if(n)for(const r of n)try{r(t)}catch(t){x_&&U_.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${G_(r)}\nError:`,t)}}let eb=null;function tb(e){const t="error";X_(t,e),Z_(t,nb)}function nb(){eb=I_.onerror,I_.onerror=function(e,t,n,r,o){return Q_("error",{column:r,error:o,line:n,msg:e,url:t}),!!eb&&eb.apply(this,arguments)},I_.onerror.__SENTRY_INSTRUMENTED__=!0}let rb=null;function ob(e){const t="unhandledrejection";X_(t,e),Z_(t,ib)}function ib(){rb=I_.onunhandledrejection,I_.onunhandledrejection=function(e){return Q_("unhandledrejection",e),!rb||rb.apply(this,arguments)},I_.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var sb=u,ab=ve,cb=Ot,ub=function(){for(var e=cb(this),t=ab(e.add),n=0,r=arguments.length;n<r;n++)sb(t,e,arguments[n]);return e};Jr({target:"Set",proto:!0,real:!0,forced:!0},{addAll:ub});var lb=u,db=ve,pb=Ot,fb=function(){for(var e,t=pb(this),n=db(t.delete),r=!0,o=0,i=arguments.length;o<i;o++)e=lb(n,t,arguments[o]),r=r&&e;return!!r};Jr({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:fb});var hb=G,mb=u,gb=ve,vb=Ot,yb=ms,_b=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){var t=vb(this),n=new(yb(t,hb("Set")))(t),r=gb(n.delete);return _b(e,(function(e){mb(r,n,e)})),n}});var bb=u,Sb=function(e){return bb(Set.prototype.values,e)},wb=Ot,kb=ws,Eb=Sb,xb=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=wb(this),n=Eb(t),r=kb(e,arguments.length>1?arguments[1]:void 0);return!xb(n,(function(e,n){if(!r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Tb=G,Ib=u,Cb=ve,Rb=Ot,Mb=ws,Ab=ms,Ob=Sb,Lb=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=Rb(this),n=Ob(t),r=Mb(e,arguments.length>1?arguments[1]:void 0),o=new(Ab(t,Tb("Set"))),i=Cb(o.add);return Lb(n,(function(e){r(e,e,t)&&Ib(i,o,e)}),{IS_ITERATOR:!0}),o}});var Pb=Ot,Db=ws,Nb=Sb,Fb=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=Pb(this),n=Nb(t),r=Db(e,arguments.length>1?arguments[1]:void 0);return Fb(n,(function(e,n){if(r(e,e,t))return n(e)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var $b=G,Ub=u,jb=ve,Bb=Ot,Hb=ms,zb=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){var t=Bb(this),n=new(Hb(t,$b("Set"))),r=jb(t.has),o=jb(n.add
1);return zb(e,(function(e){Ub(r,t,e)&&Ub(o,n,e)})),n}});var qb=u,Wb=ve,Vb=Ot,Gb=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){var t=Vb(this),n=Wb(t.has);return!Gb(e,(function(e,r){if(!0===qb(n,t,e))return r()}),{INTERRUPTED:!0}).stopped}});var Kb=G,Jb=u,Yb=ve,Xb=B,Zb=Ot,Qb=lu,eS=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){var t=Qb(this),n=Zb(e),r=n.has;return Xb(r)||(n=new(Kb("Set"))(e),r=Yb(n.has)),!eS(t,(function(e,t){if(!1===Jb(r,n,e))return t()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var tS=u,nS=ve,rS=Ot,oS=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){var t=rS(this),n=nS(t.has);return!oS(e,(function(e,r){if(!1===tS(n,t,e))return r()}),{INTERRUPTED:!0}).stopped}});var iS=Jr,sS=Ot,aS=Eo,cS=Sb,uS=Cu,lS=S([].join),dS=[].push;iS({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=sS(this),n=cS(t),r=void 0===e?",":aS(e),o=[];return uS(n,dS,{that:o,IS_ITERATOR:!0}),lS(o,r)}});var pS=G,fS=ws,hS=u,mS=ve,gS=Ot,vS=ms,yS=Sb,_S=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=gS(this),n=yS(t),r=fS(e,arguments.length>1?arguments[1]:void 0),o=new(vS(t,pS("Set"))),i=mS(o.add);return _S(n,(function(e){hS(i,o,r(e,e,t))}),{IS_ITERATOR:!0}),o}});var bS=ve,SS=Ot,wS=Sb,kS=Cu,ES=TypeError;Jr({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=SS(this),n=wS(t),r=arguments.length<2,o=r?void 0:arguments[1];if(bS(e),kS(n,(function(n){r?(r=!1,o=n):o=e(o,n,n,t)}),{IS_ITERATOR:!0}),r)throw ES("Reduce of empty set with no initial value");return o}});var xS=Ot,TS=ws,IS=Sb,CS=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=xS(this),n=IS(t),r=TS(e,arguments.length>1?arguments[1]:void 0);return CS(n,(function(e,n){if(r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var RS=G,MS=u,AS=ve,OS=Ot,LS=ms,PS=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){var t=OS(this),n=new(LS(t,RS("Set")))(t),r=AS(n.delete),o=AS(n.add);return PS(e,(function(e){MS(r,n,e)||MS(o,n,e)})),n}});var DS=G,NS=ve,FS=Ot,$S=ms,US=Cu;Jr({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){var t=FS(this),n=new($S(t,DS("Set")))(t);return US(e,NS(n.add),{that:n}),n}});var jS=Hn,BS=It,HS=function(e,t,n){return n.get&&jS(n.get,t,{getter:!0}),n.set&&jS(n.set,t,{setter:!0}),BS.f(e,t,n)},zS=Ot,qS=i,WS=HS,VS=function(){var e=zS(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},GS=o,KS=n.RegExp,JS=KS.prototype,YS=qS&&GS((function(){var e=!0;try{KS(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(i.hasIndices="d"),i)o(s,i[s]);return Object.getOwnPropertyDescriptor(JS,"flags").get.call(t)!==r||n!==r}));YS&&WS(JS,"flags",{configurable:!0,get:VS}),Jr({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:fb});var XS=u,ZS=ve,QS=Ot,ew=function(e,t){var n,r,o=QS(this),i=ZS(o.get),s=ZS(o.has),a=ZS(o.set);return XS(s,o,e)?(n=XS(i,o,e),"update"in t&&(n=t.update(n,e,o),XS(a,o,e,n)),n):(r=t.insert(e,o),XS(a,o,e,r),r)};Jr({target:"Map",proto:!0,real:!0,forced:!0},{emplace:ew});var tw=u,nw=function(e){return tw(Map.prototype.entries,e)},rw=Ot,ow=ws,iw=nw,sw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=rw(this),n=iw(t),r=ow(e,arguments.length>1?arguments[1]:void 0);return!sw(n,(function(e,n,o){if(!r(n,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var aw=G,cw=ws,uw=u,lw=ve,dw=Ot,pw=ms,fw=nw,hw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=dw(this),n=fw(t),r=cw(e,arguments.length>1?arguments[1]:void 0),o=new(pw(t,aw("Map"))),i=lw(o.set);return hw(n,(function(e,n){r(n,e,t)&&uw(i,o,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var mw=Ot,gw=ws,vw=nw,yw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0}
1,{find:function(e){var t=mw(this),n=vw(t),r=gw(e,arguments.length>1?arguments[1]:void 0);return yw(n,(function(e,n,o){if(r(n,e,t))return o(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var _w=Ot,bw=ws,Sw=nw,ww=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=_w(this),n=Sw(t),r=bw(e,arguments.length>1?arguments[1]:void 0);return ww(n,(function(e,n,o){if(r(n,e,t))return o(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var kw=Ot,Ew=nw,xw=function(e,t){return e===t||e!=e&&t!=t},Tw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return Tw(Ew(kw(this)),(function(t,n,r){if(xw(n,e))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var Iw=Ot,Cw=nw,Rw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){return Rw(Cw(Iw(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});var Mw=G,Aw=ws,Ow=u,Lw=ve,Pw=Ot,Dw=ms,Nw=nw,Fw=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=Pw(this),n=Nw(t),r=Aw(e,arguments.length>1?arguments[1]:void 0),o=new(Dw(t,Mw("Map"))),i=Lw(o.set);return Fw(n,(function(e,n){Ow(i,o,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var $w=G,Uw=ws,jw=u,Bw=ve,Hw=Ot,zw=ms,qw=nw,Ww=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=Hw(this),n=qw(t),r=Uw(e,arguments.length>1?arguments[1]:void 0),o=new(zw(t,$w("Map"))),i=Bw(o.set);return Ww(n,(function(e,n){jw(i,o,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});var Vw=ve,Gw=Ot,Kw=Cu;Jr({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=Gw(this),n=Vw(t.set),r=arguments.length,o=0;o<r;)Kw(arguments[o++],n,{that:t,AS_ENTRIES:!0});return t}});var Jw=Ot,Yw=ve,Xw=nw,Zw=Cu,Qw=TypeError;Jr({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=Jw(this),n=Xw(t),r=arguments.length<2,o=r?void 0:arguments[1];if(Yw(e),Zw(n,(function(n,i){r?(r=!1,o=i):o=e(o,i,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw Qw("Reduce of empty map with no initial value");return o}});var ek=Ot,tk=ws,nk=nw,rk=Cu;Jr({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=ek(this),n=nk(t),r=tk(e,arguments.length>1?arguments[1]:void 0);return rk(n,(function(e,n,o){if(r(n,e,t))return o()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});var ok=u,ik=Ot,sk=ve,ak=TypeError;Jr({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=ik(this),r=sk(n.get),o=sk(n.has),i=sk(n.set),s=arguments.length;sk(t);var a=ok(o,n,e);if(!a&&s<3)throw ak("Updating absent value");var c=a?ok(r,n,e):sk(s>2?arguments[2]:void 0)(e,n);return ok(i,n,e,t(c,e,n)),n}});const ck=Object.prototype.toString;function uk(e){switch(ck.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return _k(e,Error)}}function lk(e,t){return ck.call(e)===`[object ${t}]`}function dk(e){return lk(e,"ErrorEvent")}function pk(e){return lk(e,"DOMError")}function fk(e){return lk(e,"String")}function hk(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function mk(e){return null===e||hk(e)||"object"!=typeof e&&"function"!=typeof e}function gk(e){return lk(e,"Object")}function vk(e){return"undefined"!=typeof Event&&_k(e,Event)}function yk(e){return Boolean((null==e?void 0:e.then)&&"function"==typeof e.then)}function _k(e,t){try{return e instanceof t}catch(e){return!1}}function bk(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}function Sk(e){return"undefined"!=typeof Request&&_k(e,Request)}const wk=I_,kk=80;function Ek(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||kk;for(;n&&i++<r&&(u=xk(n,l),!("html"===u||i>1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return"<unknown>"}}function xk(e,t){const n=e,r=[];if(null==n||!n.tagName)return"";if(wk.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=null!=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;
1if(null!=o&&o.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&fk(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const e of i){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function Tk(){try{return wk.document.location.href}catch(e){return""}}function Ik(e){if(!wk.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ck(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Rk(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Mk(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{bk(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function Ak(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!fk(e)&&(lk(t,"RegExp")?t.test(e):!!fk(t)&&(n?e===t:e.includes(t)))}function Ok(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((n=>Ak(e,n,t)))}function Lk(e,t,n){if(!(t in e))return;const r=e[t];if("function"!=typeof r)return;const o=n(r);"function"==typeof o&&Dk(o,r);try{e[t]=o}catch(n){x_&&U_.log(`Failed to replace method "${t}" in object`,e)}}function Pk(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){x_&&U_.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Dk(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Pk(e,"__sentry_original__",t)}catch(e){}}function Nk(e){return e.__sentry_original__}function Fk(e){if(uk(e))return{message:e.message,name:e.name,stack:e.stack,...Uk(e)};if(vk(e)){const t={type:e.type,target:$k(e.target),currentTarget:$k(e.currentTarget),...Uk(e)};return"undefined"!=typeof CustomEvent&&_k(e,CustomEvent)&&(t.detail=e.detail),t}return e}function $k(e){try{return t=e,"undefined"!=typeof Element&&_k(t,Element)?Ek(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}var t}function Uk(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function jk(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){const e=I_;return e.crypto||e.msCrypto}(),t=()=>16*Math.random();try{if(null!=e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");null!=e&&e.getRandomValues&&(t=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&t())>>e/4).toString(16)))}function Bk(e){var t;return null===(t=e.exception)||void 0===t||null===(t=t.values)||void 0===t?void 0:t[0]}function Hk(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bk(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function zk(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function qk(e,t){const n=Bk(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...null==r?void 0:r.data,...t.data};n.mechanism.data=e}}function Wk(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{Pk(e,"__sentry_captured__",!0)}catch(e){}return!1}const Vk=1e3;function Gk(){return Date.now()/Vk}let Kk,Jk;function Yk(){var e;return(null!==(e=Kk)&&void 0!==e?e:Kk=function(){const{performance:e}=I_;if(null==e||!e.now||!e.timeOrigin)return Gk;const t=e.timeOrigin;return()=>(t+e.now())/Vk}())()}function Xk(){return Jk||(Jk=function(){var e;const{performance:t}=I_;if(null==t||!t.now)return[void 0,"none"];const n=36e5,r=t.now(),o=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-o):n,s=i<n,a=null===(e=t.timing)||void 0===e?void 0:e.navigationStart,c="number"==typeof a?Math.abs(a+r-o):n;return s||c<n?i<=c?[t.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[o,"dateNow"]}()),Jk[0]}function Zk(e){const t=Yk(),n={sid:jk(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return{sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}(n)};return e&&Qk(n,e),n}function Qk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Yk(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:jk()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eE(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=eE(r[e],t[e],n-1));return r}function tE(){return jk()}function nE(){return jk().substring(16)}const rE="_sentrySpan";function oE(e,t){t?Pk(e,rE,t):delete e[rE]}function iE(e){return e[rE]}class sE{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:tE(),sampleRand:Math.random()}}clone(){const e=new sE;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,oE(e,iE(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Qk(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof sE?t.getScopeData():gk(t)?e:void 0,{tags:r,extra:o,user:i,contexts:s,level:a,fingerprint:c=[],propagationContext:u}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),c.length&&(this._fingerprint=c),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,oE(this,void 0),this._attachments=[],this.setPropagationContext({traceId:tE(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Gk(),...e,message:e.message?Ck(e.message,2048):e.message};var o;(this._breadcrumbs.push(r),this._breadcrumbs.length>n)&&(this._breadcrumbs=this._breadcrumbs.slice(-n),null===(o=this._client)||void 0===o||o.recordDroppedEvent("buffer_overflow","log_item"));return this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:iE(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=eE(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=(null==t?void 0:t.event_id)||jk();if(!this._client)return x_&&U_.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=(null==n?void 0:n.event_id)||jk();if(!this._client)return x_&&U_.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=(null==t?void 0:t.event_id)||jk();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(x_&&U_.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
1h((e=>{e(this)})),this._notifyingListeners=!1)}}class aE{constructor(e,t){let n,r;n=e||new sE,r=t||new sE,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return yk(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function cE(){const e=M_(R_());return e.stack=e.stack||new aE(A_("defaultCurrentScope",(()=>new sE)),A_("defaultIsolationScope",(()=>new sE)))}function uE(e){return cE().withScope(e)}function lE(e,t){const n=cE();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function dE(e){return cE().withScope((()=>e(cE().getIsolationScope())))}function pE(e){const t=M_(e);return t.acs?t.acs:{withIsolationScope:dE,withScope:uE,withSetScope:lE,withSetIsolationScope:(e,t)=>dE(t),getCurrentScope:()=>cE().getScope(),getIsolationScope:()=>cE().getIsolationScope()}}function fE(){return pE(R_()).getCurrentScope()}function hE(){return pE(R_()).getIsolationScope()}function mE(){return A_("globalScope",(()=>new sE))}function gE(){const e=pE(R_());for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(2===n.length){const[t,r]=n;return t?e.withSetScope(t,r):e.withScope(r)}return e.withScope(n[0])}function vE(){return fE().getClient()}function yE(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||nE()};return r&&(i.parent_span_id=r),i}const _E="sentry.source",bE="sentry.sample_rate",SE="sentry.previous_trace_sample_rate",wE="sentry.op",kE="sentry.origin",EE="sentry.idle_span_finish_reason",xE="sentry.measurement_unit",TE="sentry.measurement_value",IE="sentry.custom_span_name",CE="sentry.profile_id",RE="sentry.exclusive_time",ME="http.request.method",AE="url.full",OE="sentry.link.type",LE=0,PE=1,DE=2;function NE(e){if(e<400&&e>=100)return{code:PE};if(e>=400&&e<500)switch(e){case 401:return{code:DE,message:"unauthenticated"};case 403:return{code:DE,message:"permission_denied"};case 404:return{code:DE,message:"not_found"};case 409:return{code:DE,message:"already_exists"};case 413:return{code:DE,message:"failed_precondition"};case 429:return{code:DE,message:"resource_exhausted"};case 499:return{code:DE,message:"cancelled"};default:return{code:DE,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:DE,message:"unimplemented"};case 503:return{code:DE,message:"unavailable"};case 504:return{code:DE,message:"deadline_exceeded"};default:return{code:DE,message:"internal_error"}}return{code:DE,message:"unknown_error"}}function FE(e,t){e.setAttribute("http.response.status_code",t);const n=NE(t);"unknown_error"!==n.message&&e.setStatus(n)}const $E="_sentryScope",UE="_sentryIsolationScope";function jE(e){return{scope:e[$E],isolationScope:e[UE]}}var BE,HE=ve,zE=Ne,qE=M,WE=ar,VE=TypeError,GE={left:(BE=!1,function(e,t,n,r){HE(t);var o=zE(e),i=qE(o),s=WE(o),a=BE?s-1:0,c=BE?-1:1;if(n<2)for(;;){if(a in i){r=i[a],a+=c;break}if(a+=c,BE?a<0:s<=a)throw VE("Reduce of empty array with no initial value")}for(;BE?a>=0:s>a;a+=c)a in i&&(r=t(r,i[a],a,o));return r})},KE=GE.left,JE=ne,YE=Oi;Jr({target:"Array",proto:!0,forced:!jh("reduce")||!YE&&JE>79&&JE<83},{reduce:function(e){var t=arguments.length;return KE(this,e,t,t>1?arguments[1]:void 0)}});var XE=Jr,ZE=u,QE=ve,ex=Ot,tx=q,nx=fl,rx=vl,ox=G("Promise"),ix=TypeError;XE({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=nx(this),n=t.iterator,r=t.next,o=arguments.length<2,i=o?void 0:arguments[1],s=0;return QE(e),new ox((function(t,a){var c=function(e){rx(n,a,e,a)},u=function(){try{ox.resolve(ex(ZE(r,n))).then((function(n){try{if(ex(n).done)o?a(ix("Reduce of empty iterator with no initial value")):t(i);else{var r=n.value;if(o)o=!1,i=r,u();else try{var l=e(i,r,s),d=function(e){i=e,u()};tx(l)?ox.resolve(l).then(d,c):d(l)}catch(e){c(e)}}s++}catch(e){a(e)}}),a)}catch(e){a(e)}};u()}))}});var sx=Cu,ax=ve,cx=fl,ux=TypeError;Jr({target:"Iterator",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=cx(this);ax(e);var n=arguments.length<2,r=n?void 0:arguments[1],o=0;if(sx(t,(function(t){n?(n=!1,r=t):r=e(r,t,o),o++}),{IS_RECORD:!0}),n)throw ux("Reduce of empty iterator with no initial value");return r}});const lx="sentry-",dx=/^sentry-/,px=8192;function fx(e){const t=function(e){if(!e||!fk(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=mx(t);
1return Object.entries(n).forEach((t=>{let[n,r]=t;e[n]=r})),e}),{});return mx(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,t)=>{let[n,r]=t;if(n.match(dx)){e[n.slice(lx.length)]=r}return e}),{});return Object.keys(n).length>0?n:void 0}function hx(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,t,n)=>{let[r,o]=t;const i=`${encodeURIComponent(r)}=${encodeURIComponent(o)}`,s=0===n?i:`${e},${i}`;return s.length>px?(x_&&U_.warn(`Not adding key: ${r} with val: ${o} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return r&&(e[`${lx}${n}`]=r),e}),{}))}function mx(e){return e.split(",").map((e=>e.split("=").map((e=>{try{return decodeURIComponent(e.trim())}catch(e){return}})))).reduce(((e,t)=>{let[n,r]=t;return n&&r&&(e[n]=r),e}),{})}const gx=/^o(\d+)\./,vx=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function yx(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function _x(e){const t=vx.exec(e);if(!t)return void D_((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return bx({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function bx(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Sx(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=function(e){const t=e.match(gx);return null==t?void 0:t[1]}(n)),r}function wx(e){const t="string"==typeof e?_x(e):bx(e);if(t&&function(e){if(!x_)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(U_.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(U_.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(U_.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(U_.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}function kx(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}const Ex=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function xx(e){if(!e)return;const t=e.match(Ex);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Tx(e,t){const n=xx(e),r=fx(t);if(null==n||!n.traceId)return{traceId:tE(),sampleRand:Math.random()};const o=function(e,t){const n=kx(null==t?void 0:t.sample_rand);if(void 0!==n)return n;const r=kx(null==t?void 0:t.sample_rate);return r&&void 0!==(null==e?void 0:e.parentSampled)?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}(n,r);r&&(r.sample_rand=o.toString());const{traceId:i,parentSpanId:s,parentSampled:a}=n;return{traceId:i,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:o}}function Ix(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tE(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nE(),n=arguments.length>2?arguments[2]:void 0,r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const Cx=1;let Rx=!1;function Mx(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=Nx(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function Ax(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Nx(e).parent_span_id,i=jE(e).scope;return{parent_span_id:o,span_id:r?(null==i?void 0:i.getPropagationContext().propagationSpanId)||nE():t,trace_id:n}}function Ox(e){const{traceId:t,spanId:n}=e.spanContext();return Ix(t,n,Fx(e))}function Lx(e){return e&&e.length>0?e.map((e=>{let{context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:i}=e;return{span_id:t,trace_id:n,sampled:r===Cx,attributes:i,...o}})):void 0}function Px(e){return"number"==typeof e?Dx(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Dx(e.getTime()):Yk()}function Dx(e){return e>9999999999?e/1e3:e}function Nx(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){var r;const{attributes:o,startTime:i,name:s,endTime:a,status:c,links:u}=e;return{span_id:t,trace_id:n,data:o,description:s,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?null===(r=e.parentSpanContext)||void 0===r?void 0:r.spanId:void 0,start_timestamp:Px(i),timestamp:Px(a)||void 0,status:$x(c),op:o[wE],origin:o[kE],links:Lx(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Fx(e){const{traceFlags:t}=e.spanContext();return t===Cx}function $x(e){if(e&&e.code!==LE)return e.code===PE?"ok":e.message||"unknown_error"}const Ux="_sentryChildSpans",jx="_sentryRootSpan";function Bx(e,t){const n=e[jx]||e;Pk(t,jx,n),e[Ux]?e[Ux].add(t):Pk(e,Ux,new Set([t]))}function Hx(e){const t=new Set;return function e(n){if(!t.has(n)&&Fx(n)){t.add(n);const r=n[Ux]?Array.from(n[Ux]):[];for(const t of r)e(t)}}(e),Array.from(t)}function zx(e){return e[jx]||e}function qx(){const e=pE(R_());return e.getActiveSpan?e.getActiveSpan():iE(fE())}function Wx(){Rx||(D_((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),Rx=!0)}let Vx=!1;function Gx(){function e(){const e=qx(),t=e&&zx(e);if(t){const e="internal_error";x_&&U_.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:DE,message:e})}}
1Vx||(e.tag="sentry_tracingErrorCallback",Vx=!0,tb(e),ob(e))}var Kx=n,Jx=Ni;function Yx(e){var t;if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const n=e||(null===(t=vE())||void 0===t?void 0:t.getOptions());return!(!n||null==n.tracesSampleRate&&!n.tracesSampler)}Jr({global:!0},{Reflect:{}}),Jx(Kx.Reflect,"Reflect",!0);const Xx="production",Zx="_frozenDsc";function Qx(e,t){Pk(e,Zx,t)}function eT(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||Xx,release:n.release,public_key:r,trace_id:e,org_id:Sx(t)};return t.emit("createDsc",o),o}function tT(e,t){const n=t.getPropagationContext();return n.dsc||eT(n.traceId,e)}function nT(e){var t,n;const r=vE();if(!r)return{};const o=zx(e),i=Nx(o),s=i.data,a=o.spanContext().traceState,c=null!==(t=null!==(n=null==a?void 0:a.get("sentry.sample_rate"))&&void 0!==n?n:s[bE])&&void 0!==t?t:s[SE];function u(e){return"number"!=typeof c&&"string"!=typeof c||(e.sample_rate=`${c}`),e}const l=o[Zx];if(l)return u(l);const d=null==a?void 0:a.get("sentry.dsc"),p=d&&fx(d);if(p)return u(p);const f=eT(e.spanContext().traceId,r),h=s[_E],m=i.description;var g,v;("url"!==h&&m&&(f.transaction=m),Yx())&&(f.sampled=String(Fx(o)),f.sample_rand=null!==(g=null==a?void 0:a.get("sentry.sample_rand"))&&void 0!==g?g:null===(v=jE(o).scope)||void 0===v?void 0:v.getPropagationContext().sampleRand.toString());return u(f),r.emit("createDsc",f,o),f}class rT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=e.traceId||tE(),this._spanId=e.spanId||nE()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}var oT=u;function iT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return aT("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function sT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400;const r=iT(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?sT(e,t-1,n):r;var o}function aT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}();const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(bk(t))return"[VueViewModel]";if(gk(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${G_(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return null!=t&&t.constructor?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return aT("",u.toJSON(),c-1,r,o)}catch(e){}const l=Array.isArray(t)?[]:{};let d=0;const p=Fk(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=aT(e,t,c-1,r,o),d++}return s(t),l}function cT(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function uT(e,t){const[n,r]=e;return[n,[...r,t]]}function lT(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function dT(e,t){return lT(e,((e,n)=>t.includes(n)))}function pT(e){const t=M_(I_);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function fT(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[pT(r),e]:r.push("string"==typeof e?pT(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(iT(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function hT(e){let t="string"==typeof e?pT(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=M_(I_);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(n(e)))}const o=r(),i=[];for(;t.length;){const e=r(),t="number"==typeof e.length?e.length:void 0;i.push([e,t?n(t):r()])}return[o,i]}function mT(e){return[{type:"span"},e]}function gT(e){const t="string"==typeof e.data?pT(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}Jr({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return oT(URL.prototype.toString,this)}}),Jr({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:ub}),Jr({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:fb});const vT={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function yT(e){return vT[e]}function _T(e){if(null==e||!e.sdk)return;
1const{name:t,version:n}=e.sdk;return{name:t,version:n}}function bT(e,t,n,r){var o;const i=null===(o=e.sdkProcessingMetadata)||void 0===o?void 0:o.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:yx(r)},...i&&{trace:i}}}function ST(e,t){if(null==t||!t.length||!e.description)return!1;for(const r of t){if("string"==typeof(n=r)||n instanceof RegExp){if(Ak(e.description,r))return!0;continue}if(!r.name&&!r.op)continue;const t=!r.name||Ak(e.description,r.name),o=!r.op||e.op&&Ak(e.op,r.op);if(t&&o)return!0}var n;return!1}function wT(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function kT(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:qx();const o=r&&zx(r);o&&(x_&&U_.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),o.addEvent(e,{[TE]:t,[xE]:n}))}function ET(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[xE],o=n[TE];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})})),t}class xT{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._traceId=e.traceId||tE(),this._spanId=e.spanId||nE(),this._startTime=e.startTimestamp||Yk(),this._links=e.links,this._attributes={},this.setAttributes({[kE]:"manual",[wE]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Cx:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=Px(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(_E,"custom"),this}end(e){this._endTime||(this._endTime=Px(e),function(e){if(!x_)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Nx(e),{spanId:r}=e.spanContext(),o=`[Tracing] Finishing "${n}" ${zx(e)===e?"root ":""}span "${t}" with ID ${r}`;U_.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[wE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:$x(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[kE],profile_id:this._attributes[CE],exclusive_time:this._attributes[RE],measurements:ET(this._events),is_segment:this._isStandaloneSpan&&zx(this)===this||void 0,segment_id:this._isStandaloneSpan?zx(this).spanContext().spanId:void 0,links:Lx(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){x_&&U_.log("[Tracing] Adding an event to span:",e);const r=TT(t)?t:n||Yk(),o=TT(t)?{}:t||{},i={name:e,time:Px(r),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=vE();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===zx(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=vE();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}(function(e,t){const n=nT(e[0]),r=null==t?void 0:t.getDsn(),o=null==t?void 0:t.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:yx(r)}},{beforeSendSpan:s,ignoreSpans:a}=(null==t?void 0:t.getOptions())||{},c=null!=a&&a.length?e.filter((e=>!ST(Nx(e),a))):e,u=e.length-c.length;u&&(null==t||t.recordDroppedEvent("before_send","span",u));const l=s?e=>{const t=Nx(e);return s(t)||(Wx(),t)}:Nx,d=[];for(const e of c){const t=l(e);t&&d.push(mT(t))}return cT(i,d)}([this],e)):(x_&&U_.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(jE(this).scope||fE()).captureEvent(t)}}_convertSpanToTransaction(){var e;if(!IT(Nx(this)))return;this._name||(x_&&U_.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=jE(this),r=null==t||null===(e=t.getScopeData().sdkProcessingMetadata)||void 0===e?void 0:e.normalizedRequest;if(!0!==this._sampled)return;const o=Hx(this).filter((e=>e!==this&&!function(e){return e instanceof xT&&e.isStandaloneSpan()}(e))).map((e=>Nx(e))).filter(IT),i=this._attributes[_E];delete this._attributes[IE],o.forEach((e=>{delete e.data[IE]}));const s={contexts:{trace:Mx(this)},spans:o.length>1e3?o.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:nT(this)},request:r,...i&&{transaction_info:{source:i}}},a=ET(this._events);return a&&Object.keys(a).length&&(x_&&U_.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function TT(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function IT(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}function CT(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};try{n=e()}catch(e){throw t(e),r(),e}return function(e,t,n){if(yk(e))return e.then((e=>(n(),e)),(e=>{throw t(e),n(),e}));return n(),e}(n,t,r)}const RT="__SENTRY_SUPPRESS_TRACING__";function MT(e,t){const n=FT();if(n.startSpan)return n.startSpan(e,t);const r=NT(e),{forceTransaction:o,parentSpan:i,scope:s}=e;return gE(null==s?void 0:s.clone(),(()=>jT(i)((()=>{const n=fE(),s=UT(n,i),a=e.onlyIfParent&&!s?new rT:DT({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return oE(n,a),CT((()=>t(a)),(()=>{const{status:e}=Nx(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:DE,message:"internal_error"})}),(()=>{a.end()}))}))))}function AT(e){const t=FT();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=NT(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>gE(e.scope,t):void 0!==o?e=>OT(o,e):e=>e())((()=>{const t=fE(),i=UT(t,o);return e.onlyIfParent&&!i?new rT:DT({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})}))}function OT(e,t){const n=FT();return n.withActiveSpan?n.withActiveSpan(e,t):gE((n=>(oE(n,e||void 0),t(n))))}function LT(e){const t=FT();return t.suppressTracing?t.suppressTracing(e):gE((t=>{t.setSDKProcessingMetadata({[RT]:!0});const n=e();return t.setSDKProcessingMetadata({[RT]:void 0}),n}))}function PT(e){return gE((t=>(t.setPropagationContext({traceId:tE(),sampleRand:Math.random()}
1),x_&&U_.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),OT(null,e))))}function DT(e){let{parentSpan:t,spanArguments:n,forceTransaction:r,scope:o}=e;if(!Yx()){const e=new rT;if(r||!t){Qx(e,{sampled:"false",sample_rate:"0",transaction:n.name,...nT(e)})}return e}const i=hE();let s;if(t&&!r)s=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[RT]&&Fx(e),s=i?new xT({...n,parentSpanId:r,traceId:o,sampled:i}):new rT({traceId:o});Bx(e,s);const a=vE();a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s));return s}(t,o,n),Bx(t,s);else if(t){const e=nT(t),{traceId:r,spanId:i}=t.spanContext(),a=Fx(t);s=$T({traceId:r,parentSpanId:i,...n},o,a),Qx(s,e)}else{const{traceId:e,dsc:t,parentSpanId:r,sampled:a}={...i.getPropagationContext(),...o.getPropagationContext()};s=$T({traceId:e,parentSpanId:r,...n},o,a),t&&Qx(s,t)}return function(e){if(!x_)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Nx(e),{spanId:o}=e.spanContext(),i=Fx(e),s=zx(e),a=s===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${o}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:e,description:t}=Nx(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}U_.log(`${c}\n ${u.join("\n ")}`)}(s),function(e,t,n){e&&(Pk(e,UE,n),Pk(e,$E,t))}(s,o,i),s}function NT(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Px(e.startTime),delete n.startTime,n}return t}function FT(){return pE(R_())}function $T(e,t,n){var r,o;const i=vE(),s=(null==i?void 0:i.getOptions())||{},{name:a=""}=e,c={spanAttributes:{...e.attributes},spanName:a,parentSampled:n};null==i||i.emit("beforeSampling",c,{decision:!1});const u=null!==(r=c.parentSampled)&&void 0!==r?r:n,l=c.spanAttributes,d=t.getPropagationContext(),[p,f,h]=t.getScopeData().sdkProcessingMetadata[RT]?[!1]:function(e,t,n){if(!Yx(e))return[!1];let r,o;"function"==typeof e.tracesSampler?(o=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),r=!0):void 0!==t.parentSampled?o=t.parentSampled:void 0!==e.tracesSampleRate&&(o=e.tracesSampleRate,r=!0);const i=kx(o);if(void 0===i)return x_&&U_.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),[!1];if(!i)return x_&&U_.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,i,r];const s=n<i;return s||x_&&U_.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(o)})`),[s,i,r]}(s,{name:a,parentSampled:u,attributes:l,parentSampleRate:kx(null===(o=d.dsc)||void 0===o?void 0:o.sample_rate)},d.sampleRand),m=new xT({...e,attributes:{[_E]:"custom",[bE]:void 0!==f&&h?f:void 0,...l},sampled:p});return!p&&i&&(x_&&U_.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate","transaction")),i&&i.emit("spanStart",m),m}function UT(e,t){if(t)return t;if(null===t)return;const n=iE(e);if(!n)return;const r=vE();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?zx(n):n}function jT(e){return void 0!==e?t=>OT(e,t):e=>e()}const BT={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},HT="heartbeatFailed",zT="idleTimeout",qT="finalTimeout",WT="externalFinish";function VT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Map;let r,o=!1,i=WT,s=!t.disableAutoFinish;const a=[],{idleTimeout:c=BT.idleTimeout,finalTimeout:u=BT.finalTimeout,childSpanTimeout:l=BT.childSpanTimeout,beforeSpanEnd:d}=t,p=vE();if(!p||!Yx()){const e=new rT;return Qx(e,{sample_rate:"0",sampled:"false",...nT(e)}),e}const f=fE(),h=qx(),m=function(e){const t=AT(e);
1return oE(fE(),t),x_&&U_.log("[Tracing] Started span is an idle span"),t}(e);function g(){r&&(clearTimeout(r),r=void 0)}function v(e){g(),r=setTimeout((()=>{!o&&0===n.size&&s&&(i=zT,m.end(e))}),c)}function y(e){r=setTimeout((()=>{!o&&s&&(i=HT,m.end(e))}),l)}function _(e){o=!0,n.clear(),a.forEach((e=>e())),oE(f,h);const t=Nx(m),{start_timestamp:r}=t;if(!r)return;t.data[EE]||m.setAttribute(EE,i),U_.log(`[Tracing] Idle span "${t.op}" finished`);const s=Hx(m).filter((e=>e!==m));let l=0;s.forEach((t=>{t.isRecording()&&(t.setStatus({code:DE,message:"cancelled"}),t.end(e),x_&&U_.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=Nx(t),{timestamp:r=0,start_timestamp:o=0}=n,i=o<=e,s=r-o<=(u+c)/1e3;if(x_){const e=JSON.stringify(t,void 0,2);i?s||U_.log("[Tracing] Discarding span since it finished after idle span final timeout",e):U_.log("[Tracing] Discarding span since it happened after idle span was finished",e)}s&&i||(!function(e,t){e[Ux]&&e[Ux].delete(t)}(m,t),l++)})),l>0&&m.setAttribute("sentry.idle_span_discarded_spans",l)}return m.end=new Proxy(m.end,{apply(e,t,n){if(d&&d(m),t instanceof rT)return;const[r,...o]=n,i=Px(r||Yk()),s=Hx(m).filter((e=>e!==m));if(!s.length)return _(i),Reflect.apply(e,t,[i,...o]);const a=s.map((e=>Nx(e).timestamp)).filter((e=>!!e)),c=a.length?Math.max(...a):void 0,l=Nx(m).start_timestamp,p=Math.min(l?l+u/1e3:1/0,Math.max(l||-1/0,Math.min(i,c||1/0)));
1return _(p),Reflect.apply(e,t,[p,...o])}}),a.push(p.on("spanStart",(e=>{if(o||e===m||Nx(e).timestamp||e instanceof xT&&e.isStandaloneSpan())return;var t;Hx(m).includes(e)&&(t=e.spanContext().spanId,g(),n.set(t,!0),y(Yk()+l/1e3))}))),a.push(p.on("spanEnd",(e=>{var t;o||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&v(Yk()+c/1e3))}))),a.push(p.on("idleSpanEnableAutoFinish",(e=>{e===m&&(s=!0,v(),n.size&&y())}))),t.disableAutoFinish||v(),setTimeout((()=>{o||(m.setStatus({code:DE,message:"deadline_exceeded"}),i=qT,m.end())}),u),m}function GT(e){return new JT((t=>{t(e)}))}function KT(e){return new JT(((t,n)=>{n(e)}))}class JT{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new JT(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new JT(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}_executeHandlers(){if(0===this._state)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{0===this._state&&(yk(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},r=e=>{t(2,e)};try{e(n,r)}catch(e){r(e)}}}function YT(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new JT(((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);x_&&s.id&&null===a&&U_.log(`Event processor "${s.id}" dropped event`),yk(a)?a.then((t=>YT(e,t,n,r+1).then(o))).then(null,i):YT(e,a,n,r+1).then(o).then(null,i)}}))}function XT(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(r).length&&(e.tags={...r,...e.tags});Object.keys(o).length&&(e.user={...o,...e.user});Object.keys(i).length&&(e.contexts={...i,...e.contexts});s&&(e.level=s);a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Ax(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:nT(t),...e.sdkProcessingMetadata};const n=zx(t),r=Nx(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}function ZT(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:f,span:h}=t;QT(e,"extra",n),QT(e,"tags",r),QT(e,"user",o),QT(e,"contexts",i),e.sdkProcessingMetadata=eE(e.sdkProcessingMetadata,a,2),s&&(e.level=s),f&&(e.transactionName=f),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function QT(e,t,n){e[t]=eE(e[t],n,1)}let eI,tI,nI;function rI(e){const t=I_._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return nI&&n.length===tI||(tI=n.length,nI=n.reduce(((n,r)=>{eI||(eI={});const o=eI[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=null==i?void 0:i.filename,a=t[r];if(s&&a){n[s]=a,eI[r]=[s,a];break}}}return n}),{})),nI}function oI(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||jk(),timestamp:t.timestamp||Gk()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||Xx,!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);const s=e.request;null!=s&&s.url&&(s.url=Ck(s.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{}
1,e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){var n;const r=rI(t);null===(n=e.exception)||void 0===n||null===(n=n.values)||void 0===n||n.forEach((e=>{var t;null===(t=e.stacktrace)||void 0===t||null===(t=t.frames)||void 0===t||t.forEach((e=>{e.filename&&(e.debug_id=r[e.filename])}))}))}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new sE;return n.update(t),n}(r,n.captureContext);n.mechanism&&qk(c,n.mechanism);const d=o?o.getEventProcessors():[],p=mE().getScopeData();if(i){ZT(p,i.getScopeData())}if(l){ZT(p,l.getScopeData())}const f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),XT(c,p);return YT([...d,...p.eventProcessors],c,n).then((e=>(e&&function(e){var t;const n={};if(null===(t=e.exception)||void 0===t||null===(t=t.values)||void 0===t||t.forEach((e=>{var t;null===(t=e.stacktrace)||void 0===t||null===(t=t.frames)||void 0===t||t.forEach((e=>{e.debug_id&&(e.abs_path?n[e.abs_path]=e.debug_id:e.filename&&(n[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(n).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const r=e.debug_meta.images;Object.entries(n).forEach((e=>{let[t,n]=e;r.push({type:"sourcemap",code_file:t,debug_id:n})}))}(e),"number"==typeof s&&s>0?function(e,t,n){var r,o;if(!e)return null;const i={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:iT(e.data,t,n)}})))},...e.user&&{user:iT(e.user,t,n)},...e.contexts&&{contexts:iT(e.contexts,t,n)},...e.extra&&{extra:iT(e.extra,t,n)}};null!==(r=e.contexts)&&void 0!==r&&r.trace&&i.contexts&&(i.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(i.contexts.trace.data=iT(e.contexts.trace.data,t,n)));e.spans&&(i.spans=e.spans.map((e=>({...e,...e.data&&{data:iT(e.data,t,n)}}))));null!==(o=e.contexts)&&void 0!==o&&o.flags&&i.contexts&&(i.contexts.flags=iT(e.contexts.flags,3,n));return i}(e,s,a):e)))}function iI(e){if(e)return function(e){return e instanceof sE||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>sI.includes(e)))}(e)?{captureContext:e}:e}const sI=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function aI(e,t){return fE().captureException(e,iI(t))}function cI(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return fE().captureMessage(e,n,r)}function uI(e,t){return fE().captureEvent(e,t)}function lI(e,t){hE().setContext(e,t)}function dI(e,t){hE().setTag(e,t)}function pI(){return hE().lastEventId()}function fI(){const e=vE();return!1!==(null==e?void 0:e.getOptions().enabled)&&!(null==e||!e.getTransport())}function hI(e){hE().addEventProcessor(e)}function mI(e){const t=hE(),n=fE(),{userAgent:r}=I_.navigator||{},o=Zk({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return"ok"===(null==i?void 0:i.status)&&Qk(i,{status:"exited"}),gI(),t.setSession(o),o}function gI(){const e=hE(),t=fE().getSession()||e.getSession();t&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Qk(e,n)}(t),vI(),e.setSession()}function vI(){const e=hE(),t=vE(),n=e.getSession();n&&t&&t.captureSession(n)}function yI(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?gI():vI()}var _I=o,bI=et("iterator"),SI=!_I((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[bI]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),wI=Jr,kI=n,EI=u,xI=S,TI=i,II=SI,CI=Gn,RI=Vp,MI=Ni,AI=Kd,OI=Cn,LI=zi,PI=B,DI=Ue,NI=ws,FI=So,$I=Ot,UI=q,jI=Eo,BI=nd,HI=g,zI=lu,qI=ru,WI=xs,VI=$h,GI=et("iterator"),KI="URLSearchParams",JI=KI+"Iterator",YI=OI.set,XI=OI.getterFor(KI),ZI=OI.getterFor(JI),QI=Object.getOwnPropertyDescriptor,eC=function(e){if(!TI)return kI[e];var t=QI(kI,e);return t&&t.value},tC=eC("fetch"),nC=eC("Request"),rC=eC("Headers"),oC=nC&&nC.prototype,iC=rC&&rC.prototype,sC=kI.RegExp,aC=kI.TypeError,cC=kI.decodeURIComponent,uC=kI.encodeURIComponent,lC=xI("".charAt),dC=xI([].join),pC=xI([].push),fC=xI("".replace),hC=xI([].shift),mC=xI([].splice),gC=xI("".split),vC=xI("".slice),yC=/\+/g,_C=Array(4),bC=function(e){return _C[e-1]||(_C[e-1]=sC("((?:%[\\da-f]{2}){"+e+"})","gi"))},SC=function(e){try{return cC(e)}catch(t){return e}},wC=function(e){var t=fC(e,yC," "),n=4;try{return cC(t)}catch(e){for(;n;)t=fC(t,bC(n--),SC);return t}}
1,kC=/[!'()~]|%20/g,EC={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xC=function(e){return EC[e]},TC=function(e){return fC(uC(e),kC,xC)},IC=AI((function(e,t){YI(this,{type:JI,iterator:zI(XI(e).entries),kind:t})}),"Iterator",(function(){var e=ZI(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),CC=function(e){this.entries=[],this.url=null,void 0!==e&&(UI(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===lC(e,0)?vC(e,1):e:jI(e)))};CC.prototype={type:KI,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,i,s,a,c=qI(e);if(c)for(n=(t=zI(e,c)).next;!(r=EI(n,t)).done;){if(i=(o=zI($I(r.value))).next,(s=EI(i,o)).done||(a=EI(i,o)).done||!EI(i,o).done)throw aC("Expected sequence with length 2");pC(this.entries,{key:jI(s.value),value:jI(a.value)})}else for(var u in e)DI(e,u)&&pC(this.entries,{key:u,value:jI(e[u])})},parseQuery:function(e){if(e)for(var t,n,r=gC(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=gC(t,"="),pC(this.entries,{key:wC(hC(n)),value:wC(dC(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],pC(n,TC(e.key)+"="+TC(e.value));return dC(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var RC=function(){LI(this,MC),YI(this,new CC(arguments.length>0?arguments[0]:void 0))},MC=RC.prototype;if(RI(MC,{append:function(e,t){WI(arguments.length,2);var n=XI(this);pC(n.entries,{key:jI(e),value:jI(t)}),n.updateURL()},delete:function(e){WI(arguments.length,1);for(var t=XI(this),n=t.entries,r=jI(e),o=0;o<n.length;)n[o].key===r?mC(n,o,1):o++;t.updateURL()},get:function(e){WI(arguments.length,1);for(var t=XI(this).entries,n=jI(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){WI(arguments.length,1);for(var t=XI(this).entries,n=jI(e),r=[],o=0;o<t.length;o++)t[o].key===n&&pC(r,t[o].value);return r},has:function(e){WI(arguments.length,1);for(var t=XI(this).entries,n=jI(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){WI(arguments.length,1);for(var n,r=XI(this),o=r.entries,i=!1,s=jI(e),a=jI(t),c=0;c<o.length;c++)(n=o[c]).key===s&&(i?mC(o,c--,1):(i=!0,n.value=a));i||pC(o,{key:s,value:a}),r.updateURL()},sort:function(){var e=XI(this);VI(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=XI(this).entries,r=NI(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new IC(this,"keys")},values:function(){return new IC(this,"values")},entries:function(){return new IC(this,"entries")}},{enumerable:!0}),CI(MC,GI,MC.entries,{name:"entries"}),CI(MC,"toString",(function(){return XI(this).serialize()}),{enumerable:!0}),MI(RC,KI),wI({global:!0,constructor:!0,forced:!II},{URLSearchParams:RC}),!II&&PI(rC)){var AC=xI(iC.has),OC=xI(iC.set),LC=function(e){if(UI(e)){var t,n=e.body;if(FI(n)===KI)return t=e.headers?new rC(e.headers):new rC,AC(t,"content-type")||OC(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),BI(e,{body:HI(0,jI(n)),headers:HI(0,t)})}return e};if(PI(tC)&&wI({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return tC(e,arguments.length>1?LC(arguments[1]):{})}}),PI(nC)){var PC=function(e){return LI(this,oC),new nC(e,arguments.length>1?LC(arguments[1]):{})};oC.constructor=PC,PC.prototype=oC,wI({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:PC})}}var DC={URLSearchParams:RC,getState:XI};const NC="7";function FC(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function $C(e,t,n){return t||`${function(e){return`${FC(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:NC};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const UC=[];function jC(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r)}function BC(e,t){for(const n of t)null!=n&&n.afterAllSetup&&n.afterAllSetup(e)}function HC(e,t,n){if(n[t.name])x_&&U_.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===UC.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),UC.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}x_&&U_.log(`Integration installed: ${t.name}`)}}function zC(e){const t=vE();t?t.addIntegration(e):x_&&U_.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function qC(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];null!=n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(e){}return t}const WC="Not capturing exception because it's already been captured.",VC="Discarded session because of missing or non-string release",GC=Symbol.for("SentryInternalError"),KC=Symbol.for("SentryDoNotSendEventError");function JC(e){return{message:e,[GC]:!0}}function YC(e){return{message:e,[KC]:!0}}function XC(e){return!!e&&"object"==typeof e&&GC in e}function ZC(e){return!!e&&"object"==typeof e&&KC in e}class QC{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=wx(e.dsn):x_&&U_.warn("No DSN provided, client will not send events."),this._dsn){const t=$C(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=jk();if(Wk(e))return x_&&U_.log(WC),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,r){const o={event_id:jk(),...n},i=hk(e)?e:String(e),s=mk(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then((e=>this._captureEvent(e,o,r)))),o.event_id}captureEvent(e,t,n){const r=jk();if(null!=t&&t.originalException&&Wk(t.originalException))return x_&&U_.log(WC),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,a=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,s||n,a)),o.event_id}captureSession(e){this.sendSession(e),Qk(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;
1return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):GT(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((e=>{let{name:t}=e;return t.startsWith("Spotlight")})))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];HC(this,e,this._integrations),t||BC(this,[e])}sendEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=_T(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){var n,r,o,i;if(!t)return e;const s=e.sdk||{};e.sdk={...s,name:s.name||t.name,version:s.version||t.version,integrations:[...(null===(n=e.sdk)||void 0===n?void 0:n.integrations)||[],...t.integrations||[]],packages:[...(null===(r=e.sdk)||void 0===r?void 0:r.packages)||[],...t.packages||[]],settings:null!==(o=e.sdk)&&void 0!==o&&o.settings||t.settings?{...null===(i=e.sdk)||void 0===i?void 0:i.settings,...t.settings}:void 0}}(e,null==n?void 0:n.sdk);const s=bT(e,o,r,t);return delete e.sdkProcessingMetadata,cT(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=uT(n,gT(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:n=Xx}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(x_&&U_.warn(VC));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(x_&&U_.warn(VC));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){const o=_T(n);return cT({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:yx(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this._options.sendClientReports){const r=`${e}:${t}`;x_&&U_.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=this._hooks[e];o&&o.forEach((e=>e(...n)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(x_&&U_.error("Error while sending envelope:",e),e))):(x_&&U_.error("Transport disabled"),GT({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&HC(e,t,n)})),n}(this,e),BC(this,e)}_updateSessionFromEvent(e,t){var n;let r="fatal"===t.level,o=!1;const i=null===(n=t.exception)||void 0===n?void 0:n.values;if(i){o=!0;for(const e of i){const t=e.mechanism;if(!1===(null==t?void 0:t.handled)){r=!0;break}}}const s="ok"===e.status;(s&&0===e.errors||s&&r)&&(Qk(e,{...r&&{status:"crashed"},errors:e.errors||Number(o||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new JT((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&null!=i&&i.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),oI(o,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:yE(n),...e.contexts};const r=tT(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fE(),r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:hE();return x_&&eR(e)&&U_.log(`Captured error event \`${qC(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{x_&&(ZC(e)?U_.log(e.message):XC(e)?U_.warn(e.message):U_.warn(e))}))}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=tR(e),a=eR(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===i?void 0:kx(i);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error"),KT(YC(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const d="replay_event"===c?"replay":c;return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),YC("An event processor returned `null`, will not send event.");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:a}=t;let c=n;if(eR(c)&&o)return o(c,r);
1if(tR(c)){if(s||a){const t=function(e){var t,n,r;const{trace_id:o,parent_span_id:i,span_id:s,status:a,origin:c,data:u,op:l}=null!==(t=null===(n=e.contexts)||void 0===n?void 0:n.trace)&&void 0!==t?t:{};return{data:null!=u?u:{},description:e.transaction,op:l,parent_span_id:i,span_id:null!=s?s:"",start_timestamp:null!==(r=e.start_timestamp)&&void 0!==r?r:0,status:a,timestamp:e.timestamp,trace_id:null!=o?o:"",origin:c,profile_id:null==u?void 0:u[CE],exclusive_time:null==u?void 0:u[RE],measurements:e.measurements,is_segment:!0}}(c);if(null!=a&&a.length&&ST(t,a))return null;if(s){const e=s(t);e?c=eE(n,{type:"transaction",timestamp:(u=e).timestamp,start_timestamp:u.start_timestamp,transaction:u.description,contexts:{trace:{trace_id:u.trace_id,span_id:u.span_id,parent_span_id:u.parent_span_id,op:u.op,status:u.status,origin:u.origin,data:{...u.data,...u.profile_id&&{[CE]:u.profile_id},...u.exclusive_time&&{[RE]:u.exclusive_time}}}},measurements:u.measurements}):Wx()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(null!=a&&a.length&&ST(e,a))wT(n,e);else if(s){const n=s(e);n?t.push(n):(Wx(),t.push(e))}else t.push(e);const r=c.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),c.spans=t}}if(i){if(c.spans){const e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(c,r)}}var u;return c}(this,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(yk(e))return e.then((e=>{if(!gk(e)&&null!==e)throw JC(n);return e}),(e=>{throw JC(`${t} rejected with ${e}`)}));if(!gk(e)&&null!==e)throw JC(n);return e}(n,u)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw YC(`${u} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){var c;const e=((null===(c=o.sdkProcessingMetadata)||void 0===c?void 0:c.spanCountBeforeProcessing)||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const l=o.transaction_info;if(s&&l&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...l,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(ZC(e)||XC(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),JC(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((e=>{let[t,n]=e;const[r,o]=t.split(":");return{reason:r,category:o,quantity:n}}))}_flushOutcomes(){x_&&U_.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(x_&&U_.log("No outcomes to send"));if(!this._dsn)return void(x_&&U_.log("No dsn provided, will not send outcomes"));x_&&U_.log("Sending outcomes:",e);const t=(n=e,cT((r=this._options.tunnel&&yx(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Gk(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function eR(e){return void 0===e.type}function tR(e){return"transaction"===e.type}Jr({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:fb}),Jr({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:ew});const nR={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};const rR=100;function oR(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];!n||e[t]&&!r||(e[t]=n)}function iR(e,t){const n=uR(),r=cR(e);void 0===r?n.set(e,[t]):(n.set(e,[...r,t]),r.length>=rR&&aR(e,r))}function sR(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vE(),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fE(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:iR;if(!r)return void(x_&&U_.warn("No client available to capture log."));const{release:s,environment:a,enableLogs:c=!1,beforeSendLog:u}=r.getOptions();if(!c)return void(x_&&U_.warn("logging option not enabled, log will not be captured."));const[,l]=function(e,t){return t?gE(t,(()=>{const n=qx(),r=n?Ax(n):yE(t);return[n?nT(n):tT(e,t),r]})):[void 0,void 0]}(r,o),d={...e.attributes},{user:{id:p,email:f,username:h}}=function(e){const t=mE().getScopeData();return ZT(t,hE().getScopeData()),ZT(t,e.getScopeData()),t}(o);oR(d,"user.id",p,!1),oR(d,"user.email",f,!1),oR(d,"user.name",h,!1),oR(d,"sentry.release",s),oR(d,"sentry.environment",a);const{name:m,version:g}=null!==(t=null===(n=r.getSdkMetadata())||void 0===n?void 0:n.sdk)&&void 0!==t?t:{};oR(d,"sentry.sdk.name",m),oR(d,"sentry.sdk.version",g);const v=e.message;
1if(hk(v)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=v;null!=t&&t.length&&(d["sentry.message.template"]=e),t.forEach(((e,t)=>{d[`sentry.message.parameter.${t}`]=e}))}const y=iE(o);oR(d,"sentry.trace.parent_span_id",null==y?void 0:y.spanContext().spanId);const _={...e,attributes:d};r.emit("beforeCaptureLog",_);const b=u?D_((()=>u(_))):_;if(!b)return r.recordDroppedEvent("before_send","log_item",1),void(x_&&U_.warn("beforeSendLog returned null, log will not be captured."));const{level:S,message:w,attributes:k={},severityNumber:E}=b,x={timestamp:Yk(),level:S,body:w,trace_id:null==l?void 0:l.trace_id,severity_number:null!=E?E:nR[S],attributes:Object.keys(k).reduce(((e,t)=>(e[t]=function(e){switch(typeof e){case"number":return Number.isInteger(e)?{value:e,type:"integer"}:{value:e,type:"double"};case"boolean":return{value:e,type:"boolean"};case"string":return{value:e,type:"string"};default:{let n="";try{var t;n=null!==(t=JSON.stringify(e))&&void 0!==t?t:""}catch(e){}return{value:n,type:"string"}}}}(k[t]),e)),{})};i(r,x),r.emit("afterCaptureLog",b)}function aR(e,t){var n;const r=null!==(n=null!=t?t:cR(e))&&void 0!==n?n:[];if(0===r.length)return;const o=e.getOptions(),i=function(e,t,n,r){const o={};return null!=t&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=yx(r)),cT(o,[(i=e,[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}])]);var i}(r,o._metadata,o.tunnel,e.getDsn());uR().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function cR(e){return uR().get(e)}function uR(){return A_("clientToLogBufferMap",(()=>new WeakMap))}function lR(e){fE().setClient(e)}const dR=Symbol.for("SentryBufferFullError");function pR(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return KT(dR);const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new JT(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{GT(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}const fR=6e4;function hR(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?fR:r-t}function mR(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>n}function gR(e,t){let{statusCode:n,headers:r}=t,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();const i={...e},s=null==r?void 0:r["x-sentry-rate-limits"],a=null==r?void 0:r["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,r]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(i[e]=o+a);else i.all=o+a}else a?i.all=o+hR(a,o):429===n&&(i.all=o+6e4);return i}const vR=64;function yR(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pR(e.bufferSize||vR),r={};return{send:function(o){const i=[];if(lT(o,((t,n)=>{const o=yT(n);mR(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):i.push(t)})),0===i.length)return GT({});const s=cT(o[0],i),a=t=>{lT(s,((n,r)=>{e.recordDroppedEvent(t,yT(r))}))};return n.add((()=>t({body:fT(s)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&x_&&U_.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=gR(r,e),e)),(e=>{throw a("network_error"),x_&&U_.error("Encountered error running transport request:",e),e})))).then((e=>e),(e=>{if(e===dR)return x_&&U_.error("Skipped sending event because buffer is full."),a("queue_overflow"),GT({});throw e}))},flush:e=>n.drain(e)}}var _R=Jr,bR=Ne,SR=ar,wR=ph,kR=wh,ER=ll,xR=1!==[].unshift(0),TR=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();_R({target:"Array",proto:!0,arity:1,forced:xR||TR},{unshift:function(e){var t=bR(this),n=SR(t),r=arguments.length;if(r){ER(n+r);for(var o=n;o--;){var i=o+r;o in t?t[i]=t[o]:kR(t,i)}for(var s=0;s<r;s++)t[s]=arguments[s]}return wR(t,n+r)}});const IR=100,CR=5e3,RR=36e5;function MR(e){function t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];x_&&U_.log("[Offline]:",...t)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let i,s=CR;function a(e){i&&clearTimeout(i),i=setTimeout((async()=>{i=void 0;const e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),u(e,!0).catch((e=>{t("Failed to retry sending",e)})))}),e),"number"!=typeof i&&i.unref&&i.unref()}function c(){i||(a(s),s=Math.min(2*s,RR))}async function u(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!i&&dT(e,["replay_event","replay_recording"]))return await o.push(e),a(IR),{};
1try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=IR;var u,l;if(t)if(null!==(u=t.headers)&&void 0!==u&&u["retry-after"])o=hR(t.headers["retry-after"]);else if(null!==(l=t.headers)&&void 0!==l&&l["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return a(o),s=CR,t}catch(r){if(await function(e,t,r){return!dT(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,r))}(e,r,s))return i?await o.unshift(e):await o.push(e),c(),t("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&c(),{send:u,flush:e=>(void 0===e&&(s=CR,a(IR)),r.flush(e))}}}function AR(e,t){let n;return lT(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}var OR=S,LR=Qn,PR=Eo,DR=P,NR=OR("".charAt),FR=OR("".charCodeAt),$R=OR("".slice),UR=function(e){return function(t,n){var r,o,i=PR(DR(t)),s=LR(n),a=i.length;return s<0||s>=a?e?"":void 0:(r=FR(i,s))<55296||r>56319||s+1===a||(o=FR(i,s+1))<56320||o>57343?e?NR(i,s):r:e?$R(i,s,s+2):o-56320+(r-55296<<10)+65536}},jR={codeAt:UR(!1),charAt:UR(!0)},BR=jR.charAt,HR=Eo,zR=Cn,qR=hp,WR=mp,VR="String Iterator",GR=zR.set,KR=zR.getterFor(VR);qR(String,"String",(function(e){GR(this,{type:VR,string:HR(e),index:0})}),(function(){var e,t=KR(this),n=t.string,r=t.index;return r>=n.length?WR(void 0,!0):(e=BR(n,r),t.index+=e.length,WR(e,!1))}));var JR,YR=i,XR=S,ZR=u,QR=o,eM=Ol,tM=Sr,nM=l,rM=Ne,oM=M,iM=Object.assign,sM=Object.defineProperty,aM=XR([].concat),cM=!iM||QR((function(){if(YR&&1!==iM({b:1},iM(sM({},"a",{enumerable:!0,get:function(){sM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=iM({},e)[n]||eM(iM({},t)).join("")!=r}))?function(e,t){for(var n=rM(e),r=arguments.length,o=1,i=tM.f,s=nM.f;r>o;)for(var a,c=oM(arguments[o++]),u=i?aM(eM(c),i(c)):eM(c),l=u.length,d=0;l>d;)a=u[d++],YR&&!ZR(s,c,a)||(n[a]=c[a]);return n}:iM,uM=ws,lM=u,dM=Ne,pM=Qf,fM=Xc,hM=as,mM=ar,gM=Th,vM=lu,yM=ru,_M=Array,bM=S,SM=2147483647,wM=/[^\0-\u007E]/,kM=/[.\u3002\uFF0E\uFF61]/g,EM="Overflow: input needs wider integers to process",xM=RangeError,TM=bM(kM.exec),IM=Math.floor,CM=String.fromCharCode,RM=bM("".charCodeAt),MM=bM([].join),AM=bM([].push),OM=bM("".replace),LM=bM("".split),PM=bM("".toLowerCase),DM=function(e){return e+22+75*(e<26)},NM=function(e,t,n){var r=0;for(e=n?IM(e/700):e>>1,e+=IM(e/t);e>455;)e=IM(e/35),r+=36;return IM(r+36*e/(e+38))},FM=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=RM(e,n++);if(o>=55296&&o<=56319&&n<r){var i=RM(e,n++);56320==(64512&i)?AM(t,((1023&o)<<10)+(1023&i)+65536):(AM(t,o),n--)}else AM(t,o)}return t}(e);var n,r,o=e.length,i=128,s=0,a=72;for(n=0;n<e.length;n++)(r=e[n])<128&&AM(t,CM(r));var c=t.length,u=c;for(c&&AM(t,"-");u<o;){var l=SM;for(n=0;n<e.length;n++)(r=e[n])>=i&&r<l&&(l=r);var d=u+1;if(l-i>IM((SM-s)/d))throw xM(EM);for(s+=(l-i)*d,i=l,n=0;n<e.length;n++){if((r=e[n])<i&&++s>SM)throw xM(EM);if(r==i){for(var p=s,f=36;;){var h=f<=a?1:f>=a+26?26:f-a;if(p<h)break;var m=p-h,g=36-h;AM(t,CM(DM(h+m%g))),p=IM(m/g),f+=36}AM(t,CM(DM(p))),a=NM(s,d,u==c),s=0,u++}}s++,i++}return MM(t,"")},$M=Jr,UM=i,jM=SI,BM=n,HM=ws,zM=S,qM=Gn,WM=HS,VM=zi,GM=Ue,KM=cM,JM=function(e){var t=dM(e),n=hM(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=uM(o,r>2?arguments[2]:void 0));var s,a,c,u,l,d,p=yM(t),f=0;if(!p||this===_M&&fM(p))for(s=mM(t),a=n?new this(s):_M(s);s>f;f++)d=i?o(t[f],f):t[f],gM(a,f,d);else for(l=(u=vM(t,p)).next,a=n?new this:[];!(c=lM(l,u)).done;f++)d=i?pM(u,o,[c.value,f],!0):c.value,gM(a,f,d);return a.length=f,a},YM=Oh,XM=jR.codeAt,ZM=function(e){var t,n,r=[],o=LM(OM(PM(e),kM,"."),".");for(t=0;t<o.length;t++)n=o[t],AM(r,TM(wM,n)?"xn--"+FM(n):n);return MM(r,".")},QM=Eo,eA=Ni,tA=xs,nA=DC,rA=Cn,oA=rA.set,iA=rA.getterFor("URL"),sA=nA.URLSearchParams,aA=nA.getState,cA=BM.URL,uA=BM.TypeError,lA=BM.parseInt,dA=Math.floor,pA=Math.pow,fA=zM("".charAt),hA=zM(/./.exec),mA=zM([].join),gA=zM(1..toString),vA=zM([].pop),yA=zM([].push),_A=zM("".replace),bA=zM([].shift),SA=zM("".split),wA=zM("".slice),kA=zM("".toLowerCase),EA=zM([].unshift),xA="Invalid scheme",TA="Invalid host",IA="Invalid port",CA=/[a-z]/i,RA=/[\d+-.a-z]/i,MA=/\d/,AA=/^0x/i,OA=/^[0-7]+$/,LA=/^\d+$/,PA=/^[\da-f]+$/i,DA=
vendor: 4,911 bytes, line 1
1/[\0\t\n\r #%/:<>?@[\\\]^|]/,NA=/[\0\t\n\r #/:<>?@[\\\]^|]/,FA=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,$A=/[\t\n\r]/g,UA=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)EA(t,e%256),e=dA(e/256);return mA(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=gA(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},jA={},BA=KM({},jA,{" ":1,'"':1,"<":1,">":1,"`":1}),HA=KM({},BA,{"#":1,"?":1,"{":1,"}":1}),zA=KM({},HA,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),qA=function(e,t){var n=XM(e,0);return n>32&&n<127&&!GM(t,e)?e:encodeURIComponent(e)},WA={ftp:21,file:null,http:80,https:443,ws:80,wss:443},VA=function(e,t){var n;return 2==e.length&&hA(CA,fA(e,0))&&(":"==(n=fA(e,1))||!t&&"|"==n)},GA=function(e){var t;return e.length>1&&VA(wA(e,0,2))&&(2==e.length||"/"===(t=fA(e,2))||"\\"===t||"?"===t||"#"===t)},KA=function(e){return"."===e||"%2e"===kA(e)},JA={},YA={},XA={},ZA={},QA={},eO={},tO={},nO={},rO={},oO={},iO={},sO={},aO={},cO={},uO={},lO={},dO={},pO={},fO={},hO={},mO={},gO=function(e,t,n){var r,o,i,s=QM(e);if(t){if(o=this.parse(s))throw uA(o);this.searchParams=null}else{if(void 0!==n&&(r=new gO(n,!0)),o=this.parse(s,null,r))throw uA(o);(i=aA(new sA)).bindURL(this),this.searchParams=i}};gO.prototype={type:"URL",parse:function(e,t,n){var r,o,i,s,a,c=this,u=t||JA,l=0,d="",p=!1,f=!1,h=!1;for(e=QM(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=_A(e,FA,"")),e=_A(e,$A,""),r=JM(e);l<=r.length;){switch(o=r[l],u){case JA:if(!o||!hA(CA,o)){if(t)return xA;u=XA;continue}d+=kA(o),u=YA;break;case YA:if(o&&(hA(RA,o)||"+"==o||"-"==o||"."==o))d+=kA(o);else{if(":"!=o){if(t)return xA;d="",u=XA,l=0;continue}if(t&&(c.isSpecial()!=GM(WA,d)||"file"==d&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&WA[c.scheme]==c.port&&(c.port=null));d="","file"==c.scheme?u=cO:c.isSpecial()&&n&&n.scheme==c.scheme?u=ZA:c.isSpecial()?u=nO:"/"==r[l+1]?(u=QA,l++):(c.cannotBeABaseURL=!0,yA(c.path,""),u=fO)}break;case XA:if(!n||n.cannotBeABaseURL&&"#"!=o)return xA;if(n.cannotBeABaseURL&&"#"==o){c.scheme=n.scheme,c.path=YM(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=mO;break}u="file"==n.scheme?cO:eO;continue;case ZA:if("/"!=o||"/"!=r[l+1]){u=eO;continue}u=rO,l++;break;case QA:if("/"==o){u=oO;break}u=pO;continue;case eO:if(c.scheme=n.scheme,o==JR)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=YM(n.path),c.query=n.query;else if("/"==o||"\\"==o&&c.isSpecial())u=tO;else if("?"==o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=YM(n.path),c.query="",u=hO;else{if("#"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=YM(n.path),c.path.length--,u=pO;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=YM(n.path),c.query=n.query,c.fragment="",u=mO}break;case tO:if(!c.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=pO;continue}u=oO}else u=rO;break;case nO:if(u=rO,"/"!=o||"/"!=fA(d,l+1))continue;l++;break;case rO:if("/"!=o&&"\\"!=o){u=oO;continue}break;case oO:if("@"==o){p&&(d="%40"+d),p=!0,i=JM(d);for(var m=0;m<i.length;m++){var g=i[m];if(":"!=g||h){var v=qA(g,zA);h?c.password+=v:c.username+=v}else h=!0}d=""}else if(o==JR||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(p&&""==d)return"Invalid authority";l-=JM(d).length+1,d="",u=iO}else d+=o;break;case iO:case sO:if(t&&"file"==c.scheme){u=lO;continue}if(":"!=o||f){if(o==JR||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()){if(c.isSpecial()&&""==d)return TA;if(t&&""==d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d))return s;if(d="",u=dO,t)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return TA;if(s=c.parseHost(d))return s;if(d="",u=aO,t==sO)return}break;case aO:if(!hA(MA,o)){if(o==JR||"/"==o||"?"==o||"#"==o||"\\"==o&&c.isSpecial()||t){if(""!=d){var y=lA(d,10);if(y>65535)return IA;c.port=c.isSpecial()&&y===WA[c.scheme]?null:y,d=""}if(t)return;u=dO;continue}return IA}d+=o;break;case cO:if(c.scheme="file","/"==o||"\\"==o)u=uO;else{if(!n||"file"!=n.scheme){u=pO;continue}if(o==JR)c.host=n.host,c.path=YM(n.path),c.query=n.query;else if("?"==o)c.host=n.host,c.path=YM(n.path),c.query="",u=hO;else{if("#"!=o){GA(mA(YM(r,l),""))||(c.host=n.host,c.path=YM(n.path),c.shortenPath()),u=pO;continue}c.host=n.host,c.path=YM(n.path),c.query=n.query,c.fragment="",u=mO}}break;case uO:if("/"==o||"\\"==o){u=lO;break}n&&"file"==n.scheme&&!GA(mA(YM(r,l),""))&&(VA(n.path[0],!0)?yA(c.path,n.path[0]):c.host=n.host),u=pO;continue;
vendor: 4,460 bytes, line 1
1case lO:if(o==JR||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&VA(d))u=pO;else if(""==d){if(c.host="",t)return;u=dO}else{if(s=c.parseHost(d))return s;if("localhost"==c.host&&(c.host=""),t)return;d="",u=dO}continue}d+=o;break;case dO:if(c.isSpecial()){if(u=pO,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=JR&&(u=pO,"/"!=o))continue}else c.fragment="",u=mO;else c.query="",u=hO;break;case pO:if(o==JR||"/"==o||"\\"==o&&c.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(a=kA(a=d))||"%2e."===a||".%2e"===a||"%2e%2e"===a?(c.shortenPath(),"/"==o||"\\"==o&&c.isSpecial()||yA(c.path,"")):KA(d)?"/"==o||"\\"==o&&c.isSpecial()||yA(c.path,""):("file"==c.scheme&&!c.path.length&&VA(d)&&(c.host&&(c.host=""),d=fA(d,0)+":"),yA(c.path,d)),d="","file"==c.scheme&&(o==JR||"?"==o||"#"==o))for(;c.path.length>1&&""===c.path[0];)bA(c.path);"?"==o?(c.query="",u=hO):"#"==o&&(c.fragment="",u=mO)}else d+=qA(o,HA);break;case fO:"?"==o?(c.query="",u=hO):"#"==o?(c.fragment="",u=mO):o!=JR&&(c.path[0]+=qA(o,jA));break;case hO:t||"#"!=o?o!=JR&&("'"==o&&c.isSpecial()?c.query+="%27":c.query+="#"==o?"%23":qA(o,jA)):(c.fragment="",u=mO);break;case mO:o!=JR&&(c.fragment+=qA(o,BA))}l++}},parseHost:function(e){var t,n,r;if("["==fA(e,0)){if("]"!=fA(e,e.length-1))return TA;if(t=function(e){var t,n,r,o,i,s,a,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,p=function(){return fA(e,d)};if(":"==p()){if(":"!=fA(e,1))return;d+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=n=0;n<4&&hA(PA,p());)t=16*t+lA(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,u>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!hA(MA,p()))return;for(;hA(MA,p());){if(i=lA(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(s=u-l,u=7;0!=u&&s>0;)a=c[u],c[u--]=c[l+s-1],c[l+--s]=a;else if(8!=u)return;return c}(wA(e,1,-1)),!t)return TA;this.host=t}else if(this.isSpecial()){if(e=ZM(e),hA(DA,e))return TA;if(t=function(e){var t,n,r,o,i,s,a,c=SA(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==fA(o,0)&&(i=hA(AA,o)?16:8,o=wA(o,8==i?1:2)),""===o)s=0;else{if(!hA(10==i?LA:8==i?OA:PA,o))return e;s=lA(o,i)}yA(n,s)}for(r=0;r<t;r++)if(s=n[r],r==t-1){if(s>=pA(256,5-t))return null}else if(s>255)return null;for(a=vA(n),r=0;r<n.length;r++)a+=n[r]*pA(256,3-r);return a}(e),null===t)return TA;this.host=t}else{if(hA(NA,e))return TA;for(t="",n=JM(e),r=0;r<n.length;r++)t+=qA(n[r],jA);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return GM(WA,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&VA(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,s=e.path,a=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=UA(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?s[0]:s.length?"/"+mA(s,"/"):"",null!==a&&(u+="?"+a),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw uA(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new vO(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+UA(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(QM(e)+":",JA)},getUsername:function(){return this.username},setUsername:function(e){var t=JM(QM(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=qA(t[n],zA)}},getPassword:function(){return this.password},setPassword:function(e){var t=JM(QM(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=qA(t[n],zA)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?UA(e):UA(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,iO)},getHostname:function(){var e=this.host;return null===e?"":UA(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,sO)},getPort:function(){var e=this.port;return null===e?"":QM(e)}
1,setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=QM(e))?this.port=null:this.parse(e,aO))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+mA(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,dO))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=QM(e))?this.query=null:("?"==fA(e,0)&&(e=wA(e,1)),this.query="",this.parse(e,hO)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=QM(e))?("#"==fA(e,0)&&(e=wA(e,1)),this.fragment="",this.parse(e,mO)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var vO=function(e){var t=VM(this,yO),n=tA(arguments.length,1)>1?arguments[1]:void 0,r=oA(t,new gO(e,!1,n));UM||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},yO=vO.prototype,_O=function(e,t){return{get:function(){return iA(this)[e]()},set:t&&function(e){return iA(this)[t](e)},configurable:!0,enumerable:!0}};if(UM&&(WM(yO,"href",_O("serialize","setHref")),WM(yO,"origin",_O("getOrigin")),WM(yO,"protocol",_O("getProtocol","setProtocol")),WM(yO,"username",_O("getUsername","setUsername")),WM(yO,"password",_O("getPassword","setPassword")),WM(yO,"host",_O("getHost","setHost")),WM(yO,"hostname",_O("getHostname","setHostname")),WM(yO,"port",_O("getPort","setPort")),WM(yO,"pathname",_O("getPathname","setPathname")),WM(yO,"search",_O("getSearch","setSearch")),WM(yO,"searchParams",_O("getSearchParams")),WM(yO,"hash",_O("getHash","setHash"))),qM(yO,"toJSON",(function(){return iA(this).serialize()}),{enumerable:!0}),qM(yO,"toString",(function(){return iA(this).serialize()}),{enumerable:!0}),cA){var bO=cA.createObjectURL,SO=cA.revokeObjectURL;bO&&qM(vO,"createObjectURL",HM(bO,cA)),SO&&qM(vO,"revokeObjectURL",HM(SO,cA))}eA(vO,"URL"),$M({global:!0,constructor:!0,forced:!jM,sham:!UM},{URL:vO});const wO="thismessage:/";function kO(e){return"isRelative"in e}function EO(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=n?wO:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch(e){}}function xO(e){if(kO(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function TO(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function IO(e){return e.split(/[?#]/,1)[0]}function CO(e,t){const n=null==t?void 0:t.getDsn(),r=null==t?void 0:t.getOptions().tunnel;return function(e,t){const n=EO(e);if(!n||kO(n))return!1;return!!t&&(n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search))}(e,n)||function(e,t){if(!t)return!1;return RO(e)===RO(t)}(e,r)}function RO(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function MO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=new String(String.raw(e,...n));return o.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),o.__sentry_template_values__=n,o}const AO=MO;function OO(e){var t;"aggregates"in e?void 0===(null===(t=e.attrs)||void 0===t?void 0:t.ip_address)&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function LO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.client||vE();if(!fI()||!t)return{};const n=pE(R_());if(n.getTraceData)return n.getTraceData(e);const r=e.scope||fE(),o=e.span||qx(),i=o?Ox(o):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Ix(t,r,n)}(r),s=hx(o?nT(o):tT(t,r));if(!Ex.test(i))return U_.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const a={"sentry-trace":i,baggage:s};if(e.propagateTraceparent){const e=function(e){const{traceId:t,parentSpanId:n,parentSampled:r}=xx(e)||{};if(!t||!n)return;return`00-${t}-${n}-${r?"01":"00"}`}(i);e&&(a.traceparent=e)}return a}const PO=100;function DO(e,t){const n=vE(),r=hE();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=PO}=n.getOptions();if(i<=0)return;const s={timestamp:Gk(),...e},a=o?D_((()=>o(s,t))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
1)}let NO;const FO=new WeakMap,$O=()=>({name:"FunctionToString",setupOnce(){NO=Function.prototype.toString;try{Function.prototype.toString=function(){const e=Nk(this),t=FO.has(vE())&&void 0!==e?e:this;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NO.apply(t,r)}}catch(e){}},setup(e){FO.set(e,!0)}});var UO=Il.find;Jr({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{find:function(e){return UO(this,e)}});var jO=Cu,BO=ve,HO=fl;Jr({target:"Iterator",proto:!0,real:!0,forced:!0},{find:function(e){var t=HO(this),n=0;return BO(e),jO(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}});const zO=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],qO=function(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"EventFilters",setup(n){const r=n.getOptions();e=VO(t,r)},processEvent(n,r,o){if(!e){const n=o.getOptions();e=VO(t,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(null==t||!t.length)return!1;const n=e.transaction;return!!n&&Ok(n,t)}(e,t.ignoreTransactions))return x_&&U_.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Hk(e)}`),!0}else{if(function(e,t){if(null==t||!t.length)return!1;return qC(e).some((e=>Ok(e,t)))}(e,t.ignoreErrors))return x_&&U_.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Hk(e)}`),!0;if(function(e){var t;if(null===(t=e.exception)||void 0===t||null===(t=t.values)||void 0===t||!t.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return x_&&U_.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Hk(e)}`),!0;if(function(e,t){if(null==t||!t.length)return!1;const n=GO(e);return!!n&&Ok(n,t)}(e,t.denyUrls))return x_&&U_.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Hk(e)}.\nUrl: ${GO(e)}`),!0;if(!function(e,t){if(null==t||!t.length)return!0;const n=GO(e);return!n||Ok(n,t)}(e,t.allowUrls))return x_&&U_.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Hk(e)}.\nUrl: ${GO(e)}`),!0}return!1}(n,e)?null:n}}},WO=function(){return{...qO(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),name:"InboundFilters"}};function VO(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:zO],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function GO(e){try{var t,n,r;const o=[...null!==(t=null===(n=e.exception)||void 0===n?void 0:n.values)&&void 0!==t?t:[]].reverse().find((e=>{var t,n;return void 0===(null===(t=e.mechanism)||void 0===t?void 0:t.parent_id)&&(null===(n=e.stacktrace)||void 0===n||null===(n=n.frames)||void 0===n?void 0:n.length)})),i=null==o||null===(r=o.stacktrace)||void 0===r?void 0:r.frames;return i?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(i):null}catch(t){return x_&&U_.error(`Cannot extract url for event ${Hk(e)}`),null}}function KO(e,t,n,r,o,i){var s;if(null===(s=o.exception)||void 0===s||!s.values||!i||!_k(i.originalException,Error))return;const a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=JO(e,t,r,i.originalException,n,o.exception.values,a,0))}function JO(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(_k(r[o],Error)){YO(s,a);const i=e(t,r[o]),u=c.length;XO(i,o,u,a),c=JO(e,t,n,r[o],o,[i,...c],i,u)}
1return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(_k(r,Error)){YO(s,a);const u=e(t,r),l=c.length;XO(u,`errors[${i}]`,l,a),c=JO(e,t,n,r,o,[u,...c],u,l)}})),c}function YO(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function XO(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const ZO=new Map,QO=new Set;function eL(e,t){return function(e){if(I_._sentryModuleMetadata)for(const t of Object.keys(I_._sentryModuleMetadata)){const n=I_._sentryModuleMetadata[t];if(QO.has(t))continue;QO.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){ZO.set(e.filename,n);break}}}(e),ZO.get(t)}function tL(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const t=eL(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}}function nL(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}const rL=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{lT(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(nL(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;tL(e.getOptions().stackParser,t)}))}});function oL(e){const t="console";X_(t,e),Z_(t,iL)}function iL(){"console"in I_&&O_.forEach((function(e){e in I_.console&&Lk(I_.console,e,(function(t){return P_[e]=t,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Q_("console",{args:n,level:e});const o=P_[e];null==o||o.apply(I_.console,n)}}))}))}function sL(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const aL=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.levels||O_,r=null===(e=t.handled)||void 0===e||e;return{name:"CaptureConsole",setup(e){"console"in I_&&oL((t=>{let{args:o,level:i}=t;vE()===e&&n.includes(i)&&function(e,t,n){const r={level:sL(t),extra:{arguments:e}};gE((o=>{if(o.addEventProcessor((e=>(e.logger="console",qk(e,{handled:n,type:"console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${Mk(e.slice(1)," ")||"console.assert"}`;o.setExtra("arguments",e.slice(1)),cI(t,r)}return}const i=e.find((e=>e instanceof Error));if(i)return void aI(i,r);cI(Mk(e," "),r)}))}(o,i,r)}))}}};const cL=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!lL(e,t))return!1;if(!uL(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=dL(t),r=dL(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!lL(e,t))return!1;if(!uL(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return x_&&U_.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function uL(e,t){let n=K_(e),r=K_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function lL(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function dL(e){var t;return null===(t=e.exception)||void 0===t||null===(t=t.values)||void 0===t?void 0:t[0]}const pL=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i=250}=o.getOptions();return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;if(!t.originalException||!uk(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=fL(t.originalException,r,o);if(s){const t={...e.contexts},r=iT(s,n);return gk(r)&&(Pk(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};
1function fL(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=uk(i)||"string"==typeof i?Ck(`${i}`,n):i}if(t&&void 0!==e.cause)if(uk(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:fL(e.cause,!1,n)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=uk(n)?n.toString():n}}return o}catch(e){x_&&U_.error("Unable to extract extra data from the Error object:",e)}return null}const hL=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function mL(){let e="",t=!1;for(let n=arguments.length-1;n>=-1&&!t;n--){const r=n>=0?n<0||arguments.length<=n?void 0:arguments[n]:"/";r&&(e=`${r}/${e}`,t="/"===r.charAt(0))}return e=function(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}(e.split("/").filter((e=>!!e)),!t).join("/"),(t?"/":"")+e||"."}function gL(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function vL(e,t){return function(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=hL.exec(t);return n?n.slice(1):[]}(e)[2]||""}const yL=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.root,n=e.prefix||"app:///",r="window"in I_&&!!I_.window,o=e.iteratee||function(e){let{isBrowser:t,root:n,prefix:r}=e;return e=>{if(!e.filename)return e;const o=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),i=/^\//.test(e.filename);if(t){if(n){const t=e.filename;0===t.indexOf(n)&&(e.filename=t.replace(n,r))}}else if(o||i){const t=o?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,i=n?function(e,t){e=mL(e).slice(1),t=mL(t).slice(1);const n=gL(e.split("/")),r=gL(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){i=e;break}let s=[];for(let e=i;e<n.length;e++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}(n,t):vL(t);e.filename=`${r}${i}`}return e}}({isBrowser:r,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:null==t||null===(n=t.frames)||void 0===n?void 0:n.map((e=>o(e)))})}};var t,n}))}}}catch(t){return e}}(t)),t}}};const _L=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],bL=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],SL={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},wL=["select","insert","upsert","update","delete"];function kL(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch(e){}}function EL(e){try{return e.__SENTRY_INSTRUMENTED__}catch(e){return!1}}function xL(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=null!=n&&n.startsWith("fts")?"textSearch":null!=n&&n.startsWith("plfts")?"textSearch[plain]":null!=n&&n.startsWith("phfts")?"textSearch[phrase]":null!=n&&n.startsWith("wfts")?"textSearch[websearch]":n&&SL[n]||"filter",`${o}(${e}, ${r.join(".")})`}function TL(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Proxy(e,{apply:(n,r,o)=>MT({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[kE]:"auto.db.supabase",[wE]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},(e=>Reflect.apply(n,r,o).then((t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:DE}),aI(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:PE}),e.end(),t))).catch((t=>{throw e.setStatus({code:DE}),e.end(),aI(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t})).then(...o)))})}function IL(e){EL(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,n){const r=Reflect.apply(e,t,n);return function(e){for(const t of wL)EL(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){const o=Reflect.apply(e,n,r),i=o.constructor;return x_&&U_.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),CL(i),o}}),kL(e.prototype[t]))}(r.constructor),r}}),kL(e.prototype.from))}function CL(e){EL(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){var r;const o=wL,i=t,s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"GET":return"select";case"POST":var n;return null!==(n=t.Prefer)&&void 0!==n&&n.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(i.method,i.headers);if(!o.includes(s))return Reflect.apply(e,t,n);if(null==i||null===(r=i.url)||void 0===r||!r.pathname||"string"!=typeof i.url.pathname)return Reflect.apply(e,t,n);const a=i.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];
1for(const[e,t]of i.url.searchParams.entries())u.push(xL(e,t));const l=Object.create(null);if(gk(i.body))for(const[e,t]of Object.entries(i.body))l[e]=t;const d=`${"select"===s?"":`${s}${l?"(...) ":""}`}${u.join(" ")} from(${c})`,p={"db.table":c,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers["X-Client-Info"],"db.system":"postgresql","db.operation":s,[kE]:"auto.db.supabase",[wE]:"db"};return u.length&&(p["db.query"]=u),Object.keys(l).length&&(p["db.body"]=l),MT({name:d,attributes:p},(r=>Reflect.apply(e,t,[]).then((e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&FE(r,e.status||500),r.end()),e.error){const t=new Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);const n={};u.length&&(n.query=u),Object.keys(l).length&&(n.body=l),aI(t,(e=>(e.addEventProcessor((e=>(qk(e,{handled:!1,type:"auto.db.supabase.postgres"}),e))),e.setContext("supabase",n),e)))}const t={type:"supabase",category:`db.${s}`,message:d},n={};return u.length&&(n.query=u),Object.keys(l).length&&(n.body=l),Object.keys(n).length&&(t.data=n),DO(t),e}),(e=>{throw r&&(FE(r,500),r.end()),e})).then(...n)))}}),kL(e.prototype.then))}const RL=e=>{if(!e)return void(x_&&U_.warn("Supabase integration was not installed because no Supabase client was provided."));IL(e.constructor===Function?e:e.constructor),function(e){const t=e.auth;if(t&&!EL(e.auth)){for(const n of _L){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=TL(r))}for(const n of bL){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=TL(r,!0))}kL(e.auth)}}(e)},ML=e=>{return t=e.supabaseClient,{setupOnce(){RL(t)},name:"Supabase"};var t};function AL(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function OL(e){const t=new Set;for(const n of e.issues){const e=n.path.map((e=>"number"==typeof e?"<array>":e)).join(".");e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${Ck(n.join(", "),100)}`}function LL(e){var t;let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(!(null!==(t=r.exception)&&void 0!==t&&t.values&&o.originalException&&(i=o.originalException,uk(i)&&"ZodError"===i.name&&Array.isArray(i.issues))&&0!==o.originalException.issues.length))return r;var i;try{const t=(n?o.originalException.issues:o.originalException.issues.slice(0,e)).map(AL);return n&&(Array.isArray(o.attachments)||(o.attachments=[]),o.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:t})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:OL(o.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":t.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:"unknown"}}}}}const PL=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=null!==(e=t.limit)&&void 0!==e?e:10;return{name:"ZodErrors",processEvent:(e,r)=>LL(n,t.saveZodIssuesAsAttachment,e,r)}},DL=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{lT(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(nL(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;tL(e.getOptions().stackParser,t)}))},processEvent(t){const n=function(e){const t=K_(e);if(!t)return;return t.filter((e=>!!e.filename)).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(NL))).map((e=>e.slice(NL.length))):[]))}(t);if(n){const r=n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))));if(r){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}});const NL="_sentryBundlerPluginAppKey:",FL=100,$L=10,UL="flag.evaluation.";function jL(e){const t=fE().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function BL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:FL;const r=fE().getScopeData().contexts;r.flags||(r.flags={values:[]});!function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>
1r)return void(x_&&U_.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const o=e.findIndex((e=>e.flag===t));-1!==o&&e.splice(o,1);e.length===r&&e.shift();e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function HL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$L;if("boolean"!=typeof t)return;const r=qx();if(!r)return;const o=Nx(r).data;if(`${UL}${e}`in o)return void r.setAttribute(`${UL}${e}`,t);const i=Object.keys(o).filter((e=>e.startsWith(UL))).length;i<n&&r.setAttribute(`${UL}${e}`,t)}const zL=()=>({name:"FeatureFlags",processEvent:(e,t,n)=>jL(e),addFeatureFlag(e,t){BL(e,t),HL(e,t)}});function qL(e,t,n,r,o){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,a=Yx()&&t(s);if(e.endTimestamp&&a){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(!function(e,t){if(t.response){var n;FE(e,t.response.status);const r=null===(n=t.response)||void 0===n||null===(n=n.headers)||void 0===n?void 0:n.get("content-length");if(r){const t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:DE,message:"internal_error"});e.end()}(n,e),delete r[t]))}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof o?o:{spanOrigin:o},l=!!qx(),d=a&&l?AT(function(e,t,n){const r=EO(e);return{name:r?`${t} ${xO(r)}`:t,attributes:VL(e,r,t,n)}}(s,i,c)):new rT;if(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(e.fetchData.url)){const t=e.args[0],n=e.args[1]||{},r=function(e,t,n,r){const o=LO({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;const c=t.headers||(Sk(e)?e.headers:void 0);if(c){if(function(e){return"undefined"!=typeof Headers&&_k(e,Headers)}(c)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&a&&!e.get("traceparent")&&e.set("traceparent",a),s){const t=e.get("baggage");t?WL(t)||e.set("baggage",`${t},${s}`):e.set("baggage",s)}return e}if(Array.isArray(c)){const e=[...c];c.find((e=>"sentry-trace"===e[0]))||e.push(["sentry-trace",i]),r&&a&&!c.find((e=>"traceparent"===e[0]))&&e.push(["traceparent",a]);const t=c.find((e=>"baggage"===e[0]&&WL(e[1])));return s&&!t&&e.push(["baggage",s]),e}{const e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],u=n&&(Array.isArray(n)?n.find((e=>WL(e))):WL(n));s&&!u&&o.push(s);const l={...c,"sentry-trace":null!=e?e:i,baggage:o.length>0?o.join(","):void 0};return r&&a&&!t&&(l.traceparent=a),l}}return{...o}}(t,n,Yx()&&l?d:void 0,u);r&&(e.args[1]=n,n.headers=r)}const p=vE();if(p){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,t)}return d}function WL(e){return e.split(",").some((e=>e.trim().startsWith(lx)))}function VL(e,t,n,r){const o={url:e,type:"fetch","http.method":n,[kE]:r,[wE]:"http.client"};return t&&(kO(t)||(o["http.url"]=t.href,o["server.address"]=t.host),t.search&&(o["http.query"]=t.search),t.hash&&(o["http.fragment"]=t.hash)),o}function GL(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fE();const{message:r,name:o,email:i,url:s,source:a,associatedEventId:c,tags:u}=e,l={contexts:{feedback:{contact_email:i,name:o,message:r,url:s,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},d=(null==n?void 0:n.getClient())||vE();d&&d.emit("beforeSendFeedback",l,t);return n.captureEvent(l,t)}const KL={[kE]:"auto.console.logging"},JL=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).levels||O_;return{name:"ConsoleLogs",setup(t){const{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:o=1e3}=t.getOptions();n?oL((n=>{let{args:i,level:s}=n;if(vE()!==t||!e.includes(s))return;if("assert"===s){if(!i[0]){const e=i.slice(1);sR({level:"error",message:e.length>0?`Assertion failed: ${YL(e,r,o)}`:"Assertion failed",attributes:KL})}return}const a="log"===s;sR({level:a?"info":s,message:YL(i,r,o),severityNumber:a?10:void 0,attributes:KL})})):x_&&U_.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled")}}};
1function YL(e,t,n){return"util"in I_&&"function"==typeof I_.util.format?I_.util.format(...e):function(e,t,n){return e.map((e=>mk(e)?String(e):JSON.stringify(iT(e,t,n)))).join(" ")}(e,t,n)}function XL(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var ZL=Jr,QL=n,eP=G,tP=g,nP=It.f,rP=Ue,oP=zi,iP=fo,sP=To,aP={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}
1,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}},cP=Po,uP=i,lP="DOMException",dP=eP("Error"),pP=eP(lP),fP=function(){oP(this,hP);var e=arguments.length,t=sP(e<1?void 0:arguments[0]),n=sP(e<2?void 0:arguments[1],"Error"),r=new pP(t,n),o=dP(t);return o.name=lP,nP(r,"stack",tP(1,cP(o.stack,1))),iP(r,this,fP),r},hP=fP.prototype=pP.prototype,mP="stack"in dP(lP),gP="stack"in new pP(1,2),vP=pP&&uP&&Object.getOwnPropertyDescriptor(QL,lP),yP=!(!vP||vP.writable&&vP.configurable),_P=mP&&!yP&&!gP;ZL({global:!0,constructor:!0,forced:_P},{DOMException:_P?fP:pP});var bP=eP(lP),SP=bP.prototype;if(SP.constructor!==bP)for(var wP in nP(SP,"constructor",tP(1,bP)),aP)if(rP(aP,wP)){var kP=aP[wP],EP=kP.s;rP(bP,EP)||nP(bP,EP,tP(6,kP.c))}const xP=I_;function TP(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function IP(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in xP))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(TP(xP.fetch))return!0;let e=!1;const t=xP.document;if(t&&"function"==typeof t.createElement)try{var n;const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),null!==(n=r.contentWindow)&&void 0!==n&&n.fetch&&(e=TP(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){x_&&U_.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function CP(e,t){const n="fetch";X_(n,e),Z_(n,(()=>RP(void 0,t)))}function RP(e){arguments.length>
11&&void 0!==arguments[1]&&arguments[1]&&!IP()||Lk(I_,"fetch",(function(t){return function(){const n=new Error;for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const{method:s,url:a}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:OP(t),method:AP(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:OP(t),method:AP(t,"method")?String(t.method).toUpperCase():"GET"}}(o),c={args:o,fetchData:{method:s,url:a},startTimestamp:1e3*Yk(),virtualError:n,headers:LP(o)};return e||Q_("fetch",{...c}),t.apply(I_,o).then((async t=>(e?e(t):Q_("fetch",{...c,endTimestamp:1e3*Yk(),response:t}),t)),(e=>{if(Q_("fetch",{...c,endTimestamp:1e3*Yk(),error:e}),uk(e)&&void 0===e.stack&&(e.stack=n.stack,Pk(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(c.fetchData.url);e.message=`${e.message} (${t.host})`}catch(e){}throw e}))}}))}function MP(e){let t;try{t=e.clone()}catch(e){return}!async function(e,t){if(null!=e&&e.body){const n=e.body,r=n.getReader(),o=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let i=!0;for(;i;){let e;try{e=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:o}=await r.read();clearTimeout(e),o&&(t(),i=!1)}catch(e){i=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t,(()=>{Q_("fetch-body-resolved",{endTimestamp:1e3*Yk(),response:e})}))}function AP(e,t){return!!e&&"object"==typeof e&&!!e[t]}function OP(e){return"string"==typeof e?e:e?AP(e,"url")?e.url:e.toString?e.toString():"":""}function LP(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(Sk(t))return new Headers(t.headers)}catch(e){}}function PP(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function DP(){return"undefined"!=typeof window&&(!PP()||function(){const e=I_.process;return"renderer"===(null==e?void 0:e.type)}())}const NP=I_,FP=NP.document,$P=NP.navigator,UP="Report a Bug",jP="Cancel",BP="Send Bug Report",HP="Confirm",zP="Report a Bug",qP="[email protected]",WP="Email",VP="What's the bug? What did you expect?",GP="Description",KP="Your Name",JP="Name",YP="Thank you for your report!",XP="(required)",ZP="Add a screenshot",QP="Remove screenshot",eD="Highlight",tD="Hide",nD="Remove",rD="widget",oD=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeReplay:!0};if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=vE();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&fE().setTags(e.tags);const r=GL({source:"api",url:Tk(),...e},t);return new Promise(((e,t)=>{const o=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),3e4),i=n.on("afterSendEvent",((n,s)=>{if(n.event_id===r)return clearTimeout(o),i(),null!=s&&s.statusCode&&s.statusCode>=200&&s.statusCode<300?e(r):403===(null==s?void 0:s.statusCode)?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")}))}))},iD="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function sD(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;null===(n=t.onFormOpen)||void 0===n||n.call(t),null===(r=e.onFormOpen)||void 0===r||r.call(e)},onFormClose:()=>{var n,r;null===(n=t.onFormClose)||void 0===n||n.call(t),null===(r=e.onFormClose)||void 0===r||r.call(e)},onSubmitSuccess:(n,r)=>{var o,i;null===(o=t.onSubmitSuccess)||void 0===o||o.call(t,n,r),null===(i=e.onSubmitSuccess)||void 0===i||i.call(e,n,r)},onSubmitError:n=>{var r,o;null===(r=t.onSubmitError)||void 0===r||r.call(t,n),null===(o=e.onSubmitError)||void 0===o||o.call(e,n)},onFormSubmitted:()=>{var n,r;null===(n=t.onFormSubmitted)||void 0===n||n.call(t),null===(r=e.onFormSubmitted)||void 0===r||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function aD(e,t){return Object.entries(t).forEach((t=>{let[n,r]=t;e.setAttributeNS(null,n,r)})),e}const cD=20,uD="http://www.w3.org/2000/svg";function lD(e){let{triggerLabel:t,triggerAriaLabel:n,shadow:r,styleNonce:o}=e;const i=FP.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=n||t||UP,i.appendChild(function(){const e=e=>NP.document.createElementNS(uD,e),t=aD(e("svg"),{width:`${cD}`,height:`${cD}`,viewBox:`0 0 ${cD} ${cD}`,fill:"var(--actor-color, var(--foreground))"}),n=aD(e("g"),{clipPath:"url(#clip0_57_80)"}),r=aD(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
156 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const o=e("defs"),i=aD(e("clipPath"),{id:"clip0_57_80"}),s=aD(e("rect"),{width:`${cD}`,height:`${cD}`,fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}()),t){const e=FP.createElement("span");e.appendChild(FP.createTextNode(t)),i.appendChild(e)}const s=function(e){const t=FP.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));
1\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(o);return{el:i,appendToDom(){r.appendChild(s),r.appendChild(i)},removeFromDom(){i.remove(),s.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const dD="rgba(88, 74, 192, 1)",pD={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:dD,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},fD={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:dD,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function hD(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}const mD=e=>{let{lazyLoadIntegration:t,getModalIntegration:n,getScreenshotIntegration:r}=e;return function(){let{id:e="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:s=!1,isNameRequired:a=!1,showEmail:c=!0,showName:u=!0,enableScreenshot:l=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:v={},addScreenshotButtonLabel:y=ZP,cancelButtonLabel:_=jP,confirmButtonLabel:b=HP,emailLabel:S=WP,emailPlaceholder:w=qP,formTitle:k=zP,isRequiredLabel:E=XP,messageLabel:x=GP,messagePlaceholder:T=VP,nameLabel:I=JP,namePlaceholder:C=KP,removeScreenshotButtonLabel:R=QP,submitButtonLabel:M=BP,successMessageText:A=YP,triggerLabel:O=UP,triggerAriaLabel:L="",highlightToolText:P=eD,hideToolText:D=tD,removeHighlightText:N=nD,onFormOpen:F,onFormClose:$,onSubmitSuccess:U,onSubmitError:j,onFormSubmitted:B}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const H={id:e,autoInject:o,showBranding:i,isEmailRequired:s,isNameRequired:a,showEmail:c,showName:u,enableScreenshot:l,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:v,themeLight:g,triggerLabel:O,triggerAriaLabel:L,cancelButtonLabel:_,submitButtonLabel:M,confirmButtonLabel:b,formTitle:k,emailLabel:S,emailPlaceholder:w,messageLabel:x,messagePlaceholder:T,nameLabel:I,namePlaceholder:C,successMessageText:A,isRequiredLabel:E,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:R,highlightToolText:P,hideToolText:D,removeHighlightText:N,onFormClose:$,onFormOpen:F,onSubmitError:j,onSubmitSuccess:U,onFormSubmitted:B};let z=null,q=[];const W=e=>{if(!z){const t=FP.createElement("div");t.id=String(e.id),FP.body.appendChild(t),z=t.attachShadow({mode:"open"}),z.appendChild(function(e){let{colorScheme:t,themeDark:n,themeLight:r,styleNonce:o}=e;const i=FP.createElement("style");return i.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==t?"color-scheme: only light;":""}\n\n ${hD("dark"===t?{...fD,...n}:{...pD,...r})}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${hD({...fD,...n})}\n }\n}`:""}\n}\n`,o&&i.setAttribute("nonce",o),i}(e))}return z},V=async e=>{const o=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test($P.userAgent)||/Macintosh/i.test($P.userAgent)&&$P.maxTouchPoints&&$P.maxTouchPoints>1||!isSecureContext);let i,s;try{i=(n?n():await t("feedbackModalIntegration",h))(),zC(i)}catch(e){throw iD&&U_.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const e=o?r?r():await t("feedbackScreenshotIntegration",h):void 0;e&&(s=e(),zC(s))}catch(e){iD&&U_.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const a=i.createDialog({options:{...e,onFormClose:()=>{var t;null==a||a.close(),null===(t=e.onFormClose)||void 0===t||t.call(e)},onFormSubmitted:()=>{var t;null==a||a.close(),null===(t=e.onFormSubmitted)||void 0===t||t.call(e)}},screenshotIntegration:s,sendFeedback:oD,shadow:W(e)}
1);return a},G=function(e){const t=sD(H,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n="string"==typeof e?FP.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw iD&&U_.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let r=null;const o=async()=>{r||(r=await V({...t,onFormSubmitted:()=>{var e,n;null===(e=r)||void 0===e||e.removeFromDom(),null===(n=t.onFormSubmitted)||void 0===n||n.call(t)}})),r.appendToDom(),r.open()};n.addEventListener("click",o);const i=()=>{var e;q=q.filter((e=>e!==i)),null===(e=r)||void 0===e||e.removeFromDom(),r=null,n.removeEventListener("click",o)};return q.push(i),i},K=function(){const e=sD(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=W(e),n=lD({triggerLabel:e.triggerLabel,triggerAriaLabel:e.triggerAriaLabel,shadow:t,styleNonce:f});return G(n.el,{...e,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){DP()&&H.autoInject&&("loading"===FP.readyState?FP.addEventListener("DOMContentLoaded",(()=>K().appendToDom())):K().appendToDom())},attachTo:G,createWidget(){const e=K(sD(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}));return e.appendToDom(),e},async createForm(){return V(sD(H,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))},remove(){var e;z&&(null===(e=z.parentElement)||void 0===e||e.remove(),z=null);q.forEach((e=>e())),q=[]}}}};var gD,vD,yD,_D,bD,SD,wD,kD={},ED=[],xD=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,TD=Array.isArray;function ID(e,t){for(var n in t)e[n]=t[n];return e}function CD(e){var t=e.parentNode;t&&t.removeChild(e)}function RD(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?gD.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return MD(e,s,r,o,null)}function MD(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++yD:o,__i:-1,__u:0};return null==o&&null!=vD.vnode&&vD.vnode(i),i}function AD(e){return e.children}function OD(e,t){this.props=e,this.context=t}function LD(e,t){if(null==t)return e.__?LD(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?LD(e):null}function PD(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=ID({},o)).__v=o.__v+1,vD.vnode&&vD.vnode(r),WD(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?LD(o):i,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&DD(r),r}function DD(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return DD(e)}}function ND(e){(!e.__d&&(e.__d=!0)&&_D.push(e)&&!FD.__r++||bD!==vD.debounceRendering)&&((bD=vD.debounceRendering)||SD)(FD)}function FD(){var e,t,n,r=[],o=[];for(_D.sort(wD);e=_D.shift();)e.__d&&(n=_D.length,t=PD(e,r,o)||t,0===n||_D.length>n?(VD(r,t,o),o.length=r.length=0,t=void 0,_D.sort(wD)):t&&vD.__c&&vD.__c(t,ED));t&&VD(r,t,o),FD.__r=0}function $D(e,t,n,r,o,i,s,a,c,u,l){var d,p,f,h,m,g=r&&r.__k||ED,v=t.length;for(n.__d=c,function(e,t,n){var r,o,i,s,a,c=t.length,u=n.length,l=u,d=0;for(e.__k=[],r=0;r<c;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?MD(null,o,null,null,o):TD(o)?MD(AD,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?MD(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=jD(o,n,s=r+d,l),o.__i=a,i=null,-1!==a&&(l--,(i=n[a])&&(i.__u|=131072)),null==i||null===i.__v?(-1==a&&d--,"function"!=typeof o.type&&(o.__u|=65536)):a!==s&&(a===s+1?d++:a>s?l>c-s?d+=a-s:d--:d=a<s&&a==s-1?a-s:0,a!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=LD(i)),KD(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=LD(i)),KD(i,i))}(n,t,g),c=n.__d,d=0;d<v;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?kD:g[f.__i]||kD,f.__i=d,WD(e,f,p,o,i,s,a,c,u,l),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&GD(p.ref,null,f),l.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?c=UD(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function UD(e,t,n){var r,o;
vendor: 1,974 bytes, line 1
1if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=UD(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function jD(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,c=t[n];if(null===c||c&&o==c.key&&i===c.type)return n;if(r>(null!=c&&0==(131072&c.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&0==(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function BD(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||xD.test(t)?n:n+"px"}function HD(e,t,n,r,o){var i;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||BD(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||BD(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?qD:zD,i)):e.removeEventListener(t,i?qD:zD,i);else{if(o)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&&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,n))}}function zD(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(vD.event?vD.event(e):e)}}function qD(e){if(this.l)return this.l[e.type+!0](vD.event?vD.event(e):e)}function WD(e,t,n,r,o,i,s,a,c,u){var l,d,p,f,h,m,g,v,y,_,b,S,w,k,E,x=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(l=vD.__b)&&l(t);e:if("function"==typeof x)try{if(v=t.props,y=(l=x.contextType)&&r[l.__c],_=l?y?
vendor: 4,627 bytes, line 1
1y.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in x&&x.prototype.render?t.__c=d=new x(v,_):(t.__c=d=new OD(v,_),d.constructor=x,d.render=JD),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=_,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=x.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=ID({},d.__s)),ID(d.__s,x.getDerivedStateFromProps(v,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==x.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,_),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,_)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,_),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=_,d.props=v,d.__P=e,d.__e=!1,S=vD.__r,w=0,"prototype"in x&&x.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),l=d.render(d.props,d.state,d.context),k=0;k<d._sb.length;k++)d.__h.push(d._sb[k]);d._sb=[]}else do{d.__d=!1,S&&S(t),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++w<25);d.state=d.__s,null!=d.getChildContext&&(r=ID(ID({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),$D(e,TD(E=null!=l&&l.type===AD&&null==l.key?l.props.children:l)?E:[E],t,n,r,o,i,s,a,c,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=i?(t.__e=a,t.__u|=c?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),vD.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,s,a,c){var u,l,d,p,f,h,m,g=n.props,v=t.props,y=t.type;if("svg"===y&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,i[u]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,a=!1}if(null===y)g===v||a&&e.data===v||(e.data=v);else{if(i=i&&gD.call(e.childNodes),g=n.props||kD,!a&&null!=i)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in v||HD(e,u,null,f,o));for(u in v)f=v[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||a&&"function"!=typeof f||g[u]===f||HD(e,u,f,g[u],o);if(l)a||d&&(l.__html===d.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(d&&(e.innerHTML=""),$D(e,TD(p)?p:[p],t,n,r,o&&"foreignObject"!==y,i,s,i?i[0]:n.__k&&LD(n,0),a,c),null!=i)for(u=i.length;u--;)null!=i[u]&&CD(i[u]);a||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&HD(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&HD(e,u,m,g[u],!1))}return e}(n.__e,t,n,r,o,i,s,c,u);(l=vD.diffed)&&l(t)}function VD(e,t,n){for(var r=0;r<n.length;r++)GD(n[r],n[++r],n[++r]);vD.__c&&vD.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){vD.__e(e,t.__v)}}))}function GD(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){vD.__e(e,n)}}function KD(e,t,n){var r,o;if(vD.unmount&&vD.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||GD(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){vD.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&KD(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||CD(e.__e),e.__=e.__e=e.__d=void 0}function JD(e,t,n){return this.constructor(e,n)}gD=ED.slice,vD={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},yD=0,OD.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ID({},this.state),"function"==typeof e&&(e=e(ID({},n),this.props)),e&&ID(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ND(this))},OD.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ND(this))},OD.prototype.render=AD,_D=[],SD="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 3,610 bytes, line 1
1ise.resolve()):setTimeout,wD=function(e,t){return e.__v.__b-t.__v.__b},FD.__r=0;var YD,XD,ZD,QD,eN=0,tN=[],nN=[],rN=vD,oN=rN.__b,iN=rN.__r,sN=rN.diffed,aN=rN.__c,cN=rN.unmount,uN=rN.__;function lN(e,t){rN.__h&&rN.__h(XD,e,eN||t),eN=0;var n=XD.__H||(XD.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:nN}),n.__[e]}function dN(e){return eN=1,pN(wN,e)}function pN(e,t,n){var r=lN(YD++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):wN(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=XD,!XD.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var s=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}})),!(!s&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};XD.u=!0;var i=XD.shouldComponentUpdate,s=XD.componentWillUpdate;XD.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}s&&s.call(this,e,t,n)},XD.shouldComponentUpdate=o}return r.__N||r.__}function fN(e,t){var n=lN(YD++,4);!rN.__s&&SN(n.__H,t)&&(n.__=e,n.i=t,XD.__h.push(n))}function hN(e,t){var n=lN(YD++,7);return SN(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function mN(e,t){return eN=8,hN((function(){return e}),t)}function gN(){for(var e;e=tN.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(_N),e.__H.__h.forEach(bN),e.__H.__h=[]}catch(t){e.__H.__h=[],rN.__e(t,e.__v)}}rN.__b=function(e){XD=null,oN&&oN(e)},rN.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),uN&&uN(e,t)},rN.__r=function(e){iN&&iN(e),YD=0;var t=(XD=e.__c).__H;t&&(ZD===XD?(t.__h=[],XD.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=nN,e.__N=e.i=void 0}))):(t.__h.forEach(_N),t.__h.forEach(bN),t.__h=[],YD=0)),ZD=XD},rN.diffed=function(e){sN&&sN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==tN.push(t)&&QD===rN.requestAnimationFrame||((QD=rN.requestAnimationFrame)||yN)(gN)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==nN&&(e.__=e.__V),e.i=void 0,e.__V=nN}))),ZD=XD=null},rN.__c=function(e,t){t.some((function(e){try{e.__h.forEach(_N),e.__h=e.__h.filter((function(e){return!e.__||bN(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],rN.__e(n,e.__v)}})),aN&&aN(e,t)},rN.unmount=function(e){cN&&cN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{_N(e)}catch(e){t=e}})),n.__H=void 0,t&&rN.__e(t,n.__v))};var vN="function"==typeof requestAnimationFrame;function yN(e){var t,n=function(){clearTimeout(r),vN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);vN&&(t=requestAnimationFrame(n))}function _N(e){var t=XD,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),XD=t}function bN(e){var t=XD;e.__c=e.__(),XD=t}function SN(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function wN(e,t){return"function"==typeof t?t(e):t}const kN=Object.defineProperty({__proto__:null,useCallback:mN,useContext:function(e){var t=XD.context[e.__c],n=lN(YD++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(XD)),t.props.value):e.__},useDebugValue:function(e,t){rN.useDebugValue&&rN.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=lN(YD++,3);!rN.__s&&SN(n.__H,t)&&(n.__=e,n.i=t,XD.__H.__h.push(n))},useErrorBoundary:function(e){var t=lN(YD++,10),n=dN();return t.__=e,XD.componentDidCatch||(XD.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=lN(YD++,11);if(!e.__){for(var t=XD.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}
1,useImperativeHandle:function(e,t,n){eN=6,fN((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useLayoutEffect:fN,useMemo:hN,useReducer:pN,useRef:function(e){return eN=5,hN((function(){return{current:e}}),[])},useState:dN},Symbol.toStringTag,{value:"Module"}),EN="http://www.w3.org/2000/svg";function xN(){const e=e=>FP.createElementNS(EN,e),t=aD(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=aD(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function TN(e){let{options:t}=e;const n=hN((()=>({__html:xN().outerHTML})),[]);return RD("h2",{class:"dialog__header"},RD("span",{class:"dialog__title"},t.formTitle),t.showBranding?RD("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:n}):null)}function IN(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function CN(e){let{options:t,defaultEmail:n,defaultName:r,onFormClose:o,onSubmit:i,onSubmitSuccess:s,onSubmitError:a,showEmail:c,showName:u,screenshotInput:l}=e;const{tags:d,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:f,cancelButtonLabel:h,emailLabel:m,emailPlaceholder:g,isEmailRequired:v,isNameRequired:y,messageLabel:_,messagePlaceholder:b,nameLabel:S,namePlaceholder:w,submitButtonLabel:k,isRequiredLabel:E}=t,[x,T]=dN(!1),[I,C]=dN(null),[R,M]=dN(!1),A=null==l?void 0:l.input,[O,L]=dN(null),P=mN((e=>{L(e),M(!1)}),[]),D=mN((e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:m,isEmailRequired:v,isNameRequired:y,messageLabel:_,nameLabel:S});return t.length>0?C(`Please enter in the following required fields: ${t.join(", ")}`):C(null),0===t.length}),[m,v,y,_,S]),N=mN((async e=>{T(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(l&&R?l.value():void 0),r={name:IN(t,"name"),email:IN(t,"email"),message:IN(t,"message"),attachments:n?[n]:void 0};if(!D(r))return;try{const e=await i({name:r.name,email:r.email,message:r.message,source:rD,tags:d},{attachments:r.attachments});s(r,e)}catch(e){iD&&U_.error(e),C(e),a(e)}}finally{T(!1)}}),[l&&R,s,a]);return RD("form",{class:"form",onSubmit:N},A&&R?RD(A,{onError:P}):null,RD("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},RD("div",{class:"form__top"},I?RD("div",{class:"form__error-container"},I):null,u?RD("label",{for:"name",class:"form__label"},RD(RN,{label:S,isRequiredLabel:E,isRequired:y}),RD("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:w,required:y,type:"text"})):RD("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),c?RD("label",{for:"email",class:"form__label"},RD(RN,{label:m,isRequiredLabel:E,isRequired:v}),RD("input",{class:"form__input",defaultValue:n,id:"email",name:"email",placeholder:g,required:v,type:"email"})):RD("input",{"aria-hidden":!0,value:n,name:"email",type:"hidden"}),RD("label",{for:"message",class:"form__label"},RD(RN,{label:_,isRequiredLabel:E,isRequired:!0}),RD("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),A?RD("label",{for:"screenshot",class:"form__label"},RD("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{L(null),M((e=>!e))}},R?f:p),O?RD("div",{class:"form__error-container"},O.message):null):null),RD("div",{class:"btn-group"},RD("button",{class:"btn btn--primary",disabled:x,type:"submit"},k),RD("button",{class:"btn btn--default",disabled:x,type:"button",onClick:o},h))))}function RN(e){let{label:t,isRequired:n,isRequiredLabel:r}=e;return RD("span",{class:"form__label__text"},t,n&&RD("span",{class:"form__label__text--required"},r))}const MN=16,AN=17,ON="http://www.w3.org/2000/svg";function LN(){const e=e=>NP.document.createElementNS(ON,e),t=aD(e("svg"),{width:`${MN}`,height:`${AN}`,viewBox:`0 0 ${MN} ${AN}`,fill:"inherit"}),n=aD(e("g"),{clipPath:"url(#clip0_57_156)"}),r=aD(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=aD(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173
110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);const i=e("defs"),s=aD(e("clipPath"),{id:"clip0_57_156"}),a=aD(e("rect"),{width:`${MN}`,height:`${MN}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function PN(e){let{open:t,onFormSubmitted:n,...r}=e;const o=r.options,i=hN((()=>({__html:LN().outerHTML})),[]),[s,a]=dN(null),c=mN((()=>{s&&(clearTimeout(s),a(null)),n()}),[s]),u=mN(((e,t)=>{r.onSubmitSuccess(e,t),a(setTimeout((()=>{n(),a(null)}),5e3))}),[n]);return RD(AD,null,s?RD("div",{class:"success__position",onClick:c},RD("div",{class:"success__content"},o.successMessageText,RD("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):RD("dialog",{class:"dialog",onClick:o.onFormClose,open:t},RD("div",{class:"dialog__position"},RD("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},RD(TN,{options:o}),RD(CN,{...r,onSubmitSuccess:u})))))}const DN=()=>({name:"FeedbackModal",setupOnce(){},createDialog:e=>{let{options:t,screenshotIntegration:n,sendFeedback:r,shadow:o}=e;const i=o,s=t.useSentryUser,a=function(){const e=fE().getUser(),t=hE().getUser(),n=mE().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),c=FP.createElement("div"),u=function(e){const t=FP.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));
1\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n\n.dialog__header {\n display: flex;\n gap: 4px;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n.dialog__title {\n align-self: center;\n width: var(--form-width, 272px);\n}\n\n@media (max-width: 600px) {\n .dialog__title {\n width: auto;\n }\n}\n\n.dialog__position:has(.editor) .dialog__title {\n width: auto;\n}\n\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form fieldset {\n border: none;\n margin: 0;\n padding: 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n width: var(--form-width, 100%);\n}\n\n.dialog__position:has(.editor) .form__right {\n width: var(--form-width, 272px);\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);
1\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(t.styleNonce);let l="";const d={get el(){return c},appendToDom(){i.contains(u)||i.contains(c)||(i.appendChild(u),i.appendChild(c))},removeFromDom(){c.remove(),u.remove(),FP.body.style.overflow=l},open(){var e,n;f(!0),null===(e=t.onFormOpen)||void 0===e||e.call(t),null===(n=vE())||void 0===n||n.emit("openFeedbackWidget"),l=FP.body.style.overflow,FP.body.style.overflow="hidden"},close(){f(!1),FP.body.style.overflow=l}},p=null==n?void 0:n.createInput({h:RD,hooks:kN,dialog:d,options:t}),f=e=>{!function(e,t,n){var r,o,i;vD.__&&vD.__(e,t),r=t.__k,o=[],i=[],WD(t,e=t.__k=RD(AD,null,[e]),r||kD,kD,void 0!==t.ownerSVGElement,r?null:t.firstChild?gD.call(t.childNodes):null,o,r?r.__e:t.firstChild,!1,i),e.__d=void 0,VD(o,e,i)}(RD(PN,{options:t,screenshotInput:p,showName:t.showName||t.isNameRequired,showEmail:t.showEmail||t.isEmailRequired,defaultName:s&&(null==a?void 0:a[s.name])||"",defaultEmail:s&&(null==a?void 0:a[s.email])||"",onFormClose:()=>{var e;f(!1),null===(e=t.onFormClose)||void 0===e||e.call(t)},onSubmit:r,onSubmitSuccess:(e,n)=>{var r;f(!1),null===(r=t.onSubmitSuccess)||void 0===r||r.call(t,e,n)},onSubmitError:e=>{var n;null===(n=t.onSubmitError)||void 0===n||n.call(t,e)},onFormSubmitted:()=>{var e;null===(e=t.onFormSubmitted)||void 0===e||e.call(t)},open:e}),c)};return d}});function NN(e){const t=FP.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n}\n\n.editor__image-container {\n justify-items: center;\n padding: 15px;\n position: relative;\n height: 100%;\n border-radius: var(--menu-border-radius, 6px);\n\n background-color: ${n};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${n} 8px,\n ${n} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container > * {\n object-fit: contain;\n position: absolute;\n}\n\n.editor__tool-container {\n padding-top: 8px;\n display: flex;\n justify-content: center;\n}\n\n.editor__tool-bar {\n display: flex;\n gap: 8px;\n}\n\n.editor__tool {\n display: flex;\n padding: 8px 12px;\n justify-content: center;\n align-items: center;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n background: var(--button-background, var(--background));\n color: var(--button-color, var(--foreground));\n}\n\n.editor__tool--active {\n background: var(--button-primary-background, var(--accent-background));\n color: var(--button-primary-color, var(--accent-foreground));\n}\n\n.editor__rect {\n position: absolute;\n z-index: 2;\n}\n\n.editor__rect button {\n opacity: 0;\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n padding: 0;\n z-index: 3;\n border: none;\n background: none;\n}\n\n.editor__rect:hover button {\n opacity: 1;\n}\n`,e&&t.setAttribute("nonce",e),t}function FN(e){let{hooks:t}=e;return function(e){let{onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:o,onError:i}=e;const s=function(){var e;const[n,r]=t.useState(null!==(e=NP.devicePixelRatio)&&void 0!==e?e:1);return t.useEffect((()=>{const e=()=>{r(NP.devicePixelRatio)},t=matchMedia(`(resolution: ${NP.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}),[]),n}();t.useEffect((()=>{(async()=>{n();const e=await $P.mediaDevices.getDisplayMedia({video:{width:NP.innerWidth*s,height:NP.innerHe
1ight*s},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),t=FP.createElement("video");await new Promise(((n,o)=>{t.srcObject=e,t.onloadedmetadata=()=>{r(t,s),e.getTracks().forEach((e=>e.stop())),n()},t.play().catch(o)})),o()})().catch(i)}),[])}}function $N(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function UN(e,t){$N(e,{alpha:!0},((e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)}))}function jN(e,t,n){$N(e,{alpha:!0},((e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach((e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break;case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h)}}(e,r,t)}))}))}function BN(e){let{h:t,hooks:n,outputBuffer:r,dialog:o,options:i}=e;const s=FN({hooks:n}),a=function(e){let{h:t}=e;return function(e){let{action:n,setAction:r,options:o}=e;return t("div",{class:"editor__tool-container"},t("div",{class:"editor__tool-bar"},t("button",{type:"button",class:"editor__tool "+("highlight"===n?"editor__tool--active":""),onClick:()=>{r("highlight"===n?"":"highlight")}},o.highlightToolText),t("button",{type:"button",class:"editor__tool "+("hide"===n?"editor__tool--active":""),onClick:()=>{r("hide"===n?"":"hide")}},o.hideToolText)))}}({h:t}),c=function(e){let{h:t}=e;return function(){return t("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},t("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),t("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),t("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),t("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:t}),u={__html:NN(i.styleNonce).innerText},l=o.el.style,d=e=>{let{screenshot:o}=e;const[s,l]=n.useState("highlight"),[d,p]=n.useState([]),f=n.useRef(null),h=n.useRef(null),m=n.useRef(null),g=n.useRef(null),[v,y]=n.useState(1),_=n.useMemo((()=>{const e=FP.getElementById(i.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")}),[i.id]);n.useLayoutEffect((()=>{const e=()=>{const t=f.current;t&&($N(o.canvas,{alpha:!1},(e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);y(n)})),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),NP.addEventListener("resize",e),()=>{NP.removeEventListener("resize",e)}}),[o]);const b=n.useCallback(((e,t)=>{$N(e,{alpha:!0},((e,n)=>{n.scale(t,t),e.width=o.canvas.width,e.height=o.canvas.height}))}),[o]);n.useEffect((()=>{b(h.current,o.dpi),UN(h.current,o.canvas)}),[o]),n.useEffect((()=>{b(m.current,o.dpi),$N(m.current,{alpha:!0},((e,t)=>{t.clearRect(0,0,e.width,e.height)})),jN(m.current,_,d)}),[d,_]),n.useEffect((()=>{b(r,o.dpi),UN(r,o.canvas),$N(FP.createElement("canvas"),{alpha:!0},((e,t)=>{t.scale(o.dpi,o.dpi),e.width=o.canvas.width,e.height=o.canvas.height,jN(e,_,d),UN(r,e)}))}),[d,o,_]);const S=n.useCallback((e=>t=>{t.preventDefault(),t.stopPropagation(),p((t=>{const n=[...t];return n.splice(e,1),n}))}),[]),w={width:o.canvas.width*v+"px",height:o.canvas.height*v+"px"},k=e=>{e.stopPropagation()};return t("div",{class:"editor"},t("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:u}),t("div",{class:"editor__image-container"},t("div",{class:"editor__canvas-container",ref:f},t("canvas",{ref:h,id:"background",style:w}),t("canvas",{ref:m,id:"foreground",style:w}),t("div",{ref:g,onMouseDown:e=>{if(!s||!g.current)return;const t=g.current.getBoundingClientRect(),n={type:s,x:e.offsetX/v,y:e.offsetY/v},r=(e,n)=>{const r=(n.clientX-t.x)/v,o=(n.clientY-t.y)/v;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>
1{$N(m.current,{alpha:!0},((e,t)=>{t.clearRect(0,0,e.width,e.height)})),jN(m.current,_,[...d,r(n,e)])},i=e=>{const t=r(n,e);t.w*v>=1&&t.h*v>=1&&p((e=>[...e,t])),FP.removeEventListener("mousemove",o),FP.removeEventListener("mouseup",i)};FP.addEventListener("mousemove",o),FP.addEventListener("mouseup",i)},style:w},d.map(((e,n)=>t("div",{key:n,class:"editor__rect",style:{top:e.y*v+"px",left:e.x*v+"px",width:e.w*v+"px",height:e.h*v+"px"}},t("button",{"aria-label":i.removeHighlightText,onClick:S(n),onMouseDown:k,onMouseUp:k,type:"button"},t(c,null)))))))),t(a,{options:i,action:s,setAction:l}))};return function(e){let{onError:o}=e;const[i,a]=n.useState();return s({onBeforeScreenshot:n.useCallback((()=>{l.display="none"}),[]),onScreenshot:n.useCallback(((e,t)=>{$N(FP.createElement("canvas"),{alpha:!1},((n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),a({canvas:n,dpi:t})})),r.width=e.videoWidth,r.height=e.videoHeight}),[]),onAfterScreenshot:n.useCallback((()=>{l.display="block"}),[]),onError:n.useCallback((e=>{l.display="block",o(e)}),[])}),i?t(d,{screenshot:i}):t("div",null)}}const HN=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:e=>{let{h:t,hooks:n,dialog:r,options:o}=e;const i=FP.createElement("canvas");return{input:BN({h:t,hooks:n,outputBuffer:i,dialog:r,options:o}),value:async()=>{const e=await new Promise((e=>{i.toBlob(e,"image/png")}));if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),zN=I_;let qN=0;function WN(){return qN>0}function VN(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(Nk(e))return e}catch(t){return e}const n=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];try{const n=r.map((e=>VN(e,t)));return e.apply(this,n)}catch(e){throw qN++,setTimeout((()=>{qN--})),gE((n=>{n.addEventProcessor((e=>(t.mechanism&&(zk(e,void 0),qk(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),aI(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch(e){}Dk(n,e),Pk(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch(e){}return n}function GN(){const e=Tk(),{referrer:t}=zN.document||{},{userAgent:n}=zN.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}const KN={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata"},JN=zN;async function YN(e,t){const n=KN[e],r=JN.Sentry=JN.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;const i=function(e){var t;const n=vE(),r=(null==n||null===(t=n.getOptions())||void 0===t?void 0:t.cdnBaseUrl)||"https://browser.sentry-cdn.com";return new URL(`/${C_}/${e}.min.js`,r).toString()}(n),s=zN.document.createElement("script");s.src=i,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const a=new Promise(((e,t)=>{s.addEventListener("load",(()=>e())),s.addEventListener("error",t)})),c=zN.document.currentScript,u=zN.document.body||zN.document.head||(null==c?void 0:c.parentElement);if(!u)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);u.appendChild(s);try{await a}catch(t){throw new Error(`Error when loading integration: ${e}`)}const l=r[e];if("function"!=typeof l)throw new Error(`Could not load integration: ${e}`);return l}const XN=mD({lazyLoadIntegration:YN}),ZN=mD({getModalIntegration:()=>DN,getScreenshotIntegration:()=>HN});function QN(e,t,n,r){sR({level:e,message:t,attributes:n,severityNumber:r})}var eF=Object.freeze({__proto__:null,debug:function(e,t){QN("debug",e,t)},error:function(e,t){QN("error",e,t)},fatal:function(e,t){QN("fatal",e,t)},fmt:AO,info:function(e,t){QN("info",e,t)},trace:function(e,t){QN("trace",e,t)},warn:function(e,t){QN("warn",e,t)}});function tF(e,t){const n=oF(e,t),r={type:aF(t),value:cF(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function nF(e,t,n,r){const o=vE(),i=null==o?void 0:o.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return}(t),a={__serialized__:sT(t,i)};if(s)return{exception:{values:[tF(e,s)]},extra:a};const c={exception:{values:[{type:vk(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:fF(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=oF(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function rF(e,t){return{exception:{values:[tF(e,t)]}}}function oF(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&iF.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch(e){}return[]}const iF=/Minified React error #\d+;/i;function sF(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function aF(e){const t=null==e?void 0:e.name;if(!t&&sF(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function cF(e){const t=null==e?void 0:e.message;return sF(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function uF(e,t,n,r){const o=dF(e,t,(null==n?void 0:n.syntheticException)||void 0,r);return qk(o),o.level="error",null!=n&&n.event_id&&(o.event_id=n.event_id),GT(o)}function lF(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;const i=pF(e,t,(null==r?void 0:r.syntheticException)||void 0,o);return i.level=n,null!=r&&r.event_id&&(i.event_id=r.event_id),GT(i)}function dF(e,t,n,r,o){let i;if(dk(t)&&t.error){return rF(e,t.error)}if(pk(t)||lk(t,"DOMException")){const o=t;if("stack"in t)i=rF(e,t);else{const t=o.name||(pk(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=pF(e,s,n,r),zk(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(uk(t))return rF(e,t);if(gk(t)||vk(t)){return i=nF(e,t,n,o),qk(i,{synthetic:!0}),i}return i=pF(e,t,n,r),zk(i,`${t}`),qk(i,{synthetic:!0}),i}function pF(e,t,n,r){const o={};if(r&&n){const r=oF(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),qk(o,{synthetic:!0})}
1if(hk(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function fF(e,t){let{isUnhandledRejection:n}=t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40;const n=Object.keys(Fk(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ck(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Ck(r,t)}return""}(e),o=n?"promise rejection":"exception";if(dk(e))return`Event \`ErrorEvent\` captured as ${o} with message \`${e.message}\``;if(vk(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${o}`}return`Object captured as ${o} with keys: ${r}`}class hF extends QC{constructor(e){var t;const n=(r=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:null===(o=zN.SENTRY_RELEASE)||void 0===o?void 0:o.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...r});var r,o;!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm";const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:C_}))),version:C_}),e._metadata=o}(n,"browser",["browser"],zN.SENTRY_SDK_SOURCE||"npm"),null!==(t=n._metadata)&&void 0!==t&&t.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:a}=this._options;zN.document&&(s||a)&&zN.document.addEventListener("visibilitychange",(()=>{"hidden"===zN.document.visibilityState&&(s&&this._flushOutcomes(),a&&aR(this))})),a&&(this.on("flush",(()=>{aR(this)})),this.on("afterCaptureLog",(()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout((()=>{aR(this)}),5e3)}))),i&&this.on("beforeSendSession",OO)}eventFromException(e,t){return uF(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return lF(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}const mF="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,gF=I_,vF=(e,t,n,r)=>{let o,i;return s=>{var a;t.value>=0&&((s||r)&&(i=t.value-(null!==(a=o)&&void 0!==a?a:0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t))))}},yF=function(){var e,t;let n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const r=null===(e=gF.performance)||void 0===e||null===(t=e.getEntriesByType)||void 0===t?void 0:t.call(e,"navigation")[0];if(!n||r&&r.responseStart>0&&r.responseStart<performance.now())return r},_F=()=>{var e;const t=yF();return null!==(e=null==t?void 0:t.activationStart)&&void 0!==e?e:0},bF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;const n=yF();let r="navigate";var o,i;n&&(null!==(o=gF.document)&&void 0!==o&&o.prerendering||_F()>0?r="prerender":null!==(i=gF.document)&&void 0!==i&&i.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},SF=new WeakMap;function wF(e,t){return SF.get(e)||SF.set(e,new t),SF.get(e)}class kF{constructor(){kF.prototype.__init.call(this),kF.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){var t;if(e.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),null===(t=this._onAfterProcessingUnexpectedShift)||void 0===t||t.call(this,e)}}const EF=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe({type:e,buffered:!0,...n}),r}}catch(e){}},xF=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let TF=-1;const IF=e=>{"hidden"===gF.document.visibilityState&&TF>-1&&(TF="visibilitychange"===e.type?e.timeStamp:0,CF())},CF=()=>{removeEventListener("visibilitychange",IF,!0),removeEventListener("prerenderingchange",IF,!0)},RF=()=>
1{if(gF.document&&TF<0){var e;const r=_F(),o=gF.document.prerendering||null===(e=globalThis.performance.getEntriesByType("visibility-state").filter((e=>"hidden"===e.name&&e.startTime>r))[0])||void 0===e?void 0:e.startTime;TF=null!=o?o:"hidden"!==(null===(t=gF.document)||void 0===t?void 0:t.visibilityState)||null!==(n=gF.document)&&void 0!==n&&n.prerendering?1/0:0,addEventListener("visibilitychange",IF,!0),addEventListener("prerenderingchange",IF,!0)}var t,n;return{get firstHiddenTime(){return TF}}},MF=e=>{var t;null!==(t=gF.document)&&void 0!==t&&t.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},AF=[1800,3e3],OF=[.1,.25],LF=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};MF((()=>{const n=RF(),r=bF("FCP");let o;const i=EF("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-_F(),0),r.entries.push(t),o(!0)))}));i&&(o=vF(e,r,AF,t.reportAllChanges))}))}(xF((()=>{const n=bF("CLS",0);let r;const o=wF(t,kF),i=e=>{for(const t of e)o._processEntry(t);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},s=EF("layout-shift",i);var a,c;s&&(r=vF(e,n,OF,t.reportAllChanges),null===(a=gF.document)||void 0===a||a.addEventListener("visibilitychange",(()=>{var e;"hidden"===(null===(e=gF.document)||void 0===e?void 0:e.visibilityState)&&(i(s.takeRecords()),r(!0))})),null==gF||null===(c=gF.setTimeout)||void 0===c||c.call(gF,r))})))};var PF=Ne,DF=ar,NF=Qn,FF=Bd;Jr({target:"Array",proto:!0},{at:function(e){var t=PF(this),n=DF(t),r=NF(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:t[o]}}),FF("at");var $F=Jr,UF=P,jF=Qn,BF=Eo,HF=o,zF=S("".charAt);$F({target:"String",proto:!0,forced:HF((function(){return"\ud842"!=="ð ®·".at(-2)}))},{at:function(e){var t=BF(UF(this)),n=t.length,r=jF(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:zF(t,o)}});var qF=jR.charAt,WF=P,VF=Qn,GF=Eo;Jr({target:"String",proto:!0,forced:!0},{at:function(e){var t=GF(WF(this)),n=t.length,r=VF(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:qF(t,o)}});let KF=0,JF=1/0,YF=0;const XF=e=>{e.forEach((e=>{e.interactionId&&(JF=Math.min(JF,e.interactionId),YF=Math.max(YF,e.interactionId),KF=YF?(YF-JF)/7+1:0)}))};let ZF;const QF=()=>ZF?KF:performance.interactionCount||0,e$=()=>{"interactionCount"in performance||ZF||(ZF=EF("event",XF,{type:"event",buffered:!0,durationThreshold:0}))};let t$=0;class n${constructor(){n$.prototype.__init.call(this),n$.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){t$=QF(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((QF()-t$)/50));return this._longestInteractionList[e]}_processEntry(e){var t;if(null===(t=this._onBeforeProcessingEntry)||void 0===t||t.call(this,e),!e.interactionId&&"first-input"!==e.entryType)return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>n._latency){var o;if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort(((e,t)=>t._latency-e._latency)),this._longestInteractionList.length>10){const e=this._longestInteractionList.splice(10);for(const t of e)this._longestInteractionMap.delete(t.id)}null===(o=this._onAfterProcessingINPCandidate)||void 0===o||o.call(this,r)}}}const r$=e=>{const t=t=>{var n;"pagehide"!==t.type&&"hidden"!==(null===(n=gF.document)||void 0===n?void 0:n.visibilityState)||e(t)};gF.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},o$=e=>{var t;const n=gF.requestIdleCallback||gF.setTimeout;"hidden"===(null===(t=gF.document)||void 0===t?void 0:t.visibilityState)?e():(n(e=xF(e)),r$(e))},i$=[200,500],s$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&MF((()=>{var n;e$();const r=bF("INP");let o;const i=wF(t,n$),s=e=>{o$((()=>{for(const t of e)i._processEntry(t);const t=i._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,o())}))},a=EF("event",s,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});o=vF(e,r,i$,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r$((()=>{s(a.takeRecords()),o(!0)})))}))};class a${_processEntry(e){var t;
1null===(t=this._onBeforeProcessingEntry)||void 0===t||t.call(this,e)}}const c$=[2500,4e3],u$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};MF((()=>{const n=RF(),r=bF("LCP");let o;const i=wF(t,a$),s=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)i._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-_F(),0),r.entries=[t],o())},a=EF("largest-contentful-paint",s);if(a){o=vF(e,r,c$,t.reportAllChanges);const n=xF((()=>{s(a.takeRecords()),a.disconnect(),o(!0)}));for(const e of["keydown","click","visibilitychange"])gF.document&&addEventListener(e,(()=>o$(n)),{capture:!0,once:!0})}}))},l$=[800,1800],d$=e=>{var t,n;null!==(t=gF.document)&&void 0!==t&&t.prerendering?MF((()=>d$(e))):"complete"!==(null===(n=gF.document)||void 0===n?void 0:n.readyState)?addEventListener("load",(()=>d$(e)),!0):setTimeout(e)},p$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=bF("TTFB"),r=vF(e,n,l$,t.reportAllChanges);d$((()=>{const e=yF();e&&(n.value=Math.max(e.responseStart-_F(),0),n.entries=[e],r(!0))}))},f$={},h$={};let m$,g$,v$,y$;function _$(e){return C$("cls",e,E$,m$,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function b$(e){return C$("lcp",e,x$,g$,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function S$(e){return C$("inp",e,I$,y$)}function w$(e,t){return R$(e,t),h$[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);EF(e,(t=>{k$(e,{entries:t})}),t)}(e),h$[e]=!0),M$(e,t)}function k$(e,t){const n=f$[e];if(null!=n&&n.length)for(const r of n)try{r(t)}catch(t){mF&&U_.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${G_(r)}\nError:`,t)}}function E$(){return LF((e=>{k$("cls",{metric:e}),m$=e}),{reportAllChanges:!0})}function x$(){return u$((e=>{k$("lcp",{metric:e}),g$=e}),{reportAllChanges:!0})}function T$(){return p$((e=>{k$("ttfb",{metric:e}),v$=e}))}function I$(){return s$((e=>{k$("inp",{metric:e}),y$=e}))}function C$(e,t,n,r){let o,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return R$(e,t),h$[e]||(o=n(),h$[e]=!0),r&&t({metric:r}),M$(e,t,i?o:void 0)}function R$(e,t){f$[e]=f$[e]||[],f$[e].push(t)}function M$(e,t,n){return()=>{n&&n();const r=f$[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function A$(e){return"number"==typeof e&&isFinite(e)}function O$(e,t,n,r){let{...o}=r;const i=Nx(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),OT(e,(()=>{const e=AT({startTime:t,...o});return e&&e.end(n),e}))}function L$(e){var t;const n=vE();if(!n)return;const{name:r,transaction:o,attributes:i,startTime:s}=e,{release:a,environment:c,sendDefaultPii:u}=n.getOptions(),l=n.getIntegrationByName("Replay"),d=null==l?void 0:l.getReplayId(),p=fE(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch(e){}return AT({name:r,attributes:{release:a,environment:c,user:h||void 0,profile_id:m||void 0,replay_id:d||void 0,transaction:o,"user_agent.original":null===(t=gF.navigator)||void 0===t?void 0:t.userAgent,"client.address":u?"{{auto}}":void 0,...i},startTime:s,experimental:{standalone:!0}})}function P$(){return gF.addEventListener&&gF.performance}function D$(e){return e/1e3}function N$(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function F$(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch(e){return!1}}function $$(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n),r=!0}r$((()=>{o("pagehide")}));const i=e.on("beforeStartNavigationSpan",((e,t)=>{null!=t&&t.isRedirect||(o("navigation"),U$(i,s))})),s=e.on("afterStartPageLoadSpan",(e=>{n=e.spanContext().spanId,U$(s)}))}function U$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>e&&setTimeout(e,0)))}function j$(e){let t,n=0;if(!F$("layout-shift"))return;const r=_$((e=>{let{metric:r}=e;const o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)}),!0);$$(e,((e,o)=>{!function(e,t,n,r){var o;mF&&U_.log(`Sending CLS span (${e})`);const i=D$((Xk()||0)+((null==t?void 0:t.startTime)||0)),s=fE().getScopeData().transactionName,a=t?Ek(null===(o=t.sources[0])||void 0===o?void 0:o.node):"Layout shift",c={[kE]:"auto.http.browser.cls",[wE]:"ui.webvital.cls",[RE]:(null==t?void 0:t.duration)||0,"sentry.pageload.span_id":n,"sentry.report_event":r};
1null!=t&&t.sources&&t.sources.forEach(((e,t)=>{c[`cls.source.${t+1}`]=Ek(e.node)}));const u=L$({name:a,transaction:s,attributes:c,startTime:i});u&&(u.addEvent("cls",{[xE]:"",[TE]:e}),u.end(i))}(n,t,o,e),r()}))}function B$(e){let t,n=0;if(!F$("largest-contentful-paint"))return;const r=b$((e=>{let{metric:r}=e;const o=r.entries[r.entries.length-1];o&&(n=r.value,t=o)}),!0);$$(e,((e,o)=>{!function(e,t,n,r){mF&&U_.log(`Sending LCP span (${e})`);const o=D$((Xk()||0)+((null==t?void 0:t.startTime)||0)),i=fE().getScopeData().transactionName,s=t?Ek(t.element):"Largest contentful paint",a={[kE]:"auto.http.browser.lcp",[wE]:"ui.webvital.lcp",[RE]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=Ek(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(a["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(a["lcp.renderTime"]=t.renderTime),null!=t.size&&(a["lcp.size"]=t.size));const c=L$({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[xE]:"millisecond",[TE]:e}),c.end(o))}(n,t,o,e),r()}))}const H$=2147483647;let z$,q$,W$=0,V$={};function G$(e){let{recordClsStandaloneSpans:t,recordLcpStandaloneSpans:n,client:r}=e;const o=P$();if(o&&Xk()){o.mark&&gF.performance.mark("sentry-tracing-init");const e=n?B$(r):b$((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(V$.lcp={value:t.value,unit:"millisecond"},z$=n)}),!0),i=C$("ttfb",(e=>{let{metric:t}=e;t.entries[t.entries.length-1]&&(V$.ttfb={value:t.value,unit:"millisecond"})}),T$,v$),s=t?j$(r):_$((e=>{let{metric:t}=e;const n=t.entries[t.entries.length-1];n&&(V$.cls={value:t.value,unit:""},q$=n)}),!0);return()=>{null==e||e(),i(),null==s||s()}}return()=>{}}function K$(e,t){const n=P$(),r=Xk();if(null==n||!n.getEntries||!r)return;const o=D$(r),i=n.getEntries(),{op:s,start_timestamp:a}=Nx(e);i.slice(W$).forEach((n=>{const r=D$(n.startTime),i=D$(Math.max(0,n.duration));if(!("navigation"===s&&a&&o+r<a))switch(n.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{J$(e,t,r,n)})),J$(e,t,"secureConnection",n,"TLS/SSL"),J$(e,t,"fetch",n,"cache"),J$(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+D$(t.requestStart),o=n+D$(t.responseEnd),i=n+D$(t.responseStart);t.responseEnd&&(O$(e,r,o,{op:"browser.request",name:t.name,attributes:{[kE]:"auto.ui.browser.metrics"}}),O$(e,i,o,{op:"browser.response",name:t.name,attributes:{[kE]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,n,o);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o,i){if(["mark","measure"].includes(t.entryType)&&Ok(t.name,i))return;const s=yF(!1),a=D$(s?s.requestStart:0),c=o+Math.max(n,a),u=o+n,l=u+r,d={[kE]:"auto.resource.browser.metrics"};c!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=c);(function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&mk(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch(e){}return}if(mk(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch(e){}}catch(e){}})(d,t),c<=l&&O$(e,c,l,{name:t.name,op:t.entryType,attributes:d})}(e,n,r,i,o,t.ignorePerformanceApiSpans);const s=RF(),a=n.startTime<s.firstHiddenTime;"first-paint"===n.name&&a&&(V$.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&a&&(V$.fcp={value:n.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,o,i,s){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(null!=s&&s.includes(a))return;const c=TO(n),u={[kE]:"auto.resource.browser.metrics"};Y$(u,t,"transferSize","http.response_transfer_size"),Y$(u,t,"encodedBodySize","http.response_content_length"),Y$(u,t,"decodedBodySize","http.decoded_response_content_length");const l=t.deliveryType;null!=l&&(u["http.response_delivery_type"]=l);const d=t.renderBlockingStatus;d&&(u["resource.render_blocking_status"]=d);c.protocol&&(u["url.scheme"]=c.protocol.split(":").pop());c.host&&(u["server.address"]=c.host);if(u["url.same_origin"]=n.includes(gF.location.origin),null!=t.nextHopProtocol){const{name:e,version:n}=N$(t.nextHopProtocol);u["network.protocol.name"]=e,u["network.protocol.version"]=n}const p=i+r,f=p+o;O$(e,p,f,{name:n.replace(gF.location.origin,""),op:a,attributes:u})}(e,n,n.name,r,i,o,t.ignoreResourceSpans)}})),W$=Math.max(i.length-1,0),function(e){const t=gF.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),A$(n.rtt)&&(V$["connection.rtt"]={value:n.rtt,unit:"millisecond"}));A$(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);A$(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s&&(function(e){const t=yF(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(V$),t.recordClsOnPageloadSpan||delete V$.cls,t.recordLcpOnPageloadSpan||delete V$.lcp,Object.entries(V$).forEach((e=>{let[t,n]=e;kT(t,n.value,n.unit)})),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",_F()),function(e,t){var n;z$&&t.recordLcpOnPageloadSpan&&(z$.element&&e.setAttribute("lcp.element",Ek(z$.element)),z$.id&&e.setAttribute("lcp.id",z$.id),z$.url&&e.setAttribute("lcp.url",z$.url.trim().slice(0,200)),null!=z$.loadTime&&e.setAttribute("lcp.loadTime",z$.loadTime),null!=z$.renderTime&&e.setAttribute("lcp.renderTime",z$.renderTime),e.setAttribute("lcp.size",z$.size));null!==(n=q$)&&void 0!==n&&n.sources&&t.recordClsOnPageloadSpan&&q$.sources.forEac
1h(((t,n)=>e.setAttribute(`cls.source.${n+1}`,Ek(t.node))))}(e,t)),z$=void 0,q$=void 0,V$={}}function J$(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n;const i=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),s=t[i],a=t[`${n}Start`];a&&s&&O$(e,r+D$(a),r+D$(s),{op:`browser.${o}`,name:t.name,attributes:{[kE]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function Y$(e,t,n,r){const o=t[n];null!=o&&o<H$&&(e[r]=o)}const X$=e=>{let{entries:t}=e;const n=qx(),r=n?zx(n):void 0,o=r?Nx(r).description:fE().getScopeData().transactionName;t.forEach((e=>{var t;const n=e;if(!n.identifier)return;const r=n.name,i=n.renderTime,s=n.loadTime,[a,c]=s?[D$(s),"load-time"]:i?[D$(i),"render-time"]:[Yk(),"entry-emission"],u="image-paint"===r?D$(Math.max(0,(null!=i?i:0)-(null!=s?s:0))):0,l={[kE]:"auto.ui.browser.elementtiming",[wE]:"ui.elementtiming",[_E]:"component","sentry.span_start_time_source":c,"sentry.transaction_name":o,"element.id":n.id,"element.type":(null===(t=n.element)||void 0===t||null===(t=t.tagName)||void 0===t?void 0:t.toLowerCase())||"unknown","element.size":n.naturalWidth&&n.naturalHeight?`${n.naturalWidth}x${n.naturalHeight}`:void 0,"element.render_time":i,"element.load_time":s,"element.url":n.url||void 0,"element.identifier":n.identifier,"element.paint_type":r};MT({name:`element[${n.identifier}]`,attributes:l,startTime:a,onlyIfParent:!0},(e=>{e.end(a+u)}))}))},Z$=1e3;let Q$,eU,tU,nU;function rU(e){X_("dom",e),Z_("dom",oU)}function oU(){if(!gF.document)return;const e=Q_.bind(null,"dom"),t=iU(e,!0);gF.document.addEventListener("click",t,!1),gF.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n,r;const o=null===(n=gF[t])||void 0===n?void 0:n.prototype;null!=o&&null!==(r=o.hasOwnProperty)&&void 0!==r&&r.call(o,"addEventListener")&&(Lk(o,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=iU(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),Lk(o,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function iU(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(null==t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;Pk(n,"_sentryCaptured",!0),r&&!r._sentryId&&Pk(r,"_sentryId",jk());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==eU)return!1;try{if(!e.target||e.target._sentryId!==tU)return!1}catch(e){}return!0}(n)){e({event:n,name:o,global:t}),eU=n.type,tU=r?r._sentryId:void 0}clearTimeout(Q$),Q$=gF.setTimeout((()=>{tU=void 0,eU=void 0}),Z$)}}function sU(e){const t="history";X_(t,e),Z_(t,aU)}function aU(){function e(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.length>2?n[2]:void 0;if(o){const t=nU,r=function(e){try{return new URL(e,gF.location.origin).toString()}catch(t){return e}}(String(o));if(nU=r,t===r)return e.apply(this,n);Q_("history",{from:t,to:r})}return e.apply(this,n)}}gF.addEventListener("popstate",(()=>{const e=gF.location.href,t=nU;if(nU=e,t===e)return;Q_("history",{from:t,to:e})})),"history"in xP&&xP.history&&(Lk(gF.history,"pushState",e),Lk(gF.history,"replaceState",e))}const cU={};function uU(e){const t=cU[e];if(t)return t;let n=gF[e];if(TP(n))return cU[e]=n.bind(gF);const r=gF.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;null!=o&&o[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){mF&&U_.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?cU[e]=n.bind(gF):n}function lU(e){cU[e]=void 0}function dU(){return uU("setTimeout")(...arguments)}const pU="__sentry_xhr_v3__";function fU(e){X_("xhr",e),Z_("xhr",hU)}function hU(){if(!gF.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*Yk(),i=fk(n[0])?n[0].toUpperCase():void 0,s=function(e){if(fk(e))return e;try{return e.toString()}catch(e){}return}(n[1]);if(!i||!s)return e.apply(t,n);t[pU]={method:i,url:s,request_headers:{}}
1,"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[pU];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}Q_("xhr",{endTimestamp:1e3*Yk(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[pU];return i&&fk(r)&&fk(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[pU];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return Q_("xhr",{startTimestamp:1e3*Yk(),xhr:t}),e.apply(t,n)}})}function mU(e){return new URLSearchParams(e).toString()}function gU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U_;try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[mU(e)];if(!e)return[void 0]}catch(n){return mF&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return mF&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function vU(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(2===e.length&&"object"==typeof e[1])return e[1].body}const yU=[],_U=new Map;function bU(){if(P$()&&Xk()){const e=S$(wU);return()=>{e()}}return()=>{}}const SU={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};const wU=e=>{let{metric:t}=e;if(null==t.value)return;const n=D$(t.value);if(n>60)return;const r=t.entries.find((e=>e.duration===t.value&&SU[e.name]));if(!r)return;const{interactionId:o}=r,i=SU[r.name],s=D$(Xk()+r.startTime),a=qx(),c=a?zx(a):void 0,u=(null!=o?_U.get(o):void 0)||c,l=u?Nx(u).description:fE().getScopeData().transactionName,d=L$({name:Ek(r.target),transaction:l,attributes:{[kE]:"auto.http.browser.inp",[wE]:`ui.interaction.${i}`,[RE]:r.duration},startTime:s});d&&(d.addEvent("inp",{[xE]:"millisecond",[TE]:t.value}),d.end(s+n))};function kU(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uU("fetch"),n=0,r=0;return yR(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return lU("fetch"),KT("No fetch implementation available");try{return t(e.url,s).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return lU("fetch"),n-=i,r--,KT(e)}}))}function EU(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?B_:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const xU=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,TU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,IU=/\((\S*)(?::(\d+))(?::(\d+))\)/,CU=/at (.+?) ?\(data:(.+?),/,RU=[30,e=>{const t=e.match(CU);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=xU.exec(e);if(n){const[,e,t,r]=n;return EU(e,B_,+t,+r)}const r=TU.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=IU.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=BU(r[1]||B_,r[2]);return EU(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],MU=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,AU=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,OU=[50,e=>{const t=MU.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=AU.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||B_;return[n,e]=BU(n,e),EU(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],LU=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,PU=[40,e=>{const t=LU.exec(e);return t?EU(t[2],t[1]||B_,+t[3],t[4]?+t[4]:void 0):void 0}],DU=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,NU=[10,e=>{const t=DU.exec(e);return t?EU(t[2],t[3]||B_,+t[1]):void 0}],FU=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,$U=[20,e=>{const t=FU.exec(e);return t?EU(t[5],t[3]||t[4]||B_,+t[1],+t[2]):void 0}],UU=[RU,OU],jU=q_(...UU),BU=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:B_,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};const HU="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,zU=1024,qU=function(){const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"Breadcrumbs",setup(t){e.console&&oL(function(e){return function(t){if(vE()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:sL(t.level),message:Mk(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Mk(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}DO(n,{input:t.args,level:t.level})}}(t)),e.dom&&rU(function(e,t){return function(n){if(vE()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>zU&&(HU&&U_.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=zU),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=Ek(t,{keyAttrs:i,maxStringLength:s}),o=Ik(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),DO(a,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&fU(function(e){return function(t){if(vE()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[pU];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,u={method:i,url:s,status_code:a},l={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:u,type:"http",level:XL(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),DO(d,l)}}(t)),e.fetch&&CP(function(e){return function(t){if(vE()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
1if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),DO(s,i)}else{const o=t.response,i={...t.fetchData,status_code:null==o?void 0:o.status};t.fetchData.request_body_size,t.fetchData.response_body_size,null==o||o.status;const s={input:t.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:XL(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),DO(a,s)}}}(t)),e.history&&sU(function(e){return function(t){var n;if(vE()!==e)return;let r=t.from,o=t.to;const i=TO(zN.location.href);let s=r?TO(r):void 0;const a=TO(o);null!==(n=s)&&void 0!==n&&n.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),DO({category:"navigation",data:{from:r,to:o}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(e){return function(t){vE()===e&&DO({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Hk(t)},{event:t})}}(t))}}};const WU=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],VU=function(){const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&Lk(zN,"setTimeout",GU),e.setInterval&&Lk(zN,"setInterval",GU),e.requestAnimationFrame&&Lk(zN,"requestAnimationFrame",KU),e.XMLHttpRequest&&"XMLHttpRequest"in zN&&Lk(XMLHttpRequest.prototype,"send",JU);const t=e.eventTarget;if(t){(Array.isArray(t)?t:WU).forEach((t=>function(e,t){var n,r;const o=null===(n=zN[e])||void 0===n?void 0:n.prototype;if(null==o||null===(r=o.hasOwnProperty)||void 0===r||!r.call(o,"addEventListener"))return;Lk(o,"addEventListener",(function(n){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=VN(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:G_(o),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,o),n.apply(this,[r,VN(o,{mechanism:{data:{function:"addEventListener",handler:G_(o),target:e},handled:!1,type:"instrument"}}),i])}})),Lk(o,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}}))}(t,e)))}}}};function GU(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n[0];return n[0]=VN(o,{mechanism:{data:{function:G_(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function KU(e){return function(t){return e.apply(this,[VN(t,{mechanism:{data:{function:"requestAnimationFrame",handler:G_(e)},handled:!1,type:"instrument"}})])}}function JU(e){return function(){const t=this;["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in t&&"function"==typeof t[e]&&Lk(t,e,(function(t){const n={mechanism:{data:{function:e,handler:G_(t)},handled:!1,type:"instrument"}},r=Nk(t);return r&&(n.mechanism.data.handler=G_(r)),VN(t,n)}))}));for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.apply(this,r)}}const YU=()=>({name:"BrowserSession",setupOnce(){void 0!==zN.document?(mI({ignoreDuration:!0}),yI(),sU((e=>{let{from:t,to:n}=e;void 0!==t&&t!==n&&(mI({ignoreDuration:!0}),yI())}))):HU&&U_.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}),XU=function(){const e={onerror:!0,onunhandledrejection:!0,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(!function(e){tb((t=>{const{stackParser:n,attachStacktrace:r}=QU();if(vE()!==e||WN())return;const{msg:o,url:i,line:s,column:a,error:c}=t,u=function(e,t,n,r){var o;const i=e.exception=e.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[],l=r,d=n,p=null!==(o=function(e){if(!fk(e)||0===e.length)return;if(e.startsWith("data:")){const t=e.match(/^data:([^;
1]+)/);return`<data:${t?t[1]:"text/javascript"}${e.includes("base64,")?",base64":""}>`}return e.slice(0,1024)}(t))&&void 0!==o?o:Tk();0===u.length&&u.push({colno:l,filename:p,function:B_,in_app:!0,lineno:d});return e}(dF(n,c||o,void 0,r,!1),i,s,a);u.level="error",uI(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}))}(t),ZU("onerror")),e.onunhandledrejection&&(!function(e){ob((t=>{const{stackParser:n,attachStacktrace:r}=QU();if(vE()!==e||WN())return;const o=function(e){if(mk(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),i=mk(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:dF(n,o,void 0,r,!0);i.level="error",uI(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}(t),ZU("onunhandledrejection"))}}};function ZU(e){HU&&U_.log(`Global Handler attached: ${e}`)}function QU(){const e=vE();return(null==e?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const ej=()=>({name:"HttpContext",preprocessEvent(e){var t;if(!zN.navigator&&!zN.location&&!zN.document)return;const n=GN(),r={...n.headers,...null===(t=e.request)||void 0===t?void 0:t.headers};e.request={...n,...e.request,headers:r}}}),tj=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){KO(tF,o.getOptions().stackParser,n,t,e,r)}}};function nj(){return!!function(){var e;if(void 0===zN.window)return!1;const t=zN;if(t.nw)return!1;const n=t.chrome||t.browser;if(null==n||null===(e=n.runtime)||void 0===e||!e.id)return!1;const r=Tk(),o=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(zN===zN.top&&o.some((e=>r.startsWith(`${e}://`))))}()&&(HU&&D_((()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})),!0)}function rj(e){return[WO(),$O(),VU(),qU(),XU(),tj(),cL(),ej(),YU()]}function oj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=!e.skipBrowserExtensionCheck&&nj(),n={...e,enabled:!t&&e.enabled,stackParser:(r=e.stackParser||jU,Array.isArray(r)?q_(...r):r),integrations:jC({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?rj():e.defaultIntegrations}),transport:e.transport||kU};var r;return function(e,t){!0===t.debug&&(x_?U_.enable():D_((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),fE().update(t.initialScope);const n=new e(t);return lR(n),n.init(),n}(hF,n)}const ij=I_,sj=new WeakMap,aj=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).types||["crash","deprecation","intervention"];function t(e){if(sj.has(vE()))for(const t of e)gE((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let r="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else{r=t.body.message||r}}cI(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){if(!("ReportingObserver"in xP))return;new ij.ReportingObserver(t,{buffered:!0,types:e}).observe()},setup(e){sj.set(e,!0)}}},cj=function(){const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}};return{name:"HttpClient",setup(t){!function(e,t){if(!IP())return;CP((n=>{if(vE()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(pj(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let i,s,a,c;hj()&&([i,a]=uj("Cookie",e),[s,c]=uj("Set-Cookie",n));uI(fj({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o}))}}(t,a,r,c,i||s)}),!1)}(t,e),function(e,t){if(!("XMLHttpRequest"in I_))return;fU((n=>{if(vE()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[pU];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(pj(e,t.status,t.responseURL)){let e,i,s;if(hj()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=dj(e))}catch(e){}try{s=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e}),{})}(t)}catch(e){}e=r}uI(fj({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:i,error:o}))}}(t,i,a,c,r||o)}catch(e){HU&&U_.warn("Error while extracting response event form XHR response",e)}}))}(t,e)}}};function uj(e,t){const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=dj(t))}catch(e){}return[n,r]}function lj(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function dj(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function pj(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!CO(n,vE());var r,o}function fj(e){const t=vE(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,o=`HTTP Client Error with status code: ${e.status}`,i={message:o,exception:{values:[{type:"Error",value:o,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:lj(e.responseHeaders)}}};return qk(i,{type:"http.client",handled:!1}),i}function hj(){const e=vE();return!!e&&Boolean(e.getOptions().sendDefaultPii)}const mj=I_,gj=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){var n;const r=mj.document,o=mj.location&&IO(mj.location.href);if(!r||!o)return e;const i=null===(n=e.exception)||void 0===n?void 0:n.values;if(null==i||!i.length)return e;const s=r.documentElement.innerHTML;if(!s)return e;const a=["<!DOCTYPE html>","<html>",...s.split("\n"),"</html>"];
1return i.forEach((e=>{const n=e.stacktrace;null!=n&&n.frames&&(n.frames=n.frames.map((e=>function(e,t,n,r){if(e.filename!==n||!e.lineno||!t.length)return e;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>Rk(e,0)));const i=Math.min(r-1,o);t.context_line=Rk(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>Rk(e,0)))}(t,e,r),e}(e,a,o,t))))})),e}(e,t)}};function vj(e){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=function(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const o=e.match(n);if(o)return{operationType:o[1],operationName:void 0};return{operationType:void 0,operationName:void 0}}(t);return r?`${o} ${r}`:`${o}`}function yj(e){let t;if("xhr"in e){const n=e.xhr[pU];t=n&&gU(n.body)[0]}else{t=gU(vU(e.input))[0]}return t}function _j(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const bj=e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",((e,n)=>{const r=Nx(e).data||{};if(!("http.client"===r[wE]))return;const o=r[AE]||r["http.url"],i=r[ME]||r["http.method"];if(!fk(o)||!fk(i))return;const{endpoints:s}=t,a=Ok(o,s),c=yj(n);if(a&&c){const t=_j(c);if(t){const n=vj(t);e.updateName(`${i} ${o} (${n})`),e.setAttribute("graphql.document",c)}}}))}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",((e,n)=>{const{category:r,type:o,data:i}=e;if("http"===o&&("fetch"===r||"xhr"===r)){const e=null==i?void 0:i.url,{endpoints:r}=t,o=Ok(e,r),s=yj(n);if(o&&i&&s){const e=_j(s);if(!i.graphql&&e){const t=vj(e);i["graphql.document"]=e.query,i["graphql.operation"]=t}}}}))}(t,e)}});var Sj=Jr,wj=Ma,kj=o,Ej=G,xj=B,Tj=ms,Ij=il,Cj=Gn,Rj=wj&&wj.prototype;if(Sj({target:"Promise",proto:!0,real:!0,forced:!!wj&&kj((function(){Rj.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=Tj(this,Ej("Promise")),n=xj(e);return this.then(n?function(n){return Ij(t,e()).then((function(){return n}))}:e,n?function(n){return Ij(t,e()).then((function(){throw n}))}:e)}}),xj(wj)){var Mj=Ej("Promise").prototype.finally;Rj.finally!==Mj&&Cj(Rj,"finally",Mj,{unsafe:!0})}const Aj=I_,Oj="sentryReplaySession",Lj="replay_event",Pj="Unable to send Replay",Dj=5e3,Nj=5500,Fj=15e4,Uj=5e3,jj=2e7,Bj=4999,Hj=36e5;var zj=Object.defineProperty,qj=(e,t,n)=>((e,t,n)=>t in e?zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),Wj=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wj||{});function Vj(e){const t=null==e?void 0:e.host;return Boolean((null==t?void 0:t.shadowRoot)===e)}function Gj(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Kj(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,Jj).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function Jj(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Kj(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}return t||e.cssText}let Yj=class{constructor(){qj(this,"idNodeMap",new Map),qj(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);
1this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xj(e){let{maskInputOptions:t,tagName:n,type:r}=e;return"OPTION"===n&&(n="SELECT"),Boolean(t[n.toLowerCase()]||r&&t[r]||"password"===r||"INPUT"===n&&!r&&t.text)}function Zj(e){let{isMasked:t,element:n,value:r,maskInputFn:o}=e,i=r||"";return t?(o&&(i=o(i,n)),"*".repeat(i.length)):i}function Qj(e){return e.toLowerCase()}function eB(e){return e.toUpperCase()}const tB="__rrweb_original__";function nB(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Qj(t):null}function rB(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function oB(e,t){var n;let r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}const o=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!==(n=null==o?void 0:o[1])&&void 0!==n?n:null}const iB={};function sB(e){const t=iB[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return iB[e]=r.bind(window)}function aB(){return sB("setTimeout")(...arguments)}function cB(){return sB("clearTimeout")(...arguments)}function uB(e){try{return e.contentDocument}catch(e){}}let lB=1;const dB=new RegExp("[^a-z0-9-_:]"),pB=-2;function fB(){return lB++}let hB,mB;const gB=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,vB=/^(?:[a-z+]+:)?\/\//i,yB=/^www\..*/i,_B=/^(data:)([^,]*),(.*)/i;function bB(e,t){return(e||"").replace(gB,((e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(vB.test(a)||yB.test(a))return`url(${c}${a}${c})`;if(_B.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const SB=/^[^ \t\n\r\u000c]+/,wB=/^[, \t\n\r\u000c]+/;const kB=new WeakMap;function EB(e,t){return t&&""!==t.trim()?TB(e,t):t}function xB(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function TB(e,t){let n=kB.get(e);if(n||(n=e.createElement("a"),kB.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function IB(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?EB(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(wB),!(n>=t.length);){let i=r(SB);if(","===i.slice(-1))i=EB(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=EB(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?bB(r,TB(e)):"object"===t&&"data"===n?EB(e,r):"function"==typeof i?i(n,r,o):r:EB(e,r):r}function CB(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function RB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:RB(e.parentNode,t,n,r+1):-1}function MB(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function AB(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=RB(s,MB(r,o)),c<0)return!0;a=RB(s,MB(t,n),c>=0?c:1/0)}else{if(a=RB(s,MB(t,n)),a<0)return!1;c=RB(s,MB(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function OB(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:v={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Wj.Document,childNodes:[],compatMode:e.compatMode}:{type:Wj.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Wj.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:v,maskTextSelector:y,unmaskTextSelector:_}=t,b=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=Qj(e.tagName);return dB.test(t)?"div":t}(e);let w={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!CB(S,r.name,r.value)&&(w[r.name]=IB(n,S,Qj(r.name),r.value,e,c))}if("link"===S&&s){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Kj(t)),r&&(w.rel=null,w.href=null,w.crossorigin=null,w._cssText=bB(r,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Kj(e.sheet);t&&(w._cssText=bB(t,TB(n)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=nB(t),r=rB(t,eB(S),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=AB(t,g,y,v,_,Xj({type:n,tagName:eB(S),maskInputOptions:a}));w.value=Zj({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(w.checked=o)}"option"===S&&(e.selected&&!a.select?w.selected=!0:delete w.selected);if("canvas"===S&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=tB in o?o[tB]:o;
1if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(l.type,l.quality)&&(w.rr_dataURL=t)}if("img"===S&&d){hB||(hB=n.createElement("canvas"),mB=hB.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{hB.width=t.naturalWidth,hB.height=t.naturalHeight,mB.drawImage(t,0,0),w.rr_dataURL=hB.toDataURL(l.type,l.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?w.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==S&&"video"!==S||(w.rr_mediaState=e.paused?"paused":"played",w.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(b){const{width:t,height:n}=e.getBoundingClientRect();w={class:w.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||f(w.src)||(b||uB(e)||(w.rr_src=w.src),delete w.src);let E;try{customElements.get(S)&&(E=!0)}catch(e){}return{type:Wj.Element,tagName:S,attributes:w,childNodes:[],isSVG:xB(e)||void 0,needBlock:b,rootId:m,isCustom:E}}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:v,inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{var g;e.nextSibling||e.previousSibling||null!==(g=e.parentNode.sheet)&&void 0!==g&&g.cssRules&&(p=Kj(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=bB(p,TB(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const v=AB(e,r,i,o,s,n);f||h||m||!p||!v||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||v)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=Zj({isMasked:AB(e,r,i,o,s,Xj({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})}return{type:Wj.Text,textContent:p||"",isStyle:f,rootId:l}}(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:Wj.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Wj.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}function LB(e){return null==e?"":e.toLowerCase()}function PB(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E=5e3,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:I=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:R=!1}=t;let{preserveWhiteSpace:M=!0}=t;const A=OB(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:R});if(!A)return console.warn(e,"not serialized"),null;let O;O=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===Wj.Comment)return!0;
1if(e.type===Wj.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===oB(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(LB(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===LB(e.attributes.name)||"icon"===LB(e.attributes.rel)||"apple-touch-icon"===LB(e.attributes.rel)||"shortcut icon"===LB(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&LB(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(LB(e.attributes.property).match(/^(og|twitter|fb):/)||LB(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===LB(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===LB(e.attributes.name)||"googlebot"===LB(e.attributes.name)||"bingbot"===LB(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===LB(e.attributes.name)||"generator"===LB(e.attributes.name)||"framework"===LB(e.attributes.name)||"publisher"===LB(e.attributes.name)||"progid"===LB(e.attributes.name)||LB(e.attributes.property).match(/^article:/)||LB(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===LB(e.attributes.name)||"yandex-verification"===LB(e.attributes.name)||"csrf-token"===LB(e.attributes.name)||"p:domain_verify"===LB(e.attributes.name)||"verify-v1"===LB(e.attributes.name)||"verification"===LB(e.attributes.name)||"shopify-checkout-api-token"===LB(e.attributes.name)))return!0}}return!1}(A,y)&&(M||A.type!==Wj.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?fB():pB;const L=Object.assign(A,{id:O});if(r.add(e,L),O===pB)return null;w&&w(e);let P=!p;if(L.type===Wj.Element){P=P&&!L.needBlock;const t=e.shadowRoot;t&&Gj(t)&&(L.isShadowHost=!0)}if((L.type===Wj.Document||L.type===Wj.Element)&&P){y.headWhitespace&&L.type===Wj.Element&&"head"===L.tagName&&(M=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onBlockedImageLoad:x,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:C},R=e.childNodes?Array.from(e.childNodes):[];for(const e of R){const n=PB(e,t);n&&L.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=PB(n,t);r&&(Gj(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}if(e.parentNode&&Vj(e.parentNode)&&Gj(e.parentNode)&&(L.isShadow=!0),L.type!==Wj.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=aB((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{cB(r),i=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return aB(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=uB(e);if(t&&k){const n=PB(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:C});n&&k(e,n)}}),E),L.type===Wj.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&x)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&x(t,L,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return L.type===Wj.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===oB(L.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=aB((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{cB(i),o=!0,t()}))}(e,(()=>{if(T){const t=PB(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:M,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:I,keepIframeSrcFn:C});t&&T(e,t)}}),I),L.type===Wj.Element&&delete L.needBlock,L}function DB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const NB="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let FB={map:{},getId:()=>(console.error(NB),-1),getNode:()=>(console.error(NB),null),removeNodeFromMap(){console.error(NB)},has:()=>(console.error(NB),!1),reset(){console.error(NB)}};function $B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];const c=Date.now();o||!1!==n.leading||(o=c);const u=t-(c-o),l=this;u<=0||u>t?(r&&(!function(){oH("clearTimeout")(...arguments)}(r),r=null),o=c,e.apply(l,s)):r||!1===n.trailing||(r=iH((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)}),u))}}function UB(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){iH((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>UB(e,t,i||{},!0)}function jB(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(FB=new Proxy(FB,{get:(e,t,n)=>("map"===t&&console.error(NB),Reflect.get(e,t,n))}));let BB=Date.now;function HB(e){var t,n,r,o;const i=e.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:(null==i?void 0:i.documentElement.scrollLeft)||(null==i||null===(t=i.body)||void 0===t||null===(t=t.parentElement)||void 0===t?void 0:t.scrollLeft)||(null==i||null===(n=i.body)||void 0===n?void 0:n.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==i?void 0:i.documentElement.scrollTop)||(null==i||null===(r=i.body)||void 0===r||null===(r=r.parentElement)||void 0===r?void 0:r.scrollTop)||(null==i||null===(o=i.body)||void 0===o?void 0:o.scrollTop)||0}}function zB(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qB(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function WB(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function VB(e,t,n,r,o){if(!e)return!1;const i=WB(e);if(!i)return!1;const s=MB(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=RB(i,s);let c=-1;return!(a<0)&&(r&&(c=RB(i,MB(null,r))),a>-1&&c<0||a<c)}function GB(e,t){return t.getId(e)===pB}function KB(e,t){if(Vj(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||KB(e.parentNode,t))}function JB(e){return Boolean(e.changedTouches)}function YB(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function XB(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ZB(e){return Boolean(null==e?void 0:e.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(BB=()=>(new Date).getTime());class QB{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return null!==(t=this.styleIDMap.get(e))&&void 0!==t?t:-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function eH(e){var t;let n=null;return(null===(t=e.getRootNode)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(n=e.getRootNode().host),n}function tH(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=eH(n);)n=t;return n}(e);return t.contains(n)}function nH(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||tH(e))}const rH={};function oH(e){const t=rH[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return rH[e]=r.bind(window)}function iH(){return oH("setTimeout")(...arguments)}var sH=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(sH||{}),aH=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(aH||{}),cH=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(cH||{}),uH=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(uH||{}),lH=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(lH||{});function dH(e){try{return e.contentDocument}catch(e){}}function pH(e){return"__ln"in e}class fH{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++){var n;t=(null===(n=t)||void 0===n?void 0:n.next)||null}return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&pH(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&pH(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const hH=(e,t)=>`${e}@${t}`;class mH{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new fH,r=e=>{let t=e,n=pB;for(;n===pB;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!nH(o))return;const i=Vj(o.parentNode)?this.mirror.getId(eH(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=PB(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{YB(e,this.mirror)&&!VB(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),XB(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ZB(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{VB(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${o}px`}}}]})}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)vH(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)yH(this.droppedSet,e)||vH(this.removes,e,this.mirror)?yH(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!GB(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;VB(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:AB(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,WB(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=nB(t),o=t.tagName;r=rB(t,o,n);const i=Xj({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=Zj({isMasked:AB(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(VB(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);
1if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(dH(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!CB(t.tagName,n)&&(o.attributes[n]=IB(this.doc,Qj(t.tagName),Qj(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(VB(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=Vj(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);VB(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||GB(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(gH(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||KB(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[hH(n,r)]?gH(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!Vj(e.target)||!Gj(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(GB(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[hH(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);VB(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach((e=>this.genAdds(e))),ZB(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function gH(e,t){var n;e.delete(t),null===(n=t.childNodes)||void 0===n||n.forEach((t=>gH(e,t)))}function vH(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}(e,t,n)}function yH(e,t){return 0!==e.size&&_H(e,t)}function _H(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||_H(e,n))}let bH;const SH=e=>{if(!bH)return e;return function(){try{return e(...arguments)}catch(e){if(bH&&!0===bH(e))return()=>{};throw e}}},wH=[];function kH(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function EH(e,t){var n,r;const o=new mH;wH.push(o),o.init(e);let i=window.MutationObserver||window.__rrMutationObserver;const s=null===(n=window)||void 0===n||null===(n=n.Zone)||void 0===n||null===(r=n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");s&&window[s]&&(i=window[s]);const a=new i(SH((t=>{e.onMutation&&!1===e.onMutation(t)||o.processMutations.bind(o)(t)})));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function xH(e){let{mouseInteractionCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,sampling:a}=e;if(!1===a.mouseInteraction)return()=>{};const c=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,u=[];let l=null;return Object.keys(cH).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==c[e])).forEac
1h((e=>{let a=Qj(e);const c=(e=>n=>{const a=kH(n);if(VB(a,o,i,s,!0))return;let c=null,u=e;if("pointerType"in n){switch(n.pointerType){case"mouse":c=uH.Mouse;break;case"touch":c=uH.Touch;break;case"pen":c=uH.Pen}c===uH.Touch?cH[e]===cH.MouseDown?u="TouchStart":cH[e]===cH.MouseUp&&(u="TouchEnd"):uH.Pen}else JB(n)&&(c=uH.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===uH.Touch||u.startsWith("Mouse")&&c===uH.Mouse)&&(c=null)):cH[e]===cH.Click&&(c=l,l=null);const d=JB(n)?n.changedTouches[0]:n;if(!d)return;const p=r.getId(a),{clientX:f,clientY:h}=d;SH(t)({type:cH[u],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(e);if(window.PointerEvent)switch(cH[e]){case cH.MouseDown:case cH.MouseUp:a=a.replace("mouse","pointer");break;case cH.TouchStart:case cH.TouchEnd:return}u.push(DB(a,c,n))})),SH((()=>{u.forEach((e=>e()))}))}function TH(e){let{scrollCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,sampling:a}=e;const c=SH($B(SH((e=>{const a=kH(e);if(!a||VB(a,o,i,s,!0))return;const c=r.getId(a);if(a===n&&n.defaultView){const e=HB(n.defaultView);t({id:c,x:e.left,y:e.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})})),a.scroll||100));return DB("scroll",c,n)}const IH=["INPUT","TEXTAREA","SELECT"],CH=new WeakMap;function RH(e){let{inputCb:t,doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,ignoreClass:a,ignoreSelector:c,maskInputOptions:u,maskInputFn:l,sampling:d,userTriggeredOnInput:p,maskTextClass:f,unmaskTextClass:h,maskTextSelector:m,unmaskTextSelector:g}=e;function v(e){let t=kH(e);const r=e.isTrusted,d=t&&eB(t.tagName);if("OPTION"===d&&(t=t.parentElement),!t||!d||IH.indexOf(d)<0||VB(t,o,i,s,!0))return;const v=t;if(v.classList.contains(a)||c&&v.matches(c))return;const _=nB(t);let b=rB(v,d,_),S=!1;const w=Xj({maskInputOptions:u,tagName:d,type:_}),k=AB(t,f,m,h,g,w);"radio"!==_&&"checkbox"!==_||(S=t.checked),b=Zj({isMasked:k,element:t,value:b,maskInputFn:l}),y(t,p?{text:b,isChecked:S,userTriggered:r}:{text:b,isChecked:S});const E=t.name;"radio"===_&&E&&S&&n.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==t){const t=Zj({isMasked:k,element:e,value:rB(e,d,_),maskInputFn:l});y(e,p?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(e,n){const o=CH.get(e);if(!o||o.text!==n.text||o.isChecked!==n.isChecked){CH.set(e,n);const o=r.getId(e);SH(t)({...n,id:o})}}const _=("last"===d.input?["change"]:["input","change"]).map((e=>DB(e,SH(v),n))),b=n.defaultView;if(!b)return()=>{_.forEach((e=>e()))};const S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&_.push(...w.map((e=>UB(e[0],e[1],{set(){SH(v)({target:this,isTrusted:!1})}},!1,b)))),SH((()=>{_.forEach((e=>e()))}))}function MH(e){return function(e,t){if(PH("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||PH("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||PH("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||PH("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function AH(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function OH(e,t){var n,r;let{mirror:o,stylesheetManager:i}=e,s=null;s="#document"===t.nodeName?o.getId(t):o.getId(t.host);const a="#document"===t.nodeName?null===(n=t.defaultView)||void 0===n?void 0:n.Document:null===(r=t.ownerDocument)||void 0===r||null===(r=r.defaultView)||void 0===r?void 0:r.ShadowRoot,c=null!=a&&a.prototype?Object.getOwnPropertyDescriptor(null==a?void 0:a.prototype,"adoptedStyleSheets"):void 0;return null!==s&&-1!==s&&a&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var e;return null===(e=c.get)||void 0===e?void 0:e.call(this)},set(e){var t;const n=null===(t=c.set)||void 0===t?void 0:t.call(this,e);if(null!==s&&-1!==s)try{i.adoptStyleSheets(e,s)}catch(e){}return n}}),SH((()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))):()=>{}}function LH(e){const t=e.doc.defaultView;if(!t)return()=>{};let n;
1e.recordDOM&&(n=EH(e,e.doc));const r=function(e){let{mousemoveCb:t,sampling:n,doc:r,mirror:o}=e;if(!1===n.mousemove)return()=>{};const i="number"==typeof n.mousemove?n.mousemove:50,s="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500;let a,c=[];const u=$B(SH((e=>{const n=Date.now()-a;t(c.map((e=>(e.timeOffset-=n,e))),e),c=[],a=null})),s),l=SH($B(SH((e=>{const t=kH(e),{clientX:n,clientY:r}=JB(e)?e.changedTouches[0]:e;a||(a=BB()),c.push({x:n,y:r,id:o.getId(t),timeOffset:BB()-a}),u("undefined"!=typeof DragEvent&&e instanceof DragEvent?aH.Drag:e instanceof MouseEvent?aH.MouseMove:aH.TouchMove)})),i,{trailing:!1})),d=[DB("mousemove",l,r),DB("touchmove",l,r),DB("drag",l,r)];return SH((()=>{d.forEach((e=>e()))}))}(e),o=xH(e),i=TH(e),s=function(e,t){let{viewportResizeCb:n}=e,{win:r}=t,o=-1,i=-1;return DB("resize",SH($B(SH((()=>{const e=zB(),t=qB();o===e&&i===t||(n({width:Number(t),height:Number(e)}),o=e,i=t)})),200)),r)}(e,{win:t}),a=RH(e),c=function(e){let{mediaInteractionCb:t,blockClass:n,blockSelector:r,unblockSelector:o,mirror:i,sampling:s,doc:a}=e;const c=SH((e=>$B(SH((s=>{const a=kH(s);if(!a||VB(a,n,r,o,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:e,id:i.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),s.media||500))),u=[DB("play",c(lH.Play),a),DB("pause",c(lH.Pause),a),DB("seeked",c(lH.Seeked),a),DB("volumechange",c(lH.VolumeChange),a),DB("ratechange",c(lH.RateChange),a)];return SH((()=>{u.forEach((e=>e()))}))}(e);let u=()=>{},l=()=>{},d=()=>{},p=()=>{};e.recordDOM&&(u=function(e,t){let{styleSheetRuleCb:n,mirror:r,stylesheetManager:o}=e,{win:i}=t;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:SH(((e,t,i)=>{const[s,a]=i,{id:c,styleId:u}=AH(t,r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:s,index:a}]}),e.apply(t,i)}))});const a=i.CSSStyleSheet.prototype.deleteRule;let c,u;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:SH(((e,t,i)=>{const[s]=i,{id:a,styleId:c}=AH(t,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,removes:[{index:s}]}),e.apply(t,i)}))}),i.CSSStyleSheet.prototype.replace&&(c=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:SH(((e,t,i)=>{const[s]=i,{id:a,styleId:c}=AH(t,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,replace:s}),e.apply(t,i)}))})),i.CSSStyleSheet.prototype.replaceSync&&(u=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:SH(((e,t,i)=>{const[s]=i,{id:a,styleId:c}=AH(t,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,replaceSync:s}),e.apply(t,i)}))}));const l={};DH("CSSGroupingRule")?l.CSSGroupingRule=i.CSSGroupingRule:(DH("CSSMediaRule")&&(l.CSSMediaRule=i.CSSMediaRule),DH("CSSConditionRule")&&(l.CSSConditionRule=i.CSSConditionRule),DH("CSSSupportsRule")&&(l.CSSSupportsRule=i.CSSSupportsRule));const d={};return Object.entries(l).forEach((e=>{let[t,i]=e;d[t]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(d[t].insertRule,{apply:SH(((e,t,i)=>{const[s,a]=i,{id:c,styleId:u}=AH(t.parentStyleSheet,r,o.styleMirror);return(c&&-1!==c||u&&-1!==u)&&n({id:c,styleId:u,adds:[{rule:s,index:[...MH(t),a||0]}]}),e.apply(t,i)}))}),i.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:SH(((e,t,i)=>{const[s]=i,{id:a,styleId:c}=AH(t.parentStyleSheet,r,o.styleMirror);return(a&&-1!==a||c&&-1!==c)&&n({id:a,styleId:c,removes:[{index:[...MH(t),s]}]}),e.apply(t,i)}))})})),SH((()=>{i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,c&&(i.CSSStyleSheet.prototype.replace=c),u&&(i.CSSStyleSheet.prototype.replaceSync=u),Object.entries(l).forEach((e=>{let[t,n]=e;n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule}))}))}(e,{win:t}),l=OH(e,e.doc),d=function(e,t){let{styleDeclarationCb:n,mirror:r,ignoreCSSAttributes:o,stylesheetManager:i}=e,{win:s}=t;const a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:SH(((e,t,s)=>{var c;const[u,l,d]=s;if(o.has(u))return a.apply(t,[u,l,d]);const{id:p,styleId:f}=AH(null===(c=t.parentRule)||void 0===c?void 0:c.parentStyleSheet,r,i.styleMirror);return(p&&-1!==p||f&&-1!==f)&&n({id:p,styleId:f,set:{property:u,value:l,priority:d},index:MH(t.parentRule)}),e.apply(t,s)}))});const c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:SH(((e,t,s)=>{var a;const[u]=s;if(o.has(u))return c.apply(t,[u]);const{id:l,styleId:d}=AH(null===(a=t.parentRule)||void 0===a?void 0:a.parentStyleSheet,r,i.styleMirror);return(l&&-1!==l||d&&-1!==d)&&n({id:l,styleId:d,remove:{property:u},index:MH(t.parentRule)}),e.apply(t,s)}))}),SH((()=>{s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c}))}(e,{win:t}),e.collectFonts&&(p=function(e){let{fontCb:t,doc:n}=e;const r=n.defaultView;if(!r)return()=>{};const o=[],i=new WeakMap,s=r.FontFace;r.FontFace=function(e,t,n){const r=new s(e,t,n);return i.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=jB(n.fonts,"add",(function(e){return function(n){return iH(SH((()=>{const e=i.get(n);e&&(t(e),i.delete(n))})),0),e.apply(this,[n])}}));return o.push((()=>{r.FontFace=s})),o.push(a),SH((()=>{o.forEach((e=>e()))}))}(e)));const f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=SH((()=>{const e=t.getSelection();if(!e||a&&null!=e&&e.isCollapsed)return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=s;VB(a,r,o,i,!0)||VB(l,r,o,i,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}s({ranges:c})}));return c(),DB("selectionchange",c)}(e),h=function(e){let{doc:t,customElementCb:n}=e;const r=t.defaultView;return r&&r.customElements?jB(r.customElements,"define",(function(e){return function(t,r,o){try{n({define:{name:t}})}catch(e){}return e.apply(this,[t,r,o])}})):()=>{}}(e),m=[];for(const n of e.plugins)m.push(n.observer(n.callback,t,n.options));return SH((()=>{var e;
1wH.forEach((e=>e.reset())),null===(e=n)||void 0===e||e.disconnect(),r(),o(),i(),s(),a(),c(),u(),l(),d(),p(),f(),h(),m.forEach((e=>e()))}))}function PH(e){return void 0!==window[e]}function DH(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class NH{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class FH{constructor(){this.crossOriginIframeMirror=new NH(fB),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class $H{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new NH(fB),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new NH(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null===(n=e.contentWindow)||void 0===n||n.addEventListener("message",this.handleMessage.bind(this))),null===(r=this.loadListener)||void 0===r||r.call(this,e);const o=dH(e);o&&o.adoptedStyleSheets&&o.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(o.adoptedStyleSheets,this.mirror.getId(o))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case sH.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:sH.IncrementalSnapshot,data:{source:aH.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case sH.Meta:case sH.Load:case sH.DomContentLoaded:return!1;case sH.Plugin:return t;case sH.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case sH.IncrementalSnapshot:switch(t.data.source){case aH.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case aH.Drag:case aH.TouchMove:case aH.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case aH.ViewportResize:return!1;case aH.MediaInteraction:case aH.MouseInteraction:case aH.Scroll:case aH.CanvasMutation:case aH.Input:return this.replaceIds(t.data,e,["id"]),t;case aH.StyleSheetRule:case aH.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case aH.Font:return t;
1case aH.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case aH.AdoptedStyleSheet:var n;return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null===(n=t.data.styles)||void 0===n||n.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===Wj.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class UH{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class jH{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!Gj(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=EH({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(TH({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iH((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(OH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=dH(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(jB(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&nH(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var BH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",HH="undefined"==typeof Uint8Array?[]:new Uint8Array(256),zH=0;zH<64;zH++)HH[BH.charCodeAt(zH)]=zH;class qH{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class WH{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new QB,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:Jj(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class VH{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(){oH("requestAnimationFrame")(...arguments)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let GH,KH;try{if(2!==Array.from([1],(e=>2*e))[0]){var JH;const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null===(JH=e.contentWindow)||void 0===JH?void 0:JH.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const YH=new Yj;function XH(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:v,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:E={},mousemoveWait:x,recordDOM:T=!0,recordCanvas:I=!1,recordCrossOriginIframes:C=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:L,keepIframeSrcFn:P=(()=>!1),ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:F,getCanvasManager:$}=e;bH=N;const U=!C||window.parent===window;let j=!1;if(!U)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(U&&!t)throw new Error("emit function is required");if(!U&&!j)return()=>{};
1void 0!==x&&void 0===k.mousemove&&(k.mousemove=x),YH.reset();const B=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},H=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};let z;!function(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n[0];if(!(0 in n))throw new TypeError("1 argument is required");do{if(e===o)return!0}while(o=o&&o.parentNode);return!1})}();let q=0;const W=e=>{for(const t of L||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!j&&(e=w(e)),e};GH=(e,o)=>{var i;const s=e;if(s.timestamp=BB(),null===(i=wH[0])||void 0===i||!i.isFrozen()||s.type===sH.FullSnapshot||s.type===sH.IncrementalSnapshot&&s.data.source===aH.Mutation||wH.forEach((e=>e.unfreeze())),U)null==t||t(W(s),o);else if(j){const e={type:"rrweb",event:W(s),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(s.type===sH.FullSnapshot)z=s,q=0;else if(s.type===sH.IncrementalSnapshot){if(s.data.source===aH.Mutation&&s.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&z&&s.timestamp-z.timestamp>n;(e||t)&&ee(!0)}};const V=e=>{GH({type:sH.IncrementalSnapshot,data:{source:aH.Mutation,...e}})},G=e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.Scroll,...e}}),K=e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.CanvasMutation,...e}}),J=new WH({mutationCb:V,adoptedStyleSheetCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new FH:new $H({mirror:YH,mutationCb:V,stylesheetManager:J,recordCrossOriginIframes:C,wrappedEmit:GH});for(const e of L||[])e.getMirror&&e.getMirror({nodeMirror:YH,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new VH,Z=function(e,t){try{return e?e(t):new qH}catch(e){return console.warn("Unable to initialize CanvasManager"),new qH}}($,{mirror:YH,win:window,mutationCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.CanvasMutation,...e}}),recordCanvas:I,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:E,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new UH:new jH({mutationCb:V,scrollCb:G,bypassOptions:{onMutation:F,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:E,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,recordCanvas:I,inlineImages:O,sampling:k,slimDOMOptions:H,iframeManager:Y,stylesheetManager:J,canvasManager:Z,keepIframeSrcFn:P,processedNodeManager:X},mirror:YH}),ee=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!T)return;GH({type:sH.Meta,data:{href:window.location.href,width:qB(),height:zB()}},e),J.reset(),Q.init(),wH.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Yj,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:E,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:I=(()=>!1)}=t||{};return PB(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:v,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
1:!1===y?{}:y,dataURLOptions:_,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:E,onStylesheetLoad:x,stylesheetLoadTimeout:T,keepIframeSrcFn:I,newlyAddedElement:!1})}(document,{mirror:YH,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,slimDOM:H,dataURLOptions:E,recordCanvas:I,inlineImages:O,onSerialize:e=>{YB(e,YH)&&Y.addIframe(e),XB(e,YH)&&J.trackLinkElement(e),ZB(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),e.contentWindow&&Z.addWindow(e.contentWindow),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,n)=>{let{width:r,height:o}=n;V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${o}px`}}}]})},keepIframeSrcFn:P});if(!t)return console.warn("Failed to snapshot the document");GH({type:sH.FullSnapshot,data:{node:t,initialOffset:HB(window)}}),wH.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,YH.getId(document))};KH=ee;try{const e=[],t=e=>{var t;return SH(LH)({onMutation:F,mutationCb:V,mousemoveCb:(e,t)=>GH({type:sH.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.MouseInteraction,...e}}),scrollCb:G,viewportResizeCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.ViewportResize,...e}}),inputCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.Input,...e}}),mediaInteractionCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.MediaInteraction,...e}}),styleSheetRuleCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.StyleSheetRule,...e}}),styleDeclarationCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>GH({type:sH.IncrementalSnapshot,data:{source:aH.Font,...e}}),selectionCb:e=>{GH({type:sH.IncrementalSnapshot,data:{source:aH.Selection,...e}})},customElementCb:e=>{GH({type:sH.IncrementalSnapshot,data:{source:aH.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:B,inlineStylesheet:h,sampling:k,recordDOM:T,recordCanvas:I,inlineImages:O,userTriggeredOnInput:M,collectFonts:A,doc:e,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:P,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:E,mirror:YH,iframeManager:Y,stylesheetManager:J,shadowDomManager:Q,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:D,plugins:(null==L||null===(t=L.filter((e=>e.observer)))||void 0===t?void 0:t.map((e=>({observer:e.observer,options:e.options,callback:t=>GH({type:sH.Plugin,data:{plugin:e.name,payload:t}})}))))||[]},{})};Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(DB("DOMContentLoaded",(()=>{GH({type:sH.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),e.push(DB("load",(()=>{GH({type:sH.Load,data:{}}),"load"===R&&n()}),window))),()=>{e.forEach((e=>e())),X.destroy(),KH=void 0,bH=void 0}}catch(e){console.warn(e)}}var ZH,QH;XH.mirror=YH,XH.takeFullSnapshot=function(e){if(!KH)throw new Error("please take full snapshot after start recording");KH(e)},(QH=ZH||(ZH={}))[QH.NotStarted=0]="NotStarted",QH[QH.Running=1]="Running",QH[QH.Stopped=2]="Stopped";const ez=3;function tz(e){return e>9999999999?e:1e3*e}function nz(e){return e>9999999999?e/1e3:e}function rz(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:sH.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:iT(t,10,1e3)}}),"console"===t.category))))}const oz="button,a";function iz(e){return e.closest(oz)||e}function sz(e){const t=az(e);return t&&t instanceof Element?iz(t):t}function az(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let cz;function uz(e){return cz||(cz=[],Lk(Aj,"open",(function(e){return function(){if(cz)try{cz.forEach((e=>e()))}catch(e){}for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(Aj,n)}}))),cz.push(e),()=>{const t=cz?cz.indexOf(e):-1;t>-1&&cz.splice(t,1)}}const lz=new Set([aH.Mutation,aH.StyleSheetRule,aH.StyleDeclaration,aH.AdoptedStyleSheet,aH.CanvasMutation,aH.Selection,aH.MediaInteraction]);class dz{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rz;this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=uz((()=>{this._lastMutation=fz()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!pz.includes(e.tagName))return!0;
1if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:nz(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastMutation=nz(e)}registerScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastScroll=nz(e)}registerClick(e){const t=iz(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=fz();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:Aj.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:Aj.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=dU((()=>this._checkClicks()),1e3)}}const pz=["A","BUTTON","INPUT"];function fz(){return Date.now()/1e3}function hz(e,t){try{if(!function(e){return e.type===ez}(t))return;const{source:n}=t.data;if(lz.has(n)&&e.registerMutation(t.timestamp),n===aH.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===aH.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=XH.mirror.getNode(r);o instanceof HTMLElement&&n===cH.Click&&e.registerClick(o)}}catch(e){}}function mz(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var gz=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(gz||{});const vz=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function yz(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(vz.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const _z=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?sz(e.event):az(e.event),n=Ek(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return mz({category:`ui.${e.name}`,...bz(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;!(r&&e.clickDetector&&null!=o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,sz(t.event)),rz(e,n)};function bz(e,t){const n=XH.mirror.getId(e),r=n&&XH.mirror.getNode(n),o=r&&XH.mirror.getMeta(r),i=o&&function(e){return e.type===gz.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>
1e.type===gz.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:yz(i.attributes)}}:{}}}function Sz(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!i)return null;const a=t||r||o,c=1===i.length;if(!a&&c)return null;const u=Ek(s,{maxStringLength:200})||"<unknown>",l=bz(s,u);return mz({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&rz(e,n)}const wz={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:xz(i),end:xz(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=xz(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:xz(f),end:xz(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function kz(e,t){return n=>{let{metric:r}=n;t.replayPerformanceEntries.push(e(r))}}function Ez(e){const t=wz[e.entryType];return t?t(e):null}function xz(e){return((Xk()||Aj.performance.timeOrigin)+e)/1e3}function Tz(e){const t=e.entries[e.entries.length-1];return Mz(e,"largest-contentful-paint",null!=t&&t.element?[t.element]:void 0)}function Iz(e){return void 0!==e.sources}function Cz(e){const t=[],n=[];for(const r of e.entries)if(Iz(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=XH.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Mz(e,"cumulative-layout-shift",n,t)}function Rz(e){const t=e.entries[e.entries.length-1];return Mz(e,"interaction-to-next-paint",null!=t&&t.target?[t.target]:void 0)}function Mz(e,t,n,r){const o=e.value,i=e.rating,s=xz(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((e=>XH.mirror.getId(e))):void 0,attributions:r}}}const Az="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Oz='
vendor: 10,329 bytes, line 1
1var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
1';const Lz=["log","warn","error"],Pz="[Replay] ";function Dz(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";DO({category:"console",data:{logger:"replay"},level:t,message:`${Pz}${e}`},{level:t})}const Nz=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Az?(Lz.forEach((e=>{n[e]=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];U_[e](Pz,...r),t&&Dz(r.join(""),sL(e))}})),n.exception=function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];i.length&&n.error&&n.error(...i),U_.error(Pz,r),e?aI(r):t&&Dz(r,"error")},n.infoTick=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];U_.log(Pz,...n),t&&setTimeout((()=>Dz(n[0])),0)}):Lz.forEach((e=>{n[e]=()=>{}})),n}();class Fz extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class $z{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>jj)throw new Fz;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?tz(e):null}}class Uz{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(n=>{let{data:r}=n;r.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Az&&Nz.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=t=>{let{data:s}=t;const a=s;if(a.method===e&&a.id===n){if(this._worker.removeEventListener("message",i),!a.success)return Az&&Nz.error("Error in compression worker: ",a.response),void o(new Error("Error in compression worker"));r(a.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class jz{constructor(e){this._worker=new Uz(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=tz(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>jj?Promise.reject(new Fz):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Az&&Nz.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Bz{constructor(e){this._fallback=new $z,this._compression=new jz(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}
1ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Az&&Nz.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Az&&Nz.exception(e,"Failed to add events when switching buffers.")}}}function Hz(e){let{useCompression:t,workerUrl:n}=e;if(t&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([Oz]);return URL.createObjectURL(e)}();return""}();if(!t)return;Az&&Nz.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Bz(n)}catch(e){Az&&Nz.exception(e,"Failed to create compression worker")}}(n);if(e)return e}return Az&&Nz.log("Using simple buffer"),new $z}function zz(){try{return"sessionStorage"in Aj&&!!Aj.sessionStorage}catch(e){return!1}}function qz(e){!function(){if(!zz())return;try{Aj.sessionStorage.removeItem(Oj)}catch(e){}}(),e.session=void 0}function Wz(e){return void 0!==e&&Math.random()<e}function Vz(e){if(zz())try{Aj.sessionStorage.setItem(Oj,JSON.stringify(e))}catch(e){}}function Gz(e){const t=Date.now();return{id:e.id||jk(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Kz(e){let{sessionSampleRate:t,allowBuffering:n,stickySession:r=!1}=e,{previousSessionId:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=function(e,t){return Wz(e)?"session":!!t&&"buffer"}(t,n),s=Gz({sampled:i,previousSessionId:o});return r&&Vz(s),s}function Jz(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:+new Date;return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Yz(e,t){let{maxReplayDuration:n,sessionIdleExpire:r,targetTime:o=Date.now()}=t;return Jz(e.started,n,o)||Jz(e.lastActivity,r,o)}function Xz(e,t){let{sessionIdleExpire:n,maxReplayDuration:r}=t;return!!Yz(e,{sessionIdleExpire:n,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function Zz(e,t){let{sessionIdleExpire:n,maxReplayDuration:r,previousSessionId:o}=e;const i=t.stickySession&&function(){if(!zz())return null;try{const e=Aj.sessionStorage.getItem(Oj);if(!e)return null;const t=JSON.parse(e);return Az&&Nz.infoTick("Loading existing session"),Gz(t)}catch(e){return null}}();return i?Xz(i,{sessionIdleExpire:n,maxReplayDuration:r})?(Az&&Nz.infoTick("Session in sessionStorage is expired, creating new one..."),Kz(t,{previousSessionId:i.id})):i:(Az&&Nz.infoTick("Creating new session"),Kz(t,{previousSessionId:o}))}function Qz(e,t,n){return!!tq(e,t)&&(eq(e,t,n),!0)}async function eq(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===sH.Custom}(e))return t(e)}catch(e){return Az&&Nz.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(t){const n=t&&t instanceof Fz,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i});const s=vE();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function tq(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=tz(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Az&&Nz.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function nq(e){return!e.type}function rq(e){return"transaction"===e.type}function oq(e){return"feedback"===e.type}function iq(e){return(t,n)=>{if(!e.isEnabled()||!nq(t)&&!rq(t))return;const r=null==n?void 0:n.statusCode;!r||r<200||r>=300||(rq(t)?function(e,t){var n;const r=e.getContext();null!==(n=t.contexts)&&void 0!==n&&null!==(n=n.trace)&&void 0!==n&&n.trace_id&&r.traceIds.size<100&&r.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;dU((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}function sq(e){return t=>{e.isEnabled()&&nq(t)&&function(e,t){var n;const r=null===(n=t.exception)||void 0===n||null===(n=n.values)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value;if("string"!=typeof r)return;if(r.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i)){rz(e,mz({category:"replay.hydrate-error",data:{url:Tk()}}))}}(e,t)}}function aq(e){const t=vE();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!cq(t))return;const n=function(e){if(!cq(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){var t;const n=null===(t=e.data)||void 0===t?void 0:t.arguments;if(!Array.isArray(n)||0===n.length)return mz(e);let r=!1;const o=n.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Uj?(r=!0,`${e.slice(0,Uj)}â¦`):e;if("object"==typeof e)try{const t=iT(e,7);return JSON.stringify(t).length>Uj?(r=!0,`${JSON.stringify(t,null,2).slice(0,Uj)}â¦`):t}catch(e){}return e}));return mz({...e,data:{...e.data,arguments:o,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return mz(e)}(t);n&&rz(e,n)}(e,t)))}function cq(e){return!!e.category}function uq(){const e=fE().getPropagationContext().dsc;e&&delete e.replay_id;const t=qx();if(t){delete nT(t).replay_id}}function lq(e){return Object.assign(((t,n)=>
1{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!nq(t)&&!rq(t)&&!oq(t))return t;if(!e.checkAndHandleExpiredSession())return uq(),t;if(oq(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:sH.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){var n,r;return!(e.type||null===(n=e.exception)||void 0===n||null===(n=n.values)||void 0===n||!n.length||null===(r=t.originalException)||void 0===r||!r.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Az&&Nz.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==Pj&&!(!t.exception||t.type)&&Wz(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function dq(e,t){return t.map((t=>{let{type:n,start:r,end:o,name:i,data:s}=t;const a=e.throttledAddEvent({type:sH.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return"string"==typeof a?Promise.resolve(null):a}))}function pq(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(dq(e,[n]),!1))))}}function fq(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Az||!e.getOptions()._experiments.traceInternals)&&CO(t,vE())}(e,t.name)||e.addUpdate((()=>(dq(e,[t]),!0))))}function hq(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=mU(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function mq(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function gq(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function vq(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:s,request:a,response:c}}}function yq(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function _q(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Fj,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Fj);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=o,null!=i&&i.length&&(r._meta={warnings:i}),r}function bq(e,t){return Object.entries(e).reduce(((n,r)=>{let[o,i]=r;const s=o.toLowerCase();return t.includes(s)&&e[o]&&(n[s]=i),n}),{})}function Sq(e,t){const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Aj.document.baseURI;if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Aj.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return Ok(n,t)}async function wq(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Sq(s,n.networkDetailAllowUrls)&&!Sq(s,n.networkDetailDenyUrls),p=d?function(e,t,n){let{networkCaptureBodies:r,networkRequestHeaders:o}=e;const i=t?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Eq(e[0],t);
1if(2===e.length)return Eq(e[1],t);return{}}(t,o):{};if(!r)return _q(i,n,void 0);const s=vU(t),[a,c]=gU(s,Nz),u=_q(i,n,a);if(c)return gq(u,c);return u}(n,t.input,u):yq(u),f=await async function(e,t,n,r){let{networkCaptureBodies:o,networkResponseHeaders:i}=t;if(!e&&void 0!==r)return yq(r);const s=n?kq(n.headers,i):{};if(!n||!o&&void 0!==r)return _q(s,r,void 0);const[a,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Az&&Nz.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=dU((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Az&&Nz.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Az&&Nz.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(n),u=function(e,t){let{networkCaptureBodies:n,responseBodySize:r,captureDetails:o,headers:i}=t;try{const t=null!=e&&e.length&&void 0===r?hq(e):r;return o?_q(i,t,n?e:void 0):yq(t)}catch(e){return Az&&Nz.exception(e,"Failed to serialize response body"),_q(i,r,void 0)}}(a,{networkCaptureBodies:o,responseBodySize:r,captureDetails:e,headers:s});if(c)return gq(u,c);return u}(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:f}}(e,t,n),o=vq("resource.fetch",r);fq(n.replay,o)}catch(e){Az&&Nz.exception(e,"Failed to capture fetch breadcrumb")}}function kq(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Eq(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?kq(n,t):Array.isArray(n)?{}:bq(n,t):{}}async function xq(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!Sq(c,n.networkDetailAllowUrls)||Sq(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:yq(d),response:yq(p)}}const f=a[pU],h=f?bq(f.request_headers,n.networkRequestHeaders):{},m=bq(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{})}(a),n.networkResponseHeaders),[g,v]=n.networkCaptureBodies?gU(s,Nz):[void 0],[y,_]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Az&&Nz.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Az&&Nz.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Az&&Nz.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=_q(h,d,g),S=_q(m,p,y);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:v?gq(b,v):b,response:_?gq(S,_):S}}(e,t,n),o=vq("resource.xhr",r);fq(n.replay,o)}catch(e){Az&&Nz.exception(e,"Failed to capture xhr breadcrumb")}}function Tq(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=hq(r),i=n.getResponseHeader("content-length")?mq(n.getResponseHeader("content-length")):function(e,t){try{return hq("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function Iq(e){const t=vE();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",((e,t)=>
1function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return null==e?void 0:e.xhr}(n)&&(Tq(t,n),xq(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return null==e?void 0:e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,o=hq(n?vU(n):void 0),i=r?mq(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),wq(t,n,e))}catch(e){Az&&Nz.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch(e){}}function Cq(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Rq(e,t,n){return function(e,t,n){let r,o,i;const s=null!=n&&n.maxWait?Math.max(n.maxWait,t):0,a=(null==n?void 0:n.setTimeoutImpl)||setTimeout;function c(){return u(),r=e(),r}function u(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function l(){return o&&clearTimeout(o),o=a(c,t),s&&void 0===i&&(i=a(c,s)),r}return l.cancel=u,l.flush=function(){return void 0!==o||void 0!==i?c():r},l}(e,t,{...n,setTimeoutImpl:dU})}const Mq=I_.navigator;function Aq(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Az&&Nz.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&hz(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Qz(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Qz(e,function(e){const t=e.getOptions();return{type:sH.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Az&&Nz.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Vz(t))}return null!=t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}async function Oq(e){let{recordingData:t,replayId:n,segmentId:r,eventContext:o,timestamp:i,session:s}=e;const a=function(e){let t,{recordingData:n,headers:r}=e;const o=`${JSON.stringify(r)}\n`;if("string"==typeof n)t=`${o}${n}`;else{const e=(new TextEncoder).encode(o);t=new Uint8Array(e.length+n.length),t.set(e),t.set(n,e.length)}return t}({recordingData:t,headers:{segment_id:r}}),{urls:c,errorIds:u,traceIds:l,initialTimestamp:d}=o,p=vE(),f=fE(),h=null==p?void 0:p.getTransport(),m=null==p?void 0:p.getDsn();if(!(p&&h&&m&&s.sampled))return GT({});const g={type:Lj,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:u,trace_ids:l,urls:c,replay_id:n,segment_id:r,replay_type:s.sampled},v=await async function(e){let{client:t,scope:n,replayId:r,event:o}=e;const i={event_id:r,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",o,i);const s=await oI(t.getOptions(),o,i,n,t,hE());if(!s)return null;t.emit("postprocessEvent",s,i),s.platform=s.platform||"javascript";const a=t.getSdkMetadata(),{name:c,version:u,settings:l}=(null==a?void 0:a.sdk)||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:l},s}({scope:f,client:p,replayId:n,event:g});if(!v)return p.recordDroppedEvent("event_processor","replay"),Az&&Nz.log("An event processor returned `null`, will not send event."),GT({});delete v.sdkProcessingMetadata;const y=function(e,t,n,r){return cT(bT(e,_T(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,a,m,p.getOptions().tunnel);let _;try{_=await h.send(y)}catch(e){const t=new Error(Pj);try{t.cause=e}catch(e){}throw t}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new Lq(_.statusCode);const b=gR({},_);if(mR(b,"replay"))throw new Pq(b);return _}
1class Lq extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Pq extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Dq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{count:0,interval:5e3};const{recordingData:n,onError:r}=e;if(n.length)try{return await Oq(e),!0}catch(n){if(n instanceof Lq||n instanceof Pq)throw n;if(lI("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Pj} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{dU((async()=>{try{await Dq(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Nq="__THROTTLED";function Fq(e,t,n){const r=new Map;let o=!1;return function(){const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Nq}o=!1;const s=r.get(i)||0;return r.set(i,s+1),e(...arguments)}}class $q{constructor(e){let{options:t,recordingOptions:n}=e;this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Rq((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Fq(((e,t)=>function(e,t,n){return tq(e,t)?eq(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:o?o.join(","):""}:void 0;if(i&&(this.clickDetector=new dz(this,i)),Az){const e=t._experiments;Nz.setConfig({captureExceptions:!!e.captureExceptions,traceInternals:!!e.traceInternals})}this._handleVisibilityChange=()=>{"visible"===Aj.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=mz({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=mz({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Sz(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Az&&Nz.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Az&&Nz.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Az&&Nz.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Az&&Nz.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Az&&Nz.log("Buffering is in progress, call `flush()` to save the replay"));Az&&Nz.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Zz({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Az&&Nz.log("Buffering is in progress, call `flush()` to save the replay"));Az&&Nz.infoTick("Starting replay in buffer mode");const e=Zz({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const n=this._canvas;this._stopRecording=XH({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Aq(this),.../iPhone|iPad|iPod/i.test(null!==(e=null==Mq?void 0:Mq.userAgent)&&void 0!==e?e:"")||/Macintosh/i.test(null!==(t=null==Mq?void 0:Mq.userAgent)&&void 0!==t?t:"")&&null!=Mq&&Mq.maxTouchPoints&&(null==Mq?void 0:Mq.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}var e,t}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop(){let{forceFlush:e=!1,reason:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{var n;Az&&Nz.log("Stopping Replay"+(t?` triggered by ${t}`:"")),uq(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),null===(n=this.eventBuffer)||void 0===n||n.destroy(),this.eventBuffer=null,qz(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Az&&Nz.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Az&&Nz.log("Resuming replay"))}async sendBufferedReplayOrFlush(){let{continueRecording:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Az&&Nz.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){var e;return null===(e=this.session)||void 0===e?void 0:e.id}
1checkAndHandleExpiredSession(){if(!(this._lastActivity&&Jz(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Aj.location.pathname}${Aj.location.hash}${Aj.location.search}`,t=`${Aj.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Nq){const e=mz({category:"replay.throttled"});this.addUpdate((()=>!Qz(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||qx(),t=e&&zx(e),n=(t&&Nx(t).data||{})[_E];if(t&&n&&["route","custom"].includes(n))return Nx(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Hz({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Zz({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!Xz(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Aj.document.addEventListener("visibilitychange",this._handleVisibilityChange),Aj.addEventListener("blur",this._handleWindowBlur),Aj.addEventListener("focus",this._handleWindowFocus),Aj.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=vE();rU(_z(e)),sU(pq(e)),aq(e),Iq(e),hI(lq(e)),t&&(t.on("beforeSendEvent",sq(e)),t.on("afterSendEvent",iq(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",(async(t,n)=>{var r;const o=e.getSessionId();null!=n&&n.includeReplay&&e.isEnabled()&&o&&null!==(r=t.contexts)&&void 0!==r&&r.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=o)})),t.on("openFeedbackWidget",(async()=>{await e.sendBufferedReplayOrFlush()})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n(e){let{entries:n}=e;n.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(w$(e,n))})),r.push(b$(kz(Tz,e)),_$(kz(Cz,e)),S$(kz(Rz,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{Aj.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Aj.removeEventListener("blur",this._handleWindowBlur),Aj.removeEventListener("focus",this._handleWindowFocus),Aj.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;Yz(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Az&&Nz.log("Document has become active, but session has expired")}_updateUserActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this._lastActivity=e}_updateSessionActivity(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now();this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:sH.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Ez).filter(
1Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(dq(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){var e;const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),null!==(e=this.eventBuffer)&&void 0!==e&&e.hasEvents&&(await async function(e){try{return Promise.all(dq(e,[Cq(Aj.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Dq({replayId:t,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:e,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=vE();if(t){const n=e instanceof Pq?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Az&&Nz.error("No session or eventBuffer found to flush.")}async _flush(){let{force:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Az&&Nz.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Az&&Nz.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Az&&Nz.log("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Vz(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(null!=t&&t.length&&e.some((e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e.target),r=t.join(",");return null==n?void 0:n.matches(r)})))return!1;const n=e.length,r=this._options.mutationLimit,o=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||o){const e=mz({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Uq(e,t){return[...e,...t].join(",")}const jq='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Bq=["content-length","content-type","accept"];let Hq=!1;class zq{constructor(){let{flushMinDelay:e=Dj,flushMaxDelay:t=Nj,minReplayDuration:n=Bj,maxReplayDuration:r=Hj,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:v=!0,networkRequestHeaders:y=[],networkResponseHeaders:_=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:E=[],ignore:x=[],maskFn:T,beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:R}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="Replay";const M=function(e){let{mask:t,unmask:n,block:r,unblock:o,ignore:i}=e;return{maskTextSelector:Uq(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Uq(n,[]),blockSelector:Uq(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
1([src])"]),unblockSelector:Uq(o,[]),ignoreSelector:Uq(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:k,unblock:E,ignore:x});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:T,maskInputFn:T,maskAttributeFn:(e,t,n)=>function(e){let{el:t,key:n,maskAttributes:r,maskAllText:o,privacyOptions:i,value:s}=e;return o?i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?s:r.includes(n)||"value"===n&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s:s}({maskAttributes:S,maskAllText:c,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,Hj),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:v,networkRequestHeaders:qq(y),networkResponseHeaders:qq(_),beforeAddRecordingEvent:I,beforeErrorSampling:C,onError:R,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${jq}`:jq),this._isInitialized&&DP())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Hq}set _isInitialized(e){Hq=e}afterAllSetup(e){DP()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){var e;if(null!==(e=this._replay)&&void 0!==e&&e.isEnabled())return this._replay.getSessionId()}getRecordingMode(){var e;if(null!==(e=this._replay)&&void 0!==e&&e.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=kx(n.replaysSessionSampleRate),i=kx(n.replaysOnErrorSampleRate);null==o&&null==i&&D_((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=o&&(r.sessionSampleRate=o);null!=i&&(r.errorSampleRate=i);return r}(this._initialOptions,e);this._replay=new $q({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function qq(e){return[...Bq,...e.map((e=>e.toLowerCase()))]}var Wq=Object.defineProperty,Vq=(e,t,n)=>((e,t,n)=>t in e?Wq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class Gq{constructor(){Vq(this,"idNodeMap",new Map),Vq(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;const n=null===(t=this.getMeta(e))||void 0===t?void 0:t.id;return null!=n?n:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Kq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Kq(e.parentNode,t,n,r+1):-1}function Jq(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}const Yq="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Xq={map:{},getId:()=>(console.error(Yq),-1),getNode:()=>(console.error(Yq),null),removeNodeFromMap(){console.error(Yq)},has:()=>(console.error(Yq),!1),reset(){console.error(Yq)}};function Zq(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window;const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){oW((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Zq(e,t,i||{},!0)}function Qq(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch(e){return()=>{}}}function eW(e,t,n,r,o){if(!e)return!1;const i=function(e){if(!e)return null;
1try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const s=Kq(i,Jq(t,n));let a=-1;return!(s<0)&&(r&&(a=Kq(i,Jq(null,r))),s>-1&&a<0||s<a)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Xq=new Proxy(Xq,{get:(e,t,n)=>("map"===t&&console.error(Yq),Reflect.get(e,t,n))})),Date.now().toString();const tW={};function nW(e){const t=tW[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return tW[e]=r.bind(window)}function rW(){return nW("requestAnimationFrame")(...arguments)}function oW(){return nW("setTimeout")(...arguments)}var iW=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(iW||{});let sW;const aW=e=>{if(!sW)return e;return function(){try{return e(...arguments)}catch(e){if(sW&&!0===sW(e))return()=>{};throw e}}};for(var cW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uW="undefined"==typeof Uint8Array?[]:new Uint8Array(256),lW=0;lW<64;lW++)uW[cW.charCodeAt(lW)]=lW;const dW=new Map;const pW=(e,t,n)=>{if(!e||!mW(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=dW.get(e);return n||(n=new Map,dW.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function fW(e,t,n){if(e instanceof Array)return e.map((e=>fW(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){return{rr_type:e.constructor.name,base64:function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=cW[n[t]>>2],o+=cW[(3&n[t])<<4|n[t+1]>>4],o+=cW[(15&n[t+1])<<2|n[t+2]>>6],o+=cW[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e)}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[fW(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[fW(e.data,t,n),e.width,e.height]}}if(mW(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:pW(e,t,n)}}return e}const hW=(e,t,n)=>e.map((e=>fW(e,t,n))),mW=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function gW(e,t,n,r,o){const i=[];try{const s=Qq(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];if(!eW(this,t,n,r)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(a[0]&&"object"==typeof a[0]){const e=a[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...a])}}));i.push(s)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}function vW(e,t,n,r,o,i,s,a){const c=[],u=Object.getOwnPropertyNames(e);for(const s of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(s))try{if("function"!=typeof e[s])continue;const u=Qq(e,s,(function(e){return function(){for(var c=arguments.length,u=new Array(c),l=0;l<c;l++)u[l]=arguments[l];const d=e.apply(this,u);if(pW(d,a,this),"tagName"in this.canvas&&!eW(this.canvas,r,o,i)){const e=hW(u,a,this),r={type:t,property:s,args:e};n(this.canvas,r)}return d}}));c.push(u)}catch(r){const o=Zq(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});c.push(o)}return c}class yW{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:o,errorHandler:i}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(sW=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||aW((()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()}))()}reset(){var e;
1this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,null===(e=this.worker)||void 0===e||e.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:s}=this.options;if(!this.windowsSet.has(e)){if(s)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));aW((()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=gW(e,n,r,o,!0);this.restoreHandlers.push((()=>{t()}))}}))(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){null!=t&&t.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):rW((t=>this.takeSnapshot(t,!0,e)))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:i,height:s}=t;this.mutationCb({id:n,type:iW["2D"],commands:[{property:"clearRect",args:[0,0,i,s]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,s]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=n=>{this.takeSnapshot(n,!1),e=rW(t)};e=rW(t),this.restoreHandlers.push((()=>{e&&cancelAnimationFrame(e)}))}initCanvasMutationObserver(e,t,n,r){const o=gW(e,t,n,r,!1),i=function(e,t,n,r,o){const i=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const s=Qq(t.CanvasRenderingContext2D.prototype,a,(function(i){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return eW(this.canvas,n,r,o)||oW((()=>{const n=hW(c,t,this);e(this.canvas,{type:iW["2D"],property:a,args:n})}),0),i.apply(this,c)}}));i.push(s)}catch(n){const r=Zq(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:iW["2D"],property:a,args:[t],setter:!0})}});i.push(r)}return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o,i){const s=[];return s.push(...vW(t.WebGLRenderingContext.prototype,iW.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&s.push(...vW(t.WebGL2RenderingContext.prototype,iW.WebGL2,e,n,r,o,0,t)),()=>
1{s.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push((()=>{o(),i(),s()}))}getCanvasElements(e,t,n){const r=[],o=o=>{o.querySelectorAll("canvas").forEach((o=>{eW(o,e,t,n)||r.push(o)}))};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch(e){}n&&o(n)}for(const e of this.shadowDoms){const t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){const{sampling:r,blockClass:o,blockSelector:i,unblockSelector:s,dataURLOptions:a,maxCanvasSize:c}=this.options,u=1e3/("all"===r?2:r||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<u)return!1;this.lastSnapshotTime=e;return(n?[n]:this.getCanvasElements(o,i,s)).forEach((e=>{const n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){var r;const t=e.getContext(e.__context);!1===(null==t||null===(r=t.getContextAttributes())||void 0===r?void 0:r.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then((t=>{var r;null===(r=this.worker)||void 0===r||r.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:a,maxCanvasSize:c},[t])})).catch((e=>{aW((()=>{throw this.snapshotInProgressMap.delete(n),e}))()}))}})),!0}startPendingCanvasMutationFlusher(){rW((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,rW(e)};rW(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),rW((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],(e=>2*e))[0]){var _W;const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null===(_W=e.contentWindow)||void 0===_W?void 0:_W.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var bW;new Gq,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(bW||(bW={}));const SW={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},wW=1280,kW=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,wW):wW,n?Math.min(n,wW):wW]};let o;const i=new Promise((e=>o=e));return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new yW({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return o(r),r},...SW[e]||SW.medium}},async snapshot(e,t){(await i).snapshot(e,t)}}};function EW(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return((Xk()||performance.timeOrigin)+e)/1e3}const xW=new WeakMap,TW=new Map,IW={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function CW(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c}={...IW,...t},u="function"==typeof i?i:e=>!0,l=e=>function(e,t){const n=Tk();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch(e){return!1}const i=r.origin===o;return t?Ok(r.toString(),t)||i&&Ok(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?Ok(e,t):n}}(e,a),d={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=TW.get(e.span_id);t&&(e.timestamp=t/1e3,TW.delete(e.span_id))}})),e))),o&&function(e){const t="fetch-body-resolved";X_(t,e),Z_(t,(()=>RP(MP)))}((e=>{if(e.response){const t=xW.get(e.response);t&&e.endTimestamp&&TW.set(t,e.endTimestamp)}})),CP((e=>{const t=qL(e,u,l,d,{propagateTraceparent:p});if(e.response&&e.fetchData.__span&&xW.set(e.response,e.fetchData.__span),t){const n=MW(e.fetchData.url),r=n?TO(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),s&&RW(t),null==c||c(t,{headers:e.headers})}}))),r&&fU((e=>{const t=function(e,t,n,r,o){const i=e.xhr,s=null==i?void 0:i[pU];if(!i||i.__sentry_own_request__||!s)return;const{url:a,method:c}=s,u=Yx()&&t(a);if(e.endTimestamp&&u){const e=i.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==s.status_code&&(FE(t,s.status_code),t.end(),delete r[e]))}const l=MW(a),d=TO(l||a),p=IO(a),f=!!qx(),h=u&&f?AT({name:`${c} ${p}`,attributes:{url:a,type:"xhr","http.method":c,"http.url":l,"server.address":null==d?void 0:d.host,[kE]:"auto.http.browser",[wE]:"http.client",...(null==d?void 0:d.search)&&{"http.query":null==d?void 0:d.search},...(null==d?void 0:d.hash)&&{"http.fragment":null==d?void 0:d.hash}}}):new rT;i.__sentry_xhr_span_id__=h.spanContext().spanId,r[i.__sentry_xhr_span_id__]=h,n(a)&&function(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:i}=LO({span:t,propagateTraceparent:n});r&&function(e,t,n,r){var o;const i=null===(o=e.__sentry_xhr_v3__)||void 0===o?void 0:o.request_headers;if(null!=i&&i["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),!r||null!=i&&i.traceparent||e.setRequestHeader("traceparent",r),n){const t=null==i?void 0:i.baggage;t&&t.split(",").some((e=>e.trim().startsWith("sentry-")))||e.setRequestHeader("baggage",n)}}catch(e){}}(e,r,o,i)}(i,Yx()&&f?h:void 0,o);const m=vE();m&&m.emit("beforeOutgoingRequestSpan",h,e);return h}(e,u,l,d,p);if(t){let r;s&&RW(t);try{var n;r=new Headers(null===(n=e.xhr.__sentry_xhr_v3__)||void 0===n?void 0:n.request_headers)}catch(e){}null==c||c(t,{headers:r})}}))}function RW(e){const{url:t}=Nx(e).data;if(!t||"string"!=typeof t)return;const n=w$("resource",(r=>{let{entries:o}=r;o.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const t=[];if(null!=e.nextHopProtocol){const{name:n,version:r}=N$(e.nextHopProtocol);t.push(["network.protocol.version",r],["network.protocol.name",n])}return Xk()?[...t,["http.request.redirect_start",EW(e.redirectStart)],["http.request.fetch_start",EW(e.fetchStart)],["http.request.domain_lookup_start",EW(e.domainLookupStart)],["http.request.domain_lookup_end",EW(e.domainLookupEnd)],["http.request.connect_start",EW(e.connectStart)],["http.request.secure_connection_start",EW(e.secureConnectionStart)],["http.request.connection_end",EW(e.connectEnd)],["http.request.request_start",EW(e.requestStart)],["http.request.response_start",EW(e.responseStart)],["http.request.response_end",EW(e.responseEnd)]]:t}(r);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function MW(e){try{return new URL(e,zN.location.origin).href}catch(e){return}}const AW=3600,OW="sentry_previous_trace",LW="sentry.previous_trace";function PW(e,t){let{linkPreviousTrace:n,consistentTraceSampling:r}=t;const o="session-storage"===n;let i=o?function(){try{var e;const t=null===(e=zN.sessionStorage)||void 0===e?void 0:e.getItem(OW);return JSON.parse(t)}catch(e){return}}():void 0;e.on("spanStart",(e=>{if(zx(e)!==e)return;const t=fE().getPropagationContext();i=function(e,t,n){const r=Nx(t);function o(){try{var e,t,o;return null!==(e=Number(null===(t=n.dsc)||void 0===t?void 0:t.sample_rate))&&void 0!==e?e:Number(null===(o=r.data)||void 0===o?void 0:o[bE])}catch(e){return 0}}const i={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:o(),sampleRand:n.sampleRand};if(!e)return i;const s=e.spanContext;if(s.traceId===r.trace_id)return e;Date.now()/1e3-e.startTimestamp<=AW&&(HU&&U_.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[OE]:"previous_trace"}}),t.setAttribute(LW,`${s.traceId}-${s.spanId}-${DW(s)?1:0}`));return i}(i,e,t),o&&function(e){try{zN.sessionStorage.setItem(OW,JSON.stringify(e))}catch(e){HU&&U_.warn("Could not store previous trace in sessionStorage",e)}}(i)}));let s=!0;r&&e.on("beforeSampling",(e=>{if(!i)return;const t=fE(),n=t.getPropagationContext();s&&n.parentSpanId?s=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(DW(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=DW(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[SE]:i.sampleRate})}))}function DW(e){return 1===e.traceFlags}const NW={...BT,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
1dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...IW};function FW(e,t,n){e.emit("startPageLoadSpan",t,n),fE().setTransactionName(t.name);const r=BW(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function $W(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=fE();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...GN(),url:r}}),BW(e)}function UW(e){const t=zN.document,n=null==t?void 0:t.querySelector(`meta[name=${e}]`);return(null==n?void 0:n.getAttribute("content"))||void 0}const jW="_sentry_idleSpan";function BW(e){return e[jW]}function HW(e,t){Pk(e,jW,t)}const zW=1.5;function qW(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function WW(e){return qW(e.getAllKeys())}function VW(e){let t;function n(){return null==t&&(t=function(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=qW(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=await fT(t);await function(e,t,n){return e((e=>WW(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),qW(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},unshift:async t=>{try{const r=await fT(t);await function(e,t,n){return e((e=>WW(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),qW(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch(e){}},shift:async()=>{try{const e=await function(e){return e((e=>WW(e).then((t=>{const n=t[0];if(null!=n)return qW(e.get(n)).then((t=>(e.delete(n),qW(e.transaction).then((()=>t)))))}))))}(n());if(e)return hT(e)}catch(e){}}}}var GW;const KW=1e6,JW=String(0),YW="main",XW=zN.navigator;let ZW="",QW="",eV="",tV=(null==XW?void 0:XW.userAgent)||"",nV="";const rV=(null==XW?void 0:XW.language)||(null==XW||null===(GW=XW.languages)||void 0===GW?void 0:GW[0])||"";const oV=null==XW?void 0:XW.userAgentData;function iV(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[JW]:{name:YW}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,s=Xk(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:s||0,c=a-(s||a);return e.samples.forEach(((o,s)=>{if(void 0===o.stackId)return void 0===t&&(t=n,r.stacks[t]=[],n++),void(r.samples[s]={elapsed_since_start_ns:((o.timestamp+c-i)*KW).toFixed(0),stack_id:t,thread_id:JW});let a=e.stacks[o.stackId];const u=[];for(;a;){u.push(a.frameId);const t=e.frames[a.frameId];t&&void 0===r.frames[a.frameId]&&(r.frames[a.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),a=void 0===a.parentId?void 0:e.stacks[a.parentId]}const l={elapsed_since_start_ns:((o.timestamp+c-i)*KW).toFixed(0),stack_id:n,thread_id:JW};r.stacks[n]=u,r.samples[s]=l,n++})),r}(e):e}function sV(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){var t;const n=null===(t=e.contexts)||void 0===t||null===(t=t.trace)||void 0===t?void 0:t.trace_id;return"string"==typeof n&&32!==n.length&&HU&&U_.log(`[Profiling] Invalid traceId: ${n} on profiled event`),"string"!=typeof n?"":n}(r),i=iV(n),s=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*Yk()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*Yk();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Xx,runtime:{name:"javascript",version:zN.navigator.userAgent},os:{name:ZW,version:QW,build_number:tV},device:{locale:rV,model:nV,manufacturer:tV,architecture:eV,is_emulator:!1},debug_meta:{images:cV(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||jk(),trace_id:o,active_thread_id:JW,relative_start_ns:"0",relative_end_ns:(1e6*(a-s)).toFixed(0)}]}}function aV(e){return"pageload"===Nx(e).op}function cV(e){const t=vE(),n=null==t?void 0:t.getOptions(),r=null==n?void 0:n.stackParser;return r?function(e,t){const n=rI(e);if(!n)return[];const r=[];for(const e of t)e&&n[e]&&r.push({type:"sourcemap",code_file:e,debug_id:n[e]});return r}(r,e):[]}(function(e){return"object"==typeof e&&null!==e&&"getHighEntropyValues"in e})(oV)&&oV.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{var t;if(ZW=e.platform||"",eV=e.architecture||"",nV=e.model||"",QW=e.platformVersion||"",null!==(t=e.fullVersionList)&&void 0!==t&&t.length){const t=e.fullVersionList[e.fullVersionList.length-1];tV=`${t.brand} ${t.version}`}}
1)).catch((e=>{}));let uV=!1;const lV=3e4;function dV(e){if(uV)return HU&&U_.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return HU&&U_.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=vE(),n=null==t?void 0:t.getOptions();if(!n)return HU&&U_.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;if(!("number"!=typeof(o=r)&&"boolean"!=typeof o||"number"==typeof o&&isNaN(o)?(HU&&U_.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!0===o||!1===o||!(o<0||o>1)||(HU&&U_.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${o}.`),0)))return HU&&U_.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;var o;if(!r)return HU&&U_.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===r||Math.random()<r)||(HU&&U_.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1)}function pV(e,t,n,r){return function(e){return e.samples.length<2?(HU&&U_.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(HU&&U_.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?sV(e,t,n,r):null}const fV=new Map;function hV(e){const t=fV.get(e);return t&&fV.delete(e),t}function mV(e){let t;aV(e)&&(t=1e3*Yk());const n=function(){const e=zN.Profiler;if("function"!=typeof e)return void(HU&&U_.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(lV/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){HU&&(U_.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),U_.log("[Profiling] Disabling profiling for current user session.")),uV=!0}}();if(!n)return;HU&&U_.log(`[Profiling] started profiling span: ${Nx(e).description}`);const r=jk();async function o(){if(e&&n)return n.stop().then((t=>{i&&(zN.clearTimeout(i),i=void 0),HU&&U_.log(`[Profiling] stopped profiling of span: ${Nx(e).description}`),t?function(e,t){if(fV.set(e,t),fV.size>30){const e=fV.keys().next().value;fV.delete(e)}}(r,t):HU&&U_.log(`[Profiling] profiler returned null profile for: ${Nx(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{HU&&U_.log("[Profiling] error while stopping profiler:",e)}))}fE().setContext("profile",{profile_id:r,start_timestamp:t});let i=zN.setTimeout((()=>{HU&&U_.log("[Profiling] max profile duration elapsed, stopping profiling for:",Nx(e).description),o()}),lV);const s=e.end.bind(e);e.end=function(){return e?(o().then((()=>{s()}),(()=>{s()})),e):s()}}const gV=()=>({name:"BrowserProfiling",setup(e){const t=qx(),n=t&&zx(t);n&&aV(n)&&dV(n)&&mV(n),e.on("spanStart",(e=>{e===zx(e)&&dV(e)&&mV(e)})),e.on("beforeEnvelope",(e=>{if(!fV.size)return;const t=function(e){const t=[];return lT(e,((e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){var r;const o=e[n];null!=o&&null!==(r=o.contexts)&&void 0!==r&&null!==(r=r.profile)&&void 0!==r&&r.profile_id&&t.push(e[n])}})),t}(e);if(!t.length)return;const n=[];for(const e of t){var r,o;const t=null==e?void 0:e.contexts,i=null==t||null===(r=t.profile)||void 0===r?void 0:r.profile_id,s=null==t||null===(o=t.profile)||void 0===o?void 0:o.start_timestamp;if("string"!=typeof i){HU&&U_.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!i){HU&&U_.log("[Profiling] cannot find profile for a span without a profile context");continue}null!=t&&t.profile&&delete t.profile;const a=hV(i);if(!a){HU&&U_.log(`[Profiling] Could not retrieve profile for span: ${i}`);continue}const c=pV(i,s,a,e);c&&n.push(c)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}
1(e,n)}))}});const vV=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{HU&&U_.log("Using Sidecar URL",e)},processEvent:e=>function(e){var t;return Boolean("transaction"===e.type&&e.spans&&(null===(t=e.contexts)||void 0===t?void 0:t.trace)&&"ui.action.click"===e.contexts.trace.op&&e.spans.some((e=>{let{description:t}=e;return null==t?void 0:t.includes("#sentry-spotlight")})))}(e)?null:e,afterAllSetup:t=>{!function(e,t){const n=uU("fetch");let r=0;e.on("beforeEnvelope",(e=>{r>3?U_.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:fT(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then((e=>{e.status>=200&&e.status<400&&(r=0)}),(e=>{r++,U_.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)}))}))}(t,e)}}};const yV=()=>({name:"LaunchDarkly",processEvent:(e,t,n)=>jL(e)});const _V=()=>
1({name:"OpenFeature",processEvent:(e,t,n)=>jL(e)});const bV=e=>{let{featureFlagClientClass:t}=e;return{name:"Unleash",setupOnce(){Lk(t.prototype,"isEnabled",SV)},processEvent:(e,t,n)=>jL(e)}};function SV(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n[0],i=e.apply(this,n);return"string"==typeof o&&"boolean"==typeof i?(BL(o,i),HL(o,i)):HU&&U_.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${o} (${typeof o}), result: ${i} (${typeof i})`),i}}const wV=e=>{let{featureFlagClient:t}=e;return{name:"Statsig",setup(e){t.on("gate_evaluation",(e=>{BL(e.gate.name,e.gate.value),HL(e.gate.name,e.gate.value)}))},processEvent:(e,t,n)=>jL(e)}};const kV=e=>{let{worker:t}=e;return{name:"WebWorker",setupOnce:()=>{(Array.isArray(t)?t:[t]).forEach((e=>EV(e)))},addWorker:e=>EV(e)}};function EV(e){e.addEventListener("message",(e=>{var t;gk(t=e.data)&&!0===t._sentryMessage&&"_sentryDebugIds"in t&&(gk(t._sentryDebugIds)||void 0===t._sentryDebugIds)&&(e.stopImmediatePropagation(),HU&&U_.log("Sentry debugId web worker message received",e.data),zN._sentryDebugIds={...e.data._sentryDebugIds,...zN._sentryDebugIds})}))}var xV=Object.freeze({__proto__:null,BrowserClient:hF,OpenFeatureIntegrationHook:class{after(e,t){BL(t.flagKey,t.value),HL(t.flagKey,t.value)}error(e,t,n){BL(e.flagKey,e.defaultValue),HL(e.flagKey,e.defaultValue)}},SDK_VERSION:C_,SEMANTIC_ATTRIBUTE_SENTRY_OP:wE,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:kE,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:bE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:_E,Scope:sE,WINDOW:zN,addBreadcrumb:DO,addEventProcessor:hI,addIntegration:zC,breadcrumbsIntegration:qU,browserApiErrorsIntegration:VU,browserProfilingIntegration:gV,browserSessionIntegration:YU,browserTracingIntegration:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={name:void 0,source:void 0},n=zN.document,{enableInp:r,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:s,_experiments:{enableInteractions:a,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:u},beforeStartSpan:l,idleTimeout:d,finalTimeout:p,childSpanTimeout:f,markBackgroundSpan:h,traceFetch:m,traceXHR:g,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:y,enableHTTPTimings:_,ignoreResourceSpans:b,ignorePerformanceApiSpans:S,instrumentPageLoad:w,instrumentNavigation:k,detectRedirects:E,linkPreviousTrace:x,consistentTraceSampling:T,onRequestSpanStart:I}={...NW,...e};let C,R;function M(e,r){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i="pageload"===r.op,s=r.name,a=l?l(r):r,h=a.attributes||{};if(s!==a.name&&(h[_E]="custom",a.attributes=h),!o){const e=Gk();return void AT({...a,startTime:e}).end(e)}t.name=a.name,t.source=h[_E];const m=VT(a,{idleTimeout:d,finalTimeout:p,childSpanTimeout:f,disableAutoFinish:i,beforeSpanEnd:t=>{var n;null===(n=C)||void 0===n||n(),K$(t,{recordClsOnPageloadSpan:!c,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:b,ignorePerformanceApiSpans:S}),HW(e,void 0);const r=fE(),o=r.getPropagationContext();r.setPropagationContext({...o,traceId:m.spanContext().traceId,sampled:Fx(m),dsc:nT(t)})}});function g(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",m)}HW(e,m),i&&n&&(n.addEventListener("readystatechange",(()=>{g()})),g())}return{name:"BrowserTracing",setup(e){if(Gx(),C=G$({recordClsStandaloneSpans:c||!1,recordLcpStandaloneSpans:u||!1,client:e}),r&&bU(),o&&P$()&&Xk()&&w$("element",X$),s&&I_.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((e=>{const t=qx();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=D$(Xk()+n.startTime),{start_timestamp:r,op:o}=Nx(t);if("navigation"===o&&r&&e<r)continue;const i=D$(n.duration),s={[kE]:"auto.ui.browser.metrics"},a=n.scripts[0],{invoker:c,invokerType:u,sourceURL:l,sourceFunctionName:d,sourceCharPosition:p}=a;s["browser.script.invoker"]=c,s["browser.script.invoker_type"]=u,l&&(s["code.filepath"]=l),d&&(s["code.function"]=d),-1!==p&&(s["browser.script.source_char_position"]=p),O$(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}})).observe({type:"long-animation-frame",buffered:!0}):i&&w$("longtask",(e=>{let{entries:t}=e;const n=qx();if(!n)return;const{op:r,start_timestamp:o}=Nx(n);for(const e of t){const t=D$(Xk()+e.startTime),i=D$(e.duration);"navigation"===r&&o&&t<o||O$(n,t,t+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[kE]:"auto.ui.browser.metrics"}})}})),a&&w$("event",(e=>{let{entries:t}=e;const n=qx();if(n)for(const e of t)if("click"===e.name){const t=D$(Xk()+e.startTime),r=D$(e.duration),o={name:Ek(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[kE]:"auto.ui.browser.metrics"}},i=Ik(e.target);i&&(o.attributes["ui.component_name"]=i),O$(n,t,t+r,o)}})),E&&n){const e=()=>{R=Yk()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=BW(e);t&&!Nx(t).timestamp&&(HU&&U_.log(`[Tracing] Finishing current active span with op: ${Nx(t).op}`),t.setAttribute(EE,"cancelled"),t.end())}e.on("startNavigationSpan",((n,r)=>{if(vE()!==e)return;if(null!=r&&r.isRedirect)return HU&&U_.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void M(e,{op:"navigation.redirect",...n},!1);R=void 0,t(),hE().setPropagationContext({traceId:tE(),sampleRand:Math.random()});const o=fE();o.setPropagationContext({traceId:tE(),sampleRand:Math.random()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),M(e,{op:"navigation",...n})})),e.on("startPageLoadSpan",(function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(vE()!==e)return;t();const o=Tx(r.sentryTrace||UW("sentry-trace"),r.baggage||UW("baggage")),i=fE();i.setPropagationContext(o),i.setSDKProcessingMetadata({normalizedRequest:GN()}),M(e,{op:"pageload",...n})}))},afterAllSetup(e){let n=Tk();
1if("off"!==x&&PW(e,{linkPreviousTrace:x,consistentTraceSampling:T}),zN.location){if(w){const t=Xk();FW(e,{name:zN.location.pathname,startTime:t?t/1e3:void 0,attributes:{[_E]:"url",[kE]:"auto.pageload.browser"}})}k&&sU((t=>{var r;let{to:o,from:i}=t;if(void 0===i&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(o)))return void(n=void 0);n=void 0;const s=EO(o),a=BW(e),c=a&&E&&function(e,t){const n=Nx(e),r=Gk(),o=n.start_timestamp;if(r-o>zW)return!1;if(t&&r-t<=zW)return!1;return!0}(a,R);$W(e,{name:(null==s?void 0:s.pathname)||zN.location.pathname,attributes:{[_E]:"url",[kE]:"auto.navigation.browser"}},{url:o,isRedirect:c})}))}h&&(zN.document?zN.document.addEventListener("visibilitychange",(()=>{const e=qx();if(!e)return;const t=zx(e);if(zN.document.hidden&&t){const e="cancelled",{op:n,status:r}=Nx(t);HU&&U_.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:DE,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):HU&&U_.warn("[Tracing] Could not set up background tab detection due to lack of global document")),a&&function(e,t,n,r,o){const i=zN.document;let s;const a=()=>{const i="ui.action.click",a=BW(e);if(a){const e=Nx(a).op;if(["navigation","pageload"].includes(e))return void(HU&&U_.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(EE,"interactionInterrupted"),s.end(),s=void 0),o.name?s=VT({name:o.name,op:i,attributes:{[_E]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):HU&&U_.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};i&&addEventListener("click",a,{capture:!0})}(e,d,p,f,t),r&&function(){const e=e=>{let{entries:t}=e;const n=qx(),r=n&&zx(n);t.forEach((e=>{if(!function(e){return"duration"in e}(e)||!r)return;const t=e.interactionId;if(null!=t&&!_U.has(t)){if(yU.length>10){const e=yU.shift();_U.delete(e)}yU.push(t),_U.set(t,r)}}))};w$("event",e),w$("first-input",e)}(),CW(e,{traceFetch:m,traceXHR:g,trackFetchStreamPerformance:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:_,onRequestSpanStart:I})}}},buildLaunchDarklyFlagUsedHandler:function(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{BL(e,t.value),HL(e,t.value)}}},captureConsoleIntegration:aL,captureEvent:uI,captureException:aI,captureFeedback:GL,captureMessage:cI,captureSession:yI,chromeStackLineParser:RU,close:async function(e){const t=vE();return t?t.close(e):(x_&&U_.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},consoleLoggingIntegration:JL,contextLinesIntegration:gj,continueTrace:(e,t)=>{const n=pE(R_());if(n.continueTrace)return n.continueTrace(e,t);const{sentryTrace:r,baggage:o}=e,i=vE(),s=fx(o);return i&&!function(e,t){const n=Sx(e);return t&&n&&t!==n?(U_.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):!e.getOptions().strictTraceContinuation||!(t&&!n||!t&&n)||(U_.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}(i,null==s?void 0:s.org_id)?PT(t):gE((e=>{const n=Tx(r,o);return e.setPropagationContext(n),t()}))},createTransport:yR,createUserFeedbackEnvelope:function(e,t){let{metadata:n,tunnel:r,dsn:o}=t;const i={event_id:e.event_id,sent_at:(new Date).toISOString(),...(null==n?void 0:n.sdk)&&{sdk:{name:n.sdk.name,version:n.sdk.version}},...!!r&&!!o&&{dsn:yx(o)}},s=function(e){return[{type:"user_report"},e]}(e);return cT(i,[s])},dedupeIntegration:cL,defaultRequestInstrumentationOptions:IW,defaultStackLineParsers:UU,defaultStackParser:jU,diagnoseSdkConnectivity:async function(){const e=vE();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await LT((()=>fetch("https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7",{body:"{}",method:"POST",mode:"cors",credentials:"omit"})))}catch(e){return"sentry-unreachable"}},endSession:gI,eventFiltersIntegration:qO,eventFromException:uF,eventFromMessage:lF,exceptionFromError:tF,extraErrorDataIntegration:pL,featureFlagsIntegration:zL,feedbackAsyncIntegration:XN,feedbackIntegration:ZN,feedbackSyncIntegration:ZN,flush:async function(e){const t=vE();return t?t.flush(e):(x_&&U_.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},forceLoad:function(){},functionToStringIntegration:$O,geckoStackLineParser:OU,getActiveSpan:qx,getClient:vE,getCurrentScope:fE,getDefaultIntegrations:rj,getFeedback:function(){const e=vE();return null==e?void 0:e.getIntegrationByName("Feedback")},getGlobalScope:mE,getIsolationScope:hE,getReplay:function(){const e=vE();return null==e?void 0:e.getIntegrationByName("Replay")}
1,getRootSpan:zx,getSpanDescendants:Hx,getSpanStatusFromHttpCode:NE,getTraceData:LO,globalHandlersIntegration:XU,graphqlClientIntegration:bj,httpClientIntegration:cj,httpContextIntegration:ej,inboundFiltersIntegration:WO,init:oj,instrumentOutgoingRequests:CW,instrumentSupabaseClient:RL,isEnabled:fI,isInitialized:function(){return!!vE()},lastEventId:pI,launchDarklyIntegration:yV,lazyLoadIntegration:YN,linkedErrorsIntegration:tj,logger:eF,makeBrowserOfflineTransport:function(){return function(e){return t=>{const n=e({...t,createStore:VW});return zN.addEventListener("online",(async e=>{await n.flush()})),n}}(MR(arguments.length>0&&void 0!==arguments[0]?arguments[0]:kU))},makeFetchTransport:kU,makeMultiplexedTransport:function(e,t){return n=>{const r=e(n),o=new Map;function i(t,r){const i=r?`${t}:${r}`:t;let s=o.get(i);if(!s){const a=_x(t);if(!a)return;const c=$C(a,n.tunnel);s=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=AR(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,r)({...n,url:c}):e({...n,url:c}),o.set(i,s)}return[t,s]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=null!=t&&t.length?t:["event"];return AR(e,n)}}).map((e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release))).filter((e=>!!e)),o=n.length?n:[["",r]];return(await Promise.all(o.map((t=>{let[n,r]=t;return r.send(function(e,t){return cT(t?{...e[0],dsn:t}:e[0],e[1])}(e,n))}))))[0]},flush:async function(e){const t=[...o.values(),r];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}},moduleMetadataIntegration:rL,onLoad:function(e){e()},openFeatureIntegration:_V,opera10StackLineParser:NU,opera11StackLineParser:$U,parameterize:MO,registerSpanErrorInstrumentation:Gx,registerWebWorker:function(e){var t;let{self:n}=e;n.postMessage({_sentryMessage:!0,_sentryDebugIds:null!==(t=n._sentryDebugIds)&&void 0!==t?t:void 0})},replayCanvasIntegration:kW,replayIntegration:e=>new zq(e),reportingObserverIntegration:aj,rewriteFramesIntegration:yL,sendFeedback:oD,setContext:lI,setCurrentClient:lR,setExtra:function(e,t){hE().setExtra(e,t)},setExtras:function(e){hE().setExtras(e)},setHttpStatus:FE,setMeasurement:kT,setTag:dI,setTags:function(e){hE().setTags(e)},setUser:function(e){hE().setUser(e)},showReportDialog:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=zN.document,n=(null==t?void 0:t.head)||(null==t?void 0:t.body);if(!n)return void(HU&&U_.error("[showReportDialog] Global document not defined"));const r=fE(),o=vE(),i=null==o?void 0:o.getDsn();if(!i)return void(HU&&U_.error("[showReportDialog] DSN not configured"));const s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||pI()},a=zN.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(e,t){const n=wx(e);if(!n)return"";const r=`${FC(n)}embed/error-page/`;let o=`dsn=${yx(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(o+=`&name=${encodeURIComponent(e.name)}`),e.email&&(o+=`&email=${encodeURIComponent(e.email)}`)}else o+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${o}`}(i,s);const{onLoad:c,onClose:u}=s;if(c&&(a.onload=c),u){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{zN.removeEventListener("message",e)}};zN.addEventListener("message",e)}n.appendChild(a)},spanToBaggageHeader:function(e){return hx(nT(e))},spanToJSON:Nx,spanToTraceHeader:Ox,spotlightBrowserIntegration:vV,startBrowserTracingNavigationSpan:$W,startBrowserTracingPageLoadSpan:FW,startInactiveSpan:AT,startNewTrace:PT,startSession:mI,startSpan:MT,startSpanManual:function(e,t){const n=FT();if(n.startSpanManual)return n.startSpanManual(e,t);const r=NT(e),{forceTransaction:o,parentSpan:i,scope:s}=e;return gE(null==s?void 0:s.clone(),(()=>jT(i)((()=>{const n=fE(),s=UT(n,i),a=e.onlyIfParent&&!s?new rT:DT({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return oE(n,a),CT((()=>t(a,(()=>a.end()))),(()=>{const{status:e}=Nx(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:DE,message:"internal_error"})}))}))))},statsigIntegration:wV,supabaseIntegration:ML,suppressTracing:LT,thirdPartyErrorFilterIntegration:DL,unleashIntegration:bV,updateSpanName:function(e,t){e.updateName(t),e.setAttributes({[_E]:"custom",[IE]:t})},webWorkerIntegration:kV,winjsStackLineParser:PU,withActiveSpan:OT,withIsolationScope:function(){const e=pE(R_());for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(2===n.length){const[t,r]=n;return t?e.withSetIsolationScope(t,r):e.withIsolationScope(r)}return e.withIsolationScope(n[0])},withScope:gE,zodErrorsIntegration:PL});oj({dsn:document.getElementById("sentry-config").dataset.dsn}),window.addEventListener("unhandledrejection",(function(e){if(e.reason instanceof Error)aI(e.reason);else{let t;try{t=JSON.stringify(e.reason)}catch(n){t=""+e.reason}cI("UNHANDLED PROMISE REJECTION: "+t)}})),$j.readyException=function(e){aI(e),console.error(e)};const TV=navigator.userAgent.match(/\bsys=(\w+)_([.\d]+)/),IV=navigator.userAgent.match(/\bapp=(\w+)_([.\d]+)/),CV=navigator.userAgent.match(/\bdeviceMfr=(\w+)/);return TV&&(dI("app_platform",TV[1]),dI("app_platform_version",TV.slice(1).join(" "))),IV&&(dI("app_name",IV[1]),dI("app_name_version",IV.slice(1).join(" "))),CV&&dI("device_mfr",CV[1]),xV}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.