12 lines
586 KiB
JavaScript
12 lines
586 KiB
JavaScript
{function setupProxy(e){const t={window:"",navigator:"",location:"",Uint16Array:"",fetch:"",String:"",Math:"",Object:"",Symbol:"",Function:"",Array:"",Boolean:"",Number:"",Request:"",Date:"",JSON:"",encodeURIComponent:"",console:"",crypto:"",Map:"",isFinite:"",clearTimeout:"window",setTimeout:"window",__SENTRY__:"",sentryHooks:"",sentry:"",appState:"",extra:"",stateHooks:"",nw:"",document:"",history:"",isNaN:"",parseInt:""};for(const n in t){const r=t[n];let s=e[n];r&&(s=s.bind(e[r])),t[n]=s}const n=new Proxy(t,{set:function(n,r,s){if(t.hasOwnProperty(r)||r.startsWith("on"))return(t[r]=e[r]=s)||!0}});return function(e,t){"use strict";function n(e,t,n,r){const s=e[t];e[t]=function(e){e===r&&(e=n);const t=[].slice.call(arguments,1);return s.call(this,e,...t)}}n(Function.prototype,"bind",e,t),n(Function.prototype,"apply",e,t)}(e,n),n}const proxy=setupProxy(globalThis);with(proxy)with({window:proxy,self:proxy,globalThis:proxy})!function e(t,n,r){function s(i,a){if(!n[i]){if(!t[i]){var c="function"==typeof require&&require;if(!a&&c)return c(i,!0);if(o)return o(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[i]={exports:{}};t[i][0].call(l.exports,(function(e){return s(t[i][1][e]||e)}),l,l.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e){if(e.includes(r)){const t=e.slice(r.length);return t.slice(t.indexOf(s)+s.length)}return e};const r="Error: [ethjs-rpc] rpc error with payload ",s="Error: "},{}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.filterEvents=function({getMetaMetricsEnabled:e,log:t}){return{name:r,processEvent:async n=>await e()?n:(t("Event dropped as metrics disabled"),null)}};const r="FilterEvents"},{}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ERROR_URL_ALLOWLIST=void 0,n.beforeBreadcrumb=M,n.default=function(){if(!S)throw new Error("Missing release");if(!R())return m("Skipped initialization"),undefined;return m("Initializing"),i.default.management.getSelf().then((e=>{e.installType&&(h=e.installType)})).catch((e=>{m("Error getting extension installType",e)})),function(){if(!_)return;for(const e of["log","error"])o.logger[e]=(...t)=>{const n=t[0].replace(`Sentry Logger [${e}]: `,"");g(n,...t.slice(1))};m("Integrated logging")}(),function(){const e=function(){const e=function(){if("main"===y)return b;return`${b}-${y}`}(),t=R();return{beforeBreadcrumb:M(),beforeSend:e=>D(e),debug:_,dist:a.isManifestV3?"mv3":"mv2",dsn:t,environment:e,integrations:[s.dedupeIntegration(),s.extraErrorDataIntegration(),s.browserTracingIntegration({shouldCreateSpanForRequest:e=>!e.match(/^https?:\/\/([\w\d.@-]+\.)?sentry\.io(\/|$)/u)}),(0,l.filterEvents)({getMetaMetricsEnabled:O,log:m})],release:S,sendClientReports:!1,tracesSampleRate:A(t),transport:F}}(),{dsn:t,environment:n,release:r,tracesSampleRate:o}=e;globalThis.nw={},globalThis.history??(globalThis.history={}),m("Updating client",{environment:n,dsn:t,release:r,tracesSampleRate:o}),s.registerSpanErrorInstrumentation(),s.init(e),function(){const{circleci:e}=(0,c.getManifestFlags)();null!=e&&e.enabled&&(s.setTag("circleci.enabled",e.enabled),s.setTag("circleci.branch",e.branch),s.setTag("circleci.buildNum",e.buildNum),s.setTag("circleci.job",e.job),s.setTag("circleci.nodeIndex",e.nodeIndex),s.setTag("circleci.prNumber",e.prNumber))}(),function(){if(!_)return;const e=s.getClient();null==e||e.on("beforeEnvelope",(e=>{(function(e){var t,n;const r=null==e||null===(t=e[1])||void 0===t||null===(t=t[0])||void 0===t||null===(t=t[0])||void 0===t?void 0:t.type,s=(null==e||null===(n=e[1])||void 0===n||null===(n=n[0])||void 0===n?void 0:n[1])??{};return"session"===r&&"exited"===s.status})(e)&&m("Completed session",e)})),null==e||e.on("afterSendEvent",(e=>{const t=function(e){if("transaction"===e.type)return"Trace";if("error"===e.level)return"Error";return"Event"}(e);m(t,e)})),m("Added debug listeners")}()}(),{...s,getMetaMetricsEnabled:O}},n.log=void 0,n.removeUrlsFromBreadCrumb=P,n.rewriteReport=D;var r=e("@metamask/utils"),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var i=s?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(e("@sentry/browser")),o=e("@sentry/utils"),i=d(e("webextension-polyfill")),a=e("../../../shared/modules/mv3.utils"),c=e("../../../shared/lib/manifestFlags"),u=d(e("./extractEthjsErrorMessage")),l=e("./sentry-filter-events");function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}const f=(0,r.createProjectLogger)("sentry");let h="unknown";const m=n.log=(0,r.createModuleLogger)(f,globalThis.document?"ui":"background"),g=(0,r.createModuleLogger)(m,"internal"),y="main",_=!1,b="production",S="12.16.1",E="https://3567c198f8a8412082d32655da2961d0@sentry.io/273505",v="https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/273496",I="https://f69a0a009aed214608a6007d53d0286a@o124216.ingest.us.sentry.io/4506744588730368",w="https://fake@sentry.io/0000000",T=n.ERROR_URL_ALLOWLIST={CRYPTOCOMPARE:"cryptocompare.com",COINGECKO:"coingecko.com",ETHERSCAN:"etherscan.io",CODEFI:"codefi.network",SEGMENT:"segment.io"};function A(e){var t;if(e===w)return 1;const n=(0,c.getManifestFlags)();return(null===(t=n.sentry)||void 0===t?void 0:t.tracesSampleRate)!==undefined?n.sentry.tracesSampleRate:n.circleci?"main"===n.circleci.branch?.015:0:_?1:.0075}function C(e){return e.persistedState?x(e.persistedState):!!e.state&&(e.state.metamask?Boolean(e.state.metamask.participateInMetaMetrics):Boolean(null===(t=e.state.MetaMetricsController)||void 0===t?void 0:t.participateInMetaMetrics));var t}function x(e){var t;return Boolean(null==e||null===(t=e.data)||void 0===t||null===(t=t.MetaMetricsController)||void 0===t?void 0:t.participateInMetaMetrics)}function k(e){return e.persistedState?j(e.persistedState):!!e.state&&(e.state.metamask?Boolean(e.state.metamask.completedOnboarding):Boolean(null===(t=e.state.OnboardingController)||void 0===t?void 0:t.completedOnboarding));var t}function j(e){var t;return Boolean(null===(t=e.data)||void 0===t||null===(t=t.OnboardingController)||void 0===t?void 0:t.completedOnboarding)}function R(){if("production"!==b)return v;if("mmi"===y)return I;if(!E)throw new Error("Missing SENTRY_DSN environment variable in production environment");return E}async function O(){const e=(0,c.getManifestFlags)();if("mmi"===y||e.circleci&&e.sentry.forceEnable)return!0;const t=B();if(t.state||t.persistedState)return C(t)&&k(t);try{const e=await globalThis.stateHooks.getPersistedState();return x(e)&&j(e)}catch(e){return m("Error retrieving persisted state",e),!1}}function N(e){return e.match(/^(chrome-extension|moz-extension):\/\//u)?e:""}function M(){return e=>{if(!B)return null;const t=B();if(!C(t)||!k(t)||"ui.input"===(null==e?void 0:e.category))return null;return P(e)}}function P(e){var t,n,r;return null!=e&&null!==(t=e.data)&&void 0!==t&&t.url&&(e.data.url=N(e.data.url)),null!=e&&null!==(n=e.data)&&void 0!==n&&n.to&&(e.data.to=N(e.data.to)),null!=e&&null!==(r=e.data)&&void 0!==r&&r.from&&(e.data.from=N(e.data.from)),e}function D(e){try{var t;!function(e){L(e,(e=>{let t=(0,u.default)(e);return 0===t.indexOf("Transaction Failed: known transaction")&&(t="Transaction Failed: known transaction"),t}))}(e),function(e){L(e,(e=>{let t=e;const n=/(([-.+a-zA-Z]+:\/\/)|(www\.))\S+[@:.]\S+/gu;return(t.match(n)||[]).forEach((e=>{try{const n=new URL(e),{hostname:r}=n;Object.values(T).some((e=>r===e||r.endsWith(`.${e}`)))||(t=t.replace(e,"**"))}catch(n){t=t.replace(e,"**")}})),t}))}(e),function(e){L(e,(e=>e.replace(/0x[A-Fa-f0-9]{40}/u,"0x**")))}(e),function(e){var t;null!==(t=e.request)&&void 0!==t&&t.url&&(e.request.url=U(e.request.url));e.exception&&e.exception.values&&e.exception.values.forEach((e=>{e.stacktrace&&e.stacktrace.frames.forEach((e=>{e.filename=U(e.filename)}))}))}(e);const n=B();e.extra||(e.extra={}),e.tags||(e.tags={}),Object.assign(e.extra,{appState:n,installType:h,extensionId:null===(t=i.default.runtime)||void 0===t?void 0:t.id}),e.tags.installType=h}catch(e){m("Error rewriting report",e)}return e}function L(e,t){"string"==typeof e.message&&(e.message=t(e.message)),e.exception&&e.exception.values&&e.exception.values.forEach((e=>{"string"==typeof e.value&&(e.value=t(e.value))}))}function U(e){var t;if(null===(t=globalThis.location)||void 0===t||!t.origin)return e;const n=null==e?void 0:e.split(globalThis.location.origin)[1];if(!n)return e;return`/metamask${n}`}function B(){var e,t;return(null===(e=globalThis.stateHooks)||void 0===e||null===(t=e.getSentryState)||void 0===t?void 0:t.call(e))||{}}function F(e){return s.makeFetchTransport(e,(async(...e)=>{if(!await O())throw new Error("Network request skipped as metrics disabled");return await fetch(...e)}))}},{"../../../shared/lib/manifestFlags":289,"../../../shared/modules/mv3.utils":290,"./extractEthjsErrorMessage":1,"./sentry-filter-events":2,"@metamask/utils":23,"@sentry/browser":79,"@sentry/utils":199,"webextension-polyfill":288}],4:[function(e,t,n){(function(t){(function(){"use strict";var n,r=(n=e("./lib/setupSentry"))&&n.__esModule?n:{default:n};t.stateHooks=t.stateHooks||{},t.sentry=(0,r.default)()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/setupSentry":3}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.StructError=void 0;class r extends TypeError{constructor(e,t){let n;const{message:r,explanation:s,...o}=e,{path:i}=e,a=0===i.length?r:`At path: ${i.join(".")} -- ${r}`;super(s??a),null!==s&&s!==undefined&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}n.StructError=r},{}],6:[function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){r===undefined&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),s(e("./error.cjs"),n),s(e("./struct.cjs"),n),s(e("./structs/coercions.cjs"),n),s(e("./structs/refinements.cjs"),n),s(e("./structs/types.cjs"),n),s(e("./structs/utilities.cjs"),n)},{"./error.cjs":5,"./struct.cjs":7,"./structs/coercions.cjs":8,"./structs/refinements.cjs":9,"./structs/types.cjs":10,"./structs/utilities.cjs":11}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.validate=n.is=n.mask=n.create=n.assert=n.Struct=void 0;const r=e("./error.cjs"),s=e("./utils.cjs");function o(e,t,n){const r=u(e,t,{message:n});if(r[0])throw r[0]}function i(e,t,n){const r=u(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function a(e,t,n){const r=u(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}function c(e,t){return!u(e,t)[0]}function u(e,t,n={}){const o=(0,s.run)(e,t,n),i=(0,s.shiftIterator)(o);if(i[0]){return[new r.StructError(i[0],(function*(){for(const e of o)e[0]&&(yield e[0])})),undefined]}const a=i[1];return[undefined,a]}n.Struct=class{constructor(e){const{type:t,schema:n,validator:r,refiner:o,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=i,this.validator=r?(e,t)=>{const n=r(e,t);return(0,s.toFailures)(n,t,this,e)}:()=>[],this.refiner=o?(e,t)=>{const n=o(e,t);return(0,s.toFailures)(n,t,this,e)}:()=>[]}assert(e,t){return o(e,this,t)}create(e,t){return i(e,this,t)}is(e){return c(e,this)}mask(e,t){return a(e,this,t)}validate(e,t={}){return u(e,this,t)}},n.assert=o,n.create=i,n.mask=a,n.is=c,n.validate=u},{"./error.cjs":5,"./utils.cjs":12}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.trimmed=n.defaulted=n.coerce=void 0;const r=e("../struct.cjs"),s=e("../utils.cjs"),o=e("./types.cjs");function i(e,t,n){return new r.Struct({...e,coercer:(s,o)=>(0,r.is)(s,t)?e.coercer(n(s,o),o):e.coercer(s,o)})}n.coerce=i,n.defaulted=function(e,t,n={}){return i(e,(0,o.unknown)(),(e=>{const r="function"==typeof t?t():t;if(e===undefined)return r;if(!n.strict&&(0,s.isPlainObject)(e)&&(0,s.isPlainObject)(r)){const t={...e};let n=!1;for(const e in r)t[e]===undefined&&(t[e]=r[e],n=!0);if(n)return t}return e}))},n.trimmed=function(e){return i(e,(0,o.string)(),(e=>e.trim()))}},{"../struct.cjs":7,"../utils.cjs":12,"./types.cjs":10}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.refine=n.size=n.pattern=n.nonempty=n.min=n.max=n.empty=void 0;const r=e("../struct.cjs"),s=e("../utils.cjs");function o(e){return e instanceof Map||e instanceof Set?e.size:e.length}function i(e,t,n){return new r.Struct({...e,*refiner(r,o){yield*e.refiner(r,o);const i=n(r,o),a=(0,s.toFailures)(i,o,e,r);for(const e of a)yield{...e,refinement:t}}})}n.empty=function(e){return i(e,"empty",(t=>{const n=o(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``}))},n.max=function(e,t,n={}){const{exclusive:r}=n;return i(e,"max",(n=>r?n<t:n<=t||`Expected a ${e.type} less than ${r?"":"or equal to "}${t} but received \`${n}\``))},n.min=function(e,t,n={}){const{exclusive:r}=n;return i(e,"min",(n=>r?n>t:n>=t||`Expected a ${e.type} greater than ${r?"":"or equal to "}${t} but received \`${n}\``))},n.nonempty=function(e){return i(e,"nonempty",(t=>o(t)>0||`Expected a nonempty ${e.type} but received an empty one`))},n.pattern=function(e,t){return i(e,"pattern",(n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`))},n.size=function(e,t,n=t){const r=`Expected a ${e.type}`,s=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return i(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${r} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:o}=e;return t<=o&&o<=n||`${r} with a size ${s} but received one with a size of \`${o}\``}const{length:o}=e;return t<=o&&o<=n||`${r} with a length ${s} but received one with a length of \`${o}\``}))},n.refine=i},{"../struct.cjs":7,"../utils.cjs":12}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unknown=n.union=n.type=n.tuple=n.string=n.set=n.regexp=n.record=n.optional=n.object=n.number=n.nullable=n.never=n.map=n.literal=n.intersection=n.integer=n.instance=n.func=n.enums=n.date=n.boolean=n.bigint=n.array=n.any=void 0;const r=e("../struct.cjs"),s=e("../utils.cjs"),o=e("./utilities.cjs");function i(){return(0,o.define)("never",(()=>!1))}n.any=function(){return(0,o.define)("any",(()=>!0))},n.array=function(e){return new r.Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${(0,s.print)(e)}`})},n.bigint=function(){return(0,o.define)("bigint",(e=>"bigint"==typeof e))},n.boolean=function(){return(0,o.define)("boolean",(e=>"boolean"==typeof e))},n.date=function(){return(0,o.define)("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${(0,s.print)(e)}`))},n.enums=function(e){const t={},n=e.map((e=>(0,s.print)(e))).join();for(const n of e)t[n]=n;return new r.Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${(0,s.print)(t)}`})},n.func=function(){return(0,o.define)("func",(e=>"function"==typeof e||`Expected a function, but received: ${(0,s.print)(e)}`))},n.instance=function(e){return(0,o.define)("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${(0,s.print)(t)}`))},n.integer=function(){return(0,o.define)("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${(0,s.print)(e)}`))},n.intersection=function(e){return new r.Struct({type:"intersection",schema:null,*entries(t,n){for(const{entries:r}of e)yield*r(t,n)},*validator(t,n){for(const{validator:r}of e)yield*r(t,n)},*refiner(t,n){for(const{refiner:r}of e)yield*r(t,n)}})},n.literal=function(e){const t=(0,s.print)(e),n=typeof e;return new r.Struct({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${(0,s.print)(n)}`})},n.map=function(e,t){return new r.Struct({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(const[r,s]of n.entries())yield[r,r,e],yield[r,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${(0,s.print)(e)}`})},n.never=i,n.nullable=function(e){return new r.Struct({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})},n.number=function(){return(0,o.define)("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${(0,s.print)(e)}`))},n.object=function(e){const t=e?Object.keys(e):[],n=i();return new r.Struct({type:"object",schema:e??null,*entries(r){if(e&&(0,s.isObject)(r)){const s=new Set(Object.keys(r));for(const n of t)s.delete(n),yield[n,r[n],e[n]];for(const e of s)yield[e,r[e],n]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},n.optional=function(e){return new r.Struct({...e,validator:(t,n)=>t===undefined||e.validator(t,n),refiner:(t,n)=>t===undefined||e.refiner(t,n)})},n.record=function(e,t){return new r.Struct({type:"record",schema:null,*entries(n){if((0,s.isObject)(n))for(const r in n){const s=n[r];yield[r,r,e],yield[r,s,t]}},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`})},n.regexp=function(){return(0,o.define)("regexp",(e=>e instanceof RegExp))},n.set=function(e){return new r.Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${(0,s.print)(e)}`})},n.string=function(){return(0,o.define)("string",(e=>"string"==typeof e||`Expected a string, but received: ${(0,s.print)(e)}`))},n.tuple=function(e){const t=i();return new r.Struct({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let s=0;s<r;s++)yield[s,n[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${(0,s.print)(e)}`})},n.type=function(e){const t=Object.keys(e);return new r.Struct({type:"type",schema:e,*entries(n){if((0,s.isObject)(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>(0,s.isObject)(e)||`Expected an object, but received: ${(0,s.print)(e)}`,coercer:e=>(0,s.isObject)(e)?{...e}:e})},n.union=function(e){const t=e.map((e=>e.type)).join(" | ");return new r.Struct({type:"union",schema:null,coercer(t){for(const n of e){const[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){const o=[];for(const t of e){const[...e]=(0,s.run)(n,t,r),[i]=e;if(!i?.[0])return[];for(const[t]of e)t&&o.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${(0,s.print)(n)}`,...o]}})},n.unknown=function(){return(0,o.define)("unknown",(()=>!0))}},{"../struct.cjs":7,"../utils.cjs":12,"./utilities.cjs":11}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.pick=n.partial=n.omit=n.lazy=n.dynamic=n.deprecated=n.define=n.assign=void 0;const r=e("../struct.cjs"),s=e("./types.cjs");n.assign=function(...e){const t="type"===e[0]?.type,n=e.map((({schema:e})=>e)),r=Object.assign({},...n);return t?(0,s.type)(r):(0,s.object)(r)},n.define=function(e,t){return new r.Struct({type:e,schema:null,validator:t})},n.deprecated=function(e,t){return new r.Struct({...e,refiner:(t,n)=>t===undefined||e.refiner(t,n),validator:(n,r)=>n===undefined||(t(n,r),e.validator(n,r))})},n.dynamic=function(e){return new r.Struct({type:"dynamic",schema:null,*entries(t,n){const r=e(t,n);yield*r.entries(t,n)},validator:(t,n)=>e(t,n).validator(t,n),coercer:(t,n)=>e(t,n).coercer(t,n),refiner:(t,n)=>e(t,n).refiner(t,n)})},n.lazy=function(e){let t;return new r.Struct({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})},n.omit=function(e,t){const{schema:n}=e,r={...n};for(const e of t)delete r[e];return"type"===e.type?(0,s.type)(r):(0,s.object)(r)},n.partial=function(e){const t=e instanceof r.Struct,n=t?{...e.schema}:{...e};for(const e in n)n[e]=(0,s.optional)(n[e]);return t&&"type"===e.type?(0,s.type)(n):(0,s.object)(n)},n.pick=function(e,t){const{schema:n}=e,r={};for(const e of t)r[e]=n[e];return"type"===e.type?(0,s.type)(r):(0,s.object)(r)}},{"../struct.cjs":7,"./types.cjs":10}],12:[function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e}function s(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function o(e,t,n,r){if(!0===e)return undefined;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:i}=t,{type:a}=n,{refinement:c,message:u=`Expected a value of type \`${a}\`${c?` with refinement \`${c}\``:""}, but received: \`${s(r)}\``}=e;return{value:r,type:a,refinement:c,key:o[o.length-1],path:o,branch:i,...e,message:u}}Object.defineProperty(n,"__esModule",{value:!0}),n.run=n.toFailures=n.toFailure=n.shiftIterator=n.print=n.isPlainObject=n.isObject=void 0,n.isObject=r,n.isPlainObject=function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype},n.print=s,n.shiftIterator=function(e){const{done:t,value:n}=e.next();return t?undefined:n},n.toFailure=o,n.toFailures=function*(e,t,n,s){(function(e){return r(e)&&"function"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const r of e){const e=o(r,t,n,s);e&&(yield e)}},n.run=function*e(t,n,s={}){const{path:o=[],branch:i=[t],coerce:a=!1,mask:c=!1}=s,u={path:o,branch:i};if(a&&(t=n.coercer(t,u),c&&"type"!==n.type&&r(n.schema)&&r(t)&&!Array.isArray(t)))for(const e in t)n.schema[e]===undefined&&delete t[e];let l="valid";for(const e of n.validator(t,u))e.explanation=s.message,l="not_valid",yield[e,undefined];for(let[d,p,f]of n.entries(t,u)){const n=e(p,f,{path:d===undefined?o:[...o,d],branch:d===undefined?i:[...i,p],coerce:a,mask:c,message:s.message});for(const e of n)e[0]?(l=null===e[0].refinement||e[0].refinement===undefined?"not_valid":"not_refined",yield[e[0],undefined]):a&&(p=e[1],d===undefined?t=p:t instanceof Map?t.set(d,p):t instanceof Set?t.add(p):r(t)&&(p!==undefined||d in t)&&(t[d]=p))}if("not_valid"!==l)for(const e of n.refiner(t,u))e.explanation=s.message,l="not_refined",yield[e,undefined];"valid"===l&&(yield[undefined,t])}},{}],13:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.assertExhaustive=n.assertStruct=n.assert=n.AssertionError=void 0;const r=e("@metamask/superstruct"),s=e("./errors.cjs");function o(e,t){return n=e,Boolean("string"==typeof n?.prototype?.constructor?.name)?new e({message:t}):e({message:t});var n}class i extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}n.AssertionError=i,n.assert=function(e,t="Assertion failed.",n=i){if(!e){if(t instanceof Error)throw t;throw o(n,t)}},n.assertStruct=function(e,t,n="Assertion failed",a=i){try{(0,r.assert)(e,t)}catch(e){throw o(a,`${n}: ${function(e){return(0,s.getErrorMessage)(e).replace(/\.$/u,"")}(e)}.`)}},n.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}},{"./errors.cjs":21,"@metamask/superstruct":6}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.base64=void 0;const r=e("@metamask/superstruct"),s=e("./assert.cjs");n.base64=(e,t={})=>{const n=t.paddingRequired??!1,o=t.characterSet??"base64";let i,a;return"base64"===o?i=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===o),i=String.raw`[-_A-Za-z0-9]`),a=n?new RegExp(`^(?:${i}{4})*(?:${i}{3}=|${i}{2}==)?$`,"u"):new RegExp(`^(?:${i}{4})*(?:${i}{2,3}|${i}{3}=|${i}{2}==)?$`,"u"),(0,r.pattern)(e,a)}},{"./assert.cjs":13,"@metamask/superstruct":6}],15:[function(e,t,n){(function(t){(function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createDataView=n.concatBytes=n.valueToBytes=n.base64ToBytes=n.stringToBytes=n.numberToBytes=n.signedBigIntToBytes=n.bigIntToBytes=n.hexToBytes=n.bytesToBase64=n.bytesToString=n.bytesToNumber=n.bytesToSignedBigInt=n.bytesToBigInt=n.bytesToHex=n.assertIsBytes=n.isBytes=void 0;const r=e("@scure/base"),s=e("./assert.cjs"),o=e("./hex.cjs"),i=48,a=58,c=87;const u=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function l(e){return e instanceof Uint8Array}function d(e){(0,s.assert)(l(e),"Value must be a Uint8Array.")}function p(e){if(d(e),0===e.length)return"0x";const t=u(),n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return(0,o.add0x)(n.join(""))}function f(e){d(e);const t=p(e);return BigInt(t)}function h(e){if("0x"===e?.toLowerCase?.())return new Uint8Array;(0,o.assertIsHexString)(e);const t=(0,o.remove0x)(e).toLowerCase(),n=t.length%2==0?t:`0${t}`,r=new Uint8Array(n.length/2);for(let e=0;e<r.length;e++){const t=n.charCodeAt(2*e),s=n.charCodeAt(2*e+1),o=t-(t<a?i:c),u=s-(s<a?i:c);r[e]=16*o+u}return r}function m(e){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");return h(e.toString(16))}function g(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return h(e.toString(16))}function y(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function _(e){if("bigint"==typeof e)return m(e);if("number"==typeof e)return g(e);if("string"==typeof e)return e.startsWith("0x")?h(e):y(e);if(l(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}n.isBytes=l,n.assertIsBytes=d,n.bytesToHex=p,n.bytesToBigInt=f,n.bytesToSignedBigInt=function(e){d(e);let t=BigInt(0);for(const n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)},n.bytesToNumber=function(e){d(e);const t=f(e);return(0,s.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},n.bytesToString=function(e){return d(e),(new TextDecoder).decode(e)},n.bytesToBase64=function(e){return d(e),r.base64.encode(e)},n.hexToBytes=h,n.bigIntToBytes=m,n.signedBigIntToBytes=function(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(function(e,t){(0,s.assert)(t>0);const n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let n=e;const r=new Uint8Array(t);for(let e=0;e<r.length;e++)r[e]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()},n.numberToBytes=g,n.stringToBytes=y,n.base64ToBytes=function(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),r.base64.decode(e)},n.valueToBytes=_,n.concatBytes=function(e){const t=new Array(e.length);let n=0;for(let r=0;r<e.length;r++){const s=_(e[r]);t[r]=s,n+=s.length}const r=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++)r.set(t[e],n),n+=t[e].length;return r},n.createDataView=function(e){if(void 0!==t&&e instanceof t){const t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}}).call(this)}).call(this,e("buffer").Buffer)},{"./assert.cjs":13,"./hex.cjs":22,"@scure/base":40,buffer:234}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.toCaipAssetId=n.toCaipAssetType=n.toCaipAccountId=n.toCaipChainId=n.parseCaipAssetId=n.parseCaipAssetType=n.parseCaipAccountId=n.parseCaipChainId=n.isCaipAssetId=n.isCaipAssetType=n.isCaipTokenId=n.isCaipAssetReference=n.isCaipAssetNamespace=n.isCaipAccountAddress=n.isCaipAccountId=n.isCaipReference=n.isCaipNamespace=n.isCaipChainId=n.KnownCaipNamespace=n.CaipAssetTypeOrIdStruct=n.CaipAssetIdStruct=n.CaipAssetTypeStruct=n.CaipTokenIdStruct=n.CaipAssetReferenceStruct=n.CaipAssetNamespaceStruct=n.CaipAccountAddressStruct=n.CaipAccountIdStruct=n.CaipReferenceStruct=n.CaipNamespaceStruct=n.CaipChainIdStruct=n.CAIP_ASSET_ID_REGEX=n.CAIP_ASSET_TYPE_REGEX=n.CAIP_TOKEN_ID_REGEX=n.CAIP_ASSET_REFERENCE_REGEX=n.CAIP_ASSET_NAMESPACE_REGEX=n.CAIP_ACCOUNT_ADDRESS_REGEX=n.CAIP_ACCOUNT_ID_REGEX=n.CAIP_REFERENCE_REGEX=n.CAIP_NAMESPACE_REGEX=n.CAIP_CHAIN_ID_REGEX=void 0;const r=e("@metamask/superstruct"),s=e("./superstruct.cjs");n.CAIP_CHAIN_ID_REGEX=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,n.CAIP_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,n.CAIP_REFERENCE_REGEX=/^[-_a-zA-Z0-9]{1,32}$/u,n.CAIP_ACCOUNT_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,n.CAIP_ACCOUNT_ADDRESS_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,n.CAIP_ASSET_NAMESPACE_REGEX=/^[-a-z0-9]{3,8}$/u,n.CAIP_ASSET_REFERENCE_REGEX=/^[-.%a-zA-Z0-9]{1,128}$/u,n.CAIP_TOKEN_ID_REGEX=/^[-.%a-zA-Z0-9]{1,78}$/u,n.CAIP_ASSET_TYPE_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,n.CAIP_ASSET_ID_REGEX=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u;function o(e){return(0,r.is)(e,n.CaipNamespaceStruct)}function i(e){return(0,r.is)(e,n.CaipReferenceStruct)}function a(e){return(0,r.is)(e,n.CaipAccountAddressStruct)}function c(e){return(0,r.is)(e,n.CaipAssetNamespaceStruct)}function u(e){return(0,r.is)(e,n.CaipAssetReferenceStruct)}function l(e){return(0,r.is)(e,n.CaipTokenIdStruct)}n.CaipChainIdStruct=(0,s.definePattern)("CaipChainId",n.CAIP_CHAIN_ID_REGEX),n.CaipNamespaceStruct=(0,s.definePattern)("CaipNamespace",n.CAIP_NAMESPACE_REGEX),n.CaipReferenceStruct=(0,s.definePattern)("CaipReference",n.CAIP_REFERENCE_REGEX),n.CaipAccountIdStruct=(0,s.definePattern)("CaipAccountId",n.CAIP_ACCOUNT_ID_REGEX),n.CaipAccountAddressStruct=(0,s.definePattern)("CaipAccountAddress",n.CAIP_ACCOUNT_ADDRESS_REGEX),n.CaipAssetNamespaceStruct=(0,s.definePattern)("CaipAssetNamespace",n.CAIP_ASSET_NAMESPACE_REGEX),n.CaipAssetReferenceStruct=(0,s.definePattern)("CaipAssetReference",n.CAIP_ASSET_REFERENCE_REGEX),n.CaipTokenIdStruct=(0,s.definePattern)("CaipTokenId",n.CAIP_TOKEN_ID_REGEX),n.CaipAssetTypeStruct=(0,s.definePattern)("CaipAssetType",n.CAIP_ASSET_TYPE_REGEX),n.CaipAssetIdStruct=(0,s.definePattern)("CaipAssetId",n.CAIP_ASSET_ID_REGEX),n.CaipAssetTypeOrIdStruct=(0,s.definePattern)("CaipAssetTypeOrId",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u),function(e){e.Bip122="bip122",e.Solana="solana",e.Eip155="eip155",e.Wallet="wallet"}(n.KnownCaipNamespace||(n.KnownCaipNamespace={})),n.isCaipChainId=function(e){return(0,r.is)(e,n.CaipChainIdStruct)},n.isCaipNamespace=o,n.isCaipReference=i,n.isCaipAccountId=function(e){return(0,r.is)(e,n.CaipAccountIdStruct)},n.isCaipAccountAddress=a,n.isCaipAssetNamespace=c,n.isCaipAssetReference=u,n.isCaipTokenId=l,n.isCaipAssetType=function(e){return(0,r.is)(e,n.CaipAssetTypeStruct)},n.isCaipAssetId=function(e){return(0,r.is)(e,n.CaipAssetIdStruct)},n.parseCaipChainId=function(e){const t=n.CAIP_CHAIN_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP chain ID.");return{namespace:t.groups.namespace,reference:t.groups.reference}},n.parseCaipAccountId=function(e){const t=n.CAIP_ACCOUNT_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP account ID.");return{address:t.groups.accountAddress,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},n.parseCaipAssetType=function(e){const t=n.CAIP_ASSET_TYPE_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset type.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},n.parseCaipAssetId=function(e){const t=n.CAIP_ASSET_ID_REGEX.exec(e);if(!t?.groups)throw new Error("Invalid CAIP asset ID.");return{assetNamespace:t.groups.assetNamespace,assetReference:t.groups.assetReference,tokenId:t.groups.tokenId,chainId:t.groups.chainId,chain:{namespace:t.groups.namespace,reference:t.groups.reference}}},n.toCaipChainId=function(e,t){if(!o(e))throw new Error(`Invalid "namespace", must match: ${n.CAIP_NAMESPACE_REGEX.toString()}`);if(!i(t))throw new Error(`Invalid "reference", must match: ${n.CAIP_REFERENCE_REGEX.toString()}`);return`${e}:${t}`},n.toCaipAccountId=function(e,t,r){if(!o(e))throw new Error(`Invalid "namespace", must match: ${n.CAIP_NAMESPACE_REGEX.toString()}`);if(!i(t))throw new Error(`Invalid "reference", must match: ${n.CAIP_REFERENCE_REGEX.toString()}`);if(!a(r))throw new Error(`Invalid "accountAddress", must match: ${n.CAIP_ACCOUNT_ADDRESS_REGEX.toString()}`);return`${e}:${t}:${r}`},n.toCaipAssetType=function(e,t,r,s){if(!o(e))throw new Error(`Invalid "namespace", must match: ${n.CAIP_NAMESPACE_REGEX.toString()}`);if(!i(t))throw new Error(`Invalid "reference", must match: ${n.CAIP_REFERENCE_REGEX.toString()}`);if(!c(r))throw new Error(`Invalid "assetNamespace", must match: ${n.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${n.CAIP_ASSET_REFERENCE_REGEX.toString()}`);return`${e}:${t}/${r}:${s}`},n.toCaipAssetId=function(e,t,r,s,a){if(!o(e))throw new Error(`Invalid "namespace", must match: ${n.CAIP_NAMESPACE_REGEX.toString()}`);if(!i(t))throw new Error(`Invalid "reference", must match: ${n.CAIP_REFERENCE_REGEX.toString()}`);if(!c(r))throw new Error(`Invalid "assetNamespace", must match: ${n.CAIP_ASSET_NAMESPACE_REGEX.toString()}`);if(!u(s))throw new Error(`Invalid "assetReference", must match: ${n.CAIP_ASSET_REFERENCE_REGEX.toString()}`);if(!l(a))throw new Error(`Invalid "tokenId", must match: ${n.CAIP_TOKEN_ID_REGEX.toString()}`);return`${e}:${t}/${r}:${s}/${a}`}},{"./superstruct.cjs":31,"@metamask/superstruct":6}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ChecksumStruct=void 0;const r=e("@metamask/superstruct"),s=e("./base64.cjs");n.ChecksumStruct=(0,r.size)((0,s.base64)((0,r.string)(),{paddingRequired:!0}),44,44)},{"./base64.cjs":14,"@metamask/superstruct":6}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createHex=n.createBytes=n.createBigInt=n.createNumber=void 0;const r=e("@metamask/superstruct"),s=e("./assert.cjs"),o=e("./bytes.cjs"),i=e("./hex.cjs"),a=(0,r.union)([(0,r.number)(),(0,r.bigint)(),(0,r.string)(),i.StrictHexStruct]),c=(0,r.coerce)((0,r.number)(),a,Number),u=(0,r.coerce)((0,r.bigint)(),a,BigInt),l=((0,r.union)([i.StrictHexStruct,(0,r.instance)(Uint8Array)]),(0,r.coerce)((0,r.instance)(Uint8Array),(0,r.union)([i.StrictHexStruct]),o.hexToBytes)),d=(0,r.coerce)(i.StrictHexStruct,(0,r.instance)(Uint8Array),o.bytesToHex);n.createNumber=function(e){try{const t=(0,r.create)(e,c);return(0,s.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof r.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},n.createBigInt=function(e){try{return(0,r.create)(e,u)}catch(e){if(e instanceof r.StructError)throw new Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},n.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,r.create)(e,l)}catch(e){if(e instanceof r.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},n.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,r.create)(e,d)}catch(e){if(e instanceof r.StructError)throw new Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}},{"./assert.cjs":13,"./bytes.cjs":15,"./hex.cjs":22,"@metamask/superstruct":6}],19:[function(e,t,n){"use strict";var r,s,o=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},i=this&&this.__classPrivateFieldSet||function(e,t,n,r,s){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?s.call(e,n):s?s.value=n:t.set(e,n),n};Object.defineProperty(n,"__esModule",{value:!0}),n.FrozenSet=n.FrozenMap=void 0;class a{get size(){return o(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return o(this,r,"f")[Symbol.iterator]()}constructor(e){r.set(this,void 0),i(this,r,new Map(e),"f"),Object.freeze(this)}entries(){return o(this,r,"f").entries()}forEach(e,t){return o(this,r,"f").forEach(((n,r,s)=>e.call(t,n,r,this)))}get(e){return o(this,r,"f").get(e)}has(e){return o(this,r,"f").has(e)}keys(){return o(this,r,"f").keys()}values(){return o(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}n.FrozenMap=a;class c{get size(){return o(this,s,"f").size}[(s=new WeakMap,Symbol.iterator)](){return o(this,s,"f")[Symbol.iterator]()}constructor(e){s.set(this,void 0),i(this,s,new Set(e),"f"),Object.freeze(this)}entries(){return o(this,s,"f").entries()}forEach(e,t){return o(this,s,"f").forEach(((n,r,s)=>e.call(t,n,r,this)))}has(e){return o(this,s,"f").has(e)}keys(){return o(this,s,"f").keys()}values(){return o(this,s,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}n.FrozenSet=c,Object.freeze(a),Object.freeze(a.prototype),Object.freeze(c),Object.freeze(c.prototype)},{}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.wrapError=n.getErrorMessage=n.isErrorWithStack=n.isErrorWithMessage=n.isErrorWithCode=void 0;const r=e("pony-cause"),s=e("./misc.cjs");function o(e){return"object"==typeof e&&null!==e&&"code"in e}function i(e){return"object"==typeof e&&null!==e&&"message"in e}n.isErrorWithCode=o,n.isErrorWithMessage=i,n.isErrorWithStack=function(e){return"object"==typeof e&&null!==e&&"stack"in e},n.getErrorMessage=function(e){return i(e)&&"string"==typeof e.message?e.message:(0,s.isNullOrUndefined)(e)?"":String(e)},n.wrapError=function(e,t){if((n=e)instanceof Error||(0,s.isObject)(n)&&"Error"===n.constructor.name){let n;return n=2===Error.length?new Error(t,{cause:e}):new r.ErrorWithCause(t,{cause:e}),o(e)&&(n.code=e.code),n}var n;return t.length>0?new Error(`${String(e)}: ${t}`):new Error(String(e))}},{"./misc.cjs":27,"pony-cause":239}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.remove0x=n.add0x=n.isValidChecksumAddress=n.getChecksumAddress=n.isValidHexAddress=n.assertIsStrictHexString=n.assertIsHexString=n.isStrictHexString=n.isHexString=n.HexChecksumAddressStruct=n.HexAddressStruct=n.StrictHexStruct=n.HexStruct=void 0;const r=e("@metamask/superstruct"),s=e("@noble/hashes/sha3"),o=e("./assert.cjs"),i=e("./bytes.cjs");function a(e){return(0,r.is)(e,n.HexStruct)}function c(e){return(0,r.is)(e,n.StrictHexStruct)}function u(e){(0,o.assert)((0,r.is)(e,n.HexChecksumAddressStruct),"Invalid hex address.");const t=d(e.toLowerCase()),a=d((0,i.bytesToHex)((0,s.keccak_256)(t)));return`0x${t.split("").map(((e,t)=>{const n=a[t];return(0,o.assert)((0,r.is)(n,(0,r.string)()),"Hash shorter than address."),parseInt(n,16)>7?e.toUpperCase():e})).join("")}`}function l(e){return!!(0,r.is)(e,n.HexChecksumAddressStruct)&&u(e)===e}function d(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}n.HexStruct=(0,r.pattern)((0,r.string)(),/^(?:0x)?[0-9a-f]+$/iu),n.StrictHexStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]+$/iu),n.HexAddressStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]{40}$/u),n.HexChecksumAddressStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-fA-F]{40}$/u),n.isHexString=a,n.isStrictHexString=c,n.assertIsHexString=function(e){(0,o.assert)(a(e),"Value must be a hexadecimal string.")},n.assertIsStrictHexString=function(e){(0,o.assert)(c(e),'Value must be a hexadecimal string, starting with "0x".')},n.isValidHexAddress=function(e){return(0,r.is)(e,n.HexAddressStruct)||l(e)},n.getChecksumAddress=u,n.isValidChecksumAddress=l,n.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},n.remove0x=d},{"./assert.cjs":13,"./bytes.cjs":15,"@metamask/superstruct":6,"@noble/hashes/sha3":38}],23:[function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){r===undefined&&(r=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,s)}:function(e,t,n,r){r===undefined&&(r=n),e[r]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(n,"__esModule",{value:!0}),s(e("./assert.cjs"),n),s(e("./base64.cjs"),n),s(e("./bytes.cjs"),n),s(e("./caip-types.cjs"),n),s(e("./checksum.cjs"),n),s(e("./coercers.cjs"),n),s(e("./collections.cjs"),n),s(e("./encryption-types.cjs"),n),s(e("./errors.cjs"),n),s(e("./hex.cjs"),n),s(e("./json.cjs"),n),s(e("./keyring.cjs"),n),s(e("./logging.cjs"),n),s(e("./misc.cjs"),n),s(e("./number.cjs"),n),s(e("./opaque.cjs"),n),s(e("./promise.cjs"),n),s(e("./superstruct.cjs"),n),s(e("./time.cjs"),n),s(e("./transaction-types.cjs"),n),s(e("./versions.cjs"),n)},{"./assert.cjs":13,"./base64.cjs":14,"./bytes.cjs":15,"./caip-types.cjs":16,"./checksum.cjs":17,"./coercers.cjs":18,"./collections.cjs":19,"./encryption-types.cjs":20,"./errors.cjs":21,"./hex.cjs":22,"./json.cjs":24,"./keyring.cjs":25,"./logging.cjs":26,"./misc.cjs":27,"./number.cjs":28,"./opaque.cjs":29,"./promise.cjs":30,"./superstruct.cjs":31,"./time.cjs":32,"./transaction-types.cjs":33,"./versions.cjs":34}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getJsonRpcIdValidator=n.assertIsJsonRpcError=n.isJsonRpcError=n.assertIsJsonRpcFailure=n.isJsonRpcFailure=n.assertIsJsonRpcSuccess=n.isJsonRpcSuccess=n.assertIsJsonRpcResponse=n.isJsonRpcResponse=n.assertIsPendingJsonRpcResponse=n.isPendingJsonRpcResponse=n.JsonRpcResponseStruct=n.JsonRpcFailureStruct=n.JsonRpcSuccessStruct=n.PendingJsonRpcResponseStruct=n.assertIsJsonRpcRequest=n.isJsonRpcRequest=n.assertIsJsonRpcNotification=n.isJsonRpcNotification=n.JsonRpcNotificationStruct=n.JsonRpcRequestStruct=n.JsonRpcParamsStruct=n.JsonRpcErrorStruct=n.JsonRpcIdStruct=n.JsonRpcVersionStruct=n.jsonrpc2=n.getJsonSize=n.getSafeJson=n.isValidJson=n.JsonStruct=n.UnsafeJsonStruct=n.exactOptional=n.object=void 0;const r=e("@metamask/superstruct"),s=e("./assert.cjs"),o=e("./misc.cjs");function i({path:e,branch:t}){const n=e[e.length-1];return(0,o.hasProperty)(t[t.length-2],n)}function a(e){return new r.Struct({...e,type:`optional ${e.type}`,validator:(t,n)=>!i(n)||e.validator(t,n),refiner:(t,n)=>!i(n)||e.refiner(t,n)})}function c(e){if(null===e||"boolean"==typeof e||"string"==typeof e)return!0;if("number"==typeof e&&Number.isFinite(e))return!0;if("object"==typeof e){let t=!0;if(Array.isArray(e)){for(let n=0;n<e.length;n++)if(!c(e[n])){t=!1;break}return t}const n=Object.entries(e);for(let e=0;e<n.length;e++)if("string"!=typeof n[e][0]||!c(n[e][1])){t=!1;break}return t}return!1}function u(e){return(0,r.create)(e,n.JsonStruct)}n.object=e=>(0,r.object)(e),n.exactOptional=a,n.UnsafeJsonStruct=(0,r.define)("JSON",(e=>c(e))),n.JsonStruct=(0,r.coerce)(n.UnsafeJsonStruct,(0,r.refine)((0,r.any)(),"JSON",(e=>(0,r.is)(e,n.UnsafeJsonStruct))),(e=>JSON.parse(JSON.stringify(e,((e,t)=>"__proto__"===e||"constructor"===e?undefined:t))))),n.isValidJson=function(e){try{return u(e),!0}catch{return!1}},n.getSafeJson=u,n.getJsonSize=function(e){(0,s.assertStruct)(e,n.JsonStruct,"Invalid JSON value");const t=JSON.stringify(e);return(new TextEncoder).encode(t).byteLength},n.jsonrpc2="2.0",n.JsonRpcVersionStruct=(0,r.literal)(n.jsonrpc2),n.JsonRpcIdStruct=(0,r.nullable)((0,r.union)([(0,r.number)(),(0,r.string)()])),n.JsonRpcErrorStruct=(0,n.object)({code:(0,r.integer)(),message:(0,r.string)(),data:a(n.JsonStruct),stack:a((0,r.string)())}),n.JsonRpcParamsStruct=(0,r.union)([(0,r.record)((0,r.string)(),n.JsonStruct),(0,r.array)(n.JsonStruct)]),n.JsonRpcRequestStruct=(0,n.object)({id:n.JsonRpcIdStruct,jsonrpc:n.JsonRpcVersionStruct,method:(0,r.string)(),params:a(n.JsonRpcParamsStruct)}),n.JsonRpcNotificationStruct=(0,n.object)({jsonrpc:n.JsonRpcVersionStruct,method:(0,r.string)(),params:a(n.JsonRpcParamsStruct)}),n.isJsonRpcNotification=function(e){return(0,r.is)(e,n.JsonRpcNotificationStruct)},n.assertIsJsonRpcNotification=function(e,t){(0,s.assertStruct)(e,n.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",t)},n.isJsonRpcRequest=function(e){return(0,r.is)(e,n.JsonRpcRequestStruct)},n.assertIsJsonRpcRequest=function(e,t){(0,s.assertStruct)(e,n.JsonRpcRequestStruct,"Invalid JSON-RPC request",t)},n.PendingJsonRpcResponseStruct=(0,r.object)({id:n.JsonRpcIdStruct,jsonrpc:n.JsonRpcVersionStruct,result:(0,r.optional)((0,r.unknown)()),error:(0,r.optional)(n.JsonRpcErrorStruct)}),n.JsonRpcSuccessStruct=(0,n.object)({id:n.JsonRpcIdStruct,jsonrpc:n.JsonRpcVersionStruct,result:n.JsonStruct}),n.JsonRpcFailureStruct=(0,n.object)({id:n.JsonRpcIdStruct,jsonrpc:n.JsonRpcVersionStruct,error:n.JsonRpcErrorStruct}),n.JsonRpcResponseStruct=(0,r.union)([n.JsonRpcSuccessStruct,n.JsonRpcFailureStruct]),n.isPendingJsonRpcResponse=function(e){return(0,r.is)(e,n.PendingJsonRpcResponseStruct)},n.assertIsPendingJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,n.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",t)},n.isJsonRpcResponse=function(e){return(0,r.is)(e,n.JsonRpcResponseStruct)},n.assertIsJsonRpcResponse=function(e,t){(0,s.assertStruct)(e,n.JsonRpcResponseStruct,"Invalid JSON-RPC response",t)},n.isJsonRpcSuccess=function(e){return(0,r.is)(e,n.JsonRpcSuccessStruct)},n.assertIsJsonRpcSuccess=function(e,t){(0,s.assertStruct)(e,n.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",t)},n.isJsonRpcFailure=function(e){return(0,r.is)(e,n.JsonRpcFailureStruct)},n.assertIsJsonRpcFailure=function(e,t){(0,s.assertStruct)(e,n.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",t)},n.isJsonRpcError=function(e){return(0,r.is)(e,n.JsonRpcErrorStruct)},n.assertIsJsonRpcError=function(e,t){(0,s.assertStruct)(e,n.JsonRpcErrorStruct,"Invalid JSON-RPC error",t)},n.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:n,permitNull:r}={permitEmptyString:!0,permitFractions:!1,permitNull:!0,...e};return e=>Boolean("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||r&&null===e)}},{"./assert.cjs":13,"./misc.cjs":27,"@metamask/superstruct":6}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],26:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.createModuleLogger=n.createProjectLogger=void 0;const s=(0,r(e("debug")).default)("metamask");n.createProjectLogger=function(e){return s.extend(e)},n.createModuleLogger=function(e,t){return e.extend(t)}},{debug:236}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.calculateNumberSize=n.calculateStringSize=n.isASCII=n.isPlainObject=n.ESCAPE_CHARACTERS_REGEXP=n.JsonSize=n.getKnownPropertyNames=n.hasProperty=n.isObject=n.isNullOrUndefined=n.isNonEmptyArray=void 0,n.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},n.isNullOrUndefined=function(e){return null===e||e===undefined},n.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};function r(e){return e.charCodeAt(0)<=127}n.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),n.getKnownPropertyNames=function(e){return Object.getOwnPropertyNames(e)},function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(n.JsonSize||(n.JsonSize={})),n.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,n.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},n.isASCII=r,n.calculateStringSize=function(e){return e.split("").reduce(((e,t)=>r(t)?e+1:e+2),0)+(e.match(n.ESCAPE_CHARACTERS_REGEXP)??[]).length},n.calculateNumberSize=function(e){return e.toString().length}},{}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hexToBigInt=n.hexToNumber=n.bigIntToHex=n.numberToHex=void 0;const r=e("./assert.cjs"),s=e("./hex.cjs");n.numberToHex=e=>((0,r.assert)("number"==typeof e,"Value must be a number."),(0,r.assert)(e>=0,"Value must be a non-negative number."),(0,r.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16)));n.bigIntToHex=e=>((0,r.assert)("bigint"==typeof e,"Value must be a bigint."),(0,r.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16)));n.hexToNumber=e=>{(0,s.assertIsHexString)(e);const t=parseInt(e,16);return(0,r.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};n.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))},{"./assert.cjs":13,"./hex.cjs":22}],29:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.createDeferredPromise=void 0,n.createDeferredPromise=function({suppressUnhandledRejection:e=!1}={}){let t,n;const r=new Promise(((e,r)=>{t=e,n=r}));return e&&r.catch((e=>{})),{promise:r,resolve:t,reject:n}}},{}],31:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.definePattern=void 0;const r=e("@metamask/superstruct");n.definePattern=function(e,t){return(0,r.define)(e,(e=>"string"==typeof e&&t.test(e)))}},{"@metamask/superstruct":6}],32:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.timeSince=n.inMilliseconds=n.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(n.Duration||(n.Duration={}));const r=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};n.inMilliseconds=function(e,t){return r(e,"count"),e*t},n.timeSince=function(e){return r(e,"timestamp"),Date.now()-e}},{}],33:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],34:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.satisfiesVersionRange=n.gtRange=n.gtVersion=n.assertIsSemVerRange=n.assertIsSemVerVersion=n.isValidSemVerRange=n.isValidSemVerVersion=n.VersionRangeStruct=n.VersionStruct=void 0;const r=e("@metamask/superstruct"),s=e("semver"),o=e("./assert.cjs");n.VersionStruct=(0,r.refine)((0,r.string)(),"Version",(e=>null!==(0,s.valid)(e)||`Expected SemVer version, got "${e}"`)),n.VersionRangeStruct=(0,r.refine)((0,r.string)(),"Version range",(e=>null!==(0,s.validRange)(e)||`Expected SemVer range, got "${e}"`)),n.isValidSemVerVersion=function(e){return(0,r.is)(e,n.VersionStruct)},n.isValidSemVerRange=function(e){return(0,r.is)(e,n.VersionRangeStruct)},n.assertIsSemVerVersion=function(e){(0,o.assertStruct)(e,n.VersionStruct)},n.assertIsSemVerRange=function(e){(0,o.assertStruct)(e,n.VersionRangeStruct)},n.gtVersion=function(e,t){return(0,s.gt)(e,t)},n.gtRange=function(e,t){return(0,s.gtr)(e,t)},n.satisfiesVersionRange=function(e,t){return(0,s.satisfies)(e,t,{includePrerelease:!0})}},{"./assert.cjs":13,"@metamask/superstruct":6,semver:270}],35:[function(e,t,n){"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&"Uint8Array"===n.constructor.name))throw new Error("Uint8Array expected");var n;if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(n,"__esModule",{value:!0}),n.anumber=r,n.abytes=s,n.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)},n.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},n.aoutput=function(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}},{}],36:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.add5L=n.add5H=n.add4H=n.add4L=n.add3H=n.add3L=n.rotlBL=n.rotlBH=n.rotlSL=n.rotlSH=n.rotr32L=n.rotr32H=n.rotrBL=n.rotrBH=n.rotrSL=n.rotrSH=n.shrSL=n.shrSH=n.toBig=void 0,n.fromBig=o,n.split=i,n.add=S;const r=BigInt(2**32-1),s=BigInt(32);function o(e,t=!1){return t?{h:Number(e&r),l:Number(e>>s&r)}:{h:0|Number(e>>s&r),l:0|Number(e&r)}}function i(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let s=0;s<e.length;s++){const{h:i,l:a}=o(e[s],t);[n[s],r[s]]=[i,a]}return[n,r]}const a=(e,t)=>BigInt(e>>>0)<<s|BigInt(t>>>0);n.toBig=a;const c=(e,t,n)=>e>>>n;n.shrSH=c;const u=(e,t,n)=>e<<32-n|t>>>n;n.shrSL=u;const l=(e,t,n)=>e>>>n|t<<32-n;n.rotrSH=l;const d=(e,t,n)=>e<<32-n|t>>>n;n.rotrSL=d;const p=(e,t,n)=>e<<64-n|t>>>n-32;n.rotrBH=p;const f=(e,t,n)=>e>>>n-32|t<<64-n;n.rotrBL=f;const h=(e,t)=>t;n.rotr32H=h;const m=(e,t)=>e;n.rotr32L=m;const g=(e,t,n)=>e<<n|t>>>32-n;n.rotlSH=g;const y=(e,t,n)=>t<<n|e>>>32-n;n.rotlSL=y;const _=(e,t,n)=>t<<n-32|e>>>64-n;n.rotlBH=_;const b=(e,t,n)=>e<<n-32|t>>>64-n;function S(e,t,n,r){const s=(t>>>0)+(r>>>0);return{h:e+n+(s/2**32|0)|0,l:0|s}}n.rotlBL=b;const E=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);n.add3L=E;const v=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;n.add3H=v;const I=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);n.add4L=I;const w=(e,t,n,r,s)=>t+n+r+s+(e/2**32|0)|0;n.add4H=w;const T=(e,t,n,r,s)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(s>>>0);n.add5L=T;const A=(e,t,n,r,s,o)=>t+n+r+s+o+(e/2**32|0)|0;n.add5H=A;const C={fromBig:o,split:i,toBig:a,shrSH:c,shrSL:u,rotrSH:l,rotrSL:d,rotrBH:p,rotrBL:f,rotr32H:h,rotr32L:m,rotlSH:g,rotlSL:y,rotlBH:_,rotlBL:b,add:S,add3L:E,add3H:v,add4L:I,add4H:w,add5H:A,add5L:T};n.default=C},{}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.crypto=void 0,n.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:undefined},{}],38:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shake256=n.shake128=n.keccak_512=n.keccak_384=n.keccak_256=n.keccak_224=n.sha3_512=n.sha3_384=n.sha3_256=n.sha3_224=n.Keccak=void 0,n.keccakP=b;const r=e("./_assert.js"),s=e("./_u64.js"),o=e("./utils.js"),i=[],a=[],c=[],u=BigInt(0),l=BigInt(1),d=BigInt(2),p=BigInt(7),f=BigInt(256),h=BigInt(113);for(let e=0,t=l,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],i.push(2*(5*r+n)),a.push((e+1)*(e+2)/2%64);let s=u;for(let e=0;e<7;e++)t=(t<<l^(t>>p)*h)%f,t&d&&(s^=l<<(l<<BigInt(e))-l);c.push(s)}const[m,g]=(0,s.split)(c,!0),y=(e,t,n)=>n>32?(0,s.rotlBH)(e,t,n):(0,s.rotlSH)(e,t,n),_=(e,t,n)=>n>32?(0,s.rotlBL)(e,t,n):(0,s.rotlSL)(e,t,n);function b(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,s=(t+2)%10,o=n[s],i=n[s+1],a=y(o,i,1)^n[r],c=_(o,i,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=a,e[t+n+1]^=c}let t=e[2],s=e[3];for(let n=0;n<24;n++){const r=a[n],o=y(t,s,r),c=_(t,s,r),u=i[n];t=e[u],s=e[u+1],e[u]=o,e[u+1]=c}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=m[r],e[1]^=g[r]}n.fill(0)}class S extends o.Hash{constructor(e,t,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.anumber)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,o.u32)(this.state)}keccak(){o.isLE||(0,o.byteSwap32)(this.state32),b(this.state32,this.rounds),o.isLE||(0,o.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.aexists)(this);const{blockLen:t,state:n}=this,s=(e=(0,o.toBytes)(e)).length;for(let r=0;r<s;){const o=Math.min(t-this.pos,s-r);for(let t=0;t<o;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,s=e.length;r<s;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,s-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:s,enableXOF:o}=this;return e||(e=new S(t,n,r,o,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}n.Keccak=S;const E=(e,t,n)=>(0,o.wrapConstructor)((()=>new S(t,e,n)));n.sha3_224=E(6,144,28),n.sha3_256=E(6,136,32),n.sha3_384=E(6,104,48),n.sha3_512=E(6,72,64),n.keccak_224=E(1,144,28),n.keccak_256=E(1,136,32),n.keccak_384=E(1,104,48),n.keccak_512=E(1,72,64);const v=(e,t,n)=>(0,o.wrapXOFConstructorWithOpts)(((r={})=>new S(t,e,r.dkLen===undefined?n:r.dkLen,!0)));n.shake128=v(31,168,16),n.shake256=v(31,136,32)},{"./_assert.js":35,"./_u64.js":36,"./utils.js":39}],39:[function(e,t,n){"use strict";
|
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(n,"__esModule",{value:!0}),n.Hash=n.nextTick=n.byteSwapIfBE=n.isLE=void 0,n.isBytes=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name},n.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},n.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},n.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},n.rotr=function(e,t){return e<<32-t|e>>>t},n.rotl=function(e,t){return e<<t|e>>>32-t>>>0},n.byteSwap=o,n.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=o(e[t])},n.bytesToHex=function(e){(0,s.abytes)(e);let t="";for(let n=0;n<e.length;n++)t+=i[e[n]];return t},n.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,s=0;t<n;t++,s+=2){const n=c(e.charCodeAt(s)),o=c(e.charCodeAt(s+1));if(n===undefined||o===undefined){const t=e[s]+e[s+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+s)}r[t]=16*n+o}return r},n.asyncLoop=async function(e,t,r){let s=Date.now();for(let o=0;o<e;o++){r(o);const e=Date.now()-s;e>=0&&e<t||(await(0,n.nextTick)(),s+=e)}},n.utf8ToBytes=u,n.toBytes=l,n.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];(0,s.abytes)(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const s=e[t];n.set(s,r),r+=s.length}return n},n.checkOpts=function(e,t){if(t!==undefined&&"[object Object]"!=={}.toString.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},n.wrapConstructor=function(e){const t=t=>e().update(l(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},n.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(l(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},n.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(l(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},n.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return r.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")};const r=e("@noble/hashes/crypto"),s=e("./_assert.js");function o(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}n.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],n.byteSwapIfBE=n.isLE?e=>e:e=>o(e);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const a={_0:48,_9:57,A:65,F:70,a:97,f:102};function c(e){return e>=a._0&&e<=a._9?e-a._0:e>=a.A&&e<=a.F?e-(a.A-10):e>=a.a&&e<=a.f?e-(a.a-10):void 0}function u(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function l(e){return"string"==typeof e&&(e=u(e)),(0,s.abytes)(e),e}n.nextTick=async()=>{};n.Hash=class{clone(){return this._cloneInto()}}},{"./_assert.js":35,"@noble/hashes/crypto":37}],40:[function(e,t,n){"use strict";
|
|
/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function r(e){if(!Number.isSafeInteger(e))throw new Error(`Wrong integer: ${e}`)}function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(...e){const t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map((e=>e.encode)).reduceRight(n,t),decode:e.map((e=>e.decode)).reduce(n,t)}}function i(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("alphabet.encode input should be an array of numbers");return t.map((t=>{if(r(t),t<0||t>=e.length)throw new Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]}))},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((t=>{if("string"!=typeof t)throw new Error(`alphabet.decode: not string element=${t}`);const n=e.indexOf(t);if(-1===n)throw new Error(`Unknown letter: "${t}". Allowed: ${e}`);return n}))}}}function a(e=""){if("string"!=typeof e)throw new Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function c(e,t="="){if(r(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.encode: non-string input=${e}`);for(;n.length*e%8;)n.push(t);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`padding.decode: non-string input=${e}`);let r=n.length;if(r*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===t;r--)if(!((r-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function u(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function l(e,t,n){if(t<2)throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];let s=0;const o=[],i=Array.from(e);for(i.forEach((e=>{if(r(e),e<0||e>=t)throw new Error(`Wrong integer: ${e}`)}));;){let e=0,r=!0;for(let o=s;o<i.length;o++){const a=i[o],c=t*e+a;if(!Number.isSafeInteger(c)||t*e/t!==e||c-a!=t*e)throw new Error("convertRadix: carry overflow");e=c%n;const u=Math.floor(c/n);if(i[o]=u,!Number.isSafeInteger(u)||u*n+e!==c)throw new Error("convertRadix: carry overflow");r&&(u?r=!1:s=o)}if(o.push(e),r)break}for(let t=0;t<e.length-1&&0===e[t];t++)o.push(0);return o.reverse()}Object.defineProperty(n,"__esModule",{value:!0}),n.bytes=n.stringToBytes=n.str=n.bytesToString=n.hex=n.utf8=n.bech32m=n.bech32=n.base58check=n.createBase58check=n.base58xmr=n.base58xrp=n.base58flickr=n.base58=n.base64urlnopad=n.base64url=n.base64nopad=n.base64=n.base32crockford=n.base32hexnopad=n.base32hex=n.base32nopad=n.base32=n.base16=n.utils=void 0,n.assertNumber=r;const d=(e,t)=>t?d(t,e%t):e,p=(e,t)=>e+(t-d(e,t));function f(e,t,n,s){if(!Array.isArray(e))throw new Error("convertRadix2: data should be array");if(t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(p(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${p(t,n)}`);let o=0,i=0;const a=2**n-1,c=[];for(const s of e){if(r(s),s>=2**t)throw new Error(`convertRadix2: invalid data word=${s} from=${t}`);if(o=o<<t|s,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)c.push((o>>i-n&a)>>>0);o&=2**i-1}if(o=o<<n-i&a,!s&&i>=t)throw new Error("Excess padding");if(!s&&o)throw new Error(`Non-zero padding: ${o}`);return s&&i>0&&c.push(o>>>0),c}function h(e){return r(e),{encode:t=>{if(!s(t))throw new Error("radix.encode input should be Uint8Array");return l(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(l(t,e,256))}}}function m(e,t=!1){if(r(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(p(8,e)>32||p(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!s(n))throw new Error("radix2.encode input should be Uint8Array");return f(Array.from(n),8,e,!t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(f(n,e,8,t))}}}function g(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function y(e,t){if(r(e),"function"!=typeof t)throw new Error("checksum fn should be function");return{encode(n){if(!s(n))throw new Error("checksum.encode: input should be Uint8Array");const r=t(n).slice(0,e),o=new Uint8Array(n.length+e);return o.set(n),o.set(r,n.length),o},decode(n){if(!s(n))throw new Error("checksum.decode: input should be Uint8Array");const r=n.slice(0,-e),o=t(r).slice(0,e),i=n.slice(-e);for(let t=0;t<e;t++)if(o[t]!==i[t])throw new Error("Invalid checksum");return r}}}n.utils={alphabet:i,chain:o,checksum:y,convertRadix:l,convertRadix2:f,radix:h,radix2:m,join:a,padding:c},n.base16=o(m(4),i("0123456789ABCDEF"),a("")),n.base32=o(m(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),c(5),a("")),n.base32nopad=o(m(5),i("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),a("")),n.base32hex=o(m(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),c(5),a("")),n.base32hexnopad=o(m(5),i("0123456789ABCDEFGHIJKLMNOPQRSTUV"),a("")),n.base32crockford=o(m(5),i("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),a(""),u((e=>e.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")))),n.base64=o(m(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),n.base64nopad=o(m(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),a("")),n.base64url=o(m(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a("")),n.base64urlnopad=o(m(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),a(""));const _=e=>o(h(58),i(e),a(""));n.base58=_("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),n.base58flickr=_("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),n.base58xrp=_("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const b=[0,2,3,5,6,7,9,10,11];n.base58xmr={encode(e){let t="";for(let r=0;r<e.length;r+=8){const s=e.subarray(r,r+8);t+=n.base58.encode(s).padStart(b[s.length],"1")}return t},decode(e){let t=[];for(let r=0;r<e.length;r+=11){const s=e.slice(r,r+11),o=b.indexOf(s.length),i=n.base58.decode(s);for(let e=0;e<i.length-o;e++)if(0!==i[e])throw new Error("base58xmr: wrong padding");t=t.concat(Array.from(i.slice(i.length-o)))}return Uint8Array.from(t)}};n.createBase58check=e=>o(y(4,(t=>e(e(t)))),n.base58),n.base58check=n.createBase58check;const S=o(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),E=[996825010,642813549,513874426,1027748829,705979059];function v(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e<E.length;e++)1==(t>>e&1)&&(n^=E[e]);return n}function I(e,t,n=1){const r=e.length;let s=1;for(let t=0;t<r;t++){const n=e.charCodeAt(t);if(n<33||n>126)throw new Error(`Invalid prefix (${e})`);s=v(s)^n>>5}s=v(s);for(let t=0;t<r;t++)s=v(s)^31&e.charCodeAt(t);for(let e of t)s=v(s)^e;for(let e=0;e<6;e++)s=v(s);return s^=n,S.encode(f([s%2**30],30,5,!1))}function w(e){const t="bech32"===e?1:734539939,n=m(5),r=n.decode,s=n.encode,o=g(r);function i(e,n,r=90){if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not "+typeof e);if(n instanceof Uint8Array&&(n=Array.from(n)),!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof n);if(0===e.length)throw new TypeError(`Invalid prefix length ${e.length}`);const s=e.length+7+n.length;if(!1!==r&&s>r)throw new TypeError(`Length ${s} exceeds limit ${r}`);const o=e.toLowerCase(),i=I(o,n,t);return`${o}1${S.encode(n)}${i}`}function a(e,n=90){if("string"!=typeof e)throw new Error("bech32.decode input should be string, not "+typeof e);if(e.length<8||!1!==n&&e.length>n)throw new TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${n})`);const r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");const s=r.lastIndexOf("1");if(0===s||-1===s)throw new Error('Letter "1" must be present between prefix and data only');const o=r.slice(0,s),i=r.slice(s+1);if(i.length<6)throw new Error("Data must be at least 6 characters long");const a=S.decode(i).slice(0,-6),c=I(o,a,t);if(!i.endsWith(c))throw new Error(`Invalid checksum in ${e}: expected "${c}"`);return{prefix:o,words:a}}return{encode:i,decode:a,encodeFromBytes:function(e,t){return i(e,s(t))},decodeToBytes:function(e){const{prefix:t,words:n}=a(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:g(a),fromWords:r,fromWordsUnsafe:o,toWords:s}}n.bech32=w("bech32"),n.bech32m=w("bech32m"),n.utf8={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},n.hex=o(m(4),i("0123456789abcdef"),a(""),u((e=>{if("string"!=typeof e||e.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})));const T={utf8:n.utf8,hex:n.hex,base16:n.base16,base32:n.base32,base64:n.base64,base64url:n.base64url,base58:n.base58,base58xmr:n.base58xmr},A="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr";n.bytesToString=(e,t)=>{if("string"!=typeof e||!T.hasOwnProperty(e))throw new TypeError(A);if(!s(t))throw new TypeError("bytesToString() expects Uint8Array");return T[e].encode(t)},n.str=n.bytesToString;n.stringToBytes=(e,t)=>{if(!T.hasOwnProperty(e))throw new TypeError(A);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return T[e].decode(t)},n.bytes=n.stringToBytes},{}],41:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;n.DEBUG_BUILD=r},{}],42:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./debug-build.js"),o=e("./types.js"),i={};function a(e){const t=i[e];if(t)return t;let n=o.WINDOW[e];if(r.isNativeFunction(n))return i[e]=n.bind(o.WINDOW);const a=o.WINDOW.document;if(a&&"function"==typeof a.createElement)try{const t=a.createElement("iframe");t.hidden=!0,a.head.appendChild(t);const r=t.contentWindow;r&&r[e]&&(n=r[e]),a.head.removeChild(t)}catch(t){s.DEBUG_BUILD&&r.logger.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?i[e]=n.bind(o.WINDOW):n}n.clearCachedImplementation=function(e){i[e]=undefined},n.fetch=function(...e){return a("fetch")(...e)},n.getNativeImplementation=a,n.setTimeout=function(...e){return a("setTimeout")(...e)}},{"./debug-build.js":41,"./types.js":69,"@sentry/utils":199}],43:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./metrics/instrument.js"),s=e("./metrics/browserMetrics.js"),o=e("./instrument/dom.js"),i=e("./instrument/history.js"),a=e("./getNativeImplementation.js"),c=e("./instrument/xhr.js"),u=e("./metrics/inp.js");n.addClsInstrumentationHandler=r.addClsInstrumentationHandler,n.addFidInstrumentationHandler=r.addFidInstrumentationHandler,n.addInpInstrumentationHandler=r.addInpInstrumentationHandler,n.addLcpInstrumentationHandler=r.addLcpInstrumentationHandler,n.addPerformanceInstrumentationHandler=r.addPerformanceInstrumentationHandler,n.addTtfbInstrumentationHandler=r.addTtfbInstrumentationHandler,n.addPerformanceEntries=s.addPerformanceEntries,n.startTrackingInteractions=s.startTrackingInteractions,n.startTrackingLongAnimationFrames=s.startTrackingLongAnimationFrames,n.startTrackingLongTasks=s.startTrackingLongTasks,n.startTrackingWebVitals=s.startTrackingWebVitals,n.addClickKeypressInstrumentationHandler=o.addClickKeypressInstrumentationHandler,n.addHistoryInstrumentationHandler=i.addHistoryInstrumentationHandler,n.clearCachedImplementation=a.clearCachedImplementation,n.fetch=a.fetch,n.getNativeImplementation=a.getNativeImplementation,n.setTimeout=a.setTimeout,n.SENTRY_XHR_DATA_KEY=c.SENTRY_XHR_DATA_KEY,n.addXhrInstrumentationHandler=c.addXhrInstrumentationHandler,n.registerInpInteractionListener=u.registerInpInteractionListener,n.startTrackingINP=u.startTrackingINP},{"./getNativeImplementation.js":42,"./instrument/dom.js":44,"./instrument/history.js":45,"./instrument/xhr.js":46,"./metrics/browserMetrics.js":47,"./metrics/inp.js":49,"./metrics/instrument.js":50}],44:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js"),o=1e3;let i,a,c;function u(){if(!s.WINDOW.document)return;const e=r.triggerHandlers.bind(null,"dom"),t=l(e,!0);s.WINDOW.document.addEventListener("click",t,!1),s.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=s.WINDOW[t]&&s.WINDOW[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(r.fill(n,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,o=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},i=o[n]=o[n]||{refCount:0};if(!i.handler){const r=l(e);i.handler=r,t.call(this,n,r,s)}i.refCount++}catch(e){}return t.call(this,n,r,s)}})),r.fill(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},o=s[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=undefined,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function l(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const u=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,u))return;r.addNonEnumerableProperty(n,"_sentryCaptured",!0),u&&!u._sentryId&&r.addNonEnumerableProperty(u,"_sentryId",r.uuid4());const l="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==a)return!1;try{if(!e.target||e.target._sentryId!==c)return!1}catch(e){}return!0}(n)){e({event:n,name:l,global:t}),a=n.type,c=u?u._sentryId:undefined}clearTimeout(i),i=s.WINDOW.setTimeout((()=>{c=undefined,a=undefined}),o)}}n.addClickKeypressInstrumentationHandler=function(e){r.addHandler("dom",e),r.maybeInstrument("dom",u)},n.instrumentDOM=u},{"../types.js":69,"@sentry/utils":199}],45:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js");let o;function i(){if(!r.supportsHistory())return;const e=s.WINDOW.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:undefined;if(n){const e=o,t=String(n);o=t;const s={from:e,to:t};r.triggerHandlers("history",s)}return e.apply(this,t)}}s.WINDOW.onpopstate=function(...t){const n=s.WINDOW.location.href,i=o;o=n;const a={from:i,to:n};if(r.triggerHandlers("history",a),e)try{return e.apply(this,t)}catch(e){}},r.fill(s.WINDOW.history,"pushState",t),r.fill(s.WINDOW.history,"replaceState",t)}n.addHistoryInstrumentationHandler=function(e){const t="history";r.addHandler(t,e),r.maybeInstrument(t,i)}},{"../types.js":69,"@sentry/utils":199}],46:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../types.js"),o="__sentry_xhr_v3__";function i(){if(!s.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const s=1e3*r.timestampInSeconds(),i=r.isString(n[0])?n[0].toUpperCase():undefined,a=function(e){if(r.isString(e))return e;try{return e.toString()}catch(e){}return undefined}(n[1]);if(!i||!a)return e.apply(t,n);t[o]={method:i,url:a,request_headers:{}},"POST"===i&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const c=()=>{const e=t[o];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}const n={endTimestamp:1e3*r.timestampInSeconds(),startTimestamp:s,xhr:t};r.triggerHandlers("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(c(),e.apply(t,n))}):t.addEventListener("readystatechange",c),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[s,i]=n,a=t[o];return a&&r.isString(s)&&r.isString(i)&&(a.request_headers[s.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const s=t[o];if(!s)return e.apply(t,n);n[0]!==undefined&&(s.body=n[0]);const i={startTimestamp:1e3*r.timestampInSeconds(),xhr:t};return r.triggerHandlers("xhr",i),e.apply(t,n)}})}n.SENTRY_XHR_DATA_KEY=o,n.addXhrInstrumentationHandler=function(e){r.addHandler("xhr",e),r.maybeInstrument("xhr",i)},n.instrumentXHR=i},{"../types.js":69,"@sentry/utils":199}],47:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("../types.js"),a=e("./cls.js"),c=e("./instrument.js"),u=e("./utils.js"),l=e("./web-vitals/lib/getActivationStart.js"),d=e("./web-vitals/lib/getNavigationEntry.js"),p=e("./web-vitals/lib/getVisibilityWatcher.js"),f=2147483647;let h,m,g=0,y={};function _(e,t,n,s,o){const i=d.getNavigationEntry(),a=u.msToSec(i?i.requestStart:0),c=o+Math.max(n,a),l=o+n,p=l+s,f={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};return c!==l&&(f["sentry.browser.measure_happened_before_request"]=!0,f["sentry.browser.measure_start_time"]=c),u.startAndEndSpan(e,c,p,{name:t.name,op:t.entryType,attributes:f}),c}function b(e,t,n,s,o,i){const a=i?t[i]:t[`${n}End`],c=t[`${n}Start`];c&&a&&u.startAndEndSpan(e,s+u.msToSec(c),s+u.msToSec(a),{op:`browser.${o||n}`,name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}function S(e,t,n,o,a,c){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const l=s.parseUrl(n),d={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};E(d,t,"transferSize","http.response_transfer_size"),E(d,t,"encodedBodySize","http.response_content_length"),E(d,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(d["resource.render_blocking_status"]=t.renderBlockingStatus),l.protocol&&(d["url.scheme"]=l.protocol.split(":").pop()),l.host&&(d["server.address"]=l.host),d["url.same_origin"]=n.includes(i.WINDOW.location.origin);const p=c+o,f=p+a;u.startAndEndSpan(e,p,f,{name:n.replace(i.WINDOW.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function E(e,t,n,r){const s=t[n];null!=s&&s<f&&(e[r]=s)}n._addMeasureSpans=_,n._addResourceSpans=S,n.addPerformanceEntries=function(e,t){const n=u.getBrowserPerformanceAPI();if(!n||!i.WINDOW.performance.getEntries||!s.browserPerformanceTimeOrigin)return;o.DEBUG_BUILD&&s.logger.log("[Tracing] Adding & adjusting spans using Performance API");const a=u.msToSec(s.browserPerformanceTimeOrigin),c=n.getEntries(),{op:f,start_timestamp:E}=r.spanToJSON(e);if(c.slice(g).forEach((t=>{const n=u.msToSec(t.startTime),i=u.msToSec(Math.max(0,t.duration));if(!("navigation"===f&&E&&a+n<E))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{b(e,t,r,n)})),b(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),b(e,t,"fetch",n,"cache","domainLookupStart"),b(e,t,"domainLookup",n,"DNS"),function(e,t,n){const s=n+u.msToSec(t.requestStart),o=n+u.msToSec(t.responseEnd),i=n+u.msToSec(t.responseStart);t.responseEnd&&(u.startAndEndSpan(e,s,o,{op:"browser.request",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),u.startAndEndSpan(e,i,o,{op:"browser.response",name:t.name,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,a);break;case"mark":case"paint":case"measure":{_(e,t,n,i,a);const r=p.getVisibilityWatcher(),c=t.startTime<r.firstHiddenTime;"first-paint"===t.name&&c&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding FP"),y.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&c&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding FCP"),y.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":S(e,t,t.name,n,i,a)}})),g=Math.max(c.length-1,0),function(e){const t=i.WINDOW.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),u.isMeasurementValue(n.rtt)&&(y["connection.rtt"]={value:n.rtt,unit:"millisecond"}));u.isMeasurementValue(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`);u.isMeasurementValue(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===f){!function(e){const t=d.getNavigationEntry();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(y);const n=y["mark.fid"];n&&y.fid&&(u.startAndEndSpan(e,n.value,n.value+u.msToSec(y.fid.value),{name:"first input delay",op:"ui.action",attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),delete y["mark.fid"]),"fcp"in y&&t.recordClsOnPageloadSpan||delete y.cls,Object.entries(y).forEach((([e,t])=>{r.setMeasurement(e,t.value,t.unit)})),e.setAttribute("performance.timeOrigin",a),e.setAttribute("performance.activationStart",l.getActivationStart()),function(e){h&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding LCP Data"),h.element&&e.setAttribute("lcp.element",s.htmlTreeAsString(h.element)),h.id&&e.setAttribute("lcp.id",h.id),h.url&&e.setAttribute("lcp.url",h.url.trim().slice(0,200)),e.setAttribute("lcp.size",h.size));m&&m.sources&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding CLS Data"),m.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,s.htmlTreeAsString(t.node)))))}(e)}h=undefined,m=undefined,y={}},n.startTrackingInteractions=function(){c.addPerformanceInstrumentationHandler("event",(({entries:e})=>{if(r.getActiveSpan())for(const t of e)if("click"===t.name){const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),o={name:s.htmlTreeAsString(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=s.getComponentName(t.target);i&&(o.attributes["ui.component_name"]=i);const a=r.startInactiveSpan(o);a&&a.end(e+n)}}))},n.startTrackingLongAnimationFrames=function(){new PerformanceObserver((e=>{if(r.getActiveSpan())for(const t of e.getEntries()){if(!t.scripts[0])continue;const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),o={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},i=t.scripts[0],{invoker:a,invokerType:c,sourceURL:l,sourceFunctionName:d,sourceCharPosition:p}=i;o["browser.script.invoker"]=a,o["browser.script.invoker_type"]=c,l&&(o["code.filepath"]=l),d&&(o["code.function"]=d),-1!==p&&(o["browser.script.source_char_position"]=p);const f=r.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-animation-frame",startTime:e,attributes:o});f&&f.end(e+n)}})).observe({type:"long-animation-frame",buffered:!0})},n.startTrackingLongTasks=function(){c.addPerformanceInstrumentationHandler("longtask",(({entries:e})=>{if(r.getActiveSpan())for(const t of e){const e=u.msToSec(s.browserPerformanceTimeOrigin+t.startTime),n=u.msToSec(t.duration),o=r.startInactiveSpan({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}});o&&o.end(e+n)}}))},n.startTrackingWebVitals=function({recordClsStandaloneSpans:e}){const t=u.getBrowserPerformanceAPI();if(t&&s.browserPerformanceTimeOrigin){t.mark&&i.WINDOW.performance.mark("sentry-tracing-init");const n=c.addFidInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=u.msToSec(s.browserPerformanceTimeOrigin),r=u.msToSec(t.startTime);o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding FID"),y.fid={value:e.value,unit:"millisecond"},y["mark.fid"]={value:n+r,unit:"second"}})),r=c.addLcpInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding LCP"),y.lcp={value:e.value,unit:"millisecond"},h=t)}),!0),l=c.addTtfbInstrumentationHandler((({metric:e})=>{e.entries[e.entries.length-1]&&(o.DEBUG_BUILD&&s.logger.log("[Measurements] Adding TTFB"),y.ttfb={value:e.value,unit:"millisecond"})})),d=e?a.trackClsAsStandaloneSpan():c.addClsInstrumentationHandler((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(o.DEBUG_BUILD&&s.logger.log(`[Measurements] Adding CLS ${e.value}`),y.cls={value:e.value,unit:""},m=t)}),!0);return()=>{n(),r(),l(),d&&d()}}return()=>undefined}},{"../debug-build.js":41,"../types.js":69,"./cls.js":48,"./instrument.js":50,"./utils.js":51,"./web-vitals/lib/getActivationStart.js":58,"./web-vitals/lib/getNavigationEntry.js":59,"./web-vitals/lib/getVisibilityWatcher.js":60,"@sentry/core":118,"@sentry/utils":199}],48:[function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core"),o=e("@sentry/utils"),i=e("../debug-build.js"),a=e("./instrument.js"),c=e("./utils.js"),u=e("./web-vitals/lib/onHidden.js");n.trackClsAsStandaloneSpan=function(){let e,t,n=0;if(!function(){try{return r([PerformanceObserver,"access",e=>e.supportedEntryTypes,"optionalAccess",e=>e.includes,"call",e=>e("layout-shift")])}catch(e){return!1}}())return;let l=!1;function d(){l||(l=!0,t&&function(e,t,n){i.DEBUG_BUILD&&o.logger.log(`Sending CLS span (${e})`);const a=c.msToSec((o.browserPerformanceTimeOrigin||0)+(r([t,"optionalAccess",e=>e.startTime])||0)),u=s.getCurrentScope().getScopeData().transactionName,l=t?o.htmlTreeAsString(r([t,"access",e=>e.sources,"access",e=>e[0],"optionalAccess",e=>e.node])):"Layout shift",d=o.dropUndefinedKeys({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:r([t,"optionalAccess",e=>e.duration])||0,"sentry.pageload.span_id":n}),p=c.startStandaloneWebVitalSpan({name:l,transaction:u,attributes:d,startTime:a});r([p,"optionalAccess",e=>e.addEvent,"call",t=>t("cls",{[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e})]),r([p,"optionalAccess",e=>e.end,"call",e=>e(a)])}(n,e,t),p())}const p=a.addClsInstrumentationHandler((({metric:t})=>{const r=t.entries[t.entries.length-1];r&&(n=t.value,e=r)}),!0);u.onHidden((()=>{d()})),setTimeout((()=>{const e=s.getClient(),n=r([e,"optionalAccess",e=>e.on,"call",e=>e("startNavigationSpan",(()=>{d(),n&&n()}))]),o=s.getActiveSpan(),i=o&&s.getRootSpan(o),a=i&&s.spanToJSON(i);a&&"pageload"===a.op&&(t=i.spanContext().spanId)}),0)}},{"../debug-build.js":41,"./instrument.js":50,"./utils.js":51,"./web-vitals/lib/onHidden.js":63,"@sentry/core":118,"@sentry/utils":199}],49:[function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core"),o=e("@sentry/utils"),i=e("./instrument.js"),a=e("./utils.js"),c=[],u=new Map;const l={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};n.registerInpInteractionListener=function(e){const t=({entries:e})=>{const t=s.getActiveSpan(),n=t&&s.getRootSpan(t);e.forEach((e=>{if(!i.isPerformanceEventTiming(e)||!n)return;const t=e.interactionId;if(null!=t&&!u.has(t)){if(c.length>10){const e=c.shift();u.delete(e)}c.push(t),u.set(t,n)}}))};i.addPerformanceInstrumentationHandler("event",t),i.addPerformanceInstrumentationHandler("first-input",t)},n.startTrackingINP=function(){if(a.getBrowserPerformanceAPI()&&o.browserPerformanceTimeOrigin){const e=i.addInpInstrumentationHandler((({metric:e})=>{if(e.value==undefined)return;const t=e.entries.find((t=>t.duration===e.value&&l[t.name]));if(!t)return;const{interactionId:n}=t,i=l[t.name],c=a.msToSec(o.browserPerformanceTimeOrigin+t.startTime),d=a.msToSec(e.value),p=s.getActiveSpan(),f=p?s.getRootSpan(p):undefined,h=(null!=n?u.get(n):undefined)||f,m=h?s.spanToJSON(h).description:s.getCurrentScope().getScopeData().transactionName,g=o.htmlTreeAsString(t.target),y=o.dropUndefinedKeys({[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${i}`,[s.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration}),_=a.startStandaloneWebVitalSpan({name:g,transaction:m,attributes:y,startTime:c});r([_,"optionalAccess",e=>e.addEvent,"call",t=>t("inp",{[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[s.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value})]),r([_,"optionalAccess",e=>e.end,"call",e=>e(c+d)])}));return()=>{e()}}return()=>undefined}},{"./instrument.js":50,"./utils.js":51,"@sentry/core":118,"@sentry/utils":199}],50:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=e("./web-vitals/getCLS.js"),i=e("./web-vitals/getFID.js"),a=e("./web-vitals/getINP.js"),c=e("./web-vitals/getLCP.js"),u=e("./web-vitals/lib/observe.js"),l=e("./web-vitals/onTTFB.js"),d={},p={};let f,h,m,g,y;function _(e,t){const n=d[e];if(n&&n.length)for(const o of n)try{o(t)}catch(t){s.DEBUG_BUILD&&r.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${r.getFunctionName(o)}\nError:`,t)}}function b(){return o.onCLS((e=>{_("cls",{metric:e}),f=e}),{reportAllChanges:!0})}function S(){return i.onFID((e=>{_("fid",{metric:e}),h=e}))}function E(){return c.onLCP((e=>{_("lcp",{metric:e}),m=e}),{reportAllChanges:!0})}function v(){return l.onTTFB((e=>{_("ttfb",{metric:e}),g=e}))}function I(){return a.onINP((e=>{_("inp",{metric:e}),y=e}))}function w(e,t,n,r,s=!1){let o;return T(e,t),p[e]||(o=n(),p[e]=!0),r&&t({metric:r}),A(e,t,s?o:undefined)}function T(e,t){d[e]=d[e]||[],d[e].push(t)}function A(e,t,n){return()=>{n&&n();const r=d[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}n.addClsInstrumentationHandler=function(e,t=!1){return w("cls",e,b,f,t)},n.addFidInstrumentationHandler=function(e){return w("fid",e,S,h)},n.addInpInstrumentationHandler=function(e){return w("inp",e,I,y)},n.addLcpInstrumentationHandler=function(e,t=!1){return w("lcp",e,E,m,t)},n.addPerformanceInstrumentationHandler=function(e,t){return T(e,t),p[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);u.observe(e,(t=>{_(e,{entries:t})}),t)}(e),p[e]=!0),A(e,t)},n.addTtfbInstrumentationHandler=function(e){return w("ttfb",e,v,g)},n.isPerformanceEventTiming=function(e){return"duration"in e}},{"../debug-build.js":41,"./web-vitals/getCLS.js":52,"./web-vitals/getFID.js":53,"./web-vitals/getINP.js":54,"./web-vitals/getLCP.js":55,"./web-vitals/lib/observe.js":62,"./web-vitals/onTTFB.js":68,"@sentry/utils":199}],51:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("../types.js");n.getBrowserPerformanceAPI=function(){return s.WINDOW&&s.WINDOW.addEventListener&&s.WINDOW.performance},n.isMeasurementValue=function(e){return"number"==typeof e&&isFinite(e)},n.msToSec=function(e){return e/1e3},n.startAndEndSpan=function(e,t,n,{...s}){const o=r.spanToJSON(e).start_timestamp;return o&&o>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r.withActiveSpan(e,(()=>{const e=r.startInactiveSpan({startTime:t,...s});return e&&e.end(n),e}))},n.startStandaloneWebVitalSpan=function(e){const t=r.getClient();if(!t)return;const{name:n,transaction:o,attributes:i,startTime:a}=e,{release:c,environment:u}=t.getOptions(),l=t.getIntegrationByName("Replay"),d=l&&l.getReplayId(),p=r.getCurrentScope(),f=p.getUser(),h=f!==undefined?f.email||f.id||f.ip_address:undefined;let m;try{m=p.getScopeData().contexts.profile.profile_id}catch(e){}const g={release:c,environment:u,user:h||undefined,profile_id:m||undefined,replay_id:d||undefined,transaction:o,"user_agent.original":s.WINDOW.navigator&&s.WINDOW.navigator.userAgent,...i};return r.startInactiveSpan({name:n,attributes:g,startTime:a,experimental:{standalone:!0}})}},{"../types.js":69,"@sentry/core":118}],52:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/initMetric.js"),o=e("./lib/observe.js"),i=e("./lib/onHidden.js"),a=e("./lib/runOnce.js"),c=e("./onFCP.js"),u=[.1,.25];n.CLSThresholds=u,n.onCLS=(e,t={})=>{c.onFCP(a.runOnce((()=>{const n=s.initMetric("CLS",0);let a,c=0,l=[];const d=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=l[0],n=l[l.length-1];c&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(c+=e.value,l.push(e)):(c=e.value,l=[e])}})),c>n.value&&(n.value=c,n.entries=l,a())},p=o.observe("layout-shift",d);p&&(a=r.bindReporter(e,n,u,t.reportAllChanges),i.onHidden((()=>{d(p.takeRecords()),a(!0)})),setTimeout(a,0))})))}},{"./lib/bindReporter.js":56,"./lib/initMetric.js":61,"./lib/observe.js":62,"./lib/onHidden.js":63,"./lib/runOnce.js":65,"./onFCP.js":67}],53:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/getVisibilityWatcher.js"),o=e("./lib/initMetric.js"),i=e("./lib/observe.js"),a=e("./lib/onHidden.js"),c=e("./lib/runOnce.js"),u=e("./lib/whenActivated.js"),l=[100,300];n.FIDThresholds=l,n.onFID=(e,t={})=>{u.whenActivated((()=>{const n=s.getVisibilityWatcher(),u=o.initMetric("FID");let d;const p=e=>{e.startTime<n.firstHiddenTime&&(u.value=e.processingStart-e.startTime,u.entries.push(e),d(!0))},f=e=>{e.forEach(p)},h=i.observe("first-input",f);d=r.bindReporter(e,u,l,t.reportAllChanges),h&&a.onHidden(c.runOnce((()=>{f(h.takeRecords()),h.disconnect()})))}))}},{"./lib/bindReporter.js":56,"./lib/getVisibilityWatcher.js":60,"./lib/initMetric.js":61,"./lib/observe.js":62,"./lib/onHidden.js":63,"./lib/runOnce.js":65,"./lib/whenActivated.js":66}],54:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),o=e("./lib/initMetric.js"),i=e("./lib/observe.js"),a=e("./lib/onHidden.js"),c=e("./lib/polyfills/interactionCountPolyfill.js"),u=e("./lib/whenActivated.js"),l=[200,500],d=()=>c.getInteractionCount()-0,p=[],f={},h=e=>{const t=p[p.length-1],n=f[e.interactionId];if(n||p.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};f[t.id]=t,p.push(t)}p.sort(((e,t)=>t.latency-e.latency)),p.splice(10).forEach((e=>{delete f[e.id]}))}};n.INPThresholds=l,n.onINP=(e,t={})=>{u.whenActivated((()=>{c.initInteractionCountPolyfill();const n=o.initMetric("INP");let u;const f=e=>{e.forEach((e=>{if(e.interactionId&&h(e),"first-input"===e.entryType){!p.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&h(e)}}));const t=(()=>{const e=Math.min(p.length-1,Math.floor(d()/50));return p[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,u())},m=i.observe("event",f,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});u=s.bindReporter(e,n,l,t.reportAllChanges),m&&("PerformanceEventTiming"in r.WINDOW&&"interactionId"in PerformanceEventTiming.prototype&&m.observe({type:"first-input",buffered:!0}),a.onHidden((()=>{f(m.takeRecords()),n.value<0&&d()>0&&(n.value=0,n.entries=[]),u(!0)})))}))}},{"../../types.js":69,"./lib/bindReporter.js":56,"./lib/initMetric.js":61,"./lib/observe.js":62,"./lib/onHidden.js":63,"./lib/polyfills/interactionCountPolyfill.js":64,"./lib/whenActivated.js":66}],55:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),o=e("./lib/getActivationStart.js"),i=e("./lib/getVisibilityWatcher.js"),a=e("./lib/initMetric.js"),c=e("./lib/observe.js"),u=e("./lib/onHidden.js"),l=e("./lib/runOnce.js"),d=e("./lib/whenActivated.js"),p=[2500,4e3],f={};n.LCPThresholds=p,n.onLCP=(e,t={})=>{d.whenActivated((()=>{const n=i.getVisibilityWatcher(),d=a.initMetric("LCP");let h;const m=e=>{const t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(d.value=Math.max(t.startTime-o.getActivationStart(),0),d.entries=[t],h())},g=c.observe("largest-contentful-paint",m);if(g){h=s.bindReporter(e,d,p,t.reportAllChanges);const n=l.runOnce((()=>{f[d.id]||(m(g.takeRecords()),g.disconnect(),f[d.id]=!0,h(!0))}));["keydown","click"].forEach((e=>{r.WINDOW.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),u.onHidden(n)}}))}},{"../../types.js":69,"./lib/bindReporter.js":56,"./lib/getActivationStart.js":58,"./lib/getVisibilityWatcher.js":60,"./lib/initMetric.js":61,"./lib/observe.js":62,"./lib/onHidden.js":63,"./lib/runOnce.js":65,"./lib/whenActivated.js":66}],56:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.bindReporter=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s||0),(o||s===undefined)&&(s=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}}},{}],57:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.generateUniqueID=()=>`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},{}],58:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./getNavigationEntry.js");n.getActivationStart=()=>{const e=r.getNavigationEntry();return e&&e.activationStart||0}},{"./getNavigationEntry.js":59}],59:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.getNavigationEntry=()=>r.WINDOW.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},{"../../../types.js":69}],60:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");let s=-1;const o=e=>{"hidden"===r.WINDOW.document.visibilityState&&s>-1&&(s="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",o,!0),removeEventListener("prerenderingchange",o,!0))};n.getVisibilityWatcher=()=>(r.WINDOW.document&&s<0&&(s="hidden"!==r.WINDOW.document.visibilityState||r.WINDOW.document.prerendering?Infinity:0,addEventListener("visibilitychange",o,!0),addEventListener("prerenderingchange",o,!0)),{get firstHiddenTime(){return s}})},{"../../../types.js":69}],61:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js"),s=e("./generateUniqueID.js"),o=e("./getActivationStart.js"),i=e("./getNavigationEntry.js");n.initMetric=(e,t)=>{const n=i.getNavigationEntry();let a="navigate";n&&(r.WINDOW.document&&r.WINDOW.document.prerendering||o.getActivationStart()>0?a="prerender":r.WINDOW.document&&r.WINDOW.document.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-")));return{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:s.generateUniqueID(),navigationType:a}}},{"../../../types.js":69,"./generateUniqueID.js":57,"./getActivationStart.js":58,"./getNavigationEntry.js":59}],62:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.observe=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}}},{}],63:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.onHidden=e=>{const t=t=>{("pagehide"===t.type||r.WINDOW.document&&"hidden"===r.WINDOW.document.visibilityState)&&e(t)};r.WINDOW.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))}},{"../../../types.js":69}],64:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../observe.js");let s=0,o=Infinity,i=0;const a=e=>{e.forEach((e=>{e.interactionId&&(o=Math.min(o,e.interactionId),i=Math.max(i,e.interactionId),s=i?(i-o)/7+1:0)}))};let c;n.getInteractionCount=()=>c?s:performance.interactionCount||0,n.initInteractionCountPolyfill=()=>{"interactionCount"in performance||c||(c=r.observe("event",a,{type:"event",buffered:!0,durationThreshold:0}))}},{"../observe.js":62}],65:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.runOnce=e=>{let t=!1;return n=>{t||(e(n),t=!0)}}},{}],66:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../../types.js");n.whenActivated=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()}},{"../../../types.js":69}],67:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./lib/bindReporter.js"),s=e("./lib/getActivationStart.js"),o=e("./lib/getVisibilityWatcher.js"),i=e("./lib/initMetric.js"),a=e("./lib/observe.js"),c=e("./lib/whenActivated.js"),u=[1800,3e3];n.FCPThresholds=u,n.onFCP=(e,t={})=>{c.whenActivated((()=>{const n=o.getVisibilityWatcher(),c=i.initMetric("FCP");let l;const d=a.observe("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(d.disconnect(),e.startTime<n.firstHiddenTime&&(c.value=Math.max(e.startTime-s.getActivationStart(),0),c.entries.push(e),l(!0)))}))}));d&&(l=r.bindReporter(e,c,u,t.reportAllChanges))}))}},{"./lib/bindReporter.js":56,"./lib/getActivationStart.js":58,"./lib/getVisibilityWatcher.js":60,"./lib/initMetric.js":61,"./lib/observe.js":62,"./lib/whenActivated.js":66}],68:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../../types.js"),s=e("./lib/bindReporter.js"),o=e("./lib/getActivationStart.js"),i=e("./lib/getNavigationEntry.js"),a=e("./lib/initMetric.js"),c=e("./lib/whenActivated.js"),u=[800,1800],l=e=>{r.WINDOW.document&&r.WINDOW.document.prerendering?c.whenActivated((()=>l(e))):r.WINDOW.document&&"complete"!==r.WINDOW.document.readyState?addEventListener("load",(()=>l(e)),!0):setTimeout(e,0)};n.TTFBThresholds=u,n.onTTFB=(e,t={})=>{const n=a.initMetric("TTFB"),r=s.bindReporter(e,n,u,t.reportAllChanges);l((()=>{const e=i.getNavigationEntry();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-o.getActivationStart(),0),n.entries=[e],r(!0)}}))}},{"../../types.js":69,"./lib/bindReporter.js":56,"./lib/getActivationStart.js":58,"./lib/getNavigationEntry.js":59,"./lib/initMetric.js":61,"./lib/whenActivated.js":66}],69:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils").GLOBAL_OBJ;n.WINDOW=r},{"@sentry/utils":199}],70:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=s.GLOBAL_OBJ,i=o.document,a=o.navigator,c="Report a Bug",u="widget",l=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=r.getClient();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&r.getCurrentScope().setTags(e.tags);const o=r.captureFeedback({source:"api",url:s.getLocationHref(),...e},t);return new Promise(((e,t)=>{const r=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3),s=n.on("afterSendEvent",((n,i)=>{if(n.event_id===o)return clearTimeout(r),s(),i&&"number"==typeof i.statusCode&&i.statusCode>=200&&i.statusCode<300&&e(o),i&&"number"==typeof i.statusCode&&0===i.statusCode?t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker."):i&&"number"==typeof i.statusCode&&403===i.statusCode?t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))},d="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function p(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen(),e.onFormOpen&&e.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose(),e.onFormClose&&e.onFormClose()},onSubmitSuccess:n=>{t.onSubmitSuccess&&t.onSubmitSuccess(n),e.onSubmitSuccess&&e.onSubmitSuccess(n)},onSubmitError:n=>{t.onSubmitError&&t.onSubmitError(n),e.onSubmitError&&e.onSubmitError(n)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted(),e.onFormSubmitted&&e.onFormSubmitted()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function f(e,t){return Object.entries(t).forEach((([t,n])=>{e.setAttributeNS(null,t,n)})),e}const h=20,m="http://www.w3.org/2000/svg";function g({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=i.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||c,s.appendChild(function(){const e=e=>o.document.createElementNS(m,e),t=f(e("svg"),{width:`${h}`,height:`${h}`,viewBox:`0 0 ${h} ${h}`,fill:"var(--actor-color, var(--foreground))"}),n=f(e("g"),{clipPath:"url(#clip0_57_80)"}),r=f(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const s=e("defs"),i=f(e("clipPath"),{id:"clip0_57_80"}),a=f(e("rect"),{width:`${h}`,height:`${h}`,fill:"white"});return i.appendChild(a),s.appendChild(i),t.appendChild(s).appendChild(i).appendChild(a),t}()),e){const t=i.createElement("span");t.appendChild(i.createTextNode(e)),s.appendChild(t)}const a=function(e){const t=i.createElement("style");return t.textContent='\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n',e&&t.setAttribute("nonce",e),t}(r);return{el:s,appendToDom(){n.appendChild(a),n.appendChild(s)},removeFromDom(){n.removeChild(s),n.removeChild(a)},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const y="rgba(88, 74, 192, 1)",_={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:y,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},b={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:y,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function S(e){return`\n --foreground: ${e.foreground};\n --background: ${e.background};\n --accent-foreground: ${e.accentForeground};\n --accent-background: ${e.accentBackground};\n --success-color: ${e.successColor};\n --error-color: ${e.errorColor};\n --border: ${e.border};\n --box-shadow: ${e.boxShadow};\n --outline: ${e.outline};\n --interactive-filter: ${e.interactiveFilter};\n `}var E,v,I,w,T,A,C,x={},k=[],j=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,R=Array.isArray;function O(e,t){for(var n in t)e[n]=t[n];return e}function N(e){var t=e.parentNode;t&&t.removeChild(e)}function M(e,t,n){var r,s,o,i={};for(o in t)"key"==o?r=t[o]:"ref"==o?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?E.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===i[o]&&(i[o]=e.defaultProps[o]);return P(e,i,r,s,null)}function P(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==s?++I:s,__i:-1,__u:0};return null==s&&null!=v.vnode&&v.vnode(o),o}function D(e){return e.children}function L(e,t){this.props=e,this.context=t}function U(e,t){if(null==t)return e.__?U(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?U(e):null}function B(e,t,n){var r,s=e.__v,o=s.__e,i=e.__P;if(i)return(r=O({},s)).__v=s.__v+1,v.vnode&&v.vnode(r),X(i,r,s,e.__n,void 0!==i.ownerSVGElement,32&s.__u?[o]:null,t,null==o?U(s):o,!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&F(r),r}function F(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return F(e)}}function $(e){(!e.__d&&(e.__d=!0)&&w.push(e)&&!H.__r++||T!==v.debounceRendering)&&((T=v.debounceRendering)||A)(H)}function H(){var e,t,n,r=[],s=[];for(w.sort(C);e=w.shift();)e.__d&&(n=w.length,t=B(e,r,s)||t,0===n||w.length>n?(K(r,t,s),s.length=r.length=0,t=void 0,w.sort(C)):t&&v.__c&&v.__c(t,k));t&&K(r,t,s),H.__r=0}function W(e,t,n,r,s,o,i,a,c,u,l){var d,p,f,h,m,g=r&&r.__k||k,y=t.length;for(n.__d=c,function(e,t,n){var r,s,o,i,a,c=t.length,u=n.length,l=u,d=0;for(e.__k=[],r=0;r<c;r++)null!=(s=e.__k[r]=null==(s=t[r])||"boolean"==typeof s||"function"==typeof s?null:"string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?P(null,s,null,null,s):R(s)?P(D,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?P(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,a=z(s,n,i=r+d,l),s.__i=a,o=null,-1!==a&&(l--,(o=n[a])&&(o.__u|=131072)),null==o||null===o.__v?(-1==a&&d--,"function"!=typeof s.type&&(s.__u|=65536)):a!==i&&(a===i+1?d++:a>i?l>c-i?d+=a-i:d--:d=a<i&&a==i-1?a-i:0,a!==r+d&&(s.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=U(o)),ee(o,o,!1),n[r]=null,l--);if(l)for(r=0;r<u;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=U(o)),ee(o,o))}(n,t,g),c=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?x:g[f.__i]||x,f.__i=d,X(e,f,p,s,o,i,a,c,u,l),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Q(p.ref,null,f),l.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?c=G(f,c,e):"function"==typeof f.type&&void 0!==f.__d?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=m}function G(e,t,n){var r,s;if("function"==typeof e.type){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=G(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function z(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(null===c||c&&s==c.key&&o===c.type)return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&!(131072&c.__u)&&s==c.key&&o===c.type)return i;i--}if(a<t.length){if((c=t[a])&&!(131072&c.__u)&&s==c.key&&o===c.type)return a;a++}}return-1}function q(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||j.test(t)?n:n+"px"}function J(e,t,n,r,s){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||q(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||q(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?Y:V,o)):e.removeEventListener(t,o?Y:V,o);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function V(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(v.event?v.event(e):e)}}function Y(e){if(this.l)return this.l[e.type+!0](v.event?v.event(e):e)}function X(e,t,n,r,s,o,i,a,c,u){var l,d,p,f,h,m,g,y,_,b,S,E,I,w,T,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(l=v.__b)&&l(t);e:if("function"==typeof A)try{if(y=t.props,_=(l=A.contextType)&&r[l.__c],b=l?_?_.props.value:l.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in A&&A.prototype.render?t.__c=d=new A(y,b):(t.__c=d=new L(y,b),d.constructor=A,d.render=te),_&&_.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=O({},d.__s)),O(d.__s,A.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==A.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,m)}))}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,E=v.__r,I=0,"prototype"in A&&A.prototype.render){for(d.state=d.__s,d.__d=!1,E&&E(t),l=d.render(d.props,d.state,d.context),w=0;w<d._sb.length;w++)d.__h.push(d._sb[w]);d._sb=[]}else do{d.__d=!1,E&&E(t),l=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++I<25);d.state=d.__s,null!=d.getChildContext&&(r=O(O({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),W(e,R(T=null!=l&&l.type===D&&null==l.key?l.props.children:l)?T:[T],t,n,r,s,o,i,a,c,u),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||null!=o?(t.__e=a,t.__u|=c?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),v.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Z(n.__e,t,n,r,s,o,i,c,u);(l=v.diffed)&&l(t)}function K(e,t,n){for(var r=0;r<n.length;r++)Q(n[r],n[++r],n[++r]);v.__c&&v.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){v.__e(e,t.__v)}}))}function Z(e,t,n,r,s,o,i,a,c){var u,l,d,p,f,h,m,g=n.props,y=t.props,_=t.type;if("svg"===_&&(s=!0),null!=o)for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!_&&(_?f.localName===_:3===f.nodeType)){e=f,o[u]=null;break}if(null==e){if(null===_)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),o=null,a=!1}if(null===_)g===y||a&&e.data===y||(e.data=y);else{if(o=o&&E.call(e.childNodes),g=n.props||x,!a&&null!=o)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in y||J(e,u,null,f,s));for(u in y)f=y[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?l=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||a&&"function"!=typeof f||g[u]===f||J(e,u,f,g[u],s);if(l)a||d&&(l.__html===d.__html||l.__html===e.innerHTML)||(e.innerHTML=l.__html),t.__k=[];else if(d&&(e.innerHTML=""),W(e,R(p)?p:[p],t,n,r,s&&"foreignObject"!==_,o,i,o?o[0]:n.__k&&U(n,0),a,c),null!=o)for(u=o.length;u--;)null!=o[u]&&N(o[u]);a||(u="value",void 0!==h&&(h!==e[u]||"progress"===_&&!h||"option"===_&&h!==g[u])&&J(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&J(e,u,m,g[u],!1))}return e}function Q(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){v.__e(e,n)}}function ee(e,t,n){var r,s;if(v.unmount&&v.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Q(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){v.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&ee(r[s],t,n||"function"!=typeof e.type);n||null==e.__e||N(e.__e),e.__=e.__e=e.__d=void 0}function te(e,t,n){return this.constructor(e,n)}E=k.slice,v={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(t){e=t}throw e}},I=0,L.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=O({},this.state),"function"==typeof e&&(e=e(O({},n),this.props)),e&&O(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},L.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},L.prototype.render=D,w=[],A="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C=function(e,t){return e.__v.__b-t.__v.__b},H.__r=0;var ne,re,se,oe,ie=0,ae=[],ce=[],ue=v,le=ue.__b,de=ue.__r,pe=ue.diffed,fe=ue.__c,he=ue.unmount,me=ue.__;function ge(e,t){ue.__h&&ue.__h(re,e,ie||t),ie=0;var n=re.__H||(re.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ce}),n.__[e]}function ye(e){return ie=1,_e(xe,e)}function _e(e,t,n){var r=ge(ne++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xe(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=re,!re.u)){var s=function(e,t,n){if(!r.__c.__H)return!0;var s=r.__c.__H.__.filter((function(e){return!!e.__c}));if(s.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var i=!1;return s.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};re.u=!0;var o=re.shouldComponentUpdate,i=re.componentWillUpdate;re.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,s(e,t,n),o=r}i&&i.call(this,e,t,n)},re.shouldComponentUpdate=s}return r.__N||r.__}function be(e,t){var n=ge(ne++,4);!ue.__s&&Ce(n.__H,t)&&(n.__=e,n.i=t,re.__h.push(n))}function Se(e,t){var n=ge(ne++,7);return Ce(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ee(e,t){return ie=8,Se((function(){return e}),t)}function ve(){for(var e;e=ae.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Te),e.__H.__h.forEach(Ae),e.__H.__h=[]}catch(t){e.__H.__h=[],ue.__e(t,e.__v)}}ue.__b=function(e){re=null,le&&le(e)},ue.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),me&&me(e,t)},ue.__r=function(e){de&&de(e),ne=0;var t=(re=e.__c).__H;t&&(se===re?(t.__h=[],re.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(Te),t.__h.forEach(Ae),t.__h=[],ne=0)),se=re},ue.diffed=function(e){pe&&pe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ae.push(t)&&oe===ue.requestAnimationFrame||((oe=ue.requestAnimationFrame)||we)(ve)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),se=re=null},ue.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Te),e.__h=e.__h.filter((function(e){return!e.__||Ae(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ue.__e(n,e.__v)}})),fe&&fe(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Te(e)}catch(e){t=e}})),n.__H=void 0,t&&ue.__e(t,n.__v))};var Ie="function"==typeof requestAnimationFrame;function we(e){var t,n=function(){clearTimeout(r),Ie&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ie&&(t=requestAnimationFrame(n))}function Te(e){var t=re,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),re=t}function Ae(e){var t=re;e.__c=e.__(),re=t}function Ce(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function xe(e,t){return"function"==typeof t?t(e):t}const ke={__proto__:null,useCallback:Ee,useContext:function(e){var t=re.context[e.__c],n=ge(ne++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(re)),t.props.value):e.__},useDebugValue:function(e,t){ue.useDebugValue&&ue.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=ge(ne++,3);!ue.__s&&Ce(n.__H,t)&&(n.__=e,n.i=t,re.__H.__h.push(n))},useErrorBoundary:function(e){var t=ge(ne++,10),n=ye();return t.__=e,re.componentDidCatch||(re.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=ge(ne++,11);if(!e.__){for(var t=re.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){ie=6,be((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useLayoutEffect:be,useMemo:Se,useReducer:_e,useRef:function(e){return ie=5,Se((function(){return{current:e}}),[])},useState:ye},je="http://www.w3.org/2000/svg";function Re(){const e=e=>i.createElementNS(je,e),t=f(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=f(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}const Oe="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function Ne({options:e}){const t=Se((()=>({__html:Re().outerHTML})),[]);return M("h2",{class:"dialog__header",__self:this,__source:{fileName:Oe,lineNumber:16}},e.formTitle,e.showBranding?M("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:Oe,lineNumber:19}}):null)}const Me="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Pe(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function De({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail:c,showName:l,screenshotInput:p}){const{tags:f,addScreenshotButtonLabel:h,removeScreenshotButtonLabel:m,cancelButtonLabel:g,emailLabel:y,emailPlaceholder:_,isEmailRequired:b,isNameRequired:S,messageLabel:E,messagePlaceholder:v,nameLabel:I,namePlaceholder:w,submitButtonLabel:T,isRequiredLabel:A}=e,[C,x]=ye(null),[k,j]=ye(!1),R=p&&p.input,[O,N]=ye(null),P=Ee((e=>{N(e),j(!1)}),[]),D=Ee((e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:y,isEmailRequired:b,isNameRequired:S,messageLabel:E,nameLabel:I});return t.length>0?x(`Please enter in the following required fields: ${t.join(", ")}`):x(null),0===t.length}),[y,b,S,E,I]),L=Ee((async e=>{try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(p&&k?p.value():undefined),r={name:Pe(t,"name"),email:Pe(t,"email"),message:Pe(t,"message"),attachments:n?[n]:undefined};if(!D(r))return;try{await o({name:r.name,email:r.email,message:r.message,source:u,tags:f},{attachments:r.attachments}),i(r)}catch(e){d&&s.logger.error(e),x(e),a(e)}}catch(e){}}),[p&&k,i,a]);return M("form",{class:"form",onSubmit:L,__self:this,__source:{fileName:Me,lineNumber:144}},R&&k?M(R,{onError:P,__self:this,__source:{fileName:Me,lineNumber:146}}):null,M("div",{class:"form__right","data-sentry-feedback":!0,__self:this,__source:{fileName:Me,lineNumber:149}},M("div",{class:"form__top",__self:this,__source:{fileName:Me,lineNumber:150}},C?M("div",{class:"form__error-container",__self:this,__source:{fileName:Me,lineNumber:151}},C):null,l?M("label",{for:"name",class:"form__label",__self:this,__source:{fileName:Me,lineNumber:154}},M(Le,{label:I,isRequiredLabel:A,isRequired:S,__self:this,__source:{fileName:Me,lineNumber:155}}),M("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:w,required:S,type:"text",__self:this,__source:{fileName:Me,lineNumber:156}})):M("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden",__self:this,__source:{fileName:Me,lineNumber:167}}),c?M("label",{for:"email",class:"form__label",__self:this,__source:{fileName:Me,lineNumber:171}},M(Le,{label:y,isRequiredLabel:A,isRequired:b,__self:this,__source:{fileName:Me,lineNumber:172}}),M("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:_,required:b,type:"email",__self:this,__source:{fileName:Me,lineNumber:173}})):M("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:Me,lineNumber:184}}),M("label",{for:"message",class:"form__label",__self:this,__source:{fileName:Me,lineNumber:187}},M(Le,{label:E,isRequiredLabel:A,isRequired:!0,__self:this,__source:{fileName:Me,lineNumber:188}}),M("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:v,required:!0,rows:5,__self:this,__source:{fileName:Me,lineNumber:189}})),R?M("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:Me,lineNumber:201}},M("button",{class:"btn btn--default",type:"button",onClick:()=>{N(null),j((e=>!e))},__self:this,__source:{fileName:Me,lineNumber:202}},k?m:h),O?M("div",{class:"form__error-container",__self:this,__source:{fileName:Me,lineNumber:212}},O.message):null):null),M("div",{class:"btn-group",__self:this,__source:{fileName:Me,lineNumber:216}},M("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:Me,lineNumber:217}},T),M("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:Me,lineNumber:220}},g))))}function Le({label:e,isRequired:t,isRequiredLabel:n}){return M("span",{class:"form__label__text",__self:this,__source:{fileName:Me,lineNumber:239}},e,t&&M("span",{class:"form__label__text--required",__self:this,__source:{fileName:Me,lineNumber:241}},n))}const Ue=16,Be=17,Fe="http://www.w3.org/2000/svg";function $e(){const e=e=>o.document.createElementNS(Fe,e),t=f(e("svg"),{width:`${Ue}`,height:`${Be}`,viewBox:`0 0 ${Ue} ${Be}`,fill:"inherit"}),n=f(e("g"),{clipPath:"url(#clip0_57_156)"}),r=f(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=f(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const i=e("defs"),a=f(e("clipPath"),{id:"clip0_57_156"}),c=f(e("rect"),{width:`${Ue}`,height:`${Ue}`,fill:"white",transform:"translate(0 0.5)"});return a.appendChild(c),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(c),t}const He="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function We({open:e,onFormSubmitted:t,...n}){const r=n.options,s=Se((()=>({__html:$e().outerHTML})),[]),[o,i]=ye(null),a=Ee((()=>{o&&(clearTimeout(o),i(null)),t()}),[o]),c=Ee((e=>{n.onSubmitSuccess(e),i(setTimeout((()=>{t(),i(null)}),5e3))}),[t]);return M(D,{__self:this,__source:{fileName:He,lineNumber:48}},o?M("div",{class:"success__position",onClick:a,__self:this,__source:{fileName:He,lineNumber:50}},M("div",{class:"success__content",__self:this,__source:{fileName:He,lineNumber:51}},r.successMessageText,M("span",{class:"success__icon",dangerouslySetInnerHTML:s,__self:this,__source:{fileName:He,lineNumber:53}}))):M("dialog",{class:"dialog",onClick:r.onFormClose,open:e,__self:this,__source:{fileName:He,lineNumber:57}},M("div",{class:"dialog__position",__self:this,__source:{fileName:He,lineNumber:58}},M("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()},__self:this,__source:{fileName:He,lineNumber:59}},M(Ne,{options:r,__self:this,__source:{fileName:He,lineNumber:66}}),M(De,{...n,onSubmitSuccess:c,__self:this,__source:{fileName:He,lineNumber:67}})))))}const Ge="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function ze(e){const t=i.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${n};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${n} 8px,\n ${n} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`,e&&t.setAttribute("nonce",e),t}const qe="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx",Je=33,Ve=o.devicePixelRatio,Ye=e=>({x:Math.min(e.startX,e.endX),y:Math.min(e.startY,e.endY),width:Math.abs(e.startX-e.endX),height:Math.abs(e.startY-e.endY)}),Xe=e=>{const t=e.clientHeight,n=e.clientWidth,r=e.width/e.height;let s=t*r,o=t;s>n&&(s=n,o=n/r);const i=(n-s)/2,a=(t-o)/2;return{startX:i,startY:a,endX:s+i,endY:o+a}};function Ke({h:e,hooks:t,imageBuffer:n,dialog:r,options:s}){const c=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:s}){e.useEffect((()=>{(async()=>{t();const e=await a.mediaDevices.getDisplayMedia({video:{width:o.innerWidth*o.devicePixelRatio,height:o.innerHeight*o.devicePixelRatio},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),s=i.createElement("video");await new Promise(((t,r)=>{s.srcObject=e,s.onloadedmetadata=()=>{n(s),e.getTracks().forEach((e=>e.stop())),t()},s.play().catch(r)})),r()})().catch(s)}),[])}}({hooks:t});return function({onError:a}){const u=t.useMemo((()=>({__html:ze(s.styleNonce).innerText})),[]),l=function({h:e}){return function({top:t,left:n,corner:r,onGrabButton:s}){return e("button",{class:`editor__crop-corner editor__crop-corner--${r} `,style:{top:t,left:n},onMouseDown:e=>{e.preventDefault(),s(e,r)},onClick:e=>{e.preventDefault()},__self:this,__source:{fileName:Ge,lineNumber:22}})}}({h:e}),d=t.useRef(null),p=t.useRef(null),f=t.useRef(null),[h,m]=t.useState({startX:0,startY:0,endX:0,endY:0}),[g,y]=t.useState(!1),[_,b]=t.useState(!1);function S(){const e=f.current,t=Ye(Xe(n));if(e){e.width=t.width*Ve,e.height=t.height*Ve,e.style.width=`${t.width}px`,e.style.height=`${t.height}px`;const n=e.getContext("2d");n&&n.scale(Ve,Ve)}const r=p.current;r&&(r.style.width=`${t.width}px`,r.style.height=`${t.height}px`),m({startX:0,startY:0,endX:t.width,endY:t.height})}function E(e,t){y(!1),b(!0);const n=v(t),r=()=>{i.removeEventListener("mousemove",n),i.removeEventListener("mouseup",r),y(!0),b(!1)};i.addEventListener("mouseup",r),i.addEventListener("mousemove",n)}t.useEffect((()=>{o.addEventListener("resize",S,!1)}),[]),t.useEffect((()=>{const e=f.current;if(!e)return;const t=e.getContext("2d");if(!t)return;const r=Ye(Xe(n)),s=Ye(h);t.clearRect(0,0,r.width,r.height),t.fillStyle="rgba(0, 0, 0, 0.5)",t.fillRect(0,0,r.width,r.height),t.clearRect(s.x,s.y,s.width,s.height),t.strokeStyle="#ffffff",t.lineWidth=3,t.strokeRect(s.x+1,s.y+1,s.width-2,s.height-2),t.strokeStyle="#000000",t.lineWidth=1,t.strokeRect(s.x+3,s.y+3,s.width-6,s.height-6)}),[h]);const v=t.useCallback((e=>function(t){if(!f.current)return;const n=f.current,r=n.getBoundingClientRect(),s=t.clientX-r.x,o=t.clientY-r.y;switch(e){case"top-left":m((e=>({...e,startX:Math.min(Math.max(0,s),e.endX-Je),startY:Math.min(Math.max(0,o),e.endY-Je)})));break;case"top-right":m((e=>({...e,endX:Math.max(Math.min(s,n.width/Ve),e.startX+Je),startY:Math.min(Math.max(0,o),e.endY-Je)})));break;case"bottom-left":m((e=>({...e,startX:Math.min(Math.max(0,s),e.endX-Je),endY:Math.max(Math.min(o,n.height/Ve),e.startY+Je)})));break;case"bottom-right":m((e=>({...e,endX:Math.max(Math.min(s,n.width/Ve),e.startX+Je),endY:Math.max(Math.min(o,n.height/Ve),e.startY+Je)})))}}),[]),I=t.useRef({initialX:0,initialY:0});return c({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((e=>{const t=n.getContext("2d");if(!t)throw new Error("Could not get canvas context");n.width=e.videoWidth,n.height=e.videoHeight,n.style.width="100%",n.style.height="100%",t.drawImage(e,0,0)}),[n]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const e=d.current;e&&e.appendChild(n),S()}),[]),onError:t.useCallback((e=>{r.el.style.display="block",a(e)}),[])}),e("div",{class:"editor",__self:this,__source:{fileName:qe,lineNumber:315}},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:qe,lineNumber:316}}),e("div",{class:"editor__canvas-container",ref:d,__self:this,__source:{fileName:qe,lineNumber:317}},e("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:p,__self:this,__source:{fileName:qe,lineNumber:318}},e("canvas",{onMouseDown:function(e){if(_)return;I.current={initialX:e.clientX,initialY:e.clientY};const t=e=>{const t=f.current;if(!t)return;const n=e.clientX-I.current.initialX,r=e.clientY-I.current.initialY;m((s=>{const o=Math.max(0,Math.min(s.startX+n,t.width/Ve-(s.endX-s.startX))),i=Math.max(0,Math.min(s.startY+r,t.height/Ve-(s.endY-s.startY))),a=o+(s.endX-s.startX),c=i+(s.endY-s.startY);return I.current.initialX=e.clientX,I.current.initialY=e.clientY,{startX:o,startY:i,endX:a,endY:c}}))},n=()=>{i.removeEventListener("mousemove",t),i.removeEventListener("mouseup",n)};i.addEventListener("mousemove",t),i.addEventListener("mouseup",n)},style:{position:"absolute",cursor:g?"move":"auto"},ref:f,__self:this,__source:{fileName:qe,lineNumber:319}}),e(l,{left:h.startX-3,top:h.startY-3,onGrabButton:E,corner:"top-left",__self:this,__source:{fileName:qe,lineNumber:324}}),e(l,{left:h.endX-30+3,top:h.startY-3,onGrabButton:E,corner:"top-right",__self:this,__source:{fileName:qe,lineNumber:330}}),e(l,{left:h.startX-3,top:h.endY-30+3,onGrabButton:E,corner:"bottom-left",__self:this,__source:{fileName:qe,lineNumber:336}}),e(l,{left:h.endX-30+3,top:h.endY-30+3,onGrabButton:E,corner:"bottom-right",__self:this,__source:{fileName:qe,lineNumber:342}}),e("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:g?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:qe,lineNumber:348}},e("button",{onClick:e=>{e.preventDefault(),f.current&&m({startX:0,startY:0,endX:f.current.width/Ve,endY:f.current.height/Ve}),y(!1)},class:"btn btn--default",__self:this,__source:{fileName:qe,lineNumber:356}},s.cancelButtonLabel),e("button",{onClick:e=>{e.preventDefault(),function(){const e=i.createElement("canvas"),t=Ye(Xe(n)),r=Ye(h);e.width=r.width*Ve,e.height=r.height*Ve;const s=e.getContext("2d");s&&n&&s.drawImage(n,r.x/t.width*n.width,r.y/t.height*n.height,r.width/t.width*n.width,r.height/t.height*n.height,0,0,e.width,e.height);const o=n.getContext("2d");o&&(o.clearRect(0,0,n.width,n.height),n.width=e.width,n.height=e.height,n.style.width=`${r.width}px`,n.style.height=`${r.height}px`,o.drawImage(e,0,0),S())}(),y(!1)},class:"btn btn--primary",__self:this,__source:{fileName:qe,lineNumber:373}},s.confirmButtonLabel)))))}}n.buildFeedbackIntegration=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:o="sentry-feedback",autoInject:u=!0,showBranding:f=!0,isEmailRequired:h=!1,isNameRequired:m=!1,showEmail:y=!0,showName:E=!0,enableScreenshot:v=!0,useSentryUser:I={email:"email",name:"username"},tags:w,styleNonce:T,scriptNonce:A,colorScheme:C="system",themeLight:x={},themeDark:k={},addScreenshotButtonLabel:j="Add a screenshot",cancelButtonLabel:R="Cancel",confirmButtonLabel:O="Confirm",emailLabel:N="Email",emailPlaceholder:M="your.email@example.org",formTitle:P="Report a Bug",isRequiredLabel:D="(required)",messageLabel:L="Description",messagePlaceholder:U="What's the bug? What did you expect?",nameLabel:B="Name",namePlaceholder:F="Your Name",removeScreenshotButtonLabel:$="Remove screenshot",submitButtonLabel:H="Send Bug Report",successMessageText:W="Thank you for your report!",triggerLabel:G=c,triggerAriaLabel:z="",onFormOpen:q,onFormClose:J,onSubmitSuccess:V,onSubmitError:Y,onFormSubmitted:X}={})=>{const K={id:o,autoInject:u,showBranding:f,isEmailRequired:h,isNameRequired:m,showEmail:y,showName:E,enableScreenshot:v,useSentryUser:I,tags:w,styleNonce:T,scriptNonce:A,colorScheme:C,themeDark:k,themeLight:x,triggerLabel:G,triggerAriaLabel:z,cancelButtonLabel:R,submitButtonLabel:H,confirmButtonLabel:O,formTitle:P,emailLabel:N,emailPlaceholder:M,messageLabel:L,messagePlaceholder:U,nameLabel:B,namePlaceholder:F,successMessageText:W,isRequiredLabel:D,addScreenshotButtonLabel:j,removeScreenshotButtonLabel:$,onFormClose:J,onFormOpen:q,onSubmitError:Y,onSubmitSuccess:V,onFormSubmitted:X};let Z=null,Q=[];const ee=e=>{if(!Z){const t=i.createElement("div");t.id=String(e.id),i.body.appendChild(t),Z=t.attachShadow({mode:"open"}),Z.appendChild(function({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=i.createElement("style");return s.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${"system"!==e?"color-scheme: only light;":""}\n\n ${S("dark"===e?{...b,...t}:{..._,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${S({...b,...t})}\n }\n}`:""}\n}\n`,r&&s.setAttribute("nonce",r),s}(e))}return Z},te=async(t,n,s)=>{const o=r.getClient(),i=o&&o.getIntegrationByName(t);if(i)return i;const a=(n&&n()||await e(s,A))();return o&&o.addIntegration(a),a},ne=async e=>{const r=e.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a.userAgent)||/Macintosh/i.test(a.userAgent)&&a.maxTouchPoints&&a.maxTouchPoints>1||!isSecureContext),[o,i]=await Promise.all([te("FeedbackModal",t,"feedbackModalIntegration"),r?te("FeedbackScreenshot",n,"feedbackScreenshotIntegration"):undefined]);if(!o)throw d&&s.logger.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!");r&&!i&&d&&s.logger.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.");const c=o.createDialog({options:{...e,onFormClose:()=>{c&&c.close(),e.onFormClose&&e.onFormClose()},onFormSubmitted:()=>{c&&c.close(),e.onFormSubmitted&&e.onFormSubmitted()}},screenshotIntegration:r?i:undefined,sendFeedback:l,shadow:ee(e)});return c},re=(e,t={})=>{const n=p(K,t),r="string"==typeof e?i.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw d&&s.logger.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const a=async()=>{o||(o=await ne({...n,onFormSubmitted:()=>{o&&o.removeFromDom(),n.onFormSubmitted&&n.onFormSubmitted()}})),o.appendToDom(),o.open()};r.addEventListener("click",a);const c=()=>{Q=Q.filter((e=>e!==c)),o&&o.removeFromDom(),o=null,r.removeEventListener("click",a)};return Q.push(c),c},se=(e={})=>{const t=p(K,e),n=ee(t),r=g({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:T});return re(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){s.isBrowser()&&K.autoInject&&("loading"===i.readyState?i.addEventListener("DOMContentLoaded",(()=>se().appendToDom())):se().appendToDom())},attachTo:re,createWidget(e={}){const t=se(p(K,e));return t.appendToDom(),t},createForm:async(e={})=>ne(p(K,e)),remove(){Z&&(Z.parentElement&&Z.parentElement.remove(),Z=null),Q.forEach((e=>e())),Q=[]}}},n.feedbackModalIntegration=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:s})=>{const o=s,a=e.useSentryUser,c=function(){const e=r.getCurrentScope().getUser(),t=r.getIsolationScope().getUser(),n=r.getGlobalScope().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),u=i.createElement("div"),l=function(e){const t=i.createElement("style");return t.textContent="\n:host {\n --dialog-inset: var(--inset);\n}\n\n\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n\n\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n\n\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 auto;\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: var(--form-width, 100%);\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n\n\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n\n",e&&t.setAttribute("nonce",e),t}(e.styleNonce);let d="";const p={get el(){return u},appendToDom(){o.contains(l)||o.contains(u)||(o.appendChild(l),o.appendChild(u))},removeFromDom(){o.removeChild(u),o.removeChild(l),i.body.style.overflow=d},open(){h(!0),e.onFormOpen&&e.onFormOpen(),d=i.body.style.overflow,i.body.style.overflow="hidden"},close(){h(!1),i.body.style.overflow=d}},f=t&&t.createInput({h:M,hooks:ke,dialog:p,options:e}),h=t=>{!function(e,t,n){var r,s,o,i;v.__&&v.__(e,t),s=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],i=[],X(t,e=(!r&&n||t).__k=M(D,null,[e]),s||x,x,void 0!==t.ownerSVGElement,!r&&n?[n]:s?null:t.firstChild?E.call(t.childNodes):null,o,!r&&n?n:s?s.__e:t.firstChild,r,i),e.__d=void 0,K(o,e,i)}(M(We,{options:e,screenshotInput:f,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:a&&c&&c[a.name]||"",defaultEmail:a&&c&&c[a.email]||"",onFormClose:()=>{h(!1),e.onFormClose&&e.onFormClose()},onSubmit:n,onSubmitSuccess:t=>{h(!1),e.onSubmitSuccess&&e.onSubmitSuccess(t)},onSubmitError:t=>{e.onSubmitError&&e.onSubmitError(t)},onFormSubmitted:()=>{e.onFormSubmitted&&e.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx",lineNumber:67}}),u)};return p}}),n.feedbackScreenshotIntegration=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=i.createElement("canvas");return{input:Ke({h:e,hooks:t,imageBuffer:s,dialog:n,options:r}),value:async()=>{const e=await new Promise((e=>{s.toBlob(e,"image/png")}));if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}return undefined}}}}),n.getFeedback=function(){const e=r.getClient();return e&&e.getIntegrationByName("Feedback")},n.sendFeedback=l},{"@sentry/core":118,"@sentry/utils":199}],71:[function(e,t,n){var{_optionalChain:r}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const s=e("@sentry/core");var o;function i(e,t,n=Infinity,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:i(e.parentNode,t,n,r+1):-1}function a(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(o||(o={}));const c="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let u={map:{},getId:()=>(console.error(c),-1),getNode:()=>(console.error(c),null),removeNodeFromMap(){console.error(c)},has:()=>(console.error(c),!1),reset(){console.error(c)}};function l(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){g((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>l(e,t,o||{},!0)}function d(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}function p(e,t,n,r,s){if(!e)return!1;const o=function(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}(e);if(!o)return!1;const c=a(t,n);if(!s){const e=r&&o.matches(r);return c(o)&&!e}const u=i(o,c);let l=-1;return!(u<0)&&(r&&(l=i(o,a(null,r))),u>-1&&l<0||u<l)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,n)=>("map"===t&&console.error(c),Reflect.get(e,t,n))})),/[1-9][0-9]{12}/.test(Date.now().toString());const f={};function h(e){const t=f[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return f[e]=r.bind(window)}function m(...e){return h("requestAnimationFrame")(...e)}function g(...e){return h("setTimeout")(...e)}var y=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(y||{});let _;function b(e){_=e}const S=e=>{if(!_)return e;return(...t)=>{try{return e(...t)}catch(e){if(_&&!0===_(e))return()=>{};throw e}}};for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v="undefined"==typeof Uint8Array?[]:new Uint8Array(256),I=0;I<64;I++)v[E.charCodeAt(I)]=I;const w=new Map;const T=(e,t,n)=>{if(!e||!x(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=w.get(e);return n||(n=new Map,w.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let s=r.indexOf(e);return-1===s&&(s=r.length,r.push(e)),s};function A(e,t,n){if(e instanceof Array)return e.map((e=>A(e,t,n)));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,s="";for(t=0;t<r;t+=3)s+=E[n[t]>>2],s+=E[(3&n[t])<<4|n[t+1]>>4],s+=E[(15&n[t+1])<<2|n[t+2]>>6],s+=E[63&n[t+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[A(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[A(e.data,t,n),e.width,e.height]}}if(x(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:T(e,t,n)}}return e}const C=(e,t,n)=>e.map((e=>A(e,t,n))),x=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((e=>"function"==typeof t[e]));return Boolean(n.find((n=>e instanceof t[n])))};function k(e,t,n,r,s){const o=[];try{const i=d(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(o,...i){if(!p(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(o);if("__context"in this||(this.__context=e),s&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){const e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}}));o.push(i)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach((e=>e()))}}function j(e,t,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const i of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;const u=d(e,i,(function(e){return function(...c){const u=e.apply(this,c);if(T(u,a,this),"tagName"in this.canvas&&!p(this.canvas,r,s,o,!0)){const e=C(c,a,this),r={type:t,property:i,args:e};n(this.canvas,r)}return u}}));c.push(u)}catch(r){const s=l(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});c.push(s)}return c}class R{reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,r([this,"access",e=>e.worker,"optionalAccess",e=>e.terminate,"call",e=>e()]),this.worker=null,this.snapshotInProgressMap=new Map,(this.options.recordCanvas&&"number"==typeof this.options.sampling||this.options.enableManualSnapshot)&&(this.worker=this.initFPSWorker())}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.processMutation=(e,t)=>{!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{sampling:t="all",win:n,blockClass:r,blockSelector:s,unblockSelector:o,maxCanvasSize:i,recordCanvas:a,dataURLOptions:c,errorHandler:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,u&&b(u),(a&&"number"==typeof t||e.enableManualSnapshot)&&(this.worker=this.initFPSWorker()),this.addWindow(n),e.enableManualSnapshot||S((()=>{a&&"all"===t&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof t&&this.initCanvasFPSObserver(t,r,s,o,i,{dataURLOptions:c})}))()}addWindow(e){const{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:s,recordCanvas:o,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));S((()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,n,r,s),o&&"number"==typeof t){const t=k(e,n,r,s,!0);this.restoreHandlers.push((()=>{t()}))}}))(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}initFPSWorker(){const e=new Worker(function(){const e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']);return URL.createObjectURL(e)}());return e.onmessage=e=>{const t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:s,width:o,height:i}=t;this.mutationCb({id:n,type:y["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:s}]},0,0,o,i]}]})},e}initCanvasFPSObserver(e,t,n,r,s,o){const i=this.takeSnapshot(!1,e,t,n,r,s,o.dataURLOptions);this.restoreHandlers.push((()=>{cancelAnimationFrame(i)}))}initCanvasMutationObserver(e,t,n,r){const s=k(e,t,n,r,!1),o=function(e,t,n,r,s){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[a])continue;const i=d(t.CanvasRenderingContext2D.prototype,a,(function(o){return function(...i){return p(this.canvas,n,r,s,!0)||g((()=>{const n=C(i,t,this);e(this.canvas,{type:y["2D"],property:a,args:n})}),0),o.apply(this,i)}}));o.push(i)}catch(n){const r=l(t.CanvasRenderingContext2D.prototype,a,{set(t){e(this.canvas,{type:y["2D"],property:a,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r),i=function(e,t,n,r,s,o){const i=[];return i.push(...j(t.WebGLRenderingContext.prototype,y.WebGL,e,n,r,s,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...j(t.WebGL2RenderingContext.prototype,y.WebGL2,e,n,r,s,0,t)),()=>{i.forEach((e=>e()))}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push((()=>{s(),o(),i()}))}snapshot(e){const{options:t}=this,n=this.takeSnapshot(!0,"all"===t.sampling?2:t.sampling||2,t.blockClass,t.blockSelector,t.unblockSelector,t.maxCanvasSize,t.dataURLOptions,e);this.restoreHandlers.push((()=>{cancelAnimationFrame(n)}))}takeSnapshot(e,t,n,s,o,i,a,c){const u=1e3/t;let l,d=0;const f=e=>{if(e)return[e];const t=[],r=e=>{e.querySelectorAll("canvas").forEach((e=>{p(e,n,s,o,!0)||t.push(e)}))};for(const e of this.windows){const t=e.deref();t&&r(t.document)}for(const e of this.shadowDoms){const t=e.deref();t&&r(t)}return t},h=t=>{this.windows.length&&(d&&t-d<u?l=m(h):(d=t,f(c).forEach((t=>{if(!this.mirror.hasNode(t))return;const n=this.mirror.getId(t);if(!this.snapshotInProgressMap.get(n)&&t.width&&t.height){if(this.snapshotInProgressMap.set(n,!0),!e&&["webgl","webgl2"].includes(t.__context)){const e=t.getContext(t.__context);!1===r([e,"optionalAccess",e=>e.getContextAttributes,"call",e=>e(),"optionalAccess",e=>e.preserveDrawingBuffer])&&e.clear(e.COLOR_BUFFER_BIT)}createImageBitmap(t).then((e=>{r([this,"access",e=>e.worker,"optionalAccess",e=>e.postMessage,"call",r=>r({id:n,bitmap:e,width:t.width,height:t.height,dataURLOptions:a,maxCanvasSize:i},[e])])})).catch((e=>{S((()=>{throw e}))()}))}})),e||(l=m(h))))};return l=m(h),l}startPendingCanvasMutationFlusher(){m((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const e=t=>{this.rafStamps.latestId=t,m(e)};m(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((e,t)=>{const n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)})),m((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map((e=>{const{type:t,...n}=e;return n})),{type:s}=n[0];this.mutationCb({id:t,type:s,commands:r}),this.pendingCanvasMutations.delete(e)}}const O={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},N=1280,M=s.defineIntegration(((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,N):N,n?Math.min(n,N):N]};let s;const o=new Promise((e=>s=e));return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new R({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch(e){}}});return s(r),r},...O[e||"medium"]||O.medium}},async snapshot(e){(await o).snapshot(e)}}}));n.replayCanvasIntegration=M},{"@sentry/core":118,"@sentry/utils":199}],72:[function(e,t,n){var{_nullishCoalesce:r,_optionalChain:s}=e("@sentry/utils");Object.defineProperty(n,"__esModule",{value:!0});const o=e("@sentry/core"),i=e("@sentry/utils"),a=e("@sentry-internal/browser-utils"),c=i.GLOBAL_OBJ,u="sentryReplaySession",l="replay_event",d="Unable to send Replay",p=15e4,f=5e3,h=2e7,m=36e5;function g(e,t){return null!=e?e:t()}function y(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return undefined;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}var _;function b(e){const t=y([e,"optionalAccess",e=>e.host]);return Boolean(y([t,"optionalAccess",e=>e.shadowRoot])===e)}function S(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function E(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,v).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function v(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=E(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(e.cssText);return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(_||(_={}));class I{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return g(y([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]),(()=>-1))}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function w({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function T({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function A(e){return e.toLowerCase()}function C(e){return e.toUpperCase()}const x="__rrweb_original__";function k(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?A(t):null}function j(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function R(e,t){let n;try{n=new URL(e,g(t,(()=>window.location.href)))}catch(e){return null}return g(y([n.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),(()=>null))}const O={};function N(e){const t=O[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return O[e]=r.bind(window)}function M(...e){return N("setTimeout")(...e)}function P(...e){return N("clearTimeout")(...e)}let D=1;const L=new RegExp("[^a-z0-9-_:]"),U=-2;function B(){return D++}let F,$;const H=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,W=/^(?:[a-z+]+:)?\/\//i,G=/^www\..*/i,z=/^(data:)([^,]*),(.*)/i;function q(e,t){return(e||"").replace(H,((e,n,r,s,o,i)=>{const a=r||o||i,c=n||s||"";if(!a)return e;if(W.test(a)||G.test(a))return`url(${c}${a}${c})`;if(z.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const J=/^[^ \t\n\r\u000c]+/,V=/^[, \t\n\r\u000c]+/;function Y(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function X(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function K(){const e=document.createElement("a");return e.href="",e.href}function Z(e,t,n,r,s,o){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Y(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(V),!(n>=t.length);){let o=r(J);if(","===o.slice(-1))o=Y(e,o.substring(0,o.length-1)),s.push(o);else{let r="";o=Y(e,o);let i=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((o+r).trim());break}if(i)")"===e&&(i=!1);else{if(","===e){n+=1,s.push((o+r).trim());break}"("===e&&(i=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?q(r,K()):"object"===t&&"data"===n?Y(e,r):"function"==typeof o?o(n,r,s):r:Y(e,r):r}function Q(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function ee(e,t,n=Infinity,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ee(e.parentNode,t,n,r+1):-1}function te(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function ne(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){const e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(o){if(c=ee(i,te(r,s)),c<0)return!0;a=ee(i,te(t,n),c>=0?c:Infinity)}else{if(a=ee(i,te(t,n)),a<0)return!1;c=ee(i,te(r,s),a>=0?a:Infinity)}return a>=0?!(c>=0)||a<=c:!(c>=0)&&!!o}catch(e){}return!!o}function re(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:b={},inlineImages:S,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:R=!1}=t,O=function(e,t){if(!t.hasNode(e))return undefined;const n=t.getId(e);return 1===n?undefined:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:_.Document,childNodes:[],compatMode:e.compatMode}:{type:_.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:_.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:O};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:b,maskTextSelector:S,unmaskTextSelector:v}=t,I=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s,o),R=function(e){if(e instanceof HTMLFormElement)return"form";const t=A(e.tagName);return L.test(t)?"div":t}(e);let O={};const N=e.attributes.length;for(let t=0;t<N;t++){const r=e.attributes[t];r.name&&!Q(R,r.name,r.value)&&(O[r.name]=Z(n,R,A(r.name),r.value,e,c))}if("link"===R&&i){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=E(t)),r&&(delete O.rel,delete O.href,O._cssText=q(r,t.href))}if("style"===R&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=E(e.sheet);t&&(O._cssText=q(t,K()))}if("input"===R||"textarea"===R||"select"===R||"option"===R){const t=e,n=k(t),r=j(t,C(R),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=ne(t,y,S,b,v,w({type:n,tagName:C(R),maskInputOptions:a}));O.value=T({isMasked:e,element:t,value:r,maskInputFn:u})}s&&(O.checked=s)}"option"===R&&(e.selected&&!a.select?O.selected=!0:delete O.selected);if("canvas"===R&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,o=x in s?s[x]:s;if(new Uint32Array(o.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(O.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height;t!==n.toDataURL(l.type,l.quality)&&(O.rr_dataURL=t)}if("img"===R&&d){F||(F=n.createElement("canvas"),$=F.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{F.width=t.naturalWidth,F.height=t.naturalHeight,$.drawImage(t,0,0),O.rr_dataURL=F.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?O.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}"audio"!==R&&"video"!==R||(O.rr_mediaState=e.paused?"paused":"played",O.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(O.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(O.rr_scrollTop=e.scrollTop));if(I){const{width:t,height:n}=e.getBoundingClientRect();O={class:O.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==R||f(O.src)||(I||e.contentDocument||(O.rr_src=O.src),delete O.src);let M;try{customElements.get(R)&&(M=!0)}catch(e){}return{type:_.Element,tagName:R,attributes:O,childNodes:[],isSVG:X(e)||undefined,needBlock:I,rootId:m,isCustom:M}}(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:b,inlineImages:S,recordCanvas:v,keepIframeSrcFn:I,newlyAddedElement:R,rootId:O,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f="STYLE"===d||undefined,h="SCRIPT"===d||undefined,m="TEXTAREA"===d||undefined;if(f&&p){try{e.nextSibling||e.previousSibling||y([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=E(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=q(p,K())}h&&(p="SCRIPT_PLACEHOLDER");const g=ne(e,r,o,s,i,n);f||h||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*"));m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*"));if("OPTION"===d&&p){p=T({isMasked:ne(e,r,o,s,i,w({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})}return{type:_.Text,textContent:p||"",isStyle:f,rootId:l}}(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:O});case e.CDATA_SECTION_NODE:return{type:_.CDATA,textContent:"",rootId:O};case e.COMMENT_NODE:return{type:_.Comment,textContent:e.textContent||"",rootId:O};default:return!1}}function se(e){return e===undefined||null===e?"":e.toLowerCase()}function oe(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:E,dataURLOptions:v={},inlineImages:I=!1,recordCanvas:w=!1,onSerialize:T,onIframeLoad:A,iframeLoadTimeout:C=5e3,onStylesheetLoad:x,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:j=(()=>!1),newlyAddedElement:O=!1}=t;let{preserveWhiteSpace:N=!0}=t;const D=re(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:I,recordCanvas:w,keepIframeSrcFn:j,newlyAddedElement:O});if(!D)return console.warn(e,"not serialized"),null;let L;L=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===_.Comment)return!0;if(e.type===_.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===R(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(se(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===se(e.attributes.name)||"icon"===se(e.attributes.rel)||"apple-touch-icon"===se(e.attributes.rel)||"shortcut icon"===se(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&se(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(se(e.attributes.property).match(/^(og|twitter|fb):/)||se(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===se(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===se(e.attributes.name)||"googlebot"===se(e.attributes.name)||"bingbot"===se(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==undefined)return!0;if(t.headMetaAuthorship&&("author"===se(e.attributes.name)||"generator"===se(e.attributes.name)||"framework"===se(e.attributes.name)||"publisher"===se(e.attributes.name)||"progid"===se(e.attributes.name)||se(e.attributes.property).match(/^article:/)||se(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===se(e.attributes.name)||"yandex-verification"===se(e.attributes.name)||"csrf-token"===se(e.attributes.name)||"p:domain_verify"===se(e.attributes.name)||"verify-v1"===se(e.attributes.name)||"verification"===se(e.attributes.name)||"shopify-checkout-api-token"===se(e.attributes.name)))return!0}}return!1}(D,E)&&(N||D.type!==_.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?B():U;const F=Object.assign(D,{id:L});if(r.add(e,F),L===U)return null;T&&T(e);let $=!p;if(F.type===_.Element){$=$&&!F.needBlock,delete F.needBlock;const t=e.shadowRoot;t&&S(t)&&(F.isShadowHost=!0)}if((F.type===_.Document||F.type===_.Element)&&$){E.headWhitespace&&F.type===_.Element&&"head"===F.tagName&&(N=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:E,dataURLOptions:v,inlineImages:I,recordCanvas:w,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:A,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:j};for(const n of Array.from(e.childNodes)){const e=oe(n,t);e&&F.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=oe(n,t);r&&(S(e.shadowRoot)&&(r.isShadow=!0),F.childNodes.push(r))}}return e.parentNode&&b(e.parentNode)&&S(e.parentNode)&&(F.isShadow=!0),F.type===_.Element&&"iframe"===F.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,o=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=M((()=>{o||(t(),o=!0)}),n);return void e.addEventListener("load",(()=>{P(r),o=!0,t()}))}const i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return M(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&A){const n=oe(t,{doc:t,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:E,dataURLOptions:v,inlineImages:I,recordCanvas:w,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:A,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:j});n&&A(e,n)}}),C),F.type===_.Element&&"link"===F.tagName&&"string"==typeof F.attributes.rel&&("stylesheet"===F.attributes.rel||"preload"===F.attributes.rel&&"string"==typeof F.attributes.href&&"css"===R(F.attributes.href))&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){return}if(r)return;const o=M((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{P(o),s=!0,t()}))}(e,(()=>{if(x){const t=oe(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:E,dataURLOptions:v,inlineImages:I,recordCanvas:w,preserveWhiteSpace:N,onSerialize:T,onIframeLoad:A,iframeLoadTimeout:C,onStylesheetLoad:x,stylesheetLoadTimeout:k,keepIframeSrcFn:j});t&&x(e,t)}}),k),F}function ie(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return undefined;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}function ae(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const ce="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let ue={map:{},getId:()=>(console.error(ce),-1),getNode:()=>(console.error(ce),null),removeNodeFromMap(){console.error(ce)},has:()=>(console.error(ce),!1),reset(){console.error(ce)}};function le(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();s||!1!==n.leading||(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(!function(...e){je("clearTimeout")(...e)}(r),r=null),s=i,e.apply(c,o)):r||!1===n.trailing||(r=Re((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,o)}),a))}}function de(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){Re((()=>{n.set.call(this,e)}),0),o&&o.set&&o.set.call(this,e)}}),()=>de(e,t,o||{},!0)}function pe(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ue=new Proxy(ue,{get:(e,t,n)=>("map"===t&&console.error(ce),Reflect.get(e,t,n))}));let fe=Date.now;function he(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==undefined?e.pageXOffset:ie([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||ie([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||ie([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==undefined?e.pageYOffset:ie([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||ie([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||ie([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function me(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ge(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ye(e){if(!e)return null;return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}function _e(e,t,n,r,s){if(!e)return!1;const o=ye(e);if(!o)return!1;const i=te(t,n);if(!s){const e=r&&o.matches(r);return i(o)&&!e}const a=ee(o,i);let c=-1;return!(a<0)&&(r&&(c=ee(o,te(null,r))),a>-1&&c<0||a<c)}function be(e,t){return t.getId(e)===U}function Se(e,t){if(b(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Se(e.parentNode,t))}function Ee(e){return Boolean(e.changedTouches)}function ve(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ie(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function we(e){return Boolean(ie([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(fe=()=>(new Date).getTime());class Te{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return r(this.styleIDMap.get(e),(()=>-1))}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===undefined?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ae(e){let t=null;return ie([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ce(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Ae(n);)n=t;return n}(e);return t.contains(n)}function xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Ce(e))}const ke={};function je(e){const t=ke[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return ke[e]=r.bind(window)}function Re(...e){return je("setTimeout")(...e)}var Oe=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Oe||{}),Ne=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(Ne||{}),Me=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Me||{}),Pe=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Pe||{});function De(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return undefined;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}function Le(e){return"__ln"in e}class Ue{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=De([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Le(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Le(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const Be=(e,t)=>`${e}@${t}`;class Fe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Ue,r=e=>{let t=e,n=U;for(;n===U;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!xe(s))return;const o=b(s.parentNode)?this.mirror.getId(Ae(s)):this.mirror.getId(s.parentNode),i=r(s);if(-1===o||-1===i)return n.addNode(s);const a=oe(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{ve(e,this.mirror)&&!_e(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Ie(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),we(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{_e(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:o,nextId:i,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)He(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)Ge(this.droppedSet,e)||He(this.removes,e,this.mirror)?Ge(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let o=null;for(;n.length;){let e=null;if(o){const t=this.mirror.getId(o.value.parentNode),n=r(o.value);-1!==t&&-1!==n&&(e=o)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}o=e.previous,n.removeNode(e.value),s(e.value)}const i={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!be(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;_e(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:ne(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ye(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=k(t),s=t.tagName;r=j(t,s,n);const o=w({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=T({isMasked:ne(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:r,maskInputFn:this.maskInputFn})}if(_e(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Q(t.tagName,n)&&(s.attributes[n]=Z(this.doc,A(t.tagName),A(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),o=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||o!==n.style.getPropertyPriority(e)?s.styleDiff[e]=""===o?r:[r,o]:s._unchangedStyles[e]=[r,o]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(_e(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=b(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);_e(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||be(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?($e(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Se(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Be(n,r)]?$e(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!b(e.target)||!S(e.target))||undefined})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(be(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[Be(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);_e(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),we(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function $e(e,t){e.delete(t),t.childNodes.forEach((t=>$e(e,t)))}function He(e,t,n){return 0!==e.length&&We(e,t,n)}function We(e,t,n){const{parentNode:r}=t;if(!r)return!1;const s=n.getId(r);return!!e.some((e=>e.id===s))||We(e,r,n)}function Ge(e,t){return 0!==e.size&&ze(e,t)}function ze(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ze(e,n))}let qe;function Je(e){qe=e}function Ve(){qe=undefined}const Ye=e=>{if(!qe)return e;return(...t)=>{try{return e(...t)}catch(e){if(qe&&!0===qe(e))return()=>{};throw e}}};function Xe(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return undefined;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}const Ke=[];function Ze(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Qe(e,t){const n=new Fe;Ke.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=Xe([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const o=new r(Ye((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function et({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};const a=!0===i.mouseInteraction||i.mouseInteraction===undefined?{}:i.mouseInteraction,c=[];let u=null;return Object.keys(Me).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((i=>{let a=A(i);const l=(t=>i=>{const a=Ze(i);if(_e(a,r,s,o,!0))return;let c=null,l=t;if("pointerType"in i){switch(i.pointerType){case"mouse":c=Pe.Mouse;break;case"touch":c=Pe.Touch;break;case"pen":c=Pe.Pen}c===Pe.Touch?Me[t]===Me.MouseDown?l="TouchStart":Me[t]===Me.MouseUp&&(l="TouchEnd"):Pe.Pen}else Ee(i)&&(c=Pe.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Pe.Touch||l.startsWith("Mouse")&&c===Pe.Mouse)&&(c=null)):Me[t]===Me.Click&&(c=u,u=null);const d=Ee(i)?i.changedTouches[0]:i;if(!d)return;const p=n.getId(a),{clientX:f,clientY:h}=d;Ye(e)({type:Me[l],id:p,x:f,y:h,...null!==c&&{pointerType:c}})})(i);if(window.PointerEvent)switch(Me[i]){case Me.MouseDown:case Me.MouseUp:a=a.replace("mouse","pointer");break;case Me.TouchStart:case Me.TouchEnd:return}c.push(ae(a,l,t))})),Ye((()=>{c.forEach((e=>e()))}))}function tt({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){return ae("scroll",Ye(le(Ye((i=>{const a=Ze(i);if(!a||_e(a,r,s,o,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=he(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),i.scroll||100)),t)}const nt=["INPUT","TEXTAREA","SELECT"],rt=new WeakMap;function st({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Ze(e);const l=e.isTrusted,g=n&&C(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||nt.indexOf(g)<0||_e(n,r,s,o,!0))return;const _=n;if(_.classList.contains(i)||a&&_.matches(a))return;const b=k(n);let S=j(_,g,b),E=!1;const v=w({maskInputOptions:c,tagName:g,type:b}),I=ne(n,p,h,f,m,v);"radio"!==b&&"checkbox"!==b||(E=n.checked),S=T({isMasked:I,element:n,value:S,maskInputFn:u}),y(n,d?{text:S,isChecked:E,userTriggered:l}:{text:S,isChecked:E});const A=n.name;"radio"===b&&A&&E&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach((e=>{if(e!==n){const t=T({isMasked:I,element:e,value:j(e,g,b),maskInputFn:u});y(e,d?{text:t,isChecked:!E,userTriggered:!1}:{text:t,isChecked:!E})}}))}function y(t,r){const s=rt.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){rt.set(t,r);const s=n.getId(t);Ye(e)({...r,id:s})}}const _=("last"===l.input?["change"]:["input","change"]).map((e=>ae(e,Ye(g),t))),b=t.defaultView;if(!b)return()=>{_.forEach((e=>e()))};const S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),E=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&_.push(...E.map((e=>de(e[0],e[1],{set(){Ye(g)({target:this,isTrusted:!1})}},!1,b)))),Ye((()=>{_.forEach((e=>e()))}))}function ot(e){return function(e,t){if(ut("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||ut("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||ut("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||ut("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function it(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function at({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?Xe([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):Xe([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),o=Xe([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(Xe([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):undefined;return null!==r&&-1!==r&&s&&o?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return Xe([o,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=Xe([o,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),Ye((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))):()=>{}}function ct(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Qe(e,e.doc));const s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let i,a=[];const c=le(Ye((t=>{const n=Date.now()-i;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],i=null})),o),u=Ye(le(Ye((e=>{const t=Ze(e),{clientX:n,clientY:s}=Ee(e)?e.changedTouches[0]:e;i||(i=fe()),a.push({x:n,y:s,id:r.getId(t),timeOffset:fe()-i}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ne.Drag:e instanceof MouseEvent?Ne.MouseMove:Ne.TouchMove)})),s,{trailing:!1})),l=[ae("mousemove",u,n),ae("touchmove",u,n),ae("drag",u,n)];return Ye((()=>{l.forEach((e=>e()))}))}(e),o=et(e),i=tt(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ae("resize",Ye(le(Ye((()=>{const t=me(),s=ge();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}(e,{win:n}),c=st(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=Ye((i=>le(Ye((o=>{const a=Ze(o);if(!a||_e(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:i,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),o.media||500))),c=[ae("play",a(0),i),ae("pause",a(1),i),ae("seeked",a(2),i),ae("volumechange",a(3),i),ae("ratechange",a(4),i)];return Ye((()=>{c.forEach((e=>e()))}))}(e);let l=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Ye(((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=it(s,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:a}]}),r.apply(s,o)}))});const o=r.CSSStyleSheet.prototype.deleteRule;let i,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Ye(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=it(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:i}]}),r.apply(s,o)}))}),r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:Ye(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=it(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:i}),r.apply(s,o)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Ye(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=it(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:i}),r.apply(s,o)}))}));const c={};lt("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(lt("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),lt("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),lt("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:Ye(((r,s,o)=>{const[i,a]=o,{id:c,styleId:u}=it(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:i,index:[...ot(s),a||0]}]}),r.apply(s,o)}))}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:Ye(((r,s,o)=>{const[i]=o,{id:a,styleId:c}=it(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...ot(s),i]}]}),r.apply(s,o)}))})})),Ye((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=at(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Ye(((s,i,a)=>{const[c,u,l]=a;if(n.has(c))return o.apply(i,[c,u,l]);const{id:d,styleId:p}=it(Xe([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:ot(i.parentRule)}),s.apply(i,a)}))});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:Ye(((s,o,a)=>{const[c]=a;if(n.has(c))return i.apply(o,[c]);const{id:u,styleId:l}=it(Xe([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:ot(o.parentRule)}),s.apply(o,a)}))}),Ye((()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i}))}(e,{win:n}),e.collectFonts&&(f=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(e,t,n){const r=new o(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const i=pe(t.fonts,"add",(function(t){return function(n){return Re(Ye((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=o})),r.push(i),Ye((()=>{r.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=Ye((()=>{const e=t.getSelection();if(!e||a&&Xe([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const i=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=i;_e(a,r,s,o,!0)||_e(l,r,s,o,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}i({ranges:c})}));return c(),ae("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?pe(n.customElements,"define",(function(e){return function(n,r,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,s])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Ye((()=>{Ke.forEach((e=>e.reset())),Xe([r,"optionalAccess",e=>e.disconnect,"call",e=>e()]),s(),o(),i(),a(),c(),u(),l(),d(),p(),f(),h(),m(),g.forEach((e=>e()))}))}function ut(e){return void 0!==window[e]}function lt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class dt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),o=r||this.getRemoteIdToIdMap(e);let i=s.get(t);return i||(i=this.generateIdFn(),s.set(t,i),o.set(i,t)),i}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const s=r.get(t);return s||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function pt(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return undefined;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}class ft{constructor(){this.crossOriginIframeMirror=new dt(B),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class ht{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new dt(B),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new dt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),pt([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Oe.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Oe.IncrementalSnapshot,data:{source:Ne.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Oe.Meta:case Oe.Load:case Oe.DomContentLoaded:return!1;case Oe.Plugin:return t;case Oe.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Oe.IncrementalSnapshot:switch(t.data.source){case Ne.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.Drag:case Ne.TouchMove:case Ne.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ne.ViewportResize:return!1;case Ne.MediaInteraction:case Ne.MouseInteraction:case Ne.Scroll:case Ne.CanvasMutation:case Ne.Input:return this.replaceIds(t.data,e,["id"]),t;case Ne.StyleSheetRule:case Ne.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ne.Font:return t;case Ne.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ne.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),pt([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===_.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class mt{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class gt{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!S(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Qe({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(tt({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Re((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(at({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(pe(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&xe(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class yt{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class _t{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Te,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:v(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class bt{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){je("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let St,Et;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=s([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const vt=new I;function It(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:c="rr-ignore",ignoreSelector:u=null,maskAllText:l=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:g,maskInputOptions:y,slimDOMOptions:_,maskAttributeFn:b,maskInputFn:S,maskTextFn:E,maxCanvasSize:v=null,packFn:w,sampling:T={},dataURLOptions:A={},mousemoveWait:C,recordDOM:x=!0,recordCanvas:k=!1,recordCrossOriginIframes:j=!1,recordAfter:R=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:O=!1,collectFonts:N=!1,inlineImages:M=!1,plugins:P,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:L=new Set([]),errorHandler:U,onMutation:B,getCanvasManager:F}=e;Je(U);const $=!j||window.parent===window;let H=!1;if(!$)try{window.parent.document&&(H=!1)}catch(e){H=!0}if($&&!t)throw new Error("emit function is required");C!==undefined&&T.mousemove===undefined&&(T.mousemove=C),vt.reset();const W=!0===g?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:y!==undefined?y:{},G=!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===_,headMetaDescKeywords:"all"===_}:_||{};let z;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let q=0;const J=e=>{for(const t of P||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!H&&(e=w(e)),e};St=(e,o)=>{const i=e;if(i.timestamp=fe(),!s([Ke,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===Oe.FullSnapshot||i.type===Oe.IncrementalSnapshot&&i.data.source===Ne.Mutation||Ke.forEach((e=>e.unfreeze())),$)s([t,"optionalCall",e=>e(J(i),o)]);else if(H){const e={type:"rrweb",event:J(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Oe.FullSnapshot)z=i,q=0;else if(i.type===Oe.IncrementalSnapshot){if(i.data.source===Ne.Mutation&&i.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&z&&i.timestamp-z.timestamp>n;(e||t)&&ne(!0)}};const V=e=>{St({type:Oe.IncrementalSnapshot,data:{source:Ne.Mutation,...e}})},Y=e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.Scroll,...e}}),X=e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.CanvasMutation,...e}}),K=new _t({mutationCb:V,adoptedStyleSheetCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ft:new ht({mirror:vt,mutationCb:V,stylesheetManager:K,recordCrossOriginIframes:j,wrappedEmit:St});for(const e of P||[])e.getMirror&&e.getMirror({nodeMirror:vt,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});const Q=new bt,ee=function(e,t){try{return e?e(t):new yt}catch(e){return console.warn("Unable to initialize CanvasManager"),new yt}}(F,{mirror:vt,win:window,mutationCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.CanvasMutation,...e}}),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:v,sampling:T.canvas,dataURLOptions:A,errorHandler:U}),te="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new mt:new gt({mutationCb:V,scrollCb:Y,bypassOptions:{onMutation:B,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:W,dataURLOptions:A,maskAttributeFn:b,maskTextFn:E,maskInputFn:S,recordCanvas:k,inlineImages:M,sampling:T,slimDOMOptions:G,iframeManager:Z,stylesheetManager:K,canvasManager:ee,keepIframeSrcFn:D,processedNodeManager:Q},mirror:vt}),ne=(e=!1)=>{if(!x)return;St({type:Oe.Meta,data:{href:window.location.href,width:ge(),height:me()}},e),K.reset(),te.init(),Ke.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new I,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:b,preserveWhiteSpace:S,onSerialize:E,onIframeLoad:v,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:C=(()=>!1)}=t||{};return oe(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:S,onSerialize:E,onIframeLoad:v,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:vt,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:W,maskAttributeFn:b,maskInputFn:S,maskTextFn:E,slimDOM:G,dataURLOptions:A,recordCanvas:k,inlineImages:M,onSerialize:e=>{ve(e,vt)&&Z.addIframe(e),Ie(e,vt)&&K.trackLinkElement(e),we(e)&&te.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&ee.addWindow(e.contentWindow),te.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{K.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");St({type:Oe.FullSnapshot,data:{node:t,initialOffset:he(window)}}),Ke.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&K.adoptStyleSheets(document.adoptedStyleSheets,vt.getId(document))};Et=ne;try{const e=[],t=e=>Ye(ct)({onMutation:B,mutationCb:V,mousemoveCb:(e,t)=>St({type:Oe.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.ViewportResize,...e}}),inputCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.Input,...e}}),mediaInteractionCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.MediaInteraction,...e}}),styleSheetRuleCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.StyleSheetRule,...e}}),styleDeclarationCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>St({type:Oe.IncrementalSnapshot,data:{source:Ne.Font,...e}}),selectionCb:e=>{St({type:Oe.IncrementalSnapshot,data:{source:Ne.Selection,...e}})},customElementCb:e=>{St({type:Oe.IncrementalSnapshot,data:{source:Ne.CustomElement,...e}})},blockClass:o,ignoreClass:c,ignoreSelector:u,maskAllText:l,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:W,inlineStylesheet:m,sampling:T,recordDOM:x,recordCanvas:k,inlineImages:M,userTriggeredOnInput:O,collectFonts:N,doc:e,maskAttributeFn:b,maskInputFn:S,maskTextFn:E,keepIframeSrcFn:D,blockSelector:i,unblockSelector:a,slimDOMOptions:G,dataURLOptions:A,mirror:vt,iframeManager:Z,stylesheetManager:K,shadowDomManager:te,processedNodeManager:Q,canvasManager:ee,ignoreCSSAttributes:L,plugins:s([P,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>St({type:Oe.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Z.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ne(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ae("DOMContentLoaded",(()=>{St({type:Oe.DomContentLoaded,data:{}}),"DOMContentLoaded"===R&&n()}))),e.push(ae("load",(()=>{St({type:Oe.Load,data:{}}),"load"===R&&n()}),window))),()=>{e.forEach((e=>e())),Q.destroy(),Et=undefined,Ve()}}catch(e){console.warn(e)}}It.mirror=vt,It.takeFullSnapshot=function(e){if(!Et)throw new Error("please take full snapshot after start recording");Et(e)};const wt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Tt=["info","warn","error","log"],At="[Replay] ";function Ct(e,t="info"){o.addBreadcrumb({category:"console",data:{logger:"replay"},level:t,message:`${At}${e}`},{level:t})}const xt=function(){let e=!1,t=!1;const n={exception:()=>undefined,infoTick:()=>undefined,setConfig:n=>{e=n.captureExceptions,t=n.traceInternals}};return wt?(Tt.forEach((e=>{n[e]=(...n)=>{i.logger[e](At,...n),t&&Ct(n.join(""),i.severityLevelFromString(e))}})),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),i.logger.error(At,r),e?o.captureException(r):t&&Ct(r,"error")},n.infoTick=(...e)=>{i.logger.info(At,...e),t&&setTimeout((()=>Ct(e[0])),0)}):Tt.forEach((e=>{n[e]=()=>undefined})),n}(),kt=3;function jt(e){return e>9999999999?e:1e3*e}function Rt(e){return e>9999999999?e/1e3:e}function Ot(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Oe.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:i.normalize(t,10,1e3)}}),"console"===t.category))))}const Nt="button,a";function Mt(e){return e.closest(Nt)||e}function Pt(e){const t=Dt(e);return t&&t instanceof Element?Mt(t):t}function Dt(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Lt;function Ut(e){return Lt||(Lt=[],i.fill(c,"open",(function(e){return function(...t){if(Lt)try{Lt.forEach((e=>e()))}catch(e){}return e.apply(c,t)}}))),Lt.push(e),()=>{const t=Lt?Lt.indexOf(e):-1;t>-1&&Lt.splice(t,1)}}const Bt=new Set([Ne.Mutation,Ne.StyleSheetRule,Ne.StyleDeclaration,Ne.AdoptedStyleSheet,Ne.CanvasMutation,Ne.Selection,Ne.MediaInteraction]);class Ft{constructor(e,t,n=Ot){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=Ut((()=>{this._lastMutation=Ht()}));this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){if(!$t.includes(e.tagName))return!0;if("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||""))return!0;if("A"===e.tagName&&(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))return!0;if(t&&e.matches(t))return!0;return!1}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Rt(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Rt(e)}registerScroll(e=Date.now()){this._lastScroll=Rt(e)}registerClick(e){const t=Mt(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Ht();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:undefined),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:undefined),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:o,clickBreadcrumb:i}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:c.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:o||1}};this._addBreadcrumbEvent(t,s)}else if(o>1){const e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:c.location.href,route:t.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=a.setTimeout((()=>this._checkClicks()),1e3)}}const $t=["A","BUTTON","INPUT"];function Ht(){return Date.now()/1e3}function Wt(e,t){try{if(!function(e){return e.type===kt}(t))return;const{source:n}=t.data;if(Bt.has(n)&&e.registerMutation(t.timestamp),n===Ne.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ne.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=It.mirror.getNode(r);s instanceof HTMLElement&&n===Me.Click&&e.registerClick(s)}}catch(e){}}function Gt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var zt;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(zt||(zt={}));const qt=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Jt(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(qt.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const Vt=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Pt(e.event):Dt(e.event),n=i.htmlTreeAsString(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return Gt({category:`ui.${e.name}`,...Yt(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:undefined;var o,a,c;!(r&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(o=e.clickDetector,a=n,c=Pt(t.event),o.handleClick(a,c)),Ot(e,n)};function Yt(e,t){const n=It.mirror.getId(e),r=n&&It.mirror.getNode(n),s=r&&It.mirror.getMeta(r),o=s&&function(e){return e.type===zt.Element}(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map((e=>e.type===zt.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Jt(o.attributes)}}:{}}}function Xt(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!o)return null;const c=t||r||s,u=1===o.length;if(!c&&u)return null;const l=i.htmlTreeAsString(a,{maxStringLength:200})||"<unknown>",d=Yt(a,l);return Gt({category:"ui.keyDown",message:l,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}(t);n&&Ot(e,n)}const Kt={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:en(o),end:en(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=en(s);return{type:n,name:r,start:o,end:o+t,data:undefined}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;if(0===s)return null;return{type:`${t}.${m}`,start:en(f),end:en(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function Zt(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Qt(e){const t=Kt[e.entryType];return t?t(e):null}function en(e){return((i.browserPerformanceTimeOrigin||c.performance.timeOrigin)+e)/1e3}function tn(e){const t=e.entries[e.entries.length-1];return an(e,"largest-contentful-paint",t&&t.element?[t.element]:undefined)}function nn(e){return e.sources!==undefined}function rn(e){const t=[],n=[];for(const r of e.entries)if(nn(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=It.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:undefined})}return an(e,"cumulative-layout-shift",n,t)}function sn(e){const t=e.entries[e.entries.length-1];return an(e,"first-input-delay",t&&t.target?[t.target]:undefined)}function on(e){const t=e.entries[e.entries.length-1];return an(e,"interaction-to-next-paint",t&&t.target?[t.target]:undefined)}function an(e,t,n,r){const s=e.value,o=e.rating,i=en(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map((e=>It.mirror.getId(e))):undefined,attributions:r}}}const cn='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';class un extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class ln{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>h)throw new un;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?jt(e):null}}class dn{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){wt&&xt.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const o=({data:t})=>{const i=t;if(i.method===e&&i.id===n){if(this._worker.removeEventListener("message",o),!i.success)return wt&&xt.error("Error in compression worker: ",i.response),void s(new Error("Error in compression worker"));r(i.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class pn{constructor(e){this._worker=new dn(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=jt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>h?Promise.reject(new un):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{wt&&xt.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class fn{constructor(e){this._fallback=new ln,this._compression=new pn(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(wt&&xt.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){wt&&xt.exception(e,"Failed to add events when switching buffers.")}}}function hn({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||function(){if("undefined"==typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__)return function(){const e=new Blob([cn]);return URL.createObjectURL(e)}();return""}();if(!t)return;wt&&xt.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new fn(n)}catch(e){wt&&xt.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return wt&&xt.info("Using simple buffer"),new ln}function mn(){try{return"sessionStorage"in c&&!!c.sessionStorage}catch(e){return!1}}function gn(e){!function(){if(!mn())return;try{c.sessionStorage.removeItem(u)}catch(e){}}(),e.session=undefined}function yn(e){return e!==undefined&&Math.random()<e}function _n(e){const t=Date.now();return{id:e.id||i.uuid4(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function bn(e){if(mn())try{c.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){}}function Sn({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=function(e,t){return yn(e)?"session":!!t&&"buffer"}(e,t),o=_n({sampled:s,previousSessionId:r});return n&&bn(o),o}function En(e,t,n=+new Date){return null===e||t===undefined||t<0||0!==t&&e+t<=n}function vn(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return En(e.started,t,r)||En(e.lastActivity,n,r)}function In(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!vn(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function wn({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&function(){if(!mn())return null;try{const e=c.sessionStorage.getItem(u);if(!e)return null;const t=JSON.parse(e);return wt&&xt.infoTick("Loading existing session"),_n(t)}catch(e){return null}}();return s?In(s,{sessionIdleExpire:e,maxReplayDuration:t})?(wt&&xt.infoTick("Session in sessionStorage is expired, creating new one..."),Sn(r,{previousSessionId:s.id})):s:(wt&&xt.infoTick("Creating new session"),Sn(r,{previousSessionId:n}))}function Tn(e,t,n){return!!Cn(e,t)&&(An(e,t,n),!0)}async function An(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Oe.Custom}(e))return t(e)}catch(e){return wt&&xt.exception(e,"An error occured in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof un?"addEventSizeExceeded":"addEvent";e.handleException(t),await e.stop({reason:n});const r=o.getClient();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function Cn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=jt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(wt&&xt.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function xn(e){return!e.type}function kn(e){return"transaction"===e.type}function jn(e){return"feedback"===e.type}function Rn(e){return(t,n)=>{if(!e.isEnabled()||!xn(t)&&!kn(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(kn(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;a.setTimeout((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}function On(e){return t=>{e.isEnabled()&&xn(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){Ot(e,Gt({category:"replay.hydrate-error",data:{url:i.getLocationHref()}}))}}(e,t)}}function Nn(e){const t=o.getClient();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!Mn(t))return;const n=function(e){if(!Mn(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))return null;if("console"===e.category)return function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Gt(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>f?(n=!0,`${e.slice(0,f)}…`):e;if("object"==typeof e)try{const t=i.normalize(e,7);return JSON.stringify(t).length>f?(n=!0,`${JSON.stringify(t,null,2).slice(0,f)}…`):t}catch(e){}return e}));return Gt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return Gt(e)}(t);n&&Ot(e,n)}(e,t)))}function Mn(e){return!!e.category}function Pn(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!xn(t)&&!kn(t)&&!jn(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(jn(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Oe.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return wt&&xt.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==d&&!(!t.exception||t.type)&&yn(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}function Dn(e,t){return t.map((({type:t,start:n,end:r,name:s,data:o})=>{const i=e.throttledAddEvent({type:Oe.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:o}}});return"string"==typeof i?Promise.resolve(null):i}))}function Ln(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Dn(e,[n]),!1))))}}function Un(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!wt||!e.getOptions()._experiments.traceInternals)&&o.isSentryRequestUrl(t,o.getClient())}(e,t.name)||e.addUpdate((()=>(Dn(e,[t]),!0))))}function Bn(e){if(!e)return undefined;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=Jn(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}return undefined}function Fn(e){if(!e)return undefined;const t=parseInt(e,10);return isNaN(t)?undefined:t}function $n(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Jn(e)];if(!e)return[undefined]}catch(t){return wt&&xt.exception(t,"Failed to serialize body",e),[undefined,"BODY_PARSE_ERROR"]}return wt&&xt.info("Skipping network body because of body type",e),[undefined,"UNPARSEABLE_BODY_TYPE"]}function Hn(e,t){if(!e)return{headers:{},size:undefined,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Wn(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:a,request:c,response:u}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:i.dropUndefinedKeys({method:o,statusCode:a,request:c,response:u})}}function Gn(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function zn(e,t,n){if(!t&&0===Object.keys(e).length)return undefined;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>p,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,p);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=s,o&&o.length>0&&(r._meta={warnings:o}),r}function qn(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n}),{})}function Jn(e){return new URLSearchParams(e).toString()}function Vn(e,t){const n=function(e,t=c.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(c.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return i.stringMatchesSomePattern(n,t)}async function Yn(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:c,status_code:u=0,request_body_size:l,response_body_size:d}=e.data,p=Vn(i,n.networkDetailAllowUrls)&&!Vn(i,n.networkDetailDenyUrls),f=p?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return Zn(e[0],t);if(2===e.length)return Zn(e[1],t);return{}}(n,t):{};if(!e)return zn(s,r,undefined);const o=Xn(n),[i,a]=$n(o),c=zn(s,r,i);if(a)return Hn(c,a);return c}(n,t.input,l):Gn(l),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==undefined)return Gn(s);const o=r?Kn(r.headers,n):{};if(!r||!t&&s!==undefined)return zn(o,s,undefined);const[i,c]=await async function(e){const t=function(e){try{return e.clone()}catch(e){wt&&xt.exception(e,"Failed to clone response body")}}(e);if(!t)return[undefined,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=a.setTimeout((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return wt&&xt.exception(e,"Failed to get text body from response"),[undefined,"BODY_PARSE_ERROR"]}}(r),u=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e&&e.length&&n===undefined?Bn(e):n;return r?zn(s,o,t?e:undefined):Gn(o)}catch(e){return wt&&xt.exception(e,"Failed to serialize response body"),zn(s,n,undefined)}}(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});if(c)return Hn(u,c);return u}(p,n,t.response,d);return{startTimestamp:s,endTimestamp:o,url:i,method:c,statusCode:u,request:f,response:h}}(e,t,n),s=Wn("resource.fetch",r);Un(n.replay,s)}catch(e){wt&&xt.exception(e,"Failed to capture fetch breadcrumb")}}function Xn(e=[]){return 2!==e.length||"object"!=typeof e[1]?undefined:e[1].body}function Kn(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Zn(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Kn(n,t):Array.isArray(n)?{}:qn(n,t):{}}async function Qn(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:c}=t,{url:u,method:l,status_code:d=0,request_body_size:p,response_body_size:f}=e.data;if(!u)return null;if(!c||!Vn(u,n.networkDetailAllowUrls)||Vn(u,n.networkDetailDenyUrls)){return{startTimestamp:s,endTimestamp:o,url:u,method:l,statusCode:d,request:Gn(p),response:Gn(f)}}const h=c[a.SENTRY_XHR_DATA_KEY],m=h?qn(h.request_headers,n.networkRequestHeaders):{},g=qn(function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{})}(c),n.networkResponseHeaders),[y,_]=n.networkCaptureBodies?$n(i):[undefined],[b,S]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[undefined]}catch(t){return wt&&xt.exception(t,"Failed to serialize body",e),[undefined,"BODY_PARSE_ERROR"]}return wt&&xt.info("Skipping network body because of body type",e),[undefined,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return wt&&xt.warn("Failed to get xhr response body",...t),[undefined]}(c):[undefined],E=zn(m,p,y),v=zn(g,f,b);return{startTimestamp:s,endTimestamp:o,url:u,method:l,statusCode:d,request:_?Hn(E,_):E,response:S?Hn(v,S):v}}(e,t,n),s=Wn("resource.xhr",r);Un(n.replay,s)}catch(e){wt&&xt.exception(e,"Failed to capture xhr breadcrumb")}}function er(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Bn(r),o=n.getResponseHeader("content-length")?Fn(n.getResponseHeader("content-length")):function(e,t){try{return Bn("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return undefined}}(n.response,n.responseType);s!==undefined&&(e.data.request_body_size=s),o!==undefined&&(e.data.response_body_size=o)}function tr(e){const t=o.getClient();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(er(t,n),Qn(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(!function(e,t){const{input:n,response:r}=t,s=Bn(n?Xn(n):undefined),o=r?Fn(r.headers.get("content-length")):undefined;s!==undefined&&(e.data.request_body_size=s),o!==undefined&&(e.data.response_body_size=o)}(t,n),Yn(t,n,e))}catch(e){wt&&xt.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch(e){}}function nr(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function rr(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(wt&&xt.warn("Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&Wt(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Tn(e,n,s))return!0;if(!s)return!1;const t=e.session;if(function(e,t){if(!t||!e.session||0!==e.session.segmentId)return;Tn(e,function(e){const t=e.getOptions();return{type:Oe.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),t&&t.previousSessionId)return!0;if("buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(wt&&xt.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&bn(t))}return"session"===e.recordingMode&&e.flush(),!0}))}}async function sr({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:a}){const c=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:p,traceIds:f,initialTimestamp:h}=r,m=o.getClient(),g=o.getCurrentScope(),y=m&&m.getTransport(),_=m&&m.getDsn();if(!(m&&y&&_&&a.sampled))return i.resolvedSyncPromise({});const b={type:l,replay_start_timestamp:h/1e3,timestamp:s/1e3,error_ids:p,trace_ids:f,urls:u,replay_id:t,segment_id:n,replay_type:a.sampled},S=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?undefined:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const i=await o.prepareEvent(e.getOptions(),r,s,t,e,o.getIsolationScope());if(!i)return null;i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},i}({scope:g,client:m,replayId:t,event:b});if(!S)return m.recordDroppedEvent("event_processor","replay",b),wt&&xt.info("An event processor returned `null`, will not send event."),i.resolvedSyncPromise({});delete S.sdkProcessingMetadata;const E=function(e,t,n,r){return i.createEnvelope(i.createEventEnvelopeHeaders(e,i.getSdkMetadataForEnvelopeHeader(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(S,c,_,m.getOptions().tunnel);let v;try{v=await y.send(E)}catch(e){const t=new Error(d);try{t.cause=e}catch(e){}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new or(v.statusCode);const I=i.updateRateLimits({},v);if(i.isRateLimited(I,"replay"))throw new ir(I);return v}class or extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ir extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function ar(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await sr(e),!0}catch(n){if(n instanceof or||n instanceof ir)throw n;if(o.setContext("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${d} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{a.setTimeout((async()=>{try{await ar(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const cr="__THROTTLED";function ur(e,t,n){const r=new Map;let s=!1;return(...o)=>{const i=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(i),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":cr}s=!1;const a=r.get(i)||0;return r.set(i,a+1),e(...o)}}class lr{constructor({options:e,recordingOptions:t}){lr.prototype.__init.call(this),lr.prototype.__init2.call(this),lr.prototype.__init3.call(this),lr.prototype.__init4.call(this),lr.prototype.__init5.call(this),lr.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,s,o;const i=n&&n.maxWait?Math.max(n.maxWait,t):0;function c(){return u(),r=e(),r}function u(){s!==undefined&&clearTimeout(s),o!==undefined&&clearTimeout(o),s=o=undefined}function l(){return s&&clearTimeout(s),s=a.setTimeout(c,t),i&&o===undefined&&(o=a.setTimeout(c,i)),r}return l.cancel=u,l.flush=function(){return s!==undefined||o!==undefined?c():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=ur(((e,t)=>function(e,t,n){return Cn(e,t)?An(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:undefined;if(s&&(this.clickDetector=new Ft(this,s)),wt){const t=e._experiments;xt.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){wt&&xt.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",wt&&xt.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):wt&&xt.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(wt&&xt.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(wt&&xt.info("Buffering is in progress, call `flush()` to save the replay"));wt&&xt.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=wn({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(wt&&xt.info("Buffering is in progress, call `flush()` to save the replay"));wt&&xt.infoTick("Starting replay in buffer mode");const e=wn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=It({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:rr(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=undefined),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{wt&&xt.info("Stopping Replay"+(t?` triggered by ${t}`:"")),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,gn(this)}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),wt&&xt.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),wt&&xt.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();wt&&xt.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&En(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${c.location.pathname}${c.location.hash}${c.location.search}`,t=`${c.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===cr){const e=Gt({category:"replay.throttled"});this.addUpdate((()=>!Tn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||o.getActiveSpan(),t=e&&o.getRootSpan(e),n=(t&&o.spanToJSON(t).data||{})[o.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return t&&n&&["route","custom"].includes(n)?o.spanToJSON(t).description:undefined}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=hn({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=wn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!In(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{c.document.addEventListener("visibilitychange",this._handleVisibilityChange),c.addEventListener("blur",this._handleWindowBlur),c.addEventListener("focus",this._handleWindowFocus),c.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=o.getClient();a.addClickKeypressInstrumentationHandler(Vt(e)),a.addHistoryInstrumentationHandler(Ln(e)),Nn(e),tr(e);const n=Pn(e);o.addEventProcessor(n),t&&(t.on("beforeSendEvent",On(e)),t.on("afterSendEvent",Rn(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(a.addPerformanceInstrumentationHandler(e,n))})),r.push(a.addLcpInstrumentationHandler(Zt(tn,e)),a.addClsInstrumentationHandler(Zt(rn,e)),a.addFidInstrumentationHandler(Zt(sn,e)),a.addInpInstrumentationHandler(Zt(on,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{c.document.removeEventListener("visibilitychange",this._handleVisibilityChange),c.removeEventListener("blur",this._handleWindowBlur),c.removeEventListener("focus",this._handleWindowFocus),c.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===c.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Gt({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Gt({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Xt(this,e)}}_doChangeToBackgroundTasks(e){if(!this.session)return;vn(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):wt&&xt.info("Document has become active, but session has expired")}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Oe.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(Qt).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Dn(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Dn(e,[nr(c.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await ar({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=o.getClient();if(t){const n=e instanceof ir?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else wt&&xt.error("No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(wt&&xt.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return wt&&xt.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&wt&&xt.info("Flushing initial segment without checkout.");const i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=undefined,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&bn(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Gt({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function dr(e,t){return[...e,...t].join(",")}const pr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',fr=["content-length","content-type","accept"];let hr=!1;class mr{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:l=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:y=[],networkDetailDenyUrls:_=[],networkCaptureBodies:b=!0,networkRequestHeaders:S=[],networkResponseHeaders:E=[],mask:v=[],maskAttributes:I=["title","placeholder"],unmask:w=[],block:T=[],unblock:A=[],ignore:C=[],maskFn:x,beforeAddRecordingEvent:k,beforeErrorSampling:j}={}){this.name=mr.id;const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:dr(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:dr(t,[]),blockSelector:dr(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:dr(r,[]),ignoreSelector:dr(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:v,unmask:w,block:T,unblock:A,ignore:C});if(this._recordingOptions={maskAllInputs:l,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return r?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o:o}({maskAttributes:I,maskAllText:u,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,m),stickySession:s,useCompression:o,workerUrl:a,blockAllMedia:d,maskAllInputs:l,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:y,networkDetailDenyUrls:_,networkCaptureBodies:b,networkRequestHeaders:gr(S),networkResponseHeaders:gr(E),beforeAddRecordingEvent:k,beforeErrorSampling:j,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${pr}`:pr),this._isInitialized&&i.isBrowser())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return hr}set _isInitialized(e){hr=e}afterAllSetup(e){i.isBrowser()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...i.dropUndefinedKeys(e)},s=o.parseSampleRate(n.replaysSessionSampleRate),a=o.parseSampleRate(n.replaysOnErrorSampleRate);null==s&&null==a&&i.consoleSandbox((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}));null!=s&&(r.sessionSampleRate=s);null!=a&&(r.errorSampleRate=a);return r}(this._initialOptions,e);this._replay=new lr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function gr(e){return[...fr,...e.map((e=>e.toLowerCase()))]}mr.__initStatic(),n.getReplay=function(){const e=o.getClient();return e&&e.getIntegrationByName("Replay")},n.replayIntegration=e=>new mr(e)},{"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],73:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("./debug-build.js"),i=e("./eventbuilder.js"),a=e("./helpers.js"),c=e("./userfeedback.js");class u extends r.BaseClient{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e},n=a.WINDOW.SENTRY_SDK_SOURCE||s.getSDKSource();r.applySdkMetadata(t,"browser",["browser"],n),super(t),t.sendClientReports&&a.WINDOW.document&&a.WINDOW.document.addEventListener("visibilitychange",(()=>{"hidden"===a.WINDOW.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return i.eventFromException(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return i.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(o.DEBUG_BUILD&&s.logger.warn("SDK not enabled, will not capture user feedback."));const t=c.createUserFeedbackEnvelope(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}}n.BrowserClient=u},{"./debug-build.js":74,"./eventbuilder.js":75,"./helpers.js":78,"./userfeedback.js":99,"@sentry/core":118,"@sentry/utils":199}],74:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{dup:41}],75:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils");function o(e,t){const n=c(e,t),r={type:t&&t.name,value:l(t)};return n.length&&(r.stacktrace={frames:n}),r.type===undefined&&""===r.value&&(r.value="Unrecoverable error caught"),r}function i(e,t,n,i){const a=r.getClient(),u=a&&a.getOptions().normalizeDepth,l=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return undefined}(t),d={__serialized__:s.normalizeToSize(t,u)};if(l)return{exception:{values:[o(e,l)]},extra:d};const p={exception:{values:[{type:s.isEvent(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:f(t,{isUnhandledRejection:i})}]},extra:d};if(n){const t=c(e,n);t.length&&(p.exception.values[0].stacktrace={frames:t})}return p}function a(e,t){return{exception:{values:[o(e,t)]}}}function c(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&u.test(e.message))return 1;return 0}(t),s=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,s)}catch(e){}return[]}const u=/Minified React error #\d+;/i;function l(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function d(e,t,n,r,o){let c;if(s.isErrorEvent(t)&&t.error){return a(e,t.error)}if(s.isDOMError(t)||s.isDOMException(t)){const o=t;if("stack"in t)c=a(e,t);else{const t=o.name||(s.isDOMError(o)?"DOMError":"DOMException"),i=o.message?`${t}: ${o.message}`:t;c=p(e,i,n,r),s.addExceptionTypeValue(c,i)}return"code"in o&&(c.tags={...c.tags,"DOMException.code":`${o.code}`}),c}if(s.isError(t))return a(e,t);if(s.isPlainObject(t)||s.isEvent(t)){return c=i(e,t,n,o),s.addExceptionMechanism(c,{synthetic:!0}),c}return c=p(e,t,n,r),s.addExceptionTypeValue(c,`${t}`,undefined),s.addExceptionMechanism(c,{synthetic:!0}),c}function p(e,t,n,r){const o={};if(r&&n){const r=c(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(s.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function f(e,{isUnhandledRejection:t}){const n=s.extractExceptionKeysForMessage(e),r=t?"promise rejection":"exception";if(s.isErrorEvent(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(s.isEvent(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}n.eventFromException=function(e,t,n,r){const o=d(e,t,n&&n.syntheticException||undefined,r);return s.addExceptionMechanism(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),s.resolvedSyncPromise(o)},n.eventFromMessage=function(e,t,n="info",r,o){const i=p(e,t,r&&r.syntheticException||undefined,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),s.resolvedSyncPromise(i)},n.eventFromUnknownInput=d,n.exceptionFromError=o},{"@sentry/core":118,"@sentry/utils":199}],76:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/feedback"),s=e("./utils/lazyLoadIntegration.js"),o=r.buildFeedbackIntegration({lazyLoadIntegration:s.lazyLoadIntegration});n.feedbackAsyncIntegration=o},{"./utils/lazyLoadIntegration.js":100,"@sentry-internal/feedback":70}],77:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/feedback"),s=e("./utils/lazyLoadIntegration.js"),o=r.buildFeedbackIntegration({lazyLoadIntegration:s.lazyLoadIntegration,getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration});n.feedbackSyncIntegration=o},{"./utils/lazyLoadIntegration.js":100,"@sentry-internal/feedback":70}],78:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=s.GLOBAL_OBJ;let i=0;function a(){i++,setTimeout((()=>{i--}))}n.WINDOW=o,n.ignoreNextOnError=a,n.shouldIgnoreOnError=function(){return i>0},n.wrap=function e(t,n={},o){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return"function"==typeof e?e:t;if(s.getOriginalFunction(t))return t}catch(e){return t}const i=function(){const i=Array.prototype.slice.call(arguments);try{o&&"function"==typeof o&&o.apply(this,arguments);const r=i.map((t=>e(t,n)));return t.apply(this,r)}catch(e){throw a(),r.withScope((t=>{t.addEventProcessor((e=>(n.mechanism&&(s.addExceptionTypeValue(e,undefined,undefined),s.addExceptionMechanism(e,n.mechanism)),e.extra={...e.extra,arguments:i},e))),r.captureException(e)})),e}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e])}catch(e){}s.markFunctionWrapped(i,t),s.addNonEnumerableProperty(t,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:()=>t.name})}catch(e){}return i}},{"@sentry/core":118,"@sentry/utils":199}],79:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("./helpers.js"),o=e("./client.js"),i=e("./transports/fetch.js"),a=e("./stack-parsers.js"),c=e("./eventbuilder.js"),u=e("./userfeedback.js"),l=e("./sdk.js"),d=e("./integrations/breadcrumbs.js"),p=e("./integrations/globalhandlers.js"),f=e("./integrations/httpcontext.js"),h=e("./integrations/linkederrors.js"),m=e("./integrations/browserapierrors.js"),g=e("./utils/lazyLoadIntegration.js"),y=e("./integrations/reportingobserver.js"),_=e("./integrations/httpclient.js"),b=e("./integrations/contextlines.js"),S=e("@sentry-internal/replay"),E=e("@sentry-internal/replay-canvas"),v=e("./feedbackAsync.js"),I=e("./feedbackSync.js"),w=e("@sentry-internal/feedback"),T=e("./metrics.js"),A=e("./tracing/request.js"),C=e("./tracing/browserTracingIntegration.js"),x=e("./transports/offline.js"),k=e("./profiling/integration.js");n.SDK_VERSION=r.SDK_VERSION,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=r.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.Scope=r.Scope,n.addBreadcrumb=r.addBreadcrumb,n.addEventProcessor=r.addEventProcessor,n.addIntegration=r.addIntegration,n.addTracingExtensions=r.addTracingExtensions,n.captureConsoleIntegration=r.captureConsoleIntegration,n.captureEvent=r.captureEvent,n.captureException=r.captureException,n.captureFeedback=r.captureFeedback,n.captureMessage=r.captureMessage,n.captureSession=r.captureSession,n.close=r.close,n.continueTrace=r.continueTrace,n.createTransport=r.createTransport,n.debugIntegration=r.debugIntegration,n.dedupeIntegration=r.dedupeIntegration,n.endSession=r.endSession,n.extraErrorDataIntegration=r.extraErrorDataIntegration,n.flush=r.flush,n.functionToStringIntegration=r.functionToStringIntegration,n.getActiveSpan=r.getActiveSpan,n.getClient=r.getClient,n.getCurrentHub=r.getCurrentHub,n.getCurrentScope=r.getCurrentScope,n.getGlobalScope=r.getGlobalScope,n.getIsolationScope=r.getIsolationScope,n.getRootSpan=r.getRootSpan,n.getSpanDescendants=r.getSpanDescendants,n.getSpanStatusFromHttpCode=r.getSpanStatusFromHttpCode,n.inboundFiltersIntegration=r.inboundFiltersIntegration,n.isInitialized=r.isInitialized,n.lastEventId=r.lastEventId,n.makeMultiplexedTransport=r.makeMultiplexedTransport,n.moduleMetadataIntegration=r.moduleMetadataIntegration,n.parameterize=r.parameterize,n.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,n.rewriteFramesIntegration=r.rewriteFramesIntegration,n.sessionTimingIntegration=r.sessionTimingIntegration,n.setContext=r.setContext,n.setCurrentClient=r.setCurrentClient,n.setExtra=r.setExtra,n.setExtras=r.setExtras,n.setHttpStatus=r.setHttpStatus,n.setMeasurement=r.setMeasurement,n.setTag=r.setTag,n.setTags=r.setTags,n.setUser=r.setUser,n.spanToBaggageHeader=r.spanToBaggageHeader,n.spanToJSON=r.spanToJSON,n.spanToTraceHeader=r.spanToTraceHeader,n.startInactiveSpan=r.startInactiveSpan,n.startNewTrace=r.startNewTrace,n.startSession=r.startSession,n.startSpan=r.startSpan,n.startSpanManual=r.startSpanManual,n.thirdPartyErrorFilterIntegration=r.thirdPartyErrorFilterIntegration,n.withActiveSpan=r.withActiveSpan,n.withIsolationScope=r.withIsolationScope,n.withScope=r.withScope,n.zodErrorsIntegration=r.zodErrorsIntegration,n.WINDOW=s.WINDOW,n.BrowserClient=o.BrowserClient,n.makeFetchTransport=i.makeFetchTransport,n.chromeStackLineParser=a.chromeStackLineParser,n.defaultStackLineParsers=a.defaultStackLineParsers,n.defaultStackParser=a.defaultStackParser,n.geckoStackLineParser=a.geckoStackLineParser,n.opera10StackLineParser=a.opera10StackLineParser,n.opera11StackLineParser=a.opera11StackLineParser,n.winjsStackLineParser=a.winjsStackLineParser,n.eventFromException=c.eventFromException,n.eventFromMessage=c.eventFromMessage,n.exceptionFromError=c.exceptionFromError,n.createUserFeedbackEnvelope=u.createUserFeedbackEnvelope,n.captureUserFeedback=l.captureUserFeedback,n.forceLoad=l.forceLoad,n.getDefaultIntegrations=l.getDefaultIntegrations,n.init=l.init,n.onLoad=l.onLoad,n.showReportDialog=l.showReportDialog,n.breadcrumbsIntegration=d.breadcrumbsIntegration,n.globalHandlersIntegration=p.globalHandlersIntegration,n.httpContextIntegration=f.httpContextIntegration,n.linkedErrorsIntegration=h.linkedErrorsIntegration,n.browserApiErrorsIntegration=m.browserApiErrorsIntegration,n.lazyLoadIntegration=g.lazyLoadIntegration,n.reportingObserverIntegration=y.reportingObserverIntegration,n.httpClientIntegration=_.httpClientIntegration,n.contextLinesIntegration=b.contextLinesIntegration,n.getReplay=S.getReplay,n.replayIntegration=S.replayIntegration,n.replayCanvasIntegration=E.replayCanvasIntegration,n.feedbackAsyncIntegration=v.feedbackAsyncIntegration,n.feedbackIntegration=I.feedbackSyncIntegration,n.feedbackSyncIntegration=I.feedbackSyncIntegration,n.getFeedback=w.getFeedback,n.sendFeedback=w.sendFeedback,n.metrics=T.metrics,n.defaultRequestInstrumentationOptions=A.defaultRequestInstrumentationOptions,n.instrumentOutgoingRequests=A.instrumentOutgoingRequests,n.browserTracingIntegration=C.browserTracingIntegration,n.startBrowserTracingNavigationSpan=C.startBrowserTracingNavigationSpan,n.startBrowserTracingPageLoadSpan=C.startBrowserTracingPageLoadSpan,n.makeBrowserOfflineTransport=x.makeBrowserOfflineTransport,n.browserProfilingIntegration=k.browserProfilingIntegration},{"./client.js":73,"./eventbuilder.js":75,"./feedbackAsync.js":76,"./feedbackSync.js":77,"./helpers.js":78,"./integrations/breadcrumbs.js":80,"./integrations/browserapierrors.js":81,"./integrations/contextlines.js":82,"./integrations/globalhandlers.js":83,"./integrations/httpclient.js":84,"./integrations/httpcontext.js":85,"./integrations/linkederrors.js":86,"./integrations/reportingobserver.js":87,"./metrics.js":88,"./profiling/integration.js":89,"./sdk.js":92,"./stack-parsers.js":93,"./tracing/browserTracingIntegration.js":95,"./tracing/request.js":96,"./transports/fetch.js":97,"./transports/offline.js":98,"./userfeedback.js":99,"./utils/lazyLoadIntegration.js":100,"@sentry-internal/feedback":70,"@sentry-internal/replay":72,"@sentry-internal/replay-canvas":71,"@sentry/core":118}],80:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),o=e("@sentry/utils"),i=e("../debug-build.js"),a=e("../helpers.js"),c=1024,u=s.defineIntegration(((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&o.addConsoleInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:o.severityLevelFromString(t.level),message:o.safeJoin(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${o.safeJoin(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}s.addBreadcrumb(n,{input:t.args,level:t.level})}}(e)),t.dom&&r.addClickKeypressInstrumentationHandler(function(e,t){return function(n){if(s.getClient()!==e)return;let r,a,u="object"==typeof t?t.serializeAttribute:undefined,l="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:undefined;l&&l>c&&(i.DEBUG_BUILD&&o.logger.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${l} was configured. Sentry will use 1024 instead.`),l=c),"string"==typeof u&&(u=[u]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=o.htmlTreeAsString(t,{keyAttrs:u,maxStringLength:l}),a=o.getComponentName(t)}catch(e){r="<unknown>"}if(0===r.length)return;const d={category:`ui.${n.name}`,message:r};a&&(d.data={"ui.component_name":a}),s.addBreadcrumb(d,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&r.addXhrInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const{startTimestamp:n,endTimestamp:i}=t,a=t.xhr[r.SENTRY_XHR_DATA_KEY];if(!n||!i||!a)return;const{method:c,url:u,status_code:l,body:d}=a,p={method:c,url:u,status_code:l},f={xhr:t.xhr,input:d,startTimestamp:n,endTimestamp:i},h=o.getBreadcrumbLogLevelFromHttpStatusCode(l);s.addBreadcrumb({category:"xhr",data:p,type:"http",level:h},f)}}(e)),t.fetch&&o.addFetchInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};s.addBreadcrumb({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,i={...t.fetchData,status_code:e&&e.status},a={input:t.args,response:e,startTimestamp:n,endTimestamp:r},c=o.getBreadcrumbLogLevelFromHttpStatusCode(i.status_code);s.addBreadcrumb({category:"fetch",data:i,type:"http",level:c},a)}}}(e)),t.history&&r.addHistoryInstrumentationHandler(function(e){return function(t){if(s.getClient()!==e)return;let n=t.from,r=t.to;const i=o.parseUrl(a.WINDOW.location.href);let c=n?o.parseUrl(n):undefined;const u=o.parseUrl(r);c&&c.path||(c=i),i.protocol===u.protocol&&i.host===u.host&&(r=u.relative),i.protocol===c.protocol&&i.host===c.host&&(n=c.relative),s.addBreadcrumb({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){s.getClient()===e&&s.addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:o.getEventDescription(t)},{event:t})}}(e))}}}));n.breadcrumbsIntegration=u},{"../debug-build.js":74,"../helpers.js":78,"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],81:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../helpers.js"),i=["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"],a=r.defineIntegration(((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&s.fill(o.WINDOW,"setTimeout",c),t.setInterval&&s.fill(o.WINDOW,"setInterval",c),t.requestAnimationFrame&&s.fill(o.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in o.WINDOW&&s.fill(XMLHttpRequest.prototype,"send",l);const e=t.eventTarget;if(e){(Array.isArray(e)?e:i).forEach(d)}}}}));function c(e){return function(...t){const n=t[0];return t[0]=o.wrap(n,{mechanism:{data:{function:s.getFunctionName(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[o.wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:s.getFunctionName(e)},handled:!1,type:"instrument"}})])}}function l(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&s.fill(n,e,(function(t){const n={mechanism:{data:{function:e,handler:s.getFunctionName(t)},handled:!1,type:"instrument"}},r=s.getOriginalFunction(t);return r&&(n.mechanism.data.handler=s.getFunctionName(r)),o.wrap(t,n)}))})),e.apply(this,t)}}function d(e){const t=o.WINDOW,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(s.fill(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=o.wrap(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:s.getFunctionName(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,o.wrap(r,{mechanism:{data:{function:"addEventListener",handler:s.getFunctionName(r),target:e},handled:!1,type:"instrument"}}),i])}})),s.fill(n,"removeEventListener",(function(e){return function(t,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,s,r)}})))}n.browserApiErrorsIntegration=a},{"../helpers.js":78,"@sentry/core":118,"@sentry/utils":199}],82:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=s.GLOBAL_OBJ,i=r.defineIntegration(((e={})=>{const t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>function(e,t){const n=o.document,r=o.location&&s.stripUrlQueryAndFragment(o.location.href);if(!n||!r)return e;const i=e.exception&&e.exception.values;if(!i||!i.length)return e;const c=n.documentElement.innerHTML;if(!c)return e;const u=["<!DOCTYPE html>","<html>",...c.split("\n"),"</html>"];return i.forEach((e=>{const n=e.stacktrace;n&&n.frames&&(n.frames=n.frames.map((e=>a(e,u,r,t))))})),e}(e,t)}}));function a(e,t,n,r){return e.filename===n&&e.lineno&&t.length?(s.addContextToFrame(t,e,r),e):e}n.applySourceContextToFrame=a,n.contextLinesIntegration=i},{"@sentry/core":118,"@sentry/utils":199}],83:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("../eventbuilder.js"),a=e("../helpers.js"),c=r.defineIntegration(((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){s.addGlobalErrorInstrumentationHandler((t=>{const{stackParser:n,attachStacktrace:o}=l();if(r.getClient()!==e||a.shouldIgnoreOnError())return;const{msg:c,url:u,line:d,column:p,error:f}=t,h=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},c=a.stacktrace=a.stacktrace||{},u=c.frames=c.frames||[],l=isNaN(parseInt(r,10))?undefined:r,d=isNaN(parseInt(n,10))?undefined:n,p=s.isString(t)&&t.length>0?t:s.getLocationHref();0===u.length&&u.push({colno:l,filename:p,function:s.UNKNOWN_FUNCTION,in_app:!0,lineno:d});return e}(i.eventFromUnknownInput(n,f||c,undefined,o,!1),u,d,p);h.level="error",r.captureEvent(h,{originalException:f,mechanism:{handled:!1,type:"onerror"}})}))}(e),u("onerror")),t.onunhandledrejection&&(!function(e){s.addGlobalUnhandledRejectionInstrumentationHandler((t=>{const{stackParser:n,attachStacktrace:o}=l();if(r.getClient()!==e||a.shouldIgnoreOnError())return;const c=function(e){if(s.isPrimitive(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),u=s.isPrimitive(c)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(c)}`}]}}:i.eventFromUnknownInput(n,c,undefined,o,!0);u.level="error",r.captureEvent(u,{originalException:c,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),u("onunhandledrejection"))}}}));function u(e){o.DEBUG_BUILD&&s.logger.log(`Global Handler attached: ${e}`)}function l(){const e=r.getClient();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}n.globalHandlersIntegration=c},{"../debug-build.js":74,"../eventbuilder.js":75,"../helpers.js":78,"@sentry/core":118,"@sentry/utils":199}],84:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),o=e("@sentry/utils"),i=e("../debug-build.js"),a=s.defineIntegration(((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!o.supportsNativeFetch())return;o.addFetchInstrumentationHandler((n=>{if(s.getClient()!==e)return;const{response:r,args:o}=n,[i,a]=o;r&&function(e,t,n,r){if(d(e,n.status,n.url)){const e=function(e,t){if(!t&&e instanceof Request)return e;if(e instanceof Request&&e.bodyUsed)return e;return new Request(e,t)}(t,r);let o,i,a,u;f()&&([o,a]=c("Cookie",e),[i,u]=c("Set-Cookie",n));const l=p({url:e.url,method:e.method,status:n.status,requestHeaders:o,responseHeaders:i,requestCookies:a,responseCookies:u});s.captureEvent(l)}}(t,i,r,a)}))}(e,t),function(e,t){if(!("XMLHttpRequest"in o.GLOBAL_OBJ))return;r.addXhrInstrumentationHandler((n=>{if(s.getClient()!==e)return;const a=n.xhr,c=a[r.SENTRY_XHR_DATA_KEY];if(!c)return;const{method:u,request_headers:h}=c;try{!function(e,t,n,r){if(d(e,t.status,t.responseURL)){let e,a,c;if(f()){try{const e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||undefined;e&&(a=l(e))}catch(e){i.DEBUG_BUILD&&o.logger.log("Could not extract cookies from response headers")}try{c=function(e){const t=e.getAllResponseHeaders();if(!t)return{};return t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return n&&r&&(e[n]=r),e}),{})}(t)}catch(e){i.DEBUG_BUILD&&o.logger.log("Could not extract headers from response")}e=r}const u=p({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:a});s.captureEvent(u)}}(t,a,u,h)}catch(e){i.DEBUG_BUILD&&o.logger.warn("Error while extracting response event form XHR response",e)}}))}(e,t)}}}));function c(e,t){const n=function(e){const t={};return e.forEach(((e,n)=>{t[n]=e})),t}(t.headers);let r;try{const t=n[e]||n[e.toLowerCase()]||undefined;t&&(r=l(t))}catch(t){i.DEBUG_BUILD&&o.logger.log(`Could not extract cookies from header ${e}`)}return[n,r]}function u(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}return undefined}function l(e){return e.split("; ").reduce(((e,t)=>{const[n,r]=t.split("=");return n&&r&&(e[n]=r),e}),{})}function d(e,t,n){return function(e,t){return e.some((e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1]))}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,o=n,r.some((e=>"string"==typeof e?o.includes(e):e.test(o))))&&!s.isSentryRequestUrl(n,s.getClient());var r,o}function p(e){const t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:u(e.responseHeaders)}}};return o.addExceptionMechanism(n,{type:"http.client",handled:!1}),n}function f(){const e=s.getClient();return!!e&&Boolean(e.getOptions().sendDefaultPii)}n.httpClientIntegration=a},{"../debug-build.js":74,"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],85:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("../helpers.js"),o=r.defineIntegration((()=>({name:"HttpContext",preprocessEvent(e){if(!s.WINDOW.navigator&&!s.WINDOW.location&&!s.WINDOW.document)return;const t=e.request&&e.request.url||s.WINDOW.location&&s.WINDOW.location.href,{referrer:n}=s.WINDOW.document||{},{userAgent:r}=s.WINDOW.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}})));n.httpContextIntegration=o},{"../helpers.js":78,"@sentry/core":118}],86:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../eventbuilder.js"),i=r.defineIntegration(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,i){const a=i.getOptions();s.applyAggregateErrorsToEvent(o.exceptionFromError,a.stackParser,a.maxValueLength,n,t,e,r)}}}));n.linkedErrorsIntegration=i},{"../eventbuilder.js":75,"@sentry/core":118,"@sentry/utils":199}],87:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=s.GLOBAL_OBJ,i=new WeakMap,a=r.defineIntegration(((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(i.has(r.getClient()))for(const t of e)r.withScope((e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let s="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;s=[e.crashId||"",e.reason||""].join(" ").trim()||s}else{s=t.body.message||s}}r.captureMessage(`${n}: ${s}`)}))}return{name:"ReportingObserver",setupOnce(){if(!s.supportsReportingObserver())return;new o.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){i.set(e,!0)}}}));n.reportingObserverIntegration=a},{"@sentry/core":118,"@sentry/utils":199}],88:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core");const s={increment:function(e,t=1,n){r.metrics.increment(r.BrowserMetricsAggregator,e,t,n)},distribution:function(e,t,n){r.metrics.distribution(r.BrowserMetricsAggregator,e,t,n)},set:function(e,t,n){r.metrics.set(r.BrowserMetricsAggregator,e,t,n)},gauge:function(e,t,n){r.metrics.gauge(r.BrowserMetricsAggregator,e,t,n)},timing:function(e,t,n="second",s){return r.metrics.timing(r.BrowserMetricsAggregator,e,t,n,s)}};n.metrics=s},{"@sentry/core":118}],89:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("./startProfileForSpan.js"),a=e("./utils.js"),c=r.defineIntegration((()=>({name:"BrowserProfiling",setup(e){const t=r.getActiveSpan(),n=t&&r.getRootSpan(t);n&&a.isAutomatedPageLoadSpan(n)&&a.shouldProfileSpan(n)&&i.startProfileForSpan(n),e.on("spanStart",(e=>{e===r.getRootSpan(e)&&a.shouldProfileSpan(e)&&i.startProfileForSpan(e)})),e.on("beforeEnvelope",(e=>{if(!a.getActiveProfilesCount())return;const t=a.findProfiledTransactionsFromEnvelope(e);if(!t.length)return;const n=[];for(const e of t){const t=e&&e.contexts,r=t&&t.profile&&t.profile.profile_id,i=t&&t.profile&&t.profile.start_timestamp;if("string"!=typeof r){o.DEBUG_BUILD&&s.logger.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){o.DEBUG_BUILD&&s.logger.log("[Profiling] cannot find profile for a span without a profile context");continue}t&&t.profile&&delete t.profile;const c=a.takeProfileFromGlobalCache(r);if(!c){o.DEBUG_BUILD&&s.logger.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const u=a.createProfilingEvent(r,i,c,e);u&&n.push(u)}a.addProfilesToEnvelope(e,n)}))}})));n.browserProfilingIntegration=c},{"../debug-build.js":74,"./startProfileForSpan.js":90,"./utils.js":91,"@sentry/core":118,"@sentry/utils":199}],90:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("../helpers.js"),a=e("./utils.js");n.startProfileForSpan=function(e){let t;a.isAutomatedPageLoadSpan(e)&&(t=1e3*s.timestampInSeconds());const n=a.startJSSelfProfile();if(!n)return;o.DEBUG_BUILD&&s.logger.log(`[Profiling] started profiling span: ${r.spanToJSON(e).description}`);const c=s.uuid4();async function u(){if(e&&n)return n.stop().then((t=>{l&&(i.WINDOW.clearTimeout(l),l=undefined),o.DEBUG_BUILD&&s.logger.log(`[Profiling] stopped profiling of span: ${r.spanToJSON(e).description}`),t?a.addProfileToGlobalCache(c,t):o.DEBUG_BUILD&&s.logger.log(`[Profiling] profiler returned null profile for: ${r.spanToJSON(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")})).catch((e=>{o.DEBUG_BUILD&&s.logger.log("[Profiling] error while stopping profiler:",e)}))}r.getCurrentScope().setContext("profile",{profile_id:c,start_timestamp:t});let l=i.WINDOW.setTimeout((()=>{o.DEBUG_BUILD&&s.logger.log("[Profiling] max profile duration elapsed, stopping profiling for:",r.spanToJSON(e).description),u()}),a.MAX_PROFILE_DURATION_MS);const d=e.end.bind(e);e.end=function(){return e?(u().then((()=>{d()}),(()=>{d()})),e):d()}}},{"../debug-build.js":74,"../helpers.js":78,"./utils.js":91,"@sentry/core":118,"@sentry/utils":199}],91:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("../helpers.js"),a=1e6,c=String(0),u="main";let l="",d="",p="",f=i.WINDOW.navigator&&i.WINDOW.navigator.userAgent||"",h="";const m=i.WINDOW.navigator&&i.WINDOW.navigator.language||i.WINDOW.navigator&&i.WINDOW.navigator.languages&&i.WINDOW.navigator.languages[0]||"";const g=i.WINDOW.navigator&&i.WINDOW.navigator.userAgentData;var y;function _(e){return function(e){return!("thread_metadata"in e)}(e)?S(e):e}function b(e,t,n,a){if("transaction"!==a.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n===undefined||null===n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const u=function(e){const t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return"string"==typeof t&&32!==t.length&&o.DEBUG_BUILD&&s.logger.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(a),g=_(n),y=t||("number"==typeof a.start_timestamp?1e3*a.start_timestamp:1e3*s.timestampInSeconds()),b="number"==typeof a.timestamp?1e3*a.timestamp:1e3*s.timestampInSeconds();return{event_id:e,timestamp:new Date(y).toISOString(),platform:"javascript",version:"1",release:a.release||"",environment:a.environment||r.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:i.WINDOW.navigator.userAgent},os:{name:l,version:d,build_number:f},device:{locale:m,model:h,manufacturer:f,architecture:p,is_emulator:!1},debug_meta:{images:v(n.resources)},profile:g,transactions:[{name:a.transaction||"",id:a.event_id||s.uuid4(),trace_id:u,active_thread_id:c,relative_start_ns:"0",relative_end_ns:(1e6*(b-y)).toFixed(0)}]}}function S(e){let t=undefined,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[c]:{name:u}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,l="number"==typeof performance.timeOrigin?performance.timeOrigin:s.browserPerformanceTimeOrigin||0,d=l-(s.browserPerformanceTimeOrigin||l);return e.samples.forEach(((s,o)=>{if(s.stackId===undefined)return t===undefined&&(t=n,r.stacks[t]=[],n++),void(r.samples[o]={elapsed_since_start_ns:((s.timestamp+d-i)*a).toFixed(0),stack_id:t,thread_id:c});let u=e.stacks[s.stackId];const l=[];for(;u;){l.push(u.frameId);const t=e.frames[u.frameId];t&&r.frames[u.frameId]===undefined&&(r.frames[u.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:undefined,lineno:t.line,colno:t.column}),u=u.parentId===undefined?undefined:e.stacks[u.parentId]}const p={elapsed_since_start_ns:((s.timestamp+d-i)*a).toFixed(0),stack_id:n,thread_id:c};r.stacks[n]=l,r.samples[o]=p,n++})),r}"object"==typeof(y=g)&&null!==y&&"getHighEntropyValues"in y&&g.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((e=>{if(l=e.platform||"",p=e.architecture||"",h=e.model||"",d=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){const t=e.fullVersionList[e.fullVersionList.length-1];f=`${t.brand} ${t.version}`}})).catch((e=>{}));const E=new WeakMap;function v(e){const t=s.GLOBAL_OBJ._sentryDebugIds;if(!t)return[];const n=r.getClient(),o=n&&n.getOptions(),i=o&&o.stackParser;if(!i)return[];let a;const c=E.get(i);c?a=c:(a=new Map,E.set(i,a));const u=Object.keys(t).reduce(((e,n)=>{let r;const s=a.get(n);s?r=s:(r=i(n),a.set(n,r));for(let s=r.length-1;s>=0;s--){const o=r[s],i=o&&o.filename;if(o&&i){e[i]=t[n];break}}return e}),{}),l=[];for(const t of e)t&&u[t]&&l.push({type:"sourcemap",code_file:t,debug_id:u[t]});return l}function I(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(o.DEBUG_BUILD&&s.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||(!(e<0||e>1)||(o.DEBUG_BUILD&&s.logger.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}let w=!1;const T=new Map;n.MAX_PROFILE_DURATION_MS=3e4,n.addProfileToGlobalCache=function(e,t){if(T.set(e,t),T.size>30){const e=T.keys().next().value;T.delete(e)}},n.addProfilesToEnvelope=function(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e},n.applyDebugMetadata=v,n.convertJSSelfProfileToSampledFormat=S,n.createProfilePayload=b,n.createProfilingEvent=function(e,t,n,r){return function(e){return e.samples.length<2?(o.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):!!e.frames.length||(o.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?b(e,t,n,r):null},n.enrichWithThreadInformation=_,n.findProfiledTransactionsFromEnvelope=function(e){const t=[];return s.forEachEnvelopeItem(e,((e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r&&r.contexts&&r.contexts.profile&&r.contexts.profile.profile_id&&t.push(e[n])}})),t},n.getActiveProfilesCount=function(){return T.size},n.isAutomatedPageLoadSpan=function(e){return"pageload"===r.spanToJSON(e).op},n.isValidSampleRate=I,n.shouldProfileSpan=function(e){if(w)return o.DEBUG_BUILD&&s.logger.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return o.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const t=r.getClient(),n=t&&t.getOptions();if(!n)return o.DEBUG_BUILD&&s.logger.log("[Profiling] Profiling disabled, no options found."),!1;const i=n.profilesSampleRate;return I(i)?i?!!(!0===i||Math.random()<i)||(o.DEBUG_BUILD&&s.logger.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(i)})`),!1):(o.DEBUG_BUILD&&s.logger.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(o.DEBUG_BUILD&&s.logger.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)},n.startJSSelfProfile=function(){const e=i.WINDOW.Profiler;if("function"!=typeof e)return void(o.DEBUG_BUILD&&s.logger.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){o.DEBUG_BUILD&&(s.logger.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),s.logger.log("[Profiling] Disabling profiling for current user session.")),w=!0}},n.takeProfileFromGlobalCache=function(e){const t=T.get(e);return t&&T.delete(e),t}},{"../debug-build.js":74,"../helpers.js":78,"@sentry/core":118,"@sentry/utils":199}],92:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("@sentry-internal/browser-utils"),i=e("./client.js"),a=e("./debug-build.js"),c=e("./helpers.js"),u=e("./integrations/breadcrumbs.js"),l=e("./integrations/browserapierrors.js"),d=e("./integrations/globalhandlers.js"),p=e("./integrations/httpcontext.js"),f=e("./integrations/linkederrors.js"),h=e("./stack-parsers.js"),m=e("./transports/fetch.js");function g(e){return[r.inboundFiltersIntegration(),r.functionToStringIntegration(),l.browserApiErrorsIntegration(),u.breadcrumbsIntegration(),d.globalHandlersIntegration(),f.linkedErrorsIntegration(),r.dedupeIntegration(),p.httpContextIntegration()]}n.captureUserFeedback=function(e){const t=r.getClient();t&&t.captureUserFeedback(e)},n.forceLoad=function(){},n.getDefaultIntegrations=g,n.init=function(e={}){const t=function(e={}){const t={defaultIntegrations:g(),release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:c.WINDOW.SENTRY_RELEASE&&c.WINDOW.SENTRY_RELEASE.id?c.WINDOW.SENTRY_RELEASE.id:undefined,autoSessionTracking:!0,sendClientReports:!0};return null==e.defaultIntegrations&&delete e.defaultIntegrations,{...t,...e}}(e);if(function(){const e=void 0!==c.WINDOW.window&&c.WINDOW;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t&&t.runtime&&t.runtime.id,r=c.WINDOW.location&&c.WINDOW.location.href||"",s=!!n&&c.WINDOW===c.WINDOW.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>r.startsWith(`${e}//`))),o=void 0!==e.nw;return!!n&&!s&&!o}())return void s.consoleSandbox((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));a.DEBUG_BUILD&&(s.supportsFetch()||s.logger.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:s.stackParserFromStackParserOptions(t.stackParser||h.defaultStackParser),integrations:r.getIntegrationsToSetup(t),transport:t.transport||m.makeFetchTransport},u=r.initAndBind(i.BrowserClient,n);return t.autoSessionTracking&&function(){if(void 0===c.WINDOW.document)return void(a.DEBUG_BUILD&&s.logger.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));r.startSession({ignoreDuration:!0}),r.captureSession(),o.addHistoryInstrumentationHandler((({from:e,to:t})=>{e!==undefined&&e!==t&&(r.startSession({ignoreDuration:!0}),r.captureSession())}))}(),u},n.onLoad=function(e){e()},n.showReportDialog=function(e={}){if(!c.WINDOW.document)return void(a.DEBUG_BUILD&&s.logger.error("Global document not defined in showReportDialog call"));const t=r.getCurrentScope(),n=t.getClient(),o=n&&n.getDsn();if(!o)return void(a.DEBUG_BUILD&&s.logger.error("DSN not configured for showReportDialog call"));if(t&&(e.user={...t.getUser(),...e.user}),!e.eventId){const t=r.lastEventId();t&&(e.eventId=t)}const i=c.WINDOW.document.createElement("script");i.async=!0,i.crossOrigin="anonymous",i.src=r.getReportDialogEndpoint(o,e),e.onLoad&&(i.onload=e.onLoad);const{onClose:u}=e;if(u){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{c.WINDOW.removeEventListener("message",e)}};c.WINDOW.addEventListener("message",e)}const l=c.WINDOW.document.head||c.WINDOW.document.body;l?l.appendChild(i):a.DEBUG_BUILD&&s.logger.error("Not injecting report dialog. No injection point found in HTML")}},{"./client.js":73,"./debug-build.js":74,"./helpers.js":78,"./integrations/breadcrumbs.js":80,"./integrations/browserapierrors.js":81,"./integrations/globalhandlers.js":83,"./integrations/httpcontext.js":85,"./integrations/linkederrors.js":86,"./stack-parsers.js":93,"./transports/fetch.js":97,"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],93:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e,t,n,s){const o={filename:e,function:"<anonymous>"===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return n!==undefined&&(o.lineno=n),s!==undefined&&(o.colno=s),o}const o=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,i=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/\((\S*)(?::(\d+))(?::(\d+))\)/,c=[30,e=>{const t=o.exec(e);if(t){const[,e,n,o]=t;return s(e,r.UNKNOWN_FUNCTION,+n,+o)}const n=i.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=a.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=S(n[1]||r.UNKNOWN_FUNCTION,n[2]);return s(t,e,n[3]?+n[3]:undefined,n[4]?+n[4]:undefined)}}],u=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,l=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=l.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.UNKNOWN_FUNCTION;return[n,e]=S(n,e),s(e,n,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,f=[40,e=>{const t=p.exec(e);return t?s(t[2],t[1]||r.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:undefined):undefined}],h=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,m=[10,e=>{const t=h.exec(e);return t?s(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):undefined}],g=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,y=[20,e=>{const t=g.exec(e);return t?s(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):undefined}],_=[c,d],b=r.createStackParser(..._),S=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),s=-1!==e.indexOf("safari-web-extension");return n||s?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};n.chromeStackLineParser=c,n.defaultStackLineParsers=_,n.defaultStackParser=b,n.geckoStackLineParser=d,n.opera10StackLineParser=m,n.opera11StackLineParser=y,n.winjsStackLineParser=f},{"@sentry/utils":199}],94:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("../debug-build.js"),i=e("../helpers.js");n.registerBackgroundTabDetection=function(){i.WINDOW&&i.WINDOW.document?i.WINDOW.document.addEventListener("visibilitychange",(()=>{const e=r.getActiveSpan();if(!e)return;const t=r.getRootSpan(e);if(i.WINDOW.document.hidden&&t){const e="cancelled",{op:n,status:i}=r.spanToJSON(t);o.DEBUG_BUILD&&s.logger.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),i||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):o.DEBUG_BUILD&&s.logger.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},{"../debug-build.js":74,"../helpers.js":78,"@sentry/core":118,"@sentry/utils":199}],95:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),o=e("@sentry/utils"),i=e("../debug-build.js"),a=e("../helpers.js"),c=e("./backgroundtab.js"),u=e("./request.js"),l="BrowserTracing",d={...s.TRACING_DEFAULTS,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...u.defaultRequestInstrumentationOptions};function p(e,t,n){e.emit("startPageLoadSpan",t,n),s.getCurrentScope().setTransactionName(t.name);const r=s.getActiveSpan();return"pageload"===(r&&s.spanToJSON(r).op)?r:undefined}function f(e,t){s.getIsolationScope().setPropagationContext(o.generatePropagationContext()),s.getCurrentScope().setPropagationContext(o.generatePropagationContext()),e.emit("startNavigationSpan",t),s.getCurrentScope().setTransactionName(t.name);const n=s.getActiveSpan();return"navigation"===(n&&s.spanToJSON(n).op)?n:undefined}function h(e){const t=o.getDomElement(`meta[name=${e}]`);return t?t.getAttribute("content"):undefined}n.BROWSER_TRACING_INTEGRATION_ID=l,n.browserTracingIntegration=(e={})=>{s.registerSpanErrorInstrumentation();const{enableInp:t,enableLongTask:n,enableLongAnimationFrame:m,_experiments:{enableInteractions:g,enableStandaloneClsSpans:y},beforeStartSpan:_,idleTimeout:b,finalTimeout:S,childSpanTimeout:E,markBackgroundSpan:v,traceFetch:I,traceXHR:w,shouldCreateSpanForRequest:T,enableHTTPTimings:A,instrumentPageLoad:C,instrumentNavigation:x}={...d,...e},k=r.startTrackingWebVitals({recordClsStandaloneSpans:y||!1});t&&r.startTrackingINP(),m&&o.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?r.startTrackingLongAnimationFrames():n&&r.startTrackingLongTasks(),g&&r.startTrackingInteractions();const j={name:undefined,source:undefined};function R(e,t){const n="pageload"===t.op,o=_?_(t):t,i=o.attributes||{};t.name!==o.name&&(i[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",o.attributes=i),j.name=o.name,j.source=i[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const c=s.startIdleSpan(o,{idleTimeout:b,finalTimeout:S,childSpanTimeout:E,disableAutoFinish:n,beforeSpanEnd:e=>{k(),r.addPerformanceEntries(e,{recordClsOnPageloadSpan:!y})}});function u(){["interactive","complete"].includes(a.WINDOW.document.readyState)&&e.emit("idleSpanEnableAutoFinish",c)}return n&&a.WINDOW.document&&(a.WINDOW.document.addEventListener("readystatechange",(()=>{u()})),u()),c}return{name:l,afterAllSetup(e){let n,l=a.WINDOW.location&&a.WINDOW.location.href;e.on("startNavigationSpan",(t=>{s.getClient()===e&&(n&&!s.spanToJSON(n).timestamp&&(i.DEBUG_BUILD&&o.logger.log(`[Tracing] Finishing current root span with op: ${s.spanToJSON(n).op}`),n.end()),n=R(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(s.getClient()!==e)return;n&&!s.spanToJSON(n).timestamp&&(i.DEBUG_BUILD&&o.logger.log(`[Tracing] Finishing current root span with op: ${s.spanToJSON(n).op}`),n.end());const a=r.sentryTrace||h("sentry-trace"),c=r.baggage||h("baggage"),u=o.propagationContextFromHeaders(a,c);s.getCurrentScope().setPropagationContext(u),n=R(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=s.spanToJSON(e).op;if(e!==s.getRootSpan(e)||"navigation"!==t&&"pageload"!==t)return;const n=s.getCurrentScope(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:r.sampled!==undefined?r.sampled:s.spanIsSampled(e),dsc:r.dsc||s.getDynamicSamplingContextFromSpan(e)})})),a.WINDOW.location&&(C&&p(e,{name:a.WINDOW.location.pathname,startTime:o.browserPerformanceTimeOrigin?o.browserPerformanceTimeOrigin/1e3:undefined,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}}),x&&r.addHistoryInstrumentationHandler((({to:t,from:n})=>{n===undefined&&l&&-1!==l.indexOf(t)?l=undefined:n!==t&&(l=undefined,f(e,{name:a.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}}))}))),v&&c.registerBackgroundTabDetection(),g&&function(e,t,n,r){let c;const u=()=>{const a="ui.action.click",u=s.getActiveSpan(),l=u&&s.getRootSpan(u);if(l){const e=s.spanToJSON(l).op;if(["navigation","pageload"].includes(e))return i.DEBUG_BUILD&&o.logger.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`),undefined}if(c&&(c.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),c.end(),c=undefined),!r.name)return i.DEBUG_BUILD&&o.logger.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`),undefined;c=s.startIdleSpan({name:r.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n})};a.WINDOW.document&&addEventListener("click",u,{once:!1,capture:!0})}(b,S,E,j),t&&r.registerInpInteractionListener(),u.instrumentOutgoingRequests(e,{traceFetch:I,traceXHR:w,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:T,enableHTTPTimings:A})}}},n.getMetaContent=h,n.startBrowserTracingNavigationSpan=f,n.startBrowserTracingPageLoadSpan=p},{"../debug-build.js":74,"../helpers.js":78,"./backgroundtab.js":94,"./request.js":96,"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],96:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),o=e("@sentry/utils"),i=e("../helpers.js"),a=new WeakMap,c=new Map,u={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function l(e){const{url:t}=s.spanToJSON(e).data||{};if(!t||"string"!=typeof t)return;const n=r.addPerformanceInstrumentationHandler("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){(function(e){const{name:t,version:n}=d(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!o.browserPerformanceTimeOrigin)return r;return[...r,["http.request.redirect_start",p(e.redirectStart)],["http.request.fetch_start",p(e.fetchStart)],["http.request.domain_lookup_start",p(e.domainLookupStart)],["http.request.domain_lookup_end",p(e.domainLookupEnd)],["http.request.connect_start",p(e.connectStart)],["http.request.secure_connection_start",p(e.secureConnectionStart)],["http.request.connection_end",p(e.connectEnd)],["http.request.request_start",p(e.requestStart)],["http.request.response_start",p(e.responseStart)],["http.request.response_end",p(e.responseEnd)]]})(r).forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function d(e){let t="unknown",n="unknown",r="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function p(e=0){return((o.browserPerformanceTimeOrigin||performance.timeOrigin)+e)/1e3}function f(e,t){const n=i.WINDOW.location&&i.WINDOW.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch(e){return!1}const i=r.origin===s;return t?o.stringMatchesSomePattern(r.toString(),t)||i&&o.stringMatchesSomePattern(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?o.stringMatchesSomePattern(e,t):n}}function h(e,t,n,i){const a=e.xhr,c=a&&a[r.SENTRY_XHR_DATA_KEY];if(!a||a.__sentry_own_request__||!c)return undefined;const u=s.hasTracingEnabled()&&t(c.url);if(e.endTimestamp&&u){const e=a.__sentry_xhr_span_id__;if(!e)return;const t=i[e];return t&&c.status_code!==undefined&&(s.setHttpStatus(t,c.status_code),t.end(),delete i[e]),undefined}const l=m(c.url),d=l?o.parseUrl(l).host:undefined,p=!!s.getActiveSpan(),f=u&&p?s.startInactiveSpan({name:`${c.method} ${c.url}`,attributes:{type:"xhr","http.method":c.method,"http.url":l,url:c.url,"server.address":d,[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new s.SentryNonRecordingSpan;a.__sentry_xhr_span_id__=f.spanContext().spanId,i[a.__sentry_xhr_span_id__]=f;const h=s.getClient();return a.setRequestHeader&&n(c.url)&&h&&function(e,t,n){const r=s.getCurrentScope(),i=s.getIsolationScope(),{traceId:a,spanId:c,sampled:u,dsc:l}={...i.getPropagationContext(),...r.getPropagationContext()},d=n&&s.hasTracingEnabled()?s.spanToTraceHeader(n):o.generateSentryTraceHeader(a,c,u),p=o.dynamicSamplingContextToSentryBaggageHeader(l||(n?s.getDynamicSamplingContextFromSpan(n):s.getDynamicSamplingContextFromClient(a,t)));!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(o.BAGGAGE_HEADER_NAME,n)}catch(e){}}(e,d,p)}(a,h,s.hasTracingEnabled()&&p?f:undefined),f}function m(e){try{return new URL(e,i.WINDOW.location.origin).href}catch(e){return undefined}}n.defaultRequestInstrumentationOptions=u,n.extractNetworkProtocol=d,n.instrumentOutgoingRequests=function(e,t){const{traceFetch:n,traceXHR:i,shouldCreateSpanForRequest:d,enableHTTPTimings:p,tracePropagationTargets:g}={traceFetch:u.traceFetch,traceXHR:u.traceXHR,...t},y="function"==typeof d?d:e=>!0,_=e=>f(e,g),b={};n&&(e.addEventProcessor((e=>("transaction"===e.type&&e.spans&&e.spans.forEach((e=>{if("http.client"===e.op){const t=c.get(e.span_id);t&&(e.timestamp=t/1e3,c.delete(e.span_id))}})),e))),o.addFetchEndInstrumentationHandler((e=>{if(e.response){const t=a.get(e.response);t&&e.endTimestamp&&c.set(t,e.endTimestamp)}})),o.addFetchInstrumentationHandler((e=>{const t=s.instrumentFetchRequest(e,y,_,b);if(e.response&&e.fetchData.__span&&a.set(e.response,e.fetchData.__span),t){const n=m(e.fetchData.url),r=n?o.parseUrl(n).host:undefined;t.setAttributes({"http.url":n,"server.address":r})}p&&t&&l(t)}))),i&&r.addXhrInstrumentationHandler((e=>{const t=h(e,y,_,b);p&&t&&l(t)}))},n.shouldAttachHeaders=f,n.xhrCallback=h},{"../helpers.js":78,"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],97:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry-internal/browser-utils"),s=e("@sentry/core"),o=e("@sentry/utils");n.makeFetchTransport=function(e,t=r.getNativeImplementation("fetch")){let n=0,i=0;return s.createTransport(e,(function(s){const a=s.body.length;n+=a,i++;const c={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&i<15,...e.fetchOptions};if(!t)return r.clearCachedImplementation("fetch"),o.rejectedSyncPromise("No fetch implementation available");try{return t(e.url,c).then((e=>(n-=a,i--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return r.clearCachedImplementation("fetch"),n-=a,i--,o.rejectedSyncPromise(e)}}))}},{"@sentry-internal/browser-utils":43,"@sentry/core":118,"@sentry/utils":199}],98:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/core"),s=e("@sentry/utils"),o=e("./fetch.js");function i(e){return new Promise(((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)}))}function a(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=i(n);return e=>r.then((n=>e(n.transaction(t,"readwrite").objectStore(t))))}function c(e){return i(e.getAllKeys())}function u(e,t,n){return e((e=>c(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),i(e.transaction)}))))}function l(e,t,n){return e((e=>c(e).then((r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),i(e.transaction)}))))}function d(e){return e((e=>c(e).then((t=>{const n=t[0];return null==n?undefined:i(e.get(n)).then((t=>(e.delete(n),i(e.transaction).then((()=>t)))))}))))}function p(e){let t;function n(){return t==undefined&&(t=a(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>{try{const r=await s.serializeEnvelope(t);await u(n(),r,e.maxQueueSize||30)}catch(e){}},unshift:async t=>{try{const r=await s.serializeEnvelope(t);await l(n(),r,e.maxQueueSize||30)}catch(e){}},shift:async()=>{try{const e=await d(n());if(e)return s.parseEnvelope(e)}catch(e){}return undefined}}}n.createStore=a,n.makeBrowserOfflineTransport=function(e=o.makeFetchTransport){return function(e){return t=>e({...t,createStore:p})}(r.makeOfflineTransport(e))},n.push=u,n.shift=d,n.unshift=l},{"./fetch.js":97,"@sentry/core":118,"@sentry/utils":199}],99:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.createUserFeedbackEnvelope=function(e,{metadata:t,tunnel:n,dsn:s}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!s&&{dsn:r.dsnToString(s)}},i=function(e){return[{type:"user_report"},e]}(e);return r.createEnvelope(o,[i])}},{"@sentry/utils":199}],100:[function(e,t,n){n.lazyLoadIntegration=async function(e,t){throw new Error("Use of @sentry/browser's lazyLoadIntegration function is not supported by MetaMask Extension")}},{}],101:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="7";function o(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}n.getEnvelopeEndpointWithUrlEncodedAuth=function(e,t,n){return t||`${function(e){return`${o(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return r.urlEncode({sentry_key:e.publicKey,sentry_version:s,...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,n)}`},n.getReportDialogEndpoint=function(e,t){const n=r.makeDsn(e);if(!n)return"";const s=`${o(n)}embed/error-page/`;let i=`dsn=${r.dsnToString(n)}`;for(const e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){const e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${s}?${i}`}},{"@sentry/utils":199}],102:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../carrier.js"),s=e("./stackStrategy.js");n.getAsyncContextStrategy=function(e){const t=r.getSentryCarrier(e);return t.acs?t.acs:s.getStackAsyncContextStrategy()},n.setAsyncContextStrategy=function(e){const t=r.getMainCarrier();r.getSentryCarrier(t).acs=e}},{"../carrier.js":106,"./stackStrategy.js":103}],103:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../defaultScopes.js"),o=e("../scope.js"),i=e("../carrier.js");class a{constructor(e,t){let n,r;n=e||new o.Scope,r=t||new o.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return r.isThenable(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=i.getMainCarrier(),t=i.getSentryCarrier(e);return t.stack=t.stack||new a(s.getDefaultCurrentScope(),s.getDefaultIsolationScope())}function u(e){return c().withScope(e)}function l(e,t){const n=c();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function d(e){return c().withScope((()=>e(c().getIsolationScope())))}n.AsyncContextStack=a,n.getStackAsyncContextStrategy=function(){return{withIsolationScope:d,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>d(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},{"../carrier.js":106,"../defaultScopes.js":111,"../scope.js":144,"@sentry/utils":199}],104:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./api.js"),o=e("./currentScopes.js"),i=e("./debug-build.js"),a=e("./envelope.js"),c=e("./integration.js"),u=e("./session.js"),l=e("./tracing/dynamicSamplingContext.js"),d=e("./utils/parseSampleRate.js"),p=e("./utils/prepareEvent.js"),f="Not capturing exception because it's already been captured.";function h(e){return e.type===undefined}function m(e){return"transaction"===e.type}n.BaseClient=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=r.makeDsn(e.dsn):i.DEBUG_BUILD&&r.logger.warn("No DSN provided, client will not send events."),this._dsn){const t=s.getEnvelopeEndpointWithUrlEncodedAuth(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:undefined);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const s=r.uuid4();if(r.checkOrSetAlreadyCaught(e))return i.DEBUG_BUILD&&r.logger.log(f),s;const o={event_id:s,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,s){const o={event_id:r.uuid4(),...n},i=r.isParameterizedString(e)?e:String(e),a=r.isPrimitive(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(a.then((e=>this._captureEvent(e,o,s)))),o.event_id}captureEvent(e,t,n){const s=r.uuid4();if(t&&t.originalException&&r.checkOrSetAlreadyCaught(t.originalException))return i.DEBUG_BUILD&&r.logger.log(f),s;const o={event_id:s,...t},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,o,a||n)),o.event_id}captureSession(e){"string"!=typeof e.release?i.DEBUG_BUILD&&r.logger.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),u.updateSession(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):r.resolvedSyncPromise(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];c.setupIntegration(this,e,this._integrations),t||c.afterSetupIntegrations(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=a.createEventEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=r.addItemToEnvelope(n,r.createAttachmentEnvelopeItem(e));const s=this.sendEnvelope(n);s&&s.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=a.createSessionEnvelope(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const s="number"==typeof n?n:1,o=`${e}:${t}`;i.DEBUG_BUILD&&r.logger.log(`Recording outcome: "${o}"${s>1?` (${s} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+s}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(i.DEBUG_BUILD&&r.logger.error("Error while sending event:",e),e))):(i.DEBUG_BUILD&&r.logger.error("Transport disabled"),r.resolvedSyncPromise({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=c.setupIntegrations(this,e),c.afterSetupIntegrations(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const s=t.exception&&t.exception.values;if(s){r=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const o="ok"===e.status;(o&&0===e.errors||o&&n)&&(u.updateSession(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new r.SyncPromise((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&this._transport!==undefined}_prepareEvent(e,t,n,s=o.getIsolationScope()){const i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a.length>0&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||s.setLastEventId(e.event_id||t.event_id),p.prepareEvent(i,e,t,n,this,s).then((e=>{if(null===e)return e;const t={...s.getPropagationContext(),...n?n.getPropagationContext():undefined};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:n,spanId:s,parentSpanId:o,dsc:i}=t;e.contexts={trace:r.dropUndefinedKeys({trace_id:n,span_id:s,parent_span_id:o}),...e.contexts};const a=i||l.getDynamicSamplingContextFromClient(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:a,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(i.DEBUG_BUILD){const t=e;"log"===t.logLevel?r.logger.log(t.message):r.logger.warn(t)}return undefined}))}_processEvent(e,t,n){const s=this.getOptions(),{sampleRate:o}=s,i=m(e),a=h(e),c=e.type||"error",u=`before send for type \`${c}\``,l=void 0===o?undefined:d.parseSampleRate(o);if(a&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",e),r.rejectedSyncPromise(new r.SentryError(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const p="replay_event"===c?"replay":c,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",p,e),new r.SentryError("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,beforeSendSpan:i}=t;if(h(n)&&s)return s(n,r);if(m(n)){if(n.spans&&i){const t=[];for(const r of n.spans){const n=i(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(o){if(n.spans){const e=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(n,r)}}return n}(this,s,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(r.isThenable(e))return e.then((e=>{if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e}),(e=>{throw new r.SentryError(`${t} rejected with ${e}`)}));if(!r.isPlainObject(e)&&null!==e)throw new r.SentryError(n);return e}(o,u)})).then((s=>{if(null===s){if(this.recordDroppedEvent("before_send",p,e),i){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new r.SentryError(`${u} returned \`null\`, will not send event.`,"log")}const o=n&&n.getSession();if(!i&&o&&this._updateSessionFromEvent(o,s),i){const e=(s.sdkProcessingMetadata&&s.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(s.spans?s.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const a=s.transaction_info;if(i&&a&&s.transaction!==e.transaction){const e="custom";s.transaction_info={...a,source:e}}return this.sendEvent(s,t),s})).then(null,(e=>{if(e instanceof r.SentryError)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new r.SentryError(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){i.DEBUG_BUILD&&r.logger.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(i.DEBUG_BUILD&&r.logger.log("No outcomes to send"));if(!this._dsn)return void(i.DEBUG_BUILD&&r.logger.log("No dsn provided, will not send outcomes"));i.DEBUG_BUILD&&r.logger.log("Sending outcomes:",e);const t=r.createClientReportEnvelope(e,this._options.tunnel&&r.dsnToString(this._dsn));this.sendEnvelope(t)}}},{"./api.js":101,"./currentScopes.js":109,"./debug-build.js":110,"./envelope.js":112,"./integration.js":119,"./session.js":148,"./tracing/dynamicSamplingContext.js":150,"./utils/parseSampleRate.js":172,"./utils/prepareEvent.js":173,"@sentry/utils":199}],105:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=100;n.addBreadcrumb=function(e,t){const n=s.getClient(),i=s.getIsolationScope();if(!n)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:c=o}=n.getOptions();if(c<=0)return;const u={timestamp:r.dateTimestampInSeconds(),...e},l=a?r.consoleSandbox((()=>a(u,t))):u;null!==l&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),i.addBreadcrumb(l,c))}},{"./currentScopes.js":109,"@sentry/utils":199}],106:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}n.getMainCarrier=function(){return s(r.GLOBAL_OBJ),r.GLOBAL_OBJ},n.getSentryCarrier=s},{"@sentry/utils":199}],107:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.createCheckInEnvelope=function(e,t,n,s,o){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),s&&o&&(i.dsn=r.dsnToString(o)),t&&(i.trace=r.dropUndefinedKeys(t));const a=function(e){return[{type:"check_in"},e]}(e);return r.createEnvelope(i,[a])}},{"@sentry/utils":199}],108:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.DEFAULT_ENVIRONMENT="production"},{}],109:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./asyncContext/index.js"),o=e("./carrier.js"),i=e("./scope.js");function a(){const e=o.getMainCarrier();return s.getAsyncContextStrategy(e).getCurrentScope()}n.getClient=function(){return a().getClient()},n.getCurrentScope=a,n.getGlobalScope=function(){return r.getGlobalSingleton("globalScope",(()=>new i.Scope))},n.getIsolationScope=function(){const e=o.getMainCarrier();return s.getAsyncContextStrategy(e).getIsolationScope()},n.withIsolationScope=function(...e){const t=o.getMainCarrier(),n=s.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])},n.withScope=function(...e){const t=o.getMainCarrier(),n=s.getAsyncContextStrategy(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}},{"./asyncContext/index.js":102,"./carrier.js":106,"./scope.js":144,"@sentry/utils":199}],110:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{dup:41}],111:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./scope.js");n.getDefaultCurrentScope=function(){return r.getGlobalSingleton("defaultCurrentScope",(()=>new s.Scope))},n.getDefaultIsolationScope=function(){return r.getGlobalSingleton("defaultIsolationScope",(()=>new s.Scope))}},{"./scope.js":144,"@sentry/utils":199}],112:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./tracing/dynamicSamplingContext.js"),o=e("./utils/spanUtils.js");n.createEventEnvelope=function(e,t,n,s){const o=r.getSdkMetadataForEnvelopeHeader(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=r.createEventEnvelopeHeaders(e,o,s,t);delete e.sdkProcessingMetadata;const c=[{type:i},e];return r.createEnvelope(a,[c])},n.createSessionEnvelope=function(e,t,n,s){const o=r.getSdkMetadataForEnvelopeHeader(n),i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!s&&t&&{dsn:r.dsnToString(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return r.createEnvelope(i,[a])},n.createSpanEnvelope=function(e,t){const n=s.getDynamicSamplingContextFromSpan(e[0]),i=t&&t.getDsn(),a=t&&t.getOptions().tunnel,c={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!a&&i&&{dsn:r.dsnToString(i)}},u=t&&t.getOptions().beforeSendSpan,l=u?e=>u(o.spanToJSON(e)):e=>o.spanToJSON(e),d=[];for(const t of e){const e=l(t);e&&d.push(r.createSpanEnvelopeItem(e))}return r.createEnvelope(c,d)}},{"./tracing/dynamicSamplingContext.js":150,"./utils/spanUtils.js":176,"@sentry/utils":199}],113:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./debug-build.js");n.notifyEventProcessors=function e(t,n,o,i=0){return new r.SyncPromise(((a,c)=>{const u=t[i];if(null===n||"function"!=typeof u)a(n);else{const l=u({...n},o);s.DEBUG_BUILD&&u.id&&null===l&&r.logger.log(`Event processor "${u.id}" dropped event`),r.isThenable(l)?l.then((n=>e(t,n,o,i+1).then(a))).then(null,c):e(t,l,o,i+1).then(a).then(null,c)}}))}},{"./debug-build.js":110,"@sentry/utils":199}],114:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./constants.js"),o=e("./currentScopes.js"),i=e("./debug-build.js"),a=e("./session.js"),c=e("./utils/prepareEvent.js");function u(e,t){const n=o.getCurrentScope(),s=o.getClient();if(s){if(s.captureCheckIn)return s.captureCheckIn(e,t,n);i.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. Client does not support sending check-ins.")}else i.DEBUG_BUILD&&r.logger.warn("Cannot capture check-in. No client defined.");return r.uuid4()}function l(){const e=o.getIsolationScope(),t=o.getCurrentScope(),n=t.getSession()||e.getSession();n&&a.closeSession(n),d(),e.setSession(),t.setSession()}function d(){const e=o.getIsolationScope(),t=o.getCurrentScope(),n=o.getClient(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}n.addEventProcessor=function(e){o.getIsolationScope().addEventProcessor(e)},n.captureCheckIn=u,n.captureEvent=function(e,t){return o.getCurrentScope().captureEvent(e,t)},n.captureException=function(e,t){return o.getCurrentScope().captureException(e,c.parseEventHintOrCaptureContext(t))},n.captureMessage=function(e,t){const n="string"==typeof t?t:undefined,r="string"!=typeof t?{captureContext:t}:undefined;return o.getCurrentScope().captureMessage(e,n,r)},n.captureSession=function(e=!1){e?l():d()},n.close=async function(e){const t=o.getClient();return t?t.close(e):(i.DEBUG_BUILD&&r.logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))},n.endSession=l,n.flush=async function(e){const t=o.getClient();return t?t.flush(e):(i.DEBUG_BUILD&&r.logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))},n.isEnabled=function(){const e=o.getClient();return!!e&&!1!==e.getOptions().enabled&&!!e.getTransport()},n.isInitialized=function(){return!!o.getClient()},n.lastEventId=function(){return o.getIsolationScope().lastEventId()},n.setContext=function(e,t){o.getIsolationScope().setContext(e,t)},n.setExtra=function(e,t){o.getIsolationScope().setExtra(e,t)},n.setExtras=function(e){o.getIsolationScope().setExtras(e)},n.setTag=function(e,t){o.getIsolationScope().setTag(e,t)},n.setTags=function(e){o.getIsolationScope().setTags(e)},n.setUser=function(e){o.getIsolationScope().setUser(e)},n.startSession=function(e){const t=o.getClient(),n=o.getIsolationScope(),i=o.getCurrentScope(),{release:c,environment:u=s.DEFAULT_ENVIRONMENT}=t&&t.getOptions()||{},{userAgent:d}=r.GLOBAL_OBJ.navigator||{},p=a.makeSession({release:c,environment:u,user:i.getUser()||n.getUser(),...d&&{userAgent:d},...e}),f=n.getSession();return f&&"ok"===f.status&&a.updateSession(f,{status:"exited"}),l(),n.setSession(p),i.setSession(p),p},n.withMonitor=function(e,t,n){const s=u({monitorSlug:e,status:"in_progress"},n),i=r.timestampInSeconds();function a(t){u({monitorSlug:e,status:t,checkInId:s,duration:r.timestampInSeconds()-i})}return o.withIsolationScope((()=>{let e;try{e=t()}catch(e){throw a("error"),e}return r.isThenable(e)?Promise.resolve(e).then((()=>{a("ok")}),(()=>{a("error")})):a("ok"),e}))}},{"./constants.js":108,"./currentScopes.js":109,"./debug-build.js":110,"./session.js":148,"./utils/prepareEvent.js":173,"@sentry/utils":199}],115:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js");n.captureFeedback=function(e,t={},n=s.getCurrentScope()){const{message:o,name:i,email:a,url:c,source:u,associatedEventId:l,tags:d}=e,p={contexts:{feedback:r.dropUndefinedKeys({contact_email:a,name:i,message:o,url:c,source:u,associated_event_id:l})},type:"feedback",level:"info",tags:d},f=n&&n.getClient()||s.getClient();return f&&f.emit("beforeSendFeedback",p,t),n.captureEvent(p,t)}},{"./currentScopes.js":109,"@sentry/utils":199}],116:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=e("./semanticAttributes.js");e("./tracing/errors.js"),e("./debug-build.js");const i=e("./utils/hasTracingEnabled.js"),a=e("./utils/spanUtils.js"),c=e("./tracing/sentryNonRecordingSpan.js"),u=e("./tracing/spanstatus.js"),l=e("./tracing/trace.js"),d=e("./tracing/dynamicSamplingContext.js");function p(e,t,n,o,i){const c=s.getIsolationScope(),{traceId:u,spanId:l,sampled:p,dsc:f}={...c.getPropagationContext(),...n.getPropagationContext()},h=i?a.spanToTraceHeader(i):r.generateSentryTraceHeader(u,l,p),m=r.dynamicSamplingContextToSentryBaggageHeader(f||(i?d.getDynamicSamplingContextFromSpan(i):d.getDynamicSamplingContextFromClient(u,t))),g=o.headers||("undefined"!=typeof Request&&r.isInstanceOf(e,Request)?e.headers:undefined);if(g){if("undefined"!=typeof Headers&&r.isInstanceOf(g,Headers)){const e=new Headers(g);return e.append("sentry-trace",h),m&&e.append(r.BAGGAGE_HEADER_NAME,m),e}if(Array.isArray(g)){const e=[...g,["sentry-trace",h]];return m&&e.push([r.BAGGAGE_HEADER_NAME,m]),e}{const e="baggage"in g?g.baggage:undefined,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),m&&t.push(m),{...g,"sentry-trace":h,baggage:t.length>0?t.join(","):undefined}}}return{"sentry-trace":h,baggage:m}}n.addTracingHeadersToFetchRequest=p,n.instrumentFetchRequest=function(e,t,n,d,f="auto.http.browser"){if(!e.fetchData)return undefined;const h=i.hasTracingEnabled()&&t(e.fetchData.url);if(e.endTimestamp&&h){const t=e.fetchData.__span;if(!t)return;const n=d[t];return n&&(!function(e,t){if(t.response){u.setHttpStatus(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:u.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),delete d[t]),undefined}const m=s.getCurrentScope(),g=s.getClient(),{method:y,url:_}=e.fetchData,b=function(e){try{return new URL(e).href}catch(e){return undefined}}(_),S=b?r.parseUrl(b).host:undefined,E=!!a.getActiveSpan(),v=h&&E?l.startInactiveSpan({name:`${y} ${_}`,attributes:{url:_,type:"fetch","http.method":y,"http.url":b,"server.address":S,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:f,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"}}):new c.SentryNonRecordingSpan;if(e.fetchData.__span=v.spanContext().spanId,d[v.spanContext().spanId]=v,n(e.fetchData.url)&&g){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=p(t,g,m,n,i.hasTracingEnabled()&&E?v:undefined)}return v}},{"./currentScopes.js":109,"./debug-build.js":110,"./semanticAttributes.js":146,"./tracing/dynamicSamplingContext.js":150,"./tracing/errors.js":151,"./tracing/sentryNonRecordingSpan.js":157,"./tracing/spanstatus.js":159,"./tracing/trace.js":160,"./utils/hasTracingEnabled.js":168,"./utils/spanUtils.js":176,"@sentry/utils":199}],117:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./breadcrumbs.js"),s=e("./currentScopes.js"),o=e("./exports.js");function i(){return{bindClient(e){s.getCurrentScope().setClient(e)},withScope:s.withScope,getClient:()=>s.getClient(),getScope:s.getCurrentScope,getIsolationScope:s.getIsolationScope,captureException:(e,t)=>s.getCurrentScope().captureException(e,t),captureMessage:(e,t,n)=>s.getCurrentScope().captureMessage(e,t,n),captureEvent:o.captureEvent,addBreadcrumb:r.addBreadcrumb,setUser:o.setUser,setTags:o.setTags,setTag:o.setTag,setExtra:o.setExtra,setExtras:o.setExtras,setContext:o.setContext,getIntegration(e){const t=s.getClient();return t&&t.getIntegrationByName(e.id)||null},startSession:o.startSession,endSession:o.endSession,captureSession(e){if(e)return o.endSession();!function(){const e=s.getCurrentScope(),t=s.getClient(),n=e.getSession();t&&n&&t.captureSession(n)}()}}}const a=i;n.getCurrentHub=a,n.getCurrentHubShim=i},{"./breadcrumbs.js":105,"./currentScopes.js":109,"./exports.js":114}],118:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./tracing/errors.js"),s=e("./tracing/utils.js"),o=e("./tracing/hubextensions.js"),i=e("./tracing/idleSpan.js"),a=e("./tracing/sentrySpan.js"),c=e("./tracing/sentryNonRecordingSpan.js"),u=e("./tracing/spanstatus.js"),l=e("./tracing/trace.js"),d=e("./tracing/dynamicSamplingContext.js"),p=e("./tracing/measurement.js"),f=e("./tracing/sampling.js"),h=e("./tracing/logSpans.js"),m=e("./semanticAttributes.js"),g=e("./envelope.js"),y=e("./exports.js"),_=e("./currentScopes.js"),b=e("./defaultScopes.js"),S=e("./asyncContext/index.js"),E=e("./carrier.js"),v=e("./session.js"),I=e("./sessionflusher.js"),w=e("./scope.js"),T=e("./eventProcessors.js"),A=e("./api.js"),C=e("./baseclient.js"),x=e("./server-runtime-client.js"),k=e("./sdk.js"),j=e("./transports/base.js"),R=e("./transports/offline.js"),O=e("./transports/multiplexed.js"),N=e("./integration.js"),M=e("./utils/applyScopeDataToEvent.js"),P=e("./utils/prepareEvent.js"),D=e("./checkin.js"),L=e("./utils/hasTracingEnabled.js"),U=e("./utils/isSentryRequestUrl.js"),B=e("./utils/handleCallbackErrors.js"),F=e("./utils/parameterize.js"),$=e("./utils/spanUtils.js"),H=e("./utils/parseSampleRate.js"),W=e("./utils/sdkMetadata.js"),G=e("./utils/traceData.js"),z=e("./utils/meta.js"),q=e("./constants.js"),J=e("./breadcrumbs.js"),V=e("./integrations/functiontostring.js"),Y=e("./integrations/inboundfilters.js"),X=e("./integrations/linkederrors.js"),K=e("./integrations/metadata.js"),Z=e("./integrations/requestdata.js"),Q=e("./integrations/captureconsole.js"),ee=e("./integrations/debug.js"),te=e("./integrations/dedupe.js"),ne=e("./integrations/extraerrordata.js"),re=e("./integrations/rewriteframes.js"),se=e("./integrations/sessiontiming.js"),oe=e("./integrations/zoderrors.js"),ie=e("./integrations/third-party-errors-filter.js"),ae=e("./metrics/exports.js"),ce=e("./profiling.js"),ue=e("./metrics/exports-default.js"),le=e("./metrics/browser-aggregator.js"),de=e("./metrics/metric-summary.js"),pe=e("./fetch.js"),fe=e("./trpc.js"),he=e("./feedback.js"),me=e("./getCurrentHubShim.js"),ge=e("@sentry/utils");n.registerSpanErrorInstrumentation=r.registerSpanErrorInstrumentation,n.getCapturedScopesOnSpan=s.getCapturedScopesOnSpan,n.setCapturedScopesOnSpan=s.setCapturedScopesOnSpan,n.addTracingExtensions=o.addTracingExtensions,n.TRACING_DEFAULTS=i.TRACING_DEFAULTS,n.startIdleSpan=i.startIdleSpan,n.SentrySpan=a.SentrySpan,n.SentryNonRecordingSpan=c.SentryNonRecordingSpan,n.SPAN_STATUS_ERROR=u.SPAN_STATUS_ERROR,n.SPAN_STATUS_OK=u.SPAN_STATUS_OK,n.SPAN_STATUS_UNSET=u.SPAN_STATUS_UNSET,n.getSpanStatusFromHttpCode=u.getSpanStatusFromHttpCode,n.setHttpStatus=u.setHttpStatus,n.continueTrace=l.continueTrace,n.startInactiveSpan=l.startInactiveSpan,n.startNewTrace=l.startNewTrace,n.startSpan=l.startSpan,n.startSpanManual=l.startSpanManual,n.suppressTracing=l.suppressTracing,n.withActiveSpan=l.withActiveSpan,n.getDynamicSamplingContextFromClient=d.getDynamicSamplingContextFromClient,n.getDynamicSamplingContextFromSpan=d.getDynamicSamplingContextFromSpan,n.spanToBaggageHeader=d.spanToBaggageHeader,n.setMeasurement=p.setMeasurement,n.timedEventsToMeasurements=p.timedEventsToMeasurements,n.sampleSpan=f.sampleSpan,n.logSpanEnd=h.logSpanEnd,n.logSpanStart=h.logSpanStart,n.SEMANTIC_ATTRIBUTE_CACHE_HIT=m.SEMANTIC_ATTRIBUTE_CACHE_HIT,n.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE=m.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE,n.SEMANTIC_ATTRIBUTE_CACHE_KEY=m.SEMANTIC_ATTRIBUTE_CACHE_KEY,n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME=m.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD=m.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,n.SEMANTIC_ATTRIBUTE_PROFILE_ID=m.SEMANTIC_ATTRIBUTE_PROFILE_ID,n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON=m.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT=m.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE=m.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,n.SEMANTIC_ATTRIBUTE_SENTRY_OP=m.SEMANTIC_ATTRIBUTE_SENTRY_OP,n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN=m.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE=m.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE=m.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n.SEMANTIC_ATTRIBUTE_URL_FULL=m.SEMANTIC_ATTRIBUTE_URL_FULL,n.createEventEnvelope=g.createEventEnvelope,n.createSessionEnvelope=g.createSessionEnvelope,n.createSpanEnvelope=g.createSpanEnvelope,n.addEventProcessor=y.addEventProcessor,n.captureCheckIn=y.captureCheckIn,n.captureEvent=y.captureEvent,n.captureException=y.captureException,n.captureMessage=y.captureMessage,n.captureSession=y.captureSession,n.close=y.close,n.endSession=y.endSession,n.flush=y.flush,n.isEnabled=y.isEnabled,n.isInitialized=y.isInitialized,n.lastEventId=y.lastEventId,n.setContext=y.setContext,n.setExtra=y.setExtra,n.setExtras=y.setExtras,n.setTag=y.setTag,n.setTags=y.setTags,n.setUser=y.setUser,n.startSession=y.startSession,n.withMonitor=y.withMonitor,n.getClient=_.getClient,n.getCurrentScope=_.getCurrentScope,n.getGlobalScope=_.getGlobalScope,n.getIsolationScope=_.getIsolationScope,n.withIsolationScope=_.withIsolationScope,n.withScope=_.withScope,n.getDefaultCurrentScope=b.getDefaultCurrentScope,n.getDefaultIsolationScope=b.getDefaultIsolationScope,n.setAsyncContextStrategy=S.setAsyncContextStrategy,n.getMainCarrier=E.getMainCarrier,n.closeSession=v.closeSession,n.makeSession=v.makeSession,n.updateSession=v.updateSession,n.SessionFlusher=I.SessionFlusher,n.Scope=w.Scope,n.notifyEventProcessors=T.notifyEventProcessors,n.getEnvelopeEndpointWithUrlEncodedAuth=A.getEnvelopeEndpointWithUrlEncodedAuth,n.getReportDialogEndpoint=A.getReportDialogEndpoint,n.BaseClient=C.BaseClient,n.ServerRuntimeClient=x.ServerRuntimeClient,n.initAndBind=k.initAndBind,n.setCurrentClient=k.setCurrentClient,n.createTransport=j.createTransport,n.makeOfflineTransport=R.makeOfflineTransport,n.makeMultiplexedTransport=O.makeMultiplexedTransport,n.addIntegration=N.addIntegration,n.defineIntegration=N.defineIntegration,n.getIntegrationsToSetup=N.getIntegrationsToSetup,n.applyScopeDataToEvent=M.applyScopeDataToEvent,n.mergeScopeData=M.mergeScopeData,n.prepareEvent=P.prepareEvent,n.createCheckInEnvelope=D.createCheckInEnvelope,n.hasTracingEnabled=L.hasTracingEnabled,n.isSentryRequestUrl=U.isSentryRequestUrl,n.handleCallbackErrors=B.handleCallbackErrors,n.parameterize=F.parameterize,n.addChildSpanToSpan=$.addChildSpanToSpan,n.getActiveSpan=$.getActiveSpan,n.getRootSpan=$.getRootSpan,n.getSpanDescendants=$.getSpanDescendants,n.getStatusMessage=$.getStatusMessage,n.spanIsSampled=$.spanIsSampled,n.spanTimeInputToSeconds=$.spanTimeInputToSeconds,n.spanToJSON=$.spanToJSON,n.spanToTraceContext=$.spanToTraceContext,n.spanToTraceHeader=$.spanToTraceHeader,n.parseSampleRate=H.parseSampleRate,n.applySdkMetadata=W.applySdkMetadata,n.getTraceData=G.getTraceData,n.getTraceMetaTags=z.getTraceMetaTags,n.DEFAULT_ENVIRONMENT=q.DEFAULT_ENVIRONMENT,n.addBreadcrumb=J.addBreadcrumb,n.functionToStringIntegration=V.functionToStringIntegration,n.inboundFiltersIntegration=Y.inboundFiltersIntegration,n.linkedErrorsIntegration=X.linkedErrorsIntegration,n.moduleMetadataIntegration=K.moduleMetadataIntegration,n.requestDataIntegration=Z.requestDataIntegration,n.captureConsoleIntegration=Q.captureConsoleIntegration,n.debugIntegration=ee.debugIntegration,n.dedupeIntegration=te.dedupeIntegration,n.extraErrorDataIntegration=ne.extraErrorDataIntegration,n.rewriteFramesIntegration=re.rewriteFramesIntegration,n.sessionTimingIntegration=se.sessionTimingIntegration,n.zodErrorsIntegration=oe.zodErrorsIntegration,n.thirdPartyErrorFilterIntegration=ie.thirdPartyErrorFilterIntegration,n.metrics=ae.metrics,n.profiler=ce.profiler,n.metricsDefault=ue.metricsDefault,n.BrowserMetricsAggregator=le.BrowserMetricsAggregator,n.getMetricSummaryJsonForSpan=de.getMetricSummaryJsonForSpan,n.addTracingHeadersToFetchRequest=pe.addTracingHeadersToFetchRequest,n.instrumentFetchRequest=pe.instrumentFetchRequest,n.trpcMiddleware=fe.trpcMiddleware,n.captureFeedback=he.captureFeedback,n.getCurrentHub=me.getCurrentHub,n.getCurrentHubShim=me.getCurrentHubShim,n.SDK_VERSION=ge.SDK_VERSION},{"./api.js":101,"./asyncContext/index.js":102,"./baseclient.js":104,"./breadcrumbs.js":105,"./carrier.js":106,"./checkin.js":107,"./constants.js":108,"./currentScopes.js":109,"./defaultScopes.js":111,"./envelope.js":112,"./eventProcessors.js":113,"./exports.js":114,"./feedback.js":115,"./fetch.js":116,"./getCurrentHubShim.js":117,"./integration.js":119,"./integrations/captureconsole.js":120,"./integrations/debug.js":121,"./integrations/dedupe.js":122,"./integrations/extraerrordata.js":123,"./integrations/functiontostring.js":124,"./integrations/inboundfilters.js":125,"./integrations/linkederrors.js":126,"./integrations/metadata.js":127,"./integrations/requestdata.js":128,"./integrations/rewriteframes.js":129,"./integrations/sessiontiming.js":130,"./integrations/third-party-errors-filter.js":131,"./integrations/zoderrors.js":132,"./metrics/browser-aggregator.js":135,"./metrics/exports-default.js":138,"./metrics/exports.js":139,"./metrics/metric-summary.js":141,"./profiling.js":143,"./scope.js":144,"./sdk.js":145,"./semanticAttributes.js":146,"./server-runtime-client.js":147,"./session.js":148,"./sessionflusher.js":149,"./tracing/dynamicSamplingContext.js":150,"./tracing/errors.js":151,"./tracing/hubextensions.js":152,"./tracing/idleSpan.js":153,"./tracing/logSpans.js":154,"./tracing/measurement.js":155,"./tracing/sampling.js":156,"./tracing/sentryNonRecordingSpan.js":157,"./tracing/sentrySpan.js":158,"./tracing/spanstatus.js":159,"./tracing/trace.js":160,"./tracing/utils.js":161,"./transports/base.js":162,"./transports/multiplexed.js":163,"./transports/offline.js":164,"./trpc.js":165,"./utils/applyScopeDataToEvent.js":166,"./utils/handleCallbackErrors.js":167,"./utils/hasTracingEnabled.js":168,"./utils/isSentryRequestUrl.js":169,"./utils/meta.js":170,"./utils/parameterize.js":171,"./utils/parseSampleRate.js":172,"./utils/prepareEvent.js":173,"./utils/sdkMetadata.js":174,"./utils/spanUtils.js":176,"./utils/traceData.js":177,"@sentry/utils":199}],119:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=e("./debug-build.js"),i=[];function a(e,t,n){if(n[t.name])o.DEBUG_BUILD&&r.logger.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===i.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),i.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}o.DEBUG_BUILD&&r.logger.log(`Integration installed: ${t.name}`)}}n.addIntegration=function(e){const t=s.getClient();t?t.addIntegration(e):o.DEBUG_BUILD&&r.logger.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)},n.afterSetupIntegrations=function(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)},n.defineIntegration=function(e){return e},n.getIntegrationsToSetup=function(e){const t=e.defaultIntegrations||[],n=e.integrations;let s;t.forEach((e=>{e.isDefaultInstance=!0})),s=Array.isArray(n)?[...t,...n]:"function"==typeof n?r.arrayify(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(s),i=o.findIndex((e=>"Debug"===e.name));if(i>-1){const[e]=o.splice(i,1);o.push(e)}return o},n.installedIntegrations=i,n.setupIntegration=a,n.setupIntegrations=function(e,t){const n={};return t.forEach((t=>{t&&a(e,t,n)})),n}},{"./currentScopes.js":109,"./debug-build.js":110,"@sentry/utils":199}],120:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),o=e("../exports.js"),i=e("../integration.js"),a=i.defineIntegration(((e={})=>{const t=e.levels||r.CONSOLE_LEVELS;return{name:"CaptureConsole",setup(e){"console"in r.GLOBAL_OBJ&&r.addConsoleInstrumentationHandler((({args:n,level:i})=>{s.getClient()===e&&t.includes(i)&&function(e,t){const n={level:r.severityLevelFromString(t),extra:{arguments:e}};s.withScope((s=>{if(s.addEventProcessor((e=>(e.logger="console",r.addExceptionMechanism(e,{handled:!1,type:"console"}),e))),"assert"===t){if(!e[0]){const t=`Assertion failed: ${r.safeJoin(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),o.captureMessage(t,n)}return}const i=e.find((e=>e instanceof Error));if(i)return void o.captureException(i,n);const a=r.safeJoin(e," ");o.captureMessage(a,n)}))}(n,i)}))}}}));n.captureConsoleIntegration=a},{"../currentScopes.js":109,"../exports.js":114,"../integration.js":119,"@sentry/utils":199}],121:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=s.defineIntegration(((e={})=>{const t={debugger:!1,stringify:!1,...e};return{name:"Debug",setup(e){e.on("beforeSendEvent",((e,n)=>{t.debugger,r.consoleSandbox((()=>{t.stringify?(console.log(JSON.stringify(e,null,2)),n&&Object.keys(n).length&&console.log(JSON.stringify(n,null,2))):(console.log(e),n&&Object.keys(n).length&&console.log(n))}))}))}}}));n.debugIntegration=o},{"../integration.js":119,"@sentry/utils":199}],122:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=e("../debug-build.js"),i=s.defineIntegration((()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(a(t,e))return o.DEBUG_BUILD&&r.logger.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}}));function a(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t)||!!function(e,t){const n=l(t),r=l(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))}function c(e,t){let n=r.getFramesFromEvent(e),s=r.getFramesFromEvent(t);if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;if(s.length!==n.length)return!1;for(let e=0;e<s.length;e++){const t=s[e],r=n[e];if(t.filename!==r.filename||t.lineno!==r.lineno||t.colno!==r.colno||t.function!==r.function)return!1}return!0}function u(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function l(e){return e.exception&&e.exception.values&&e.exception.values[0]}n._shouldDropEvent=a,n.dedupeIntegration=i},{"../debug-build.js":110,"../integration.js":119,"@sentry/utils":199}],123:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=e("../debug-build.js"),i=s.defineIntegration(((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,s,i){const{maxValueLength:a=250}=i.getOptions();return function(e,t={},n,s,i){if(!t.originalException||!r.isError(t.originalException))return e;const a=t.originalException.name||t.originalException.constructor.name,c=function(e,t,n){try{const s=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==s.indexOf(t))continue;const i=e[t];o[t]=r.isError(i)||"string"==typeof i?r.truncate(`${i}`,n):i}if(t&&e.cause!==undefined&&(o.cause=r.isError(e.cause)?e.cause.toString():e.cause),"function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=r.isError(n)?n.toString():n}}return o}catch(e){o.DEBUG_BUILD&&r.logger.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,s,i);if(c){const t={...e.contexts},s=r.normalize(c,n);return r.isPlainObject(s)&&(r.addNonEnumerableProperty(s,"__sentry_skip_normalization__",!0),t[a]=s),{...e,contexts:t}}return e}(e,s,t,n,a)}}}));n.extraErrorDataIntegration=i},{"../debug-build.js":110,"../integration.js":119,"@sentry/utils":199}],124:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),o=e("../integration.js");let i;const a=new WeakMap,c=o.defineIntegration((()=>({name:"FunctionToString",setupOnce(){i=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=r.getOriginalFunction(this),n=a.has(s.getClient())&&t!==undefined?t:this;return i.apply(n,e)}}catch(e){}},setup(e){a.set(e,!0)}})));n.functionToStringIntegration=c},{"../currentScopes.js":109,"../integration.js":119,"@sentry/utils":199}],125:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=e("../integration.js"),i=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],a=o.defineIntegration(((e={})=>({name:"InboundFilters",processEvent(t,n,o){const a=o.getOptions(),u=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:i],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:e.ignoreInternal===undefined||e.ignoreInternal}}(e,a);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(e){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));return t}(e).some((e=>r.stringMatchesSomePattern(e,t)))}(e,t.ignoreErrors))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e){if(e.type)return!1;if(!e.exception||!e.exception.values||0===e.exception.values.length)return!1;return!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))}(e))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&r.stringMatchesSomePattern(n,t)}(e,t.ignoreTransactions))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${r.getEventDescription(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=c(e);return!!n&&r.stringMatchesSomePattern(n,t)}(e,t.denyUrls))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${r.getEventDescription(e)}.\nUrl: ${c(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=c(e);return!n||r.stringMatchesSomePattern(n,t)}(e,t.allowUrls))return s.DEBUG_BUILD&&r.logger.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${r.getEventDescription(e)}.\nUrl: ${c(e)}`),!0;return!1}(t,u)?null:t}})));function c(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return s.DEBUG_BUILD&&r.logger.error(`Cannot extract url for event ${r.getEventDescription(e)}`),null}}n.inboundFiltersIntegration=a},{"../debug-build.js":110,"../integration.js":119,"@sentry/utils":199}],126:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=s.defineIntegration(((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,s,o){const i=o.getOptions();r.applyAggregateErrorsToEvent(r.exceptionFromError,i.stackParser,i.maxValueLength,n,t,e,s)}}}));n.linkedErrorsIntegration=o},{"../integration.js":119,"@sentry/utils":199}],127:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=e("../metadata.js"),i=s.defineIntegration((()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",(e=>{r.forEachEnvelopeItem(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:undefined;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)}))}})));n.moduleMetadataIntegration=i},{"../integration.js":119,"../metadata.js":133,"@sentry/utils":199}],128:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o={include:{cookies:!0,data:!0,headers:!0,ip:!1,query_string:!0,url:!0,user:{id:!0,username:!0,email:!0}},transactionNamingScheme:"methodPath"},i=s.defineIntegration(((e={})=>{const t={...o,...e,include:{...o.include,...e.include,user:e.include&&"boolean"==typeof e.include.user?e.include.user:{...o.include.user,...(e.include||{}).user}}};return{name:"RequestData",processEvent(e){const{sdkProcessingMetadata:n={}}=e,s=n.request;if(!s)return e;const o=function(e){const{transactionNamingScheme:t,include:{ip:n,user:r,...s}}=e,o=["method"];for(const[e,t]of Object.entries(s))t&&o.push(e);let i;if(r===undefined)i=!0;else if("boolean"==typeof r)i=r;else{const e=[];for(const[t,n]of Object.entries(r))n&&e.push(t);i=e}return{include:{ip:n,user:i,request:0!==o.length?o:undefined,transaction:t}}}(t);return r.addRequestDataToEvent(e,s,o)}}}));n.requestDataIntegration=i},{"../integration.js":119,"@sentry/utils":199}],129:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=s.defineIntegration(((e={})=>{const t=e.root,n=e.prefix||"app:///",s="window"in r.GLOBAL_OBJ&&r.GLOBAL_OBJ.window!==undefined,o=e.iteratee||i({isBrowser:s,root:t,prefix:n});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>{return{...e,...e.stacktrace&&{stacktrace:(t=e.stacktrace,{...t,frames:t&&t.frames&&t.frames.map((e=>o(e)))})}};var t}))}}}catch(t){return e}}(t)),t}}}));function i({isBrowser:e,root:t,prefix:n}){return s=>{if(!s.filename)return s;const o=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),i=/^\//.test(s.filename);if(e){if(t){const e=s.filename;0===e.indexOf(t)&&(s.filename=e.replace(t,n))}}else if(o||i){const e=o?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,i=t?r.relative(t,e):r.basename(e);s.filename=`${n}${i}`}return s}}n.generateIteratee=i,n.rewriteFramesIntegration=o},{"../integration.js":119,"@sentry/utils":199}],130:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=s.defineIntegration((()=>{const e=1e3*r.timestampInSeconds();return{name:"SessionTiming",processEvent(t){const n=1e3*r.timestampInSeconds();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}}));n.sessionTimingIntegration=o},{"../integration.js":119,"@sentry/utils":199}],131:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js"),o=e("../metadata.js"),i=s.defineIntegration((e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",(e=>{r.forEachEnvelopeItem(e,((e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:undefined;t&&(o.stripMetadataFromStackFrames(t),e[1]=t)}}))})),e.on("applyFrameMetadata",(t=>{if(t.type)return;const n=e.getOptions().stackParser;o.addMetadataToStackFrames(n,t)}))},processEvent(t){const n=function(e){const t=r.getFramesFromEvent(e);if(!t)return undefined;return t.filter((e=>!!e.filename)).map((e=>e.module_metadata?Object.keys(e.module_metadata).filter((e=>e.startsWith(a))).map((e=>e.slice(a.length))):[]))}(t);if(n){if(n["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"]((t=>!t.some((t=>e.filterKeys.includes(t)))))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}}return t}})));const a="_sentryBundlerPluginAppKey:";n.thirdPartyErrorFilterIntegration=i},{"../integration.js":119,"../metadata.js":133,"@sentry/utils":199}],132:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../integration.js");function o(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):undefined,keys:"keys"in e?JSON.stringify(e.keys):undefined,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):undefined}}function i(e){const t=new Set;for(const n of e.issues)n.path&&n.path[0]&&t.add(n.path[0]);const n=Array.from(t);return`Failed to validate keys: ${r.truncate(n.join(", "),100)}`}function a(e,t,n){return t.exception&&t.exception.values&&n&&n.originalException&&(s=n.originalException,r.isError(s)&&"ZodError"===s.name&&Array.isArray(s.errors))&&0!==n.originalException.issues.length?{...t,exception:{...t.exception,values:[{...t.exception.values[0],value:i(n.originalException)},...t.exception.values.slice(1)]},extra:{...t.extra,"zoderror.issues":n.originalException.errors.slice(0,e).map(o)}}:t;var s}const c=s.defineIntegration(((e={})=>{const t=e.limit||10;return{name:"ZodErrors",processEvent:(e,n)=>a(t,e,n)}}));n.applyZodErrorsToEvent=a,n.zodErrorsIntegration=c},{"../integration.js":119,"@sentry/utils":199}],133:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=new Map,o=new Set;function i(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(o.has(t))continue;o.add(t);const i=e(t);for(const e of i.reverse())if(e.filename){s.set(e.filename,n);break}}}(e),s.get(t)}n.addMetadataToStackFrames=function(e,t){try{t.exception.values.forEach((t=>{if(t.stacktrace)for(const n of t.stacktrace.frames||[]){if(!n.filename||n.module_metadata)continue;const t=i(e,n.filename);t&&(n.module_metadata=t)}}))}catch(e){}},n.getMetadataForUrl=i,n.stripMetadataFromStackFrames=function(e){try{e.exception.values.forEach((e=>{if(e.stacktrace)for(const t of e.stacktrace.frames||[])delete t.module_metadata}))}catch(e){}}},{"@sentry/utils":199}],134:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js"),o=e("./constants.js"),i=e("./envelope.js"),a=e("./instance.js"),c=e("./utils.js");n.MetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._bucketsTotalWeight=0,this._interval=setInterval((()=>this._flush()),o.DEFAULT_FLUSH_INTERVAL),this._interval.unref&&this._interval.unref(),this._flushShift=Math.floor(Math.random()*o.DEFAULT_FLUSH_INTERVAL/1e3),this._forceFlush=!1}add(e,t,n,i="none",u={},l=r.timestampInSeconds()){const d=Math.floor(l),p=c.sanitizeMetricKey(t),f=c.sanitizeTags(u),h=c.sanitizeUnit(i),m=c.getBucketKey(e,p,h,f);let g=this._buckets.get(m);const y=g&&e===o.SET_METRIC_TYPE?g.metric.weight:0;g?(g.metric.add(n),g.timestamp<d&&(g.timestamp=d)):(g={metric:new a.METRIC_MAP[e](n),timestamp:d,metricType:e,name:p,unit:h,tags:f},this._buckets.set(m,g));const _="string"==typeof n?g.metric.weight-y:n;s.updateMetricSummaryOnActiveSpan(e,p,_,h,u,m),this._bucketsTotalWeight+=g.metric.weight,this._bucketsTotalWeight>=o.MAX_WEIGHT&&this.flush()}flush(){this._forceFlush=!0,this._flush()}close(){this._forceFlush=!0,clearInterval(this._interval),this._flush()}_flush(){if(this._forceFlush)return this._forceFlush=!1,this._bucketsTotalWeight=0,this._captureMetrics(this._buckets),void this._buckets.clear();const e=Math.floor(r.timestampInSeconds())-o.DEFAULT_FLUSH_INTERVAL/1e3-this._flushShift,t=new Map;for(const[n,r]of this._buckets)r.timestamp<=e&&(t.set(n,r),this._bucketsTotalWeight-=r.metric.weight);for(const[e]of t)this._buckets.delete(e);this._captureMetrics(t)}_captureMetrics(e){if(e.size>0){const t=Array.from(e).map((([,e])=>e));i.captureAggregateMetrics(this._client,t)}}}},{"../utils/spanUtils.js":176,"./constants.js":136,"./envelope.js":137,"./instance.js":140,"./utils.js":142,"@sentry/utils":199}],135:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js"),o=e("./constants.js"),i=e("./envelope.js"),a=e("./instance.js"),c=e("./utils.js");n.BrowserMetricsAggregator=class{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval((()=>this.flush()),o.DEFAULT_BROWSER_FLUSH_INTERVAL)}add(e,t,n,i="none",u={},l=r.timestampInSeconds()){const d=Math.floor(l),p=c.sanitizeMetricKey(t),f=c.sanitizeTags(u),h=c.sanitizeUnit(i),m=c.getBucketKey(e,p,h,f);let g=this._buckets.get(m);const y=g&&e===o.SET_METRIC_TYPE?g.metric.weight:0;g?(g.metric.add(n),g.timestamp<d&&(g.timestamp=d)):(g={metric:new a.METRIC_MAP[e](n),timestamp:d,metricType:e,name:p,unit:h,tags:f},this._buckets.set(m,g));const _="string"==typeof n?g.metric.weight-y:n;s.updateMetricSummaryOnActiveSpan(e,p,_,h,u,m)}flush(){if(0===this._buckets.size)return;const e=Array.from(this._buckets.values());i.captureAggregateMetrics(this._client,e),this._buckets.clear()}close(){clearInterval(this._interval),this.flush()}}},{"../utils/spanUtils.js":176,"./constants.js":136,"./envelope.js":137,"./instance.js":140,"./utils.js":142,"@sentry/utils":199}],136:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.COUNTER_METRIC_TYPE="c",n.DEFAULT_BROWSER_FLUSH_INTERVAL=5e3,n.DEFAULT_FLUSH_INTERVAL=1e4,n.DISTRIBUTION_METRIC_TYPE="d",n.GAUGE_METRIC_TYPE="g",n.MAX_WEIGHT=1e4,n.SET_METRIC_TYPE="s"},{}],137:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./utils.js");function o(e,t,n,o){const i={sent_at:(new Date).toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),o&&t&&(i.dsn=r.dsnToString(t));const a=function(e){const t=s.serializeMetricBuckets(e);return[{type:"statsd",length:t.length},t]}(e);return r.createEnvelope(i,[a])}n.captureAggregateMetrics=function(e,t){r.logger.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=o(t,e.getDsn(),e.getSdkMetadata(),e.getOptions().tunnel);e.sendEnvelope(n)},n.createMetricEnvelope=o},{"./utils.js":142,"@sentry/utils":199}],138:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./aggregator.js"),s=e("./exports.js");const o={increment:function(e,t=1,n){s.metrics.increment(r.MetricsAggregator,e,t,n)},distribution:function(e,t,n){s.metrics.distribution(r.MetricsAggregator,e,t,n)},set:function(e,t,n){s.metrics.set(r.MetricsAggregator,e,t,n)},gauge:function(e,t,n){s.metrics.gauge(r.MetricsAggregator,e,t,n)},timing:function(e,t,n="second",o){return s.metrics.timing(r.MetricsAggregator,e,t,n,o)},getMetricsAggregatorForClient:function(e){return s.metrics.getMetricsAggregatorForClient(e,r.MetricsAggregator)}};n.metricsDefault=o},{"./aggregator.js":134,"./exports.js":139}],139:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),o=e("../debug-build.js");e("../tracing/errors.js");const i=e("../utils/spanUtils.js"),a=e("../tracing/trace.js"),c=e("../utils/handleCallbackErrors.js"),u=e("./constants.js");function l(e,t){const n=r.getGlobalSingleton("globalMetricsAggregators",(()=>new WeakMap)),s=n.get(e);if(s)return s;const o=new t(e);return e.on("flush",(()=>o.flush())),e.on("close",(()=>o.close())),n.set(e,o),o}function d(e,t,n,a,c={}){const u=c.client||s.getClient();if(!u)return;const d=i.getActiveSpan(),p=d?i.getRootSpan(d):undefined,f=p&&i.spanToJSON(p).description,{unit:h,tags:m,timestamp:g}=c,{release:y,environment:_}=u.getOptions(),b={};y&&(b.release=y),_&&(b.environment=_),f&&(b.transaction=f),o.DEBUG_BUILD&&r.logger.log(`Adding value of ${a} to ${t} metric ${n}`);l(u,e).add(t,n,a,h,{...b,...m},g)}function p(e,t,n,r){d(e,u.DISTRIBUTION_METRIC_TYPE,t,h(n),r)}const f={increment:function(e,t,n=1,r){d(e,u.COUNTER_METRIC_TYPE,t,h(n),r)},distribution:p,set:function(e,t,n,r){d(e,u.SET_METRIC_TYPE,t,n,r)},gauge:function(e,t,n,r){d(e,u.GAUGE_METRIC_TYPE,t,h(n),r)},timing:function(e,t,n,s="second",o){if("function"==typeof n){const s=r.timestampInSeconds();return a.startSpanManual({op:"metrics.timing",name:t,startTime:s,onlyIfParent:!0},(i=>c.handleCallbackErrors((()=>n()),(()=>{}),(()=>{const n=r.timestampInSeconds();p(e,t,n-s,{...o,unit:"second"}),i.end(n)}))))}p(e,t,n,{...o,unit:s})},getMetricsAggregatorForClient:l};function h(e){return"string"==typeof e?parseInt(e):e}n.metrics=f},{"../currentScopes.js":109,"../debug-build.js":110,"../tracing/errors.js":151,"../tracing/trace.js":160,"../utils/handleCallbackErrors.js":167,"../utils/spanUtils.js":176,"./constants.js":136,"@sentry/utils":199}],140:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./constants.js"),s=e("./utils.js");class o{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class i{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,e<this._min&&(this._min=e),e>this._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class a{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class c{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map((e=>"string"==typeof e?s.simpleHash(e):e)).join(":")}}const u={[r.COUNTER_METRIC_TYPE]:o,[r.GAUGE_METRIC_TYPE]:i,[r.DISTRIBUTION_METRIC_TYPE]:a,[r.SET_METRIC_TYPE]:c};n.CounterMetric=o,n.DistributionMetric=a,n.GaugeMetric=i,n.METRIC_MAP=u,n.SetMetric=c},{"./constants.js":136,"./utils.js":142}],141:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentryMetrics";n.getMetricSummaryJsonForSpan=function(e){const t=e[s];if(!t)return undefined;const n={};for(const[,[e,s]]of t){(n[e]||(n[e]=[])).push(r.dropUndefinedKeys(s))}return n},n.updateMetricSummaryOnSpan=function(e,t,n,r,o,i,a){const c=e[s]||(e[s]=new Map),u=`${t}:${n}@${o}`,l=c.get(a);if(l){const[,e]=l;c.set(a,[u,{min:Math.min(e.min,r),max:Math.max(e.max,r),count:e.count+=1,sum:e.sum+=r,tags:e.tags}])}else c.set(a,[u,{min:r,max:r,count:1,sum:r,tags:i}])}},{"@sentry/utils":199}],142:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e){return e.replace(/[^\w\-./]+/gi,"")}const o=[["\n","\\n"],["\r","\\r"],["\t","\\t"],["\\","\\\\"],["|","\\u{7c}"],[",","\\u{2c}"]];function i(e){return[...e].reduce(((e,t)=>e+function(e){for(const[t,n]of o)if(e===t)return n;return e}(t)),"")}n.getBucketKey=function(e,t,n,s){return`${e}${t}${n}${Object.entries(r.dropUndefinedKeys(s)).sort(((e,t)=>e[0].localeCompare(t[0])))}`},n.sanitizeMetricKey=function(e){return e.replace(/[^\w\-.]+/gi,"_")},n.sanitizeTags=function(e){const t={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){t[s(n)]=i(String(e[n]))}return t},n.sanitizeUnit=function(e){return e.replace(/[^\w]+/gi,"_")},n.serializeMetricBuckets=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t},n.simpleHash=function(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t>>>0}},{"@sentry/utils":199}],143:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=e("./debug-build.js");function i(e){return!!e&&void 0!==e._profiler&&"function"==typeof e._profiler.start&&"function"==typeof e._profiler.stop}const a={startProfiler:function(){const e=s.getClient();if(!e)return void(o.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?i(t)?t._profiler.start():o.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available")},stopProfiler:function(){const e=s.getClient();if(!e)return void(o.DEBUG_BUILD&&r.logger.warn("No Sentry client available, profiling is not started"));const t=e.getIntegrationByName("ProfilingIntegration");t?i(t)?t._profiler.stop():o.DEBUG_BUILD&&r.logger.warn("Profiler is not available on profiling integration."):o.DEBUG_BUILD&&r.logger.warn("ProfilingIntegration is not available")}};n.profiler=a},{"./currentScopes.js":109,"./debug-build.js":110,"@sentry/utils":199}],144:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./session.js"),o=e("./utils/spanOnScope.js");class i{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=r.generatePropagationContext()}clone(){const e=new i;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,o._setSpanForScope(e,o._getSpanForScope(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:undefined,id:undefined,ip_address:undefined,username:undefined},this._session&&s.updateSession(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,s]=t instanceof a?[t.getScopeData(),t.getRequestSession()]:r.isPlainObject(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:c,contexts:u,level:l,fingerprint:d=[],propagationContext:p}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...u},c&&Object.keys(c).length&&(this._user=c),l&&(this._level=l),d.length&&(this._fingerprint=d),p&&(this._propagationContext=p),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=undefined,this._transactionName=undefined,this._fingerprint=undefined,this._requestSession=undefined,this._session=undefined,o._setSpanForScope(this,undefined),this._attachments=[],this._propagationContext=r.generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const s={timestamp:r.dateTimestampInSeconds(),...e},o=this._breadcrumbs;return o.push(s),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:o._getSpanForScope(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture exception!"),n;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...t,event_id:n},this),n}captureMessage(e,t,n){const s=n&&n.event_id?n.event_id:r.uuid4();if(!this._client)return r.logger.warn("No client configured on scope - will not capture message!"),s;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:s},this),s}captureEvent(e,t){const n=t&&t.event_id?t.event_id:r.uuid4();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.logger.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const a=i;n.Scope=a},{"./session.js":148,"./utils/spanOnScope.js":175,"@sentry/utils":199}],145:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=e("./debug-build.js");function i(e){s.getCurrentScope().setClient(e)}n.initAndBind=function(e,t){!0===t.debug&&(o.DEBUG_BUILD?r.logger.enable():r.consoleSandbox((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),s.getCurrentScope().update(t.initialScope);const n=new e(t);return i(n),n.init(),n},n.setCurrentClient=i},{"./currentScopes.js":109,"./debug-build.js":110,"@sentry/utils":199}],146:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.SEMANTIC_ATTRIBUTE_CACHE_HIT="cache.hit",n.SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE="cache.item_size",n.SEMANTIC_ATTRIBUTE_CACHE_KEY="cache.key",n.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME="sentry.exclusive_time",n.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD="http.request.method",n.SEMANTIC_ATTRIBUTE_PROFILE_ID="sentry.profile_id",n.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON="sentry.idle_span_finish_reason",n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT="sentry.measurement_unit",n.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE="sentry.measurement_value",n.SEMANTIC_ATTRIBUTE_SENTRY_OP="sentry.op",n.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN="sentry.origin",n.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE="sentry.sample_rate",n.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE="sentry.source",n.SEMANTIC_ATTRIBUTE_URL_FULL="url.full"},{}],147:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./baseclient.js"),o=e("./checkin.js"),i=e("./currentScopes.js"),a=e("./debug-build.js"),c=e("./sessionflusher.js"),u=e("./tracing/errors.js"),l=e("./utils/spanOnScope.js"),d=e("./utils/spanUtils.js"),p=e("./tracing/dynamicSamplingContext.js");class f extends s.BaseClient{constructor(e){u.registerSpanErrorInstrumentation(),super(e)}eventFromException(e,t){return r.resolvedSyncPromise(r.eventFromUnknownInput(this,this._options.stackParser,e,t))}eventFromMessage(e,t="info",n){return r.resolvedSyncPromise(r.eventFromMessage(this._options.stackParser,e,t,n,this._options.attachStacktrace))}captureException(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){const e=i.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}return super.captureException(e,t,n)}captureEvent(e,t,n){if(this._options.autoSessionTracking&&this._sessionFlusher){if("exception"===(e.type||"exception")&&e.exception&&e.exception.values&&e.exception.values.length>0){const e=i.getIsolationScope().getRequestSession();e&&"ok"===e.status&&(e.status="errored")}}return super.captureEvent(e,t,n)}close(e){return this._sessionFlusher&&this._sessionFlusher.close(),super.close(e)}initSessionFlusher(){const{release:e,environment:t}=this._options;e?this._sessionFlusher=new c.SessionFlusher(this,{release:e,environment:t}):a.DEBUG_BUILD&&r.logger.warn("Cannot initialise an instance of SessionFlusher if no release is provided!")}captureCheckIn(e,t,n){const s="checkInId"in e&&e.checkInId?e.checkInId:r.uuid4();if(!this._isEnabled())return a.DEBUG_BUILD&&r.logger.warn("SDK not enabled, will not capture checkin."),s;const i=this.getOptions(),{release:c,environment:u,tunnel:l}=i,d={check_in_id:s,monitor_slug:e.monitorSlug,status:e.status,release:c,environment:u};"duration"in e&&(d.duration=e.duration),t&&(d.monitor_config={schedule:t.schedule,checkin_margin:t.checkinMargin,max_runtime:t.maxRuntime,timezone:t.timezone,failure_issue_threshold:t.failureIssueThreshold,recovery_threshold:t.recoveryThreshold});const[p,f]=this._getTraceInfoFromScope(n);f&&(d.contexts={trace:f});const h=o.createCheckInEnvelope(d,p,this.getSdkMetadata(),l,this.getDsn());return a.DEBUG_BUILD&&r.logger.info("Sending checkin:",e.monitorSlug,e.status),this.sendEnvelope(h),s}_captureRequestSession(){this._sessionFlusher?this._sessionFlusher.incrementSessionStatusCount():a.DEBUG_BUILD&&r.logger.warn("Discarded request mode session because autoSessionTracking option was disabled")}_prepareEvent(e,t,n,r){return this._options.platform&&(e.platform=e.platform||this._options.platform),this._options.runtime&&(e.contexts={...e.contexts,runtime:(e.contexts||{}).runtime||this._options.runtime}),this._options.serverName&&(e.server_name=e.server_name||this._options.serverName),super._prepareEvent(e,t,n,r)}_getTraceInfoFromScope(e){if(!e)return[undefined,undefined];const t=l._getSpanForScope(e);if(t){const e=d.getRootSpan(t);return[p.getDynamicSamplingContextFromSpan(e),d.spanToTraceContext(e)]}const{traceId:n,spanId:r,parentSpanId:s,dsc:o}=e.getPropagationContext(),i={trace_id:n,span_id:r,parent_span_id:s};return o?[o,i]:[p.getDynamicSamplingContextFromClient(n,this),i]}}n.ServerRuntimeClient=f},{"./baseclient.js":104,"./checkin.js":107,"./currentScopes.js":109,"./debug-build.js":110,"./sessionflusher.js":149,"./tracing/dynamicSamplingContext.js":150,"./tracing/errors.js":151,"./utils/spanOnScope.js":175,"./utils/spanUtils.js":176,"@sentry/utils":199}],148:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||r.timestampInSeconds(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:r.uuid4()),t.init!==undefined&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=undefined;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}n.closeSession=function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)},n.makeSession=function(e){const t=r.timestampInSeconds(),n={sid:r.uuid4(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return r.dropUndefinedKeys({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:undefined,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n},n.updateSession=s},{"@sentry/utils":199}],149:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js");n.SessionFlusher=class{constructor(e,t){this._client=e,this.flushTimeout=60,this._pendingAggregates=new Map,this._isEnabled=!0,this._intervalId=setInterval((()=>this.flush()),1e3*this.flushTimeout),this._intervalId.unref&&this._intervalId.unref(),this._sessionAttrs=t}flush(){const e=this.getSessionAggregates();0!==e.aggregates.length&&(this._pendingAggregates=new Map,this._client.sendSession(e))}getSessionAggregates(){const e=Array.from(this._pendingAggregates.values()),t={attrs:this._sessionAttrs,aggregates:e};return r.dropUndefinedKeys(t)}close(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()}incrementSessionStatusCount(){if(!this._isEnabled)return;const e=s.getIsolationScope(),t=e.getRequestSession();t&&t.status&&(this._incrementSessionStatusCount(t.status,new Date),e.setRequestSession(undefined))}_incrementSessionStatusCount(e,t){const n=new Date(t).setSeconds(0,0);let r=this._pendingAggregates.get(n);switch(r||(r={started:new Date(n).toISOString()},this._pendingAggregates.set(n,r)),e){case"errored":return r.errored=(r.errored||0)+1,r.errored;case"ok":return r.exited=(r.exited||0)+1,r.exited;default:return r.crashed=(r.crashed||0)+1,r.crashed}}}},{"./currentScopes.js":109,"@sentry/utils":199}],150:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../constants.js"),o=e("../currentScopes.js"),i=e("../semanticAttributes.js"),a=e("../utils/hasTracingEnabled.js"),c=e("../utils/spanUtils.js"),u="_frozenDsc";function l(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},i=r.dropUndefinedKeys({environment:n.environment||s.DEFAULT_ENVIRONMENT,release:n.release,public_key:o,trace_id:e});return t.emit("createDsc",i),i}function d(e){const t=o.getClient();if(!t)return{};const n=l(c.spanToJSON(e).trace_id||"",t),s=c.getRootSpan(e),d=s[u];if(d)return d;const p=s.spanContext().traceState,f=p&&p.get("sentry.dsc"),h=f&&r.baggageHeaderToDynamicSamplingContext(f);if(h)return h;const m=c.spanToJSON(s),g=m.data||{},y=g[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE];null!=y&&(n.sample_rate=`${y}`);const _=g[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],b=m.description;return"url"!==_&&b&&(n.transaction=b),a.hasTracingEnabled()&&(n.sampled=String(c.spanIsSampled(s))),t.emit("createDsc",n,s),n}n.freezeDscOnSpan=function(e,t){const n=e;r.addNonEnumerableProperty(n,u,t)},n.getDynamicSamplingContextFromClient=l,n.getDynamicSamplingContextFromSpan=d,n.spanToBaggageHeader=function(e){const t=d(e);return r.dynamicSamplingContextToSentryBaggageHeader(t)}},{"../constants.js":108,"../currentScopes.js":109,"../semanticAttributes.js":146,"../utils/hasTracingEnabled.js":168,"../utils/spanUtils.js":176,"@sentry/utils":199}],151:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=e("../utils/spanUtils.js"),i=e("./spanstatus.js");let a=!1;function c(){const e=o.getActiveSpan(),t=e&&o.getRootSpan(e);if(t){const e="internal_error";s.DEBUG_BUILD&&r.logger.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:i.SPAN_STATUS_ERROR,message:e})}}c.tag="sentry_tracingErrorCallback",n.registerSpanErrorInstrumentation=function(){a||(a=!0,r.addGlobalErrorInstrumentationHandler(c),r.addGlobalUnhandledRejectionInstrumentationHandler(c))}},{"../debug-build.js":110,"../utils/spanUtils.js":176,"./spanstatus.js":159,"@sentry/utils":199}],152:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./errors.js");n.addTracingExtensions=function(){r.registerSpanErrorInstrumentation()}},{"./errors.js":151}],153:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),o=e("../debug-build.js"),i=e("../semanticAttributes.js"),a=e("../utils/hasTracingEnabled.js"),c=e("../utils/spanOnScope.js"),u=e("../utils/spanUtils.js"),l=e("./sentryNonRecordingSpan.js"),d=e("./spanstatus.js"),p=e("./trace.js"),f={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};n.TRACING_DEFAULTS=f,n.startIdleSpan=function(e,t={}){const n=new Map;let h,m=!1,g="externalFinish",y=!t.disableAutoFinish;const _=[],{idleTimeout:b=f.idleTimeout,finalTimeout:S=f.finalTimeout,childSpanTimeout:E=f.childSpanTimeout,beforeSpanEnd:v}=t,I=s.getClient();if(!I||!a.hasTracingEnabled())return new l.SentryNonRecordingSpan;const w=s.getCurrentScope(),T=u.getActiveSpan(),A=function(e){const t=p.startInactiveSpan(e);return c._setSpanForScope(s.getCurrentScope(),t),o.DEBUG_BUILD&&r.logger.log("[Tracing] Started span is an idle span"),t}(e);function C(){h&&(clearTimeout(h),h=undefined)}function x(e){C(),h=setTimeout((()=>{!m&&0===n.size&&y&&(g="idleTimeout",A.end(e))}),b)}function k(e){h=setTimeout((()=>{!m&&y&&(g="heartbeatFailed",A.end(e))}),E)}function j(e){m=!0,n.clear(),_.forEach((e=>e())),c._setSpanForScope(w,T);const t=u.spanToJSON(A),{start_timestamp:s}=t;if(!s)return;(t.data||{})[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||A.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,g),r.logger.log(`[Tracing] Idle span "${t.op}" finished`);const a=u.getSpanDescendants(A).filter((e=>e!==A));let l=0;a.forEach((t=>{t.isRecording()&&(t.setStatus({code:d.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&r.logger.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,undefined,2)));const n=u.spanToJSON(t),{timestamp:s=0,start_timestamp:i=0}=n,a=i<=e,c=s-i<=(S+b)/1e3;if(o.DEBUG_BUILD){const e=JSON.stringify(t,undefined,2);a?c||r.logger.log("[Tracing] Discarding span since it finished after idle span final timeout",e):r.logger.log("[Tracing] Discarding span since it happened after idle span was finished",e)}c&&a||(u.removeChildSpanFromSpan(A,t),l++)})),l>0&&A.setAttribute("sentry.idle_span_discarded_spans",l)}return A.end=new Proxy(A.end,{apply(e,t,n){v&&v(A);const[s,...o]=n,i=s||r.timestampInSeconds(),a=u.spanTimeInputToSeconds(i),c=u.getSpanDescendants(A).filter((e=>e!==A));if(!c.length)return j(a),Reflect.apply(e,t,[a,...o]);const l=c.map((e=>u.spanToJSON(e).timestamp)).filter((e=>!!e)),d=l.length?Math.max(...l):undefined,p=u.spanToJSON(A).start_timestamp,f=Math.min(p?p+S/1e3:Infinity,Math.max(p||-Infinity,Math.min(a,d||Infinity)));return j(f),Reflect.apply(e,t,[f,...o])}}),_.push(I.on("spanStart",(e=>{if(m||e===A||u.spanToJSON(e).timestamp)return;var t;u.getSpanDescendants(A).includes(e)&&(t=e.spanContext().spanId,C(),n.set(t,!0),k(r.timestampInSeconds()+E/1e3))}))),_.push(I.on("spanEnd",(e=>{var t;m||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&x(r.timestampInSeconds()+b/1e3))}))),_.push(I.on("idleSpanEnableAutoFinish",(e=>{e===A&&(y=!0,x(),n.size&&k())}))),t.disableAutoFinish||x(),setTimeout((()=>{m||(A.setStatus({code:d.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),g="finalTimeout",A.end())}),S),A}},{"../currentScopes.js":109,"../debug-build.js":110,"../semanticAttributes.js":146,"../utils/hasTracingEnabled.js":168,"../utils/spanOnScope.js":175,"../utils/spanUtils.js":176,"./sentryNonRecordingSpan.js":157,"./spanstatus.js":159,"./trace.js":160,"@sentry/utils":199}],154:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=e("../utils/spanUtils.js");n.logSpanEnd=function(e){if(!s.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >"}=o.spanToJSON(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${o.getRootSpan(e)===e?"root ":""}span "${t}" with ID ${i}`;r.logger.log(a)},n.logSpanStart=function(e){if(!s.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:i}=o.spanToJSON(e),{spanId:a}=e.spanContext(),c=o.spanIsSampled(e),u=o.getRootSpan(e),l=u===e,d=`[Tracing] Starting ${c?"sampled":"unsampled"} ${l?"root ":""}span`,p=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(i&&p.push(`parent ID: ${i}`),!l){const{op:e,description:t}=o.spanToJSON(u);p.push(`root ID: ${u.spanContext().spanId}`),e&&p.push(`root op: ${e}`),t&&p.push(`root description: ${t}`)}r.logger.log(`${d}\n ${p.join("\n ")}`)}},{"../debug-build.js":110,"../utils/spanUtils.js":176,"@sentry/utils":199}],155:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../semanticAttributes.js"),s=e("../utils/spanUtils.js");n.setMeasurement=function(e,t,n,o=s.getActiveSpan()){const i=o&&s.getRootSpan(o);i&&i.addEvent(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n})},n.timedEventsToMeasurements=function(e){if(!e||0===e.length)return undefined;const t={};return e.forEach((e=>{const n=e.attributes||{},s=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],o=n[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof s&&"number"==typeof o&&(t[e.name]={value:o,unit:s})})),t}},{"../semanticAttributes.js":146,"../utils/spanUtils.js":176}],156:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=e("../utils/hasTracingEnabled.js"),i=e("../utils/parseSampleRate.js");n.sampleSpan=function(e,t){if(!o.hasTracingEnabled(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):t.parentSampled!==undefined?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const a=i.parseSampleRate(n);return a===undefined?(s.DEBUG_BUILD&&r.logger.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):a?Math.random()<a?[!0,a]:(s.DEBUG_BUILD&&r.logger.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,a]):(s.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,a])}},{"../debug-build.js":110,"../utils/hasTracingEnabled.js":168,"../utils/parseSampleRate.js":172,"@sentry/utils":199}],157:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../utils/spanUtils.js");n.SentryNonRecordingSpan=class{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:s.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},{"../utils/spanUtils.js":176,"@sentry/utils":199}],158:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../currentScopes.js"),o=e("../debug-build.js"),i=e("../envelope.js"),a=e("../metrics/metric-summary.js"),c=e("../semanticAttributes.js"),u=e("../utils/spanUtils.js"),l=e("./dynamicSamplingContext.js"),d=e("./logSpans.js"),p=e("./measurement.js"),f=e("./utils.js");class h{constructor(e={}){this._traceId=e.traceId||r.uuid4(),this._spanId=e.spanId||r.uuid4().substring(16),this._startTime=e.startTimestamp||r.timestampInSeconds(),this._attributes={},this.setAttributes({[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[c.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?u.TRACE_FLAG_SAMPLED:u.TRACE_FLAG_NONE}}setAttribute(e,t){return t===undefined?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach((t=>this.setAttribute(t,e[t]))),this}updateStartTime(e){this._startTime=u.spanTimeInputToSeconds(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=u.spanTimeInputToSeconds(e),d.logSpanEnd(this),this._onSpanEnded())}getSpanJSON(){return r.dropUndefinedKeys({data:this._attributes,description:this._name,op:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:u.getStatusMessage(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:a.getMetricSummaryJsonForSpan(this),profile_id:this._attributes[c.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[c.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:p.timedEventsToMeasurements(this._events),is_segment:this._isStandaloneSpan&&u.getRootSpan(this)===this||undefined,segment_id:this._isStandaloneSpan?u.getRootSpan(this).spanContext().spanId:undefined})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o.DEBUG_BUILD&&r.logger.log("[Tracing] Adding an event to span:",e);const s=m(t)?t:n||r.timestampInSeconds(),i=m(t)?{}:t||{},a={name:e,time:u.spanTimeInputToSeconds(s),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=s.getClient();e&&e.emit("spanEnd",this);if(!(this._isStandaloneSpan||this===u.getRootSpan(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=s.getClient();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const i=t.getTransport();i&&i.send(e).then(null,(e=>{o.DEBUG_BUILD&&r.logger.error("Error while sending span:",e)}))}(i.createSpanEnvelope([this],e)):(o.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();if(t){(f.getCapturedScopesOnSpan(this).scope||s.getCurrentScope()).captureEvent(t)}}_convertSpanToTransaction(){if(!g(u.spanToJSON(this)))return undefined;this._name||(o.DEBUG_BUILD&&r.logger.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=f.getCapturedScopesOnSpan(this),n=(e||s.getCurrentScope()).getClient()||s.getClient();if(!0!==this._sampled)return o.DEBUG_BUILD&&r.logger.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction"),undefined;const i=u.getSpanDescendants(this).filter((e=>e!==this&&!function(e){return e instanceof h&&e.isStandaloneSpan()}(e))).map((e=>u.spanToJSON(e))).filter(g),d=this._attributes[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],m={contexts:{trace:u.spanToTransactionTraceContext(this)},spans:i.length>1e3?i.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...r.dropUndefinedKeys({dynamicSamplingContext:l.getDynamicSamplingContextFromSpan(this)})},_metrics_summary:a.getMetricSummaryJsonForSpan(this),...d&&{transaction_info:{source:d}}},y=p.timedEventsToMeasurements(this._events);return y&&Object.keys(y).length&&(o.DEBUG_BUILD&&r.logger.log("[Measurements] Adding measurements to transaction event",JSON.stringify(y,undefined,2)),m.measurements=y),m}}function m(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function g(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}n.SentrySpan=h},{"../currentScopes.js":109,"../debug-build.js":110,"../envelope.js":112,"../metrics/metric-summary.js":141,"../semanticAttributes.js":146,"../utils/spanUtils.js":176,"./dynamicSamplingContext.js":150,"./logSpans.js":154,"./measurement.js":155,"./utils.js":161,"@sentry/utils":199}],159:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=1,s=2;function o(e){if(e<400&&e>=100)return{code:r};if(e>=400&&e<500)switch(e){case 401:return{code:s,message:"unauthenticated"};case 403:return{code:s,message:"permission_denied"};case 404:return{code:s,message:"not_found"};case 409:return{code:s,message:"already_exists"};case 413:return{code:s,message:"failed_precondition"};case 429:return{code:s,message:"resource_exhausted"};case 499:return{code:s,message:"cancelled"};default:return{code:s,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:s,message:"unimplemented"};case 503:return{code:s,message:"unavailable"};case 504:return{code:s,message:"deadline_exceeded"};default:return{code:s,message:"internal_error"}}return{code:s,message:"unknown_error"}}n.SPAN_STATUS_ERROR=s,n.SPAN_STATUS_OK=r,n.SPAN_STATUS_UNSET=0,n.getSpanStatusFromHttpCode=o,n.setHttpStatus=function(e,t){e.setAttribute("http.response.status_code",t);const n=o(t);"unknown_error"!==n.message&&e.setStatus(n)}},{}],160:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../carrier.js"),o=e("../currentScopes.js"),i=e("../asyncContext/index.js"),a=e("../debug-build.js"),c=e("../semanticAttributes.js"),u=e("../utils/handleCallbackErrors.js"),l=e("../utils/hasTracingEnabled.js"),d=e("../utils/spanOnScope.js"),p=e("../utils/spanUtils.js"),f=e("./dynamicSamplingContext.js"),h=e("./logSpans.js"),m=e("./sampling.js"),g=e("./sentryNonRecordingSpan.js"),y=e("./sentrySpan.js"),_=e("./spanstatus.js"),b=e("./utils.js"),S="__SENTRY_SUPPRESS_TRACING__";function E(e,t){const n=w();return n.withActiveSpan?n.withActiveSpan(e,t):o.withScope((n=>(d._setSpanForScope(n,e||undefined),t(n))))}function v({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!l.hasTracingEnabled())return new g.SentryNonRecordingSpan;const s=o.getIsolationScope();let i;if(e&&!n)i=function(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[S]&&p.spanIsSampled(e),a=i?new y.SentrySpan({...n,parentSpanId:r,traceId:s,sampled:i}):new g.SentryNonRecordingSpan({traceId:s});p.addChildSpanToSpan(e,a);const c=o.getClient();c&&(c.emit("spanStart",a),n.endTimestamp&&c.emit("spanEnd",a));return a}(e,r,t),p.addChildSpanToSpan(e,i);else if(e){const n=f.getDynamicSamplingContextFromSpan(e),{traceId:s,spanId:o}=e.spanContext(),a=p.spanIsSampled(e);i=T({traceId:s,parentSpanId:o,...t},r,a),f.freezeDscOnSpan(i,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};i=T({traceId:e,parentSpanId:o,...t},r,a),n&&f.freezeDscOnSpan(i,n)}return h.logSpanStart(i),b.setCapturedScopesOnSpan(i,r,s),i}function I(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=p.spanTimeInputToSeconds(e.startTime),delete n.startTime,n}return t}function w(){const e=s.getMainCarrier();return i.getAsyncContextStrategy(e)}function T(e,t,n){const r=o.getClient(),s=r&&r.getOptions()||{},{name:i="",attributes:a}=e,[u,l]=t.getScopeData().sdkProcessingMetadata[S]?[!1]:m.sampleSpan(s,{name:i,parentSampled:n,attributes:a,transactionContext:{name:i,parentSampled:n}}),d=new y.SentrySpan({...e,attributes:{[c.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",...e.attributes},sampled:u});return l!==undefined&&d.setAttribute(c.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,l),r&&r.emit("spanStart",d),d}function A(e){const t=d._getSpanForScope(e);if(!t)return undefined;const n=o.getClient();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?p.getRootSpan(t):t}function C(e){return e!==undefined?t=>E(e,t):e=>e()}n.continueTrace=({sentryTrace:e,baggage:t},n)=>o.withScope((s=>{const o=r.propagationContextFromHeaders(e,t);return s.setPropagationContext(o),n()})),n.startInactiveSpan=function(e){const t=w();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=I(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?t=>o.withScope(e.scope,t):s!==undefined?e=>E(s,e):e=>e())((()=>{const t=o.getCurrentScope(),s=A(t);return e.onlyIfParent&&!s?new g.SentryNonRecordingSpan:v({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})}))},n.startNewTrace=function(e){return o.withScope((t=>(t.setPropagationContext(r.generatePropagationContext()),a.DEBUG_BUILD&&r.logger.info(`Starting a new trace with id ${t.getPropagationContext().traceId}`),E(null,e))))},n.startSpan=function(e,t){const n=w();if(n.startSpan)return n.startSpan(e,t);const r=I(e),{forceTransaction:s,parentSpan:i}=e;return o.withScope(e.scope,(()=>C(i)((()=>{const n=o.getCurrentScope(),i=A(n),a=e.onlyIfParent&&!i?new g.SentryNonRecordingSpan:v({parentSpan:i,spanArguments:r,forceTransaction:s,scope:n});return d._setSpanForScope(n,a),u.handleCallbackErrors((()=>t(a)),(()=>{const{status:e}=p.spanToJSON(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}),(()=>a.end()))}))))},n.startSpanManual=function(e,t){const n=w();if(n.startSpanManual)return n.startSpanManual(e,t);const r=I(e),{forceTransaction:s,parentSpan:i}=e;return o.withScope(e.scope,(()=>C(i)((()=>{const n=o.getCurrentScope(),i=A(n),a=e.onlyIfParent&&!i?new g.SentryNonRecordingSpan:v({parentSpan:i,spanArguments:r,forceTransaction:s,scope:n});function c(){a.end()}return d._setSpanForScope(n,a),u.handleCallbackErrors((()=>t(a,c)),(()=>{const{status:e}=p.spanToJSON(a);!a.isRecording()||e&&"ok"!==e||a.setStatus({code:_.SPAN_STATUS_ERROR,message:"internal_error"})}))}))))},n.suppressTracing=function(e){const t=w();return t.suppressTracing?t.suppressTracing(e):o.withScope((t=>(t.setSDKProcessingMetadata({[S]:!0}),e())))},n.withActiveSpan=E},{"../asyncContext/index.js":102,"../carrier.js":106,"../currentScopes.js":109,"../debug-build.js":110,"../semanticAttributes.js":146,"../utils/handleCallbackErrors.js":167,"../utils/hasTracingEnabled.js":168,"../utils/spanOnScope.js":175,"../utils/spanUtils.js":176,"./dynamicSamplingContext.js":150,"./logSpans.js":154,"./sampling.js":156,"./sentryNonRecordingSpan.js":157,"./sentrySpan.js":158,"./spanstatus.js":159,"./utils.js":161,"@sentry/utils":199}],161:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentryScope",o="_sentryIsolationScope";n.stripUrlQueryAndFragment=r.stripUrlQueryAndFragment,n.getCapturedScopesOnSpan=function(e){return{scope:e[s],isolationScope:e[o]}},n.setCapturedScopesOnSpan=function(e,t,n){e&&(r.addNonEnumerableProperty(e,o,n),r.addNonEnumerableProperty(e,s,t))}},{"@sentry/utils":199}],162:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js");function o(e,t){return"event"!==t&&"transaction"!==t?undefined:Array.isArray(e)?e[1]:undefined}n.DEFAULT_TRANSPORT_BUFFER_SIZE=64,n.createTransport=function(e,t,n=r.makePromiseBuffer(e.bufferSize||64)){let i={};return{send:function(a){const c=[];if(r.forEachEnvelopeItem(a,((t,n)=>{const s=r.envelopeItemTypeToDataCategory(n);if(r.isRateLimited(i,s)){const r=o(t,n);e.recordDroppedEvent("ratelimit_backoff",s,r)}else c.push(t)})),0===c.length)return r.resolvedSyncPromise({});const u=r.createEnvelope(a[0],c),l=t=>{r.forEachEnvelopeItem(u,((n,s)=>{const i=o(n,s);e.recordDroppedEvent(t,r.envelopeItemTypeToDataCategory(s),i)}))};return n.add((()=>t({body:r.serializeEnvelope(u)}).then((e=>(e.statusCode!==undefined&&(e.statusCode<200||e.statusCode>=300)&&s.DEBUG_BUILD&&r.logger.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=r.updateRateLimits(i,e),e)),(e=>{throw l("network_error"),e})))).then((e=>e),(e=>{if(e instanceof r.SentryError)return s.DEBUG_BUILD&&r.logger.error("Skipped sending event because buffer is full."),l("queue_overflow"),r.resolvedSyncPromise({});throw e}))},flush:e=>n.drain(e)}}},{"../debug-build.js":110,"@sentry/utils":199}],163:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../api.js");function o(e,t){let n;return r.forEachEnvelopeItem(e,((e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:undefined),!!n))),n}n.eventFromEnvelope=o,n.makeMultiplexedTransport=function(e,t){return n=>{const i=e(n),a=new Map;function c(t,i){const c=i?`${t}:${i}`:t;let u=a.get(c);if(!u){const l=r.dsnFromString(t);if(!l)return undefined;const d=s.getEnvelopeEndpointWithUrlEncodedAuth(l,n.tunnel);u=i?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=o(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,i)({...n,url:d}):e({...n,url:d}),a.set(c,u)}return[t,u]}return{send:async function(e){const n=t({envelope:e,getEvent:function(t){const n=t&&t.length?t:["event"];return o(e,n)}}).map((e=>"string"==typeof e?c(e,undefined):c(e.dsn,e.release))).filter((e=>!!e)),s=n.length?n:[["",i]];return(await Promise.all(s.map((([t,n])=>n.send(function(e,t){return r.createEnvelope(t?{...e[0],dsn:t}:e[0],e[1])}(e,t))))))[0]},flush:async function(e){const t=[...a.values(),i];return(await Promise.all(t.map((t=>t.flush(e))))).every((e=>e))}}}}},{"../api.js":101,"@sentry/utils":199}],164:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js"),o=5e3;n.MIN_DELAY=100,n.START_DELAY=o,n.makeOfflineTransport=function(e){function t(...e){s.DEBUG_BUILD&&r.logger.info("[Offline]:",...e)}return n=>{const s=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let a,c=o;function u(e){a&&clearTimeout(a),a=setTimeout((async()=>{a=undefined;const e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=(new Date).toISOString(),d(e,!0).catch((e=>{t("Failed to retry sending",e)})))}),e),"number"!=typeof a&&a.unref&&a.unref()}function l(){a||(u(c),c=Math.min(2*c,36e5))}async function d(e,a=!1){if(!a&&r.envelopeContainsItemType(e,["replay_event","replay_recording"]))return await i.push(e),u(100),{};try{const t=await s.send(e);let n=100;if(t)if(t.headers&&t.headers["retry-after"])n=r.parseRetryAfterHeader(t.headers["retry-after"]);else if(t.headers&&t.headers["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t;return u(n),c=o,t}catch(s){if(await function(e,t,s){return!r.envelopeContainsItemType(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,t,s))}(e,s,c))return a?await i.unshift(e):await i.push(e),l(),t("Error sending. Event queued.",s),{};throw s}}return n.flushAtStartup&&l(),{send:d,flush:e=>s.flush(e)}}}},{"../debug-build.js":110,"@sentry/utils":199}],165:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("./currentScopes.js"),o=e("./exports.js"),i=e("./semanticAttributes.js");e("./tracing/errors.js"),e("./debug-build.js");const a=e("./tracing/trace.js"),c={mechanism:{handled:!1,data:{function:"trpcMiddleware"}}};n.trpcMiddleware=function(e={}){return async function(t){const{path:n,type:u,next:l,rawInput:d,getRawInput:p}=t,f=s.getClient(),h=f&&f.getOptions(),m={procedure_type:u};if((e.attachRpcInput!==undefined?e.attachRpcInput:h&&h.sendDefaultPii)&&(d!==undefined&&(m.input=r.normalize(d)),p!==undefined&&"function"==typeof p))try{const e=await p();m.input=r.normalize(e)}catch(e){}return o.setContext("trpc",m),a.startSpanManual({name:`trpc/${n}`,op:"rpc.server",attributes:{[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[i.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.rpc.trpc"}},(async e=>{try{const t=await l();return function(e){"object"==typeof e&&null!==e&&"ok"in e&&!e.ok&&"error"in e&&o.captureException(e.error,c)}(t),e.end(),t}catch(t){throw o.captureException(t,c),e.end(),t}}))}}},{"./currentScopes.js":109,"./debug-build.js":110,"./exports.js":114,"./semanticAttributes.js":146,"./tracing/errors.js":151,"./tracing/trace.js":160,"@sentry/utils":199}],166:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../tracing/dynamicSamplingContext.js"),o=e("./spanUtils.js");function i(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}n.applyScopeDataToEvent=function(e,t){const{fingerprint:n,span:i,breadcrumbs:a,sdkProcessingMetadata:c}=t;!function(e,t){const{extra:n,tags:s,user:o,contexts:i,level:a,transactionName:c}=t,u=r.dropUndefinedKeys(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=r.dropUndefinedKeys(s);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const d=r.dropUndefinedKeys(o);d&&Object.keys(d).length&&(e.user={...d,...e.user});const p=r.dropUndefinedKeys(i);p&&Object.keys(p).length&&(e.contexts={...p,...e.contexts});a&&(e.level=a);c&&"transaction"!==e.type&&(e.transaction=c)}(e,t),i&&function(e,t){e.contexts={trace:o.spanToTraceContext(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:s.getDynamicSamplingContextFromSpan(t),...e.sdkProcessingMetadata};const n=o.getRootSpan(t),r=o.spanToJSON(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,i),function(e,t){e.fingerprint=e.fingerprint?r.arrayify(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:undefined}(e,a),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,c)},n.mergeAndOverwriteScopeData=i,n.mergeScopeData=function(e,t){const{extra:n,tags:r,user:s,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:l,eventProcessors:d,attachments:p,propagationContext:f,transactionName:h,span:m}=t;i(e,"extra",n),i(e,"tags",r),i(e,"user",s),i(e,"contexts",o),i(e,"sdkProcessingMetadata",c),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}},{"../tracing/dynamicSamplingContext.js":150,"./spanUtils.js":176,"@sentry/utils":199}],167:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.handleCallbackErrors=function(e,t,n=(()=>{})){let s;try{s=e()}catch(e){throw t(e),n(),e}return function(e,t,n){if(r.isThenable(e))return e.then((e=>(n(),e)),(e=>{throw t(e),n(),e}));return n(),e}(s,t,n)}},{"@sentry/utils":199}],168:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../currentScopes.js");n.hasTracingEnabled=function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=r.getClient(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},{"../currentScopes.js":109}],169:[function(e,t,n){function r(e){return"/"===e[e.length-1]?e.slice(0,-1):e}Object.defineProperty(n,"__esModule",{value:!0}),n.isSentryRequestUrl=function(e,t){const n=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){if(!t)return!1;return r(e)===r(t)}(e,s)}},{}],170:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./traceData.js");n.getTraceMetaTags=function(){return Object.entries(r.getTraceData()).map((([e,t])=>`<meta name="${e}" content="${t}"/>`)).join("\n")}},{"./traceData.js":177}],171:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parameterize=function(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}},{}],172:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../debug-build.js");n.parseSampleRate=function(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?(s.DEBUG_BUILD&&r.logger.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),undefined):t}},{"../debug-build.js":110,"@sentry/utils":199}],173:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../constants.js"),o=e("../currentScopes.js"),i=e("../eventProcessors.js"),a=e("../scope.js"),c=e("./applyScopeDataToEvent.js");const u=new WeakMap;function l(e,t){const n=r.GLOBAL_OBJ._sentryDebugIds;if(!n)return;let s;const o=u.get(t);o?s=o:(s=new Map,u.set(t,s));const i=Object.entries(n).reduce(((e,[n,r])=>{let o;const i=s.get(n);i?o=i:(o=t(n),s.set(n,o));for(let t=o.length-1;t>=0;t--){const n=o[t];if(n.filename){e[n.filename]=r;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}function d(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}function p(e,t){if(!t)return e;const n=e?e.clone():new a.Scope;return n.update(t),n}const f=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];n.applyDebugIds=l,n.applyDebugMeta=d,n.parseEventHintOrCaptureContext=function(e){return e?function(e){return e instanceof a.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>f.includes(e)))}(e)?{captureContext:e}:e:undefined},n.prepareEvent=function(e,t,n,a,u,f){const{normalizeDepth:h=3,normalizeMaxBreadth:m=1e3}=e,g={...t,event_id:t.event_id||n.event_id||r.uuid4(),timestamp:t.timestamp||r.dateTimestampInSeconds()},y=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:o,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:s.DEFAULT_ENVIRONMENT);e.release===undefined&&o!==undefined&&(e.release=o);e.dist===undefined&&i!==undefined&&(e.dist=i);e.message&&(e.message=r.truncate(e.message,a));const c=e.exception&&e.exception.values&&e.exception.values[0];c&&c.value&&(c.value=r.truncate(c.value,a));const u=e.request;u&&u.url&&(u.url=r.truncate(u.url,a))}(g,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(g,y),u&&u.emit("applyFrameMetadata",t),t.type===undefined&&l(g,e.stackParser);const _=p(a,n.captureContext);n.mechanism&&r.addExceptionMechanism(g,n.mechanism);const b=u?u.getEventProcessors():[],S=o.getGlobalScope().getScopeData();if(f){const e=f.getScopeData();c.mergeScopeData(S,e)}if(_){const e=_.getScopeData();c.mergeScopeData(S,e)}const E=[...n.attachments||[],...S.attachments];E.length&&(n.attachments=E),c.applyScopeDataToEvent(g,S);const v=[...b,...S.eventProcessors];return i.notifyEventProcessors(v,g,n).then((e=>(e&&d(e),"number"==typeof h&&h>0?function(e,t,n){if(!e)return null;const s={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}})))},...e.user&&{user:r.normalize(e.user,t,n)},...e.contexts&&{contexts:r.normalize(e.contexts,t,n)},...e.extra&&{extra:r.normalize(e.extra,t,n)}};e.contexts&&e.contexts.trace&&s.contexts&&(s.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(s.contexts.trace.data=r.normalize(e.contexts.trace.data,t,n)));e.spans&&(s.spans=e.spans.map((e=>({...e,...e.data&&{data:r.normalize(e.data,t,n)}}))));return s}(e,h,m):e)))}},{"../constants.js":108,"../currentScopes.js":109,"../eventProcessors.js":113,"../scope.js":144,"./applyScopeDataToEvent.js":166,"@sentry/utils":199}],174:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils");n.applySdkMetadata=function(e,t,n=[t],s="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${s}:@sentry/${e}`,version:r.SDK_VERSION}))),version:r.SDK_VERSION}),e._metadata=o}},{"@sentry/utils":199}],175:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s="_sentrySpan";n._getSpanForScope=function(e){return e[s]},n._setSpanForScope=function(e,t){t?r.addNonEnumerableProperty(e,s,t):delete e[s]}},{"@sentry/utils":199}],176:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../asyncContext/index.js"),o=e("../carrier.js"),i=e("../currentScopes.js"),a=e("../metrics/metric-summary.js"),c=e("../semanticAttributes.js"),u=e("../tracing/spanstatus.js"),l=e("./spanOnScope.js"),d=1;function p(e){return"number"==typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):r.timestampInSeconds()}function f(e){return e>9999999999?e/1e3:e}function h(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:s,startTime:o,name:i,endTime:u,parentSpanId:l,status:d}=e;return r.dropUndefinedKeys({span_id:t,trace_id:n,data:s,description:i,parent_span_id:l,start_timestamp:p(o),timestamp:p(u)||undefined,status:g(d),op:s[c.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:s[c.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],_metrics_summary:a.getMetricSummaryJsonForSpan(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function m(e){const{traceFlags:t}=e.spanContext();return t===d}function g(e){return e&&e.code!==u.SPAN_STATUS_UNSET?e.code===u.SPAN_STATUS_OK?"ok":e.message||"unknown_error":undefined}const y="_sentryChildSpans",_="_sentryRootSpan";function b(){const e=o.getMainCarrier(),t=s.getAsyncContextStrategy(e);return t.getActiveSpan?t.getActiveSpan():l._getSpanForScope(i.getCurrentScope())}n.TRACE_FLAG_NONE=0,n.TRACE_FLAG_SAMPLED=d,n.addChildSpanToSpan=function(e,t){const n=e[_]||e;r.addNonEnumerableProperty(t,_,n),e[y]?e[y].add(t):r.addNonEnumerableProperty(e,y,new Set([t]))},n.getActiveSpan=b,n.getRootSpan=function(e){return e[_]||e},n.getSpanDescendants=function(e){const t=new Set;return function e(n){if(!t.has(n)&&m(n)){t.add(n);const r=n[y]?Array.from(n[y]):[];for(const t of r)e(t)}}(e),Array.from(t)},n.getStatusMessage=g,n.removeChildSpanFromSpan=function(e,t){e[y]&&e[y].delete(t)},n.spanIsSampled=m,n.spanTimeInputToSeconds=p,n.spanToJSON=h,n.spanToTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:s}=h(e);return r.dropUndefinedKeys({parent_span_id:s,span_id:t,trace_id:n})},n.spanToTraceHeader=function(e){const{traceId:t,spanId:n}=e.spanContext(),s=m(e);return r.generateSentryTraceHeader(t,n,s)},n.spanToTransactionTraceContext=function(e){const{spanId:t,traceId:n}=e.spanContext(),{data:s,op:o,parent_span_id:i,status:a,origin:c}=h(e);return r.dropUndefinedKeys({parent_span_id:i,span_id:t,trace_id:n,data:s,op:o,status:a,origin:c})},n.updateMetricSummaryOnActiveSpan=function(e,t,n,r,s,o){const i=b();i&&a.updateMetricSummaryOnSpan(i,e,t,n,r,s,o)}},{"../asyncContext/index.js":102,"../carrier.js":106,"../currentScopes.js":109,"../metrics/metric-summary.js":141,"../semanticAttributes.js":146,"../tracing/spanstatus.js":159,"./spanOnScope.js":175,"@sentry/utils":199}],177:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("@sentry/utils"),s=e("../asyncContext/index.js"),o=e("../carrier.js"),i=e("../currentScopes.js"),a=e("../exports.js");e("../tracing/errors.js"),e("../debug-build.js");const c=e("./spanUtils.js"),u=e("../tracing/dynamicSamplingContext.js");function l(e){if(!e||!e.length)return!1;const t="[-!#$%&'*+.^_`|~A-Za-z0-9]+",n="[!#-+-./0-9:<=>?@A-Z\\[\\]a-z{-}]+",r="\\s*";return new RegExp(`^${t}${r}=${r}${n}(${r},${r}${t}${r}=${r}${n})*$`).test(e)}n.getTraceData=function(){if(!a.isEnabled())return{};const e=o.getMainCarrier(),t=s.getAsyncContextStrategy(e);if(t.getTraceData)return t.getTraceData();const n=i.getClient(),d=i.getCurrentScope(),p=c.getActiveSpan(),{dsc:f,sampled:h,traceId:m}=d.getPropagationContext(),g=p&&c.getRootSpan(p),y=p?c.spanToTraceHeader(p):r.generateSentryTraceHeader(m,undefined,h),_=g?u.getDynamicSamplingContextFromSpan(g):f||(n?u.getDynamicSamplingContextFromClient(m,n):undefined),b=r.dynamicSamplingContextToSentryBaggageHeader(_);if(!r.TRACEPARENT_REGEXP.test(y))return r.logger.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const S=l(b);return S||r.logger.warn('Invalid baggage data. Not returning "baggage" value'),{"sentry-trace":y,...S&&{baggage:b}}},n.isValidBaggageString=l},{"../asyncContext/index.js":102,"../carrier.js":106,"../currentScopes.js":109,"../debug-build.js":110,"../exports.js":114,"../tracing/dynamicSamplingContext.js":150,"../tracing/errors.js":151,"./spanUtils.js":176,"@sentry/utils":199}],178:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./string.js");function o(e,t,n,s,c,u,l,d){if(u.length>=n+1)return u;let p=[...u];if(r.isInstanceOf(s[c],Error)){i(l,d);const r=e(t,s[c]),u=p.length;a(r,c,u,d),p=o(e,t,n,s[c],c,[r,...p],r,u)}return Array.isArray(s.errors)&&s.errors.forEach(((s,u)=>{if(r.isInstanceOf(s,Error)){i(l,d);const r=e(t,s),f=p.length;a(r,`errors[${u}]`,f,d),p=o(e,t,n,s,c,[r,...p],r,f)}})),p}function i(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function a(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}n.applyAggregateErrorsToEvent=function(e,t,n=250,i,a,c,u){if(!(c.exception&&c.exception.values&&u&&r.isInstanceOf(u.originalException,Error)))return;const l=c.exception.values.length>0?c.exception.values[c.exception.values.length-1]:undefined;var d,p;l&&(c.exception.values=(d=o(e,t,a,u.originalException,i,c.exception.values,l,0),p=n,d.map((e=>(e.value&&(e.value=s.truncate(e.value,p)),e)))))}},{"./is.js":205,"./string.js":222}],179:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./node-stack-trace.js"),s=e("./object.js"),o=e("./stacktrace.js");n.callFrameToStackFrame=function(e,t,n){const i=t?t.replace(/^file:\/\//,""):undefined,a=e.location.columnNumber?e.location.columnNumber+1:undefined,c=e.location.lineNumber?e.location.lineNumber+1:undefined;return s.dropUndefinedKeys({filename:i,module:n(i),function:e.functionName||o.UNKNOWN_FUNCTION,colno:a,lineno:c,in_app:i?r.filenameIsInApp(i):undefined})},n.watchdogTimer=function(e,t,n,r){const s=e();let o=!1,i=!0;return setInterval((()=>{const e=s.getTimeMs();!1===o&&e>t+n&&(o=!0,i&&r()),e<t+n&&(o=!1)}),20),{poll:()=>{s.reset()},enabled:e=>{i=e}}}},{"./node-stack-trace.js":211,"./object.js":214,"./stacktrace.js":221}],180:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.flatten=function(e){const t=[],n=e=>{e.forEach((e=>{Array.isArray(e)?n(e):t.push(e)}))};return n(e),t}},{}],181:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./is.js"),o=e("./logger.js"),i="sentry-",a=/^sentry-/,c=8192;function u(e){return e&&(s.isString(e)||Array.isArray(e))?Array.isArray(e)?e.reduce(((e,t)=>{const n=l(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):l(e):undefined}function l(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}n.BAGGAGE_HEADER_NAME="baggage",n.MAX_BAGGAGE_STRING_LENGTH=c,n.SENTRY_BAGGAGE_KEY_PREFIX=i,n.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=a,n.baggageHeaderToDynamicSamplingContext=function(e){const t=u(e);if(!t)return undefined;const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(a)){e[t.slice(7)]=n}return e}),{});return Object.keys(n).length>0?n:undefined},n.dynamicSamplingContextToSentryBaggageHeader=function(e){return e?function(e){if(0===Object.keys(e).length)return undefined;return Object.entries(e).reduce(((e,[t,n],s)=>{const i=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,a=0===s?i:`${e},${i}`;return a.length>c?(r.DEBUG_BUILD&&o.logger.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):a}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${i}${t}`]=n),e)),{})):undefined},n.parseBaggageHeader=u},{"./debug-build.js":193,"./is.js":205,"./logger.js":207}],182:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getBreadcrumbLogLevelFromHttpStatusCode=function(e){return e===undefined?undefined:e>=400&&e<500?"warning":e>=500?"error":undefined}},{}],183:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./worldwide.js").GLOBAL_OBJ;function o(e,t){const n=e,o=[];if(!n||!n.tagName)return"";if(s.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const i=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(i&&i.length)i.forEach((e=>{o.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&o.push(`#${n.id}`);const e=n.className;if(e&&r.isString(e)){const t=e.split(/\s+/);for(const e of t)o.push(`.${e}`)}}const a=["aria-label","type","name","title","alt"];for(const e of a){const t=n.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}n.getComponentName=function(e){if(!s.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null},n.getDomElement=function(e){return s.document&&s.document.querySelector?s.document.querySelector(e):null},n.getLocationHref=function(){try{return s.document.location.href}catch(e){return""}},n.htmlTreeAsString=function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,a=0;const c=" > ",u=c.length;let l;const d=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=o(n,d),!("html"===l||i>1&&a+s.length*u+l.length>=p));)s.push(l),a+=l.length,n=n.parentNode;return s.reverse().join(c)}catch(e){return"<unknown>"}}},{"./is.js":205,"./worldwide.js":232}],184:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_nullishCoalesce.js");n._asyncNullishCoalesce=async function(e,t){return r._nullishCoalesce(e,t)}},{"./_nullishCoalesce.js":187}],185:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._asyncOptionalChain=async function(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=await o(n)):"call"!==s&&"optionalCall"!==s||(n=await o(((...e)=>n.call(t,...e))),t=undefined)}return n}},{}],186:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_asyncOptionalChain.js");n._asyncOptionalChainDelete=async function(e){const t=await r._asyncOptionalChain(e);return null==t||t}},{"./_asyncOptionalChain.js":185}],187:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._nullishCoalesce=function(e,t){return null!=e?e:t()}},{}],188:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n._optionalChain=function(e){let t=undefined,n=e[0],r=1;for(;r<e.length;){const s=e[r],o=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=o(n)):"call"!==s&&"optionalCall"!==s||(n=o(((...e)=>n.call(t,...e))),t=undefined)}return n}},{}],189:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./_optionalChain.js");n._optionalChainDelete=function(e){const t=r._optionalChain(e);return null==t||t}},{"./_optionalChain.js":188}],190:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.makeFifoCache=function(e){let t=[],n={};return{add(r,s){for(;t.length>=e;){const e=t.shift();e!==undefined&&delete n[e]}n[r]&&this.delete(r),t.push(r),n[r]=s},clear(){n={},t=[]},get:e=>n[e],size:()=>t.length,delete(e){if(!n[e])return!1;delete n[e];for(let n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}return!0}}}},{}],191:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./envelope.js"),s=e("./time.js");n.createClientReportEnvelope=function(e,t,n){const o=[{type:"client_report"},{timestamp:n||s.dateTimestampInSeconds(),discarded_events:e}];return r.createEnvelope(t?{dsn:t}:{},[o])}},{"./envelope.js":196,"./time.js":225}],192:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.parseCookie=function(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let s=e.indexOf(";",n);if(-1===s)s=e.length;else if(s<r){n=e.lastIndexOf(";",r-1)+1;continue}const o=e.slice(n,r).trim();if(undefined===t[o]){let n=e.slice(r+1,s).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[o]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch(e){t[o]=n}}n=s+1}return t}},{}],193:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{dup:41}],194:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./logger.js"),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function i(e){const t=o.exec(e);if(!t)return s.consoleSandbox((()=>{console.error(`Invalid Sentry Dsn: ${e}`)})),undefined;const[n,r,i="",c="",u="",l=""]=t.slice(1);let d="",p=l;const f=p.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),p=f.pop()),p){const e=p.match(/^\d+/);e&&(p=e[0])}return a({host:c,pass:i,path:d,projectId:p,port:u,protocol:n,publicKey:r})}function a(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}n.dsnFromString=i,n.dsnToString=function(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${i}`},n.makeDsn=function(e){const t="string"==typeof e?i(e):a(e);return t&&function(e){if(!r.DEBUG_BUILD)return!0;const{port:t,projectId:n,protocol:o}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(s.logger.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(o)?t&&isNaN(parseInt(t,10))&&(s.logger.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(s.logger.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),1):(s.logger.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t)?t:undefined}},{"./debug-build.js":193,"./logger.js":207}],195:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getSDKSource=function(){return"npm"},n.isBrowserBundle=function(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}},{}],196:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./dsn.js"),s=e("./normalize.js"),o=e("./object.js"),i=e("./worldwide.js");function a(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function c(e){return i.GLOBAL_OBJ.__SENTRY__&&i.GLOBAL_OBJ.__SENTRY__.encodePolyfill?i.GLOBAL_OBJ.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}const u={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};n.addItemToEnvelope=function(e,t){const[n,r]=e;return[n,[...r,t]]},n.createAttachmentEnvelopeItem=function(e){const t="string"==typeof e.data?c(e.data):e.data;return[o.dropUndefinedKeys({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]},n.createEnvelope=function(e,t=[]){return[e,t]},n.createEventEnvelopeHeaders=function(e,t,n,s){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&s&&{dsn:r.dsnToString(s)},...i&&{trace:o.dropUndefinedKeys({...i})}}},n.createSpanEnvelopeItem=function(e){return[{type:"span"},e]},n.envelopeContainsItemType=function(e,t){return a(e,((e,n)=>t.includes(n)))},n.envelopeItemTypeToDataCategory=function(e){return u[e]},n.forEachEnvelopeItem=a,n.getSdkMetadataForEnvelopeHeader=function(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}},n.parseEnvelope=function(e){let t="string"==typeof e?c(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse((r=n(e),i.GLOBAL_OBJ.__SENTRY__&&i.GLOBAL_OBJ.__SENTRY__.decodePolyfill?i.GLOBAL_OBJ.__SENTRY__.decodePolyfill(r):(new TextDecoder).decode(r)));var r}const s=r(),o=[];for(;t.length;){const e=r(),t="number"==typeof e.length?e.length:undefined;o.push([e,t?n(t):r()])}return[s,o]},n.serializeEnvelope=function(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[c(r),e]:r.push("string"==typeof e?c(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(s.normalize(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}},{"./dsn.js":194,"./normalize.js":213,"./object.js":214,"./worldwide.js":232}],197:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});class r extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}n.SentryError=r},{}],198:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./misc.js"),o=e("./normalize.js"),i=e("./object.js");function a(e,t){return e(t.stack||"",1)}function c(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=a(e,t);return r.length&&(n.stacktrace={frames:r}),n}function u(e){if("name"in e&&"string"==typeof e.name){let t=`'${e.name}' captured as exception`;return"message"in e&&"string"==typeof e.message&&(t+=` with message '${e.message}'`),t}if("message"in e&&"string"==typeof e.message)return e.message;const t=i.extractExceptionKeysForMessage(e);if(r.isErrorEvent(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const n=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:undefined}catch(e){}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function l(e,t,n,s){if(r.isError(n))return[n,undefined];if(t.synthetic=!0,r.isPlainObject(n)){const t=e&&e.getOptions().normalizeDepth,r={__serialized__:o.normalizeToSize(n,t)},i=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}return undefined}(n);if(i)return[i,r];const a=u(n),c=s&&s.syntheticException||new Error(a);return c.message=a,[c,r]}const i=s&&s.syntheticException||new Error(n);return i.message=`${n}`,[i,undefined]}n.eventFromMessage=function(e,t,n="info",s,o){const i={event_id:s&&s.event_id,level:n};if(o&&s&&s.syntheticException){const n=a(e,s.syntheticException);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]})}if(r.isParameterizedString(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i},n.eventFromUnknownInput=function(e,t,n,r){const o=r&&r.data&&r.data.mechanism||{handled:!0,type:"generic"},[i,a]=l(e,o,n,r),u={exception:{values:[c(t,i)]}};return a&&(u.extra=a),s.addExceptionTypeValue(u,undefined,undefined),s.addExceptionMechanism(u,o),{...u,event_id:r&&r.event_id}},n.exceptionFromError=c,n.parseStackFrames=a},{"./is.js":205,"./misc.js":210,"./normalize.js":213,"./object.js":214}],199:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./aggregate-errors.js"),s=e("./array.js"),o=e("./breadcrumb-log-level.js"),i=e("./browser.js"),a=e("./dsn.js"),c=e("./error.js"),u=e("./worldwide.js"),l=e("./instrument/console.js"),d=e("./instrument/fetch.js"),p=e("./instrument/globalError.js"),f=e("./instrument/globalUnhandledRejection.js"),h=e("./instrument/handlers.js"),m=e("./is.js"),g=e("./isBrowser.js"),y=e("./logger.js"),_=e("./memo.js"),b=e("./misc.js"),S=e("./node.js"),E=e("./normalize.js"),v=e("./object.js"),I=e("./path.js"),w=e("./promisebuffer.js"),T=e("./requestdata.js"),A=e("./severity.js"),C=e("./stacktrace.js"),x=e("./node-stack-trace.js"),k=e("./string.js"),j=e("./supports.js"),R=e("./syncpromise.js"),O=e("./time.js"),N=e("./tracing.js"),M=e("./env.js"),P=e("./envelope.js"),D=e("./clientreport.js"),L=e("./ratelimit.js"),U=e("./baggage.js"),B=e("./url.js"),F=e("./cache.js"),$=e("./eventbuilder.js"),H=e("./anr.js"),W=e("./lru.js"),G=e("./buildPolyfills/_asyncNullishCoalesce.js"),z=e("./buildPolyfills/_asyncOptionalChain.js"),q=e("./buildPolyfills/_asyncOptionalChainDelete.js"),J=e("./buildPolyfills/_nullishCoalesce.js"),V=e("./buildPolyfills/_optionalChain.js"),Y=e("./buildPolyfills/_optionalChainDelete.js"),X=e("./propagationContext.js"),K=e("./version.js"),Z=e("./vendor/escapeStringForRegex.js"),Q=e("./vendor/supportsHistory.js");n.applyAggregateErrorsToEvent=r.applyAggregateErrorsToEvent,n.flatten=s.flatten,n.getBreadcrumbLogLevelFromHttpStatusCode=o.getBreadcrumbLogLevelFromHttpStatusCode,n.getComponentName=i.getComponentName,n.getDomElement=i.getDomElement,n.getLocationHref=i.getLocationHref,n.htmlTreeAsString=i.htmlTreeAsString,n.dsnFromString=a.dsnFromString,n.dsnToString=a.dsnToString,n.makeDsn=a.makeDsn,n.SentryError=c.SentryError,n.GLOBAL_OBJ=u.GLOBAL_OBJ,n.getGlobalSingleton=u.getGlobalSingleton,n.addConsoleInstrumentationHandler=l.addConsoleInstrumentationHandler,n.addFetchEndInstrumentationHandler=d.addFetchEndInstrumentationHandler,n.addFetchInstrumentationHandler=d.addFetchInstrumentationHandler,n.addGlobalErrorInstrumentationHandler=p.addGlobalErrorInstrumentationHandler,n.addGlobalUnhandledRejectionInstrumentationHandler=f.addGlobalUnhandledRejectionInstrumentationHandler,n.addHandler=h.addHandler,n.maybeInstrument=h.maybeInstrument,n.resetInstrumentationHandlers=h.resetInstrumentationHandlers,n.triggerHandlers=h.triggerHandlers,n.isDOMError=m.isDOMError,n.isDOMException=m.isDOMException,n.isElement=m.isElement,n.isError=m.isError,n.isErrorEvent=m.isErrorEvent,n.isEvent=m.isEvent,n.isInstanceOf=m.isInstanceOf,n.isParameterizedString=m.isParameterizedString,n.isPlainObject=m.isPlainObject,n.isPrimitive=m.isPrimitive,n.isRegExp=m.isRegExp,n.isString=m.isString,n.isSyntheticEvent=m.isSyntheticEvent,n.isThenable=m.isThenable,n.isVueViewModel=m.isVueViewModel,n.isBrowser=g.isBrowser,n.CONSOLE_LEVELS=y.CONSOLE_LEVELS,n.consoleSandbox=y.consoleSandbox,n.logger=y.logger,n.originalConsoleMethods=y.originalConsoleMethods,n.memoBuilder=_.memoBuilder,n.addContextToFrame=b.addContextToFrame,n.addExceptionMechanism=b.addExceptionMechanism,n.addExceptionTypeValue=b.addExceptionTypeValue,n.arrayify=b.arrayify,n.checkOrSetAlreadyCaught=b.checkOrSetAlreadyCaught,n.getEventDescription=b.getEventDescription,n.parseSemver=b.parseSemver,n.uuid4=b.uuid4,n.dynamicRequire=S.dynamicRequire,n.isNodeEnv=S.isNodeEnv,n.loadModule=S.loadModule,n.normalize=E.normalize,n.normalizeToSize=E.normalizeToSize,n.normalizeUrlToBase=E.normalizeUrlToBase,n.addNonEnumerableProperty=v.addNonEnumerableProperty,n.convertToPlainObject=v.convertToPlainObject,n.dropUndefinedKeys=v.dropUndefinedKeys,n.extractExceptionKeysForMessage=v.extractExceptionKeysForMessage,n.fill=v.fill,n.getOriginalFunction=v.getOriginalFunction,n.markFunctionWrapped=v.markFunctionWrapped,n.objectify=v.objectify,n.urlEncode=v.urlEncode,n.basename=I.basename,n.dirname=I.dirname,n.isAbsolute=I.isAbsolute,n.join=I.join,n.normalizePath=I.normalizePath,n.relative=I.relative,n.resolve=I.resolve,n.makePromiseBuffer=w.makePromiseBuffer,n.DEFAULT_USER_INCLUDES=T.DEFAULT_USER_INCLUDES,n.addRequestDataToEvent=T.addRequestDataToEvent,n.extractPathForTransaction=T.extractPathForTransaction,n.extractRequestData=T.extractRequestData,n.winterCGHeadersToDict=T.winterCGHeadersToDict,n.winterCGRequestToRequestData=T.winterCGRequestToRequestData,n.severityLevelFromString=A.severityLevelFromString,n.validSeverityLevels=A.validSeverityLevels,n.UNKNOWN_FUNCTION=C.UNKNOWN_FUNCTION,n.createStackParser=C.createStackParser,n.getFramesFromEvent=C.getFramesFromEvent,n.getFunctionName=C.getFunctionName,n.stackParserFromStackParserOptions=C.stackParserFromStackParserOptions,n.stripSentryFramesAndReverse=C.stripSentryFramesAndReverse,n.filenameIsInApp=x.filenameIsInApp,n.node=x.node,n.nodeStackLineParser=x.nodeStackLineParser,n.isMatchingPattern=k.isMatchingPattern,n.safeJoin=k.safeJoin,n.snipLine=k.snipLine,n.stringMatchesSomePattern=k.stringMatchesSomePattern,n.truncate=k.truncate,n.isNativeFunction=j.isNativeFunction,n.supportsDOMError=j.supportsDOMError,n.supportsDOMException=j.supportsDOMException,n.supportsErrorEvent=j.supportsErrorEvent,n.supportsFetch=j.supportsFetch,n.supportsNativeFetch=j.supportsNativeFetch,n.supportsReferrerPolicy=j.supportsReferrerPolicy,n.supportsReportingObserver=j.supportsReportingObserver,n.SyncPromise=R.SyncPromise,n.rejectedSyncPromise=R.rejectedSyncPromise,n.resolvedSyncPromise=R.resolvedSyncPromise,Object.defineProperty(n,"_browserPerformanceTimeOriginMode",{enumerable:!0,get:()=>O._browserPerformanceTimeOriginMode}),n.browserPerformanceTimeOrigin=O.browserPerformanceTimeOrigin,n.dateTimestampInSeconds=O.dateTimestampInSeconds,n.timestampInSeconds=O.timestampInSeconds,n.TRACEPARENT_REGEXP=N.TRACEPARENT_REGEXP,n.extractTraceparentData=N.extractTraceparentData,n.generateSentryTraceHeader=N.generateSentryTraceHeader,n.propagationContextFromHeaders=N.propagationContextFromHeaders,n.getSDKSource=M.getSDKSource,n.isBrowserBundle=M.isBrowserBundle,n.addItemToEnvelope=P.addItemToEnvelope,n.createAttachmentEnvelopeItem=P.createAttachmentEnvelopeItem,n.createEnvelope=P.createEnvelope,n.createEventEnvelopeHeaders=P.createEventEnvelopeHeaders,n.createSpanEnvelopeItem=P.createSpanEnvelopeItem,n.envelopeContainsItemType=P.envelopeContainsItemType,n.envelopeItemTypeToDataCategory=P.envelopeItemTypeToDataCategory,n.forEachEnvelopeItem=P.forEachEnvelopeItem,n.getSdkMetadataForEnvelopeHeader=P.getSdkMetadataForEnvelopeHeader,n.parseEnvelope=P.parseEnvelope,n.serializeEnvelope=P.serializeEnvelope,n.createClientReportEnvelope=D.createClientReportEnvelope,n.DEFAULT_RETRY_AFTER=L.DEFAULT_RETRY_AFTER,n.disabledUntil=L.disabledUntil,n.isRateLimited=L.isRateLimited,n.parseRetryAfterHeader=L.parseRetryAfterHeader,n.updateRateLimits=L.updateRateLimits,n.BAGGAGE_HEADER_NAME=U.BAGGAGE_HEADER_NAME,n.MAX_BAGGAGE_STRING_LENGTH=U.MAX_BAGGAGE_STRING_LENGTH,n.SENTRY_BAGGAGE_KEY_PREFIX=U.SENTRY_BAGGAGE_KEY_PREFIX,n.SENTRY_BAGGAGE_KEY_PREFIX_REGEX=U.SENTRY_BAGGAGE_KEY_PREFIX_REGEX,n.baggageHeaderToDynamicSamplingContext=U.baggageHeaderToDynamicSamplingContext,n.dynamicSamplingContextToSentryBaggageHeader=U.dynamicSamplingContextToSentryBaggageHeader,n.parseBaggageHeader=U.parseBaggageHeader,n.getNumberOfUrlSegments=B.getNumberOfUrlSegments,n.getSanitizedUrlString=B.getSanitizedUrlString,n.parseUrl=B.parseUrl,n.stripUrlQueryAndFragment=B.stripUrlQueryAndFragment,n.makeFifoCache=F.makeFifoCache,n.eventFromMessage=$.eventFromMessage,n.eventFromUnknownInput=$.eventFromUnknownInput,n.exceptionFromError=$.exceptionFromError,n.parseStackFrames=$.parseStackFrames,n.callFrameToStackFrame=H.callFrameToStackFrame,n.watchdogTimer=H.watchdogTimer,n.LRUMap=W.LRUMap,n._asyncNullishCoalesce=G._asyncNullishCoalesce,n._asyncOptionalChain=z._asyncOptionalChain,n._asyncOptionalChainDelete=q._asyncOptionalChainDelete,n._nullishCoalesce=J._nullishCoalesce,n._optionalChain=V._optionalChain,n._optionalChainDelete=Y._optionalChainDelete,n.generatePropagationContext=X.generatePropagationContext,n.SDK_VERSION=K.SDK_VERSION,n.escapeStringForRegex=Z.escapeStringForRegex,n.supportsHistory=Q.supportsHistory},{"./aggregate-errors.js":178,"./anr.js":179,"./array.js":180,"./baggage.js":181,"./breadcrumb-log-level.js":182,"./browser.js":183,"./buildPolyfills/_asyncNullishCoalesce.js":184,"./buildPolyfills/_asyncOptionalChain.js":185,"./buildPolyfills/_asyncOptionalChainDelete.js":186,"./buildPolyfills/_nullishCoalesce.js":187,"./buildPolyfills/_optionalChain.js":188,"./buildPolyfills/_optionalChainDelete.js":189,"./cache.js":190,"./clientreport.js":191,"./dsn.js":194,"./env.js":195,"./envelope.js":196,"./error.js":197,"./eventbuilder.js":198,"./instrument/console.js":200,"./instrument/fetch.js":201,"./instrument/globalError.js":202,"./instrument/globalUnhandledRejection.js":203,"./instrument/handlers.js":204,"./is.js":205,"./isBrowser.js":206,"./logger.js":207,"./lru.js":208,"./memo.js":209,"./misc.js":210,"./node-stack-trace.js":211,"./node.js":212,"./normalize.js":213,"./object.js":214,"./path.js":215,"./promisebuffer.js":216,"./propagationContext.js":217,"./ratelimit.js":218,"./requestdata.js":219,"./severity.js":220,"./stacktrace.js":221,"./string.js":222,"./supports.js":223,"./syncpromise.js":224,"./time.js":225,"./tracing.js":226,"./url.js":227,"./vendor/escapeStringForRegex.js":228,"./vendor/supportsHistory.js":230,"./version.js":231,"./worldwide.js":232}],200:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../logger.js"),s=e("../object.js"),o=e("../worldwide.js"),i=e("./handlers.js");function a(){"console"in o.GLOBAL_OBJ&&r.CONSOLE_LEVELS.forEach((function(e){e in o.GLOBAL_OBJ.console&&s.fill(o.GLOBAL_OBJ.console,e,(function(t){return r.originalConsoleMethods[e]=t,function(...t){const n={args:t,level:e};i.triggerHandlers("console",n);const s=r.originalConsoleMethods[e];s&&s.apply(o.GLOBAL_OBJ.console,t)}}))}))}n.addConsoleInstrumentationHandler=function(e){const t="console";i.addHandler(t,e),i.maybeInstrument(t,a)}},{"../logger.js":207,"../object.js":214,"../worldwide.js":232,"./handlers.js":204}],201:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../is.js"),s=e("../object.js"),o=e("../supports.js"),i=e("../time.js"),a=e("../worldwide.js"),c=e("./handlers.js");function u(e,t=!1){t&&!o.supportsNativeFetch()||s.fill(a.GLOBAL_OBJ,"fetch",(function(t){return function(...n){const{method:o,url:u}=f(n),l={args:n,fetchData:{method:o,url:u},startTimestamp:1e3*i.timestampInSeconds()};e||c.triggerHandlers("fetch",{...l});const d=(new Error).stack;return t.apply(a.GLOBAL_OBJ,n).then((async t=>(e?e(t):c.triggerHandlers("fetch",{...l,endTimestamp:1e3*i.timestampInSeconds(),response:t}),t)),(e=>{throw c.triggerHandlers("fetch",{...l,endTimestamp:1e3*i.timestampInSeconds(),error:e}),r.isError(e)&&e.stack===undefined&&(e.stack=d,s.addNonEnumerableProperty(e,"framesToPop",1)),e}))}}))}function l(e){let t;try{t=e.clone()}catch(e){return}!async function(e,t){if(e&&e.body){const n=e.body,r=n.getReader(),s=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),9e4);let o=!0;for(;o;){let e;try{e=setTimeout((()=>{n.cancel().then(null,(()=>{}))}),5e3);const{done:s}=await r.read();clearTimeout(e),s&&(t(),o=!1)}catch(e){o=!1}finally{clearTimeout(e)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,(()=>{}))}}(t,(()=>{c.triggerHandlers("fetch-body-resolved",{endTimestamp:1e3*i.timestampInSeconds(),response:e})}))}function d(e,t){return!!e&&"object"==typeof e&&!!e[t]}function p(e){return"string"==typeof e?e:e?d(e,"url")?e.url:e.toString?e.toString():"":""}function f(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:p(t),method:d(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:p(t),method:d(t,"method")?String(t.method).toUpperCase():"GET"}}n.addFetchEndInstrumentationHandler=function(e){const t="fetch-body-resolved";c.addHandler(t,e),c.maybeInstrument(t,(()=>u(l)))},n.addFetchInstrumentationHandler=function(e,t){const n="fetch";c.addHandler(n,e),c.maybeInstrument(n,(()=>u(undefined,t)))},n.parseFetchArgs=f},{"../is.js":205,"../object.js":214,"../supports.js":223,"../time.js":225,"../worldwide.js":232,"./handlers.js":204}],202:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js"),s=e("./handlers.js");let o=null;function i(){o=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,i){const a={column:r,error:i,line:n,msg:e,url:t};return s.triggerHandlers("error",a),!(!o||o.__SENTRY_LOADER__)&&o.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}n.addGlobalErrorInstrumentationHandler=function(e){const t="error";s.addHandler(t,e),s.maybeInstrument(t,i)}},{"../worldwide.js":232,"./handlers.js":204}],203:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js"),s=e("./handlers.js");let o=null;function i(){o=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return s.triggerHandlers("unhandledrejection",t),!(o&&!o.__SENTRY_LOADER__)||o.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}n.addGlobalUnhandledRejectionInstrumentationHandler=function(e){const t="unhandledrejection";s.addHandler(t,e),s.maybeInstrument(t,i)}},{"../worldwide.js":232,"./handlers.js":204}],204:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../debug-build.js"),s=e("../logger.js"),o=e("../stacktrace.js"),i={},a={};n.addHandler=function(e,t){i[e]=i[e]||[],i[e].push(t)},n.maybeInstrument=function(e,t){a[e]||(t(),a[e]=!0)},n.resetInstrumentationHandlers=function(){Object.keys(i).forEach((e=>{i[e]=undefined}))},n.triggerHandlers=function(e,t){const n=e&&i[e];if(n)for(const i of n)try{i(t)}catch(t){r.DEBUG_BUILD&&s.logger.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${o.getFunctionName(i)}\nError:`,t)}}},{"../debug-build.js":193,"../logger.js":207,"../stacktrace.js":221}],205:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=Object.prototype.toString;function s(e,t){return r.call(e)===`[object ${t}]`}function o(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function i(e){return s(e,"Object")}function a(e,t){try{return e instanceof t}catch(e){return!1}}n.isDOMError=function(e){return s(e,"DOMError")},n.isDOMException=function(e){return s(e,"DOMException")},n.isElement=function(e){return"undefined"!=typeof Element&&a(e,Element)},n.isError=function(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return a(e,Error)}},n.isErrorEvent=function(e){return s(e,"ErrorEvent")},n.isEvent=function(e){return"undefined"!=typeof Event&&a(e,Event)},n.isInstanceOf=a,n.isParameterizedString=o,n.isPlainObject=i,n.isPrimitive=function(e){return null===e||o(e)||"object"!=typeof e&&"function"!=typeof e},n.isRegExp=function(e){return s(e,"RegExp")},n.isString=function(e){return s(e,"String")},n.isSyntheticEvent=function(e){return i(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},n.isThenable=function(e){return Boolean(e&&e.then&&"function"==typeof e.then)},n.isVueViewModel=function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}},{}],206:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./node.js"),s=e("./worldwide.js");n.isBrowser=function(){return"undefined"!=typeof window&&(!r.isNodeEnv()||s.GLOBAL_OBJ.process!==undefined&&"renderer"===s.GLOBAL_OBJ.process.type)}},{"./node.js":212,"./worldwide.js":232}],207:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./worldwide.js"),o=["debug","info","warn","error","log","assert","trace"],i={};function a(e){if(!("console"in s.GLOBAL_OBJ))return e();const t=s.GLOBAL_OBJ.console,n={},r=Object.keys(i);r.forEach((e=>{const r=i[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=s.getGlobalSingleton("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.DEBUG_BUILD?o.forEach((n=>{t[n]=(...t)=>{e&&a((()=>{s.GLOBAL_OBJ.console[n](`Sentry Logger [${n}]:`,...t)}))}})):o.forEach((e=>{t[e]=()=>undefined})),t}));n.CONSOLE_LEVELS=o,n.consoleSandbox=a,n.logger=c,n.originalConsoleMethods=i},{"./debug-build.js":193,"./worldwide.js":232}],208:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.LRUMap=class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){const t=this._cache.get(e);return t===undefined?undefined:(this._cache.delete(e),this._cache.set(e,t),t)}set(e,t){this._cache.size>=this._maxSize&&this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)}remove(e){const t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){const e=[];return this._cache.forEach((t=>e.push(t))),e}}},{}],209:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.memoBuilder=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){if(t[e]===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}},{}],210:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./object.js"),s=e("./string.js"),o=e("./worldwide.js");function i(e){return e.exception&&e.exception.values?e.exception.values[0]:undefined}const a=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function c(e){return parseInt(e||"",10)}n.addContextToFrame=function(e,t,n=5){if(t.lineno===undefined)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map((e=>s.snipLine(e,0)));const i=Math.min(r-1,o);t.context_line=s.snipLine(e[i],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map((e=>s.snipLine(e,0)))},n.addExceptionMechanism=function(e,t){const n=i(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}},n.addExceptionTypeValue=function(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")},n.arrayify=function(e){return Array.isArray(e)?e:[e]},n.checkOrSetAlreadyCaught=function(e){if(e&&e.__sentry_captured__)return!0;try{r.addNonEnumerableProperty(e,"__sentry_captured__",!0)}catch(e){}return!1},n.getEventDescription=function(e){const{message:t,event_id:n}=e;if(t)return t;const r=i(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"},n.parseSemver=function(e){const t=e.match(a)||[],n=c(t[1]),r=c(t[2]),s=c(t[3]);return{buildmetadata:t[5],major:isNaN(n)?undefined:n,minor:isNaN(r)?undefined:r,patch:isNaN(s)?undefined:s,prerelease:t[4]}},n.uuid4=function(){const e=o.GLOBAL_OBJ,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}},{"./object.js":214,"./string.js":222,"./worldwide.js":232}],211:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./stacktrace.js");function s(e,t=!1){return!(t||e&&!e.startsWith("/")&&!e.match(/^[A-Z]:/)&&!e.startsWith(".")&&!e.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//))&&e!==undefined&&!e.includes("node_modules/")}function o(e){const t=/^\s*[-]{4,}$/,n=/at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;return o=>{const a=o.match(n);if(a){let t,n,o,c,u;if(a[1]){o=a[1];let e=o.lastIndexOf(".");if("."===o[e-1]&&e--,e>0){t=o.slice(0,e),n=o.slice(e+1);const r=t.indexOf(".Module");r>0&&(o=o.slice(r+1),t=t.slice(0,r))}c=undefined}n&&(c=t,u=n),"<anonymous>"===n&&(u=undefined,o=undefined),o===undefined&&(u=u||r.UNKNOWN_FUNCTION,o=c?`${c}.${u}`:u);let l=a[2]&&a[2].startsWith("file://")?a[2].slice(7):a[2];const d="native"===a[5];return l&&l.match(/\/[A-Z]:/)&&(l=l.slice(1)),l||!a[5]||d||(l=a[5]),{filename:l,module:e?e(l):undefined,function:o,lineno:i(a[3]),colno:i(a[4]),in_app:s(l||"",d)}}return o.match(t)?{filename:o}:undefined}}function i(e){return parseInt(e||"",10)||undefined}n.filenameIsInApp=s,n.node=o,n.nodeStackLineParser=function(e){return[90,o(e)]}},{"./stacktrace.js":221}],212:[function(e,t,n){(function(r){(function(){Object.defineProperty(n,"__esModule",{value:!0});const s=e("./env.js");function o(e,t){return e.require(t)}n.dynamicRequire=o,n.isNodeEnv=function(){return!s.isBrowserBundle()&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)},n.loadModule=function(e){let n;try{n=o(t,e)}catch(e){}try{const{cwd:r}=o(t,"process");n=o(t,`${r()}/node_modules/${e}`)}catch(e){}return n}}).call(this)}).call(this,e("_process"))},{"./env.js":195,_process:242}],213:[function(e,t,n){(function(t){(function(){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js"),s=e("./memo.js"),o=e("./object.js"),i=e("./stacktrace.js");function a(e,t=100,n=+Infinity){try{return c("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,n,a=+Infinity,u=+Infinity,l=s.memoBuilder()){const[d,p]=l;if(null==n||["boolean","string"].includes(typeof n)||"number"==typeof n&&Number.isFinite(n))return n;const f=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(r.isVueViewModel(n))return"[VueViewModel]";if(r.isSyntheticEvent(n))return"[SyntheticEvent]";if("number"==typeof n&&!Number.isFinite(n))return`[${n}]`;if("function"==typeof n)return`[Function: ${i.getFunctionName(n)}]`;if("symbol"==typeof n)return`[${String(n)}]`;if("bigint"==typeof n)return`[BigInt: ${String(n)}]`;const s=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(n);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(e){return`**non-serializable** (${e})`}}(e,n);if(!f.startsWith("[object "))return f;if(n.__sentry_skip_normalization__)return n;const h="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:a;if(0===h)return f.replace("object ","");if(d(n))return"[Circular ~]";const m=n;if(m&&"function"==typeof m.toJSON)try{return c("",m.toJSON(),h-1,u,l)}catch(e){}const g=Array.isArray(n)?[]:{};let y=0;const _=o.convertToPlainObject(n);for(const e in _){if(!Object.prototype.hasOwnProperty.call(_,e))continue;if(y>=u){g[e]="[MaxProperties ~]";break}const t=_[e];g[e]=c(e,t,h-1,u,l),y++}return p(n),g}n.normalize=a,n.normalizeToSize=function e(t,n=3,r=102400){const s=a(t,n);return o=s,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>r?e(t,n-1,r):s;var o},n.normalizeUrlToBase=function(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch(e){}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is.js":205,"./memo.js":209,"./object.js":214,"./stacktrace.js":221}],214:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./browser.js"),s=e("./debug-build.js"),o=e("./is.js"),i=e("./logger.js"),a=e("./string.js");function c(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){s.DEBUG_BUILD&&i.logger.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function u(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,c(e,"__sentry_original__",t)}catch(e){}}function l(e){if(o.isError(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(o.isEvent(e)){const t={type:e.type,target:d(e.target),currentTarget:d(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&o.isInstanceOf(e,CustomEvent)&&(t.detail=e.detail),t}return e}function d(e){try{return o.isElement(e)?r.htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function f(e,t){if(function(e){if(!o.isPlainObject(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(n!==undefined)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=f(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==undefined)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(f(e,t))})),r}return e}n.addNonEnumerableProperty=c,n.convertToPlainObject=l,n.dropUndefinedKeys=function(e){return f(e,new Map)},n.extractExceptionKeysForMessage=function(e,t=40){const n=Object.keys(l(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return a.truncate(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:a.truncate(r,t)}return""},n.fill=function(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);"function"==typeof s&&u(s,r),e[t]=s},n.getOriginalFunction=function(e){return e.__sentry_original__},n.markFunctionWrapped=u,n.objectify=function(e){let t;switch(!0){case e===undefined||null===e:t=new String(e);break;case"symbol"==typeof e||"bigint"==typeof e:t=Object(e);break;case o.isPrimitive(e):t=new e.constructor(e);break;default:t=e}return t},n.urlEncode=function(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}},{"./browser.js":183,"./debug-build.js":193,"./is.js":205,"./logger.js":207,"./string.js":222}],215:[function(e,t,n){function r(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}Object.defineProperty(n,"__esModule",{value:!0});const s=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function o(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=s.exec(t);return n?n.slice(1):[]}function i(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n="/"===s.charAt(0))}return t=r(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function a(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function c(e){const t=u(e),n="/"===e.slice(-1);let s=r(e.split("/").filter((e=>!!e)),!t).join("/");return s||t||(s="."),s&&n&&(s+="/"),(t?"/":"")+s}function u(e){return"/"===e.charAt(0)}n.basename=function(e,t){let n=o(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n},n.dirname=function(e){const t=o(e),n=t[0]||"";let r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."},n.isAbsolute=u,n.join=function(...e){return c(e.join("/"))},n.normalizePath=c,n.relative=function(e,t){e=i(e).slice(1),t=i(t).slice(1);const n=a(e.split("/")),r=a(t.split("/")),s=Math.min(n.length,r.length);let o=s;for(let e=0;e<s;e++)if(n[e]!==r[e]){o=e;break}let c=[];for(let e=o;e<n.length;e++)c.push("..");return c=c.concat(r.slice(o)),c.join("/")},n.resolve=i},{}],216:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./error.js"),s=e("./syncpromise.js");n.makePromiseBuffer=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(undefined)}return{$:t,add:function(o){if(!(e===undefined||t.length<e))return s.rejectedSyncPromise(new r.SentryError("Not adding Promise because buffer limit was reached."));const i=o();return-1===t.indexOf(i)&&t.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(e){return new s.SyncPromise(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{s.resolvedSyncPromise(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}},{"./error.js":197,"./syncpromise.js":224}],217:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./misc.js");n.generatePropagationContext=function(){return{traceId:r.uuid4(),spanId:r.uuid4().substring(16)}}},{"./misc.js":210}],218:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=6e4;function s(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${e}`);return isNaN(s)?r:s-t}function o(e,t){return e[t]||e.all||0}n.DEFAULT_RETRY_AFTER=r,n.disabledUntil=o,n.isRateLimited=function(e,t,n=Date.now()){return o(e,t)>n},n.parseRetryAfterHeader=s,n.updateRateLimits=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,s]=e.split(":",5),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&s&&!s.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else a?o.all=r+s(a,r):429===t&&(o.all=r+6e4);return o}},{}],219:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./cookie.js"),s=e("./debug-build.js"),o=e("./is.js"),i=e("./logger.js"),a=e("./normalize.js"),c=e("./url.js"),u=e("./vendor/getIpAddress.js"),l={ip:!1,request:!0,transaction:!0,user:!0},d=["cookies","data","headers","method","query_string","url"],p=["id","username","email"];function f(e,t={}){const n=e.method&&e.method.toUpperCase();let r="",s="url";t.customRoute||e.route?(r=t.customRoute||`${e.baseUrl||""}${e.route&&e.route.path}`,s="route"):(e.originalUrl||e.url)&&(r=c.stripUrlQueryAndFragment(e.originalUrl||e.url||""));let o="";return t.method&&n&&(o+=n),t.method&&t.path&&(o+=" "),t.path&&r&&(o+=r),[o,s]}function h(e,t={}){const{include:n=d}=t,s={},i=e.headers||{},c=e.method,l=i.host||e.hostname||e.host||"<no host>",p="https"===e.protocol||e.socket&&e.socket.encrypted?"https":"http",f=e.originalUrl||e.url||"",h=f.startsWith(p)?f:`${p}://${l}${f}`;return n.forEach((t=>{switch(t){case"headers":s.headers=i,n.includes("cookies")||delete s.headers.cookie,n.includes("ip")||u.ipHeaderNames.forEach((e=>{delete s.headers[e]}));break;case"method":s.method=c;break;case"url":s.url=h;break;case"cookies":s.cookies=e.cookies||i.cookie&&r.parseCookie(i.cookie)||{};break;case"query_string":s.query_string=function(e){let t=e.originalUrl||e.url||"";if(!t)return;t.startsWith("/")&&(t=`http://dogs.are.great${t}`);try{const n=e.query||new URL(t).search.slice(1);return n.length?n:undefined}catch(e){return undefined}}(e);break;case"data":if("GET"===c||"HEAD"===c)break;e.body!==undefined&&(s.data=o.isString(e.body)?e.body:JSON.stringify(a.normalize(e.body)));break;default:({}).hasOwnProperty.call(e,t)&&(s[t]=e[t])}})),s}function m(e){const t={};try{e.forEach(((e,n)=>{"string"==typeof e&&(t[n]=e)}))}catch(e){s.DEBUG_BUILD&&i.logger.warn("Sentry failed extracting headers from a request object. If you see this, please file an issue.")}return t}n.DEFAULT_USER_INCLUDES=p,n.addRequestDataToEvent=function(e,t,n){const r={...l,...n&&n.include};if(r.request){const n=Array.isArray(r.request)?[...r.request]:[...d];r.ip&&n.push("ip");const s=h(t,{include:n});e.request={...e.request,...s}}if(r.user){const n=t.user&&o.isPlainObject(t.user)?function(e,t){const n={};return(Array.isArray(t)?t:p).forEach((t=>{e&&t in e&&(n[t]=e[t])})),n}(t.user,r.user):{};Object.keys(n).length&&(e.user={...e.user,...n})}if(r.ip){const n=t.headers&&u.getClientIPAddress(t.headers)||t.ip||t.socket&&t.socket.remoteAddress;n&&(e.user={...e.user,ip_address:n})}return r.transaction&&!e.transaction&&"transaction"===e.type&&(e.transaction=function(e,t){switch(t){case"path":return f(e,{path:!0})[0];case"handler":return e.route&&e.route.stack&&e.route.stack[0]&&e.route.stack[0].name||"<anonymous>";default:return f(e,{path:!0,method:!0,customRoute:e._reconstructedRoute?e._reconstructedRoute:undefined})[0]}}(t,r.transaction)),e},n.extractPathForTransaction=f,n.extractRequestData=h,n.winterCGHeadersToDict=m,n.winterCGRequestToRequestData=function(e){const t=m(e.headers);return{method:e.method,url:e.url,headers:t}}},{"./cookie.js":192,"./debug-build.js":193,"./is.js":205,"./logger.js":207,"./normalize.js":213,"./url.js":227,"./vendor/getIpAddress.js":229}],220:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=["fatal","error","warning","log","info","debug"];n.severityLevelFromString=function(e){return"warn"===e?"warning":r.includes(e)?e:"log"},n.validSeverityLevels=r},{}],221:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=50,s="?",o=/\(error: (.*)\)/,i=/captureMessage|captureException/;function a(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,s=0)=>{const i=[],a=e.split("\n");for(let e=n;e<a.length;e++){const n=a[e];if(n.length>1024)continue;const c=o.test(n)?n.replace(o,"$1"):n;if(!c.match(/\S*Error: /)){for(const e of t){const t=e(c);if(t){i.push(t);break}}if(i.length>=r+s)break}}return c(i.slice(s))}}function c(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),i.test(u(t).function||"")&&(t.pop(),i.test(u(t).function||"")&&t.pop()),t.slice(0,r).map((e=>({...e,filename:e.filename||u(t).filename,function:e.function||s})))}function u(e){return e[e.length-1]||{}}const l="<anonymous>";n.UNKNOWN_FUNCTION=s,n.createStackParser=a,n.getFramesFromEvent=function(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return undefined}}return undefined},n.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||l}catch(e){return l}},n.stackParserFromStackParserOptions=function(e){return Array.isArray(e)?a(...e):e},n.stripSentryFramesAndReverse=c},{}],222:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js");function s(e,t,n=!1){return!!r.isString(e)&&(r.isRegExp(t)?t.test(e):!!r.isString(t)&&(n?e===t:e.includes(t)))}n.isMatchingPattern=s,n.safeJoin=function(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const s=e[t];try{r.isVueViewModel(s)?n.push("[VueViewModel]"):n.push(String(s))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)},n.snipLine=function(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n},n.stringMatchesSomePattern=function(e,t=[],n=!1){return t.some((t=>s(e,t,n)))},n.truncate=function(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}},{"./is.js":205}],223:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./debug-build.js"),s=e("./logger.js"),o=e("./worldwide.js").GLOBAL_OBJ;function i(){if(!("fetch"in o))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}n.isNativeFunction=a,n.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},n.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},n.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},n.supportsFetch=i,n.supportsNativeFetch=function(){if("string"==typeof EdgeRuntime)return!0;if(!i())return!1;if(a(o.fetch))return!0;let e=!1;const t=o.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=a(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.DEBUG_BUILD&&s.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e},n.supportsReferrerPolicy=function(){if(!i())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},n.supportsReportingObserver=function(){return"ReportingObserver"in o}},{"./debug-build.js":193,"./logger.js":207,"./worldwide.js":232}],224:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./is.js");var s;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(s||(s={}));class o{constructor(e){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),this._state=s.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new o(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new o(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(s.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(s.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===s.PENDING&&(r.isThenable(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===s.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===s.RESOLVED&&e[1](this._value),this._state===s.REJECTED&&e[2](this._value),e[0]=!0)}))}}}n.SyncPromise=o,n.rejectedSyncPromise=function(e){return new o(((t,n)=>{n(e)}))},n.resolvedSyncPromise=function(e){return new o((t=>{t(e)}))}},{"./is.js":205}],225:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./worldwide.js"),s=1e3;function o(){return Date.now()/s}const i=function(){const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return o;const t=Date.now()-e.now(),n=e.timeOrigin==undefined?t:e.timeOrigin;return()=>(n+e.now())/s}();n._browserPerformanceTimeOriginMode=void 0;const a=(()=>{const{performance:e}=r.GLOBAL_OBJ;if(!e||!e.now)return n._browserPerformanceTimeOriginMode="none",undefined;const t=36e5,s=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+s-o):t,a=i<t,c=e.timing&&e.timing.navigationStart,u="number"==typeof c?Math.abs(c+s-o):t;return a||u<t?i<=u?(n._browserPerformanceTimeOriginMode="timeOrigin",e.timeOrigin):(n._browserPerformanceTimeOriginMode="navigationStart",c):(n._browserPerformanceTimeOriginMode="dateNow",o)})();n.browserPerformanceTimeOrigin=a,n.dateTimestampInSeconds=o,n.timestampInSeconds=i},{"./worldwide.js":232}],226:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./baggage.js"),s=e("./misc.js"),o=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(e){if(!e)return undefined;const t=e.match(o);if(!t)return undefined;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}n.TRACEPARENT_REGEXP=o,n.extractTraceparentData=i,n.generateSentryTraceHeader=function(e=s.uuid4(),t=s.uuid4().substring(16),n){let r="";return n!==undefined&&(r=n?"-1":"-0"),`${e}-${t}${r}`},n.propagationContextFromHeaders=function(e,t){const n=i(e),o=r.baggageHeaderToDynamicSamplingContext(t),{traceId:a,parentSpanId:c,parentSampled:u}=n||{};return n?{traceId:a||s.uuid4(),parentSpanId:c||s.uuid4().substring(16),spanId:s.uuid4().substring(16),sampled:u,dsc:o||{}}:{traceId:a||s.uuid4(),spanId:s.uuid4().substring(16)}}},{"./baggage.js":181,"./misc.js":210}],227:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.getNumberOfUrlSegments=function(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length},n.getSanitizedUrlString=function(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n&&n.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`},n.parseUrl=function(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}},n.stripUrlQueryAndFragment=function(e){return e.split(/[?#]/,1)[0]}},{}],228:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.escapeStringForRegex=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},{}],229:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=["X-Client-IP","X-Forwarded-For","Fly-Client-IP","CF-Connecting-IP","Fastly-Client-Ip","True-Client-Ip","X-Real-IP","X-Cluster-Client-IP","X-Forwarded","Forwarded-For","Forwarded","X-Vercel-Forwarded-For"];n.getClientIPAddress=function(e){return r.map((t=>{const n=e[t],r=Array.isArray(n)?n.join(";"):n;return"Forwarded"===t?function(e){if(!e)return null;for(const t of e.split(";"))if(t.startsWith("for="))return t.slice(4);return null}(r):r&&r.split(",").map((e=>e.trim()))})).reduce(((e,t)=>t?e.concat(t):e),[]).find((e=>null!==e&&/(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-fA-F\d]{1,4}:){7}(?:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-fA-F\d]{1,4}|:)|(?:[a-fA-F\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,2}|:)|(?:[a-fA-F\d]{1,4}:){4}(?:(?::[a-fA-F\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,3}|:)|(?:[a-fA-F\d]{1,4}:){3}(?:(?::[a-fA-F\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,4}|:)|(?:[a-fA-F\d]{1,4}:){2}(?:(?::[a-fA-F\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,5}|:)|(?:[a-fA-F\d]{1,4}:){1}(?:(?::[a-fA-F\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,6}|:)|(?::(?:(?::[a-fA-F\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-fA-F\d]{1,4}){1,7}|:)))(?:%[0-9a-zA-Z]{1,})?$)/.test(e)))||null},n.ipHeaderNames=r},{}],230:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("../worldwide.js").GLOBAL_OBJ;n.supportsHistory=function(){const e=r.chrome,t=e&&e.app&&e.app.runtime,n="history"in r&&!!r.history.pushState&&!!r.history.replaceState;return!t&&n}},{"../worldwide.js":232}],231:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.SDK_VERSION="8.33.1"},{}],232:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});const r=e("./version.js"),s=globalThis;n.GLOBAL_OBJ=s,n.getGlobalSingleton=function(e,t,n){const o=n||s,i=o.__SENTRY__=o.__SENTRY__||{},a=i[r.SDK_VERSION]=i[r.SDK_VERSION]||{};return a[e]||(a[e]=t())}},{"./version.js":231}],233:[function(e,t,n){"use strict";n.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=c(e),i=r[0],a=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,i,a)),l=0,d=a>0?i-4:i;for(n=0;n<d;n+=4)t=s[e.charCodeAt(n)]<<18|s[e.charCodeAt(n+1)]<<12|s[e.charCodeAt(n+2)]<<6|s[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===a&&(t=s[e.charCodeAt(n)]<<2|s[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===a&&(t=s[e.charCodeAt(n)]<<10|s[e.charCodeAt(n+1)]<<4|s[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},n.fromByteArray=function(e){for(var t,n=e.length,s=n%3,o=[],i=16383,a=0,c=n-s;a<c;a+=i)o.push(u(e,a,a+i>c?c:a+i));1===s?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===s&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],s=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],s[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var s,o,i=[],a=t;a<n;a+=3)s=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(r[(o=s)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],234:[function(e,t,n){
|
|
/*!
|
|
* The buffer module from node.js, for the browser.
|
|
*
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
* @license MIT
|
|
*/
|
|
"use strict";var r=e("base64-js"),s=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},n.INSPECT_MAX_BYTES=50;var o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,n)}function c(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|f(e,t),r=i(n),s=r.write(e,t);s!==n&&(r=r.slice(0,s));return r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if($(e,ArrayBuffer)||e&&$(e.buffer,ArrayBuffer))return function(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;r=t===undefined&&n===undefined?new Uint8Array(e):n===undefined?new Uint8Array(e,t):new Uint8Array(e,t,n);return r.__proto__=a.prototype,r}(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return a.from(r,t,n);var s=function(e){if(a.isBuffer(e)){var t=0|p(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}if(e.length!==undefined)return"number"!=typeof e.length||H(e.length)?i(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),i(e<0?0:0|p(e))}function d(e){for(var t=e.length<0?0:0|p(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||$(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(e).length;default:if(s)return r?-1:U(e).length;t=(""+t).toLowerCase(),s=!0}}function h(e,t,n){var r=!1;if((t===undefined||t<0)&&(t=0),t>this.length)return"";if((n===undefined||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return x(this,t,n);case"base64":return w(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,s){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),H(n=+n)&&(n=s?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(s)return-1;n=e.length-1}else if(n<0){if(!s)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,s);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,s){var o,i=1,a=e.length,c=t.length;if(r!==undefined&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,a/=2,c/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(s){var l=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*i}else-1!==l&&(o-=o-l),l=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var d=!0,p=0;p<c;p++)if(u(e,o+p)!==u(t,p)){d=!1;break}if(d)return o}return-1}function _(e,t,n,r){n=Number(n)||0;var s=e.length-n;r?(r=Number(r))>s&&(r=s):r=s;var o=t.length;r>o/2&&(r=o/2);for(var i=0;i<r;++i){var a=parseInt(t.substr(2*i,2),16);if(H(a))return i;e[n+i]=a}return i}function b(e,t,n,r){return F(U(t,e.length-n),e,n,r)}function S(e,t,n,r){return F(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return S(e,t,n,r)}function v(e,t,n,r){return F(B(t),e,n,r)}function I(e,t,n,r){return F(function(e,t){for(var n,r,s,o=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,s=n%256,o.push(s),o.push(r);return o}(t,e.length-n),e,n,r)}function w(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],s=t;s<n;){var o,i,a,c,u=e[s],l=null,d=u>239?4:u>223?3:u>191?2:1;if(s+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[s+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[s+1],i=e[s+2],128==(192&o)&&128==(192&i)&&(c=(15&u)<<12|(63&o)<<6|63&i)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[s+1],i=e[s+2],a=e[s+3],128==(192&o)&&128==(192&i)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),s+=d}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}n.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){return a.isBuffer(this)?this.buffer:undefined}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){return a.isBuffer(this)?this.byteOffset:undefined}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return c(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?i(e):t!==undefined?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)}(e,t,n)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),$(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,s=0,o=Math.min(n,r);s<o;++s)if(e[s]!==t[s]){n=e[s],r=t[s];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(t===undefined)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){var o=e[n];if($(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,s),s+=o.length}return r},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,s){if($(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===undefined&&(t=0),n===undefined&&(n=e?e.length:0),r===undefined&&(r=0),s===undefined&&(s=this.length),t<0||n>e.length||r<0||s>this.length)throw new RangeError("out of range index");if(r>=s&&t>=n)return 0;if(r>=s)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(s>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),c=Math.min(o,i),u=this.slice(r,s),l=e.slice(t,n),d=0;d<c;++d)if(u[d]!==l[d]){o=u[d],i=l[d];break}return o<i?-1:i<o?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(t===undefined)r="utf8",n=this.length,t=0;else if(n===undefined&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,r===undefined&&(r="utf8")):(r=n,n=undefined)}var s=this.length-t;if((n===undefined||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return v(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(127&e[s]);return r}function x(e,t,n){var r="";n=Math.min(e.length,n);for(var s=t;s<n;++s)r+=String.fromCharCode(e[s]);return r}function k(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var s="",o=t;o<n;++o)s+=L(e[o]);return s}function j(e,t,n){for(var r=e.slice(t,n),s="",o=0;o<r.length;o+=2)s+=String.fromCharCode(r[o]+256*r[o+1]);return s}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,r,s,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,s,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,4),s.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,o){return t=+t,n>>>=0,o||N(e,0,n,8),s.write(e,t,n,r,52,8),n+8}a.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===undefined?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return r.__proto__=a.prototype,r},a.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],s=1,o=0;++o<t&&(s*=256);)r+=this[e+o]*s;return r},a.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],s=1;t>0&&(s*=256);)r+=this[e+--t]*s;return r},a.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],s=1,o=0;++o<t&&(s*=256);)r+=this[e+o]*s;return r>=(s*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,s=1,o=this[e+--r];r>0&&(s*=256);)o+=this[e+--r]*s;return o>=(s*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var s=1,o=0;for(this[t]=255&e;++o<n&&(s*=256);)this[t+o]=e/s&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var s=n-1,o=1;for(this[t+s]=255&e;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var s=Math.pow(2,8*n-1);O(this,e,t,n,s-1,-s)}var o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var s=Math.pow(2,8*n-1);O(this,e,t,n,s-1,-s)}var o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var s=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var o=s-1;o>=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return s},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),r!==undefined&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var s=e.charCodeAt(0);("utf8"===r&&s<128||"latin1"===r)&&(e=s)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=n===undefined?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var i=a.isBuffer(e)?e:a.from(e,r),c=i.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%c]}return this};var D=/[^+/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||Infinity;for(var r=e.length,s=null,o=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!s){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}s=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),s=n;continue}n=65536+(s-55296<<10|n-56320)}else s&&(t-=3)>-1&&o.push(239,191,189);if(s=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var s=0;s<r&&!(s+n>=t.length||s>=e.length);++s)t[s+n]=e[s];return s}function $(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}},{"base64-js":233,ieee754:238}],235:[function(e,t,n){var r=1e3,s=60*r,o=60*s,i=24*o,a=7*i,c=365.25*i;function u(e,t,n,r){var s=t>=1.5*n;return Math.round(e/n)+" "+r+(s?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"weeks":case"week":case"w":return n*a;case"days":case"day":case"d":return n*i;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return u(e,t,i,"day");if(t>=o)return u(e,t,o,"hour");if(t>=s)return u(e,t,s,"minute");if(t>=r)return u(e,t,r,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=o)return Math.round(e/o)+"h";if(t>=s)return Math.round(e/s)+"m";if(t>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],236:[function(e,t,n){(function(r){(function(){n.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(s=r))})),e.splice(s,0,n)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug")}catch(e){}!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG);return e},n.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),t.exports=e("./common")(n);const{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this)}).call(this,e("_process"))},{"./common":237,_process:242}],237:[function(e,t,n){t.exports=function(t){function n(e){let t,s,o,i=null;function a(...e){if(!a.enabled)return;const r=a,s=Number(new Date),o=s-(t||s);r.diff=o,r.prev=t,r.curr=s,t=s,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,s)=>{if("%%"===t)return"%";i++;const o=n.formatters[s];if("function"==typeof o){const n=e[i];t=o.call(r,n),e.splice(i,1),i--}return t})),n.formatArgs.call(r,e);(r.log||n.log).apply(r,e)}return a.namespace=e,a.useColors=n.useColors(),a.color=n.selectColor(e),a.extend=r,a.destroy=n.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==n.namespaces&&(s=n.namespaces,o=n.enabled(e)),o),set:e=>{i=e}}),"function"==typeof n.init&&n.init(a),a}function r(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},n.disable=function(){const e=[...n.names.map(s),...n.skips.map(s).map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.namespaces=e,n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),s=r.length;for(t=0;t<s;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.slice(1)+"$")):n.names.push(new RegExp("^"+e+"$")))},n.enabled=function(e){if("*"===e[e.length-1])return!0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1},n.humanize=e("ms"),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((e=>{n[e]=t[e]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}},{ms:235}],238:[function(e,t,n){
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
n.read=function(e,t,n,r,s){var o,i,a=8*s-r-1,c=(1<<a)-1,u=c>>1,l=-7,d=n?s-1:0,p=n?-1:1,f=e[t+d];for(d+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+e[t+d],d+=p,l-=8);for(i=o&(1<<-l)-1,o>>=-l,l+=r;l>0;i=256*i+e[t+d],d+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return i?NaN:(f?-1:1)*Infinity;i+=Math.pow(2,r),o-=u}return(f?-1:1)*i*Math.pow(2,o-r)},n.write=function(e,t,n,r,s,o){var i,a,c,u=8*o-s-1,l=(1<<u)-1,d=l>>1,p=23===s?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===Infinity?(a=isNaN(t)?1:0,i=l):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),(t+=i+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(i++,c/=2),i+d>=l?(a=0,i=l):i+d>=1?(a=(t*c-1)*Math.pow(2,s),i+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,s),i=0));s>=8;e[n+f]=255&a,f+=h,a/=256,s-=8);for(i=i<<s|a,u+=s;u>0;e[n+f]=255&i,f+=h,i/=256,u-=8);e[n+f-h]|=128*m}},{}],239:[function(e,t,n){"use strict";const{ErrorWithCause:r}=e("./lib/error-with-cause"),{findCauseByReference:s,getErrorCause:o,messageWithCauses:i,stackWithCauses:a}=e("./lib/helpers");t.exports={ErrorWithCause:r,findCauseByReference:s,getErrorCause:o,stackWithCauses:a,messageWithCauses:i}},{"./lib/error-with-cause":240,"./lib/helpers":241}],240:[function(e,t,n){"use strict";class r extends Error{constructor(e,{cause:t}={}){super(e),this.name=r.name,t&&(this.cause=t),this.message=e}}t.exports={ErrorWithCause:r}},{}],241:[function(e,t,n){"use strict";const r=e=>{if(e&&"object"==typeof e&&"cause"in e){if("function"==typeof e.cause){const t=e.cause();return t instanceof Error?t:undefined}return e.cause instanceof Error?e.cause:undefined}},s=(e,t)=>{if(!(e instanceof Error))return"";const n=e.stack||"";if(t.has(e))return n+"\ncauses have become circular...";const o=r(e);return o?(t.add(e),n+"\ncaused by: "+s(o,t)):n},o=(e,t,n)=>{if(!(e instanceof Error))return"";const s=n?"":e.message||"";if(t.has(e))return s+": ...";const i=r(e);if(i){t.add(e);const n="cause"in e&&"function"==typeof e.cause;return s+(n?"":": ")+o(i,t,n)}return s};t.exports={findCauseByReference:(e,t)=>{if(!e||!t)return;if(!(e instanceof Error))return;if(!(t.prototype instanceof Error)&&t!==Error)return;const n=new Set;let s=e;for(;s&&!n.has(s);){if(n.add(s),s instanceof t)return s;s=r(s)}},getErrorCause:r,stackWithCauses:e=>s(e,new Set),messageWithCauses:e=>o(e,new Set)}},{}],242:[function(e,t,n){var r,s,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{s="function"==typeof clearTimeout?clearTimeout:a}catch(e){s=a}}();var u,l=[],d=!1,p=-1;function f(){d&&u&&(d=!1,u.length?l=u.concat(l):p=-1,l.length&&h())}function h(){if(!d){var e=c(f);d=!0;for(var t=l.length;t;){for(u=l,l=[];++p<t;)u&&u[p].run();p=-1,t=l.length}u=null,d=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===a||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||d||c(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],243:[function(e,t,n){const r=Symbol("SemVer ANY");class s{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof s){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==undefined?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(!(t=o(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}t.exports=s;const o=e("../internal/parse-options"),{safeRe:i,t:a}=e("../internal/re"),c=e("../functions/cmp"),u=e("../internal/debug"),l=e("./semver"),d=e("./range")},{"../functions/cmp":247,"../internal/debug":272,"../internal/parse-options":275,"../internal/re":276,"./range":244,"./semver":245}],244:[function(e,t,n){const r=/\s+/g;class s{constructor(e,t){if(t=i(t),e instanceof s)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new s(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=undefined,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&_(e[0])){this.set=[e];break}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,n=o.get(t);if(n)return n;const r=this.options.loose,s=r?l[d.HYPHENRANGELOOSE]:l[d.HYPHENRANGE];e=e.replace(s,j(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(l[d.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(l[d.TILDETRIM],f),c("tilde trim",e),e=e.replace(l[d.CARETTRIM],h),c("caret trim",e);let i=e.split(" ").map((e=>S(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));r&&(i=i.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(l[d.COMPARATORLOOSE]))))),c("range list",i);const u=new Map,_=i.map((e=>new a(e,this.options)));for(const e of _){if(y(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");const b=[...u.values()];return o.set(t,b),b}intersects(e,t){if(!(e instanceof s))throw new TypeError("a Range is required");return this.set.some((n=>b(n,t)&&e.set.some((e=>b(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}t.exports=s;const o=new(e("../internal/lrucache")),i=e("../internal/parse-options"),a=e("./comparator"),c=e("../internal/debug"),u=e("./semver"),{safeRe:l,t:d,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:h}=e("../internal/re"),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=e("../internal/constants"),y=e=>"<0.0.0-0"===e.value,_=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let s=r.pop();for(;n&&r.length;)n=r.every((e=>s.intersects(e,t))),s=r.pop();return n},S=(e,t)=>(c("comp",e,t),e=w(e,t),c("caret",e),e=v(e,t),c("tildes",e),e=A(e,t),c("xrange",e),e=x(e,t),c("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{const n=t.loose?l[d.TILDELOOSE]:l[d.TILDE];return e.replace(n,((t,n,r,s,o)=>{let i;return c("tilde",e,t,n,r,s,o),E(n)?i="":E(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:E(s)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(c("replaceTilde pr",o),i=`>=${n}.${r}.${s}-${o} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${s} <${n}.${+r+1}.0-0`,c("tilde return",i),i}))},w=(e,t)=>e.trim().split(/\s+/).map((e=>T(e,t))).join(" "),T=(e,t)=>{c("caret",e,t);const n=t.loose?l[d.CARETLOOSE]:l[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,s,o,i)=>{let a;return c("caret",e,t,n,s,o,i),E(n)?a="":E(s)?a=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(o)?a="0"===n?`>=${n}.${s}.0${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${r} <${+n+1}.0.0-0`:i?(c("replaceCaret pr",i),a="0"===n?"0"===s?`>=${n}.${s}.${o}-${i} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${i} <${+n+1}.0.0-0`):(c("no pr"),a="0"===n?"0"===s?`>=${n}.${s}.${o}${r} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${r} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),c("caret return",a),a}))},A=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?l[d.XRANGELOOSE]:l[d.XRANGE];return e.replace(n,((n,r,s,o,i,a)=>{c("xRange",e,n,r,s,o,i,a);const u=E(s),l=u||E(o),d=l||E(i),p=d;return"="===r&&p&&(r=""),a=t.includePrerelease?"-0":"",u?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(l&&(o=0),i=0,">"===r?(r=">=",l?(s=+s+1,o=0,i=0):(o=+o+1,i=0)):"<="===r&&(r="<",l?s=+s+1:o=+o+1),"<"===r&&(a="-0"),n=`${r+s}.${o}.${i}${a}`):l?n=`>=${s}.0.0${a} <${+s+1}.0.0-0`:d&&(n=`>=${s}.${o}.0${a} <${s}.${+o+1}.0-0`),c("xRange return",n),n}))},x=(e,t)=>(c("replaceStars",e,t),e.trim().replace(l[d.STAR],"")),k=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),j=e=>(t,n,r,s,o,i,a,c,u,l,d,p)=>`${n=E(r)?"":E(s)?`>=${r}.0.0${e?"-0":""}`:E(o)?`>=${r}.${s}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=E(u)?"":E(l)?`<${+u+1}.0.0-0`:E(d)?`<${u}.${+l+1}.0-0`:p?`<=${u}.${l}.${d}-${p}`:e?`<${u}.${l}.${+d+1}-0`:`<=${c}`}`.trim(),R=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},{"../internal/constants":271,"../internal/debug":272,"../internal/lrucache":274,"../internal/parse-options":275,"../internal/re":276,"./comparator":243,"./semver":245}],245:[function(e,t,n){const r=e("../internal/debug"),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=e("../internal/constants"),{safeRe:i,t:a}=e("../internal/re"),c=e("../internal/parse-options"),{compareIdentifiers:u}=e("../internal/identifiers");class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw new TypeError(`version is longer than ${s} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],s=e.prerelease[t];if(r("prerelease compare",t,n,s),n===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(n===undefined)return-1;if(n!==s)return u(n,s)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],s=e.build[t];if(r("build compare",t,n,s),n===undefined&&s===undefined)return 0;if(s===undefined)return 1;if(n===undefined)return-1;if(n!==s)return u(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=l},{"../internal/constants":271,"../internal/debug":272,"../internal/identifiers":273,"../internal/parse-options":275,"../internal/re":276}],246:[function(e,t,n){const r=e("./parse");t.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},{"./parse":262}],247:[function(e,t,n){const r=e("./eq"),s=e("./neq"),o=e("./gt"),i=e("./gte"),a=e("./lt"),c=e("./lte");t.exports=(e,t,n,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,u);case"!=":return s(e,n,u);case">":return o(e,n,u);case">=":return i(e,n,u);case"<":return a(e,n,u);case"<=":return c(e,n,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},{"./eq":253,"./gt":254,"./gte":255,"./lt":257,"./lte":258,"./neq":261}],248:[function(e,t,n){const r=e("../classes/semver"),s=e("./parse"),{safeRe:o,t:i}=e("../internal/re");t.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];let s;for(;(s=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&s.index+s[0].length===n.index+n[0].length||(n=s),r.lastIndex=s.index+s[1].length+s[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===n)return null;const a=n[2],c=n[3]||"0",u=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return s(`${a}.${c}.${u}${l}${d}`,t)}},{"../classes/semver":245,"../internal/re":276,"./parse":262}],249:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t,n)=>{const s=new r(e,n),o=new r(t,n);return s.compare(o)||s.compareBuild(o)}},{"../classes/semver":245}],250:[function(e,t,n){const r=e("./compare");t.exports=(e,t)=>r(e,t,!0)},{"./compare":251}],251:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},{"../classes/semver":245}],252:[function(e,t,n){const r=e("./parse.js");t.exports=(e,t)=>{const n=r(e,null,!0),s=r(t,null,!0),o=n.compare(s);if(0===o)return null;const i=o>0,a=i?n:s,c=i?s:n,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return n.major!==s.major?l+"major":n.minor!==s.minor?l+"minor":n.patch!==s.patch?l+"patch":"prerelease"}},{"./parse.js":262}],253:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>0===r(e,t,n)},{"./compare":251}],254:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>r(e,t,n)>0},{"./compare":251}],255:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>r(e,t,n)>=0},{"./compare":251}],256:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t,n,s,o)=>{"string"==typeof n&&(o=s,s=n,n=undefined);try{return new r(e instanceof r?e.version:e,n).inc(t,s,o).version}catch(e){return null}}},{"../classes/semver":245}],257:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>r(e,t,n)<0},{"./compare":251}],258:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>r(e,t,n)<=0},{"./compare":251}],259:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t)=>new r(e,t).major},{"../classes/semver":245}],260:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t)=>new r(e,t).minor},{"../classes/semver":245}],261:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>0!==r(e,t,n)},{"./compare":251}],262:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},{"../classes/semver":245}],263:[function(e,t,n){const r=e("../classes/semver");t.exports=(e,t)=>new r(e,t).patch},{"../classes/semver":245}],264:[function(e,t,n){const r=e("./parse");t.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},{"./parse":262}],265:[function(e,t,n){const r=e("./compare");t.exports=(e,t,n)=>r(t,e,n)},{"./compare":251}],266:[function(e,t,n){const r=e("./compare-build");t.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},{"./compare-build":249}],267:[function(e,t,n){const r=e("../classes/range");t.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},{"../classes/range":244}],268:[function(e,t,n){const r=e("./compare-build");t.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},{"./compare-build":249}],269:[function(e,t,n){const r=e("./parse");t.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},{"./parse":262}],270:[function(e,t,n){const r=e("./internal/re"),s=e("./internal/constants"),o=e("./classes/semver"),i=e("./internal/identifiers"),a=e("./functions/parse"),c=e("./functions/valid"),u=e("./functions/clean"),l=e("./functions/inc"),d=e("./functions/diff"),p=e("./functions/major"),f=e("./functions/minor"),h=e("./functions/patch"),m=e("./functions/prerelease"),g=e("./functions/compare"),y=e("./functions/rcompare"),_=e("./functions/compare-loose"),b=e("./functions/compare-build"),S=e("./functions/sort"),E=e("./functions/rsort"),v=e("./functions/gt"),I=e("./functions/lt"),w=e("./functions/eq"),T=e("./functions/neq"),A=e("./functions/gte"),C=e("./functions/lte"),x=e("./functions/cmp"),k=e("./functions/coerce"),j=e("./classes/comparator"),R=e("./classes/range"),O=e("./functions/satisfies"),N=e("./ranges/to-comparators"),M=e("./ranges/max-satisfying"),P=e("./ranges/min-satisfying"),D=e("./ranges/min-version"),L=e("./ranges/valid"),U=e("./ranges/outside"),B=e("./ranges/gtr"),F=e("./ranges/ltr"),$=e("./ranges/intersects"),H=e("./ranges/simplify"),W=e("./ranges/subset");t.exports={parse:a,valid:c,clean:u,inc:l,diff:d,major:p,minor:f,patch:h,prerelease:m,compare:g,rcompare:y,compareLoose:_,compareBuild:b,sort:S,rsort:E,gt:v,lt:I,eq:w,neq:T,gte:A,lte:C,cmp:x,coerce:k,Comparator:j,Range:R,satisfies:O,toComparators:N,maxSatisfying:M,minSatisfying:P,minVersion:D,validRange:L,outside:U,gtr:B,ltr:F,intersects:$,simplifyRange:H,subset:W,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},{"./classes/comparator":243,"./classes/range":244,"./classes/semver":245,"./functions/clean":246,"./functions/cmp":247,"./functions/coerce":248,"./functions/compare":251,"./functions/compare-build":249,"./functions/compare-loose":250,"./functions/diff":252,"./functions/eq":253,"./functions/gt":254,"./functions/gte":255,"./functions/inc":256,"./functions/lt":257,"./functions/lte":258,"./functions/major":259,"./functions/minor":260,"./functions/neq":261,"./functions/parse":262,"./functions/patch":263,"./functions/prerelease":264,"./functions/rcompare":265,"./functions/rsort":266,"./functions/satisfies":267,"./functions/sort":268,"./functions/valid":269,"./internal/constants":271,"./internal/identifiers":273,"./internal/re":276,"./ranges/gtr":277,"./ranges/intersects":278,"./ranges/ltr":279,"./ranges/max-satisfying":280,"./ranges/min-satisfying":281,"./ranges/min-version":282,"./ranges/outside":283,"./ranges/simplify":284,"./ranges/subset":285,"./ranges/to-comparators":286,"./ranges/valid":287}],271:[function(e,t,n){const r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},{}],272:[function(e,t,n){(function(e){(function(){const n=("object"==typeof e&&e.env,()=>{});t.exports=n}).call(this)}).call(this,e("_process"))},{_process:242}],273:[function(e,t,n){const r=/^[0-9]+$/,s=(e,t)=>{const n=r.test(e),s=r.test(t);return n&&s&&(e=+e,t=+t),e===t?0:n&&!s?-1:s&&!n?1:e<t?-1:1};t.exports={compareIdentifiers:s,rcompareIdentifiers:(e,t)=>s(t,e)}},{}],274:[function(e,t,n){t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return t===undefined?undefined:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},{}],275:[function(e,t,n){const r=Object.freeze({loose:!0}),s=Object.freeze({});t.exports=e=>e?"object"!=typeof e?r:e:s},{}],276:[function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=e("./constants"),i=e("./debug"),a=(n=t.exports={}).re=[],c=n.safeRe=[],u=n.src=[],l=n.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,s]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),s=d++;i(e,s,t),l[e]=s,u[s]=t,a[s]=new RegExp(t,n?"g":undefined),c[s]=new RegExp(r,n?"g":undefined)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),h("FULL",`^${u[l.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),h("LOOSE",`^${u[l.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),h("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),h("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",u[l.COERCE],!0),h("COERCERTLFULL",u[l.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",h("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",h("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},{"./constants":271,"./debug":272}],277:[function(e,t,n){const r=e("./outside");t.exports=(e,t,n)=>r(e,t,">",n)},{"./outside":283}],278:[function(e,t,n){const r=e("../classes/range");t.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},{"../classes/range":244}],279:[function(e,t,n){const r=e("./outside");t.exports=(e,t,n)=>r(e,t,"<",n)},{"./outside":283}],280:[function(e,t,n){const r=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,n)=>{let o=null,i=null,a=null;try{a=new s(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},{"../classes/range":244,"../classes/semver":245}],281:[function(e,t,n){const r=e("../classes/semver"),s=e("../classes/range");t.exports=(e,t,n)=>{let o=null,i=null,a=null;try{a=new s(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,n)))})),o}},{"../classes/range":244,"../classes/semver":245}],282:[function(e,t,n){const r=e("../classes/semver"),s=e("../classes/range"),o=e("../functions/gt");t.exports=(e,t)=>{e=new s(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let i=null;s.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!o(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!o(n,i)||(n=i)}return n&&e.test(n)?n:null}},{"../classes/range":244,"../classes/semver":245,"../functions/gt":254}],283:[function(e,t,n){const r=e("../classes/semver"),s=e("../classes/comparator"),{ANY:o}=s,i=e("../classes/range"),a=e("../functions/satisfies"),c=e("../functions/gt"),u=e("../functions/lt"),l=e("../functions/lte"),d=e("../functions/gte");t.exports=(e,t,n,p)=>{let f,h,m,g,y;switch(e=new r(e,p),t=new i(t,p),n){case">":f=c,h=l,m=u,g=">",y=">=";break;case"<":f=u,h=d,m=c,g="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,a=null;if(r.forEach((e=>{e.semver===o&&(e=new s(">=0.0.0")),i=i||e,a=a||e,f(e.semver,i.semver,p)?i=e:m(e.semver,a.semver,p)&&(a=e)})),i.operator===g||i.operator===y)return!1;if((!a.operator||a.operator===g)&&h(e,a.semver))return!1;if(a.operator===y&&m(e,a.semver))return!1}return!0}},{"../classes/comparator":243,"../classes/range":244,"../classes/semver":245,"../functions/gt":254,"../functions/gte":255,"../functions/lt":257,"../functions/lte":258,"../functions/satisfies":267}],284:[function(e,t,n){const r=e("../functions/satisfies.js"),s=e("../functions/compare.js");t.exports=(e,t,n)=>{const o=[];let i=null,a=null;const c=e.sort(((e,t)=>s(e,t,n)));for(const e of c){r(e,t,n)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null)}i&&o.push([i,null]);const u=[];for(const[e,t]of o)e===t?u.push(e):t||e!==c[0]?t?e===c[0]?u.push(`<=${t}`):u.push(`${e} - ${t}`):u.push(`>=${e}`):u.push("*");const l=u.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length<d.length?l:t}},{"../functions/compare.js":251,"../functions/satisfies.js":267}],285:[function(e,t,n){const r=e("../classes/range.js"),s=e("../classes/comparator.js"),{ANY:o}=s,i=e("../functions/satisfies.js"),a=e("../functions/compare.js"),c=[new s(">=0.0.0-0")],u=[new s(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=u}const r=new Set;let s,l,f,h,m,g,y;for(const t of e)">"===t.operator||">="===t.operator?s=d(s,t,n):"<"===t.operator||"<="===t.operator?l=p(l,t,n):r.add(t.semver);if(r.size>1)return null;if(s&&l){if(f=a(s.semver,l.semver,n),f>0)return null;if(0===f&&(">="!==s.operator||"<="!==l.operator))return null}for(const e of r){if(s&&!i(e,String(s),n))return null;if(l&&!i(e,String(l),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let _=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,b=!(!s||n.includePrerelease||!s.semver.prerelease.length)&&s.semver;_&&1===_.prerelease.length&&"<"===l.operator&&0===_.prerelease[0]&&(_=!1);for(const e of t){if(y=y||">"===e.operator||">="===e.operator,g=g||"<"===e.operator||"<="===e.operator,s)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),">"===e.operator||">="===e.operator){if(h=d(s,e,n),h===e&&h!==s)return!1}else if(">="===s.operator&&!i(s.semver,String(e),n))return!1;if(l)if(_&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===_.major&&e.semver.minor===_.minor&&e.semver.patch===_.patch&&(_=!1),"<"===e.operator||"<="===e.operator){if(m=p(l,e,n),m===e&&m!==l)return!1}else if("<="===l.operator&&!i(l.semver,String(e),n))return!1;if(!e.operator&&(l||s)&&0!==f)return!1}return!(s&&g&&!l&&0!==f)&&(!(l&&y&&!s&&0!==f)&&(!b&&!_))},d=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let s=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(s=s||null!==t,t)continue e}if(s)return!1}return!0}},{"../classes/comparator.js":243,"../classes/range.js":244,"../functions/compare.js":251,"../functions/satisfies.js":267}],286:[function(e,t,n){const r=e("../classes/range");t.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},{"../classes/range":244}],287:[function(e,t,n){const r=e("../classes/range");t.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},{"../classes/range":244}],288:[function(e,t,n){!function(e,r){if("function"==typeof define&&define.amd)define("webextension-polyfill",["module"],r);else if(void 0!==n)r(t);else{var s={exports:{}};r(s),e.browser=s.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){"use strict";if("undefined"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype){const t="The message port closed before a response was received.",n="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",r=e=>{const r={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(r).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class s extends WeakMap{constructor(e,t=undefined){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const o=(t,n)=>(...r)=>{e.runtime.lastError?t.reject(new Error(e.runtime.lastError.message)):n.singleCallbackArg||r.length<=1&&!1!==n.singleCallbackArg?t.resolve(r[0]):t.resolve(r)},i=e=>1==e?"argument":"arguments",a=(e,t,n)=>new Proxy(t,{apply:(t,r,s)=>n.call(r,e,...s)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,t={},n={})=>{let r=Object.create(null),s={has:(t,n)=>n in e||n in r,get(s,l,d){if(l in r)return r[l];if(!(l in e))return undefined;let p=e[l];if("function"==typeof p)if("function"==typeof t[l])p=a(e,e[l],t[l]);else if(c(n,l)){let t=((e,t)=>function(n,...r){if(r.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${i(t.minArgs)} for ${e}(), got ${r.length}`);if(r.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${i(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise(((s,i)=>{if(t.fallbackToNoCallback)try{n[e](...r,o({resolve:s,reject:i},t))}catch(o){console.warn(`${e} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,o),n[e](...r),t.fallbackToNoCallback=!1,t.noCallback=!0,s()}else t.noCallback?(n[e](...r),s()):n[e](...r,o({resolve:s,reject:i},t))}))})(l,n[l]);p=a(e,e[l],t)}else p=p.bind(e);else if("object"==typeof p&&null!==p&&(c(t,l)||c(n,l)))p=u(p,t[l],n[l]);else{if(!c(n,"*"))return Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:()=>e[l],set(t){e[l]=t}}),p;p=u(p,t[l],n["*"])}return r[l]=p,p},set:(t,n,s,o)=>(n in r?r[n]=s:e[n]=s,!0),defineProperty:(e,t,n)=>Reflect.defineProperty(r,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(r,t)},l=Object.create(e);return new Proxy(l,s)},l=e=>({addListener(t,n,...r){t.addListener(e.get(n),...r)},hasListener:(t,n)=>t.hasListener(e.get(n)),removeListener(t,n){t.removeListener(e.get(n))}}),d=new s((e=>"function"!=typeof e?e:function(t){const n=u(t,{},{getContent:{minArgs:0,maxArgs:0}});e(n)}));let p=!1;const f=new s((e=>"function"!=typeof e?e:function(t,r,s){let o,i,a=!1,c=new Promise((e=>{o=function(t){p||(console.warn(n,(new Error).stack),p=!0),a=!0,e(t)}}));try{i=e(t,r,o)}catch(e){i=Promise.reject(e)}const u=!0!==i&&((l=i)&&"object"==typeof l&&"function"==typeof l.then);var l;if(!0!==i&&!u&&!a)return!1;const d=e=>{e.then((e=>{s(e)}),(e=>{let t;t=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",s({__mozWebExtensionPolyfillReject__:!0,message:t})})).catch((e=>{console.error("Failed to send onMessage rejected reply",e)}))};return d(u?i:c),!0})),h=({reject:n,resolve:r},s)=>{e.runtime.lastError?e.runtime.lastError.message===t?r():n(new Error(e.runtime.lastError.message)):s&&s.__mozWebExtensionPolyfillReject__?n(new Error(s.message)):r(s)},m=(e,t,n,...r)=>{if(r.length<t.minArgs)throw new Error(`Expected at least ${t.minArgs} ${i(t.minArgs)} for ${e}(), got ${r.length}`);if(r.length>t.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${i(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise(((e,t)=>{const s=h.bind(null,{resolve:e,reject:t});r.push(s),n.sendMessage(...r)}))},g={devtools:{network:{onRequestFinished:l(d)}},runtime:{onMessage:l(f),onMessageExternal:l(f),sendMessage:m.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:m.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},y={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return r.privacy={network:{"*":y},services:{"*":y},websites:{"*":y}},u(e,g,r)};if("object"!=typeof chrome||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=r(chrome)}else e.exports=browser}))},{}],289:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getManifestFlags=function(){if("undefined"===undefined||!s.default.runtime.getManifest)return{};return s.default.runtime.getManifest()._flags||{}};var r,s=(r=e("webextension-polyfill"))&&r.__esModule?r:{default:r}},{"webextension-polyfill":288}],290:[function(e,t,n){(function(e){(function(){"use strict";var n,r,s;const o=(null===(n=e.chrome)||void 0===n?void 0:n.runtime.getManifest())||(null===(r=e.browser)||void 0===r?void 0:r.runtime.getManifest()),i=!o||3===o.manifest_version,a=Boolean(null===(s=e.chrome)||void 0===s?void 0:s.offscreen),c=i&&!a;t.exports={isManifestV3:i,isOffscreenAvailable:a,isMv3ButOffscreenDocIsMissing:c}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[4])} |