/*! For license information please see 6131.fff4e3b12ded7aa835a25.js.LICENSE.txt */
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="3b018462-1dd9-45e4-ad03-a5ca385c84fe",t._sentryDebugIdIdentifier="sentry-dbid-3b018462-1dd9-45e4-ad03-a5ca385c84fe")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"01859e7ee8fae848e53ec69b033986a48194268b"},(self.webpackChunkroot=self.webpackChunkroot||[]).push([[6131],{11604:(t,e,n)=>{"use strict";n.d(e,{F:()=>a});const r=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function s(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const s=r>=0?t[r]:"/";s&&(e=`${s}/${e}`,n="/"===s.charAt(0))}return e=function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){const r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(e.split("/").filter((t=>!!t)),!n).join("/"),(n?"/":"")+e||"."}function o(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const i="RewriteFrames",a=(c=i,u=(t={})=>{const e=t.root,n=t.prefix||"app:///",a=t.iteratee||(t=>{if(!t.filename)return t;const i=/^[a-zA-Z]:\\/.test(t.filename)||t.filename.includes("\\")&&!t.filename.includes("/"),a=/^\//.test(t.filename);if(i||a){const a=i?t.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):t.filename,c=e?function(t,e){t=s(t).slice(1),e=s(e).slice(1);const n=o(t.split("/")),r=o(e.split("/")),i=Math.min(n.length,r.length);let a=i;for(let t=0;t<i;t++)if(n[t]!==r[t]){a=t;break}let c=[];for(let t=a;t<n.length;t++)c.push("..");return c=c.concat(r.slice(a)),c.join("/")}(e,a):function(t,e){let n=function(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=r.exec(e);return n?n.slice(1):[]}(t)[2];return n}(a);t.filename=`${n}${c}`}return t});return{name:i,setupOnce(){},processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map((t=>{return{...t,...t.stacktrace&&{stacktrace:(e=t.stacktrace,{...e,frames:e&&e.frames&&e.frames.map((t=>a(t)))})}};var e}))}}}catch(e){return t}}(e)),e}}},Object.assign((function(...t){return u(...t)}),{id:c}));var c,u},9751:function(t,e,n){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t);function n(t){return t>1&&t<5&&1!=~~(t/10)}function r(t,e,r,s){var o=t+" ";switch(r){case"s":return e||s?"pár sekund":"pár sekundami";case"m":return e?"minuta":s?"minutu":"minutou";case"mm":return e||s?o+(n(t)?"minuty":"minut"):o+"minutami";case"h":return e?"hodina":s?"hodinu":"hodinou";case"hh":return e||s?o+(n(t)?"hodiny":"hodin"):o+"hodinami";case"d":return e||s?"den":"dnem";case"dd":return e||s?o+(n(t)?"dny":"dní"):o+"dny";case"M":return e||s?"měsíc":"měsícem";case"MM":return e||s?o+(n(t)?"měsíce":"měsíců"):o+"měsíci";case"y":return e||s?"rok":"rokem";case"yy":return e||s?o+(n(t)?"roky":"let"):o+"lety"}}var s={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(t){return t+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return e.default.locale(s,null,!0),s}(n(74353))},72026:function(t,e,n){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),n={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}};return e.default.locale(n,null,!0),n}(n(74353))},63225:function(t,e,n){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t);function n(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,r){var s=t+" ";switch(r){case"m":return e?"minuta":"minutę";case"mm":return s+(n(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return s+(n(t)?"godziny":"godzin");case"MM":return s+(n(t)?"miesiące":"miesięcy");case"yy":return s+(n(t)?"lata":"lat")}}var s="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),o="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),i=/D MMMM/,a=function(t,e){return i.test(e)?s[t.month()]:o[t.month()]};a.s=o,a.f=s;var c={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:a,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:r,y:"rok",yy:r},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return e.default.locale(c,null,!0),c}(n(74353))},98720:function(t){t.exports=function(){"use strict";return function(t,e,n){var r="h:mm A",s={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};e.prototype.calendar=function(t,e){var r=e||this.$locale().calendar||s,o=n(t||void 0).startOf("d"),i=this.diff(o,"d",!0),a="sameElse",c=i<-6?a:i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":a,u=r[c]||s[c];return"function"==typeof u?u.call(this,n()):this.format(u)}}}()},37872:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isBetween=function(t,e,r,s){var o=n(t),i=n(e),a="("===(s=s||"()")[0],c=")"===s[1];return(a?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(i,r):!this.isAfter(i,r))||(a?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(i,r):!this.isBefore(i,r))}}}()},21840:function(t){t.exports=function(){"use strict";return function(t,e,n){var r=e.prototype,s=function(t){return t&&(t.indexOf?t:t.s)},o=function(t,e,n,r,o){var i=t.name?t:t.$locale(),a=s(i[e]),c=s(i[n]),u=a||c.map((function(t){return t.slice(0,r)}));if(!o)return u;var l=i.weekStart;return u.map((function(t,e){return u[(e+(l||0))%7]}))},i=function(){return n.Ls[n.locale()]},a=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}(t.formats[e.toUpperCase()])},c=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):o(t,"months")},monthsShort:function(e){return e?e.format("MMM"):o(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):o(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):o(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):o(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var t=i();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return a(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return o(i(),"months")},n.monthsShort=function(){return o(i(),"monthsShort","months",3)},n.weekdays=function(t){return o(i(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return o(i(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return o(i(),"weekdaysMin","weekdays",2,t)}}}()},15750:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,n,r){var s=n.prototype,o=s.format;r.en.formats=t,s.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,s){var o=s&&s.toUpperCase();return r||n[s]||t[s]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(e,void 0===n?{}:n);return o.call(this,r)}}}()},6279:function(t){t.exports=function(){"use strict";return function(t,e,n){t=t||{};var r=e.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(t,e,n,s){return r.fromToBase(t,e,n,s)}n.en.relativeTime=s,r.fromToBase=function(e,r,o,i,a){for(var c,u,l,d=o.$locale().relativeTime||s,p=t.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=p.length,f=0;f<h;f+=1){var m=p[f];m.d&&(c=i?n(e).diff(o,m.d,!0):o.diff(e,m.d,!0));var g=(t.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&f>0&&(m=p[f-1]);var _=d[m.l];a&&(g=a(""+g)),u="string"==typeof _?_.replace("%d",g):_(g,r,m.l,l);break}}if(r)return u;var y=l?d.future:d.past;return"function"==typeof y?y(u):y.replace("%s",u)},r.to=function(t,e){return o(t,e,this,!0)},r.from=function(t,e){return o(t,e,this)};var i=function(t){return t.$u?n.utc():n()};r.toNow=function(t){return this.to(i(this),t)},r.fromNow=function(t){return this.from(i(this),t)}}}()},53581:function(t){t.exports=function(){"use strict";return function(t,e,n){n.updateLocale=function(t,e){var r=n.Ls[t];if(r)return(e?Object.keys(e):[]).forEach((function(t){r[t]=e[t]})),r}}}()},83826:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,s,o){var i=s.prototype;o.utc=function(t){return new s({date:t,utc:!0,args:arguments})},i.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),a.call(this,t)};var c=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=i.utcOffset;i.utcOffset=function(r,s){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var s=(""+r[0]).match(n)||["-",0,0],o=s[0],i=60*+s[1]+ +s[2];return 0===i?0:"+"===o?i:-i}(r),null===r))return this;var i=Math.abs(r)<=16?60*r:r,a=this;if(s)return a.$offset=i,a.$u=0===r,a;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(i+c,t)).$offset=i,a.$x.$localOffset=c}else a=this.utc();return a};var l=i.format;i.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=i.diff;i.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var r=this.local(),s=o(t).local();return p.call(r,s,e,n)}}}()},15579:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default={name:"interval",type:"postProcessor",options:{intervalSeparator:";",intervalRegex:/\((\S*)\).*?\[((.|\n)*)\]/,intervalSuffix:"_interval"},setOptions:function(t){this.options=n({},this.options,t)},process:function(t,e,r,s){var o=this,i=t.split(this.options.intervalSeparator),a=void 0;if(i.forEach((function(t){if(!a){var e=o.options.intervalRegex.exec(t);e&&function(t,e){if(t.indexOf("-")>-1){var n=t.split("-");if("inf"===n[1])return e>=parseInt(n[0],10);var r=parseInt(n[0],10),s=parseInt(n[1],10);return e>=r&&e<=s}return parseInt(t,10)===e}(e[1],r.count||0)&&(a=e[2])}})),!a){var c=n({},r);if("string"==typeof c.postProcess)delete c.postProcess;else{var u=c.postProcess.indexOf("interval");-1!==u&&c.postProcess.splice(u,1)}var l=void 0;"string"==typeof e?l=e.replace(this.options.intervalSuffix,""):e.length>-1&&(l=e.map((function(t){return t.replace(o.options.intervalSuffix,"")}))),l&&(a=s.translate(l,c))}return a||t}}},17599:(t,e,n)=>{t.exports=n(15579).default},5338:(t,e,n)=>{"use strict";var r=n(40961);e.H=r.createRoot,r.hydrateRoot},84976:(t,e,n)=>{"use strict";n.d(e,{Kd:()=>c,N_:()=>d});var r=n(96540),s=n(47767),o=n(45588);function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i.apply(this,arguments)}const a=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function c(t){let{basename:e,children:n,window:i}=t,a=r.useRef();null==a.current&&(a.current=(0,o.zR)({window:i,v5Compat:!0}));let c=a.current,[u,l]=r.useState({action:c.action,location:c.location});return r.useLayoutEffect((()=>c.listen(l)),[c]),r.createElement(s.Ix,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:c})}const u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,d=r.forwardRef((function(t,e){let n,{onClick:c,relative:d,reloadDocument:p,replace:h,state:f,target:m,to:g,preventScrollReset:_}=t,y=function(t,e){if(null==t)return{};var n,r,s={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(s[n]=t[n]);return s}(t,a),{basename:v}=r.useContext(s.jb),b=!1;if("string"==typeof g&&l.test(g)&&(n=g,u)){let t=new URL(window.location.href),e=g.startsWith("//")?new URL(t.protocol+g):new URL(g),n=(0,o.pb)(e.pathname,v);e.origin===t.origin&&null!=n?g=n+e.search+e.hash:b=!0}let S=(0,s.$P)(g,{relative:d}),k=function(t,e){let{target:n,replace:i,state:a,preventScrollReset:c,relative:u}=void 0===e?{}:e,l=(0,s.Zp)(),d=(0,s.zy)(),p=(0,s.x$)(t,{relative:u});return r.useCallback((e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,n)){e.preventDefault();let n=void 0!==i?i:(0,o.AO)(d)===(0,o.AO)(p);l(t,{replace:n,state:a,preventScrollReset:c,relative:u})}}),[d,l,p,i,a,n,t,c,u])}(g,{replace:h,state:f,target:m,preventScrollReset:_,relative:d});return r.createElement("a",i({},y,{href:n||S,onClick:b||p?c:function(t){c&&c(t),t.defaultPrevented||k(t)},ref:e,target:m}))}));var p,h;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(p||(p={})),function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},71761:(t,e,n)=>{"use strict";var r=n(69565),s=n(89228),o=n(28551),i=n(64117),a=n(18014),c=n(655),u=n(67750),l=n(55966),d=n(57829),p=n(56682);s("match",(function(t,e,n){return[function(e){var n=u(this),s=i(e)?void 0:l(e,t);return s?r(s,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),s=c(t),i=n(e,r,s);if(i.done)return i.value;if(!r.global)return p(r,s);var u=r.unicode;r.lastIndex=0;for(var l,h=[],f=0;null!==(l=p(r,s));){var m=c(l[0]);h[f]=m,""===m&&(r.lastIndex=d(s,a(r.lastIndex),u)),f++}return 0===f?null:h}]}))},73893:(t,e,n)=>{"use strict";function r(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n.d(e,{A:()=>r})},60436:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(43145),s=n(73893),o=n(27800);function i(t){return function(t){if(Array.isArray(t))return(0,r.A)(t)}(t)||(0,s.A)(t)||(0,o.A)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},86136:(t,e,n)=>{"use strict";n.d(e,{i:()=>d});var r=n(2498),s=n(85906),o=n(83261),i=n(54543);const a=1e3;let c,u,l;function d(t){(0,r.s5)("dom",t),(0,r.AS)("dom",p)}function p(){if(!i.j.document)return;const t=r.aj.bind(null,"dom"),e=h(t,!0);i.j.document.addEventListener("click",e,!1),i.j.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=i.j[e]&&i.j[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.GS)(n,"addEventListener",(function(e){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=h(t);i.handler=r,e.call(this,n,r,s)}i.refCount++}catch(t){}return e.call(this,n,r,s)}})),(0,s.GS)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[e];o&&(o.refCount--,o.refCount<=0&&(t.call(this,e,o.handler,r),o.handler=void 0,delete s[e]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))}))}function h(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(t){try{return t.target}catch(t){return null}}(n);if(function(t,e){return"keypress"===t&&(!e||!e.tagName||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName&&!e.isContentEditable)}(n.type,r))return;(0,s.my)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,s.my)(r,"_sentryId",(0,o.eJ)());const d="keypress"===n.type?"input":n.type;(function(t){if(t.type!==u)return!1;try{if(!t.target||t.target._sentryId!==l)return!1}catch(t){}return!0})(n)||(t({event:n,name:d,global:e}),u=n.type,l=r?r._sentryId:void 0),clearTimeout(c),c=i.j.setTimeout((()=>{l=void 0,u=void 0}),a)}}},33183:(t,e,n)=>{"use strict";n.d(e,{_:()=>c});var r=n(2498);const s=n(10154).O;var o=n(85906),i=n(54543);let a;function c(t){const e="history";(0,r.s5)(e,t),(0,r.AS)(e,u)}function u(){if(!function(){const t=s.chrome,e=t&&t.app&&t.app.runtime,n="history"in s&&!!s.history.pushState&&!!s.history.replaceState;return!e&&n}())return;const t=i.j.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=a,e=String(n);a=e;const s={from:t,to:e};(0,r.aj)("history",s)}return t.apply(this,e)}}i.j.onpopstate=function(...e){const n=i.j.location.href,s=a;a=n;const o={from:s,to:n};if((0,r.aj)("history",o),t)try{return t.apply(this,e)}catch(t){}},(0,o.GS)(i.j.history,"pushState",e),(0,o.GS)(i.j.history,"replaceState",e)}},39694:(t,e,n)=>{"use strict";n.d(e,{Er:()=>c,Mn:()=>u});var r=n(2498),s=n(85906),o=n(36584),i=n(51513),a=n(54543);const c="__sentry_xhr_v3__";function u(t){(0,r.s5)("xhr",t),(0,r.AS)("xhr",l)}function l(){if(!a.j.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;(0,s.GS)(t,"open",(function(t){return function(...e){const n=1e3*(0,o.zf)(),a=(0,i.Kg)(e[0])?e[0].toUpperCase():void 0,u=function(t){if((0,i.Kg)(t))return t;try{return t.toString()}catch(t){}}(e[1]);if(!a||!u)return t.apply(this,e);this[c]={method:a,url:u,request_headers:{}},"POST"===a&&u.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const l=()=>{const t=this[c];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}const e={endTimestamp:1e3*(0,o.zf)(),startTimestamp:n,xhr:this};(0,r.aj)("xhr",e)}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,s.GS)(this,"onreadystatechange",(function(t){return function(...e){return l(),t.apply(this,e)}})):this.addEventListener("readystatechange",l),(0,s.GS)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,s=this[c];return s&&(0,i.Kg)(n)&&(0,i.Kg)(r)&&(s.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),(0,s.GS)(t,"send",(function(t){return function(...e){const n=this[c];if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);const s={startTimestamp:1e3*(0,o.zf)(),xhr:this};return(0,r.aj)("xhr",s),t.apply(this,e)}}))}},54543:(t,e,n)=>{"use strict";n.d(e,{j:()=>r});const r=n(10154).O},94151:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},2498:(t,e,n)=>{"use strict";n.d(e,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(94151),s=n(11193),o=n(42764);const i={},a={};function c(t,e){i[t]=i[t]||[],i[t].push(e)}function u(t,e){a[t]||(e(),a[t]=!0)}function l(t,e){const n=t&&i[t];if(n)for(const i of n)try{i(e)}catch(e){r.T&&s.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.qQ)(i)}\nError:`,e)}}},51513:(t,e,n)=>{"use strict";n.d(e,{Kg:()=>o,Qd:()=>i,Qg:()=>a});const r=Object.prototype.toString;function s(t,e){return r.call(t)===`[object ${e}]`}function o(t){return s(t,"String")}function i(t){return s(t,"Object")}function a(t){return Boolean(t&&t.then&&"function"==typeof t.then)}},11193:(t,e,n)=>{"use strict";n.d(e,{vF:()=>a});var r=n(94151),s=n(10154);const o=["debug","info","warn","error","log","assert","trace"],i={},a=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.T?o.forEach((n=>{e[n]=(...e)=>{t&&function(t){if(!("console"in s.O))return t();const e=s.O.console,n={},r=Object.keys(i);r.forEach((t=>{const r=i[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}((()=>{s.O.console[n](`Sentry Logger [${n}]:`,...e)}))}})):o.forEach((t=>{e[t]=()=>{}})),e}()},83261:(t,e,n)=>{"use strict";n.d(e,{eJ:()=>s});var r=n(10154);function s(){const t=r.O,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}},85906:(t,e,n)=>{"use strict";n.d(e,{Ce:()=>c,GS:()=>i,my:()=>a});var r=n(94151),s=n(51513),o=n(11193);function i(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&function(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,a(t,"__sentry_original__",e)}catch(t){}}(s,r),t[e]=s}function a(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){r.T&&o.vF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function c(t){return u(t,new Map)}function u(t,e){if(function(t){if(!(0,s.Qd)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=u(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(u(t,e))})),r}return t}},42764:(t,e,n)=>{"use strict";n.d(e,{qQ:()=>s});const r="<anonymous>";function s(t){try{return t&&"function"==typeof t&&t.name||r}catch(t){return r}}},36584:(t,e,n)=>{"use strict";n.d(e,{k3:()=>c,lu:()=>o,zf:()=>i});var r=n(10154);const s=1e3;function o(){return Date.now()/s}const i=function(){const{performance:t}=r.O;if(!t||!t.now)return o;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/s}();let a;const c=(()=>{const{performance:t}=r.O;if(!t||!t.now)return void(a="none");const e=36e5,n=t.now(),s=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,i=o<e,c=t.timing&&t.timing.navigationStart,u="number"==typeof c?Math.abs(c+n-s):e;return i||u<e?o<=u?(a="timeOrigin",t.timeOrigin):(a="navigationStart",c):(a="dateNow",s)})()},10154:(t,e,n)=>{"use strict";n.d(e,{B:()=>s,O:()=>r});const r=globalThis;function s(t,e,n){const s=n||r,o=s.__SENTRY__=s.__SENTRY__||{};return o[t]||(o[t]=e())}},77841:(t,e,n)=>{"use strict";n.d(e,{y:()=>R});var r=n(70896),s=n(7749),o=n(98569),i=n(9053),a=n(79213),c=n(87025),u=n(81854),l=n(46519),d=n(89079),p=n(6879),h=n(35177),f=n(10283),m=n(46277),g=n(27107),_=n(90351),y=n(64602),v=n(77075);const b="Not capturing exception because it's already been captured.";class S{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=(0,r.AD)(t.dsn):h.T&&s.vF.warn("No DSN provided, client will not send events."),this._dsn){const e=(0,d.Z)(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){const r=(0,o.eJ)();if((0,o.GR)(t))return h.T&&s.vF.log(b),r;const i={event_id:r,...e};return this._process(this.eventFromException(t,i).then((t=>this._captureEvent(t,i,n)))),i.event_id}captureMessage(t,e,n,r){const s={event_id:(0,o.eJ)(),...n},a=(0,i.NF)(t)?t:String(t),c=(0,i.sO)(t)?this.eventFromMessage(a,e,s):this.eventFromException(t,s);return this._process(c.then((t=>this._captureEvent(t,s,r)))),s.event_id}captureEvent(t,e,n){const r=(0,o.eJ)();if(e&&e.originalException&&(0,o.GR)(e.originalException))return h.T&&s.vF.log(b),r;const i={event_id:r,...e},a=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,i,a||n)),i.event_id}captureSession(t){"string"!=typeof t.release?h.T&&s.vF.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,g.qO)(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?(this.emit("flush"),this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t))))):(0,a.XW)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,this.emit("close"),t)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const e=this._integrations[t.name];(0,m.qm)(this,t,this._integrations),e||(0,m.lc)(this,[t])}sendEvent(t,e={}){this.emit("beforeSendEvent",t,e);let n=(0,f.V7)(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=(0,c.W3)(n,(0,c.bm)(t));const r=this.sendEnvelope(n);r&&r.then((e=>this.emit("afterSendEvent",t,e)),null)}sendSession(t){const e=(0,f.LE)(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(e)}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;h.T&&s.vF.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,(t=>(h.T&&s.vF.error("Error while sending event:",t),t))):(h.T&&s.vF.error("Transport disabled"),(0,a.XW)({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=(0,m.P$)(this,t),(0,m.lc)(this,t)}_updateSessionFromEvent(t,e){let n=!1,r=!1;const s=e.exception&&e.exception.values;if(s){r=!0;for(const t of s){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const o="ok"===t.status;(o&&0===t.errors||o&&n)&&((0,g.qO)(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new a.T2((e=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),e(!0)):(n+=1,t&&n>=t&&(clearInterval(r),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(t,e,n,r=(0,p.rm)()){const s=this.getOptions(),o=Object.keys(this._integrations);return!e.integrations&&o.length>0&&(e.integrations=o),this.emit("preprocessEvent",t,e),t.type||r.setLastEventId(t.event_id||e.event_id),(0,v.mG)(s,t,e,n,this,r).then((t=>{if(null===t)return t;const e={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!t.contexts||!t.contexts.trace)&&e){const{traceId:n,spanId:r,parentSpanId:s,dsc:o}=e;t.contexts={trace:(0,u.Ce)({trace_id:n,span_id:r,parent_span_id:s}),...t.contexts};const i=o||(0,_.lF)(n,this);t.sdkProcessingMetadata={dynamicSamplingContext:i,...t.sdkProcessingMetadata}}return t}))}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if(h.T){const e=t;"log"===e.logLevel?s.vF.log(e.message):s.vF.warn(e)}}))}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:s}=r,o=w(t),c=k(t),u=t.type||"error",d=`before send for type \`${u}\``,p=void 0===s?void 0:(0,y.i)(s);if(c&&"number"==typeof p&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error",t),(0,a.xg)(new l.U(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const h="replay_event"===u?"replay":u,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,e,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",h,t),new l.U("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const s=function(t,e,n){const{beforeSend:r,beforeSendTransaction:s,beforeSendSpan:o}=t;if(k(e)&&r)return r(e,n);if(w(e)){if(e.spans&&o){const t=[];for(const n of e.spans){const e=o(n);e&&t.push(e)}e.spans=t}if(s)return s(e,n)}return e}(r,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,i.Qg)(t))return t.then((t=>{if(!(0,i.Qd)(t)&&null!==t)throw new l.U(n);return t}),(t=>{throw new l.U(`${e} rejected with ${t}`)}));if(!(0,i.Qd)(t)&&null!==t)throw new l.U(n);return t}(s,d)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",h,t),new l.U(`${d} returned \`null\`, will not send event.`,"log");const s=n&&n.getSession();!o&&s&&this._updateSessionFromEvent(s,r);const i=r.transaction_info;if(o&&i&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...i,source:t}}return this.sendEvent(r,e),r})).then(null,(t=>{if(t instanceof l.U)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new l.U(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t[e]}}))}}function k(t){return void 0===t.type}function w(t){return"transaction"===t.type}var x=n(77179),E=n(23428);function C(t,e,n){const r=[{type:"client_report"},{timestamp:n||(0,E.lu)(),discarded_events:t}];return(0,c.h4)(e?{dsn:e}:{},[r])}var T=n(78650),I=n(10197),O=n(18401),M=n(56678);class R extends S{constructor(t){const e={parentSpanIsAlwaysRootSpan:!0,...t};!function(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:x.M}))),version:x.M}),t._metadata=s}(e,"browser",["browser"],O.jf.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&O.jf.document&&O.jf.document.addEventListener("visibilitychange",(()=>{"hidden"===O.jf.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return(0,I.u)(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return(0,I.qv)(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(T.T&&s.vF.warn("SDK not enabled, will not capture user feedback."));const e=(0,M.L)(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(T.T&&s.vF.log("No outcomes to send"));if(!this._dsn)return void(T.T&&s.vF.log("No dsn provided, will not send outcomes"));T.T&&s.vF.log("Sending outcomes:",t);const e=C(t,this._options.tunnel&&(0,r.SB)(this._dsn));this.sendEnvelope(e)}}},78650:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},10197:(t,e,n)=>{"use strict";n.d(e,{H7:()=>g,K8:()=>u,qv:()=>m,u:()=>f});var r=n(6879),s=n(90928),o=n(9053),i=n(98569),a=n(79213),c=n(81854);function u(t,e){const n=d(t,e),r={type:e&&e.name,value:h(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function l(t,e){return{exception:{values:[u(t,e)]}}}function d(t,e){const n=e.stacktrace||e.stack||"",r=function(t){return t&&p.test(t.message)?1:0}(e),s=function(t){return"number"==typeof t.framesToPop?t.framesToPop:0}(e);try{return t(n,r,s)}catch(t){}return[]}const p=/Minified React error #\d+;/i;function h(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function f(t,e,n,r){const s=g(t,e,n&&n.syntheticException||void 0,r);return(0,i.M6)(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),(0,a.XW)(s)}function m(t,e,n="info",r,s){const o=_(t,e,r&&r.syntheticException||void 0,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),(0,a.XW)(o)}function g(t,e,n,a,c){let p;if((0,o.T2)(e)&&e.error)return l(t,e.error);if((0,o.BD)(e)||(0,o.W6)(e)){const r=e;if("stack"in e)p=l(t,e);else{const e=r.name||((0,o.BD)(r)?"DOMError":"DOMException"),s=r.message?`${e}: ${r.message}`:e;p=_(t,s,n,a),(0,i.gO)(p,s)}return"code"in r&&(p.tags={...p.tags,"DOMException.code":`${r.code}`}),p}return(0,o.bJ)(e)?l(t,e):(0,o.Qd)(e)||(0,o.xH)(e)?(p=function(t,e,n,i){const a=(0,r.KU)(),c=a&&a.getOptions().normalizeDepth,l=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}(e),p={__serialized__:(0,s.cd)(e,c)};if(l)return{exception:{values:[u(t,l)]},extra:p};const h={exception:{values:[{type:(0,o.xH)(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:y(e,{isUnhandledRejection:i})}]},extra:p};if(n){const e=d(t,n);e.length&&(h.exception.values[0].stacktrace={frames:e})}return h}(t,e,n,c),(0,i.M6)(p,{synthetic:!0}),p):(p=_(t,e,n,a),(0,i.gO)(p,`${e}`,void 0),(0,i.M6)(p,{synthetic:!0}),p)}function _(t,e,n,r){const s={};if(r&&n){const r=d(t,n);r.length&&(s.exception={values:[{value:e,stacktrace:{frames:r}}]})}if((0,o.NF)(e)){const{__sentry_template_string__:t,__sentry_template_values__:n}=e;return s.logentry={message:t,params:n},s}return s.message=e,s}function y(t,{isUnhandledRejection:e}){const n=(0,c.HF)(t),r=e?"promise rejection":"exception";return(0,o.T2)(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:(0,o.xH)(t)?`Event \`${function(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}},18401:(t,e,n)=>{"use strict";n.d(e,{LV:()=>d,jN:()=>l,jf:()=>c});var r=n(6879),s=n(18700),o=n(70526),i=n(81854),a=n(98569);const c=o.O;let u=0;function l(){return u>0}function d(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,i.sp)(t))return t}catch(e){return t}const o=function(){const o=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const r=o.map((t=>d(t,e)));return t.apply(this,r)}catch(t){throw u++,setTimeout((()=>{u--})),(0,r.v4)((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,a.gO)(t,void 0,void 0),(0,a.M6)(t,e.mechanism)),t.extra={...t.extra,arguments:o},t))),(0,s.Cp)(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}catch(t){}(0,i.pO)(o,t),(0,i.my)(t,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:()=>t.name})}catch(t){}return o}},47212:(t,e,n)=>{"use strict";n.d(e,{F:()=>v});var r=n(86136),s=n(39694),o=n(33183),i=n(46277),a=n(6879),c=n(44681),u=n(76450),l=n(71319),d=n(98569),p=n(7749),h=n(33437),f=n(67386),m=n(33340),g=n(14124),_=n(78650),y=n(18401);const v=(0,i._C)(((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:"Breadcrumbs",setup(t){e.console&&(0,u.P)(function(t){return function(e){if((0,a.KU)()!==t)return;const n={category:"console",data:{arguments:e.args,logger:"console"},level:(0,f.t)(e.level),message:(0,m.gt)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,m.gt)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,c.Z)(n,{input:e.args,level:e.level})}}(t)),e.dom&&(0,r.i)(function(t,e){return function(n){if((0,a.KU)()!==t)return;let r,s,o="object"==typeof e?e.serializeAttribute:void 0,i="object"==typeof e&&"number"==typeof e.maxStringLength?e.maxStringLength:void 0;i&&i>1024&&(_.T&&p.vF.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof o&&(o=[o]);try{const t=n.event,e=function(t){return!!t&&!!t.target}(t)?t.target:t;r=(0,h.Hd)(e,{keyAttrs:o,maxStringLength:i}),s=(0,h.xE)(e)}catch(t){r="<unknown>"}if(0===r.length)return;const u={category:`ui.${n.name}`,message:r};s&&(u.data={"ui.component_name":s}),(0,c.Z)(u,{event:n.event,name:n.name,global:n.global})}}(t,e.dom)),e.xhr&&(0,s.Mn)(function(t){return function(e){if((0,a.KU)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e,o=e.xhr[s.Er];if(!n||!r||!o)return;const{method:i,url:u,status_code:l,body:d}=o,p={method:i,url:u,status_code:l},h={xhr:e.xhr,input:d,startTimestamp:n,endTimestamp:r};(0,c.Z)({category:"xhr",data:p,type:"http"},h)}}(t)),e.fetch&&(0,l.u)(function(t){return function(e){if((0,a.KU)()!==t)return;const{startTimestamp:n,endTimestamp:r}=e;if(r&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){const t=e.fetchData,s={data:e.error,input:e.args,startTimestamp:n,endTimestamp:r};(0,c.Z)({category:"fetch",data:t,level:"error",type:"http"},s)}else{const t=e.response,s={...e.fetchData,status_code:t&&t.status},o={input:e.args,response:t,startTimestamp:n,endTimestamp:r};(0,c.Z)({category:"fetch",data:s,type:"http"},o)}}}(t)),e.history&&(0,o._)(function(t){return function(e){if((0,a.KU)()!==t)return;let n=e.from,r=e.to;const s=(0,g.Dl)(y.jf.location.href);let o=n?(0,g.Dl)(n):void 0;const i=(0,g.Dl)(r);o&&o.path||(o=s),s.protocol===i.protocol&&s.host===i.host&&(r=i.relative),s.protocol===o.protocol&&s.host===o.host&&(n=o.relative),(0,c.Z)({category:"navigation",data:{from:n,to:r}})}}(t)),e.sentry&&t.on("beforeSendEvent",function(t){return function(e){(0,a.KU)()===t&&(0,c.Z)({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,d.$X)(e)},{event:e})}}(t))}}}))},119:(t,e,n)=>{"use strict";n.d(e,{G:()=>c});var r=n(46277),s=n(81854),o=n(2744),i=n(18401);const a=["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"],c=(0,r._C)(((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:"BrowserApiErrors",setupOnce(){e.setTimeout&&(0,s.GS)(i.jf,"setTimeout",u),e.setInterval&&(0,s.GS)(i.jf,"setInterval",u),e.requestAnimationFrame&&(0,s.GS)(i.jf,"requestAnimationFrame",l),e.XMLHttpRequest&&"XMLHttpRequest"in i.jf&&(0,s.GS)(XMLHttpRequest.prototype,"send",d);const t=e.eventTarget;t&&(Array.isArray(t)?t:a).forEach(p)}}}));function u(t){return function(...e){const n=e[0];return e[0]=(0,i.LV)(n,{mechanism:{data:{function:(0,o.qQ)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function l(t){return function(e){return t.apply(this,[(0,i.LV)(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,o.qQ)(t)},handled:!1,type:"instrument"}})])}}function d(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,s.GS)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,o.qQ)(e)},handled:!1,type:"instrument"}},r=(0,s.sp)(e);return r&&(n.mechanism.data.handler=(0,o.qQ)(r)),(0,i.LV)(e,n)}))})),t.apply(this,e)}}function p(t){const e=i.jf,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,s.GS)(n,"addEventListener",(function(e){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=(0,i.LV)(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,o.qQ)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,(0,i.LV)(r,{mechanism:{data:{function:"addEventListener",handler:(0,o.qQ)(r),target:t},handled:!1,type:"instrument"}}),s])}})),(0,s.GS)(n,"removeEventListener",(function(t){return function(e,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,s,r)}})))}},88270:(t,e,n)=>{"use strict";n.d(e,{L:()=>m});var r=n(46277),s=n(6879),o=n(18700),i=n(50092),a=n(74582),c=n(9053),u=n(33437),l=n(2744),d=n(7749),p=n(78650),h=n(10197),f=n(18401);const m=(0,r._C)(((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(function(t){(0,i.L)((e=>{const{stackParser:n,attachStacktrace:r}=_();if((0,s.KU)()!==t||(0,f.jN)())return;const{msg:i,url:a,line:d,column:p,error:m}=e,g=function(t,e,n,r){const s=t.exception=t.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},d=a.frames=a.frames||[],p=isNaN(parseInt(r,10))?void 0:r,h=isNaN(parseInt(n,10))?void 0:n,f=(0,c.Kg)(e)&&e.length>0?e:(0,u.$N)();return 0===d.length&&d.push({colno:p,filename:f,function:l.yF,in_app:!0,lineno:h}),t}((0,h.H7)(n,m||i,void 0,r,!1),a,d,p);g.level="error",(0,o.r)(g,{originalException:m,mechanism:{handled:!1,type:"onerror"}})}))}(t),g("onerror")),e.onunhandledrejection&&(function(t){(0,a.r)((e=>{const{stackParser:n,attachStacktrace:r}=_();if((0,s.KU)()!==t||(0,f.jN)())return;const i=function(t){if((0,c.sO)(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(t){}return t}(e),a=(0,c.sO)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:(0,h.H7)(n,i,void 0,r,!0);a.level="error",(0,o.r)(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(t),g("onunhandledrejection"))}}}));function g(t){p.T&&d.vF.log(`Global Handler attached: ${t}`)}function _(){const t=(0,s.KU)();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}},29477:(t,e,n)=>{"use strict";n.d(e,{M:()=>o});var r=n(46277),s=n(18401);const o=(0,r._C)((()=>({name:"HttpContext",preprocessEvent(t){if(!s.jf.navigator&&!s.jf.location&&!s.jf.document)return;const e=t.request&&t.request.url||s.jf.location&&s.jf.location.href,{referrer:n}=s.jf.document||{},{userAgent:r}=s.jf.navigator||{},o={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:o};t.request=i}})))},86869:(t,e,n)=>{"use strict";n.d(e,{p:()=>d});var r=n(46277),s=n(9053),o=n(33340);function i(t,e,n=250,r,i,c,u){if(!(c.exception&&c.exception.values&&u&&(0,s.tH)(u.originalException,Error)))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:void 0;var d,p;l&&(c.exception.values=(d=a(t,e,i,u.originalException,r,c.exception.values,l,0),p=n,d.map((t=>(t.value&&(t.value=(0,o.xv)(t.value,p)),t)))))}function a(t,e,n,r,o,i,l,d){if(i.length>=n+1)return i;let p=[...i];if((0,s.tH)(r[o],Error)){c(l,d);const s=t(e,r[o]),i=p.length;u(s,o,i,d),p=a(t,e,n,r[o],o,[s,...p],s,i)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if((0,s.tH)(r,Error)){c(l,d);const s=t(e,r),h=p.length;u(s,`errors[${i}]`,h,d),p=a(t,e,n,r,o,[s,...p],s,h)}})),p}function c(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,..."AggregateError"===t.type&&{is_exception_group:!0},exception_id:e}}function u(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}var l=n(10197);const d=(0,r._C)(((t={})=>{const e=t.limit||5,n=t.key||"cause";return{name:"LinkedErrors",preprocessEvent(t,r,s){const o=s.getOptions();i(l.K8,o.stackParser,o.maxValueLength,n,e,t,r)}}}))},45732:(t,e,n)=>{"use strict";n.d(e,{Ts:()=>C,kF:()=>O,lo:()=>M,mn:()=>T,nI:()=>E,w7:()=>I});var r=n(72783),s=n(49783),o=n(71208),i=n(46277),a=n(29499),c=n(6879),u=n(18700),l=n(89079),d=n(7749),p=n(89357),h=n(2744),f=n(33183),m=n(77841),g=n(78650),_=n(18401),y=n(47212),v=n(119),b=n(88270),S=n(29477),k=n(86869),w=n(93797),x=n(14071);function E(t){return[(0,r.D)(),(0,s.Z)(),(0,v.G)(),(0,y.F)(),(0,b.L)(),(0,k.p)(),(0,o.s)(),(0,S.M)()]}function C(t={}){const e=function(t={}){return{defaultIntegrations:E(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:_.jf.SENTRY_RELEASE&&_.jf.SENTRY_RELEASE.id?_.jf.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...t}}(t);if(function(){const t=_.jf,e=t&&t.chrome&&t.chrome.runtime&&t.chrome.runtime.id,n=_.jf;return!!(n&&n.browser&&n.browser.runtime&&n.browser.runtime.id)||!!e}())return void(0,d.pq)((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));g.T&&((0,p.vm)()||d.vF.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...e,stackParser:(0,h.vk)(e.stackParser||w.lG),integrations:(0,i.mH)(e),transport:e.transport||x._};(0,a.J)(m.y,n),e.autoSessionTracking&&(void 0!==_.jf.document?((0,u.J0)({ignoreDuration:!0}),(0,u.J5)(),(0,f._)((({from:t,to:e})=>{void 0!==t&&t!==e&&((0,u.J0)({ignoreDuration:!0}),(0,u.J5)())}))):g.T&&d.vF.warn("Session tracking in non-browser environment with @sentry/browser is not supported."))}function T(t={}){if(!_.jf.document)return void(g.T&&d.vF.error("Global document not defined in showReportDialog call"));const e=(0,c.o5)(),n=e.getClient(),r=n&&n.getDsn();if(!r)return void(g.T&&d.vF.error("DSN not configured for showReportDialog call"));if(e&&(t.user={...e.getUser(),...t.user}),!t.eventId){const e=(0,u.Q)();e&&(t.eventId=e)}const s=_.jf.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=(0,l.k)(r,t),t.onLoad&&(s.onload=t.onLoad);const{onClose:o}=t;if(o){const t=e=>{if("__sentry_reportdialog_closed__"===e.data)try{o()}finally{_.jf.removeEventListener("message",t)}};_.jf.addEventListener("message",t)}const i=_.jf.document.head||_.jf.document.body;i?i.appendChild(s):g.T&&d.vF.error("Not injecting report dialog. No injection point found in HTML")}function I(){}function O(t){t()}function M(t){const e=(0,c.KU)();e&&e.captureUserFeedback(t)}},93797:(t,e,n)=>{"use strict";n.d(e,{$2:()=>p,Q_:()=>f,Vv:()=>g,Yj:()=>a,c9:()=>_,dY:()=>l,lG:()=>y});var r=n(2744);function s(t,e,n,s){const o={filename:t,function:"<anonymous>"===e?r.yF:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==s&&(o.colno=s),o}const o=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/\((\S*)(?::(\d+))(?::(\d+))\)/,a=[30,t=>{const e=o.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=i.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=v(e[1]||r.yF,e[2]);return s(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],c=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=[50,t=>{const e=c.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=u.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||r.yF;return[n,t]=v(n,t),s(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],d=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,p=[40,t=>{const e=d.exec(t);return e?s(e[2],e[1]||r.yF,+e[3],e[4]?+e[4]:void 0):void 0}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,f=[10,t=>{const e=h.exec(t);return e?s(e[2],e[3]||r.yF,+e[1]):void 0}],m=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,g=[20,t=>{const e=m.exec(t);return e?s(e[5],e[3]||e[4]||r.yF,+e[1],+e[2]):void 0}],_=[a,l],y=(0,r.gd)(..._),v=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),s=-1!==t.indexOf("safari-web-extension");return n||s?[-1!==t.indexOf("@")?t.split("@")[0]:r.yF,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]}},14071:(t,e,n)=>{"use strict";n.d(e,{_:()=>d});var r=n(66044),s=n(79213),o=n(89357),i=n(7749),a=n(78650),c=n(18401);let u;function l(){u=void 0}function d(t,e=function(){if(u)return u;if((0,o.ap)(c.jf.fetch))return u=c.jf.fetch.bind(c.jf);const t=c.jf.document;let e=c.jf.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){a.T&&i.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}try{return u=e.bind(c.jf)}catch(t){}}()){let n=0,d=0;return(0,r.o)(t,(function(r){const o=r.body.length;n+=o,d++;const i={body:r.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&d<15,...t.fetchOptions};if(!e)return l(),(0,s.xg)("No fetch implementation available");try{return e(t.url,i).then((t=>(n-=o,d--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return l(),n-=o,d--,(0,s.xg)(t)}}))}},56678:(t,e,n)=>{"use strict";n.d(e,{L:()=>o});var r=n(70896),s=n(87025);function o(t,{metadata:e,tunnel:n,dsn:o}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!o&&{dsn:(0,r.SB)(o)}},a=function(t){return[{type:"user_report"},t]}(t);return(0,s.h4)(i,[a])}},89079:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a,k:()=>c});var r=n(81854),s=n(70896);const o="7";function i(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function a(t,e,n){return e||`${function(t){return`${i(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,r.u4)({sentry_key:t.publicKey,sentry_version:o,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,n)}`}function c(t,e){const n=(0,s.AD)(t);if(!n)return"";const r=`${i(n)}embed/error-page/`;let o=`dsn=${(0,s.SB)(n)}`;for(const t in e)if("dsn"!==t&&"onClose"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(o+=`&name=${encodeURIComponent(t.name)}`),t.email&&(o+=`&email=${encodeURIComponent(t.email)}`)}else o+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${o}`}},19894:(t,e,n)=>{"use strict";n.d(e,{h:()=>p});var r=n(6019),s=n(9053),o=n(6879),i=n(83587);class a{constructor(t,e){let n,r;n=t||new i.H,r=e||new i.H,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,s.Qg)(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function c(){const t=(0,r.E)(),e=(0,r.S)(t);return e.hub||(e.hub=new a((0,o.ry)(),(0,o.qs)())),e.hub}function u(t){return c().withScope(t)}function l(t,e){const n=c();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function d(t){return c().withScope((()=>t(c().getIsolationScope())))}function p(t){const e=(0,r.S)(t);return e.acs?e.acs:{withIsolationScope:d,withScope:u,withSetScope:l,withSetIsolationScope:(t,e)=>d(e),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},44681:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var r=n(23428),s=n(7749),o=n(6879);const i=100;function a(t,e){const n=(0,o.KU)(),a=(0,o.rm)();if(!n)return;const{beforeBreadcrumb:c=null,maxBreadcrumbs:u=i}=n.getOptions();if(u<=0)return;const l={timestamp:(0,r.lu)(),...t},d=c?(0,s.pq)((()=>c(l,e))):l;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,e),a.addBreadcrumb(d,u))}},6019:(t,e,n)=>{"use strict";n.d(e,{E:()=>s,S:()=>o});var r=n(70526);function s(){return o(r.O),r.O}function o(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}},26950:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});const r="production"},6879:(t,e,n)=>{"use strict";n.d(e,{KU:()=>f,m6:()=>d,o5:()=>u,qs:()=>c,rB:()=>h,rm:()=>l,ry:()=>a,v4:()=>p});var r=n(70526),s=n(19894),o=n(6019),i=n(83587);function a(){return(0,r.B)("defaultCurrentScope",(()=>new i.H))}function c(){return(0,r.B)("defaultIsolationScope",(()=>new i.H))}function u(){const t=(0,o.E)();return(0,s.h)(t).getCurrentScope()}function l(){const t=(0,o.E)();return(0,s.h)(t).getIsolationScope()}function d(){return(0,r.B)("globalScope",(()=>new i.H))}function p(...t){const e=(0,o.E)(),n=(0,s.h)(e);if(2===t.length){const[e,r]=t;return e?n.withSetScope(e,r):n.withScope(r)}return n.withScope(t[0])}function h(...t){const e=(0,o.E)(),n=(0,s.h)(e);if(2===t.length){const[e,r]=t;return e?n.withSetIsolationScope(e,r):n.withIsolationScope(r)}return n.withIsolationScope(t[0])}function f(){return u().getClient()}},35177:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},10283:(t,e,n)=>{"use strict";n.d(e,{LE:()=>a,V7:()=>c,lu:()=>u});var r=n(87025),s=n(70896),o=n(80696),i=n(90351);function a(t,e,n,o){const i=(0,r.Cj)(n),a={sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!o&&e&&{dsn:(0,s.SB)(e)}},c="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return(0,r.h4)(a,[c])}function c(t,e,n,s){const o=(0,r.Cj)(n),i=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const a=(0,r.n2)(t,o,s,e);delete t.sdkProcessingMetadata;const c=[{type:i},t];return(0,r.h4)(a,[c])}function u(t,e){const n=(0,i.k1)(t[0]),s={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n}},a=e&&e.getOptions().beforeSendSpan,c=a?t=>a((0,o.et)(t)):t=>(0,o.et)(t),u=[];for(const e of t){const t=c(e);t&&u.push((0,r.y5)(t))}return(0,r.h4)(s,u)}},18700:(t,e,n)=>{"use strict";n.d(e,{Cp:()=>l,Dp:()=>k,J0:()=>x,J5:()=>T,NA:()=>_,Q:()=>v,SA:()=>w,VN:()=>S,Wt:()=>g,bX:()=>b,cx:()=>f,gV:()=>y,ky:()=>E,l7:()=>m,o:()=>h,r:()=>p,wd:()=>d});var r=n(7749),s=n(70526),o=n(26950),i=n(6879),a=n(35177),c=n(27107),u=n(77075);function l(t,e){return(0,i.o5)().captureException(t,(0,u.li)(e))}function d(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return(0,i.o5)().captureMessage(t,n,r)}function p(t,e){return(0,i.o5)().captureEvent(t,e)}function h(t,e){(0,i.rm)().setContext(t,e)}function f(t){(0,i.rm)().setExtras(t)}function m(t,e){(0,i.rm)().setExtra(t,e)}function g(t){(0,i.rm)().setTags(t)}function _(t,e){(0,i.rm)().setTag(t,e)}function y(t){(0,i.rm)().setUser(t)}function v(){return(0,i.rm)().lastEventId()}async function b(t){const e=(0,i.KU)();return e?e.flush(t):(a.T&&r.vF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function S(t){const e=(0,i.KU)();return e?e.close(t):(a.T&&r.vF.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function k(){return!!(0,i.KU)()}function w(t){(0,i.rm)().addEventProcessor(t)}function x(t){const e=(0,i.KU)(),n=(0,i.rm)(),r=(0,i.o5)(),{release:a,environment:u=o.U}=e&&e.getOptions()||{},{userAgent:l}=s.O.navigator||{},d=(0,c.fj)({release:a,environment:u,user:r.getUser()||n.getUser(),...l&&{userAgent:l},...t}),p=n.getSession();return p&&"ok"===p.status&&(0,c.qO)(p,{status:"exited"}),E(),n.setSession(d),r.setSession(d),d}function E(){const t=(0,i.rm)(),e=(0,i.o5)(),n=e.getSession()||t.getSession();n&&(0,c.Vu)(n),C(),t.setSession(),e.setSession()}function C(){const t=(0,i.rm)(),e=(0,i.o5)(),n=(0,i.KU)(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function T(t=!1){t?E():C()}},46277:(t,e,n)=>{"use strict";n.d(e,{P$:()=>u,Q8:()=>p,_C:()=>h,lc:()=>l,mH:()=>c,qm:()=>d});var r=n(98569),s=n(7749),o=n(6879),i=n(35177);const a=[];function c(t){const e=t.defaultIntegrations||[],n=t.integrations;let s;e.forEach((t=>{t.isDefaultInstance=!0})),s=Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,r.k9)(n(e)):e;const o=function(t){const e={};return t.forEach((t=>{const{name:n}=t,r=e[n];r&&!r.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(s),i=function(t,e){for(let e=0;e<t.length;e++)if(!0==("Debug"===t[e].name))return e;return-1}(o);if(-1!==i){const[t]=o.splice(i,1);o.push(t)}return o}function u(t,e){const n={};return e.forEach((e=>{e&&d(t,e,n)})),n}function l(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function d(t,e,n){if(n[e.name])i.T&&s.vF.log(`Integration skipped because it was already installed: ${e.name}`);else{if(n[e.name]=e,-1===a.indexOf(e.name)&&"function"==typeof e.setupOnce&&(e.setupOnce(),a.push(e.name)),e.setup&&"function"==typeof e.setup&&e.setup(t),"function"==typeof e.preprocessEvent){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",((e,r)=>n(e,r,t)))}if("function"==typeof e.processEvent){const n=e.processEvent.bind(e),r=Object.assign(((e,r)=>n(e,r,t)),{id:e.name});t.addEventProcessor(r)}i.T&&s.vF.log(`Integration installed: ${e.name}`)}}function p(t){const e=(0,o.KU)();e?e.addIntegration(t):i.T&&s.vF.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`)}function h(t){return t}},71208:(t,e,n)=>{"use strict";n.d(e,{s:()=>i});var r=n(7749),s=n(46277),o=n(35177);const i=(0,s._C)((()=>{let t;return{name:"Dedupe",processEvent(e){if(e.type)return e;try{if(function(t,e){return!!e&&(!!function(t,e){const n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!c(t,e)&&!!a(t,e))))}(t,e)||!!function(t,e){const n=u(e),r=u(t);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!c(t,e)&&!!a(t,e)))}(t,e))}(e,t))return o.T&&r.vF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return t=e}}}));function a(t,e){let n=l(t),r=l(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],s=n[t];if(e.filename!==s.filename||e.lineno!==s.lineno||e.colno!==s.colno||e.function!==s.function)return!1}return!0}function c(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function u(t){return t.exception&&t.exception.values&&t.exception.values[0]}function l(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}},49783:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var r=n(81854),s=n(6879),o=n(46277);let i;const a=new WeakMap,c=(0,o._C)((()=>({name:"FunctionToString",setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,r.sp)(this),n=a.has((0,s.KU)())&&void 0!==e?e:this;return i.apply(n,t)}}catch(t){}},setup(t){a.set(t,!0)}})))},72783:(t,e,n)=>{"use strict";n.d(e,{D:()=>u});var r=n(7749),s=n(98569),o=n(33340),i=n(35177),a=n(46277);const c=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],u=(0,a._C)(((t={})=>({name:"InboundFilters",processEvent(e,n,a){const u=a.getOptions(),d=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:c],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(t,u);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(i.T&&r.vF.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){const e=[];let n;t.message&&e.push(t.message);try{n=t.exception.values[t.exception.values.length-1]}catch(t){}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}(t).some((t=>(0,o.Xr)(t,e)))}(t,e.ignoreErrors)?(i.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,o.Xr)(n,e)}(t,e.ignoreTransactions)?(i.T&&r.vF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,s.$X)(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=l(t);return!!n&&(0,o.Xr)(n,e)}(t,e.denyUrls)?(i.T&&r.vF.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${l(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=l(t);return!n||(0,o.Xr)(n,e)}(t,e.allowUrls)&&(i.T&&r.vF.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.$X)(t)}.\nUrl: ${l(t)}`),!0)}(e,d)?null:e}})));function l(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return i.T&&r.vF.error(`Cannot extract url for event ${(0,s.$X)(t)}`),null}}},46912:(t,e,n)=>{"use strict";n.d(e,{X:()=>a,g:()=>i});var r=n(81854);let s;function o(t){return s?s.get(t):void 0}function i(t){const e=o(t);if(!e)return;const n={};for(const[,[t,s]]of e)n[t]||(n[t]=[]),n[t].push((0,r.Ce)(s));return n}function a(t,e,n,r,i,a,c){const u=o(t)||new Map,l=`${e}:${n}@${i}`,d=u.get(c);if(d){const[,t]=d;u.set(c,[l,{min:Math.min(t.min,r),max:Math.max(t.max,r),count:t.count+=1,sum:t.sum+=r,tags:t.tags}])}else u.set(c,[l,{min:r,max:r,count:1,sum:r,tags:a}]);s||(s=new WeakMap),s.set(t,u)}},83587:(t,e,n)=>{"use strict";n.d(e,{H:()=>l});var r=n(9053),s=n(23428),o=n(98569),i=n(7749),a=n(27107),c=n(82390);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=d()}clone(){const t=new u;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,(0,c.r)(t,(0,c.f)(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,a.qO)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,s]=e instanceof l?[e.getScopeData(),e.getRequestSession()]:(0,r.Qd)(e)?[t,t.requestSession]:[],{tags:o,extra:i,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,(0,c.r)(this,void 0),this._attachments=[],this._propagationContext=d(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,s.lu)(),...t},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.f)(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:(0,o.eJ)();if(!this._client)return i.vF.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:(0,o.eJ)();if(!this._client)return i.vF.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,o.eJ)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(i.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const l=u;function d(){return{traceId:(0,o.eJ)(),spanId:(0,o.eJ)().substring(16)}}},29499:(t,e,n)=>{"use strict";n.d(e,{B:()=>c,J:()=>a});var r=n(7749),s=n(6879),o=n(6019),i=n(35177);function a(t,e){!0===e.debug&&(i.T?r.vF.enable():(0,r.pq)((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),(0,s.o5)().update(e.initialScope);const n=new t(e);c(n),n.init()}function c(t){(0,s.o5)().setClient(t),function(t){const e=(0,o.S)((0,o.E)());e.hub&&"function"==typeof e.hub.getStackTop&&(e.hub.getStackTop().client=t)}(t)}},33585:(t,e,n)=>{"use strict";n.d(e,{E1:()=>l,JD:()=>i,Sn:()=>c,fs:()=>a,i_:()=>r,jG:()=>d,sy:()=>s,uT:()=>o,xc:()=>u});const r="sentry.source",s="sentry.sample_rate",o="sentry.op",i="sentry.origin",a="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",l="sentry.profile_id",d="sentry.exclusive_time"},27107:(t,e,n)=>{"use strict";n.d(e,{Vu:()=>c,fj:()=>i,qO:()=>a});var r=n(23428),s=n(98569),o=n(81854);function i(t){const e=(0,r.zf)(),n={sid:(0,s.eJ)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,o.Ce)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&a(n,t),n}function a(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,r.zf)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,s.eJ)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),a(t,n)}},90351:(t,e,n)=>{"use strict";n.d(e,{LZ:()=>u,k1:()=>d,lF:()=>l});var r=n(81854),s=n(26950),o=n(6879),i=n(33585),a=n(80696);const c="_frozenDsc";function u(t,e){const n=t;(0,r.my)(n,c,e)}function l(t,e){const n=e.getOptions(),{publicKey:o}=e.getDsn()||{},i=(0,r.Ce)({environment:n.environment||s.U,release:n.release,public_key:o,trace_id:t});return e.emit("createDsc",i),i}function d(t){const e=(0,o.KU)();if(!e)return{};const n=l((0,a.et)(t).trace_id||"",e),r=(0,a.zU)(t);if(!r)return n;const s=r[c];if(s)return s;const u=(0,a.et)(r),d=u.data||{},p=d[i.sy];null!=p&&(n.sample_rate=`${p}`);const h=d[i.i_];return h&&"url"!==h&&(n.transaction=u.description),n.sampled=String((0,a.pK)(r)),e.emit("createDsc",n),n}},33550:(t,e,n)=>{"use strict";n.d(e,{AJ:()=>i,F3:()=>s,N8:()=>a,TJ:()=>o,a3:()=>r});const r=0,s=1,o=2;function i(t){if(t<400&&t>=100)return{code:s};if(t>=400&&t<500)switch(t){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}function a(t,e){t.setAttribute("http.response.status_code",e);const n=i(e);"unknown_error"!==n.message&&t.setStatus(n)}},66044:(t,e,n)=>{"use strict";n.d(e,{o:()=>l});var r=n(46519),s=n(79213);var o=n(87025),i=n(78068),a=n(7749),c=n(35177);const u=64;function l(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(o){if(!(void 0===t||e.length<t))return(0,s.xg)(new r.U("Not adding Promise because buffer limit was reached."));const i=o();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new s.T2(((n,r)=>{let o=e.length;if(!o)return n(!0);const i=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,s.XW)(t).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(t.bufferSize||u)){let l={};return{send:function(u){const p=[];if((0,o.yH)(u,((e,n)=>{const r=(0,o.zk)(n);if((0,i.Jz)(l,r)){const s=d(e,n);t.recordDroppedEvent("ratelimit_backoff",r,s)}else p.push(e)})),0===p.length)return(0,s.XW)({});const h=(0,o.h4)(u[0],p),f=e=>{(0,o.yH)(h,((n,r)=>{const s=d(n,r);t.recordDroppedEvent(e,(0,o.zk)(r),s)}))};return n.add((()=>e({body:(0,o.bN)(h)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&c.T&&a.vF.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),l=(0,i.wq)(l,t),t)),(t=>{throw f("network_error"),t})))).then((t=>t),(t=>{if(t instanceof r.U)return c.T&&a.vF.error("Skipped sending event because buffer is full."),f("queue_overflow"),(0,s.XW)({});throw t}))},flush:t=>n.drain(t)}}function d(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}},64602:(t,e,n)=>{"use strict";n.d(e,{i:()=>o});var r=n(7749),s=n(35177);function o(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;s.T&&r.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}},77075:(t,e,n)=>{"use strict";n.d(e,{li:()=>w,mG:()=>S});var r=n(98569),s=n(23428),o=n(33340),i=n(70526),a=n(90928),c=n(26950),u=n(6879),l=n(79213),d=n(7749),p=n(9053),h=n(35177);function f(t,e,n,r=0){return new l.T2(((s,o)=>{const i=t[r];if(null===e||"function"!=typeof i)s(e);else{const a=i({...e},n);h.T&&i.id&&null===a&&d.vF.log(`Event processor "${i.id}" dropped event`),(0,p.Qg)(a)?a.then((e=>f(t,e,n,r+1).then(s))).then(null,o):f(t,a,n,r+1).then(s).then(null,o)}}))}var m=n(83587),g=n(81854),_=n(90351),y=n(80696);function v(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=e;b(t,"extra",n),b(t,"tags",r),b(t,"user",s),b(t,"contexts",o),b(t,"sdkProcessingMetadata",a),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function b(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function S(t,e,n,l,d,p){const{normalizeDepth:h=3,normalizeMaxBreadth:b=1e3}=t,S={...e,event_id:e.event_id||n.event_id||(0,r.eJ)(),timestamp:e.timestamp||(0,s.lu)()},w=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;"environment"in t||(t.environment="environment"in e?n:c.U),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==s&&(t.dist=s),t.message&&(t.message=(0,o.xv)(t.message,i));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,o.xv)(a.value,i));const u=t.request;u&&u.url&&(u.url=(0,o.xv)(u.url,i))}(S,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(S,w),void 0===e.type&&function(t,e){const n=i.O._sentryDebugIds;if(!n)return;let r;const s=k.get(e);s?r=s:(r=new Map,k.set(e,r));const o=Object.keys(n).reduce(((t,s)=>{let o;const i=r.get(s);i?o=i:(o=e(s),r.set(s,o));for(let e=o.length-1;e>=0;e--){const r=o[e];if(r.filename){t[r.filename]=n[s];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(S,t.stackParser);const x=function(t,e){if(!e)return t;const n=t?t.clone():new m.H;return n.update(e),n}(l,n.captureContext);n.mechanism&&(0,r.M6)(S,n.mechanism);const E=d?d.getEventProcessors():[],C=(0,u.m6)().getScopeData();p&&v(C,p.getScopeData()),x&&v(C,x.getScopeData());const T=[...n.attachments||[],...C.attachments];return T.length&&(n.attachments=T),function(t,e){const{fingerprint:n,span:s,breadcrumbs:o,sdkProcessingMetadata:i}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e,c=(0,g.Ce)(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=(0,g.Ce)(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=(0,g.Ce)(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=(0,g.Ce)(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),s&&function(t,e){t.contexts={trace:(0,y.kX)(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:(0,_.k1)(e),...t.sdkProcessingMetadata};const n=(0,y.zU)(e),r=(0,y.et)(n).description;r&&!t.transaction&&"transaction"===t.type&&(t.transaction=r)}(t,s),function(t,e){t.fingerprint=t.fingerprint?(0,r.k9)(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,o),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,i)}(S,C),f([...E,...C.eventProcessors],S,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof h&&h>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:(0,a.S8)(t.data,e,n)}})))},...t.user&&{user:(0,a.S8)(t.user,e,n)},...t.contexts&&{contexts:(0,a.S8)(t.contexts,e,n)},...t.extra&&{extra:(0,a.S8)(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=(0,a.S8)(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:(0,a.S8)(t.data,e,n)}})))),r}(t,h,b):t)))}const k=new WeakMap;function w(t){if(t)return function(t){return t instanceof m.H||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>x.includes(t)))}(t)?{captureContext:t}:t}const x=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},82390:(t,e,n)=>{"use strict";n.d(e,{f:()=>i,r:()=>o});var r=n(81854);const s="_sentrySpan";function o(t,e){e?(0,r.my)(t,s,e):delete t[s]}function i(t){return t[s]}},80696:(t,e,n)=>{"use strict";n.d(e,{Bk:()=>N,CC:()=>m,Ck:()=>_,HW:()=>b,Hu:()=>I,Qh:()=>v,VS:()=>O,aO:()=>g,cI:()=>S,et:()=>w,kX:()=>y,pK:()=>x,r2:()=>A,xO:()=>M,yW:()=>E,zU:()=>R});var r=n(81854),s=n(19171),o=n(26715),i=n(23428),a=n(19894),c=n(6019),u=n(6879),l=n(46912),d=n(33585),p=n(82390),h=n(33550),f=n(90351);const m=0,g=1;function _(t){const{spanId:e,traceId:n}=t.spanContext(),{data:s,op:o,parent_span_id:i,status:a,origin:c}=w(t);return(0,r.Ce)({parent_span_id:i,span_id:e,trace_id:n,data:s,op:o,status:a,origin:c})}function y(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:s}=w(t);return(0,r.Ce)({parent_span_id:s,span_id:e,trace_id:n})}function v(t){const{traceId:e,spanId:n}=t.spanContext(),r=x(t);return(0,s.TC)(e,n,r)}function b(t){const e=(0,f.k1)(t);return(0,o.De)(e)}function S(t){return"number"==typeof t?k(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?k(t.getTime()):(0,i.zf)()}function k(t){return t>9999999999?t/1e3:t}function w(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:s,startTime:o,name:i,endTime:a,parentSpanId:c,status:u}=t;return(0,r.Ce)({span_id:e,trace_id:n,data:s,description:i,parent_span_id:c,start_timestamp:S(o),timestamp:S(a)||void 0,status:E(u),op:s[d.uT],origin:s[d.JD],_metrics_summary:(0,l.g)(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function x(t){const{traceFlags:e}=t.spanContext();return e===g}function E(t){if(t&&t.code!==h.a3)return t.code===h.F3?"ok":t.message||"unknown_error"}const C="_sentryChildSpans",T="_sentryRootSpan";function I(t,e){const n=t[T]||t;(0,r.my)(e,T,n),t[C]&&t[C].size<1e3?t[C].add(e):(0,r.my)(t,C,new Set([e]))}function O(t,e){t[C]&&t[C].delete(e)}function M(t){const e=new Set;return function t(n){if(!e.has(n)&&x(n)){e.add(n);const r=n[C]?Array.from(n[C]):[];for(const e of r)t(e)}}(t),Array.from(e)}function R(t){return t[T]||t}function N(){const t=(0,c.E)(),e=(0,a.h)(t);return e.getActiveSpan?e.getActiveSpan():(0,p.f)((0,u.o5)())}function A(t,e,n,r,s,o){const i=N();i&&(0,l.X)(i,t,e,n,r,s,o)}},77179:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});const r="8.2.1"},26715:(t,e,n)=>{"use strict";n.d(e,{De:()=>d,hF:()=>i,yD:()=>l});var r=n(29155),s=n(9053),o=n(7749);const i="baggage",a="sentry-",c=/^sentry-/,u=8192;function l(t){const e=function(t){if(t&&((0,s.Kg)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce(((t,e)=>{const n=p(e);for(const e of Object.keys(n))t[e]=n[e];return t}),{}):p(t)}(t);if(!e)return;const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(c)&&(t[e.slice(a.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function d(t){if(t)return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],s)=>{const i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?i:`${t},${i}`;return a.length>u?(r.T&&o.vF.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t)),{}))}function p(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}},33437:(t,e,n)=>{"use strict";n.d(e,{$N:()=>c,Hd:()=>i,NX:()=>u,xE:()=>l});var r=n(9053);const s=n(70526).O,o=80;function i(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,c=0;const u=" > ",l=u.length;let d;const p=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||o;for(;n&&i++<r&&(d=a(n,p),!("html"===d||i>1&&c+s.length*l+d.length>=h));)s.push(d),c+=d.length,n=n.parentNode;return s.reverse().join(u)}catch(t){return"<unknown>"}}function a(t,e){const n=t,o=[];let i,a,c,u,l;if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const d=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(d&&d.length)d.forEach((t=>{o.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&o.push(`#${n.id}`),i=n.className,i&&(0,r.Kg)(i))for(a=i.split(/\s+/),l=0;l<a.length;l++)o.push(`.${a[l]}`);const p=["aria-label","type","name","title","alt"];for(l=0;l<p.length;l++)c=p[l],u=n.getAttribute(c),u&&o.push(`[${c}="${u}"]`);return o.join("")}function c(){try{return s.document.location.href}catch(t){return""}}function u(t){return s.document&&s.document.querySelector?s.document.querySelector(t):null}function l(t){if(!s.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}},29155:(t,e,n)=>{"use strict";n.d(e,{T:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},70896:(t,e,n)=>{"use strict";n.d(e,{AD:()=>u,SB:()=>i,hH:()=>a});var r=n(29155),s=n(7749);const o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function i(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}function a(t){const e=o.exec(t);if(!e)return void(0,s.pq)((()=>{console.error(`Invalid Sentry Dsn: ${t}`)}));const[n,r,i="",a,u="",l]=e.slice(1);let d="",p=l;const h=p.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),p=h.pop()),p){const t=p.match(/^\d+/);t&&(p=t[0])}return c({host:a,pass:i,path:d,projectId:p,port:u,protocol:n,publicKey:r})}function c(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function u(t){const e="string"==typeof t?a(t):c(t);if(e&&function(t){if(!r.T)return!0;const{port:e,projectId:n,protocol:o}=t;return!(["protocol","publicKey","host","projectId"].find((e=>!t[e]&&(s.vF.error(`Invalid Sentry Dsn: ${e} missing`),!0)))||(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(o)?e&&isNaN(parseInt(e,10))&&(s.vF.error(`Invalid Sentry Dsn: Invalid port ${e}`),1):(s.vF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(s.vF.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(e))return e}},87025:(t,e,n)=>{"use strict";n.d(e,{Cj:()=>y,W3:()=>c,bN:()=>p,bm:()=>m,h4:()=>a,hP:()=>l,mE:()=>h,n2:()=>v,y5:()=>f,yH:()=>u,zk:()=>_});var r=n(70896),s=n(90928),o=n(81854),i=n(70526);function a(t,e=[]){return[t,e]}function c(t,e){const[n,r]=t;return[n,[...r,e]]}function u(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function l(t,e){return u(t,((t,n)=>e.includes(n)))}function d(t){return i.O.__SENTRY__&&i.O.__SENTRY__.encodePolyfill?i.O.__SENTRY__.encodePolyfill(t):(new TextEncoder).encode(t)}function p(t){const[e,n]=t;let r=JSON.stringify(e);function o(t){"string"==typeof r?r="string"==typeof t?r+t:[d(r),t]:r.push("string"==typeof t?d(t):t)}for(const t of n){const[e,n]=t;if(o(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify((0,s.S8)(n))}o(t)}}return"string"==typeof r?r:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(r)}function h(t){let e="string"==typeof t?d(t):t;function n(t){const n=e.subarray(0,t);return e=e.subarray(t+1),n}function r(){let t=e.indexOf(10);return t<0&&(t=e.length),JSON.parse((r=n(t),i.O.__SENTRY__&&i.O.__SENTRY__.decodePolyfill?i.O.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)));var r}const s=r(),o=[];for(;e.length;){const t=r(),e="number"==typeof t.length?t.length:void 0;o.push([t,e?n(e):r()])}return[s,o]}function f(t){return[{type:"span"},t]}function m(t){const e="string"==typeof t.data?d(t.data):t.data;return[(0,o.Ce)({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const g={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function _(t){return g[t]}function y(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function v(t,e,n,s){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&s&&{dsn:(0,r.SB)(s)},...i&&{trace:(0,o.Ce)({...i})}}}},46519:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});class r extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}},76450:(t,e,n)=>{"use strict";n.d(e,{P:()=>a});var r=n(7749),s=n(81854),o=n(70526),i=n(35422);function a(t){const e="console";(0,i.s5)(e,t),(0,i.AS)(e,c)}function c(){"console"in o.O&&r.Ow.forEach((function(t){t in o.O.console&&(0,s.GS)(o.O.console,t,(function(e){return r.Z9[t]=e,function(...e){const n={args:e,level:t};(0,i.aj)("console",n);const s=r.Z9[t];s&&s.apply(o.O.console,e)}}))}))}},71319:(t,e,n)=>{"use strict";n.d(e,{u:()=>c});var r=n(81854),s=n(89357),o=n(23428),i=n(70526),a=n(35422);function c(t){const e="fetch";(0,a.s5)(e,t),(0,a.AS)(e,u)}function u(){(0,s.m7)()&&(0,r.GS)(i.O,"fetch",(function(t){return function(...e){const{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:d(e),method:l(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:d(e),method:l(e,"method")?String(e.method).toUpperCase():"GET"}}(e),s={args:e,fetchData:{method:n,url:r},startTimestamp:1e3*(0,o.zf)()};return(0,a.aj)("fetch",{...s}),t.apply(i.O,e).then((t=>{const e={...s,endTimestamp:1e3*(0,o.zf)(),response:t};return(0,a.aj)("fetch",e),t}),(t=>{const e={...s,endTimestamp:1e3*(0,o.zf)(),error:t};throw(0,a.aj)("fetch",e),t}))}}))}function l(t,e){return!!t&&"object"==typeof t&&!!t[e]}function d(t){return"string"==typeof t?t:t?l(t,"url")?t.url:t.toString?t.toString():"":""}},50092:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var r=n(70526),s=n(35422);let o=null;function i(t){const e="error";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){o=r.O.onerror,r.O.onerror=function(t,e,n,r,i){const a={column:r,error:i,line:n,msg:t,url:e};return(0,s.aj)("error",a),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},r.O.onerror.__SENTRY_INSTRUMENTED__=!0}},74582:(t,e,n)=>{"use strict";n.d(e,{r:()=>i});var r=n(70526),s=n(35422);let o=null;function i(t){const e="unhandledrejection";(0,s.s5)(e,t),(0,s.AS)(e,a)}function a(){o=r.O.onunhandledrejection,r.O.onunhandledrejection=function(t){const e=t;return(0,s.aj)("unhandledrejection",e),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},r.O.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},35422:(t,e,n)=>{"use strict";n.d(e,{AS:()=>u,aj:()=>l,s5:()=>c});var r=n(29155),s=n(7749),o=n(2744);const i={},a={};function c(t,e){i[t]=i[t]||[],i[t].push(e)}function u(t,e){a[t]||(e(),a[t]=!0)}function l(t,e){const n=t&&i[t];if(n)for(const i of n)try{i(e)}catch(e){r.T&&s.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,o.qQ)(i)}\nError:`,e)}}},9053:(t,e,n)=>{"use strict";n.d(e,{BD:()=>a,Kg:()=>u,L2:()=>v,NF:()=>l,Qd:()=>p,Qg:()=>g,T2:()=>i,W6:()=>c,bJ:()=>s,gd:()=>m,mE:()=>_,sO:()=>d,tH:()=>y,vq:()=>f,xH:()=>h});const r=Object.prototype.toString;function s(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function o(t,e){return r.call(t)===`[object ${e}]`}function i(t){return o(t,"ErrorEvent")}function a(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function u(t){return o(t,"String")}function l(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||l(t)||"object"!=typeof t&&"function"!=typeof t}function p(t){return o(t,"Object")}function h(t){return"undefined"!=typeof Event&&y(t,Event)}function f(t){return"undefined"!=typeof Element&&y(t,Element)}function m(t){return o(t,"RegExp")}function g(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function _(t){return p(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function y(t,e){try{return t instanceof e}catch(t){return!1}}function v(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}},7749:(t,e,n)=>{"use strict";n.d(e,{Ow:()=>o,Z9:()=>i,pq:()=>a,vF:()=>c});var r=n(29155),s=n(70526);const o=["debug","info","warn","error","log","assert","trace"],i={};function a(t){if(!("console"in s.O))return t();const e=s.O.console,n={},r=Object.keys(i);r.forEach((t=>{const r=i[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const c=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return r.T?o.forEach((n=>{e[n]=(...e)=>{t&&a((()=>{s.O.console[n](`Sentry Logger [${n}]:`,...e)}))}})):o.forEach((t=>{e[t]=()=>{}})),e}()},98569:(t,e,n)=>{"use strict";n.d(e,{$X:()=>c,GR:()=>p,M6:()=>l,db:()=>d,eJ:()=>i,gO:()=>u,k9:()=>h});var r=n(81854),s=n(33340),o=n(70526);function i(){const t=o.O,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function a(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function c(t){const{message:e,event_id:n}=t;if(e)return e;const r=a(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function u(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function l(t,e){const n=a(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}function d(t,e,n=5){if(void 0===e.lineno)return;const r=t.length,o=Math.max(Math.min(r-1,e.lineno-1),0);e.pre_context=t.slice(Math.max(0,o-n),o).map((t=>(0,s.nC)(t,0))),e.context_line=(0,s.nC)(t[Math.min(r-1,o)],e.colno||0),e.post_context=t.slice(Math.min(o+1,r),o+1+n).map((t=>(0,s.nC)(t,0)))}function p(t){if(t&&t.__sentry_captured__)return!0;try{(0,r.my)(t,"__sentry_captured__",!0)}catch(t){}return!1}function h(t){return Array.isArray(t)?t:[t]}},90928:(t,e,n)=>{"use strict";n.d(e,{S8:()=>i,cd:()=>a});var r=n(9053),s=n(81854),o=n(2744);function i(t,e=100,n=1/0){try{return c("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function a(t,e=3,n=102400){const r=i(t,e);return s=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(s))>n?a(t,e-1,n):r;var s}function c(t,e,n=1/0,i=1/0,a=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[u,l]=a;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const d=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,r.L2)(e))return"[VueViewModel]";if((0,r.mE)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,o.qQ)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const n=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!d.startsWith("[object "))return d;if(e.__sentry_skip_normalization__)return e;const p="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===p)return d.replace("object ","");if(u(e))return"[Circular ~]";const h=e;if(h&&"function"==typeof h.toJSON)try{return c("",h.toJSON(),p-1,i,a)}catch(t){}const f=Array.isArray(e)?[]:{};let m=0;const g=(0,s.W4)(e);for(const t in g){if(!Object.prototype.hasOwnProperty.call(g,t))continue;if(m>=i){f[t]="[MaxProperties ~]";break}const e=g[t];f[t]=c(t,e,p-1,i,a),m++}return l(e),f}},81854:(t,e,n)=>{"use strict";n.d(e,{Ce:()=>_,GS:()=>c,HF:()=>g,W4:()=>h,my:()=>u,pO:()=>l,sp:()=>d,u4:()=>p});var r=n(33437),s=n(29155),o=n(9053),i=n(7749),a=n(33340);function c(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&l(s,r),t[e]=s}function u(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){s.T&&i.vF.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function l(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,u(t,"__sentry_original__",e)}catch(t){}}function d(t){return t.__sentry_original__}function p(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function h(t){if((0,o.bJ)(t))return{message:t.message,name:t.name,stack:t.stack,...m(t)};if((0,o.xH)(t)){const e={type:t.type,target:f(t.target),currentTarget:f(t.currentTarget),...m(t)};return"undefined"!=typeof CustomEvent&&(0,o.tH)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function f(t){try{return(0,o.vq)(t)?(0,r.Hd)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function m(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function g(t,e=40){const n=Object.keys(h(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,a.xv)(n[0],e);for(let t=n.length;t>0;t--){const r=n.slice(0,t).join(", ");if(!(r.length>e))return t===n.length?r:(0,a.xv)(r,e)}return""}function _(t){return y(t,new Map)}function y(t,e){if(function(t){if(!(0,o.Qd)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=y(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(y(t,e))})),r}return t}},78068:(t,e,n)=>{"use strict";n.d(e,{FA:()=>s,Jz:()=>o,wq:()=>i});const r=6e4;function s(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${t}`);return isNaN(s)?r:s-e}function o(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}function i(t,{statusCode:e,headers:n},r=Date.now()){const o={...t},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const t of i.trim().split(",")){const[e,n,,,s]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&s&&!s.split(";").includes("custom")||(o[t]=r+a);else o.all=r+a}else a?o.all=r+s(a,r):429===e&&(o.all=r+6e4);return o}},67386:(t,e,n)=>{"use strict";n.d(e,{t:()=>s});const r=["fatal","error","warning","log","info","debug"];function s(t){return"warn"===t?"warning":r.includes(t)?t:"log"}},2744:(t,e,n)=>{"use strict";n.d(e,{gd:()=>a,qQ:()=>l,vk:()=>c,yF:()=>s});const r=50,s="?",o=/\(error: (.*)\)/,i=/captureMessage|captureException/;function a(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0,a=0)=>{const c=[],u=t.split("\n");for(let t=n;t<u.length;t++){const n=u[t];if(n.length>1024)continue;const s=o.test(n)?n.replace(o,"$1"):n;if(!s.match(/\S*Error: /)){for(const t of e){const e=t(s);if(e){c.push(e);break}}if(c.length>=r+a)break}}return function(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),i.test(e[e.length-1].function||"")&&(e.pop(),i.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,r).map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||s})))}(c.slice(a))}}function c(t){return Array.isArray(t)?a(...t):t}const u="<anonymous>";function l(t){try{return t&&"function"==typeof t&&t.name||u}catch(t){return u}}},33340:(t,e,n)=>{"use strict";n.d(e,{Xr:()=>a,gt:()=>i,nC:()=>o,xv:()=>s});var r=n(9053);function s(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function o(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let s=Math.max(e-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function i(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const s=t[e];try{(0,r.L2)(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!(0,r.Kg)(t)&&((0,r.gd)(e)?e.test(t):!!(0,r.Kg)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},89357:(t,e,n)=>{"use strict";n.d(e,{ap:()=>a,m7:()=>c,vQ:()=>u,vm:()=>i});var r=n(29155),s=n(7749);const o=n(70526).O;function i(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function c(){if("string"==typeof EdgeRuntime)return!0;if(!i())return!1;if(a(o.fetch))return!0;let t=!1;const e=o.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=a(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){r.T&&s.vF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}function u(){return"ReportingObserver"in o}},79213:(t,e,n)=>{"use strict";n.d(e,{T2:()=>a,XW:()=>o,xg:()=>i});var r,s=n(9053);function o(t){return new a((e=>{e(t)}))}function i(t){return new a(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(r||(r={}));class a{constructor(t){a.prototype.__init.call(this),a.prototype.__init2.call(this),a.prototype.__init3.call(this),a.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new a(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new a(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(r.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(r.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===r.PENDING&&((0,s.Qg)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===r.RESOLVED&&t[1](this._value),this._state===r.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},23428:(t,e,n)=>{"use strict";n.d(e,{k3:()=>c,lu:()=>o,zf:()=>i});var r=n(70526);const s=1e3;function o(){return Date.now()/s}const i=function(){const{performance:t}=r.O;if(!t||!t.now)return o;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/s}();let a;const c=(()=>{const{performance:t}=r.O;if(!t||!t.now)return void(a="none");const e=36e5,n=t.now(),s=Date.now(),o=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,i=o<e,c=t.timing&&t.timing.navigationStart,u="number"==typeof c?Math.abs(c+n-s):e;return i||u<e?o<=u?(a="timeOrigin",t.timeOrigin):(a="navigationStart",c):(a="dateNow",s)})()},19171:(t,e,n)=>{"use strict";n.d(e,{TC:()=>a,kM:()=>i});var r=n(26715),s=n(98569);const o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t,e){const n=function(t){if(!t)return;const e=t.match(o);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}(t),i=(0,r.yD)(e),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||(0,s.eJ)(),parentSpanId:c||(0,s.eJ)().substring(16),spanId:(0,s.eJ)().substring(16),sampled:u,dsc:i||{}}:{traceId:a||(0,s.eJ)(),spanId:(0,s.eJ)().substring(16)}}function a(t=(0,s.eJ)(),e=(0,s.eJ)().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}},14124:(t,e,n)=>{"use strict";function r(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function s(t){return t.split(/[\?#]/,1)[0]}n.d(e,{Dl:()=>r,f:()=>s})},70526:(t,e,n)=>{"use strict";n.d(e,{B:()=>s,O:()=>r});const r=globalThis;function s(t,e,n){const s=n||r,o=s.__SENTRY__=s.__SENTRY__||{};return o[t]||(o[t]=e())}},94316:(t,e,n)=>{"use strict";n.r(e),n.d(e,{BrowserClient:()=>Gt.y,ErrorBoundary:()=>yf,Profiler:()=>df,SDK_VERSION:()=>r.M,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>s.uT,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s.JD,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>s.sy,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>s.i_,Scope:()=>o.H,WINDOW:()=>Kt.jf,addBreadcrumb:()=>i.Z,addEventProcessor:()=>a.SA,addIntegration:()=>c.Q8,addTracingExtensions:()=>y,breadcrumbsIntegration:()=>ne.F,browserApiErrorsIntegration:()=>ie.G,browserProfilingIntegration:()=>ch,browserTracingIntegration:()=>Tp,captureConsoleIntegration:()=>E,captureEvent:()=>a.r,captureException:()=>a.Cp,captureFeedback:()=>T,captureMessage:()=>a.wd,captureSession:()=>a.J5,captureUserFeedback:()=>ee.lo,chromeStackLineParser:()=>Qt.Yj,close:()=>a.VN,contextLinesIntegration:()=>Ce,continueTrace:()=>Z,createReduxEnhancer:()=>xf,createTransport:()=>it.o,createUserFeedbackEnvelope:()=>te.L,debugIntegration:()=>at,dedupeIntegration:()=>ct.s,defaultRequestInstrumentationOptions:()=>Yl,defaultStackLineParsers:()=>Qt.c9,defaultStackParser:()=>Qt.lG,endSession:()=>a.ky,eventFromException:()=>Zt.u,eventFromMessage:()=>Zt.qv,exceptionFromError:()=>Zt.K8,extraErrorDataIntegration:()=>lt,feedbackAsyncIntegration:()=>zl,feedbackIntegration:()=>Hl,feedbackSyncIntegration:()=>Hl,flush:()=>a.bX,forceLoad:()=>ee.w7,functionToStringIntegration:()=>dt.Z,geckoStackLineParser:()=>Qt.dY,getActiveSpan:()=>h.Bk,getClient:()=>x.KU,getCurrentHub:()=>pt,getCurrentScope:()=>x.o5,getDefaultIntegrations:()=>ee.nI,getFeedback:()=>cu,getGlobalScope:()=>x.m6,getIsolationScope:()=>x.rm,getReplay:()=>Ua,getRootSpan:()=>h.zU,getSpanDescendants:()=>h.xO,getSpanStatusFromHttpCode:()=>f.AJ,globalHandlersIntegration:()=>re.L,httpClientIntegration:()=>ye,httpContextIntegration:()=>se.M,inboundFiltersIntegration:()=>ht.D,init:()=>uh.T,instrumentOutgoingRequests:()=>Wl,isInitialized:()=>a.Dp,lastEventId:()=>a.Q,lazyLoadIntegration:()=>ue,linkedErrorsIntegration:()=>oe.p,makeBrowserOfflineTransport:()=>$p,makeFetchTransport:()=>Xt._,makeMultiplexedTransport:()=>yt,metrics:()=>Vt,moduleMetadataIntegration:()=>kt,onLoad:()=>ee.kF,opera10StackLineParser:()=>Qt.Q_,opera11StackLineParser:()=>Qt.Vv,parameterize:()=>wt,reactRouterV3BrowserTracingIntegration:()=>Ef,reactRouterV4BrowserTracingIntegration:()=>If,reactRouterV5BrowserTracingIntegration:()=>Of,reactRouterV6BrowserTracingIntegration:()=>zf,registerSpanErrorInstrumentation:()=>g,replayCanvasIntegration:()=>mc,replayIntegration:()=>ja,reportingObserverIntegration:()=>he,rewriteFramesIntegration:()=>Tt,sendFeedback:()=>Zc,sessionTimingIntegration:()=>It,setContext:()=>a.o,setCurrentClient:()=>Ot.B,setExtra:()=>a.l7,setExtras:()=>a.cx,setHttpStatus:()=>f.N8,setMeasurement:()=>B,setTag:()=>a.NA,setTags:()=>a.Wt,setUser:()=>a.gV,showReportDialog:()=>ee.mn,spanToBaggageHeader:()=>h.HW,spanToJSON:()=>h.et,spanToTraceHeader:()=>h.Qh,startBrowserTracingNavigationSpan:()=>Op,startBrowserTracingPageLoadSpan:()=>Ip,startInactiveSpan:()=>Q,startSession:()=>a.J0,startSpan:()=>G,startSpanManual:()=>X,useProfiler:()=>hf,winjsStackLineParser:()=>Qt.$2,withActiveSpan:()=>tt,withErrorBoundary:()=>vf,withIsolationScope:()=>x.rB,withProfiler:()=>pf,withScope:()=>x.v4,withSentryReactRouterV6Routing:()=>Jf,withSentryRouting:()=>Nf,wrapCreateBrowserRouter:()=>Kf,wrapUseRoutes:()=>Vf,zodErrorsIntegration:()=>Nt});var r=n(77179),s=n(33585),o=n(83587),i=n(44681),a=n(18700),c=n(46277),u=n(50092),l=n(74582),d=n(7749),p=n(35177),h=n(80696),f=n(33550);let m=!1;function g(){m||(m=!0,(0,u.L)(_),(0,l.r)(_))}function _(){const t=(0,h.Bk)(),e=t&&(0,h.zU)(t);if(e){const t="internal_error";p.T&&d.vF.log(`[Tracing] Root span: ${t} -> Global error occured`),e.setStatus({code:f.TJ,message:t})}}function y(){g()}_.tag="sentry_tracingErrorCallback";var v=n(70526),b=n(76450),S=n(67386),k=n(98569),w=n(33340),x=n(6879);const E=(0,c._C)(((t={})=>{const e=t.levels||d.Ow;return{name:"CaptureConsole",setup(t){"console"in v.O&&(0,b.P)((({args:n,level:r})=>{(0,x.KU)()===t&&e.includes(r)&&function(t,e){const n={level:(0,S.t)(e),extra:{arguments:t}};(0,x.v4)((r=>{if(r.addEventProcessor((t=>(t.logger="console",(0,k.M6)(t,{handled:!1,type:"console"}),t))),"assert"===e){if(!t[0]){const e=`Assertion failed: ${(0,w.gt)(t.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",t.slice(1)),(0,a.wd)(e,n)}return}const s=t.find((t=>t instanceof Error));if(s)return void(0,a.Cp)(s,n);const o=(0,w.gt)(t," ");(0,a.wd)(o,n)}))}(n,r)}))}}}));var C=n(81854);function T(t,e={}){const{message:n,name:r,email:s,url:o,source:i,associatedEventId:a}=t,c=(0,x.KU)(),u={contexts:{feedback:(0,C.Ce)({contact_email:s,name:r,message:n,url:o,source:i,associated_event_id:a})},type:"feedback",level:"info"};return c&&c.emit("beforeSendFeedback",u,e),(0,x.o5)().captureEvent(u,e)}var I=n(19171),O=n(6019),M=n(19894),R=n(9053);function N(t,e,n=(()=>{})){let r;try{r=t()}catch(t){throw e(t),n(),t}return function(t,e,n){return(0,R.Qg)(t)?t.then((t=>(n(),t)),(t=>{throw e(t),n(),t})):(n(),t)}(r,e,n)}function A(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||function(){const t=(0,x.KU)();return t&&t.getOptions()}();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}var L=n(82390),D=n(90351),P=n(64602);class j{constructor(t={}){this._traceId=t.traceId||(0,k.eJ)(),this._spanId=t.spanId||(0,k.eJ)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:h.CC}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}}var F=n(23428),$=n(10283),U=n(46912);function B(t,e,n){const r=(0,h.Bk)(),o=r&&(0,h.zU)(r);o&&o.addEvent(t,{[s.xc]:e,[s.Sn]:n})}function z(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[s.Sn],o=n[s.xc];"string"==typeof r&&"number"==typeof o&&(e[t.name]={value:o,unit:r})})),e}const H="_sentryScope",q="_sentryIsolationScope";function Y(t){return{scope:t[H],isolationScope:t[q]}}class W{constructor(t={}){this._traceId=t.traceId||(0,k.eJ)(),this._spanId=t.spanId||(0,k.eJ)().substring(16),this._startTime=t.startTimestamp||(0,F.zf)(),this._attributes={},this.setAttributes({[s.JD]:"manual",[s.uT]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?h.aO:h.CC}}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}updateStartTime(t){this._startTime=(0,h.cI)(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=(0,h.cI)(t),function(t){if(!p.T)return;const{description:e="< unknown name >",op:n="< unknown op >"}=(0,h.et)(t),{spanId:r}=t.spanContext(),s=`[Tracing] Finishing "${n}" ${(0,h.zU)(t)===t?"root ":""}span "${e}" with ID ${r}`;d.vF.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return(0,C.Ce)({data:this._attributes,description:this._name,op:this._attributes[s.uT],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,h.yW)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[s.JD],_metrics_summary:(0,U.g)(this),profile_id:this._attributes[s.E1],exclusive_time:this._attributes[s.jG],measurements:z(this._events),is_segment:this._isStandaloneSpan&&(0,h.zU)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,h.zU)(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){p.T&&d.vF.log("[Tracing] Adding an event to span:",t);const r=J(e)?e:n||(0,F.zf)(),s=J(e)?{}:e||{},o={name:t,time:(0,h.cI)(r),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=(0,x.KU)();if(t&&t.emit("spanEnd",this),!this._isStandaloneSpan&&this!==(0,h.zU)(this))return;if(this._isStandaloneSpan)return void function(t){const e=(0,x.KU)();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const r=e.getTransport();r&&r.send(t).then(null,(t=>{p.T&&d.vF.error("Error while sending span:",t)}))}((0,$.lu)([this],t));const e=this._convertSpanToTransaction();e&&(Y(this).scope||(0,x.o5)()).captureEvent(e)}_convertSpanToTransaction(){if(!V((0,h.et)(this)))return;this._name||(p.T&&d.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=Y(this),n=(t||(0,x.o5)()).getClient()||(0,x.KU)();if(!0!==this._sampled)return p.T&&d.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=(0,h.xO)(this).filter((t=>t!==this&&!function(t){return t instanceof W&&t.isStandaloneSpan()}(t))).map((t=>(0,h.et)(t))).filter(V),o=this._attributes[s.i_],i={contexts:{trace:(0,h.Ck)(this)},spans:r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...(0,C.Ce)({dynamicSamplingContext:(0,D.k1)(this)})},_metrics_summary:(0,U.g)(this),...o&&{transaction_info:{source:o}}},a=z(this._events);return a&&Object.keys(a).length&&(p.T&&d.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(a,void 0,2)),i.measurements=a),i}}function J(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function V(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const K="__SENTRY_SUPPRESS_TRACING__";function G(t,e){const n=rt();if(n.startSpan)return n.startSpan(t,e);const r=nt(t);return(0,x.v4)(t.scope,(n=>{const s=ot(n),o=t.onlyIfParent&&!s?new j:et({parentSpan:s,spanContext:r,forceTransaction:t.forceTransaction,scope:n});return(0,L.r)(n,o),N((()=>e(o)),(()=>{const{status:t}=(0,h.et)(o);!o.isRecording()||t&&"ok"!==t||o.setStatus({code:f.TJ,message:"internal_error"})}),(()=>o.end()))}))}function X(t,e){const n=rt();if(n.startSpanManual)return n.startSpanManual(t,e);const r=nt(t);return(0,x.v4)(t.scope,(n=>{const s=ot(n),o=t.onlyIfParent&&!s?new j:et({parentSpan:s,spanContext:r,forceTransaction:t.forceTransaction,scope:n});function i(){o.end()}return(0,L.r)(n,o),N((()=>e(o,i)),(()=>{const{status:t}=(0,h.et)(o);!o.isRecording()||t&&"ok"!==t||o.setStatus({code:f.TJ,message:"internal_error"})}))}))}function Q(t){const e=rt();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=nt(t),r=t.scope||(0,x.o5)(),s=ot(r);return t.onlyIfParent&&!s?new j:et({parentSpan:s,spanContext:n,forceTransaction:t.forceTransaction,scope:r})}const Z=({sentryTrace:t,baggage:e},n)=>(0,x.v4)((r=>{const s=(0,I.kM)(t,e);return r.setPropagationContext(s),n()}));function tt(t,e){const n=rt();return n.withActiveSpan?n.withActiveSpan(t,e):(0,x.v4)((n=>((0,L.r)(n,t||void 0),e(n))))}function et({parentSpan:t,spanContext:e,forceTransaction:n,scope:r}){if(!A())return new j;const s=(0,x.rm)();let o;if(t&&!n)o=function(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),o=!e.getScopeData().sdkProcessingMetadata[K]&&(0,h.pK)(t),i=o?new W({...n,parentSpanId:r,traceId:s,sampled:o}):new j({traceId:s});(0,h.Hu)(t,i);const a=(0,x.KU)();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}(t,r,e),(0,h.Hu)(t,o);else if(t){const n=(0,D.k1)(t),{traceId:s,spanId:i}=t.spanContext(),a=(0,h.pK)(t);o=st({traceId:s,parentSpanId:i,...e},r,a),(0,D.LZ)(o,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};o=st({traceId:t,parentSpanId:i,...e},r,a),n&&(0,D.LZ)(o,n)}return function(t){if(!p.T)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,h.et)(t),{spanId:s}=t.spanContext(),o=(0,h.pK)(t),i=(0,h.zU)(t),a=i===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:t,description:e}=(0,h.et)(i);u.push(`root ID: ${i.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}d.vF.log(`${c}\n  ${u.join("\n  ")}`)}(o),function(t,e,n){t&&((0,C.my)(t,q,n),(0,C.my)(t,H,e))}(o,r,s),o}function nt(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=(0,h.cI)(t.startTime),delete n.startTime,n}return e}function rt(){const t=(0,O.E)();return(0,M.h)(t)}function st(t,e,n){const r=(0,x.KU)(),o=r&&r.getOptions()||{},{name:i="",attributes:a}=t,[c,u]=e.getScopeData().sdkProcessingMetadata[K]?[!1]:function(t,e){if(!A(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const r=(0,P.i)(n);return void 0===r?(p.T&&d.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(p.T&&d.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(p.T&&d.vF.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(o,{name:i,parentSampled:n,attributes:a,transactionContext:{name:i,parentSampled:n}}),l=new W({...t,attributes:{[s.i_]:"custom",...t.attributes},sampled:c});return void 0!==u&&l.setAttribute(s.sy,u),r&&r.emit("spanStart",l),l}function ot(t){const e=(0,L.f)(t);if(!e)return;const n=(0,x.KU)();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,h.zU)(e):e}var it=n(66044);const at=(0,c._C)(((t={})=>{const e={debugger:!1,stringify:!1,...t};return{name:"Debug",setup(t){t.on("beforeSendEvent",((t,n)=>{e.debugger,(0,d.pq)((()=>{e.stringify?(console.log(JSON.stringify(t,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(t),n&&Object.keys(n).length&&console.log(n))}))}))}}}));var ct=n(71208),ut=n(90928);const lt=(0,c._C)(((t={})=>{const{depth:e=3,captureErrorCause:n=!0}=t;return{name:"ExtraErrorData",processEvent:(t,r)=>function(t,e={},n,r){if(!e.originalException||!(0,R.bJ)(e.originalException))return t;const s=e.originalException.name||e.originalException.constructor.name,o=function(t,e){try{const n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(const e of Object.keys(t)){if(-1!==n.indexOf(e))continue;const s=t[e];r[e]=(0,R.bJ)(s)?s.toString():s}if(e&&void 0!==t.cause&&(r.cause=(0,R.bJ)(t.cause)?t.cause.toString():t.cause),"function"==typeof t.toJSON){const e=t.toJSON();for(const t of Object.keys(e)){const n=e[t];r[t]=(0,R.bJ)(n)?n.toString():n}}return r}catch(t){p.T&&d.vF.error("Unable to extract extra data from the Error object:",t)}return null}(e.originalException,r);if(o){const e={...t.contexts},r=(0,ut.S8)(o,n);return(0,R.Qd)(r)&&((0,C.my)(r,"__sentry_skip_normalization__",!0),e[s]=r),{...t,contexts:e}}return t}(t,r,e,n)}}));var dt=n(49783);const pt=function(){return{bindClient(t){(0,x.o5)().setClient(t)},withScope:x.v4,getClient:()=>(0,x.KU)(),getScope:x.o5,getIsolationScope:x.rm,captureException:(t,e)=>(0,x.o5)().captureException(t,e),captureMessage:(t,e,n)=>(0,x.o5)().captureMessage(t,e,n),captureEvent:a.r,addBreadcrumb:i.Z,setUser:a.gV,setTags:a.Wt,setTag:a.NA,setExtra:a.l7,setExtras:a.cx,setContext:a.o,getIntegration(t){const e=(0,x.KU)();return e&&e.getIntegrationByName(t.id)||null},startSession:a.J0,endSession:a.ky,captureSession(t){if(t)return(0,a.ky)();!function(){const t=(0,x.o5)(),e=(0,x.KU)(),n=t.getSession();e&&n&&e.captureSession(n)}()}}};var ht=n(72783),ft=n(87025),mt=n(70896),gt=n(89079);function _t(t,e){let n;return(0,ft.yH)(t,((t,r)=>(e.includes(r)&&(n=Array.isArray(t)?t[1]:void 0),!!n))),n}function yt(t,e){return n=>{const r=t(n),s=new Map;function o(e,r){const o=r?`${e}:${r}`:e;let i=s.get(o);if(!i){const a=(0,mt.hH)(e);if(!a)return;const c=(0,gt.Z)(a,n.tunnel);i=r?function(t,e){return n=>{const r=t(n);return{...r,send:async t=>{const n=_t(t,["event","transaction","profile","replay_event"]);return n&&(n.release=e),r.send(t)}}}}(t,r)({...n,url:c}):t({...n,url:c}),s.set(o,i)}return[e,i]}return{send:async function(t){const n=e({envelope:t,getEvent:function(e){const n=e&&e.length?e:["event"];return _t(t,n)}}).map((t=>"string"==typeof t?o(t,void 0):o(t.dsn,t.release))).filter((t=>!!t));0===n.length&&n.push(["",r]);const s=await Promise.all(n.map((([e,n])=>n.send(function(t,e){return(0,ft.h4)(e?{...t[0],dsn:e}:t[0],t[1])}(t,e)))));return s[0]},flush:async function(t){const e=[...s.values(),r];return(await Promise.all(e.map((e=>e.flush(t))))).every((t=>t))}}}}const vt=new Map,bt=new Set;function St(t,e){return function(t){if(v.O._sentryModuleMetadata)for(const e of Object.keys(v.O._sentryModuleMetadata)){const n=v.O._sentryModuleMetadata[e];if(bt.has(e))continue;bt.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){vt.set(t.filename,n);break}}}(t),vt.get(e)}const kt=(0,c._C)((()=>({name:"ModuleMetadata",setup(t){t.on("beforeEnvelope",(t=>{(0,ft.yH)(t,((t,e)=>{if("event"===e){const e=Array.isArray(t)?t[1]:void 0;e&&(function(t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const e of t.stacktrace.frames||[])delete e.module_metadata}))}catch(t){}}(e),t[1]=e)}}))}))},processEvent:(t,e,n)=>(function(t,e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const n of e.stacktrace.frames||[]){if(!n.filename)continue;const e=St(t,n.filename);e&&(n.module_metadata=e)}}))}catch(t){}}(n.getOptions().stackParser,t),t)})));function wt(t,...e){const n=new String(String.raw(t,...e));return n.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=e,n}const xt=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Et(...t){let e="",n=!1;for(let r=t.length-1;r>=-1&&!n;r--){const s=r>=0?t[r]:"/";s&&(e=`${s}/${e}`,n="/"===s.charAt(0))}return e=function(t,e){let n=0;for(let e=t.length-1;e>=0;e--){const r=t[e];"."===r?t.splice(e,1):".."===r?(t.splice(e,1),n++):n&&(t.splice(e,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}(e.split("/").filter((t=>!!t)),!n).join("/"),(n?"/":"")+e||"."}function Ct(t){let e=0;for(;e<t.length&&""===t[e];e++);let n=t.length-1;for(;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}const Tt=(0,c._C)(((t={})=>{const e=t.root,n=t.prefix||"app:///",r="window"in v.O&&void 0!==v.O.window,s=t.iteratee||function({isBrowser:t,root:e,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(t){if(e){const t=r.filename;0===t.indexOf(e)&&(r.filename=t.replace(e,n))}}else if(s||o){const t=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,o=e?function(t,e){t=Et(t).slice(1),e=Et(e).slice(1);const n=Ct(t.split("/")),r=Ct(e.split("/")),s=Math.min(n.length,r.length);let o=s;for(let t=0;t<s;t++)if(n[t]!==r[t]){o=t;break}let i=[];for(let t=o;t<n.length;t++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}(e,t):function(t,e){let n=function(t){const e=t.length>1024?`<truncated>${t.slice(-1024)}`:t,n=xt.exec(e);return n?n.slice(1):[]}(t)[2];return n}(t);r.filename=`${n}${o}`}return r}}({isBrowser:r,root:e,prefix:n});function o(t){return{...t,frames:t&&t.frames&&t.frames.map((t=>s(t)))}}return{name:"RewriteFrames",processEvent(t){let e=t;return t.exception&&Array.isArray(t.exception.values)&&(e=function(t){try{return{...t,exception:{...t.exception,values:t.exception.values.map((t=>({...t,...t.stacktrace&&{stacktrace:o(t.stacktrace)}})))}}}catch(e){return t}}(e)),e}}})),It=(0,c._C)((()=>{const t=1e3*(0,F.zf)();return{name:"SessionTiming",processEvent(e){const n=1e3*(0,F.zf)();return{...e,extra:{...e.extra,"session:start":t,"session:duration":n-t,"session:end":n}}}}}));var Ot=n(29499);function Mt(t){return{...t,path:"path"in t&&Array.isArray(t.path)?t.path.join("."):void 0,keys:"keys"in t?JSON.stringify(t.keys):void 0,unionErrors:"unionErrors"in t?JSON.stringify(t.unionErrors):void 0}}function Rt(t){const e=new Set;for(const n of t.issues)n.path&&e.add(n.path[0]);const n=Array.from(e);return`Failed to validate keys: ${(0,w.xv)(n.join(", "),100)}`}const Nt=(0,c._C)(((t={})=>{const e=t.limit||10;return{name:"ZodErrors",processEvent:(t,n)=>function(t,e,n){return e.exception&&e.exception.values&&n&&n.originalException&&(r=n.originalException,(0,R.bJ)(r)&&"ZodError"===r.name&&Array.isArray(r.errors))&&0!==n.originalException.issues.length?{...e,exception:{...e.exception,values:[{...e.exception.values[0],value:Rt(n.originalException)},...e.exception.values.slice(1)]},extra:{...e.extra,"zoderror.issues":n.originalException.errors.slice(0,t).map(Mt)}}:e;var r}(e,t,n)}})),At="c",Lt="g",Dt="s",Pt="d";function jt(t,e){const n=(0,v.B)("globalMetricsAggregators",(()=>new WeakMap)),r=n.get(t);if(r)return r;const s=new e(t);return t.on("flush",(()=>s.flush())),t.on("close",(()=>s.close())),n.set(t,s),s}function Ft(t,e,n,r,s={}){const o=s.client||(0,x.KU)();if(!o)return;const i=(0,h.Bk)(),a=i?(0,h.zU)(i):void 0,{unit:c,tags:u,timestamp:l}=s,{release:f,environment:m}=o.getOptions(),g={};f&&(g.release=f),m&&(g.environment=m),a&&(g.transaction=(0,h.et)(a).description||""),p.T&&d.vF.log(`Adding value of ${r} to ${e} metric ${n}`),jt(o,t).add(e,n,r,c,{...g,...u},l)}const $t=function(t,e,n=1,r){Ft(t,"c",e,n,r)},Ut=function(t,e,n,r){Ft(t,"d",e,n,r)},Bt=function(t,e,n,r){Ft(t,"s",e,n,r)},zt=function(t,e,n,r){Ft(t,"g",e,n,r)};function Ht(t){return t.replace(/[^\w\-./]+/gi,"")}const qt=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function Yt(t){return[...t].reduce(((t,e)=>t+function(t){for(const[e,n]of qt)if(t===e)return n;return t}(e)),"")}const Wt={[At]:class{constructor(t){this._value=t}get weight(){return 1}add(t){this._value+=t}toString(){return`${this._value}`}},[Lt]:class{constructor(t){this._last=t,this._min=t,this._max=t,this._sum=t,this._count=1}get weight(){return 5}add(t){this._last=t,t<this._min&&(this._min=t),t>this._max&&(this._max=t),this._sum+=t,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}},[Pt]:class{constructor(t){this._value=[t]}get weight(){return this._value.length}add(t){this._value.push(t)}toString(){return this._value.join(":")}},[Dt]:class{constructor(t){this.first=t,this._value=new Set([t])}get weight(){return this._value.size}add(t){this._value.add(t)}toString(){return Array.from(this._value).map((t=>"string"==typeof t?function(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e>>>0}(t):t)).join(":")}}};class Jt{constructor(t){this._client=t,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),5e3)}add(t,e,n,r="none",s={},o=(0,F.zf)()){const i=Math.floor(o),a=e.replace(/[^\w\-.]+/gi,"_"),c=function(t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[Ht(n)]=Yt(String(t[n])));return e}(s),u=function(t){return t.replace(/[^\w]+/gi,"_")}(r),l=function(t,e,n,r){const s=Object.entries((0,C.Ce)(r)).sort(((t,e)=>t[0].localeCompare(e[0])));return`${t}${e}${n}${s}`}(t,a,u,c);let d=this._buckets.get(l);const p=d&&"s"===t?d.metric.weight:0;d?(d.metric.add(n),d.timestamp<i&&(d.timestamp=i)):(d={metric:new Wt[t](n),timestamp:i,metricType:t,name:a,unit:u,tags:c},this._buckets.set(l,d));const f="string"==typeof n?d.metric.weight-p:n;(0,h.r2)(t,a,f,u,s,l)}flush(){if(0===this._buckets.size)return;const t=Array.from(this._buckets.values());(function(t,e){d.vF.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const n=function(t,e,n,r){const s={sent_at:(new Date).toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&e&&(s.dsn=(0,mt.SB)(e));const o=function(t){const e=function(t){let e="";for(const n of t){const t=Object.entries(n.tags),r=t.length>0?`|#${t.map((([t,e])=>`${t}:${e}`)).join(",")}`:"";e+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return e}(t);return[{type:"statsd",length:e.length},e]}(t);return(0,ft.h4)(s,[o])}(e,t.getDsn(),t.getSdkMetadata(),t.getOptions().tunnel);t.sendEnvelope(n)})(this._client,t),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}const Vt={increment:function(t,e=1,n){$t(Jt,t,e,n)},distribution:function(t,e,n){Ut(Jt,t,e,n)},set:function(t,e,n){Bt(Jt,t,e,n)},gauge:function(t,e,n){zt(Jt,t,e,n)}};var Kt=n(18401),Gt=n(77841),Xt=n(14071),Qt=n(93797),Zt=n(10197),te=n(56678),ee=n(45732),ne=n(47212),re=n(88270),se=n(29477),oe=n(86869),ie=n(119);const ae={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming"},ce=Kt.jf;async function ue(t){const e=ae[t],n=ce.Sentry=ce.Sentry||{};if(!e)throw new Error(`Cannot lazy load integration: ${t}`);const s=n[t];if("function"==typeof s)return s;const o=function(t){const e=(0,x.KU)(),n=e&&e.getOptions(),s=n&&n.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${r.M}/${t}.min.js`,s).toString()}(e),i=Kt.jf.document.createElement("script");i.src=o,i.crossOrigin="anonymous";const a=new Promise(((t,e)=>{i.addEventListener("load",(()=>t())),i.addEventListener("error",e)}));Kt.jf.document.body.appendChild(i);try{await a}catch(e){throw new Error(`Error when loading integration: ${t}`)}const c=n[t];if("function"!=typeof c)throw new Error(`Could not load integration: ${t}`);return c}var le=n(89357);const de=v.O,pe=new WeakMap,he=(0,c._C)(((t={})=>{const e=t.types||["crash","deprecation","intervention"];function n(t){if(pe.has((0,x.KU)()))for(const e of t)(0,x.v4)((t=>{t.setExtra("url",e.url);const n=`ReportingObserver [${e.type}]`;let r="No details available";if(e.body){const n={};for(const t in e.body)n[t]=e.body[t];if(t.setExtra("body",n),"crash"===e.type){const t=e.body;r=[t.crashId||"",t.reason||""].join(" ").trim()||r}else r=e.body.message||r}(0,a.wd)(`${n}: ${r}`)}))}return{name:"ReportingObserver",setupOnce(){(0,le.vQ)()&&new de.ReportingObserver(n,{buffered:!0,types:e}).observe()},setup(t){pe.set(t,!0)}}}));var fe=n(39694);function me(t){return"/"===t[t.length-1]?t.slice(0,-1):t}var ge=n(71319),_e=n(78650);const ye=(0,c._C)(((t={})=>{const e={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...t};return{name:"HttpClient",setup(t){!function(t,e){(0,le.m7)()&&(0,ge.u)((n=>{if((0,x.KU)()!==t)return;const{response:r,args:s}=n,[o,i]=s;r&&function(t,e,n,r){if(Se(t,n.status,n.url)){const t=function(t,e){return!e&&t instanceof Request||t instanceof Request&&t.bodyUsed?t:new Request(t,e)}(e,r);let s,o,i,c;we()&&([{headers:s,cookies:i},{headers:o,cookies:c}]=[{cookieHeader:"Cookie",obj:t},{cookieHeader:"Set-Cookie",obj:n}].map((({cookieHeader:t,obj:e})=>{const n=function(t){const e={};return t.forEach(((t,n)=>{e[n]=t})),e}(e.headers);let r;try{const e=n[t]||n[t.toLowerCase()]||void 0;e&&(r=be(e))}catch(e){_e.T&&d.vF.log(`Could not extract cookies from header ${t}`)}return{headers:n,cookies:r}})));const u=ke({url:t.url,method:t.method,status:n.status,requestHeaders:s,responseHeaders:o,requestCookies:i,responseCookies:c});(0,a.r)(u)}}(e,o,r,i)}))}(t,e),function(t,e){"XMLHttpRequest"in v.O&&(0,fe.Mn)((n=>{if((0,x.KU)()!==t)return;const r=n.xhr,s=r[fe.Er];if(!s)return;const{method:o,request_headers:i}=s;try{!function(t,e,n,r){if(Se(t,e.status,e.responseURL)){let t,s,o;if(we()){try{const t=e.getResponseHeader("Set-Cookie")||e.getResponseHeader("set-cookie")||void 0;t&&(s=be(t))}catch(t){_e.T&&d.vF.log("Could not extract cookies from response headers")}try{o=function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return t[n]=r,t}),{}):{}}(e)}catch(t){_e.T&&d.vF.log("Could not extract headers from response")}t=r}const i=ke({url:e.responseURL,method:n,status:e.status,requestHeaders:t,responseHeaders:o,responseCookies:s});(0,a.r)(i)}}(e,r,o,i)}catch(t){_e.T&&d.vF.warn("Error while extracting response event form XHR response",t)}}))}(t,e)}}}));function ve(t){if(t){const e=t["Content-Length"]||t["content-length"];if(e)return parseInt(e,10)}}function be(t){return t.split("; ").reduce(((t,e)=>{const[n,r]=e.split("=");return t[n]=r,t}),{})}function Se(t,e,n){return function(t,e){return t.some((t=>"number"==typeof t?t===e:e>=t[0]&&e<=t[1]))}(t.failedRequestStatusCodes,e)&&(r=t.failedRequestTargets,s=n,r.some((t=>"string"==typeof t?s.includes(t):t.test(s))))&&!function(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){return!!e&&me(t)===me(e)}(t,r)}(n,(0,x.KU)());var r,s}function ke(t){const e=`HTTP Client Error with status code: ${t.status}`,n={message:e,exception:{values:[{type:"Error",value:e}]},request:{url:t.url,method:t.method,headers:t.requestHeaders,cookies:t.requestCookies},contexts:{response:{status_code:t.status,headers:t.responseHeaders,cookies:t.responseCookies,body_size:ve(t.responseHeaders)}}};return(0,k.M6)(n,{type:"http.client",handled:!1}),n}function we(){const t=(0,x.KU)();return!!t&&Boolean(t.getOptions().sendDefaultPii)}var xe=n(14124);const Ee=v.O,Ce=(0,c._C)(((t={})=>{const e=null!=t.frameContextLines?t.frameContextLines:7;return{name:"ContextLines",processEvent:t=>function(t,e){const n=Ee.document,r=Ee.location&&(0,xe.f)(Ee.location.href);if(!n||!r)return t;const s=t.exception&&t.exception.values;if(!s||!s.length)return t;const o=n.documentElement.innerHTML;if(!o)return t;const i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return s.forEach((t=>{const n=t.stacktrace;n&&n.frames&&(n.frames=n.frames.map((t=>function(t,e,n,r){return t.filename===n&&t.lineno&&e.length?((0,k.db)(e,t,r),t):t}(t,i,r,e))))})),t}(t,e)}}));function Te(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const Ie=globalThis;function Oe(t,e,n){const r=n||Ie,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}const Me=1e3;function Re(){return Date.now()/Me}const Ne=function(){const{performance:t}=Ie;if(!t||!t.now)return Re;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/Me}();let Ae;const Le=(()=>{const{performance:t}=Ie;if(!t||!t.now)return void(Ae="none");const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=s<e,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):e;return o||a<e?s<=a?(Ae="timeOrigin",t.timeOrigin):(Ae="navigationStart",i):(Ae="dateNow",r)})(),De="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Pe=["debug","info","warn","error","log","assert","trace"],je={};function Fe(t){if(!("console"in Ie))return t();const e=Ie.console,n={},r=Object.keys(je);r.forEach((t=>{const r=je[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const $e=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return De?Pe.forEach((n=>{e[n]=(...e)=>{t&&Fe((()=>{Ie.console[n](`Sentry Logger [${n}]:`,...e)}))}})):Pe.forEach((t=>{e[t]=()=>{}})),e}();function Ue(){return Be(Ie),Ie}function Be(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}const ze=Object.prototype.toString;function He(t,e){return ze.call(t)===`[object ${e}]`}function qe(t){return He(t,"String")}function Ye(t){return He(t,"Object")}function We(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function Je(t,e){try{return t instanceof e}catch(t){return!1}}function Ve(){const t=Ie,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}const Ke=Ie,Ge=80;function Xe(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||Ge;for(;n&&o++<r&&(u=Qe(n,l),!("html"===u||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return"<unknown>"}}function Qe(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(Ke.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 u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&qe(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)i=l[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}function Ze(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){De&&$e.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function tn(t){try{return"undefined"!=typeof Element&&Je(t,Element)?Xe(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function en(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function nn(t){return rn(t,new Map)}function rn(t,e){if(function(t){if(!Ye(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=rn(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(rn(t,e))})),r}return t}const sn="_sentrySpan";function on(t,e){e?Ze(t,sn,e):delete t[sn]}function an(t){return t[sn]}class cn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=ln()}clone(){const t=new cn;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,on(t,an(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Ne(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Ve()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof un?[e.getScopeData(),e.getRequestSession()]:Ye(e)?[t,t.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,on(this,void 0),this._attachments=[],this._propagationContext=ln(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Re(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:an(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:Ve();if(!this._client)return $e.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:Ve();if(!this._client)return $e.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Ve();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):($e.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const un=cn;function ln(){return{traceId:Ve(),spanId:Ve().substring(16)}}class dn{constructor(t,e){let n,r;n=t||new un,r=e||new un,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return We(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function pn(){const t=Be(Ue());return t.hub||(t.hub=new dn(Oe("defaultCurrentScope",(()=>new un)),Oe("defaultIsolationScope",(()=>new un)))),t.hub}function hn(t){return pn().withScope(t)}function fn(t,e){const n=pn();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function mn(t){return pn().withScope((()=>t(pn().getIsolationScope())))}function gn(t){const e=Be(t);return e.acs?e.acs:{withIsolationScope:mn,withScope:hn,withSetScope:fn,withSetIsolationScope:(t,e)=>mn(e),getCurrentScope:()=>pn().getScope(),getIsolationScope:()=>pn().getIsolationScope()}}function _n(){return gn(Ue()).getCurrentScope()}function yn(){return gn(Ue()).getIsolationScope()}function vn(){return _n().getClient()}const bn=100;function Sn(t){return"/"===t[t.length-1]?t.slice(0,-1):t}function kn(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}const wn="<anonymous>";function xn(t,e=100,n=1/0){try{return En("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function En(t,e,n=1/0,r=1/0,s=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[o,i]=s;if(null==e||["number","boolean","string"].includes(typeof e)&&!Number.isNaN(e))return e;const a=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if("undefined"!=typeof global&&e===global)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if("object"==typeof(n=e)&&null!==n&&(n.__isVue||n._isVue))return"[VueViewModel]";if(function(t){return Ye(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${function(t){try{return t&&"function"==typeof t&&t.name||wn}catch(t){return wn}}(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const r=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}var n}(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(o(e))return"[Circular ~]";const u=e;if(u&&"function"==typeof u.toJSON)try{return En("",u.toJSON(),c-1,r,s)}catch(t){}const l=Array.isArray(e)?[]:{};let d=0;const p=function(t){if(function(t){switch(ze.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Je(t,Error)}}(t))return{message:t.message,name:t.name,stack:t.stack,...en(t)};if("undefined"!=typeof Event&&Je(t,Event)){const e={type:t.type,target:tn(t.target),currentTarget:tn(t.currentTarget),...en(t)};return"undefined"!=typeof CustomEvent&&Je(t,CustomEvent)&&(e.detail=t.detail),e}return t}(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(d>=r){l[t]="[MaxProperties ~]";break}const e=p[t];l[t]=En(t,e,c-1,r,s),d++}return i(e),l}const Cn="production";var Tn;function In(t){return new On((e=>{e(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(Tn||(Tn={}));class On{constructor(t){On.prototype.__init.call(this),On.prototype.__init2.call(this),On.prototype.__init3.call(this),On.prototype.__init4.call(this),this._state=Tn.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new On(((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new On(((e,n)=>{let r,s;return this.then((e=>{s=!1,r=e,t&&t()}),(e=>{s=!0,r=e,t&&t()})).then((()=>{s?n(r):e(r)}))}))}__init(){this._resolve=t=>{this._setResult(Tn.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Tn.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===Tn.PENDING&&(We(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===Tn.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===Tn.RESOLVED&&t[1](this._value),this._state===Tn.REJECTED&&t[2](this._value),t[0]=!0)}))}}}const Mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Rn(t,e,n,r=0){return new On(((s,o)=>{const i=t[r];if(null===e||"function"!=typeof i)s(e);else{const a=i({...e},n);Mn&&i.id&&null===a&&$e.log(`Event processor "${i.id}" dropped event`),We(a)?a.then((e=>Rn(t,e,n,r+1).then(s))).then(null,o):Rn(t,a,n,r+1).then(s).then(null,o)}}))}const Nn="sentry.source",An="sentry.sample_rate",Ln="sentry.op",Dn="sentry.origin";let Pn;function jn(t){const e=function(t){return Pn?Pn.get(t):void 0}(t);if(!e)return;const n={};for(const[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push(nn(r));return n}const Fn=0,$n=1,Un=1;function Bn(t){const{spanId:e,traceId:n}=t.spanContext(),{parent_span_id:r}=qn(t);return nn({parent_span_id:r,span_id:e,trace_id:n})}function zn(t){return"number"==typeof t?Hn(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Hn(t.getTime()):Ne()}function Hn(t){return t>9999999999?t/1e3:t}function qn(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=t;return nn({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:zn(s),timestamp:zn(i)||void 0,status:Yn(c),op:r[Ln],origin:r[Dn],_metrics_summary:jn(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function Yn(t){if(t&&t.code!==Fn)return t.code===$n?"ok":t.message||"unknown_error"}const Wn="_sentryRootSpan";function Jn(t){return t[Wn]||t}const Vn="_frozenDsc";function Kn(t){const e=vn();if(!e)return{};const n=function(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=nn({environment:n.environment||Cn,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}(qn(t).trace_id||"",e),r=Jn(t);if(!r)return n;const s=r[Vn];if(s)return s;const o=qn(r),i=o.data||{},a=i[An];null!=a&&(n.sample_rate=`${a}`);const c=i[Nn];return c&&"url"!==c&&(n.transaction=o.description),n.sampled=String(function(t){const{traceFlags:e}=t.spanContext();return e===Un}(r)),e.emit("createDsc",n),n}function Gn(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=e;Xn(t,"extra",n),Xn(t,"tags",r),Xn(t,"user",s),Xn(t,"contexts",o),Xn(t,"sdkProcessingMetadata",a),i&&(t.level=i),h&&(t.transactionName=h),f&&(t.span=f),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),u.length&&(t.fingerprint=[...t.fingerprint,...u]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...p}}function Xn(t,e,n){if(n&&Object.keys(n).length){t[e]={...t[e]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[e][r]=n[r])}}function Qn(t,e,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||Ve(),timestamp:e.timestamp||Re()},u=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:r,dist:s,maxValueLength:o=250}=e;"environment"in t||(t.environment="environment"in e?n:Cn),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==s&&(t.dist=s),t.message&&(t.message=kn(t.message,o));const i=t.exception&&t.exception.values&&t.exception.values[0];i&&i.value&&(i.value=kn(i.value,o));const a=t.request;a&&a.url&&(a.url=kn(a.url,o))}(c,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(c,u),void 0===e.type&&function(t,e){const n=Ie._sentryDebugIds;if(!n)return;let r;const s=Zn.get(e);s?r=s:(r=new Map,Zn.set(e,r));const o=Object.keys(n).reduce(((t,s)=>{let o;const i=r.get(s);i?o=i:(o=e(s),r.set(s,o));for(let e=o.length-1;e>=0;e--){const r=o[e];if(r.filename){t[r.filename]=n[s];break}}return t}),{});try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&(t.debug_id=o[t.filename])}))}))}catch(t){}}(c,t.stackParser);const l=function(t,e){if(!e)return t;const n=t?t.clone():new un;return n.update(e),n}(r,n.captureContext);n.mechanism&&function(t,e){const n=function(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}(t);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){const t={...r&&r.data,...e.data};n.mechanism.data=t}}(c,n.mechanism);const d=s?s.getEventProcessors():[],p=Oe("globalScope",(()=>new un)).getScopeData();o&&Gn(p,o.getScopeData()),l&&Gn(p,l.getScopeData());const h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),function(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=e;!function(t,e){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=e,c=nn(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=nn(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const l=nn(s);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=nn(o);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),i&&(t.level=i),a&&"transaction"!==t.type&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Bn(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Kn(e),...t.sdkProcessingMetadata};const n=qn(Jn(e)).description;n&&!t.transaction&&"transaction"===t.type&&(t.transaction=n)}(t,r),function(t,e){var n;t.fingerprint=t.fingerprint?(n=t.fingerprint,Array.isArray(n)?n:[n]):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}(t,n),function(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}(t,s),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,o)}(c,p),Rn([...d,...p.eventProcessors],c,n).then((t=>(t&&function(t){const e={};try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.debug_id&&(t.abs_path?e[t.abs_path]=t.debug_id:t.filename&&(e[t.filename]=t.debug_id),delete t.debug_id)}))}))}catch(t){}if(0===Object.keys(e).length)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.keys(e).forEach((t=>{n.push({type:"sourcemap",code_file:t,debug_id:e[t]})}))}(t),"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:xn(t.data,e,n)}})))},...t.user&&{user:xn(t.user,e,n)},...t.contexts&&{contexts:xn(t.contexts,e,n)},...t.extra&&{extra:xn(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=xn(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map((t=>({...t,...t.data&&{data:xn(t.data,e,n)}})))),r}(t,i,a):t)))}const Zn=new WeakMap;const tr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function er(t,e){return _n().captureException(t,function(t){if(t)return function(t){return t instanceof un||"function"==typeof t}(t)||function(t){return Object.keys(t).some((t=>tr.includes(t)))}(t)?{captureContext:t}:t}(e))}function nr(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;Mn&&$e.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}function rr(t,e=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`}const sr=6e4;function or(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||void 0!==Ie.process&&"renderer"===Ie.process.type)}var ir=n(11193),ar=n(42764);const cr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ur=(t,e,n,r)=>{let s,o;return i=>{e.value>=0&&(i||r)&&(o=e.value-(s||0),(o||void 0===s)&&(s=e.value,e.delta=o,e.rating=((t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good")(e.value,n),t(e)))}};var lr=n(54543);const dr=()=>lr.j.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],pr=()=>{const t=dr();return t&&t.activationStart||0},hr=(t,e)=>{const n=dr();let r="navigate";return n&&(lr.j.document&&lr.j.document.prerendering||pr()>0?r="prerender":lr.j.document&&lr.j.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},fr=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver((t=>{Promise.resolve().then((()=>{e(t.getEntries())}))}));return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},mr=t=>{const e=e=>{("pagehide"===e.type||lr.j.document&&"hidden"===lr.j.document.visibilityState)&&t(e)};lr.j.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},gr=t=>{let e=!1;return n=>{e||(t(n),e=!0)}};let _r=-1;const yr=t=>{"hidden"===lr.j.document.visibilityState&&_r>-1&&(_r="visibilitychange"===t.type?t.timeStamp:0,removeEventListener("visibilitychange",yr,!0),removeEventListener("prerenderingchange",yr,!0))},vr=()=>(lr.j.document&&_r<0&&(_r="hidden"!==lr.j.document.visibilityState||lr.j.document.prerendering?1/0:0,addEventListener("visibilitychange",yr,!0),addEventListener("prerenderingchange",yr,!0)),{get firstHiddenTime(){return _r}}),br=t=>{lr.j.document&&lr.j.document.prerendering?addEventListener("prerenderingchange",(()=>t()),!0):t()},Sr=[1800,3e3],kr=[.1,.25],wr=(t,e={})=>{((t,e={})=>{br((()=>{const n=vr(),r=hr("FCP");let s;const o=fr("paint",(t=>{t.forEach((t=>{"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-pr(),0),r.entries.push(t),s(!0)))}))}));o&&(s=ur(t,r,Sr,e.reportAllChanges))}))})(gr((()=>{const n=hr("CLS",0);let r,s=0,o=[];const i=t=>{t.forEach((t=>{if(!t.hadRecentInput){const e=o[0],n=o[o.length-1];s&&t.startTime-n.startTime<1e3&&t.startTime-e.startTime<5e3?(s+=t.value,o.push(t)):(s=t.value,o=[t])}})),s>n.value&&(n.value=s,n.entries=o,r())},a=fr("layout-shift",i);a&&(r=ur(t,n,kr,e.reportAllChanges),mr((()=>{i(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},xr=[100,300],Er=(t,e={})=>{br((()=>{const n=vr(),r=hr("FID");let s;const o=t=>{t.startTime<n.firstHiddenTime&&(r.value=t.processingStart-t.startTime,r.entries.push(t),s(!0))},i=t=>{t.forEach(o)},a=fr("first-input",i);s=ur(t,r,xr,e.reportAllChanges),a&&mr(gr((()=>{i(a.takeRecords()),a.disconnect()})))}))};let Cr=0,Tr=1/0,Ir=0;const Or=t=>{t.forEach((t=>{t.interactionId&&(Tr=Math.min(Tr,t.interactionId),Ir=Math.max(Ir,t.interactionId),Cr=Ir?(Ir-Tr)/7+1:0)}))};let Mr;const Rr=()=>{"interactionCount"in performance||Mr||(Mr=fr("event",Or,{type:"event",buffered:!0,durationThreshold:0}))},Nr=[200,500],Ar=()=>(Mr?Cr:performance.interactionCount||0)-0,Lr=[],Dr={},Pr=t=>{const e=Lr[Lr.length-1],n=Dr[t.interactionId];if(n||Lr.length<10||t.duration>e.latency){if(n)n.entries.push(t),n.latency=Math.max(n.latency,t.duration);else{const e={id:t.interactionId,latency:t.duration,entries:[t]};Dr[e.id]=e,Lr.push(e)}Lr.sort(((t,e)=>e.latency-t.latency)),Lr.splice(10).forEach((t=>{delete Dr[t.id]}))}},jr=(t,e={})=>{br((()=>{Rr();const n=hr("INP");let r;const s=t=>{t.forEach((t=>{t.interactionId&&Pr(t),"first-input"===t.entryType&&!Lr.some((e=>e.entries.some((e=>t.duration===e.duration&&t.startTime===e.startTime))))&&Pr(t)}));const e=(()=>{const t=Math.min(Lr.length-1,Math.floor(Ar()/50));return Lr[t]})();e&&e.latency!==n.value&&(n.value=e.latency,n.entries=e.entries,r())},o=fr("event",s,{durationThreshold:null!=e.durationThreshold?e.durationThreshold:40});r=ur(t,n,Nr,e.reportAllChanges),o&&("PerformanceEventTiming"in lr.j&&"interactionId"in PerformanceEventTiming.prototype&&o.observe({type:"first-input",buffered:!0}),mr((()=>{s(o.takeRecords()),n.value<0&&Ar()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},Fr=[2500,4e3],$r={},Ur=(t,e={})=>{br((()=>{const n=vr(),r=hr("LCP");let s;const o=t=>{const e=t[t.length-1];e&&e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-pr(),0),r.entries=[e],s())},i=fr("largest-contentful-paint",o);if(i){s=ur(t,r,Fr,e.reportAllChanges);const n=gr((()=>{$r[r.id]||(o(i.takeRecords()),i.disconnect(),$r[r.id]=!0,s(!0))}));["keydown","click"].forEach((t=>{lr.j.document&&addEventListener(t,(()=>setTimeout(n,0)),!0)})),mr(n)}}))},Br=[800,1800],zr=t=>{lr.j.document&&lr.j.document.prerendering?br((()=>zr(t))):lr.j.document&&"complete"!==lr.j.document.readyState?addEventListener("load",(()=>zr(t)),!0):setTimeout(t,0)},Hr=(t,e={})=>{const n=hr("TTFB"),r=ur(t,n,Br,e.reportAllChanges);zr((()=>{const t=dr();if(t){const e=t.responseStart;if(e<=0||e>performance.now())return;n.value=Math.max(e-pr(),0),n.entries=[t],r(!0)}}))},qr={},Yr={};let Wr,Jr,Vr,Kr,Gr;function Xr(t,e=!1){return os("lcp",t,ns,Vr,e)}function Qr(t,e){return is(t,e),Yr[t]||(function(t){const e={};"event"===t&&(e.durationThreshold=0),fr(t,(e=>{Zr(t,{entries:e})}),e)}(t),Yr[t]=!0),as(t,e)}function Zr(t,e){const n=qr[t];if(n&&n.length)for(const r of n)try{r(e)}catch(e){cr&&ir.vF.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,ar.qQ)(r)}\nError:`,e)}}function ts(){return wr((t=>{Zr("cls",{metric:t}),Wr=t}),{reportAllChanges:!0})}function es(){return Er((t=>{Zr("fid",{metric:t}),Jr=t}))}function ns(){return Ur((t=>{Zr("lcp",{metric:t}),Vr=t}))}function rs(){return Hr((t=>{Zr("ttfb",{metric:t}),Kr=t}))}function ss(){return jr((t=>{Zr("inp",{metric:t}),Gr=t}))}function os(t,e,n,r,s=!1){let o;return is(t,e),Yr[t]||(o=n(),Yr[t]=!0),r&&e({metric:r}),as(t,e,s?o:void 0)}function is(t,e){qr[t]=qr[t]||[],qr[t].push(e)}function as(t,e,n){return()=>{n&&n();const r=qr[t];if(!r)return;const s=r.indexOf(e);-1!==s&&r.splice(s,1)}}var cs=n(86136),us=n(33183);const ls=Ie,ds="sentryReplaySession",ps="replay_event",hs="Unable to send Replay",fs=15e4,ms=5e3,gs=2e7;function _s(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}var ys;function vs(t){const e=_s([t,"optionalAccess",t=>t.host]);return Boolean(_s([e,"optionalAccess",t=>t.shadowRoot])===t)}function bs(t){return"[object ShadowRoot]"===Object.prototype.toString.call(t)}function Ss(t){try{const n=t.rules||t.cssRules;return n?((e=Array.from(n,ks).join("")).includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),e):null}catch(t){return null}var e}function ks(t){let e;if(function(t){return"styleSheet"in t}(t))try{e=Ss(t.styleSheet)||function(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return""===t.layerName?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}(t)}catch(t){}else if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":"))return t.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return e||t.cssText}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(ys||(ys={}));class ws{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(t){if(!t)return-1;return()=>-1,null!=(e=_s([this,"access",t=>t.getMeta,"call",e=>e(t),"optionalAccess",t=>t.id]))?e:-1;var e}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const e=this.getId(t);this.idNodeMap.delete(e),t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,e){const n=e.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,e)}replace(t,e){const n=this.getNode(t);if(n){const t=this.nodeMetaMap.get(n);t&&this.nodeMetaMap.set(e,t)}this.idNodeMap.set(t,e)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function xs({maskInputOptions:t,tagName:e,type:n}){return"OPTION"===e&&(e="SELECT"),Boolean(t[e.toLowerCase()]||n&&t[n]||"password"===n||"INPUT"===e&&!n&&t.text)}function Es({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function Cs(t){return t.toLowerCase()}function Ts(t){return t.toUpperCase()}const Is="__rrweb_original__";function Os(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Cs(e):null}function Ms(t,e,n){return"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let Rs=1;const Ns=new RegExp("[^a-z0-9-_:]"),As=-2;function Ls(){return Rs++}let Ds,Ps;const js=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Fs=/^(?:[a-z+]+:)?\/\//i,$s=/^www\..*/i,Us=/^(data:)([^,]*),(.*)/i;function Bs(t,e){return(t||"").replace(js,((t,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return t;if(Fs.test(a)||$s.test(a))return`url(${c}${a}${c})`;if(Us.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+a}${c})`;const u=e.split("/"),l=a.split("/");u.pop();for(const t of l)"."!==t&&(".."===t?u.pop():u.push(t));return`url(${c}${u.join("/")}${c})`}))}const zs=/^[^ \t\n\r\u000c]+/,Hs=/^[, \t\n\r\u000c]+/;function qs(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Ys(){const t=document.createElement("a");return t.href="",t.href}function Ws(t,e,n,r,s,o){return r?"src"===n||"href"===n&&("use"!==e||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?qs(t,r):"background"!==n||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n?function(t,e){if(""===e.trim())return e;let n=0;function r(t){let r;const s=t.exec(e.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(Hs),!(n>=e.length);){let o=r(zs);if(","===o.slice(-1))o=qs(t,o.substring(0,o.length-1)),s.push(o);else{let r="";o=qs(t,o);let i=!1;for(;;){const t=e.charAt(n);if(""===t){s.push((o+r).trim());break}if(i)")"===t&&(i=!1);else{if(","===t){n+=1,s.push((o+r).trim());break}"("===t&&(i=!0)}r+=t,n+=1}}}return s.join(", ")}(t,r):"style"===n?Bs(r,Ys()):"object"===e&&"data"===n?qs(t,r):"function"==typeof o?o(n,r,s):r:qs(t,r):r}function Js(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}function Vs(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Vs(t.parentNode,e,n,r+1):-1}function Ks(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(t){return!1}}}function Gs(t,e,n,r,s,o){try{const i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const t=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(t))return!0}let a=-1,c=-1;if(o){if(c=Vs(i,Ks(r,s)),c<0)return!0;a=Vs(i,Ks(e,n),c>=0?c:1/0)}else{if(a=Vs(i,Ks(e,n)),a<0)return!1;c=Vs(i,Ks(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!o)}catch(t){}return!!o}function Xs(t){return null==t?"":t.toLowerCase()}function Qs(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=(()=>!1),newlyAddedElement:I=!1}=e;let{preserveWhiteSpace:O=!0}=e;const M=function(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:_={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=e,k=function(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return 1===n?void 0:n}(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:ys.Document,childNodes:[],compatMode:t.compatMode}:{type:ys.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ys.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:k};case t.ELEMENT_NODE:return function(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b}=e,S=function(t,e,n,r){try{if(r&&t.matches(r))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}if(n)return t.matches(n)}catch(t){}return!1}(t,r,s,o),k=function(t){if(t instanceof HTMLFormElement)return"form";const e=Cs(t.tagName);return Ns.test(e)?"div":e}(t);let w={};const x=t.attributes.length;for(let e=0;e<x;e++){const r=t.attributes[e];r.name&&!Js(k,r.name,r.value)&&(w[r.name]=Ws(n,k,Cs(r.name),r.value,t,c))}if("link"===k&&i){const e=Array.from(n.styleSheets).find((e=>e.href===t.href));let r=null;e&&(r=Ss(e)),r&&(delete w.rel,delete w.href,w._cssText=Bs(r,e.href))}if("style"===k&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=Ss(t.sheet);e&&(w._cssText=Bs(e,Ys()))}if("input"===k||"textarea"===k||"select"===k||"option"===k){const e=t,n=Os(e),r=Ms(e,Ts(k),n),s=e.checked;if("submit"!==n&&"button"!==n&&r){const t=Gs(e,_,v,y,b,xs({type:n,tagName:Ts(k),maskInputOptions:a}));w.value=Es({isMasked:t,element:e,value:r,maskInputFn:u})}s&&(w.checked=s)}if("option"===k&&(t.selected&&!a.select?w.selected=!0:delete w.selected),"canvas"===k&&p)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let r=0;r<t.height;r+=50){const s=e.getImageData,o=Is in s?s[Is]:s;if(new Uint32Array(o.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(w.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const e=t.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height,e!==n.toDataURL(l.type,l.quality)&&(w.rr_dataURL=e)}if("img"===k&&d){Ds||(Ds=n.createElement("canvas"),Ps=Ds.getContext("2d"));const e=t,r=e.crossOrigin;e.crossOrigin="anonymous";const s=()=>{e.removeEventListener("load",s);try{Ds.width=e.naturalWidth,Ds.height=e.naturalHeight,Ps.drawImage(e,0,0),w.rr_dataURL=Ds.toDataURL(l.type,l.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}r?w.crossOrigin=r:e.removeAttribute("crossorigin")};e.complete&&0!==e.naturalWidth?s():e.addEventListener("load",s)}if("audio"!==k&&"video"!==k||(w.rr_mediaState=t.paused?"paused":"played",w.rr_mediaCurrentTime=t.currentTime),f||(t.scrollLeft&&(w.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(w.rr_scrollTop=t.scrollTop)),S){const{width:e,height:n}=t.getBoundingClientRect();w={class:w.class,rr_width:`${e}px`,rr_height:`${n}px`}}let E;"iframe"!==k||h(w.src)||(t.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(k)&&(E=!0)}catch(t){}return{type:ys.Element,tagName:k,attributes:w,childNodes:[],isSVG:(C=t,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:E};var C}(t,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:_,inlineImages:y,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:k,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case t.TEXT_NODE:return function(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let p=t.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{t.nextSibling||t.previousSibling||_s([t,"access",t=>t.parentNode,"access",t=>t.sheet,"optionalAccess",t=>t.cssRules])&&(p=Ss(t.parentNode.sheet))}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}p=Bs(p,Ys())}f&&(p="SCRIPT_PLACEHOLDER");const g=Gs(t,r,o,s,i,n);return h||f||m||!p||!g||(p=a?a(p,t.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=u?u(p,t.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=Es({isMasked:Gs(t,r,o,s,i,xs({type:null,tagName:d,maskInputOptions:c})),element:t,value:p,maskInputFn:u})),{type:ys.Text,textContent:p||"",isStyle:h,rootId:l}}(t,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:k});case t.CDATA_SECTION_NODE:return{type:ys.CDATA,textContent:"",rootId:k};case t.COMMENT_NODE:return{type:ys.Comment,textContent:t.textContent||"",rootId:k};default:return!1}}(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:T,newlyAddedElement:I});if(!M)return console.warn(t,"not serialized"),null;let R;R=r.hasNode(t)?r.getId(t):!function(t,e){if(e.comment&&t.type===ys.Comment)return!0;if(t.type===ys.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Xs(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Xs(t.attributes.name)||"icon"===Xs(t.attributes.rel)||"apple-touch-icon"===Xs(t.attributes.rel)||"shortcut icon"===Xs(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Xs(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Xs(t.attributes.property).match(/^(og|twitter|fb):/)||Xs(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Xs(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Xs(t.attributes.name)||"googlebot"===Xs(t.attributes.name)||"bingbot"===Xs(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Xs(t.attributes.name)||"generator"===Xs(t.attributes.name)||"framework"===Xs(t.attributes.name)||"publisher"===Xs(t.attributes.name)||"progid"===Xs(t.attributes.name)||Xs(t.attributes.property).match(/^article:/)||Xs(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Xs(t.attributes.name)||"yandex-verification"===Xs(t.attributes.name)||"csrf-token"===Xs(t.attributes.name)||"p:domain_verify"===Xs(t.attributes.name)||"verify-v1"===Xs(t.attributes.name)||"verification"===Xs(t.attributes.name)||"shopify-checkout-api-token"===Xs(t.attributes.name)))return!0}}return!1}(M,y)&&(O||M.type!==ys.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?Ls():As;const N=Object.assign(M,{id:R});if(r.add(t,N),R===As)return null;k&&k(t);let A=!p;if(N.type===ys.Element){A=A&&!N.needBlock,delete N.needBlock;const e=t.shadowRoot;e&&bs(e)&&(N.isShadowHost=!0)}if((N.type===ys.Document||N.type===ys.Element)&&A){y.headWhitespace&&N.type===ys.Element&&"head"===N.tagName&&(O=!1);const e={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(t.childNodes)){const t=Qs(n,e);t&&N.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const r=Qs(n,e);r&&(bs(t.shadowRoot)&&(r.isShadow=!0),N.childNodes.push(r))}}return t.parentNode&&vs(t.parentNode)&&bs(t.parentNode)&&(N.isShadow=!0),N.type===ys.Element&&"iframe"===N.tagName&&function(t,e,n){const r=t.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(t){return}if("complete"!==s){const r=setTimeout((()=>{o||(e(),o=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(r),o=!0,e()}))}const i="about:blank";if(r.location.href!==i||t.src===i||""===t.src)return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}(t,(()=>{const e=t.contentDocument;if(e&&w){const n=Qs(e,{doc:e,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&w(t,n)}}),x),N.type===ys.Element&&"link"===N.tagName&&"stylesheet"===N.attributes.rel&&function(t,e,n){let r,s=!1;try{r=t.sheet}catch(t){return}if(r)return;const o=setTimeout((()=>{s||(e(),s=!0)}),n);t.addEventListener("load",(()=>{clearTimeout(o),s=!0,e()}))}(t,(()=>{if(E){const e=Qs(t,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOMOptions:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:O,onSerialize:k,onIframeLoad:w,iframeLoadTimeout:x,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});e&&E(t,e)}}),C),N}function Zs(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function to(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const eo="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 no={map:{},getId:()=>(console.error(eo),-1),getNode:()=>(console.error(eo),null),removeNodeFromMap(){console.error(eo)},has:()=>(console.error(eo),!1),reset(){console.error(eo)}};function ro(t,e,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=e-(i-s),c=this;a<=0||a>e?(r&&(function(...t){wo("clearTimeout")(...t)}(r),r=null),s=i,t.apply(c,o)):r||!1===n.trailing||(r=xo((()=>{s=!1===n.leading?0:Date.now(),r=null,t.apply(c,o)}),a))}}function so(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(t){xo((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>so(t,e,o||{},!0)}function oo(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(t){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(no=new Proxy(no,{get:(t,e,n)=>("map"===e&&console.error(eo),Reflect.get(t,e,n))}));let io=Date.now;function ao(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:void 0!==t.pageXOffset?t.pageXOffset:Zs([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||Zs([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||Zs([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:void 0!==t.pageYOffset?t.pageYOffset:Zs([e,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||Zs([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||Zs([e,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function co(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function uo(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function lo(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function po(t,e,n,r,s){if(!t)return!1;const o=lo(t);if(!o)return!1;const i=Ks(e,n);if(!s){const t=r&&o.matches(r);return i(o)&&!t}const a=Vs(o,i);let c=-1;return!(a<0)&&(r&&(c=Vs(o,Ks(null,r))),a>-1&&c<0||a<c)}function ho(t,e){return e.getId(t)===As}function fo(t,e){if(vs(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||fo(t.parentNode,e))}function mo(t){return Boolean(t.changedTouches)}function go(t,e){return Boolean("IFRAME"===t.nodeName&&e.getMeta(t))}function _o(t,e){return Boolean("LINK"===t.nodeName&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&"stylesheet"===t.getAttribute("rel")&&e.getMeta(t))}function yo(t){return Boolean(Zs([t,"optionalAccess",t=>t.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(io=()=>(new Date).getTime());class vo{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return()=>-1,null!=(e=this.styleIDMap.get(t))?e:-1;var e}has(t){return this.styleIDMap.has(t)}add(t,e){if(this.has(t))return this.getId(t);let n;return n=void 0===e?this.id++:e,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function bo(t){let e=null;return Zs([t,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function So(t){const e=t.ownerDocument;return!!e&&(e.contains(t)||function(t){const e=t.ownerDocument;if(!e)return!1;const n=function(t){let e,n=t;for(;e=bo(n);)n=e;return n}(t);return e.contains(n)}(t))}const ko={};function wo(t){const e=ko[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(r=s[t]),n.head.removeChild(e)}catch(t){}return ko[t]=r.bind(window)}function xo(...t){return wo("setTimeout")(...t)}var Eo=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Eo||{}),Co=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Co||{}),To=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(To||{}),Io=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(Io||{});function Oo(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}function Mo(t){return"__ln"in t}class Ro{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=Oo([e,"optionalAccess",t=>t.next])||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Mo(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Mo(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;null===e.next&&(this.tail=e),this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next?e.next.previous=e.previous:this.tail=e.previous):(this.head=e.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const No=(t,e)=>`${t}@${e}`;class Ao{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Set,n=new Ro,r=t=>{let e=t,n=As;for(;n===As;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{if(!s.parentNode||!So(s))return;const o=vs(s.parentNode)?this.mirror.getId(bo(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=Qs(s,{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:t=>{go(t,this.mirror)&&this.iframeManager.addIframe(t),_o(t,this.mirror)&&this.stylesheetManager.trackLinkElement(t),yo(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{this.stylesheetManager.attachLinkElement(t,e)}});a&&(t.push({parentId:o,nextId:i,node:a}),e.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)Do(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||s(t);for(const t of this.addedSet)jo(this.droppedSet,t)||Do(this.removes,t,this.mirror)?jo(this.movedSet,t)?s(t):this.droppedSet.add(t):s(t);let o=null;for(;n.length;){let t=null;if(o){const e=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==e&&-1!==n&&(t=o)}if(!t){let e=n.tail;for(;e;){const n=e;if(e=e.previous,n){const e=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==e){t=n;break}{const e=n.value;if(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=e.parentNode.host;if(-1!==this.mirror.getId(r)){t=n;break}}}}}}if(!t){for(;n.head;)n.removeNode(n.head.value);break}o=t.previous,n.removeNode(t.value),s(t.value)}const i={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>{const{attributes:e}=t;if("string"==typeof e.style){const n=JSON.stringify(t.styleDiff),r=JSON.stringify(t._unchangedStyles);n.length<e.style.length&&(n+r).split("var(").length===e.style.split("var(").length&&(e.style=t.styleDiff)}return{id:this.mirror.getId(t.node),attributes:e}})).filter((t=>!e.has(t.id))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))},this.processMutation=t=>{if(!ho(t.target,this.mirror))switch(t.type){case"characterData":{const e=t.target.textContent;po(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||e===t.oldValue||this.texts.push({value:Gs(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e,lo(t.target)):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=t.attributeName,r=t.target.getAttribute(n);if("value"===n){const n=Os(e),s=e.tagName;r=Ms(e,s,n);const o=xs({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=Es({isMasked:Gs(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:e,value:r,maskInputFn:this.maskInputFn})}if(po(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===t.oldValue)return;let s=this.attributeMap.get(t.target);if("IFRAME"===e.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(e.contentDocument)return;n="rr_src"}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(t.target,s)),"type"===n&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),!Js(e.tagName,n)&&(s.attributes[n]=Ws(this.doc,Cs(e.tagName),Cs(n),r,e,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue);for(const t of Array.from(e.style)){const r=e.style.getPropertyValue(t),o=e.style.getPropertyPriority(t);r!==n.style.getPropertyValue(t)||o!==n.style.getPropertyPriority(t)?s.styleDiff[t]=""===o?r:[r,o]:s._unchangedStyles[t]=[r,o]}for(const t of Array.from(n.style))""===e.style.getPropertyValue(t)&&(s.styleDiff[t]=!1)}break}case"childList":if(po(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),r=vs(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);po(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ho(e,this.mirror)||!function(t,e){return-1!==e.getId(t)}(e,this.mirror)||(this.addedSet.has(e)?(Lo(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||fo(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[No(n,r)]?Lo(this.movedSet,e):this.removes.push({parentId:r,id:n,isShadow:!(!vs(t.target)||!bs(t.target))||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(ho(t,this.mirror))return;this.movedSet.add(t);let n=null;e&&this.mirror.hasNode(e)&&(n=this.mirror.getId(e)),n&&-1!==n&&(this.movedMap[No(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);po(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach((t=>this.genAdds(t))),yo(t)&&t.shadowRoot.childNodes.forEach((e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)})))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((e=>{this[e]=t[e]}))}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 Lo(t,e){t.delete(e),e.childNodes.forEach((e=>Lo(t,e)))}function Do(t,e,n){return 0!==t.length&&Po(t,e,n)}function Po(t,e,n){const{parentNode:r}=e;if(!r)return!1;const s=n.getId(r);return!!t.some((t=>t.id===s))||Po(t,r,n)}function jo(t,e){return 0!==t.size&&Fo(t,e)}function Fo(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||Fo(t,n))}let $o;function Uo(t){$o=t}function Bo(){$o=void 0}const zo=t=>$o?(...e)=>{try{return t(...e)}catch(t){if($o&&!0===$o(t))return()=>{};throw t}}:t;function Ho(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}const qo=[];function Yo(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function Wo(t,e){const n=new Ao;qo.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const s=Ho([window,"optionalAccess",t=>t.Zone,"optionalAccess",t=>t.__symbol__,"optionalCall",t=>t("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(zo((e=>{t.onMutation&&!1===t.onMutation(e)||n.processMutations.bind(n)(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Jo({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return to("scroll",zo(ro(zo((i=>{const a=Yo(i);if(!a||po(a,r,s,o,!0))return;const c=n.getId(a);if(a===e&&e.defaultView){const n=ao(e.defaultView);t({id:c,x:n.left,y:n.top})}else t({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),e)}const Vo=["INPUT","TEXTAREA","SELECT"],Ko=new WeakMap;function Go({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(t){let n=Yo(t);const l=t.isTrusted,g=n&&Ts(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Vo.indexOf(g)<0||po(n,r,s,o,!0))return;const y=n;if(y.classList.contains(i)||a&&y.matches(a))return;const v=Os(n);let b=Ms(y,g,v),S=!1;const k=xs({maskInputOptions:c,tagName:g,type:v}),w=Gs(n,p,f,h,m,k);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=Es({isMasked:w,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&&e.querySelectorAll(`input[type="radio"][name="${x}"]`).forEach((t=>{if(t!==n){const e=Es({isMasked:w,element:t,value:Ms(t,g,v),maskInputFn:u});_(t,d?{text:e,isChecked:!S,userTriggered:!1}:{text:e,isChecked:!S})}}))}function _(e,r){const s=Ko.get(e);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){Ko.set(e,r);const s=n.getId(e);zo(t)({...r,id:s})}}const y=("last"===l.input?["change"]:["input","change"]).map((t=>to(t,zo(g),e))),v=e.defaultView;if(!v)return()=>{y.forEach((t=>t()))};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((t=>so(t[0],t[1],{set(){zo(g)({target:this,isTrusted:!1})}},!1,v)))),zo((()=>{y.forEach((t=>t()))}))}function Xo(t){return function(t,e){if(ei("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||ei("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||ei("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||ei("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else if(t.parentStyleSheet){const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function Qo(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function Zo({mirror:t,stylesheetManager:e},n){let r=null;r="#document"===n.nodeName?t.getId(n):t.getId(n.host);const s="#document"===n.nodeName?Ho([n,"access",t=>t.defaultView,"optionalAccess",t=>t.Document]):Ho([n,"access",t=>t.ownerDocument,"optionalAccess",t=>t.defaultView,"optionalAccess",t=>t.ShadowRoot]),o=Ho([s,"optionalAccess",t=>t.prototype])?Object.getOwnPropertyDescriptor(Ho([s,"optionalAccess",t=>t.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Ho([o,"access",t=>t.get,"optionalAccess",t=>t.call,"call",t=>t(this)])},set(t){const n=Ho([o,"access",t=>t.set,"optionalAccess",t=>t.call,"call",e=>e(this,t)]);if(null!==r&&-1!==r)try{e.adoptStyleSheets(t,r)}catch(t){}return n}}),zo((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function ti(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};const r=Wo(t,t.doc),s=function({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(!1===e.mousemove)return()=>{};const s="number"==typeof e.mousemove?e.mousemove:50,o="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let i,a=[];const c=ro(zo((e=>{const n=Date.now()-i;t(a.map((t=>(t.timeOffset-=n,t))),e),a=[],i=null})),o),u=zo(ro(zo((t=>{const e=Yo(t),{clientX:n,clientY:s}=mo(t)?t.changedTouches[0]:t;i||(i=io()),a.push({x:n,y:s,id:r.getId(e),timeOffset:io()-i}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?Co.Drag:t instanceof MouseEvent?Co.MouseMove:Co.TouchMove)})),s,{trailing:!1})),l=[to("mousemove",u,n),to("touchmove",u,n),to("drag",u,n)];return zo((()=>{l.forEach((t=>t()))}))}(t),o=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,c=[];let u=null;return Object.keys(To).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==a[t])).forEach((i=>{let a=Cs(i);const l=(e=>i=>{const a=Yo(i);if(po(a,r,s,o,!0))return;let c=null,l=e;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Io.Mouse;break;case"touch":c=Io.Touch;break;case"pen":c=Io.Pen}c===Io.Touch?To[e]===To.MouseDown?l="TouchStart":To[e]===To.MouseUp&&(l="TouchEnd"):Io.Pen}else mo(i)&&(c=Io.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Io.Touch||l.startsWith("Mouse")&&c===Io.Mouse)&&(c=null)):To[e]===To.Click&&(c=u,u=null);const d=mo(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;zo(t)({type:To[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(To[i]){case To.MouseDown:case To.MouseUp:a=a.replace("mouse","pointer");break;case To.TouchStart:case To.TouchEnd:return}c.push(to(a,l,e))})),zo((()=>{c.forEach((t=>t()))}))}(t),i=Jo(t),a=function({viewportResizeCb:t},{win:e}){let n=-1,r=-1;return to("resize",zo(ro(zo((()=>{const e=co(),s=uo();n===e&&r===s||(t({width:Number(s),height:Number(e)}),n=e,r=s)})),200)),e)}(t,{win:n}),c=Go(t),u=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=zo((i=>ro(zo((o=>{const a=Yo(o);if(!a||po(a,e,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;t({type:i,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),o.media||500))),c=[to("play",a(0),i),to("pause",a(1),i),to("seeked",a(2),i),to("volumechange",a(3),i),to("ratechange",a(4),i)];return zo((()=>{c.forEach((t=>t()))}))}(t),l=function({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:zo(((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=Qo(s,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:zo(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Qo(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:zo(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Qo(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:zo(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Qo(s,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,replaceSync:i}),r.apply(s,o)}))}));const c={};ni("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ni("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ni("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ni("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:zo(((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=Qo(s.parentStyleSheet,e,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&t({id:c,styleId:u,adds:[{rule:i,index:[...Xo(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:zo(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=Qo(s.parentStyleSheet,e,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&t({id:a,styleId:c,removes:[{index:[...Xo(s),i]}]}),r.apply(s,o)}))})})),zo((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([t,e])=>{e.prototype.insertRule=u[t].insertRule,e.prototype.deleteRule=u[t].deleteRule}))}))}(t,{win:n}),d=Zo(t,t.doc),p=function({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:zo(((s,i,a)=>{const[c,u,l]=a;if(n.has(c))return o.apply(i,[c,u,l]);const{id:d,styleId:p}=Qo(Ho([i,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&t({id:d,styleId:p,set:{property:c,value:u,priority:l},index:Xo(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:zo(((s,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:u,styleId:l}=Qo(Ho([o,"access",t=>t.parentRule,"optionalAccess",t=>t.parentStyleSheet]),e,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&t({id:u,styleId:l,remove:{property:c},index:Xo(o.parentRule)}),s.apply(o,a)}))}),zo((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),h=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(t,e,n){const r=new o(t,e,n);return s.set(r,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),r};const i=oo(e.fonts,"add",(function(e){return function(n){return xo(zo((()=>{const e=s.get(n);e&&(t(e),s.delete(n))})),0),e.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),zo((()=>{r.forEach((t=>t()))}))}(t):()=>{},f=function(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=t;let a=!0;const c=zo((()=>{const t=e.getSelection();if(!t||a&&Ho([t,"optionalAccess",t=>t.isCollapsed]))return;a=t.isCollapsed||!1;const c=[],u=t.rangeCount||0;for(let e=0;e<u;e++){const i=t.getRangeAt(e),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;po(a,r,s,o,!0)||po(l,r,s,o,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})}));return c(),to("selectionchange",c)}(t),m=function({doc:t,customElementCb:e}){const n=t.defaultView;return n&&n.customElements?oo(n.customElements,"define",(function(t){return function(n,r,s){try{e({define:{name:n}})}catch(t){}return t.apply(this,[n,r,s])}})):()=>{}}(t),g=[];for(const e of t.plugins)g.push(e.observer(e.callback,n,e.options));return zo((()=>{qo.forEach((t=>t.reset())),r.disconnect(),s(),o(),i(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach((t=>t()))}))}function ei(t){return void 0!==window[t]}function ni(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class ri{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,e,n,r){const s=n||this.getIdToRemoteIdMap(t),o=r||this.getRemoteIdToIdMap(t);let i=s.get(e);return i||(i=this.generateIdFn(),s.set(e,i),o.set(i,e)),i}getIds(t,e){const n=this.getIdToRemoteIdMap(t),r=this.getRemoteIdToIdMap(t);return e.map((e=>this.getId(t,e,n,r)))}getRemoteId(t,e,n){const r=n||this.getRemoteIdToIdMap(t);if("number"!=typeof e)return e;return r.get(e)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map((e=>this.getRemoteId(t,e,n)))}reset(t){if(!t)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let e=this.iframeIdToRemoteIdMap.get(t);return e||(e=new Map,this.iframeIdToRemoteIdMap.set(t,e)),e}getRemoteIdToIdMap(t){let e=this.iframeRemoteIdToIdMap.get(t);return e||(e=new Map,this.iframeRemoteIdToIdMap.set(t,e)),e}}function si(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}class oi{constructor(){this.crossOriginIframeMirror=new ri(Ls),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ii{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new ri(Ls),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ri(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),si([this,"access",t=>t.loadListener,"optionalCall",e=>e(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const e=t;if("rrweb"!==e.data.type||e.origin!==e.data.origin)return;if(!t.source)return;const n=this.crossOriginIframeMap.get(t.source);if(!n)return;const r=this.transformCrossOriginEvent(n,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(t,e){switch(e.type){case Eo.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(e.data.node,t);const n=e.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(e.data.node,n),{timestamp:e.timestamp,type:Eo.IncrementalSnapshot,data:{source:Co.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Eo.Meta:case Eo.Load:case Eo.DomContentLoaded:return!1;case Eo.Plugin:return e;case Eo.Custom:return this.replaceIds(e.data.payload,t,["id","parentId","previousId","nextId"]),e;case Eo.IncrementalSnapshot:switch(e.data.source){case Co.Mutation:return e.data.adds.forEach((e=>{this.replaceIds(e,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,t);const n=this.crossOriginIframeRootIdMap.get(t);n&&this.patchRootIdOnNode(e.node,n)})),e.data.removes.forEach((e=>{this.replaceIds(e,t,["parentId","id"])})),e.data.attributes.forEach((e=>{this.replaceIds(e,t,["id"])})),e.data.texts.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Co.Drag:case Co.TouchMove:case Co.MouseMove:return e.data.positions.forEach((e=>{this.replaceIds(e,t,["id"])})),e;case Co.ViewportResize:return!1;case Co.MediaInteraction:case Co.MouseInteraction:case Co.Scroll:case Co.CanvasMutation:case Co.Input:return this.replaceIds(e.data,t,["id"]),e;case Co.StyleSheetRule:case Co.StyleDeclaration:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleId"]),e;case Co.Font:return e;case Co.Selection:return e.data.ranges.forEach((e=>{this.replaceIds(e,t,["start","end"])})),e;case Co.AdoptedStyleSheet:return this.replaceIds(e.data,t,["id"]),this.replaceStyleIds(e.data,t,["styleIds"]),si([e,"access",t=>t.data,"access",t=>t.styles,"optionalAccess",t=>t.forEach,"call",e=>e((e=>{this.replaceStyleIds(e,t,["styleId"])}))]),e}}return!1}replace(t,e,n,r){for(const s of r)(Array.isArray(e[s])||"number"==typeof e[s])&&(Array.isArray(e[s])?e[s]=t.getIds(n,e[s]):e[s]=t.getId(n,e[s]));return e}replaceIds(t,e,n){return this.replace(this.crossOriginIframeMirror,t,e,n)}replaceStyleIds(t,e,n){return this.replace(this.crossOriginIframeStyleMirror,t,e,n)}replaceIdOnNode(t,e){this.replaceIds(t,e,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach((t=>{this.replaceIdOnNode(t,e)}))}patchRootIdOnNode(t,e){t.type===ys.Document||t.rootId||(t.rootId=e),"childNodes"in t&&t.childNodes.forEach((t=>{this.patchRootIdOnNode(t,e)}))}}class ai{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ci{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,e){if(!bs(t))return;if(this.shadowDoms.has(t))return;this.shadowDoms.add(t);const n=Wo({...this.bypassOptions,doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Jo({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),xo((()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Zo({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))}),0)}observeAttachShadow(t){t.contentWindow&&t.contentDocument&&this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,e){const n=this;this.restoreHandlers.push(oo(t.prototype,"attachShadow",(function(t){return function(r){const s=t.call(this,r);return this.shadowRoot&&So(this)&&n.addShadowRoot(this.shadowRoot,e),s}})))}reset(){this.restoreHandlers.forEach((t=>{try{t()}catch(t){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class ui{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class li{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new vo,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,e){"_cssText"in e.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:e.id,attributes:e.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,e){if(0===t.length)return;const n={id:e,styleIds:[]},r=[];for(const e of t){let t;this.styleMirror.has(e)?t=this.styleMirror.getId(e):(t=this.styleMirror.add(e),r.push({styleId:t,rules:Array.from(e.rules||CSSRule,((t,e)=>({rule:ks(t),index:e})))})),n.styleIds.push(t)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class di{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...t){wo("requestAnimationFrame")(...t)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(t,e){const n=this.nodeMap.get(t);return n&&Array.from(n).some((t=>t!==e))}add(t,e){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(e))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let pi,hi;const fi=new ws;function mi(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:k,sampling:w={},dataURLOptions:x={},mousemoveWait:E,recordCanvas:C=!1,recordCrossOriginIframes:T=!1,recordAfter:I=("DOMContentLoaded"===t.recordAfter?t.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:M=!1,inlineImages:R=!1,plugins:N,keepIframeSrcFn:A=(()=>!1),ignoreCSSAttributes:L=new Set([]),errorHandler:D,onMutation:P,getCanvasManager:j}=t;Uo(D);const F=!T||window.parent===window;let $=!1;if(!F)try{window.parent.document&&($=!1)}catch(t){$=!0}if(F&&!e)throw new Error("emit function is required");void 0!==E&&void 0===w.mousemove&&(w.mousemove=E),fi.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:{},B=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let z;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let e=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})}();let H=0;const q=t=>{for(const e of N||[])e.eventProcessor&&(t=e.eventProcessor(t));return k&&!$&&(t=k(t)),t};pi=(t,s)=>{const o=t;if(o.timestamp=io(),!Te([qo,"access",t=>t[0],"optionalAccess",t=>t.isFrozen,"call",t=>t()])||o.type===Eo.FullSnapshot||o.type===Eo.IncrementalSnapshot&&o.data.source===Co.Mutation||qo.forEach((t=>t.unfreeze())),F)Te([e,"optionalCall",t=>t(q(o),s)]);else if($){const t={type:"rrweb",event:q(o),origin:window.location.origin,isCheckout:s};window.parent.postMessage(t,"*")}if(o.type===Eo.FullSnapshot)z=o,H=0;else if(o.type===Eo.IncrementalSnapshot){if(o.data.source===Co.Mutation&&o.data.isAttachIframe)return;H++;const t=r&&H>=r,e=n&&z&&o.timestamp-z.timestamp>n;(t||e)&&Z(!0)}};const Y=t=>{pi({type:Eo.IncrementalSnapshot,data:{source:Co.Mutation,...t}})},W=t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.Scroll,...t}}),J=t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.CanvasMutation,...t}}),V=new li({mutationCb:Y,adoptedStyleSheetCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.AdoptedStyleSheet,...t}})}),K="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new oi:new ii({mirror:fi,mutationCb:Y,stylesheetManager:V,recordCrossOriginIframes:T,wrappedEmit:pi});for(const t of N||[])t.getMirror&&t.getMirror({nodeMirror:fi,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});const G=new di,X=function(t,e){try{return t?t(e):new ui}catch(t){return console.warn("Unable to initialize CanvasManager"),new ui}}(j,{mirror:fi,win:window,mutationCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.CanvasMutation,...t}}),recordCanvas:C,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:S,sampling:w.canvas,dataURLOptions:x,errorHandler:D}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new ai:new ci({mutationCb:Y,scrollCb:W,bypassOptions:{onMutation:P,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:U,dataURLOptions:x,maskAttributeFn:y,maskTextFn:b,maskInputFn:v,recordCanvas:C,inlineImages:R,sampling:w,slimDOMOptions:B,iframeManager:K,stylesheetManager:V,canvasManager:X,keepIframeSrcFn:A,processedNodeManager:G},mirror:fi}),Z=(t=!1)=>{pi({type:Eo.Meta,data:{href:window.location.href,width:uo(),height:co()}},t),V.reset(),Q.init(),qo.forEach((t=>t.lock()));const e=function(t,e){const{mirror:n=new ws,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:_,slimDOM:y=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C=(()=>!1)}=e||{};return Qs(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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===f?{}:f,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}:!1===y?{}:y,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:k,iframeLoadTimeout:w,onStylesheetLoad:x,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:fi,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:U,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,slimDOM:B,dataURLOptions:x,recordCanvas:C,inlineImages:R,onSerialize:t=>{go(t,fi)&&K.addIframe(t),_o(t,fi)&&V.trackLinkElement(t),yo(t)&&Q.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{K.attachIframe(t,e),Q.observeAttachShadow(t)},onStylesheetLoad:(t,e)=>{V.attachLinkElement(t,e)},keepIframeSrcFn:A});if(!e)return console.warn("Failed to snapshot the document");pi({type:Eo.FullSnapshot,data:{node:e,initialOffset:ao(window)}}),qo.forEach((t=>t.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&V.adoptStyleSheets(document.adoptedStyleSheets,fi.getId(document))};hi=Z;try{const t=[],e=t=>zo(ti)({onMutation:P,mutationCb:Y,mousemoveCb:(t,e)=>pi({type:Eo.IncrementalSnapshot,data:{source:e,positions:t}}),mouseInteractionCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.MouseInteraction,...t}}),scrollCb:W,viewportResizeCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.ViewportResize,...t}}),inputCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.Input,...t}}),mediaInteractionCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.MediaInteraction,...t}}),styleSheetRuleCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.StyleSheetRule,...t}}),styleDeclarationCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.StyleDeclaration,...t}}),canvasMutationCb:J,fontCb:t=>pi({type:Eo.IncrementalSnapshot,data:{source:Co.Font,...t}}),selectionCb:t=>{pi({type:Eo.IncrementalSnapshot,data:{source:Co.Selection,...t}})},customElementCb:t=>{pi({type:Eo.IncrementalSnapshot,data:{source:Co.CustomElement,...t}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:U,inlineStylesheet:f,sampling:w,recordCanvas:C,inlineImages:R,userTriggeredOnInput:O,collectFonts:M,doc:t,maskAttributeFn:y,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:A,blockSelector:o,unblockSelector:i,slimDOMOptions:B,dataURLOptions:x,mirror:fi,iframeManager:K,stylesheetManager:V,shadowDomManager:Q,processedNodeManager:G,canvasManager:X,ignoreCSSAttributes:L,plugins:Te([N,"optionalAccess",t=>t.filter,"call",t=>t((t=>t.observer)),"optionalAccess",t=>t.map,"call",t=>t((t=>({observer:t.observer,options:t.options,callback:e=>pi({type:Eo.Plugin,data:{plugin:t.name,payload:e}})})))])||[]},{});K.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{Z(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(t.push(to("DOMContentLoaded",(()=>{pi({type:Eo.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),t.push(to("load",(()=>{pi({type:Eo.Load,data:{}}),"load"===I&&n()}),window))),()=>{t.forEach((t=>t())),G.destroy(),hi=void 0,Bo()}}catch(t){console.warn(t)}}mi.mirror=fi,mi.takeFullSnapshot=function(t){if(!hi)throw new Error("please take full snapshot after start recording");hi(t)};const gi=3;function _i(t){return t>9999999999?t:1e3*t}function yi(t){return t>9999999999?t/1e3:t}function vi(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(t.throttledAddEvent({type:Eo.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:xn(e,10,1e3)}}),"console"===e.category))))}const bi="button,a";function Si(t){return t.closest(bi)||t}function ki(t){const e=wi(t);return e&&e instanceof Element?Si(e):e}function wi(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}let xi;function Ei(t){return xi||(xi=[],function(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);"function"==typeof s&&function(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Ze(t,"__sentry_original__",e)}catch(t){}}(s,r),t[e]=s}(ls,"open",(function(t){return function(...e){if(xi)try{xi.forEach((t=>t()))}catch(t){}return t.apply(ls,e)}}))),xi.push(t),()=>{const e=xi?xi.indexOf(t):-1;e>-1&&xi.splice(e,1)}}class Ci{constructor(t,e,n=vi){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=e.timeout/1e3,this._threshold=e.threshold/1e3,this._scollTimeout=e.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=e.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const t=Ei((()=>{this._lastMutation=Ii()}));this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,e){if(function(t,e){return!Ti.includes(t.tagName)||("INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||(!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!e||!t.matches(e))))}(e,this._ignoreSelector)||!function(t){return!(!t.data||"number"!=typeof t.data.nodeId||!t.timestamp)}(t))return;const n={timestamp:yi(t.timestamp),clickBreadcrumb:t,clickCount:0,node:e};this._clicks.some((t=>t.node===n.node&&Math.abs(t.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=yi(t)}registerScroll(t=Date.now()){this._lastScroll=yi(t)}registerClick(t){const e=Si(t);this._handleMultiClick(e)}_handleMultiClick(t){this._getClicks(t).forEach((t=>{t.clickCount++}))}_getClicks(t){return this._clicks.filter((e=>e.node===t))}_checkClicks(){const t=[],e=Ii();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<=e&&t.push(n)}));for(const e of t){const t=this._clicks.indexOf(e);t>-1&&(this._generateBreadcrumbs(e),this._clicks.splice(t,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const e=this._replay,n=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,r=t.mutationAfter&&t.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=t;if(s){const n=1e3*Math.min(t.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:ls.location.href,route:e.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(e,s)}else if(o>1){const t={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:ls.location.href,route:e.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(e,t)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout((()=>this._checkClicks()),1e3)}}const Ti=["A","BUTTON","INPUT"];function Ii(){return Date.now()/1e3}function Oi(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Mi;!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Mi||(Mi={}));const Ri=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ni(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Ri.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),e[r]=t[n]}return e}function Ai(t,e){const n=mi.mirror.getId(t),r=n&&mi.mirror.getNode(n),s=r&&mi.mirror.getMeta(r),o=s&&function(t){return t.type===Mi.Element}(s)?s:null;return{message:e,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((t=>t.type===Mi.Text&&t.textContent)).filter(Boolean).map((t=>t.trim())).join(""),attributes:Ni(o.attributes)}}:{}}}const Li={resource:function(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Pi(o),end:Pi(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(t){const{duration:e,entryType:n,name:r,startTime:s}=t,o=Pi(s);return{type:n,name:r,start:o,end:o+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=t;return 0===s?null:{type:`${e}.${m}`,start:Pi(h),end:Pi(o),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function Di(t){return Li[t.entryType]?Li[t.entryType](t):null}function Pi(t){return((Le||ls.performance.timeOrigin)+t)/1e3}const ji="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Fi(t,e){ji&&($e.info(t),e&&Ui(t))}function $i(t,e){ji&&($e.info(t),e&&setTimeout((()=>{Ui(t)}),0))}function Ui(t){!function(t,e){const n=vn(),r=yn();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=bn}=n.getOptions();if(o<=0)return;const i={timestamp:Re(),...t},a=s?Fe((()=>s(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class Bi extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class zi{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const e=JSON.stringify(t).length;if(this._totalSize+=e,this._totalSize>gs)throw new Bi;this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.clear(),t(JSON.stringify(e))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?_i(t):null}}class Hi{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Fi("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:e})=>{const i=e;if(i.method===t&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return ji&&$e.error("[Replay]",i.response),void s(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class qi{constructor(t){this._worker=new Hi(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=_i(t.timestamp);(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e);const n=JSON.stringify(t);return this._totalSize+=n.length,this._totalSize>gs?Promise.reject(new Bi):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(t=>{ji&&$e.warn('[Replay] Sending "clear" message to worker failed',t)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Yi{constructor(t){this._fallback=new zi,this._compression=new qi(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void Fi("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:e}=this._fallback,n=[];for(const e of t)n.push(this._compression.addEvent(e));this._compression.hasCheckout=e,this._used=this._compression;try{await Promise.all(n)}catch(t){ji&&$e.warn("[Replay] Failed to add events when switching buffers.",t)}}}function Wi(){try{return"sessionStorage"in ls&&!!ls.sessionStorage}catch(t){return!1}}function Ji(t){return void 0!==t&&Math.random()<t}function Vi(t){const e=Date.now();return{id:t.id||Ve(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,previousSessionId:t.previousSessionId}}function Ki(t){if(Wi())try{ls.sessionStorage.setItem(ds,JSON.stringify(t))}catch(t){}}function Gi({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=function(t,e){return Ji(t)?"session":!!e&&"buffer"}(t,e),o=Vi({sampled:s,previousSessionId:r});return n&&Ki(o),o}function Xi(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function Qi(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Xi(t.started,e,r)||Xi(t.lastActivity,n,r)}function Zi(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!!Qi(t,{sessionIdleExpire:e,maxReplayDuration:n})&&("buffer"!==t.sampled||0!==t.segmentId)}function ta({traceInternals:t,sessionIdleExpire:e,maxReplayDuration:n,previousSessionId:r},s){const o=s.stickySession&&function(t){if(!Wi())return null;try{const e=ls.sessionStorage.getItem(ds);if(!e)return null;const n=JSON.parse(e);return $i("[Replay] Loading existing session",t),Vi(n)}catch(t){return null}}(t);return o?Zi(o,{sessionIdleExpire:e,maxReplayDuration:n})?($i("[Replay] Session in sessionStorage is expired, creating new one..."),Gi(s,{previousSessionId:o.id})):o:($i("[Replay] Creating new session",t),Gi(s,{previousSessionId:r}))}function ea(t,e,n){return!!ra(t,e)&&(na(t,e,n),!0)}async function na(t,e,n){if(!t.eventBuffer)return null;try{n&&"buffer"===t.recordingMode&&t.eventBuffer.clear(),n&&(t.eventBuffer.hasCheckout=!0);const r=function(t,e){try{if("function"==typeof e&&function(t){return t.type===Eo.Custom}(t))return e(t)}catch(t){return ji&&$e.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",t),null}return t}(e,t.getOptions().beforeAddRecordingEvent);if(!r)return;return await t.eventBuffer.addEvent(r)}catch(e){const n=e&&e instanceof Bi?"addEventSizeExceeded":"addEvent";ji&&$e.error(e),await t.stop({reason:n});const r=vn();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function ra(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=_i(e.timestamp);return!(n+t.timeouts.sessionIdlePause<Date.now()||n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration&&(Fi(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),1))}function sa(t){return!t.type}function oa(t){return"transaction"===t.type}function ia(t){return"feedback"===t.type}function aa(t){return!!t.category}function ca(t,e){return e.map((({type:e,start:n,end:r,name:s,data:o})=>{const i=t.throttledAddEvent({type:Eo.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function ua(t,e){t.isEnabled()&&null!==e&&(function(t,e){return(!ji||!t.getOptions()._experiments.traceInternals)&&function(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return function(t,e){return!!e&&t.includes(e.host)}(t,n)||function(t,e){return!!e&&Sn(t)===Sn(e)}(t,r)}(e,vn())}(t,e.name)||t.addUpdate((()=>(ca(t,[e]),!0))))}function la(t){if(!t)return;const e=new TextEncoder;try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=ya(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function da(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function pa(t){try{if("string"==typeof t)return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[ya(t)];if(!t)return[void 0]}catch(e){return ji&&$e.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return ji&&$e.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ha(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function fa(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:s,data:nn({method:o,statusCode:i,request:a,response:c})}}function ma(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function ga(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:o}=function(t){if(!t||"string"!=typeof t)return{body:t};const e=t.length>fs,n=function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t);if(e){const e=t.slice(0,fs);return n?{body:e,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${e}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch(t){}return{body:t}}(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function _a(t,e){return Object.keys(t).reduce(((n,r)=>{const s=r.toLowerCase();return e.includes(s)&&t[r]&&(n[s]=t[r]),n}),{})}function ya(t){return new URLSearchParams(t).toString()}function va(t,e){const n=function(t,e=ls.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(ls.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(t);return function(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!qe(t)&&(He(e,"RegExp")?e.test(t):!!qe(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}(n,e)}function ba(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function Sa(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function ka(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Sa(n,e):Array.isArray(n)?{}:_a(n,e):{}}function wa(t){const e=vn();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};e&&e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(e.data)try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(function(t,e){const{xhr:n,input:r}=e;if(!n)return;const s=la(r),o=n.getResponseHeader("content-length")?da(n.getResponseHeader("content-length")):function(t,e){try{return la("json"===e&&t&&"object"==typeof t?JSON.stringify(t):t)}catch(t){return}}(n.response,n.responseType);void 0!==s&&(t.data.request_body_size=s),void 0!==o&&(t.data.response_body_size=o)}(e,n),async function(t,e,n){try{const r=function(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=e,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=t.data;if(!c)return null;if(!a||!va(c,n.networkDetailAllowUrls)||va(c,n.networkDetailDenyUrls))return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:ma(d),response:ma(p)};const h=a[fe.Er],f=h?_a(h.request_headers,n.networkRequestHeaders):{},m=_a(function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,r]=e.split(": ");return t[n.toLowerCase()]=r,t}),{}):{}}(a),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?pa(i):[void 0],[y,v]=n.networkCaptureBodies?function(t){const e=[];try{return[t.responseText]}catch(t){e.push(t)}try{return function(t,e){try{if("string"==typeof t)return[t];if(t instanceof Document)return[t.body.outerHTML];if("json"===e&&t&&"object"==typeof t)return[JSON.stringify(t)];if(!t)return[void 0]}catch(e){return ji&&$e.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return ji&&$e.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}(t.response,t.responseType)}catch(t){e.push(t)}return ji&&$e.warn("[Replay] Failed to get xhr response body",...e),[void 0]}(a):[void 0],b=ga(f,d,g),S=ga(m,p,y);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:l,request:_?ha(b,_):b,response:v?ha(S,v):S}}(t,e,n),s=fa("resource.xhr",r);ua(n.replay,s)}catch(t){ji&&$e.error("[Replay] Failed to capture xhr breadcrumb",t)}}(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(function(t,e){const{input:n,response:r}=e,s=la(n?ba(n):void 0),o=r?da(r.headers.get("content-length")):void 0;void 0!==s&&(t.data.request_body_size=s),void 0!==o&&(t.data.response_body_size=o)}(e,n),async function(t,e,n){try{const r=await async function(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=e,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=t.data,d=va(i,n.networkDetailAllowUrls)&&!va(i,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?(i=e,1===(o=n).length&&"string"!=typeof o[0]?ka(o[0],i):2===o.length?ka(o[1],i):{}):{};var o,i;if(!t)return ga(s,r,void 0);const a=ba(n),[c,u]=pa(a),l=ga(s,r,c);return u?ha(l,u):l}(n,e.input,u):ma(u),h=await async function(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,s){if(!t&&void 0!==s)return ma(s);const o=r?Sa(r.headers,n):{};if(!r||!e&&void 0!==s)return ga(o,s,void 0);const[i,a]=await async function(t){const e=function(t){try{return t.clone()}catch(t){ji&&$e.warn("[Replay] Failed to clone response body",t)}}(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{const t=await function(t){return new Promise(((e,n)=>{const r=setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(t){return await t.text()})(t).then((t=>e(t)),(t=>n(t))).finally((()=>clearTimeout(r)))}))}(e);return[t]}catch(t){return ji&&$e.warn("[Replay] Failed to get text body from response",t),[void 0,"BODY_PARSE_ERROR"]}}(r),c=function(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:s}){try{const o=t&&t.length&&void 0===n?la(t):n;return r?ga(s,o,e?t:void 0):ma(o)}catch(t){return ji&&$e.warn("[Replay] Failed to serialize response body",t),ga(s,n,void 0)}}(i,{networkCaptureBodies:e,responseBodySize:s,captureDetails:t,headers:o});return a?ha(c,a):c}(d,n,e.response,l);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:p,response:h}}(t,e,n),s=fa("resource.fetch",r);ua(n.replay,s)}catch(t){ji&&$e.error("[Replay] Failed to capture fetch breadcrumb",t)}}(e,n,t))}catch(t){ji&&$e.warn("Error when enriching network breadcrumb")}}(a,t,e)))}catch(t){}}function xa(t){const e=vn();(0,cs.i)((t=>e=>{if(!t.isEnabled())return;const n=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,r=null;try{r=e?ki(t.event):wi(t.event),n=Xe(r,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:r,message:n}}(t);return Oi({category:`ui.${t.name}`,...Ai(e,n)})}(e);if(!n)return;const r="click"===e.name,s=r?e.event:void 0;var o,i,a;!(r&&t.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=t.clickDetector,i=n,a=ki(e.event),o.handleClick(i,a)),vi(t,n)})(t)),(0,us._)(function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(ca(t,[n]),!1))))}}(t)),function(t){const e=vn();e&&e.on("beforeAddBreadcrumb",(e=>function(t,e){if(!t.isEnabled()||!aa(e))return;const n=function(t){return!aa(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Oi(t);let n=!1;const r=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>ms?(n=!0,`${t.slice(0,ms)}…`):t;if("object"==typeof t)try{const e=xn(t,7);return JSON.stringify(e).length>ms?(n=!0,`${JSON.stringify(e,null,2).slice(0,ms)}…`):e}catch(t){}return t}));return Oi({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Oi(t)}(e);n&&vi(t,n)}(t,e)))}(t),wa(t);const n=function(t){return Object.assign(((e,n)=>{if(!t.isEnabled())return e;if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!sa(e)&&!oa(e)&&!ia(e))return e;if(!t.checkAndHandleExpiredSession())return e;if(ia(e))return t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),function(t,e){t.triggerUserActivity(),t.addUpdate((()=>!e.timestamp||(t.throttledAddEvent({type:Eo.Custom,timestamp:1e3*e.timestamp,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1)))}(t,e),e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length||!e.originalException||!e.originalException.__rrweb__)}(e,n)&&!t.getOptions()._experiments.captureExceptions)return ji&&$e.log("[Replay] Ignoring error from rrweb internals",e),null;const r=function(t,e){return"buffer"===t.recordingMode&&e.message!==hs&&!(!e.exception||e.type)&&Ji(t.getOptions().errorSampleRate)}(t,e);return(r||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),e}),{id:"Replay"})}(t);var r;r=n,yn().addEventProcessor(r),e&&(e.on("beforeSendEvent",function(t){return e=>{t.isEnabled()&&sa(e)&&function(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0].value;"string"==typeof n&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&vi(t,Oi({category:"replay.hydrate-error"}))}(t,e)}}(t)),e.on("afterSendEvent",function(t){return(e,n)=>{if(!t.isEnabled()||!sa(e)&&!oa(e))return;const r=n&&n.statusCode;!r||r<200||r>=300||(oa(e)?function(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}(t,e):function(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),"buffer"!==t.recordingMode||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();("function"!=typeof r||r(e))&&setTimeout((()=>{t.sendBufferedReplayOrFlush()}))}(t,e))}}(t)),e.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&t.checkAndHandleExpiredSession()&&(e.replay_id=n)})),e.on("spanStart",(e=>{t.lastActiveSpan=e})),e.on("spanEnd",(e=>{t.lastActiveSpan=e})),e.on("beforeSendFeedback",((e,n)=>{const r=t.getSessionId();n&&n.includeReplay&&t.isEnabled()&&r&&e.contexts&&e.contexts.feedback&&(e.contexts.feedback.replay_id=r)})))}function Ea(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Ca(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession())return void(ji&&$e.warn("[Replay] Received replay event after session expired."));const s=r||!e;e=!0,t.clickDetector&&function(t,e){try{if(!function(t){return t.type===gi}(e))return;const{source:n}=e.data;if(n===Co.Mutation&&t.registerMutation(e.timestamp),n===Co.Scroll&&t.registerScroll(e.timestamp),function(t){return t.data.source===Co.MouseInteraction}(e)){const{type:n,id:r}=e.data,s=mi.mirror.getNode(r);s instanceof HTMLElement&&n===To.Click&&t.registerClick(s)}}catch(t){}}(t.clickDetector,n),t.addUpdate((()=>{if("buffer"===t.recordingMode&&s&&t.setInitialState(),!ea(t,n,s))return!0;if(!s)return!1;if(function(t,e){e&&t.session&&0===t.session.segmentId&&ea(t,function(t){const e=t.getOptions();return{type:Eo.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,s),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(Fi(`[Replay] Updating session start time to earliest event in buffer to ${new Date(e)}`,t.getOptions()._experiments.traceInternals),t.session.started=e,t.getOptions().stickySession&&Ki(t.session))}return"session"===t.recordingMode&&t.flush(),!0}))}}async function Ta({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=function({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${r}${t}`;else{const e=(new TextEncoder).encode(r);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=vn(),p=_n(),h=d&&d.getTransport(),f=d&&d.getDsn();if(!(d&&h&&f&&o.sampled))return In({});const m={type:ps,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:e,segment_id:n,replay_type:o.sampled},g=await async function({client:t,scope:e,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations)};t.emit("preprocessEvent",r,s);const o=await Qn(t.getOptions(),r,s,e,t,yn());if(!o)return null;o.platform=o.platform||"javascript";const i=t.getSdkMetadata(),{name:a,version:c}=i&&i.sdk||{};return o.sdk={...o.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},o}({scope:p,client:d,replayId:e,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),Fi("An event processor returned `null`, will not send event."),In({});delete g.sdkProcessingMetadata;const _=function(t,e,n,r){return function(t,e=[]){return[t,e]}(function(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:rr(r)},...s&&{trace:nn({...s})}}}(t,function(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(g,i,f,d.getOptions().tunnel);let y;try{y=await h.send(_)}catch(t){const e=new Error(hs);try{e.cause=t}catch(t){}throw e}if("number"==typeof y.statusCode&&(y.statusCode<200||y.statusCode>=300))throw new Ia(y.statusCode);const v=function(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},o=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(o)for(const t of o.trim().split(",")){const[e,n,,,o]=t.split(":",5),i=parseInt(e,10),a=1e3*(isNaN(i)?60:i);if(n)for(const t of n.split(";"))"metric_bucket"===t&&o&&!o.split(";").includes("custom")||(s[t]=r+a);else s.all=r+a}else i?s.all=r+function(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${t}`);return isNaN(r)?sr:r-e}(i,r):429===e&&(s.all=r+6e4);return s}({},y);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(v,"replay"))throw new Oa(v);return y}class Ia extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class Oa extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Ma(t,e={count:0,interval:5e3}){const{recordingData:n,options:r}=t;var s;if(n.length)try{return await Ta(t),!0}catch(n){if(n instanceof Ia||n instanceof Oa)throw n;if("Replays",s={_retryCount:e.count},yn().setContext("Replays",s),ji&&r._experiments&&r._experiments.captureExceptions&&er(n),e.count>=3){const t=new Error(`${hs} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,new Promise(((n,r)=>{setTimeout((async()=>{try{await Ma(t,e),n(!0)}catch(t){r(t)}}),e.interval)}))}}const Ra="__THROTTLED";class Na{constructor({options:t,recordingOptions:e}){Na.prototype.__init.call(this),Na.prototype.__init2.call(this),Na.prototype.__init3.call(this),Na.prototype.__init4.call(this),Na.prototype.__init5.call(this),Na.prototype.__init6.call(this),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._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){void 0!==s&&clearTimeout(s),void 0!==o&&clearTimeout(o),s=o=void 0}function u(){return s&&clearTimeout(s),s=setTimeout(a,e),i&&void 0===o&&(o=setTimeout(a,i)),r}return u.cancel=c,u.flush=function(){return void 0!==s||void 0!==o?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(t,e,n){const r=new Map;let s=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((t=>{const e=t-n;r.forEach(((t,n)=>{n<e&&r.delete(n)}))})(i),[...r.values()].reduce(((t,e)=>t+e),0)>=e){const t=s;return s=!0,t?"__SKIPPED":Ra}s=!1;const a=r.get(i)||0;return r.set(i,a+1),t(...o)}}(((t,e)=>function(t,e,n){return ra(t,e)?na(t,e,n):Promise.resolve(null)}(this,t,e)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;s&&(this.clickDetector=new Ci(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(t){const{errorSampleRate:e,sessionSampleRate:n}=this._options;e<=0&&n<=0||(this._initializeSessionForSampling(t),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",$i(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");$i("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const t=ta({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");$i("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const t=ta({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=mi({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Ca(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:e}={}){if(this._isEnabled){this._isEnabled=!1;try{Fi("[Replay] Stopping Replay"+(e?` triggered by ${e}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(Wi())try{ls.sessionStorage.removeItem(ds)}catch(t){}}(),n.session=void 0}catch(t){this._handleException(t)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Fi("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Fi("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const e=Date.now();Fi("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();t&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(e),this._updateSessionActivity(e),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&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(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Xi(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${ls.location.pathname}${ls.location.hash}${ls.location.search}`,e=`${ls.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}throttledAddEvent(t,e){const n=this._throttledAddEvent(t,e);if(n===Ra){const t=Oi({category:"replay.throttled"});this.addUpdate((()=>!ea(this,{type:5,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t,metric:!0}})))}return n}getCurrentRoute(){const t=this.lastActiveSpan||function(){const t=gn(Ue());return t.getActiveSpan?t.getActiveSpan():an(_n())}(),e=t&&Jn(t),n=(e&&qn(e).data||{})[Nn];if(e&&n&&["route","custom"].includes(n))return qn(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t,workerUrl:e}){if(t&&window.Worker){const t=function(t){try{const e=t||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const t=new Blob(['var 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]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(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,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(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},A=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},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=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:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}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 a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),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=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+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(C,U,0),R=C;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[a[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=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(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;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=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;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}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];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}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[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=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[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-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=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&&j(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)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=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(O(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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(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=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=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(let r=0,e=t.length;r<e;r++)n+=t[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 H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[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});']);return URL.createObjectURL(t)}());if(!e)return;Fi("[Replay] Using compression worker"+(t?` from ${t}`:""));const n=new Worker(e);return new Yi(n)}catch(t){Fi("[Replay] Failed to create compression worker")}}(e);if(t)return t}return Fi("[Replay] Using simple buffer"),new zi}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){ji&&$e.error("[Replay]",t),ji&&this._options._experiments&&this._options._experiments.captureExceptions&&er(t)}_initializeSessionForSampling(t){const e=this._options.errorSampleRate>0,n=ta({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:e});this.session=n}_checkSession(){if(!this.session)return!1;const t=this.session;return!Zi(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(t),!1)}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{ls.document.addEventListener("visibilitychange",this._handleVisibilityChange),ls.addEventListener("blur",this._handleWindowBlur),ls.addEventListener("focus",this._handleWindowFocus),ls.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(xa(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=function(t){function e(e){t.performanceEntries.includes(e)||t.performanceEntries.push(e)}function n({entries:t}){t.forEach(e)}const r=[];return["navigation","paint","resource"].forEach((t=>{r.push(Qr(t,n))})),r.push(Xr((({metric:e})=>{t.replayPerformanceEntries.push(function(t){const e=t.entries,n=e[e.length-1],r=n?n.element:void 0,s=t.value,o=Pi(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:o,end:o,data:{value:s,size:s,nodeId:r?mi.mirror.getId(r):void 0}}}(e))}))),()=>{r.forEach((t=>t()))}}(this)}_removeListeners(){try{ls.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ls.removeEventListener("blur",this._handleWindowBlur),ls.removeEventListener("focus",this._handleWindowFocus),ls.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{"visible"===ls.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const t=Oi({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{const t=Oi({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=t;if(!i||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(i)||!o)return null;const a=e||r||s,c=1===o.length;if(!a&&c)return null;const u=Xe(i,{maxStringLength:200})||"<unknown>";return Oi({category:"ui.keyDown",message:u,data:{...Ai(i,u).data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}(e);n&&vi(t,n)}(this,t)}}_doChangeToBackgroundTasks(t){this.session&&(Qi(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush()))}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):Fi("[Replay] Document has become active, but session has expired"))}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{this.throttledAddEvent({type:Eo.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=(e=this.performanceEntries,e.map(Di).filter(Boolean)).concat(this.replayPerformanceEntries);var e;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(ca(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={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(),t}async _runFlush(){const t=this.getSessionId();if(this.session&&this.eventBuffer&&t){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(ca(t,[Ea(ls.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const e=Date.now();if(e-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await Ma({replayId:t,recordingData:s,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:e})}catch(t){this._handleException(t),this.stop({reason:"sendReplay"});const e=vn();e&&e.recordDroppedEvent("send_error","replay")}}else ji&&$e.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession())return void(ji&&$e.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const e=this.session.started,n=Date.now()-e;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return Fi(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const o=this.eventBuffer;if(o&&0===this.session.segmentId&&!o.hasCheckout&&Fi("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(t){ji&&$e.error(t)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ki(this.session)}__init6(){this._onMutationHandler=t=>{const e=t.length,n=this._options.mutationLimit,r=n&&e>n;if(e>this._options.mutationBreadcrumbLimit||r){const t=Oi({category:"replay.mutations",data:{count:e,limit:r}});this._createCustomBreadcrumb(t)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function Aa(t,e){return[...t,...e].join(",")}const La='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Da=["content-length","content-type","accept"];let Pa=!1;const ja=t=>new Fa(t);class Fa{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:i,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:k=[],block:w=[],unblock:x=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I}={}){this.name=Fa.id;const O=function({mask:t,unmask:e,block:n,unblock:r,ignore:s}){return{maskTextSelector:Aa(t,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Aa(e,[]),blockSelector:Aa(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:Aa(r,[]),ignoreSelector:Aa(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:k,block:w,unblock:x,ignore:E});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(t,e,n)=>function({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return r?s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?o:n.includes(e)||"value"===e&&"INPUT"===t.tagName&&["submit","button"].includes(t.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:S,maskAllText:c,privacyOptions:O,key:t,value:e,el:n}),...O,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:t=>{try{t.__rrweb__=!0}catch(t){}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:s,useCompression:o,workerUrl:i,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:$a(y),networkResponseHeaders:$a(v),beforeAddRecordingEvent:T,beforeErrorSampling:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${La}`:La),this._isInitialized&&or())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Pa}set _isInitialized(t){Pa=t}setupOnce(){or()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const t=function(t){const e=vn(),n=e&&e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...nn(t)};if(!n)return Fe((()=>{console.warn("SDK client is not available.")})),r;const s=nr(n.replaysSessionSampleRate),o=nr(n.replaysOnErrorSampleRate);return null==s&&null==o&&Fe((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=s&&(r.sessionSampleRate=s),null!=o&&(r.errorSampleRate=o),r}(this._initialOptions);this._replay=new Na({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const t=vn().getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(t){}}}function $a(t){return[...Da,...t.map((t=>t.toLowerCase()))]}function Ua(){const t=vn();return t&&t.getIntegrationByName("Replay")}var Ba;function za(t,e,n=1/0,r=0){return t?t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:za(t.parentNode,e,n,r+1):-1}function Ha(t,e){return n=>{const r=n;if(null===r)return!1;try{if(t)if("string"==typeof t){if(r.matches(`.${t}`))return!0}else if(function(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}(r,t))return!0;return!(!e||!r.matches(e))}catch(t){return!1}}}Fa.__initStatic(),function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Ba||(Ba={}));const qa="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 Ya={map:{},getId:()=>(console.error(qa),-1),getNode:()=>(console.error(qa),null),removeNodeFromMap(){console.error(qa)},has:()=>(console.error(qa),!1),reset(){console.error(qa)}};function Wa(t,e,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(t){Qa((()=>{n.set.call(this,t)}),0),o&&o.set&&o.set.call(this,t)}}),()=>Wa(t,e,o||{},!0)}function Ja(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch(t){return()=>{}}}function Va(t,e,n,r,s){if(!t)return!1;const o=function(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}(t);if(!o)return!1;const i=Ha(e,n);if(!s){const t=r&&o.matches(r);return i(o)&&!t}const a=za(o,i);let c=-1;return!(a<0)&&(r&&(c=za(o,Ha(null,r))),a>-1&&c<0||a<c)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Ya=new Proxy(Ya,{get:(t,e,n)=>("map"===e&&console.error(qa),Reflect.get(t,e,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const Ka={};function Ga(t){const e=Ka[t];if(e)return e;const n=window.document;let r=window[t];if(n&&"function"==typeof n.createElement)try{const e=n.createElement("iframe");e.hidden=!0,n.head.appendChild(e);const s=e.contentWindow;s&&s[t]&&(r=s[t]),n.head.removeChild(e)}catch(t){}return Ka[t]=r.bind(window)}function Xa(...t){return Ga("requestAnimationFrame")(...t)}function Qa(...t){return Ga("setTimeout")(...t)}var Za=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Za||{});let tc;const ec=t=>tc?(...e)=>{try{return t(...e)}catch(t){if(tc&&!0===tc(t))return()=>{};throw t}}:t;for(var nc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),sc=0;sc<64;sc++)rc[nc.charCodeAt(sc)]=sc;const oc=new Map,ic=(t,e,n)=>{if(!t||!uc(t,e)&&"object"!=typeof t)return;const r=function(t,e){let n=oc.get(t);return n||(n=new Map,oc.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let s=r.indexOf(t);return-1===s&&(s=r.length,r.push(t)),s};function ac(t,e,n){if(t instanceof Array)return t.map((t=>ac(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),r=n.length,s="";for(e=0;e<r;e+=3)s+=nc[n[e]>>2],s+=nc[(3&n[e])<<4|n[e+1]>>4],s+=nc[(15&n[e+1])<<2|n[e+2]>>6],s+=nc[63&n[e+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(t);return{rr_type:e,base64:n}}if(t instanceof DataView)return{rr_type:t.constructor.name,args:[ac(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}return t instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:t.toDataURL()}:t instanceof ImageData?{rr_type:t.constructor.name,args:[ac(t.data,e,n),t.width,t.height]}:uc(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:ic(t,e,n)}:t}const cc=(t,e,n)=>t.map((t=>ac(t,e,n))),uc=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function lc(t,e,n,r,s){const o=[];try{const i=Ja(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(o,...i){if(!Va(this,e,n,r,!0)){const t=function(t){return"experimental-webgl"===t?"webgl":t}(o);if("__context"in this||(this.__context=t),s&&["webgl","webgl2"].includes(t))if(i[0]&&"object"==typeof i[0]){const t=i[0];t.preserveDrawingBuffer||(t.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return t.apply(this,[o,...i])}}));o.push(i)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((t=>t()))}}function dc(t,e,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(t);for(const i of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof t[i])continue;const u=Ja(t,i,(function(t){return function(...c){const u=t.apply(this,c);if(ic(u,a,this),"tagName"in this.canvas&&!Va(this.canvas,r,s,o,!0)){const t=cc(c,a,this),r={type:e,property:i,args:t};n(this.canvas,r)}return u}}));c.push(u)}catch(r){const s=Wa(t,i,{set(t){n(this.canvas,{type:e,property:i,args:[t],setter:!0})}});c.push(s)}return c}class pc{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(t,e)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)};const{sampling:e="all",win:n,blockClass:r,blockSelector:s,unblockSelector:o,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:u}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,u&&(tc=u),t.enableManualSnapshot||ec((()=>{a&&"all"===e&&this.initCanvasMutationObserver(n,r,s,o),a&&"number"==typeof e&&this.initCanvasFPSObserver(e,n,r,s,o,i,{dataURLOptions:c})}))()}initCanvasFPSObserver(t,e,n,r,s,o,i){const a=lc(e,n,r,s,!0),c=this.takeSnapshot(!1,t,e,n,r,s,o,i.dataURLOptions);this.resetObservers=()=>{a(),cancelAnimationFrame(c)}}initCanvasMutationObserver(t,e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=lc(t,e,n,r,!1),o=function(t,e,n,r,s){const o=[],i=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[a])continue;const i=Ja(e.CanvasRenderingContext2D.prototype,a,(function(o){return function(...i){return Va(this.canvas,n,r,s,!0)||Qa((()=>{const n=cc(i,e,this);t(this.canvas,{type:Za["2D"],property:a,args:n})}),0),o.apply(this,i)}}));o.push(i)}catch(n){const r=Wa(e.CanvasRenderingContext2D.prototype,a,{set(e){t(this.canvas,{type:Za["2D"],property:a,args:[e],setter:!0})}});o.push(r)}return()=>{o.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,n,r),i=function(t,e,n,r,s,o){const i=[];return i.push(...dc(e.WebGLRenderingContext.prototype,Za.WebGL,t,n,r,s,0,e)),void 0!==e.WebGL2RenderingContext&&i.push(...dc(e.WebGL2RenderingContext.prototype,Za.WebGL2,t,n,r,s,0,e)),()=>{i.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,n,r,this.mirror);this.resetObservers=()=>{s(),o(),i()}}snapshot(t){const{options:e}=this,n=this.takeSnapshot(!0,"all"===e.sampling?2:e.sampling||2,e.win,e.blockClass,e.blockSelector,e.unblockSelector,e.maxCanvasSize,e.dataURLOptions,t);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(t,e,n,r,s,o,i,a,c){const u=new Map,l=new Worker(function(){const t=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(t)}());l.onmessage=t=>{const e=t.data,{id:n}=e;if(u.set(n,!1),!("base64"in e))return;const{base64:r,type:s,width:o,height:i}=e;this.mutationCb({id:n,type:Za["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0,o,i]}]})};const d=1e3/e;let p,h=0;const f=e=>{h&&e-h<d||(h=e,(t=>{if(t)return[t];const e=[];return n.document.querySelectorAll("canvas").forEach((t=>{Va(t,r,s,o,!0)||e.push(t)})),e})(c).forEach((e=>{const n=this.mirror.getId(e);if(!u.get(n)&&e.width&&e.height){if(u.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){const t=e.getContext(e.__context);!1===function(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}([t,"optionalAccess",t=>t.getContextAttributes,"call",t=>t(),"optionalAccess",t=>t.preserveDrawingBuffer])&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then((t=>{l.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:a,maxCanvasSize:i},[t])})).catch((t=>{ec((()=>{throw t}))()}))}}))),p=Xa(f)};return p=Xa(f),p}startPendingCanvasMutationFlusher(){Xa((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,Xa(t)};Xa(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),Xa((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const r=n.map((t=>{const{type:e,...n}=t;return n})),{type:s}=n[0];this.mutationCb({id:e,type:s,commands:r}),this.pendingCanvasMutations.delete(t)}}const hc={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}}},fc=1280,mc=(t={})=>{const[e,n]=t.maxCanvasSize||[],r={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot,maxCanvasSize:[e?Math.min(e,fc):fc,n?Math.min(n,fc):fc]};let s;const o=new Promise((t=>s=t));return{name:"ReplayCanvas",getOptions(){const{quality:t,enableManualSnapshot:e,maxCanvasSize:n}=r;return{enableManualSnapshot:e,recordCanvas:!0,getCanvasManager:t=>{const r=new pc({...t,enableManualSnapshot:e,maxCanvasSize:n,errorHandler:t=>{try{"object"==typeof t&&(t.__rrweb__=!0)}catch(t){}}});return s(r),r},...hc[t||"medium"]||hc.medium}},async snapshot(t){(await o).snapshot(t)}}},gc=globalThis;function _c(t,e,n){const r=n||gc,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}function yc(){return vc(gc),gc}function vc(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}const bc=Object.prototype.toString;function Sc(t){return function(t,e){return bc.call(t)===`[object ${e}]`}(t,"Object")}function kc(){return Date.now()/1e3}const wc=function(){const{performance:t}=gc;if(!t||!t.now)return kc;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let xc;function Ec(){const t=gc,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}(()=>{const{performance:t}=gc;if(!t||!t.now)return void(xc="none");const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=s<e,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):e;o||a<e?s<=a?(xc="timeOrigin",t.timeOrigin):xc="navigationStart":xc="dateNow"})();const Cc="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Tc=["debug","info","warn","error","log","assert","trace"],Ic={},Oc=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Cc?Tc.forEach((n=>{e[n]=(...e)=>{t&&function(t){if(!("console"in gc))return t();const e=gc.console,n={},r=Object.keys(Ic);r.forEach((t=>{const r=Ic[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}((()=>{gc.console[n](`Sentry Logger [${n}]:`,...e)}))}})):Tc.forEach((t=>{e[t]=()=>{}})),e}();function Mc(t){return Rc(t,new Map)}function Rc(t,e){if(function(t){if(!Sc(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=Rc(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(Rc(t,e))})),r}return t}const Nc="_sentrySpan";function Ac(t,e){e?function(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){Cc&&Oc.log(`Failed to add non-enumerable property "${e}" to object`,t)}}(t,Nc,e):delete t[Nc]}function Lc(t){return t[Nc]}class Dc{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jc()}clone(){const t=new Dc;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ac(t,Lc(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||wc(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:Ec()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Pc?[e.getScopeData(),e.getRequestSession()]:Sc(e)?[t,t.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Ac(this,void 0),this._attachments=[],this._propagationContext=jc(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:kc(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lc(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:Ec();if(!this._client)return Oc.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:Ec();if(!this._client)return Oc.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:Ec();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(Oc.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const Pc=Dc;function jc(){return{traceId:Ec(),spanId:Ec().substring(16)}}class Fc{constructor(t,e){let n,r;n=t||new Pc,r=e||new Pc,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n);var r}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function $c(){const t=vc(yc());return t.hub||(t.hub=new Fc(_c("defaultCurrentScope",(()=>new Pc)),_c("defaultIsolationScope",(()=>new Pc)))),t.hub}function Uc(t){return $c().withScope(t)}function Bc(t,e){const n=$c();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function zc(t){return $c().withScope((()=>t($c().getIsolationScope())))}function Hc(t){const e=vc(t);return e.acs?e.acs:{withIsolationScope:zc,withScope:Uc,withSetScope:Bc,withSetIsolationScope:(t,e)=>zc(e),getCurrentScope:()=>$c().getScope(),getIsolationScope:()=>$c().getIsolationScope()}}function qc(){return Hc(yc()).getCurrentScope()}function Yc(){return qc().getClient()}const Wc=gc;function Jc(){try{return Wc.document.location.href}catch(t){return""}}function Vc(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||void 0!==gc.process&&"renderer"===gc.process.type)}const Kc=gc,Gc=Kc.document,Xc=Kc.navigator,Qc="widget",Zc=(t,e={includeReplay:!0})=>{if(!t.message)throw new Error("Unable to submit feedback with empty message");const n=Yc();if(!n)throw new Error("No client setup, cannot send feedback.");const r=function(t,e={}){const{message:n,name:r,email:s,url:o,source:i,associatedEventId:a}=t,c=Yc(),u={contexts:{feedback:Mc({contact_email:s,name:r,message:n,url:o,source:i,associated_event_id:a})},type:"feedback",level:"info"};return c&&c.emit("beforeSendFeedback",u,e),qc().captureEvent(u,e)}({source:"api",url:Jc(),...t},e);return new Promise(((t,e)=>{const s=setTimeout((()=>e("Unable to determine if Feedback was correctly sent.")),5e3);n.on("afterSendEvent",((n,o)=>{if(n.event_id===r){if(clearTimeout(s),o&&"number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))return 0===o.statusCode?e("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):e("Unable to send Feedback. Invalid response from server.");t(r)}}))}))},tu="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function eu(t,e){return{...t,...e,onFormOpen:()=>{e.onFormOpen&&e.onFormOpen(),t.onFormOpen&&t.onFormOpen()},onFormClose:()=>{e.onFormClose&&e.onFormClose(),t.onFormClose&&t.onFormClose()},onSubmitSuccess:n=>{e.onSubmitSuccess&&e.onSubmitSuccess(n),t.onSubmitSuccess&&t.onSubmitSuccess(n)},onSubmitError:n=>{e.onSubmitError&&e.onSubmitError(n),t.onSubmitError&&t.onSubmitError(n)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted(),t.onFormSubmitted&&t.onFormSubmitted()},themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function nu(t,e){return Object.entries(e).forEach((([e,n])=>{t.setAttributeNS(null,e,n)})),t}const ru="rgba(88, 74, 192, 1)",su={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:ru,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%)"},ou={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:ru,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(41, 35, 47, 0.5)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function iu(t){return`\n  --foreground: ${t.foreground};\n  --background: ${t.background};\n  --accent-foreground: ${t.accentForeground};\n  --accent-background: ${t.accentBackground};\n  --success-color: ${t.successColor};\n  --error-color: ${t.errorColor};\n  --border: ${t.border};\n  --box-shadow: ${t.boxShadow};\n  --outline: ${t.outline};\n  --interactive-filter: ${t.interactiveFilter};\n  `}const au=({lazyLoadIntegration:t,getModalIntegration:e,getScreenshotIntegration:n})=>({id:r="sentry-feedback",showBranding:s=!0,autoInject:o=!0,showEmail:i=!0,showName:a=!0,enableScreenshot:c=!0,useSentryUser:u={email:"email",name:"username"},isNameRequired:l=!1,isEmailRequired:d=!1,colorScheme:p="system",themeLight:h={},themeDark:f={},addScreenshotButtonLabel:m="Add a screenshot",cancelButtonLabel:g="Cancel",confirmButtonLabel:_="Confirm",emailLabel:y="Email",emailPlaceholder:v="your.email@example.org",formTitle:b="Report a Bug",isRequiredLabel:S="(required)",messageLabel:k="Description",messagePlaceholder:w="What's the bug? What did you expect?",nameLabel:x="Name",namePlaceholder:E="Your Name",removeScreenshotButtonLabel:C="Remove screenshot",submitButtonLabel:T="Send Bug Report",successMessageText:I="Thank you for your report!",triggerLabel:O="Report a Bug",onFormOpen:M,onFormClose:R,onSubmitSuccess:N,onSubmitError:A,onFormSubmitted:L}={})=>{const D={id:r,autoInject:o,showBranding:s,isEmailRequired:d,isNameRequired:l,showEmail:i,showName:a,enableScreenshot:c,useSentryUser:u,colorScheme:p,themeDark:f,themeLight:h,triggerLabel:O,cancelButtonLabel:g,submitButtonLabel:T,confirmButtonLabel:_,formTitle:b,emailLabel:y,emailPlaceholder:v,messageLabel:k,messagePlaceholder:w,nameLabel:x,namePlaceholder:E,successMessageText:I,isRequiredLabel:S,addScreenshotButtonLabel:m,removeScreenshotButtonLabel:C,onFormClose:R,onFormOpen:M,onSubmitError:A,onSubmitSuccess:N,onFormSubmitted:L};let P=null,j=[];const F=t=>{if(!P){const e=Gc.createElement("div");e.id=String(t.id),Gc.body.appendChild(e),P=e.attachShadow({mode:"open"}),P.appendChild(function({colorScheme:t,themeDark:e,themeLight:n}){const r=Gc.createElement("style");return r.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  ${iu("dark"===t?{...ou,...e}:{...su,...n})}\n}\n\n${"system"===t?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    ${iu({...ou,...e})}\n  }\n}`:""}\n}\n`,r}(t))}return P},$=async(e,n,r)=>{const s=Yc(),o=s&&s.getIntegrationByName(e);if(o)return o;const i=(n&&n()||await t(r))();return s&&s.addIntegration(i),i},U=async t=>{const r=t.enableScreenshot&&!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Xc.userAgent)&&!!isSecureContext,[s,o]=await Promise.all([$("FeedbackModal",e,"feedbackModalIntegration"),r?$("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):void 0]);if(!s)throw tu&&Oc.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!");return r&&!o&&tu&&Oc.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots."),s.createDialog({options:t,screenshotIntegration:r?o:void 0,sendFeedback:Zc,shadow:F(t)})},B=(t,e={})=>{const n=eu(D,e),r="string"==typeof t?Gc.querySelector(t):"function"==typeof t.addEventListener?t:null;if(!r)throw tu&&Oc.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let s=null;const o=async()=>{s||(s=await U({...n,onFormClose:()=>{s&&s.close(),n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),s.appendToDom(),s.open()};r.addEventListener("click",o);const i=()=>{j=j.filter((t=>t!==i)),s&&s.removeFromDom(),s=null,r.removeEventListener("click",o)};return j.push(i),i},z=(t={})=>{const e=F(D),n=function({triggerLabel:t,shadow:e}){const n=Gc.createElement("button");if(n.type="button",n.className="widget__actor",n.ariaHidden="false",n.ariaLabel=t,n.appendChild(function(){const t=t=>Kc.document.createElementNS("http://www.w3.org/2000/svg",t),e=nu(t("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--foreground)"}),n=nu(t("g"),{clipPath:"url(#clip0_57_80)"}),r=nu(t("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.4556 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"});e.appendChild(n).appendChild(r);const s=t("defs"),o=nu(t("clipPath"),{id:"clip0_57_80"}),i=nu(t("rect"),{width:"20",height:"20",fill:"white"});return o.appendChild(i),s.appendChild(o),e.appendChild(s).appendChild(o).appendChild(i),e}()),t){const e=Gc.createElement("span");e.appendChild(Gc.createTextNode(t)),n.appendChild(e)}const r=function(){const t=Gc.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));\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',t}();return{el:n,appendToDom(){e.appendChild(r),e.appendChild(n)},removeFromDom(){e.removeChild(n),e.removeChild(r)},show(){n.ariaHidden="false"},hide(){n.ariaHidden="true"}}}({triggerLabel:D.triggerLabel,shadow:e}),r=eu(D,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}});return B(n.el,r),n};return{name:"Feedback",setupOnce(){Vc()&&D.autoInject&&z().appendToDom()},attachTo:B,createWidget(t={}){const e=z(eu(D,t));return e.appendToDom(),e},createForm:async(t={})=>U(eu(D,t)),remove(){P&&(P.parentElement&&P.parentElement.remove(),P=null),j.forEach((t=>t())),j=[]}}};function cu(){const t=Yc();return t&&t.getIntegrationByName("Feedback")}var uu,lu,du,pu,hu,fu,mu,gu={},_u=[],yu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vu=Array.isArray;function bu(t,e){for(var n in e)t[n]=e[n];return t}function Su(t){var e=t.parentNode;e&&e.removeChild(t)}function ku(t,e,n){var r,s,o,i={};for(o in e)"key"==o?r=e[o]:"ref"==o?s=e[o]:i[o]=e[o];if(arguments.length>2&&(i.children=arguments.length>3?uu.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===i[o]&&(i[o]=t.defaultProps[o]);return wu(t,i,r,s,null)}function wu(t,e,n,r,s){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++du:s,__i:-1,__u:0};return null==s&&null!=lu.vnode&&lu.vnode(o),o}function xu(t){return t.children}function Eu(t,e){this.props=t,this.context=e}function Cu(t,e){if(null==e)return t.__?Cu(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Cu(t):null}function Tu(t,e,n){var r,s=t.__v,o=s.__e,i=t.__P;if(i)return(r=bu({},s)).__v=s.__v+1,lu.vnode&&lu.vnode(r),$u(i,r,s,t.__n,void 0!==i.ownerSVGElement,32&s.__u?[o]:null,e,null==o?Cu(s):o,!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&Iu(r),r}function Iu(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Iu(t)}}function Ou(t){(!t.__d&&(t.__d=!0)&&pu.push(t)&&!Mu.__r++||hu!==lu.debounceRendering)&&((hu=lu.debounceRendering)||fu)(Mu)}function Mu(){var t,e,n,r=[],s=[];for(pu.sort(mu);t=pu.shift();)t.__d&&(n=pu.length,e=Tu(t,r,s)||e,0===n||pu.length>n?(Uu(r,e,s),s.length=r.length=0,e=void 0,pu.sort(mu)):e&&lu.__c&&lu.__c(e,_u));e&&Uu(r,e,s),Mu.__r=0}function Ru(t,e,n,r,s,o,i,a,c,u,l){var d,p,h,f,m,g=r&&r.__k||_u,_=e.length;for(n.__d=c,Nu(n,e,g),c=n.__d,d=0;d<_;d++)null!=(h=n.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?gu:g[h.__i]||gu,h.__i=d,$u(t,h,p,s,o,i,a,c,u,l),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&zu(p.ref,null,h),l.push(h.ref,h.__c||f,h)),null==m&&null!=f&&(m=f),65536&h.__u||p.__k===h.__k?c=Au(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:f&&(c=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function Nu(t,e,n){var r,s,o,i,a,c=e.length,u=n.length,l=u,d=0;for(t.__k=[],r=0;r<c;r++)null!=(s=t.__k[r]=null==(s=e[r])||"boolean"==typeof s||"function"==typeof s?null:"string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?wu(null,s,null,null,s):vu(s)?wu(xu,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?wu(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=t,s.__b=t.__b+1,a=Lu(s,n,i=r+d,l),s.__i=a,o=null,-1!==a&&(l--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof s.type&&(s.__u|=65536)):a!==i&&(a===i+1?d++:a>i?l>c-i?d+=a-i:d--:d=a<i&&a==i-1?a-i:0,a!==r+d&&(s.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==t.__d&&(t.__d=Cu(o)),Hu(o,o,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==t.__d&&(t.__d=Cu(o)),Hu(o,o))}function Au(t,e,n){var r,s;if("function"==typeof t.type){for(r=t.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=t,e=Au(r[s],e,n));return e}t.__e!=e&&(n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function Lu(t,e,n,r){var s=t.key,o=t.type,i=n-1,a=n+1,c=e[n];if(null===c||c&&s==c.key&&o===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||a<e.length;){if(i>=0){if((c=e[i])&&!(131072&c.__u)&&s==c.key&&o===c.type)return i;i--}if(a<e.length){if((c=e[a])&&!(131072&c.__u)&&s==c.key&&o===c.type)return a;a++}}return-1}function Du(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||yu.test(e)?n:n+"px"}function Pu(t,e,n,r,s){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Du(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Du(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r?n.u=r.u:(n.u=Date.now(),t.addEventListener(e,o?Fu:ju,o)):t.removeEventListener(e,o?Fu:ju,o);else{if(s)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&"role"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,n))}}function ju(t){if(this.l){var e=this.l[t.type+!1];if(t.t){if(t.t<=e.u)return}else t.t=Date.now();return e(lu.event?lu.event(t):t)}}function Fu(t){if(this.l)return this.l[t.type+!0](lu.event?lu.event(t):t)}function $u(t,e,n,r,s,o,i,a,c,u){var l,d,p,h,f,m,g,_,y,v,b,S,k,w,x,E=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=e.__e=n.__e]),(l=lu.__b)&&l(e);t:if("function"==typeof E)try{if(_=e.props,y=(l=E.contextType)&&r[l.__c],v=l?y?y.props.value:l.__:r,n.__c?g=(d=e.__c=n.__c).__=d.__E:("prototype"in E&&E.prototype.render?e.__c=d=new E(_,v):(e.__c=d=new Eu(_,v),d.constructor=E,d.render=qu),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=bu({},d.__s)),bu(d.__s,E.getDerivedStateFromProps(_,d.__s))),h=d.props,f=d.state,d.__v=e,p)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&_!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,v),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,v)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&i.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,v),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,m)}))}if(d.context=v,d.props=_,d.__P=t,d.__e=!1,S=lu.__r,k=0,"prototype"in E&&E.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,S&&S(e),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=bu(bu({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(h,f)),Ru(t,vu(x=null!=l&&l.type===xu&&null==l.key?l.props.children:l)?x:[x],e,n,r,s,o,i,a,c,u),d.base=e.__e,e.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(t){e.__v=null,c||null!=o?(e.__e=a,e.__u|=c?160:32,o[o.indexOf(a)]=null):(e.__e=n.__e,e.__k=n.__k),lu.__e(t,e,n)}else null==o&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Bu(n.__e,e,n,r,s,o,i,c,u);(l=lu.diffed)&&l(e)}function Uu(t,e,n){for(var r=0;r<n.length;r++)zu(n[r],n[++r],n[++r]);lu.__c&&lu.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){lu.__e(t,e.__v)}}))}function Bu(t,e,n,r,s,o,i,a,c){var u,l,d,p,h,f,m,g=n.props,_=e.props,y=e.type;if("svg"===y&&(s=!0),null!=o)for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){t=h,o[u]=null;break}if(null==t){if(null===y)return document.createTextNode(_);t=s?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),o=null,a=!1}if(null===y)g===_||a&&t.data===_||(t.data=_);else{if(o=o&&uu.call(t.childNodes),g=n.props||gu,!a&&null!=o)for(g={},u=0;u<t.attributes.length;u++)g[(h=t.attributes[u]).name]=h.value;for(u in g)h=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=h:"key"===u||u in _||Pu(t,u,null,h,s));for(u in _)h=_[u],"children"==u?p=h:"dangerouslySetInnerHTML"==u?l=h:"value"==u?f=h:"checked"==u?m=h:"key"===u||a&&"function"!=typeof h||g[u]===h||Pu(t,u,h,g[u],s);if(l)a||d&&(l.__html===d.__html||l.__html===t.innerHTML)||(t.innerHTML=l.__html),e.__k=[];else if(d&&(t.innerHTML=""),Ru(t,vu(p)?p:[p],e,n,r,s&&"foreignObject"!==y,o,i,o?o[0]:n.__k&&Cu(n,0),a,c),null!=o)for(u=o.length;u--;)null!=o[u]&&Su(o[u]);a||(u="value",void 0!==f&&(f!==t[u]||"progress"===y&&!f||"option"===y&&f!==g[u])&&Pu(t,u,f,g[u],!1),u="checked",void 0!==m&&m!==t[u]&&Pu(t,u,m,g[u],!1))}return t}function zu(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){lu.__e(t,n)}}function Hu(t,e,n){var r,s;if(lu.unmount&&lu.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||zu(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){lu.__e(t,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(s=0;s<r.length;s++)r[s]&&Hu(r[s],e,n||"function"!=typeof t.type);n||null==t.__e||Su(t.__e),t.__=t.__e=t.__d=void 0}function qu(t,e,n){return this.constructor(t,n)}uu=_u.slice,lu={__e:function(t,e,n,r){for(var s,o,i;e=e.__;)if((s=e.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(t)),i=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(t,r||{}),i=s.__d),i)return s.__E=s}catch(e){t=e}throw t}},du=0,Eu.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=bu({},this.state),"function"==typeof t&&(t=t(bu({},n),this.props)),t&&bu(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),Ou(this))},Eu.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ou(this))},Eu.prototype.render=xu,pu=[],fu="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,mu=function(t,e){return t.__v.__b-e.__v.__b},Mu.__r=0;var Yu,Wu,Ju,Vu,Ku=0,Gu=[],Xu=[],Qu=lu,Zu=Qu.__b,tl=Qu.__r,el=Qu.diffed,nl=Qu.__c,rl=Qu.unmount,sl=Qu.__;function ol(t,e){Qu.__h&&Qu.__h(Wu,t,Ku||e),Ku=0;var n=Wu.__H||(Wu.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:Xu}),n.__[t]}function il(t){return Ku=1,function(t,e,n){var r=ol(Yu++,2);if(r.t=t,!r.__c&&(r.__=[_l(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Wu,!Wu.u)){var s=function(t,e,n){if(!r.__c.__H)return!0;var s=r.__c.__H.__.filter((function(t){return!!t.__c}));if(s.every((function(t){return!t.__N})))return!o||o.call(this,t,e,n);var i=!1;return s.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&r.__c.props===t)&&(!o||o.call(this,t,e,n))};Wu.u=!0;var o=Wu.shouldComponentUpdate,i=Wu.componentWillUpdate;Wu.componentWillUpdate=function(t,e,n){if(this.__e){var r=o;o=void 0,s(t,e,n),o=r}i&&i.call(this,t,e,n)},Wu.shouldComponentUpdate=s}return r.__N||r.__}(_l,t)}function al(t,e){var n=ol(Yu++,3);!Qu.__s&&gl(n.__H,e)&&(n.__=t,n.i=e,Wu.__H.__h.push(n))}function cl(t){return Ku=5,ul((function(){return{current:t}}),[])}function ul(t,e){var n=ol(Yu++,7);return gl(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function ll(t,e){return Ku=8,ul((function(){return t}),e)}function dl(){for(var t;t=Gu.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(fl),t.__H.__h.forEach(ml),t.__H.__h=[]}catch(e){t.__H.__h=[],Qu.__e(e,t.__v)}}Qu.__b=function(t){Wu=null,Zu&&Zu(t)},Qu.__=function(t,e){e.__k&&e.__k.__m&&(t.__m=e.__k.__m),sl&&sl(t,e)},Qu.__r=function(t){tl&&tl(t),Yu=0;var e=(Wu=t.__c).__H;e&&(Ju===Wu?(e.__h=[],Wu.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=Xu,t.__N=t.i=void 0}))):(e.__h.forEach(fl),e.__h.forEach(ml),e.__h=[],Yu=0)),Ju=Wu},Qu.diffed=function(t){el&&el(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Gu.push(e)&&Vu===Qu.requestAnimationFrame||((Vu=Qu.requestAnimationFrame)||hl)(dl)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==Xu&&(t.__=t.__V),t.i=void 0,t.__V=Xu}))),Ju=Wu=null},Qu.__c=function(t,e){e.some((function(t){try{t.__h.forEach(fl),t.__h=t.__h.filter((function(t){return!t.__||ml(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Qu.__e(n,t.__v)}})),nl&&nl(t,e)},Qu.unmount=function(t){rl&&rl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{fl(t)}catch(t){e=t}})),n.__H=void 0,e&&Qu.__e(e,n.__v))};var pl="function"==typeof requestAnimationFrame;function hl(t){var e,n=function(){clearTimeout(r),pl&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);pl&&(e=requestAnimationFrame(n))}function fl(t){var e=Wu,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Wu=e}function ml(t){var e=Wu;t.__c=t.__(),Wu=e}function gl(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function _l(t,e){return"function"==typeof e?e(t):e}const yl="http://www.w3.org/2000/svg";function vl(){const t=t=>Gc.createElementNS(yl,t),e=nu(t("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=nu(t("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 e.appendChild(n),e}const bl="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function Sl({options:t}){const e=ul((()=>({__html:vl().outerHTML})),[]);return ku("h2",{class:"dialog__header",__self:this,__source:{fileName:bl,lineNumber:16}},t.formTitle,t.showBranding?ku("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:e,__self:this,__source:{fileName:bl,lineNumber:19}}):null)}const kl="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function wl(t,e){const n=t.get(e);return"string"==typeof n?n.trim():""}function xl({options:t,defaultEmail:e,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:o,onSubmitError:i,showEmail:a,showName:c,screenshotInput:u}){const{addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:f,isEmailRequired:m,isNameRequired:g,messageLabel:_,messagePlaceholder:y,nameLabel:v,namePlaceholder:b,submitButtonLabel:S,isRequiredLabel:k}=t,[w,x]=il(null),[E,C]=il(!1),T=u&&u.input,[I,O]=il(null),M=ll((t=>{O(t),C(!1)}),[]),R=ll((t=>{const e=function(t,e){const n=[];return e.isNameRequired&&!t.name&&n.push(e.nameLabel),e.isEmailRequired&&!t.email&&n.push(e.emailLabel),t.message||n.push(e.messageLabel),n}(t,{emailLabel:h,isEmailRequired:m,isNameRequired:g,messageLabel:_,nameLabel:v});return e.length>0?x(`Please enter in the following required fields: ${e.join(", ")}`):x(null),0===e.length}),[h,m,g,_,v]),N=ll((async t=>{try{if(t.preventDefault(),!(t.target instanceof HTMLFormElement))return;const e=new FormData(t.target),n=await(u&&E?u.value():void 0),r={name:wl(e,"name"),email:wl(e,"email"),message:wl(e,"message"),attachments:n?[n]:void 0};if(!R(r))return;try{await s({name:r.name,email:r.email,message:r.message,source:Qc},{attachments:r.attachments}),o(r)}catch(t){tu&&Oc.error(t),x("There was a problem submitting feedback, please wait and try again."),i(t)}}catch(t){}}),[u&&E,o,i]);return ku("form",{class:"form",onSubmit:N,__self:this,__source:{fileName:kl,lineNumber:142}},T&&E?ku(T,{onError:M,__self:this,__source:{fileName:kl,lineNumber:144}}):null,ku("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:kl,lineNumber:147}},ku("div",{class:"form__top",__self:this,__source:{fileName:kl,lineNumber:148}},w?ku("div",{class:"form__error-container",__self:this,__source:{fileName:kl,lineNumber:149}},w):null,c?ku("label",{for:"name",class:"form__label",__self:this,__source:{fileName:kl,lineNumber:152}},ku(El,{label:v,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:kl,lineNumber:153}}),ku("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:b,required:g,type:"text",__self:this,__source:{fileName:kl,lineNumber:154}})):ku("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:kl,lineNumber:165}}),a?ku("label",{for:"email",class:"form__label",__self:this,__source:{fileName:kl,lineNumber:169}},ku(El,{label:h,isRequiredLabel:k,isRequired:m,__self:this,__source:{fileName:kl,lineNumber:170}}),ku("input",{class:"form__input",defaultValue:e,id:"email",name:"email",placeholder:f,required:m,type:"email",__self:this,__source:{fileName:kl,lineNumber:171}})):ku("input",{"aria-hidden":!0,value:e,name:"email",type:"hidden",__self:this,__source:{fileName:kl,lineNumber:182}}),ku("label",{for:"message",class:"form__label",__self:this,__source:{fileName:kl,lineNumber:185}},ku(El,{label:_,isRequiredLabel:k,isRequired:!0,__self:this,__source:{fileName:kl,lineNumber:186}}),ku("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:y,required:!0,rows:5,__self:this,__source:{fileName:kl,lineNumber:187}})),T?ku("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:kl,lineNumber:199}},ku("button",{class:"btn btn--default",type:"button",onClick:()=>{O(null),C((t=>!t))},__self:this,__source:{fileName:kl,lineNumber:200}},E?d:l),I?ku("div",{class:"form__error-container",__self:this,__source:{fileName:kl,lineNumber:210}},I.message):null):null),ku("div",{class:"btn-group",__self:this,__source:{fileName:kl,lineNumber:214}},ku("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:kl,lineNumber:215}},S),ku("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:kl,lineNumber:218}},p))))}function El({label:t,isRequired:e,isRequiredLabel:n}){return ku("span",{class:"form__label__text",__self:this,__source:{fileName:kl,lineNumber:233}},t,e&&ku("span",{class:"form__label__text--required",__self:this,__source:{fileName:kl,lineNumber:235}},n))}const Cl=16,Tl=17,Il="http://www.w3.org/2000/svg";function Ol(){const t=t=>Kc.document.createElementNS(Il,t),e=nu(t("svg"),{width:`${Cl}`,height:`${Tl}`,viewBox:`0 0 ${Cl} ${Tl}`,fill:"inherit"}),n=nu(t("g"),{clipPath:"url(#clip0_57_156)"}),r=nu(t("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"}),s=nu(t("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"});e.appendChild(n).append(s,r);const o=t("defs"),i=nu(t("clipPath"),{id:"clip0_57_156"}),a=nu(t("rect"),{width:`${Cl}`,height:`${Cl}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),e.appendChild(o).appendChild(i).appendChild(a),e}const Ml="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function Rl({open:t,onFormSubmitted:e,...n}){const r=n.options,s=ul((()=>({__html:Ol().outerHTML})),[]),[o,i]=il(null),a=ll((()=>{o&&(clearTimeout(o),i(null)),e()}),[o]),c=ll((t=>{n.onSubmitSuccess(t),i(setTimeout((()=>{e(),i(null)}),5e3))}),[e]);return ku(xu,{__self:this,__source:{fileName:Ml,lineNumber:47}},o?ku("div",{class:"success__position",onClick:a,__self:this,__source:{fileName:Ml,lineNumber:49}},ku("div",{class:"success__content",__self:this,__source:{fileName:Ml,lineNumber:50}},r.successMessageText,ku("span",{class:"success__icon",dangerouslySetInnerHTML:s,__self:this,__source:{fileName:Ml,lineNumber:52}}))):ku("dialog",{class:"dialog",onClick:r.onFormClose,open:t,__self:this,__source:{fileName:Ml,lineNumber:56}},ku("div",{class:"dialog__position",__self:this,__source:{fileName:Ml,lineNumber:57}},ku("div",{class:"dialog__content",onClick:t=>{t.stopPropagation()},__self:this,__source:{fileName:Ml,lineNumber:58}},ku(Sl,{options:r,__self:this,__source:{fileName:Ml,lineNumber:65}}),ku(xl,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:Ml,lineNumber:66}})))))}const Nl=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:t,screenshotIntegration:e,sendFeedback:n,shadow:r})=>{const s=r,o=t.useSentryUser,i=function(){const t=qc().getUser(),e=Hc(yc()).getIsolationScope().getUser(),n=_c("globalScope",(()=>new Pc)).getUser();return t&&Object.keys(t).length?t:e&&Object.keys(e).length?e:n}(),a=Gc.createElement("div"),c=function(){const t=Gc.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));\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.dialog__header {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  font-weight: var(--dialog-header-weight, 600);\n  margin: 0;\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__right {\n  width: var(--form-width, 272px);\n  display: flex;\n  overflow: auto;\n  flex-direction: column;\n  justify-content: space-between;\n  gap: 20px;\n  flex: 1 0 auto;\n}\n\n@media (max-width: 600px) {\n  .form__right {\n    width: auto;\n  }\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-foreground);\n  fill: var(--error-foreground);\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%);\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",t}();let u="";const l={get el(){return a},appendToDom(){s.contains(c)||s.contains(a)||(s.appendChild(c),s.appendChild(a))},removeFromDom(){s.removeChild(a),s.removeChild(c)},open(){p(!0),t.onFormOpen&&t.onFormOpen(),u=Gc.body.style.overflow,Gc.body.style.overflow="hidden"},close(){p(!1),Gc.body.style.overflow=u}},d=e&&e.createInput(ku,l,t),p=e=>{!function(t,e,n){var r,s,o,i;lu.__&&lu.__(t,e),s=(r=!1)?null:e.__k,o=[],i=[],$u(e,t=e.__k=ku(xu,null,[t]),s||gu,gu,void 0!==e.ownerSVGElement,s?null:e.firstChild?uu.call(e.childNodes):null,o,s?s.__e:e.firstChild,r,i),t.__d=void 0,Uu(o,t,i)}(ku(Rl,{options:t,screenshotInput:d,showName:t.showName||t.isNameRequired,showEmail:t.showEmail||t.isEmailRequired,defaultName:o&&i&&i[o.name]||"",defaultEmail:o&&i&&i[o.email]||"",onFormClose:()=>{p(!1),t.onFormClose&&t.onFormClose()},onSubmit:n,onSubmitSuccess:e=>{p(!1),t.onSubmitSuccess&&t.onSubmitSuccess(e)},onSubmitError:e=>{t.onSubmitError&&t.onSubmitError(e)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted()},open:e,__self:void 0,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:72}}),a)};return l}});function Al(){const t=Gc.createElement("style"),e="#1A141F",n="#302735";return t.textContent=`\n.editor {\n  padding: 10px;\n  padding-top: 65px;\n  padding-bottom: 65px;\n  flex-grow: 1;\n\n  background-color: ${e};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${e} 8px,\n      ${e} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${n} 15px,\n      ${n} 16px\n    );\n}\n\n.editor__canvas-container {\n  width: 100%;\n  height: 100%;\n  position: relative;\n}\n\n.editor__canvas-container canvas {\n  width: 100%;\n  height: 100%;\n  object-fit: contain;\n}\n\n.editor__crop-btn-group {\n  padding: 8px;\n  gap: 8px;\n  border-radius: var(--menu-border-radius, 6px);\n  background: var(--button-primary-background, var(--background));\n  width: 175px;\n  position: absolute;\n}\n\n.editor__crop-corner {\n  width: 30px;\n  height: 30px;\n  position: absolute;\n  background: none;\n  border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n  cursor: nwse-resize;\n  border-right: none;\n  border-bottom: none;\n}\n.editor__crop-corner--top-right {\n  cursor: nesw-resize;\n  border-left: none;\n  border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n  cursor: nesw-resize;\n  border-right: none;\n  border-top: none;\n}\n.editor__crop-corner--bottom-right {\n  cursor: nwse-resize;\n  border-left: none;\n  border-top: none;\n}\n`,t}const Ll="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",Dl=33,Pl=Kc.devicePixelRatio,jl=t=>({x:Math.min(t.startX,t.endX),y:Math.min(t.startY,t.endY),width:Math.abs(t.startX-t.endX),height:Math.abs(t.startY-t.endY)}),Fl=t=>{const e=t.clientHeight,n=t.clientWidth,r=t.width/t.height;let s=e*r,o=e;s>n&&(s=n,o=n/r);const i=(n-s)/2,a=(e-o)/2;return{startX:i,startY:a,endX:s+i,endY:o+a}};function $l({imageBuffer:t,dialog:e,options:n}){return function({onError:r}){const s=ul((()=>({__html:Al().innerText})),[]),o=cl(null),i=cl(null),a=cl(null),[c,u]=il({startX:0,startY:0,endX:0,endY:0}),[l,d]=il(!1);function p(){const e=a.current,n=jl(Fl(t));if(e){e.width=n.width*Pl,e.height=n.height*Pl,e.style.width=`${n.width}px`,e.style.height=`${n.height}px`;const t=e.getContext("2d");t&&t.scale(Pl,Pl)}const r=i.current;r&&(r.style.width=`${n.width}px`,r.style.height=`${n.height}px`,r.style.left=`${n.x}px`,r.style.top=`${n.y}px`),u({startX:0,startY:0,endX:n.width,endY:n.height})}function h(t,e){d(!1);const n=f(e),r=()=>{Gc.removeEventListener("mousemove",n),Gc.removeEventListener("mouseup",r),d(!0)};Gc.addEventListener("mouseup",r),Gc.addEventListener("mousemove",n)}al((()=>{Kc.addEventListener("resize",p,!1)}),[]),al((()=>{const e=a.current;if(!e)return;const n=e.getContext("2d");if(!n)return;const r=jl(Fl(t)),s=jl(c);n.clearRect(0,0,r.width,r.height),n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,0,r.width,r.height),n.clearRect(s.x,s.y,s.width,s.height),n.strokeStyle="#ffffff",n.lineWidth=3,n.strokeRect(s.x+1,s.y+1,s.width-2,s.height-2),n.strokeStyle="#000000",n.lineWidth=1,n.strokeRect(s.x+3,s.y+3,s.width-6,s.height-6)}),[c]);const f=ll((t=>function(e){if(!a.current)return;const n=a.current,r=n.getBoundingClientRect(),s=e.clientX-r.x,o=e.clientY-r.y;switch(t){case"top-left":u((t=>({...t,startX:Math.min(Math.max(0,s),t.endX-Dl),startY:Math.min(Math.max(0,o),t.endY-Dl)})));break;case"top-right":u((t=>({...t,endX:Math.max(Math.min(s,n.width/Pl),t.startX+Dl),startY:Math.min(Math.max(0,o),t.endY-Dl)})));break;case"bottom-left":u((t=>({...t,startX:Math.min(Math.max(0,s),t.endX-Dl),endY:Math.max(Math.min(o,n.height/Pl),t.startY+Dl)})));break;case"bottom-right":u((t=>({...t,endX:Math.max(Math.min(s,n.width/Pl),t.startX+Dl),endY:Math.max(Math.min(o,n.height/Pl),t.startY+Dl)})))}}),[]);return(({onBeforeScreenshot:t,onScreenshot:e,onAfterScreenshot:n,onError:r})=>{al((()=>{(async()=>{t();const r=await Xc.mediaDevices.getDisplayMedia({video:{width:Kc.innerWidth*Kc.devicePixelRatio,height:Kc.innerHeight*Kc.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),s=Gc.createElement("video");await new Promise(((t,n)=>{s.srcObject=r,s.onloadedmetadata=()=>{e(s),r.getTracks().forEach((t=>t.stop())),t()},s.play().catch(n)})),n()})().catch(r)}),[])})({onBeforeScreenshot:ll((()=>{e.el.style.display="none"}),[]),onScreenshot:ll((e=>{const n=t.getContext("2d");if(!n)throw new Error("Could not get canvas context");t.width=e.videoWidth,t.height=e.videoHeight,n.drawImage(e,0,0)}),[t]),onAfterScreenshot:ll((()=>{e.el.style.display="block";const n=o.current;n&&n.appendChild(t),p()}),[]),onError:ll((t=>{e.el.style.display="block",r(t)}),[])}),ku("div",{class:"editor",__self:this,__source:{fileName:Ll,lineNumber:249}},ku("style",{dangerouslySetInnerHTML:s,__self:this,__source:{fileName:Ll,lineNumber:250}}),ku("div",{class:"editor__canvas-container",ref:o,__self:this,__source:{fileName:Ll,lineNumber:251}},ku("div",{class:"editor__crop-container",style:{position:"absolute"},ref:i,__self:this,__source:{fileName:Ll,lineNumber:252}},ku("canvas",{style:{position:"absolute"},ref:a,__self:this,__source:{fileName:Ll,lineNumber:253}}),ku(Ul,{left:c.startX-3,top:c.startY-3,onGrabButton:h,corner:"top-left",__self:this,__source:{fileName:Ll,lineNumber:254}}),ku(Ul,{left:c.endX-30+3,top:c.startY-3,onGrabButton:h,corner:"top-right",__self:this,__source:{fileName:Ll,lineNumber:260}}),ku(Ul,{left:c.startX-3,top:c.endY-30+3,onGrabButton:h,corner:"bottom-left",__self:this,__source:{fileName:Ll,lineNumber:266}}),ku(Ul,{left:c.endX-30+3,top:c.endY-30+3,onGrabButton:h,corner:"bottom-right",__self:this,__source:{fileName:Ll,lineNumber:272}}),ku("div",{style:{left:Math.max(0,c.endX-191),top:Math.max(0,c.endY+8),display:l?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:Ll,lineNumber:278}},ku("button",{onClick:t=>{t.preventDefault(),a.current&&u({startX:0,startY:0,endX:a.current.width/Pl,endY:a.current.height/Pl}),d(!1)},class:"btn btn--default",__self:this,__source:{fileName:Ll,lineNumber:286}},n.cancelButtonLabel),ku("button",{onClick:e=>{e.preventDefault(),function(){const e=Gc.createElement("canvas"),n=jl(Fl(t)),r=jl(c);e.width=r.width,e.height=r.height;const s=e.getContext("2d");s&&t&&s.drawImage(t,r.x/n.width*t.width,r.y/n.height*t.height,r.width/n.width*t.width,r.height/n.height*t.height,0,0,r.width,r.height);const o=t.getContext("2d");o&&(o.clearRect(0,0,t.width,t.height),t.width=e.width,t.height=e.height,o.drawImage(e,0,0),p())}(),d(!1)},class:"btn btn--primary",__self:this,__source:{fileName:Ll,lineNumber:303}},n.confirmButtonLabel)))))}}function Ul({top:t,left:e,corner:n,onGrabButton:r}){return ku("button",{class:`editor__crop-corner editor__crop-corner--${n} `,style:{top:t,left:e},onMouseDown:t=>{t.preventDefault(),r(t,n)},onClick:t=>{t.preventDefault()},__self:this,__source:{fileName:Ll,lineNumber:333}})}const Bl=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:(t,e,n)=>{const r=Gc.createElement("canvas");return{input:$l({h:t,imageBuffer:r,dialog:e,options:n}),value:async()=>{const t=await new Promise((t=>{r.toBlob(t,"image/png")}));if(t)return{data:new Uint8Array(await t.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),zl=au({lazyLoadIntegration:ue}),Hl=au({lazyLoadIntegration:ue,getModalIntegration:()=>Nl,getScreenshotIntegration:()=>Bl});var ql=n(26715);const Yl={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function Wl(t){const{traceFetch:e,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:o,tracePropagationTargets:i}={traceFetch:Yl.traceFetch,traceXHR:Yl.traceXHR,...t},a="function"==typeof r?r:t=>!0,c=t=>function(t,e){const n=Kt.jf.location&&Kt.jf.location.href;if(n){let r,s;try{r=new URL(t,n),s=new URL(n).origin}catch(t){return!1}const o=r.origin===s;return e?(0,w.Xr)(r.toString(),e)||o&&(0,w.Xr)(r.pathname,e):o}{const n=!!t.match(/^\/(?!\/)/);return e?(0,w.Xr)(t,e):n}}(t,i),u={};e&&(0,ge.u)((t=>{const e=function(t,e,n,r,o="auto.http.browser"){if(!t.fetchData)return;const i=A()&&e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(function(t,e){if(e.response){(0,f.N8)(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const e=parseInt(n);e>0&&t.setAttribute("http.response_content_length",e)}}else e.error&&t.setStatus({code:f.TJ,message:"internal_error"});t.end()}(n,t),delete r[e]))}const a=(0,x.o5)(),c=(0,x.KU)(),{method:u,url:l}=t.fetchData,d=function(t){try{return new URL(t).href}catch(t){return}}(l),p=d?(0,xe.Dl)(d).host:void 0,m=!!(0,h.Bk)(),g=i&&m?Q({name:`${u} ${l}`,attributes:{url:l,type:"fetch","http.method":u,"http.url":d,"server.address":p,[s.JD]:o,[s.uT]:"http.client"}}):new j;if(t.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(t.fetchData.url)&&c){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,s){const o=(0,x.rm)(),{traceId:i,spanId:a,sampled:c,dsc:u}={...o.getPropagationContext(),...n.getPropagationContext()},l=s?(0,h.Qh)(s):(0,I.TC)(i,a,c),d=(0,ql.De)(u||(s?(0,D.k1)(s):(0,D.lF)(i,e))),p=r.headers||("undefined"!=typeof Request&&(0,R.tH)(t,Request)?t.headers:void 0);if(p){if("undefined"!=typeof Headers&&(0,R.tH)(p,Headers)){const t=new Headers(p);return t.append("sentry-trace",l),d&&t.append(ql.hF,d),t}if(Array.isArray(p)){const t=[...p,["sentry-trace",l]];return d&&t.push([ql.hF,d]),t}{const t="baggage"in p?p.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),d&&e.push(d),{...p,"sentry-trace":l,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":l,baggage:d}}(e,c,a,n,A()&&m?g:void 0)}return g}(t,a,c,u);if(e){const n=Kl(t.fetchData.url),r=n?(0,xe.Dl)(n).host:void 0;e.setAttributes({"http.url":n,"server.address":r})}o&&e&&Jl(e)})),n&&(0,fe.Mn)((t=>{const e=function(t,e,n,r){const o=t.xhr,i=o&&o[fe.Er];if(!o||o.__sentry_own_request__||!i)return;const a=A()&&e(i.url);if(t.endTimestamp&&a){const t=o.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&void 0!==i.status_code&&((0,f.N8)(e,i.status_code),e.end(),delete r[t]))}const c=Kl(i.url),u=c?(0,xe.Dl)(c).host:void 0,l=!!(0,h.Bk)(),d=a&&l?Q({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":c,url:i.url,"server.address":u,[s.JD]:"auto.http.browser",[s.uT]:"http.client"}}):new j;o.__sentry_xhr_span_id__=d.spanContext().spanId,r[o.__sentry_xhr_span_id__]=d;const p=(0,x.KU)();return o.setRequestHeader&&n(i.url)&&p&&function(t,e,n){const r=(0,x.o5)(),s=(0,x.rm)(),{traceId:o,spanId:i,sampled:a,dsc:c}={...s.getPropagationContext(),...r.getPropagationContext()};!function(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader(ql.hF,n)}catch(t){}}(t,n&&A()?(0,h.Qh)(n):(0,I.TC)(o,i,a),(0,ql.De)(c||(n?(0,D.k1)(n):(0,D.lF)(o,e))))}(o,p,A()&&l?d:void 0),d}(t,a,c,u);o&&e&&Jl(e)}))}function Jl(t){const{url:e}=(0,h.et)(t).data||{};if(!e||"string"!=typeof e)return;const n=Qr("resource",(({entries:r})=>{r.forEach((r=>{if(function(t){return"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)}(r)&&r.name.endsWith(e)){const e=function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const s of t){if("/"===s){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),F.k3?[...r,["http.request.redirect_start",Vl(t.redirectStart)],["http.request.fetch_start",Vl(t.fetchStart)],["http.request.domain_lookup_start",Vl(t.domainLookupStart)],["http.request.domain_lookup_end",Vl(t.domainLookupEnd)],["http.request.connect_start",Vl(t.connectStart)],["http.request.secure_connection_start",Vl(t.secureConnectionStart)],["http.request.connection_end",Vl(t.connectEnd)],["http.request.request_start",Vl(t.requestStart)],["http.request.response_start",Vl(t.responseStart)],["http.request.response_end",Vl(t.responseEnd)]]:r}(r);e.forEach((e=>t.setAttribute(...e))),setTimeout(n)}}))}))}function Vl(t=0){return((F.k3||performance.timeOrigin)+t)/1e3}function Kl(t){try{return new URL(t,Kt.jf.location.origin).href}catch(t){return}}var Gl=n(85906),Xl=n(36584),Ql=n(10154);function Zl(){return td(Ql.O),Ql.O}function td(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}var ed=n(51513),nd=n(83261);const rd="_sentrySpan";function sd(t,e){e?(0,Gl.my)(t,rd,e):delete t[rd]}function od(t){return t[rd]}class id{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=cd()}clone(){const t=new id;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,sd(t,od(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,Xl.zf)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,nd.eJ)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof ad?[e.getScopeData(),e.getRequestSession()]:(0,ed.Qd)(e)?[t,t.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,sd(this,void 0),this._attachments=[],this._propagationContext=cd(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:(0,Xl.lu)(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:od(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:(0,nd.eJ)();if(!this._client)return ir.vF.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:(0,nd.eJ)();if(!this._client)return ir.vF.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,nd.eJ)();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(ir.vF.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const ad=id;function cd(){return{traceId:(0,nd.eJ)(),spanId:(0,nd.eJ)().substring(16)}}function ud(){return gd(Zl()).getCurrentScope()}function ld(){return ud().getClient()}class dd{constructor(t,e){let n,r;n=t||new ad,r=e||new ad,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return(0,ed.Qg)(n)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function pd(){const t=td(Zl());return t.hub||(t.hub=new dd((0,Ql.B)("defaultCurrentScope",(()=>new ad)),(0,Ql.B)("defaultIsolationScope",(()=>new ad)))),t.hub}function hd(t){return pd().withScope(t)}function fd(t,e){const n=pd();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function md(t){return pd().withScope((()=>t(pd().getIsolationScope())))}function gd(t){const e=td(t);return e.acs?e.acs:{withIsolationScope:md,withScope:hd,withSetScope:fd,withSetIsolationScope:(t,e)=>md(e),getCurrentScope:()=>pd().getScope(),getIsolationScope:()=>pd().getIsolationScope()}}let _d;function yd(t){const e=function(t){return _d?_d.get(t):void 0}(t);if(!e)return;const n={};for(const[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push((0,Gl.Ce)(r));return n}const vd="sentry.source",bd="sentry.sample_rate",Sd="sentry.op",kd="sentry.origin",wd="sentry.measurement_unit",xd="sentry.measurement_value",Ed="sentry.exclusive_time",Cd=0,Td=1,Id=1;function Od(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a}=Nd(t);return(0,Gl.Ce)({parent_span_id:o,span_id:e,trace_id:n,data:r,op:s,status:i,origin:a})}function Md(t){return"number"==typeof t?Rd(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Rd(t.getTime()):(0,Xl.zf)()}function Rd(t){return t>9999999999?t/1e3:t}function Nd(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=t;return(0,Gl.Ce)({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Md(s),timestamp:Md(i)||void 0,status:Ld(c),op:r[Sd],origin:r[kd],_metrics_summary:yd(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function Ad(t){const{traceFlags:e}=t.spanContext();return e===Id}function Ld(t){if(t&&t.code!==Cd)return t.code===Td?"ok":t.message||"unknown_error"}const Dd="_sentryChildSpans",Pd="_sentryRootSpan";function jd(t,e){const n=t[Pd]||t;(0,Gl.my)(e,Pd,n),t[Dd]&&t[Dd].size<1e3?t[Dd].add(e):(0,Gl.my)(t,Dd,new Set([e]))}function Fd(t){return t[Pd]||t}function $d(){const t=gd(Zl());return t.getActiveSpan?t.getActiveSpan():od(ud())}function Ud(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=t||function(){const t=ld();return t&&t.getOptions()}();return!!e&&(e.enableTracing||"tracesSampleRate"in e||"tracesSampler"in e)}const Bd="production",zd="_frozenDsc";function Hd(t,e){const n=t;(0,Gl.my)(n,zd,e)}function qd(t){const e=ld();if(!e)return{};const n=function(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=(0,Gl.Ce)({environment:n.environment||Bd,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}(Nd(t).trace_id||"",e),r=Fd(t);if(!r)return n;const s=r[zd];if(s)return s;const o=Nd(r),i=o.data||{},a=i[bd];null!=a&&(n.sample_rate=`${a}`);const c=i[vd];return c&&"url"!==c&&(n.transaction=o.description),n.sampled=String(Ad(r)),e.emit("createDsc",n),n}const Yd="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;class Wd{constructor(t={}){this._traceId=t.traceId||(0,nd.eJ)(),this._spanId=t.spanId||(0,nd.eJ)().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(t){}setAttribute(t,e){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,e,n){return this}}function Jd(t){return[{type:"span"},t]}function Vd(t){if(!t||0===t.length)return;const e={};return t.forEach((t=>{const n=t.attributes||{},r=n[wd],s=n[xd];"string"==typeof r&&"number"==typeof s&&(e[t.name]={value:s,unit:r})})),e}const Kd="_sentryScope",Gd="_sentryIsolationScope";function Xd(t){return{scope:t[Kd],isolationScope:t[Gd]}}class Qd{constructor(t={}){this._traceId=t.traceId||(0,nd.eJ)(),this._spanId=t.spanId||(0,nd.eJ)().substring(16),this._startTime=t.startTimestamp||(0,Xl.zf)(),this._attributes={},this.setAttributes({[kd]:"manual",[Sd]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:t,_traceId:e,_sampled:n}=this;return{spanId:t,traceId:e,traceFlags:n?Id:0}}setAttribute(t,e){void 0===e?delete this._attributes[t]:this._attributes[t]=e}setAttributes(t){Object.keys(t).forEach((e=>this.setAttribute(e,t[e])))}updateStartTime(t){this._startTime=Md(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this}end(t){this._endTime||(this._endTime=Md(t),function(t){if(!Yd)return;const{description:e="< unknown name >",op:n="< unknown op >"}=Nd(t),{spanId:r}=t.spanContext(),s=`[Tracing] Finishing "${n}" ${Fd(t)===t?"root ":""}span "${e}" with ID ${r}`;ir.vF.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return(0,Gl.Ce)({data:this._attributes,description:this._name,op:this._attributes[Sd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Ld(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[kd],_metrics_summary:yd(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[Ed],measurements:Vd(this._events),is_segment:this._isStandaloneSpan&&Fd(this)===this||void 0,segment_id:this._isStandaloneSpan?Fd(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,e,n){Yd&&ir.vF.log("[Tracing] Adding an event to span:",t);const r=Zd(e)?e:n||(0,Xl.zf)(),s=Zd(e)?{}:e||{},o={name:t,time:Md(r),attributes:s};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=ld();if(t&&t.emit("spanEnd",this),!this._isStandaloneSpan&&this!==Fd(this))return;if(this._isStandaloneSpan)return void function(t){const e=ld();if(!e)return;const n=t[1];if(!n||0===n.length)return void e.recordDroppedEvent("before_send","span");const r=e.getTransport();r&&r.send(t).then(null,(t=>{Yd&&ir.vF.error("Error while sending span:",t)}))}(function(t,e){const n=qd(t[0]),r={sent_at:(new Date).toISOString(),...function(t){return!!t.trace_id&&!!t.public_key}(n)&&{trace:n}},s=e&&e.getOptions().beforeSendSpan,o=s?t=>s(Nd(t)):t=>Nd(t),i=[];for(const e of t){const t=o(e);t&&i.push(Jd(t))}return function(t,e=[]){return[t,e]}(r,i)}([this],t));const e=this._convertSpanToTransaction();e&&(Xd(this).scope||ud()).captureEvent(e)}_convertSpanToTransaction(){if(!tp(Nd(this)))return;this._name||(Yd&&ir.vF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:e}=Xd(this),n=(t||ud()).getClient()||ld();if(!0!==this._sampled)return Yd&&ir.vF.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=function(t){const e=new Set;return function t(n){if(!e.has(n)&&Ad(n)){e.add(n);const r=n[Dd]?Array.from(n[Dd]):[];for(const e of r)t(e)}}(t),Array.from(e)}(this).filter((t=>t!==this&&!function(t){return t instanceof Qd&&t.isStandaloneSpan()}(t))).map((t=>Nd(t))).filter(tp),s=this._attributes[vd],o={contexts:{trace:Od(this)},spans:r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:e,...(0,Gl.Ce)({dynamicSamplingContext:qd(this)})},_metrics_summary:yd(this),...s&&{transaction_info:{source:s}}},i=Vd(this._events);return i&&Object.keys(i).length&&(Yd&&ir.vF.log("[Measurements] Adding measurements to transaction",JSON.stringify(i,void 0,2)),o.measurements=i),o}}function Zd(t){return t&&"number"==typeof t||t instanceof Date||Array.isArray(t)}function tp(t){return!!(t.start_timestamp&&t.timestamp&&t.span_id&&t.trace_id)}const ep="__SENTRY_SUPPRESS_TRACING__";function np(t){const e=rp();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=function(t){const e={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const n={...e};return n.startTimestamp=Md(t.startTime),delete n.startTime,n}return e}(t),r=t.scope||ud(),s=function(t){const e=od(t);if(!e)return;const n=ld();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Fd(e):e}(r);return t.onlyIfParent&&!s?new Wd:function({parentSpan:t,spanContext:e,forceTransaction:n,scope:r}){if(!Ud())return new Wd;const s=gd(Zl()).getIsolationScope();let o;if(t&&!n)o=function(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),o=!e.getScopeData().sdkProcessingMetadata[ep]&&Ad(t),i=o?new Qd({...n,parentSpanId:r,traceId:s,sampled:o}):new Wd({traceId:s});jd(t,i);const a=ld();return a&&(a.emit("spanStart",i),n.endTimestamp&&a.emit("spanEnd",i)),i}(t,r,e),jd(t,o);else if(t){const n=qd(t),{traceId:s,spanId:i}=t.spanContext(),a=Ad(t);o=sp({traceId:s,parentSpanId:i,...e},r,a),Hd(o,n)}else{const{traceId:t,dsc:n,parentSpanId:i,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};o=sp({traceId:t,parentSpanId:i,...e},r,a),n&&Hd(o,n)}return function(t){if(!Yd)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Nd(t),{spanId:s}=t.spanContext(),o=Ad(t),i=Fd(t),a=i===t,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:t,description:e}=Nd(i);u.push(`root ID: ${i.spanContext().spanId}`),t&&u.push(`root op: ${t}`),e&&u.push(`root description: ${e}`)}ir.vF.log(`${c}\n  ${u.join("\n  ")}`)}(o),function(t,e,n){t&&((0,Gl.my)(t,Gd,n),(0,Gl.my)(t,Kd,e))}(o,r,s),o}({parentSpan:s,spanContext:n,forceTransaction:t.forceTransaction,scope:r})}function rp(){return gd(Zl())}function sp(t,e,n){const r=ld(),s=r&&r.getOptions()||{},{name:o="",attributes:i}=t,[a,c]=e.getScopeData().sdkProcessingMetadata[ep]?[!1]:function(t,e){if(!Ud(t))return[!1];let n;n="function"==typeof t.tracesSampler?t.tracesSampler(e):void 0!==e.parentSampled?e.parentSampled:void 0!==t.tracesSampleRate?t.tracesSampleRate:1;const r=function(t){if("boolean"==typeof t)return Number(t);const e="string"==typeof t?parseFloat(t):t;if(!("number"!=typeof e||isNaN(e)||e<0||e>1))return e;Yd&&ir.vF.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`)}(n);return void 0===r?(Yd&&ir.vF.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(Yd&&ir.vF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(Yd&&ir.vF.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(s,{name:o,parentSampled:n,attributes:i,transactionContext:{name:o,parentSampled:n}}),u=new Qd({...t,attributes:{[vd]:"custom",...t.attributes},sampled:a});return void 0!==c&&u.setAttribute(bd,c),r&&r.emit("spanStart",u),u}const op=Ql.O,ip=80;function ap(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||ip;for(;n&&o++<r&&(u=cp(n,l),!("html"===u||o>1&&i+s.length*c+u.length>=d));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(t){return"<unknown>"}}function cp(t,e){const n=t,r=[];let s,o,i,a,c;if(!n||!n.tagName)return"";if(op.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 u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{r.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&(0,ed.Kg)(s))for(o=s.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)i=l[c],a=n.getAttribute(i),a&&r.push(`[${i}="${a}"]`);return r.join("")}function up(t){if(!op.HTMLElement)return null;let e=t;for(let t=0;t<5;t++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function lp(t){return"number"==typeof t&&isFinite(t)}function dp(t,e,n,{...r}){const s=Nd(t).start_timestamp;return s&&s>e&&"function"==typeof t.updateStartTime&&t.updateStartTime(e),function(t,e){const n=rp();return n.withActiveSpan?n.withActiveSpan(t,e):function(...t){const e=gd(Zl());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}((n=>(sd(n,t||void 0),e(n))))}(t,(()=>{const t=np({startTime:e,...r});return t&&t.end(n),t}))}function pp(){return lr.j&&lr.j.addEventListener&&lr.j.performance}function hp(t){return t/1e3}const fp=2147483647;let mp,gp,_p=0,yp={};function vp(){const t=pp();if(t&&Xl.k3){t.mark&&lr.j.performance.mark("sentry-tracing-init");const e=os("fid",(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=hp(Xl.k3),r=hp(e.startTime);cr&&ir.vF.log("[Measurements] Adding FID"),yp.fid={value:t.value,unit:"millisecond"},yp["mark.fid"]={value:n+r,unit:"second"}}),es,Jr),n=function(t,e=!1){return os("cls",t,ts,Wr,e)}((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(cr&&ir.vF.log("[Measurements] Adding CLS"),yp.cls={value:t.value,unit:""},gp=e)}),!0),r=Xr((({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(cr&&ir.vF.log("[Measurements] Adding LCP"),yp.lcp={value:t.value,unit:"millisecond"},mp=e)}),!0),s=os("ttfb",(({metric:t})=>{t.entries[t.entries.length-1]&&(cr&&ir.vF.log("[Measurements] Adding TTFB"),yp.ttfb={value:t.value,unit:"millisecond"})}),rs,Kr);return()=>{e(),n(),r(),s()}}return()=>{}}function bp(t,e,n,r,s,o){const i=o?e[o]:e[`${n}End`],a=e[`${n}Start`];a&&i&&dp(t,r+hp(a),r+hp(i),{op:"browser",name:s||n,attributes:{[kd]:"auto.ui.browser.metrics"}})}function Sp(t,e,n,r){const s=e[n];null!=s&&s<fp&&(t[r]=s)}const kp={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"},wp={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function xp(t,e={}){const n=new Map;let r,o=!1,i="externalFinish",a=!e.disableAutoFinish;const{idleTimeout:c=wp.idleTimeout,finalTimeout:u=wp.finalTimeout,childSpanTimeout:l=wp.childSpanTimeout,beforeSpanEnd:m}=e,g=(0,x.KU)();if(!g||!A())return new j;const _=(0,x.o5)(),y=(0,h.Bk)(),v=function(t){const e=Q(t);return(0,L.r)((0,x.o5)(),e),p.T&&d.vF.log("[Tracing] Started span is an idle span"),e}(t);function b(t=(0,F.zf)()){const e=(0,h.xO)(v).filter((t=>t!==v));if(!e.length)return void v.end(t);const n=e.map((t=>(0,h.et)(t).timestamp)).filter((t=>!!t)),r=n.length?Math.max(...n):void 0,s=(0,h.cI)(t),o=(0,h.et)(v).start_timestamp,i=Math.min(o?o+u/1e3:1/0,Math.max(o||-1/0,Math.min(s,r||1/0)));v.end(i)}function S(){r&&(clearTimeout(r),r=void 0)}function k(t){S(),r=setTimeout((()=>{!o&&0===n.size&&a&&(i="idleTimeout",b(t))}),c)}function w(t){r=setTimeout((()=>{!o&&a&&(i="heartbeatFailed",b(t))}),l)}return g.on("spanStart",(t=>{var e;o||t===v||(0,h.et)(t).timestamp||(0,h.xO)(v).includes(t)&&(e=t.spanContext().spanId,S(),n.set(e,!0),w((0,F.zf)()+l/1e3))})),g.on("spanEnd",(t=>{var e;o||(e=t.spanContext().spanId,n.has(e)&&n.delete(e),0===n.size&&k((0,F.zf)()+c/1e3),t===v&&function(){o=!0,n.clear(),m&&m(v),(0,L.r)(_,y);const t=(0,h.et)(v),{timestamp:e,start_timestamp:r}=t;if(!e||!r)return;(t.data||{})[s.fs]||v.setAttribute(s.fs,i),d.vF.log(`[Tracing] Idle span "${t.op}" finished`);const a=(0,h.xO)(v).filter((t=>t!==v));let l=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:f.TJ,message:"cancelled"}),t.end(e),p.T&&d.vF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,h.et)(t),{timestamp:r=0,start_timestamp:s=0}=n,o=s<=e,i=r-s<(u+c)/1e3;if(p.T){const e=JSON.stringify(t,void 0,2);o?i||d.vF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):d.vF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}i&&o||((0,h.VS)(v,t),l++)})),l>0&&v.setAttribute("sentry.idle_span_discarded_spans",l)}())})),g.on("idleSpanEnableAutoFinish",(t=>{t===v&&(a=!0,k(),n.size&&w())})),e.disableAutoFinish||k(),setTimeout((()=>{o||(v.setStatus({code:f.TJ,message:"deadline_exceeded"}),i="finalTimeout",b())}),u),v}var Ep=n(33437);const Cp={...wp,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...Yl},Tp=(t={})=>{g();const{enableInp:e,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:o,idleTimeout:i,finalTimeout:a,childSpanTimeout:c,markBackgroundSpan:u,traceFetch:l,traceXHR:p,shouldCreateSpanForRequest:m,enableHTTPTimings:_,instrumentPageLoad:y,instrumentNavigation:v}={...Cp,...t},b=vp();e&&function(){if(pp()&&Xl.k3){const e=(t=({metric:t})=>{const e=ld();if(!e||null==t.value)return;const n=t.entries.find((e=>e.duration===t.value&&kp[e.name]));if(!n)return;const r=kp[n.name],s=e.getOptions(),o=hp(Xl.k3+n.startTime),i=hp(t.value),a=ud(),c=$d(),u=c?Fd(c):void 0,l=u?Nd(u).description:void 0,d=a.getUser(),p=e.getIntegrationByName("Replay"),h=p&&p.getReplayId(),f=void 0!==d?d.email||d.id||d.ip_address:void 0,m=function(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],o=t[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(e=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}([a,"access",t=>t.getScopeData,"call",t=>t(),"access",t=>t.contexts,"optionalAccess",t=>t.profile,"optionalAccess",t=>t.profile_id]),g=np({name:ap(n.target),op:`ui.interaction.${r}`,attributes:(0,Gl.Ce)({release:s.release,environment:s.environment,transaction:l,[Ed]:t.value,user:f||void 0,profile_id:m||void 0,replay_id:h||void 0}),startTime:o,experimental:{standalone:!0}});g.addEvent("inp",{[wd]:"millisecond",[xd]:t.value}),g.end(o+i)},os("inp",t,ss,Gr));return()=>{e()}}var t}(),n&&Qr("longtask",(({entries:t})=>{for(const e of t){if(!$d())return;const t=hp(Xl.k3+e.startTime),n=hp(e.duration),r=np({name:"Main UI thread blocked",op:"ui.long-task",startTime:t,attributes:{[kd]:"auto.ui.browser.metrics"}});r&&r.end(t+n)}})),r&&Qr("event",(({entries:t})=>{for(const e of t){if(!$d())return;if("click"===e.name){const t=hp(Xl.k3+e.startTime),n=hp(e.duration),r={name:ap(e.target),op:`ui.interaction.${e.name}`,startTime:t,attributes:{[kd]:"auto.ui.browser.metrics"}},s=up(e.target);s&&(r.attributes["ui.component_name"]=s);const o=np(r);o&&o.end(t+n)}}}));const S={name:void 0,source:void 0};function k(t,e){const n="pageload"===e.op,r=o?o(e):e,u=r.attributes||{};e.name!==r.name&&(u[s.i_]="custom",r.attributes=u),S.name=r.name,S.source=u[s.i_];const l=xp(r,{idleTimeout:i,finalTimeout:a,childSpanTimeout:c,disableAutoFinish:n,beforeSpanEnd:t=>{b(),function(t){const e=pp();if(!e||!lr.j.performance.getEntries||!Xl.k3)return;cr&&ir.vF.log("[Tracing] Adding & adjusting spans using Performance API");const n=hp(Xl.k3),r=e.getEntries(),{op:s,start_timestamp:o}=Nd(t);if(r.slice(_p).forEach((e=>{const r=hp(e.startTime),i=hp(e.duration);if(!("navigation"===s&&o&&n+r<o))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{bp(t,e,r,n)})),bp(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),bp(t,e,"fetch",n,"cache","domainLookupStart"),bp(t,e,"domainLookup",n,"DNS"),function(t,e,n){e.responseEnd&&(dp(t,n+hp(e.requestStart),n+hp(e.responseEnd),{op:"browser",name:"request",attributes:{[kd]:"auto.ui.browser.metrics"}}),dp(t,n+hp(e.responseStart),n+hp(e.responseEnd),{op:"browser",name:"response",attributes:{[kd]:"auto.ui.browser.metrics"}}))}(t,e,n)}(t,e,n);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,s){const o=s+n;dp(t,o,o+r,{name:e.name,op:e.entryType,attributes:{[kd]:"auto.resource.browser.metrics"}})}(t,e,r,i,n);const s=vr(),o=e.startTime<s.firstHiddenTime;"first-paint"===e.name&&o&&(cr&&ir.vF.log("[Measurements] Adding FP"),yp.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&o&&(cr&&ir.vF.log("[Measurements] Adding FCP"),yp.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":!function(t,e,n,r,s,o){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const i=function(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}(n),a={[kd]:"auto.resource.browser.metrics"};Sp(a,e,"transferSize","http.response_transfer_size"),Sp(a,e,"encodedBodySize","http.response_content_length"),Sp(a,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus),i.protocol&&(a["url.scheme"]=i.protocol.split(":").pop()),i.host&&(a["server.address"]=i.host),a["url.same_origin"]=n.includes(lr.j.location.origin);const c=o+r;dp(t,c,c+s,{name:n.replace(lr.j.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:a})}(t,e,e.name,r,i,n)}})),_p=Math.max(r.length-1,0),function(t){const e=lr.j.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),lp(n.rtt)&&(yp["connection.rtt"]={value:n.rtt,unit:"millisecond"})),lp(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),lp(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===s){!function(t){const e=dr();if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(cr&&ir.vF.log("[Measurements] Adding TTFB Request Time"),t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(yp),["fcp","fp","lcp"].forEach((t=>{if(!yp[t]||!o||n>=o)return;const e=yp[t].value,r=n+hp(e),s=Math.abs(1e3*(r-o)),i=s-e;cr&&ir.vF.log(`[Measurements] Normalized ${t} from ${e} to ${s} (${i})`),yp[t].value=s}));const e=yp["mark.fid"];e&&yp.fid&&(dp(t,e.value,e.value+hp(yp.fid.value),{name:"first input delay",op:"ui.action",attributes:{[kd]:"auto.ui.browser.metrics"}}),delete yp["mark.fid"]),"fcp"in yp||delete yp.cls,Object.keys(yp).forEach((t=>{!function(t,e,n){const r=$d(),s=r&&Fd(r);s&&s.addEvent(t,{[xd]:e,[wd]:n})}(t,yp[t].value,yp[t].unit)})),function(t){mp&&(cr&&ir.vF.log("[Measurements] Adding LCP Data"),mp.element&&t.setAttribute("lcp.element",ap(mp.element)),mp.id&&t.setAttribute("lcp.id",mp.id),mp.url&&t.setAttribute("lcp.url",mp.url.trim().slice(0,200)),t.setAttribute("lcp.size",mp.size)),gp&&gp.sources&&(cr&&ir.vF.log("[Measurements] Adding CLS Data"),gp.sources.forEach(((e,n)=>t.setAttribute(`cls.source.${n+1}`,ap(e.node)))))}(t)}mp=void 0,gp=void 0,yp={}}(t)}});function d(){["interactive","complete"].includes(Kt.jf.document.readyState)&&t.emit("idleSpanEnableAutoFinish",l)}return n&&Kt.jf.document&&(Kt.jf.document.addEventListener("readystatechange",(()=>{d()})),d()),l}return{name:"BrowserTracing",afterAllSetup(t){let e,n=Kt.jf.location&&Kt.jf.location.href;t.on("startNavigationSpan",(n=>{(0,x.KU)()===t&&(e&&(_e.T&&d.vF.log(`[Tracing] Finishing current root span with op: ${(0,h.et)(e).op}`),e.end()),e=k(t,{op:"navigation",...n}))})),t.on("startPageLoadSpan",((n,r={})=>{if((0,x.KU)()!==t)return;e&&(_e.T&&d.vF.log(`[Tracing] Finishing current root span with op: ${(0,h.et)(e).op}`),e.end());const s=r.sentryTrace||Mp("sentry-trace"),o=r.baggage||Mp("baggage"),i=(0,I.kM)(s,o);(0,x.o5)().setPropagationContext(i),e=k(t,{op:"pageload",...n})})),t.on("spanEnd",(t=>{const e=(0,h.et)(t).op;if(t!==(0,h.zU)(t)||"navigation"!==e&&"pageload"!==e)return;const n=(0,x.o5)(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:(0,h.pK)(t),dsc:r.dsc||(0,D.k1)(t)})})),Kt.jf.location&&(y&&Ip(t,{name:Kt.jf.location.pathname,startTime:F.k3?F.k3/1e3:void 0,attributes:{[s.i_]:"url",[s.JD]:"auto.pageload.browser"}}),v&&(0,us._)((({to:e,from:r})=>{void 0===r&&n&&-1!==n.indexOf(e)?n=void 0:r!==e&&(n=void 0,Op(t,{name:Kt.jf.location.pathname,attributes:{[s.i_]:"url",[s.JD]:"auto.navigation.browser"}}))}))),u&&(Kt.jf&&Kt.jf.document?Kt.jf.document.addEventListener("visibilitychange",(()=>{const t=(0,h.Bk)();if(!t)return;const e=(0,h.zU)(t);if(Kt.jf.document.hidden&&e){const t="cancelled",{op:n,status:r}=(0,h.et)(e);_e.T&&d.vF.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus({code:f.TJ,message:t}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}})):_e.T&&d.vF.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(t,e,n,r){let o;Kt.jf.document&&addEventListener("click",(()=>{const i="ui.action.click",a=(0,h.Bk)(),c=a&&(0,h.zU)(a);if(c){const t=(0,h.et)(c).op;if(["navigation","pageload"].includes(t))return void(_e.T&&d.vF.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}o&&(o.setAttribute(s.fs,"interactionInterrupted"),o.end(),o=void 0),r.name?o=xp({name:r.name,op:i,attributes:{[s.i_]:r.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n}):_e.T&&d.vF.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(i,a,c,S),Wl({traceFetch:l,traceXHR:p,tracePropagationTargets:t.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:m,enableHTTPTimings:_})}}};function Ip(t,e,n){t.emit("startPageLoadSpan",e,n),(0,x.o5)().setTransactionName(e.name);const r=(0,h.Bk)();return"pageload"===(r&&(0,h.et)(r).op)?r:void 0}function Op(t,e){(0,x.o5)().setPropagationContext(Rp()),(0,x.rm)().setPropagationContext(Rp()),t.emit("startNavigationSpan",e),(0,x.o5)().setTransactionName(e.name);const n=(0,h.Bk)();return"navigation"===(n&&(0,h.et)(n).op)?n:void 0}function Mp(t){const e=(0,Ep.NX)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Rp(){return{traceId:(0,k.eJ)(),spanId:(0,k.eJ)().substring(16)}}var Np=n(78068);const Ap=100,Lp=5e3,Dp=36e5;function Pp(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function jp(t){return Pp(t.getAllKeys())}function Fp(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=Pp(n);return t=>r.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{push:async e=>{try{const r=await(0,ft.bN)(e);await function(t,e,n){return t((t=>jp(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),Pp(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},unshift:async e=>{try{const r=await(0,ft.bN)(e);await function(t,e,n){return t((t=>jp(t).then((r=>{if(!(r.length>=n))return t.put(e,Math.min(...r,0)-1),Pp(t.transaction)}))))}(n(),r,t.maxQueueSize||30)}catch(t){}},shift:async()=>{try{const t=await function(t){return t((t=>jp(t).then((e=>{if(0!==e.length)return Pp(t.get(e[0])).then((n=>(t.delete(e[0]),Pp(t.transaction).then((()=>n)))))}))))}(n());if(t)return(0,ft.mE)(t)}catch(t){}}}}function $p(t=Xt._){return function(t){return e=>t({...e,createStore:Fp})}(function(t){function e(...t){p.T&&d.vF.info("[Offline]:",...t)}return n=>{const r=t(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let o,i=Lp;function a(t){o&&clearTimeout(o),o=setTimeout((async()=>{o=void 0;const t=await s.shift();t&&(e("Attempting to send previously queued event"),t[0].sent_at=(new Date).toISOString(),u(t,!0).catch((t=>{e("Failed to retry sending",t)})))}),t),"number"!=typeof o&&o.unref&&o.unref()}function c(){o||(a(i),i=Math.min(2*i,Dp))}async function u(t,o=!1){if(!o&&(0,ft.hP)(t,["replay_event","replay_recording"]))return await s.push(t),a(Ap),{};try{const e=await r.send(t);let n=Ap;if(e)if(e.headers&&e.headers["retry-after"])n=(0,Np.FA)(e.headers["retry-after"]);else if(e.headers&&e.headers["x-sentry-rate-limits"])n=6e4;else if((e.statusCode||0)>=400)return e;return a(n),i=Lp,e}catch(r){if(await function(t,e,r){return!(0,ft.hP)(t,["client_report"])&&(!n.shouldStore||n.shouldStore(t,e,r))}(t,r,i))return o?await s.unshift(t):await s.push(t),c(),e("Error sending. Event queued.",r),{};throw r}}return n.flushAtStartup&&c(),{send:u,flush:t=>r.flush(t)}}}(t))}var Up=n(26950);const Bp=1e6,zp=String(0),Hp="main";let qp="",Yp="",Wp="",Jp=Kt.jf.navigator&&Kt.jf.navigator.userAgent||"",Vp="";const Kp=Kt.jf.navigator&&Kt.jf.navigator.language||Kt.jf.navigator&&Kt.jf.navigator.languages&&Kt.jf.navigator.languages[0]||"",Gp=Kt.jf.navigator&&Kt.jf.navigator.userAgentData;var Xp;function Qp(t,e,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 s=function(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"==typeof e&&32!==e.length&&_e.T&&d.vF.log(`[Profiling] Invalid traceId: ${e} on profiled event`),"string"!=typeof e?"":e}(r),o=function(t){return!("thread_metadata"in t)}(c=n)?function(t){let e,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[zp]:{name:Hp}}};if(!t.samples.length)return r;const s=t.samples[0].timestamp,o="number"==typeof performance.timeOrigin?performance.timeOrigin:F.k3||0,i=o-(F.k3||o);for(let o=0;o<t.samples.length;o++){const a=t.samples[o];if(void 0===a.stackId){void 0===e&&(e=n,r.stacks[e]=[],n++),r.samples[o]={elapsed_since_start_ns:((a.timestamp+i-s)*Bp).toFixed(0),stack_id:e,thread_id:zp};continue}let c=t.stacks[a.stackId];const u=[];for(;c;){u.push(c.frameId);const e=t.frames[c.frameId];void 0===r.frames[c.frameId]&&(r.frames[c.frameId]={function:e.name,abs_path:"number"==typeof e.resourceId?t.resources[e.resourceId]:void 0,lineno:e.line,colno:e.column}),c=void 0===c.parentId?void 0:t.stacks[c.parentId]}const l={elapsed_since_start_ns:((a.timestamp+i-s)*Bp).toFixed(0),stack_id:n,thread_id:zp};r.stacks[n]=u,r.samples[o]=l,n++}return r}(c):c,i=e||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,F.zf)()),a="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,F.zf)();var c;return{event_id:t,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Up.U,runtime:{name:"javascript",version:Kt.jf.navigator.userAgent},os:{name:qp,version:Yp,build_number:Jp},device:{locale:Kp,model:Vp,manufacturer:Jp,architecture:Wp,is_emulator:!1},debug_meta:{images:eh(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||(0,k.eJ)(),trace_id:s,active_thread_id:zp,relative_start_ns:"0",relative_end_ns:(1e6*(a-i)).toFixed(0)}]}}function Zp(t){return"pageload"===(0,h.et)(t).op}"object"==typeof(Xp=Gp)&&null!==Xp&&"getHighEntropyValues"in Xp&&Gp.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((t=>{if(qp=t.platform||"",Wp=t.architecture||"",Vp=t.model||"",Yp=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Jp=`${e.brand} ${e.version}`}})).catch((t=>{}));const th=new WeakMap;function eh(t){const e=v.O._sentryDebugIds;if(!e)return[];const n=(0,x.KU)(),r=n&&n.getOptions(),s=r&&r.stackParser;if(!s)return[];let o;const i=th.get(s);i?o=i:(o=new Map,th.set(s,o));const a=Object.keys(e).reduce(((t,n)=>{let r;const i=o.get(n);i?r=i:(r=s(n),o.set(n,r));for(let s=r.length-1;s>=0;s--){const o=r[s],i=o&&o.filename;if(o&&i){t[i]=e[n];break}}return t}),{}),c=[];for(const e of t)e&&a[e]&&c.push({type:"sourcemap",code_file:e,debug_id:a[e]});return c}let nh=!1;function rh(t){if(nh)return _e.T&&d.vF.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return _e.T&&d.vF.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=(0,x.KU)(),n=e&&e.getOptions();if(!n)return _e.T&&d.vF.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return("number"!=typeof(s=r)&&"boolean"!=typeof s||"number"==typeof s&&isNaN(s)?(_e.T&&d.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),0):!0===s||!1===s||!(s<0||s>1)||(_e.T&&d.vF.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${s}.`),0))?r?!!(!0===r||Math.random()<r)||(_e.T&&d.vF.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(_e.T&&d.vF.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(_e.T&&d.vF.warn("[Profiling] Discarding profile because of invalid sample rate."),!1);var s}function sh(t,e,n,r){return function(t){return t.samples.length<2?(_e.T&&d.vF.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!t.frames.length||(_e.T&&d.vF.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?Qp(t,e,n,r):null}const oh=new Map;function ih(t){const e=oh.get(t);return e&&oh.delete(t),e}function ah(t){let e;Zp(t)&&(e=1e3*(0,F.zf)());const n=function(){const t=Kt.jf.Profiler;if("function"!=typeof t)return void(_e.T&&d.vF.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const e=Math.floor(3e3);try{return new t({sampleInterval:10,maxBufferSize:e})}catch(t){_e.T&&(d.vF.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),d.vF.log("[Profiling] Disabling profiling for current user session.")),nh=!0}}();if(!n)return;_e.T&&d.vF.log(`[Profiling] started profiling span: ${(0,h.et)(t).description}`);const r=(0,k.eJ)();async function s(){if(t&&n)return n.stop().then((e=>{o&&(Kt.jf.clearTimeout(o),o=void 0),_e.T&&d.vF.log(`[Profiling] stopped profiling of span: ${(0,h.et)(t).description}`),e?function(t,e){if(oh.set(t,e),oh.size>30){const t=oh.keys().next().value;oh.delete(t)}}(r,e):_e.T&&d.vF.log(`[Profiling] profiler returned null profile for: ${(0,h.et)(t).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((t=>{_e.T&&d.vF.log("[Profiling] error while stopping profiler:",t)}))}(0,x.o5)().setContext("profile",{profile_id:r,start_timestamp:e});let o=Kt.jf.setTimeout((()=>{_e.T&&d.vF.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,h.et)(t).description),s()}),3e4);const i=t.end.bind(t);t.end=function(){return t?(s().then((()=>{i()}),(()=>{i()})),t):i()}}const ch=(0,c._C)((()=>({name:"BrowserProfiling",setup(t){const e=(0,h.Bk)(),n=e&&(0,h.zU)(e);n&&Zp(n)&&rh(n)&&ah(n),t.on("spanStart",(t=>{t===(0,h.zU)(t)&&rh(t)&&ah(t)})),t.on("beforeEnvelope",(t=>{if(!oh.size)return;const e=function(t){const e=[];return(0,ft.yH)(t,((t,n)=>{if("transaction"===n)for(let n=1;n<t.length;n++){const r=t[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&e.push(t[n])}})),e}(t);if(!e.length)return;const n=[];for(const t of e){const e=t&&t.contexts,r=e&&e.profile&&e.profile.profile_id,s=e&&e.profile&&e.profile.start_timestamp;if("string"!=typeof r){_e.T&&d.vF.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){_e.T&&d.vF.log("[Profiling] cannot find profile for a span without a profile context");continue}e&&e.profile&&delete e.profile;const o=ih(r);if(!o){_e.T&&d.vF.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const i=sh(r,s,o,t);i&&n.push(i)}!function(t,e){if(!e.length)return t;for(const n of e)t[1].push([{type:"profile"},n])}(t,n)}))}})));var uh=n(24311);const lh="sentry.source",dh="sentry.op",ph="sentry.origin",hh=globalThis;function fh(t,e,n){const r=n||hh,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}function mh(){return gh(hh),hh}function gh(t){return t.__SENTRY__||(t.__SENTRY__={extensions:{}}),t.__SENTRY__}const _h=Object.prototype.toString;function yh(t){return function(t,e){return _h.call(t)===`[object ${e}]`}(t,"Object")}const vh=1e3;function bh(){return Date.now()/vh}const Sh=function(){const{performance:t}=hh;if(!t||!t.now)return bh;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/vh}();let kh;function wh(){const t=hh,e=t.crypto||t.msCrypto;let n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(t){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}(()=>{const{performance:t}=hh;if(!t||!t.now)return void(kh="none");const e=36e5,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,o=s<e,i=t.timing&&t.timing.navigationStart,a="number"==typeof i?Math.abs(i+n-r):e;o||a<e?s<=a?(kh="timeOrigin",t.timeOrigin):kh="navigationStart":kh="dateNow"})();const xh="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Eh=["debug","info","warn","error","log","assert","trace"],Ch={};function Th(t){if(!("console"in hh))return t();const e=hh.console,n={},r=Object.keys(Ch);r.forEach((t=>{const r=Ch[t];n[t]=e[t],e[t]=r}));try{return t()}finally{r.forEach((t=>{e[t]=n[t]}))}}const Ih=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return xh?Eh.forEach((n=>{e[n]=(...e)=>{t&&Th((()=>{hh.console[n](`Sentry Logger [${n}]:`,...e)}))}})):Eh.forEach((t=>{e[t]=()=>{}})),e}();function Oh(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){xh&&Ih.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Mh(t){return Rh(t,new Map)}function Rh(t,e){if(function(t){if(!yh(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(t)){const n=e.get(t);if(void 0!==n)return n;const r={};e.set(t,r);for(const n of Object.keys(t))void 0!==t[n]&&(r[n]=Rh(t[n],e));return r}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const r=[];return e.set(t,r),t.forEach((t=>{r.push(Rh(t,e))})),r}return t}const Nh="_sentrySpan";function Ah(t,e){e?Oh(t,Nh,e):delete t[Nh]}function Lh(t){return t[Nh]}class Dh{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jh()}clone(){const t=new Dh;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ah(t,Lh(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&function(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Sh(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:wh()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const e="function"==typeof t?t(this):t,[n,r]=e instanceof Ph?[e.getScopeData(),e.getRequestSession()]:yh(e)?[t,t.requestSession]:[],{tags:s,extra:o,user:i,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...o},this._contexts={...this._contexts,...a},i&&Object.keys(i).length&&(this._user=i),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Ah(this,void 0),this._attachments=[],this._propagationContext=jh(),this._notifyScopeListeners(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:bh(),...t},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lh(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,e){const n=e&&e.event_id?e.event_id:wh();if(!this._client)return Ih.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},this),n}captureMessage(t,e,n){const r=n&&n.event_id?n.event_id:wh();if(!this._client)return Ih.warn("No client configured on scope - will not capture message!"),r;const s=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:wh();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(Ih.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}}const Ph=Dh;function jh(){return{traceId:wh(),spanId:wh().substring(16)}}class Fh{constructor(t,e){let n,r;n=t||new Ph,r=e||new Ph,this._stack=[{scope:n}],this._isolationScope=r}withScope(t){const e=this._pushScope();let n;try{n=t(e)}catch(t){throw this._popScope(),t}return r=n,Boolean(r&&r.then&&"function"==typeof r.then)?n.then((t=>(this._popScope(),t)),(t=>{throw this._popScope(),t})):(this._popScope(),n);var r}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}_popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}}function $h(){const t=gh(mh());return t.hub||(t.hub=new Fh(fh("defaultCurrentScope",(()=>new Ph)),fh("defaultIsolationScope",(()=>new Ph)))),t.hub}function Uh(t){return $h().withScope(t)}function Bh(t,e){const n=$h();return n.withScope((()=>(n.getStackTop().scope=t,e(t))))}function zh(t){return $h().withScope((()=>t($h().getIsolationScope())))}function Hh(t){const e=gh(t);return e.acs?e.acs:{withIsolationScope:zh,withScope:Uh,withSetScope:Bh,withSetIsolationScope:(t,e)=>zh(e),getCurrentScope:()=>$h().getScope(),getIsolationScope:()=>$h().getIsolationScope()}}function qh(){return Hh(mh()).getCurrentScope()}function Yh(){return qh().getClient()}function Wh(t,e){const n=Hh(mh());return n.withActiveSpan?n.withActiveSpan(t,e):function(...t){const e=Hh(mh());if(2===t.length){const[n,r]=t;return n?e.withSetScope(n,r):e.withScope(r)}return e.withScope(t[0])}((n=>(Ah(n,t||void 0),e(n))))}let Jh;function Vh(t){const e=function(t){return Jh?Jh.get(t):void 0}(t);if(!e)return;const n={};for(const[,[t,r]]of e)n[t]||(n[t]=[]),n[t].push(Mh(r));return n}const Kh=0,Gh=1;function Xh(t){return"number"==typeof t?Qh(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Qh(t.getTime()):Sh()}function Qh(t){return t>9999999999?t/1e3:t}function Zh(t){if(function(t){return"function"==typeof t.getSpanJSON}(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(function(t){const e=t;return!!(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status)}(t)){const{attributes:r,startTime:s,name:o,endTime:i,parentSpanId:a,status:c}=t;return Mh({span_id:e,trace_id:n,data:r,description:o,parent_span_id:a,start_timestamp:Xh(s),timestamp:Xh(i)||void 0,status:tf(c),op:r[dh],origin:r[ph],_metrics_summary:Vh(t)})}return{span_id:e,trace_id:n}}catch(t){return{}}}function tf(t){if(t&&t.code!==Kh)return t.code===Gh?"ok":t.message||"unknown_error"}const ef="_sentryRootSpan";function nf(t){return t[ef]||t}function rf(){const t=Hh(mh());return t.getActiveSpan?t.getActiveSpan():Lh(qh())}var sf=n(4146),of=n(96540);const af="ui.react.render",cf="ui.react.mount",uf="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",lf="unknown";class df extends of.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:e,disabled:n=!1}=this.props;n||(this._mountSpan=Q({name:`<${e}>`,onlyIfParent:!0,op:cf,attributes:{[ph]:"auto.ui.react.profiler","ui.component_name":e}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:e=!0}){if(e&&this._mountSpan&&t!==this.props.updateProps){const e=Object.keys(t).filter((e=>t[e]!==this.props.updateProps[e]));if(e.length>0){const t=Sh();this._updateSpan=Wh(this._mountSpan,(()=>Q({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:t,attributes:{[ph]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":e}})))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=Sh(),{name:e,includeRender:n=!0}=this.props;if(this._mountSpan&&n){const n=Zh(this._mountSpan).timestamp;Wh(this._mountSpan,(()=>{const r=Q({onlyIfParent:!0,name:`<${e}>`,op:af,startTime:n,attributes:{[ph]:"auto.ui.react.profiler","ui.component_name":e}});r&&r.end(t)}))}}render(){return this.props.children}}function pf(t,e){const n=e&&e.name||t.displayName||t.name||lf,r=r=>of.createElement(df,{...e,name:n,updateProps:r,__self:this,__source:{fileName:uf,lineNumber:163}},of.createElement(t,{...r,__self:this,__source:{fileName:uf,lineNumber:164}}));return r.displayName=`profiler(${n})`,sf(r,t),r}function hf(t,e={disabled:!1,hasRenderSpan:!0}){const[n]=of.useState((()=>{if(!e||!e.disabled)return Q({name:`<${t}>`,onlyIfParent:!0,op:cf,attributes:{[ph]:"auto.ui.react.profiler","ui.component_name":t}})}));of.useEffect((()=>(n&&n.end(),()=>{if(n&&e.hasRenderSpan){const e=Zh(n).timestamp,r=Sh(),s=Q({name:`<${t}>`,onlyIfParent:!0,op:af,startTime:e,attributes:{[ph]:"auto.ui.react.profiler","ui.component_name":t}});s&&s.end(r)}})),[])}df.__initStatic();const ff="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mf="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx",gf="unknown",_f={componentStack:null,error:null,eventId:null};class yf extends of.Component{constructor(t){super(t),yf.prototype.__init.call(this),this.state=_f,this._openFallbackReportDialog=!0;const e=(0,x.KU)();e&&t.showDialog&&(this._openFallbackReportDialog=!1,e.on("afterSendEvent",(e=>{!e.type&&this._lastEventId&&e.event_id===this._lastEventId&&(0,ee.mn)({...t.dialogOptions,eventId:this._lastEventId})})))}componentDidCatch(t,{componentStack:e}){const{beforeCapture:n,onError:r,showDialog:s,dialogOptions:o}=this.props;(0,x.v4)((i=>{if(function(t){const e=t.match(/^([^.]+)/);return null!==e&&parseInt(e[0])>=17}(of.version)&&function(t){switch(_h.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return function(t,e){try{return t instanceof e}catch(t){return!1}}(t,Error)}}(t)){const n=new Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,function(t,e){const n=new WeakMap;!function t(e,r){if(!n.has(e))return e.cause?(n.set(e,!0),t(e.cause,r)):void(e.cause=r)}(t,e)}(t,n)}n&&n(i,t,e);const c=(0,a.Cp)(t,{captureContext:{contexts:{react:{componentStack:e}}},mechanism:{handled:!!this.props.fallback}});r&&r(t,e,c),s&&(this._lastEventId=c,this._openFallbackReportDialog&&(0,ee.mn)({...o,eventId:c})),this.setState({error:t,componentStack:e,eventId:c})}))}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(t,e,n)}__init(){this.resetErrorBoundary=()=>{const{onReset:t}=this.props,{error:e,componentStack:n,eventId:r}=this.state;t&&t(e,n,r),this.setState(_f)}}render(){const{fallback:t,children:e}=this.props,n=this.state;if(n.error){let e;return e="function"==typeof t?of.createElement(t,{error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):t,of.isValidElement(e)?e:(t&&ff&&Ih.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof e?e():e}}function vf(t,e){const n=t.displayName||t.name||gf,r=n=>of.createElement(yf,{...e,__self:this,__source:{fileName:mf,lineNumber:239}},of.createElement(t,{...n,__self:this,__source:{fileName:mf,lineNumber:240}}));return r.displayName=`errorBoundary(${n})`,sf(r,t),r}const bf=100;const Sf="redux.action",kf="info",wf={attachReduxState:!0,actionTransformer:t=>t,stateTransformer:t=>t||null};function xf(t){const e={...wf,...t};return t=>(n,r)=>(e.attachReduxState&&fh("globalScope",(()=>new Ph)).addEventProcessor(((t,e)=>{try{void 0===t.type&&"redux"===t.contexts.state.state.type&&(e.attachments=[...e.attachments||[],{filename:"redux_state.json",data:JSON.stringify(t.contexts.state.state.value)}])}catch(t){}return t})),t(((t,r)=>{const s=n(t,r),o=qh(),i=e.actionTransformer(r);null!=i&&function(t,e){const n=Yh(),r=Hh(mh()).getIsolationScope();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=bf}=n.getOptions();if(o<=0)return;const i={timestamp:bh(),...t},a=s?Th((()=>s(i,e))):i;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,e),r.addBreadcrumb(a,o))}({category:Sf,data:i,type:kf});const a=e.stateTransformer(s);if(null!=a){const t=Yh(),e=t&&t.getOptions(),n={state:{type:"redux",value:a}};Oh(n,"__sentry_override_normalization_depth__",3+(e&&e.normalizeDepth||3)),o.setContext("state",n)}else o.setContext("state",null);const{configureScopeWithState:c}=e;return"function"==typeof c&&c(o,s),s}),r))}function Ef(t){const e=Tp({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),o&&Kt.jf&&Kt.jf.location&&Cf(r,Kt.jf.location,s,((e,n="url")=>{Ip(t,{name:e,attributes:{[dh]:"pageload",[ph]:"auto.pageload.react.reactrouter_v3",[lh]:n}})})),i&&n.listen&&n.listen((e=>{"PUSH"!==e.action&&"POP"!==e.action||Cf(r,e,s,((e,n="url")=>{Op(t,{name:e,attributes:{[dh]:"navigation",[ph]:"auto.navigation.react.reactrouter_v3",[lh]:n}})}))}))}}}function Cf(t,e,n,r){let s=e.pathname;n({location:e,routes:t},((t,e,n)=>{if(t||!n)return r(s);const o=function(t){if(!Array.isArray(t)||0===t.length)return"";const e=t.filter((t=>!!t.path));let n=-1;for(let t=e.length-1;t>=0;t--){const r=e[t];if(r.path&&r.path.startsWith("/")){n=t;break}}return e.slice(n).filter((({path:t})=>!!t)).map((({path:t})=>t)).join("")}(n.routes||[]);return 0===o.length||"/*"===o?r(s):(s=o,r(s,"route"))}))}const Tf="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx";function If(t){const e=Tp({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),Mf(t,o,i,n,"reactrouter_v4",r,s)}}}function Of(t){const e=Tp({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:s,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=t;return{...e,afterAllSetup(t){e.afterAllSetup(t),Mf(t,o,i,n,"reactrouter_v5",r,s)}}}function Mf(t,e,n,r,s,o=[],i){function a(t){if(0===o.length||!i)return[t,"url"];const e=Rf(o,t,i);for(let t=0;t<e.length;t++)if(e[t].match.isExact)return[e[t].match.path,"route"];return[t,"url"]}if(e){const e=r&&r.location?r.location.pathname:Kt.jf&&Kt.jf.location?Kt.jf.location.pathname:void 0;if(e){const[n,r]=a(e);Ip(t,{name:n,attributes:{[dh]:"pageload",[ph]:`auto.pageload.react.${s}`,[lh]:r}})}}n&&r.listen&&r.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){const[n,r]=a(e.pathname);Op(t,{name:n,attributes:{[dh]:"navigation",[ph]:`auto.navigation.react.${s}`,[lh]:r}})}}))}function Rf(t,e,n,r=[]){return t.some((t=>{const s=t.path?n(e,t):r.length?r[r.length-1].match:function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}}(e);return s&&(r.push({route:t,match:s}),t.routes&&Rf(t.routes,e,n,r)),!!s})),r}function Nf(t){const e=t.displayName||t.name,n=e=>{if(e&&e.computedMatch&&e.computedMatch.isExact){const t=e.computedMatch.path,n=function(){const t=rf(),e=t&&nf(t);if(!e)return;const n=Zh(e).op;return"navigation"===n||"pageload"===n?e:void 0}();qh().setTransactionName(t),n&&(n.updateName(t),n.setAttribute(lh,"route"))}return of.createElement(t,{...e,__self:this,__source:{fileName:Tf,lineNumber:243}})};return n.displayName=`sentryRoute(${e})`,sf(n,t),n}function Af(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}const Lf="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Df,Pf,jf,Ff,$f,Uf=!1;const Bf=[];function zf(t){const e=Tp({...t,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:r,useNavigationType:s,createRoutesFromChildren:o,matchRoutes:i,stripBasename:a,instrumentPageLoad:c=!0,instrumentNavigation:u=!0}=t;return{...e,setup(){Df=n,Pf=r,jf=s,$f=i,Ff=o,Uf=a||!1},afterAllSetup(t){e.afterAllSetup(t);const n=Kt.jf&&Kt.jf.location&&Kt.jf.location.pathname;c&&n&&Ip(t,{name:n,attributes:{[lh]:"url",[dh]:"pageload",[ph]:"auto.pageload.react.reactrouter_v6"}}),u&&Bf.push(t)}}}function Hf(t,e){if(!e||"/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return t;const n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?t:t.slice(n)||"/"}function qf(t,e,n,r=""){if(!t||0===t.length)return[Uf?Hf(e.pathname,r):e.pathname,"url"];let s="";if(n)for(let t=0;t<n.length;t++){const o=n[t],i=o.route;if(i){if(i.index)return[Uf?Hf(o.pathname,r):o.pathname,"route"];const t=i.path;if(t){const n="/"===t[0]||"/"===s[s.length-1]?t:`/${t}`;if(s+=n,r+o.pathname===e.pathname)return Af(s)!==Af(o.pathname)&&"/*"!==s.slice(-2)?[(Uf?"":r)+n,"route"]:[(Uf?"":r)+s,"route"]}}}return[Uf?Hf(e.pathname,r):e.pathname,"url"]}function Yf(t,e,n,r,s){const o=Array.isArray(r)?r:$f(n,e,s);if(o){const[r,i]=qf(n,e,o,s);qh().setTransactionName(r),t&&(t.updateName(r),t.setAttribute(lh,i))}}function Wf(t,e,n,r,s){const o=Array.isArray(r)?r:$f(e,t,s),i=Yh();if(i&&Bf.includes(i)&&("PUSH"===n||"POP"===n)&&o){const[n,r]=qf(e,t,o,s);Op(i,{name:n,attributes:{[lh]:r,[dh]:"navigation",[ph]:"auto.navigation.react.reactrouter_v6"}})}}function Jf(t){if(!(Df&&Pf&&jf&&Ff&&$f))return ff&&Ih.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n      useEffect: ${Df}. useLocation: ${Pf}. useNavigationType: ${jf}.\n      createRoutesFromChildren: ${Ff}. matchRoutes: ${$f}.`),t;let e=!0;const n=n=>{const r=Pf(),s=jf();return Df((()=>{const t=Ff(n.children);e?(Yf(Gf(),r,t),e=!1):Wf(r,t,s)}),[r,s]),of.createElement(t,{...n,__self:this,__source:{fileName:Lf,lineNumber:278}})};return sf(n,t),n}function Vf(t){if(!(Df&&Pf&&jf&&$f))return ff&&Ih.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),t;let e=!0;const n=n=>{const{routes:r,locationArg:s}=n,o=t(r,s),i=Pf(),a=jf(),c="string"==typeof s||s&&s.pathname?s:i;return Df((()=>{const t="string"==typeof c?{pathname:c}:c;e?(Yf(Gf(),t,r),e=!1):Wf(t,r,a)}),[a,c]),o};return(t,e)=>of.createElement(n,{routes:t,locationArg:e,__self:this,__source:{fileName:Lf,lineNumber:335}})}function Kf(t){return Df&&Pf&&jf&&$f?function(e,n){const r=t(e,n),s=n&&n.basename,o=Gf();return"POP"===r.state.historyAction&&o&&Yf(o,r.state.location,e,void 0,s),r.subscribe((t=>{const n=t.location;"PUSH"!==t.historyAction&&"POP"!==t.historyAction||Wf(n,e,t.historyAction,void 0,s)})),r}:(ff&&Ih.warn("reactRouterV6Instrumentation was unable to wrap the `createRouter` function because of one or more missing parameters."),t)}function Gf(){const t=rf(),e=t?nf(t):void 0;if(!e)return;const n=Zh(e).op;return"navigation"===n||"pageload"===n?e:void 0}},24311:(t,e,n)=>{"use strict";n.d(e,{T:()=>o});var r=n(45732);const s="8.2.1";function o(t){const e={...t};!function(t,e,n=[e],r="npm"){const o=t._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${e}`,packages:n.map((t=>({name:`${r}:@sentry/${t}`,version:s}))),version:s}),t._metadata=o}(e,"react"),(0,r.Ts)(e)}},94997:(t,e,n)=>{"use strict";n.d(e,{A:()=>S});var r=n(23029),s=n(92901),o=[],i=o.forEach,a=o.slice,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,u={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&"undefined"!=typeof document){var n=function(t){for(var e="".concat(t,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var s=n[r];" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(e))return s.substring(e.length,s.length)}return null}(t.lookupCookie);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&"undefined"!=typeof document&&function(t,e,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+60*n*1e3)),r&&(s.domain=r),document.cookie=function(t,e,n){var r=n||{};r.path=r.path||"/";var s=encodeURIComponent(e),o="".concat(t,"=").concat(s);if(r.maxAge>0){var i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(i))}if(r.domain){if(!c.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!c.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o}(t,encodeURIComponent(e),s)}(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},l={name:"querystring",lookup:function(t){var e;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1).split("&"),s=0;s<r.length;s++){var o=r[s].indexOf("=");o>0&&r[s].substring(0,o)===t.lookupQuerystring&&(e=r[s].substring(o+1))}}return e}},d=null,p=function(){if(null!==d)return d;try{d="undefined"!==window&&null!==window.localStorage;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){d=!1}return d},h={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&p()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&p()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},f=null,m=function(){if(null!==f)return f;try{f="undefined"!==window&&null!==window.sessionStorage;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){f=!1}return f},g={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&m()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&m()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},_={name:"navigator",lookup:function(t){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)e.push(navigator.languages[n]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},y={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},v={name:"path",lookup:function(t){var e;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof t.lookupFromPathIndex){if("string"!=typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},b={name:"subdomain",lookup:function(t){var e="number"==typeof t.lookupFromSubdomainIndex?t.lookupFromSubdomainIndex+1:1,n="undefined"!=typeof window&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(n)return n[e]}},S=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.A)(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return(0,s.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=function(t){return i.call(a.call(arguments,1),(function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])})),t}(e,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(u),this.addDetector(l),this.addDetector(h),this.addDetector(g),this.addDetector(_),this.addDetector(y),this.addDetector(v),this.addDetector(b)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var e=this;t||(t=this.options.order);var n=[];return t.forEach((function(t){if(e.detectors[t]){var r=e.detectors[t].lookup(e.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(t,e){var n=this;e||(e=this.options.caches),e&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach((function(e){n.detectors[e]&&n.detectors[e].cacheUserLanguage(t,n.options)})))}}]),t}();S.type="languageDetector"},54156:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>lt});var r=n(82284),s=n(23029),o=n(92901),i=n(9417),a=n(85501),c=n(56822),u=n(53954),l=n(64467),d=n(96369),p=n(73893),h=n(27800),f=n(76562);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var _={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},y=new(function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,t),this.init(e,n)}return(0,o.A)(t,[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||_,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,r){return r&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(e){return new t(this.logger,g(g({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}},{key:"clone",value:function(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}}]),t}()),v=function(){function t(){(0,s.A)(this,t),this.observers={}}return(0,o.A)(t,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach((function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)})),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter((function(t){return t!==e})):delete this.observers[t])}},{key:"emit",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.observers[t]&&[].concat(this.observers[t]).forEach((function(t){t.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(e){e.apply(e,[t].concat(n))}))}}]),t}();function b(){var t,e,n=new Promise((function(n,r){t=n,e=r}));return n.resolve=t,n.reject=e,n}function S(t){return null==t?"":""+t}function k(t,e,n){function r(t){return t&&t.indexOf("###")>-1?t.replace(/###/g,"."):t}function s(){return!t||"string"==typeof t}for(var o="string"!=typeof e?[].concat(e):e.split(".");o.length>1;){if(s())return{};var i=r(o.shift());!t[i]&&n&&(t[i]=new n),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{}}return s()?{}:{obj:t,k:r(o.shift())}}function w(t,e,n){var r=k(t,e,Object);r.obj[r.k]=n}function x(t,e){var n=k(t,e),r=n.obj,s=n.k;if(r)return r[s]}function E(t,e,n){for(var r in e)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof e[r]||e[r]instanceof String?n&&(t[r]=e[r]):E(t[r],e[r],n):t[r]=e[r]);return t}function C(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function I(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,(function(t){return T[t]})):t}var O="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,M=[" ",",","?","!",";"];function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),s=t,o=0;o<r.length;++o){if(!s)return;if("string"==typeof s[r[o]]&&o+1<r.length)return;if(void 0===s[r[o]]){for(var i=2,a=r.slice(o,o+i).join(n),c=s[a];void 0===c&&r.length>o+i;)i++,c=s[a=r.slice(o,o+i).join(n)];if(void 0===c)return;if(null===c)return null;if(e.endsWith(a)){if("string"==typeof c)return c;if(a&&"string"==typeof c[a])return c[a]}var u=r.slice(o+i).join(n);return u?R(c,u,n):void 0}s=s[r[o]]}return s}}function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var L=function(t){(0,a.A)(l,t);var e,n,r=(e=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,u.A)(e);if(n){var s=(0,u.A)(this).constructor;t=Reflect.construct(r,arguments,s)}else t=r.apply(this,arguments);return(0,c.A)(this,t)});function l(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,s.A)(this,l),e=r.call(this),O&&v.call((0,i.A)(e)),e.data=t||{},e.options=n,void 0===e.options.keySeparator&&(e.options.keySeparator="."),void 0===e.options.ignoreJSONStructure&&(e.options.ignoreJSONStructure=!0),e}return(0,o.A)(l,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[t,e];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(s?n.split(s):n)),t.indexOf(".")>-1&&(i=t.split("."));var a=x(this.data,i);return a||!o||"string"!=typeof n?a:R(this.data&&this.data[t]&&this.data[t][e],n,s)}},{key:"addResource",value:function(t,e,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var i=[t,e];n&&(i=i.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(r=e,e=(i=t.split("."))[1]),this.addNamespaces(e),w(this.data,i,r),s.silent||this.emit("added",t,e,n,r)}},{key:"addResources",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var s in n)"string"!=typeof n[s]&&"[object Array]"!==Object.prototype.toString.apply(n[s])||this.addResource(t,e,s,n[s],{silent:!0});r.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,r,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[t,e];t.indexOf(".")>-1&&(r=n,n=e,e=(i=t.split("."))[1]),this.addNamespaces(e);var a=x(this.data,i)||{};r?E(a,n,s):a=A(A({},a),n),w(this.data,i,a),o.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?A(A({},{}),this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((function(t){return e[t]&&Object.keys(e[t]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),l}(v),D={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,s){var o=this;return t.forEach((function(t){o.processors[t]&&(e=o.processors[t].process(e,n,r,s))})),e}};function P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function j(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?P(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={},$=function(t){(0,a.A)(d,t);var e,n,l=(e=d,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,u.A)(e);if(n){var s=(0,u.A)(this).constructor;t=Reflect.construct(r,arguments,s)}else t=r.apply(this,arguments);return(0,c.A)(this,t)});function d(t){var e,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,s.A)(this,d),e=l.call(this),O&&v.call((0,i.A)(e)),n=t,r=(0,i.A)(e),["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(t){n[t]&&(r[t]=n[t])})),e.options=o,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=y.create("translator"),e}return(0,o.A)(d,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;var n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=e.ns||this.options.defaultNS||[],o=n&&t.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(t,e,n){e=e||"",n=n||"";var r=M.filter((function(t){return e.indexOf(t)<0&&n.indexOf(t)<0}));if(0===r.length)return!0;var s=new RegExp("(".concat(r.map((function(t){return"?"===t?"\\?":t})).join("|"),")")),o=!s.test(t);if(!o){var i=t.indexOf(n);i>0&&!s.test(t.substring(0,i))&&(o=!0)}return o}(t,n,r));if(o&&!i){var a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:s};var c=t.split(n);(n!==r||n===r&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),t=c.join(r)}return"string"==typeof s&&(s=[s]),{key:t,namespaces:s}}},{key:"translate",value:function(t,e,n){var s=this;if("object"!==(0,r.A)(e)&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var o=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],e),c=a.key,u=a.namespaces,l=u[u.length-1],p=e.lng||this.language,h=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(h){var f=e.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(l).concat(f).concat(c),usedKey:c,exactUsedKey:c,usedLng:p,usedNS:l}:"".concat(l).concat(f).concat(c)}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:p,usedNS:l}:c}var m=this.resolve(t,e),g=m&&m.res,_=m&&m.usedKey||c,y=m&&m.exactUsedKey||c,v=Object.prototype.toString.apply(g),b=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject;if(S&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof b||"[object Array]"!==v)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,g,j(j({},e),{},{ns:u})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=k,m):k}if(i){var w="[object Array]"===v,x=w?[]:{},E=w?y:_;for(var C in g)if(Object.prototype.hasOwnProperty.call(g,C)){var T="".concat(E).concat(i).concat(C);x[C]=this.translate(T,j(j({},e),{joinArrays:!1,ns:u})),x[C]===T&&(x[C]=g[C])}g=x}}else if(S&&"string"==typeof b&&"[object Array]"===v)(g=g.join(b))&&(g=this.extendTranslation(g,t,e,n));else{var I=!1,O=!1,M=void 0!==e.count&&"string"!=typeof e.count,R=d.hasDefaultValue(e),N=M?this.pluralResolver.getSuffix(p,e.count,e):"",A=e["defaultValue".concat(N)]||e.defaultValue;!this.isValidLookup(g)&&R&&(I=!0,g=A),this.isValidLookup(g)||(O=!0,g=c);var L=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:g,D=R&&A!==g&&this.options.updateMissing;if(O||I||D){if(this.logger.log(D?"updateKey":"missingKey",p,l,c,D?A:g),i){var P=this.resolve(c,j(j({},e),{},{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var F=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(var U=0;U<$.length;U++)F.push($[U]);else"all"===this.options.saveMissingTo?F=this.languageUtils.toResolveHierarchy(e.lng||this.language):F.push(e.lng||this.language);var B=function(t,n,r){var o=R&&r!==g?r:L;s.options.missingKeyHandler?s.options.missingKeyHandler(t,l,n,o,D,e):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(t,l,n,o,D,e),s.emit("missingKey",t,l,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?F.forEach((function(t){s.pluralResolver.getSuffixes(t,e).forEach((function(n){B([t],c+n,e["defaultValue".concat(n)]||A)}))})):B(F,c,A))}g=this.extendTranslation(g,t,e,m,n),O&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(c)),(O||I)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,I?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(m.res=g,m):g}},{key:"extendTranslation",value:function(t,e,n,r,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,j(j({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(j(j({},n),{interpolation:j(j({},this.options.interpolation),n.interpolation)}));var i,a="string"==typeof t&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var c=t.match(this.interpolator.nestingRegexp);i=c&&c.length}var u=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(u=j(j({},this.options.interpolation.defaultVariables),u)),t=this.interpolator.interpolate(t,u,n.lng||this.language,n),a){var l=t.match(this.interpolator.nestingRegexp);i<(l&&l.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return s&&s[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(e[0])),null):o.translate.apply(o,r.concat([e]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=t&&p&&p.length&&!1!==n.applyPostProcessor&&(t=D.handle(p,t,e,this.options&&this.options.postProcessPassResolved?j({i18nResolved:r},n):n,this)),t}},{key:"resolve",value:function(t){var e,n,r,s,o,i=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach((function(t){if(!i.isValidLookup(e)){var c=i.extractFromKey(t,a),u=c.key;n=u;var l=c.namespaces;i.options.fallbackNS&&(l=l.concat(i.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,p=d&&!a.ordinal&&0===a.count&&i.pluralResolver.shouldUseIntlApi(),h=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:i.languageUtils.toResolveHierarchy(a.lng||i.language,a.fallbackLng);l.forEach((function(t){i.isValidLookup(e)||(o=t,!F["".concat(f[0],"-").concat(t)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(o)&&(F["".concat(f[0],"-").concat(t)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!i.isValidLookup(e)){s=n;var o,c=[u];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(c,u,n,t,a);else{var l;d&&(l=i.pluralResolver.getSuffix(n,a.count,a));var f="".concat(i.options.pluralSeparator,"zero");if(d&&(c.push(u+l),p&&c.push(u+f)),h){var m="".concat(u).concat(i.options.contextSeparator).concat(a.context);c.push(m),d&&(c.push(m+l),p&&c.push(m+f))}}for(;o=c.pop();)i.isValidLookup(e)||(r=o,e=i.getResource(n,t,o,a))}})))}))}})),{res:e,usedKey:n,exactUsedKey:r,usedLng:s,usedNS:o}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,r):this.resourceStore.getResource(t,e,n,r)}}],[{key:"hasDefaultValue",value:function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}]),d}(v);function U(t){return t.charAt(0).toUpperCase()+t.slice(1)}var B=function(){function t(e){(0,s.A)(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return(0,o.A)(t,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(t){return t.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=U(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isSupportedCode",value:function(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var e,n=this;return t?(t.forEach((function(t){if(!e){var r=n.formatLanguageCode(t);n.options.supportedLngs&&!n.isSupportedCode(r)||(e=r)}})),!e&&this.options.supportedLngs&&t.forEach((function(t){if(!e){var r=n.getLanguagePartFromCode(t);if(n.isSupportedCode(r))return e=r;e=n.options.supportedLngs.find((function(t){return t===r?t:t.indexOf("-")<0&&r.indexOf("-")<0?void 0:0===t.indexOf(r)?t:void 0}))}})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),"string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,e){var n=this,r=this.getFallbackCodes(e||this.options.fallbackLng||[],t),s=[],o=function(t){t&&(n.isSupportedCode(t)?s.push(t):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(t)))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):"string"==typeof t&&o(this.formatLanguageCode(t)),r.forEach((function(t){s.indexOf(t)<0&&o(n.formatLanguageCode(t))})),s}}]),t}(),z=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],H={1:function(t){return Number(t>1)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(1==t?0:t>=2&&t<=4?1:2)},7:function(t){return Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0==t||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)}},q=["v1","v2","v3"],Y={zero:0,one:1,two:2,few:3,many:4,other:5},W=function(){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.A)(this,t),this.languageUtils=e,this.options=r,this.logger=y.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},z.forEach((function(t){t.lngs.forEach((function(e){n[e]={numbers:t.nr,plurals:H[t.fc]}}))})),n)}return(0,o.A)(t,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(t,{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((function(t){return"".concat(e).concat(t)}))}},{key:"getSuffixes",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(t,e){return Y[t]-Y[e]})).map((function(t){return"".concat(e.options.prepend).concat(t)})):r.numbers.map((function(r){return e.getSuffix(t,r,n)})):[]}},{key:"getSuffix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(t,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(e)):this.getSuffixRetroCompatible(r,e):(this.logger.warn("no plural rule found for: ".concat(t)),"")}},{key:"getSuffixRetroCompatible",value:function(t,e){var n=this,r=t.noAbs?t.plurals(e):t.plurals(Math.abs(e)),s=t.numbers[r];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===s?s="plural":1===s&&(s=""));var o=function(){return n.options.prepend&&s.toString()?n.options.prepend+s.toString():s.toString()};return"v1"===this.options.compatibilityJSON?1===s?"":"number"==typeof s?"_plural_".concat(s.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!q.includes(this.options.compatibilityJSON)}}]),t}();function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?J(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(t,e,n){var r=x(t,n);return void 0!==r?r:x(e,n)}(t,e,n);return!o&&s&&"string"==typeof n&&void 0===(o=R(t,n,r))&&(o=R(e,n,r)),o}var G=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,t),this.logger=y.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(t){return t},this.init(e)}return(0,o.A)(t,[{key:"init",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:I,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?C(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?C(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?C(e.nestingPrefix):e.nestingPrefixEscaped||C("$t("),this.nestingSuffix=e.nestingSuffix?C(e.nestingSuffix):e.nestingSuffixEscaped||C(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,e,n,r){var s,o,i,a=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(t){return t.replace(/\$/g,"$$$$")}var l=function(t){if(t.indexOf(a.formatSeparator)<0){var s=K(e,c,t,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(s,void 0,n,V(V(V({},r),e),{},{interpolationkey:t})):s}var o=t.split(a.formatSeparator),i=o.shift().trim(),u=o.join(a.formatSeparator).trim();return a.format(K(e,c,i,a.options.keySeparator,a.options.ignoreJSONStructure),u,n,V(V(V({},r),e),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(t){return u(t)}},{regex:this.regexp,safeValue:function(t){return a.escapeValue?u(a.escape(t)):u(t)}}].forEach((function(e){for(i=0;s=e.regex.exec(t);){var n=s[1].trim();if(void 0===(o=l(n)))if("function"==typeof d){var c=d(t,s,r);o="string"==typeof c?c:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(p){o=s[0];continue}a.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(t)),o=""}else"string"==typeof o||a.useRawValueToEscape||(o=S(o));var u=e.safeValue(o);if(t=t.replace(s[0],u),p?(e.regex.lastIndex+=o.length,e.regex.lastIndex-=s[0].length):e.regex.lastIndex=0,++i>=a.maxReplaces)break}})),t}},{key:"nest",value:function(t,e){var n,r,s,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var r=t.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);t=r[0];var i=(o=this.interpolate(o,s)).match(/'/g),a=o.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{s=JSON.parse(o),e&&(s=V(V({},e),s))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(o)}return delete s.defaultValue,t}for(;n=this.nestingRegexp.exec(t);){var c=[];(s=(s=V({},i)).replace&&"string"!=typeof s.replace?s.replace:s).applyPostProcessor=!1,delete s.defaultValue;var u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(t){return t.trim()}));n[1]=l.shift(),c=l,u=!0}if((r=e(a.call(this,n[1].trim(),s),s))&&n[0]===t&&"string"!=typeof r)return r;"string"!=typeof r&&(r=S(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),r=""),u&&(r=c.reduce((function(t,e){return o.format(t,e,i.lng,V(V({},i),{},{interpolationkey:n[1].trim()}))}),r.trim())),t=t.replace(n[0],r),this.regexp.lastIndex=0}return t}}]),t}();function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Q(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?X(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t){var e={};return function(n,r,s){var o=r+JSON.stringify(s),i=e[o];return i||(i=t(r,s),e[o]=i),i(n)}}var tt=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.A)(this,t),this.logger=y.create("formatter"),this.options=e,this.formats={number:Z((function(t,e){var n=new Intl.NumberFormat(t,Q({},e));return function(t){return n.format(t)}})),currency:Z((function(t,e){var n=new Intl.NumberFormat(t,Q(Q({},e),{},{style:"currency"}));return function(t){return n.format(t)}})),datetime:Z((function(t,e){var n=new Intl.DateTimeFormat(t,Q({},e));return function(t){return n.format(t)}})),relativetime:Z((function(t,e){var n=new Intl.RelativeTimeFormat(t,Q({},e));return function(t){return n.format(t,e.range||"day")}})),list:Z((function(t,e){var n=new Intl.ListFormat(t,Q({},e));return function(t){return n.format(t)}}))},this.init(e)}return(0,o.A)(t,[{key:"init",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}},{key:"add",value:function(t,e){this.formats[t.toLowerCase().trim()]=e}},{key:"addCached",value:function(t,e){this.formats[t.toLowerCase().trim()]=Z(e)}},{key:"format",value:function(t,e,n){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce((function(t,e){var o=function(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var s=r[1].substring(0,r[1].length-1);"currency"===e&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):"relativetime"===e&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach((function(t){if(t){var e,r=(e=t.split(":"),(0,d.A)(e)||(0,p.A)(e)||(0,h.A)(e)||(0,f.A)()),s=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[s.trim()]||(n[s.trim()]=o),"false"===o&&(n[s.trim()]=!1),"true"===o&&(n[s.trim()]=!0),isNaN(o)||(n[s.trim()]=parseInt(o,10))}}))}return{formatName:e,formatOptions:n}}(e),i=o.formatName,a=o.formatOptions;if(r.formats[i]){var c=t;try{var u=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},l=u.locale||u.lng||s.locale||s.lng||n;c=r.formats[i](t,l,Q(Q(Q({},a),s),u))}catch(t){r.logger.warn(t)}return c}return r.logger.warn("there was no format function for ".concat(i)),t}),t)}}]),t}();function et(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var rt=function(t){(0,a.A)(l,t);var e,n,r=(e=l,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,u.A)(e);if(n){var s=(0,u.A)(this).constructor;t=Reflect.construct(r,arguments,s)}else t=r.apply(this,arguments);return(0,c.A)(this,t)});function l(t,e,n){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,s.A)(this,l),o=r.call(this),O&&v.call((0,i.A)(o)),o.backend=t,o.store=e,o.services=n,o.languageUtils=n.languageUtils,o.options=a,o.logger=y.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(n,a.backend,a),o}return(0,o.A)(l,[{key:"queueLoad",value:function(t,e,n,r){var s=this,o={},i={},a={},c={};return t.forEach((function(t){var r=!0;e.forEach((function(e){var a="".concat(t,"|").concat(e);!n.reload&&s.store.hasResourceBundle(t,e)?s.state[a]=2:s.state[a]<0||(1===s.state[a]?void 0===i[a]&&(i[a]=!0):(s.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===c[e]&&(c[e]=!0)))})),r||(a[t]=!0)})),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(t,e,n){var r=t.split("|"),s=r[0],o=r[1];e&&this.emit("failedLoading",s,o,e),n&&this.store.addResourceBundle(s,o,n),this.state[t]=e?-1:2;var i={};this.queue.forEach((function(n){var r,a,c,u,l;r=n.loaded,a=o,(u=(c=k(r,[s],Object)).obj)[l=c.k]=u[l]||[],u[l].push(a),function(t,e){void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)}(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(t){i[t]||(i[t]={});var e=n.loaded[t];e.length&&e.forEach((function(e){void 0===i[t][e]&&(i[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(t){return!t.done}))}},{key:"read",value:function(t,e,n){var r=this,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:t,ns:e,fcName:n,tried:s,wait:o,callback:i});else{this.readingCalls++;var a=function(a,c){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}a&&c&&s<r.maxRetries?setTimeout((function(){r.read.call(r,t,e,n,s+1,2*o,i)}),o):i(a,c)},c=this.backend[n].bind(this.backend);if(2!==c.length)return c(t,e,a);try{var u=c(t,e);u&&"function"==typeof u.then?u.then((function(t){return a(null,t)})).catch(a):a(null,u)}catch(t){a(t)}}}},{key:"prepareLoading",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var o=this.queueLoad(t,e,r,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach((function(t){n.loadOne(t)}))}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.split("|"),s=r[0],o=r[1];this.read(s,o,"read",void 0,void 0,(function(r,i){r&&e.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(s," failed"),r),!r&&i&&e.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(s),i),e.loaded(t,r,i)}))}},{key:"saveMissing",value:function(t,e,n,r,s){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(e,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var a=nt(nt({},o),{},{isUpdate:s}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var u;(u=5===c.length?c(t,e,n,r,a):c(t,e,n,r))&&"function"==typeof u.then?u.then((function(t){return i(null,t)})).catch(i):i(null,u)}catch(t){i(t)}else c(t,e,n,r,i,a)}t&&t[0]&&this.store.addResource(t[0],e,n,r)}}}]),l}(v);function st(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if("object"===(0,r.A)(t[1])&&(e=t[1]),"string"==typeof t[1]&&(e.defaultValue=t[1]),"string"==typeof t[2]&&(e.tDescription=t[2]),"object"===(0,r.A)(t[2])||"object"===(0,r.A)(t[3])){var n=t[3]||t[2];Object.keys(n).forEach((function(t){e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ot(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function it(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?it(Object(n),!0).forEach((function(e){(0,l.A)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ct(){}var ut=function(t){(0,a.A)(d,t);var e,n,l=(e=d,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,u.A)(e);if(n){var s=(0,u.A)(this).constructor;t=Reflect.construct(r,arguments,s)}else t=r.apply(this,arguments);return(0,c.A)(this,t)});function d(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,s.A)(this,d),t=l.call(this),O&&v.call((0,i.A)(t)),t.options=ot(n),t.services={},t.logger=y,t.modules={external:[]},e=(0,i.A)(t),Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})),r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),(0,c.A)(t,(0,i.A)(t));setTimeout((function(){t.init(n,r)}),0)}return t}return(0,o.A)(d,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));var r=st();function s(t){return t?"function"==typeof t?new t:t:null}if(this.options=at(at(at({},r),this.options),ot(e)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=at(at({},r.interpolation),this.options.interpolation)),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){var o;this.modules.logger?y.init(s(this.modules.logger),this.options):y.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=tt);var i=new B(this.options);this.store=new L(this.options.resources,this.options);var a=this.services;a.logger=y,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new W(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(a.formatter=s(o),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new G(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new rt(s(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];t.emit.apply(t,[e].concat(r))})),this.modules.languageDetector&&(a.languageDetector=s(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=s(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new $(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];t.emit.apply(t,[e].concat(r))})),this.modules.external.forEach((function(e){e.init&&e.init(t)}))}if(this.format=this.options.interpolation.format,n||(n=ct),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(e){t[e]=function(){var n;return(n=t.store)[e].apply(n,arguments),t}}));var u=b(),l=function(){var e=function(e,r){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),u.resolve(r),n(e,r)};if(t.languages&&"v1"!==t.options.compatibilityAPI&&!t.isInitialized)return e(null,t.t.bind(t));t.changeLanguage(t.options.lng,e)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),u}},{key:"loadResources",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct,r="string"==typeof t?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var s=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach((function(t){s.indexOf(t)<0&&s.push(t)}))};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(t){return o(t)})),this.options.preload&&this.options.preload.forEach((function(t){return o(t)})),this.services.backendConnector.load(s,this.options.ns,(function(t){t||e.resolvedLanguage||!e.language||e.setResolvedLanguage(e.language),n(t)}))}else n(null)}},{key:"reloadResources",value:function(t,e,n){var r=b();return t||(t=this.languages),e||(e=this.options.ns),n||(n=ct),this.services.backendConnector.reload(t,e,(function(t){r.resolve(),n(t)})),r}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&D.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(var e=0;e<this.languages.length;e++){var n=this.languages[e];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(t,e){var n=this;this.isLanguageChangingTo=t;var r=b();this.emit("languageChanging",t);var s=function(t){n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.resolvedLanguage=void 0,n.setResolvedLanguage(t)},o=function(o){t||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||s(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(t){!function(t,o){o?(s(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),e&&e(t,(function(){return n.t.apply(n,arguments)}))}(t,i)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(t,e,n){var s=this,o=function t(e,o){var i;if("object"!==(0,r.A)(o)){for(var a=arguments.length,c=new Array(a>2?a-2:0),u=2;u<a;u++)c[u-2]=arguments[u];i=s.options.overloadTranslationOptionHandler([e,o].concat(c))}else i=at({},o);i.lng=i.lng||t.lng,i.lngs=i.lngs||t.lngs,i.ns=i.ns||t.ns,i.keyPrefix=i.keyPrefix||n||t.keyPrefix;var l,d=s.options.keySeparator||".";return l=i.keyPrefix&&Array.isArray(e)?e.map((function(t){return"".concat(i.keyPrefix).concat(d).concat(t)})):i.keyPrefix?"".concat(i.keyPrefix).concat(d).concat(e):e,s.t(l,i)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o.keyPrefix=n,o}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(t,n){var r=e.services.backendConnector.state["".concat(t,"|").concat(n)];return-1===r||2===r};if(n.precheck){var a=n.precheck(this,i);if(void 0!==a)return a}return!(!this.hasResourceBundle(r,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,t)||s&&!i(o,t)))}},{key:"loadNamespaces",value:function(t,e){var n=this,r=b();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach((function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)})),this.loadResources((function(t){r.resolve(),e&&e(t)})),r):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=b();"string"==typeof t&&(t=[t]);var r=this.options.preload||[],s=t.filter((function(t){return r.indexOf(t)<0}));return s.length?(this.options.preload=r.concat(s),this.loadResources((function(t){n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";var e=this.services&&this.services.languageUtils||new B(st());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct,r=at(at(at({},this.options),e),{isClone:!0}),s=new d(r);return void 0===e.debug&&void 0===e.prefix||(s.logger=s.logger.clone(e)),["store","services","language"].forEach((function(e){s[e]=t[e]})),s.services=at({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new $(s.services,s.options),s.translator.on("*",(function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];s.emit.apply(s,[t].concat(n))})),s.init(r,n),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),d}(v);(0,l.A)(ut,"createInstance",(function(){return new ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}));var lt=ut.createInstance();lt.createInstance=ut.createInstance,lt.createInstance,lt.dir,lt.init,lt.loadResources,lt.reloadResources,lt.use,lt.changeLanguage,lt.getFixedT,lt.t,lt.exists,lt.setDefaultNamespace,lt.hasLoadedNamespace,lt.loadNamespaces,lt.loadLanguages}}]);