@maestro_io/maestro-web-sdk 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1.maestro-web-sdk.esm.js +2 -0
- package/dist/1.maestro-web-sdk.esm.js.map +1 -0
- package/dist/1.maestro-web-sdk.umd.js +2 -0
- package/dist/1.maestro-web-sdk.umd.js.map +1 -0
- package/dist/10.maestro-web-sdk.esm.js +2 -0
- package/dist/10.maestro-web-sdk.esm.js.map +1 -0
- package/dist/10.maestro-web-sdk.umd.js +2 -0
- package/dist/10.maestro-web-sdk.umd.js.map +1 -0
- package/dist/11.maestro-web-sdk.esm.js +2 -0
- package/dist/11.maestro-web-sdk.esm.js.map +1 -0
- package/dist/11.maestro-web-sdk.umd.js +2 -0
- package/dist/11.maestro-web-sdk.umd.js.map +1 -0
- package/dist/12.maestro-web-sdk.esm.js +2 -0
- package/dist/12.maestro-web-sdk.esm.js.map +1 -0
- package/dist/12.maestro-web-sdk.umd.js +2 -0
- package/dist/12.maestro-web-sdk.umd.js.map +1 -0
- package/dist/13.maestro-web-sdk.esm.js +2 -0
- package/dist/13.maestro-web-sdk.esm.js.map +1 -0
- package/dist/13.maestro-web-sdk.umd.js +2 -0
- package/dist/13.maestro-web-sdk.umd.js.map +1 -0
- package/dist/14.maestro-web-sdk.esm.js +2 -0
- package/dist/14.maestro-web-sdk.esm.js.map +1 -0
- package/dist/14.maestro-web-sdk.umd.js +2 -0
- package/dist/14.maestro-web-sdk.umd.js.map +1 -0
- package/dist/15.maestro-web-sdk.esm.js +2 -0
- package/dist/15.maestro-web-sdk.esm.js.map +1 -0
- package/dist/15.maestro-web-sdk.umd.js +2 -0
- package/dist/15.maestro-web-sdk.umd.js.map +1 -0
- package/dist/16.maestro-web-sdk.esm.js +2 -0
- package/dist/16.maestro-web-sdk.esm.js.map +1 -0
- package/dist/16.maestro-web-sdk.umd.js +2 -0
- package/dist/16.maestro-web-sdk.umd.js.map +1 -0
- package/dist/17.maestro-web-sdk.esm.js +2 -0
- package/dist/17.maestro-web-sdk.esm.js.map +1 -0
- package/dist/17.maestro-web-sdk.umd.js +2 -0
- package/dist/17.maestro-web-sdk.umd.js.map +1 -0
- package/dist/18.maestro-web-sdk.esm.js +2 -0
- package/dist/18.maestro-web-sdk.esm.js.map +1 -0
- package/dist/18.maestro-web-sdk.umd.js +2 -0
- package/dist/18.maestro-web-sdk.umd.js.map +1 -0
- package/dist/19.maestro-web-sdk.esm.js +2 -0
- package/dist/19.maestro-web-sdk.esm.js.map +1 -0
- package/dist/19.maestro-web-sdk.umd.js +2 -0
- package/dist/19.maestro-web-sdk.umd.js.map +1 -0
- package/dist/2.maestro-web-sdk.esm.js +2 -0
- package/dist/2.maestro-web-sdk.esm.js.map +1 -0
- package/dist/2.maestro-web-sdk.umd.js +2 -0
- package/dist/2.maestro-web-sdk.umd.js.map +1 -0
- package/dist/20.maestro-web-sdk.esm.js +2 -0
- package/dist/20.maestro-web-sdk.esm.js.map +1 -0
- package/dist/20.maestro-web-sdk.umd.js +2 -0
- package/dist/20.maestro-web-sdk.umd.js.map +1 -0
- package/dist/21.maestro-web-sdk.esm.js +2 -0
- package/dist/21.maestro-web-sdk.esm.js.map +1 -0
- package/dist/21.maestro-web-sdk.umd.js +2 -0
- package/dist/21.maestro-web-sdk.umd.js.map +1 -0
- package/dist/22.maestro-web-sdk.esm.js +2 -0
- package/dist/22.maestro-web-sdk.esm.js.map +1 -0
- package/dist/22.maestro-web-sdk.umd.js +2 -0
- package/dist/22.maestro-web-sdk.umd.js.map +1 -0
- package/dist/23.maestro-web-sdk.esm.js +2 -0
- package/dist/23.maestro-web-sdk.esm.js.map +1 -0
- package/dist/23.maestro-web-sdk.umd.js +2 -0
- package/dist/23.maestro-web-sdk.umd.js.map +1 -0
- package/dist/24.maestro-web-sdk.esm.js +2 -0
- package/dist/24.maestro-web-sdk.esm.js.map +1 -0
- package/dist/24.maestro-web-sdk.umd.js +2 -0
- package/dist/24.maestro-web-sdk.umd.js.map +1 -0
- package/dist/3.maestro-web-sdk.esm.js +2 -0
- package/dist/3.maestro-web-sdk.esm.js.map +1 -0
- package/dist/3.maestro-web-sdk.umd.js +2 -0
- package/dist/3.maestro-web-sdk.umd.js.map +1 -0
- package/dist/4.maestro-web-sdk.esm.js +2 -0
- package/dist/4.maestro-web-sdk.esm.js.map +1 -0
- package/dist/4.maestro-web-sdk.umd.js +2 -0
- package/dist/4.maestro-web-sdk.umd.js.map +1 -0
- package/dist/5.maestro-web-sdk.esm.js +2 -0
- package/dist/5.maestro-web-sdk.esm.js.map +1 -0
- package/dist/5.maestro-web-sdk.umd.js +2 -0
- package/dist/5.maestro-web-sdk.umd.js.map +1 -0
- package/dist/6.maestro-web-sdk.esm.js +2 -0
- package/dist/6.maestro-web-sdk.esm.js.map +1 -0
- package/dist/6.maestro-web-sdk.umd.js +2 -0
- package/dist/6.maestro-web-sdk.umd.js.map +1 -0
- package/dist/7.maestro-web-sdk.esm.js +2 -0
- package/dist/7.maestro-web-sdk.esm.js.map +1 -0
- package/dist/7.maestro-web-sdk.umd.js +2 -0
- package/dist/7.maestro-web-sdk.umd.js.map +1 -0
- package/dist/8.maestro-web-sdk.esm.js +2 -0
- package/dist/8.maestro-web-sdk.esm.js.map +1 -0
- package/dist/8.maestro-web-sdk.umd.js +2 -0
- package/dist/8.maestro-web-sdk.umd.js.map +1 -0
- package/dist/9.maestro-web-sdk.esm.js +2 -0
- package/dist/9.maestro-web-sdk.esm.js.map +1 -0
- package/dist/9.maestro-web-sdk.umd.js +2 -0
- package/dist/9.maestro-web-sdk.umd.js.map +1 -0
- package/dist/bundle-report.html +53 -0
- package/dist/maestro-web-sdk.esm.js +1 -1
- package/dist/maestro-web-sdk.esm.js.map +1 -1
- package/dist/maestro-web-sdk.umd.js +1 -1
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.d.ts +99 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/TournamentBracketCard.js +33 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/index.d.ts +2 -0
- package/dist/src/modules/fantasy/view/TournamentBracketCard/index.js +2 -0
- package/dist/src/modules/hello-world/HelloWorldView.js +8 -2
- package/dist/src/modules/stats/utils/playerStatusUtils.d.ts +4 -0
- package/dist/src/modules/stats/utils/playerStatusUtils.js +16 -0
- package/dist/src/modules/stats/view/CareerMatchup/CareerMatchup.d.ts +100 -0
- package/dist/src/modules/stats/view/CareerMatchup/CareerMatchup.js +59 -0
- package/dist/src/modules/stats/view/CareerMatchup/index.d.ts +1 -0
- package/dist/src/modules/stats/view/CareerMatchup/index.js +1 -0
- package/dist/src/modules/stats/view/PlayerSeasonStats/ExpandedPlayerStats.js +20 -23
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsCard.js +4 -1
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsMinified.js +5 -1
- package/dist/src/modules/stats/view/PlayerSeasonStats/PlayerSeasonStatsView.js +21 -4
- package/dist/src/services/StatsService.d.ts +12 -4
- package/dist/src/services/StatsService.js +35 -28
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(this.webpackJsonpMaestroWebSDK=this.webpackJsonpMaestroWebSDK||[]).push([[2],{100:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return g})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return _}));const r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function s(t,e){return r.call(t)===`[object ${e}]`}function o(t){return s(t,"ErrorEvent")}function a(t){return s(t,"DOMError")}function c(t){return s(t,"DOMException")}function u(t){return s(t,"String")}function d(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function l(t){return s(t,"Object")}function h(t){return"undefined"!=typeof Event&&y(t,Event)}function p(t){return"undefined"!=typeof Element&&y(t,Element)}function f(t){return s(t,"RegExp")}function _(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function m(t){return l(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}},101:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return a}));var r=n(129),i=n(102),s=n(105),o=n(103);n(111);function a(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);"function"==typeof i&&function(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,c(t,"__sentry_original__",e)}catch(t){}}(i,r),t[e]=i}function c(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){i.a&&o.c.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function u(t){if(Object(s.b)(t))return{message:t.message,name:t.name,stack:t.stack,...l(t)};if(Object(s.c)(t)){const e={type:t.type,target:d(t.target),currentTarget:d(t.currentTarget),...l(t)};return"undefined"!=typeof CustomEvent&&Object(s.d)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function d(t){try{return Object(s.a)(t)?Object(r.a)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function l(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 h(t){return function t(e,n){if(function(t){if(!Object(s.f)(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||"Object"===e}catch(t){return!0}}(e)){const r=n.get(e);if(void 0!==r)return r;const i={};n.set(e,i);for(const r of Object.keys(e))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){const r=n.get(e);if(void 0!==r)return r;const i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,new Map)}},102:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},103:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return o}));var r=n(102),i=n(92);const s=["debug","info","warn","error","log","assert","trace"],o={};function a(t){if(!("console"in i.a))return t();const e=i.a.console,n={},r=Object.keys(o);r.forEach(t=>{const r=o[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.a?s.forEach(n=>{e[n]=(...e)=>{t&&a(()=>{i.a.console[n](`Sentry Logger [${n}]:`,...e)})}}):s.forEach(t=>{e[t]=()=>{}}),e}()},104:function(t,e,n){"use strict";(function(t){function r(t){return t&&t.Math==Math?t:void 0}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o}));const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof t&&r(t)||function(){return this}()||{};function s(){return i}function o(t,e,n){const r=n||i,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}}).call(this,n(43))},105:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return f})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return a})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return h})),n.d(e,"l",(function(){return m}));const r=Object.prototype.toString;function i(t){switch(r.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(t,Error)}}function s(t,e){return r.call(t)===`[object ${e}]`}function o(t){return s(t,"String")}function a(t){return null===t||function(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}(t)||"object"!=typeof t&&"function"!=typeof t}function c(t){return s(t,"Object")}function u(t){return"undefined"!=typeof Event&&_(t,Event)}function d(t){return"undefined"!=typeof Element&&_(t,Element)}function l(t){return s(t,"RegExp")}function h(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function p(t){return c(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function f(t){return"number"==typeof t&&t!=t}function _(t,e){try{return t instanceof e}catch(t){return!1}}function m(t){return!("object"!=typeof t||null===t||!t.__isVue&&!t._isVue)}},107:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return d}));var r=n(122),i=n(100),s=n(109);function o(t,e,n){if(!(e in t))return;const r=t[e],i=n(r);if("function"==typeof i)try{c(i,r)}catch(t){}t[e]=i}function a(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,a(t,"__sentry_original__",e)}function u(t){return t.__sentry_original__}function d(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function l(t){if(Object(i.d)(t))return{message:t.message,name:t.name,stack:t.stack,...p(t)};if(Object(i.f)(t)){const e={type:t.type,target:h(t.target),currentTarget:h(t.currentTarget),...p(t)};return"undefined"!=typeof CustomEvent&&Object(i.g)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function h(t){try{return Object(i.c)(t)?Object(r.c)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function p(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 f(t,e=40){const n=Object.keys(l(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(s.d)(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:Object(s.d)(r,e)}return""}function _(t){return function t(e,n){if(Object(i.i)(e)){const r=n.get(e);if(void 0!==r)return r;const i={};n.set(e,i);for(const r of Object.keys(e))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){const r=n.get(e);if(void 0!==r)return r;const i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e}(t,new Map)}},109:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return i}));var r=n(100);function i(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:t.slice(0,e)+"..."}function s(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n="'{snip} "+n),s<r&&(n+=" {snip}"),n}function o(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const r=t[e];try{n.push(String(r))}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!!Object(r.l)(t)&&(Object(r.k)(e)?e.test(t):!!Object(r.l)(e)&&(n?t===e:t.includes(e)))}(t,e,n))}},110:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},111:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));n(105);function r(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:t.slice(0,e)+"..."}function i(t,e){let n=t;const r=n.length;if(r<=150)return n;e>r&&(e=r);let i=Math.max(e-60,0);i<5&&(i=0);let s=Math.min(i+140,r);return s>r-5&&(s=r),s===r&&(i=Math.max(s-140,0)),n=n.slice(i,s),i>0&&(n="'{snip} "+n),s<r&&(n+=" {snip}"),n}},112:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o}));const r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function s(...t){const e=t.sort((t,e)=>t[0]-e[0]).map(t=>t[1]);return(t,n=0)=>{const s=[],o=t.split("\n");for(let t=n;t<o.length;t++){const n=o[t];if(n.length>1024)continue;const i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(const t of e){const e=t(i);if(e){s.push(e);break}}if(s.length>=50)break}}return function(t){if(!t.length)return[];const e=Array.from(t);/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());return e.slice(0,50).map(t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"}))}(s)}}function o(t){return Array.isArray(t)?s(...t):t}function a(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}},113:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t){try{return t&&"function"==typeof t&&t.name||"<anonymous>"}catch(t){return"<anonymous>"}}},122:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return o}));var r=n(100),i=n(104);const s=Object(i.b)();function o(t,e={}){try{let n=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let d;const l=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++<r&&(d=a(n,l),!("html"===d||s>1&&o+i.length*u+d.length>=h));)i.push(d),o+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function a(t,e){const n=t,i=[];let s,o,a,c,u;if(!n||!n.tagName)return"";i.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=>{i.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&i.push("#"+n.id),s=n.className,s&&Object(r.l)(s))for(o=s.split(/\s+/),u=0;u<o.length;u++)i.push("."+o[u]);const l=["aria-label","type","name","title","alt"];for(u=0;u<l.length;u++)a=l[u],c=n.getAttribute(a),c&&i.push(`[${a}="${c}"]`);return i.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}},123:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return d}));var r=n(124),i=n(104);const s=Object(i.b)(),o={nowSeconds:()=>Date.now()/1e3};const a=Object(r.b)()?function(){try{return Object(r.a)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=s;if(!t||!t.now)return;return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===a?o:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},u=o.nowSeconds.bind(o),d=c.nowSeconds.bind(c);let l;const h=(()=>{const{performance:t}=s;if(!t||!t.now)return void(l="none");const e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,i=r<36e5,o=t.timing&&t.timing.navigationStart,a="number"==typeof o?Math.abs(o+e-n):36e5;return i||a<36e5?r<=a?(l="timeOrigin",t.timeOrigin):(l="navigationStart",o):(l="dateNow",n)})()}).call(this,n(110)(t))},124:function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return s}));var i=n(125);function s(){return!Object(i.b)()&&"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(t,e){return t.require(e)}}).call(this,n(44),n(110)(t))},125:function(t,e,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},126:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c}));var r=n(100),i=n(127),s=n(107),o=n(112);function a(e,n=100,a=1/0){try{return function e(n,a,c=1/0,u=1/0,d=Object(i.a)()){const[l,h]=d;if(null==a||["number","boolean","string"].includes(typeof a)&&!Object(r.h)(a))return a;const p=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t&&n===t)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(Object(r.m)(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Object(o.b)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const i=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}(n,a);if(!p.startsWith("[object "))return p;if(a.__sentry_skip_normalization__)return a;const f="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:c;if(0===f)return p.replace("object ","");if(l(a))return"[Circular ~]";const _=a;if(_&&"function"==typeof _.toJSON)try{const t=_.toJSON();return e("",t,f-1,u,d)}catch(t){}const m=Array.isArray(a)?[]:{};let g=0;const y=Object(s.b)(a);for(const t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(g>=u){m[t]="[MaxProperties ~]";break}const n=y[t];m[t]=e(t,n,f-1,u,d),g++}return h(a),m}("",e,n,a)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function c(t,e=3,n=102400){const r=a(t,e);return i=r,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?c(t,e-1,n):r;var i}}).call(this,n(43))},127:function(t,e,n){"use strict";function r(){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}}]}n.d(e,"a",(function(){return r}))},128:function(t,e,n){(function(e){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,o=parseInt,a="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),d=Object.prototype.toString,l=Math.max,h=Math.min,p=function(){return u.Date.now()};function f(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==d.call(t)}(t))return NaN;if(f(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=f(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var a=i.test(t);return a||s.test(t)?o(t.slice(2),a?2:8):r.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,s,o,a,c,u=0,d=!1,m=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=r,s=i;return r=i=void 0,u=e,o=t.apply(s,n)}function v(t){return u=t,a=setTimeout(S,e),d?y(t):o}function b(t){var n=t-c;return void 0===c||n>=e||n<0||m&&t-u>=s}function S(){var t=p();if(b(t))return E(t);a=setTimeout(S,function(t){var n=e-(t-c);return m?h(n,s-(t-u)):n}(t))}function E(t){return a=void 0,g&&r?y(t):(r=i=void 0,o)}function w(){var t=p(),n=b(t);if(r=arguments,i=this,c=t,n){if(void 0===a)return v(c);if(m)return a=setTimeout(S,e),y(c)}return void 0===a&&(a=setTimeout(S,e)),o}return e=_(e)||0,f(n)&&(d=!!n.leading,s=(m="maxWait"in n)?l(_(n.maxWait)||0,e):s,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=i=a=void 0},w.flush=function(){return void 0===a?o:E(p())},w}}).call(this,n(43))},129:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(105),i=n(92);const s=Object(i.b)();function o(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,o=0;const c=" > ",u=c.length;let d;const l=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||80;for(;n&&s++<r&&(d=a(n,l),!("html"===d||s>1&&o+i.length*u+d.length>=h));)i.push(d),o+=d.length,n=n.parentNode;return i.reverse().join(c)}catch(t){return"<unknown>"}}function a(t,e){const n=t,i=[];let o,a,c,u,d;if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const l=e&&e.length?e.filter(t=>n.getAttribute(t)).map(t=>[t,n.getAttribute(t)]):null;if(l&&l.length)l.forEach(t=>{i.push(`[${t[0]}="${t[1]}"]`)});else if(n.id&&i.push("#"+n.id),o=n.className,o&&Object(r.i)(o))for(a=o.split(/\s+/),d=0;d<a.length;d++)i.push("."+a[d]);const h=["aria-label","type","name","title","alt"];for(d=0;d<h.length;d++)c=h[d],u=n.getAttribute(c),u&&i.push(`[${c}="${u}"]`);return i.join("")}},130:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(105),i=n(131),s=n(101),o=n(113);function a(e,n=100,a=1/0){try{return function e(n,a,c=1/0,u=1/0,d=Object(i.a)()){const[l,h]=d;if(null==a||["number","boolean","string"].includes(typeof a)&&!Object(r.e)(a))return a;const p=function(e,n){try{if("domain"===e&&n&&"object"==typeof n&&n._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if(void 0!==t&&n===t)return"[Global]";if("undefined"!=typeof window&&n===window)return"[Window]";if("undefined"!=typeof document&&n===document)return"[Document]";if(Object(r.l)(n))return"[VueViewModel]";if(Object(r.j)(n))return"[SyntheticEvent]";if("number"==typeof n&&n!=n)return"[NaN]";if("function"==typeof n)return`[Function: ${Object(o.a)(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const i=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(i)?`[HTMLElement: ${i}]`:`[object ${i}]`}catch(t){return`**non-serializable** (${t})`}}(n,a);if(!p.startsWith("[object "))return p;if(a.__sentry_skip_normalization__)return a;const f="number"==typeof a.__sentry_override_normalization_depth__?a.__sentry_override_normalization_depth__:c;if(0===f)return p.replace("object ","");if(l(a))return"[Circular ~]";const _=a;if(_&&"function"==typeof _.toJSON)try{const t=_.toJSON();return e("",t,f-1,u,d)}catch(t){}const m=Array.isArray(a)?[]:{};let g=0;const y=Object(s.b)(a);for(const t in y){if(!Object.prototype.hasOwnProperty.call(y,t))continue;if(g>=u){m[t]="[MaxProperties ~]";break}const n=y[t];m[t]=e(t,n,f-1,u,d),g++}return h(a),m}("",e,n,a)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}}).call(this,n(43))},131:function(t,e,n){"use strict";function r(){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}}]}n.d(e,"a",(function(){return r}))},88:function(t,e,n){"use strict";n.r(e),n.d(e,"FunctionToString",(function(){return a})),n.d(e,"Hub",(function(){return P})),n.d(e,"InboundFilters",(function(){return w})),n.d(e,"ModuleMetadata",(function(){return lt})),n.d(e,"SDK_VERSION",(function(){return ht})),n.d(e,"Scope",(function(){return U})),n.d(e,"addBreadcrumb",(function(){return gt})),n.d(e,"addGlobalEventProcessor",(function(){return M})),n.d(e,"addTracingExtensions",(function(){return ye})),n.d(e,"captureEvent",(function(){return _t})),n.d(e,"captureException",(function(){return pt})),n.d(e,"captureMessage",(function(){return ft})),n.d(e,"close",(function(){return Rt})),n.d(e,"configureScope",(function(){return mt})),n.d(e,"createTransport",(function(){return Ee})),n.d(e,"extractTraceparentData",(function(){return ne})),n.d(e,"flush",(function(){return xt})),n.d(e,"getActiveTransaction",(function(){return Vt})),n.d(e,"getCurrentHub",(function(){return z})),n.d(e,"getHubFromCarrier",(function(){return H})),n.d(e,"lastEventId",(function(){return Ot})),n.d(e,"makeMain",(function(){return Y})),n.d(e,"makeMultiplexedTransport",(function(){return Re})),n.d(e,"setContext",(function(){return yt})),n.d(e,"setExtra",(function(){return bt})),n.d(e,"setExtras",(function(){return vt})),n.d(e,"setMeasurement",(function(){return Oe})),n.d(e,"setTag",(function(){return Et})),n.d(e,"setTags",(function(){return St})),n.d(e,"setUser",(function(){return wt})),n.d(e,"spanStatusfromHttpCode",(function(){return ae})),n.d(e,"startTransaction",(function(){return kt})),n.d(e,"trace",(function(){return De})),n.d(e,"withScope",(function(){return Tt})),n.d(e,"WINDOW",(function(){return Ce})),n.d(e,"BrowserClient",(function(){return nn})),n.d(e,"makeFetchTransport",(function(){return sn})),n.d(e,"makeXHRTransport",(function(){return on})),n.d(e,"chromeStackLineParser",(function(){return dn})),n.d(e,"defaultStackLineParsers",(function(){return bn})),n.d(e,"defaultStackParser",(function(){return Sn})),n.d(e,"geckoStackLineParser",(function(){return pn})),n.d(e,"opera10StackLineParser",(function(){return gn})),n.d(e,"opera11StackLineParser",(function(){return vn})),n.d(e,"winjsStackLineParser",(function(){return _n})),n.d(e,"eventFromException",(function(){return Je})),n.d(e,"eventFromMessage",(function(){return Xe})),n.d(e,"exceptionFromError",(function(){return He})),n.d(e,"createUserFeedbackEnvelope",(function(){return en})),n.d(e,"captureUserFeedback",(function(){return cr})),n.d(e,"defaultIntegrations",(function(){return er})),n.d(e,"forceLoad",(function(){return ir})),n.d(e,"init",(function(){return nr})),n.d(e,"onLoad",(function(){return sr})),n.d(e,"showReportDialog",(function(){return rr})),n.d(e,"wrap",(function(){return or})),n.d(e,"Replay",(function(){return Vo})),n.d(e,"BrowserTracing",(function(){return Ta})),n.d(e,"defaultRequestInstrumentationOptions",(function(){return ya})),n.d(e,"instrumentOutgoingRequests",(function(){return va})),n.d(e,"makeBrowserOfflineTransport",(function(){return Na})),n.d(e,"onProfilingStartRouteTransaction",(function(){return Za})),n.d(e,"BrowserProfilingIntegration",(function(){return Ja})),n.d(e,"GlobalHandlers",(function(){return Tn})),n.d(e,"TryCatch",(function(){return Nn})),n.d(e,"Breadcrumbs",(function(){return Pn})),n.d(e,"LinkedErrors",(function(){return Zn})),n.d(e,"HttpContext",(function(){return Vn})),n.d(e,"Dedupe",(function(){return Jn})),n.d(e,"Integrations",(function(){return Ka}));var r={};n.r(r),n.d(r,"FunctionToString",(function(){return a})),n.d(r,"InboundFilters",(function(){return w}));var i={};n.r(i),n.d(i,"GlobalHandlers",(function(){return Tn})),n.d(i,"TryCatch",(function(){return Nn})),n.d(i,"Breadcrumbs",(function(){return Pn})),n.d(i,"LinkedErrors",(function(){return Zn})),n.d(i,"HttpContext",(function(){return Vn})),n.d(i,"Dedupe",(function(){return Jn}));var s=n(107);let o;class a{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=a.id}setupOnce(){o=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Object(s.f)(this)||this;return o.apply(e,t)}}catch(t){}}}a.__initStatic();var c=n(104);const u=["debug","info","warn","error","log","assert","trace"],d={};function l(t){if(!("console"in c.a))return t();const e=c.a.console,n={},r=Object.keys(d);r.forEach(t=>{const r=d[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}const h=function(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?u.forEach(n=>{e[n]=(...e)=>{t&&l(()=>{c.a.console[n](`Sentry Logger [${n}]:`,...e)})}}):u.forEach(t=>{e[t]=()=>{}}),e}();var p=n(109);function f(){const t=c.a,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function _(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function m(t){const{message:e,event_id:n}=t;if(e)return e;const r=_(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function g(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=n||"Error")}function y(t,e){const n=_(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 v(t){if(t&&t.__sentry_captured__)return!0;try{Object(s.a)(t,"__sentry_captured__",!0)}catch(t){}return!1}function b(t){return Array.isArray(t)?t:[t]}const S=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],E=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class w{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=w.id,this._options=t}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(w);if(e){const r=n.getClient(),i=r?r.getOptions():{};return function(t,e){if(e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Event dropped due to being internal Sentry Error.\nEvent: "+m(t)),!0;if(function(t,e){if(t.type||!e||!e.length)return!1;return function(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:t="",value:n=""}=e&&e[e.length-1]||{};return[""+n,`${t}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Cannot extract message for event "+m(t)),[]}}return[]}(t).some(t=>Object(p.c)(t,e))}(t,e.ignoreErrors))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+m(t)),!0;if(function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&Object(p.c)(n,e)}(t,e.ignoreTransactions))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: "+m(t)),!0;if(function(t,e){if(!e||!e.length)return!1;const n=T(t);return!!n&&Object(p.c)(n,e)}(t,e.denyUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${m(t)}.\nUrl: ${T(t)}`),!0;if(!function(t,e){if(!e||!e.length)return!0;const n=T(t);return!n||Object(p.c)(n,e)}(t,e.allowUrls))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${m(t)}.\nUrl: ${T(t)}`),!0;return!1}(t,function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:S],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:E],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i))?null:t}}return t};n.id=this.name,t(n)}}function T(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("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Cannot extract url for event "+m(t)),null}}w.__initStatic();var k=n(123);const x="production";var R,O=n(100);function D(t){return new N(e=>{e(t)})}function C(t){return new N((e,n)=>{n(t)})}!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(R||(R={}));class N{constructor(t){N.prototype.__init.call(this),N.prototype.__init2.call(this),N.prototype.__init3.call(this),N.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 N((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 N((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?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&&(Object(O.n)(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)})}}}function I(t){const e=Object(k.c)(),n={sid:f(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Object(s.c)({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,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&j(n,t),n}function j(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||Object(k.c)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:f()),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)}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=L()}static clone(t){const e=new U;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata},e._propagationContext={...t._propagationContext}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&j(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}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof U?e:this}return t instanceof U?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):Object(O.i)(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=L(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:Object(k.b)(),...t};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...A(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(t,e,n,r=0){return new N((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const a=o({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.id&&null===a&&h.log(`Event processor "${o.id}" dropped event`),Object(O.n)(a)?a.then(e=>this._notifyEventProcessors(t,e,n,r+1).then(i)).then(null,s):this._notifyEventProcessors(t,a,n,r+1).then(i).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?b(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function A(){return Object(c.c)("globalEventProcessors",()=>[])}function M(t){A().push(t)}function L(){return{traceId:f(),spanId:f().substring(16)}}const B=100;class P{constructor(t,e=new U,n=4){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=U.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:f(),r=new Error("Sentry syntheticException");return this._withClient((i,s)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},s)}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:f(),i=new Error(t);return this._withClient((s,o)=>{s.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},o)}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:f();return t.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=B}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:Object(k.b)(),...t},a=i?l(()=>i(o,e)):o;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,s))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=Y(this);try{t(this)}finally{Y(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n){this.getClient()?console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&function(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),j(t,n)}(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=x}=n&&n.getOptions()||{},{userAgent:s}=c.a.navigator||{},o=I({release:r,environment:i,user:e.getUser(),...s&&{userAgent:s},...t}),a=e.getSession&&e.getSession();return a&&"ok"===a.status&&j(a,{status:"exited"}),this.endSession(),e.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=G().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function G(){return c.a.__SENTRY__=c.a.__SENTRY__||{extensions:{},hub:void 0},c.a}function Y(t){const e=G(),n=H(e);return q(e,t),n}function z(){const t=G();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return F(t)}function F(t=G()){return $(t)&&!H(t).isOlderThan(4)||q(t,new P),H(t)}function $(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function H(t){return Object(c.c)("hub",()=>new P,t)}function q(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}const W=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Z(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&i?":"+i:""}@${n}${s?":"+s:""}/${r?r+"/":r}${o}`}function V(t){const e=W.exec(t);if(!e)return void console.error("Invalid Sentry Dsn: "+t);const[n,r,i="",s,o="",a]=e.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const t=u.match(/^\d+/);t&&(u=t[0])}return J({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function J(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function X(t){const e="string"==typeof t?V(t):J(t);if(e&&function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return!0;const{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(h.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?function(t){return"http"===t||"https"===t}(r)?!e||!isNaN(parseInt(e,10))||(h.error("Invalid Sentry Dsn: Invalid port "+e),!1):(h.error("Invalid Sentry Dsn: Invalid protocol "+r),!1):(h.error("Invalid Sentry Dsn: Invalid projectId "+n),!1))}(e))return e}var K=n(126);function Q(t,e=[]){return[t,e]}function tt(t,e){const[n,r]=t;return[n,[...r,e]]}function et(t,e){const n=t[1];for(const t of n){if(e(t,t[0].type))return!0}return!1}function nt(t,e){return(e||new TextEncoder).encode(t)}function rt(t,e){const[n,r]=t;let i=JSON.stringify(n);function s(t){"string"==typeof i?i="string"==typeof t?i+t:[nt(i,e),t]:i.push("string"==typeof t?nt(t,e):t)}for(const t of r){const[e,n]=t;if(s(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(Object(K.a)(n))}s(t)}}return"string"==typeof i?i: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}(i)}function it(t,e){const n="string"==typeof t.data?nt(t.data,e):t.data;return[Object(s.c)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const st={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"};function ot(t){return st[t]}function at(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}const ct=new Map,ut=new Set;function dt(t,e){return function(t){if(c.a._sentryModuleMetadata)for(const e of Object.keys(c.a._sentryModuleMetadata)){const n=c.a._sentryModuleMetadata[e];if(ut.has(e))continue;ut.add(e);const r=t(e);for(const t of r.reverse())if(t.filename){ct.set(t.filename,n);break}}}(t),ct.get(e)}class lt{static __initStatic(){this.id="ModuleMetadata"}constructor(){this.name=lt.id}setupOnce(t,e){const n=e().getClient();if(!n||"function"!=typeof n.on)return;n.on("beforeEnvelope",t=>{et(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)}})});const r=n.getOptions().stackParser;t(t=>(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=dt(t,n.filename);e&&(n.module_metadata=e)}})}catch(t){}}(r,t),t))}}lt.__initStatic();const ht="7.68.0";function pt(t,e){return z().captureException(t,{captureContext:e})}function ft(t,e){const n="string"==typeof e?e:void 0,r="string"!=typeof e?{captureContext:e}:void 0;return z().captureMessage(t,n,r)}function _t(t,e){return z().captureEvent(t,e)}function mt(t){z().configureScope(t)}function gt(t){z().addBreadcrumb(t)}function yt(t,e){z().setContext(t,e)}function vt(t){z().setExtras(t)}function bt(t,e){z().setExtra(t,e)}function St(t){z().setTags(t)}function Et(t,e){z().setTag(t,e)}function wt(t){z().setUser(t)}function Tt(t){z().withScope(t)}function kt(t,e){return z().startTransaction({...t},e)}async function xt(t){const e=z().getClient();return e?e.flush(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Rt(t){const e=z().getClient();return e?e.close(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Ot(){return z().lastEventId()}function Dt(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=z().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var Ct=n(112);const Nt=Object(c.b)();function It(){if(!("fetch"in Nt))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function jt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}const Ut=Object(c.b)();const At=Object(c.b)(),Mt={},Lt={};function Bt(t){if(!Lt[t])switch(Lt[t]=!0,t){case"console":!function(){if(!("console"in c.a))return;u.forEach((function(t){t in c.a.console&&Object(s.e)(c.a.console,t,(function(e){return d[t]=e,function(...e){Gt("console",{args:e,level:t});const n=d[t];n&&n.apply(c.a.console,e)}}))}))}();break;case"dom":!function(){if(!At.document)return;const t=Gt.bind(null,"dom"),e=qt(t,!0);At.document.addEventListener("click",e,!1),At.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=At[e]&&At[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(s.e)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=qt(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch(t){}return e.call(this,n,r,i)}})),Object(s.e)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))})}();break;case"xhr":!function(){if(!At.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;Object(s.e)(t,"open",(function(t){return function(...e){const n=e[1],r=this.__sentry_xhr_v2__={method:Object(O.l)(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};Object(O.l)(n)&&"POST"===r.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const t=this.__sentry_xhr_v2__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}Gt("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Object(s.e)(this,"onreadystatechange",(function(t){return function(...e){return i(),t.apply(this,e)}})):this.addEventListener("readystatechange",i),Object(s.e)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this.__sentry_xhr_v2__;return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),Object(s.e)(t,"send",(function(t){return function(...e){const n=this.__sentry_xhr_v2__;return n&&void 0!==e[0]&&(n.body=e[0]),Gt("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":!function(){if(!function(){if(!It())return!1;if(jt(Nt.fetch))return!0;let t=!1;const e=Nt.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=jt(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}())return;Object(s.e)(c.a,"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:zt(e),method:Yt(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:zt(e),method:Yt(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Gt("fetch",{...i}),t.apply(c.a,e).then(t=>(Gt("fetch",{...i,endTimestamp:Date.now(),response:t}),t),t=>{throw Gt("fetch",{...i,endTimestamp:Date.now(),error:t}),t})}}))}();break;case"history":!function(){if(!function(){const t=Ut.chrome,e=t&&t.app&&t.app.runtime,n="history"in Ut&&!!Ut.history.pushState&&!!Ut.history.replaceState;return!e&&n}())return;const t=At.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=Ft,e=String(n);Ft=e,Gt("history",{from:t,to:e})}return t.apply(this,e)}}At.onpopstate=function(...e){const n=At.location.href,r=Ft;if(Ft=n,Gt("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},Object(s.e)(At.history,"pushState",e),Object(s.e)(At.history,"replaceState",e)}();break;case"error":Wt=At.onerror,At.onerror=function(t,e,n,r,i){return Gt("error",{column:r,error:i,line:n,msg:t,url:e}),!(!Wt||Wt.__SENTRY_LOADER__)&&Wt.apply(this,arguments)},At.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":Zt=At.onunhandledrejection,At.onunhandledrejection=function(t){return Gt("unhandledrejection",t),!(Zt&&!Zt.__SENTRY_LOADER__)||Zt.apply(this,arguments)},At.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("unknown instrumentation type:",t))}}function Pt(t,e){Mt[t]=Mt[t]||[],Mt[t].push(e),Bt(t)}function Gt(t,e){if(t&&Mt[t])for(const n of Mt[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Object(Ct.b)(n)}\nError:`,e)}}function Yt(t,e){return!!t&&"object"==typeof t&&!!t[e]}function zt(t){return"string"==typeof t?t:t?Yt(t,"url")?t.url:t.toString?t.toString():"":""}let Ft;let $t,Ht;function qt(t,e=!1){return n=>{if(!n||Ht===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const r="keypress"===n.type?"input":n.type;(void 0===$t||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Ht,n))&&(t({event:n,name:r,global:e}),Ht=n),clearTimeout($t),$t=At.setTimeout(()=>{$t=void 0},1e3)}}let Wt=null;let Zt=null;function Vt(t){return(t||z()).getScope().getTransaction()}let Jt=!1;function Xt(){const t=Vt();if(t){const e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}Xt.tag="sentry_tracingErrorCallback";const Kt=/^sentry-/;function Qt(t){if(!t)return;return function(t){if(0===Object.keys(t).length)return;return Object.entries(t).reduce((t,[e,n],r)=>{const i=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,s=0===r?i:`${t},${i}`;return s.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):s},"")}(Object.entries(t).reduce((t,[e,n])=>(n&&(t["sentry-"+e]=n),t),{}))}function te(t){return t.split(",").map(t=>t.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((t,[e,n])=>(t[e]=n,t),{})}const ee=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function ne(t){if(!t)return;const e=t.match(ee);if(!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function re(t,e){const n=ne(t),r=function(t){if(!Object(O.l)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce((t,e)=>({...t,...te(e)}),{});else{if(!t)return;e=te(t)}const n=Object.entries(e).reduce((t,[e,n])=>{if(e.match(Kt)){t[e.slice("sentry-".length)]=n}return t},{});return Object.keys(n).length>0?n:void 0}(e),{traceId:i,parentSpanId:s,parentSampled:o}=n||{},a={traceId:i||f(),spanId:f().substring(16),sampled:o};return s&&(a.parentSpanId=s),r&&(a.dsc=r),{traceparentData:n,dynamicSamplingContext:r,propagationContext:a}}function ie(t=f(),e=f().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${t}-${e}${r}`}class se{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class oe{constructor(t={}){this.traceId=t.traceId||f(),this.spanId=t.spanId||f().substring(16),this.startTimestamp=t.startTimestamp||Object(k.c)(),this.tags=t.tags||{},this.data=t.data||{},this.instrumenter=t.instrumenter||"sentry",this.origin=t.origin||"manual",t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.name&&(this.description=t.name),t.status&&(this.status=t.status),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}get name(){return this.description||""}set name(t){this.setName(t)}startChild(t){const e=new oe({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){const n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},h.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t)),this.setData("http.response.status_code",t);const e=ae(t);return"unknown_error"!==e&&this.setStatus(e),this}setName(t){this.description=t}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&h.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:Object(k.c)()}toTraceparent(){return ie(this.traceId,this.spanId,this.sampled)}toContext(){return Object(s.c)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Object(s.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Object(s.c)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId,origin:this.origin})}}function ae(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function ce(t,e,n){const r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:o}=n&&n.getUser()||{},a=Object(s.c)({environment:r.environment||x,release:r.release,user_segment:o,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",a),a}class ue extends oe{constructor(t,e){super(t),delete this.description,this._measurements={},this._contexts={},this._hub=e||z(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new se(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter(t=>t!==this&&t.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){const t=super.toContext();return Object(s.c)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||z(),e=t.getClient();if(!e)return{};const n=t.getScope(),r=ce(this.traceId,e,n),i=this.metadata.sampleRate;void 0!==i&&(r.sample_rate=""+i);const s=this.metadata.source;return s&&"url"!==s&&(r.transaction=this.name),void 0!==this.sampled&&(r.sampled=String(this.sampled)),r}setHub(t){this._hub=t}}const de={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},le=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class he extends se{constructor(t,e,n,r){super(r),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:Object(k.c)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class pe extends ue{constructor(t,e,n=de.idleTimeout,r=de.finalTimeout,i=de.heartbeatInterval,s=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=le[4],s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("Setting idle transaction on scope. Span ID: "+this.spanId),e.configureScope(t=>t.setSpan(this))),this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=le[3],this.finish())},this._finalTimeout)}finish(t=Object(k.c)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const n=e.startTimestamp<t,r=(this._finalTimeout+this._idleTimeout)/1e3,i=e.endTimestamp-this.startTimestamp<r;if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const t=JSON.stringify(e,void 0,2);n?i||h.log("[Tracing] discarding Span since it finished after Transaction final timeout",t):h.log("[Tracing] discarding Span since it happened after Transaction was finished",t)}return n&&i}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new he(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=le[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=le[1],this.finish(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] pushActivity: "+t),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] popActivity "+t),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=Object(k.c)();this._idleTimeoutCanceledPermanently?(this._finishReason=le[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=le[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function fe(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function _e(t,e,n){if(!Dt(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),function(t){if(Object(O.h)(t)||"number"!=typeof t&&"boolean"!=typeof t)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.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)}.`),!1;if(t<0||t>1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1;return!0}(r)?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t)}function me(t,e){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",s=t.instrumenter||"sentry";i!==s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error(`A transaction was started with instrumenter=\`${s}\`, but the SDK is configured with the \`${i}\` instrumenter.\nThe transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let o=new ue(t,this);return o=_e(o,r,{parentSampled:t.parentSampled,transactionContext:t,...e}),o.sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function ge(t,e,n,r,i,s,o){const a=t.getClient(),c=a&&a.getOptions()||{};let u=new pe(e,t,n,r,o,i);return u=_e(u,c,{parentSampled:e.parentSampled,transactionContext:e,...s}),u.sampled&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),a&&a.emit&&a.emit("startTransaction",u),u}function ye(){const t=G();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=me),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=fe),Jt||(Jt=!0,Pt("error",Xt),Pt("unhandledrejection",Xt)))}class ve 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}}function be(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length<t))return C(new ve("Not adding Promise because buffer limit was reached."));const i=r();return-1===e.indexOf(i)&&e.push(i),i.then(()=>n(i)).then(null,()=>n(i).then(null,()=>{})),i},drain:function(t){return new N((n,r)=>{let i=e.length;if(!i)return n(!0);const s=setTimeout(()=>{t&&t>0&&n(!1)},t);e.forEach(t=>{D(t).then(()=>{--i||(clearTimeout(s),n(!0))},r)})})}}}function Se(t,e=Date.now()){const n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(""+t);return isNaN(r)?6e4:r-e}function Ee(t,e,n=be(t.bufferSize||30)){let r={};function i(i){const s=[];if(et(i,(e,n)=>{const i=ot(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(r,i)){const r=we(e,n);t.recordDroppedEvent("ratelimit_backoff",i,r)}else s.push(e)}),0===s.length)return D();const o=Q(i[0],s),a=e=>{et(o,(n,r)=>{const i=we(n,r);t.recordDroppedEvent(e,ot(r),i)})};return n.add(()=>e({body:rt(o,t.textEncoder)}).then(t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),r=function(t,{statusCode:e,headers:n},r=Date.now()){const i={...t},s=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(s)for(const t of s.trim().split(",")){const[e,n]=t.split(":",2),s=parseInt(e,10),o=1e3*(isNaN(s)?60:s);if(n)for(const t of n.split(";"))i[t]=r+o;else i.all=r+o}else o?i.all=r+Se(o,r):429===e&&(i.all=r+6e4);return i}(r,t),t),t=>{throw a("network_error"),t})).then(t=>t,t=>{if(t instanceof ve)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Skipped sending event because buffer is full."),a("queue_overflow"),D();throw t})}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function we(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}function Te(t){const e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return`${e}//${t.host}${n}${t.path?"/"+t.path:""}/api/`}function ke(t,e={}){const n="string"==typeof e?e:e.tunnel,r="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${Te(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return Object(s.h)({sentry_key:t.publicKey,sentry_version:"7",...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,r)}`}function xe(t,e){let n;return et(t,(t,r)=>(e.includes(r)&&(n=Array.isArray(t)?t[1]:void 0),!!n)),n}function Re(t,e){return n=>{const r=t(n),i={};function s(e,r){const s=r?`${e}:${r}`:e;if(!i[s]){const o=V(e);if(!o)return;const a=ke(o);i[s]=r?function(t,e){return n=>{const r=t(n);return{send:async t=>{const n=xe(t,["event","transaction","profile","replay_event"]);return n&&(n.release=e),r.send(t)},flush:t=>r.flush(t)}}}(t,r)({...n,url:a}):t({...n,url:a})}return i[s]}return{send:async function(t){const n=e({envelope:t,getEvent:function(e){const n=e&&e.length?e:["event"];return xe(t,n)}}).map(t=>"string"==typeof t?s(t,void 0):s(t.dsn,t.release)).filter(t=>!!t);return 0===n.length&&n.push(r),(await Promise.all(n.map(e=>e.send(t))))[0]},flush:async function(t){const e=[...Object.keys(i).map(t=>i[t]),r];return(await Promise.all(e.map(e=>e.flush(t)))).every(t=>t)}}}}function Oe(t,e,n){const r=Vt();r&&r.setMeasurement(t,e,n)}function De(t,e,n=(()=>{})){const r={...t};void 0!==r.name&&void 0===r.description&&(r.description=r.name);const i=z(),s=i.getScope(),o=s.getSpan();const a=function(){if(Dt())return o?o.startChild(r):i.startTransaction(r)}();function c(){a&&a.finish(),i.getScope().setSpan(o)}let u;s.setSpan(a);try{u=e(a)}catch(t){throw a&&a.setStatus("internal_error"),n(t),c(),t}return Object(O.n)(u)?Promise.resolve(u).then(()=>{c()},t=>{a&&a.setStatus("internal_error"),n(t),c()}):c(),u}const Ce=c.a;let Ne=0;function Ie(){return Ne>0}function je(){Ne++,setTimeout(()=>{Ne--})}function Ue(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if(Object(s.f)(t))return t}catch(e){return t}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=r.map(t=>Ue(t,e));return t.apply(this,i)}catch(t){throw je(),Tt(n=>{n.addEventProcessor(t=>(e.mechanism&&(g(t,void 0,void 0),y(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),pt(t)}),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}Object(s.g)(r,t),Object(s.a)(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}function Ae(t,e,n,r){const i=at(n),o=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=function(t,e,n,r){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:Z(r)},...i&&{trace:Object(s.c)({...i})}}}(t,i,r,e);delete t.sdkProcessingMetadata;return Q(a,[[{type:o},t]])}const Me=[];function Le(t){const e=t.defaultIntegrations||[],n=t.integrations;let r;e.forEach(t=>{t.isDefaultInstance=!0}),r=Array.isArray(n)?[...e,...n]:"function"==typeof n?b(n(e)):e;const i=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])}(r),s=function(t,e){for(let n=0;n<t.length;n++)if(!0===e(t[n]))return n;return-1}(i,t=>"Debug"===t.name);if(-1!==s){const[t]=i.splice(s,1);i.push(t)}return i}function Be(t,e){e[t.name]=t,-1===Me.indexOf(t.name)&&(t.setupOnce(M,z),Me.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("Integration installed: "+t.name))}function Pe(t,e,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:s=1e3}=t,o={...e,event_id:e.event_id||n.event_id||f(),timestamp:e.timestamp||Object(k.b)()},a=n.integrations||t.integrations.map(t=>t.name);!function(t,e){const{environment:n,release:r,dist:i,maxValueLength:s=250}=e;"environment"in t||(t.environment="environment"in e?n:x);void 0===t.release&&void 0!==r&&(t.release=r);void 0===t.dist&&void 0!==i&&(t.dist=i);t.message&&(t.message=Object(p.d)(t.message,s));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=Object(p.d)(o.value,s));const a=t.request;a&&a.url&&(a.url=Object(p.d)(a.url,s))}(o,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(o,a),void 0===e.type&&function(t,e){const n=c.a._sentryDebugIds;if(!n)return;let r;const i=Ge.get(e);i?r=i:(r=new Map,Ge.set(e,r));const s=Object.keys(n).reduce((t,i)=>{let s;const o=r.get(i);o?s=o:(s=e(i),r.set(i,s));for(let e=s.length-1;e>=0;e--){const r=s[e];if(r.filename){t[r.filename]=n[i];break}}return t},{});try{t.exception.values.forEach(t=>{t.stacktrace.frames.forEach(t=>{t.filename&&(t.debug_id=s[t.filename])})})}catch(t){}}(o,t.stackParser);let u=r;n.captureContext&&(u=U.clone(u).update(n.captureContext));let d=D(o);if(u){if(u.getAttachments){const t=[...n.attachments||[],...u.getAttachments()];t.length&&(n.attachments=t)}d=u.applyToEvent(o,n)}return d.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:Object(K.a)(t.data,e,n)}}))},...t.user&&{user:Object(K.a)(t.user,e,n)},...t.contexts&&{contexts:Object(K.a)(t.contexts,e,n)},...t.extra&&{extra:Object(K.a)(t.extra,e,n)}};t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Object(K.a)(t.contexts.trace.data,e,n)));t.spans&&(r.spans=t.spans.map(t=>(t.data&&(t.data=Object(K.a)(t.data,e,n)),t)));return r}(t,i,s):t))}const Ge=new WeakMap;const Ye="Not capturing exception because it's already been captured.";function ze(t){return void 0===t.type}function Fe(t){return"transaction"===t.type}var $e=n(125);function He(t,e){const n=We(t,e),r={type:e&&e.name,value:Ve(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function qe(t,e){return{exception:{values:[He(t,e)]}}}function We(t,e){const n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(Ze.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}const Ze=/Minified React error #\d+;/i;function Ve(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Je(t,e,n,r){const i=Ke(t,e,n&&n.syntheticException||void 0,r);return y(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),D(i)}function Xe(t,e,n="info",r,i){const s=Qe(t,e,r&&r.syntheticException||void 0,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),D(s)}function Ke(t,e,n,r,i){let s;if(Object(O.e)(e)&&e.error){return qe(t,e.error)}if(Object(O.a)(e)||Object(O.b)(e)){const i=e;if("stack"in e)s=qe(t,e);else{const e=i.name||(Object(O.a)(i)?"DOMError":"DOMException"),o=i.message?`${e}: ${i.message}`:e;s=Qe(t,o,n,r),g(s,o)}return"code"in i&&(s.tags={...s.tags,"DOMException.code":""+i.code}),s}if(Object(O.d)(e))return qe(t,e);if(Object(O.i)(e)||Object(O.f)(e)){return s=function(t,e,n,r){const i=z().getClient(),s=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:Object(O.f)(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:tn(e,{isUnhandledRejection:r})}]},extra:{__serialized__:Object(K.b)(e,s)}};if(n){const e=We(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i),y(s,{synthetic:!0}),s}return s=Qe(t,e,n,r),g(s,""+e,void 0),y(s,{synthetic:!0}),s}function Qe(t,e,n,r){const i={message:e};if(r&&n){const r=We(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}function tn(t,{isUnhandledRejection:e}){const n=Object(s.d)(t),r=e?"promise rejection":"exception";if(Object(O.e)(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(Object(O.f)(t)){return`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}`}return`Object captured as ${r} with keys: ${n}`}function en(t,{metadata:e,tunnel:n,dsn:r}){return Q({event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:Z(r)}},[function(t){return[{type:"user_report"},t]}(t)])}class nn extends class{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},t.dsn?this._dsn=X(t.dsn):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("No DSN provided, client will not do anything."),this._dsn){const e=ke(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}}captureException(t,e,n){if(v(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(Ye));let r=e&&e.event_id;return this._process(this.eventFromException(t,e).then(t=>this._captureEvent(t,e,n)).then(t=>{r=t})),r}captureMessage(t,e,n,r){let i=n&&n.event_id;const s=Object(O.j)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(s.then(t=>this._captureEvent(t,n,r)).then(t=>{i=t})),i}captureEvent(t,e,n){if(e&&e.originalException&&v(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(Ye));let r=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then(t=>{r=t})),r}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),j(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("SDK not enabled, will not capture session.")}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._isClientDoneProcessing(t).then(n=>e.flush(t).then(t=>n&&t)):D(!0)}close(t){return this.flush(t).then(t=>(this.getOptions().enabled=!1,t))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach(t=>{t&&Be(t,e)}),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){Be(t,this._integrations)}sendEvent(t,e={}){if(this.emit("beforeSendEvent",t,e),this._dsn){let n=Ae(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=tt(n,it(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then(e=>this.emit("afterSendEvent",t,e),null)}}sendSession(t){if(this._dsn){const e=function(t,e,n,r){const i=at(n);return Q({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!r&&{dsn:Z(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.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))}_updateSessionFromEvent(t,e){let n=!1,r=!1;const i=e.exception&&e.exception.values;if(i){r=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const s="ok"===t.status;(s&&0===t.errors||s&&n)&&(j(t,{...n&&{status:"crashed"},errors:t.errors||Number(r||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new N(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._dsn}_prepareEvent(t,e,n){const r=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),Pe(r,t,e,n).then(t=>{if(null===t)return t;const{propagationContext:e}=t.sdkProcessingMetadata||{};if(!(t.contexts&&t.contexts.trace)&&e){const{traceId:r,spanId:i,parentSpanId:s,dsc:o}=e;t.contexts={trace:{trace_id:r,span_id:i,parent_span_id:s},...t.contexts};const a=o||ce(r,this,n);t.sdkProcessingMetadata={dynamicSamplingContext:a,...t.sdkProcessingMetadata}}return t})}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then(t=>t.event_id,t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?h.log(e.message):h.warn(e)}})}_processEvent(t,e,n){const r=this.getOptions(),{sampleRate:i}=r;if(!this._isEnabled())return C(new ve("SDK not enabled, will not capture event.","log"));const s=Fe(t),o=ze(t),a=t.type||"error",c=`before send for type \`${a}\``;if(o&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),C(new ve(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u="replay_event"===a?"replay":a;return this._prepareEvent(t,e,n).then(n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,t),new ve("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;return function(t,e){const n=e+" must return `null` or a valid event.";if(Object(O.n)(t))return t.then(t=>{if(!Object(O.i)(t)&&null!==t)throw new ve(n);return t},t=>{throw new ve(`${e} rejected with ${t}`)});if(!Object(O.i)(t)&&null!==t)throw new ve(n);return t}(function(t,e,n){const{beforeSend:r,beforeSendTransaction:i}=t;if(ze(e)&&r)return r(e,n);if(Fe(e)&&i)return i(e,n);return e}(r,n,e),c)}).then(r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,t),new ve(c+" returned `null`, will not send event.","log");const i=n&&n.getSession();!s&&i&&this._updateSessionFromEvent(i,r);const o=r.transaction_info;if(s&&o&&r.transaction!==t.transaction){const t="custom";r.transaction_info={...o,source:t}}return this.sendEvent(r,e),r}).then(null,t=>{if(t instanceof ve)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new ve("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))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Error while sending event:",t)});("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Transport disabled")}_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]}})}}{constructor(t){const e=Ce.SENTRY_SDK_SOURCE||Object($e.a)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:e+":@sentry/browser",version:ht}],version:ht},super(t),t.sendClientReports&&Ce.document&&Ce.document.addEventListener("visibilitychange",()=>{"hidden"===Ce.document.visibilityState&&this._flushOutcomes()})}eventFromException(t,e){return Je(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Xe(this._options.stackParser,t,e,n,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("SDK not enabled, will not capture user feedback."));const e=en(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(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("Sending outcomes:",t);const e=(n=t,Q((r=this._options.tunnel&&Z(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:i||Object(k.b)(),discarded_events:n}]]));var n,r,i;this._sendEnvelope(e)}}let rn=void 0;function sn(t,e=function(){if(rn)return rn;if(jt(Ce.fetch))return rn=Ce.fetch.bind(Ce);const t=Ce.document;let e=Ce.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){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return rn=e.bind(Ce)}()){let n=0,r=0;return Ee(t,(function(i){const s=i.body.length;n+=s,r++;const o={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{return e(t.url,o).then(t=>(n-=s,r--,{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 rn=void 0,n-=s,r--,C(t)}}))}function on(t){return Ee(t,(function(e){return new N((n,r)=>{const i=new XMLHttpRequest;i.onerror=r,i.onreadystatechange=()=>{4===i.readyState&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)})}))}function an(t,e,n,r){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}const cn=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,un=/\((\S*)(?::(\d+))(?::(\d+))\)/,dn=[30,t=>{const e=cn.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=un.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=En(e[1]||"?",e[2]);return an(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],ln=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,hn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,pn=[50,t=>{const e=ln.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=hn.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]||"?";return[n,t]=En(n,t),an(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],fn=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_n=[40,t=>{const e=fn.exec(t);return e?an(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],mn=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,gn=[10,t=>{const e=mn.exec(t);return e?an(e[2],e[3]||"?",+e[1]):void 0}],yn=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,vn=[20,t=>{const e=yn.exec(t);return e?an(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],bn=[dn,pn,_n],Sn=Object(Ct.a)(...bn),En=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};var wn=n(122);class Tn{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=Tn.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:kn,onunhandledrejection:xn}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}var e}}function kn(){Pt("error",t=>{const[e,n,r]=Dn();if(!e.getIntegration(Tn))return;const{msg:i,url:s,line:o,column:a,error:c}=t;if(Ie()||c&&c.__sentry_own_request__)return;const u=void 0===c&&Object(O.l)(i)?function(t,e,n,r){let i=Object(O.e)(t)?t.message:t,s="Error";const o=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);o&&(s=o[1],i=o[2]);return Rn({exception:{values:[{type:s,value:i}]}},e,n,r)}(i,s,o,a):Rn(Ke(n,c||i,void 0,r,!1),s,o,a);u.level="error",On(e,c,u,"onerror")})}function xn(){Pt("unhandledrejection",t=>{const[e,n,r]=Dn();if(!e.getIntegration(Tn))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(Ie()||i&&i.__sentry_own_request__)return!0;const s=Object(O.j)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:Ke(n,i,void 0,r,!0);s.level="error",On(e,i,s,"onunhandledrejection")})}function Rn(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,l=Object(O.l)(e)&&e.length>0?e:Object(wn.b)();return 0===c.length&&c.push({colno:u,filename:l,function:"?",in_app:!0,lineno:d}),t}function On(t,e,n,r){y(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function Dn(){const t=z(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}Tn.__initStatic();const Cn=["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"];class Nn{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=Nn.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&Object(s.e)(Ce,"setTimeout",In),this._options.setInterval&&Object(s.e)(Ce,"setInterval",In),this._options.requestAnimationFrame&&Object(s.e)(Ce,"requestAnimationFrame",jn),this._options.XMLHttpRequest&&"XMLHttpRequest"in Ce&&Object(s.e)(XMLHttpRequest.prototype,"send",Un);const t=this._options.eventTarget;if(t){(Array.isArray(t)?t:Cn).forEach(An)}}}function In(t){return function(...e){const n=e[0];return e[0]=Ue(n,{mechanism:{data:{function:Object(Ct.b)(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function jn(t){return function(e){return t.apply(this,[Ue(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(Ct.b)(t)},handled:!1,type:"instrument"}})])}}function Un(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&Object(s.e)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:Object(Ct.b)(e)},handled:!1,type:"instrument"}},r=Object(s.f)(e);return r&&(n.mechanism.data.handler=Object(Ct.b)(r)),Ue(e,n)}))}),t.apply(this,e)}}function An(t){const e=Ce,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(s.e)(n,"addEventListener",(function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ue(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Object(Ct.b)(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,Ue(r,{mechanism:{data:{function:"addEventListener",handler:Object(Ct.b)(r),target:t},handled:!1,type:"instrument"}}),i])}})),Object(s.e)(n,"removeEventListener",(function(t){return function(e,n,r){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,r)}catch(t){}return t.call(this,e,i,r)}})))}Nn.__initStatic();const Mn=["fatal","error","warning","log","info","debug"];function Ln(t){return"warn"===t?"warning":Mn.includes(t)?t:"log"}function Bn(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}}class Pn{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=Pn.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;if(this.options.console&&Pt("console",Yn),this.options.dom&&Pt("dom",(t=this.options.dom,function(e){let n,r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{const t=e.event;n=function(t){return!!t&&!!t.target}(t)?Object(wn.c)(t.target,{keyAttrs:r,maxStringLength:i}):Object(wn.c)(t,{keyAttrs:r,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&z().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&Pt("xhr",zn),this.options.fetch&&Pt("fetch",Fn),this.options.history&&Pt("history",$n),this.options.sentry){const t=z().getClient();t&&t.on&&t.on("beforeSendEvent",Gn)}}}function Gn(t){z().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:m(t)},{event:t})}function Yn(t){for(let e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:Ln(t.level),message:Object(p.a)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Object(p.a)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}z().addBreadcrumb(e,{input:t.args,level:t.level})}function zn(t){const{startTimestamp:e,endTimestamp:n}=t,r=t.xhr.__sentry_xhr_v2__;if(!e||!n||!r)return;const{method:i,url:s,status_code:o,body:a}=r,c={method:i,url:s,status_code:o},u={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n};z().addBreadcrumb({category:"xhr",data:c,type:"http"},u)}function Fn(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};z().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{const r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};z().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}function $n(t){let e=t.from,n=t.to;const r=Bn(Ce.location.href);let i=Bn(e);const s=Bn(n);i.path||(i=r),r.protocol===s.protocol&&r.host===s.host&&(n=s.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),z().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Hn(t,e,n=250,r,i,s,o){if(!(s.exception&&s.exception.values&&o&&Object(O.g)(o.originalException,Error)))return;const a=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;var c,u;a&&(s.exception.values=(c=function t(e,n,r,i,s,o,a,c){if(o.length>=r+1)return o;let u=[...o];if(Object(O.g)(i[s],Error)){qn(a,c);const o=e(n,i[s]),d=u.length;Wn(o,s,d,c),u=t(e,n,r,i[s],s,[o,...u],o,d)}return Array.isArray(i.errors)&&i.errors.forEach((i,o)=>{if(Object(O.g)(i,Error)){qn(a,c);const d=e(n,i),l=u.length;Wn(d,`errors[${o}]`,l,c),u=t(e,n,r,i,s,[d,...u],d,l)}}),u}(t,e,i,o.originalException,r,s.exception.values,a,0),u=n,c.map(t=>(t.value&&(t.value=Object(p.d)(t.value,u)),t))))}function qn(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function Wn(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}}Pn.__initStatic();class Zn{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=Zn.id,this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(t,e){t((t,n)=>{const r=e(),i=r.getClient(),s=r.getIntegration(Zn);if(!i||!s)return t;const o=i.getOptions();return Hn(He,o.stackParser,o.maxValueLength,s._key,s._limit,t,n),t})}}Zn.__initStatic();class Vn{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Vn.id}setupOnce(){M(t=>{if(z().getIntegration(Vn)){if(!Ce.navigator&&!Ce.location&&!Ce.document)return t;const e=t.request&&t.request.url||Ce.location&&Ce.location.href,{referrer:n}=Ce.document||{},{userAgent:r}=Ce.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},s={...t.request,...e&&{url:e},headers:i};return{...t,request:s}}return t})}}Vn.__initStatic();class Jn{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Jn.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(Jn);if(n){try{if(function(t,e){if(!e)return!1;if(function(t,e){const n=t.message,r=e.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!Kn(t,e))return!1;if(!Xn(t,e))return!1;return!0}(t,e))return!0;if(function(t,e){const n=Qn(e),r=Qn(t);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!Kn(t,e))return!1;if(!Xn(t,e))return!1;return!0}(t,e))return!0;return!1}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function Xn(t,e){let n=tr(t),r=tr(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,r=r,r.length!==n.length)return!1;for(let t=0;t<r.length;t++){const e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function Kn(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function Qn(t){return t.exception&&t.exception.values&&t.exception.values[0]}function tr(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Jn.__initStatic();const er=[new r.InboundFilters,new r.FunctionToString,new Nn,new Pn,new Tn,new Zn,new Jn,new Vn];function nr(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=er),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),Ce.SENTRY_RELEASE&&Ce.SENTRY_RELEASE.id&&(t.release=Ce.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:Object(Ct.c)(t.stackParser||Sn),integrations:Le(t),transport:t.transport||(It()?sn:on)};!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?h.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=z();n.getScope().update(e.initialScope);const r=new t(e);n.bindClient(r)}(nn,e),t.autoSessionTracking&&function(){if(void 0===Ce.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=z();if(!t.captureSession)return;ar(t),Pt("history",({from:t,to:e})=>{void 0!==t&&t!==e&&ar(z())})}()}function rr(t={},e=z()){if(!Ce.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Global document not defined in showReportDialog call"));const{client:n,scope:r}=e.getStackTop(),i=t.dsn||n&&n.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("DSN not configured for showReportDialog call"));r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const s=Ce.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(t,e){const n=X(t);if(!n)return"";const r=Te(n)+"embed/error-page/";let i="dsn="+Z(n);for(const t in e)if("dsn"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(i+="&name="+encodeURIComponent(t.name)),t.email&&(i+="&email="+encodeURIComponent(t.email))}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${r}?${i}`}(i,t),t.onLoad&&(s.onload=t.onLoad);const o=Ce.document.head||Ce.document.body;o?o.appendChild(s):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.error("Not injecting report dialog. No injection point found in HTML")}function ir(){}function sr(t){t()}function or(t){return Ue(t)()}function ar(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function cr(t){const e=z().getClient();e&&e.captureUserFeedback(t)}var ur=n(105),dr=n(101),lr=(n(111),n(92));function hr(){const t=lr.a,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 pr(){return Date.now()/1e3}const fr=function(){const{performance:t}=lr.a;if(!t||!t.now)return pr;const e=Date.now()-t.now(),n=null==t.timeOrigin?e:t.timeOrigin;return()=>(n+t.now())/1e3}();let _r;const mr=(()=>{const{performance:t}=lr.a;if(!t||!t.now)return void(_r="none");const e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,i=r<36e5,s=t.timing&&t.timing.navigationStart,o="number"==typeof s?Math.abs(s+e-n):36e5;return i||o<36e5?r<=o?(_r="timeOrigin",t.timeOrigin):(_r="navigationStart",s):(_r="dateNow",n)})();var gr=n(103);const yr="production",vr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var br;!function(t){t[t.PENDING=0]="PENDING";t[t.RESOLVED=1]="RESOLVED";t[t.REJECTED=2]="REJECTED"}(br||(br={}));class Sr{constructor(t){Sr.prototype.__init.call(this),Sr.prototype.__init2.call(this),Sr.prototype.__init3.call(this),Sr.prototype.__init4.call(this),this._state=br.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new Sr((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 Sr((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{i?n(r):e(r)})})}__init(){this._resolve=t=>{this._setResult(br.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(br.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{this._state===br.PENDING&&(Object(ur.k)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===br.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===br.RESOLVED&&t[1](this._value),this._state===br.REJECTED&&t[2](this._value),t[0]=!0)})}}}function Er(){return Object(lr.c)("globalEventProcessors",()=>[])}function wr(t,e,n,r=0){return new Sr((i,s)=>{const o=t[r];if(null===e||"function"!=typeof o)i(e);else{const a=o({...e},n);vr&&o.id&&null===a&&gr.c.log(`Event processor "${o.id}" dropped event`),Object(ur.k)(a)?a.then(e=>wr(t,e,n,r+1).then(i)).then(null,s):wr(t,a,n,r+1).then(i).then(null,s)}})}function Tr(t){const e=fr(),n={sid:hr(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return Object(dr.c)({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&&kr(n,t),n}function kr(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||fr(),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:hr()),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 xr(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),kr(t,n)}n(130);var Rr=n(102);new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Or(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:o,tags:a,origin:c}=Dr(t);return Object(dr.c)({data:r,op:i,parent_span_id:s,span_id:e,status:o,tags:a,trace_id:n,origin:c})}function Dr(t){return function(t){return"function"==typeof t.getSpanJSON}(t)?t.getSpanJSON():"function"==typeof t.toJSON?t.toJSON():{}}function Cr(t){const{traceFlags:e}=t.spanContext();return Boolean(1&e)}new WeakMap;function Nr(t){if(t)return function(t){return t instanceof Pr||"function"==typeof t}(t)||function(t){return Object.keys(t).some(t=>Ir.includes(t))}(t)?{captureContext:t}:t}const Ir=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function jr(t,e){return qr().captureException(t,Nr(e))}function Ur(){return qr().getClient()}function Ar(){return qr().getScope()}function Mr(t){return t.transaction}function Lr(t){const e=Ur();if(!e)return{};const n=function(t,e,n){const r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},o=Object(dr.c)({environment:r.environment||yr,release:r.release,user_segment:s,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",o),o}(Dr(t).trace_id||"",e,Ar()),r=Mr(t);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:s,source:o}=r.metadata;null!=s&&(n.sample_rate=""+s);const a=Dr(r);return o&&"url"!==o&&(n.transaction=a.description),n.sampled=String(Cr(r)),e.emit&&e.emit("createDsc",n),n}function Br(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;!function(t,e){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=e,c=Object(dr.c)(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const u=Object(dr.c)(r);u&&Object.keys(u).length&&(t.tags={...u,...t.tags});const d=Object(dr.c)(i);d&&Object.keys(d).length&&(t.user={...d,...t.user});const l=Object(dr.c)(s);l&&Object.keys(l).length&&(t.contexts={...l,...t.contexts});o&&(t.level=o);a&&(t.transaction=a)}(t,e),r&&function(t,e){t.contexts={trace:Or(e),...t.contexts};const n=Mr(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:Lr(e),...t.sdkProcessingMetadata};const r=Dr(n).description;r&&(t.tags={transaction:r,...t.tags})}}(t,r),function(t,e){t.fingerprint=t.fingerprint?function(t){return Array.isArray(t)?t:[t]}(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,i),function(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}(t,s)}class Pr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Gr()}static clone(t){return t?t.clone():new Pr}clone(){const t=new Pr;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._span=this._span,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}setClient(t){this._client=t}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&kr(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}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}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;if(e instanceof Pr){const t=e.getScopeData();this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&Object.keys(t.user).length&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint.length&&(this._fingerprint=t.fingerprint),e.getRequestSession()&&(this._requestSession=e.getRequestSession()),t.propagationContext&&(this._propagationContext=t.propagationContext)}else if(Object(ur.f)(e)){const e=t;this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)}return 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._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Gr(),this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const r={timestamp:pr(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,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}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:e,_contexts:n,_tags:r,_extra:i,_user:s,_level:o,_fingerprint:a,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:l,_span:h}=this;return{breadcrumbs:t,attachments:e,contexts:n,tags:r,extra:i,user:s,level:o,fingerprint:a||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:l,span:h}}applyToEvent(t,e={},n=[]){Br(t,this.getScopeData());return wr([...n,...Er(),...this._eventProcessors],t,e)}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:hr();if(!this._client)return gr.c.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:hr();if(!this._client)return gr.c.warn("No client configured on scope - will not capture message!"),r;const i=new Error(t);return this._client.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:hr();return this._client?(this._client.captureEvent(t,{...e,event_id:n},this),n):(gr.c.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)}}function Gr(){return{traceId:hr(),spanId:hr().substring(16)}}const Yr=parseFloat("7.120.4"),zr=100;class Fr{constructor(t,e,n,r=Yr){let i,s;this._version=r,e?i=e:(i=new Pr,i.setClient(t)),n?s=n:(s=new Pr,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){const e=this.getStackTop();e.client=t,e.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}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()}withScope(t){const e=this.pushScope();let n;try{n=t(e)}catch(t){throw this.popScope(),t}return Object(ur.k)(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]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:hr(),r=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:r,...e,event_id:n}),n}captureMessage(t,e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:hr(),i=new Error(t);return this.getScope().captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureEvent(t,e){const n=e&&e.event_id?e.event_id:hr();return t.type||(this._lastEventId=n),this.getScope().captureEvent(t,{...e,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=zr}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const o={timestamp:pr(),...t},a=i?Object(gr.b)(()=>i(o,e)):o;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e),this.getIsolationScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e),this.getIsolationScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e),this.getIsolationScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=Hr(this);try{t(this)}finally{Hr(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return vr&&gr.c.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);if(vr&&!n){this.getClient()?gr.c.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):gr.c.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&xr(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:r,environment:i=yr}=n&&n.getOptions()||{},{userAgent:s}=lr.a.navigator||{},o=Tr({release:r,environment:i,user:e.getUser(),...s&&{userAgent:s},...t}),a=e.getSession&&e.getSession();return a&&"ok"===a.status&&kr(a,{status:"exited"}),this.endSession(),e.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_callExtensionMethod(t,...e){const n=$r().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);vr&&gr.c.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function $r(){return lr.a.__SENTRY__=lr.a.__SENTRY__||{extensions:{},hub:void 0},lr.a}function Hr(t){const e=$r(),n=Vr(e);return Jr(e,t),n}function qr(){const t=$r();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return Wr(t)}function Wr(t=$r()){return Zr(t)&&!Vr(t).isOlderThan(Yr)||Jr(t,new Fr),Vr(t)}function Zr(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function Vr(t){return Object(lr.c)("hub",()=>new Fr,t)}function Jr(t,e){if(!t)return!1;return(t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0}var Xr=n(129),Kr=n(113);const Qr={},ti={};function ei(t,e){Qr[t]=Qr[t]||[],Qr[t].push(e)}function ni(t,e){ti[t]||(e(),ti[t]=!0)}function ri(t,e){const n=t&&Qr[t];if(n)for(const r of n)try{r(e)}catch(e){Rr.a&&gr.c.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${Object(Kr.a)(r)}\nError:`,e)}}function ii(){"console"in lr.a&&gr.a.forEach((function(t){t in lr.a.console&&Object(dr.d)(lr.a.console,t,(function(e){return gr.d[t]=e,function(...e){ri("console",{args:e,level:t});const n=gr.d[t];n&&n.apply(lr.a.console,e)}}))}))}const si=lr.a;let oi,ai,ci;function ui(){if(!si.document)return;const t=ri.bind(null,"dom"),e=di(t,!0);si.document.addEventListener("click",e,!1),si.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{const n=si[e]&&si[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(dr.d)(n,"addEventListener",(function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{const r=this,s=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=s[n]=s[n]||{refCount:0};if(!o.handler){const r=di(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch(t){}return e.call(this,n,r,i)}})),Object(dr.d)(n,"removeEventListener",(function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},s=i[e];s&&(s.refCount--,s.refCount<=0&&(t.call(this,e,s.handler,r),s.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}})))})}function di(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;Object(dr.a)(n,"_sentryCaptured",!0),r&&!r._sentryId&&Object(dr.a)(r,"_sentryId",hr());const i="keypress"===n.type?"input":n.type;if(!function(t){if(t.type!==ai)return!1;try{if(!t.target||t.target._sentryId!==ci)return!1}catch(t){}return!0}(n)){t({event:n,name:i,global:e}),ai=n.type,ci=r?r._sentryId:void 0}clearTimeout(oi),oi=si.setTimeout(()=>{ci=void 0,ai=void 0},1e3)}}const li=Object(lr.b)();function hi(){if(!("fetch"in li))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function pi(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function fi(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!hi())return!1;if(pi(li.fetch))return!0;let t=!1;const e=li.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=pi(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){Rr.a&&gr.c.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t})()&&Object(dr.d)(lr.a,"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:mi(e),method:_i(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:mi(e),method:_i(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return ri("fetch",{...i}),t.apply(lr.a,e).then(t=>(ri("fetch",{...i,endTimestamp:Date.now(),response:t}),t),t=>{throw ri("fetch",{...i,endTimestamp:Date.now(),error:t}),t})}}))}function _i(t,e){return!!t&&"object"==typeof t&&!!t[e]}function mi(t){return"string"==typeof t?t:t?_i(t,"url")?t.url:t.toString?t.toString():"":""}let gi=null;function yi(){gi=lr.a.onerror,lr.a.onerror=function(t,e,n,r,i){const s={column:r,error:i,line:n,msg:t,url:e};return ri("error",s),!(!gi||gi.__SENTRY_LOADER__)&&gi.apply(this,arguments)},lr.a.onerror.__SENTRY_INSTRUMENTED__=!0}let vi=null;function bi(){vi=lr.a.onunhandledrejection,lr.a.onunhandledrejection=function(t){const e=t;return ri("unhandledrejection",e),!(vi&&!vi.__SENTRY_LOADER__)||vi.apply(this,arguments)},lr.a.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Si=Object(lr.b)();const Ei=lr.a;let wi;function Ti(){if(!function(){const t=Si.chrome,e=t&&t.app&&t.app.runtime,n="history"in Si&&!!Si.history.pushState&&!!Si.history.replaceState;return!e&&n}())return;const t=Ei.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=wi,e=String(n);wi=e;ri("history",{from:t,to:e})}return t.apply(this,e)}}Ei.onpopstate=function(...e){const n=Ei.location.href,r=wi;wi=n;if(ri("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},Object(dr.d)(Ei.history,"pushState",e),Object(dr.d)(Ei.history,"replaceState",e)}const ki=lr.a;function xi(){if(!ki.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;Object(dr.d)(t,"open",(function(t){return function(...e){const n=Date.now(),r=Object(ur.i)(e[0])?e[0].toUpperCase():void 0,i=function(t){if(Object(ur.i)(t))return t;try{return t.toString()}catch(t){}return}(e[1]);if(!r||!i)return t.apply(this,e);this.__sentry_xhr_v3__={method:r,url:i,request_headers:{}},"POST"===r&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const t=this.__sentry_xhr_v3__;if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}ri("xhr",{args:[r,i],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?Object(dr.d)(this,"onreadystatechange",(function(t){return function(...e){return s(),t.apply(this,e)}})):this.addEventListener("readystatechange",s),Object(dr.d)(this,"setRequestHeader",(function(t){return function(...e){const[n,r]=e,i=this.__sentry_xhr_v3__;return i&&Object(ur.i)(n)&&Object(ur.i)(r)&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}})),t.apply(this,e)}})),Object(dr.d)(t,"send",(function(t){return function(...e){const n=this.__sentry_xhr_v3__;if(!n)return t.apply(this,e);void 0!==e[0]&&(n.body=e[0]);return ri("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}function Ri(t,e){switch(t){case"console":return ei("console",e),void ni("console",ii);case"dom":return function(t){ei("dom",t),ni("dom",ui)}(e);case"xhr":return function(t){ei("xhr",t),ni("xhr",xi)}(e);case"fetch":return function(t){ei("fetch",t),ni("fetch",fi)}(e);case"history":return function(t){ei("history",t),ni("history",Ti)}(e);case"error":return function(t){ei("error",t),ni("error",yi)}(e);case"unhandledrejection":return function(t){const e="unhandledrejection";ei(e,t),ni(e,bi)}(e);default:Rr.a&&gr.c.warn("unknown instrumentation type:",t)}}var Oi,Di=n(128),Ci=n.n(Di),Ni=function(){return(Ni=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function Ii(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ji(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,s=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function Ui(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function Ai(t){return t.nodeType===t.ELEMENT_NODE}function Mi(t){var e,n=null===(e=t)||void 0===e?void 0:e.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===t)}function Li(t){var e=t.maskInputOptions,n=t.tagName,r=t.type,i=t.value,s=t.maskInputFn,o=i||"";return(e[n.toLowerCase()]||e[r])&&(o=s?s(o):"*".repeat(o.length)),o}!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"}(Oi||(Oi={}));var Bi,Pi,Gi=1,Yi=new RegExp("[^a-z0-9-_:]");function zi(t){try{var e=t.rules||t.cssRules;return e?Array.from(e).map(Fi).join(""):null}catch(t){return null}}function Fi(t){var e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=zi(t.styleSheet)||e}catch(t){}return e}var $i=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Hi=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,qi=/^(data:)([^,]*),(.*)/i;function Wi(t,e){return(t||"").replace($i,(function(t,n,r,i,s,o){var a,c=r||s||o,u=n||i||"";if(!c)return t;if(!Hi.test(c))return"url("+u+c+u+")";if(qi.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=e).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var d=e.split("/"),l=c.split("/");d.pop();for(var h=0,p=l;h<p.length;h++){var f=p[h];"."!==f&&(".."===f?d.pop():d.push(f))}return"url("+u+d.join("/")+u+")"}))}var Zi=/^[^ \t\n\r\u000c]+/,Vi=/^[, \t\n\r\u000c]+/;function Ji(t,e){if(!e||""===e.trim())return e;var n=t.createElement("a");return n.href=e,n.href}function Xi(){var t=document.createElement("a");return t.href="",t.href}function Ki(t,e,n,r){return"src"===n||"href"===n&&r||"xlink:href"===n&&r&&"#"!==r[0]?Ji(t,r):"background"!==n||!r||"table"!==e&&"td"!==e&&"th"!==e?"srcset"===n&&r?function(t,e){if(""===e.trim())return e;var n=0;function r(t){var r,i=t.exec(e.substring(n));return i?(r=i[0],n+=r.length,r):""}for(var i=[];r(Vi),!(n>=e.length);){var s=r(Zi);if(","===s.slice(-1))s=Ji(t,s.substring(0,s.length-1)),i.push(s);else{var o="";s=Ji(t,s);for(var a=!1;;){var c=e.charAt(n);if(""===c){i.push((s+o).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){n+=1,i.push((s+o).trim());break}"("===c&&(a=!0)}o+=c,n+=1}}}return i.join(", ")}(t,r):"style"===n&&r?Wi(r,Xi()):"object"===e&&"data"===n&&r?Ji(t,r):r:Ji(t,r)}function Qi(t,e,n){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var r=0;r<t.classList.length;r++){var i=t.classList[r];if(e.test(i))return!0}return!(!n||!t.matches(n))||Qi(t.parentNode,e,n)}return t.nodeType,t.TEXT_NODE,Qi(t.parentNode,e,n)}function ts(t,e){var n,r,i,s,o=e.doc,a=e.blockClass,c=e.blockSelector,u=e.maskTextClass,d=e.maskTextSelector,l=e.inlineStylesheet,h=e.maskInputOptions,p=void 0===h?{}:h,f=e.maskTextFn,_=e.maskInputFn,m=e.dataURLOptions,g=void 0===m?{}:m,y=e.inlineImages,v=e.recordCanvas,b=e.keepIframeSrcFn;if(o.__sn){var S=o.__sn.id;r=1===S?void 0:S}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:Oi.Document,childNodes:[],compatMode:t.compatMode,rootId:r}:{type:Oi.Document,childNodes:[],rootId:r};case t.DOCUMENT_TYPE_NODE:return{type:Oi.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:r};case t.ELEMENT_NODE:for(var E=function(t,e,n){if("string"==typeof e){if(t.classList.contains(e))return!0}else for(var r=0;r<t.classList.length;r++){var i=t.classList[r];if(e.test(i))return!0}return!!n&&t.matches(n)}(t,a,c),w=function(t){if(t instanceof HTMLFormElement)return"form";var e=t.tagName.toLowerCase().trim();return Yi.test(e)?"div":e}(t),T={},k=0,x=Array.from(t.attributes);k<x.length;k++){var R=x[k],O=R.name,D=R.value;T[O]=Ki(o,w,O,D)}if("link"===w&&l){var C=Array.from(o.styleSheets).find((function(e){return e.href===t.href})),N=null;C&&(N=zi(C)),N&&(delete T.rel,delete T.href,T._cssText=Wi(N,C.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length)(N=zi(t.sheet))&&(T._cssText=Wi(N,Xi()));if("input"===w||"textarea"===w||"select"===w){D=t.value;"radio"!==T.type&&"checkbox"!==T.type&&"submit"!==T.type&&"button"!==T.type&&D?T.value=Li({type:T.type,tagName:w,value:D,maskInputOptions:p,maskInputFn:_}):t.checked&&(T.checked=t.checked)}if("option"===w&&(t.selected&&!p.select?T.selected=!0:delete T.selected),"canvas"===w&&v)if("2d"===t.__context)(function(t){var e=t.getContext("2d");if(!e)return!0;for(var n=0;n<t.width;n+=50)for(var r=0;r<t.height;r+=50){var i=e.getImageData,s="__rrweb_original__"in i?i.__rrweb_original__:i;if(new Uint32Array(s.call(e,n,r,Math.min(50,t.width-n),Math.min(50,t.height-r)).data.buffer).some((function(t){return 0!==t})))return!1}return!0})(t)||(T.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){var I=t.toDataURL(g.type,g.quality),j=document.createElement("canvas");j.width=t.width,j.height=t.height,I!==j.toDataURL(g.type,g.quality)&&(T.rr_dataURL=I)}if("img"===w&&y){Bi||(Bi=o.createElement("canvas"),Pi=Bi.getContext("2d"));var U=t,A=U.crossOrigin;U.crossOrigin="anonymous";var M=function(){try{Bi.width=U.naturalWidth,Bi.height=U.naturalHeight,Pi.drawImage(U,0,0),T.rr_dataURL=Bi.toDataURL(g.type,g.quality)}catch(t){console.warn("Cannot inline img src="+U.currentSrc+"! Error: "+t)}A?T.crossOrigin=A:delete T.crossOrigin};U.complete&&0!==U.naturalWidth?M():U.onload=M}if("audio"!==w&&"video"!==w||(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop),E){var L=t.getBoundingClientRect(),B=L.width,P=L.height;T={class:T.class,rr_width:B+"px",rr_height:P+"px"}}return"iframe"!==w||b(T.src)||(t.contentDocument||(T.rr_src=T.src),delete T.src),{type:Oi.Element,tagName:w,attributes:T,childNodes:[],isSVG:(s=t,Boolean("svg"===s.tagName||s.ownerSVGElement)||void 0),needBlock:E,rootId:r};case t.TEXT_NODE:var G=t.parentNode&&t.parentNode.tagName,Y=t.textContent,z="STYLE"===G||void 0,F="SCRIPT"===G||void 0;if(z&&Y){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(Y=(i=t.parentNode.sheet).cssRules?Array.from(i.cssRules).map((function(t){return t.cssText||""})).join(""):"")}catch(e){console.warn("Cannot get CSS styles from text's parentNode. Error: "+e,t)}Y=Wi(Y,Xi())}return F&&(Y="SCRIPT_PLACEHOLDER"),!z&&!F&&Qi(t,u,d)&&Y&&(Y=f?f(Y):Y.replace(/[\S]/g,"*")),{type:Oi.Text,textContent:Y||"",isStyle:z,rootId:r};case t.CDATA_SECTION_NODE:return{type:Oi.CDATA,textContent:"",rootId:r};case t.COMMENT_NODE:return{type:Oi.Comment,textContent:t.textContent||"",rootId:r};default:return!1}}function es(t){return void 0===t?"":t.toLowerCase()}function ns(t,e){var n,r=e.doc,i=e.map,s=e.blockClass,o=e.blockSelector,a=e.maskTextClass,c=e.maskTextSelector,u=e.skipChild,d=void 0!==u&&u,l=e.inlineStylesheet,h=void 0===l||l,p=e.maskInputOptions,f=void 0===p?{}:p,_=e.maskTextFn,m=e.maskInputFn,g=e.slimDOMOptions,y=e.dataURLOptions,v=void 0===y?{}:y,b=e.inlineImages,S=void 0!==b&&b,E=e.recordCanvas,w=void 0!==E&&E,T=e.onSerialize,k=e.onIframeLoad,x=e.iframeLoadTimeout,R=void 0===x?5e3:x,O=e.keepIframeSrcFn,D=void 0===O?function(){return!1}:O,C=e.preserveWhiteSpace,N=void 0===C||C,I=ts(t,{doc:r,blockClass:s,blockSelector:o,maskTextClass:a,maskTextSelector:c,inlineStylesheet:h,maskInputOptions:f,maskTextFn:_,maskInputFn:m,dataURLOptions:v,inlineImages:S,recordCanvas:w,keepIframeSrcFn:D});if(!I)return console.warn(t,"not serialized"),null;n="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===Oi.Comment)return!0;if(t.type===Oi.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&"preload"===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&&(es(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===es(t.attributes.name)||"icon"===es(t.attributes.rel)||"apple-touch-icon"===es(t.attributes.rel)||"shortcut icon"===es(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&es(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(es(t.attributes.property).match(/^(og|twitter|fb):/)||es(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===es(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===es(t.attributes.name)||"googlebot"===es(t.attributes.name)||"bingbot"===es(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===es(t.attributes.name)||"generator"===es(t.attributes.name)||"framework"===es(t.attributes.name)||"publisher"===es(t.attributes.name)||"progid"===es(t.attributes.name)||es(t.attributes.property).match(/^article:/)||es(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===es(t.attributes.name)||"yandex-verification"===es(t.attributes.name)||"csrf-token"===es(t.attributes.name)||"p:domain_verify"===es(t.attributes.name)||"verify-v1"===es(t.attributes.name)||"verification"===es(t.attributes.name)||"shopify-checkout-api-token"===es(t.attributes.name)))return!0}}return!1}(I,g)&&(N||I.type!==Oi.Text||I.isStyle||I.textContent.replace(/^\s+|\s+$/gm,"").length)?Gi++:-2;var j=Object.assign(I,{id:n});if(t.__sn=j,-2===n)return null;i[n]=t,T&&T(t);var U=!d;if(j.type===Oi.Element&&(U=U&&!j.needBlock,delete j.needBlock,t.shadowRoot&&(j.isShadowHost=!0)),(j.type===Oi.Document||j.type===Oi.Element)&&U){g.headWhitespace&&I.type===Oi.Element&&"head"===I.tagName&&(N=!1);for(var A={doc:r,map:i,blockClass:s,blockSelector:o,maskTextClass:a,maskTextSelector:c,skipChild:d,inlineStylesheet:h,maskInputOptions:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:v,inlineImages:S,recordCanvas:w,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:R,keepIframeSrcFn:D},M=0,L=Array.from(t.childNodes);M<L.length;M++){(G=ns(L[M],A))&&j.childNodes.push(G)}if(Ai(t)&&t.shadowRoot)for(var B=0,P=Array.from(t.shadowRoot.childNodes);B<P.length;B++){var G;(G=ns(P[B],A))&&(G.isShadow=!0,j.childNodes.push(G))}}return t.parentNode&&Mi(t.parentNode)&&(j.isShadow=!0),j.type===Oi.Element&&"iframe"===j.tagName&&function(t,e,n){var r=t.contentWindow;if(r){var i,s=!1;try{i=r.document.readyState}catch(t){return}if("complete"===i){"about:blank"===r.location.href&&"about:blank"!==t.src&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}else{var o=setTimeout((function(){s||(e(),s=!0)}),n);t.addEventListener("load",(function(){clearTimeout(o),s=!0,e()}))}}}(t,(function(){var e=t.contentDocument;if(e&&k){var n=ns(e,{doc:e,map:i,blockClass:s,blockSelector:o,maskTextClass:a,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:_,maskInputFn:m,slimDOMOptions:g,dataURLOptions:v,inlineImages:S,recordCanvas:w,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:R,keepIframeSrcFn:D});n&&k(t,n)}}),R),j}var rs,is,ss,os,as,cs,us=/([^\\]):hover/;new RegExp(us.source,"g");function ds(t,e,n){void 0===n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(t,e,r),function(){return n.removeEventListener(t,e,r)}}!function(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"}(rs||(rs={})),function(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"}(is||(is={})),function(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"}(ss||(ss={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(os||(os={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(as||(as={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(cs||(cs={}));var ls="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.",hs={map:{},getId:function(){return console.error(ls),-1},getNode:function(){return console.error(ls),null},removeNodeFromMap:function(){console.error(ls)},has:function(){return console.error(ls),!1},reset:function(){console.error(ls)}};function ps(t,e,n){void 0===n&&(n={});var r=null,i=0;return function(s){var o=Date.now();i||!1!==n.leading||(i=o);var a=e-(o-i),c=this,u=arguments;a<=0||a>e?(r&&(clearTimeout(r),r=null),i=o,t.apply(c,u)):r||!1===n.trailing||(r=setTimeout((function(){i=!1===n.leading?0:Date.now(),r=null,t.apply(c,u)}),a))}}function fs(t,e,n,r,i){void 0===i&&(i=window);var s=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,r?n:{set:function(t){var e=this;setTimeout((function(){n.set.call(e,t)}),0),s&&s.set&&s.set.call(this,t)}}),function(){return fs(t,e,s||{},!0)}}function _s(t,e,n){try{if(!(e in t))return function(){};var r=t[e],i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=i,function(){t[e]=r}}catch(t){return function(){}}}function ms(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ys(t,e){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){var n=!1;if("string"==typeof e){if(void 0!==t.closest)return null!==t.closest("."+e);n=t.classList.contains(e)}else t.classList.forEach((function(t){e.test(t)&&(n=!0)}));return n||ys(t.parentNode,e)}return t.nodeType,t.TEXT_NODE,ys(t.parentNode,e)}function vs(t){return"__sn"in t&&-2===t.__sn.id}function bs(t){return Boolean(t.changedTouches)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(hs=new Proxy(hs,{get:function(t,e,n){return"map"===e&&console.error(ls),Reflect.get(t,e,n)}}));!function(){function t(){this.reset()}t.prototype.add=function(t){var e=this.indexes.get(t.parentId),n={id:t.node.id,mutation:t,children:[],texts:[],attributes:[]};e?(n.parent=e,e.children[n.id]=n):this.tree[n.id]=n,this.indexes.set(n.id,n)},t.prototype.remove=function(t,e){var n=this,r=this.indexes.get(t.parentId),i=this.indexes.get(t.id),s=function(t){n.removeIdSet.add(t);var r=e.getNode(t);null==r||r.childNodes.forEach((function(t){"__sn"in t&&s(t.__sn.id)}))},o=function(e){n.removeIdSet.add(e.id),Object.values(e.children).forEach((function(t){return o(t)}));var r=n.indexes.get(e.id);if(r){var i=r.parent;i&&(delete r.parent,delete i.children[r.id],n.indexes.delete(t.id))}};i?r?(delete i.parent,delete r.children[i.id],this.indexes.delete(t.id),o(i)):(delete this.tree[i.id],this.indexes.delete(i.id),o(i)):(this.removeNodeMutations.push(t),s(t.id))},t.prototype.text=function(t){var e=this.indexes.get(t.id);e?e.texts.push(t):this.textMutations.push(t)},t.prototype.attribute=function(t){var e=this.indexes.get(t.id);e?e.attributes.push(t):this.attributeMutations.push(t)},t.prototype.scroll=function(t){this.scrollMap.set(t.id,t)},t.prototype.input=function(t){this.inputMap.set(t.id,t)},t.prototype.flush=function(){var t,e,n,r,i=this,s=this.tree,o=this.removeNodeMutations,a=this.textMutations,c=this.attributeMutations,u={source:is.Mutation,removes:o,texts:a,attributes:c,adds:[]},d=function(t,e){e&&i.removeIdSet.add(t.id),u.texts=u.texts.concat(e?[]:t.texts).filter((function(t){return!i.removeIdSet.has(t.id)})),u.attributes=u.attributes.concat(e?[]:t.attributes).filter((function(t){return!i.removeIdSet.has(t.id)})),i.removeIdSet.has(t.id)||i.removeIdSet.has(t.mutation.parentId)||e?Object.values(t.children).forEach((function(t){return d(t,!0)})):(u.adds.push(t.mutation),t.children&&Object.values(t.children).forEach((function(t){return d(t,!1)})))};Object.values(s).forEach((function(t){return d(t,!1)}));try{for(var l=Ii(this.scrollMap.keys()),h=l.next();!h.done;h=l.next()){var p=h.value;this.removeIdSet.has(p)&&this.scrollMap.delete(p)}}catch(e){t={error:e}}finally{try{h&&!h.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}try{for(var f=Ii(this.inputMap.keys()),_=f.next();!_.done;_=f.next()){p=_.value;this.removeIdSet.has(p)&&this.inputMap.delete(p)}}catch(t){n={error:t}}finally{try{_&&!_.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var m=new Map(this.scrollMap),g=new Map(this.inputMap);return this.reset(),{mutationData:u,scrollMap:m,inputMap:g}},t.prototype.reset=function(){this.tree=[],this.indexes=new Map,this.removeNodeMutations=[],this.textMutations=[],this.attributeMutations=[],this.removeIdSet=new Set,this.scrollMap=new Map,this.inputMap=new Map},t.prototype.idRemoved=function(t){return this.removeIdSet.has(t)}}();function Ss(t){return"__sn"in t&&(t.__sn.type===Oi.Element&&"iframe"===t.__sn.tagName)}function Es(t){return Boolean(null==t?void 0:t.shadowRoot)}function ws(t){return"__ln"in t}var Ts=function(){function t(){this.length=0,this.head=null}return t.prototype.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var e=this.head,n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e},t.prototype.addNode=function(t){var e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&ws(t.previousSibling)){var 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&&ws(t.nextSibling)&&t.nextSibling.__ln.previous){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;this.length++},t.prototype.removeNode=function(t){var e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)},t}(),ks=function(t,e){return"".concat(t,"@").concat(e)};function xs(t){return"__sn"in t}function Rs(t,e){t.delete(e),e.childNodes.forEach((function(e){return Rs(t,e)}))}function Os(t,e,n){var r=e.parentNode;if(!r)return!1;var i=n.getId(r);return!!t.some((function(t){return t.id===i}))||Os(t,r,n)}function Ds(t,e){var n=e.parentNode;return!!n&&(!!t.has(n)||Ds(t,n))}var Cs=function(){function t(){var t=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(e){e.forEach(t.processMutation),t.emit()},this.emit=function(){var e,n,r,i;if(!t.frozen&&!t.locked){for(var s=[],o=new Ts,a=function(e){for(var n=e,r=-2;-2===r;)r=(n=n&&n.nextSibling)&&t.mirror.getId(n);return r},c=function(e){for(var n,r,i,c,u,d=e.getRootNode?null===(n=e.getRootNode())||void 0===n?void 0:n.host:null,l=d;null===(i=null===(r=null==l?void 0:l.getRootNode)||void 0===r?void 0:r.call(l))||void 0===i?void 0:i.host;)l=(null===(u=null===(c=null==l?void 0:l.getRootNode)||void 0===c?void 0:c.call(l))||void 0===u?void 0:u.host)||null;var h=!(t.doc.contains(e)||null!==l&&t.doc.contains(l));if(e.parentNode&&!h){var p=Mi(e.parentNode)?t.mirror.getId(d):t.mirror.getId(e.parentNode),f=a(e);if(-1===p||-1===f)return o.addNode(e);var _=ns(e,{doc:t.doc,map:t.mirror.map,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(n){Ss(n)&&t.iframeManager.addIframe(n),Es(e)&&t.shadowDomManager.addShadowRoot(e.shadowRoot,document)},onIframeLoad:function(e,n){t.iframeManager.attachIframe(e,n),t.shadowDomManager.observeAttachShadow(e)}});_&&s.push({parentId:p,nextId:f,node:_})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());try{for(var u=Ii(t.movedSet),d=u.next();!d.done;d=u.next()){var l=d.value;Os(t.removes,l,t.mirror)&&!t.movedSet.has(l.parentNode)||c(l)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}try{for(var h=Ii(t.addedSet),p=h.next();!p.done;p=h.next()){l=p.value;Ds(t.droppedSet,l)||Os(t.removes,l,t.mirror)?Ds(t.movedSet,l)?c(l):t.droppedSet.add(l):c(l)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}for(var f=null;o.length;){var _=null;if(f){var m=t.mirror.getId(f.value.parentNode),g=a(f.value);-1!==m&&-1!==g&&(_=f)}if(!_)for(var y=o.length-1;y>=0;y--){var v=o.get(y);if(v){m=t.mirror.getId(v.value.parentNode),g=a(v.value);if(-1!==m&&-1!==g){_=v;break}}}if(!_){for(;o.head;)o.removeNode(o.head.value);break}f=_.previous,o.removeNode(_.value),c(_.value)}var b={texts:t.texts.map((function(e){return{id:t.mirror.getId(e.node),value:e.value}})).filter((function(e){return t.mirror.has(e.id)})),attributes:t.attributes.map((function(e){return{id:t.mirror.getId(e.node),attributes:e.attributes}})).filter((function(e){return t.mirror.has(e.id)})),removes:t.removes,adds:s};(b.texts.length||b.attributes.length||b.removes.length||b.adds.length)&&(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(b))}},this.processMutation=function(e){var n,r,i,s;if(!vs(e.target))switch(e.type){case"characterData":var o=e.target.textContent;ys(e.target,t.blockClass)||o===e.oldValue||t.texts.push({value:Qi(e.target,t.maskTextClass,t.maskTextSelector)&&o?t.maskTextFn?t.maskTextFn(o):o.replace(/[\S]/g,"*"):o,node:e.target});break;case"attributes":var a=e.target;o=e.target.getAttribute(e.attributeName);if("value"===e.attributeName&&(o=Li({maskInputOptions:t.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:o,maskInputFn:t.maskInputFn})),ys(e.target,t.blockClass)||o===e.oldValue)return;var c=t.attributes.find((function(t){return t.node===e.target}));if(c||(c={node:e.target,attributes:{}},t.attributes.push(c)),"style"===e.attributeName){var u=t.doc.createElement("span");e.oldValue&&u.setAttribute("style",e.oldValue),void 0!==c.attributes.style&&null!==c.attributes.style||(c.attributes.style={});var d=c.attributes.style;try{for(var l=Ii(Array.from(a.style)),h=l.next();!h.done;h=l.next()){var p=h.value,f=a.style.getPropertyValue(p),_=a.style.getPropertyPriority(p);f===u.style.getPropertyValue(p)&&_===u.style.getPropertyPriority(p)||(d[p]=""===_?f:[f,_])}}catch(t){n={error:t}}finally{try{h&&!h.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}try{for(var m=Ii(Array.from(u.style)),g=m.next();!g.done;g=m.next()){p=g.value;""===a.style.getPropertyValue(p)&&(d[p]=!1)}}catch(t){i={error:t}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(i)throw i.error}}}else c.attributes[e.attributeName]=Ki(t.doc,e.target.tagName,e.attributeName,o);break;case"childList":e.addedNodes.forEach((function(n){return t.genAdds(n,e.target)})),e.removedNodes.forEach((function(n){var r=t.mirror.getId(n),i=Mi(e.target)?t.mirror.getId(e.target.host):t.mirror.getId(e.target);ys(e.target,t.blockClass)||vs(n)||(t.addedSet.has(n)?(Rs(t.addedSet,n),t.droppedSet.add(n)):t.addedSet.has(e.target)&&-1===r||function t(e,n){if(Mi(e))return!1;var r=n.getId(e);return!n.has(r)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||t(e.parentNode,n))}(e.target,t.mirror)||(t.movedSet.has(n)&&t.movedMap[ks(r,i)]?Rs(t.movedSet,n):t.removes.push({parentId:i,id:r,isShadow:!!Mi(e.target)||void 0})),t.mapRemoves.push(n))}))}},this.genAdds=function(e,n){if(!n||!ys(n,t.blockClass)){if(xs(e)){if(vs(e))return;t.movedSet.add(e);var r=null;n&&xs(n)&&(r=n.__sn.id),r&&(t.movedMap[ks(e.__sn.id,r)]=!0)}else t.addedSet.add(e),t.droppedSet.delete(e);ys(e,t.blockClass)||e.childNodes.forEach((function(e){return t.genAdds(e)}))}}}return t.prototype.init=function(t){var e=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((function(n){e[n]=t[n]}))},t.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.prototype.isFrozen=function(){return this.frozen},t.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},t.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}(),Ns=[],Is="undefined"!=typeof CSSGroupingRule,js="undefined"!=typeof CSSMediaRule,Us="undefined"!=typeof CSSSupportsRule,As="undefined"!=typeof CSSConditionRule;function Ms(t){try{if("composedPath"in t){var e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0];return t.target}catch(e){return t.target}}function Ls(t,e){var n,r,i=new Cs;Ns.push(i),i.init(t);var s=window.MutationObserver||window.__rrMutationObserver,o=null===(r=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===r?void 0:r.call(n,"MutationObserver");o&&window[o]&&(s=window[o]);var a=new s(i.processMutations.bind(i));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Bs(t){var e=t.mouseInteractionCb,n=t.doc,r=t.mirror,i=t.blockClass,s=t.sampling;if(!1===s.mouseInteraction)return function(){};var o=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,a=[];return Object.keys(ss).filter((function(t){return Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t]})).forEach((function(t){var s=t.toLowerCase(),o=function(t){return function(n){var s=Ms(n);if(!ys(s,i)){var o=bs(n)?n.changedTouches[0]:n;if(o){var a=r.getId(s),c=o.clientX,u=o.clientY;e({type:ss[t],id:a,x:c,y:u})}}}}(t);a.push(ds(s,o,n))})),function(){a.forEach((function(t){return t()}))}}function Ps(t){var e=t.scrollCb,n=t.doc,r=t.mirror,i=t.blockClass;return ds("scroll",ps((function(t){var s=Ms(t);if(s&&!ys(s,i)){var o=r.getId(s);if(s===n){var a=n.scrollingElement||n.documentElement;e({id:o,x:a.scrollLeft,y:a.scrollTop})}else e({id:o,x:s.scrollLeft,y:s.scrollTop})}}),t.sampling.scroll||100),n)}function Gs(t,e){var n=Ni({},t);return e||delete n.userTriggered,n}var Ys=["INPUT","TEXTAREA","SELECT"],zs=new WeakMap;function Fs(t){return function(t,e){if(Is&&t.parentRule instanceof CSSGroupingRule||js&&t.parentRule instanceof CSSMediaRule||Us&&t.parentRule instanceof CSSSupportsRule||As&&t.parentRule instanceof CSSConditionRule){var n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function $s(t,e){var n,r;void 0===e&&(e={});var i=t.doc.defaultView;if(!i)return function(){};!function(t,e){var n=t.mutationCb,r=t.mousemoveCb,i=t.mouseInteractionCb,s=t.scrollCb,o=t.viewportResizeCb,a=t.inputCb,c=t.mediaInteractionCb,u=t.styleSheetRuleCb,d=t.styleDeclarationCb,l=t.canvasMutationCb,h=t.fontCb;t.mutationCb=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e.mutation&&e.mutation.apply(e,Ui([],ji(t),!1)),n.apply(void 0,Ui([],ji(t),!1))},t.mousemoveCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mousemove&&e.mousemove.apply(e,Ui([],ji(t),!1)),r.apply(void 0,Ui([],ji(t),!1))},t.mouseInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mouseInteraction&&e.mouseInteraction.apply(e,Ui([],ji(t),!1)),i.apply(void 0,Ui([],ji(t),!1))},t.scrollCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.scroll&&e.scroll.apply(e,Ui([],ji(t),!1)),s.apply(void 0,Ui([],ji(t),!1))},t.viewportResizeCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.viewportResize&&e.viewportResize.apply(e,Ui([],ji(t),!1)),o.apply(void 0,Ui([],ji(t),!1))},t.inputCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.input&&e.input.apply(e,Ui([],ji(t),!1)),a.apply(void 0,Ui([],ji(t),!1))},t.mediaInteractionCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.mediaInteaction&&e.mediaInteaction.apply(e,Ui([],ji(t),!1)),c.apply(void 0,Ui([],ji(t),!1))},t.styleSheetRuleCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleSheetRule&&e.styleSheetRule.apply(e,Ui([],ji(t),!1)),u.apply(void 0,Ui([],ji(t),!1))},t.styleDeclarationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.styleDeclaration&&e.styleDeclaration.apply(e,Ui([],ji(t),!1)),d.apply(void 0,Ui([],ji(t),!1))},t.canvasMutationCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.canvasMutation&&e.canvasMutation.apply(e,Ui([],ji(t),!1)),l.apply(void 0,Ui([],ji(t),!1))},t.fontCb=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.font&&e.font.apply(e,Ui([],ji(t),!1)),h.apply(void 0,Ui([],ji(t),!1))}}(t,e);var s=Ls(t,t.doc),o=function(t){var e=t.mousemoveCb,n=t.sampling,r=t.doc,i=t.mirror;if(!1===n.mousemove)return function(){};var s,o="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=ps((function(t){var n=Date.now()-s;e(c.map((function(t){return t.timeOffset-=n,t})),t),c=[],s=null}),a),d=ps((function(t){var e=Ms(t),n=bs(t)?t.changedTouches[0]:t,r=n.clientX,o=n.clientY;s||(s=Date.now()),c.push({x:r,y:o,id:i.getId(e),timeOffset:Date.now()-s}),u("undefined"!=typeof DragEvent&&t instanceof DragEvent?is.Drag:t instanceof MouseEvent?is.MouseMove:is.TouchMove)}),o,{trailing:!1}),l=[ds("mousemove",d,r),ds("touchmove",d,r),ds("drag",d,r)];return function(){l.forEach((function(t){return t()}))}}(t),a=Bs(t),c=Ps(t),u=function(t){var e=t.viewportResizeCb,n=-1,r=-1;return ds("resize",ps((function(){var t=ms(),i=gs();n===t&&r===i||(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200),window)}(t),d=function(t){var e=t.inputCb,n=t.doc,r=t.mirror,i=t.blockClass,s=t.ignoreClass,o=t.maskInputOptions,a=t.maskInputFn,c=t.sampling,u=t.userTriggeredOnInput;function d(t){var e=Ms(t),r=t.isTrusted;if(e&&"OPTION"===e.tagName&&(e=e.parentElement),e&&e.tagName&&!(Ys.indexOf(e.tagName)<0)&&!ys(e,i)){var c=e.type;if(!e.classList.contains(s)){var d=e.value,h=!1;"radio"===c||"checkbox"===c?h=e.checked:(o[e.tagName.toLowerCase()]||o[c])&&(d=Li({maskInputOptions:o,tagName:e.tagName,type:c,value:d,maskInputFn:a})),l(e,Gs({text:d,isChecked:h,userTriggered:r},u));var p=e.name;"radio"===c&&p&&h&&n.querySelectorAll('input[type="radio"][name="'.concat(p,'"]')).forEach((function(t){t!==e&&l(t,Gs({text:t.value,isChecked:!h,userTriggered:!1},u))}))}}}function l(t,n){var i=zs.get(t);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){zs.set(t,n);var s=r.getId(t);e(Ni(Ni({},n),{id:s}))}}var h=("last"===c.input?["change"]:["input","change"]).map((function(t){return ds(t,d,n)})),p=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),f=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return p&&p.set&&h.push.apply(h,Ui([],ji(f.map((function(t){return fs(t[0],t[1],{set:function(){d({target:this})}})}))),!1)),function(){h.forEach((function(t){return t()}))}}(t),l=function(t){var e=t.mediaInteractionCb,n=t.blockClass,r=t.mirror,i=t.sampling,s=function(t){return ps((function(i){var s=Ms(i);if(s&&!ys(s,n)){var o=s,a=o.currentTime,c=o.volume,u=o.muted;e({type:t,id:r.getId(s),currentTime:a,volume:c,muted:u})}}),i.media||500)},o=[ds("play",s(0)),ds("pause",s(1)),ds("seeked",s(2)),ds("volumechange",s(3))];return function(){o.forEach((function(t){return t()}))}}(t),h=function(t,e){var n=t.styleSheetRuleCb,r=t.mirror,i=e.win,s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(t,e){var i=r.getId(this.ownerNode);return-1!==i&&n({id:i,adds:[{rule:t,index:e}]}),s.apply(this,arguments)};var o=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(t){var e=r.getId(this.ownerNode);return-1!==e&&n({id:e,removes:[{index:t}]}),o.apply(this,arguments)};var a={};Is?a.CSSGroupingRule=i.CSSGroupingRule:(js&&(a.CSSMediaRule=i.CSSMediaRule),As&&(a.CSSConditionRule=i.CSSConditionRule),Us&&(a.CSSSupportsRule=i.CSSSupportsRule));var c={};return Object.entries(a).forEach((function(t){var e=ji(t,2),i=e[0],s=e[1];c[i]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=function(t,e){var s=r.getId(this.parentStyleSheet.ownerNode);return-1!==s&&n({id:s,adds:[{rule:t,index:Ui(Ui([],ji(Fs(this)),!1),[e||0],!1)}]}),c[i].insertRule.apply(this,arguments)},s.prototype.deleteRule=function(t){var e=r.getId(this.parentStyleSheet.ownerNode);return-1!==e&&n({id:e,removes:[{index:Ui(Ui([],ji(Fs(this)),!1),[t],!1)}]}),c[i].deleteRule.apply(this,arguments)}})),function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=o,Object.entries(a).forEach((function(t){var e=ji(t,2),n=e[0],r=e[1];r.prototype.insertRule=c[n].insertRule,r.prototype.deleteRule=c[n].deleteRule}))}}(t,{win:i}),p=function(t,e){var n=t.styleDeclarationCb,r=t.mirror,i=e.win,s=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(t,e,i){var o,a,c=r.getId(null===(a=null===(o=this.parentRule)||void 0===o?void 0:o.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==c&&n({id:c,set:{property:t,value:e,priority:i},index:Fs(this.parentRule)}),s.apply(this,arguments)};var o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(t){var e,i,s=r.getId(null===(i=null===(e=this.parentRule)||void 0===e?void 0:e.parentStyleSheet)||void 0===i?void 0:i.ownerNode);return-1!==s&&n({id:s,remove:{property:t},index:Fs(this.parentRule)}),o.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=s,i.CSSStyleDeclaration.prototype.removeProperty=o}}(t,{win:i}),f=t.collectFonts?function(t){var e=t.fontCb,n=t.doc,r=n.defaultView;if(!r)return function(){};var i=[],s=new WeakMap,o=r.FontFace;r.FontFace=function(t,e,n){var 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};var a=_s(n.fonts,"add",(function(t){return function(n){return setTimeout((function(){var t=s.get(n);t&&(e(t),s.delete(n))}),0),t.apply(this,[n])}}));return i.push((function(){r.FontFace=o})),i.push(a),function(){i.forEach((function(t){return t()}))}}(t):function(){},_=[];try{for(var m=Ii(t.plugins),g=m.next();!g.done;g=m.next()){var y=g.value;_.push(y.observer(y.callback,i,y.options))}}catch(t){n={error:t}}finally{try{g&&!g.done&&(r=m.return)&&r.call(m)}finally{if(n)throw n.error}}return function(){Ns.forEach((function(t){return t.reset()})),s.disconnect(),o(),a(),c(),u(),d(),l(),h(),p(),f(),_.forEach((function(t){return t()}))}}var Hs=function(){function t(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}return t.prototype.addIframe=function(t){this.iframes.set(t,!0)},t.prototype.addLoadListener=function(t){this.loadListener=t},t.prototype.attachIframe=function(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)},t}(),qs=function(){function t(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var e=this;this.restorePatches.push(_s(HTMLElement.prototype,"attachShadow",(function(t){return function(){var n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}return t.prototype.addShadowRoot=function(t,e){Ls(Ni(Ni({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),Ps(Ni(Ni({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))},t.prototype.observeAttachShadow=function(t){if(t.contentWindow){var e=this;this.restorePatches.push(_s(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){var r=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),r}})))}},t.prototype.reset=function(){this.restorePatches.forEach((function(t){return t()}))},t}();var Ws=function(t,e,n,r){var i,s,o=[],a=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype),c=function(r){try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[r])return"continue";var i=_s(e.CanvasRenderingContext2D.prototype,r,(function(e){return function(){for(var i=this,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];return ys(this.canvas,n)||setTimeout((function(){var e=Ui([],ji(s),!1);if("drawImage"===r&&e[0]&&e[0]instanceof HTMLCanvasElement){var n=e[0],o=n.getContext("2d"),a=null==o?void 0:o.getImageData(0,0,n.width,n.height),c=null==a?void 0:a.data;e[0]=JSON.stringify(c)}t(i.canvas,{type:os["2D"],property:r,args:e})}),0),e.apply(this,s)}}));o.push(i)}catch(n){var s=fs(e.CanvasRenderingContext2D.prototype,r,{set:function(e){t(this.canvas,{type:os["2D"],property:r,args:[e],setter:!0})}});o.push(s)}};try{for(var u=Ii(a),d=u.next();!d.done;d=u.next()){c(d.value)}}catch(t){i={error:t}}finally{try{d&&!d.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return function(){o.forEach((function(t){return t()}))}};for(var Zs=function(t,e){var n=[];try{var r=_s(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return ys(this,e)||"__context"in this||(this.__context=n),t.apply(this,Ui([n],ji(r),!1))}}));n.push(r)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach((function(t){return t()}))}},Vs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Js="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Xs=0;Xs<Vs.length;Xs++)Js[Vs.charCodeAt(Xs)]=Xs;var Ks=new Map;var Qs=function(t,e,n){if(t&&(no(t,e)||"object"==typeof t)){var r=function(t,e){var n=Ks.get(t);return n||(n=new Map,Ks.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name),i=r.indexOf(t);return-1===i&&(i=r.length,r.push(t)),i}};function to(t,e,n){return t instanceof Array?t.map((function(t){return to(t,e,n)})):null===t?t: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?{rr_type:t.constructor.name,args:[Object.values(t)]}:t instanceof ArrayBuffer?{rr_type:t.constructor.name,base64:function(t){var e,n=new Uint8Array(t),r=n.length,i="";for(e=0;e<r;e+=3)i+=Vs[n[e]>>2],i+=Vs[(3&n[e])<<4|n[e+1]>>4],i+=Vs[(15&n[e+1])<<2|n[e+2]>>6],i+=Vs[63&n[e+2]];return r%3==2?i=i.substring(0,i.length-1)+"=":r%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(t)}:t instanceof DataView?{rr_type:t.constructor.name,args:[to(t.buffer,e,n),t.byteOffset,t.byteLength]}:t instanceof HTMLImageElement?{rr_type:t.constructor.name,src:t.src}:t instanceof ImageData?{rr_type:t.constructor.name,args:[to(t.data,e,n),t.width,t.height]}:no(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:Qs(t,e,n)}:t}var eo=function(t,e,n){return Ui([],ji(t),!1).map((function(t){return to(t,e,n)}))},no=function(t,e){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(t){return"function"==typeof e[t]}));return Boolean(n.find((function(n){return t instanceof e[n]})))};function ro(t,e,n,r,i,s){var o,a,c=[],u=Object.getOwnPropertyNames(t),d=function(o){try{if("function"!=typeof t[o])return"continue";var a=_s(t,o,(function(a){return function(){for(var c=[],u=0;u<arguments.length;u++)c[u]=arguments[u];var d=a.apply(this,c);if(Qs(d,s,t),!ys(this.canvas,r)){i.getId(this.canvas);var l=eo(Ui([],ji(c),!1),s,t),h={type:e,property:o,args:l};n(this.canvas,h)}return d}}));c.push(a)}catch(r){var u=fs(t,o,{set:function(t){n(this.canvas,{type:e,property:o,args:[t],setter:!0})}});c.push(u)}};try{for(var l=Ii(u),h=l.next();!h.done;h=l.next()){d(h.value)}}catch(t){o={error:t}}finally{try{h&&!h.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return c}var io,so,oo=function(t,e,n,r){var i=[];return i.push.apply(i,Ui([],ji(ro(e.WebGLRenderingContext.prototype,os.WebGL,t,n,r,e)),!1)),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,Ui([],ji(ro(e.WebGL2RenderingContext.prototype,os.WebGL2,t,n,r,e)),!1)),function(){i.forEach((function(t){return t()}))}},ao=function(){function t(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(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)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass)}return t.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.prototype.freeze=function(){this.frozen=!0},t.prototype.unfreeze=function(){this.frozen=!1},t.prototype.lock=function(){this.locked=!0},t.prototype.unlock=function(){this.locked=!1},t.prototype.initCanvasMutationObserver=function(t,e){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=Zs(t,e),r=Ws(this.processMutation.bind(this),t,e,this.mirror),i=oo(this.processMutation.bind(this),t,e,this.mirror);this.resetObservers=function(){n(),r(),i()}},t.prototype.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame((function(){return t.flushPendingCanvasMutations()}))},t.prototype.startRAFTimestamping=function(){var t=this,e=function(n){t.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)},t.prototype.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach((function(e,n){var r=t.mirror.getId(n);t.flushPendingCanvasMutationFor(n,r)})),requestAnimationFrame((function(){return t.flushPendingCanvasMutations()}))},t.prototype.flushPendingCanvasMutationFor=function(t,e){if(!this.frozen&&!this.locked){var n=this.pendingCanvasMutations.get(t);if(n&&-1!==e){var r=n.map((function(t){return t.type,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["type"])})),i=n[0].type;this.mutationCb({id:e,type:i,commands:r}),this.pendingCanvasMutations.delete(t)}}},t}();function co(t){return Ni(Ni({},t),{timestamp:Date.now()})}var uo={map:{},getId:function(t){return t&&t.__sn?t.__sn.id:-1},getNode:function(t){return this.map[t]||null},removeNodeFromMap:function(t){var e=this,n=t.__sn&&t.__sn.id;delete this.map[n],t.childNodes&&t.childNodes.forEach((function(t){return e.removeNodeFromMap(t)}))},has:function(t){return this.map.hasOwnProperty(t)},reset:function(){this.map={}}};function lo(t){void 0===t&&(t={});var e=t.emit,n=t.checkoutEveryNms,r=t.checkoutEveryNth,i=t.blockClass,s=void 0===i?"rr-block":i,o=t.blockSelector,a=void 0===o?null:o,c=t.ignoreClass,u=void 0===c?"rr-ignore":c,d=t.maskTextClass,l=void 0===d?"rr-mask":d,h=t.maskTextSelector,p=void 0===h?null:h,f=t.inlineStylesheet,_=void 0===f||f,m=t.maskAllInputs,g=t.maskInputOptions,y=t.slimDOMOptions,v=t.maskInputFn,b=t.maskTextFn,S=t.hooks,E=t.packFn,w=t.sampling,T=void 0===w?{}:w,k=t.mousemoveWait,x=t.recordCanvas,R=void 0!==x&&x,O=t.userTriggeredOnInput,D=void 0!==O&&O,C=t.collectFonts,N=void 0!==C&&C,I=t.inlineImages,j=void 0!==I&&I,U=t.plugins,A=t.keepIframeSrcFn,M=void 0===A?function(){return!1}:A;if(!e)throw new Error("emit function is required");void 0!==k&&void 0===T.mousemove&&(T.mousemove=k);var L,B,P=!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,password:!0}:void 0!==g?g:{password:!0},G=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};void 0===L&&(L=window),"NodeList"in L&&!L.NodeList.prototype.forEach&&(L.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in L&&!L.DOMTokenList.prototype.forEach&&(L.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1});var Y=0;io=function(t,i){var s;if(!(null===(s=Ns[0])||void 0===s?void 0:s.isFrozen())||t.type===rs.FullSnapshot||t.type===rs.IncrementalSnapshot&&t.data.source===is.Mutation||Ns.forEach((function(t){return t.unfreeze()})),e(function(t){var e,n;try{for(var r=Ii(U||[]),i=r.next();!i.done;i=r.next()){var s=i.value;s.eventProcessor&&(t=s.eventProcessor(t))}}catch(t){e={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return E&&(t=E(t)),t}(t),i),t.type===rs.FullSnapshot)B=t,Y=0;else if(t.type===rs.IncrementalSnapshot){if(t.data.source===is.Mutation&&t.data.isAttachIframe)return;Y++;var o=r&&Y>=r,a=n&&t.timestamp-B.timestamp>n;(o||a)&&so(!0)}};var z=function(t){io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.Mutation},t)}))},F=function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.Scroll},t)}))},$=function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.CanvasMutation},t)}))},H=new Hs({mutationCb:z}),q=new ao({recordCanvas:R,mutationCb:$,win:window,blockClass:s,mirror:uo}),W=new qs({mutationCb:z,scrollCb:F,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:_,maskInputOptions:P,maskTextFn:b,maskInputFn:v,recordCanvas:R,inlineImages:j,sampling:T,slimDOMOptions:G,iframeManager:H,canvasManager:q},mirror:uo});so=function(t){var e,n,r,i;void 0===t&&(t=!1),io(co({type:rs.Meta,data:{href:window.location.href,width:gs(),height:ms()}}),t),Ns.forEach((function(t){return t.lock()}));var o=ji(function(t,e){var n=e||{},r=n.blockClass,i=void 0===r?"rr-block":r,s=n.blockSelector,o=void 0===s?null:s,a=n.maskTextClass,c=void 0===a?"rr-mask":a,u=n.maskTextSelector,d=void 0===u?null:u,l=n.inlineStylesheet,h=void 0===l||l,p=n.inlineImages,f=void 0!==p&&p,_=n.recordCanvas,m=void 0!==_&&_,g=n.maskAllInputs,y=void 0!==g&&g,v=n.maskTextFn,b=n.maskInputFn,S=n.slimDOM,E=void 0!==S&&S,w=n.dataURLOptions,T=n.preserveWhiteSpace,k=n.onSerialize,x=n.onIframeLoad,R=n.iframeLoadTimeout,O=n.keepIframeSrcFn,D={};return[ns(t,{doc:t,map:D,blockClass:i,blockSelector:o,maskTextClass:c,maskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:!0===y?{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,password:!0}:!1===y?{password:!0}:y,maskTextFn:v,maskInputFn:b,slimDOMOptions:!0===E||"all"===E?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===E,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===E?{}:E,dataURLOptions:w,inlineImages:f,recordCanvas:m,preserveWhiteSpace:T,onSerialize:k,onIframeLoad:x,iframeLoadTimeout:R,keepIframeSrcFn:void 0===O?function(){return!1}:O}),D]}(document,{blockClass:s,blockSelector:a,maskTextClass:l,maskTextSelector:p,inlineStylesheet:_,maskAllInputs:P,maskTextFn:b,slimDOM:G,recordCanvas:R,inlineImages:j,onSerialize:function(t){Ss(t)&&H.addIframe(t),Es(t)&&W.addShadowRoot(t.shadowRoot,document)},onIframeLoad:function(t,e){H.attachIframe(t,e),W.observeAttachShadow(t)},keepIframeSrcFn:M}),2),c=o[0],u=o[1];if(!c)return console.warn("Failed to snapshot the document");uo.map=u,io(co({type:rs.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(i=null===(r=null===document||void 0===document?void 0:document.body)||void 0===r?void 0:r.parentElement)||void 0===i?void 0:i.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),Ns.forEach((function(t){return t.unlock()}))};try{var Z=[];Z.push(ds("DOMContentLoaded",(function(){io(co({type:rs.DomContentLoaded,data:{}}))})));var V=function(t){var e;return $s({mutationCb:z,mousemoveCb:function(t,e){return io(co({type:rs.IncrementalSnapshot,data:{source:e,positions:t}}))},mouseInteractionCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.MouseInteraction},t)}))},scrollCb:F,viewportResizeCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.ViewportResize},t)}))},inputCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.Input},t)}))},mediaInteractionCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.MediaInteraction},t)}))},styleSheetRuleCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.StyleSheetRule},t)}))},styleDeclarationCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.StyleDeclaration},t)}))},canvasMutationCb:$,fontCb:function(t){return io(co({type:rs.IncrementalSnapshot,data:Ni({source:is.Font},t)}))},blockClass:s,ignoreClass:u,maskTextClass:l,maskTextSelector:p,maskInputOptions:P,inlineStylesheet:_,sampling:T,recordCanvas:R,inlineImages:j,userTriggeredOnInput:D,collectFonts:N,doc:t,maskInputFn:v,maskTextFn:b,blockSelector:a,slimDOMOptions:G,mirror:uo,iframeManager:H,shadowDomManager:W,canvasManager:q,plugins:(null===(e=null==U?void 0:U.filter((function(t){return t.observer})))||void 0===e?void 0:e.map((function(t){return{observer:t.observer,options:t.options,callback:function(e){return io(co({type:rs.Plugin,data:{plugin:t.name,payload:e}}))}}})))||[]},S)};H.addLoadListener((function(t){Z.push(V(t.contentDocument))}));var J=function(){so(),Z.push(V(document))};return"interactive"===document.readyState||"complete"===document.readyState?J():Z.push(ds("load",(function(){io(co({type:rs.Load,data:{}})),J()}),window)),function(){Z.forEach((function(t){return t()}))}}catch(t){console.warn(t)}}lo.addCustomEvent=function(t,e){if(!io)throw new Error("please add custom event after start recording");io(co({type:rs.Custom,data:{tag:t,payload:e}}))},lo.freezePage=function(){Ns.forEach((function(t){return t.freeze()}))},lo.takeFullSnapshot=function(t){if(!so)throw new Error("please take full snapshot after start recording");so(t)},lo.mirror=uo;var ho=lo,po=function(){return(po=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function fo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function _o(t,e,n,r){return new(n||(n=Promise))((function(i,s){function o(t){try{c(r.next(t))}catch(t){s(t)}}function a(t){try{c(r.throw(t))}catch(t){s(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((r=r.apply(t,e||[])).next())}))}function mo(t,e){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}function go(t,e,n){if(n||2===arguments.length)for(var r,i=0,s=e.length;i<s;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function yo(t){return po({timestamp:(new Date).getTime()/1e3,type:"default"},t)}function vo(t){var e,n;try{n=t.event.target||t.event,e=Object(Xr.a)(n)}catch(t){e="<unknown>"}return 0===e.length?null:yo({category:"ui.".concat(t.name),message:e,data:po({},n?{nodeId:ho.mirror.getId(n)}:{})})}var bo=null;function So(t){var e,n=t._breadcrumbs[t._breadcrumbs.length-1];return bo!==n&&n?(bo=n,["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||(null===(e=n.category)||void 0===e?void 0:e.startsWith("ui."))?null:yo(n)):null}var Eo="undefined"!=typeof window;function wo(){return Eo&&["sentry.io","dev.getsentry.net"].includes(window.location.host)}function To(t){var e,n=(null===(e=qr().getClient())||void 0===e?void 0:e.getDsn())||{},r=n.protocol,i=n.host;return!wo()&&t.startsWith("".concat(r,"://").concat(i))}function ko(t){if(!t.endTimestamp)return null;var e=t.startTimestamp,n=t.endTimestamp,r=t.fetchData,i=t.response;return To(r.url)?null:{type:"resource.fetch",start:e/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:i.status}}}function xo(t){var e=t.from,n=t.to,r=(new Date).getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function Ro(t){var e;if(t.xhr.__sentry_own_request__)return null;if(t.startTimestamp&&(t.xhr.__sentry_xhr__=t.xhr.__sentry_xhr__||{},t.xhr.__sentry_xhr__.startTimestamp=t.startTimestamp),!t.endTimestamp)return null;var n=t.xhr.__sentry_xhr__||{},r=n.method,i=n.url,s=n.status_code;return void 0===i||To(i)?null:{type:"resource.xhr",name:i,start:((null===(e=t.xhr.__sentry_xhr__)||void 0===e?void 0:e.startTimestamp)||0)/1e3||t.endTimestamp/1e3,end:t.endTimestamp/1e3,data:{method:r,statusCode:s}}}function Oo(t,e,n){return void 0===n&&(n=+new Date),null===t||void 0===e||e<0||0!==e&&t+e<=n}function Do(t,e,n){return void 0===n&&(n=+new Date),Oo(t.started,18e5,n)||Oo(null==t?void 0:t.lastActivity,e,n)}function Co(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call.apply(t,go([gr.c,"[Replay]"],e,!1))}}var No=po(po({},gr.c),{error:Co(gr.c.error),warn:Co(gr.c.warn),log:Co(gr.c.log)});function Io(t){if("sessionStorage"in window)try{window.sessionStorage.setItem("sentryReplaySession",JSON.stringify(t))}catch(t){}}function jo(t){return void 0!==t&&Math.random()<t}var Uo=function(){function t(t,e){void 0===t&&(t={});var n,r,i,s,o=e.stickySession,a=e.sessionSampleRate,c=e.errorSampleRate,u=(new Date).getTime();this._id=t.id||hr(),this._started=null!==(n=t.started)&&void 0!==n?n:u,this._lastActivity=null!==(r=t.lastActivity)&&void 0!==r?r:u,this._segmentId=null!==(i=t.segmentId)&&void 0!==i?i:0,this._sampled=null!==(s=t.sampled)&&void 0!==s?s:jo(a)?"session":!!jo(c)&&"error",this.options={stickySession:o}}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"started",{get:function(){return this._started},set:function(t){this._started=t,this.options.stickySession&&Io(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastActivity",{get:function(){return this._lastActivity},set:function(t){this._lastActivity=t,this.options.stickySession&&Io(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"segmentId",{get:function(){return this._segmentId},set:function(t){this._segmentId=t,this.options.stickySession&&Io(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSessionId",{get:function(){return this._previousSessionId},set:function(t){this._previousSessionId=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sampled",{get:function(){return this._sampled},set:function(t){throw new Error("Unable to change sampled value")},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){return{id:this.id,started:this.started,lastActivity:this.lastActivity,segmentId:this._segmentId,sampled:this._sampled}},t}();function Ao(t){var e=t.expiry,n=t.currentSession,r=t.stickySession,i=t.sessionSampleRate,s=t.errorSampleRate,o=n||r&&function(t){var e=t.sessionSampleRate,n=t.errorSampleRate;if(!("sessionStorage"in window))return null;try{var r=window.sessionStorage.getItem("sentryReplaySession");if(!r)return null;var i=JSON.parse(r);return new Uo(i,{stickySession:!0,sessionSampleRate:e,errorSampleRate:n})}catch(t){return null}}({sessionSampleRate:i,errorSampleRate:s});if(o){if(!Do(o,e))return{type:"saved",session:o};No.log("Session has expired")}return{type:"new",session:function(t){var e=t.sessionSampleRate,n=t.errorSampleRate,r=t.stickySession,i=void 0!==r&&r,s=new Uo(void 0,{stickySession:i,errorSampleRate:n,sessionSampleRate:e});return No.log("Creating new session: ".concat(s.id)),i&&Io(s),s}({stickySession:r,sessionSampleRate:i,errorSampleRate:s})}}function Mo(t){if(wo()){var e,n,r=t.category,i=t.level,s=t.message,o=fo(t,["category","level","message"]);e=po({category:r||"console",level:i||"debug",message:"[debug]: ".concat(s)},o),qr().addBreadcrumb(e,n)}}function Lo(t){wo()&&jr(t)}var Bo,Po=["name","type","startTime","transferSize","duration"];function Go(t){return function(e){return Po.every((function(n){return t[n]===e[n]}))}}var Yo=((Bo={resource:function(t){var e=t.entryType,n=t.initiatorType,r=t.name,i=t.responseEnd,s=t.startTime,o=t.encodedBodySize,a=t.transferSize;if(To(r))return null;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:"".concat(e,".").concat(n),start:Fo(s),end:Fo(i),name:r,data:{size:a,encodedBodySize:o}}},paint:function(t){var e=t.duration,n=t.entryType,r=t.name,i=Fo(t.startTime);return{type:n,name:r,start:i,end:i+e}},navigation:function(t){var e=t.entryType,n=t.name,r=t.duration,i=t.domComplete,s=t.startTime,o=t.transferSize,a=t.type;if(0===r)return null;return{type:"".concat(e,".").concat(a),start:Fo(s),end:Fo(i),name:n,data:{size:o,duration:r}}}})["largest-contentful-paint"]=function(t){var e=t.duration,n=t.entryType,r=t.startTime,i=t.size,s=Fo(r);return{type:n,name:n,start:s,end:s+e,data:{duration:e,size:i,nodeId:ho.mirror.getId(t.element)}}},Bo);function zo(t){return void 0===Yo[t.entryType]?null:Yo[t.entryType](t)}function Fo(t){return((mr||window.performance.timeOrigin)+t)/1e3}var $o=function(){function t(){this.events=[]}return t.prototype.destroy=function(){this.events=[]},Object.defineProperty(t.prototype,"length",{get:function(){return this.events.length},enumerable:!1,configurable:!0}),t.prototype.addEvent=function(t,e){e?this.events=[t]:this.events.push(t)},t.prototype.finish=function(){var t=this;return new Promise((function(e){var n=t.events;t.events=[],e(JSON.stringify(n))}))},t}(),Ho=function(){function t(t){var e=this;this.eventBufferItemLength=0,this._id=0,this.sendEventToWorker=function(t){var n=e.postMessage({id:e.id,method:"addEvent",args:[t]});return e.eventBufferItemLength++,n},this.finishRequest=function(t){return _o(e,void 0,void 0,(function(){var e;return mo(this,(function(n){return e=this.postMessage({id:t,method:"finish",args:[]}),this.eventBufferItemLength=0,[2,e]}))}))},this.worker=t}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id++},enumerable:!1,configurable:!0}),t.prototype.postMessage=function(t){var e=this,n=t.id,r=t.method,i=t.args;return new Promise((function(t,s){var o,a,c,u=function(i){var o,a=i.data;if(a.method===r&&a.id===n){if(null===(o=e.worker)||void 0===o||o.removeEventListener("message",u),!a.success)return No.error(a.response),void s(new Error("Error in compression worker"));t(a.response)}};try{c=JSON.stringify(i)}catch(t){console.error(t),c="[]"}null===(o=e.worker)||void 0===o||o.addEventListener("message",u),null===(a=e.worker)||void 0===a||a.postMessage({id:n,method:r,args:c})}))},t.prototype.init=function(){this.postMessage({id:this.id,method:"init",args:[]}),No.log("Initialized compression worker")},t.prototype.destroy=function(){var t;No.log("Destroying compression worker"),null===(t=this.worker)||void 0===t||t.terminate(),this.worker=null},Object.defineProperty(t.prototype,"length",{get:function(){return this.eventBufferItemLength},enumerable:!1,configurable:!0}),t.prototype.addEvent=function(t,e){return _o(this,void 0,void 0,(function(){return mo(this,(function(n){switch(n.label){case 0:return e?[4,this.postMessage({id:this.id,method:"init",args:[]})]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2,this.sendEventToWorker(t)]}}))}))},t.prototype.finish=function(){return this.finishRequest(this.id)},t}(),qo="img,image,svg,path,rect,area,video,object,picture,embed,map,audio",Wo=!1,Zo="undefined"!=typeof window,Vo=function(){function t(e){void 0===e&&(e={});var n=this,r=e.flushMinDelay,i=void 0===r?5e3:r,s=e.flushMaxDelay,o=void 0===s?15e3:s,a=e.initialFlushDelay,c=void 0===a?5e3:a,u=e.stickySession,d=void 0===u||u,l=e.useCompression,h=void 0===l||l,p=e.sessionSampleRate,f=void 0===p?.1:p,_=e.errorSampleRate,m=void 0===_?1:_,g=e.maskAllText,y=void 0===g||g,v=e.maskAllInputs,b=void 0===v||v,S=e.blockAllMedia,E=void 0===S||S,w=e.blockClass,T=void 0===w?"sentry-block":w,k=e.ignoreClass,x=void 0===k?"sentry-ignore":k,R=e.maskTextClass,O=void 0===R?"sentry-mask":R,D=e.blockSelector,C=void 0===D?"[data-sentry-block]":D,N=e.replaysSamplingRate,I=e.captureOnlyOnError,j=fo(e,["flushMinDelay","flushMaxDelay","initialFlushDelay","stickySession","useCompression","sessionSampleRate","errorSampleRate","maskAllText","maskAllInputs","blockAllMedia","blockClass","ignoreClass","maskTextClass","blockSelector","replaysSamplingRate","captureOnlyOnError"]);this.name=t.id,this.performanceEvents=[],this.performanceObserver=null,this.retryCount=0,this.retryInterval=5e3,this.flushLock=null,this.lastActivity=(new Date).getTime(),this.isEnabled=!1,this.isPaused=!1,this.waitForError=!1,this.hasInitializedCoreListeners=!1,this.stopRecording=null,this.context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:(new Date).getTime(),initialUrl:""},this.handleGlobalEvent=function(t){var e,r,i,s,o;if("replay_event"===t.type)return delete t.breadcrumbs,t;if("transaction"===t.type&&n.waitForError||(t.tags=po(po({},t.tags),{replayId:null===(e=n.session)||void 0===e?void 0:e.id})),"transaction"===t.type)return n.context.traceIds.add(String((null===(i=null===(r=t.contexts)||void 0===r?void 0:r.trace)||void 0===i?void 0:i.trace_id)||"")),t;n.context.errorIds.add(t.event_id);var a=null===(o=null===(s=t.exception)||void 0===s?void 0:s.values)||void 0===o?void 0:o[0];return Mo({message:"Tagging event (".concat(t.event_id,") - ").concat(t.message," - ").concat((null==a?void 0:a.type)||"Unknown",": ").concat((null==a?void 0:a.value)||"n/a")}),n.waitForError&&t.exception&&"Unable to send Replay"!==t.message&&setTimeout((function(){return _o(n,void 0,void 0,(function(){return mo(this,(function(t){switch(t.label){case 0:return[4,this.flushImmediate()];case 1:return t.sent(),this.stopRecording&&(this.stopRecording(),delete this.recordingOptions.checkoutEveryNms,this.waitForError=!1,this.startRecording()),[2]}}))}))})),t},this.handleRecordingEmit=function(t,e){n.checkAndHandleExpiredSession()?n.addUpdate((function(){var r,i;return n.waitForError&&2===t.type&&n.setInitialState(),n.addEvent(t,e),2===t.type&&((null===(r=n.session)||void 0===r?void 0:r.previousSessionId)||(n.waitForError&&n.session&&n.context.earliestEvent&&(n.session.started=n.context.earliestEvent),setTimeout((function(){return n.conditionalFlush()}),n.options.initialFlushDelay),null===(i=n.debouncedFlush)||void 0===i||i.cancel()),!0)})):No.error(new Error("Received replay event after session expired."))},this.handleVisibilityChange=function(){"visible"===document.visibilityState?n.doChangeToForegroundTasks():n.doChangeToBackgroundTasks()},this.handleWindowBlur=function(){var t=yo({category:"ui.blur"});n.doChangeToBackgroundTasks(t)},this.handleWindowFocus=function(){var t=yo({category:"ui.focus"});n.doChangeToForegroundTasks(t)},this.handleCoreSpanListener=function(t){return function(e){if(n.isEnabled){var r=function(t){return"fetch"===t?ko:"xhr"===t?Ro:xo}(t)(e);null!==r&&("history"===t&&(n.context.urls.push(r.name),n.triggerUserActivity()),n.addUpdate((function(){return n.createPerformanceSpans([r]),["xhr","fetch"].includes(t)})))}}},this.handleCoreBreadcrumbListener=function(t){return function(e){if(n.isEnabled){var r=function(t){return"scope"===t?So:vo}(t)(e);null!==r&&"sentry.transaction"!==r.category&&("ui.click"===r.category?n.triggerUserActivity():n.checkAndHandleExpiredSession(),n.addUpdate((function(){return n.addEvent({type:rs.Custom,timestamp:1e3*(r.timestamp||0),data:{tag:"breadcrumb",payload:r}}),"console"===r.category})))}}},this.handlePerformanceObserver=function(t){var e=function(t,e){var n=t.reduce((function(t,e){return"navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t}),[[],[],[]]),r=n[0],i=n[1],s=n[2],o=[],a=[],c=i.length?i[i.length-1]:void 0;return e.forEach((function(t){if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)o.push(t);else{var e=t;t.duration>0&&!r.find(Go(e))&&!a.find(Go(e))&&a.push(e)}else(!c||c.startTime<t.startTime)&&(c=t)})),go(go(go(go(go([],c?[c]:[],!0),r,!0),s,!0),o,!0),a,!0).sort((function(t,e){return t.startTime-e.startTime}))}(n.performanceEvents,t.getEntries());n.performanceEvents=e},this.flush=function(){return _o(n,void 0,void 0,(function(){var t,e,n;return mo(this,(function(r){switch(r.label){case 0:return this.isEnabled?this.checkAndHandleExpiredSession()?(null===(e=this.session)||void 0===e?void 0:e.id)?(null===(n=this.debouncedFlush)||void 0===n||n.cancel(),this.flushLock?[3,2]:(this.flushLock=this.runFlush(),[4,this.flushLock])):(console.error(new Error("[Sentry]: No transaction, no replay")),[2]):(No.error(new Error("Attempting to finish replay event after session expired.")),[2]):[2];case 1:return r.sent(),this.flushLock=null,[2];case 2:return r.trys.push([2,4,5,6]),[4,this.flushLock];case 3:return r.sent(),[3,6];case 4:return t=r.sent(),console.error(t),[3,6];case 5:return this.debouncedFlush(),[7];case 6:return[2]}}))}))},this.recordingOptions=po({maskAllInputs:b,blockClass:T,ignoreClass:x,maskTextClass:O,blockSelector:C},j);var U=void 0!==N,A=void 0!==I;if(this.options={flushMinDelay:i,flushMaxDelay:o,stickySession:d,initialFlushDelay:c,sessionSampleRate:U?N:f,errorSampleRate:A?1:m,useCompression:h,maskAllText:y,blockAllMedia:E},A&&console.warn("[@sentry/replay]: The `captureOnlyOnError` option is deprecated! Please configure `errorSampleRate` instead."),U&&console.warn("[@sentry/replay]: The `replaysSamplingRate` option is deprecated! Please configure `sessionSampleRate` instead."),this.options.maskAllText&&(this.recordingOptions.maskTextSelector="*"),this.options.blockAllMedia&&(this.recordingOptions.blockSelector=this.recordingOptions.blockSelector?"".concat(this.recordingOptions.blockSelector,",").concat(qo):qo),this.debouncedFlush=Ci()((function(){return n.flush()}),this.options.flushMinDelay,{maxWait:this.options.flushMaxDelay}),Zo&&Wo){var M=new Error("Multiple Sentry Session Replay instances are not supported");throw Lo(M),M}Wo=!0}return t.prototype.setupOnce=function(){var t=this;Zo&&window.setTimeout((function(){return t.start()}))},t.prototype.start=function(){Zo&&(this.setInitialState(),this.loadSession({expiry:3e5}),this.session?this.session.sampled&&("error"===this.session.sampled&&(this.recordingOptions.checkoutEveryNms=6e4,this.waitForError=!0),this.updateSessionActivity(),this.eventBuffer=function(t){if(t.useCompression&&window.Worker){var e=new Blob(['/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([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]),a=new Uint8Array([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]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const b=t=>t<256?o[t]:o[256+(t>>>7)],g=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},p=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,g(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},m=(t,e,a)=>{p(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)i[n]=r=r+a[n-1]<<1;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=t=>{t.bi_valid>8?g(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.last_lit)do{s=t.pending_buf[t.d_buf+2*f]<<8|t.pending_buf[t.d_buf+2*f+1],r=t.pending_buf[t.l_buf+f],f++,0===s?m(t,r,i):(o=l[r],m(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],p(t,r,_)),s--,o=b(s),m(t,o,n),_=a[o],0!==_&&(s-=d[o],p(t,s,_)))}while(f<t.last_lit);m(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},S=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{m(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(m(t,n,t.bl_tree),o--),m(t,16,t.bl_tree),p(t,o-3,2)):o<=10?(m(t,17,t.bl_tree),p(t,o-3,3)):(m(t,18,t.bl_tree),p(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let U=!1;const D=(t,e,a,i)=>{p(t,0+(i?1:0),3),((t,e,a,i)=>{x(t),i&&(g(t,a),g(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a})(t,e,a,!0)};var O=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(p(t,2+(i?1:0),3),E(t,s,r)):(p(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(p(t,e-257,5),p(t,a-1,5),p(t,i-4,4),s=0;s<i;s++)p(t,t.bl_tree[2*n[s]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},T={_tr_init:t=>{U||((()=>{let t,n,w,b,g;const p=new Array(16);for(w=0,b=0;b<28;b++)for(h[b]=w,t=0;t<1<<e[b];t++)l[w++]=b;for(l[w-1]=b,g=0,b=0;b<16;b++)for(d[b]=g,t=0;t<1<<a[b];t++)o[g++]=b;for(g>>=7;b<30;b++)for(d[b]=g<<7,t=0;t<1<<a[b]-7;t++)o[256+g++]=b;for(n=0;n<=15;n++)p[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,p[8]++;for(;t<=255;)s[2*t+1]=9,t++,p[9]++;for(;t<=279;)s[2*t+1]=7,t++,p[7]++;for(;t<=287;)s[2*t+1]=8,t++,p[8]++;for(v(s,287,p),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),U=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:O,_tr_tally:(t,e,a)=>(t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*b(e)]++),t.last_lit===t.lit_bufsize-1),_tr_align:t=>{p(t,2,3),m(t,256,s),(t=>{16===t.bi_valid?(g(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var N=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const F=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var L=(t,e,a,i)=>{const n=F,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=T,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:J,Z_OK:W,Z_STREAM_END:q,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>(t<<1)-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0};let _t=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ft=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ct=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ft(t.strm)},ut=(t,e)=>{t.pending_buf[t.pending++]=e},wt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=L(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n,s,r;do{if(s=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)){t.window.set(t.window.subarray(e,e+e),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,i=t.hash_size,a=i;do{n=t.head[--a],t.head[a]=n>=e?n-e:0}while(--i);i=e,a=i;do{n=t.prev[--a],t.prev[a]=n>=e?n-e:0}while(--i);s+=e}if(0===t.strm.avail_in)break;if(i=bt(t.strm,t.window,t.strstart+t.lookahead,s),t.lookahead+=i,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=_t(t,t.ins_h,t.window[r+1]);t.insert&&(t.ins_h=_t(t,t.ins_h,t.window[r+3-1]),t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},mt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=_t(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=_t(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=_t(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ct(t,!1),0===t.strm.avail_out)?1:2},kt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=_t(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=_t(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ct(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ct(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ct(t,!1),0===t.strm.avail_out)?1:2};function vt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const yt=[new vt(0,0,0,0,((t,e)=>{let a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(pt(t),0===t.lookahead&&e===P)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;const i=t.block_start+a;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,ct(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-262&&(ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ct(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(ct(t,!1),t.strm.avail_out),1)})),new vt(4,4,8,4,mt),new vt(4,5,16,8,mt),new vt(4,6,32,32,mt),new vt(4,4,16,16,kt),new vt(8,16,32,32,kt),new vt(8,16,128,128,kt),new vt(8,32,128,256,kt),new vt(32,128,258,1024,kt),new vt(32,258,258,4096,kt)];function xt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const zt=t=>{if(!t||!t.state)return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=P,C(e),W},At=t=>{const e=zt(t);var a;return e===W&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=yt[a.level].max_lazy,a.good_match=yt[a.level].good_length,a.nice_match=yt[a.level].nice_length,a.max_chain_length=yt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Et=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt)return lt(t,Q);8===i&&(i=9);const o=new xt;return t.state=o,o.strm=t,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=e,o.strategy=s,o.method=a,At(t)};var Rt={deflateInit:(t,e)=>Et(t,e,ot,15,8,st),deflateInit2:Et,deflateReset:At,deflateResetKeep:zt,deflateSetHeader:(t,e)=>t&&t.state?2!==t.state.wrap?Q:(t.state.gzhead=e,W):Q,deflate:(t,e)=>{let a,i;if(!t||!t.state||e>J||e<0)return t?lt(t,Q):Q;const n=t.state;if(!t.output||!t.input&&0!==t.avail_in||666===n.status&&e!==X)return lt(t,0===t.avail_out?$:Q);n.strm=t;const s=n.last_flush;if(n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,ut(n,31),ut(n,139),ut(n,8),n.gzhead?(ut(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),ut(n,255&n.gzhead.time),ut(n,n.gzhead.time>>8&255),ut(n,n.gzhead.time>>16&255),ut(n,n.gzhead.time>>24&255),ut(n,9===n.level?2:n.strategy>=at||n.level<2?4:0),ut(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(ut(n,255&n.gzhead.extra.length),ut(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=L(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(ut(n,0),ut(n,0),ut(n,0),ut(n,0),ut(n,0),ut(n,9===n.level?2:n.strategy>=at||n.level<2?4:0),ut(n,3),n.status=113);else{let e=ot+(n.w_bits-8<<4)<<8,a=-1;a=n.strategy>=at||n.level<2?0:n.level<6?1:6===n.level?2:3,e|=a<<6,0!==n.strstart&&(e|=32),e+=31-e%31,n.status=113,wt(n,e),0!==n.strstart&&(wt(n,t.adler>>>16),wt(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),ft(t),a=n.pending,n.pending!==n.pending_buf_size));)ut(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),ft(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,ut(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),ft(t),a=n.pending,n.pending===n.pending_buf_size)){i=1;break}i=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,ut(n,i)}while(0!==i);n.gzhead.hcrc&&n.pending>a&&(t.adler=L(t.adler,n.pending_buf,n.pending-a,a)),0===i&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&ft(t),n.pending+2<=n.pending_buf_size&&(ut(n,255&t.adler),ut(n,t.adler>>8&255),t.adler=0,n.status=113)):n.status=113),0!==n.pending){if(ft(t),0===t.avail_out)return n.last_flush=-1,W}else if(0===t.avail_in&&ht(e)<=ht(s)&&e!==X)return lt(t,$);if(666===n.status&&0!==t.avail_in)return lt(t,$);if(0!==t.avail_in||0!==n.lookahead||e!==P&&666!==n.status){let a=n.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ct(t,!1),0===t.strm.avail_out)?1:2})(n,e):n.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ct(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ct(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(ct(t,!1),0===t.strm.avail_out)?1:2})(n,e):yt[n.level].func(n,e);if(3!==a&&4!==a||(n.status=666),1===a||3===a)return 0===t.avail_out&&(n.last_flush=-1),W;if(2===a&&(e===Y?K(n):e!==J&&(H(n,0,0,!1),e===G&&(dt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),ft(t),0===t.avail_out))return n.last_flush=-1,W}return e!==X?W:n.wrap<=0?q:(2===n.wrap?(ut(n,255&t.adler),ut(n,t.adler>>8&255),ut(n,t.adler>>16&255),ut(n,t.adler>>24&255),ut(n,255&t.total_in),ut(n,t.total_in>>8&255),ut(n,t.total_in>>16&255),ut(n,t.total_in>>24&255)):(wt(n,t.adler>>>16),wt(n,65535&t.adler)),ft(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?W:q)},deflateEnd:t=>{if(!t||!t.state)return Q;const e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&103!==e&&113!==e&&666!==e?lt(t,Q):(t.state=null,113===e?lt(t,V):W)},deflateSetDictionary:(t,e)=>{let a=e.length;if(!t||!t.state)return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=N(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=_t(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,W},deflateInfo:"pako deflate (from Nodeca project)"};const Zt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var St=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Zt(a,e)&&(t[e]=a[e])}}return t},Ut=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Dt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Dt=!1}const Ot=new Uint8Array(256);for(let t=0;t<256;t++)Ot[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ot[254]=Ot[254]=1;var Tt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},Nt=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Ot[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Dt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Ft=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ot[t[a]]>e?a:e};var Lt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const It=Object.prototype.toString,{Z_NO_FLUSH:Bt,Z_SYNC_FLUSH:Ct,Z_FULL_FLUSH:Ht,Z_FINISH:Mt,Z_OK:jt,Z_STREAM_END:Kt,Z_DEFAULT_COMPRESSION:Pt,Z_DEFAULT_STRATEGY:Yt,Z_DEFLATED:Gt}=B;function Xt(t){this.options=St({level:Pt,method:Gt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Yt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lt,this.strm.avail_out=0;let a=Rt.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==jt)throw new Error(I[a]);if(e.header&&Rt.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Tt(e.dictionary):"[object ArrayBuffer]"===It.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=Rt.deflateSetDictionary(this.strm,t),a!==jt)throw new Error(I[a]);this._dict_set=!0}}function Jt(t,e){const a=new Xt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Xt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Mt:Bt,"string"==typeof t?a.input=Tt(t):"[object ArrayBuffer]"===It.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===Ct||s===Ht)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=Rt.deflate(a,s),n===Kt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Rt.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===jt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Xt.prototype.onData=function(t){this.chunks.push(t)},Xt.prototype.onEnd=function(t){t===jt&&(this.result=Ut(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Wt={Deflate:Xt,deflate:Jt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Jt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Jt(t,e)},constants:B};var qt=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,b,g,p,m,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,b=(1<<E.lenbits)-1,g=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),p=u[f&b];e:for(;;){if(m=p>>>24,f>>>=m,c-=m,m=p>>>16&255,0===m)A[n++]=65535&p;else{if(!(16&m)){if(0==(64&m)){p=u[(65535&p)+(f&(1<<m)-1)];continue e}if(32&m){E.mode=12;break t}t.msg="invalid literal/length code",E.mode=30;break t}k=65535&p,m&=15,m&&(c<m&&(f+=z[a++]<<c,c+=8),k+=f&(1<<m)-1,f>>>=m,c-=m),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),p=w[f&g];a:for(;;){if(m=p>>>24,f>>>=m,c-=m,m=p>>>16&255,!(16&m)){if(0==(64&m)){p=w[(65535&p)+(f&(1<<m)-1)];continue a}t.msg="invalid distance code",E.mode=30;break t}if(v=65535&p,m&=15,c<m&&(f+=z[a++]<<c,c+=8,c<m&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<m)-1,v>o){t.msg="invalid distance too far back",E.mode=30;break t}if(f>>>=m,c-=m,m=n-s,v>m){if(m=v-m,m>h&&E.sane){t.msg="invalid distance too far back",E.mode=30;break t}if(y=0,x=_,0===d){if(y+=l-m,m<k){k-=m;do{A[n++]=_[y++]}while(--m);y=n-v,x=A}}else if(d<m){if(y+=l+d-m,m-=d,m<k){k-=m;do{A[n++]=_[y++]}while(--m);if(y=0,d<k){m=d,k-=m;do{A[n++]=_[y++]}while(--m);y=n-v,x=A}}}else if(y+=d-m,m<k){k-=m;do{A[n++]=_[y++]}while(--m);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const Qt=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Vt=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),$t=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),te=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ee=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,b=0,g=0,p=0,m=0,k=0,v=0,y=0,x=0,z=0,A=null,E=0;const R=new Uint16Array(16),Z=new Uint16Array(16);let S,U,D,O=null,T=0;for(w=0;w<=15;w++)R[w]=0;for(b=0;b<i;b++)R[e[a+b]]++;for(m=l,p=15;p>=1&&0===R[p];p--);if(m>p&&(m=p),0===p)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(g=1;g<p&&0===R[g];g++);for(m<g&&(m=g),y=1,w=1;w<=15;w++)if(y<<=1,y-=R[w],y<0)return-1;if(y>0&&(0===t||1!==p))return-1;for(Z[1]=0,w=1;w<15;w++)Z[w+1]=Z[w]+R[w];for(b=0;b<i;b++)0!==e[a+b]&&(r[Z[e[a+b]]++]=b);if(0===t?(A=O=r,u=19):1===t?(A=Qt,E-=257,O=Vt,T-=257,u=256):(A=$t,O=te,u=-1),z=0,b=0,w=g,c=s,k=m,v=0,_=-1,x=1<<m,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){S=w-v,r[b]<u?(U=0,D=r[b]):r[b]>u?(U=O[T+r[b]],D=A[E+r[b]]):(U=96,D=0),h=1<<w-v,d=1<<k,g=d;do{d-=h,n[c+(z>>v)+d]=S<<24|U<<16|D|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,b++,0==--R[w]){if(w===p)break;w=e[a+r[b]]}if(w>m&&(z&f)!==_){for(0===v&&(v=m),c+=g,k=w-v,y=1<<k;k+v<p&&(y-=R[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=m<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=m,0};const{Z_FINISH:ae,Z_BLOCK:ie,Z_TREES:ne,Z_OK:se,Z_STREAM_END:re,Z_NEED_DICT:oe,Z_STREAM_ERROR:le,Z_DATA_ERROR:he,Z_MEM_ERROR:de,Z_BUF_ERROR:_e,Z_DEFLATED:fe}=B,ce=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ue(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const we=t=>{if(!t||!t.state)return le;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,se},be=t=>{if(!t||!t.state)return le;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,we(t)},ge=(t,e)=>{let a;if(!t||!t.state)return le;const i=t.state;return e<0?(a=0,e=-e):(a=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?le:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,be(t))},pe=(t,e)=>{if(!t)return le;const a=new ue;t.state=a,a.window=null;const i=ge(t,e);return i!==se&&(t.state=null),i};let me,ke,ve=!0;const ye=t=>{if(ve){me=new Int32Array(512),ke=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ee(1,t.lens,0,288,me,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ee(2,t.lens,0,32,ke,0,t.work,{bits:5}),ve=!1}t.lencode=me,t.lenbits=9,t.distcode=ke,t.distbits=5},xe=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var ze={inflateReset:be,inflateReset2:ge,inflateResetKeep:we,inflateInit:t=>pe(t,15),inflateInit2:pe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,b,g,p,m,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return le;a=t.state,12===a.mode&&(a.mode=13),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=se;t:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0),h=0,d=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=30;break}if((15&h)!==fe){t.msg="unknown compression method",a.mode=30;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits)a.wbits=y;else if(y>a.wbits){t.msg="invalid window size",a.mode=30;break}a.dmax=1<<a.wbits,t.adler=a.check=1,a.mode=512&h?10:12,h=0,d=0;break;case 2:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==fe){t.msg="unknown compression method",a.mode=30;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=30;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=3;case 3:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=L(a.check,A,4,0)),h=0,d=0,a.mode=4;case 4:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=5;case 5:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=30;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=12;break;case 10:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=ce(h),h=0,d=0,a.mode=11;case 11:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,oe;t.adler=a.check=1,a.mode=12;case 12:if(e===ie||e===ne)break t;case 13:if(a.last){h>>>=7&d,d-=7&d,a.mode=27;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=14;break;case 1:if(ye(a),a.mode=20,e===ne){h>>>=2,d-=2;break t}break;case 2:a.mode=17;break;case 3:t.msg="invalid block type",a.mode=30}h>>>=2,d-=2;break;case 14:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=30;break}if(a.length=65535&h,h=0,d=0,a.mode=15,e===ne)break t;case 15:a.mode=16;case 16:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=12;break;case 17:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=30;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ee(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=30;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,g=z>>>16&255,p=65535&z,!(b<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(p<16)h>>>=b,d-=b,a.lens[a.have++]=p;else{if(16===p){for(R=b+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=b,d-=b,0===a.have){t.msg="invalid bit length repeat",a.mode=30;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===p){for(R=b+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=b,d-=b,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=b+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=b,d-=b,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=30;break}for(;c--;)a.lens[a.have++]=y}}if(30===a.mode)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=30;break}if(a.lenbits=9,E={bits:a.lenbits},x=ee(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=30;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ee(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=30;break}if(a.mode=20,e===ne)break t;case 20:a.mode=21;case 21:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,qt(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,12===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],b=z>>>24,g=z>>>16&255,p=65535&z,!(b<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g&&0==(240&g)){for(m=b,k=g,v=p;z=a.lencode[v+((h&(1<<m+k)-1)>>m)],b=z>>>24,g=z>>>16&255,p=65535&z,!(m+b<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,a.back+=m}if(h>>>=b,d-=b,a.back+=b,a.length=p,0===g){a.mode=26;break}if(32&g){a.back=-1,a.mode=12;break}if(64&g){t.msg="invalid literal/length code",a.mode=30;break}a.extra=15&g,a.mode=22;case 22:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;z=a.distcode[h&(1<<a.distbits)-1],b=z>>>24,g=z>>>16&255,p=65535&z,!(b<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&g)){for(m=b,k=g,v=p;z=a.distcode[v+((h&(1<<m+k)-1)>>m)],b=z>>>24,g=z>>>16&255,p=65535&z,!(m+b<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,a.back+=m}if(h>>>=b,d-=b,a.back+=b,64&g){t.msg="invalid distance code",a.mode=30;break}a.offset=p,a.extra=15&g,a.mode=24;case 24:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=30;break}a.mode=25;case 25:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=30;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=21);break;case 26:if(0===l)break t;n[r++]=a.length,l--,a.mode=21;break;case 27:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,f&&(t.adler=a.check=a.flags?L(a.check,n,f,r-f):N(a.check,n,f,r-f)),f=l,(a.flags?h:ce(h))!==a.check){t.msg="incorrect data check",a.mode=30;break}h=0,d=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=30;break}h=0,d=0}a.mode=29;case 29:x=re;break t;case 30:x=he;break t;case 31:return de;default:return le}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<30&&(a.mode<27||e!==ae))&&xe(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,t.next_out-f):N(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(12===a.mode?128:0)+(20===a.mode||15===a.mode?256:0),(0===_&&0===f||e===ae)&&x===se&&(x=_e),x},inflateEnd:t=>{if(!t||!t.state)return le;let e=t.state;return e.window&&(e.window=null),t.state=null,se},inflateGetHeader:(t,e)=>{if(!t||!t.state)return le;const a=t.state;return 0==(2&a.wrap)?le:(a.head=e,e.done=!1,se)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return t&&t.state?(i=t.state,0!==i.wrap&&11!==i.mode?le:11===i.mode&&(n=1,n=N(n,e,a,0),n!==i.check)?he:(s=xe(t,e,a,a),s?(i.mode=31,de):(i.havedict=1,se))):le},inflateInfo:"pako inflate (from Nodeca project)"};var Ae=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const Ee=Object.prototype.toString,{Z_NO_FLUSH:Re,Z_FINISH:Ze,Z_OK:Se,Z_STREAM_END:Ue,Z_NEED_DICT:De,Z_STREAM_ERROR:Oe,Z_DATA_ERROR:Te,Z_MEM_ERROR:Ne}=B;function Fe(t){this.options=St({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Lt,this.strm.avail_out=0;let a=ze.inflateInit2(this.strm,e.windowBits);if(a!==Se)throw new Error(I[a]);if(this.header=new Ae,ze.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Tt(e.dictionary):"[object ArrayBuffer]"===Ee.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=ze.inflateSetDictionary(this.strm,e.dictionary),a!==Se)))throw new Error(I[a])}Fe.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Ze:Re,"[object ArrayBuffer]"===Ee.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=ze.inflate(a,r),s===De&&n&&(s=ze.inflateSetDictionary(a,n),s===Se?s=ze.inflate(a,r):s===Te&&(s=De));a.avail_in>0&&s===Ue&&a.state.wrap>0&&0!==t[a.next_in];)ze.inflateReset(a),s=ze.inflate(a,r);switch(s){case Oe:case Te:case De:case Ne:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Ue))if("string"===this.options.to){let t=Ft(a.output,a.next_out),e=a.next_out-t,n=Nt(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Se||0!==o){if(s===Ue)return s=ze.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},Fe.prototype.onData=function(t){this.chunks.push(t)},Fe.prototype.onEnd=function(t){t===Se&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ut(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Le,deflate:Ie,deflateRaw:Be,gzip:Ce}=Wt;var He=Le,Me=B,je=new(function(){function t(){this.init()}return t.prototype.init=function(){this.added=0,this.deflate=new He,this.deflate.push("[",Me.Z_NO_FLUSH)},t.prototype.addEvent=function(t){if(t){var e=this.added>0?",":"";this.deflate.push(e+JSON.stringify(t),Me.Z_NO_FLUSH),this.added++}},t.prototype.finish=function(){if(this.deflate.push("]",Me.Z_FINISH),this.deflate.err)throw this.deflate.err;var t=this.deflate.result;return this.init(),t},t}()),Ke={init:function(){return je.init(),""},addEvent:function(t){return je.addEvent(t),""},finish:function(){return je.finish()}};addEventListener("message",(function(t){var e=t.data.method,a=t.data.id,i=(t.data.args?JSON.parse(t.data.args):[])[0];if(e in Ke&&"function"==typeof Ke[e])try{var n=Ke[e](i);postMessage({id:a,method:e,success:!0,response:n})}catch(t){postMessage({id:a,method:e,success:!1,response:t}),console.error(t)}}));']),n=URL.createObjectURL(e);try{No.log("Using compression worker");var r=new Worker(n);if(r)return new Ho(r);jr(new Error("Unable to create compression worker"))}catch(t){}No.log("Falling back to simple event buffer")}return No.log("Using simple buffer"),new $o}({useCompression:Boolean(this.options.useCompression)}),this.addListeners(),this.startRecording(),this.isEnabled=!0):Lo(new Error("Invalid session")))},t.prototype.startRecording=function(){try{this.stopRecording=ho(po(po({},this.recordingOptions),{emit:this.handleRecordingEmit}))}catch(t){No.error(t),Lo(t)}},t.prototype.stop=function(){var t,e;if(Zo)try{No.log("Stopping Replays"),this.isEnabled=!1,this.removeListeners(),null===(t=this.stopRecording)||void 0===t||t.call(this),null===(e=this.eventBuffer)||void 0===e||e.destroy(),this.eventBuffer=null}catch(t){No.error(t),Lo(t)}},t.prototype.pause=function(){this.isPaused=!0;try{this.stopRecording&&(this.stopRecording(),this.stopRecording=void 0)}catch(t){No.error(t),Lo(t)}},t.prototype.resume=function(){this.isPaused=!1,this.startRecording()},t.prototype.clearSession=function(){try{!function(){if("sessionStorage"in window)try{window.sessionStorage.removeItem("sentryReplaySession")}catch(t){}}(),this.session=void 0}catch(t){No.error(t),Lo(t)}},t.prototype.loadSession=function(t){var e,n,r=Ao({expiry:t.expiry,stickySession:Boolean(this.options.stickySession),currentSession:this.session,sessionSampleRate:this.options.sessionSampleRate,errorSampleRate:this.options.errorSampleRate}),i=r.type,s=r.session;"new"===i&&this.setInitialState(),s.id!==(null===(e=this.session)||void 0===e?void 0:e.id)&&(s.previousSessionId=null===(n=this.session)||void 0===n?void 0:n.id),this.session=s},t.prototype.setInitialState=function(){var t="".concat(window.location.pathname).concat(window.location.hash).concat(window.location.search),e="".concat(window.location.origin).concat(t);this.performanceEvents=[],this.clearContext(),this.context.initialUrl=e,this.context.initialTimestamp=(new Date).getTime(),this.context.urls.push(e)},t.prototype.addListeners=function(){var t,e=this;try{if(document.addEventListener("visibilitychange",this.handleVisibilityChange),window.addEventListener("blur",this.handleWindowBlur),window.addEventListener("focus",this.handleWindowFocus),!this.hasInitializedCoreListeners){var n=qr().getScope();null==n||n.addScopeListener(this.handleCoreBreadcrumbListener("scope")),Ri("dom",this.handleCoreBreadcrumbListener("dom")),Ri("fetch",this.handleCoreSpanListener("fetch")),Ri("xhr",this.handleCoreSpanListener("xhr")),Ri("history",this.handleCoreSpanListener("history")),t=this.handleGlobalEvent,Er().push(t),this.hasInitializedCoreListeners=!0}}catch(t){No.error(t),Lo(t)}"PerformanceObserver"in window&&(this.performanceObserver=new PerformanceObserver(this.handlePerformanceObserver),["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((function(t){var n;try{null===(n=e.performanceObserver)||void 0===n||n.observe({type:t,buffered:!0})}catch(t){}})))},t.prototype.removeListeners=function(){try{document.removeEventListener("visibilitychange",this.handleVisibilityChange),window.removeEventListener("blur",this.handleWindowBlur),window.removeEventListener("focus",this.handleWindowFocus),this.performanceObserver&&(this.performanceObserver.disconnect(),this.performanceObserver=null)}catch(t){No.error(t),Lo(t)}},t.prototype.addUpdate=function(t){var e=null==t?void 0:t();this.waitForError||!0!==e&&this.debouncedFlush()},t.prototype.doChangeToBackgroundTasks=function(t){if(this.session){var e=Do(this.session,3e5);t&&!e&&this.createCustomBreadcrumb(t),this.conditionalFlush()}},t.prototype.doChangeToForegroundTasks=function(t){this.session&&(this.checkAndHandleExpiredSession({expiry:3e5})?t&&this.createCustomBreadcrumb(t):No.log("Document has become active, but session has expired"))},t.prototype.triggerFullSnapshot=function(){No.log("Taking full rrweb snapshot"),ho.takeFullSnapshot(!0)},t.prototype.addEvent=function(t,e){var n;if(this.eventBuffer&&!this.isPaused){var r=t.timestamp>9999999999?t.timestamp:1e3*t.timestamp;r+3e5<(new Date).getTime()||(0===(null===(n=this.session)||void 0===n?void 0:n.segmentId)&&(!this.context.earliestEvent||r<this.context.earliestEvent)&&(this.context.earliestEvent=r),this.eventBuffer.addEvent(t,e))}},t.prototype.updateUserActivity=function(t){void 0===t&&(t=(new Date).getTime()),this.lastActivity=t},t.prototype.updateSessionActivity=function(t){void 0===t&&(t=(new Date).getTime()),this.session&&(this.session.lastActivity=t)},t.prototype.triggerUserActivity=function(){return _o(this,void 0,void 0,(function(){return mo(this,(function(t){return this.updateUserActivity(),this.stopRecording?(this.checkAndHandleExpiredSession(),this.updateSessionActivity(),[2]):(this.loadSession({expiry:3e5}),this.resume(),[2])}))}))},t.prototype.createCustomBreadcrumb=function(t){var e=this;this.addUpdate((function(){e.addEvent({type:rs.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))},t.prototype.createPerformanceSpans=function(t){var e=this;return Promise.all(t.map((function(t){var n=t.type,r=t.start,i=t.end,s=t.name,o=t.data;return e.addEvent({type:rs.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:s,startTimestamp:r,endTimestamp:i,data:o}}})})))},t.prototype.addPerformanceEntries=function(){var t=go([],this.performanceEvents,!0);return this.performanceEvents=[],this.createPerformanceSpans(function(t){return t.map(zo).filter(Boolean)}(t))},t.prototype.addMemoryEntry=function(){var t,e,n,r,i;if("memory"in window.performance)return this.createPerformanceSpans([(t=window.performance.memory,e=t.jsHeapSizeLimit,n=t.totalJSHeapSize,r=t.usedJSHeapSize,i=(new Date).getTime()/1e3,{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}})])},t.prototype.checkAndHandleExpiredSession=function(t){var e,n,r=(void 0===t?{}:t).expiry,i=void 0===r?3e5:r,s=null===(e=this.session)||void 0===e?void 0:e.id;if(!this.lastActivity||!Oo(this.lastActivity,18e5))return this.loadSession({expiry:i}),s===(null===(n=this.session)||void 0===n?void 0:n.id)||(this.triggerFullSnapshot(),!1);this.pause()},t.prototype.conditionalFlush=function(){this.waitForError||this.flushImmediate()},t.prototype.clearContext=function(){this.context.errorIds.clear(),this.context.traceIds.clear(),this.context.urls=[],this.context.earliestEvent=null},t.prototype.popEventContext=function(){this.context.earliestEvent&&this.context.earliestEvent<this.context.initialTimestamp&&(this.context.initialTimestamp=this.context.earliestEvent);var t={initialTimestamp:this.context.initialTimestamp,initialUrl:this.context.initialUrl,errorIds:Array.from(this.context.errorIds).filter(Boolean),traceIds:Array.from(this.context.traceIds).filter(Boolean),urls:this.context.urls};return this.clearContext(),t},t.prototype.runFlush=function(){var t;return _o(this,void 0,void 0,(function(){var e,n,r,i,s;return mo(this,(function(o){switch(o.label){case 0:return this.session?[4,this.addPerformanceEntries()]:(console.error(new Error("[Sentry]: No transaction, no replay")),[2]);case 1:return o.sent(),(null===(t=this.eventBuffer)||void 0===t?void 0:t.length)?[4,this.addMemoryEntry()]:[2];case 2:o.sent(),o.label=3;case 3:return o.trys.push([3,6,,7]),[4,this.eventBuffer.finish()];case 4:return e=o.sent(),n=this.session.id,r=this.popEventContext(),i=this.session.segmentId++,[4,this.sendReplay({replayId:n,events:e,segmentId:i,includeReplayStartTimestamp:0===i,eventContext:r})];case 5:return o.sent(),[3,7];case 6:return Lo(s=o.sent()),console.error(s),[3,7];case 7:return[2]}}))}))},t.prototype.flushImmediate=function(){return this.debouncedFlush(),this.debouncedFlush.flush()},t.prototype.sendReplayRequest=function(t){var e,n=t.events,r=t.replayId,i=t.segmentId,s=t.includeReplayStartTimestamp,o=t.eventContext;return _o(this,void 0,void 0,(function(){var t,a,c,u,d,l,h,p,f,_,m=this;return mo(this,(function(g){switch(g.label){case 0:return t=function(t){var e,n=t.events,r=t.headers,i="".concat(JSON.stringify(r),"\n");if("string"==typeof n)e="".concat(i).concat(n);else{var s=(new TextEncoder).encode(i);(e=new Uint8Array(s.length+n.length)).set(s),e.set(n,s.length)}return e}({events:n,headers:{segment_id:i}}),a=o.urls,c=o.errorIds,u=o.traceIds,d=o.initialTimestamp,l=(new Date).getTime(),h={name:"sentry.javascript.integration.replay",version:"0.6.14"},[4,new Promise((function(t){var e;null===(e=qr())||void 0===e||e._withClient((function(e,n){return _o(m,void 0,void 0,(function(){var o,p,f;return mo(this,(function(_){switch(_.label){case 0:return[4,e._prepareEvent(po(po({type:"replay_event"},s?{replay_start_timestamp:d/1e3}:{}),{timestamp:l/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:r,segment_id:i}),{event_id:r},n)];case 1:return o=_.sent(),(p=n&&n.getSession())&&e._updateSessionFromEvent(p,o),o.sdk=po(po({},o.sdk),h),o.tags=po(po({},o.tags),{sessionSampleRate:this.options.sessionSampleRate,errorSampleRate:this.options.errorSampleRate,replayType:null===(f=this.session)||void 0===f?void 0:f.sampled}),t(o),[2]}}))}))}))}))];case 1:p=g.sent(),f=function(t,e=[]){return[t,e]}({event_id:r,sent_at:(new Date).toISOString(),sdk:h},[[{type:"replay_event"},p],[{type:"replay_recording",length:t.length},t]]),_=qr().getClient();try{return[2,null===(e=null==_?void 0:_.getTransport())||void 0===e?void 0:e.send(f)]}catch(t){throw new Error("Unable to send Replay")}return[2]}}))}))},t.prototype.resetRetries=function(){this.retryCount=0,this.retryInterval=5e3},t.prototype.sendReplay=function(t){var e=t.replayId,n=t.events,r=t.segmentId,i=t.includeReplayStartTimestamp,s=t.eventContext;return _o(this,void 0,void 0,(function(){var t,o=this;return mo(this,(function(a){switch(a.label){case 0:if(!n.length)return[2];a.label=1;case 1:return a.trys.push([1,3,,5]),[4,this.sendReplayRequest({events:n,replayId:e,segmentId:r,includeReplayStartTimestamp:i,eventContext:s})];case 2:return a.sent(),this.resetRetries(),[2,!0];case 3:if(t=a.sent(),console.error(t),c="Replays",u={retryCount:this.retryCount},qr().setContext(c,u),Lo(t),this.retryCount>=3)throw new Error("".concat("Unable to send Replay"," - max retries exceeded"));return this.retryCount=this.retryCount+1,this.retryInterval=this.retryCount*this.retryInterval,[4,new Promise((function(t,a){setTimeout((function(){return _o(o,void 0,void 0,(function(){var o;return mo(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,this.sendReplay({replayId:e,events:n,segmentId:r,includeReplayStartTimestamp:i,eventContext:s})];case 1:return c.sent(),t(!0),[3,3];case 2:return o=c.sent(),a(o),[3,3];case 3:return[2]}}))}))}),o.retryInterval)}))];case 4:return[2,a.sent()];case 5:return[2]}var c,u}))}))},t.id="Replay",t}();const Jo=c.a;const Xo=(t,e,n)=>{let r,i;return s=>{e.value>=0&&(s||n)&&(i=e.value-(r||0),(i||void 0===r)&&(r=e.value,e.delta=i,t(e)))}},Ko=()=>Jo.__WEB_VITALS_POLYFILL__?Jo.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=Jo.performance.timing,e=Jo.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):Jo.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Qo=()=>{const t=Ko();return t&&t.activationStart||0},ta=(t,e)=>{const n=Ko();let r="navigate";return n&&(r=Jo.document.prerendering||Qo()>0?"prerender":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}},ea=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(t=>{e(t.getEntries())});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch(t){}},na=(t,e)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==Jo.document.visibilityState||(t(r),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let ra=-1;const ia=()=>(ra<0&&(ra="hidden"!==Jo.document.visibilityState||Jo.document.prerendering?1/0:0,na(({timeStamp:t})=>{ra=t},!0)),{get firstHiddenTime(){return ra}}),sa={};function oa(t){return"number"==typeof t&&isFinite(t)}function aa(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function ca(t){return t/1e3}function ua(){return Jo&&Jo.addEventListener&&Jo.performance}let da,la,ha=0,pa={};function fa(){const t=ua();if(t&&k.a){t.mark&&Jo.performance.mark("sentry-tracing-init"),(t=>{const e=ia(),n=ta("FID");let r;const i=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),r(!0))},s=t=>{t.forEach(i)},o=ea("first-input",s);r=Xo(t,n),o&&na(()=>{s(o.takeRecords()),o.disconnect()},!0)})(t=>{const e=t.entries.pop();if(!e)return;const n=ca(k.a),r=ca(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding FID"),pa.fid={value:t.value,unit:"millisecond"},pa["mark.fid"]={value:n+r,unit:"second"}});const e=(t=>{const e=ta("CLS",0);let n,r=0,i=[];const s=t=>{t.forEach(t=>{if(!t.hadRecentInput){const s=i[0],o=i[i.length-1];r&&0!==i.length&&t.startTime-o.startTime<1e3&&t.startTime-s.startTime<5e3?(r+=t.value,i.push(t)):(r=t.value,i=[t]),r>e.value&&(e.value=r,e.entries=i,n&&n())}})},o=ea("layout-shift",s);if(o){n=Xo(t,e);const r=()=>{s(o.takeRecords()),n(!0)};return na(r),r}})(t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding CLS"),pa.cls={value:t.value,unit:""},la=e)}),n=(t=>{const e=ia(),n=ta("LCP");let r;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-Qo(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[i],r())}},s=ea("largest-contentful-paint",i);if(s){r=Xo(t,n);const e=()=>{sa[n.id]||(i(s.takeRecords()),s.disconnect(),sa[n.id]=!0,r(!0))};return["keydown","click"].forEach(t=>{addEventListener(t,e,{once:!0,capture:!0})}),na(e,!0),e}})(t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding LCP"),pa.lcp={value:t.value,unit:"millisecond"},da=e)});return()=>{e&&e(),n&&n()}}return()=>{}}function _a(t){const e=ua();if(!e||!Jo.performance.getEntries||!k.a)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] Adding & adjusting spans using Performance API");const n=ca(k.a),r=e.getEntries();let i,s;if(r.slice(ha).forEach(e=>{const r=ca(e.startTime),o=ca(e.duration);if(!("navigation"===t.op&&n+r<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{ma(t,e,r,n)}),ma(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),ma(t,e,"fetch",n,"cache","domainLookupStart"),ma(t,e,"domainLookup",n,"DNS"),function(t,e,n){aa(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ca(e.requestStart),endTimestamp:n+ca(e.responseEnd)}),aa(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ca(e.responseStart),endTimestamp:n+ca(e.responseEnd)})}(t,e,n)}(t,e,n),i=n+ca(e.responseStart),s=n+ca(e.requestStart);break;case"mark":case"paint":case"measure":{!function(t,e,n,r,i){const s=i+n,o=s+r;aa(t,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:s})}(t,e,r,o,n);const i=ia(),s=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding FP"),pa.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding FCP"),pa.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":{const i=e.name.replace(Jo.location.origin,"");!function(t,e,n,r,i,s){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const o={};"transferSize"in e&&(o["http.response_transfer_size"]=e.transferSize);"encodedBodySize"in e&&(o["http.response_content_length"]=e.encodedBodySize);"decodedBodySize"in e&&(o["http.decoded_response_content_length"]=e.decodedBodySize);"renderBlockingStatus"in e&&(o["resource.render_blocking_status"]=e.renderBlockingStatus);const a=s+r;aa(t,{description:n,endTimestamp:a+i,op:e.initiatorType?"resource."+e.initiatorType:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:a,data:o})}(t,e,i,r,o,n);break}}}),ha=Math.max(r.length-1,0),function(t){const e=Jo.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),oa(n.rtt)&&(pa["connection.rtt"]={value:n.rtt,unit:"millisecond"}));oa(e.deviceMemory)&&t.setTag("deviceMemory",e.deviceMemory+" GB");oa(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding TTFB"),pa.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof s&&s<=i&&(pa["ttfb.requestTime"]={value:1e3*(i-s),unit:"millisecond"})),["fcp","fp","lcp"].forEach(e=>{if(!pa[e]||n>=t.startTimestamp)return;const r=pa[e].value,i=n+ca(r),s=Math.abs(1e3*(i-t.startTimestamp)),o=s-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Measurements] Normalized ${e} from ${r} to ${s} (${o})`),pa[e].value=s});const e=pa["mark.fid"];e&&pa.fid&&(aa(t,{description:"first input delay",endTimestamp:e.value+ca(pa.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:e.value}),delete pa["mark.fid"]),"fcp"in pa||delete pa.cls,Object.keys(pa).forEach(e=>{t.setMeasurement(e,pa[e].value,pa[e].unit)}),function(t){da&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding LCP Data"),da.element&&t.setTag("lcp.element",Object(wn.c)(da.element)),da.id&&t.setTag("lcp.id",da.id),da.url&&t.setTag("lcp.url",da.url.trim().slice(0,200)),t.setTag("lcp.size",da.size));la&&la.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Measurements] Adding CLS Data"),la.sources.forEach((e,n)=>t.setTag("cls.source."+(n+1),Object(wn.c)(e.node))))}(t)}da=void 0,la=void 0,pa={}}function ma(t,e,n,r,i,s){const o=s?e[s]:e[n+"End"],a=e[n+"Start"];a&&o&&aa(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ca(a),endTimestamp:r+ca(o)})}const ga=["localhost",/^\/(?!\/)/],ya={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:ga,tracePropagationTargets:ga};function va(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:s,enableHTTPTimings:o}={traceFetch:ya.traceFetch,traceXHR:ya.traceXHR,...t},a="function"==typeof s?s:t=>!0,c=t=>function(t,e){return Object(p.c)(t,e||ga)}(t,r||i),u={};e&&Pt("fetch",t=>{const e=function(t,e,n,r){if(!Dt()||!t.fetchData)return;const i=e(t.fetchData.url);if(t.endTimestamp&&i){const e=t.fetchData.__span;if(!e)return;const n=r[e];if(n){if(t.response){n.setHttpStatus(t.response.status);const e=t.response&&t.response.headers&&t.response.headers.get("content-length"),r=parseInt(e);r>0&&n.setData("http.response_content_length",r)}else t.error&&n.setStatus("internal_error");n.finish(),delete r[e]}return}const s=z(),o=s.getScope(),a=s.getClient(),c=o.getSpan(),{method:u,url:d}=t.fetchData,l=i&&c?c.startChild({data:{url:d,type:"fetch","http.method":u},description:`${u} ${d}`,op:"http.client",origin:"auto.http.browser"}):void 0;l&&(t.fetchData.__span=l.spanId,r[l.spanId]=l);if(n(t.fetchData.url)&&a){const e=t.args[0];t.args[1]=t.args[1]||{};const n=t.args[1];n.headers=function(t,e,n,r,i){const s=i||n.getSpan(),o=s&&s.transaction,{traceId:a,sampled:c,dsc:u}=n.getPropagationContext(),d=s?s.toTraceparent():ie(a,void 0,c),l=Qt(o?o.getDynamicSamplingContext():u||ce(a,e,n)),h="undefined"!=typeof Request&&Object(O.g)(t,Request)?t.headers:r.headers;if(h){if("undefined"!=typeof Headers&&Object(O.g)(h,Headers)){const t=new Headers(h);return t.append("sentry-trace",d),l&&t.append("baggage",l),t}if(Array.isArray(h)){const t=[...h,["sentry-trace",d]];return l&&t.push(["baggage",l]),t}{const t="baggage"in h?h.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),l&&e.push(l),{...h,"sentry-trace":d,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":d,baggage:l}}(e,a,o,n,l)}return l}(t,a,c,u);o&&e&&ba(e)}),n&&Pt("xhr",t=>{const e=function(t,e,n,r){const i=t.xhr,s=i&&i.__sentry_xhr_v2__;if(!Dt()||i&&i.__sentry_own_request__||!i||!s)return;const o=e(s.url);if(t.endTimestamp&&o){const t=i.__sentry_xhr_span_id__;if(!t)return;const e=r[t];return void(e&&(e.setHttpStatus(s.status_code),e.finish(),delete r[t]))}const a=z(),c=a.getScope(),u=c.getSpan(),d=o&&u?u.startChild({data:{...s.data,type:"xhr","http.method":s.method,url:s.url},description:`${s.method} ${s.url}`,op:"http.client",origin:"auto.http.browser"}):void 0;d&&(i.__sentry_xhr_span_id__=d.spanId,r[i.__sentry_xhr_span_id__]=d);if(i.setRequestHeader&&n(s.url))if(d){const t=d&&d.transaction,e=Qt(t&&t.getDynamicSamplingContext());Ea(i,d.toTraceparent(),e)}else{const t=a.getClient(),{traceId:e,sampled:n,dsc:r}=c.getPropagationContext(),s=ie(e,void 0,n),o=Qt(r||(t?ce(e,t,c):void 0));Ea(i,s,o)}return d}(t,a,c,u);o&&e&&ba(e)})}function ba(t){const e=t.data.url,n=new PerformanceObserver(r=>{r.getEntries().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)){(function(t){const{name:e,version:n}=function(t){let e="unknown",n="unknown",r="";for(const i of t){if("/"===i){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e="h"===r?"http":r,n=t.split(r)[1];break}r+=i}r===t&&(e=r);return{name:e,version:n}}(t.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",e]),!k.a)return r;return[...r,["http.request.redirect_start",Sa(t.redirectStart)],["http.request.fetch_start",Sa(t.fetchStart)],["http.request.domain_lookup_start",Sa(t.domainLookupStart)],["http.request.domain_lookup_end",Sa(t.domainLookupEnd)],["http.request.connect_start",Sa(t.connectStart)],["http.request.secure_connection_start",Sa(t.secureConnectionStart)],["http.request.connection_end",Sa(t.connectEnd)],["http.request.request_start",Sa(t.requestStart)],["http.request.response_start",Sa(t.responseStart)],["http.request.response_end",Sa(t.responseEnd)]]})(r).forEach(e=>t.setData(...e)),n.disconnect()}})});n.observe({entryTypes:["resource"]})}function Sa(t=0){return((k.a||performance.timeOrigin)+t)/1e3}function Ea(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader("baggage",n)}catch(t){}}const wa={...de,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!Jo||!Jo.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("Could not initialize routing instrumentation due to invalid location"));let r,i=Jo.location.href;e&&(r=t({name:Jo.location.pathname,startTimestamp:k.a?k.a/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&Pt("history",({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=t({name:Jo.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ya};class Ta{constructor(t){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,ye(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._hasSetTracePropagationTargets=!(!t||!t.tracePropagationTargets&&!t.tracingOrigins)),this.options={...wa,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=fa(),this.options.enableLongTask&&ea("longtask",t=>{for(const e of t){const t=Vt();if(!t)return;const n=ca(k.a+e.startTime),r=ca(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}),this.options._experiments.enableInteractions&&ea("event",t=>{for(const e of t){const t=Vt();if(!t)return;if("click"===e.name){const n=ca(k.a+e.startTime),r=ca(e.duration);t.startChild({description:Object(wn.c)(e.target),op:"ui.interaction."+e.name,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}},{durationThreshold:0})}setupOnce(t,e){this._getCurrentHub=e;const n=e().getClient(),r=n&&n.getOptions(),{routingInstrumentation:i,startTransactionOnLocationChange:s,startTransactionOnPageLoad:o,markBackgroundTransactions:a,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:d,enableHTTPTimings:l,_experiments:p}=this.options,f=r&&r.tracePropagationTargets,_=f||this.options.tracePropagationTargets;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._hasSetTracePropagationTargets&&f&&h.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),i(t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n},o,s),a&&(Jo&&Jo.document?Jo.document.addEventListener("visibilitychange",()=>{const t=Vt();if(Jo.document.hidden&&t){const e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}}):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("[Tracing] Could not set up background tab detection due to lack of global document")),p.enableInteractions&&this._registerInteractionListener(),va({traceFetch:c,traceXHR:u,tracePropagationTargets:_,shouldCreateSpanForRequest:d,enableHTTPTimings:l})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const e=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:s}=this.options,o="pageload"===t.op,a=o?ka("sentry-trace"):"",c=o?ka("baggage"):"",{traceparentData:u,dynamicSamplingContext:d,propagationContext:l}=re(a,c),p={...t,...u,metadata:{...t.metadata,dynamicSamplingContext:u&&!d?{}:d},trimEnd:!0},f="function"==typeof n?n(p):p,_=void 0===f?{...p,sampled:!1}:f;_.metadata=_.name!==p.name?{..._.metadata,source:"custom"}:_.metadata,this._latestRouteName=_.name,this._latestRouteSource=_.metadata&&_.metadata.source,!1===_.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Will not send ${_.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Tracing] Starting ${_.op} transaction on scope`);const{location:m}=Jo,g=ge(e,_,r,i,!0,{location:m},s),y=e.getScope();return o&&u?y.setPropagationContext(l):y.setPropagationContext({traceId:g.traceId,spanId:g.spanId,parentSpanId:g.parentSpanId,sampled:g.sampled}),g.registerBeforeFinishCallback(t=>{this._collectWebVitals(),_a(t)}),g}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:r}=this.options,i="ui.action.click",s=Vt();if(s&&s.op&&["navigation","pageload"].includes(s.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Tracing] Did not create ${i} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Tracing] Did not create ${i} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`));const o=this._getCurrentHub(),{location:a}=Jo,c={name:this._latestRouteName,op:i,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=ge(o,c,e,n,!0,{location:a},r)};["click"].forEach(t=>{addEventListener(t,e,{once:!1,capture:!0})})}}function ka(t){const e=Object(wn.a)(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function xa(t,e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.info("[Offline]: "+t,e)}function Ra(t){return e=>{const n=t(e),r=e.createStore?e.createStore(e):void 0;let i,s=5e3;function o(t,n,r){return i=["replay_event","replay_recording","client_report"],!et(t,(t,e)=>i.includes(e))&&(!e.shouldStore||e.shouldStore(t,n,r));var i}function a(t){r&&(i&&clearTimeout(i),i=setTimeout(async()=>{i=void 0;const t=await r.pop();t&&(xa("Attempting to send previously queued event"),u(t).catch(t=>{xa("Failed to retry sending",t)}))},t),"number"!=typeof i&&i.unref&&i.unref())}function c(){i||(a(s),s=Math.min(2*s,36e5))}async function u(t){try{const e=await n.send(t);let r=100;if(e)if(e.headers&&e.headers["retry-after"])r=Se(e.headers["retry-after"]);else if((e.statusCode||0)>=400)return e;return a(r),s=5e3,e}catch(e){if(r&&await o(t,e,s))return await r.insert(t),c(),xa("Error sending. Event queued",e),{};throw e}}return e.flushAtStartup&&c(),{send:u,flush:t=>n.flush(t)}}}function Oa(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Da(t){return Oa(t.getAllKeys())}function Ca(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=Oa(n);return t=>r.then(n=>t(n.transaction(e,"readwrite").objectStore(e)))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async e=>{try{const r=await rt(e,t.textEncoder);await function(t,e,n){return t(t=>Da(t).then(r=>{if(!(r.length>=n))return t.put(e,Math.max(...r,0)+1),Oa(t.transaction)}))}(n(),r,t.maxQueueSize||30)}catch(t){}},pop:async()=>{try{const e=await function(t){return t(t=>Da(t).then(e=>{if(0!==e.length)return Oa(t.get(e[0])).then(n=>(t.delete(e[0]),Oa(t.transaction).then(()=>n)))}))}(n());if(e)return function(t,e,n){let r="string"==typeof t?e.encode(t):t;function i(t){const e=r.subarray(0,t);return r=r.subarray(t+1),e}function s(){let t=r.indexOf(10);return t<0&&(t=r.length),JSON.parse(n.decode(i(t)))}const o=s(),a=[];for(;r.length;){const t=s(),e="number"==typeof t.length?t.length:void 0;a.push([t,e?i(e):s()])}return[o,a]}(e,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(t){}}}}function Na(t){return function(t){return e=>t({...e,createStore:Ca})}(Ra(t))}const Ia=String(0);let ja="",Ua="",Aa="",Ma=Ce.navigator&&Ce.navigator.userAgent||"",La="";const Ba=Ce.navigator&&Ce.navigator.language||Ce.navigator&&Ce.navigator.languages&&Ce.navigator.languages[0]||"";const Pa=Ce.navigator&&Ce.navigator.userAgentData;var Ga;function Ya(t){return function(t){return!("thread_metadata"in t)}(t)?function(t){let e=void 0,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[Ia]:{name:"main"}}};if(!t.samples.length)return r;const i=t.samples[0].timestamp,s="number"==typeof performance.timeOrigin?performance.timeOrigin:k.a||0,o=s-(k.a||s);for(let s=0;s<t.samples.length;s++){const a=t.samples[s];if(void 0===a.stackId){void 0===e&&(e=n,r.stacks[e]=[],n++),r.samples[s]={elapsed_since_start_ns:(1e6*(a.timestamp+o-i)).toFixed(0),stack_id:e,thread_id:Ia};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 d={elapsed_since_start_ns:(1e6*(a.timestamp+o-i)).toFixed(0),stack_id:n,thread_id:Ia};r.stacks[n]=u,r.samples[s]=d,n++}return r}(t):t}function za(t,e,n){if("transaction"!==t.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=function(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"==typeof e&&32!==e.length&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Profiling] Invalid traceId: ${e} on profiled event`),"string"!=typeof e?"":e}(t),i=Ya(e),s="number"==typeof t.start_timestamp?1e3*t.start_timestamp:Date.now(),o="number"==typeof t.timestamp?1e3*t.timestamp:Date.now();return{event_id:n,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:t.release||"",environment:t.environment||x,runtime:{name:"javascript",version:Ce.navigator.userAgent},os:{name:ja,version:Ua,build_number:Ma},device:{locale:Ba,model:La,manufacturer:Ma,architecture:Aa,is_emulator:!1},debug_meta:{images:$a(e.resources)},profile:i,transactions:[{name:t.transaction||"",id:t.event_id||f(),trace_id:r,active_thread_id:Ia,relative_start_ns:"0",relative_end_ns:(1e6*(o-s)).toFixed(0)}]}}"object"==typeof(Ga=Pa)&&null!==Ga&&"getHighEntropyValues"in Ga&&Pa.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(ja=t.platform||"",Aa=t.architecture||"",La=t.model||"",Ua=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Ma=`${e.brand} ${e.version}`}}).catch(t=>{});const Fa=new WeakMap;function $a(t){const e=c.a._sentryDebugIds;if(!e)return[];const n=z();if(!n)return[];const r=n.getClient();if(!r)return[];const i=r.getOptions();if(!i)return[];const s=i.stackParser;if(!s)return[];let o;const a=Fa.get(s);a?o=a:(o=new Map,Fa.set(s,o));const u=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 i=r.length-1;i>=0;i--){const s=r[i],o=s&&s.filename;if(s&&o){t[o]=e[n];break}}return t},{}),d=[];for(const e of t)e&&u[e]&&d.push({type:"sourcemap",code_file:e,debug_id:u[e]});return d}function Ha(t,e,n){return function(t){return t.samples.length<2?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!t.frames.length||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Discarding profile because it contains no frames"),!1)}(e)?za(n,e,t):null}const qa=new Map;let Wa=!1;function Za(t){return t?Va(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function Va(t){const e=Ce.Profiler;if("function"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."),t;if(Wa)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Profiling has been disabled for the duration of the current user session."),t;const n=z().getClient(),r=n&&n.getOptions();if(!r)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Profiling disabled, no options found."),t;const i=r.profilesSampleRate;if(!("number"!=typeof(s=i)&&"boolean"!=typeof s||"number"==typeof s&&isNaN(s)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.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)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${s}.`),0)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.warn("[Profiling] Discarding profile because of invalid sample rate."),t;var s;if(!i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),t;if(!(!0===i||Math.random()<i))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),t;const o=Math.floor(3e3);let a;try{a=new e({sampleInterval:10,maxBufferSize:o})}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(h.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),h.log("[Profiling] Disabling profiling for current user session.")),Wa=!0}if(!a)return t;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] started profiling transaction: "+(t.name||t.description));const c=f();async function u(){if(!t)return null;if(!a)return null;const e=t.startChild({description:"profiler.stop",op:"profiler",origin:"auto.profiler.browser"});return a.stop().then(n=>(e.finish(),d&&(Ce.clearTimeout(d),d=void 0),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] stopped profiling of transaction: "+(t.name||t.description)),n?(function(t,e){if(qa.set(t,e),qa.size>30){const t=qa.keys().next().value;qa.delete(t)}}(c,n),null):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] profiler returned null profile for: "+(t.name||t.description),"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(t=>(e.finish(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] error while stopping profiler:",t),null))}let d=Ce.setTimeout(()=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] max profile duration elapsed, stopping profiling for:",t.name||t.description),u()},3e4);const l=t.finish.bind(t);return t.finish=function(){return t?(u().then(()=>{t.setContext("profile",{profile_id:c}),l()},()=>{l()}),t):l()},t}class Ja{static __initStatic(){this.id="BrowserProfilingIntegration"}constructor(){this.name=Ja.id}setupOnce(t,e){this.getCurrentHub=e;const n=this.getCurrentHub().getClient();n&&"function"==typeof n.on?(n.on("startTransaction",t=>{Va(t)}),n.on("beforeEnvelope",t=>{if(!qa.size)return;const e=function(t){const e=[];return et(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;if(!r){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}e&&e.profile&&delete e.profile;const i=qa.get(r);if(!i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.log("[Profiling] Could not retrieve profile for transaction: "+r);continue}qa.delete(r);const s=Ha(r,i,t);s&&n.push(s)}!function(t,e){if(!e.length)return t;for(const n of e)t[1].push([{type:"profile"},n])}(t,n)})):h.warn("[Profiling] Client does not support hooks, profiling will be disabled")}}Ja.__initStatic();let Xa={};Ce.Sentry&&Ce.Sentry.Integrations&&(Xa=Ce.Sentry.Integrations);const Ka={...Xa,...r,...i}},92:function(t,e,n){"use strict";(function(t){function r(t){return t&&t.Math==Math?t:void 0}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return o}));const i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof t&&r(t)||function(){return this}()||{};function s(){return i}function o(t,e,n){const r=n||i,s=r.__SENTRY__=r.__SENTRY__||{};return s[t]||(s[t]=e())}}).call(this,n(43))}}]);
|
|
2
|
+
//# sourceMappingURL=2.maestro-web-sdk.umd.js.map
|