PageSourceSearch

https://silvesterfeiern.com/js/main.js?id=9e909c8081750bd4ff108fb2beffef26

js silvesterfeiern.com collected 2026-10-09 05:14:07 UTC 491,072 bytes, 3 lines download raw bytes

1/*! For license information please see main.js.LICENSE.txt */
2(()=>{var e={1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},2012:(e,t,n)=>{"use strict";var r=n(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},2488:(e,t,n)=>{window._=n(2543),window.axios=n(2505),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.axios.defaults.headers.common["X-CSRF-TOKEN"]=document.querySelector('meta[name="csrf-token"]').getAttribute("content"),window.axios.defaults.withCredentials=!0},2505:(e,t,n)=>{e.exports=n(8015)},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",s="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,d=128,p=256,f=1/0,h=9007199254740991,m=NaN,g=4294967295,_=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",p]],y="[object Arguments]",v="[object Array]",b="[object Boolean]",S="[object Date]",w="[object Error]",k="[object Function]",x="[object GeneratorFunction]",E="[object Map]",C="[object Number]",T="[object Object]",I="[object Promise]",M="[object RegExp]",R="[object Set]",A="[object String]",O="[object Symbol]",P="[object WeakMap]",L="[object ArrayBuffer]",D="[object DataView]",N="[object Float32Array]",j="[object Float64Array]",$="[object Int8Array]",F="[object Int16Array]",B="[object Int32Array]",U="[object Uint8Array]",z="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,J=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),se=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,_e=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,554 bytes, line 2
27f]/g,we=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ae="['’]",Oe="["+xe+"]",Pe="["+Re+"]",Le="["+Ee+"]",De="\\d+",Ne="["+Ce+"]",je="["+Te+"]",$e="[^"+xe+Re+De+Ce+Te+Ie+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^"+xe+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Ie+"]",We="\\u200d",He="(?:"+je+"|"+$e+")",Ve="(?:"+qe+"|"+$e+")",Je="(?:['’](?:d|ll|m|re|s|t|ve))?",Ge="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Le+"|"+Fe+")"+"?",Ye="["+Me+"]?",Xe=Ye+Ke+("(?:"+We+"(?:"+[Be,Ue,ze].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Ne,Ue,ze].join("|")+")"+Xe,Qe="(?:"+[Be+Le+"?",Le,Ue,ze,Oe].join("|")+")",et=RegExp(Ae,"g"),tt=RegExp(Le,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Qe+Xe,"g"),rt=RegExp([qe+"?"+je+"+"+Je+"(?="+[Pe,qe,"$"].join("|")+")",Ve+"+"+Ge+"(?="+[Pe,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+Je,qe+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),ot=RegExp("["+We+xe+Ee+Me+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[N]=ct[j]=ct[$]=ct[F]=ct[B]=ct[U]=ct[z]=ct[q]=ct[W]=!0,ct[y]=ct[v]=ct[L]=ct[b]=ct[D]=ct[S]=ct[w]=ct[k]=ct[E]=ct[C]=ct[T]=ct[M]=ct[R]=ct[A]=ct[P]=!1;var ut={};ut[y]=ut[v]=ut[L]=ut[D]=ut[b]=ut[S]=ut[N]=ut[j]=ut[$]=ut[F]=ut[B]=ut[E]=ut[C]=ut[T]=ut[M]=ut[R]=ut[A]=ut[O]=ut[U]=ut[z]=ut[q]=ut[W]=!0,ut[w]=ut[k]=ut[P]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,pt=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||ht||Function("return this")(),gt=t&&!t.nodeType&&t,_t=gt&&e&&!e.nodeType&&e,yt=_t&&_t.exports===gt,vt=yt&&ft.process,bt=function(){try{var e=_t&&_t.require&&_t.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),St=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,kt=bt&&bt.isMap,xt=bt&&bt.isRegExp,Et=bt&&bt.isSet,Ct=bt&&bt.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Ot(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Pt(e,t){return!!(null==e?0:e.length)&&qt(e,t,0)>-1}function Lt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Nt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function jt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $t(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Jt("length");function Ut(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function zt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function qt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):zt(e,Ht,n)}function Wt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:m}function Jt(e){return function(t){return null==t?o:t[e]}}function Gt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Zt(e){return e?e.slice(0,gn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function en(e,t){return Dt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var on=Gt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),sn=Gt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+lt[e]}function cn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var _n=Gt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n,r=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,st))).Array,ae=t.Date,xe=t.Error,Ee=t.Fu
vendor: 9,337 bytes, line 2
2nction,Ce=t.Math,Te=t.Object,Ie=t.RegExp,Me=t.String,Re=t.TypeError,Ae=r.prototype,Oe=Ee.prototype,Pe=Te.prototype,Le=t["__core-js_shared__"],De=Oe.toString,Ne=Pe.hasOwnProperty,je=0,$e=(n=/[^.]+$/.exec(Le&&Le.keys&&Le.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=Pe.toString,Be=De.call(Te),Ue=mt._,ze=Ie("^"+De.call(Ne).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=yt?t.Buffer:o,We=t.Symbol,He=t.Uint8Array,Ve=qe?qe.allocUnsafe:o,Je=ln(Te.getPrototypeOf,Te),Ge=Te.create,Ke=Pe.propertyIsEnumerable,Ye=Ae.splice,Xe=We?We.isConcatSpreadable:o,Ze=We?We.iterator:o,Qe=We?We.toStringTag:o,nt=function(){try{var e=fi(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==mt.Date.now&&ae.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,ht=Ce.ceil,gt=Ce.floor,_t=Te.getOwnPropertySymbols,vt=qe?qe.isBuffer:o,bt=t.isFinite,Bt=Ae.join,Gt=ln(Te.keys,Te),vn=Ce.max,bn=Ce.min,Sn=ae.now,wn=t.parseInt,kn=Ce.random,xn=Ae.reverse,En=fi(t,"DataView"),Cn=fi(t,"Map"),Tn=fi(t,"Promise"),In=fi(t,"Set"),Mn=fi(t,"WeakMap"),Rn=fi(Te,"create"),An=Mn&&new Mn,On={},Pn=Fi(En),Ln=Fi(Cn),Dn=Fi(Tn),Nn=Fi(In),jn=Fi(Mn),$n=We?We.prototype:o,Fn=$n?$n.valueOf:o,Bn=$n?$n.toString:o;function Un(e){if(na(e)&&!Hs(e)&&!(e instanceof Hn)){if(e instanceof Wn)return e;if(Ne.call(e,"__wrapped__"))return Bi(e)}return new Wn(e)}var zn=function(){function e(){}return function(t){if(!ta(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function qn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Jn(e);this.size=t.size}function Xn(e,t){var n=Hs(e),r=!n&&Ws(e),o=!n&&!r&&Ks(e),i=!n&&!r&&!o&&la(e),s=n||r||o||i,a=s?Xt(e.length,Me):[],c=a.length;for(var u in e)!t&&!Ne.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bi(u,c))||a.push(u);return a}function Zn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Qn(e,t){return Ni(Ao(e),cr(t,0,e.length))}function er(e){return Ni(Ao(e))}function tr(e,t,n){(n!==o&&!Us(e[t],n)||n===o&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];Ne.call(e,t)&&Us(r,n)&&(n!==o||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Us(e[n][0],t))return n;return-1}function or(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Oo(t,Oa(t),e)}function sr(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Ta(e,t[n]);return s}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,s){var a,c=1&t,u=2&t,l=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ta(e))return e;var d=Hs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return Ao(e,a)}else{var p=gi(e),f=p==k||p==x;if(Ks(e))return Eo(e,c);if(p==T||p==y||f&&!i){if(a=u||f?{}:yi(e),!c)return u?function(e,t){return Oo(e,mi(e),t)}(e,function(e,t){return e&&Oo(t,Pa(t),e)}(a,e)):function(e,t){return Oo(e,hi(e),t)}(e,ir(a,e))}else{if(!ut[p])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case L:return Co(e);case b:case S:return new r(+e);case D:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case j:case $:case F:case B:case U:case z:case q:case W:return To(e,n);case E:return new r;case C:case A:return new r(e);case M:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case R:return new r;case O:return o=e,Fn?Te(Fn.call(o)):{}}var o}(e,p,c)}}s||(s=new Yn);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(r){a.add(ur(r,t,n,r,e,s))})):ra(e)&&e.forEach((function(r,o){a.set(o,ur(r,t,n,o,e,s))}));var m=d?o:(l?u?si:ii:u?Pa:Oa)(e);return Mt(m||e,(function(r,o){m&&(r=e[o=r]),nr(a,o,ur(r,t,n,o,e,s))})),a}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Re(i);return Oi((function(){e.apply(o,n)}),t)}function pr(e,t,n,r){var o=-1,i=Pt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;n&&(t=Dt(t,Qt(n))),r?(i=Lt,s=!1):t.length>=200&&(i=tn,s=!1,t=new Kn(t));e:for(;++o<a;){var l=e[o],d=null==n?l:n(l);if(l=r||0!==l?l:0,s&&d==d){for(var p=u;p--;)if(t[p]===d)continue e;c.push(l)}else i(t,d,r)||c.push(l)}return c}Un.templateSettings={escape:Z,evaluate:Q,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=qn.prototype,Un.prototype.constructor=Un,Wn.prototype=zn(qn.prototype),Wn.prototype.constructor=Wn,Hn.prototype=zn(qn.prototype),Hn.prototype.constructor=Hn,Vn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Rn){var n=t[e];return n===s?o:n}return Ne.call(t,e)?t[e]:o},Vn.prototype.has=function(e){var t=this.__data__;return Rn?t[e]!==o:Ne.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Rn&&t===o?s:t,this},Jn.prototype.clear=function(){this.__data__=[],this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Jn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Jn.prototype.has=function(e){return rr(this.__data__,e)>-1},Jn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Cn||Jn),string:new Vn}},Gn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return di(this,e).get(e)},Gn.prototype.has=function(e){return di(this,e).has(e)},Gn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,s),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Jn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Jn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(Sr),hr=Do(wr,!0);function mr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(c===o?a==a&&!ua(a):n(a,c)))var c=a,u=s}return u}function _r(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=vi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?yr(a,t-1,n,r,o):Nt(o,a):r||(o[o.length]=a)}return o}var vr=No(),br=No(!0);function Sr(e,t){return e&&vr(e,t,Oa)}function wr(e,t){return e&&br(e,t,Oa)}function kr(e,t){return Ot(t,(function(t){return Zs(e[t])}))}function xr(e,t){for(var n=0,r=(t=So(t,e)).length;null!=e&&n<r;)e=e[$i(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Hs(e)?r:Nt(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in Te(e)?function(e){var t=Ne.call(e,Qe),n=e[Qe];try{e[Qe]=o;var r=!0}catch(e){}var i=Fe.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Fe.call(e)}(e)}function Tr(e,t){return e>t}function Ir(e,t){return null!=e&&Ne.call(e,t)}function Mr(e,t){return null!=e&&t in Te(e)}function Rr(e,t,n){for(var i=n?Lt:Pt,s=e[0].length,a=e.length,c=a,u=r(a),l=1/0,d=[];c--;){var p=e[c];c&&t&&(p=Dt(p,Qt(t))),l=bn(p.length,l),u[c]=!n&&(t||s>=120&&p.length>=120)?new Kn(c&&p):o}p=e[0];var f=-1,h=u[0];e:for(;++f<s&&d.length<l;){var m=p[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?tn(h,g):i(d,g,n))){for(c=a;--c;){var _=u[c];if(!(_?tn(_,g):i(e[c],g,n)))continue e}h&&h.push(g),d.push(m)}}return d}function Ar(e,t,n){var r=null==(e=Mi(e,t=So(t,e)))?e:e[$i(Xi(t))];return null==r?o:Tt(r,e,n)}function Or(e){return na(e)&&Cr(e)==y}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=Hs(e),c=Hs(t),u=a?v:gi(e),l=c?v:gi(t),d=(u=u==y?T:u)==T,p=(l=l==y?T:l)==T,f=u==l;
vendor: 4,963 bytes, line 2
2if(f&&Ks(e)){if(!Ks(t))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Yn),a||la(e)?ri(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case b:case S:case C:return Us(+e,+t);case w:return e.name==t.name&&e.message==t.message;case M:case A:return e==t+"";case E:var a=un;case R:var c=1&r;if(a||(a=pn),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var l=ri(a(e),a(t),r,o,i,s);return s.delete(e),l;case O:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,i,s);if(!(1&n)){var h=d&&Ne.call(e,"__wrapped__"),m=p&&Ne.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,_=m?t.value():t;return s||(s=new Yn),i(g,_,n,r,s)}}if(!f)return!1;return s||(s=new Yn),function(e,t,n,r,i,s){var a=1&n,c=ii(e),u=c.length,l=ii(t),d=l.length;if(u!=d&&!a)return!1;var p=u;for(;p--;){var f=c[p];if(!(a?f in t:Ne.call(t,f)))return!1}var h=s.get(e),m=s.get(t);if(h&&m)return h==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);var _=a;for(;++p<u;){var y=e[f=c[p]],v=t[f];if(r)var b=a?r(v,y,f,t,e,s):r(y,v,f,e,t,s);if(!(b===o?y===v||i(y,v,n,r,s):b)){g=!1;break}_||(_="constructor"==f)}if(g&&!_){var S=e.constructor,w=t.constructor;S==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,i,s)}(e,t,n,r,Pr,i))}function Lr(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Te(e);i--;){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],l=e[u],d=c[1];if(a&&c[2]){if(l===o&&!(u in e))return!1}else{var p=new Yn;if(r)var f=r(l,d,u,e,t,p);if(!(f===o?Pr(d,l,3,r,p):f))return!1}}return!0}function Dr(e){return!(!ta(e)||(t=e,$e&&$e in t))&&(Zs(e)?ze:ye).test(Fi(e));var t}function Nr(e){return"function"==typeof e?e:null==e?oc:"object"==typeof e?Hs(e)?zr(e[0],e[1]):Ur(e):fc(e)}function jr(e){if(!Ei(e))return Gt(e);var t=[];for(var n in Te(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function $r(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Te(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Ne.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Br(e,t){var n=-1,o=Js(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Ur(e){var t=pi(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||Lr(n,e,t)}}function zr(e,t){return wi(e)&&Ci(t)?Ti($i(e),t):function(n){var r=Ta(n,e);return r===o&&r===t?Ia(n,e):Pr(t,r,3)}}function qr(e,t,n,r,i){e!==t&&vr(t,(function(s,a){if(i||(i=new Yn),ta(s))!function(e,t,n,r,i,s,a){var c=Ri(e,n),u=Ri(t,n),l=a.get(u);if(l)return void tr(e,n,l);var d=s?s(c,u,n+"",e,t,a):o,p=d===o;if(p){var f=Hs(u),h=!f&&Ks(u),m=!f&&!h&&la(u);d=u,f||h||m?Hs(c)?d=c:Gs(c)?d=Ao(c):h?(p=!1,d=Eo(u,!0)):m?(p=!1,d=To(u,!0)):d=[]:ia(u)||Ws(u)?(d=c,Ws(c)?d=ya(c):ta(c)&&!Zs(c)||(d=yi(u))):p=!1}p&&(a.set(u,d),i(d,u,r,s,a),a.delete(u));tr(e,n,d)}(e,t,a,n,qr,r,i);else{var c=r?r(Ri(e,a),s,a+"",e,t,i):o;c===o&&(c=s),tr(e,a,c)}}),Pa)}function Wr(e,t){var n=e.length;if(n)return bi(t+=t<0?n:0,n)?e[t]:o}function Hr(e,t,n){t=t.length?Dt(t,(function(e){return Hs(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[oc];var r=-1;t=Dt(t,Qt(li()));var o=Br(e,(function(e,n,o){var i=Dt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;for(;++r<s;){var c=Io(o[r],i[r]);if(c)return r>=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=xr(e,s);n(a,s)&&eo(i,So(s,e),a)}return i}function Jr(e,t,n,r){var o=r?Wt:qt,i=-1,s=t.length,a=e;for(e===t&&(t=Ao(t)),n&&(a=Dt(e,Qt(n)));++i<s;)for(var c=0,u=t[i],l=n?n(u):u;(c=o(a,l,c,r))>-1;)a!==e&&Ye.call(a,c,1),Ye.call(e,c,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ye.call(e,o,1):fo(e,o)}}return e}function Kr(e,t){return e+gt(kn()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Pi(Ii(e,t,oc),e+"")}function Zr(e){return Zn(Ua(e))}function Qr(e,t){var n=Ua(e);return Ni(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!ta(e))return e;for(var i=-1,s=(t=So(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=$i(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=c[u];(l=r?r(d,u,c):o)===o&&(l=ta(d)?d:bi(t[i+1])?[]:{})}nr(c,u,l),c=c[u]}return e}var to=An?function(e,t){return An.set(e,t),e}:oc,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function ro(e){return Ni(Ua(e))}
vendor: 4,737 bytes, line 2
2function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function io(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ua(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ao(e,t,oc,n)}function ao(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,c=null===t,u=ua(t),l=t===o;i<s;){var d=gt((i+s)/2),p=n(e[d]),f=p!==o,h=null===p,m=p==p,g=ua(p);if(a)var _=r||m;else _=l?m&&(r||f):c?m&&f&&(r||!h):u?m&&f&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);_?i=d+1:s=d}return bn(s,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!Us(a,c)){var c=a;i[o++]=0===s?0:s}}return i}function uo(e){return"number"==typeof e?e:ua(e)?m:+e}function lo(e){if("string"==typeof e)return e;if(Hs(e))return Dt(e,lo)+"";if(ua(e))return Bn?Bn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function po(e,t,n){var r=-1,o=Pt,i=e.length,s=!0,a=[],c=a;if(n)s=!1,o=Lt;else if(i>=200){var u=t?null:Xo(e);if(u)return pn(u);s=!1,o=tn,c=new Kn}else c=t?[]:a;e:for(;++r<i;){var l=e[r],d=t?t(l):l;if(l=n||0!==l?l:0,s&&d==d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),a.push(l)}else o(c,d,n)||(c!==a&&c.push(d),a.push(l))}return a}function fo(e,t){return null==(e=Mi(e,t=So(t,e)))||delete e[$i(Xi(t))]}function ho(e,t,n,r){return eo(e,t,n(xr(e,t)),r)}function mo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Hn&&(n=n.value()),jt(t,(function(e,t){return t.func.apply(t.thisArg,Nt([e],t.args))}),n)}function _o(e,t,n){var o=e.length;if(o<2)return o?po(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],c=-1;++c<o;)c!=i&&(s[i]=pr(s[i]||a,e[c],t,n));return po(yr(s,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var c=r<s?t[r]:o;n(a,e[r],c)}return a}function vo(e){return Gs(e)?e:[]}function bo(e){return"function"==typeof e?e:oc}function So(e,t){return Hs(e)?e:wi(e,t)?[e]:ji(va(e))}var wo=Xr;function ko(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var xo=ot||function(e){return mt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function To(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Io(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=ua(e),a=t!==o,c=null===t,u=t==t,l=ua(t);if(!c&&!l&&!s&&e>t||s&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!l&&e<t||l&&n&&i&&!r&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}function Mo(e,t,n,o){for(var i=-1,s=e.length,a=n.length,c=-1,u=t.length,l=vn(s-a,0),d=r(u+l),p=!o;++c<u;)d[c]=t[c];for(;++i<a;)(p||i<s)&&(d[n[i]]=e[i]);for(;l--;)d[c++]=e[i++];return d}function Ro(e,t,n,o){for(var i=-1,s=e.length,a=-1,c=n.length,u=-1,l=t.length,d=vn(s-c,0),p=r(d+l),f=!o;++i<d;)p[i]=e[i];for(var h=i;++u<l;)p[h+u]=t[u];for(;++a<c;)(f||i<s)&&(p[h+n[a]]=e[i++]);return p}function Ao(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Oo(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?sr(n,c,u):nr(n,c,u)}return n}function Po(e,t){return function(n,r){var o=Hs(n)?It:or,i=t?t():{};return o(n,e,li(r,2),i)}}function Lo(e){return Xr((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&"function"==typeof s?(i--,s):o,a&&Si(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Te(t);++r<i;){var c=n[r];c&&e(t,c,r,s)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Js(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Te(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function No(e){return function(t,n,r){for(var o=-1,i=Te(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}function jo(e){return function(t){var n=cn(t=va(t))?mn(t):o,r=n?n[0]:t.charAt(0),i=n?ko(n,1).join(""):t.slice(1);return r[e]()+i}}function $o(e){return function(t){return jt(Za(Wa(t).replace(et,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}
vendor: 9,115 bytes, line 2
2function Bo(e){return function(t,n,r){var i=Te(t);if(!Js(t)){var s=li(n,3);t=Oa(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function Uo(e){return oi((function(t){var n=t.length,r=n,s=Wn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Re(i);if(s&&!c&&"wrapper"==ci(a))var c=new Wn([],!0)}for(r=c?r:n;++r<n;){var u=ci(a=t[r]),l="wrapper"==u?ai(a):o;c=l&&ki(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ci(l[0])].apply(c,l[3]):1==a.length&&ki(a)?c[u]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Hs(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function zo(e,t,n,i,s,a,c,u,l,p){var f=t&d,h=1&t,m=2&t,g=24&t,_=512&t,y=m?o:Fo(e);return function d(){for(var v=arguments.length,b=r(v),S=v;S--;)b[S]=arguments[S];if(g)var w=ui(d),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(i&&(b=Mo(b,i,s,g)),a&&(b=Ro(b,a,c,g)),v-=k,g&&v<p){var x=dn(b,w);return Ko(e,t,zo,d.placeholder,n,b,x,u,l,p-v)}var E=h?n:this,C=m?E[e]:e;return v=b.length,u?b=function(e,t){var n=e.length,r=bn(t.length,n),i=Ao(e);for(;r--;){var s=t[r];e[r]=bi(s,n)?i[s]:o}return e}(b,u):_&&v>1&&b.reverse(),f&&l<v&&(b.length=l),this&&this!==mt&&this instanceof d&&(C=y||Fo(C)),C.apply(E,b)}}function qo(e,t){return function(n,r){return function(e,t,n,r){return Sr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=lo(n),r=lo(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Ho(e){return oi((function(t){return t=Dt(t,Qt(li())),Xr((function(n){var r=this;return e(t,(function(e){return Tt(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":lo(t)).length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,ht(e/hn(t)));return cn(t)?ko(mn(r),0,e).join(""):r.slice(0,e)}function Jo(e){return function(t,n,i){return i&&"number"!=typeof i&&Si(t,n,i)&&(n=i=o),t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n,o){for(var i=-1,s=vn(ht((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:ha(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=_a(t),n=_a(n)),e(t,n)}}function Ko(e,t,n,r,i,s,a,c,d,p){var f=8&t;t|=f?u:l,4&(t&=~(f?l:u))||(t&=-4);var h=[e,t,i,f?s:o,f?a:o,f?o:s,f?o:a,c,d,p],m=n.apply(o,h);return ki(e)&&Ai(m,h),m.placeholder=r,Li(m,e,t)}function Yo(e){var t=Ce[e];return function(e,n){if(e=_a(e),(n=null==n?0:bn(ma(n),292))&&bt(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=In&&1/pn(new In([,-0]))[1]==f?function(e){return new In(e)}:uc;function Zo(e){return function(t){var n=gi(t);return n==E?un(t):n==R?fn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,s,f,h,m,g){var _=2&t;if(!_&&"function"!=typeof e)throw new Re(i);var y=s?s.length:0;if(y||(t&=-97,s=f=o),m=m===o?m:vn(ma(m),0),g=g===o?g:ma(g),y-=f?f.length:0,t&l){var v=s,b=f;s=f=o}var S=_?o:ai(e),w=[e,t,n,s,f,v,b,h,m,g];if(S&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==d&&8==n||r==d&&n==p&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Mo(u,c,t[4]):c,e[4]=u?dn(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Ro(u,c,t[6]):c,e[6]=u?dn(e[5],a):t[6]);(c=t[7])&&(e[7]=c);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(w,S),e=w[0],t=w[1],n=w[2],s=w[3],f=w[4],!(g=w[9]=w[9]===o?_?0:e.length:vn(w[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==c?function(e,t,n){var i=Fo(e);return function s(){for(var a=arguments.length,c=r(a),u=a,l=ui(s);u--;)c[u]=arguments[u];var d=a<3&&c[0]!==l&&c[a-1]!==l?[]:dn(c,l);return(a-=d.length)<n?Ko(e,t,zo,s.placeholder,o,c,d,o,o,n-a):Tt(this&&this!==mt&&this instanceof s?i:e,this,c)}}(e,t,g):t!=u&&33!=t||f.length?zo.apply(o,w):function(e,t,n,o){var i=1&t,s=Fo(e);return function t(){for(var a=-1,c=arguments.length,u=-1,l=o.length,d=r(l+c),p=this&&this!==mt&&this instanceof t?s:e;++u<l;)d[u]=o[u];for(;c--;)d[u++]=arguments[++a];return Tt(p,i?n:this,d)}}(e,t,n,s);else var k=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Li((S?to:Ai)(k,w),e,t)}function ei(e,t,n,r){return e===o||Us(e,Pe[n])&&!Ne.call(r,n)?t:e}function ti(e,t,n,r,i,s){return ta(e)&&ta(t)&&(s.set(t,e),qr(e,t,o,ti,s),s.delete(t)),e}function ni(e){return ia(e)?o:e}function ri(e,t,n,r,i,s){var a=1&n,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var l=s.get(e),d=s.get(t);if(l&&d)return l==t&&d==e;var p=-1,f=!0,h=2&n?new Kn:o;for(s.set(e,t),s.set(t,e);++p<c;){var m=e[p],g=t[p];if(r)var _=a?r(g,m,p,t,e,s):r(m,g,p,e,t,s);if(_!==o){if(_)continue;f=!1;break}if(h){if(!Ft(t,(function(e,t){if(!tn(h,t)&&(m===e||i(m,e,n,r,s)))return h.push(t)}))){f=!1;break}}else if(m!==g&&!i(m,g,n,r,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function oi(e){return Pi(Ii(e,o,Vi),e+"")}function ii(e){return Er(e,Oa,hi)}function si(e){return Er(e,Pa,mi)}var ai=An?function(e){return An.get(e)}:uc;function ci(e){for(var t=e.name+"",n=On[t],r=Ne.call(On,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ne.call(Un,"placeholder")?Un:e).placeholder}function li(){var e=Un.iteratee||ic;return e=e===ic?Nr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function pi(e){for(var t=Oa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var hi=_t?function(e){return null==e?[]:(e=Te(e),Ot(_t(e),(function(t){return Ke.call(e,t)})))}:gc,mi=_t?function(e){for(var t=[];e;)Nt(t,hi(e)),e=Je(e);return t}:gc,gi=Cr;function _i(e,t,n){for(var r=-1,o=(t=So(t,e)).length,i=!1;++r<o;){var s=$i(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&bi(s,o)&&(Hs(e)||Ws(e))}function yi(e){return"function"!=typeof e.constructor||Ei(e)?{}:zn(Je(e))}function vi(e){return Hs(e)||Ws(e)||!!(Xe&&e&&e[Xe])}function bi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function Si(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Js(n)&&bi(t,n.length):"string"==r&&t in n)&&Us(n[t],e)}function wi(e,t){if(Hs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ua(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Te(t))}function ki(e){var t=ci(e),n=Un[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(En&&gi(new En(new ArrayBuffer(1)))!=D||Cn&&gi(new Cn)!=E||Tn&&gi(Tn.resolve())!=I||In&&gi(new In)!=R||Mn&&gi(new Mn)!=P)&&(gi=function(e){var t=Cr(e),n=t==T?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Pn:return D;case Ln:return E;case Dn:return I;case Nn:return R;case jn:return P}return t});var xi=Le?Zs:_c;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function Ci(e){return e==e&&!ta(e)}function Ti(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Te(n)))}}function Ii(e,t,n){return t=vn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=vn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(a),Tt(e,this,c)}}function Mi(e,t){return t.length<2?e:xr(e,oo(t,0,-1))}function Ri(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ai=Di(to),Oi=ft||function(e,t){return mt.setTimeout(e,t)},Pi=Di(no);function Li(e,t,n){var r=t+"";return Pi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(_,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=Sn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ni(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=Kr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var ji=function(e){var t=Ds(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(fe,"$1"):n||e)})),t}));function $i(e){if("string"==typeof e||ua(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return De.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Bi(e){if(e instanceof Hn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Ao(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}
vendor: 2,225 bytes, line 2
2var Ui=Xr((function(e,t){return Gs(e)?pr(e,yr(t,1,Gs,!0)):[]})),zi=Xr((function(e,t){var n=Xi(t);return Gs(n)&&(n=o),Gs(e)?pr(e,yr(t,1,Gs,!0),li(n,2)):[]})),qi=Xr((function(e,t){var n=Xi(t);return Gs(n)&&(n=o),Gs(e)?pr(e,yr(t,1,Gs,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ma(n);return o<0&&(o=vn(r+o,0)),zt(e,li(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ma(n),i=n<0?vn(r+i,0):bn(i,r-1)),zt(e,li(t,3),i,!0)}function Vi(e){return(null==e?0:e.length)?yr(e,1):[]}function Ji(e){return e&&e.length?e[0]:o}var Gi=Xr((function(e){var t=Dt(e,vo);return t.length&&t[0]===e[0]?Rr(t):[]})),Ki=Xr((function(e){var t=Xi(e),n=Dt(e,vo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Rr(n,li(t,2)):[]})),Yi=Xr((function(e){var t=Xi(e),n=Dt(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Rr(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Jr(e,t):e}var es=oi((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Gr(e,Dt(t,(function(e){return bi(e,n)?+e:e})).sort(Io)),r}));function ts(e){return null==e?e:xn.call(e)}var ns=Xr((function(e){return po(yr(e,1,Gs,!0))})),rs=Xr((function(e){var t=Xi(e);return Gs(t)&&(t=o),po(yr(e,1,Gs,!0),li(t,2))})),os=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,po(yr(e,1,Gs,!0),o,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=Ot(e,(function(e){if(Gs(e))return t=vn(e.length,t),!0})),Xt(t,(function(t){return Dt(e,Jt(t))}))}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Dt(n,(function(e){return Tt(t,o,e)}))}var as=Xr((function(e,t){return Gs(e)?pr(e,t):[]})),cs=Xr((function(e){return _o(Ot(e,Gs))})),us=Xr((function(e){var t=Xi(e);return Gs(t)&&(t=o),_o(Ot(e,Gs),li(t,2))})),ls=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,_o(Ot(e,Gs),o,t)})),ds=Xr(is);var ps=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ss(e,n)}));function fs(e){var t=Un(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ms=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,
vendor: 9,018 bytes, line 2
2i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&bi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var gs=Po((function(e,t,n){Ne.call(e,n)?++e[n]:sr(e,n,1)}));var _s=Bo(Wi),ys=Bo(Hi);function vs(e,t){return(Hs(e)?Mt:fr)(e,li(t,3))}function bs(e,t){return(Hs(e)?Rt:hr)(e,li(t,3))}var Ss=Po((function(e,t,n){Ne.call(e,n)?e[n].push(t):sr(e,n,[t])}));var ws=Xr((function(e,t,n){var o=-1,i="function"==typeof t,s=Js(e)?r(e.length):[];return fr(e,(function(e){s[++o]=i?Tt(t,e,n):Ar(e,t,n)})),s})),ks=Po((function(e,t,n){sr(e,n,t)}));function xs(e,t){return(Hs(e)?Dt:Br)(e,li(t,3))}var Es=Po((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Cs=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Si(e,t[0],t[1])?t=[]:n>2&&Si(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,yr(t,1),[])})),Ts=lt||function(){return mt.Date.now()};function Is(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Qo(e,d,o,o,o,o,t)}function Ms(e,t){var n;if("function"!=typeof t)throw new Re(i);return e=ma(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Rs=Xr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ui(Rs));r|=u}return Qo(e,r,t,n,o)})),As=Xr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ui(As));r|=u}return Qo(t,r,e,n,o)}));function Os(e,t,n){var r,s,a,c,u,l,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Re(i);function m(t){var n=r,i=s;return r=s=o,d=t,c=e.apply(i,n)}function g(e){var n=e-l;return l===o||n>=t||n<0||f&&e-d>=a}function _(){var e=Ts();if(g(e))return y(e);u=Oi(_,function(e){var n=t-(e-l);return f?bn(n,a-(e-d)):n}(e))}function y(e){return u=o,h&&r?m(e):(r=s=o,c)}function v(){var e=Ts(),n=g(e);if(r=arguments,s=this,l=e,n){if(u===o)return function(e){return d=e,u=Oi(_,t),p?m(e):c}(l);if(f)return xo(u),u=Oi(_,t),m(l)}return u===o&&(u=Oi(_,t)),c}return t=_a(t)||0,ta(n)&&(p=!!n.leading,a=(f="maxWait"in n)?vn(_a(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),v.cancel=function(){u!==o&&xo(u),d=0,r=l=s=u=o},v.flush=function(){return u===o?c:y(Ts())},v}var Ps=Xr((function(e,t){return dr(e,1,t)})),Ls=Xr((function(e,t,n){return dr(e,_a(t)||0,n)}));function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Re(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ds.Cache||Gn),n}function Ns(e){if("function"!=typeof e)throw new Re(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=Gn;var js=wo((function(e,t){var n=(t=1==t.length&&Hs(t[0])?Dt(t[0],Qt(li())):Dt(yr(t,1),Qt(li()))).length;return Xr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Tt(e,this,r)}))})),$s=Xr((function(e,t){var n=dn(t,ui($s));return Qo(e,u,o,t,n)})),Fs=Xr((function(e,t){var n=dn(t,ui(Fs));return Qo(e,l,o,t,n)})),Bs=oi((function(e,t){return Qo(e,p,o,o,o,t)}));function Us(e,t){return e===t||e!=e&&t!=t}var zs=Go(Tr),qs=Go((function(e,t){return e>=t})),Ws=Or(function(){return arguments}())?Or:function(e){return na(e)&&Ne.call(e,"callee")&&!Ke.call(e,"callee")},Hs=r.isArray,Vs=St?Qt(St):function(e){return na(e)&&Cr(e)==L};function Js(e){return null!=e&&ea(e.length)&&!Zs(e)}function Gs(e){return na(e)&&Js(e)}var Ks=vt||_c,Ys=wt?Qt(wt):function(e){return na(e)&&Cr(e)==S};function Xs(e){if(!na(e))return!1;var t=Cr(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Zs(e){if(!ta(e))return!1;var t=Cr(e);return t==k||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=kt?Qt(kt):function(e){return na(e)&&gi(e)==E};function oa(e){return"number"==typeof e||na(e)&&Cr(e)==C}function ia(e){if(!na(e)||Cr(e)!=T)return!1;var t=Je(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var sa=xt?Qt(xt):function(e){return na(e)&&Cr(e)==M};var aa=Et?Qt(Et):function(e){return na(e)&&gi(e)==R};function ca(e){return"string"==typeof e||!Hs(e)&&na(e)&&Cr(e)==A}function ua(e){return"symbol"==typeof e||na(e)&&Cr(e)==O}var la=Ct?Qt(Ct):function(e){return na(e)&&ea(e.length)&&!!ct[Cr(e)]};var da=Go(Fr),pa=Go((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Js(e))return ca(e)?mn(e):Ao(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=gi(e);return(t==E?un:t==R?pn:Ua)(e)}function ha(e){return e?(e=_a(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?cr(ma(e),0,g):0}function _a(e){if("number"==typeof e)return e;if(ua(e))return m;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var n=_e.test(e);return n||ve.test(e)?pt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ya(e){return Oo(e,Pa(e))}function va(e){return null==e?"":lo(e)}var ba=Lo((function(e,t){if(Ei(t)||Js(t))Oo(t,Oa(t),e);else for(var n in t)Ne.call(t,n)&&nr(e,n,t[n])})),Sa=Lo((function(e,t){Oo(t,Pa(t),e)})),wa=Lo((function(e,t,n,r){Oo(t,Pa(t),e,r)})),ka=Lo((function(e,t,n,r){Oo(t,Oa(t),e,r)})),xa=oi(ar);var Ea=Xr((function(e,t){e=Te(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Si(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Pa(s),c=-1,u=a.length;++c<u;){var l=a[c],d=e[l];(d===o||Us(d,Pe[l])&&!Ne.call(e,l))&&(e[l]=s[l])}return e})),Ca=Xr((function(e){return e.push(o,ti),Tt(Da,o,e)}));function Ta(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Ia(e,t){return null!=e&&_i(e,t,Mr)}var Ma=qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),tc(oc)),Ra=qo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),li),Aa=Xr(Ar);function Oa(e){return Js(e)?Xn(e):jr(e)}function Pa(e){return Js(e)?Xn(e,!0):$r(e)}var La=Lo((function(e,t,n){qr(e,t,n)})),Da=Lo((function(e,t,n,r){qr(e,t,n,r)})),Na=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=Dt(t,(function(t){return t=So(t,e),r||(r=t.length>1),t})),Oo(e,si(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)fo(n,t[o]);return n}));var ja=oi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ia(e,n)}))}(e,t)}));function $a(e,t){if(null==e)return{};var n=Dt(si(e),(function(e){return[e]}));return t=li(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Fa=Zo(Oa),Ba=Zo(Pa);function Ua(e){return null==e?[]:en(e,Oa(e))}var za=$o((function(e,t,n){return t=t.toLowerCase(),e+(n?qa(t):t)}));function qa(e){return Xa(va(e).toLowerCase())}function Wa(e){return(e=va(e))&&e.replace(Se,on).replace(tt,"")}var Ha=$o((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Va=$o((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=jo("toLowerCase");var Ga=$o((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ka=$o((function(e,t,n){return e+(n?" ":"")+Xa(t)}));var Ya=$o((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xa=jo("toUpperCase");function Za(e,t,n){return e=va(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Qa=Xr((function(e,t){try{return Tt(e,o,t)}catch(e){return Xs(e)?e:new xe(e)}})),ec=oi((function(e,t){return Mt(t,(function(t){t=$i(t),sr(e,t,Rs(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Uo(),rc=Uo(!0);function oc(e){return e}function ic(e){return Nr("function"==typeof e?e:ur(e,1))}var sc=Xr((function(e,t){return function(n){return Ar(n,e,t)}})),ac=Xr((function(e,t){return function(n){return Ar(e,n,t)}}));function cc(e,t,n){var r=Oa(t),o=kr(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Oa(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Zs(e);return Mt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ao(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nt([this.value()],arguments))})})),e}function uc(){}var lc=Ho(Dt),dc=Ho(At),pc=Ho(Ft);function fc(e){return wi(e)?Jt($i(e)):function(e){return function(t){return xr(t,e)}}(e)}var hc=Jo(),mc=Jo(!0);function gc(){return[]}function _c(){return!1}var yc=Wo((function(e,t){return e+t}),0),vc=Yo("ceil"),bc=Wo((function(e,t){return e/t}),1),Sc=Yo("floor");var wc,kc=Wo((function(e,t){return e*t}),1),xc=Yo("round"),Ec=Wo((function(e,t){return e-t}
vendor: 4,837 bytes, line 2
2),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Re(i);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Is,Un.assign=ba,Un.assignIn=Sa,Un.assignInWith=wa,Un.assignWith=ka,Un.at=xa,Un.before=Ms,Un.bind=Rs,Un.bindAll=ec,Un.bindKey=As,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},Un.chain=fs,Un.chunk=function(e,t,n){t=(n?Si(e,t,n):t===o)?1:vn(ma(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=r(ht(i/t));s<i;)c[a++]=oo(e,s,s+=t);return c},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Nt(Hs(n)?Ao(n):[n],yr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Re(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Tt(o[0],this,n))return Tt(o[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Oa(e);return function(n){return lr(n,e,t)}}(ur(e,1))},Un.constant=tc,Un.countBy=gs,Un.create=function(e,t){var n=zn(e);return null==t?n:ir(n,t)},Un.curry=function e(t,n,r){var i=Qo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.curryRight=function e(t,n,r){var i=Qo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Un.debounce=Os,Un.defaults=Ea,Un.defaultsDeep=Ca,Un.defer=Ps,Un.delay=Ls,Un.difference=Ui,Un.differenceBy=zi,Un.differenceWith=qi,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:ma(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:ma(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?mo(e,li(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?mo(e,li(t,3),!0):[]},Un.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Si(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ma(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ma(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Hs(e)?Ot:_r)(e,li(t,3))},Un.flatMap=function(e,t){return yr(xs(e,t),1)},Un.flatMapDeep=function(e,t){return yr(xs(e,t),f)},Un.flatMapDepth=function(e,t,n){return n=n===o?1:ma(n),yr(xs(e,t),n)},Un.flatten=Vi,Un.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,f):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:ma(t)):[]},Un.flip=function(e){return Qo(e,512)},Un.flow=nc,Un.flowRight=rc,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Un.functions=function(e){return null==e?[]:kr(e,Oa(e))},Un.functionsIn=function(e){return null==e?[]:kr(e,Pa(e))},Un.groupBy=Ss,Un.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Un.intersection=Gi,Un.intersectionBy=Ki,Un.intersectionWith=Yi,Un.invert=Ma,Un.invertBy=Ra,Un.invokeMap=ws,Un.iteratee=ic,Un.keyBy=ks,Un.keys=Oa,Un.keysIn=Pa,Un.map=xs,Un.mapKeys=function(e,t){var n={};return t=li(t,3),Sr(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Un.mapValues=function(e,t){var n={};return t=li(t,3),Sr(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Un.matches=function(e){return Ur(ur(e,1))},Un.matchesProperty=function(e,t){return zr(e,ur(t,1))},Un.memoize=Ds,Un.merge=La,Un.mergeWith=Da,Un.method=sc,Un.methodOf=ac,Un.mixin=cc,Un.negate=Ns,Un.nthArg=function(e){return e=ma(e),Xr((function(t){return Wr(t,e)}))},Un.omit=Na,Un.omitBy=function(e,t){return $a(e,Ns(li(t)))},Un.once=function(e){return Ms(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Hs(t)||(t=null==t?[]:[t]),Hs(n=r?o:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Un.over=lc,Un.overArgs=js,Un.overEvery=dc,Un.overSome=pc,Un.partial=$s,Un.partialRight=Fs,Un.partition=Es,Un.pick=ja,Un.pickBy=$a,Un.property=fc,Un.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Un.pull=Zi,Un.pullAll=Qi,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Jr(e,t,li(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Jr(e,t,o,n):e},Un.pullAt=es,Un.range=hc,Un.rangeRight=mc,Un.rearg=Bs,Un.reject=function(e,t){return(Hs(e)?Ot:_r)(e,Ns(li(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Gr(e,o),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Re(i);return Xr(e,t=t===o?t:ma(t))},Un.reverse=ts,Un.sampleSize=function(e,t,n){return t=(n?Si(e,t,n):t===o)?1:ma(t),(Hs(e)?Qn:Qr)(e,t)},Un.set=function(e,t,n){return null==e?e:eo(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Un.shuffle=function(e){return(Hs(e)?er:ro)(e)}
vendor: 4,688 bytes, line 2
2,Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Si(e,t,n)?(t=0,n=r):(t=null==t?0:ma(t),n=n===o?r:ma(n)),oo(e,t,n)):[]},Un.sortBy=Cs,Un.sortedUniq=function(e){return e&&e.length?co(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?co(e,li(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&Si(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=lo(t))&&cn(e)?ko(mn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Re(i);return t=null==t?0:vn(ma(t),0),Xr((function(n){var r=n[t],o=ko(n,0,t);return r&&Nt(o,r),Tt(e,this,o)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:ma(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:ma(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?mo(e,li(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?mo(e,li(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Re(i);return ta(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Os(e,t,{leading:r,maxWait:t,trailing:o})},Un.thru=hs,Un.toArray=fa,Un.toPairs=Fa,Un.toPairsIn=Ba,Un.toPath=function(e){return Hs(e)?Dt(e,$i):ua(e)?[e]:Ao(ji(va(e)))},Un.toPlainObject=ya,Un.transform=function(e,t,n){var r=Hs(e),o=r||Ks(e)||la(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Zs(i)?zn(Je(e)):{}}return(o?Mt:Sr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Un.unary=function(e){return Is(e,1)},Un.union=ns,Un.unionBy=rs,Un.unionWith=os,Un.uniq=function(e){return e&&e.length?po(e):[]},Un.uniqBy=function(e,t){return e&&e.length?po(e,li(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?po(e,o,t):[]},Un.unset=function(e,t){return null==e||fo(e,t)},Un.unzip=is,Un.unzipWith=ss,Un.update=function(e,t,n){return null==e?e:ho(e,t,bo(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ho(e,t,bo(n),r)},Un.values=Ua,Un.valuesIn=function(e){return null==e?[]:en(e,Pa(e))},Un.without=as,Un.words=Za,Un.wrap=function(e,t){return $s(bo(t),e)},Un.xor=cs,Un.xorBy=us,Un.xorWith=ls,Un.zip=ds,Un.zipObject=function(e,t){return yo(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Un.zipWith=ps,Un.entries=Fa,Un.entriesIn=Ba,Un.extend=Sa,Un.extendWith=wa,cc(Un,Un),Un.add=yc,Un.attempt=Qa,Un.camelCase=za,Un.capitalize=qa,Un.ceil=vc,Un.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=_a(n))==n?n:0),t!==o&&(t=(t=_a(t))==t?t:0),cr(_a(e),t,n)},Un.clone=function(e){return ur(e,4)},Un.cloneDeep=function(e){return ur(e,5)},Un.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Un.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Un.conformsTo=function(e,t){return null==t||lr(e,t,Oa(t))},Un.deburr=Wa,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=bc,Un.endsWith=function(e,t,n){e=va(e),t=lo(t);var r=e.length,i=n=n===o?r:cr(ma(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Us,Un.escape=function(e){return(e=va(e))&&X.test(e)?e.replace(K,sn):e},Un.escapeRegExp=function(e){return(e=va(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Un.every=function(e,t,n){var r=Hs(e)?At:mr;return n&&Si(e,t,n)&&(t=o),r(e,li(t,3))},Un.find=_s,Un.findIndex=Wi,Un.findKey=function(e,t){return Ut(e,li(t,3),Sr)},Un.findLast=ys,Un.findLastIndex=Hi,Un.findLastKey=function(e,t){return Ut(e,li(t,3),wr)},Un.floor=Sc,Un.forEach=vs,Un.forEachRight=bs,Un.forIn=function(e,t){return null==e?e:vr(e,li(t,3),Pa)},Un.forInRight=function(e,t){return null==e?e:br(e,li(t,3),Pa)},Un.forOwn=function(e,t){return e&&Sr(e,li(t,3))},Un.forOwnRight=function(e,t){return e&&wr(e,li(t,3))},Un.get=Ta,Un.gt=zs,Un.gte=qs,Un.has=function(e,t){return null!=e&&_i(e,t,Ir)},Un.hasIn=Ia,Un.head=Ji,Un.identity=oc,Un.includes=function(e,t,n,r){e=Js(e)?e:Ua(e),n=n&&!r?ma(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ca(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ma(n);return o<0&&(o=vn(r+o,0)),qt(e,t,o)},Un.inRange=function(e,t,n){return t=ha(t),n===o?(n=t,t=0):n=ha(n),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=_a(e),t,n)},Un.invoke=Aa,Un.isArguments=Ws,Un.isArray=Hs,Un.isArrayBuffer=Vs,Un.isArrayLike=Js,Un.isArrayLikeObject=Gs,Un.isBoolean=function(e){return!0===e||!1===e||na(e)&&Cr(e)==b},Un.isBuffer=Ks,Un.isDate=Ys,Un.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},Un.isEmpty=function(e){if(null==e)return!0;
vendor: 5,242 bytes, line 2
2if(Js(e)&&(Hs(e)||"string"==typeof e||"function"==typeof e.splice||Ks(e)||la(e)||Ws(e)))return!e.length;var t=gi(e);if(t==E||t==R)return!e.size;if(Ei(e))return!jr(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Pr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Pr(e,t,o,n):!!r},Un.isError=Xs,Un.isFinite=function(e){return"number"==typeof e&&bt(e)},Un.isFunction=Zs,Un.isInteger=Qs,Un.isLength=ea,Un.isMap=ra,Un.isMatch=function(e,t){return e===t||Lr(e,t,pi(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Lr(e,t,pi(t),n)},Un.isNaN=function(e){return oa(e)&&e!=+e},Un.isNative=function(e){if(xi(e))throw new xe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=oa,Un.isObject=ta,Un.isObjectLike=na,Un.isPlainObject=ia,Un.isRegExp=sa,Un.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=h},Un.isSet=aa,Un.isString=ca,Un.isSymbol=ua,Un.isTypedArray=la,Un.isUndefined=function(e){return e===o},Un.isWeakMap=function(e){return na(e)&&gi(e)==P},Un.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":Bt.call(e,t)},Un.kebabCase=Ha,Un.last=Xi,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ma(n))<0?vn(r+i,0):bn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Ht,i,!0)},Un.lowerCase=Va,Un.lowerFirst=Ja,Un.lt=da,Un.lte=pa,Un.max=function(e){return e&&e.length?gr(e,oc,Tr):o},Un.maxBy=function(e,t){return e&&e.length?gr(e,li(t,2),Tr):o},Un.mean=function(e){return Vt(e,oc)},Un.meanBy=function(e,t){return Vt(e,li(t,2))},Un.min=function(e){return e&&e.length?gr(e,oc,Fr):o},Un.minBy=function(e,t){return e&&e.length?gr(e,li(t,2),Fr):o},Un.stubArray=gc,Un.stubFalse=_c,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=kc,Un.nth=function(e,t){return e&&e.length?Wr(e,ma(t)):o},Un.noConflict=function(){return mt._===this&&(mt._=Ue),this},Un.noop=uc,Un.now=Ts,Un.pad=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(gt(o),n)+e+Vo(ht(o),n)},Un.padEnd=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;return t&&r<t?e+Vo(t-r,n):e},Un.padStart=function(e,t,n){e=va(e);var r=(t=ma(t))?hn(e):0;return t&&r<t?Vo(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(va(e).replace(se,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Si(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ha(e),t===o?(t=e,e=0):t=ha(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=kn();return bn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=Hs(e)?jt:Kt,o=arguments.length<3;return r(e,li(t,4),n,o,fr)},Un.reduceRight=function(e,t,n){var r=Hs(e)?$t:Kt,o=arguments.length<3;return r(e,li(t,4),n,o,hr)},Un.repeat=function(e,t,n){return t=(n?Si(e,t,n):t===o)?1:ma(t),Yr(va(e),t)},Un.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=So(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[$i(t[r])];s===o&&(r=i,s=n),e=Zs(s)?s.call(e):s}return e},Un.round=xc,Un.runInContext=e,Un.sample=function(e){return(Hs(e)?Zn:Zr)(e)},Un.size=function(e){if(null==e)return 0;if(Js(e))return ca(e)?hn(e):e.length;var t=gi(e);return t==E||t==R?e.size:jr(e).length},Un.snakeCase=Ga,Un.some=function(e,t,n){var r=Hs(e)?Ft:io;return n&&Si(e,t,n)&&(t=o),r(e,li(t,3))},Un.sortedIndex=function(e,t){return so(e,t)},Un.sortedIndexBy=function(e,t,n){return ao(e,t,li(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Us(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return so(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ao(e,t,li(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(Us(e[n],t))return n}return-1},Un.startCase=Ka,Un.startsWith=function(e,t,n){return e=va(e),n=null==n?0:cr(ma(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},Un.subtract=Ec,Un.sum=function(e){return e&&e.length?Yt(e,oc):0},Un.sumBy=function(e,t){return e&&e.length?Yt(e,li(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&Si(e,t,n)&&(t=o),e=va(e),t=wa({},t,r,ei);var i,s,a=wa({},t.imports,r.imports,ei),c=Oa(a),u=en(a,c),l=0,d=t.interpolate||we,p="__p += '",f=Ie((t.escape||we).source+"|"+d.source+"|"+(d===ee?he:we).source+"|"+(t.evaluate||we).source+"|$","g"),h="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,n,r,o,a,c){return r||(r=o),p+=e.slice(l,c).replace(ke,an),n&&(i=!0,p+="' +\n__e("+n+") +\n'"),a&&(s=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),p+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new xe("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";
vendor: 4,380 bytes, line 2
2p=(s?p.replace(H,""):p).replace(V,"$1").replace(J,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Qa((function(){return Ee(c,h+"return "+p).apply(o,u)}));if(g.source=p,Xs(g))throw g;return g},Un.times=function(e,t){if((e=ma(e))<1||e>h)return[];var n=g,r=bn(e,g);t=li(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},Un.toFinite=ha,Un.toInteger=ma,Un.toLength=ga,Un.toLower=function(e){return va(e).toLowerCase()},Un.toNumber=_a,Un.toSafeInteger=function(e){return e?cr(ma(e),-9007199254740991,h):0===e?e:0},Un.toString=va,Un.toUpper=function(e){return va(e).toUpperCase()},Un.trim=function(e,t,n){if((e=va(e))&&(n||t===o))return Zt(e);if(!e||!(t=lo(t)))return e;var r=mn(e),i=mn(t);return ko(r,nn(r,i),rn(r,i)+1).join("")},Un.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=lo(t)))return e;var r=mn(e);return ko(r,0,rn(r,mn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=va(e))&&(n||t===o))return e.replace(se,"");if(!e||!(t=lo(t)))return e;var r=mn(e);return ko(r,nn(r,mn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(ta(t)){var i="separator"in t?t.separator:i;n="length"in t?ma(t.length):n,r="omission"in t?lo(t.omission):r}var s=(e=va(e)).length;if(cn(e)){var a=mn(e);s=a.length}if(n>=s)return e;var c=n-hn(r);if(c<1)return r;var u=a?ko(a,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(a&&(c+=u.length-c),sa(i)){if(e.slice(c).search(i)){var l,d=u;for(i.global||(i=Ie(i.source,va(me.exec(i))+"g")),i.lastIndex=0;l=i.exec(d);)var p=l.index;u=u.slice(0,p===o?c:p)}}else if(e.indexOf(lo(i),c)!=c){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+r},Un.unescape=function(e){return(e=va(e))&&Y.test(e)?e.replace(G,_n):e},Un.uniqueId=function(e){var t=++je;return va(e)+t},Un.upperCase=Ya,Un.upperFirst=Xa,Un.each=vs,Un.eachRight=bs,Un.first=Ji,cc(Un,(wc={},Sr(Un,(function(e,t){Ne.call(Un.prototype,t)||(wc[t]=e)})),wc),{chain:!1}),Un.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Mt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===o?1:vn(ma(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Mt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Mt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Mt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(oc)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Ar(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Ns(li(e)))},Hn.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(g)},Sr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],s=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Hn,u=a[0],l=c||Hs(t),d=function(e){var t=i.apply(Un,Nt([e],a));return r&&p?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=c&&!f;if(!s&&l){t=m?t:new Hn(this);var g=e.apply(t,a);return g.__actions__.push({func:hs,args:[d],thisArg:o}),new Wn(g,p)}return h&&m?e.apply(this,a):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})}
2)),Mt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Hs(o)?o:[],e)}return this[n]((function(n){return t.apply(Hs(n)?n:[],e)}))}})),Sr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Ne.call(On,r)||(On[r]=[]),On[r].push({name:t,func:n})}})),On[zo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Hs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=bn(t,e+s);break;case"takeRight":e=vn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,c=a-s,u=r?a:s-1,l=this.__iteratees__,d=l.length,p=0,f=bn(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return go(e,this.__actions__);var h=[];e:for(;c--&&p<f;){for(var m=-1,g=e[u+=t];++m<d;){var _=l[m],y=_.iteratee,v=_.type,b=y(g);if(2==v)g=b;else if(!b){if(1==v)continue e;break e}}h[p++]=g}return h},Un.prototype.at=ms,Un.prototype.chain=function(){return fs(this)},Un.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===o&&(this.__values__=fa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ts)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ze&&(Un.prototype[Ze]=function(){return this}),Un}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},2881:(e,t,n)=>{"use strict";var r=n(9516),o=n(6987);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},3191:(e,t,n)=>{"use strict";var r=n(1928);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},3471:(e,t,n)=>{"use strict";var r=n(9516);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(o)&&a.push("path="+o),r.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4198:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and n
2ode.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}
2,4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4490:(e,t,n)=>{"use strict";var r=n(9516),o=n(2881),i=n(3864),s=n(6987);function a(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return a(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return a(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(a(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4841:(e,t,n)=>{"use strict";var r=n(4198),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},s=r.version.split(".");function a(e,t){for(var n=t?t.split("."):s,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&a(t);function s(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(s(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(s(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={isOlderVersion:a,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],c=void 0===a||s(a,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},5019:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},5155:(e,t,n)=>{"use strict";var r=n(9516),o=n(9106),i=n(3471),s=n(4490),a=n(5343),c=n(4841),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=a(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[s,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(e){f(e);break}}try{o=s(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=l}
2,5343:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,u),r.forEach(s,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=c(void 0,e[o])):n[o]=c(void 0,t[o])})),r.forEach(a,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var l=o.concat(i).concat(s).concat(a),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(d,u),n}},5449:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},5592:(e,t,n)=>{"use strict";var r=n(9516),o=n(7522),i=n(3948),s=n(9106),a=n(9615),c=n(2012),u=n(4202),l=n(7763);e.exports=function(e){return new Promise((function(t,n){var d=e.data,p=e.headers,f=e.responseType;r.isFormData(d)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+g)}var _=a(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,i={data:f&&"text"!==f&&"json"!==f?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};o(t,n,i),h=null}}if(h.open(e.method.toUpperCase(),s(_,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(_))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}"setRequestHeader"in h&&r.forEach(p,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),f&&"json"!==f&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),d||(d=null),h.send(d)}))}},5606:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var a,c=[],u=!1,l=-1;function d(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},6987:(e,t,n)=>{"use strict";var r=n(5606),o=n(9516),i=n(7018),s=n(5449),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(5592)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){l.headers[e]=o.merge(a)}
2)),e.exports=l},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,o,i){var s=new Error(e);return r(s,t,n,o,i)}},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8015:(e,t,n)=>{"use strict";var r=n(9516),o=n(9012),i=n(5155),s=n(5343);function a(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=a(n(6987));c.Axios=i,c.create=function(e){return a(s(c.defaults,e))},c.Cancel=n(1928),c.CancelToken=n(3191),c.isCancel=n(3864),c.all=function(e){return Promise.all(e)},c.spread=n(7980),c.isAxiosError=n(5019),e.exports=c,e.exports.default=c},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},9106:(e,t,n)=>{"use strict";var r=n(9516);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},9516:(e,t,n)=>{"use strict";var r=n(9012),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:a,isPlainObject:c,isUndefined:s,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return a(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},9615:(e,t,n)=>{"use strict";var r=n(9137),o=n(4680);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}
2}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function r(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),shared.options.isBot||shared.options.log.id&&shared.options.log.uuid&&(this.triesCount=0,this.maxTries=10,this.init())},(n=[{key:"init",value:function(){var e=this;window.onload=function(){setTimeout((function(){e.sendTimings()}),50)}}},{key:"send",value:function(e){var t=this;++this.triesCount,axios.post("/log/timing/",{timing:e,s:shared.options.log.id,suuid:shared.options.log.uuid}).then((function(e){})).catch((function(n){t.triesCount<t.maxTries&&setTimeout((function(){t.send(e)}),500*t.triesCount)}))}},{key:"sendTimings",value:function(){var e={id:shared.options.log.id,uuid:shared.options.log.uuid,r:Math.floor(1e7*Math.random())},t=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance;if(t&&t.timing){var n=t.timing,r=n.navigationStart;for(var o in n)if("number"==typeof n[o]){var i=n[o]+0;0!=i&&(i-=r),e[o]=i}}else e.navigationStart=12345;this.triesCount=0,this.send(e)}}])&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();n(2488),shared.sendError=function(){},new o})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{debug:()=>Hl,error:()=>Gl,fatal:()=>Kl,fmt:()=>zl,info:()=>Vl,trace:()=>Wl,warn:()=>Jl});var t={};n.r(t),n.d(t,{count:()=>Ql,distribution:()=>td,gauge:()=>ed});var r={};n.r(r),n.d(r,{BrowserClient:()=>Po,OpenFeatureIntegrationHook:()=>yv,SDK_VERSION:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>vt,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>bt,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>_t,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>gt,Scope:()=>Ce,WINDOW:()=>Io,addBreadcrumb:()=>Zo,addEventProcessor:()=>ko,addIntegration:()=>We,breadcrumbsIntegration:()=>wi,browserApiErrorsIntegration:()=>xi,browserProfilingIntegration:()=>fv,browserSessionIntegration:()=>Ii,browserTracingIntegration:()=>Sy,buildLaunchDarklyFlagUsedHandler:()=>gv,captureConsoleIntegration:()=>mc,captureEvent:()=>lo,captureException:()=>co,captureFeedback:()=>Ss,captureMessage:()=>uo,captureSession:()=>To,chromeStackLineParser:()=>Xi,close:()=>bo,consoleLoggingIntegration:()=>vc,contextLinesIntegration:()=>$d,continueTrace:()=>Ac,createConsolaReporter:()=>zc,createTransport:()=>br,createUserFeedbackEnvelope:()=>kd,dedupeIntegration:()=>et,defaultRequestInstrumentationOptions:()=>J_,defaultStackLineParsers:()=>as,defaultStackParser:()=>cs,diagnoseSdkConnectivity:()=>Ev,endSession:()=>Eo,eventFiltersIntegration:()=>Je,eventFromException:()=>ro,eventFromMessage:()=>
2oo,exceptionFromError:()=>Kr,extraErrorDataIntegration:()=>Hc,featureFlagsIntegration:()=>Qc,feedbackAsyncIntegration:()=>fc,feedbackIntegration:()=>hc,feedbackSyncIntegration:()=>hc,flush:()=>vo,forceLoad:()=>vs,functionToStringIntegration:()=>Qe,geckoStackLineParser:()=>es,getActiveSpan:()=>mn,getClient:()=>$e,getCurrentScope:()=>Pe,getDefaultIntegrations:()=>_s,getFeedback:()=>Fs,getGlobalScope:()=>De,getIsolationScope:()=>Le,getReplay:()=>Zg,getRootSpan:()=>hn,getSpanDescendants:()=>fn,getSpanStatusFromHttpCode:()=>Bt,getTraceData:()=>eu,globalHandlersIntegration:()=>Di,graphqlClientIntegration:()=>Vd,growthbookIntegration:()=>kv,httpClientIntegration:()=>Rd,httpContextIntegration:()=>Bi,inboundFiltersIntegration:()=>Ge,init:()=>ys,instrumentAnthropicAiClient:()=>el,instrumentGoogleGenAIClient:()=>dl,instrumentOpenAiClient:()=>Il,instrumentOutgoingRequests:()=>G_,instrumentSupabaseClient:()=>Fl,isEnabled:()=>wo,isInitialized:()=>So,lastEventId:()=>yo,launchDarklyIntegration:()=>mv,lazyLoadIntegration:()=>pc,linkedErrorsIntegration:()=>Hi,logger:()=>e,makeBrowserOfflineTransport:()=>$y,makeFetchTransport:()=>ms,makeMultiplexedTransport:()=>Xl,metrics:()=>t,moduleMetadataIntegration:()=>ad,onLoad:()=>bs,openFeatureIntegration:()=>_v,opera10StackLineParser:()=>os,opera11StackLineParser:()=>ss,parameterize:()=>Ul,registerSpanErrorInstrumentation:()=>ud,registerWebWorker:()=>Iv,replayCanvasIntegration:()=>R_,replayIntegration:()=>Kg,reportPageLoaded:()=>My,reportingObserverIntegration:()=>Td,rewriteFramesIntegration:()=>md,sendFeedback:()=>Ms,setActiveSpanInBrowser:()=>Ry,setContext:()=>po,setCurrentClient:()=>ot,setExtra:()=>ho,setExtras:()=>fo,setHttpStatus:()=>Ut,setMeasurement:()=>wc,setTag:()=>go,setTags:()=>mo,setUser:()=>_o,showReportDialog:()=>xd,spanToBaggageHeader:()=>kn,spanToJSON:()=>an,spanToTraceHeader:()=>nn,spotlightBrowserIntegration:()=>hv,startBrowserTracingNavigationSpan:()=>ky,startBrowserTracingPageLoadSpan:()=>wy,startInactiveSpan:()=>Rc,startNewTrace:()=>Lc,startSession:()=>xo,startSpan:()=>Ic,startSpanManual:()=>Mc,statsigIntegration:()=>xv,supabaseIntegration:()=>Bl,suppressTracing:()=>Pc,thirdPartyErrorFilterIntegration:()=>gd,uiProfiler:()=>wd,unleashIntegration:()=>vv,updateSpanName:()=>_n,webWorkerIntegration:()=>Cv,winjsStackLineParser:()=>ns,withActiveSpan:()=>Oc,withIsolationScope:()=>je,withScope:()=>Ne,zodErrorsIntegration:()=>Sd});const o="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,i="10.27.0",s=globalThis;function a(){return c(s),s}function c(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||i,t[i]=t[i]||{}}function u(e,t,n=s){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[i]=r[i]||{};return o[e]||(o[e]=t())}const l=Object.prototype.toString;function d(e){switch(l.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return S(e,Error)}}function p(e,t){return l.call(e)===`[object ${t}]`}function f(e){return p(e,"ErrorEvent")}function h(e){return p(e,"DOMError")}function m(e){return p(e,"String")}function g(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function _(e){return null===e||g(e)||"object"!=typeof e&&"function"!=typeof e}function y(e){return p(e,"Object")}function v(e){return"undefined"!=typeof Event&&S(e,Event)}function b(e){return Boolean(e?.then&&"function"==typeof e.then)}function S(e,t){try{return e instanceof t}catch{return!1}}function w(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function k(e){return"undefined"!=typeof Request&&S(e,Request)}const x=s,E=80;function C(e,t={}){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||E;for(;n&&i++<r&&(u=T(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{return"<unknown>"}}function T(e,t){const n=e,r=[];if(!n?.tagName)return"";if(x.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=t?.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;
2if(o?.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&m(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 I(){try{return x.document.location.href}catch{return""}}function M(e){if(!x.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}const R=["debug","info","warn","error","log","assert","trace"],A={};function O(e){if(!("console"in s))return e();const t=s.console,n={},r=Object.keys(A);r.forEach((e=>{const r=A[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function P(){return D().enabled}function L(e,...t){o&&P()&&O((()=>{s.console[e](`Sentry Logger [${e}]:`,...t)}))}function D(){return o?u("loggerSettings",(()=>({enabled:!1}))):{enabled:!1}}const N={enable:function(){D().enabled=!0},disable:function(){D().enabled=!1},isEnabled:P,log:function(...e){L("log",...e)},warn:function(...e){L("warn",...e)},error:function(...e){L("error",...e)}};function j(e,t,n){if(!(t in e))return;const r=e[t];if("function"!=typeof r)return;const i=n(r);"function"==typeof i&&F(i,r);try{e[t]=i}catch{o&&N.log(`Failed to replace method "${t}" in object`,e)}}function $(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{o&&N.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function F(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,$(e,"__sentry_original__",t)}catch{}}function B(e){return e.__sentry_original__}function U(e){if(d(e))return{message:e.message,name:e.name,stack:e.stack,...q(e)};if(v(e)){const t={type:e.type,target:z(e.target),currentTarget:z(e.currentTarget),...q(e)};return"undefined"!=typeof CustomEvent&&S(e,CustomEvent)&&(t.detail=e.detail),t}return e}function z(e){try{return t=e,"undefined"!=typeof Element&&S(t,Element)?C(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}var t}function q(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{}}const W=50,H="?",V=/\(error: (.*)\)/,J=/captureMessage|captureException/;function G(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let e=n;e<i.length;e++){let n=i[e];n.length>1024&&(n=n.slice(0,1024));const s=V.test(n)?n.replace(V,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){o.push(t);break}}if(o.length>=W+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(K(t).function||"")&&t.pop();t.reverse(),J.test(K(t).function||"")&&(t.pop(),J.test(K(t).function||"")&&t.pop());return t.slice(0,W).map((e=>({...e,filename:e.filename||K(t).filename,function:e.function||H})))}(o.slice(r))}}function K(e){return e[e.length-1]||{}}const Y="<anonymous>";function X(e){try{return e&&"function"==typeof e&&e.name||Y}catch{return Y}}function Z(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{return}}}function Q(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function ee(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function te(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 ne(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{w(r)?n.push(Q(r)):n.push(String(r))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function re(e,t,n=!1){return!!m(e)&&(p(t,"RegExp")?t.test(e):!!m(t)&&(n?e===t:e.includes(t)))}function oe(e,t=[],n=!1){return t.some((t=>re(e,t,n)))}let ie;function se(e=function(){const e=s;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"")}catch{}return ie||(ie=[1e7]+1e3+4e3+8e3+1e11),ie.replace(/[018]/g,(e=>(e^(16*Math.random()&15)>>e/4).toString(16)))}function ae(e){return e.exception?.values?.[0]}function ce(e){const{message:t,event_id:n}=e;if(t)return t;const r=ae(e);return r?r.type&&r.value?`${r.type}: ${r.value}
2`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ue(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=n||"Error")}function le(e,t){const n=ae(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function de(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{$(e,"__sentry_captured__",!0)}catch{}return!1}const pe=1e3;function fe(){return Date.now()/pe}let he,me;function ge(){return(he??(he=function(){const{performance:e}=s;if(!e?.now||!e.timeOrigin)return fe;const t=e.timeOrigin;return()=>(t+e.now())/pe}()))()}function _e(){return me||(me=function(){const{performance:e}=s;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing?.navigationStart,c="number"==typeof a?Math.abs(a+n-r):t;return i||c<t?o<=c?[e.timeOrigin,"timeOrigin"]:[a,"navigationStart"]:[r,"dateNow"]}()),me[0]}function ye(e){const t=ge(),n={sid:se(),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&&ve(n,e),n}function ve(e,t={}){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||ge(),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:se()),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 be(e,t,n=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]=be(r[e],t[e],n-1));return r}function Se(){return se()}function we(){return se().substring(16)}const ke="_sentrySpan";function xe(e,t){t?$(e,ke,t):delete e[ke]}function Ee(e){return e[ke]}class Ce{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Se(),sampleRand:Math.random()}}clone(){const e=new Ce;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},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,xe(e,Ee(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&&ve(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.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],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 Ce?t.getScopeData():y(t)?e:void 0,{tags:r,attributes:o,extra:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,xe(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Se(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:fe(),...e,message:e.message?ee(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),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,attributes:this._attributes,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:Ee(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=be(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||se();if(!this._client)return o&&N.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=n?.event_id||se();if(!this._client)return o&&N.warn("No client configured on scope - will not capture message!"),r;const i=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){const n=t?.event_id||se();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(o&&N.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
2h((e=>{e(this)})),this._notifyingListeners=!1)}}class Te{constructor(e,t){let n,r;n=e||new Ce,r=t||new Ce,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 b(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 Ie(){const e=c(a());return e.stack=e.stack||new Te(u("defaultCurrentScope",(()=>new Ce)),u("defaultIsolationScope",(()=>new Ce)))}function Me(e){return Ie().withScope(e)}function Re(e,t){const n=Ie();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Ae(e){return Ie().withScope((()=>e(Ie().getIsolationScope())))}function Oe(e){const t=c(e);return t.acs?t.acs:{withIsolationScope:Ae,withScope:Me,withSetScope:Re,withSetIsolationScope:(e,t)=>Ae(t),getCurrentScope:()=>Ie().getScope(),getIsolationScope:()=>Ie().getIsolationScope()}}function Pe(){return Oe(a()).getCurrentScope()}function Le(){return Oe(a()).getIsolationScope()}function De(){return u("globalScope",(()=>new Ce))}function Ne(...e){const t=Oe(a());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function je(...e){const t=Oe(a());if(2===e.length){const[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function $e(){return Pe().getClient()}function Fe(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||we()};return r&&(i.parent_span_id=r),i}const Be=[];function Ue(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 ze(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function qe(e,t,n){if(n[t.name])o&&N.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,Be.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Be.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)}o&&N.log(`Integration installed: ${t.name}`)}}
2function We(e){const t=$e();t?t.addIntegration(e):o&&N.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function He(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}const Ve=[/^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$/],Je=(e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=Ke(e,r)},processEvent(n,r,i){if(!t){const n=i.getOptions();t=Ke(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&oe(n,t)}(e,t.ignoreTransactions))return o&&N.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ce(e)}`),!0}else{if(function(e,t){if(!t?.length)return!1;return He(e).some((e=>oe(e,t)))}(e,t.ignoreErrors))return o&&N.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ce(e)}`),!0;if(function(e){if(!e.exception?.values?.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return o&&N.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ce(e)}`),!0;if(function(e,t){if(!t?.length)return!1;const n=Ye(e);return!!n&&oe(n,t)}(e,t.denyUrls))return o&&N.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ce(e)}.\nUrl: ${Ye(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=Ye(e);return!n||oe(n,t)}(e,t.allowUrls))return o&&N.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ce(e)}.\nUrl: ${Ye(e)}`),!0}return!1}(n,t)?null:n}}},Ge=(e={})=>({...Je(e),name:"InboundFilters"});function Ke(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ve],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ye(e){try{const t=[...e.exception?.values??[]].reverse().find((e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length)),n=t?.stacktrace?.frames;return n?function(e=[]){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}(n):null}catch{return o&&N.error(`Cannot extract url for event ${ce(e)}`),null}}let Xe;const Ze=new WeakMap,Qe=()=>({name:"FunctionToString",setupOnce(){Xe=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=B(this),n=Ze.has($e())&&void 0!==t?t:this;return Xe.apply(n,e)}}catch{}},setup(e){Ze.set(e,!0)}}),et=()=>{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(!nt(e,t))return!1;if(!tt(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=rt(t),r=rt(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!nt(e,t))return!1;if(!tt(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return o&&N.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function tt(e,t){let n=Z(e),r=Z(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 nt(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;
2if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function rt(e){return e.exception?.values?.[0]}function ot(e){Pe().setClient(e)}const it=/^o(\d+)\./,st=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function at(e,t=!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 ct(e){const t=st.exec(e);if(!t)return void O((()=>{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 ut({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function ut(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lt(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(it);return t?.[1]}(n)),r}function dt(e){const t="string"==typeof e?ct(e):ut(e);if(t&&function(e){if(!o)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(N.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(N.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(N.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(N.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}const pt="7";function ft(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ht(e,t,n){return t||`${function(e){return`${ft(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:pt};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}const mt="production",gt="sentry.source",_t="sentry.sample_rate",yt="sentry.previous_trace_sample_rate",vt="sentry.op",bt="sentry.origin",St="sentry.idle_span_finish_reason",wt="sentry.measurement_unit",kt="sentry.measurement_value",xt="sentry.custom_span_name",Et="sentry.profile_id",Ct="sentry.exclusive_time",Tt="http.request.method",It="url.full",Mt="sentry.link.type",Rt="sentry-",At=/^sentry-/,Ot=8192;function Pt(e){const t=function(e){if(!e||!m(e)&&!Array.isArray(e))return;if(Array.isArray(e))return e.reduce(((e,t)=>{const n=Dt(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{});return Dt(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(At)){e[t.slice(Rt.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function Lt(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],r)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===r?i:`${e},${i}`;return s.length>Ot?(o&&N.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${Rt}${t}`]=n),e)),{}))}function Dt(e){return e.split(",").map((e=>{const t=e.indexOf("=");if(-1===t)return[];return[e.slice(0,t),e.slice(t+1)].map((e=>{try{return decodeURIComponent(e.trim())}catch{return}}))})).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}function Nt(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||$e()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}const jt=0,$t=1,Ft=2;function Bt(e){if(e<400&&e>=100)return{code:$t};if(e>=400&&e<500)switch(e){case 401:return{code:Ft,message:"unauthenticated"};case 403:return{code:Ft,message:"permission_denied"};case 404:return{code:Ft,message:"not_found"};case 409:return{code:Ft,message:"already_exists"};case 413:return{code:Ft,message:"failed_precondition"};case 429:return{code:Ft,message:"resource_exhausted"};case 499:return{code:Ft,message:"cancelled"};default:return{code:Ft,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Ft,message:"unimplemented"};case 503:return{code:Ft,message:"unavailable"};case 504:return{code:Ft,message:"deadline_exceeded"};default:return{code:Ft,message:"internal_error"}}return{code:Ft,message:"internal_error"}}function Ut(e,t){e.setAttribute("http.response.status_code",t);
2const n=Bt(t);"unknown_error"!==n.message&&e.setStatus(n)}const zt="_sentryScope",qt="_sentryIsolationScope";function Wt(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}function Ht(e,t,n){e&&($(e,qt,function(e){try{const t=s.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}(n)),$(e,zt,t))}function Vt(e){const t=e;return{scope:t[zt],isolationScope:Wt(t[qt])}}function Jt(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 Gt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Kt(e,t){const n=function(e){if(!e)return;const t=e.match(Gt);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=Pt(t);if(!n?.traceId)return{traceId:Se(),sampleRand:Math.random()};const o=function(e,t){const n=Jt(t?.sample_rand);if(void 0!==n)return n;const r=Jt(t?.sample_rate);return r&&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 Yt(e=Se(),t=we(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Xt(e=Se(),t=we(),n){return`00-${e}-${t}-${n?"01":"00"}`}const Zt=1;let Qt=!1;function en(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,origin:a,links:c}=an(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:s,origin:a,links:c}}function tn(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:an(e).parent_span_id,i=Vt(e).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||we():t,trace_id:n}}function nn(e){const{traceId:t,spanId:n}=e.spanContext();return Yt(t,n,cn(e))}function rn(e){return e&&e.length>0?e.map((({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:n===Zt,attributes:o,...r}))):void 0}function on(e){return"number"==typeof e?sn(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sn(e.getTime()):ge()}function sn(e){return e>9999999999?e/1e3:e}function an(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)){const{attributes:r,startTime:o,name:i,endTime:s,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0,start_timestamp:on(o),timestamp:on(s)||void 0,status:un(a),op:r[vt],origin:r[bt],links:rn(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function cn(e){const{traceFlags:t}=e.spanContext();return t===Zt}function un(e){if(e&&e.code!==jt)return e.code===$t?"ok":e.message||"internal_error"}const ln="_sentryChildSpans",dn="_sentryRootSpan";function pn(e,t){const n=e[dn]||e;$(t,dn,n),e[ln]?e[ln].add(t):$(e,ln,new Set([t]))}function fn(e){const t=new Set;return function e(n){if(!t.has(n)&&cn(n)){t.add(n);const r=n[ln]?Array.from(n[ln]):[];for(const t of r)e(t)}}(e),Array.from(t)}function hn(e){return e[dn]||e}function mn(){const e=Oe(a());return e.getActiveSpan?e.getActiveSpan():Ee(Pe())}function gn(){Qt||(O((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")})),Qt=!0)}function _n(e,t){e.updateName(t),e.setAttributes({[gt]:"custom",[xt]:t})}const yn="_frozenDsc";function vn(e,t){$(e,yn,t)}function bn(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||mt,release:n.release,public_key:r,trace_id:e,org_id:lt(t)};return t.emit("createDsc",o),o}function Sn(e,t){const n=t.getPropagationContext();return n.dsc||bn(n.traceId,e)}
2function wn(e){const t=$e();if(!t)return{};const n=hn(e),r=an(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o[_t]??o[yt];function a(e){return"number"!=typeof s&&"string"!=typeof s||(e.sample_rate=`${s}`),e}const c=n[yn];if(c)return a(c);const u=i?.get("sentry.dsc"),l=u&&Pt(u);if(l)return a(l);const d=bn(e.spanContext().traceId,t),p=o[gt],f=r.description;return"url"!==p&&f&&(d.transaction=f),Nt()&&(d.sampled=String(cn(n)),d.sample_rand=i?.get("sentry.sample_rand")??Vt(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}function kn(e){return Lt(wn(e))}function xn(e,t=100,n=1/0){try{return Cn("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function En(e,t=3,n=102400){const r=xn(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?En(e,t-1,n):r;var o}function Cn(e,t,n=1/0,r=1/0,o=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(w(t))return Q(t);if(y(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: ${X(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 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 Cn("",u.toJSON(),c-1,r,o)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=U(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]=Cn(e,t,c-1,r,o),d++}return s(t),l}function Tn(e,t=[]){return[e,t]}function In(e,t){const[n,r]=e;return[n,[...r,t]]}function Mn(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function Rn(e,t){return Mn(e,((e,n)=>t.includes(n)))}function An(e){const t=c(s);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function On(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[An(r),e]:r.push("string"==typeof e?An(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{e=JSON.stringify(xn(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 Pn(e){let t="string"==typeof e?An(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=c(s);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 Ln(e){return[{type:"span"},e]}function Dn(e){const t="string"==typeof e.data?An(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Nn={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",metric:"metric",trace_metric:"metric"};function jn(e){return Nn[e]}function $n(e){if(!e?.sdk)return;
2const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Fn(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:at(r)},...o&&{trace:o}}}function Bn(e){N.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Un(e,t){if(!t?.length||!e.description)return!1;for(const r of t){if("string"==typeof(n=r)||n instanceof RegExp){if(re(e.description,r))return o&&Bn(e),!0;continue}if(!r.name&&!r.op)continue;const t=!r.name||re(e.description,r.name),i=!r.op||e.op&&re(e.op,r.op);if(t&&i)return o&&Bn(e),!0}var n;return!1}function zn(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 qn(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:tn(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:wn(t),...e.sdkProcessingMetadata};const n=hn(t),r=an(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 Wn(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;Hn(e,"extra",n),Hn(e,"tags",r),Hn(e,"user",o),Hn(e,"contexts",i),e.sdkProcessingMetadata=be(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 Hn(e,t,n){e[t]=be(e[t],n,1)}function Vn(e,t){return t?Ne(t,(()=>{const n=mn(),r=n?tn(n):Fe(t);return[n?wn(n):Sn(e,t),r]})):[void 0,void 0]}const Jn={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};const Gn=100;function Kn(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function Yn(e,t){const n=er(),r=Qn(e);void 0===r?n.set(e,[t]):r.length>=Gn?(Zn(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Xn(e,t=Pe(),n=Yn){const r=t?.getClient()??$e();if(!r)return void(o&&N.warn("No client available to capture log."));const{release:i,environment:s,enableLogs:a=!1,beforeSendLog:c}=r.getOptions();if(!a)return void(o&&N.warn("logging option not enabled, log will not be captured."));const[,u]=Vn(r,t),l={...e.attributes},{user:{id:d,email:p,username:f}}=function(e){const t=De().getScopeData();return Wn(t,Le().getScopeData()),Wn(t,e.getScopeData()),t}(t);Kn(l,"user.id",d,!1),Kn(l,"user.email",p,!1),Kn(l,"user.name",f,!1),Kn(l,"sentry.release",i),Kn(l,"sentry.environment",s);const{name:h,version:m}=r.getSdkMetadata()?.sdk??{};Kn(l,"sentry.sdk.name",h),Kn(l,"sentry.sdk.version",m);const _=r.getIntegrationByName("Replay"),y=_?.getReplayId(!0);Kn(l,"sentry.replay_id",y),y&&"buffer"===_?.getRecordingMode()&&Kn(l,"sentry._internal.replay_is_buffering",!0);const v=e.message;if(g(v)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=v;t?.length&&(l["sentry.message.template"]=e),t.forEach(((e,t)=>{l[`sentry.message.parameter.${t}`]=e}))}const b=Ee(t);Kn(l,"sentry.trace.parent_span_id",b?.spanContext().spanId);const S={...e,attributes:l};r.emit("beforeCaptureLog",S);const w=c?O((()=>c(S))):S;if(!w)return r.recordDroppedEvent("before_send","log_item",1),void(o&&N.warn("beforeSendLog returned null, log will not be captured."));const{level:k,message:x,attributes:E={},severityNumber:C}=w;n(r,{timestamp:ge(),level:k,body:x,trace_id:u?.trace_id,severity_number:C??Jn[k],attributes:Object.keys(E).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 t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}(E[t]),e)),{})}),r.emit("afterCaptureLog",w)}function Zn(e,t){const n=t??Qn(e)??[];if(0===n.length)return;const r=e.getOptions(),o=function(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}
2),n&&r&&(o.dsn=at(r)),Tn(o,[(i=e,[{type:"log",item_count:i.length,content_type:"application/vnd.sentry.items.log+json"},{items:i}])]);var i}(n,r._metadata,r.tunnel,e.getDsn());er().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Qn(e){return er().get(e)}function er(){return u("clientToLogBufferMap",(()=>new WeakMap))}const tr=1e3;function nr(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 t="";try{t=JSON.stringify(e)??""}catch{}return{value:t,type:"string"}}}}function rr(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function or(e,t){const n=ur(),r=cr(e);void 0===r?n.set(e,[t]):r.length>=tr?(ar(e,r),n.set(e,[t])):n.set(e,[...r,t])}function ir(e,t,n){const{release:r,environment:o}=t.getOptions(),i={...e.attributes},{user:{id:s,email:a,username:c}}=function(e){const t=De().getScopeData();return Wn(t,Le().getScopeData()),Wn(t,e.getScopeData()),t}(n);rr(i,"user.id",s,!1),rr(i,"user.email",a,!1),rr(i,"user.name",c,!1),rr(i,"sentry.release",r),rr(i,"sentry.environment",o);const{name:u,version:l}=t.getSdkMetadata()?.sdk??{};rr(i,"sentry.sdk.name",u),rr(i,"sentry.sdk.version",l);const d=t.getIntegrationByName("Replay"),p=d?.getReplayId(!0);return rr(i,"sentry.replay_id",p),p&&"buffer"===d?.getRecordingMode()&&rr(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}function sr(e,t){const n=t?.scope??Pe(),r=t?.captureSerializedMetric??or,i=n?.getClient()??$e();if(!i)return void(o&&N.warn("No client available to capture metric."));const{_experiments:s,enableMetrics:a,beforeSendMetric:c}=i.getOptions();if(!(a??s?.enableMetrics??!0))return void(o&&N.warn("metrics option not enabled, metric will not be captured."));const u=ir(e,i,n);i.emit("processMetric",u);const l=c||s?.beforeSendMetric,d=l?l(u):u;if(!d)return void(o&&N.log("`beforeSendMetric` returned `null`, will not send metric."));const p=function(e,t,n){const r={};for(const t in e.attributes)void 0!==e.attributes[t]&&(r[t]=nr(e.attributes[t]));const[,o]=Vn(t,n),i=Ee(n),s=i?i.spanContext().traceId:o?.trace_id,a=i?i.spanContext().spanId:void 0;return{timestamp:ge(),trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:r}}(d,i,n);o&&N.log("[Metric]",p),r(i,p),i.emit("afterCaptureMetric",d)}function ar(e,t){const n=t??cr(e)??[];if(0===n.length)return;const r=e.getOptions(),o=function(e,t,n,r){const o={};return t?.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=at(r)),Tn(o,[(i=e,[{type:"trace_metric",item_count:i.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:i}])]);var i}(n,r._metadata,r.tunnel,e.getDsn());ur().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function cr(e){return ur().get(e)}function ur(){return u("clientToMetricBufferMap",(()=>new WeakMap))}function lr(e){return new pr((t=>{t(e)}))}function dr(e){return new pr(((t,n)=>{n(e)}))}class pr{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new pr(((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 pr(((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&&(b(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)}}}const fr=Symbol.for("SentryBufferFullError");function hr(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(r){if(!(t.size<e))return dr(fr);const o=r();return t.add(o),o.then((()=>n(o)),(()=>n(o))),o},drain:function(e){if(!t.size)return lr(!0);const n=Promise.allSettled(Array.from(t)).then((()=>!0));if(!e)return n;const r=[n,new Promise((t=>setTimeout((()=>t(!1)),e)))];return Promise.race(r)}}}const mr=6e4;function gr(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?mr:r-t}function _r(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function yr(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+gr(s,r):429===t&&(o.all=r+6e4);return o}const vr=64;function br(e,t,n=hr(e.bufferSize||vr)){let r={};return{send:function(i){const s=[];if(Mn(i,((t,n)=>{const o=jn(n);_r(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):s.push(t)})),0===s.length)return Promise.resolve({});const a=Tn(i[0],s),c=t=>{Mn(a,((n,r)=>{e.recordDroppedEvent(t,jn(r))}))};return n.add((()=>t({body:On(a)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&o&&N.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=yr(r,e),e)),(e=>{throw c("network_error"),o&&N.error("Encountered error running transport request:",e),e})))).then((e=>e),(e=>{if(e===fr)return o&&N.error("Skipped sending event because buffer is full."),c("queue_overflow"),Promise.resolve({});throw e}))},flush:e=>n.drain(e)}}function Sr(e,t,n,r=0){try{const o=wr(t,n,e,r);return b(o)?o:lr(o)}catch(e){return dr(e)}}function wr(e,t,n,r){const i=n[r];if(!e||!i)return e;const s=i({...e},t);return o&&null===s&&N.log(`Event processor "${i.id||"?"}" dropped event`),b(s)?s.then((e=>wr(e,t,n,r+1))):wr(s,t,n,r+1)}let kr,xr,Er,Cr;function Tr(e){const t=s._sentryDebugIds,n=s._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(Cr&&r.length===xr&&o.length===Er)return Cr;xr=r.length,Er=o.length,Cr={},kr||(kr={});const i=(t,n)=>{for(const r of t){const t=n[r],o=kr?.[r];if(o&&Cr&&t)Cr[o[0]]=t,kr&&(kr[r]=[o[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const o=n[e],i=o?.filename;if(i&&Cr&&kr){Cr[i]=t,kr[r]=[i,t];break}}}}};return t&&i(r,t),n&&i(o,n),Cr}function Ir(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||se(),timestamp:t.timestamp||fe()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i}=t;e.environment=e.environment||n||mt,!e.release&&r&&(e.release=r);!e.dist&&o&&(e.dist=o);const s=e.request;s?.url&&i&&(s.url=ee(s.url,i));i&&e.exception?.values?.forEach((e=>{e.value&&(e.value=ee(e.value,i))}))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{}
2,e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=Tr(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=n[e.filename])}))}))}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new Ce;return n.update(t),n}(r,n.captureContext);n.mechanism&&le(c,n.mechanism);const d=o?o.getEventProcessors():[],p=De().getScopeData();if(i){Wn(p,i.getScopeData())}if(l){Wn(p,l.getScopeData())}const f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),qn(c,p);return Sr([...d,...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};if(e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:xn(e.data,t,n)}})))},...e.user&&{user:xn(e.user,t,n)},...e.contexts&&{contexts:xn(e.contexts,t,n)},...e.extra&&{extra:xn(e.extra,t,n)}};e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=xn(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:xn(e.data,t,n)}}))));e.contexts?.flags&&r.contexts&&(r.contexts.flags=xn(e.contexts.flags,3,n));return r}(e,s,a):e)))}function Mr(e){if(e)return function(e){return e instanceof Ce||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Rr.includes(e)))}(e)?{captureContext:e}:e}const Rr=["user","level","extra","contexts","tags","fingerprint","propagationContext"];const Ar="Not capturing exception because it's already been captured.",Or="Discarded session because of missing or non-string release",Pr=Symbol.for("SentryInternalError"),Lr=Symbol.for("SentryDoNotSendEventError");function Dr(e){return{message:e,[Pr]:!0}}function Nr(e){return{message:e,[Lr]:!0}}function jr(e){return!!e&&"object"==typeof e&&Pr in e}function $r(e){return!!e&&"object"==typeof e&&Lr in e}function Fr(e,t,n,r,o){let i,s=0,a=!1;e.on(n,(()=>{s=0,clearTimeout(i),a=!1})),e.on(t,(t=>{s+=r(t),s>=8e5?o(e):a||(a=!0,i=setTimeout((()=>{o(e)}),5e3))})),e.on("flush",(()=>{o(e)}))}class Br{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=hr(e.transportOptions?.bufferSize??vr),e.dsn?this._dsn=dt(e.dsn):o&&N.warn("No DSN provided, client will not send events."),this._dsn){const t=ht(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})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Fr(this,"afterCaptureLog","flushLogs",Hr,Zn);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Fr(this,"afterCaptureMetric","flushMetrics",Wr,ar)}captureException(e,t,n){const r=se();if(de(e))return o&&N.log(Ar),r;const i={event_id:r,...t};return this._process((()=>this.eventFromException(e,i).then((e=>this._captureEvent(e,i,n))).then((e=>e))),"error"),i.event_id}captureMessage(e,t,n,r){const o={event_id:se(),...n},i=g(e)?e:String(e),s=_(e),a=s?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process((()=>a.then((e=>this._captureEvent(e,o,r)))),s?"unknown":"error"),o.event_id}captureEvent(e,t,n){const r=se();if(t?.originalException&&de(t.originalException))return o&&N.log(Ar),r;const i={event_id:r,...t},s=e.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope,u=Ur(e.type);return this._process((()=>this._captureEvent(e,i,a||n,c)),u),i.event_id}captureSession(e){this.sendSession(e),ve(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(!t)return!0;
vendor: 6,047 bytes, line 2
2this.emit("flush");const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];qe(this,e,this._integrations),t||ze(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=$n(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){if(!t)return e;const n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,n?.sdk);const s=Fn(e,o,r,t);return delete e.sdkProcessingMetadata,Tn(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=In(n,Dn(e));this.sendEnvelope(n).then((t=>this.emit("afterSendEvent",e,t)))}sendSession(e){const{release:t,environment:n=mt}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(o&&N.warn(Or));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(o&&N.warn(Or));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){const o=$n(n);return Tn({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:at(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,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;o&&N.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]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return o&&N.error("Error while sending envelope:",e),{}}return o&&N.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&qe(e,t,n)})),n}(this,e),ze(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(ve(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise((e=>setTimeout(e,1))),!this._numProcessing)return!0;t++}return!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&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Ir(o,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:Fe(n),...e.contexts};const r=Sn(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},n=Pe(),r=Le()){return o&&zr(e)&&N.log(`Captured error event \`${He(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{o&&($r(e)?N.log(e.message):jr(e)?N.warn(e.message):N.warn(e))}))}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=qr(e),a=zr(e),c=`before send for type \`${e.type||"error"}\``,u=void 0===i?void 0:Jt(i);if(a&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),dr(Nr(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const l=Ur(e.type);return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",l),Nr("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(zr(c)&&o)return o(c,r);if(qr(c)){if(s||a){const t=function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Et],exclusive_time:s?.[Ct],measurements:e.measurements,is_segment:!0}}(c);if(a?.length&&Un(t,a))return null;if(s){const e=s(t);e?c=be(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&&{[Et]:u.profile_id},...u.exclusive_time&&{[Ct]:u.exclusive_time}}}},measurements:u.measurements}):gn()}if(c.spans){const t=[],n=c.spans;for(const e of n)if(a?.length&&Un(e,a))zn(n,e);else if(s){const n=s(e);n?t.push(n):(gn(),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(b(e))return e.then((e=>{if(!y(e)&&null!==e)throw Dr(n);return e}),(e=>{throw Dr(`${t} rejected with ${e}`)}));if(!y(e)&&null!==e)throw Dr(n);return e}(n,c)}
2)).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",l),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw Nr(`${c} returned \`null\`, will not send event.`)}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const u=o.transaction_info;if(s&&u&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...u,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if($r(e)||jr(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),Dr(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e===fr&&this.recordDroppedEvent("queue_overflow",t),e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){o&&N.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(o&&N.log("No outcomes to send"));if(!this._dsn)return void(o&&N.log("No dsn provided, will not send outcomes"));o&&N.log("Sending outcomes:",e);const t=(n=e,Tn((r=this._options.tunnel&&at(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||fe(),discarded_events:n}]]));var n,r,i;this.sendEnvelope(t)}}function Ur(e){return"replay_event"===e?"replay":e||"error"}function zr(e){return void 0===e.type}function qr(e){return"transaction"===e.type}function Wr(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+Vr(e.attributes)}function Hr(e){let t=0;return e.message&&(t+=2*e.message.length),t+Vr(e.attributes)}function Vr(e){if(!e)return 0;let t=0;return Object.values(e).forEach((e=>{Array.isArray(e)?t+=e.length*Jr(e[0]):_(e)?t+=Jr(e):t+=100})),t}function Jr(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}function Gr(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function Kr(e,t){const n=Zr(e,t),r={type:to(t),value:no(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Yr(e,t,n,r){const o=$e(),i=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__:En(t,i)};if(s)return{exception:{values:[Kr(e,s)]},extra:a};const c={exception:{values:[{type:v(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:ao(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Zr(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}function Xr(e,t){return{exception:{values:[Kr(e,t)]}}}function Zr(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&Qr.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{}return[]}const Qr=/Minified React error #\d+;/i;function eo(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function to(e){const t=e?.name;if(!t&&eo(e)){return e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception"}return t}function no(e){const t=e?.message;return eo(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 ro(e,t,n,r){const o=io(e,t,n?.syntheticException||void 0,r);return le(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),lr(o)}function oo(e,t,n="info",r,o){const i=so(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),lr(i)}function io(e,t,n,r,o){let i;if(f(t)&&t.error){return Xr(e,t.error)}if(h(t)||p(t,"DOMException")){const o=t;if("stack"in t)i=Xr(e,t);else{const t=o.name||(h(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=so(e,s,n,r),ue(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if(d(t))return Xr(e,t);if(y(t)||v(t)){return i=Yr(e,t,n,o),le(i,{synthetic:!0}),i}return i=so(e,t,n,r),ue(i,`${t}`,void 0),le(i,{synthetic:!0}),i}function so(e,t,n,r){const o={};if(r&&n){const r=Zr(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}
2),le(o,{synthetic:!0})}if(g(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 ao(e,{isUnhandledRejection:t}){const n=function(e){const t=Object.keys(U(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}(e),r=t?"promise rejection":"exception";if(f(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(v(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}function co(e,t){return Pe().captureException(e,Mr(t))}function uo(e,t){const n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return Pe().captureMessage(e,n,r)}function lo(e,t){return Pe().captureEvent(e,t)}function po(e,t){Le().setContext(e,t)}function fo(e){Le().setExtras(e)}function ho(e,t){Le().setExtra(e,t)}function mo(e){Le().setTags(e)}function go(e,t){Le().setTag(e,t)}function _o(e){Le().setUser(e)}function yo(){return Le().lastEventId()}
2async function vo(e){const t=$e();return t?t.flush(e):(o&&N.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function bo(e){const t=$e();return t?t.close(e):(o&&N.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function So(){return!!$e()}function wo(){const e=$e();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function ko(e){Le().addEventProcessor(e)}function xo(e){const t=Le(),n=Pe(),{userAgent:r}=s.navigator||{},o=ye({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return"ok"===i?.status&&ve(i,{status:"exited"}),Eo(),t.setSession(o),o}function Eo(){const e=Le(),t=Pe().getSession()||e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),ve(e,n)}(t),Co(),e.setSession()}function Co(){const e=Le(),t=$e(),n=e.getSession();n&&t&&t.captureSession(n)}function To(e=!1){e?Eo():Co()}const Io=s;let Mo=0;function Ro(){return Mo>0}function Ao(e,t={}){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(B(e))return e}catch{return e}const n=function(...n){try{const r=n.map((e=>Ao(e,t)));return e.apply(this,r)}catch(e){throw Mo++,setTimeout((()=>{Mo--})),Ne((r=>{r.addEventProcessor((e=>(t.mechanism&&(ue(e,void 0,void 0),le(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),co(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}F(n,e),$(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function Oo(){const e=I(),{referrer:t}=Io.document||{},{userAgent:n}=Io.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class Po extends Br{constructor(e){const t=(n=e,{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Io.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n});var n;!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:i}))),version:i}),e._metadata=o}(t,"browser",["browser"],Io.SENTRY_SDK_SOURCE||"npm"),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?"auto":"never",...t._metadata.sdk.settings}),super(t);const{sendDefaultPii:r,sendClientReports:o,enableLogs:s,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;Io.document&&(o||s||u)&&Io.document.addEventListener("visibilitychange",(()=>{"hidden"===Io.document.visibilityState&&(o&&this._flushOutcomes(),s&&Zn(this),u&&ar(this))})),r&&this.on("beforeSendSession",Gr)}eventFromException(e,t){return ro(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return oo(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 Lo={},Do={};function No(e,t){Lo[e]=Lo[e]||[],Lo[e].push(t)}function jo(e,t){if(!Do[e]){Do[e]=!0;try{t()}catch(t){o&&N.error(`Error while instrumenting ${e}`,t)}}}function $o(e,t){const n=e&&Lo[e];if(n)for(const r of n)try{r(t)}catch(t){o&&N.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${X(r)}\nError:`,t)}}function Fo(e){const t="console";No(t,e),jo(t,Bo)}function Bo(){"console"in s&&R.forEach((function(e){e in s.console&&j(s.console,e,(function(t){return A[e]=t,function(...t){$o("console",{args:t,level:e});const n=A[e];n?.apply(s.console,t)}}))}))}const Uo=s;function zo(){if(!("fetch"in Uo))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function qo(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Wo(){if("string"==typeof EdgeRuntime)return!0;if(!zo())return!1;if(qo(Uo.fetch))return!0;let e=!1;const t=Uo.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=qo(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){o&&N.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function Ho(e,t){const n="fetch";No(n,e),jo(n,(()=>Vo(void 0,t)))}function Vo(e,t=!1){t&&!Wo()||j(s,"fetch",(function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Ko(t),method:Go(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ko(t),method:Go(t,"method")?String(t.method).toUpperCase():"GET"}}(n),a={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*ge(),virtualError:r,headers:Yo(n)};return e||$o("fetch",{...a}),t.apply(s,n).then((async t=>(e?e(t):$o("fetch",{...a,endTimestamp:1e3*ge(),response:t}),t)),(e=>{if($o("fetch",{...a,endTimestamp:1e3*ge(),error:e}),d(e)&&void 0===e.stack&&(e.stack=r.stack,$(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(a.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e}))}}))}function Jo(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(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{i=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t,(()=>{$o("fetch-body-resolved",{endTimestamp:1e3*ge(),response:e})}))}function Go(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Ko(e){return"string"==typeof e?e:e?Go(e,"url")?e.url:e.toString?e.toString():"":""}function Yo(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if(k(t))return new Headers(t.headers)}catch{}}const Xo=100;function Zo(e,t){const n=$e(),r=Le();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Xo}=n.getOptions();if(i<=0)return;const s={timestamp:fe(),...e},a=o?O((()=>o(s,t))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i)
2)}function Qo(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function ei(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}const ti="thismessage:/";function ni(e){return"isRelative"in e}function ri(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?ti: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{}}function oi(e){if(ni(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 ii(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 si(e){return e.split(/[?#]/,1)[0]}const ai=s;let ci,ui,li;function di(e){No("dom",e),jo("dom",pi)}function pi(){if(!ai.document)return;const e=$o.bind(null,"dom"),t=fi(e,!0);ai.document.addEventListener("click",t,!1),ai.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=ai,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(j(r,"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=fi(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch{}return t.call(this,n,r,o)}})),j(r,"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{}return e.call(this,t,n,r)}})))}))}function fi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;$(n,"_sentryCaptured",!0),r&&!r._sentryId&&$(r,"_sentryId",se());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==ui)return!1;try{if(!e.target||e.target._sentryId!==li)return!1}catch{}return!0}(n)){e({event:n,name:o,global:t}),ui=n.type,li=r?r._sentryId:void 0}clearTimeout(ci),ci=ai.setTimeout((()=>{li=void 0,ui=void 0}),1e3)}}const hi="__sentry_xhr_v3__";function mi(e){No("xhr",e),jo("xhr",gi)}function gi(){if(!ai.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*ge(),i=m(n[0])?n[0].toUpperCase():void 0,s=function(e){if(m(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!i||!s)return e.apply(t,n);t[hi]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[hi];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}$o("xhr",{endTimestamp:1e3*ge(),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[hi];return i&&m(r)&&m(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[hi];if(!r)return e.apply(t,n);void 0!==n[0]&&(r.body=n[0]);return $o("xhr",{startTimestamp:1e3*ge(),xhr:t}),e.apply(t,n)}})}let _i;function yi(e){const t="history";No(t,e),jo(t,vi)}function vi(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const r=_i,o=function(e){try{return new URL(e,ai.location.origin).toString()}catch{return e}}(String(n));if(_i=o,r===o)return e.apply(this,t);$o("history",{from:r,to:o})}return e.apply(this,t)}}ai.addEventListener("popstate",(()=>{const e=ai.location.href,t=_i;if(_i=e,t===e)return;$o("history",{from:t,to:e})})),"history"in Uo&&Uo.history&&(j(ai.history,"pushState",e),j(ai.history,"replaceState",e))}const bi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Si=1024,wi=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&Fo(function(e){return function(t){if($e()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:Qo(t.level),message:ne(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${ne(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Zo(n,{input:t.args,level:t.level})}}(e)),t.dom&&di(function(e,t){return function(n){if($e()!==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>Si&&(bi&&N.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=Si),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=C(t,{keyAttrs:i,maxStringLength:s}),o=M(t)}catch{r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),Zo(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&mi(function(e){return function(t){if($e()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[hi];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:ei(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Zo(d,l)}}(e)),t.fetch&&Ho(function(e){return function(t){if($e()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;
2if(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),Zo(s,i)}else{const o=t.response,i={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:ei(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),Zo(a,s)}}}(e)),t.history&&yi(function(e){return function(t){if($e()!==e)return;let n=t.from,r=t.to;const o=ii(Io.location.href);let i=n?ii(n):void 0;const s=ii(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),Zo({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){$e()===e&&Zo({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:ce(t)},{event:t})}}(e))}}};const ki=["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"],xi=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&j(Io,"setTimeout",Ei),t.setInterval&&j(Io,"setInterval",Ei),t.requestAnimationFrame&&j(Io,"requestAnimationFrame",Ci),t.XMLHttpRequest&&"XMLHttpRequest"in Io&&j(XMLHttpRequest.prototype,"send",Ti);const e=t.eventTarget;if(e){(Array.isArray(e)?e:ki).forEach((e=>function(e,t){const n=Io,r=n[e]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;j(r,"addEventListener",(function(n){return function(r,o,i){try{"function"==typeof o.handleEvent&&(o.handleEvent=Ao(o.handleEvent,{mechanism:{data:{handler:X(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}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,Ao(o,{mechanism:{data:{handler:X(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}})),j(r,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}}))}(e,t)))}}}};function Ei(e){return function(...t){const n=t[0];return t[0]=Ao(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${X(e)}`}}),e.apply(this,t)}}function Ci(e){return function(t){return e.apply(this,[Ao(t,{mechanism:{data:{handler:X(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Ti(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&j(n,e,(function(t){const n={mechanism:{data:{handler:X(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=B(t);return r&&(n.mechanism.data.handler=X(r)),Ao(t,n)}))})),e.apply(this,t)}}const Ii=()=>({name:"BrowserSession",setupOnce(){void 0!==Io.document?(xo({ignoreDuration:!0}),To(),yi((({from:e,to:t})=>{void 0!==e&&e!==t&&(xo({ignoreDuration:!0}),To())}))):bi&&N.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}});let Mi=null;function Ri(e){const t="error";No(t,e),jo(t,Ai)}function Ai(){Mi=s.onerror,s.onerror=function(e,t,n,r,o){return $o("error",{column:r,error:o,line:n,msg:e,url:t}),!!Mi&&Mi.apply(this,arguments)},s.onerror.__SENTRY_INSTRUMENTED__=!0}let Oi=null;function Pi(e){const t="unhandledrejection";No(t,e),jo(t,Li)}function Li(){Oi=s.onunhandledrejection,s.onunhandledrejection=function(e){return $o("unhandledrejection",e),!Oi||Oi.apply(this,arguments)},s.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Di=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){Ri((t=>{const{stackParser:n,attachStacktrace:r}=Fi();if($e()!==e||Ro())return;const{msg:o,url:i,line:s,column:a,error:c}=t,u=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,d=function(e){if(!m(e)||0===e.length)return;if(e.startsWith("data:")){const t=e.match(/^data:([^;
2]+)/);return`<data:${t?t[1]:"text/javascript"}${e.includes("base64,")?",base64":""}>`}return e}(t)??I();0===c.length&&c.push({colno:u,filename:d,function:H,in_app:!0,lineno:l});return e}(io(n,c||o,void 0,r,!1),i,s,a);u.level="error",lo(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}))}(e),$i("onerror")),t.onunhandledrejection&&(!function(e){Pi((t=>{const{stackParser:n,attachStacktrace:r}=Fi();if($e()!==e||Ro())return;const o=Ni(t),i=_(o)?ji(o):io(n,o,void 0,r,!0);i.level="error",lo(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}))}(e),$i("onunhandledrejection"))}}};function Ni(e){if(_(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function ji(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function $i(e){bi&&N.log(`Global Handler attached: ${e}`)}function Fi(){const e=$e();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Bi=()=>({name:"HttpContext",preprocessEvent(e){if(!Io.navigator&&!Io.location&&!Io.document)return;const t=Oo(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}});function Ui(e,t,n,r,o,i){if(!o.exception?.values||!i||!S(i.originalException,Error))return;const s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=zi(e,t,r,i.originalException,n,o.exception.values,s,0))}function zi(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(S(r[o],Error)){qi(s,a);const i=e(t,r[o]),u=c.length;Wi(i,o,u,a),c=zi(e,t,n,r[o],o,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(S(r,Error)){qi(s,a);const u=e(t,r),l=c.length;Wi(u,`errors[${i}]`,l,a),c=zi(e,t,n,r,o,[u,...c],u,l)}})),c}function qi(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Wi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Hi=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){Ui(Kr,o.getOptions().stackParser,n,t,e,r)}}};function Vi(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?H:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Ji=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Gi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ki=/\((\S*)(?::(\d+))(?::(\d+))\)/,Yi=/at (.+?) ?\(data:(.+?),/,Xi=[30,e=>{const t=e.match(Yi);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Ji.exec(e);if(n){const[,e,t,r]=n;return Vi(e,H,+t,+r)}const r=Gi.exec(e);if(r){if(r[2]&&0===r[2].indexOf("eval")){const e=Ki.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}const[e,t]=us(r[1]||H,r[2]);return Vi(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Zi=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Qi=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,es=[50,e=>{const t=Zi.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Qi.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]||H;return[n,e]=us(n,e),Vi(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],ts=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ns=[40,e=>{const t=ts.exec(e);return t?Vi(t[2],t[1]||H,+t[3],t[4]?+t[4]:void 0):void 0}],rs=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,os=[10,e=>{const t=rs.exec(e);return t?Vi(t[2],t[3]||H,+t[1]):void 0}],is=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ss=[20,e=>{const t=is.exec(e);return t?Vi(t[5],t[3]||t[4]||H,+t[1],+t[2]):void 0}],as=[Xi,es],cs=G(...as),us=(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]:H,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},ls="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ds={};function ps(e){const t=ds[e];if(t)return t;let n=ai[e];if(qo(n))return ds[e]=n.bind(ai);const r=ai.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){ls&&N.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?ds[e]=n.bind(ai):n}function fs(...e){return ps("setTimeout")(...e)}
2const hs=40;function ms(e,t=ps("fetch")){let n=0,r=0;return br(e,(async 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};try{const n=await t(e.url,s);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw ds["fetch"]=void 0,e}finally{n-=i,r--}}),hr(e.bufferSize||hs))}function gs(){return!!function(){if(void 0===Io.window)return!1;const e=Io;if(e.nw)return!1;const t=e.chrome||e.browser;if(!t?.runtime?.id)return!1;const n=I(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(Io===Io.top&&r.some((e=>n.startsWith(`${e}://`))))}()&&(bi&&O((()=>{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 _s(e){return[Ge(),Qe(),xi(),wi(),Di(),Hi(),et(),Bi(),Ii()]}function ys(e={}){const t=!e.skipBrowserExtensionCheck&&gs();let n=null==e.defaultIntegrations?_s():e.defaultIntegrations;const r={...e,enabled:!t&&e.enabled,stackParser:(i=e.stackParser||cs,Array.isArray(i)?G(...i):i),integrations:Ue({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||ms};var i;return function(e,t){!0===t.debug&&(o?N.enable():O((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Pe().update(t.initialScope);const n=new e(t);return ot(n),n.init(),n}(Po,r)}function vs(){}function bs(e){e()}function Ss(e,t={},n=Pe()){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=n?.getClient()||$e();d&&d.emit("beforeSendFeedback",l,t);return n.captureEvent(l,t)}var ws=n(5606);function ks(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==ws?ws:0)}function xs(){return"undefined"!=typeof window&&(!ks()||function(){const e=s.process;return"renderer"===e?.type}())}const Es=s,Cs=Es.document,Ts=Es.navigator,Is="Report a Bug",Ms=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=$e();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&Pe().setTags(e.tags);const r=Ss({source:"api",url:I(),...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(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(r):t(403===s?.statusCode?"Unable to send feedback. This could be because this domain is not in your list of allowed domains.":"Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")}))}))},Rs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function As(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Os(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}function Ps({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=Cs.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||Is,o.appendChild(function(){const e=e=>Es.document.createElementNS("http://www.w3.org/2000/svg",e),t=Os(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=Os(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Os(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
256 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=Os(e("clipPath"),{id:"clip0_57_80"}),s=Os(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t}()),e){const t=Cs.createElement("span");t.appendChild(Cs.createTextNode(e)),o.appendChild(t)}const i=function(e){const t=Cs.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));
2\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}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const Ls="rgba(88, 74, 192, 1)",Ds={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Ls,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%)"},Ns={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Ls,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 js(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 $s=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="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:_={},addScreenshotButtonLabel:y="Add a screenshot",cancelButtonLabel:v="Cancel",confirmButtonLabel:b="Confirm",emailLabel:S="Email",emailPlaceholder:w="[email protected]",formTitle:k="Report a Bug",isRequiredLabel:x="(required)",messageLabel:E="Description",messagePlaceholder:C="What's the bug? What did you expect?",nameLabel:T="Name",namePlaceholder:I="Your Name",removeScreenshotButtonLabel:M="Remove screenshot",submitButtonLabel:R="Send Bug Report",successMessageText:A="Thank you for your report!",triggerLabel:O=Is,triggerAriaLabel:P="",highlightToolText:L="Highlight",hideToolText:D="Hide",removeHighlightText:j="Remove",onFormOpen:$,onFormClose:F,onSubmitSuccess:B,onSubmitError:U,onFormSubmitted:z}={})=>{const q={id:r,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:_,themeLight:g,triggerLabel:O,triggerAriaLabel:P,cancelButtonLabel:v,submitButtonLabel:R,confirmButtonLabel:b,formTitle:k,emailLabel:S,emailPlaceholder:w,messageLabel:E,messagePlaceholder:C,nameLabel:T,namePlaceholder:I,successMessageText:A,isRequiredLabel:x,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:M,highlightToolText:L,hideToolText:D,removeHighlightText:j,onFormClose:F,onFormOpen:$,onSubmitError:U,onSubmitSuccess:B,onFormSubmitted:z};let W=null,H=[];const V=e=>{if(!W){const t=Cs.createElement("div");t.id=String(e.id),Cs.body.appendChild(t),W=t.attachShadow({mode:"open"}),W.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=Cs.createElement("style");return o.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"!==e?"color-scheme: only light;":""}\n\n  ${js("dark"===e?{...Ns,...t}:{...Ds,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${js({...Ns,...t})}\n  }\n}`:""}\n}\n`,r&&o.setAttribute("nonce",r),o}(e))}return W},J=async r=>{const o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ts.userAgent)||/Macintosh/i.test(Ts.userAgent)&&Ts.maxTouchPoints&&Ts.maxTouchPoints>1||!isSecureContext);let i,s;try{i=(t?t():await e("feedbackModalIntegration",h))(),We(i)}catch{throw Rs&&N.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 t=o?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(s=t(),We(s))}catch{Rs&&N.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const a=i.createDialog({options:{...r,onFormClose:()=>{a?.close(),r.onFormClose?.()},onFormSubmitted:()=>{a?.close(),r.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:Ms,shadow:V(r)});return a},G=(e,t={})=>{const n=As(q,t),r="string"==typeof e?Cs.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Rs&&N.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const i=async()=>{o||(o=await J({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};r.addEventListener("click",i);const s=()=>{H=H.filter((e=>e!==s)),o?.removeFromDom(),o=null,r.removeEventListener("click",i)};return H.push(s),s},K=(e={})=>{const t=As(q,e),n=V(t),r=Ps({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return G(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){xs()&&q.autoInject&&("loading"===Cs.readyState?Cs.addEventListener("DOMContentLoaded",(()=>K().appendToDom())):K().appendToDom())},attachTo:G,createWidget(e={}){const t=K(As(q,e));return t.appendToDom(),t},createForm:async(e={})=>J(As(q,e)),remove(){W&&(W.parentElement?.remove(),W=null),H.forEach((e=>e())),H=[]}}};function Fs(){const e=$e();return e?.getIntegrationByName("Feedback")}var Bs,Us,zs,qs,Ws,Hs,Vs,Js={},Gs=[],Ks=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ys=Array.isArray;function Xs(e,t){for(var n in t)e[n]=t[n];return e}function Zs(e){var t=e.parentNode;t&&t.removeChild(e)}function Qs(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?Bs.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 ea(e,s,r,o,null)}function ea(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?++zs:o,__i:-1,__u:0};return null==o&&null!=Us.vnode&&Us.vnode(i),i}function ta(e){return e.children}function na(e,t){this.props=e,this.context=t}function ra(e,t){if(null==t)return e.__?ra(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?ra(e):null}
vendor: 4,096 bytes, line 2
2function oa(e,t,n){var r,o=e.__v,i=o.__e,s=e.__P;if(s)return(r=Xs({},o)).__v=o.__v+1,Us.vnode&&Us.vnode(r),ma(s,r,o,e.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?ra(o):i,!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&ia(r),r}function ia(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 ia(e)}}function sa(e){(!e.__d&&(e.__d=!0)&&qs.push(e)&&!aa.__r++||Ws!==Us.debounceRendering)&&((Ws=Us.debounceRendering)||Hs)(aa)}function aa(){var e,t,n,r=[],o=[];for(qs.sort(Vs);e=qs.shift();)e.__d&&(n=qs.length,t=oa(e,r,o)||t,0===n||qs.length>n?(ga(r,t,o),o.length=r.length=0,t=void 0,qs.sort(Vs)):t&&Us.__c&&Us.__c(t,Gs));t&&ga(r,t,o),aa.__r=0}function ca(e,t,n,r,o,i,s,a,c,u,l){var d,p,f,h,m,g=r&&r.__k||Gs,_=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?ea(null,o,null,null,o):Ys(o)?ea(ta,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?ea(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,a=la(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=ra(i)),va(i,i,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=ra(i)),va(i,i))}(n,t,g),c=n.__d,d=0;d<_;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?Js:g[f.__i]||Js,f.__i=d,ma(e,f,p,o,i,s,a,c,u,l),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&ya(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=ua(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 ua(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ua(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 la(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||131072&c.__u?0:1))for(;s>=0||a<t.length;){if(s>=0){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a++}}return-1}function da(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Ks.test(t)?n:n+"px"}function pa(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||da(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||da(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?ha:fa,i)):e.removeEventListener(t,i?ha:fa,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 fa(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(Us.event?Us.event(e):e)}}function ha(e){if(this.l)return this.l[e.type+!0](Us.event?Us.event(e):e)}function ma(e,t,n,r,o,i,s,a,c,u){var l,d,p,f,h,m,g,_,y,v,b,S,w,k,x,E=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[a=t.__e=n.__e]),(l=Us.__b)&&l(t);e:if("function"==typeof E)try{if(_=t.props,y=(l=E.contextType)&&r[l.__c],v=l?y?
vendor: 4,632 bytes, line 2
2y.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in E&&E.prototype.render?t.__c=d=new E(_,v):(t.__c=d=new na(_,v),d.constructor=E,d.render=ba),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=v,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Xs({},d.__s)),Xs(d.__s,E.getDerivedStateFromProps(_,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&_!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,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(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=v,d.props=_,d.__P=e,d.__e=!1,S=Us.__r,w=0,"prototype"in E&&E.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=Xs(Xs({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),ca(e,Ys(x=null!=l&&l.type===ta&&null==l.key?l.props.children:l)?x:[x],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),Us.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_a(n.__e,t,n,r,o,i,s,c,u);(l=Us.diffed)&&l(t)}function ga(e,t,n){for(var r=0;r<n.length;r++)ya(n[r],n[++r],n[++r]);Us.__c&&Us.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Us.__e(e,t.__v)}}))}function _a(e,t,n,r,o,i,s,a,c){var u,l,d,p,f,h,m,g=n.props,_=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(_);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),i=null,a=!1}if(null===y)g===_||a&&e.data===_||(e.data=_);else{if(i=i&&Bs.call(e.childNodes),g=n.props||Js,!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 _||pa(e,u,null,f,o));for(u in _)f=_[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||pa(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=""),ca(e,Ys(p)?p:[p],t,n,r,o&&"foreignObject"!==y,i,s,i?i[0]:n.__k&&ra(n,0),a,c),null!=i)for(u=i.length;u--;)null!=i[u]&&Zs(i[u]);a||(u="value",void 0!==h&&(h!==e[u]||"progress"===y&&!h||"option"===y&&h!==g[u])&&pa(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&pa(e,u,m,g[u],!1))}return e}function ya(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Us.__e(e,n)}}function va(e,t,n){var r,o;if(Us.unmount&&Us.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ya(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Us.__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]&&va(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||Zs(e.__e),e.__=e.__e=e.__d=void 0}function ba(e,t,n){return this.constructor(e,n)}Bs=Gs.slice,Us={__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}},zs=0,na.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Xs({},this.state),"function"==typeof e&&(e=e(Xs({},n),this.props)),e&&Xs(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),sa(this))},na.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sa(this))},na.prototype.render=ta,qs=[],Hs="function"==typeof Promise?Promise.prototype.then.bind(Prom
2ise.resolve()):setTimeout,Vs=function(e,t){return e.__v.__b-t.__v.__b},aa.__r=0;var Sa,wa,ka,xa,Ea=0,Ca=[],Ta=[],Ia=Us,Ma=Ia.__b,Ra=Ia.__r,Aa=Ia.diffed,Oa=Ia.__c,Pa=Ia.unmount,La=Ia.__;function Da(e,t){Ia.__h&&Ia.__h(wa,e,Ea||t),Ea=0;var n=wa.__H||(wa.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Ta}),n.__[e]}function Na(e){return Ea=1,ja(Ja,e)}function ja(e,t,n){var r=Da(Sa++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ja(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=wa,!wa.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))};wa.u=!0;var i=wa.shouldComponentUpdate,s=wa.componentWillUpdate;wa.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)},wa.shouldComponentUpdate=o}return r.__N||r.__}function $a(e,t){var n=Da(Sa++,4);!Ia.__s&&Va(n.__H,t)&&(n.__=e,n.i=t,wa.__h.push(n))}function Fa(e,t){var n=Da(Sa++,7);return Va(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ba(e,t){return Ea=8,Fa((function(){return e}),t)}function Ua(){for(var e;e=Ca.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wa),e.__H.__h.forEach(Ha),e.__H.__h=[]}catch(t){e.__H.__h=[],Ia.__e(t,e.__v)}}Ia.__b=function(e){wa=null,Ma&&Ma(e)},Ia.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),La&&La(e,t)},Ia.__r=function(e){Ra&&Ra(e),Sa=0;var t=(wa=e.__c).__H;t&&(ka===wa?(t.__h=[],wa.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ta,e.__N=e.i=void 0}))):(t.__h.forEach(Wa),t.__h.forEach(Ha),t.__h=[],Sa=0)),ka=wa},Ia.diffed=function(e){Aa&&Aa(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ca.push(t)&&xa===Ia.requestAnimationFrame||((xa=Ia.requestAnimationFrame)||qa)(Ua)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ta&&(e.__=e.__V),e.i=void 0,e.__V=Ta}))),ka=wa=null},Ia.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Wa),e.__h=e.__h.filter((function(e){return!e.__||Ha(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ia.__e(n,e.__v)}})),Oa&&Oa(e,t)},Ia.unmount=function(e){Pa&&Pa(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Wa(e)}catch(e){t=e}})),n.__H=void 0,t&&Ia.__e(t,n.__v))};var za="function"==typeof requestAnimationFrame;function qa(e){var t,n=function(){clearTimeout(r),za&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);za&&(t=requestAnimationFrame(n))}function Wa(e){var t=wa,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),wa=t}function Ha(e){var t=wa;e.__c=e.__(),wa=t}function Va(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ja(e,t){return"function"==typeof t?t(e):t}const Ga=Object.defineProperty({__proto__:null,useCallback:Ba,useContext:function(e){var t=wa.context[e.__c],n=Da(Sa++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(wa)),t.props.value):e.__},useDebugValue:function(e,t){Ia.useDebugValue&&Ia.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Da(Sa++,3);!Ia.__s&&Va(n.__H,t)&&(n.__=e,n.i=t,wa.__H.__h.push(n))},useErrorBoundary:function(e){var t=Da(Sa++,10),n=Na();return t.__=e,wa.componentDidCatch||(wa.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Da(Sa++,11);if(!e.__){for(var t=wa.__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.__},useImperativeHandle:function(e,t,n){Ea=6,$a((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:$a,useMemo:Fa,useReducer:ja,useRef:function(e){return Ea=5,Fa((function(){return{current:e}}),[])},useState:Na},Symbol.toStringTag,{value:"Module"});function Ka(){const e=e=>Cs.createElementNS("http://www.w3.org/2000/svg",e),t=Os(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Os(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 Ya({options:e}){const t=Fa((()=>({__html:Ka().outerHTML})),[]);return Qs("h2",{class:"dialog__header"},Qs("span",{class:"dialog__title"},e.formTitle),e.showBranding?Qs("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Xa(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function Za({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail
2:a,showName:c,screenshotInput:u}){const{tags:l,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:_,messageLabel:y,messagePlaceholder:v,nameLabel:b,namePlaceholder:S,submitButtonLabel:w,isRequiredLabel:k}=e,[x,E]=Na(!1),[C,T]=Na(null),[I,M]=Na(!1),R=u?.input,[A,O]=Na(null),P=Ba((e=>{O(e),M(!1)}),[]),L=Ba((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:h,isEmailRequired:g,isNameRequired:_,messageLabel:y,nameLabel:b});return t.length>0?T(`Please enter in the following required fields: ${t.join(", ")}`):T(null),0===t.length}),[h,g,_,y,b]),D=Ba((async e=>{E(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(u&&I?u.value():void 0),r={name:Xa(t,"name"),email:Xa(t,"email"),message:Xa(t,"message"),attachments:n?[n]:void 0};if(!L(r))return;try{const e=await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:l},{attachments:r.attachments});i(r,e)}catch(e){Rs&&N.error(e),T(e),s(e)}}finally{E(!1)}}),[u&&I,i,s]);return Qs("form",{class:"form",onSubmit:D},R&&I?Qs(R,{onError:P}):null,Qs("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},Qs("div",{class:"form__top"},C?Qs("div",{class:"form__error-container"}
2,C):null,c?Qs("label",{for:"name",class:"form__label"},Qs(Qa,{label:b,isRequiredLabel:k,isRequired:_}),Qs("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:_,type:"text"})):Qs("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?Qs("label",{for:"email",class:"form__label"},Qs(Qa,{label:h,isRequiredLabel:k,isRequired:g}),Qs("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):Qs("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),Qs("label",{for:"message",class:"form__label"},Qs(Qa,{label:y,isRequiredLabel:k,isRequired:!0}),Qs("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5})),R?Qs("label",{for:"screenshot",class:"form__label"},Qs("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{O(null),M((e=>!e))}},I?p:d),A?Qs("div",{class:"form__error-container"},A.message):null):null),Qs("div",{class:"btn-group"},Qs("button",{class:"btn btn--primary",disabled:x,type:"submit"},w),Qs("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},f))))}function Qa({label:e,isRequired:t,isRequiredLabel:n}){return Qs("span",{class:"form__label__text"},e,t&&Qs("span",{class:"form__label__text--required"},n))}function ec(){const e=e=>Es.document.createElementNS("http://www.w3.org/2000/svg",e),t=Os(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Os(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Os(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=Os(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 10.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=Os(e("clipPath"),{id:"clip0_57_156"}),a=Os(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),t}function tc({open:e,onFormSubmitted:t,...n}){const r=n.options,o=Fa((()=>({__html:ec().outerHTML})),[]),[i,s]=Na(null),a=Ba((()=>{i&&(clearTimeout(i),s(null)),t()}),[i]),c=Ba(((e,r)=>{n.onSubmitSuccess(e,r),s(setTimeout((()=>{t(),s(null)}),5e3))}),[t]);return Qs(ta,null,i?Qs("div",{class:"success__position",onClick:a},Qs("div",{class:"success__content"},r.successMessageText,Qs("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):Qs("dialog",{class:"dialog",onClick:r.onFormClose,open:e},Qs("div",{class:"dialog__position"},Qs("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},Qs(Ya,{options:r}),Qs(Za,{...n,onSubmitSuccess:c})))))}const nc=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const o=r,i=e.useSentryUser,s=function(){const e=Pe().getUser(),t=Le().getUser(),n=De().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}
2(),a=Cs.createElement("div"),c=function(e){const t=Cs.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));
2\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%);
2\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}(e.styleNonce);let u="";const l={get el(){return a},appendToDom(){o.contains(c)||o.contains(a)||(o.appendChild(c),o.appendChild(a))},removeFromDom(){a.remove(),c.remove(),Cs.body.style.overflow=u},open(){p(!0),e.onFormOpen?.(),$e()?.emit("openFeedbackWidget"),u=Cs.body.style.overflow,Cs.body.style.overflow="hidden"},close(){p(!1),Cs.body.style.overflow=u}},d=t?.createInput({h:Qs,hooks:Ga,dialog:l,options:e}),p=t=>{!function(e,t){var n,r,o;Us.__&&Us.__(e,t),n=t.__k,r=[],o=[],ma(t,e=t.__k=Qs(ta,null,[e]),n||Js,Js,void 0!==t.ownerSVGElement,n?null:t.firstChild?Bs.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,ga(r,e,o)}(Qs(tc,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:i&&s?.[i.name]||"",defaultEmail:i&&s?.[i.email]||"",onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{p(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),a)};return l}});function rc(e){const t=Cs.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 oc({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:o}){const i=function(){const[t,n]=e.useState(Es.devicePixelRatio??1);return e.useEffect((()=>{const e=()=>{n(Es.devicePixelRatio)},t=matchMedia(`(resolution: ${Es.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}}),[]),t}();e.useEffect((()=>{(async()=>{t();const e=await Ts.mediaDevices.getDisplayMedia({video:{width:Es.innerWidth*i,height:Es.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=Cs.createElement("video");await new Promise(((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o,i),e.getTracks().forEach((e=>e.stop())),t()},o.play().catch(r)})),r()})().catch(o)}),[])}}function ic(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function sc(e,t){ic(e,{alpha:!0},((e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)}))}function ac(e,t,n){ic(e,{alpha:!0},((e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEac
2h((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 cc({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const i=oc({hooks:t}),s=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:"editor__tool "+("highlight"===t?"editor__tool--active":""),onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),a=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("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"}),e("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"}),e("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:e}),c={__html:rc(o.styleNonce).innerText},u=r.el.style,l=({screenshot:r})=>{const[i,u]=t.useState("highlight"),[l,d]=t.useState([]),p=t.useRef(null),f=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,_]=t.useState(1),y=t.useMemo((()=>{const e=Cs.getElementById(o.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")}),[o.id]);t.useLayoutEffect((()=>{const e=()=>{const t=p.current;t&&(ic(r.canvas,{alpha:!1},(e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);_(n)})),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),Es.addEventListener("resize",e),()=>{Es.removeEventListener("resize",e)}}),[r]);const v=t.useCallback(((e,t)=>{ic(e,{alpha:!0},((e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height}))}),[r]);t.useEffect((()=>{v(f.current,r.dpi),sc(f.current,r.canvas)}),[r]),t.useEffect((()=>{v(h.current,r.dpi),ic(h.current,{alpha:!0},((e,t)=>{t.clearRect(0,0,e.width,e.height)})),ac(h.current,y,l)}),[l,y]),t.useEffect((()=>{v(n,r.dpi),sc(n,r.canvas),ic(Cs.createElement("canvas"),{alpha:!0},((e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,ac(e,y,l),sc(n,e)}))}),[l,r,y]);const b=t.useCallback((e=>t=>{t.preventDefault(),t.stopPropagation(),d((t=>{const n=[...t];return n.splice(e,1),n}))}),[]),S={width:r.canvas.width*g+"px",height:r.canvas.height*g+"px"},w=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:p},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:m,onMouseDown:e=>{if(!i||!m.current)return;const t=m.current.getBoundingClientRect(),n={type:i,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{const r=(n.clientX-t.x)/g,o=(n.clientY-t.y)/g;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=>{ic(h.current,{alpha:!0},((e,t)=>{t.clearRect(0,0,e.width,e.height)})),ac(h.current,y,[...l,r(n,e)])},s=e=>{const t=r(n,e);t.w*g>=1&&t.h*g>=1&&d((e=>[...e,t])),Cs.removeEventListener("mousemove",o),Cs.removeEventListener("mouseup",s)};Cs.addEventListener("mousemove",o),Cs.addEventListener("mouseup",s)},style:S},l.map(((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:t.y*g+"px",left:t.x*g+"px",width:t.w*g+"px",height:t.h*g+"px"}},e("button",{"aria-label":o.removeHighlightText,onClick:b(n),onMouseDown:w,onMouseUp:w,type:"button"},e(a,null)))))))),e(s,{options:o,action:i,setAction:u}))};return function({onError:r}){const[o,s]=t.useState();return i({onBeforeScreenshot:t.useCallback((()=>{u.display="none"}),[]),onScreenshot:t.useCallback(((e,t)=>{ic(Cs.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),s({canvas:n,dpi:t})})),n.width=e.videoWidth,n.height=e.videoHeight}),[]),onAfterScreenshot:t.useCallback((()=>{u.display="block"}),[]),onError:t.useCallback((e=>{u.display="block",r(e)}),[])}),o?e(l,{screenshot:o}):e("div",null)}}const uc=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>
2{const o=Cs.createElement("canvas");return{input:cc({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise((e=>{o.toBlob(e,"image/png")}));if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}}),lc={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",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient"},dc=Io;async function pc(e,t){const n=lc[e],r=dc.Sentry=dc.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const o=r[e];if("function"==typeof o&&!("_isShim"in o))return o;
2const s=function(e){const t=$e(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${i}/${e}.min.js`,n).toString()}(n),a=Io.document.createElement("script");a.src=s,a.crossOrigin="anonymous",a.referrerPolicy="strict-origin",t&&a.setAttribute("nonce",t);const c=new Promise(((e,t)=>{a.addEventListener("load",(()=>e())),a.addEventListener("error",t)})),u=Io.document.currentScript,l=Io.document.body||Io.document.head||u?.parentElement;if(!l)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);l.appendChild(a);try{await c}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if("function"!=typeof d)throw new Error(`Could not load integration: ${e}`);return d}const fc=$s({lazyLoadIntegration:pc}),hc=$s({getModalIntegration:()=>nc,getScreenshotIntegration:()=>uc}),mc=(e={})=>{const t=e.levels||R,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in s&&Fo((({args:r,level:o})=>{$e()===e&&t.includes(o)&&function(e,t,n){const r=Qo(t),o=new Error,i={level:Qo(t),extra:{arguments:e}};Ne((s=>{if(s.addEventProcessor((e=>(e.logger="console",le(e,{handled:n,type:"auto.core.capture_console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${ne(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(t,r,{captureContext:i,syntheticException:o})}return}const a=e.find((e=>e instanceof Error));if(a)return void co(a,i);const c=ne(e," ");s.captureMessage(c,r,{captureContext:i,syntheticException:o})}))}(r,o,n)}))}}};function gc(e,t,n){return"util"in s&&"function"==typeof s.util.format?s.util.format(...e):function(e,t,n){return e.map((e=>_(e)?String(e):JSON.stringify(xn(e,t,n)))).join(" ")}(e,t,n)}function _c(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach(((e,t)=>{n[`sentry.message.parameter.${t}`]=e})),n}const yc={[bt]:"auto.log.console"},vc=(e={})=>{const t=e.levels||R;return{name:"ConsoleLogs",setup(e){const{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:i=1e3}=e.getOptions();n?Fo((({args:n,level:o})=>{if($e()!==e||!t.includes(o))return;const s=n[0],a=n.slice(1);if("assert"===o){if(!s){Xn({level:"error",message:a.length>0?`Assertion failed: ${gc(a,r,i)}`:"Assertion failed",attributes:yc})}return}const c="log"===o,u=n.length>1&&"string"==typeof n[0]&&(l=n[0],!/%[sdifocO]/.test(l));var l;const d={...yc,...u?_c(s,a):{}};Xn({level:c?"info":o,message:gc(n,r,i),severityNumber:c?10:void 0,attributes:d})})):o&&N.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled")}}};function bc(e,t,n=()=>{},r=()=>{}){let o;try{o=e()}catch(e){throw t(e),n(),e}return function(e,t,n,r){if(b(e))return e.then((e=>(n(),r(e),e)),(e=>{throw t(e),n(),e}));return n(),r(e),e}(o,t,n,r)}class Sc{constructor(e={}){this._traceId=e.traceId||Se(),this._spanId=e.spanId||we()}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){}}function wc(e,t,n,r=mn()){const i=r&&hn(r);i&&(o&&N.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[kt]:t,[wt]:n}))}function kc(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[wt],o=n[kt];"string"==typeof r&&"number"==typeof o&&(t[e.name]={value:o,unit:r})})),t}class xc{constructor(e={}){this._traceId=e.traceId||Se(),this._spanId=e.spanId||we(),this._startTime=e.startTimestamp||ge(),this._links=e.links,this._attributes={},this.setAttributes({[bt]:"manual",[vt]: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?Zt: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=on(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(gt,"custom"),this}end(e){this._endTime||(this._endTime=on(e),function(e){if(!o)return;const{description:t="< unknown name >",op:n="< unknown op >"}=an(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${hn(e)===e?"root ":""}span "${t}" with ID ${r}`;N.log(i)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[vt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:un(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[bt],profile_id:this._attributes[Et],exclusive_time:this._attributes[Ct],measurements:kc(this._events),is_segment:this._isStandaloneSpan&&hn(this)===this||void 0,segment_id:this._isStandaloneSpan?hn(this).spanContext().spanId:void 0,links:rn(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o&&N.log("[Tracing] Adding an event to span:",e);const r=Ec(t)?t:n||ge(),i=Ec(t)?{}:t||{}
2,s={name:e,time:on(r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=$e();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===hn(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=$e();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=wn(e[0]),r=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!o&&r&&{dsn:at(r)}},{beforeSendSpan:s,ignoreSpans:a}=t?.getOptions()||{},c=a?.length?e.filter((e=>!Un(an(e),a))):e,u=e.length-c.length;u&&t?.recordDroppedEvent("before_send","span",u);const l=s?e=>{const t=an(e);return s(t)||(gn(),t)}:an,d=[];for(const e of c){const t=l(e);t&&d.push(Ln(t))}return Tn(i,d)}([this],e)):(o&&N.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){(Vt(this).scope||Pe()).captureEvent(t)}}_convertSpanToTransaction(){if(!Cc(an(this)))return;this._name||(o&&N.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=Vt(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=fn(this).filter((e=>e!==this&&!function(e){return e instanceof xc&&e.isStandaloneSpan()}(e))).map((e=>an(e))).filter(Cc),i=this._attributes[gt];delete this._attributes[xt],r.forEach((e=>{delete e.data[xt]}));const s={contexts:{trace:en(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:wn(this)},request:n,...i&&{transaction_info:{source:i}}},a=kc(this._events);return a&&Object.keys(a).length&&(o&&N.log("[Measurements] Adding measurements to transaction event",JSON.stringify(a,void 0,2)),s.measurements=a),s}}function Ec(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Cc(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Tc="__SENTRY_SUPPRESS_TRACING__";function Ic(e,t){const n=jc();if(n.startSpan)return n.startSpan(e,t);const r=Nc(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return Ne(a,(()=>Bc(i)((()=>{const n=Pe(),s=Fc(n,i),a=e.onlyIfParent&&!s?new Sc:Dc({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return xe(n,a),bc((()=>t(a)),(()=>{const{status:e}=an(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:Ft,message:"internal_error"})}),(()=>{a.end()}))}))))}function Mc(e,t){const n=jc();if(n.startSpanManual)return n.startSpanManual(e,t);const r=Nc(e),{forceTransaction:o,parentSpan:i,scope:s}=e,a=s?.clone();return Ne(a,(()=>Bc(i)((()=>{const n=Pe(),s=Fc(n,i),a=e.onlyIfParent&&!s?new Sc:Dc({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return xe(n,a),bc((()=>t(a,(()=>a.end()))),(()=>{const{status:e}=an(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:Ft,message:"internal_error"})}))}))))}function Rc(e){const t=jc();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=Nc(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>Ne(e.scope,t):void 0!==o?e=>Oc(o,e):e=>e())((()=>{const t=Pe(),i=Fc(t,o);return e.onlyIfParent&&!i?new Sc:Dc({parentSpan:i,spanArguments:n,forceTransaction:r,scope:t})}))}const Ac=(e,t)=>{const n=Oe(a());if(n.continueTrace)return n.continueTrace(e,t);const{sentryTrace:r,baggage:o}=e,i=$e(),s=Pt(o);return i&&!function(e,t){const n=lt(e);return t&&n&&t!==n?(N.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)||(N.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,s?.org_id)?Lc(t):Ne((e=>{const n=Kt(r,o);return e.setPropagationContext(n),t()}))};function Oc(e,t){const n=jc();return n.withActiveSpan?n.withActiveSpan(e,t):Ne((n=>(xe(n,e||void 0),t(n))))}function Pc(e){const t=jc();return t.suppressTracing?t.suppressTracing(e):Ne((t=>
2{t.setSDKProcessingMetadata({[Tc]:!0});const n=e();return t.setSDKProcessingMetadata({[Tc]:void 0}),n}))}function Lc(e){return Ne((t=>(t.setPropagationContext({traceId:Se(),sampleRand:Math.random()}),o&&N.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Oc(null,e))))}function Dc({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Nt()){const r=new Sc;if(n||!e){vn(r,{sampled:"false",sample_rate:"0",transaction:t.name,...wn(r)})}return r}const i=Le();let s;if(e&&!n)s=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[Tc]&&cn(e),s=i?new xc({...n,parentSpanId:r,traceId:o,sampled:i}):new Sc({traceId:o});pn(e,s);const a=$e();a&&(a.emit("spanStart",s),n.endTimestamp&&a.emit("spanEnd",s));return s}(e,r,t),pn(e,s);else if(e){const n=wn(e),{traceId:o,spanId:i}=e.spanContext(),a=cn(e);s=$c({traceId:o,parentSpanId:i,...t},r,a),vn(s,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:a}={...i.getPropagationContext(),...r.getPropagationContext()};s=$c({traceId:e,parentSpanId:o,...t},r,a),n&&vn(s,n)}return function(e){if(!o)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=an(e),{spanId:i}=e.spanContext(),s=cn(e),a=hn(e),c=a===e,u=`[Tracing] Starting ${s?"sampled":"unsampled"} ${c?"root ":""}span`,l=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&l.push(`parent ID: ${r}`),!c){const{op:e,description:t}=an(a);l.push(`root ID: ${a.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}N.log(`${u}\n  ${l.join("\n  ")}`)}(s),Ht(s,r,i),s}function Nc(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=on(e.startTime),delete n.startTime,n}return t}function jc(){return Oe(a())}function $c(e,t,n){const r=$e(),i=r?.getOptions()||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??n,u=a.spanAttributes,l=t.getPropagationContext(),[d,p,f]=t.getScopeData().sdkProcessingMetadata[Tc]?[!1]:function(e,t,n){if(!Nt(e))return[!1];let r,i;"function"==typeof e.tracesSampler?(i=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?i=t.parentSampled:void 0!==e.tracesSampleRate&&(i=e.tracesSampleRate,r=!0);const s=Jt(i);if(void 0===s)return o&&N.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(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return o&&N.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,s,r];const a=n<s;return a||o&&N.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[a,s,r]}(i,{name:s,parentSampled:c,attributes:u,parentSampleRate:Jt(l.dsc?.sample_rate)},l.sampleRand),h=new xc({...e,attributes:{[gt]:"custom",[_t]:void 0!==p&&f?p:void 0,...u},sampled:d});return!d&&r&&(o&&N.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",h),h}function Fc(e,t){if(t)return t;if(null===t)return;const n=Ee(e);if(!n)return;const r=$e();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?hn(n):n}function Bc(e){return void 0!==e?t=>Oc(e,t):e=>e()}const Uc=["trace","debug","info","warn","error","fatal"];function zc(e={}){const t=new Set(e.levels??Uc),n=e.client;return{log(e){const{type:r,level:o,message:i,args:s,tag:a,date:c,...u}=e,l=n||$e();if(!l)return;const d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){const t=qc[e];if(t)return t}if("number"==typeof t){const e=Wc[t];if(e)return e}return"info"}(r,o);if(!t.has(d))return;const{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=l.getOptions(),h=[];i&&h.push(i),s&&s.length>0&&h.push(gc(s,p,f));const m=h.join(" ");u["sentry.origin"]="auto.log.consola",a&&(u["consola.tag"]=a),r&&(u["consola.type"]=r),null!=o&&"number"==typeof o&&(u["consola.level"]=o),Xn({level:d,message:m,attributes:u})}}}const qc={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},Wc={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};const Hc=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!d(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,s=Vc(t.originalException,r,o);if(s){const t={...e.contexts},r=xn(s,n);return y(r)&&($(r,"__sentry_skip_normalization__",!0),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}};
2function Vc(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]=d(i)||"string"==typeof i?n?ee(`${i}`,n):`${i}`:i}if(t&&void 0!==e.cause)if(d(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:Vc(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]=d(n)?n.toString():n}}return o}catch(e){o&&N.error("Unable to extract extra data from the Error object:",e)}return null}const Jc=100,Gc=10,Kc="flag.evaluation.";function Yc(e){const t=Pe().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function Xc(e,t,n=Jc){const r=Pe().getScopeData().contexts;r.flags||(r.flags={values:[]});!function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r)return void(o&&N.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const i=e.findIndex((e=>e.flag===t));-1!==i&&e.splice(i,1);e.length===r&&e.shift();e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function Zc(e,t,n=Gc){if("boolean"!=typeof t)return;const r=mn();if(!r)return;const o=an(r).data;if(`${Kc}${e}`in o)return void r.setAttribute(`${Kc}${e}`,t);Object.keys(o).filter((e=>e.startsWith(Kc))).length<n&&r.setAttribute(`${Kc}${e}`,t)}const Qc=()=>
2({name:"FeatureFlags",processEvent:(e,t,n)=>Yc(e),addFeatureFlag(e,t){Xc(e,t),Zc(e,t)}});function eu(e={}){const t=e.client||$e();if(!wo()||!t)return{};const n=Oe(a());if(n.getTraceData)return n.getTraceData(e);const r=e.scope||Pe(),o=e.span||mn(),i=o?nn(o):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Yt(t,r,n)}(r),s=Lt(o?wn(o):Sn(t,r));if(!Gt.test(i))return N.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const c={"sentry-trace":i,baggage:s};if(e.propagateTraceparent){const e=o?function(e){const{traceId:t,spanId:n}=e.spanContext();return Xt(t,n,cn(e))}(o):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Xt(t,r,n)}(r);e&&(c.traceparent=e)}return c}const tu="gen_ai.prompt",nu="gen_ai.system",ru="gen_ai.request.model",ou="gen_ai.request.stream",iu="gen_ai.request.temperature",su="gen_ai.request.max_tokens",au="gen_ai.request.frequency_penalty",cu="gen_ai.request.presence_penalty",uu="gen_ai.request.top_p",lu="gen_ai.request.top_k",du="gen_ai.request.encoding_format",pu="gen_ai.request.dimensions",fu="gen_ai.response.finish_reasons",hu="gen_ai.response.model",mu="gen_ai.response.id",gu="gen_ai.usage.input_tokens",_u="gen_ai.usage.output_tokens",yu="gen_ai.usage.total_tokens",vu="gen_ai.operation.name",bu="gen_ai.request.messages",Su="gen_ai.response.text",wu="gen_ai.request.available_tools",ku="gen_ai.response.streaming",xu="gen_ai.response.tool_calls",Eu="openai.response.id",Cu="openai.response.model",Tu="openai.response.timestamp",Iu="openai.usage.completion_tokens",Mu="openai.usage.prompt_tokens",Ru={CHAT:"chat",RESPONSES:"responses",EMBEDDINGS:"embeddings"},Au="anthropic.response.timestamp",Ou=2e4,Pu=e=>(new TextEncoder).encode(e).length,Lu=e=>Pu(JSON.stringify(e));function Du(e,t){if(Pu(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const i=Math.floor((n+r)/2),s=e.slice(0,i);Pu(s)<=t?(o=s,n=i+1):r=i-1}return o}function Nu(e){return"string"==typeof e?e:e.text}function ju(e,t){return"string"==typeof e?t:{...e,text:t}}function $u(e,t){return e&&"object"==typeof e?function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const n={...e,content:""},r=t-Lu(n);if(r<=0)return[];const o=Du(e.content,r);return[{...e,content:o}]}(e,t):function(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}(e)?function(e,t){const{parts:n}=e,r=n.map((e=>ju(e,"")));let o=t-Lu({...e,parts:r});if(o<=0)return[];const i=[];for(const e of n){const t=Nu(e),n=Pu(t);if(!(n<=o)){if(0===i.length){const n=Du(t,o);n&&i.push(ju(e,n));break}break}i.push(e),o-=n}return i.length>0?[{...e,parts:i}]:[]}(e,t):[]:[]}function Fu(e){return function(e,t){if(!Array.isArray(e)||0===e.length)return e;if(Lu(e)<=t)return e;const n=e.map(Lu);let r=0,o=e.length;for(let i=e.length-1;i>=0;i--){const e=n[i];if(e&&r+e>t)break;e&&(r+=e),o=i}if(o===e.length)return $u(e[e.length-1],t);return e.slice(o)}(e,Ou)}function Bu(e){return e.includes("messages")?"messages":e.includes("completions")?"completions":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function Uu(e){return`gen_ai.${Bu(e)}`}function zu(e,t){return e?`${e}.${t}`:t}function qu(e,t,n,r,o){if(void 0!==t&&e.setAttributes({[gu]:t}),void 0!==n&&e.setAttributes({[_u]:n}),void 0!==t||void 0!==n||void 0!==r||void 0!==o){const i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[yu]:i})}}function Wu(e){if("string"==typeof e)return Du(e,Ou);if(Array.isArray(e)){const t=Fu(e);return JSON.stringify(t)}return JSON.stringify(e)}function Hu(e,t,n,r){if(!e||"object"!=typeof e)return;const o=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:Ft,message:e.error?.type??"internal_error"}),co(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,r);o||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}(e,t),function(e,t){"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"!==e.content_block.type&&"server_tool_use"!==e.content_block.type||(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]}))}(e,t),function(e,t,n){if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){const n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}
2(e,t,n),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}function Vu(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",(e=>{Hu(e,r,n,t)})),e.on("message",(()=>{!function(e,t,n){t.isRecording()&&(e.responseId&&t.setAttributes({[mu]:e.responseId}),e.responseModel&&t.setAttributes({[hu]:e.responseModel}),qu(t,e.promptTokens,e.completionTokens,e.cacheCreationInputTokens,e.cacheReadInputTokens),t.setAttributes({[ku]:!0}),e.finishReasons.length>0&&t.setAttributes({[fu]:JSON.stringify(e.finishReasons)}),n&&e.responseTexts.length>0&&t.setAttributes({[Su]:e.responseTexts.join("")}),n&&e.toolCalls.length>0&&t.setAttributes({[xu]:JSON.stringify(e.toolCalls)}),t.end())}(r,t,n)})),e.on("error",(e=>{co(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:Ft,message:"stream_error"}),t.end())})),e}const Ju=["messages.create","messages.stream","messages.countTokens","models.get","completions.create","models.retrieve","beta.messages.create"];function Gu(e,t){if("messages"in t){const n=Wu(t.messages);e.setAttributes({[bu]:n})}if("input"in t){const n=Wu(t.input);e.setAttributes({[bu]:n})}"prompt"in t&&e.setAttributes({[tu]:JSON.stringify(t.prompt)})}function Ku(e,t,n){t&&"object"==typeof t&&("type"in t&&"error"===t.type?function(e,t){t.error&&(e.setStatus({code:Ft,message:t.error.type||"internal_error"}),co(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}(e,t):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[Su]:t.content.map((e=>e.text)).filter((e=>!!e)).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);n.length>0&&e.setAttributes({[xu]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[Su]:t.completion}),"input_tokens"in t&&e.setAttributes({[Su]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[mu]:t.id,[hu]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[Au]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[Au]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&qu(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}(e,t)))}function Yu(e,t,n){throw co(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:Ft,message:"internal_error"}),t.end()),e}function Xu(e,t,n,r,o,i,s,a,c,u,l){const d={name:`${i} ${o[ru]??"unknown"} stream-response`,op:Uu(s),attributes:o};return Mc(d,u&&!l?async t=>{try{c.recordInputs&&a&&Gu(t,a);return async function*(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)Hu(o,r,n,t),yield o}finally{r.responseId&&t.setAttributes({[mu]:r.responseId}),r.responseModel&&t.setAttributes({[hu]:r.responseModel}),qu(t,r.promptTokens,r.completionTokens,r.cacheCreationInputTokens,r.cacheReadInputTokens),t.setAttributes({[ku]:!0}),r.finishReasons.length>0&&t.setAttributes({[fu]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length>0&&t.setAttributes({[Su]:r.responseTexts.join("")}),n&&r.toolCalls.length>0&&t.setAttributes({[xu]:JSON.stringify(r.toolCalls)}),t.end()}}(await e.apply(n,r),t,c.recordOutputs??!1)}catch(e){return Yu(e,t,s)}}:e=>{try{c.recordInputs&&a&&Gu(e,a);return Vu(t.apply(n,r),e,c.recordOutputs??!1)}catch(t){return Yu(t,e,s)}})}function Zu(e,t,n,r){return new Proxy(e,{apply(o,i,s){const a=function(e,t){const n={[nu]:"anthropic",[vu]:Bu(t),[bt]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];t.tools&&Array.isArray(t.tools)&&(n[wu]=JSON.stringify(t.tools)),n[ru]=t.model??"unknown","temperature"in t&&(n[iu]=t.temperature),"top_p"in t&&(n[uu]=t.top_p),"stream"in t&&(n[ou]=t.stream),"top_k"in t&&(n[lu]=t.top_k),"frequency_penalty"in t&&(n[au]=t.frequency_penalty),"max_tokens"in t&&(n[su]=t.max_tokens)}else n[ru]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return n}(s,t),c=a[ru]??"unknown",u=Bu(t),l="object"==typeof s[0]?s[0]:void 0,d=Boolean(l?.
2stream),p="messages.stream"===t;return d||p?Xu(e,o,n,s,a,u,t,l,r,d,p):Ic({name:`${u} ${c}`,op:Uu(t),attributes:a},(e=>(r.recordInputs&&l&&Gu(e,l),bc((()=>o.apply(n,s)),(e=>{co(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}})}),(()=>{}),(t=>Ku(e,t,r.recordOutputs))))))}})}function Qu(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=zu(t,String(r));return"function"==typeof o&&function(e){return Ju.includes(e)}(i)?Zu(o,i,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?Qu(o,i,n):o}})}function el(e,t){const n=Boolean($e()?.getOptions().sendDefaultPii);return Qu(e,"",{recordInputs:n,recordOutputs:n,...t})}const tl=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],nl="google_genai",rl="chats.create",ol="chat";function il(e,t,n,r){e&&!function(e,t){const n=e?.promptFeedback;if(n?.blockReason){const e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:Ft,message:`Content blocked: ${e}`}),co(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(e,t,n))}function sl(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){const e=t;if("model"in e&&"string"==typeof e.model)return e.model;if("modelVersion"in e&&"string"==typeof e.modelVersion)return e.modelVersion}return"unknown"}function al(e,t,n){const r={[nu]:nl,[vu]:Bu(e),[bt]:"auto.ai.google_genai"};if(t){if(r[ru]=sl(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,function(e){const t={};return"temperature"in e&&"number"==typeof e.temperature&&(t[iu]=e.temperature),"topP"in e&&"number"==typeof e.topP&&(t[uu]=e.topP),"topK"in e&&"number"==typeof e.topK&&(t[lu]=e.topK),"maxOutputTokens"in e&&"number"==typeof e.maxOutputTokens&&(t[su]=e.maxOutputTokens),"frequencyPenalty"in e&&"number"==typeof e.frequencyPenalty&&(t[au]=e.frequencyPenalty),"presencePenalty"in e&&"number"==typeof e.presencePenalty&&(t[cu]=e.presencePenalty),t}(e)),"tools"in e&&Array.isArray(e.tools)){const t=e.tools.flatMap((e=>e.functionDeclarations));r[wu]=JSON.stringify(t)}}}else r[ru]=sl({},n);return r}function cl(e,t){if("contents"in t){const n=Wu(t.contents);e.setAttributes({[bu]:n})}if("message"in t){const n=Wu(t.message);e.setAttributes({[bu]:n})}if("history"in t){const n=Wu(t.history);e.setAttributes({[bu]:n})}}function ul(e,t,n,r){const o=t===rl;return new Proxy(e,{apply(e,i,s){const a=s[0],c=al(t,a,n),u=c[ru]??"unknown",l=Bu(t);return function(e){return e.includes("Stream")||e.endsWith("generateContentStream")||e.endsWith("sendMessageStream")}(t)?Mc({name:`${l} ${u} stream-response`,op:Uu(t),attributes:c},(async o=>{try{r.recordInputs&&a&&cl(o,a);return async function*(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)il(o,r,n,t),yield o}finally{const e={[ku]:!0};r.responseId&&(e[mu]=r.responseId),r.responseModel&&(e[hu]=r.responseModel),void 0!==r.promptTokens&&(e[gu]=r.promptTokens),void 0!==r.completionTokens&&(e[_u]=r.completionTokens),void 0!==r.totalTokens&&(e[yu]=r.totalTokens),r.finishReasons.length&&(e[fu]=JSON.stringify(r.finishReasons)),n&&r.responseTexts.length&&(e[Su]=r.responseTexts.join("")),n&&r.toolCalls.length&&(e[xu]=JSON.stringify(r.toolCalls)),t.setAttributes(e),t.end()}}(await e.apply(n,s),o,Boolean(r.recordOutputs))}catch(e){throw o.setStatus({code:Ft,message:"internal_error"}),co(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),o.end(),e}})):Ic({name:o?`${l} ${u} create`:`${l} ${u}`,op:Uu(t),attributes:c},(i=>(r.recordInputs&&a&&cl(i,a),bc((()=>e.apply(n,s)),(e=>{co(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})}),(()=>{}),(e=>{o||function(e,t,n){if(t&&"object"==typeof t){if(t.usageMetadata&&"object"==typeof t.usageMetadata){const n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[gu]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[_u]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[yu]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const n=t.candidates.map((e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map((e=>"string"==typeof e.text?e.text:"")).filter((e=>e.length>0)).join(""):"")).filter((e=>e.length>0));n.length>0&&e.setAttributes({[Su]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[xu]:JSON.stringify(n)})}}}(i,e,r.recordOutputs)})))))}})}function ll(e,t="",n){return new Proxy(e,{get:(e,r,o)=>{const i=Reflect.get(e,r,o),s=zu(t,String(r));if("function"==typeof i&&function(e){if(tl.includes(e))return!0;const t=e.split(".").pop();return tl.includes(t)}(s)){if(s===rl){const t=ul(i,s,e,n);return function(...e){const r=t(...e);return r&&"object"==typeof r?ll(r,ol,n):r}}return ul(i,s,e,n)}return"function"==typeof i?i.bind(e):i&&"object"==typeof i?ll(i,s,n):i}})}function dl(e,t){const n=Boolean($e()?.getOptions().sendDefaultPii);return ll(e,"",{recordInputs:n,recordOutputs:n,...t})}
2const pl="OpenAI",fl=["responses.create","chat.completions.create","embeddings.create"],hl=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];function ml(e){return e.includes("chat.completions")?Ru.CHAT:e.includes("responses")?Ru.RESPONSES:e.includes("embeddings")?Ru.EMBEDDINGS:e.split(".").pop()||"unknown"}function gl(e){return`gen_ai.${ml(e)}`}function _l(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function yl(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function vl(e,t,n,r){void 0!==t&&e.setAttributes({[Mu]:t,[gu]:t}),void 0!==n&&e.setAttributes({[Iu]:n,[_u]:n}),void 0!==r&&e.setAttributes({[yu]:r})}function bl(e,t,n,r){e.setAttributes({[Eu]:t,[mu]:t}),e.setAttributes({[Cu]:n,[hu]:n}),e.setAttributes({[Tu]:new Date(1e3*r).toISOString()})}function Sl(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}function wl(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&Sl(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function kl(e,t,n,r){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");if(e instanceof Error)return r.setStatus({code:Ft,message:"internal_error"}),void co(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});if(!("type"in e))return;const o=e;if(hl.includes(o.type)){if(n&&("response.output_item.done"===o.type&&"item"in o&&t.responsesApiToolCalls.push(o.item),"response.output_text.delta"===o.type&&"delta"in o&&o.delta))t.responseTexts.push(o.delta);else if("response"in o){const{response:e}=o;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,t.responseTimestamp=e.created_at??t.responseTimestamp,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),n&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(o.type)}function xl(e,t,n){if(!t||"object"!=typeof t)return;const r=t;if(function(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion"===e.object}(r)){if(function(e,t,n){if(bl(e,t.id,t.model,t.created),t.usage&&vl(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){const r=t.choices.map((e=>e.finish_reason)).filter((e=>null!==e));if(r.length>0&&e.setAttributes({[fu]:JSON.stringify(r)}),n){const n=t.choices.map((e=>e.message?.tool_calls)).filter((e=>Array.isArray(e)&&e.length>0)).flat();n.length>0&&e.setAttributes({[xu]:JSON.stringify(n)})}}}(e,r,n),n&&r.choices?.length){const t=r.choices.map((e=>e.message?.content||""));e.setAttributes({[Su]:JSON.stringify(t)})}}else!function(e){return null!==e&&"object"==typeof e&&"object"in e&&"response"===e.object}(r)?function(e){if(null===e||"object"!=typeof e||!("object"in e))return!1;const t=e;return"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")}(r)&&function(e,t){e.setAttributes({[Cu]:t.model,[hu]:t.model}),t.usage&&vl(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)}(e,r):(!function(e,t,n){if(bl(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[fu]:JSON.stringify([t.status])}),t.usage&&vl(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),n){const n=t;if(Array.isArray(n.output)&&n.output.length>
20){const t=n.output.filter((e=>"object"==typeof e&&null!==e&&"function_call"===e.type));t.length>0&&e.setAttributes({[xu]:JSON.stringify(t)})}}}(e,r,n),n&&r.output_text&&e.setAttributes({[Su]:r.output_text}))}function El(e,t){if("messages"in t){const n=Wu(t.messages);e.setAttributes({[bu]:n})}if("input"in t){const n=Wu(t.input);e.setAttributes({[bu]:n})}}function Cl(e,t,n,r){return async function(...o){const i=r||function(){const e=Pe().getClient(),t=e?.getIntegrationByName(pl),n=!!t&&Boolean(e?.getOptions().sendDefaultPii);return{recordInputs:t?.options?.recordInputs??n,recordOutputs:t?.options?.recordOutputs??n}}(),s=function(e,t){const n={[nu]:"openai",[vu]:ml(t),[bt]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0],r=[...Array.isArray(t.tools)?t.tools:[],...t.web_search_options&&"object"==typeof t.web_search_options?[{type:"web_search_options",...t.web_search_options}]:[]];r.length>0&&(n[wu]=JSON.stringify(r))}if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){const t=e[0];n[ru]=t.model??"unknown","temperature"in t&&(n[iu]=t.temperature),"top_p"in t&&(n[uu]=t.top_p),"frequency_penalty"in t&&(n[au]=t.frequency_penalty),"presence_penalty"in t&&(n[cu]=t.presence_penalty),"stream"in t&&(n[ou]=t.stream),"encoding_format"in t&&(n[du]=t.encoding_format),"dimensions"in t&&(n[pu]=t.dimensions)}else n[ru]="unknown";return n}(o,t),a=s[ru]||"unknown",c=ml(t),u=o[0];return u&&"object"==typeof u&&!0===u.stream?Mc({name:`${c} ${a} stream-response`,op:gl(t),attributes:s},(async r=>{try{i.recordInputs&&o[0]&&"object"==typeof o[0]&&El(r,o[0]);return async function*(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)yl(o)?wl(o,r,n):_l(o)&&kl(o,r,n,t),yield o}finally{bl(t,r.responseId,r.responseModel,r.responseTimestamp),vl(t,r.promptTokens,r.completionTokens,r.totalTokens),t.setAttributes({[ku]:!0}),r.finishReasons.length&&t.setAttributes({[fu]:JSON.stringify(r.finishReasons)}),n&&r.responseTexts.length&&t.setAttributes({[Su]:r.responseTexts.join("")});const e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];e.length>0&&t.setAttributes({[xu]:JSON.stringify(e)}),t.end()}}(await e.apply(n,o),r,i.recordOutputs??!1)}catch(e){throw r.setStatus({code:Ft,message:"internal_error"}),co(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),r.end(),e}})):Ic({name:`${c} ${a}`,op:gl(t),attributes:s},(async r=>{try{i.recordInputs&&o[0]&&"object"==typeof o[0]&&El(r,o[0]);const t=await e.apply(n,o);return xl(r,t,i.recordOutputs),t}catch(e){throw co(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e}}))}}function Tl(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=function(e,t){return e?`${e}.${t}`:t}(t,String(r));return"function"==typeof o&&function(e){return fl.includes(e)}(i)?Cl(o,i,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?Tl(o,i,n):o}})}function Il(e,t){return Tl(e,"",t)}const Ml=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],Rl=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],Al={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"},Ol=["select","insert","upsert","update","delete"];function Pl(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Ll(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function Dl(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=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&Al[n]||"filter",`${o}(${e}, ${r.join(".")})`}function Nl(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>Ic({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[bt]:"auto.db.supabase",[vt]:"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:Ft}),co(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:$t}),e.end(),t))).catch((t=>{throw e.setStatus({code:Ft}),e.end(),co(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t})).then(...o)))})}function jl(e){Ll(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 Ol)Ll(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,r){const i=Reflect.apply(e,n,r),s=i.constructor;return o&&N.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),$l(s),i}}),Pl(e.prototype[t]))}(r.constructor),r}}),Pl(e.prototype.from))}function $l(e){Ll(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){const r=Ol,o=t,i=function(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(o.method,o.headers);if(!r.includes(i))return Reflect.apply(e,t,n);if(!o?.url?.pathname||"string"!=typeof o.url.pathname)return Reflect.apply(e,t,n);const s=o.url.pathname.split("/"),a=s.length>0?s[s.length-1]:"",c=[];
2for(const[e,t]of o.url.searchParams.entries())c.push(Dl(e,t));const u=Object.create(null);if(y(o.body))for(const[e,t]of Object.entries(o.body))u[e]=t;const l=`${"select"===i?"":`${i}${u?"(...) ":""}`}${c.join(" ")} from(${a})`,d={"db.table":a,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[bt]:"auto.db.supabase",[vt]:"db"};return c.length&&(d["db.query"]=c),Object.keys(u).length&&(d["db.body"]=u),Ic({name:l,attributes:d},(r=>Reflect.apply(e,t,[]).then((e=>{if(r&&(e&&"object"==typeof e&&"status"in e&&Ut(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={};c.length&&(n.query=c),Object.keys(u).length&&(n.body=u),co(t,(e=>(e.addEventProcessor((e=>(le(e,{handled:!1,type:"auto.db.supabase.postgres"}),e))),e.setContext("supabase",n),e)))}const t={type:"supabase",category:`db.${i}`,message:l},n={};return c.length&&(n.query=c),Object.keys(u).length&&(n.body=u),Object.keys(n).length&&(t.data=n),Zo(t),e}),(e=>{throw r&&(Ut(r,500),r.end()),e})).then(...n)))}}),Pl(e.prototype.then))}const Fl=e=>{if(!e)return void(o&&N.warn("Supabase integration was not installed because no Supabase client was provided."));jl(e.constructor===Function?e:e.constructor),function(e){const t=e.auth;if(t&&!Ll(e.auth)){for(const n of Ml){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=Nl(r))}for(const n of Rl){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=Nl(r,!0))}Pl(e.auth)}}(e)},Bl=e=>{return t=e.supabaseClient,{setupOnce(){Fl(t)},name:"Supabase"};var t};function Ul(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const zl=Ul;function ql(e,t,n,r,o){Xn({level:e,message:t,attributes:n,severityNumber:o},r)}function Wl(e,t,{scope:n}={}){ql("trace",e,t,n)}function Hl(e,t,{scope:n}={}){ql("debug",e,t,n)}function Vl(e,t,{scope:n}={}){ql("info",e,t,n)}function Jl(e,t,{scope:n}={}){ql("warn",e,t,n)}function Gl(e,t,{scope:n}={}){ql("error",e,t,n)}function Kl(e,t,{scope:n}={}){ql("fatal",e,t,n)}function Yl(e,t){let n;return Mn(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n))),n}function Xl(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=ct(t);if(!a)return;const c=ht(a,n.tunnel);s=r?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=Yl(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){return Yl(e,t?.length?t:["event"])}}).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,n])=>n.send(function(e,t){return Tn(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[...o.values(),r];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}function Zl(e,t,n,r){sr({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Ql(e,t=1,n){Zl("counter",e,t,n)}function ed(e,t,n){Zl("gauge",e,t,n)}function td(e,t,n){Zl("distribution",e,t,n)}const nd=new Map,rd=new Set;function od(e,t){return function(e){if(s._sentryModuleMetadata)for(const t of Object.keys(s._sentryModuleMetadata)){const n=s._sentryModuleMetadata[t];if(rd.has(t))continue;rd.add(t);const r=e(t);for(const e of r.reverse())if(e.filename){nd.set(e.filename,n);break}}}(e),nd.get(t)}function id(e,t){t.exception?.values?.forEach((t=>{t.stacktrace?.frames?.forEach((t=>{if(!t.filename||t.module_metadata)return;const n=od(e,t.filename);n&&(t.module_metadata=n)}))}))}function sd(e){e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{delete e.module_metadata}))}))}const ad=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{Mn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(sd(t),e[1]=t)}}
2))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;id(e.getOptions().stackParser,t)}))}});let cd=!1;function ud(){function e(){const e=mn(),t=e&&hn(e);if(t){const e="internal_error";o&&N.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:Ft,message:e})}}cd||(e.tag="sentry_tracingErrorCallback",cd=!0,Ri(e),Pi(e))}function ld(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}const dd=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function pd(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=dd.exec(t);return n?n.slice(1):[]}function fd(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=ld(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function hd(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)}const md=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in s&&!!s.window,o=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const o=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(o||i){const e=o?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,i=t?function(e,t){e=fd(e).slice(1),t=fd(t).slice(1);const n=hd(e.split("/")),r=hd(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("/")}(t,e):function(e,t){let n=pd(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n}(e);r.filename=`${n}${i}`}return r}}({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:t?.frames?.map((e=>o(e)))})}};var t}))}}}catch{return e}}(t)),t}}};const gd=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{Mn(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&(sd(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;id(e.getOptions().stackParser,t)}))},processEvent(t){const n=function(e){const t=Z(e);if(!t)return;return t.filter((e=>!!e.filename&&null!=(e.lineno??e.colno))).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(_d))).map((e=>e.slice(_d.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 _d="_sentryBundlerPluginAppKey:";function yd(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 vd(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: ${ee(n.join(", "),100)}`}function bd(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(o=r.originalException,d(o)&&"ZodError"===o.name&&Array.isArray(o.issues))&&0!==r.originalException.issues.length))return n;var o;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(yd);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
2ilename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:vd(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.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 Sd=(e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>bd(t,e.saveZodIssuesAsAttachment,n,r)}};const wd={startProfiler:function(){const e=$e();if(!e)return void(bi&&N.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):bi&&N.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const e=$e();if(!e)return void(bi&&N.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):bi&&N.warn("ProfilingIntegration is not available")}};function kd(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:at(r)}},i=function(e){return[{type:"user_report"},e]}(e);return Tn(o,[i])}function xd(e={}){const t=Io.document,n=t?.head||t?.body;if(!n)return void(bi&&N.error("[showReportDialog] Global document not defined"));const r=Pe(),o=$e(),i=o?.getDsn();if(!i)return void(bi&&N.error("[showReportDialog] DSN not configured"));const s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||yo()},a=Io.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=function(e,t){const n=dt(e);if(!n)return"";const r=`${ft(n)}embed/error-page/`;let o=`dsn=${at(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{Io.removeEventListener("message",e)}};Io.addEventListener("message",e)}n.appendChild(a)}const Ed=s,Cd=new WeakMap,Td=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(Cd.has($e()))for(const t of e)Ne((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}}uo(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){if(!("ReportingObserver"in Uo))return;new Ed.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Cd.set(e,!0)}}};function Id(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){const n=ri(e);if(!n||ni(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 Md(e)===Md(t)}(e,r)}function Md(e){return"/"===e[e.length-1]?e.slice(0,-1):e}const Rd=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!Wo())return;Ho((n=>{if($e()!==e)return;const{response:r,args:o,error:i,virtualError:s}=n,[a,c]=o;r&&function(e,t,n,r,o){if(Ld(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;Nd()&&([i,a]=Ad("Cookie",e),[s,c]=Ad("Set-Cookie",n));lo(Dd({url:e.url,method:e.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c,error:o,type:"fetch"}))}}(t,a,r,c,i||s)}),!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in s))return;mi((n=>{if($e()!==e)return;const{error:r,virtualError:o}=n,i=n.xhr,s=i[hi];if(!s)return;const{method:a,request_headers:c}=s;try{!function(e,t,n,r,o){if(Ld(e,t.status,t.responseURL)){let e,i,s;if(Nd()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(i=Pd(e))}catch{}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=r}lo(Dd({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:s,responseCookies:i,error:o,type:"xhr"}))}}(t,i,a,c,r||o)}catch(e){bi&&N.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}};function Ad(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=Pd(t))}catch{}return[n,r]}function Od(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Pd(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function Ld(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))))&&!Id(n,$e());var r,o}
2function Dd(e){const t=$e(),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:Od(e.responseHeaders)}}};return le(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function Nd(){const e=$e();return!!e&&Boolean(e.getOptions().sendDefaultPii)}const jd=s,$d=(e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=jd.document,r=jd.location&&si(jd.location.href);if(!n||!r)return e;const o=e.exception?.values;if(!o?.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const s=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach((e=>{const n=e.stacktrace;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,n=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=>te(e,0)));const i=Math.min(r-1,o);t.context_line=te(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>te(e,0)))}(t,e,r),e}(e,s,r,t))))})),e}(e,t)}};function Fd(e){return new URLSearchParams(e).toString()}function Bd(e,t=N){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Fd(e)];if(!e)return[void 0]}catch(n){return ls&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ls&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ud(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function zd(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return ls&&N.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}function qd(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 Wd(e){let t;if("xhr"in e){const n=e.xhr[hi];t=n&&Bd(n.body)[0]}else{t=Bd(Ud(e.input))[0]}return t}function Hd(e){let t;try{const n=JSON.parse(e);!!n.query&&(t=n)}finally{return t}}const Vd=e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",((e,n)=>{const r=an(e).data||{};if(!("http.client"===r[vt]))return;const o=r[It]||r["http.url"],i=r[Tt]||r["http.method"];if(!m(o)||!m(i))return;const{endpoints:s}=t,a=oe(o,s),c=Wd(n);if(a&&c){const t=Hd(c);if(t){const n=qd(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=i?.url,{endpoints:r}=t,o=oe(e,r),s=Wd(n);if(o&&i&&s){const e=Hd(s);if(!i.graphql&&e){const t=qd(e);i["graphql.document"]=e.query,i["graphql.operation"]=t}}}}))}(t,e)}});const Jd=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o??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)))}},Gd=(e=!0)=>{const t=ai.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Kd=()=>{const e=Gd();return e?.activationStart??0};function Yd(e,t,n){ai.document&&ai.addEventListener(e,t,n)}function Xd(e,t,n){ai.document&&ai.removeEventListener(e,t,n)}let Zd=-1;const Qd=new Set,ep=e=>{if(function(e){return"pagehide"===e.type||"hidden"===ai.document?.visibilityState}(e)&&Zd>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(const e of Qd)e();isFinite(Zd)||(Zd="visibilitychange"===e.type?e.timeStamp:0,Xd("prerenderingchange",ep,!0))}},tp=()=>
2{if(ai.document&&Zd<0){const e=Kd(),t=ai.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((t=>"hidden"===t.name&&t.startTime>e))[0]?.startTime;Zd=t??("hidden"!==ai.document?.visibilityState||ai.document?.prerendering?1/0:0),Yd("visibilitychange",ep,!0),Yd("pagehide",ep,!0),Yd("prerenderingchange",ep,!0)}return{get firstHiddenTime(){return Zd},onHidden(e){Qd.add(e)}}};const np=(e,t=-1)=>{const n=Gd();let r="navigate";n&&(ai.document?.prerendering||Kd()>0?r="prerender":ai.document?.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}},rp=new WeakMap;function op(e,t){return rp.get(e)||rp.set(e,new t),rp.get(e)}class ip{constructor(){ip.prototype.__init.call(this),ip.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const sp=(e,t,n={})=>{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{}},ap=e=>{let t=!1;return()=>{t||(e(),t=!0)}},cp=e=>{ai.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},up=[1800,3e3],lp=[.1,.25],dp=(e,t={})=>{((e,t={})=>{cp((()=>{const n=tp(),r=np("FCP");let o;const i=sp("paint",(e=>{for(const t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-Kd(),0),r.entries.push(t),o(!0)))}));i&&(o=Jd(e,r,up,t.reportAllChanges))}))})(ap((()=>{const n=np("CLS",0);let r;const o=tp(),i=op(t,ip),s=e=>{for(const t of e)i._processEntry(t);i._sessionValue>n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=sp("layout-shift",s);a&&(r=Jd(e,n,lp,t.reportAllChanges),o.onHidden((()=>{s(a.takeRecords()),r(!0)})),ai?.setTimeout?.(r))})))};let pp=0,fp=1/0,hp=0;const mp=e=>{e.forEach((e=>{e.interactionId&&(fp=Math.min(fp,e.interactionId),hp=Math.max(hp,e.interactionId),pp=hp?(hp-fp)/7+1:0)}))};let gp;const _p=()=>gp?pp:performance.interactionCount||0,yp=()=>{"interactionCount"in performance||gp||(gp=sp("event",mp,{type:"event",buffered:!0,durationThreshold:0}))};let vp=0;class bp{constructor(){bp.prototype.__init.call(this),bp.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){vp=_p(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor((_p()-vp)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this._longestInteractionList.at(-1);let n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),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)}this._onAfterProcessingINPCandidate?.(n)}}}const Sp=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==ai.document?.visibilityState||e(t)};Yd("visibilitychange",t,!0),Yd("pagehide",t,!0)},wp=e=>{const t=ai.requestIdleCallback||ai.setTimeout;"hidden"===ai.document?.visibilityState?e():(Yd("visibilitychange",e=ap(e),{once:!0,capture:!0}),t((()=>{e(),Xd("visibilitychange",e,{capture:!0})}
2)),Sp(e))},kp=[200,500];class xp{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const Ep=[2500,4e3],Cp=[800,1800],Tp=e=>{ai.document?.prerendering?cp((()=>Tp(e))):"complete"!==ai.document?.readyState?addEventListener("load",(()=>Tp(e)),!0):setTimeout(e)},Ip={},Mp={};let Rp,Ap,Op,Pp;function Lp(e,t=!1){return qp("cls",e,Fp,Rp,t)}function Dp(e,t=!1){return qp("lcp",e,Bp,Ap,t)}function Np(e){return qp("inp",e,zp,Pp)}function jp(e,t){return Wp(e,t),Mp[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);sp(e,(t=>{$p(e,{entries:t})}),t)}(e),Mp[e]=!0),Hp(e,t)}function $p(e,t){const n=Ip[e];if(n?.length)for(const r of n)try{r(t)}catch(t){ls&&N.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${X(r)}\nError:`,t)}}function Fp(){return dp((e=>{$p("cls",{metric:e}),Rp=e}),{reportAllChanges:!0})}function Bp(){return((e,t={})=>{cp((()=>{const n=tp(),r=np("LCP");let o;const i=op(t,xp),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-Kd(),0),r.entries=[t],o())},a=sp("largest-contentful-paint",s);if(a){o=Jd(e,r,Ep,t.reportAllChanges);const n=ap((()=>{s(a.takeRecords()),a.disconnect(),o(!0)})),i=e=>{e.isTrusted&&(wp(n),Xd(e.type,i,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])Yd(e,i,{capture:!0})}}))})((e=>{$p("lcp",{metric:e}),Ap=e}),{reportAllChanges:!0})}function Up(){return((e,t={})=>{const n=np("TTFB"),r=Jd(e,n,Cp,t.reportAllChanges);Tp((()=>{const e=Gd();e&&(n.value=Math.max(e.responseStart-Kd(),0),n.entries=[e],r(!0))}))})((e=>{$p("ttfb",{metric:e}),Op=e}))}function zp(){return((e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=tp();cp((()=>{yp();const r=np("INP");let o;const i=op(t,bp),s=e=>{wp((()=>{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=sp("event",s,{durationThreshold:t.durationThreshold??40});o=Jd(e,r,kp,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden((()=>{s(a.takeRecords()),o(!0)})))}))})((e=>{$p("inp",{metric:e}),Pp=e}))}function qp(e,t,n,r,o=!1){let i;return Wp(e,t),Mp[e]||(i=n(),Mp[e]=!0),r&&t({metric:r}),Hp(e,t,o?i:void 0)}function Wp(e,t){Ip[e]=Ip[e]||[],Ip[e].push(t)}function Hp(e,t,n){return()=>{n&&n();const r=Ip[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}const Vp=s,Jp="sentryReplaySession",Gp="Unable to send Replay",Kp=15e4,Yp=5e3,Xp=2e7,Zp=36e5;var Qp=Object.defineProperty,ef=(e,t,n)=>((e,t,n)=>t in e?Qp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),tf=(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))(tf||{});function nf(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function rf(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function of(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,sf).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 sf(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=of(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}class af{constructor(){ef(this,"idNodeMap",new Map),ef(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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);
2this.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 cf({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function uf({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function lf(e){return e.toLowerCase()}function df(e){return e.toUpperCase()}const pf="__rrweb_original__";function ff(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?lf(t):null}function hf(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function mf(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const gf={};function _f(e){const t=gf[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 gf[e]=r.bind(window)}function yf(...e){return _f("setTimeout")(...e)}function vf(...e){return _f("clearTimeout")(...e)}function bf(e){try{return e.contentDocument}catch(e){}}let Sf=1;const wf=new RegExp("[^a-z0-9-_:]");function kf(){return Sf++}let xf,Ef;const Cf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Tf=/^(?:[a-z+]+:)?\/\//i,If=/^www\..*/i,Mf=/^(data:)([^,]*),(.*)/i;function Rf(e,t){return(e||"").replace(Cf,((e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(Tf.test(a)||If.test(a))return`url(${c}${a}${c})`;if(Mf.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 Af=/^[^ \t\n\r\u000c]+/,Of=/^[, \t\n\r\u000c]+/;const Pf=new WeakMap;function Lf(e,t){return t&&""!==t.trim()?Nf(e,t):t}function Df(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Nf(e,t){let n=Pf.get(e);if(n||(n=e.createElement("a"),Pf.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function jf(e,t,n,r,o,i,s){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return Lf(e,r);if("xlink:href"===n&&"#"!==r[0])return Lf(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return Lf(e,r);if("srcset"===n)return 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(Of),!(n>=t.length);){let i=r(Af);if(","===i.slice(-1))i=Lf(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Lf(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);if("style"===n){let t=Rf(r,Nf(e));return s&&s.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const o=e.slice(0,n).trim();t.has(o)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,s)),t}return"object"===t&&"data"===n?Lf(e,r):"function"==typeof i?i(n,r,o):r}function $f(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Ff(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ff(e.parentNode,t,n,r+1):-1}function Bf(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{return!1}}}function Uf(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=Ff(s,Bf(r,o)),c<0)return!0;a=Ff(s,Bf(t,n),c>=0?c:1/0)}else{if(a=Ff(s,Bf(t,n)),a<0)return!1;c=Ff(s,Bf(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!i}catch(e){}return!!i}function zf(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:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1,ignoreCSSAttributes:w}=t,k=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:tf.Document,childNodes:[],compatMode:e.compatMode}:{type:tf.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:tf.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};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:_,maskTextSelector:y,unmaskTextSelector:v,ignoreCSSAttributes:b}=t,S=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),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=lf(e.tagName);return wf.test(t)?"div":t}(e);let k={};const x=e.attributes.length;for(let t=0;t<x;t++){const r=e.attributes[t];r.name&&!$f(w,r.name,r.value)&&(k[r.name]=jf(n,w,lf(r.name),r.value,e,c,b))}if("link"===w&&s){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=of(t)),r&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=Rf(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=of(e.sheet);t&&(k._cssText=Rf(t,Nf(n)))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=ff(t),r=hf(t,df(w),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Uf(t,g,y,_,v,cf({type:n,tagName:df(w),maskInputOptions:a}));k.value=uf({isMasked:e,element:t,value:r,maskInputFn:u})}o&&(k.checked=o)}"option"===w&&(e.selected&&!a.select?k.selected=!0:delete k.selected);if("canvas"===w&&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=pf in o?o[pf]:o;
2if(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)||(k.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)&&(k.rr_dataURL=t)}if("img"===w&&d){xf||(xf=n.createElement("canvas"),Ef=xf.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{xf.width=t.naturalWidth,xf.height=t.naturalHeight,Ef.drawImage(t,0,0),k.rr_dataURL=xf.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?k.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop));if(S){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==w||f(k.src)||(S||bf(e)||(k.rr_src=k.src),delete k.src);let E;try{customElements.get(w)&&(E=!0)}catch(e){}return{type:tf.Element,tagName:w,attributes:k,childNodes:[],isSVG:Df(e)||void 0,needBlock:S,rootId:m,isCustom:E}}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:w});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{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=of(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=Rf(p,Nf(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const g=Uf(e,r,i,o,s,n);f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=uf({isMasked:Uf(e,r,i,o,s,cf({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})}return{type:tf.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:k});case e.CDATA_SECTION_NODE:return{type:tf.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:tf.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}function qf(e){return null==e?"":e.toLowerCase()}function Wf(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:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x=5e3,onBlockedImageLoad:E,onStylesheetLoad:C,stylesheetLoadTimeout:T=5e3,keepIframeSrcFn:I=()=>!1,newlyAddedElement:M=!1,ignoreCSSAttributes:R}=t;let{preserveWhiteSpace:A=!0}=t;const O=zf(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:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:I,newlyAddedElement:M,ignoreCSSAttributes:R});if(!O)return console.warn(e,"not serialized"),null;let P;P=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===tf.Comment)return!0;
2if(e.type===tf.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"===mf(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(qf(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===qf(e.attributes.name)||"icon"===qf(e.attributes.rel)||"apple-touch-icon"===qf(e.attributes.rel)||"shortcut icon"===qf(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&qf(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(qf(e.attributes.property).match(/^(og|twitter|fb):/)||qf(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===qf(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===qf(e.attributes.name)||"googlebot"===qf(e.attributes.name)||"bingbot"===qf(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===qf(e.attributes.name)||"generator"===qf(e.attributes.name)||"framework"===qf(e.attributes.name)||"publisher"===qf(e.attributes.name)||"progid"===qf(e.attributes.name)||qf(e.attributes.property).match(/^article:/)||qf(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===qf(e.attributes.name)||"yandex-verification"===qf(e.attributes.name)||"csrf-token"===qf(e.attributes.name)||"p:domain_verify"===qf(e.attributes.name)||"verify-v1"===qf(e.attributes.name)||"verification"===qf(e.attributes.name)||"shopify-checkout-api-token"===qf(e.attributes.name)))return!0}}return!1}(O,y)&&(A||O.type!==tf.Text||O.isStyle||O.textContent.replace(/^\s+|\s+$/gm,"").length)?kf():-2;const L=Object.assign(O,{id:P});if(r.add(e,L),-2===P)return null;w&&w(e);let D=!p;if(L.type===tf.Element){D=D&&!L.needBlock;const t=e.shadowRoot;t&&rf(t)&&(L.isShadowHost=!0)}if((L.type===tf.Document||L.type===tf.Element)&&D){y.headWhitespace&&L.type===tf.Element&&"head"===L.tagName&&(A=!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:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onBlockedImageLoad:E,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:I,ignoreCSSAttributes:R},M=e.childNodes?Array.from(e.childNodes):[];for(const e of M){const n=Wf(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=Wf(n,t);r&&(rf(e.shadowRoot)&&(r.isShadow=!0),L.childNodes.push(r))}}if(e.parentNode&&nf(e.parentNode)&&rf(e.parentNode)&&(L.isShadow=!0),L.type!==tf.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=yf((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{vf(r),i=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return yf(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=bf(e);if(t&&k){const n=Wf(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:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:I,ignoreCSSAttributes:R});n&&k(e,n)}}),x),L.type===tf.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&E)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&E(t,L,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return L.type===tf.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===mf(L.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=yf((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{vf(i),o=!0,t()}))}(e,(()=>{if(C){const t=Wf(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:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:A,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:x,onStylesheetLoad:C,stylesheetLoadTimeout:T,keepIframeSrcFn:I,ignoreCSSAttributes:R});t&&C(e,t)}}),T),L.type===tf.Element&&delete L.needBlock,L}function Hf(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Vf="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 Jf={map:{},getId:()=>(console.error(Vf),-1),getNode:()=>(console.error(Vf),null),removeNodeFromMap(){console.error(Vf)},has:()=>(console.error(Vf),!1),reset(){console.error(Vf)}};function Gf(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(!function(...e){hh("clearTimeout")(...e)}
2(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=mh((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function Kf(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){mh((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Kf(e,t,i||{},!0)}function Yf(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{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Jf=new Proxy(Jf,{get:(e,t,n)=>("map"===t&&console.error(Vf),Reflect.get(e,t,n))}));let Xf=Date.now;function Zf(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Qf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function eh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function th(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function nh(e,t,n,r,o){if(!e)return!1;const i=th(e);if(!i)return!1;const s=Bf(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=Ff(i,s);let c=-1;return!(a<0)&&(r&&(c=Ff(i,Bf(null,r))),a>-1&&c<0||a<c)}function rh(e,t){return-2===t.getId(e)}function oh(e,t){if(nf(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||oh(e.parentNode,t))}function ih(e){return Boolean(e.changedTouches)}function sh(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ah(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ch(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Xf=()=>(new Date).getTime());class uh{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-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 lh(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function dh(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=lh(n);)n=t;return n}(e);return t.contains(n)}function ph(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||dh(e))}const fh={};function hh(e){const t=fh[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 fh[e]=r.bind(window)}function mh(...e){return hh("setTimeout")(...e)}var gh=(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))(gh||{}),_h=(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))(_h||{}),yh=(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))(yh||{}),vh=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(vh||{}),bh=(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))(bh||{});function Sh(e){try{return e.contentDocument}catch(e){}}function wh(e){return"__ln"in e}class kh{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 n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&wh(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&
2(n.previous=t)}else if(e.nextSibling&&wh(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;this.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 xh=(e,t)=>`${e}@${t}`;class Eh{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 kh,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!ph(o))return;const i=nf(o.parentNode)?this.mirror.getId(lh(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=Wf(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=>{sh(e,this.mirror)&&!nh(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ah(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ch(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{nh(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,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});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)Th(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Ih(this.droppedSet,e)||Th(this.removes,e,this.mirror)?Ih(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(!rh(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;nh(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Uf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,th(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=ff(t),o=t.tagName;r=hf(t,o,n);const i=cf({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=uf({isMasked:Uf(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(nh(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);
2if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Sh(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"),!$f(t.tagName,n)&&(o.attributes[n]=jf(this.doc,lf(t.tagName),lf(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(nh(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=nf(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);nh(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||rh(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Ch(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||oh(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[xh(n,r)]?Ch(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!nf(e.target)||!rf(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(rh(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[xh(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);nh(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach((e=>this.genAdds(e))),ch(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","ignoreCSSAttributes"].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 Ch(e,t){e.delete(t),t.childNodes?.forEach((t=>Ch(e,t)))}function Th(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 Ih(e,t){return 0!==e.size&&Mh(e,t)}function Mh(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Mh(e,n))}let Rh;const Ah=e=>{if(!Rh)return e;return(...t)=>{try{return e(...t)}catch(e){if(Rh&&!0===Rh(e))return()=>{};throw e}}},Oh=[];function Ph(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{}return e&&e.target}function Lh(e,t){const n=new Eh;Oh.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(Ah((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Dh({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let u=null;return Object.keys(yh).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEac
2h((s=>{let a=lf(s);const l=(t=>s=>{const a=Ph(s);if(nh(a,r,o,i,!0))return;let c=null,l=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=vh.Mouse;break;case"touch":c=vh.Touch;break;case"pen":c=vh.Pen}c===vh.Touch?yh[t]===yh.MouseDown?l="TouchStart":yh[t]===yh.MouseUp&&(l="TouchEnd"):vh.Pen}else ih(s)&&(c=vh.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===vh.Touch||l.startsWith("Mouse")&&c===vh.Mouse)&&(c=null)):yh[t]===yh.Click&&(c=u,u=null);const d=ih(s)?s.changedTouches[0]:s;if(!d)return;const p=n.getId(a),{clientX:f,clientY:h}=d;Ah(e)({type:yh[l],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(yh[s]){case yh.MouseDown:case yh.MouseUp:a=a.replace("mouse","pointer");break;case yh.TouchStart:case yh.TouchEnd:return}c.push(Hf(a,l,t))})),Ah((()=>{c.forEach((e=>e()))}))}function Nh({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return Hf("scroll",Ah(Gf(Ah((s=>{const a=Ph(s);if(!a||nh(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Zf(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const jh=["INPUT","TEXTAREA","SELECT"],$h=new WeakMap;function Fh({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Ph(e);const l=e.isTrusted,g=n&&df(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||jh.indexOf(g)<0||nh(n,r,o,i,!0))return;const y=n;if(y.classList.contains(s)||a&&y.matches(a))return;const v=ff(n);let b=hf(y,g,v),S=!1;const w=cf({maskInputOptions:c,tagName:g,type:v}),k=Uf(n,p,h,f,m,w);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=uf({isMasked:k,element:n,value:b,maskInputFn:u}),_(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const x=n.name;"radio"===v&&x&&S&&t.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((e=>{if(e!==n){const t=uf({isMasked:k,element:e,value:hf(e,g,v),maskInputFn:u});_(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function _(t,r){const o=$h.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){$h.set(t,r);const o=n.getId(t);Ah(e)({...r,id:o})}}const y=("last"===l.input?["change"]:["input","change"]).map((e=>Hf(e,Ah(g),t))),v=t.defaultView;if(!v)return()=>{y.forEach((e=>e()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&y.push(...S.map((e=>Kf(e[0],e[1],{set(){Ah(g)({target:this,isTrusted:!1})}},!1,v)))),Ah((()=>{y.forEach((e=>e()))}))}function Bh(e){return function(e,t){if(Wh("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Wh("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Wh("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Wh("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 Uh(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function zh({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Ah((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function qh(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Lh(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=Gf(Ah((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),i),u=Ah(Gf(Ah((e=>{const t=Ph(e),{clientX:n,clientY:o}=ih(e)?e.changedTouches[0]:e;s||(s=Xf()),a.push({x:n,y:o,id:r.getId(t),timeOffset:Xf()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?_h.Drag:e instanceof MouseEvent?_h.MouseMove:_h.TouchMove)})),o,{trailing:!1})),l=[Hf("mousemove",u,n),Hf("touchmove",u,n),Hf("drag",u,n)];return Ah((()=>{l.forEach((e=>e()))}))}(e),i=Dh(e),s=Nh(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Hf("resize",Ah(Gf(Ah((()=>{const t=Qf(),o=eh();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=Fh(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=Ah((s=>Gf(Ah((i=>{const a=Ph(i);if(!a||nh(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:s,id:o.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),i.media||500))),c=[Hf("play",a(bh.Play),s),Hf("pause",a(bh.Pause),s),Hf("seeked",a(bh.Seeked),s),Hf("volumechange",a(bh.VolumeChange),s),Hf("ratechange",a(bh.RateChange),s)];return Ah((()=>
vendor: 5,494 bytes, line 2
2{c.forEach((e=>e()))}))}(e);let l=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:Ah(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Uh(o,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:Ah(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Uh(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Ah(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Uh(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ah(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Uh(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)}))}));const c={};Hh("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Hh("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Hh("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Hh("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,o])=>{u[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Ah(((r,o,i)=>{const[s,a]=i,{id:c,styleId:u}=Uh(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:s,index:[...Bh(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Ah(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Uh(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Bh(o),s]}]}),r.apply(o,i)}))})})),Ah((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=zh(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:Ah(((o,s,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(s,[c,u,l]);const{id:d,styleId:p}=Uh(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Bh(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Ah(((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:u,styleId:l}=Uh(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:Bh(i.parentRule)}),o.apply(i,a)}))}),Ah((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=Yf(t.fonts,"add",(function(t){return function(n){return mh(Ah((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),Ah((()=>{r.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=Ah((()=>{const e=t.getSelection();if(!e||a&&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;nh(a,r,o,i,!0)||nh(l,r,o,i,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}s({ranges:c})}));return c(),Hf("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Yf(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ah((()=>{Oh.forEach((e=>e.reset())),r?.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),p(),f(),h(),m(),g.forEach((e=>e()))}))}function Wh(e){return void 0!==window[e]}function Hh(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Vh{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)))}
2getRemoteId(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 Jh{constructor(){this.crossOriginIframeMirror=new Vh(kf),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Gh{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Vh(kf),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Vh(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){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=Sh(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}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 gh.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:gh.IncrementalSnapshot,data:{source:_h.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gh.Meta:case gh.Load:case gh.DomContentLoaded:return!1;case gh.Plugin:return t;case gh.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case gh.IncrementalSnapshot:switch(t.data.source){case _h.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 _h.Drag:case _h.TouchMove:case _h.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case _h.ViewportResize:return!1;case _h.MediaInteraction:case _h.MouseInteraction:case _h.Scroll:case _h.CanvasMutation:case _h.Input:return this.replaceIds(t.data,e,["id"]),t;case _h.StyleSheetRule:case _h.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _h.Font:return t;case _h.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case _h.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.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.forEac
2h((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===tf.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Kh{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Yh{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(!rf(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Lh({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Nh({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),mh((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(zh({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=Sh(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(Yf(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&ph(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 Xh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zh="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qh=0;Qh<64;Qh++)Zh[Xh.charCodeAt(Qh)]=Qh;class em{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class tm{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new uh,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:sf(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 nm{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(...e){hh("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let rm,om;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const im=new af;function sm(e={}){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:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:x={},mousemoveWait:E,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:M=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:P,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:j,getCanvasManager:$}=e;Rh=N;const F=!I||window.parent===window;let B=!1;if(!F)try{window.parent.document&&(B=!1)}catch(e){B=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!B)return()=>{};
2void 0!==E&&void 0===k.mousemove&&(k.mousemove=E),im.reset();const U=!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:{},z=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let q;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const H=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!B&&(e=w(e)),e};rm=(e,o)=>{const i=e;if(i.timestamp=Xf(),!Oh[0]?.isFrozen()||i.type===gh.FullSnapshot||i.type===gh.IncrementalSnapshot&&i.data.source===_h.Mutation||Oh.forEach((e=>e.unfreeze())),F)t?.(H(i),o);else if(B){const e={type:"rrweb",event:H(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===gh.FullSnapshot)q=i,W=0;else if(i.type===gh.IncrementalSnapshot){if(i.data.source===_h.Mutation&&i.data.isAttachIframe)return;W++;const e=r&&W>=r,t=n&&q&&i.timestamp-q.timestamp>n;(e||t)&&ee(!0)}};const V=e=>{rm({type:gh.IncrementalSnapshot,data:{source:_h.Mutation,...e}})},J=e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.Scroll,...e}}),G=e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.CanvasMutation,...e}}),K=new tm({mutationCb:V,adoptedStyleSheetCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Jh:new Gh({mirror:im,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:I,wrappedEmit:rm});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:im,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const X=new nm,Z=function(e,t){try{return e?e(t):new em}catch{return console.warn("Unable to initialize CanvasManager"),new em}}($,{mirror:im,win:window,mutationCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:x,errorHandler:N}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Kh:new Yh({mutationCb:V,scrollCb:J,bypassOptions:{onMutation:j,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:U,dataURLOptions:x,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:T,inlineImages:O,sampling:k,slimDOMOptions:z,iframeManager:Y,stylesheetManager:K,canvasManager:Z,keepIframeSrcFn:L,processedNodeManager:X,ignoreCSSAttributes:D},mirror:im}),ee=(e=!1)=>{if(!C)return;rm({type:gh.Meta,data:{href:window.location.href,width:eh(),height:Qf()}},e),K.reset(),Q.init(),Oh.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new af,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:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:I=new Set([])}=t||{};return Wf(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:_,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}
2:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:f,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onBlockedImageLoad:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T,newlyAddedElement:!1,ignoreCSSAttributes:I})}(document,{mirror:im,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:U,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:z,dataURLOptions:x,recordCanvas:T,inlineImages:O,onSerialize:e=>{sh(e,im)&&Y.addIframe(e),ah(e,im)&&K.trackLinkElement(e),ch(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)=>{K.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:L,ignoreCSSAttributes:D});if(!t)return console.warn("Failed to snapshot the document");rm({type:gh.FullSnapshot,data:{node:t,initialOffset:Zf(window)}}),Oh.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,im.getId(document))};om=ee;try{const e=[],t=e=>Ah(qh)({onMutation:j,mutationCb:V,mousemoveCb:(e,t)=>rm({type:gh.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.ViewportResize,...e}}),inputCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.Input,...e}}),mediaInteractionCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.MediaInteraction,...e}}),styleSheetRuleCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.StyleSheetRule,...e}}),styleDeclarationCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>rm({type:gh.IncrementalSnapshot,data:{source:_h.Font,...e}}),selectionCb:e=>{rm({type:gh.IncrementalSnapshot,data:{source:_h.Selection,...e}})},customElementCb:e=>{rm({type:gh.IncrementalSnapshot,data:{source:_h.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:U,inlineStylesheet:h,sampling:k,recordDOM:C,recordCanvas:T,inlineImages:O,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:L,blockSelector:i,unblockSelector:s,slimDOMOptions:z,dataURLOptions:x,mirror:im,iframeManager:Y,stylesheetManager:K,shadowDomManager:Q,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:D,plugins:P?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>rm({type:gh.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(Hf("DOMContentLoaded",(()=>{rm({type:gh.DomContentLoaded,data:{}}),"DOMContentLoaded"===M&&n()}))),e.push(Hf("load",(()=>{rm({type:gh.Load,data:{}}),"load"===M&&n()}),window))),()=>{e.forEach((e=>e())),X.destroy(),om=void 0,Rh=void 0}}catch(e){console.warn(e)}}var am,cm;sm.mirror=im,sm.takeFullSnapshot=function(e){if(!om)throw new Error("please take full snapshot after start recording");om(e)},(cm=am||(am={}))[cm.NotStarted=0]="NotStarted",cm[cm.Running=1]="Running",cm[cm.Stopped=2]="Stopped";function um(e){return e>9999999999?e:1e3*e}function lm(e){return e>9999999999?e/1e3:e}function dm(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:gh.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:xn(t,10,1e3)}}),"console"===t.category))))}function pm(e){return e.closest("button,a")||e}function fm(e){const t=hm(e);return t&&t instanceof Element?pm(t):t}function hm(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let mm;function gm(e){return mm||(mm=[],j(Vp,"open",(function(e){return function(...t){if(mm)try{mm.forEach((e=>e()))}catch{}return e.apply(Vp,t)}}))),mm.push(e),()=>{const t=mm?mm.indexOf(e):-1;t>-1&&mm.splice(t,1)}}const _m=new Set([_h.Mutation,_h.StyleSheetRule,_h.StyleDeclaration,_h.AdoptedStyleSheet,_h.CanvasMutation,_h.Selection,_h.MediaInteraction]);class ym{constructor(e,t,n=dm){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=gm((()=>{this._lastMutation=bm()}));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(!vm.includes(e.tagName))return!0;
2if("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:lm(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(e=Date.now()){this._lastMutation=lm(e)}registerScroll(e=Date.now()){this._lastScroll=lm(e)}registerClick(e){const t=pm(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=bm();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:Vp.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:Vp.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=fs((()=>this._checkClicks()),1e3)}}const vm=["A","BUTTON","INPUT"];function bm(){return Date.now()/1e3}function Sm(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(_m.has(n)&&e.registerMutation(t.timestamp),n===_h.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===_h.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=sm.mirror.getNode(r);o instanceof HTMLElement&&n===yh.Click&&e.registerClick(o)}}catch{}}function wm(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var km=(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))(km||{});const xm=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Em(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(xm.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Cm=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?fm(e.event):hm(e.event),n=C(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return wm({category:`ui.${e.name}`,...Tm(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var i,s,a;!(r&&e.clickDetector&&o?.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,s=n,a=fm(t.event),i.handleClick(s,a)),dm(e,n)};function Tm(e,t){const n=sm.mirror.getId(e),r=n&&sm.mirror.getNode(n),o=r&&sm.mirror.getMeta(r),i=o&&function(e){return e.type===km.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>
2e.type===km.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Em(i.attributes)}}:{}}}function Im(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=C(s,{maxStringLength:200})||"<unknown>",l=Tm(s,u);return wm({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&dm(e,n)}const Mm={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:Om(i),end:Om(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=Om(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:Om(f),end:Om(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 Rm(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Am(e){const t=Mm[e.entryType];return t?t(e):null}function Om(e){return((_e()||Vp.performance.timeOrigin)+e)/1e3}function Pm(e){const t=e.entries[e.entries.length-1];return jm(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Lm(e){return void 0!==e.sources}function Dm(e){const t=[],n=[];for(const r of e.entries)if(Lm(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=sm.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return jm(e,"cumulative-layout-shift",n,t)}function Nm(e){const t=e.entries[e.entries.length-1];return jm(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function jm(e,t,n,r){const o=e.value,i=e.rating,s=Om(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((e=>sm.mirror.getId(e))):void 0,attributions:r}}}const $m="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const Fm=["log","warn","error"],Bm="[Replay] ";function Um(e,t="info"){Zo({category:"console",data:{logger:"replay"},level:t,message:`${Bm}${e}`},{level:t})}const zm=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return $m?(Fm.forEach((e=>{n[e]=(...n)=>{N[e](Bm,...n),t&&Um(n.join(""),Qo(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),N.error(Bm,r),e?co(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Um(r,"error")},n.infoTick=(...e)=>{N.log(Bm,...e),t&&setTimeout((()=>Um(e[0])),0)}):Fm.forEach((e=>{n[e]=()=>{}})),n}();class qm extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Wm{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>Xp)throw new qm;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?um(e):null}}class Hm{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){$m&&zm.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return $m&&zm.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Vm{constructor(e){this._worker=new Hm(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()}
2addEvent(e){const t=um(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>Xp?Promise.reject(new qm):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{$m&&zm.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 Jm{constructor(e){this._fallback=new Wm,this._compression=new Vm(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()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void($m&&zm.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){$m&&zm.exception(e,"Failed to add events when switching buffers.")}}}function Gm({useCompression:e,workerUrl:t}){if(e&&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(['
vendor: 10,329 bytes, line 2
2var 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});
2']);return URL.createObjectURL(e)}();return""}();if(!t)return;$m&&zm.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Jm(n)}catch(e){$m&&zm.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return $m&&zm.log("Using simple buffer"),new Wm}function Km(){try{return"sessionStorage"in Vp&&!!Vp.sessionStorage}catch{return!1}}function Ym(e){!function(){if(!Km())return;try{Vp.sessionStorage.removeItem(Jp)}catch{}}(),e.session=void 0}function Xm(e){return void 0!==e&&Math.random()<e}function Zm(e){if(Km())try{Vp.sessionStorage.setItem(Jp,JSON.stringify(e))}catch{}}function Qm(e){const t=Date.now();return{id:e.id||se(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function eg({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return Xm(e)?"session":!!t&&"buffer"}(e,t),i=Qm({sampled:o,previousSessionId:r});return n&&Zm(i),i}function tg(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function ng(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return tg(e.started,t,r)||tg(e.lastActivity,n,r)}function rg(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!ng(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function og({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!Km())return null;try{const e=Vp.sessionStorage.getItem(Jp);if(!e)return null;const t=JSON.parse(e);return $m&&zm.infoTick("Loading existing session"),Qm(t)}catch{return null}}();return o?rg(o,{sessionIdleExpire:e,maxReplayDuration:t})?($m&&zm.infoTick("Session in sessionStorage is expired, creating new one..."),eg(r,{previousSessionId:o.id})):o:($m&&zm.infoTick("Creating new session"),eg(r,{previousSessionId:n}))}function ig(e,t,n){return!!ag(e,t)&&(sg(e,t,n),!0)}async function sg(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===gh.Custom}(e))return t(e)}catch(e){return $m&&zm.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 qm,i=n?"addEventSizeExceeded":"addEvent",s=$e();if(s){const e=n?"buffer_overflow":"internal_sdk_error";s.recordDroppedEvent(e,"replay")}if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i})}}function ag(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=um(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||($m&&zm.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function cg(e){return!e.type}function ug(e){return"transaction"===e.type}function lg(e){return"feedback"===e.type}function dg(e){return(t,n)=>{if(!e.isEnabled()||!cg(t)&&!ug(t))return;const r=n.statusCode;!r||r<200||r>=300||(ug(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.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;fs((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}function pg(e){return t=>{e.isEnabled()&&cg(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){dm(e,wm({category:"replay.hydrate-error",data:{url:I()}}))}}(e,t)}}
2function fg(e){const t=$e();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!hg(t))return;const n=function(e){if(!hg(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return wm(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Yp?(n=!0,`${e.slice(0,Yp)}…`):e;if("object"==typeof e)try{const t=xn(e,7);return JSON.stringify(t).length>Yp?(n=!0,`${JSON.stringify(t,null,2).slice(0,Yp)}…`):t}catch{}return e}));return wm({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return wm(e)}(t);n&&dm(e,n)}(e,t)))}function hg(e){return!!e.category}function mg(){const e=Pe().getPropagationContext().dsc;e&&delete e.replay_id;const t=mn();if(t){delete wn(t).replay_id}}function gg(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!cg(t)&&!ug(t)&&!lg(t))return t;if(!e.checkAndHandleExpiredSession())return mg(),t;if(lg(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:gh.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){return!(e.type||!e.exception?.values?.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return $m&&zm.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==Gp&&!(!t.exception||t.type)&&Xm(e.getOptions().errorSampleRate)}(e,t);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Zm(t)}return t}),{id:"Replay"})}function _g(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:gh.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function yg(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((()=>(_g(e,[n]),!1))))}}function vg(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!$m||!e.getOptions()._experiments.traceInternals)&&Id(t,$e())}(e,t.name)||e.addUpdate((()=>(_g(e,[t]),!0))))}function bg(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=Fd(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Sg(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function wg(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 kg(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 xg(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Eg(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>Kp,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,Kp);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function Cg(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n}),{})}function Tg(e,t){const n=function(e,t=Vp.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Vp.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 oe(n,t)}async function Ig(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=Tg(s,n.networkDetailAllowUrls)&&!Tg(s,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Rg(e[0],t);
2if(2===e.length)return Rg(e[1],t);return{}}(n,t):{};if(!e)return Eg(o,r,void 0);const i=Ud(n),[s,a]=Bd(i,zm),c=Eg(o,r,s);if(a)return wg(c,a);return c}(n,t.input,u):xg(u),f=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return xg(o);const i=r?Mg(r.headers,n):{};if(!r||!t&&void 0!==o)return Eg(i,o,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){$m&&zm.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=fs((()=>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?($m&&zm.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):($m&&zm.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&void 0===n?bg(e):n;return r?Eg(o,i,t?e:void 0):xg(i)}catch(e){return $m&&zm.exception(e,"Failed to serialize response body"),Eg(o,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(a)return wg(c,a);return c}(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:f}}(e,t,n),o=kg("resource.fetch",r);vg(n.replay,o)}catch(e){$m&&zm.exception(e,"Failed to capture fetch breadcrumb")}}function Mg(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Rg(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Mg(n,t):Array.isArray(n)?{}:Cg(n,t):{}}async function Ag(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||!Tg(c,n.networkDetailAllowUrls)||Tg(c,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:xg(d),response:xg(p)}}const f=a[hi],h=f?Cg(f.request_headers,n.networkRequestHeaders):{},m=Cg(zd(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?Bd(s,zm):[void 0],[y,v]=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 $m&&zm.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $m&&zm.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return $m&&zm.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=Eg(h,d,g),S=Eg(m,p,y);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:_?wg(b,_):b,response:v?wg(S,v):S}}(e,t,n),o=kg("resource.xhr",r);vg(n.replay,o)}catch(e){$m&&zm.exception(e,"Failed to capture xhr breadcrumb")}}function Og(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=bg(r),i=n.getResponseHeader("content-length")?Sg(n.getResponseHeader("content-length")):function(e,t){try{return bg("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}
2function Pg(e){const t=$e();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)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(Og(t,n),Ag(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(!function(e,t){const{input:n,response:r}=t,o=bg(n?Ud(n):void 0),i=r?Sg(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),Ig(t,n,e))}catch(e){$m&&zm.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch{}}function Lg(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 Dg(e,t,n){return function(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0,a=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:fs})}const Ng=s.navigator;function jg(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void($m&&zm.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&Sm(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!ig(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;ig(e,function(e){const t=e.getOptions();return{type:gh.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&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&($m&&zm.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Zm(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}async function $g({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=$e(),p=Pe(),f=d?.getTransport(),h=d?.getDsn();if(!(d&&f&&h&&i.sampled))return Promise.resolve({});const m={type:"replay_event",replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const i=await Ir(e.getOptions(),r,o,t,e,Le());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c,settings:u}=s?.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0",settings:u},i}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),$m&&zm.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;const _=function(e,t,n,r){return Tn(Fn(e,$n(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,h,d.getOptions().tunnel);let y;try{y=await f.send(_)}catch(e){const t=new Error(Gp);try{t.cause=e}catch{}throw t}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new Fg(y.statusCode);const v=yr({},y);if(_r(v,"replay"))throw new Bg(v);return y}
2class Fg extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Bg extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Ug(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await $g(e),!0}catch(n){if(n instanceof Fg||n instanceof Bg)throw n;if(po("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${Gp} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{fs((async()=>{try{await Ug(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const zg="__THROTTLED";function qg(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(s),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":zg}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}class Wg{constructor({options:e,recordingOptions:t}){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=t,this._options=e,this._debouncedFlush=Dg((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=qg(((e,t)=>function(e,t,n){return ag(e,t)?sg(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new ym(this,o)),$m){const t=e._experiments;zm.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===Vp.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=wm({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=wm({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{Im(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){$m&&zm.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",$m&&zm.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):$m&&zm.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void($m&&zm.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void($m&&zm.log("Buffering is in progress, call `flush()` to save the replay"));$m&&zm.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=og({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($m&&zm.log("Buffering is in progress, call `flush()` to save the replay"));$m&&zm.infoTick("Starting replay in buffer mode");const e=og({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 e=this._canvas;this._stopRecording=sm({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:jg(this),.../iPhone|iPad|iPod/i.test(Ng?.userAgent??"")||/Macintosh/i.test(Ng?.userAgent??"")&&Ng?.maxTouchPoints&&Ng?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{$m&&zm.log("Stopping Replay"+(t?` triggered by ${t}`:"")),mg(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Ym(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$m&&zm.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),$m&&zm.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();$m&&zm.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,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(e){if(!e||!1!==this.session?.sampled)return this.session?.id}
2checkAndHandleExpiredSession(){if(!(this._lastActivity&&tg(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Vp.location.pathname}${Vp.location.hash}${Vp.location.search}`,t=`${Vp.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===zg){const e=wm({category:"replay.throttled"});this.addUpdate((()=>!ig(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||mn(),t=e&&hn(e),n=(t&&an(t).data||{})[gt];if(t&&n&&["route","custom"].includes(n))return an(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Gm({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=og({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!rg(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{Vp.document.addEventListener("visibilitychange",this._handleVisibilityChange),Vp.addEventListener("blur",this._handleWindowBlur),Vp.addEventListener("focus",this._handleWindowFocus),Vp.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=$e(
2);di(Cm(e)),yi(yg(e)),fg(e),Pg(e),ko(gg(e)),t&&(t.on("beforeSendEvent",pg(e)),t.on("afterSendEvent",dg(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)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)})),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({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(jp(e,n))})),r.push(Dp(Rm(Pm,e)),Lp(Rm(Dm,e)),Np(Rm(Nm,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{Vp.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Vp.removeEventListener("blur",this._handleWindowBlur),Vp.removeEventListener("focus",this._handleWindowFocus),Vp.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;ng(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):$m&&zm.log("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:gh.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Am).filter(Boolean)).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(_g(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(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(_g(e,[Lg(Vp.performance.memory)]))}catch{return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-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 Ug({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});
2const t=$e();if(t){const n=e instanceof Bg?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else $m&&zm.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void($m&&zm.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 $m&&zm.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&&$m&&zm.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&&Zm(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some((e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return 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=wm({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Hg(e,t){return[...e,...t].join(",")}const Vg='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Jg=["content-length","content-type","accept"];let Gg=!1;const Kg=e=>new Yg(e);class Yg{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,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:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:w=[],block:k=[],unblock:x=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M}={}){this.name="Replay";const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Hg(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Hg(t,[]),blockSelector:Hg(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Hg(r,[]),ignoreSelector:Hg(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:k,unblock:x,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:c,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:Boolean(a.recordCrossOriginIframes)},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,Zp),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:_,networkRequestHeaders:Xg(y),networkResponseHeaders:Xg(v),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:M,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Vg}`:Vg,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&xs())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Gg}set _isInitialized(e){Gg=e}afterAllSetup(e){xs()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}
2startBuffering(){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(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.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=Jt(n.replaysSessionSampleRate),i=Jt(n.replaysOnErrorSampleRate);null==o&&null==i&&O((()=>{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 Wg({o
2ptions:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Xg(e){return[...Jg,...e.map((e=>e.toLowerCase()))]}function Zg(){const e=$e();return e?.getIntegrationByName("Replay")}var Qg=Object.defineProperty,e_=(e,t,n)=>((e,t,n)=>t in e?Qg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class t_{constructor(){e_(this,"idNodeMap",new Map),e_(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-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 n_(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:n_(e.parentNode,t,n,r+1):-1}function r_(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{return!1}}}const o_="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 i_={map:{},getId:()=>(console.error(o_),-1),getNode:()=>(console.error(o_),null),removeNodeFromMap(){console.error(o_)},has:()=>(console.error(o_),!1),reset(){console.error(o_)}};function s_(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){p_((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>s_(e,t,i||{},!0)}function a_(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{return()=>{}}}function c_(e,t,n,r,o){if(!e)return!1;const i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const s=r_(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=n_(i,s);let c=-1;return!(a<0)&&(r&&(c=n_(i,r_(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(i_=new Proxy(i_,{get:(e,t,n)=>("map"===t&&console.error(o_),Reflect.get(e,t,n))})),Date.now().toString();const u_={};function l_(e){const t=u_[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 u_[e]=r.bind(window)}function d_(...e){return l_("requestAnimationFrame")(...e)}function p_(...e){return l_("setTimeout")(...e)}var f_=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(f_||{});let h_;const m_=e=>{if(!h_)return e;return(...t)=>{try{return e(...t)}catch(e){if(h_&&!0===h_(e))return()=>{};throw e}}};for(var g_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",__="undefined"==typeof Uint8Array?[]:new Uint8Array(256),y_=0;y_<64;y_++)__[g_.charCodeAt(y_)]=y_;const v_=new Map;const b_=(e,t,n)=>{if(!e||!k_(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=v_.get(e);return n||(n=new Map,v_.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 S_(e,t,n){if(e instanceof Array)return e.map((e=>S_(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+=g_[n[t]>>2],o+=g_[(3&n[t])<<4|n[t+1]>>4],o+=g_[(15&n[t+1])<<2|n[t+2]>>
26],o+=g_[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:[S_(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:[S_(e.data,t,n),e.width,e.height]}}if(k_(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:b_(e,t,n)}}return e}const w_=(e,t,n)=>e.map((e=>S_(e,t,n))),k_=(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 x_(e,t,n,r,o){const i=[];try{const s=a_(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i,...s){if(!c_(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["webgl","webgl2"].includes(e))if(s[0]&&"object"==typeof s[0]){const e=s[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...s])}}));i.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((e=>e()))}}function E_(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=a_(e,s,(function(e){return function(...c){const u=e.apply(this,c);if(b_(u,a,this),"tagName"in this.canvas&&!c_(this.canvas,r,o,i,!0)){const e=w_(c,a,this),r={type:t,property:s,args:e};n(this.canvas,r)}return u}}));c.push(u)}catch{const r=s_(e,s,{set(e){n(this.canvas,{type:t,property:s,args:[e],setter:!0})}});c.push(r)}return c}class C_{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&&(h_=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||m_((()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&this.initCanvasFPSObserver()}))()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.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));m_((()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=x_(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){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):d_((t=>this.takeSnapshot(t,!0,e)))}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",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:f_["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=d_(t)};e=d_(t),this.restoreHandlers.push((()=>{e&&cancelAnimationFrame(e)}))}initCanvasMutationObserver(e,t,n,r){const o=x_(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=a_(t.CanvasRenderingContext2D.prototype,a,(function(i){return function(...s){return c_(this.canvas,n,r,o,!0)||p_((()=>{const n=w_(s,t,this);e(this.canvas,{type:f_["2D"],property:a,args:n})}),0),i.apply(this,s)}}));i.push(s)}catch{const n=s_(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:f_["2D"],property:a,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),s=function(e,t,n,r,o){const i=[];return i.push(...E_(t.WebGLRenderingContext.prototype,f_.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...E_(t.WebGL2RenderingContext.prototype,f_.WebGL2,e,n,r,o,0,t)),()=>{i.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=>{c_(o,e,t,n,!0)||r.push(o)}))};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch{}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)){const t=e.getContext(e.__context);!1===t?.getContextAttributes()?.preserveDrawingBuffer&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then((t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:a,maxCanvasSize:c},[t])})).catch((e=>{m_((()=>{throw this.snapshotInProgressMap.delete(n),e}))()}))}})),!0}startPendingCanvasMutationFlusher(){d_((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,d_(e)};d_(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),d_((()=>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]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var T_;new t_,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(T_||(T_={}));const I_={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}}},M_=1280,R_=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,M_):M_,n?Math.min(n,M_):M_]};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 C_({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o(r),r},...I_[e]||I_.medium}},async snapshot(e,t){(await i).snapshot(e,t)}}};function A_(e,t,n,r,o){if(!e.fetchData)return;const{method:i,url:s}=e.fetchData,a=Nt()&&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){Ut(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:Ft,message:"internal_error"});e.end()}(n,e),function(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}(n,e,o),delete r[t]))}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}="object"==typeof o?o:{spanOrigin:o},l=!!mn(),d=a&&l?Rc(function(e,t,n){const r=ri(e);return{name:r?`${t} ${oi(r)}`:t,attributes:P_(e,r,t,n)}}(s,i,c)):new Sc;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=eu({span:n,propagateTraceparent:r}),i=o["sentry-trace"],s=o.baggage,a=o.traceparent;if(!i)return;const c=t.headers||(k(e)?e.headers:void 0);if(c){if(function(e){return"undefined"!=typeof Headers&&S(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?O_(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]&&O_(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=>O_(e))):O_(n));s&&!u&&o.push(s);const l={...c,"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0};return r&&a&&!t&&(l.traceparent=a),l}}return{...o}}(t,n,Nt()&&l?d:void 0,u);r&&(e.args[1]=n,n.headers=r)}const p=$e();if(p){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};p.emit("beforeOutgoingRequestSpan",d,t)}return d}function O_(e){return e.split(",").some((e=>e.trim().startsWith(Rt)))}function P_(e,t,n,r){const o={url:e,type:"fetch","http.method":n,[bt]:r,[vt]:"http.client"};return t&&(ni(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 L_(e){return"number"==typeof e&&isFinite(e)}function D_(e,t,n,{...r}){const o=an(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),Oc(e,(()=>{const e=Rc({startTime:t,...r});return e&&e.end(n),e}))}
2function N_(e){const t=$e();if(!t)return;const{name:n,transaction:r,attributes:o,startTime:i}=e,{release:s,environment:a,sendDefaultPii:c}=t.getOptions(),u=t.getIntegrationByName("Replay"),l=u?.getReplayId(),d=Pe(),p=d.getUser(),f=void 0!==p?p.email||p.id||p.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}return Rc({name:n,attributes:{release:s,environment:a,user:f||void 0,profile_id:h||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":ai.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...o},startTime:i,experimental:{standalone:!0}})}function j_(){return ai.addEventListener&&ai.performance}function $_(e){return e/1e3}function F_(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function B_(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n),r=!0}Sp((()=>{o("pagehide")}));const i=e.on("beforeStartNavigationSpan",((e,t)=>{t?.isRedirect||(o("navigation"),i(),s())})),s=e.on("afterStartPageLoadSpan",(e=>{n=e.spanContext().spanId,s()}))}function U_(e){return e?((_e()||performance.timeOrigin)+e)/1e3:e}function z_(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=function(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}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return _e()||j_()?.timeOrigin?(n={...t,"http.request.redirect_start":U_(e.redirectStart),"http.request.redirect_end":U_(e.redirectEnd),"http.request.worker_start":U_(e.workerStart),"http.request.fetch_start":U_(e.fetchStart),"http.request.domain_lookup_start":U_(e.domainLookupStart),"http.request.domain_lookup_end":U_(e.domainLookupEnd),"http.request.connect_start":U_(e.connectStart),"http.request.secure_connection_start":U_(e.secureConnectionStart),"http.request.connection_end":U_(e.connectEnd),"http.request.request_start":U_(e.requestStart),"http.request.response_start":U_(e.responseStart),"http.request.response_end":U_(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter((([,e])=>null!=e)))):t;var n}function q_(e){try{return new URL(e,Io.location.origin).href}catch{return}}function W_(e){try{return new Headers(e)}catch{return}}const H_=new WeakMap,V_=new Map,J_={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function G_(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:o,shouldCreateSpanForRequest:i,enableHTTPTimings:s,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...J_,...t},l="function"==typeof i?i:e=>!0,d=e=>function(e,t){const n=I();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?oe(r.toString(),t)||i&&oe(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?oe(e,t):n}}(e,a),p={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=V_.get(e.span_id);t&&(e.timestamp=t/1e3,V_.delete(e.span_id))}})),e))),o&&function(e){const t="fetch-body-resolved";No(t,e),jo(t,(()=>Vo(Jo)))}((e=>{if(e.response){const t=H_.get(e.response);t&&e.endTimestamp&&V_.set(t,e.endTimestamp)}})),Ho((e=>{const t=A_(e,l,d,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(e.response&&e.fetchData.__span&&H_.set(e.response,e.fetchData.__span),t){const n=q_(e.fetchData.url),r=n?ii(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r}),s&&K_(t),c?.(t,{headers:e.headers})}}))),r&&mi((e=>{const t=function(e,t,n,r,o,i){const s=e.xhr,a=s?.[hi];if(!s||s.__sentry_own_request__||!a)return;const{url:c,method:u}=a,l=Nt()&&t(c);if(e.endTimestamp&&l){const t=s.__sentry_xhr_span_id__;if(!t)return;const n=r[t];return void(n&&void 0!==a.status_code&&(Ut(n,a.status_code),n.end(),i?.(n,{headers:W_(zd(s)),error:e.error}),delete r[t]))}const d=q_(c),p=ii(d||c),f=si(c),h=!!mn(),m=l&&h?Rc({name:`${u} ${f}`,attributes:{url:c,type:"xhr","http.method":u,"http.url":d,"server.address":p?.host,[bt]:"auto.http.browser",[vt]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Sc;s.__sentry_xhr_span_id__=m.spanContext().spanId,r[s.__sentry_xhr_span_id__]=m,n(c)&&function(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:i}=eu({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(o?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&t.split(",").some((e=>e.trim().startsWith("sentry-")))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,o,i)}(s,Nt()&&h?m:void 0,o);const g=$e();g&&g.emit("beforeOutgoingRequestSpan",m,e);return m}(e,l,d,p,f,u);t&&(s&&K_(t),c?.(t,{headers:W_(e.xhr.__sentry_xhr_v3__?.request_headers)}))}))}function K_(e){const{url:t}=an(e).data;if(!t||"string"!=typeof t)return;const n=jp("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(e.setAttributes(z_(r)),setTimeout(n))}))}))}const Y_={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function X_(e,t={}){const n=new Map;let r,i=!1,s="externalFinish",a=!t.disableAutoFinish;const c=[],{idleTimeout:u=Y_.idleTimeout,finalTimeout:l=Y_.finalTimeout,childSpanTimeout:d=Y_.childSpanTimeout,beforeSpanEnd:p,trimIdleSpanEndTimestamp:f=!0}=t,h=$e();if(!h||!Nt()){const e=new Sc;return vn(e,{sample_rate:"0",sampled:"false",...wn(e)}),e}const m=Pe(),g=mn(),_=function(e){const t=Rc(e);
2return xe(Pe(),t),o&&N.log("[Tracing] Started span is an idle span"),t}(e);function y(){r&&(clearTimeout(r),r=void 0)}function v(e){y(),r=setTimeout((()=>{!i&&0===n.size&&a&&(s="idleTimeout",_.end(e))}),u)}function b(e){r=setTimeout((()=>{!i&&a&&(s="heartbeatFailed",_.end(e))}),d)}function S(e){i=!0,n.clear(),c.forEach((e=>e())),xe(m,g);const t=an(_),{start_timestamp:r}=t;if(!r)return;t.data[St]||_.setAttribute(St,s);const a=t.status;a&&"unknown"!==a||_.setStatus({code:$t}),N.log(`[Tracing] Idle span "${t.op}" finished`);const d=fn(_).filter((e=>e!==_));let p=0;d.forEach((t=>{t.isRecording()&&(t.setStatus({code:Ft,message:"cancelled"}),t.end(e),o&&N.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=an(t),{timestamp:r=0,start_timestamp:i=0}=n,s=i<=e,a=r-i<=(l+u)/1e3;if(o){const e=JSON.stringify(t,void 0,2);s?a||N.log("[Tracing] Discarding span since it finished after idle span final timeout",e):N.log("[Tracing] Discarding span since it happened after idle span was finished",e)}a&&s||(!function(e,t){e[ln]&&e[ln].delete(t)}(_,t),p++)})),p>0&&_.setAttribute("sentry.idle_span_discarded_spans",p)}return _.end=new Proxy(_.end,{apply(e,t,n){if(p&&p(_),t instanceof Sc)return;const[r,...o]=n,i=on(r||ge()),s=fn(_).filter((e=>e!==_)),a=an(_);if(!s.length||!f)return S(i),Reflect.apply(e,t,[i,...o]);const c=h.getOptions().ignoreSpans,u=s?.reduce(((e,t)=>{const n=an(t);return n.timestamp?c&&Un(n,c)?e:e?Math.max(e,n.timestamp):n.timestamp:e}),void 0),d=a.start_timestamp,m=Math.min(d?d+l/1e3:1/0,Math.max(d||-1/0,Math.min(i,u||1/0)));return S(m),Reflect.apply(e,t,[m,...o])}}),c.push(h.on("spanStart",(e=>{if(i||e===_||an(e).timestamp||e instanceof xc&&e.isStandaloneSpan())return;var t;fn(_).includes(e)&&(t=e.spanContext().spanId,y(),n.set(t,!0),b(ge()+d/1e3))}))),c.push(h.on("spanEnd",(e=>{var t;i||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&v(ge()+u/1e3))}))),c.push(h.on("idleSpanEnableAutoFinish",(e=>{e===_&&(a=!0,v(),n.size&&b())}))),t.disableAutoFinish||v(),setTimeout((()=>{i||(_.setStatus({code:Ft,message:"deadline_exceeded"}),s="finalTimeout",_.end())}),l),_}function Z_(e){let t,n=0;if(!F_("layout-shift"))return;const r=Lp((({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)}),!0);B_(e,((e,o)=>{!function(e,t,n,r){ls&&N.log(`Sending CLS span (${e})`);const o=t?$_((_e()||0)+t.startTime):ge(),i=Pe().getScopeData().transactionName,s=t?C(t.sources[0]?.node):"Layout shift",a={[bt]:"auto.http.browser.cls",[vt]:"ui.webvital.cls",[Ct]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach(((e,t)=>{a[`cls.source.${t+1}`]=C(e.node)}));const c=N_({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("cls",{[wt]:"",[kt]:e}),c.end(o))}(n,t,o,e),r()}))}function Q_(e){let t,n=0;if(!F_("largest-contentful-paint"))return;const r=Dp((({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)}),!0);B_(e,((e,o)=>{!function(e,t,n,r){ls&&N.log(`Sending LCP span (${e})`);const o=$_((_e()||0)+(t?.startTime||0)),i=Pe().getScopeData().transactionName,s=t?C(t.element):"Largest contentful paint",a={[bt]:"auto.http.browser.lcp",[vt]:"ui.webvital.lcp",[Ct]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=C(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),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=N_({name:s,transaction:i,attributes:a,startTime:o});c&&(c.addEvent("lcp",{[wt]:"millisecond",[kt]:e}),c.end(o))}(n,t,o,e),r()}))}const ey=2147483647;let ty,ny,ry=0,oy={};function iy({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=j_();if(r&&_e()){r.mark&&ai.performance.mark("sentry-tracing-init");const o=t?Q_(n):Dp((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oy.lcp={value:e.value,unit:"millisecond"},ty=t)}),!0),i=qp("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(oy.ttfb={value:e.value,unit:"millisecond"})}),Up,Op),s=e?Z_(n):Lp((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oy.cls={value:e.value,unit:""},ny=t)}),!0);return()=>{o?.(),i(),s?.()}}return()=>{}}function sy(e,t){const n=j_(),r=_e();if(!n?.getEntries||!r)return;const o=$_(r),i=n.getEntries(),{op:s,start_timestamp:a}=an(e);
2i.slice(ry).forEach((n=>{const r=$_(n.startTime),i=$_(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=>{ay(e,t,r,n)})),ay(e,t,"secureConnection",n,"TLS/SSL"),ay(e,t,"fetch",n,"cache"),ay(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+$_(t.requestStart),o=n+$_(t.responseEnd),i=n+$_(t.responseStart);t.responseEnd&&(D_(e,r,o,{op:"browser.request",name:t.name,attributes:{[bt]:"auto.ui.browser.metrics"}}),D_(e,i,o,{op:"browser.response",name:t.name,attributes:{[bt]:"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(function(e){if("measure"!==e?.entryType)return;try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t))return;if(["mark","measure"].includes(t.entryType)&&oe(t.name,i))return;const s=Gd(!1),a=$_(s?s.requestStart:0),c=o+Math.max(n,a),u=o+n,l=u+r,d={[bt]:"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&&_(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(_(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}})(d,t),c<=l&&D_(e,c,l,{name:t.name,op:t.entryType,attributes:d})}(e,n,r,i,o,t.ignorePerformanceApiSpans);const s=tp(),a=n.startTime<s.firstHiddenTime;"first-paint"===n.name&&a&&(oy.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&a&&(oy.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(s?.includes(a))return;const c={[bt]:"auto.resource.browser.metrics"},u=ii(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop());u.host&&(c["server.address"]=u.host);c["url.same_origin"]=n.includes(ai.location.origin),function(e,t,n){n.forEach((([n,r])=>{const o=e[n];null!=o&&("number"==typeof o&&o<ey||"string"==typeof o)&&(t[r]=o)}))}(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const l={...c,...z_(t)},d=i+r,p=d+o;D_(e,d,p,{name:n.replace(ai.location.origin,""),op:a,attributes:l})}(e,n,n.name,r,i,o,t.ignoreResourceSpans)}})),ry=Math.max(i.length-1,0),function(e){const t=ai.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),L_(n.rtt)&&(oy["connection.rtt"]={value:n.rtt,unit:"millisecond"}));L_(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);L_(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s&&(function(e){const t=Gd(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(oy),t.recordClsOnPageloadSpan||delete oy.cls,t.recordLcpOnPageloadSpan||delete oy.lcp,Object.entries(oy).forEach((([e,t])=>{wc(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",o),e.setAttribute("performance.activationStart",Kd()),function(e,t){ty&&t.recordLcpOnPageloadSpan&&(ty.element&&e.setAttribute("lcp.element",C(ty.element)),ty.id&&e.setAttribute("lcp.id",ty.id),ty.url&&e.setAttribute("lcp.url",ty.url.trim().slice(0,200)),null!=ty.loadTime&&e.setAttribute("lcp.loadTime",ty.loadTime),null!=ty.renderTime&&e.setAttribute("lcp.renderTime",ty.renderTime),e.setAttribute("lcp.size",ty.size));
2ny?.sources&&t.recordClsOnPageloadSpan&&ny.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,C(t.node))))}(e,t)),ty=void 0,ny=void 0,oy={}}function ay(e,t,n,r,o=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&&D_(e,r+$_(a),r+$_(s),{op:`browser.${o}`,name:t.name,attributes:{[bt]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}const cy=[],uy=new Map,ly=new Map;function dy(){if(j_()&&_e()){const e=Np(fy);return()=>{e()}}return()=>{}}const py={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 fy=({metric:e})=>{if(null==e.value)return;const t=$_(e.value);if(t>60)return;const n=e.entries.find((t=>t.duration===e.value&&py[t.name]));if(!n)return;const{interactionId:r}=n,o=py[n.name],i=$_(_e()+n.startTime),s=mn(),a=s?hn(s):void 0,c=null!=r?uy.get(r):void 0,u=c?.span||a,l=u?an(u).description:Pe().getScopeData().transactionName,d=N_({name:c?.elementName||C(n.target),transaction:l,attributes:{[bt]:"auto.http.browser.inp",[vt]:`ui.interaction.${o}`,[Ct]:n.duration},startTime:i});d&&(d.addEvent("inp",{[wt]:"millisecond",[kt]:e.value}),d.end(i+t))};function hy(){const e=Object.keys(py);function t(e){const t=e.target;if(!t)return;const n=C(t),r=Math.round(e.timeStamp);if(ly.set(r,n),ly.size>50){const e=ly.keys().next().value;void 0!==e&&ly.delete(e)}}xs()&&e.forEach((e=>{ai.addEventListener(e,t,{capture:!0,passive:!0})}));const n=({entries:e})=>{const t=mn(),n=t&&hn(t);e.forEach((e=>{if(!function(e){return"duration"in e}(e))return;const t=e.interactionId;if(null==t)return;if(uy.has(t))return;const r=e.target?C(e.target):function(e){const t=Math.round(e.startTime);let n=ly.get(t);if(!n)for(let e=-5;e<=5;e++){const r=ly.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(cy.length>10){const e=cy.shift();uy.delete(e)}cy.push(t),uy.set(t,{span:n,elementName:r})}))};jp("event",n),jp("first-input",n)}const my=({entries:e})=>{const t=mn(),n=t?hn(t):void 0,r=n?an(n).description:Pe().getScopeData().transactionName;e.forEach((e=>{const t=e;if(!t.identifier)return;const n=t.name,o=t.renderTime,i=t.loadTime,[s,a]=i?[$_(i),"load-time"]:o?[$_(o),"render-time"]:[ge(),"entry-emission"],c="image-paint"===n?$_(Math.max(0,(o??0)-(i??0))):0,u={[bt]:"auto.ui.browser.elementtiming",[vt]:"ui.elementtiming",[gt]:"component","sentry.span_start_time_source":a,"sentry.transaction_name":r,"element.id":t.id,"element.type":t.element?.tagName?.toLowerCase()||"unknown","element.size":t.naturalWidth&&t.naturalHeight?`${t.naturalWidth}x${t.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":i,"element.url":t.url||void 0,"element.identifier":t.identifier,"element.paint_type":n};Ic({name:`element[${t.identifier}]`,attributes:u,startTime:s,onlyIfParent:!0},(e=>{e.end(s+c)}))}))};const gy="sentry_previous_trace",_y="sentry.previous_trace";function yy(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r="session-storage"===t;let o=r?function(){try{const e=Io.sessionStorage?.getItem(gy);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",(e=>{if(hn(e)!==e)return;const t=Pe().getPropagationContext();o=function(e,t,n){const r=an(t);function o(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[_t])}catch{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<=3600&&(bi&&N.log(`Adding previous_trace ${s} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:s,attributes:{[Mt]:"previous_trace"}}),t.setAttribute(_y,`${s.traceId}-${s.spanId}-${vy(s)?1:0}`));return i}(o,e,t),r&&function(e){try{Io.sessionStorage.setItem(gy,JSON.stringify(e))}catch(e){bi&&N.warn("Could not store previous trace in sessionStorage",e)}}(o)}));let i=!0;n&&e.on("beforeSampling",(e=>{if(!o)return;const t=Pe(),n=t.getPropagationContext();i&&n.parentSpanId?i=!1:(t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(o.sampleRate),sampled:String(vy(o.spanContext))},sampleRand:o.sampleRand}),e.parentSampled=vy(o.spanContext),e.parentSampleRate=o.sampleRate,e.spanAttributes={...e.spanAttributes,[yt]:o.sampleRate})}))}function vy(e){return 1===e.traceFlags}
2const by={...Y_,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...J_},Sy=(e={})=>{const t={name:void 0,source:void 0},n=Io.document,{enableInp:r,enableElementTiming:o,enableLongTask:i,enableLongAnimationFrame:a,_experiments:{enableInteractions:c,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:l},beforeStartSpan:d,idleTimeout:p,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:m,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:y,shouldCreateSpanForRequest:v,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:w,instrumentPageLoad:k,instrumentNavigation:x,detectRedirects:E,linkPreviousTrace:T,consistentTraceSampling:R,enableReportPageLoaded:A,onRequestSpanStart:O,onRequestSpanEnd:P}={...by,...e};let L,D,j;function $(e,r,o=!0){const i="pageload"===r.op,s=r.name,a=d?d(r):r,c=a.attributes||{};if(s!==a.name&&(c[gt]="custom",a.attributes=c),!o){const e=fe();return void Rc({...a,startTime:e}).end(e)}t.name=a.name,t.source=c[gt];const m=X_(a,{idleTimeout:p,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:i,beforeSpanEnd:t=>{L?.(),sy(t,{recordClsOnPageloadSpan:!u,recordLcpOnPageloadSpan:!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:w}),Ty(e,void 0);const n=Pe(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:m.spanContext().traceId,sampled:cn(m),dsc:wn(t)}),i&&(j=void 0)},trimIdleSpanEndTimestamp:!A});function g(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",m)}i&&A&&(j=m),Ty(e,m),i&&!A&&n&&(n.addEventListener("readystatechange",(()=>{g()})),g())}return{name:"BrowserTracing",setup(e){if(ud(),L=iy({recordClsStandaloneSpans:u||!1,recordLcpStandaloneSpans:l||!1,client:e}),r&&dy(),o&&j_()&&_e()&&jp("element",my),a&&s.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?new PerformanceObserver((e=>{const t=mn();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=$_(_e()+n.startTime),{start_timestamp:r,op:o}=an(t);if("navigation"===o&&r&&e<r)continue;const i=$_(n.duration),s={[bt]:"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),D_(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:s})}})).observe({type:"long-animation-frame",buffered:!0}):i&&jp("longtask",(({entries:e})=>{const t=mn();if(!t)return;const{op:n,start_timestamp:r}=an(t);for(const o of e){const e=$_(_e()+o.startTime),i=$_(o.duration);"navigation"===n&&r&&e<r||D_(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[bt]:"auto.ui.browser.metrics"}})}})),c&&jp("event",(({entries:e})=>{const t=mn();if(t)for(const n of e)if("click"===n.name){const e=$_(_e()+n.startTime),r=$_(n.duration),o={name:C(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[bt]:"auto.ui.browser.metrics"}},i=M(n.target);i&&(o.attributes["ui.component_name"]=i),D_(t,e,e+r,o)}})),E&&n){const e=()=>{D=ge()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function t(){const t=Cy(e);t&&!an(t).timestamp&&(bi&&N.log(`[Tracing] Finishing current active span with op: ${an(t).op}`),t.setAttribute(St,"cancelled"),t.end())}e.on("startNavigationSpan",((n,r)=>{if($e()!==e)return;if(r?.isRedirect)return bi&&N.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void $(e,{op:"navigation.redirect",...n},!1);D=void 0,t(),Le().setPropagationContext({traceId:Se(),sampleRand:Math.random(),propagationSpanId:Nt()?void 0:we()});const o=Pe();o.setPropagationContext({traceId:Se(),sampleRand:Math.random(),propagationSpanId:Nt()?void 0:we()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),$(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})})),e.on("startPageLoadSpan",((n,r={})=>
2{if($e()!==e)return;t();const o=Kt(r.sentryTrace||xy("sentry-trace"),r.baggage||xy("baggage")),i=Pe();i.setPropagationContext(o),Nt()||(i.getPropagationContext().propagationSpanId=we()),i.setSDKProcessingMetadata({normalizedRequest:Oo()}),$(e,{op:"pageload",...n})})),e.on("endPageloadSpan",(()=>{A&&j&&(j.setAttribute(St,"reportPageLoaded"),j.end())}))},afterAllSetup(e){let n=I();if("off"!==T&&yy(e,{linkPreviousTrace:T,consistentTraceSampling:R}),Io.location){if(k){const t=_e();wy(e,{name:Io.location.pathname,startTime:t?t/1e3:void 0,attributes:{[gt]:"url",[bt]:"auto.pageload.browser"}})}x&&yi((({to:t,from:r})=>{if(void 0===r&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const o=ri(t),i=Cy(e),s=i&&E&&function(e,t){const n=an(e),r=fe(),o=n.start_timestamp;if(r-o>Iy)return!1;if(t&&r-t<=Iy)return!1;return!0}(i,D);ky(e,{name:o?.pathname||Io.location.pathname,attributes:{[gt]:"url",[bt]:"auto.navigation.browser"}},{url:t,isRedirect:s})}))}m&&(Io.document?Io.document.addEventListener("visibilitychange",(()=>{const e=mn();if(!e)return;const t=hn(e);if(Io.document.hidden&&t){const e="cancelled",{op:n,status:r}=an(t);bi&&N.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:Ft,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):bi&&N.warn("[Tracing] Could not set up background tab detection due to lack of global document")),c&&function(e,t,n,r,o){const i=Io.document;let s;const a=()=>{const i="ui.action.click",a=Cy(e);if(a){const e=an(a).op;if(["navigation","pageload"].includes(e))return void(bi&&N.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(St,"interactionInterrupted"),s.end(),s=void 0),o.name?s=X_({name:o.name,op:i,attributes:{[gt]:o.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):bi&&N.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)};i&&addEventListener("click",a,{capture:!0})}(e,p,f,h,t),r&&hy(),G_(e,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:v,enableHTTPTimings:b,onRequestSpanStart:O,onRequestSpanEnd:P})}}};function wy(e,t,n){e.emit("startPageLoadSpan",t,n),Pe().setTransactionName(t.name);const r=Cy(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function ky(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=Pe();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...Oo(),url:r}}),Cy(e)}function xy(e){const t=Io.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}const Ey="_sentry_idleSpan";function Cy(e){return e[Ey]}function Ty(e,t){$(e,Ey,t)}const Iy=1.5;function My(e=$e()){e?.emit("endPageloadSpan")}function Ry(e){const t=mn();if(t===e)return;const n=Pe();e.end=new Proxy(e.end,{apply:(e,r,o)=>(xe(n,t),Reflect.apply(e,r,o))}),xe(n,e)}const Ay=100,Oy=5e3,Py=36e5;function Ly(e){function t(...e){o&&N.log("[Offline]:",...e)}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=Oy;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,Py))}async function u(e,i=!1){if(!i&&Rn(e,["replay_event","replay_recording"]))return await o.push(e),a(Ay),{};try{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=Ay;if(t)if(t.headers?.["retry-after"])o=gr(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return a(o),s=Oy,t}catch(r){if(await function(e,t,r){return!Rn(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=Oy,a(Ay)),r.flush(e))}}}function Dy(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function Ny(e){return Dy(e.getAllKeys())}function jy(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=Dy(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 On(t);await function(e,t,n){return e((e=>Ny(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),Dy(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const r=await On(t);await function(e,t,n){return e((e=>Ny(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),Dy(e.transaction)}))))}(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await function(e){return e((e=>Ny(e).then((t=>{const n=t[0];if(null!=n)return Dy(e.get(n)).then((t=>(e.delete(n),Dy(e.transaction).then((()=>t)))))}))))}(n());if(e)return Pn(e)}catch{}}}}function $y(e=ms){return function(e){return t=>{const n=e({...t,createStore:jy});return Io.addEventListener("online",(async e=>{await n.flush()})),n}}(Ly(e))}const Fy=1e6,By="window"in s&&s.window===s&&"undefined"==typeof importScripts,Uy=String(0),zy=By?"main":"worker",qy=Io.navigator;let Wy="",Hy="",Vy="",Jy=qy?.userAgent||"",Gy="";const Ky=qy?.language||qy?.languages?.[0]||"";const Yy=qy?.userAgentData;var Xy;function Zy(e){return function(e){return!("thread_metadata"in e)}(e)?function(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Uy]:{name:zy}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,s=_e(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:s||0,c=a-(s||a);
2return 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)*Fy).toFixed(0),stack_id:t,thread_id:Uy});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)*Fy).toFixed(0),stack_id:n,thread_id:Uy};r.stacks[n]=u,r.samples[s]=l,n++})),r}(e):e}function Qy(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){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&bi&&N.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),i=Zy(n),s=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*ge()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*ge();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||mt,runtime:{name:"javascript",version:Io.navigator.userAgent},os:{name:Wy,version:Hy,build_number:Jy},device:{locale:Ky,model:Gy,manufacturer:Jy,architecture:Vy,is_emulator:!1},debug_meta:{images:nv(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||se(),trace_id:o,active_thread_id:Uy,relative_start_ns:"0",relative_end_ns:(1e6*(a-s)).toFixed(0)}]}}function ev(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=function(e){const t=[];for(let n=0;n<e.frames.length;n++){const r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}const n=[];for(let t=0;t<e.stacks.length;t++){const r=e.stacks[t];if(!r)continue;const o=[];let i=r;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=o}const r=_e(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,i=o-(r||o),s=[];for(let t=0;t<e.samples.length;t++){const n=e.samples[t];if(!n)continue;const r=(o+(n.timestamp-i))/1e3;s[t]={stack_id:n.stackId??0,thread_id:Uy,timestamp:r}}return{frames:t,stacks:n,samples:s,thread_metadata:{[Uy]:{name:zy}}}}(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:se(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||se(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:nv(e.resources)},profile:r}}function tv(e){return"pageload"===an(e).op}
2function nv(e){const t=$e(),n=t?.getOptions(),r=n?.stackParser;return r?function(e,t){const n=Tr(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 rv(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(bi&&N.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(bi&&N.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(Xy=Yy)&&null!==Xy&&"getHighEntropyValues"in Xy&&Yy.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(Wy=e.platform||"",Vy=e.architecture||"",Gy=e.model||"",Hy=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Jy=`${t.brand} ${t.version}`}})).catch((e=>{}));let ov=!1;function iv(){const e=Io.Profiler;if("function"!=typeof e)return void(bi&&N.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){bi&&(N.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),N.log("[Profiling] Disabling profiling for current user session.")),ov=!0}}function sv(e){if(ov)return bi&&N.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return bi&&N.log("[Profiling] Discarding profile because root span was not sampled."),!1;
2const t=$e(),n=t?.getOptions();if(!n)return bi&&N.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;if(!rv(r))return bi&&N.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!r)return bi&&N.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===r||Math.random()<r)||(bi&&N.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1)}function av(e){return void 0!==e.profilesSampleRate}function cv(e,t,n,r){return function(e){return e.samples.length<2?(bi&&N.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(bi&&N.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?Qy(e,t,n,r):null}const uv=new Map;function lv(e){const t=uv.get(e);return t&&uv.delete(e),t}function dv(e){let t;tv(e)&&(t=1e3*ge());const n=iv();if(!n)return;bi&&N.log(`[Profiling] started profiling span: ${an(e).description}`);const r=se();let o=null;async function i(){if(e&&n){if(!o)return n.stop().then((t=>{s&&(Io.clearTimeout(s),s=void 0),bi&&N.log(`[Profiling] stopped profiling of span: ${an(e).description}`),t?(o=t,function(e,t){if(uv.set(e,t),uv.size>30){const e=uv.keys().next().value;void 0!==e&&uv.delete(e)}}(r,t)):bi&&N.log(`[Profiling] profiler returned null profile for: ${an(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{bi&&N.log("[Profiling] error while stopping profiler:",e)}));bi&&N.log("[Profiling] profile for:",an(e).description,"already exists, returning early")}}Pe().setContext("profile",{profile_id:r,start_timestamp:t});let s=Io.setTimeout((()=>{bi&&N.log("[Profiling] max profile duration elapsed, stopping profiling for:",an(e).description),i()}),3e4);const a=e.end.bind(e);e.end=function(){return e?(i().then((()=>{a()}),(()=>{a()})),e):a()}}class pv{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){const t=e.getOptions().profileLifecycle,n=function(e){if(ov)return bi&&N.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return bi&&N.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return rv(t)?t?Math.random()<=t:(bi&&N.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(bi&&N.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());bi&&N.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||bi&&N.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=se(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}start(){"trace"!==this._lifecycleMode?this._isRunning?bi&&N.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op."):this._sessionSampled?this._beginProfiling():bi&&N.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op."):bi&&N.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.')}stop(){"trace"!==this._lifecycleMode?this._isRunning?this._endProfiling():bi&&N.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op."):bi&&N.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.')}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(bi&&N.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,bi&&N.log("[Profiling] Started profiling with profiler ID:",this._profilerId),De().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler)return bi&&N.log("[Profiling] Failed to start JS Profiler; stopping."),void this._resetProfilerInfo();this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch((e=>{bi&&N.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)})),"manual"===this._lifecycleMode&&De().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",(e=>{if(!this._sessionSampled)return void(bi&&N.log("[Profiling] Session not sampled because of negative sampling decision."));if(e!==hn(e))return;if(!e.isRecording())return void(bi&&N.log("[Profiling] Discarding profile because root span was not sampled."));const t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);const n=this._activeRootSpanIds.size;1===n&&(bi&&N.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())})),e.on("spanEnd",(e=>{if(!this._sessionSampled)return;const t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);const n=this._activeRootSpanIds.size;bi&&N.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch((e=>{bi&&N.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)})),this._endProfiling())}))}_resetProfilerInfo(){this._isRunning=!1,De().setContext("profile",{})}
2_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach((e=>clearTimeout(e))),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);const t=setTimeout((()=>this._onRootSpanTimeout(e)),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(!1===this._profiler?.stopped)return;const e=iv();e?this._profiler=e:bi&&N.log("[Profiling] Failed to start JS Profiler.")}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout((()=>{if(this._collectCurrentChunk().catch((e=>{bi&&N.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)})),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}}),6e4))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(bi&&N.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){const e=this._profiler;if(this._profiler=void 0,e)try{const t=ev(await e.stop(),this._client,this._profilerId),n=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};const t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.samples.length?{valid:!0}:{reason:"profile has no samples"}:{reason:"profile has no stacks"}:{reason:"profile has no frames"}:{reason:"missing profile data"}}catch(e){return{reason:`unknown validation error: ${e}`}}}(t);if("reason"in n)return void(bi&&N.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason));this._sendProfileChunk(t),bi&&N.log("[Profiling] Collected browser profile chunk.")}catch(e){bi&&N.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){const t=this._client,n=$n(t.getSdkMetadata?.()),r=t.getDsn(),o=t.getOptions().tunnel,i=Tn({event_id:se(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!o&&r&&{dsn:at(r)}},[[{type:"profile_chunk"},e]]);t.sendEnvelope(i).then(null,(e=>{bi&&N.error("Error while sending profile chunk envelope:",e)}))}}const fv=()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),n=new pv;if(av(t)||t.profileLifecycle||(t.profileLifecycle="manual"),av(t)&&!t.profilesSampleRate)return void(bi&&N.log("[Profiling] Profiling disabled, no profiling options found."));const r=mn(),o=r&&hn(r);if(av(t)&&void 0!==t.profileSessionSampleRate&&bi&&N.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),av(t))o&&tv(o)&&sv(o)&&dv(o),e.on("spanStart",(e=>{e===hn(e)&&sv(e)&&dv(e)})),e.on("beforeEnvelope",(e=>{if(!uv.size)return;const t=function(e){const t=[];return Mn(e,((e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}})),t}(e);if(!t.length)return;const n=[];for(const e of t){const t=e?.contexts,r=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof r){bi&&N.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){bi&&N.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const i=lv(r);if(!i){bi&&N.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const s=cv(r,o,i,e);s&&n.push(s)}!function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n])}(e,n)}));else{const r=t.profileLifecycle;if(e.on("startUIProfiler",(()=>n.start())),e.on("stopUIProfiler",(()=>n.stop())),"manual"===r)n.initialize(e);else if("trace"===r){if(!Nt(t))return void(bi&&N.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing."));n.initialize(e),o&&n.notifyRootSpanActive(o),Io.setTimeout((()=>{const e=mn(),t=e&&hn(e);t&&n.notifyRootSpanActive(t)}),0)}}},processEvent:e=>function(e){return e?.contexts?.profile&&e.contexts?(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":Uy,"thread.name":zy}},e.spans?.forEach((e=>{e.data={...e.data||{},"thread.id":Uy,"thread.name":zy}})),e):e}(e)});const hv=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{bi&&N.log("Using Sidecar URL",t)},processEvent:e=>function(e){return Boolean("transaction"===e.type&&e.spans&&e.contexts?.trace&&"ui.action.click"===e.contexts.trace.op&&e.spans.some((({description:e})=>e?.includes("#sentry-spotlight"))))}(e)?null:e,afterAllSetup:e=>{!function(e,t){const n=ps("fetch");let r=0;e.on("beforeEnvelope",(e=>{r>3?N.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:On(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then((e=>{e.status>=200&&e.status<400&&(r=0)}),(e=>
2{r++,N.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)}))}))}(e,t)}}};const mv=()=>({name:"LaunchDarkly",processEvent:(e,t,n)=>Yc(e)});function gv(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Xc(e,t.value),Zc(e,t.value)}}}const _v=()=>({name:"OpenFeature",processEvent:(e,t,n)=>Yc(e)});class yv{after(e,t){Xc(t.flagKey,t.value),Zc(t.flagKey,t.value)}error(e,t,n){Xc(e.flagKey,e.defaultValue),Zc(e.flagKey,e.defaultValue)}}const vv=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){j(e.prototype,"isEnabled",bv)},processEvent:(e,t,n)=>Yc(e)});function bv(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(Xc(n,r),Zc(n,r)):bi&&N.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const Sv=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&j(t,"isOn",wv),"function"==typeof t.getFeatureValue&&j(t,"getFeatureValue",wv)}
2,processEvent:(e,t,n)=>Yc(e)});function wv(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(Xc(n,r),Zc(n,r)),r}}const kv=({growthbookClass:e})=>Sv({growthbookClass:e}),xv=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",(e=>{Xc(e.gate.name,e.gate.value),Zc(e.gate.name,e.gate.value)}))},processEvent:(e,t,n)=>Yc(e)});async function Ev(){const e=$e();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";try{await Pc((()=>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{return"sentry-unreachable"}}const Cv=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach((e=>Tv(e)))},addWorker:e=>Tv(e)});function Tv(e){e.addEventListener("message",(e=>{(function(e){if(!y(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,n="_sentryWorkerError"in e;if(!t&&!n)return!1;if(t&&!y(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)return!1;if(n&&!y(e._sentryWorkerError))return!1;return!0})(e.data)&&(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(bi&&N.log("Sentry debugId web worker message received",e.data),Io._sentryDebugIds={...e.data._sentryDebugIds,...Io._sentryDebugIds}),e.data._sentryWorkerError&&(bi&&N.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=$e(
2);if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,o=e.reason,i=_(o)?ji(o):io(n,o,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}});lo(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),bi&&N.log("Captured worker unhandled rejection",o)}(e.data._sentryWorkerError)))}))}function Iv({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0}),e.addEventListener("unhandledrejection",(t=>{const n={reason:Ni(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),bi&&N.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)})),bi&&N.log("[Sentry Worker] Registered worker with unhandled rejection handling")}var Mv=n(5606),Rv=(ys({dsn:{protocol:location.protocol.replace(":",""),publicKey:"e4f549292bdc1a61a2fb7e6136698db2",host:location.host,path:"senerror",projectId:"475"},environment:Mv.env.MIX_ENV,tracesSampleRate:1}),r);shared.sendError=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rv.captureException(e,{extra:{options:t}})}})()})();
3//# sourceMappingURL=main.js.map

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.