A better version of regex 101
| 1 | "use strict";(("undefined"!=typeof self?self:this).webpackChunkregex101=("undefined"!=typeof self?self:this).webpackChunkregex101||[]).push([[530],{29553:(t,e,n)=>{n.d(e,{N:()=>A,gE:()=>O});var s=n(65544),i=n(76890),r=n(77638),a=n(9791),o=n(12343),c=n(99181),l=n(58464);const u=n(71235).n2;var d=n(21170);const _=(t,e,n)=>{let s,i;return r=>{e.value>=0&&(r||n)&&(i=e.value-(s||0),(i||void 0===s)&&(s=e.value,e.delta=i,t(e)))}},h=()=>u.__WEB_VITALS_POLYFILL__?u.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const t=u.performance.timing,e=u.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==e?"back_forward":1===e?"reload":"navigate"};for(const e in t)"navigationStart"!==e&&"toJSON"!==e&&(n[e]=Math.max(t[e]-t.navigationStart,0));return n})()):u.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],p=()=>{const t=h();return t&&t.activationStart||0},f=(t,e)=>{const n=h();let s="navigate";return n&&(s=u.document.prerendering||p()>0?"prerender":n.type.replace(/_/g,"-")),{name:t,value:void 0===e?-1:e,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:s}},m=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const s=new PerformanceObserver((t=>{e(t.getEntries())}));return s.observe(Object.assign({type:t,buffered:!0},n||{})),s}}catch(t){}},g=(t,e)=>{const n=s=>{"pagehide"!==s.type&&"hidden"!==u.document.visibilityState||(t(s),e&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let y=-1;const v=()=>(y<0&&(y="hidden"!==u.document.visibilityState||u.document.prerendering?1/0:0,g((({timeStamp:t})=>{y=t}),!0)),{get firstHiddenTime(){return y}}),S={};function E(t){return"number"==typeof t&&isFinite(t)}function b(t,{startTimestamp:e,...n}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...n})}function k(t){return t/1e3}function w(){return u&&u.addEventListener&&u.performance}let T,R,x=0,D={};function N(){const t=w();if(t&&d.Z1){t.mark&&u.performance.mark("sentry-tracing-init"),(t=>{const e=v(),n=f("FID");let s;const i=t=>{t.startTime<e.firstHiddenTime&&(n.value=t.processingStart-t.startTime,n.entries.push(t),s(!0))},r=t=>{t.forEach(i)},a=m("first-input",r);s=_((t=>{const e=t.entries.pop();if(!e)return;const n=k(d.Z1),s=k(e.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FID"),D.fid={value:t.value,unit:"millisecond"},D["mark.fid"]={value:n+s,unit:"second"}}),n),a&&g((()=>{r(a.takeRecords()),a.disconnect()}),!0)})();const e=(t=>{const e=f("CLS",0);let n,s=0,i=[];const r=t=>{t.forEach((t=>{if(!t.hadRecentInput){const r=i[0],a=i[i.length-1];s&&0!==i.length&&t.startTime-a.startTime<1e3&&t.startTime-r.startTime<5e3?(s+=t.value,i.push(t)):(s=t.value,i=[t]),s>e.value&&(e.value=s,e.entries=i,n&&n())}}))},a=m("layout-shift",r);if(a){n=_((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS"),D.cls={value:t.value,unit:""},R=e)}),e);const t=()=>{r(a.takeRecords()),n(!0)};return g(t),t}})(),n=(t=>{const e=v(),n=f("LCP");let s;const i=t=>{const i=t[t.length-1];if(i){const t=Math.max(i.startTime-p(),0);t<e.firstHiddenTime&&(n.value=t,n.entries=[i],s())}},r=m("largest-contentful-paint",i);if(r){s=_((t=>{const e=t.entries.pop();e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP"),D.lcp={value:t.value,unit:"millisecond"},T=e)}),n);const t=()=>{S[n.id]||(i(r.takeRecords()),r.disconnect(),S[n.id]=!0,s(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),g(t,!0),t}})();return()=>{e&&e(),n&&n()}}return()=>{}}function I(t,e,n,s,i,r){const a=r?e[r]:e[`${n}End`],o=e[`${n}Start`];o&&a&&b(t,{op:"browser",description:i||n,startTimestamp:s+k(o),endTimestamp:s+k(a)})}var C=n(10516),U=n(42533);const A="BrowserTracing",B={...s.AT,markBackgroundTransactions:!0,routingInstrumentation:function(t,e=!0,n=!0){if(!u||!u.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Could not initialize routing instrumentation due to invalid location"));let s,i=u.location.href;e&&(s=t({name:u.location.pathname,startTimestamp:d.Z1?d.Z1/1e3:void 0,op:"pageload",metadata:{source:"url"}})),n&&(0,U.oq)("history",(({to:e,from:n})=>{void 0===n&&i&&-1!==i.indexOf(e)?i=void 0:n!==e&&(i=void 0,s&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing current transaction with op: ${s.op}`),s.finish()),s=t({name:u.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...C.k3};class O{__init(){this.name=A}constructor(t){O.prototype.__init.call(this),(0,i.T)(),this.options={...B,...t},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=N(),this.options.enableLongTask&&m("longtask",(t=>{for(const e of t){const t=(0,a.x1)();if(!t)return;const n=k(d.Z1+e.startTime),s=k(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+s})}})),this.options._experiments.enableInteractions&&m("event",(t=>{for(const e of t){const t=(0,a.x1)();if(!t)return;if("click"===e.name){const n=k(d.Z1+e.startTime),s=k(e.duration);t.startChild({description:(0,l.Rt)(e.target),op:`ui.interaction.${e.name}`,startTimestamp:n,endTimestamp:n+s})}}}),{durationThreshold:0})}setupOnce(t,e){this._getCurrentHub=e;const{routingInstrumentation:n,startTransactionOnLocationChange:s,startTransactionOnPageLoad:i,markBackgroundTransactions:r,traceFetch:c,traceXHR:l,tracePropagationTargets:d,shouldCreateSpanForRequest:_,_experiments:h}=this.options;n((t=>{const n=this._createRouteTransaction(t);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,t,e),n}),i,s),r&&(u&&u.document?u.document.addEventListener("visibilitychange",(()=>{const t=(0,a.x1)();if(u.document.hidden&&t){const e="cancelled";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t.op}`),t.status||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),h.enableInteractions&&this._registerInteractionListener(),(0,C.L7)({traceFetch:c,traceXHR:l,tracePropagationTargets:d,shouldCreateSpanForRequest:_})}_createRouteTransaction(t){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:e,idleTimeout:n,finalTimeout:s,heartbeatInterval:a}=this.options,_="pageload"===t.op,h=_?G("sentry-trace"):null,p=_?G("baggage"):null,f=h?(0,r.q)(h):void 0,m=p?(0,c.EN)(p):void 0,g={...t,...f,metadata:{...t.metadata,dynamicSamplingContext:f&&!m?{}:m},trimEnd:!0},y="function"==typeof e?e(g):g,S=void 0===y?{...g,sampled:!1}:y;S.metadata=S.name!==g.name?{...S.metadata,source:"custom"}:S.metadata,this._latestRouteName=S.name,this._latestRouteSource=S.metadata&&S.metadata.source,!1===S.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Will not send ${S.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Starting ${S.op} transaction on scope`);const N=this._getCurrentHub(),{location:C}=u,U=(0,i.l)(N,S,n,s,!0,{location:C},a);return U.registerBeforeFinishCallback((t=>{this._collectWebVitals(),function(t){const e=w();if(!e||!u.performance.getEntries||!d.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=k(d.Z1),s=e.getEntries();let i,r;if(s.slice(x).forEach((e=>{const s=k(e.startTime),a=k(e.duration);if(!("navigation"===t.op&&n+s<t.startTimestamp))switch(e.entryType){case"navigation":!function(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((s=>{I(t,e,s,n)})),I(t,e,"secureConnection",n,"TLS/SSL","connectEnd"),I(t,e,"fetch",n,"cache","domainLookupStart"),I(t,e,"domainLookup",n,"DNS"),function(t,e,n){b(t,{op:"browser",description:"request",startTimestamp:n+k(e.requestStart),endTimestamp:n+k(e.responseEnd)}),b(t,{op:"browser",description:"response",startTimestamp:n+k(e.responseStart),endTimestamp:n+k(e.responseEnd)})}(t,e,n)}(t,e,n),i=n+k(e.responseStart),r=n+k(e.requestStart);break;case"mark":case"paint":case"measure":{!function(t,e,n,s,i){const r=i+n,a=r+s;b(t,{description:e.name,endTimestamp:a,op:e.entryType,startTimestamp:r})}(t,e,s,a,n);const i=v(),r=e.startTime<i.firstHiddenTime;"first-paint"===e.name&&r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FP"),D.fp={value:e.startTime,unit:"millisecond"}),"first-contentful-paint"===e.name&&r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding FCP"),D.fcp={value:e.startTime,unit:"millisecond"});break}case"resource":{const i=e.name.replace(u.location.origin,"");!function(t,e,n,s,i,r){if("xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType)return;const a={};"transferSize"in e&&(a["http.response_transfer_size"]=e.transferSize),"encodedBodySize"in e&&(a["http.response_content_length"]=e.encodedBodySize),"decodedBodySize"in e&&(a["http.decoded_response_content_length"]=e.decodedBodySize),"renderBlockingStatus"in e&&(a["resource.render_blocking_status"]=e.renderBlockingStatus);const o=r+s;b(t,{description:n,endTimestamp:o+i,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",startTimestamp:o,data:a})}(t,e,i,s,a,n);break}}})),x=Math.max(s.length-1,0),function(t){const e=u.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setTag("effectiveConnectionType",n.effectiveType),n.type&&t.setTag("connectionType",n.type),E(n.rtt)&&(D["connection.rtt"]={value:n.rtt,unit:"millisecond"})),E(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),E(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}(t),"pageload"===t.op){"number"==typeof i&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding TTFB"),D.ttfb={value:1e3*(i-t.startTimestamp),unit:"millisecond"},"number"==typeof r&&r<=i&&(D["ttfb.requestTime"]={value:1e3*(i-r),unit:"millisecond"})),["fcp","fp","lcp"].forEach((e=>{if(!D[e]||n>=t.startTimestamp)return;const s=D[e].value,i=n+k(s),r=Math.abs(1e3*(i-t.startTimestamp)),a=r-s;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Measurements] Normalized ${e} from ${s} to ${r} (${a})`),D[e].value=r}));const e=D["mark.fid"];e&&D.fid&&(b(t,{description:"first input delay",endTimestamp:e.value+k(D.fid.value),op:"ui.action",startTimestamp:e.value}),delete D["mark.fid"]),"fcp"in D||delete D.cls,Object.keys(D).forEach((e=>{t.setMeasurement(e,D[e].value,D[e].unit)})),function(t){T&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding LCP Data"),T.element&&t.setTag("lcp.element",(0,l.Rt)(T.element)),T.id&&t.setTag("lcp.id",T.id),T.url&&t.setTag("lcp.url",T.url.trim().slice(0,200)),t.setTag("lcp.size",T.size)),R&&R.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding CLS Data"),R.sources.forEach(((e,n)=>t.setTag(`cls.source.${n+1}`,(0,l.Rt)(e.node)))))}(t)}T=void 0,R=void 0,D={}}(t)})),U}_registerInteractionListener(){let t;const e=()=>{const{idleTimeout:e,finalTimeout:n,heartbeatInterval:s}=this.options,r="ui.action.click",c=(0,a.x1)();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.finish(),t=void 0),!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn(`[Tracing] Did not create ${r} transaction because _latestRouteName is missing.`));const l=this._getCurrentHub(),{location:d}=u,_={name:this._latestRouteName,op:r,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=(0,i.l)(l,_,e,n,!0,{location:d},s)};["click"].forEach((t=>{addEventListener(t,e,{once:!1,capture:!0})}))}}function G(t){const e=(0,l.qT)(`meta[name=${t}]`);return e?e.getAttribute("content"):null}},10516:(t,e,n)=>{n.d(e,{L7:()=>d,k3:()=>u});var s=n(47522),i=n(95659),r=n(42533),a=n(57321),o=n(99181),c=n(67597);const l=["localhost",/^\/(?!\/)/],u={traceFetch:!0,traceXHR:!0,tracingOrigins:l,tracePropagationTargets:l};function d(t){const{traceFetch:e,traceXHR:n,tracePropagationTargets:d,tracingOrigins:_,shouldCreateSpanForRequest:h}={traceFetch:u.traceFetch,traceXHR:u.traceXHR,...t},p="function"==typeof h?h:t=>!0,f=t=>function(t,e){return(0,a.U0)(t,e||l)}(t,d||_),m={};e&&(0,r.oq)("fetch",(t=>{!function(t,e,n,r){if(!(0,s.z)()||!t.fetchData||!e(t.fetchData.url))return;if(t.endTimestamp){const e=t.fetchData.__span;if(!e)return;const n=r[e];return void(n&&(t.response?n.setHttpStatus(t.response.status):t.error&&n.setStatus("internal_error"),n.finish(),delete r[e]))}const a=t.response&&t.response.headers&&t.response.headers.get("content-length"),l=(0,i.Gd)().getScope(),u=l&&l.getSpan(),d=u&&u.transaction;if(u&&d){const{method:e,url:s}=t.fetchData,i=u.startChild({data:{url:s,type:"fetch",...a?{"http.response_content_length":a}:{},"http.method":e},description:`${e} ${s}`,op:"http.client"});t.fetchData.__span=i.spanId,r[i.spanId]=i;const l=t.args[0];t.args[1]=t.args[1]||{};const _=t.args[1];n(t.fetchData.url)&&(_.headers=function(t,e,n,s){const i=(0,o.IQ)(e),r=n.toTraceparent(),a="undefined"!=typeof Request&&(0,c.V9)(t,Request)?t.headers:s.headers;if(a){if("undefined"!=typeof Headers&&(0,c.V9)(a,Headers)){const t=new Headers(a);return t.append("sentry-trace",r),i&&t.append(o.bU,i),t}if(Array.isArray(a)){const t=[...a,["sentry-trace",r]];return i&&t.push([o.bU,i]),t}{const t="baggage"in a?a.baggage:void 0,e=[];return Array.isArray(t)?e.push(...t):t&&e.push(t),i&&e.push(i),{...a,"sentry-trace":r,baggage:e.length>0?e.join(","):void 0}}}return{"sentry-trace":r,baggage:i}}(l,d.getDynamicSamplingContext(),i,_))}}(t,p,f,m)})),n&&(0,r.oq)("xhr",(t=>{!function(t,e,n,a){const c=t.xhr,l=c&&c[r.xU];if(!(0,s.z)()||c&&c.__sentry_own_request__||!(c&&l&&e(l.url)))return;if(t.endTimestamp){const t=c.__sentry_xhr_span_id__;if(!t)return;const e=a[t];return void(e&&(e.setHttpStatus(l.status_code),e.finish(),delete a[t]))}const u=(0,i.Gd)().getScope(),d=u&&u.getSpan(),_=d&&d.transaction;if(d&&_){const t=d.startChild({data:{...l.data,type:"xhr","http.method":l.method,url:l.url},description:`${l.method} ${l.url}`,op:"http.client"});if(c.__sentry_xhr_span_id__=t.spanId,a[c.__sentry_xhr_span_id__]=t,c.setRequestHeader&&n(l.url))try{c.setRequestHeader("sentry-trace",t.toTraceparent());const e=_.getDynamicSamplingContext(),n=(0,o.IQ)(e);n&&c.setRequestHeader(o.bU,n)}catch(t){}}}(t,p,f,m)}))}},758:(t,e,n)=>{n.d(e,{r:()=>a});var s=n(95659),i=n(76890),r=n(61422);function a(){(0,i.T)(),(0,r.KV)()&&function(){const e=(0,s.cu)();if(!e.__SENTRY__)return;const n={mongodb:()=>new((0,r.l$)(t,"./node/integrations/mongo").Mongo),mongoose:()=>new((0,r.l$)(t,"./node/integrations/mongo").Mongo),mysql:()=>new((0,r.l$)(t,"./node/integrations/mysql").Mysql),pg:()=>new((0,r.l$)(t,"./node/integrations/postgres").Postgres)},i=Object.keys(n).filter((t=>!!(0,r.$y)(t))).map((t=>{try{return n[t]()}catch(t){return}})).filter((t=>t));i.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...i])}()}t=n.hmd(t)},61002:(t,e,n)=>{n.r(e),n.d(e,{Breadcrumbs:()=>jt,BrowserClient:()=>Kt,BrowserProfilingIntegration:()=>Ir,BrowserTracing:()=>ir.gE,Dedupe:()=>Be,FunctionToString:()=>o,GlobalHandlers:()=>ve,HttpContext:()=>Ae,Hub:()=>f.Xb,InboundFilters:()=>_,Integrations:()=>Ur,LinkedErrors:()=>Ce,Replay:()=>nr,SDK_VERSION:()=>p,Scope:()=>at.s,TryCatch:()=>Re,WINDOW:()=>ht,addBreadcrumb:()=>S,addGlobalEventProcessor:()=>at.c,addTracingExtensions:()=>ot.T,captureEvent:()=>y,captureException:()=>m,captureMessage:()=>g,captureUserFeedback:()=>Je,chromeStackLineParser:()=>ae,close:()=>qe,configureScope:()=>v,createTransport:()=>tt,createUserFeedbackEnvelope:()=>Jt,defaultIntegrations:()=>Le,defaultRequestInstrumentationOptions:()=>rr.k3,defaultStackLineParsers:()=>me,defaultStackParser:()=>ge,eventFromException:()=>Ot,eventFromMessage:()=>Gt,extractTraceparentData:()=>ct.q,flush:()=>He,forceLoad:()=>Fe,geckoStackLineParser:()=>le,getActiveTransaction:()=>lt.x1,getCurrentHub:()=>f.Gd,getHubFromCarrier:()=>f.vi,init:()=>ze,instrumentOutgoingRequests:()=>rr.L7,lastEventId:()=>$e,makeBrowserOfflineTransport:()=>hr,makeFetchTransport:()=>Qt,makeMain:()=>f.pj,makeMultiplexedTransport:()=>rt,makeXHRTransport:()=>ee,onLoad:()=>je,onProfilingStartRouteTransaction:()=>Dr,opera10StackLineParser:()=>he,opera11StackLineParser:()=>fe,setContext:()=>E,setExtra:()=>k,setExtras:()=>b,setTag:()=>T,setTags:()=>w,setUser:()=>R,showReportDialog:()=>Pe,spanStatusfromHttpCode:()=>ut.Zd,startTransaction:()=>D,trace:()=>dt.g,winjsStackLineParser:()=>de,withScope:()=>x,wrap:()=>We});var s={};n.r(s),n.d(s,{FunctionToString:()=>o,InboundFilters:()=>_});var i={};n.r(i),n.d(i,{Breadcrumbs:()=>jt,Dedupe:()=>Be,GlobalHandlers:()=>ve,HttpContext:()=>Ae,LinkedErrors:()=>Ce,TryCatch:()=>Re});var r=n(20535);let a;class o{constructor(){o.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=o.id}setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=(0,r.HK)(this)||this;return a.apply(e,t)}}catch(t){}}}o.__initStatic();var c=n(12343),l=n(62844),u=n(57321);const d=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class _{static __initStatic(){this.id="InboundFilters"}__init(){this.name=_.id}constructor(t={}){this._options=t,_.prototype.__init.call(this)}setupOnce(t,e){const n=t=>{const n=e();if(n){const e=n.getIntegration(_);if(e){const s=n.getClient(),i=s?s.getOptions():{},r=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...d],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(e._options,i);return function(t,e){return e.ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){return!(t.type||!e||!e.length)&&function(t){if(t.message)return[t.message];if(t.exception){const{values:e}=t.exception;try{const{type:t="",value:n=""}=e&&e[e.length-1]||{};return[`${n}`,`${t}: ${n}`]}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(`Cannot extract message for event ${(0,l.jH)(t)}`),[]}}return[]}(t).some((t=>(0,u.U0)(t,e)))}(t,e.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;const n=t.transaction;return!!n&&(0,u.U0)(n,e)}(t,e.ignoreTransactions)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,l.jH)(t)}`),!0):function(t,e){if(!e||!e.length)return!1;const n=h(t);return!!n&&(0,u.U0)(n,e)}(t,e.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${h(t)}`),!0):!function(t,e){if(!e||!e.length)return!0;const n=h(t);return!n||(0,u.U0)(n,e)}(t,e.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,l.jH)(t)}.\nUrl: ${h(t)}`),!0)}(t,r)?null:t}}return t};n.id=this.name,t(n)}}function h(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(`Cannot extract url for event ${(0,l.jH)(t)}`),null}}_.__initStatic();const p="7.52.1";var f=n(95659);function m(t,e){return(0,f.Gd)().captureException(t,{captureContext:e})}function g(t,e){const n="string"==typeof e?e:void 0,s="string"!=typeof e?{captureContext:e}:void 0;return(0,f.Gd)().captureMessage(t,n,s)}function y(t,e){return(0,f.Gd)().captureEvent(t,e)}function v(t){(0,f.Gd)().configureScope(t)}function S(t){(0,f.Gd)().addBreadcrumb(t)}function E(t,e){(0,f.Gd)().setContext(t,e)}function b(t){(0,f.Gd)().setExtras(t)}function k(t,e){(0,f.Gd)().setExtra(t,e)}function w(t){(0,f.Gd)().setTags(t)}function T(t,e){(0,f.Gd)().setTag(t,e)}function R(t){(0,f.Gd)().setUser(t)}function x(t){(0,f.Gd)().withScope(t)}function D(t,e){return(0,f.Gd)().startTransaction({...t},e)}class N extends Error{constructor(t,e="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=e}}var I=n(96893);const C=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function U(t,e=!1){const{host:n,path:s,pass:i,port:r,projectId:a,protocol:o,publicKey:c}=t;return`${o}://${c}${e&&i?`:${i}`:""}@${n}${r?`:${r}`:""}/${s?`${s}/`:s}${a}`}function A(t){const e=C.exec(t);if(!e)throw new N(`Invalid Sentry Dsn: ${t}`);const[n,s,i="",r,a="",o]=e.slice(1);let c="",l=o;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const t=l.match(/^\d+/);t&&(l=t[0])}return B({host:r,pass:i,path:c,projectId:l,port:a,protocol:n,publicKey:s})}function B(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function O(t){const e="string"==typeof t?A(t):B(t);return function(t){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:e,projectId:n,protocol:s}=t;if(["protocol","publicKey","host","projectId"].forEach((e=>{if(!t[e])throw new N(`Invalid Sentry Dsn: ${e} missing`)})),!n.match(/^\d+$/))throw new N(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(t){return"http"===t||"https"===t}(s))throw new N(`Invalid Sentry Dsn: Invalid protocol ${s}`);if(e&&isNaN(parseInt(e,10)))throw new N(`Invalid Sentry Dsn: Invalid port ${e}`)}(e),e}var G=n(67597),Y=n(30360);function M(t,e=100,n=1/0){try{return z("",t,e,n)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}function L(t,e=3,n=102400){const s=M(t,e);return i=s,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(i))>n?L(t,e-1,n):s;var i}function z(t,e,s=1/0,i=1/0,a=function(){const t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){const[o,c]=a;if(null==e||["number","boolean","string"].includes(typeof e)&&!(0,G.i2)(e))return e;const l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,G.Cy)(e))return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${(0,Y.$P)(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;const s=function(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);return/^HTML(\w*)Element$/.test(s)?`[HTMLElement: ${s}]`:`[object ${s}]`}catch(t){return`**non-serializable** (${t})`}}(t,e);if(!l.startsWith("[object "))return l;if(e.__sentry_skip_normalization__)return e;const u="number"==typeof e.__sentry_override_normalization_depth__?e.__sentry_override_normalization_depth__:s;if(0===u)return l.replace("object ","");if(o(e))return"[Circular ~]";const d=e;if(d&&"function"==typeof d.toJSON)try{return z("",d.toJSON(),u-1,i,a)}catch(t){}const _=Array.isArray(e)?[]:{};let h=0;const p=(0,r.Sh)(e);for(const t in p){if(!Object.prototype.hasOwnProperty.call(p,t))continue;if(h>=i){_[t]="[MaxProperties ~]";break}const e=p[t];_[t]=z(t,e,u-1,i,a),h++}return c(e),_}function P(t,e=[]){return[t,e]}function $(t,e){const[n,s]=t;return[n,[...s,e]]}function F(t,e){const n=t[1];for(const t of n)if(e(t,t[0].type))return!0;return!1}function j(t,e){return(e||new TextEncoder).encode(t)}function H(t,e){const[n,s]=t;let i=JSON.stringify(n);function r(t){"string"==typeof i?i="string"==typeof t?i+t:[j(i,e),t]:i.push("string"==typeof t?j(t,e):t)}for(const t of s){const[e,n]=t;if(r(`\n${JSON.stringify(e)}\n`),"string"==typeof n||n instanceof Uint8Array)r(n);else{let t;try{t=JSON.stringify(n)}catch(e){t=JSON.stringify(M(n))}r(t)}}return"string"==typeof i?i:function(t){const e=t.reduce(((t,e)=>t+e.length),0),n=new Uint8Array(e);let s=0;for(const e of t)n.set(e,s),s+=e.length;return n}(i)}function q(t,e){const n="string"==typeof t.data?j(t.data,e):t.data;return[(0,r.Jr)({type:"attachment",length:n.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),n]}const W={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor"};function Z(t){return W[t]}function J(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function K(t,e,n,s){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:U(s)},...i&&{trace:(0,r.Jr)({...i})}}}const V=6e4;function X(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return 1e3*n;const s=Date.parse(`${t}`);return isNaN(s)?V:s-e}const Q=30;function tt(t,e,n=function(t){const e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(s){if(!(void 0===t||e.length<t))return(0,I.$2)(new N("Not adding Promise because buffer limit was reached."));const i=s();return-1===e.indexOf(i)&&e.push(i),i.then((()=>n(i))).then(null,(()=>n(i).then(null,(()=>{})))),i},drain:function(t){return new I.cW(((n,s)=>{let i=e.length;if(!i)return n(!0);const r=setTimeout((()=>{t&&t>0&&n(!1)}),t);e.forEach((t=>{(0,I.WD)(t).then((()=>{--i||(clearTimeout(r),n(!0))}),s)}))}))}}}(t.bufferSize||Q)){let s={};function i(i){const r=[];if(F(i,((e,n)=>{const i=Z(n);if(function(t,e,n=Date.now()){return function(t,e){return t[e]||t.all||0}(t,e)>n}(s,i)){const s=et(e,n);t.recordDroppedEvent("ratelimit_backoff",i,s)}else r.push(e)})),0===r.length)return(0,I.WD)();const a=P(i[0],r),o=e=>{F(a,((n,s)=>{const i=et(n,s);t.recordDroppedEvent(e,Z(s),i)}))};return n.add((()=>e({body:H(a,t.textEncoder)}).then((t=>(void 0!==t.statusCode&&(t.statusCode<200||t.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Sentry responded with status code ${t.statusCode} to sent event.`),s=function(t,{statusCode:e,headers:n},s=Date.now()){const i={...t},r=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(r)for(const t of r.trim().split(",")){const[e,n]=t.split(":",2),r=parseInt(e,10),a=1e3*(isNaN(r)?60:r);if(n)for(const t of n.split(";"))i[t]=s+a;else i.all=s+a}else a?i.all=s+X(a,s):429===e&&(i.all=s+6e4);return i}(s,t),t)),(t=>{throw o("network_error"),t})))).then((t=>t),(t=>{if(t instanceof N)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Skipped sending event because buffer is full."),o("queue_overflow"),(0,I.WD)();throw t}))}return i.__sentry__baseTransport__=!0,{send:i,flush:t=>n.drain(t)}}function et(t,e){if("event"===e||"transaction"===e)return Array.isArray(t)?t[1]:void 0}const nt="7";function st(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function it(t,e={}){const n="string"==typeof e?e:e.tunnel,s="string"!=typeof e&&e._metadata?e._metadata.sdk:void 0;return n||`${function(t){return`${st(t)}${t.projectId}/envelope/`}(t)}?${function(t,e){return(0,r._j)({sentry_key:t.publicKey,sentry_version:nt,...e&&{sentry_client:`${e.name}/${e.version}`}})}(t,s)}`}function rt(t,e){return n=>{const s=t(n),i={};return{send:async function(r){const a=e({envelope:r,getEvent:function(t){const e=t&&t.length?t:["event"];return function(t,e){let n;return F(t,((t,s)=>(e.includes(s)&&(n=Array.isArray(t)?t[1]:void 0),!!n))),n}(r,e)}}).map((e=>function(e){if(!i[e]){const s=it(A(e));i[e]=t({...n,url:s})}return i[e]}(e)));return 0===a.length&&a.push(s),(await Promise.all(a.map((t=>t.send(r)))))[0]},flush:async function(t){const e=[...Object.keys(i).map((t=>i[t])),s];return(await Promise.all(e.map((e=>e.flush(t))))).every((t=>t))}}}}var at=n(10350),ot=n(76890),ct=n(77638),lt=n(9791),ut=n(38903),dt=n(61250),_t=n(71235);const ht=_t.n2;let pt=0;function ft(){return pt>0}function mt(t,e={},n){if("function"!=typeof t)return t;try{const e=t.__sentry_wrapped__;if(e)return e;if((0,r.HK)(t))return t}catch(e){return t}const s=function(){const s=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const i=s.map((t=>mt(t,e)));return t.apply(this,i)}catch(t){throw pt++,setTimeout((()=>{pt--})),x((n=>{n.addEventProcessor((t=>(e.mechanism&&((0,l.Db)(t,void 0,void 0),(0,l.EG)(t,e.mechanism)),t.extra={...t.extra,arguments:s},t))),m(t)})),t}};try{for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s[e]=t[e])}catch(t){}(0,r.$Q)(s,t),(0,r.xp)(t,"__sentry_wrapped__",s);try{Object.getOwnPropertyDescriptor(s,"name").configurable&&Object.defineProperty(s,"name",{get:()=>t.name})}catch(t){}return s}const gt=[];function yt(t){const e=t.defaultIntegrations||[],n=t.integrations;let s;e.forEach((t=>{t.isDefaultInstance=!0})),s=Array.isArray(n)?[...e,...n]:"function"==typeof n?(0,l.lE)(n(e)):e;const i=function(t){const e={};return t.forEach((t=>{const{name:n}=t,s=e[n];s&&!s.isDefaultInstance&&t.isDefaultInstance||(e[n]=t)})),Object.keys(e).map((t=>e[t]))}(s),r=function(t,e){for(let e=0;e<t.length;e++)if(1==("Debug"===t[e].name))return e;return-1}(i);if(-1!==r){const[t]=i.splice(r,1);i.push(t)}return i}function vt(t,e){e[t.name]=t,-1===gt.indexOf(t.name)&&(t.setupOnce(at.c,f.Gd),gt.push(t.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Integration installed: ${t.name}`))}var St=n(9015),Et=n(21170),bt=n(51131);function kt(t,e,n,s){const{normalizeDepth:i=3,normalizeMaxBreadth:r=1e3}=t,a={...e,event_id:e.event_id||n.event_id||(0,l.DM)(),timestamp:e.timestamp||(0,Et.yW)()},o=n.integrations||t.integrations.map((t=>t.name));!function(t,e){const{environment:n,release:s,dist:i,maxValueLength:r=250}=e;"environment"in t||(t.environment="environment"in e?n:bt.J),void 0===t.release&&void 0!==s&&(t.release=s),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=(0,u.$G)(t.message,r));const a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=(0,u.$G)(a.value,r));const o=t.request;o&&o.url&&(o.url=(0,u.$G)(o.url,r))}(a,t),function(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}(a,o),void 0===e.type&&function(t,e){const n=_t.n2._sentryDebugIds;if(!n)return;let s;const i=wt.get(e);i?s=i:(s=new Map,wt.set(e,s));const r=Object.keys(n).reduce(((t,i)=>{let r;const a=s.get(i);a?r=a:(r=e(i),s.set(i,r));for(let e=r.length-1;e>=0;e--){const s=r[e];if(s.filename){t[s.filename]=n[i];break}}return t}),{}),a=new Set;try{t.exception.values.forEach((t=>{t.stacktrace.frames.forEach((t=>{t.filename&&a.add(t.filename)}))}))}catch(t){}t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const o=t.debug_meta.images;a.forEach((t=>{r[t]&&o.push({type:"sourcemap",code_file:t,debug_id:r[t]})}))}(a,t.stackParser);let c=s;n.captureContext&&(c=at.s.clone(c).update(n.captureContext));let d=(0,I.WD)(a);if(c){if(c.getAttachments){const t=[...n.attachments||[],...c.getAttachments()];t.length&&(n.attachments=t)}d=c.applyToEvent(a,n)}return d.then((t=>"number"==typeof i&&i>0?function(t,e,n){if(!t)return null;const s={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((t=>({...t,...t.data&&{data:M(t.data,e,n)}})))},...t.user&&{user:M(t.user,e,n)},...t.contexts&&{contexts:M(t.contexts,e,n)},...t.extra&&{extra:M(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&s.contexts&&(s.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(s.contexts.trace.data=M(t.contexts.trace.data,e,n))),t.spans&&(s.spans=t.spans.map((t=>(t.data&&(t.data=M(t.data,e,n)),t)))),s}(t,i,r):t))}const wt=new WeakMap,Tt="Not capturing exception because it's already been captured.";class Rt{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}__init5(){this._hooks={}}constructor(t){if(Rt.prototype.__init.call(this),Rt.prototype.__init2.call(this),Rt.prototype.__init3.call(this),Rt.prototype.__init4.call(this),Rt.prototype.__init5.call(this),this._options=t,t.dsn){this._dsn=O(t.dsn);const e=it(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:e})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("No DSN provided, client will not do anything.")}captureException(t,e,n){if((0,l.YO)(t))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(Tt));let s=e&&e.event_id;return this._process(this.eventFromException(t,e).then((t=>this._captureEvent(t,e,n))).then((t=>{s=t}))),s}captureMessage(t,e,n,s){let i=n&&n.event_id;const r=(0,G.pt)(t)?this.eventFromMessage(String(t),e,n):this.eventFromException(t,n);return this._process(r.then((t=>this._captureEvent(t,n,s))).then((t=>{i=t}))),i}captureEvent(t,e,n){if(e&&e.originalException&&(0,l.YO)(e.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(Tt));let s=e&&e.event_id;return this._process(this._captureEvent(t,e,n).then((t=>{s=t}))),s}captureSession(t){this._isEnabled()?"string"!=typeof t.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),(0,St.CT)(t,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const e=this._transport;return e?this._isClientDoneProcessing(t).then((n=>e.flush(t).then((t=>n&&t)))):(0,I.WD)(!0)}close(t){return this.flush(t).then((t=>(this.getOptions().enabled=!1,t)))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(t){const e={};return t.forEach((t=>{t&&vt(t,e)})),e}(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){vt(t,this._integrations)}sendEvent(t,e={}){if(this._dsn){let n=function(t,e,n,s){const i=J(n),r=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const a=K(t,i,s,e);return delete t.sdkProcessingMetadata,P(a,[[{type:r},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);for(const t of e.attachments||[])n=$(n,q(t,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(n);s&&s.then((e=>this.emit("afterSendEvent",t,e)),null)}}sendSession(t){if(this._dsn){const e=function(t,e,n,s){const i=J(n);return P({sent_at:(new Date).toISOString(),...i&&{sdk:i},...!!s&&{dsn:U(e)}},["aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t]])}(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(e)}}recordDroppedEvent(t,e,n){if(this._options.sendClientReports){const n=`${t}:${e}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}on(t,e){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(e)}emit(t,...e){this._hooks[t]&&this._hooks[t].forEach((t=>t(...e)))}_updateSessionFromEvent(t,e){let n=!1,s=!1;const i=e.exception&&e.exception.values;if(i){s=!0;for(const t of i){const e=t.mechanism;if(e&&!1===e.handled){n=!0;break}}}const r="ok"===t.status;(r&&0===t.errors||r&&n)&&((0,St.CT)(t,{...n&&{status:"crashed"},errors:t.errors||Number(s||n)}),this.captureSession(t))}_isClientDoneProcessing(t){return new I.cW((e=>{let n=0;const s=setInterval((()=>{0==this._numProcessing?(clearInterval(s),e(!0)):(n+=1,t&&n>=t&&(clearInterval(s),e(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(t,e,n){const s=this.getOptions(),i=Object.keys(this._integrations);return!e.integrations&&i.length>0&&(e.integrations=i),kt(s,t,e,n)}_captureEvent(t,e={},n){return this._processEvent(t,e,n).then((t=>t.event_id),(t=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e=t;"log"===e.logLevel?c.kg.log(e.message):c.kg.warn(e)}}))}_processEvent(t,e,n){const s=this.getOptions(),{sampleRate:i}=s;if(!this._isEnabled())return(0,I.$2)(new N("SDK not enabled, will not capture event.","log"));const r=Dt(t),a=xt(t),o=t.type||"error",c=`before send for type \`${o}\``;if(a&&"number"==typeof i&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),(0,I.$2)(new N(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const l="replay_event"===o?"replay":o;return this._prepareEvent(t,e,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,t),new N("An event processor returned `null`, will not send event.","log");if(e.data&&!0===e.data.__sentry__)return n;const i=function(t,e,n){const{beforeSend:s,beforeSendTransaction:i}=t;return xt(e)&&s?s(e,n):Dt(e)&&i?i(e,n):e}(s,n,e);return function(t,e){const n=`${e} must return \`null\` or a valid event.`;if((0,G.J8)(t))return t.then((t=>{if(!(0,G.PO)(t)&&null!==t)throw new N(n);return t}),(t=>{throw new N(`${e} rejected with ${t}`)}));if(!(0,G.PO)(t)&&null!==t)throw new N(n);return t}(i,c)})).then((s=>{if(null===s)throw this.recordDroppedEvent("before_send",l,t),new N(`${c} returned \`null\`, will not send event.`,"log");const i=n&&n.getSession();!r&&i&&this._updateSessionFromEvent(i,s);const a=s.transaction_info;if(r&&a&&s.transaction!==t.transaction){const t="custom";s.transaction_info={...a,source:t}}return this.sendEvent(s,e),s})).then(null,(t=>{if(t instanceof N)throw t;throw this.captureException(t,{data:{__sentry__:!0},originalException:t}),new N(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${t}`)}))}_process(t){this._numProcessing++,t.then((t=>(this._numProcessing--,t)),(t=>(this._numProcessing--,t)))}_sendEnvelope(t){if(this._transport&&this._dsn)return this.emit("beforeEnvelope",t),this._transport.send(t).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Error while sending event:",t)}));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map((e=>{const[n,s]=e.split(":");return{reason:n,category:s,quantity:t[e]}}))}}function xt(t){return void 0===t.type}function Dt(t){return"transaction"===t.type}var Nt=n(68518);function It(t,e){const n=Ut(t,e),s={type:e&&e.name,value:Bt(e)};return n.length&&(s.stacktrace={frames:n}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function Ct(t,e){return{exception:{values:[It(t,e)]}}}function Ut(t,e){const n=e.stacktrace||e.stack||"",s=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(At.test(t.message))return 1}return 0}(e);try{return t(n,s)}catch(t){}return[]}const At=/Minified React error #\d+;/i;function Bt(t){const e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Ot(t,e,n,s){const i=Yt(t,e,n&&n.syntheticException||void 0,s);return(0,l.EG)(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),(0,I.WD)(i)}function Gt(t,e,n="info",s,i){const r=Mt(t,e,s&&s.syntheticException||void 0,i);return r.level=n,s&&s.event_id&&(r.event_id=s.event_id),(0,I.WD)(r)}function Yt(t,e,n,s,i){let a;if((0,G.VW)(e)&&e.error)return Ct(t,e.error);if((0,G.TX)(e)||(0,G.fm)(e)){const i=e;if("stack"in e)a=Ct(t,e);else{const e=i.name||((0,G.TX)(i)?"DOMError":"DOMException"),r=i.message?`${e}: ${i.message}`:e;a=Mt(t,r,n,s),(0,l.Db)(a,r)}return"code"in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return(0,G.VZ)(e)?Ct(t,e):(0,G.PO)(e)||(0,G.cO)(e)?(a=function(t,e,n,s){const i=(0,f.Gd)().getClient(),a=i&&i.getOptions().normalizeDepth,o={exception:{values:[{type:(0,G.cO)(e)?e.constructor.name:s?"UnhandledRejection":"Error",value:`Non-Error ${s?"promise rejection":"exception"} captured with keys: ${(0,r.zf)(e)}`}]},extra:{__serialized__:L(e,a)}};if(n){const e=Ut(t,n);e.length&&(o.exception.values[0].stacktrace={frames:e})}return o}(t,e,n,i),(0,l.EG)(a,{synthetic:!0}),a):(a=Mt(t,e,n,s),(0,l.Db)(a,`${e}`,void 0),(0,l.EG)(a,{synthetic:!0}),a)}function Mt(t,e,n,s){const i={message:e};if(s&&n){const s=Ut(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]})}return i}var Lt=n(42533),zt=n(58464);const Pt=["fatal","error","warning","log","info","debug"];var $t=n(26956);const Ft="Breadcrumbs";class jt{static __initStatic(){this.id=Ft}__init(){this.name=jt.id}constructor(t){jt.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;this.options.console&&(0,Lt.oq)("console",Ht),this.options.dom&&(0,Lt.oq)("dom",(t=this.options.dom,function(e){let n,s="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof s&&(s=[s]);try{const t=e.event;n=function(t){return t&&!!t.target}(t)?(0,zt.Rt)(t.target,{keyAttrs:s,maxStringLength:i}):(0,zt.Rt)(t,{keyAttrs:s,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&(0,f.Gd)().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&(0,Lt.oq)("xhr",qt),this.options.fetch&&(0,Lt.oq)("fetch",Wt),this.options.history&&(0,Lt.oq)("history",Zt)}addSentryBreadcrumb(t){this.options.sentry&&(0,f.Gd)().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,l.jH)(t)},{event:t})}}function Ht(t){for(let e=0;e<t.args.length;e++)if("ref=Ref<"===t.args[e]){t.args[e+1]="viewRef";break}const e={category:"console",data:{arguments:t.args,logger:"console"},level:(n=t.level,"warn"===n?"warning":Pt.includes(n)?n:"log"),message:(0,u.nK)(t.args," ")};var n;if("assert"===t.level){if(!1!==t.args[0])return;e.message=`Assertion failed: ${(0,u.nK)(t.args.slice(1)," ")||"console.assert"}`,e.data.arguments=t.args.slice(1)}(0,f.Gd)().addBreadcrumb(e,{input:t.args,level:t.level})}function qt(t){const{startTimestamp:e,endTimestamp:n}=t,s=t.xhr[Lt.xU];if(!e||!n||!s)return;const{method:i,url:r,status_code:a,body:o}=s,c={method:i,url:r,status_code:a},l={xhr:t.xhr,input:o,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"xhr",data:c,type:"http"},l)}function Wt(t){const{startTimestamp:e,endTimestamp:n}=t;if(n&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const s=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:s,level:"error",type:"http"},i)}else{const s={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};(0,f.Gd)().addBreadcrumb({category:"fetch",data:s,type:"http"},i)}}function Zt(t){let e=t.from,n=t.to;const s=(0,$t.en)(ht.location.href);let i=(0,$t.en)(e);const r=(0,$t.en)(n);i.path||(i=s),s.protocol===r.protocol&&s.host===r.host&&(n=r.relative),s.protocol===i.protocol&&s.host===i.host&&(e=i.relative),(0,f.Gd)().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function Jt(t,{metadata:e,tunnel:n,dsn:s}){const i={event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!s&&{dsn:U(s)}},r=function(t){return[{type:"user_report"},t]}(t);return P(i,[r])}jt.__initStatic();class Kt extends Rt{constructor(t){const e=ht.SENTRY_SDK_SOURCE||(0,Nt.S)();t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:`${e}:@sentry/browser`,version:p}],version:p},super(t),t.sendClientReports&&ht.document&&ht.document.addEventListener("visibilitychange",(()=>{"hidden"===ht.document.visibilityState&&this._flushOutcomes()}))}eventFromException(t,e){return Ot(this._options.stackParser,t,e,this._options.attachStacktrace)}eventFromMessage(t,e="info",n){return Gt(this._options.stackParser,t,e,n,this._options.attachStacktrace)}sendEvent(t,e){const n=this.getIntegrationById(Ft);n&&n.addSentryBreadcrumb&&n.addSentryBreadcrumb(t),super.sendEvent(t,e)}captureUserFeedback(t){if(!this._isEnabled())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("SDK not enabled, will not capture user feedback."));const e=Jt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(e)}_prepareEvent(t,e,n){return t.platform=t.platform||"javascript",super._prepareEvent(t,e,n)}_flushOutcomes(){const t=this._clearOutcomes();if(0===t.length)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No outcomes to send"));if(!this._dsn)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("No dsn provided, will not send outcomes"));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("Sending outcomes:",t);const e=(n=t,P((s=this._options.tunnel&&U(this._dsn))?{dsn:s}:{},[[{type:"client_report"},{timestamp:(0,Et.yW)(),discarded_events:n}]]));var n,s;this._sendEnvelope(e)}}var Vt=n(8823);let Xt;function Qt(t,e=function(){if(Xt)return Xt;if((0,Vt.Du)(ht.fetch))return Xt=ht.fetch.bind(ht);const t=ht.document;let e=ht.fetch;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);const s=n.contentWindow;s&&s.fetch&&(e=s.fetch),t.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Xt=e.bind(ht)}()){let n=0,s=0;return tt(t,(function(i){const r=i.body.length;n+=r,s++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&s<15,...t.fetchOptions};try{return e(t.url,a).then((t=>(n-=r,s--,{statusCode:t.status,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")}})))}catch(t){return Xt=void 0,n-=r,s--,(0,I.$2)(t)}}))}const te=4;function ee(t){return tt(t,(function(e){return new I.cW(((n,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===te&&n({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",t.url);for(const e in t.headers)Object.prototype.hasOwnProperty.call(t.headers,e)&&i.setRequestHeader(e,t.headers[e]);i.send(e.body)}))}))}const ne="?";function se(t,e,n,s){const i={filename:t,function:e,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==s&&(i.colno=s),i}const ie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,re=/\((\S*)(?::(\d+))(?::(\d+))\)/,ae=[30,t=>{const e=ie.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){const t=re.exec(e[2]);t&&(e[2]=t[1],e[3]=t[2],e[4]=t[3])}const[t,n]=ye(e[1]||ne,e[2]);return se(n,t,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],oe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ce=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,le=[50,t=>{const e=oe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const t=ce.exec(e[3]);t&&(e[1]=e[1]||"eval",e[3]=t[1],e[4]=t[2],e[5]="")}let t=e[3],n=e[1]||ne;return[n,t]=ye(n,t),se(t,n,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}}],ue=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,de=[40,t=>{const e=ue.exec(t);return e?se(e[2],e[1]||ne,+e[3],e[4]?+e[4]:void 0):void 0}],_e=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,he=[10,t=>{const e=_e.exec(t);return e?se(e[2],e[3]||ne,+e[1]):void 0}],pe=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,fe=[20,t=>{const e=pe.exec(t);return e?se(e[5],e[3]||e[4]||ne,+e[1],+e[2]):void 0}],me=[ae,le,de],ge=(0,Y.pE)(...me),ye=(t,e)=>{const n=-1!==t.indexOf("safari-extension"),s=-1!==t.indexOf("safari-web-extension");return n||s?[-1!==t.indexOf("@")?t.split("@")[0]:ne,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]};class ve{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ve.id}__init2(){this._installFunc={onerror:Se,onunhandledrejection:Ee}}constructor(t){ve.prototype.__init.call(this),ve.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const s=this._installFunc[n];s&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`Global Handler attached: ${e}`),s(),this._installFunc[n]=void 0)}var e}}function Se(){(0,Lt.oq)("error",(t=>{const[e,n,s]=we();if(!e.getIntegration(ve))return;const{msg:i,url:r,line:a,column:o,error:c}=t;if(ft()||c&&c.__sentry_own_request__)return;const l=void 0===c&&(0,G.HD)(i)?function(t,e,n,s){let i=(0,G.VW)(t)?t.message:t,r="Error";const a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(r=a[1],i=a[2]),be({exception:{values:[{type:r,value:i}]}},e,n,s)}(i,r,a,o):be(Yt(n,c||i,void 0,s,!1),r,a,o);l.level="error",ke(e,c,l,"onerror")}))}function Ee(){(0,Lt.oq)("unhandledrejection",(t=>{const[e,n,s]=we();if(!e.getIntegration(ve))return;let i=t;try{"reason"in t?i=t.reason:"detail"in t&&"reason"in t.detail&&(i=t.detail.reason)}catch(t){}if(ft()||i&&i.__sentry_own_request__)return!0;const r=(0,G.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:Yt(n,i,void 0,s,!0);r.level="error",ke(e,i,r,"onunhandledrejection")}))}function be(t,e,n,s){const i=t.exception=t.exception||{},r=i.values=i.values||[],a=r[0]=r[0]||{},o=a.stacktrace=a.stacktrace||{},c=o.frames=o.frames||[],l=isNaN(parseInt(s,10))?void 0:s,u=isNaN(parseInt(n,10))?void 0:n,d=(0,G.HD)(e)&&e.length>0?e:(0,zt.l4)();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),t}function ke(t,e,n,s){(0,l.EG)(n,{handled:!1,type:s}),t.captureEvent(n,{originalException:e})}function we(){const t=(0,f.Gd)(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}ve.__initStatic();const Te=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Re{static __initStatic(){this.id="TryCatch"}__init(){this.name=Re.id}constructor(t){Re.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&(0,r.hl)(ht,"setTimeout",xe),this._options.setInterval&&(0,r.hl)(ht,"setInterval",xe),this._options.requestAnimationFrame&&(0,r.hl)(ht,"requestAnimationFrame",De),this._options.XMLHttpRequest&&"XMLHttpRequest"in ht&&(0,r.hl)(XMLHttpRequest.prototype,"send",Ne);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:Te).forEach(Ie)}}function xe(t){return function(...e){const n=e[0];return e[0]=mt(n,{mechanism:{data:{function:(0,Y.$P)(t)},handled:!0,type:"instrument"}}),t.apply(this,e)}}function De(t){return function(e){return t.apply(this,[mt(e,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,Y.$P)(t)},handled:!0,type:"instrument"}})])}}function Ne(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((t=>{t in n&&"function"==typeof n[t]&&(0,r.hl)(n,t,(function(e){const n={mechanism:{data:{function:t,handler:(0,Y.$P)(e)},handled:!0,type:"instrument"}},s=(0,r.HK)(e);return s&&(n.mechanism.data.handler=(0,Y.$P)(s)),mt(e,n)}))})),t.apply(this,e)}}function Ie(t){const e=ht,n=e[t]&&e[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.hl)(n,"addEventListener",(function(e){return function(n,s,i){try{"function"==typeof s.handleEvent&&(s.handleEvent=mt(s.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,Y.$P)(s),target:t},handled:!0,type:"instrument"}}))}catch(t){}return e.apply(this,[n,mt(s,{mechanism:{data:{function:"addEventListener",handler:(0,Y.$P)(s),target:t},handled:!0,type:"instrument"}}),i])}})),(0,r.hl)(n,"removeEventListener",(function(t){return function(e,n,s){const i=n;try{const n=i&&i.__sentry_wrapped__;n&&t.call(this,e,n,s)}catch(t){}return t.call(this,e,i,s)}})))}Re.__initStatic();class Ce{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ce.id}constructor(t={}){Ce.prototype.__init.call(this),this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){const t=(0,f.Gd)().getClient();t&&(0,at.c)(((e,n)=>{const s=(0,f.Gd)().getIntegration(Ce);return s?function(t,e,n,s,i){if(!(s.exception&&s.exception.values&&i&&(0,G.V9)(i.originalException,Error)))return s;const r=Ue(t,n,i.originalException,e);return s.exception.values=[...r,...s.exception.values],s}(t.getOptions().stackParser,s._key,s._limit,e,n):e}))}}function Ue(t,e,n,s,i=[]){if(!(0,G.V9)(n[s],Error)||i.length+1>=e)return i;const r=It(t,n[s]);return Ue(t,e,n[s],s,[r,...i])}Ce.__initStatic();class Ae{constructor(){Ae.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ae.id}setupOnce(){(0,at.c)((t=>{if((0,f.Gd)().getIntegration(Ae)){if(!ht.navigator&&!ht.location&&!ht.document)return t;const e=t.request&&t.request.url||ht.location&&ht.location.href,{referrer:n}=ht.document||{},{userAgent:s}=ht.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...s&&{"User-Agent":s}},r={...t.request,...e&&{url:e},headers:i};return{...t,request:r}}return t}))}}Ae.__initStatic();class Be{constructor(){Be.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Be.id}setupOnce(t,e){const n=t=>{if(t.type)return t;const n=e().getIntegration(Be);if(n){try{if(function(t,e){return!(!e||!function(t,e){const n=t.message,s=e.message;return!(!n&&!s||n&&!s||!n&&s||n!==s||!Ge(t,e)||!Oe(t,e))}(t,e)&&!function(t,e){const n=Ye(e),s=Ye(t);return!!(n&&s&&n.type===s.type&&n.value===s.value&&Ge(t,e)&&Oe(t,e))}(t,e))}(t,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t};n.id=this.name,t(n)}}function Oe(t,e){let n=Me(t),s=Me(e);if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;if(s.length!==n.length)return!1;for(let t=0;t<s.length;t++){const e=s[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function Ge(t,e){let n=t.fingerprint,s=e.fingerprint;if(!n&&!s)return!0;if(n&&!s||!n&&s)return!1;try{return!(n.join("")!==s.join(""))}catch(t){return!1}}function Ye(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Me(t){const e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}}Be.__initStatic();const Le=[new _,new o,new Re,new jt,new ve,new Ce,new Be,new Ae];function ze(t={}){void 0===t.defaultIntegrations&&(t.defaultIntegrations=Le),void 0===t.release&&("string"==typeof __SENTRY_RELEASE__&&(t.release=__SENTRY_RELEASE__),ht.SENTRY_RELEASE&&ht.SENTRY_RELEASE.id&&(t.release=ht.SENTRY_RELEASE.id)),void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),void 0===t.sendClientReports&&(t.sendClientReports=!0);const e={...t,stackParser:(0,Y.Sq)(t.stackParser||ge),integrations:yt(t),transport:t.transport||((0,Vt.Ak)()?Qt:ee)};!function(t,e){!0===e.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?c.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=(0,f.Gd)();n.getScope().update(e.initialScope);const s=new t(e);n.bindClient(s)}(Kt,e),t.autoSessionTracking&&function(){if(void 0===ht.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));const t=(0,f.Gd)();t.captureSession&&(Ze(t),(0,Lt.oq)("history",(({from:t,to:e})=>{void 0!==t&&t!==e&&Ze((0,f.Gd)())})))}()}function Pe(t={},e=(0,f.Gd)()){if(!ht.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Global document not defined in showReportDialog call"));const{client:n,scope:s}=e.getStackTop(),i=t.dsn||n&&n.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("DSN not configured for showReportDialog call"));s&&(t.user={...s.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const r=ht.document.createElement("script");r.async=!0,r.src=function(t,e){const n=O(t),s=`${st(n)}embed/error-page/`;let i=`dsn=${U(n)}`;for(const t in e)if("dsn"!==t)if("user"===t){const t=e.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`;return`${s}?${i}`}(i,t),t.onLoad&&(r.onload=t.onLoad);const a=ht.document.head||ht.document.body;a?a.appendChild(r):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("Not injecting report dialog. No injection point found in HTML")}function $e(){return(0,f.Gd)().lastEventId()}function Fe(){}function je(t){t()}function He(t){const e=(0,f.Gd)().getClient();return e?e.flush(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Cannot flush events. No client defined."),(0,I.WD)(!1))}function qe(t){const e=(0,f.Gd)().getClient();return e?e.close(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,I.WD)(!1))}function We(t){return mt(t)()}function Ze(t){t.startSession({ignoreDuration:!0}),t.captureSession()}function Je(t){const e=(0,f.Gd)().getClient();e&&e.captureUserFeedback(t)}var Ke=n(61422);const Ve=_t.n2,Xe="sentryReplaySession",Qe="Unable to send Replay",tn=15e4,en=5e3;var nn;function sn(t){const e=null==t?void 0:t.host;return Boolean(e&&e.shadowRoot&&e.shadowRoot===t)}function rn({maskInputOptions:t,tagName:e,type:n}){"option"===e.toLowerCase()&&(e="select");const s="string"==typeof n?n.toLowerCase():void 0;return t[e.toLowerCase()]||s&&t[s]||"password"===s||"input"===e&&!n&&t.text}function an({input:t,maskInputSelector:e,unmaskInputSelector:n,maskInputOptions:s,tagName:i,type:r,value:a,maskInputFn:o}){let c=a||"";return n&&t.matches(n)||(t.hasAttribute("data-rr-is-password")&&(r="password"),(rn({maskInputOptions:s,tagName:i,type:r})||e&&t.matches(e))&&(c=o?o(c):"*".repeat(c.length))),c}!function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(nn||(nn={}));const on="__rrweb_original__";function cn(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?e.toLowerCase():null}function ln(t,e,n){return"string"==typeof n&&n.toLowerCase(),"INPUT"!==e||"radio"!==n&&"checkbox"!==n?t.value:t.getAttribute("value")||""}let un=1;const dn=new RegExp("[^a-z0-9-_:]"),_n=-2;function hn(t){return t?t.replace(/[\S]/g,"*"):""}function pn(t){try{const e=t.rules||t.cssRules;return e?Array.from(e).map(fn).join(""):null}catch(t){return null}}function fn(t){let e=t.cssText;if(function(t){return"styleSheet"in t}(t))try{e=pn(t.styleSheet)||e}catch(t){}return mn(e)}function mn(t){if(t.indexOf(":")>-1){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}return t}let gn,yn;const vn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Sn=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,En=/^(data:)([^,]*),(.*)/i;function bn(t,e){return(t||"").replace(vn,((t,n,s,i,r,a)=>{const o=s||r||a,c=n||i||"";if(!o)return t;if(!Sn.test(o))return`url(${c}${o}${c})`;if(En.test(o))return`url(${c}${o}${c})`;if("/"===o[0])return`url(${c}${function(t){let e="";return e=t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0],e=e.split("?")[0],e}(e)+o}${c})`;const l=e.split("/"),u=o.split("/");l.pop();for(const t of u)"."!==t&&(".."===t?l.pop():l.push(t));return`url(${c}${l.join("/")}${c})`}))}const kn=/^[^ \t\n\r\u000c]+/,wn=/^[, \t\n\r\u000c]+/;function Tn(t,e){if(!e||""===e.trim())return e;const n=t.createElement("a");return n.href=e,n.href}function Rn(){const t=document.createElement("a");return t.href="",t.href}function xn(t,e,n,s,i,r,a,o){if(!i)return i;const c=s.toLowerCase(),l=n.toLowerCase();return"src"===c||"href"===c||"xlink:href"===c&&"#"!==i[0]?Tn(t,i):"background"!==c||"table"!==l&&"td"!==l&&"th"!==l?"srcset"===c?function(t,e){if(""===e.trim())return e;let n=0;function s(t){let s,i=t.exec(e.substring(n));return i?(s=i[0],n+=s.length,s):""}let i=[];for(;s(wn),!(n>=e.length);){let r=s(kn);if(","===r.slice(-1))r=Tn(t,r.substring(0,r.length-1)),i.push(r);else{let s="";r=Tn(t,r);let a=!1;for(;;){let t=e.charAt(n);if(""===t){i.push((r+s).trim());break}if(a)")"===t&&(a=!1);else{if(","===t){n+=1,i.push((r+s).trim());break}"("===t&&(a=!0)}s+=t,n+=1}}}return i.join(", ")}(t,i):"style"===c?bn(i,Rn()):"object"===l&&"data"===c?Tn(t,i):r&&function(t,e,n,s){return(!s||!t.matches(s))&&(["placeholder","title","aria-label"].indexOf(e)>-1||"input"===n&&"value"===e&&t.hasAttribute("type")&&["submit","button"].indexOf(t.getAttribute("type").toLowerCase())>-1)}(e,c,l,a)?o?o(i):hn(i):i:Tn(t,i)}function Dn(t,e,n,s,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Dn(t.parentNode,e,n,s,i);if(s&&(t.matches(s)||t.closest(s)))return!1;if(i)return!0;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const s=t.classList[n];if(e.test(s))return!0}return!(!n||!t.matches(n))||Dn(t.parentNode,e,n,s,i)}function Nn(t){return null==t?"":t.toLowerCase()}function In(t,e){const{doc:n,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u=!1,inlineStylesheet:d=!0,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v={},inlineImages:S=!1,recordCanvas:E=!1,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w=5e3,keepIframeSrcFn:T=(()=>!1)}=e;let{preserveWhiteSpace:R=!0}=e;const x=function(t,e){var n;const{doc:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:u,maskInputSelector:d,unmaskInputSelector:_,maskAllText:h,maskInputOptions:p={},maskTextFn:f,maskInputFn:m,dataURLOptions:g={},inlineImages:y,recordCanvas:v,keepIframeSrcFn:S}=e;let E;if(s.__sn){const t=s.__sn.id;E=1===t?void 0:t}switch(t.nodeType){case t.DOCUMENT_NODE:return"CSS1Compat"!==t.compatMode?{type:nn.Document,childNodes:[],compatMode:t.compatMode,rootId:E}:{type:nn.Document,childNodes:[],rootId:E};case t.DOCUMENT_TYPE_NODE:return{type:nn.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:E};case t.ELEMENT_NODE:const e=function(t,e,n,s){if(s&&t.matches(s))return!1;if("string"==typeof e){if(t.classList.contains(e))return!0}else for(let n=0;n<t.classList.length;n++){const s=t.classList[n];if(e.test(s))return!0}return!!n&&t.matches(n)}(t,i,r,a),w=function(t){if(t instanceof HTMLFormElement)return"form";const e=t.tagName.toLowerCase().trim();return dn.test(e)?"div":e}(t);let T={};for(const{name:e,value:n}of Array.from(t.attributes))Cn(w,e)||(T[e]=xn(s,t,w,e,n,h,l,f));if("link"===w&&u){const e=Array.from(s.styleSheets).find((e=>e.href===t.href));let n=null;e&&(n=pn(e)),n&&(delete T.rel,delete T.href,T._cssText=bn(n,e.href))}if("style"===w&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const e=pn(t.sheet);e&&(T._cssText=bn(e,Rn()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const e=t,n=cn(e),s=ln(e,w.toUpperCase(),n),i=t.checked;"submit"!==n&&"button"!==n&&s&&(T.value=an({input:e,type:n,tagName:w,value:s,maskInputSelector:d,unmaskInputSelector:_,maskInputOptions:p,maskInputFn:m})),i&&(T.checked=i)}if("option"===w&&(t.selected&&!p.select?T.selected=!0:delete T.selected),"canvas"===w&&v)if("2d"===t.__context)(function(t){const e=t.getContext("2d");if(!e)return!0;for(let n=0;n<t.width;n+=50)for(let s=0;s<t.height;s+=50){const i=e.getImageData,r=on in i?i[on]:i;if(new Uint32Array(r.call(e,n,s,Math.min(50,t.width-n),Math.min(50,t.height-s)).data.buffer).some((t=>0!==t)))return!1}return!0})(t)||(T.rr_dataURL=t.toDataURL(g.type,g.quality));else if(!("__context"in t)){const e=t.toDataURL(g.type,g.quality),n=document.createElement("canvas");n.width=t.width,n.height=t.height,e!==n.toDataURL(g.type,g.quality)&&(T.rr_dataURL=e)}if("img"===w&&y){gn||(gn=s.createElement("canvas"),yn=gn.getContext("2d"));const e=t,n=e.crossOrigin;e.crossOrigin="anonymous";const i=()=>{try{gn.width=e.naturalWidth,gn.height=e.naturalHeight,yn.drawImage(e,0,0),T.rr_dataURL=gn.toDataURL(g.type,g.quality)}catch(t){console.warn(`Cannot inline img src=${e.currentSrc}! Error: ${t}`)}n?T.crossOrigin=n:delete T.crossOrigin};e.complete&&0!==e.naturalWidth?i():e.onload=i}if("audio"!==w&&"video"!==w||(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop),e){const{width:e,height:n}=t.getBoundingClientRect();T={class:T.class,rr_width:`${e}px`,rr_height:`${n}px`}}return"iframe"!==w||S(T.src)||(t.contentDocument||(T.rr_src=T.src),delete T.src),{type:nn.Element,tagName:w,attributes:T,childNodes:[],isSVG:(k=t,Boolean("svg"===k.tagName||k.ownerSVGElement)||void 0),needBlock:e,rootId:E};case t.TEXT_NODE:const R=t.parentNode&&t.parentNode.tagName;let x=t.textContent;const D="STYLE"===R||void 0,N="SCRIPT"===R||void 0;if(D&&x){try{t.nextSibling||t.previousSibling||(null===(n=t.parentNode.sheet)||void 0===n?void 0:n.cssRules)&&(x=(b=t.parentNode.sheet).cssRules?Array.from(b.cssRules).map((t=>t.cssText?mn(t.cssText):"")).join(""):"")}catch(e){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${e}`,t)}x=bn(x,Rn())}return N&&(x="SCRIPT_PLACEHOLDER"),"TEXTAREA"===R&&x?x="":"OPTION"===R&&x?x=an({input:t.parentNode,type:null,tagName:R,value:x,maskInputSelector:d,unmaskInputSelector:_,maskInputOptions:p,maskInputFn:m}):!D&&!N&&Dn(t,o,c,l,h)&&x&&(x=f?f(x):hn(x)),{type:nn.Text,textContent:x||"",isStyle:D,rootId:E};case t.CDATA_SECTION_NODE:return{type:nn.CDATA,textContent:"",rootId:E};case t.COMMENT_NODE:return{type:nn.Comment,textContent:t.textContent||"",rootId:E};default:return!1}var b,k}(t,{doc:n,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,dataURLOptions:v,inlineImages:S,recordCanvas:E,keepIframeSrcFn:T});if(!x)return console.warn(t,"not serialized"),null;let D;D="__sn"in t?t.__sn.id:!function(t,e){if(e.comment&&t.type===nn.Comment)return!0;if(t.type===nn.Element){if(e.script&&("script"===t.tagName||"link"===t.tagName&&("preload"===t.attributes.rel||"modulepreload"===t.attributes.rel)&&"script"===t.attributes.as||"link"===t.tagName&&"prefetch"===t.attributes.rel&&"string"==typeof t.attributes.href&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&("link"===t.tagName&&"shortcut icon"===t.attributes.rel||"meta"===t.tagName&&(Nn(t.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Nn(t.attributes.name)||"icon"===Nn(t.attributes.rel)||"apple-touch-icon"===Nn(t.attributes.rel)||"shortcut icon"===Nn(t.attributes.rel))))return!0;if("meta"===t.tagName){if(e.headMetaDescKeywords&&Nn(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Nn(t.attributes.property).match(/^(og|twitter|fb):/)||Nn(t.attributes.name).match(/^(og|twitter):/)||"pinterest"===Nn(t.attributes.name)))return!0;if(e.headMetaRobots&&("robots"===Nn(t.attributes.name)||"googlebot"===Nn(t.attributes.name)||"bingbot"===Nn(t.attributes.name)))return!0;if(e.headMetaHttpEquiv&&void 0!==t.attributes["http-equiv"])return!0;if(e.headMetaAuthorship&&("author"===Nn(t.attributes.name)||"generator"===Nn(t.attributes.name)||"framework"===Nn(t.attributes.name)||"publisher"===Nn(t.attributes.name)||"progid"===Nn(t.attributes.name)||Nn(t.attributes.property).match(/^article:/)||Nn(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&("google-site-verification"===Nn(t.attributes.name)||"yandex-verification"===Nn(t.attributes.name)||"csrf-token"===Nn(t.attributes.name)||"p:domain_verify"===Nn(t.attributes.name)||"verify-v1"===Nn(t.attributes.name)||"verification"===Nn(t.attributes.name)||"shopify-checkout-api-token"===Nn(t.attributes.name)))return!0}}return!1}(x,y)&&(R||x.type!==nn.Text||x.isStyle||x.textContent.replace(/^\s+|\s+$/gm,"").length)?un++:_n;const N=Object.assign(x,{id:D});if(t.__sn=N,D===_n)return null;s[D]=t,b&&b(t);let I=!u;if(N.type===nn.Element&&(I=I&&!N.needBlock,delete N.needBlock,t.shadowRoot&&(N.isShadowHost=!0)),(N.type===nn.Document||N.type===nn.Element)&&I){y.headWhitespace&&x.type===nn.Element&&"head"===x.tagName&&(R=!1);const e={doc:n,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:u,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:S,recordCanvas:E,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,keepIframeSrcFn:T};for(const n of Array.from(t.childNodes)){const t=In(n,e);t&&N.childNodes.push(t)}if(function(t){return t.nodeType===t.ELEMENT_NODE}(t)&&t.shadowRoot)for(const n of Array.from(t.shadowRoot.childNodes)){const t=In(n,e);t&&(t.isShadow=!0,N.childNodes.push(t))}}return t.parentNode&&sn(t.parentNode)&&(N.isShadow=!0),N.type===nn.Element&&"iframe"===N.tagName&&function(t,e,n){const s=t.contentWindow;if(!s)return;let i,r=!1;try{i=s.document.readyState}catch(t){return}if("complete"!==i){const s=setTimeout((()=>{r||(e(),r=!0)}),n);return void t.addEventListener("load",(()=>{clearTimeout(s),r=!0,e()}))}const a="about:blank";s.location.href===a&&t.src!==a&&""!==t.src?t.addEventListener("load",e):setTimeout(e,0)}(t,(()=>{const e=t.contentDocument;if(e&&k){const n=In(e,{doc:e,map:s,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:o,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputSelector:_,unmaskInputSelector:h,maskAllText:p,maskInputOptions:f,maskTextFn:m,maskInputFn:g,slimDOMOptions:y,dataURLOptions:v,inlineImages:S,recordCanvas:E,preserveWhiteSpace:R,onSerialize:b,onIframeLoad:k,iframeLoadTimeout:w,keepIframeSrcFn:T});n&&k(t,n)}}),w),N}function Cn(t,e,n){return("video"===t||"audio"===t)&&"autoplay"===e}var Un,An,Bn,On,Gn,Yn;function Mn(t,e,n=document){const s={capture:!0,passive:!0};return n.addEventListener(t,e,s),()=>n.removeEventListener(t,e,s)}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Un||(Un={})),function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration"}(An||(An={})),function(t){t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel"}(Bn||(Bn={})),function(t){t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2"}(On||(On={})),function(t){t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange"}(Gn||(Gn={})),function(t){t.Start="start",t.Pause="pause",t.Resume="resume",t.Resize="resize",t.Finish="finish",t.FullsnapshotRebuilded="fullsnapshot-rebuilded",t.LoadStylesheetStart="load-stylesheet-start",t.LoadStylesheetEnd="load-stylesheet-end",t.SkipStart="skip-start",t.SkipEnd="skip-end",t.MouseInteraction="mouse-interaction",t.EventCast="event-cast",t.CustomEvent="custom-event",t.Flush="flush",t.StateChange="state-change",t.PlayBack="play-back"}(Yn||(Yn={}));const Ln="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 zn={map:{},getId:()=>(console.error(Ln),-1),getNode:()=>(console.error(Ln),null),removeNodeFromMap(){console.error(Ln)},has:()=>(console.error(Ln),!1),reset(){console.error(Ln)}};function Pn(t,e,n={}){let s=null,i=0;return function(r){let a=Date.now();i||!1!==n.leading||(i=a);let o=e-(a-i),c=this,l=arguments;o<=0||o>e?(s&&(clearTimeout(s),s=null),i=a,t.apply(c,l)):s||!1===n.trailing||(s=setTimeout((()=>{i=!1===n.leading?0:Date.now(),s=null,t.apply(c,l)}),o))}}function $n(t,e,n,s,i=window){const r=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,s?n:{set(t){setTimeout((()=>{n.set.call(this,t)}),0),r&&r.set&&r.set.call(this,t)}}),()=>$n(t,e,r||{},!0)}function Fn(t,e,n){try{if(!(e in t))return()=>{};const s=t[e],i=n(s);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:s}})),t[e]=i,()=>{t[e]=s}}catch(t){return()=>{}}}function jn(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Hn(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qn(t,e,n,s){if(!t)return!1;if(t.nodeType===t.ELEMENT_NODE){let i=!1;const r=s&&t.matches(s);return"string"==typeof e?i=void 0!==t.closest?!r&&null!==t.closest("."+e):!r&&t.classList.contains(e):!r&&t.classList.forEach((t=>{e.test(t)&&(i=!0)})),!i&&n&&(i=t.matches(n)),!r&&i||qn(t.parentNode,e,n,s)}return t.nodeType,t.TEXT_NODE,qn(t.parentNode,e,n,s)}function Wn(t){return"__sn"in t&&t.__sn.id===_n}function Zn(t,e){if(sn(t))return!1;const n=e.getId(t);return!e.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||Zn(t.parentNode,e))}function Jn(t){return Boolean(t.changedTouches)}function Kn(t){return"__sn"in t&&t.__sn.type===nn.Element&&"iframe"===t.__sn.tagName}function Vn(t){return Boolean(null==t?void 0:t.shadowRoot)}function Xn(t){return"__ln"in t}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(zn=new Proxy(zn,{get:(t,e,n)=>("map"===e&&console.error(Ln),Reflect.get(t,e,n))}));class Qn{constructor(){this.length=0,this.head=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let e=this.head;for(let n=0;n<t;n++)e=(null==e?void 0:e.next)||null;return e}addNode(t){const e={value:t,previous:null,next:null};if(t.__ln=e,t.previousSibling&&Xn(t.previousSibling)){const n=t.previousSibling.__ln.next;e.next=n,e.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=e,n&&(n.previous=e)}else if(t.nextSibling&&Xn(t.nextSibling)&&t.nextSibling.__ln.previous){const n=t.nextSibling.__ln.previous;e.previous=n,e.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=e,n&&(n.next=e)}else this.head&&(this.head.previous=e),e.next=this.head,this.head=e;this.length++}removeNode(t){const e=t.__ln;this.head&&(e.previous?(e.previous.next=e.next,e.next&&(e.next.previous=e.previous)):(this.head=e.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)}}const ts=(t,e)=>`${t}@${e}`;function es(t){return"__sn"in t}class ns{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],e=new Qn,n=t=>{let e=t,n=_n;for(;n===_n;)e=e&&e.nextSibling,n=e&&this.mirror.getId(e);return n},s=s=>{var i,r,a,o,c;const l=s.getRootNode?null===(i=s.getRootNode())||void 0===i?void 0:i.host:null;let u=l;for(;null===(a=null===(r=null==u?void 0:u.getRootNode)||void 0===r?void 0:r.call(u))||void 0===a?void 0:a.host;)u=(null===(c=null===(o=null==u?void 0:u.getRootNode)||void 0===o?void 0:o.call(u))||void 0===c?void 0:c.host)||null;const d=!(this.doc.contains(s)||u&&this.doc.contains(u));if(!s.parentNode||d)return;const _=sn(s.parentNode)?this.mirror.getId(l):this.mirror.getId(s.parentNode),h=n(s);if(-1===_||-1===h)return e.addNode(s);let p=In(s,{doc:this.doc,map:this.mirror.map,blockClass:this.blockClass,blockSelector:this.blockSelector,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,skipChild:!0,inlineStylesheet:this.inlineStylesheet,maskAllText:this.maskAllText,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:t=>{Kn(t)&&this.iframeManager.addIframe(t),Vn(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,document)},onIframeLoad:(t,e)=>{this.iframeManager.attachIframe(t,e),this.shadowDomManager.observeAttachShadow(t)}});p&&t.push({parentId:_,nextId:h,node:p})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const t of this.movedSet)is(this.removes,t,this.mirror)&&!this.movedSet.has(t.parentNode)||s(t);for(const t of this.addedSet)rs(this.droppedSet,t)||is(this.removes,t,this.mirror)?rs(this.movedSet,t)?s(t):this.droppedSet.add(t):s(t);let i=null;for(;e.length;){let t=null;if(i){const e=this.mirror.getId(i.value.parentNode),s=n(i.value);-1!==e&&-1!==s&&(t=i)}if(!t)for(let s=e.length-1;s>=0;s--){const i=e.get(s);if(i){const e=this.mirror.getId(i.value.parentNode),s=n(i.value);if(-1!==e&&-1!==s){t=i;break}}}if(!t){for(;e.head;)e.removeNode(e.head.value);break}i=t.previous,e.removeNode(t.value),s(t.value)}const r={texts:this.texts.map((t=>({id:this.mirror.getId(t.node),value:t.value}))).filter((t=>this.mirror.has(t.id))),attributes:this.attributes.map((t=>({id:this.mirror.getId(t.node),attributes:t.attributes}))).filter((t=>this.mirror.has(t.id))),removes:this.removes,adds:t};(r.texts.length||r.attributes.length||r.removes.length||r.adds.length)&&(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(r))},this.processMutation=t=>{if(!Wn(t.target))switch(t.type){case"characterData":{const e=t.target.textContent;qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||e===t.oldValue||this.texts.push({value:Dn(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextSelector,this.maskAllText)&&e?this.maskTextFn?this.maskTextFn(e):e.replace(/[\S]/g,"*"):e,node:t.target});break}case"attributes":{const e=t.target;let n=e.getAttribute(t.attributeName);if("value"===t.attributeName&&(n=an({input:e,maskInputSelector:this.maskInputSelector,unmaskInputSelector:this.unmaskInputSelector,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:e.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||n===t.oldValue)return;let s=this.attributes.find((e=>e.node===t.target));if(s||(s={node:t.target,attributes:{}},this.attributes.push(s)),"type"===t.attributeName&&"INPUT"===e.tagName&&"password"===(t.oldValue||"").toLowerCase()&&e.setAttribute("data-rr-is-password","true"),"style"===t.attributeName){const n=this.doc.createElement("span");t.oldValue&&n.setAttribute("style",t.oldValue),void 0!==s.attributes.style&&null!==s.attributes.style||(s.attributes.style={});try{const t=s.attributes.style;for(const s of Array.from(e.style)){const i=e.style.getPropertyValue(s),r=e.style.getPropertyPriority(s);i===n.style.getPropertyValue(s)&&r===n.style.getPropertyPriority(s)||(t[s]=""===r?i:[i,r])}for(const s of Array.from(n.style))""===e.style.getPropertyValue(s)&&(t[s]=!1)}catch(t){console.warn("[rrweb] Error when parsing update to style attribute:",t)}}else{const e=t.target;s.attributes[t.attributeName]=xn(this.doc,e,e.tagName,t.attributeName,n,this.maskAllText,this.unmaskTextSelector,this.maskTextFn)}break}case"childList":t.addedNodes.forEach((e=>this.genAdds(e,t.target))),t.removedNodes.forEach((e=>{const n=this.mirror.getId(e),s=sn(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);qn(t.target,this.blockClass,this.blockSelector,this.unblockSelector)||Wn(e)||(this.addedSet.has(e)?(ss(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(t.target)&&-1===n||Zn(t.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[ts(n,s)]?ss(this.movedSet,e):this.removes.push({parentId:s,id:n,isShadow:!!sn(t.target)||void 0})),this.mapRemoves.push(e))}))}},this.genAdds=(t,e)=>{if(!e||!qn(e,this.blockClass,this.blockSelector,this.unblockSelector)){if(es(t)){if(Wn(t))return;this.movedSet.add(t);let n=null;e&&es(e)&&(n=e.__sn.id),n&&(this.movedMap[ts(t.__sn.id,n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);qn(t,this.blockClass,this.blockSelector,this.unblockSelector)||t.childNodes.forEach((t=>this.genAdds(t)))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskTextClass","maskTextSelector","unmaskTextSelector","maskInputSelector","unmaskInputSelector","inlineStylesheet","maskAllText","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach((e=>{this[e]=t[e]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function ss(t,e){t.delete(e),e.childNodes.forEach((e=>ss(t,e)))}function is(t,e,n){const{parentNode:s}=e;if(!s)return!1;const i=n.getId(s);return!!t.some((t=>t.id===i))||is(t,s,n)}function rs(t,e){const{parentNode:n}=e;return!!n&&(!!t.has(n)||rs(t,n))}const as=t=>(...e)=>{try{return t(...e)}catch(t){try{t.__rrweb__=!0}catch(t){}throw t}},os=[];function cs(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(t){}return t&&t.target}function ls(t,e){var n,s;const i=new ns;os.push(i),i.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const a=null===(s=null===(n=null===window||void 0===window?void 0:window.Zone)||void 0===n?void 0:n.__symbol__)||void 0===s?void 0:s.call(n,"MutationObserver");a&&window[a]&&(r=window[a]);const o=new r(as((e=>{t.onMutation&&!1===t.onMutation(e)||i.processMutations(e)})));return o.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function us({scrollCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,sampling:a}){const o=Pn((a=>{const o=cs(a);if(!o||qn(o,s,i,r))return;const c=n.getId(o);if(o===e){const n=e.scrollingElement||e.documentElement;as(t)({id:c,x:n.scrollLeft,y:n.scrollTop})}else as(t)({id:c,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100);return Mn("scroll",as(o),e)}function ds(t,e){const n=Object.assign({},t);return e||delete n.userTriggered,n}const _s=["INPUT","TEXTAREA","SELECT"],hs=new WeakMap;function ps(t){return function(t,e){if(ms("CSSGroupingRule")&&t.parentRule instanceof CSSGroupingRule||ms("CSSMediaRule")&&t.parentRule instanceof CSSMediaRule||ms("CSSSupportsRule")&&t.parentRule instanceof CSSSupportsRule||ms("CSSConditionRule")&&t.parentRule instanceof CSSConditionRule){const n=Array.from(t.parentRule.cssRules).indexOf(t);e.unshift(n)}else{const n=Array.from(t.parentStyleSheet.cssRules).indexOf(t);e.unshift(n)}return e}(t,[])}function fs(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};!function(t,e){const{mutationCb:n,mousemoveCb:s,mouseInteractionCb:i,scrollCb:r,viewportResizeCb:a,inputCb:o,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:_}=t;t.mutationCb=(...t)=>{e.mutation&&e.mutation(...t),n(...t)},t.mousemoveCb=(...t)=>{e.mousemove&&e.mousemove(...t),s(...t)},t.mouseInteractionCb=(...t)=>{e.mouseInteraction&&e.mouseInteraction(...t),i(...t)},t.scrollCb=(...t)=>{e.scroll&&e.scroll(...t),r(...t)},t.viewportResizeCb=(...t)=>{e.viewportResize&&e.viewportResize(...t),a(...t)},t.inputCb=(...t)=>{e.input&&e.input(...t),o(...t)},t.mediaInteractionCb=(...t)=>{e.mediaInteaction&&e.mediaInteaction(...t),c(...t)},t.styleSheetRuleCb=(...t)=>{e.styleSheetRule&&e.styleSheetRule(...t),l(...t)},t.styleDeclarationCb=(...t)=>{e.styleDeclaration&&e.styleDeclaration(...t),u(...t)},t.canvasMutationCb=(...t)=>{e.canvasMutation&&e.canvasMutation(...t),d(...t)},t.fontCb=(...t)=>{e.font&&e.font(...t),_(...t)}}(t,e);const s=ls(t,t.doc),i=function({mousemoveCb:t,sampling:e,doc:n,mirror:s}){if(!1===e.mousemove)return()=>{};const i="number"==typeof e.mousemove?e.mousemove:50,r="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let a,o=[];const c=Pn((e=>{const n=Date.now()-a;as(t)(o.map((t=>(t.timeOffset-=n,t))),e),o=[],a=null}),r),l=Pn((t=>{const e=cs(t),{clientX:n,clientY:i}=Jn(t)?t.changedTouches[0]:t;a||(a=Date.now()),o.push({x:n,y:i,id:s.getId(e),timeOffset:Date.now()-a}),c("undefined"!=typeof DragEvent&&t instanceof DragEvent?An.Drag:t instanceof MouseEvent?An.MouseMove:An.TouchMove)}),i,{trailing:!1}),u=[Mn("mousemove",as(l),n),Mn("touchmove",as(l),n),Mn("drag",as(l),n)];return as((()=>{u.forEach((t=>t()))}))}(t),r=function({mouseInteractionCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,sampling:a}){if(!1===a.mouseInteraction)return()=>{};const o=!0===a.mouseInteraction||void 0===a.mouseInteraction?{}:a.mouseInteraction,c=[];return Object.keys(Bn).filter((t=>Number.isNaN(Number(t))&&!t.endsWith("_Departed")&&!1!==o[t])).forEach((a=>{const o=a.toLowerCase(),l=as((e=>a=>{const o=cs(a);if(qn(o,s,i,r))return;const c=Jn(a)?a.changedTouches[0]:a;if(!c)return;const l=n.getId(o),{clientX:u,clientY:d}=c;as(t)({type:Bn[e],id:l,x:u,y:d})})(a));c.push(Mn(o,l,e))})),as((()=>{c.forEach((t=>t()))}))}(t),a=us(t),o=function({viewportResizeCb:t}){let e=-1,n=-1;const s=Pn((()=>{const s=jn(),i=Hn();e===s&&n===i||(as(t)({width:Number(i),height:Number(s)}),e=s,n=i)}),200);return Mn("resize",as(s),window)}(t),c=function({inputCb:t,doc:e,mirror:n,blockClass:s,blockSelector:i,unblockSelector:r,ignoreClass:a,ignoreSelector:o,maskInputSelector:c,unmaskInputSelector:l,maskInputOptions:u,maskInputFn:d,sampling:_,userTriggeredOnInput:h}){function p(t){let n=cs(t);const _=n&&n.tagName,p=t.isTrusted;if("OPTION"===_&&(n=n.parentElement),!n||!_||_s.indexOf(_)<0||qn(n,s,i,r))return;const m=n,g=cn(m);if(m.classList.contains(a)||o&&m.matches(o))return;let y=ln(m,_,g),v=!1;"radio"!==g&&"checkbox"!==g||(v=n.checked),function({tagName:t,type:e,maskInputOptions:n,maskInputSelector:s}){return s||rn({maskInputOptions:n,tagName:t,type:e})}({maskInputOptions:u,maskInputSelector:c,tagName:_,type:g})&&(y=an({input:m,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:_,type:g,value:y,maskInputFn:d})),f(n,as(ds)({text:y,isChecked:v,userTriggered:p},h));const S=n.name;"radio"===g&&S&&v&&e.querySelectorAll(`input[type="radio"][name="${S}"]`).forEach((t=>{if(t!==n){const e=an({input:t,maskInputOptions:u,maskInputSelector:c,unmaskInputSelector:l,tagName:_,type:g,value:ln(t,_,g),maskInputFn:d});f(t,as(ds)({text:e,isChecked:!v,userTriggered:!1},h))}}))}function f(e,s){const i=hs.get(e);if(!i||i.text!==s.text||i.isChecked!==s.isChecked){hs.set(e,s);const i=n.getId(e);t(Object.assign(Object.assign({},s),{id:i}))}}const m=("last"===_.input?["change"]:["input","change"]).map((t=>Mn(t,as(p),e))),g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),y=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return g&&g.set&&m.push(...y.map((t=>$n(t[0],t[1],{set(){as(p)({target:this})}})))),as((()=>{m.forEach((t=>t()))}))}(t),l=function({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:s,mirror:i,sampling:r}){const a=a=>Pn(as((r=>{const o=cs(r);if(!o||qn(o,e,n,s))return;const{currentTime:c,volume:l,muted:u}=o;t({type:a,id:i.getId(o),currentTime:c,volume:l,muted:u})})),r.media||500),o=[Mn("play",a(0)),Mn("pause",a(1)),Mn("seeked",a(2)),Mn("volumechange",a(3))];return as((()=>{o.forEach((t=>t()))}))}(t),u=function({styleSheetRuleCb:t,mirror:e},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:as(((n,s,i)=>{const[r,a]=i,o=e.getId(s.ownerNode);return-1!==o&&t({id:o,adds:[{rule:r,index:a}]}),n.apply(s,i)}))});const i=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:as(((n,s,i)=>{const[r]=i,a=e.getId(s.ownerNode);return-1!==a&&t({id:a,removes:[{index:r}]}),n.apply(s,i)}))});const r={};gs("CSSGroupingRule")?r.CSSGroupingRule=n.CSSGroupingRule:(gs("CSSMediaRule")&&(r.CSSMediaRule=n.CSSMediaRule),gs("CSSConditionRule")&&(r.CSSConditionRule=n.CSSConditionRule),gs("CSSSupportsRule")&&(r.CSSSupportsRule=n.CSSSupportsRule));const a={};return Object.entries(r).forEach((([n,s])=>{a[n]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(a[n].insertRule,{apply:as(((n,s,i)=>{const[r,a]=i,o=e.getId(s.parentStyleSheet.ownerNode);return-1!==o&&t({id:o,adds:[{rule:r,index:[...ps(s),a||0]}]}),n.apply(s,i)}))}),s.prototype.deleteRule=new Proxy(a[n].deleteRule,{apply:as(((n,s,i)=>{const[r]=i,a=e.getId(s.parentStyleSheet.ownerNode);return-1!==a&&t({id:a,removes:[{index:[...ps(s),r]}]}),n.apply(s,i)}))})})),as((()=>{n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=i,Object.entries(r).forEach((([t,e])=>{e.prototype.insertRule=a[t].insertRule,e.prototype.deleteRule=a[t].deleteRule}))}))}(t,{win:n}),d=function({styleDeclarationCb:t,mirror:e},{win:n}){const s=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:as(((n,s,i)=>{var r,a;const[o,c,l]=i,u=e.getId(null===(a=null===(r=s.parentRule)||void 0===r?void 0:r.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==u&&t({id:u,set:{property:o,value:c,priority:l},index:ps(s.parentRule)}),n.apply(s,i)}))});const i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:as(((n,s,i)=>{var r,a;const[o]=i,c=e.getId(null===(a=null===(r=s.parentRule)||void 0===r?void 0:r.parentStyleSheet)||void 0===a?void 0:a.ownerNode);return-1!==c&&t({id:c,remove:{property:o},index:ps(s.parentRule)}),n.apply(s,i)}))}),as((()=>{n.CSSStyleDeclaration.prototype.setProperty=s,n.CSSStyleDeclaration.prototype.removeProperty=i}))}(t,{win:n}),_=t.collectFonts?function({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const s=[],i=new WeakMap,r=n.FontFace;n.FontFace=function(t,e,n){const s=new r(t,e,n);return i.set(s,{family:t,buffer:"string"!=typeof e,descriptors:n,fontSource:"string"==typeof e?e:JSON.stringify(Array.from(new Uint8Array(e)))}),s};const a=Fn(e.fonts,"add",(function(e){return function(n){return setTimeout((()=>{const e=i.get(n);e&&(t(e),i.delete(n))}),0),e.apply(this,[n])}}));return s.push((()=>{n.FontFace=r})),s.push(a),as((()=>{s.forEach((t=>t()))}))}(t):()=>{},h=[];for(const e of t.plugins)h.push(e.observer(e.callback,n,e.options));return as((()=>{os.forEach((t=>t.reset())),s.disconnect(),i(),r(),a(),o(),c(),l();try{u(),d()}catch(t){}_(),h.forEach((t=>t()))}))}function ms(t){return void 0!==window[t]}function gs(t){return Boolean(void 0!==window[t]&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class ys{constructor(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}addIframe(t){this.iframes.set(t,!0)}addLoadListener(t){this.loadListener=t}attachIframe(t,e){var n;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),null===(n=this.loadListener)||void 0===n||n.call(this,t)}}class vs{constructor(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;const e=this;this.restorePatches.push(Fn(HTMLElement.prototype,"attachShadow",(function(t){return function(){const n=t.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,this.ownerDocument),n}})))}addShadowRoot(t,e){ls(Object.assign(Object.assign({},this.bypassOptions),{doc:e,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),us(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))}observeAttachShadow(t){if(t.contentWindow){const e=this;this.restorePatches.push(Fn(t.contentWindow.HTMLElement.prototype,"attachShadow",(function(n){return function(){const s=n.apply(this,arguments);return this.shadowRoot&&e.addShadowRoot(this.shadowRoot,t.contentDocument),s}})))}}reset(){this.restorePatches.forEach((t=>t()))}}for(var Ss="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Es="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bs=0;bs<64;bs++)Es[Ss.charCodeAt(bs)]=bs;const ks=new Map,ws=(t,e,n)=>{if(!t||!xs(t,e)&&"object"!=typeof t)return;const s=function(t,e){let n=ks.get(t);return n||(n=new Map,ks.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}(n,t.constructor.name);let i=s.indexOf(t);return-1===i&&(i=s.length,s.push(t)),i};function Ts(t,e,n){if(t instanceof Array)return t.map((t=>Ts(t,e,n)));if(null===t)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const e=t.constructor.name,n=function(t){var e,n=new Uint8Array(t),s=n.length,i="";for(e=0;e<s;e+=3)i+=Ss[n[e]>>2],i+=Ss[(3&n[e])<<4|n[e+1]>>4],i+=Ss[(15&n[e+1])<<2|n[e+2]>>6],i+=Ss[63&n[e+2]];return s%3==2?i=i.substring(0,i.length-1)+"=":s%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(t);return{rr_type:e,base64:n}}if(t instanceof DataView)return{rr_type:t.constructor.name,args:[Ts(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}return t instanceof ImageData?{rr_type:t.constructor.name,args:[Ts(t.data,e,n),t.width,t.height]}:xs(t,e)||"object"==typeof t?{rr_type:t.constructor.name,index:ws(t,e,n)}:t}const Rs=(t,e,n)=>[...t].map((t=>Ts(t,e,n))),xs=(t,e)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((t=>"function"==typeof e[t]));return Boolean(n.find((n=>t instanceof e[n])))};function Ds(t,e,n,s,i,r,a,o){const c=[],l=Object.getOwnPropertyNames(t);for(const u of l)try{if("function"!=typeof t[u])continue;const l=Fn(t,u,(function(c){return function(...l){const d=c.apply(this,l);if(ws(d,o,t),!qn(this.canvas,s,r,i)){a.getId(this.canvas);const s=Rs([...l],o,t),i={type:e,property:u,args:s};n(this.canvas,i)}return d}}));c.push(l)}catch(s){const i=$n(t,u,{set(t){n(this.canvas,{type:e,property:u,args:[t],setter:!0})}});c.push(i)}return c}class Ns{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(t,e){!(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId)&&this.rafStamps.invokeId||(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(t)||this.pendingCanvasMutations.set(t,[]),this.pendingCanvasMutations.get(t).push(e)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,!0===t.recordCanvas&&this.initCanvasMutationObserver(t.win,t.blockClass,t.blockSelector,t.unblockSelector)}initCanvasMutationObserver(t,e,n,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=function(t,e,n,s){const i=[];try{const r=Fn(t.HTMLCanvasElement.prototype,"getContext",(function(t){return function(i,...r){return qn(this,e,n,s)||"__context"in this||(this.__context=i),t.apply(this,[i,...r])}}));i.push(r)}catch(t){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach((t=>t()))}}(t,e,s,n),r=function(t,e,n,s,i,r){const a=[],o=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const r of o)try{if("function"!=typeof e.CanvasRenderingContext2D.prototype[r])continue;const o=Fn(e.CanvasRenderingContext2D.prototype,r,(function(e){return function(...a){return qn(this.canvas,n,i,s)||setTimeout((()=>{const e=[...a];if("drawImage"===r&&e[0]&&e[0]instanceof HTMLCanvasElement){const t=e[0],n=t.getContext("2d");let s=null==n?void 0:n.getImageData(0,0,t.width,t.height),i=null==s?void 0:s.data;e[0]=JSON.stringify(i)}t(this.canvas,{type:On["2D"],property:r,args:e})}),0),e.apply(this,a)}}));a.push(o)}catch(n){const s=$n(e.CanvasRenderingContext2D.prototype,r,{set(e){t(this.canvas,{type:On["2D"],property:r,args:[e],setter:!0})}});a.push(s)}return()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,s,n,this.mirror),a=function(t,e,n,s,i,r){const a=[];return a.push(...Ds(e.WebGLRenderingContext.prototype,On.WebGL,t,n,s,i,r,e)),void 0!==e.WebGL2RenderingContext&&a.push(...Ds(e.WebGL2RenderingContext.prototype,On.WebGL2,t,n,s,i,r,e)),()=>{a.forEach((t=>t()))}}(this.processMutation.bind(this),t,e,s,n,this.mirror);this.resetObservers=()=>{i(),r(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach(((t,e)=>{const n=this.mirror.getId(e);this.flushPendingCanvasMutationFor(e,n)})),requestAnimationFrame((()=>this.flushPendingCanvasMutations()))}flushPendingCanvasMutationFor(t,e){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(t);if(!n||-1===e)return;const s=n.map((t=>{const e=function(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(t);i<s.length;i++)e.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(t,s[i])&&(n[s[i]]=t[s[i]])}return n}(t,["type"]);return e})),{type:i}=n[0];this.mutationCb({id:e,type:i,commands:s}),this.pendingCanvasMutations.delete(t)}}function Is(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}let Cs,Us;const As={map:{},getId:t=>t&&t.__sn?t.__sn.id:-1,getNode(t){return this.map[t]||null},removeNodeFromMap(t){const e=t.__sn&&t.__sn.id;delete this.map[e],t.childNodes&&t.childNodes.forEach((t=>this.removeNodeFromMap(t)))},has(t){return this.map.hasOwnProperty(t)},reset(){this.map={}}};function Bs(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:s,blockClass:i="rr-block",blockSelector:r=null,unblockSelector:a=null,ignoreClass:o="rr-ignore",ignoreSelector:c=null,maskTextClass:l="rr-mask",maskTextSelector:u=null,maskInputSelector:d=null,unmaskTextSelector:_=null,unmaskInputSelector:h=null,inlineStylesheet:p=!0,maskAllText:f=!1,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:v,maskTextFn:S,hooks:E,packFn:b,sampling:k={},mousemoveWait:w,recordCanvas:T=!1,userTriggeredOnInput:R=!1,collectFonts:x=!1,inlineImages:D=!1,plugins:N,keepIframeSrcFn:I=(()=>!1),onMutation:C}=t;if(!e)throw new Error("emit function is required");void 0!==w&&void 0===k.mousemove&&(k.mousemove=w);const U=!0===m?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==g?g:{},A=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let B;!function(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(t){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let O=0;Cs=(t,i)=>{var r;if(!(null===(r=os[0])||void 0===r?void 0:r.isFrozen())||t.type===Un.FullSnapshot||t.type===Un.IncrementalSnapshot&&t.data.source===An.Mutation||os.forEach((t=>t.unfreeze())),e((t=>{for(const e of N||[])e.eventProcessor&&(t=e.eventProcessor(t));return b&&(t=b(t)),t})(t),i),t.type===Un.FullSnapshot)B=t,O=0;else if(t.type===Un.IncrementalSnapshot){if(t.data.source===An.Mutation&&t.data.isAttachIframe)return;O++;const e=s&&O>=s,i=n&&t.timestamp-B.timestamp>n;(e||i)&&Us(!0)}};const G=t=>{Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Mutation},t)}))},Y=t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Scroll},t)})),M=t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.CanvasMutation},t)})),L=new ys({mutationCb:G}),z=new Ns({recordCanvas:T,mutationCb:M,win:window,blockClass:i,blockSelector:r,unblockSelector:a,mirror:As}),P=new vs({mutationCb:G,scrollCb:Y,bypassOptions:{onMutation:C,blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:f,maskInputOptions:U,maskTextFn:S,maskInputFn:v,recordCanvas:T,inlineImages:D,sampling:k,slimDOMOptions:A,iframeManager:L,canvasManager:z},mirror:As});Us=(t=!1)=>{var e,n,s,o;Cs(Is({type:Un.Meta,data:{href:window.location.href,width:Hn(),height:jn()}}),t),os.forEach((t=>t.lock()));const[c,m]=function(t,e){const{blockClass:n="rr-block",blockSelector:s=null,unblockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:a=null,unmaskTextSelector:o=null,inlineStylesheet:c=!0,inlineImages:l=!1,recordCanvas:u=!1,maskInputSelector:d=null,unmaskInputSelector:_=null,maskAllText:h=!1,maskAllInputs:p=!1,maskTextFn:f,maskInputFn:m,slimDOM:g=!1,dataURLOptions:y,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:b,keepIframeSrcFn:k=(()=>!1)}=e||{},w={};return[In(t,{doc:t,map:w,blockClass:n,blockSelector:s,unblockSelector:i,maskTextClass:r,maskTextSelector:a,unmaskTextSelector:o,skipChild:!1,inlineStylesheet:c,maskInputSelector:d,unmaskInputSelector:_,maskAllText:h,maskInputOptions:!0===p?{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===p?{}:p,maskTextFn:f,maskInputFn:m,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:y,inlineImages:l,recordCanvas:u,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:b,keepIframeSrcFn:k}),w]}(document,{blockClass:i,blockSelector:r,unblockSelector:a,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,inlineStylesheet:p,maskAllText:f,maskAllInputs:U,maskTextFn:S,slimDOM:A,recordCanvas:T,inlineImages:D,onSerialize:t=>{Kn(t)&&L.addIframe(t),Vn(t)&&P.addShadowRoot(t.shadowRoot,document)},onIframeLoad:(t,e)=>{L.attachIframe(t,e),P.observeAttachShadow(t)},keepIframeSrcFn:I});if(!c)return console.warn("Failed to snapshot the document");As.map=m,Cs(Is({type:Un.FullSnapshot,data:{node:c,initialOffset:{left:void 0!==window.pageXOffset?window.pageXOffset:(null===document||void 0===document?void 0:document.documentElement.scrollLeft)||(null===(n=null===(e=null===document||void 0===document?void 0:document.body)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.scrollLeft)||(null===document||void 0===document?void 0:document.body.scrollLeft)||0,top:void 0!==window.pageYOffset?window.pageYOffset:(null===document||void 0===document?void 0:document.documentElement.scrollTop)||(null===(o=null===(s=null===document||void 0===document?void 0:document.body)||void 0===s?void 0:s.parentElement)||void 0===o?void 0:o.scrollTop)||(null===document||void 0===document?void 0:document.body.scrollTop)||0}}})),os.forEach((t=>t.unlock()))};try{const t=[];t.push(Mn("DOMContentLoaded",(()=>{Cs(Is({type:Un.DomContentLoaded,data:{}}))})));const e=t=>{var e;return as(fs)({onMutation:C,mutationCb:G,mousemoveCb:(t,e)=>Cs(Is({type:Un.IncrementalSnapshot,data:{source:e,positions:t}})),mouseInteractionCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.MouseInteraction},t)})),scrollCb:Y,viewportResizeCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.ViewportResize},t)})),inputCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Input},t)})),mediaInteractionCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.MediaInteraction},t)})),styleSheetRuleCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.StyleSheetRule},t)})),styleDeclarationCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.StyleDeclaration},t)})),canvasMutationCb:M,fontCb:t=>Cs(Is({type:Un.IncrementalSnapshot,data:Object.assign({source:An.Font},t)})),blockClass:i,ignoreClass:o,ignoreSelector:c,maskTextClass:l,maskTextSelector:u,unmaskTextSelector:_,maskInputSelector:d,unmaskInputSelector:h,maskInputOptions:U,inlineStylesheet:p,sampling:k,recordCanvas:T,inlineImages:D,userTriggeredOnInput:R,collectFonts:x,doc:t,maskAllText:f,maskInputFn:v,maskTextFn:S,blockSelector:r,unblockSelector:a,slimDOMOptions:A,mirror:As,iframeManager:L,shadowDomManager:P,canvasManager:z,plugins:(null===(e=null==N?void 0:N.filter((t=>t.observer)))||void 0===e?void 0:e.map((t=>({observer:t.observer,options:t.options,callback:e=>Cs(Is({type:Un.Plugin,data:{plugin:t.name,payload:e}}))}))))||[]},E)};L.addLoadListener((n=>{try{t.push(e(n.contentDocument))}catch(t){console.warn(t)}}));const n=()=>{Us(),t.push(e(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():t.push(Mn("load",(()=>{Cs(Is({type:Un.Load,data:{}})),n()}),window)),()=>{t.forEach((t=>t()))}}catch(t){console.warn(t)}}function Os(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Gs;function Ys(t){return t>9999999999?t:1e3*t}async function Ms(t,e,n){if(!t.eventBuffer)return null;if(t.isPaused())return null;if(Ys(e.timestamp)+t.timeouts.sessionIdlePause<Date.now())return null;try{return n&&t.eventBuffer.clear(),await t.eventBuffer.addEvent(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(e),await t.stop("addEvent");const n=(0,f.Gd)().getClient();n&&n.recordDroppedEvent("internal_sdk_error","replay")}}function Ls(t,e){"sentry.transaction"!==e.category&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate((()=>(Ms(t,{type:Un.Custom,timestamp:1e3*(e.timestamp||0),data:{tag:"breadcrumb",payload:M(e,10,1e3)}}),"console"===e.category))))}function zs(t,e,n,s,i){const r=Date.now()-1e3*e.timestamp;return r>n&&(Ps(t,e,Math.min(r,s),i),!0)}function Ps(t,e,n,s){Ls(t,{message:e.message,timestamp:e.timestamp,category:"ui.slowClickDetected",data:{...e.data,url:Ve.location.href,timeAfterClickMs:n,endReason:s}})}Bs.addCustomEvent=(t,e)=>{if(!Cs)throw new Error("please add custom event after start recording");Cs(Is({type:Un.Custom,data:{tag:t,payload:e}}))},Bs.freezePage=()=>{os.forEach((t=>t.freeze()))},Bs.takeFullSnapshot=t=>{if(!Us)throw new Error("please take full snapshot after start recording");Us(t)},Bs.mirror=As,function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"}(Gs||(Gs={}));const $s=["SELECT","OPTION"],Fs=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid"]);function js(t){const e={};for(const n in t)if(Fs.has(n)){let s=n;"data-testid"!==n&&"data-test-id"!==n||(s="testId"),e[s]=t[n]}return e}function Hs(t,e){const n=t&&function(t){return"__sn"in t}(t)&&t.__sn.type===Gs.Element?t.__sn:null;return{message:e,data:n?{nodeId:n.id,node:{id:n.id,tagName:n.tagName,textContent:t?Array.from(t.childNodes).map((t=>"__sn"in t&&t.__sn.type===Gs.Text&&t.__sn.textContent)).filter(Boolean).map((t=>t.trim())).join(""):"",attributes:js(n.attributes)}}:{}}}function qs(t){return function(t){return"object"==typeof t&&!!t&&"target"in t}(t)?t.target:t}const Ws="button,a";function Zs(t){const e=qs(t);return e&&e instanceof Element&&e.closest(Ws)||e}const Js=["name","type","startTime","transferSize","duration"];function Ks(t){return function(e){return Js.every((n=>t[n]===e[n]))}}class Vs{constructor(){this.events=[]}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){this.events.push(t)}finish(){return new Promise((t=>{const e=this.events;this.events=[],t(JSON.stringify(e))}))}clear(){this.events=[]}getEarliestTimestamp(){const t=this.events.map((t=>t.timestamp)).sort()[0];return t?Ys(t):null}}class Xs{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((t,e)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?t():e()}),{once:!0}),this._worker.addEventListener("error",(t=>{e(t)}),{once:!0})}))),this._ensureReadyPromise}destroy(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,e){const n=this._getAndIncrementId();return new Promise(((s,i)=>{const r=({data:e})=>{const a=e;if(a.method===t&&a.id===n){if(this._worker.removeEventListener("message",r),!a.success)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay]",a.response),void i(new Error("Error in compression worker"));s(a.response)}};this._worker.addEventListener("message",r),this._worker.postMessage({id:n,method:t,arg:e})}))}_getAndIncrementId(){return this._id++}}class Qs{constructor(t){this._worker=new Xs(t),this._earliestTimestamp=null}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const e=Ys(t.timestamp);return(!this._earliestTimestamp||e<this._earliestTimestamp)&&(this._earliestTimestamp=e),this._sendEventToWorker(t)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._worker.postMessage("clear")}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",JSON.stringify(t))}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,t}}class ti{constructor(t){this._fallback=new Vs,this._compression=new Qs(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t}=this._fallback,e=[];for(const n of t)e.push(this._compression.addEvent(n));this._used=this._compression;try{await Promise.all(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("[Replay] Failed to add events when switching buffers.",t)}}}function ei(t,e,n=+new Date){return null===t||void 0===e||e<0||0!==e&&t+e<=n}function ni(t,e,n=+new Date){return ei(t.started,e.maxSessionLife,n)||ei(t.lastActivity,e.sessionIdleExpire,n)}function si(t){return void 0!==t&&Math.random()<t}function ii(t){if("sessionStorage"in Ve)try{Ve.sessionStorage.setItem(Xe,JSON.stringify(t))}catch(t){}}function ri(t){const e=Date.now();return{id:t.id||(0,l.DM)(),started:t.started||e,lastActivity:t.lastActivity||e,segmentId:t.segmentId||0,sampled:t.sampled,shouldRefresh:!0}}function ai({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1}){const s=function(t,e){return si(t)?"session":!!e&&"buffer"}(t,e),i=ri({sampled:s});return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Replay] Creating new session: ${i.id}`),n&&ii(i),i}function oi({timeouts:t,currentSession:e,stickySession:n,sessionSampleRate:s,allowBuffering:i}){const r=e||n&&function(){if(!("sessionStorage"in Ve))return null;try{const t=Ve.sessionStorage.getItem(Xe);return t?ri(JSON.parse(t)):null}catch(t){return null}}();if(r){if(!ni(r,t))return{type:"saved",session:r};if(!r.shouldRefresh)return{type:"new",session:ri({sampled:!1})};("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Session has expired")}return{type:"new",session:ai({stickySession:n,sessionSampleRate:s,allowBuffering:i})}}function ci(t){return!t.type}function li(t){return"transaction"===t.type}function ui(t){const e=function(){const t=(0,f.Gd)().getClient();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}();return(n,s)=>{if(!ci(n)&&!li(n))return;const i=s&&s.statusCode;e&&(!i||i<200||i>=300)||(li(n)&&n.contexts&&n.contexts.trace&&n.contexts.trace.trace_id?t.getContext().traceIds.add(n.contexts.trace.trace_id):ci(n)&&(n.event_id&&t.getContext().errorIds.add(n.event_id),"buffer"===t.recordingMode&&n.tags&&n.tags.replayId&&setTimeout((()=>{t.sendBufferedReplayOrFlush()}))))}}function di(t,e){return e.map((({type:e,start:n,end:s,name:i,data:r})=>Ms(t,{type:Un.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:e,description:i,startTimestamp:n,endTimestamp:s,data:r}}})))}function _i(t,e){t.isEnabled()&&null!==e&&(function(t,e){return("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||!t.getOptions()._experiments.traceInternals)&&function(t){const e=(0,f.Gd)().getClient(),n=e&&e.getDsn();return!!n&&t.includes(n.host)}(e)}(t,e.name)||t.addUpdate((()=>(di(t,[e]),!0))))}const hi=10,pi=11,fi=12,mi=13,gi=14,yi=15,vi=20,Si=21,Ei=22,bi=23,ki=["true","false","null"];function wi(t,e,n){const s=t[t.length-1],i=e[n];if(!/\s/.test(i))if('"'!==i||Ti(e,n))switch(i){case"{":!function(t,e){e&&e!==mi?(e===Si&&t.push(hi),e===vi&&t.push(hi)):t.push(hi)}(t,s);break;case"[":!function(t,e){e?e===mi?(t.push(vi),t.push(Si)):(e===Si&&(t.push(vi),t.push(Si)),e===vi&&(t.push(vi),t.push(Si))):(t.push(vi),t.push(Si))}(t,s);break;case":":!function(t,e){e===pi&&(t.pop(),t.push(mi))}(t,s);break;case",":!function(t,e){if(e!==mi)return e===yi?(t.pop(),void t.pop()):void(e!==Si&&e===bi&&t.pop());t.pop()}(t,s);break;case"}":!function(t,e){e===hi&&t.pop(),e===mi&&(t.pop(),t.pop()),e===yi&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===mi&&t.push(yi),t[t.length-1]===Si&&t.push(bi)}(t,s);break;case"]":!function(t,e){e===vi&&t.pop(),e===Si&&(t.pop(),t.pop()),e===bi&&(t.pop(),t.pop(),t.pop()),t[t.length-1]===mi&&t.push(yi),t[t.length-1]===Si&&t.push(bi)}(t,s)}else!function(t,e){e===gi?(t.pop(),t.push(yi)):e===Ei?(t.pop(),t.push(bi)):e!==mi?e!==Si?e!==hi?e===fi&&(t.pop(),t.push(pi)):t.push(fi):t.push(Ei):t.push(gi)}(t,s)}function Ti(t,e){return"\\"===t[e-1]&&!Ti(t,e-1)}function Ri(t){return function(t,e){if(!e.length)return t;let n=t;const s=e.length-1;n=function(t,e){switch(e){case hi:return`${t}"~~":"~~"`;case pi:return`${t}:"~~"`;case fi:return`${t}~~":"~~"`;case mi:return function(t){const e=t.lastIndexOf(":"),n=t.slice(e+1);return ki.includes(n.trim())?`${t},"~~":"~~"`:`${t.slice(0,e+1)}"~~"`}(t);case gi:return`${t}~~"`;case yi:return`${t},"~~":"~~"`;case vi:return`${t}"~~"`;case Si:return function(t){const e=function(t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(","===n||"["===n)return e}return-1}(t);if(e>-1){const n=t.slice(e+1);return ki.includes(n.trim())?`${t},"~~"`:`${t.slice(0,e+1)}"~~"`}return t}(t);case Ei:return`${t}~~"`;case bi:return`${t},"~~"`}return t}(n,e[s]);for(let t=s;t>=0;t--)switch(e[t]){case hi:n=`${n}}`;break;case vi:n=`${n}]`}return n}(t,function(t){const e=[];for(let n=0;n<t.length;n++)wi(e,t,n);return e}(t))}function xi(t,e){if(t)try{if("string"==typeof t)return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Bi(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch(t){}}function Di(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Ni(t){return"string"==typeof t?t:t instanceof URLSearchParams?t.toString():t instanceof FormData?Bi(t):void 0}function Ii(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:s,url:i,method:a,statusCode:o,request:c,response:l}=e;return{type:t,start:n/1e3,end:s/1e3,name:i,data:(0,r.Jr)({method:a,statusCode:o,request:c,response:l})}}function Ci(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function Ui(t,e,n){if(!e&&0===Object.keys(t).length)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const s={headers:t,size:e},{body:i,warnings:r}=function(t){if(!t||"string"!=typeof t)return{body:t,warnings:[]};const e=t.length>tn;if(function(t){const e=t[0],n=t[t.length-1];return"["===e&&"]"===n||"{"===e&&"}"===n}(t))try{const n=e?Ri(t.slice(0,tn)):t;return{body:JSON.parse(n),warnings:e?["JSON_TRUNCATED"]:[]}}catch(n){return{body:e?`${t.slice(0,tn)}\u2026`:t,warnings:e?["INVALID_JSON","TEXT_TRUNCATED"]:["INVALID_JSON"]}}return{body:e?`${t.slice(0,tn)}\u2026`:t,warnings:e?["TEXT_TRUNCATED"]:[]}}(n);return s.body=i,r.length>0&&(s._meta={warnings:r}),s}function Ai(t,e){return Object.keys(t).reduce(((n,s)=>{const i=s.toLowerCase();return e.includes(i)&&t[s]&&(n[i]=t[s]),n}),{})}function Bi(t){return new URLSearchParams(t).toString()}function Oi(t,e){const n=function(t,e=Ve.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ve.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const s=n.href;return!t.endsWith("/")&&s.endsWith("/")?s.slice(0,-1):s}(t);return(0,u.U0)(n,e)}function Gi(t=[]){if(2===t.length&&"object"==typeof t[1])return t[1].body}function Yi(t,e){const n={};return e.forEach((e=>{t.get(e)&&(n[e]=t.get(e))})),n}function Mi(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Yi(n,e):Array.isArray(n)?{}:Ai(n,e):{}}let Li=null;function zi(t){return!(!t||!t.on)}function Pi(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:s}}}}const $i={resource:function(t){const{entryType:e,initiatorType:n,name:s,responseEnd:i,startTime:r,decodedBodySize:a,encodedBodySize:o,responseStatus:c,transferSize:l}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:ji(r),end:ji(i),name:s,data:{size:l,statusCode:c,decodedBodySize:a,encodedBodySize:o}}},paint:function(t){const{duration:e,entryType:n,name:s,startTime:i}=t,r=ji(i);return{type:n,name:s,start:r,end:r+e,data:void 0}},navigation:function(t){const{entryType:e,name:n,decodedBodySize:s,duration:i,domComplete:r,encodedBodySize:a,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:_,startTime:h,transferSize:p,type:f}=t;return 0===i?null:{type:`${e}.${f}`,start:ji(h),end:ji(r),name:n,data:{size:p,decodedBodySize:s,encodedBodySize:a,duration:i,domInteractive:l,domContentLoadedEventStart:o,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:r,redirectCount:_}}},"largest-contentful-paint":function(t){const{entryType:e,startTime:n,size:s}=t;let i=0;if(Ve.performance){const t=Ve.performance.getEntriesByType("navigation")[0];i=t&&t.activationStart||0}const r=Math.max(n-i,0),a=ji(i)+r/1e3;return{type:e,name:e,start:a,end:a,data:{value:r,size:s,nodeId:Bs.mirror.getId(t.element)}}}};function Fi(t){return void 0===$i[t.entryType]?null:$i[t.entryType](t)}function ji(t){return((Et.Z1||Ve.performance.timeOrigin)+t)/1e3}var Hi;function qi(t){let e=!1;return(n,s)=>{if(!t.checkAndHandleExpiredSession())return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("[Replay] Received replay event after session expired."));const i=s||!e;e=!0,t.addUpdate((()=>{if("buffer"===t.recordingMode&&i&&t.setInitialState(),Ms(t,n,i),!i)return!1;if(function(t,e){if(!e||!t.session||0!==t.session.segmentId)return Promise.resolve(null);Ms(t,function(t){const e=t.getOptions();return{type:Hi.Custom,timestamp:Date.now(),data:{tag:"options",payload:{sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:!!t.eventBuffer&&"worker"===t.eventBuffer.type,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}(t),!1)}(t,i),t.session&&t.session.previousSessionId)return!0;if("buffer"===t.recordingMode&&t.session&&t.eventBuffer){const e=t.eventBuffer.getEarliestTimestamp();e&&(t.session.started=e,t.getOptions().stickySession&&ii(t.session))}return"session"===t.recordingMode&&t.flushImmediate(),!0}))}}!function(t){t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin"}(Hi||(Hi={}));class Wi extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function Zi(t,e={count:0,interval:5e3}){const{recordingData:n,options:s}=t;if(n.length)try{return await async function({recordingData:t,replayId:e,segmentId:n,eventContext:s,timestamp:i,session:r}){const a=function({recordingData:t,headers:e}){let n;const s=`${JSON.stringify(e)}\n`;if("string"==typeof t)n=`${s}${t}`;else{const e=(new TextEncoder).encode(s);n=new Uint8Array(e.length+t.length),n.set(e),n.set(t,e.length)}return n}({recordingData:t,headers:{segment_id:n}}),{urls:o,errorIds:l,traceIds:u,initialTimestamp:d}=s,_=(0,f.Gd)(),h=_.getClient(),p=_.getScope(),m=h&&h.getTransport(),g=h&&h.getDsn();if(!(h&&p&&m&&g&&r.sampled))return;const y={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,urls:o,replay_id:e,segment_id:n,replay_type:r.sampled},v=await async function({client:t,scope:e,replayId:n,event:s}){const i="object"!=typeof t._integrations||null===t._integrations||Array.isArray(t._integrations)?void 0:Object.keys(t._integrations),r=await kt(t.getOptions(),s,{event_id:n,integrations:i},e);if(!r)return null;r.platform=r.platform||"javascript";const a=t.getSdkMetadata&&t.getSdkMetadata(),{name:o,version:c}=a&&a.sdk||{};return r.sdk={...r.sdk,name:o||"sentry.javascript.unknown",version:c||"0.0.0"},r}({scope:p,client:h,replayId:e,event:y});if(!v)return h.recordDroppedEvent("event_processor","replay",y),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("An event processor returned `null`, will not send event."));const S=function(t,e,n,s){return P(K(t,J(t),s,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:"string"==typeof e?(new TextEncoder).encode(e).length:e.length},e]])}(v,a,g,h.getOptions().tunnel);let E;try{E=await m.send(S)}catch(t){const e=new Error(Qe);try{e.cause=t}catch(t){}throw e}if(!E)return E;if("number"==typeof E.statusCode&&(E.statusCode<200||E.statusCode>=300))throw new Wi(E.statusCode);return E}(t),!0}catch(n){if(n instanceof Wi)throw n;if(E("Replays",{_retryCount:e.count}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s._experiments&&s._experiments.captureExceptions&&m(n),e.count>=3){const t=new Error(`${Qe} - max retries exceeded`);try{t.cause=n}catch(t){}throw t}return e.interval*=++e.count,await new Promise(((n,s)=>{setTimeout((async()=>{try{await Zi(t,e),n(!0)}catch(t){s(t)}}),e.interval)}))}}class Ji{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5,maxSessionLife:36e5}}__init5(){this._performanceObserver=null}__init6(){this._flushLock=null}__init7(){this._lastActivity=Date.now()}__init8(){this._isEnabled=!1}__init9(){this._isPaused=!1}__init10(){this._hasInitializedCoreListeners=!1}__init11(){this._stopRecording=null}__init12(){this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""}}constructor({options:t,recordingOptions:e}){Ji.prototype.__init.call(this),Ji.prototype.__init2.call(this),Ji.prototype.__init3.call(this),Ji.prototype.__init4.call(this),Ji.prototype.__init5.call(this),Ji.prototype.__init6.call(this),Ji.prototype.__init7.call(this),Ji.prototype.__init8.call(this),Ji.prototype.__init9.call(this),Ji.prototype.__init10.call(this),Ji.prototype.__init11.call(this),Ji.prototype.__init12.call(this),Ji.prototype.__init13.call(this),Ji.prototype.__init14.call(this),Ji.prototype.__init15.call(this),Ji.prototype.__init16.call(this),Ji.prototype.__init17.call(this),Ji.prototype.__init18.call(this),this._recordingOptions=e,this._options=t,this._debouncedFlush=function(t,e,n){let s,i,r;const a=n&&n.maxWait?Math.max(n.maxWait,e):0;function o(){return c(),s=t(),s}function c(){void 0!==i&&clearTimeout(i),void 0!==r&&clearTimeout(r),i=r=void 0}function l(){return i&&clearTimeout(i),i=setTimeout(o,e),a&&void 0===r&&(r=setTimeout(o,a)),s}return l.cancel=c,l.flush=function(){return void 0!==i||void 0!==r?o():s},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}initializeSampling(){const{errorSampleRate:t,sessionSampleRate:e}=this._options;t<=0&&e<=0||this._loadAndCheckSession()&&(this.session?(this.session.sampled&&"session"!==this.session.sampled&&(this.recordingMode="buffer"),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");const t=this.session&&this.session.id,{session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:1,allowBuffering:!1});e.previousSessionId=t,this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");const t=this.session&&this.session.id,{session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:0,allowBuffering:!0});e.previousSessionId=t,this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{this._stopRecording=Bs({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:qi(this),onMutation:this._onMutationHandler})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop(t){if(this._isEnabled)try{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){const e="[Replay] Stopping Replay"+(t?` triggered by ${t}`:"");(this.getOptions()._experiments.traceInternals?console.warn:c.kg.log)(e)}this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this,function(){if("sessionStorage"in Ve)try{Ve.sessionStorage.removeItem(Xe)}catch(t){}}(),this.session=void 0}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._loadAndCheckSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();await this.flushImmediate();const e=this.stopRecording();t&&e&&(this.recordingMode="session",this.session&&(this.session.shouldRefresh=!1,this._maybeSaveSession()),this.startRecording())}addUpdate(t){const e=t();"buffer"!==this.recordingMode&&!0!==e&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._loadAndCheckSession())return;this.resume()}}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){const t=this.getSessionId();if(this._lastActivity&&ei(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled)this.pause();else if(this._loadAndCheckSession())return t===this.getSessionId()||(this._triggerFullSnapshot(),!1)}setInitialState(){const t=`${Ve.location.pathname}${Ve.location.hash}${Ve.location.search}`,e=`${Ve.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=e,this._context.initialTimestamp=Date.now(),this._context.urls.push(e)}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:t}){if(t&&window.Worker)try{const t=function(){const t=new Blob(['/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\nfunction t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},U=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let S=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var T=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);U(t,t.dyn_ltree,e-1),U(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},O={_tr_init:t=>{S||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),S=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:T,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var F=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const L=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var N=(t,e,a,i)=>{const n=L,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=O,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:W,Z_OK:q,Z_STREAM_END:J,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=F(t.adler,e,n,a):2===t.state.wrap&&(t.adler=N(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),q},Zt=t=>{const e=Rt(t);var a;return e===q&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},Ut=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var St={deflateInit:(t,e)=>Ut(t,e,ot,15,8,st),deflateInit2:Ut,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,q),deflate:(t,e)=>{if(Et(t)||e>W||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,q}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,q;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=N(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,q;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=N(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,q;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,q}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),q;if(2===i&&(e===Y?K(a):e!==W&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,q}return e!==X?q:a.wrap<=0?J:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?q:J)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):q},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=F(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,q},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Tt=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Ot=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Ft=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Ft=!1}const Lt=new Uint8Array(256);for(let t=0;t<256;t++)Lt[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Lt[254]=Lt[254]=1;var Nt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Lt[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Ft)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Lt[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Wt,Z_DEFLATED:qt}=B;function Jt(t){this.options=Tt({level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=St.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&St.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Nt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=St.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new Jt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}Jt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Nt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=St.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=St.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===Yt&&(this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:Jt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,U,S,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(U=0,S=r[m]):r[m]>=u?(U=D[r[m]-u],S=A[r[m]-u]):(U=96,S=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|U<<16|S|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Ue={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=N(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=N(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=N(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,r-f):F(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?N(a.check,n,f,t.next_out-f):F(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=F(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Se=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Te,Z_FINISH:Oe,Z_OK:Fe,Z_STREAM_END:Le,Z_NEED_DICT:Ne,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Tt({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ue.inflateInit2(this.strm,e.windowBits);if(a!==Fe)throw new Error(I[a]);if(this.header=new Se,Ue.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Nt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Ue.inflateSetDictionary(this.strm,e.dictionary),a!==Fe)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Oe:Te,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Ue.inflate(a,r),s===Ne&&n&&(s=Ue.inflateSetDictionary(a,n),s===Fe?s=Ue.inflate(a,r):s===Be&&(s=Ne));a.avail_in>0&&s===Le&&a.state.wrap>0&&0!==t[a.next_in];)Ue.inflateReset(a),s=Ue.inflate(a,r);switch(s){case Ie:case Be:case Ne:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Le))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Fe||0!==o){if(s===Le)return s=Ue.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Fe&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ot(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=je,Xe=B;const We=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this._hasEvents?",":"";this.deflate.push(e+t,Xe.Z_SYNC_FLUSH),this._hasEvents=!0}finish(){if(this.deflate.push("]",Xe.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this._init(),t}_init(){this._hasEvents=!1,this.deflate=new Ye,this.deflate.push("[",Xe.Z_NO_FLUSH)}},qe={clear:()=>{We.clear()},addEvent:t=>We.addEvent(t),finish:()=>We.finish(),compress:t=>function(t){return Ge(t)}(t)};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,i=t.data.arg;if(e in qe&&"function"==typeof qe[e])try{const t=qe[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(t)}();("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Using compression worker");const e=new Worker(t);return new ti(e)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Failed to create compression worker")}return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Using simple buffer"),new Vs}({useCompression:this._options.useCompression}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this.startRecording()}_handleException(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay]",t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&m(t)}_loadAndCheckSession(){const{type:t,session:e}=oi({timeouts:this.timeouts,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});"new"===t&&this.setInitialState();const n=this.getSessionId();return e.id!==n&&(e.previousSessionId=n),this.session=e,!!this.session.sampled||(this.stop("session unsampled"),!1)}_addListeners(){try{Ve.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ve.addEventListener("blur",this._handleWindowBlur),Ve.addEventListener("focus",this._handleWindowFocus),Ve.addEventListener("keydown",this._handleKeyboardEvent),this._hasInitializedCoreListeners||(function(t){const e=(0,f.Gd)().getScope(),n=(0,f.Gd)().getClient();e&&e.addScopeListener((t=>e=>{if(!t.isEnabled())return;const n=function(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return Li!==e&&e?(Li=e,e.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:"console"===e.category?function(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||0===e.length)return Os(t);let n=!1;const s=e.map((t=>{if(!t)return t;if("string"==typeof t)return t.length>en?(n=!0,`${t.slice(0,en)}\u2026`):t;if("object"==typeof t)try{const e=M(t,7),s=JSON.stringify(e);if(s.length>en){const t=Ri(s.slice(0,en)),e=JSON.parse(t);return n=!0,e}return e}catch(t){}return t}));return Os({...t,data:{...t.data,arguments:s,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Os(e)):null}(e);n&&Ls(t,n)})(t)),(0,Lt.oq)("dom",(t=>{const e=t.getOptions()._experiments.slowClicks,n=e?{threshold:e.threshold,timeout:e.timeout,scrollTimeout:e.scrollTimeout,ignoreSelector:e.ignoreSelectors?e.ignoreSelectors.join(","):""}:void 0;return e=>{if(!t.isEnabled())return;const s=function(t){const{target:e,message:n}=function(t){const e="click"===t.name;let n,s=null;try{s=e?Zs(t.event):qs(t.event),n=(0,zt.Rt)(s,{maxStringLength:200})||"<unknown>"}catch(t){n="<unknown>"}return{target:s,message:n}}(t);return Os({category:`ui.${t.name}`,...Hs(e,n)})}(e);if(!s)return;const i="click"===e.name,r=i&&e.event;i&&n&&r&&!r.altKey&&!r.metaKey&&!r.ctrlKey&&function(t,e,n,s){if(function(t,e){return"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||!!$s.includes(t.tagName)||!("A"!==t.tagName||!(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target")))||!(!e.ignoreSelector||!t.matches(e.ignoreSelector))}(s,e))return;let i=()=>{};const r=setTimeout((()=>{Ps(t,n,e.timeout,"timeout"),i()}),e.timeout),a=()=>{zs(t,n,e.scrollTimeout,e.timeout,"scroll"),i()},o=new MutationObserver((()=>{zs(t,n,e.threshold,e.timeout,"mutation"),i()}));o.observe(Ve.document.documentElement,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),Ve.addEventListener("scroll",a);const c=setTimeout((()=>{Ve.removeEventListener("scroll",a)}),e.scrollTimeout);i=()=>{clearTimeout(r),clearTimeout(c),o.disconnect(),Ve.removeEventListener("scroll",a)}}(t,n,s,Zs(e.event)),Ls(t,s)}})(t)),(0,Lt.oq)("history",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{from:e,to:n}=t,s=Date.now()/1e3;return{type:"navigation.push",start:s,end:s,name:n,data:{previous:e}}}(e);null!==n&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate((()=>(di(t,[n]),!1))))}}(t)),function(t){const e=(0,f.Gd)().getClient();try{const n=new TextEncoder,{networkDetailAllowUrls:s,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:a}=t.getOptions(),o={replay:t,textEncoder:n,networkDetailAllowUrls:s,networkCaptureBodies:i,networkRequestHeaders:r,networkResponseHeaders:a};e&&e.on?e.on("beforeAddBreadcrumb",((t,e)=>function(t,e,n){if(e.data)try{(function(t){return"xhr"===t.category})(e)&&function(t){return t&&t.xhr}(n)&&(function(t,e,n){const{xhr:s,input:i}=e,r=xi(i,n.textEncoder),a=s.getResponseHeader("content-length")?Di(s.getResponseHeader("content-length")):xi(s.response,n.textEncoder);void 0!==r&&(t.data.request_body_size=r),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),async function(t,e,n){try{const s=function(t,e,n){const{startTimestamp:s,endTimestamp:i,input:r,xhr:a}=e,{url:o,method:c,status_code:l=0,request_body_size:u,response_body_size:d}=t.data;if(!o)return null;if(!Oi(o,n.networkDetailAllowUrls))return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:l,request:Ci(u),response:Ci(d)};const _=a[Lt.xU],h=_?Ai(_.request_headers,n.networkRequestHeaders):{},p=Ai(function(t){const e=t.getAllResponseHeaders();return e?e.split("\r\n").reduce(((t,e)=>{const[n,s]=e.split(": ");return t[n.toLowerCase()]=s,t}),{}):{}}(a),n.networkResponseHeaders);return{startTimestamp:s,endTimestamp:i,url:o,method:c,statusCode:l,request:Ui(h,u,n.networkCaptureBodies?Ni(r):void 0),response:Ui(p,d,n.networkCaptureBodies?e.xhr.responseText:void 0)}}(t,e,n),i=Ii("resource.xhr",s);_i(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}(e,n,t)),function(t){return"fetch"===t.category}(e)&&function(t){return t&&t.response}(n)&&(function(t,e,n){const{input:s,response:i}=e,r=xi(Gi(s),n.textEncoder),a=i?Di(i.headers.get("content-length")):void 0;void 0!==r&&(t.data.request_body_size=r),void 0!==a&&(t.data.response_body_size=a)}(e,n,t),async function(t,e,n){try{const s=await async function(t,e,n){const{startTimestamp:s,endTimestamp:i}=e,{url:r,method:a,status_code:o=0,request_body_size:c,response_body_size:l}=t.data,u=Oi(r,n.networkDetailAllowUrls),d=u?function({networkCaptureBodies:t,networkRequestHeaders:e},n,s){var i,r;return Ui((r=e,1===(i=n).length&&"string"!=typeof i[0]?Mi(i[0],r):2===i.length?Mi(i[1],r):{}),s,t?Ni(Gi(n)):void 0)}(n,e.input,c):Ci(c),_=await async function(t,{networkCaptureBodies:e,textEncoder:n,networkResponseHeaders:s},i,r){if(!t&&void 0!==r)return Ci(r);const a=Yi(i.headers,s);if(!e&&void 0!==r)return Ui(a,r,void 0);try{const s=i.clone(),o=await async function(t){try{return await t.text()}catch(t){return}}(s),c=o&&o.length&&void 0===r?xi(o,n):r;return t?Ui(a,c,e?o:void 0):Ci(c)}catch(t){return Ui(a,r,void 0)}}(u,n,e.response,l);return{startTimestamp:s,endTimestamp:i,url:r,method:a,statusCode:o,request:d,response:_}}(t,e,n),i=Ii("resource.fetch",s);_i(n.replay,i)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Failed to capture fetch breadcrumb",t)}}(e,n,t))}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.warn("Error when enriching network breadcrumb")}}(o,t,e))):((0,Lt.oq)("fetch",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,fetchData:s,response:i}=t;if(!n)return null;const{method:r,url:a}=s;return{type:"resource.fetch",start:e/1e3,end:n/1e3,name:a,data:{method:r,statusCode:i&&i.status}}}(e);_i(t,n)}}(t)),(0,Lt.oq)("xhr",function(t){return e=>{if(!t.isEnabled())return;const n=function(t){const{startTimestamp:e,endTimestamp:n,xhr:s}=t,i=s[Lt.xU];if(!e||!n||!i)return null;const{method:r,url:a,status_code:o}=i;return void 0===a?null:{type:"resource.xhr",name:a,start:e/1e3,end:n/1e3,data:{method:r,statusCode:o}}}(e);_i(t,n)}}(t)))}catch(t){}}(t),(0,at.c)(function(t,e=!1){const n=e?ui(t):void 0;return(e,s)=>{if(function(t){return"replay_event"===t.type}(e))return delete e.breadcrumbs,e;if(!ci(e)&&!li(e))return e;if(function(t,e){return!(t.type||!t.exception||!t.exception.values||!t.exception.values.length)&&(!(!e.originalException||!e.originalException.__rrweb__)||t.exception.values.some((t=>!!(t.stacktrace&&t.stacktrace.frames&&t.stacktrace.frames.length)&&t.stacktrace.frames.some((t=>t.filename&&t.filename.includes("/rrweb/src/"))))))}(e,s)&&!t.getOptions()._experiments.captureExceptions)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Ignoring error from rrweb internals",e),null;const i=function(t,e){return"buffer"===t.recordingMode&&e.message!==Qe&&!(!e.exception||e.type)&&si(t.getOptions().errorSampleRate)}(t,e);if((i||"session"===t.recordingMode)&&(e.tags={...e.tags,replayId:t.getSessionId()}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.getOptions()._experiments.traceInternals&&ci(e)){const t=function(t){return{type:"Unknown",value:"n/a",...t.exception&&t.exception.values&&t.exception.values[0]}}(e);!function(t){const{category:e,level:n,message:s,...i}=t;S({category:e||"console",level:n||"debug",message:`[debug]: ${s}`,...i})}({message:`Tagging event (${e.event_id}) - ${e.message} - ${t.type}: ${t.value}`})}return n&&n(e,{statusCode:200}),e}}(t,!zi(n))),zi(n)&&(n.on("afterSendEvent",ui(t)),n.on("createDsc",(e=>{const n=t.getSessionId();n&&t.isEnabled()&&"session"===t.recordingMode&&(e.replay_id=n)})))}(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"PerformanceObserver"in Ve&&(this._performanceObserver=function(t){const e=new PerformanceObserver((e=>{const n=function(t,e){const[n,s,i]=t.reduce(((t,e)=>("navigation"===e.entryType?t[0].push(e):"largest-contentful-paint"===e.entryType?t[1].push(e):t[2].push(e),t)),[[],[],[]]),r=[],a=[];let o=s.length?s[s.length-1]:void 0;return e.forEach((t=>{if("largest-contentful-paint"!==t.entryType)if("navigation"!==t.entryType)r.push(t);else{const e=t;t.duration>0&&!n.find(Ks(e))&&!a.find(Ks(e))&&a.push(e)}else(!o||o.startTime<t.startTime)&&(o=t)})),[...o?[o]:[],...n,...i,...r,...a].sort(((t,e)=>t.startTime-e.startTime))}(t.performanceEvents,e.getEntries());t.performanceEvents=n}));return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach((t=>{try{e.observe({type:t,buffered:!0})}catch(t){}})),e}(this))}_removeListeners(){try{Ve.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ve.removeEventListener("blur",this._handleWindowBlur),Ve.removeEventListener("focus",this._handleWindowFocus),Ve.removeEventListener("keydown",this._handleKeyboardEvent),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init13(){this._handleVisibilityChange=()=>{"visible"===Ve.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=Os({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=Os({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init16(){this._handleKeyboardEvent=t=>{!function(t,e){if(!t.isEnabled())return;t.triggerUserActivity();const n=function(t){const{metaKey:e,shiftKey:n,ctrlKey:s,altKey:i,key:r,target:a}=t;if(!a||function(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}(a))return null;const o=e||s||i,c=1===r.length;if(!o&&c)return null;const l=(0,zt.Rt)(a,{maxStringLength:200})||"<unknown>";return Os({category:"ui.keyDown",message:l,data:{...Hs(a,l).data,metaKey:e,shiftKey:n,ctrlKey:s,altKey:i,key:r}})}(e);n&&Ls(t,n)}(this,t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const e=ni(this.session,this.timeouts);t&&!e&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){this.session&&(this.checkAndHandleExpiredSession()?t&&this._createCustomBreadcrumb(t):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Document has become active, but session has expired"))}_triggerFullSnapshot(t=!0){try{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Replay] Taking full rrweb snapshot"),Bs.takeFullSnapshot(t)}catch(t){this._handleException(t)}}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate((()=>{Ms(this,{type:Un.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})}))}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(di(this,function(t){return t.map(Fi).filter(Boolean)}(t)))}_conditionalFlush(){"buffer"!==this.recordingMode&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:e}=this;if(!t||!e)return;if(t.segmentId)return;const n=e.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(this.session&&this.eventBuffer){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(t){try{return Promise.all(di(t,[Pi(Ve.performance.memory)]))}catch(t){return[]}}(this),this.eventBuffer))try{this._updateInitialTimestampFromEventBuffer();const t=await this.eventBuffer.finish(),e=this.session.id,n=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession(),await Zi({replayId:e,recordingData:t,segmentId:s,eventContext:n,session:this.session,options:this.getOptions(),timestamp:Date.now()})}catch(t){this._handleException(t),this.stop("sendReplay");const e=(0,f.Gd)().getClient();e&&e.recordDroppedEvent("send_error","replay")}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] No session or eventBuffer found to flush.")}__init17(){this._flush=async({force:t=!1}={})=>{if(this._isEnabled||t)if(this.checkAndHandleExpiredSession())if(this.session){if(this._debouncedFlush.cancel(),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=null);try{await this._flushLock}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error(t)}finally{this._debouncedFlush()}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] No session found to flush.");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.error("[Replay] Attempting to finish replay event after session expired.")}}_maybeSaveSession(){this.session&&this._options.stickySession&&ii(this.session)}__init18(){this._onMutationHandler=t=>{const e=t.length,n=this._options._experiments.mutationLimit||0,s=n&&e>n;if(e>(this._options._experiments.mutationBreadcrumbLimit||1e3)||s){const t=Os({category:"replay.mutations",data:{count:e}});this._createCustomBreadcrumb(t)}return!s||(this._triggerFullSnapshot(!1),!1)}}}function Ki(t,e,n,s){const i=[...t,..."string"==typeof s?s.split(","):[],...e];return void 0!==n&&("string"==typeof n&&i.push(`.${n}`),console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")),i.join(",")}function Vi({mask:t,unmask:e,block:n,unblock:s,ignore:i,blockClass:r,blockSelector:a,maskTextClass:o,maskTextSelector:c,ignoreClass:l}){const u=Ki(t,[".sentry-mask","[data-sentry-mask]"],o,c),d=Ki(e,[".sentry-unmask","[data-sentry-unmask]"]),_={maskTextSelector:u,unmaskTextSelector:d,maskInputSelector:u,unmaskInputSelector:d,blockSelector:Ki(n,[".sentry-block","[data-sentry-block]",'base[href="/"]'],r,a),unblockSelector:Ki(s,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Ki(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],l)};return r instanceof RegExp&&(_.blockClass=r),o instanceof RegExp&&(_.maskTextClass=o),_}function Xi(){return"undefined"!=typeof window&&(!(0,Ke.KV)()||"undefined"!=typeof process&&"renderer"===process.type)}const Qi='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',tr=["content-length","content-type","accept"];let er=!1;class nr{static __initStatic(){this.id="Replay"}__init(){this.name=nr.id}constructor({flushMinDelay:t=5e3,flushMaxDelay:e=5500,stickySession:n=!0,useCompression:s=!0,_experiments:i={},sessionSampleRate:r,errorSampleRate:a,maskAllText:o=!0,maskAllInputs:c=!0,blockAllMedia:l=!0,networkDetailAllowUrls:u=[],networkCaptureBodies:d=!0,networkRequestHeaders:_=[],networkResponseHeaders:h=[],mask:p=[],unmask:f=[],block:m=[],unblock:g=[],ignore:y=[],maskFn:v,blockClass:S,blockSelector:E,maskInputOptions:b,maskTextClass:k,maskTextSelector:w,ignoreClass:T}={}){if(nr.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,maskAllText:o,maskInputOptions:{...b||{},password:!0},maskTextFn:v,maskInputFn:v,...Vi({mask:p,unmask:f,block:m,unblock:g,ignore:y,blockClass:S,blockSelector:E,maskTextClass:k,maskTextSelector:w,ignoreClass:T}),slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0},this._initialOptions={flushMinDelay:t,flushMaxDelay:e,stickySession:n,sessionSampleRate:r,errorSampleRate:a,useCompression:s,blockAllMedia:l,maskAllInputs:c,maskAllText:o,networkDetailAllowUrls:u,networkCaptureBodies:d,networkRequestHeaders:sr(_),networkResponseHeaders:sr(h),_experiments:i},"number"==typeof r&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${r} })`),this._initialOptions.sessionSampleRate=r),"number"==typeof a&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${a} })`),this._initialOptions.errorSampleRate=a),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Qi}`:Qi),this._isInitialized&&Xi())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return er}set _isInitialized(t){er=t}setupOnce(){Xi()&&(this._setup(),setTimeout((()=>this._initialize())))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop():Promise.resolve()}flush(t){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){this._replay&&this._replay.initializeSampling()}_setup(){const t=function(t){const e=(0,f.Gd)().getClient(),n=e&&e.getOptions(),s={sessionSampleRate:0,errorSampleRate:0,...(0,r.Jr)(t)};return n?(null==t.sessionSampleRate&&null==t.errorSampleRate&&null==n.replaysSessionSampleRate&&null==n.replaysOnErrorSampleRate&&console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set."),"number"==typeof n.replaysSessionSampleRate&&(s.sessionSampleRate=n.replaysSessionSampleRate),"number"==typeof n.replaysOnErrorSampleRate&&(s.errorSampleRate=n.replaysOnErrorSampleRate),s):(console.warn("SDK client is not available."),s)}(this._initialOptions);this._replay=new Ji({options:t,recordingOptions:this._recordingOptions})}}function sr(t){return[...tr,...t.map((t=>t.toLowerCase()))]}nr.__initStatic();var ir=n(29553),rr=n(10516);const ar=100,or=5e3,cr=36e5;function lr(t,e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.info(`[Offline]: ${t}`,e)}function ur(t){return new Promise(((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)}))}function dr(t){return ur(t.getAllKeys())}function _r(t){let e;function n(){return null==e&&(e=function(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const s=ur(n);return t=>s.then((n=>t(n.transaction(e,"readwrite").objectStore(e))))}(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async e=>{try{const s=await H(e,t.textEncoder);await function(t,e,n){return t((t=>dr(t).then((s=>{if(!(s.length>=n))return t.put(e,Math.max(...s,0)+1),ur(t.transaction)}))))}(n(),s,t.maxQueueSize||30)}catch(t){}},pop:async()=>{try{const e=await function(t){return t((t=>dr(t).then((e=>{if(0!==e.length)return ur(t.get(e[0])).then((n=>(t.delete(e[0]),ur(t.transaction).then((()=>n)))))}))))}(n());if(e)return function(t,e,n){let s="string"==typeof t?e.encode(t):t;function i(t){const e=s.subarray(0,t);return s=s.subarray(t+1),e}function r(){let t=s.indexOf(10);return t<0&&(t=s.length),JSON.parse(n.decode(i(t)))}const a=r(),o=[];for(;s.length;){const t=r(),e="number"==typeof t.length?t.length:void 0;o.push([t,e?i(e):r()])}return[a,o]}(e,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch(t){}}}}function hr(t){return function(t){return e=>t({...e,createStore:_r})}(function(t){return e=>{const n=t(e),s=e.createStore?e.createStore(e):void 0;let i,r=or;function a(t){s&&(i&&clearTimeout(i),i=setTimeout((async()=>{i=void 0;const t=await s.pop();t&&(lr("Attempting to send previously queued event"),c(t).catch((t=>{lr("Failed to retry sending",t)})))}),t),"number"!=typeof i&&i.unref&&i.unref())}function o(){i||(a(r),r=Math.min(2*r,cr))}async function c(t){try{const e=await n.send(t);let s=ar;if(e)if(e.headers&&e.headers["retry-after"])s=X(e.headers["retry-after"]);else if((e.statusCode||0)>=400)return e;return a(s),r=or,e}catch(n){if(s&&await function(t,n,s){return i=["replay_event","replay_recording","client_report"],!F(t,((t,e)=>i.includes(e)))&&(!e.shouldStore||e.shouldStore(t,n,s));var i}(t,n,r))return await s.insert(t),o(),lr("Error sending. Event queued",n),{};throw n}}return e.flushAtStartup&&o(),{send:c,flush:t=>n.flush(t)}}}(t))}const pr=function(t){let e=[],n={};return{add(t,s){for(;e.length>=20;){const t=e.shift();void 0!==t&&delete n[t]}n[t]&&this.delete(t),e.push(t),n[t]=s},clear(){n={},e=[]},get:t=>n[t],size:()=>e.length,delete(t){if(!n[t])return!1;delete n[t];for(let n=0;n<e.length;n++)if(e[n]===t){e.splice(n,1);break}return!0}}}(),fr=1e6,mr=String(0),gr="main";let yr="",vr="",Sr="",Er=ht.navigator&&ht.navigator.userAgent||"",br="";const kr=ht.navigator&&ht.navigator.language||ht.navigator&&ht.navigator.languages&&ht.navigator.languages[0]||"",wr=ht.navigator&&ht.navigator.userAgentData;var Tr;"object"==typeof(Tr=wr)&&null!==Tr&&"getHighEntropyValues"in Tr&&wr.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then((t=>{if(yr=t.platform||"",Sr=t.architecture||"",br=t.model||"",vr=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];Er=`${e.brand} ${e.version}`}})).catch((t=>{}));const Rr=3e4;let xr=!1;function Dr(t){return t?Nr(t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function Nr(t){const e=ht.Profiler;if("function"!=typeof e)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."),t;if(!t.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is not sampled, skipping profiling"),t;if(xr)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling has been disabled for the duration of the current user session."),t;const n=(0,f.Gd)().getClient(),s=n&&n.getOptions(),i=s&&s.profilesSampleRate||0;if(void 0===i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling disabled, enable it by setting `profilesSampleRate` option to SDK init call."),t;if(Math.random()>i)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Skip profiling transaction due to sampling."),t;const a=Math.floor(Rr/10);let o;try{o=new e({sampleInterval:10,maxBufferSize:a})}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(c.kg.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),c.kg.log("[Profiling] Disabling profiling for current user session.")),xr=!0}if(!o)return t;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] started profiling transaction: ${t.name||t.description}`);const u=(0,l.DM)();let d=null;function _(){t&&o&&(d?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] profile for:",t.name||t.description,"already exists, returning early"):o.stop().then((e=>{h&&(ht.clearTimeout(h),h=void 0),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] stopped profiling of transaction: ${t.name||t.description}`),e?e.samples.length<2||(d={...e,profile_id:u},function(t,e){const n=pr.get(t);if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Couldn't find a transaction event for this profile, dropping it."));n.sdkProcessingMetadata=n.sdkProcessingMetadata||{},n.sdkProcessingMetadata&&!n.sdkProcessingMetadata.profile&&(n.sdkProcessingMetadata.profile=e);const s=(0,f.Gd)().getClient();if(!s)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getClient did not return a Client, removing profile from event and forwarding to next event processors."));const i=s.getDsn();if(!i)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getDsn did not return a Dsn, removing profile from event and forwarding to next event processors."));const a=s.getTransport();if(!a)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] getTransport did not return a Transport, removing profile from event and forwarding to next event processors."));("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Preparing envelope and sending a profiling event");const o=function(t,e,n,s){if("transaction"!==t.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");const i=t.sdkProcessingMetadata.profile;if(null==i)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${i} instead.`);if(!i.profile_id)throw new TypeError("Profile is missing profile_id");if(i.samples.length<=1)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Discarding profile because it contains less than 2 samples"),null;const a=function(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return"string"==typeof e&&32!==e.length&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] Invalid traceId: ${e} on profiled event`),"string"!=typeof e?"":e}(t),o=function(t){if(t&&t.sdk)return{name:t.sdk.name,version:t.sdk.version}}(n);!function(t,e){e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name||"unknown sdk",t.sdk.version=t.sdk.version||e.version||"unknown sdk version",t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]])}(t,n&&n.sdk);const u=function(t,e,n,s){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:(new Date).toISOString(),...e&&{sdk:e},...!!n&&{dsn:U(s)},..."transaction"===t.type&&i&&{trace:(0,r.Jr)({...i})}}}(t,o,s,e),d=function(t){return!("thread_metadata"in t)}(p=i)?function(t){let e,n=0;const s={samples:[],stacks:[],frames:[],thread_metadata:{[mr]:{name:gr}}};if(!t.samples.length)return s;const i=t.samples[0].timestamp;for(let r=0;r<t.samples.length;r++){const a=t.samples[r];if(void 0===a.stackId){void 0===e&&(e=n,s.stacks[e]=[],n++),s.samples[r]={elapsed_since_start_ns:((a.timestamp-i)*fr).toFixed(0),stack_id:e,thread_id:mr};continue}let o=t.stacks[a.stackId];const c=[];for(;o;){c.push(o.frameId);const e=t.frames[o.frameId];void 0===s.frames[o.frameId]&&(s.frames[o.frameId]={function:e.name,file:e.resourceId?t.resources[e.resourceId]:void 0,line:e.line,column:e.column}),o=void 0===o.parentId?void 0:t.stacks[o.parentId]}const l={elapsed_since_start_ns:((a.timestamp-i)*fr).toFixed(0),stack_id:n,thread_id:mr};s.stacks[n]=c,s.samples[r]=l,n++}return s}(p):p,_="number"==typeof t.start_timestamp?1e3*t.start_timestamp:Date.now(),h="number"==typeof t.timestamp?1e3*t.timestamp:Date.now();var p;return P(u,[[{type:"profile"},{event_id:i.profile_id,timestamp:new Date(_).toISOString(),platform:"javascript",version:"1",release:t.release||"",environment:t.environment||bt.J,runtime:{name:"javascript",version:ht.navigator.userAgent},os:{name:yr,version:vr,build_number:Er},device:{locale:kr,model:br,manufacturer:Er,architecture:Sr,is_emulator:!1},profile:d,transactions:[{name:t.transaction||"",id:t.event_id||(0,l.DM)(),trace_id:a,active_thread_id:mr,relative_start_ns:"0",relative_end_ns:(1e6*(h-_)).toFixed(0)}]}]])}(n,i);pr.delete(t),o?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Envelope constructed, sending it"),a.send(o).then(null,(t=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Error while sending event:",t)}))):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Failed to construct envelope")}(u,d)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log(`[Profiling] profiler returned null profile for: ${t.name||t.description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started")})).catch((t=>(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] error while stopping profiler:",t),null))))}let h=ht.setTimeout((()=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] max profile duration elapsed, stopping profiling for:",t.name||t.description),_()}),Rr);const p=t.finish.bind(t);return t.finish=function(){return t?(_(),t.setContext("profile",{profile_id:u}),p()):p()},t}class Ir{constructor(){Ir.prototype.__init.call(this)}__init(){this.name="BrowserProfilingIntegration"}setupOnce(t){(function(){const t=(0,f.cu)();t.__SENTRY__?(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] startTransaction exists, patching it with profiling functionality..."),t.__SENTRY__.extensions.startTransaction=function(t){return function(e,n){const s=t.call(this,e,n);return void 0===s?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Transaction is undefined, skipping profiling"),s):Nr(s)}}(t.__SENTRY__.extensions.startTransaction)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] startTransaction does not exists, profiling will not work. Make sure you import @sentry/tracing package before @sentry/profiling-node as import order matters.")):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Can't find main carrier, profiling won't work.")})(),t(this.handleGlobalEvent.bind(this))}handleGlobalEvent(t){const e=t.contexts&&t.contexts.profile&&t.contexts.profile.profile_id;return e&&"string"==typeof e&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.kg.log("[Profiling] Profiling event found, caching it."),pr.add(e,t)),t}}let Cr={};ht.Sentry&&ht.Sentry.Integrations&&(Cr=ht.Sentry.Integrations);const Ur={...Cr,...s,...i}},51131:(t,e,n)=>{n.d(e,{J:()=>s});const s="production"},95659:(t,e,n)=>{n.d(e,{Gd:()=>f,Xb:()=>_,cu:()=>h,pj:()=>p,vi:()=>m});var s=n(62844),i=n(21170),r=n(12343),a=n(71235),o=n(51131),c=n(10350),l=n(9015);const u=4,d=100;class _{constructor(t,e=new c.s,n=u){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=c.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(t){const e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){const n=this._lastEventId=e&&e.event_id?e.event_id:(0,s.DM)(),i=new Error("Sentry syntheticException");return this._withClient(((s,r)=>{s.captureException(t,{originalException:t,syntheticException:i,...e,event_id:n},r)})),n}captureMessage(t,e,n){const i=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),r=new Error(t);return this._withClient(((s,a)=>{s.captureMessage(t,e,{originalException:t,syntheticException:r,...n,event_id:i},a)})),i}captureEvent(t,e){const n=e&&e.event_id?e.event_id:(0,s.DM)();return t.type||(this._lastEventId=n),this._withClient(((s,i)=>{s.captureEvent(t,{...e,event_id:n},i)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){const{scope:n,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=d}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:(0,i.yW)(),...t},l=a?(0,r.Cf)((()=>a(c,e))):c;null!==l&&(s.emit&&s.emit("beforeAddBreadcrumb",l,e),n.addBreadcrumb(l,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){const{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){const e=p(this);try{t(this)}finally{p(e)}}getIntegration(t){const e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){const n=this._callExtensionMethod("startTransaction",t,e);return"undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,e=t.getSession();e&&(0,l.RJ)(e),this._sendSessionUpdate(),t.setSession()}startSession(t){const{scope:e,client:n}=this.getStackTop(),{release:s,environment:i=o.J}=n&&n.getOptions()||{},{userAgent:r}=a.n2.navigator||{},c=(0,l.Hv)({release:s,environment:i,user:e.getUser(),...r&&{userAgent:r},...t}),u=e.getSession&&e.getSession();return u&&"ok"===u.status&&(0,l.CT)(u,{status:"exited"}),this.endSession(),e.setSession(c),c}shouldSendDefaultPii(){const t=this.getClient(),e=t&&t.getOptions();return Boolean(e&&e.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){const{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){const n=h().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function h(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function p(t){const e=h(),n=m(e);return g(e,t),n}function f(){const t=h();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=h()){return!!((e=t)&&e.__SENTRY__&&e.__SENTRY__.hub)&&!m(t).isOlderThan(u)||g(t,new _),m(t);var e}(t)}function m(t){return(0,a.YO)("hub",(()=>new _),t)}function g(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}},10350:(t,e,n)=>{n.d(e,{c:()=>_,s:()=>u});var s=n(67597),i=n(21170),r=n(96893),a=n(12343),o=n(62844),c=n(71235),l=n(9015);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const e=new u;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&(0,l.CT)(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){const e=t(this);return e instanceof u?e:this}return t instanceof u?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,s.PO)(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,e){const n="number"==typeof e?e:100;if(n<=0)return this;const s={timestamp:(0,i.yW)(),...t};return this._breadcrumbs=[...this._breadcrumbs,s].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const n=e.name;n&&(t.tags={transaction:n,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,e,n,i=0){return new r.cW(((r,o)=>{const c=t[i];if(null===e||"function"!=typeof c)r(e);else{const l=c({...e},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.id&&null===l&&a.kg.log(`Event processor "${c.id}" dropped event`),(0,s.J8)(l)?l.then((e=>this._notifyEventProcessors(t,e,n,i+1).then(r))).then(null,o):this._notifyEventProcessors(t,l,n,i+1).then(r).then(null,o)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((t=>{t(this)})),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?(0,o.lE)(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function d(){return(0,c.YO)("globalEventProcessors",(()=>[]))}function _(t){d().push(t)}},9015:(t,e,n)=>{n.d(e,{CT:()=>o,Hv:()=>a,RJ:()=>c});var s=n(21170),i=n(62844),r=n(20535);function a(t){const e=(0,s.ph)(),n={sid:(0,i.DM)(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(t){return(0,r.Jr)({sid:`${t.sid}`,init:t.init,started:new Date(1e3*t.started).toISOString(),timestamp:new Date(1e3*t.timestamp).toISOString(),status:t.status,errors:t.errors,did:"number"==typeof t.did||"string"==typeof t.did?`${t.did}`:void 0,duration:t.duration,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}(n)};return t&&o(n,t),n}function o(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,s.ph)(),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:(0,i.DM)()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{const e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}function c(t,e){let n={};e?n={status:e}:"ok"===t.status&&(n={status:"exited"}),o(t,n)}},76890:(t,e,n)=>{n.d(e,{T:()=>g,l:()=>m});var s=n(12343),i=n(67597),r=n(95659),a=n(47522),o=n(42533),c=n(9791);let l=!1;function u(){const t=(0,c.x1)();if(t){const e="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}u.tag="sentry_tracingErrorCallback";var d=n(65544),_=n(78069);function h(){const t=this.getScope().getSpan();return t?{"sentry-trace":t.toTraceparent()}:{}}function p(t,e,n){if(!(0,a.z)(e))return t.sampled=!1,t;if(void 0!==t.sampled)return t.setMetadata({sampleRate:Number(t.sampled)}),t;let r;return"function"==typeof e.tracesSampler?(r=e.tracesSampler(n),t.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:void 0!==e.tracesSampleRate?(r=e.tracesSampleRate,t.setMetadata({sampleRate:Number(r)})):(r=1,t.setMetadata({sampleRate:r})),o=r,((0,i.i2)(o)||"number"!=typeof o&&"boolean"!=typeof o?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!(o<0||o>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?(t.sampled=Math.random()<r,t.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] starting ${t.op} transaction - ${t.name}`),t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),t)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),t.sampled=!1,t):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),t.sampled=!1,t);var o}function f(t,e){const n=this.getClient(),i=n&&n.getOptions()||{},r=i.instrumenter||"sentry",a=t.instrumenter||"sentry";r!==a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${r}\` instrumenter.\nThe transaction will not be sampled. Please use the ${r} instrumentation to start transactions.`),t.sampled=!1);let o=new _.Y(t,this);return o=p(o,i,{parentSampled:t.parentSampled,transactionContext:t,...e}),o.sampled&&o.initSpanRecorder(i._experiments&&i._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function m(t,e,n,s,i,r,a){const o=t.getClient(),c=o&&o.getOptions()||{};let l=new d.io(e,t,n,s,a,i);return l=p(l,c,{parentSampled:e.parentSampled,transactionContext:e,...r}),l.sampled&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),o&&o.emit&&o.emit("startTransaction",l),l}function g(){const t=(0,r.cu)();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=f),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=h),l||(l=!0,(0,o.oq)("error",u),(0,o.oq)("unhandledrejection",u)))}},65544:(t,e,n)=>{n.d(e,{AT:()=>o,io:()=>u});var s=n(21170),i=n(12343),r=n(38903),a=n(78069);const o={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},c=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class l extends r.gB{constructor(t,e,n,s){super(s),this._pushActivity=t,this._popActivity=e,this.transactionSpanId=n}add(t){t.spanId!==this.transactionSpanId&&(t.finish=e=>{t.endTimestamp="number"==typeof e?e:(0,s.ph)(),this._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),super.add(t)}}class u extends a.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._idleTimeoutCanceledPermanently=!1}__init5(){this._beforeFinishCallbacks=[]}__init6(){this._finishReason=c[4]}constructor(t,e,n=o.idleTimeout,s=o.finalTimeout,r=o.heartbeatInterval,a=!1){super(t,e),this._idleHub=e,this._idleTimeout=n,this._finalTimeout=s,this._heartbeatInterval=r,this._onScope=a,u.prototype.__init.call(this),u.prototype.__init2.call(this),u.prototype.__init3.call(this),u.prototype.__init4.call(this),u.prototype.__init5.call(this),u.prototype.__init6.call(this),a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),e.configureScope((t=>t.setSpan(this)))),this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=c[3],this.finish())}),this._finalTimeout)}finish(t=(0,s.ph)()){if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setTag("finishReason",this._finishReason),this.spanRecorder){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanId===this.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const n=e.startTimestamp<t;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] No active IdleTransaction");if(this._onScope){const t=this._idleHub.getScope();t.getTransaction()===this&&t.setSpan(void 0)}return super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const e=t=>{this._finished||this._pushActivity(t)},n=t=>{this._finished||this._popActivity(t)};this.spanRecorder=new l(e,n,this.spanId,t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:e}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===e,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=c[5],this.finish(t)))}setFinishReason(t){this._finishReason=t}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=c[1],this.finish(t))}),this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`[Tracing] popActivity ${t}`),delete this.activities[t],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=(0,s.ph)();this._idleTimeoutCanceledPermanently?(this._finishReason=c[5],this.finish(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=c[0],this.finish()):this._pingHeartbeat()}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}},38903:(t,e,n)=>{n.d(e,{Dr:()=>c,Zd:()=>l,gB:()=>o});var s=n(62844),i=n(21170),r=n(12343),a=n(20535);class o{__init(){this.spans=[]}constructor(t=1e3){o.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class c{__init2(){this.traceId=(0,s.DM)()}__init3(){this.spanId=(0,s.DM)().substring(16)}__init4(){this.startTimestamp=(0,i.ph)()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),c.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const e=new c({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(e.spanRecorder=this.spanRecorder,e.spanRecorder&&e.spanRecorder.add(e),e.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&e.transaction){const n=`[Tracing] Starting '${t&&t.op||"< unknown op >"}' span on transaction '${e.transaction.name||"< unknown name >"}' (${e.transaction.spanId}).`;e.transaction.metadata.spanMetadata[e.spanId]={logMessage:n},r.kg.log(n)}return e}setTag(t,e){return this.tags={...this.tags,[t]:e},this}setData(t,e){return this.data={...this.data,[t]:e},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const e=l(t);return"unknown_error"!==e&&this.setStatus(e),this}isSuccess(){return"ok"===this.status}finish(t){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:t}=this.transaction.metadata.spanMetadata[this.spanId];t&&r.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof t?t:(0,i.ph)()}toTraceparent(){let t="";return void 0!==this.sampled&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return(0,a.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,a.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function l(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}},61250:(t,e,n)=>{n.d(e,{g:()=>r});var s=n(67597),i=n(95659);function r(t,e,n=(()=>{})){const r={...t};void 0!==r.name&&void 0===r.description&&(r.description=r.name);const a=(0,i.Gd)(),o=a.getScope(),c=o.getSpan(),l=c?c.startChild(r):a.startTransaction(r);function u(){l&&l.finish(),a.getScope().setSpan(c)}let d;o.setSpan(l);try{d=e(l)}catch(t){throw l&&l.setStatus("internal_error"),n(t),u(),t}return(0,s.J8)(d)?Promise.resolve(d).then((()=>{u()}),(t=>{l&&l.setStatus("internal_error"),n(t),u()})):u(),d}},78069:(t,e,n)=>{n.d(e,{Y:()=>c});var s=n(12343),i=n(20535),r=n(51131),a=n(95659),o=n(38903);class c extends o.Dr{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,e){super(t),c.prototype.__init.call(this),c.prototype.__init2.call(this),c.prototype.__init3.call(this),this._hub=e||(0,a.Gd)(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{}},this._trimEnd=t.trimEnd,this.transaction=this;const n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(t){this.setName(t)}setName(t,e="custom"){this._name=t,this.metadata.source=e}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new o.gB(t)),this.spanRecorder.add(this)}setContext(t,e){null===e?delete this._contexts[t]:this._contexts[t]=e}setMeasurement(t,e,n=""){this._measurements[t]={value:e,unit:n}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(void 0!==this.endTimestamp)return;this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t);const e=this._hub.getClient();if(e&&e.emit&&e.emit("finishTransaction",this),!0!==this.sampled)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(e&&e.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((t=>t!==this&&t.endTimestamp)):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce(((t,e)=>t.endTimestamp&&e.endTimestamp?t.endTimestamp>e.endTimestamp?t:e:t)).endTimestamp);const i=this.metadata,r={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:this.getDynamicSamplingContext()},...i.source&&{transaction_info:{source:i.source}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}toContext(){const t=super.toContext();return(0,i.Jr)({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||(0,a.Gd)(),e=t&&t.getClient();if(!e)return{};const{environment:n,release:s}=e.getOptions()||{},{publicKey:o}=e.getDsn()||{},c=this.metadata.sampleRate,l=void 0!==c?c.toString():void 0,{segment:u}=t.getScope().getUser()||{},d=this.metadata.source,_=d&&"url"!==d?this.name:void 0,h=(0,i.Jr)({environment:n||r.J,release:s,transaction:_,user_segment:u,public_key:o,trace_id:this.traceId,sample_rate:l});return e.emit&&e.emit("createDsc",h),h}setHub(t){this._hub=t}}},9791:(t,e,n)=>{n.d(e,{x1:()=>i});var s=n(95659);function i(t){return(t||(0,s.Gd)()).getScope().getTransaction()}},47522:(t,e,n)=>{n.d(e,{z:()=>i});var s=n(95659);function i(t){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const e=(0,s.Gd)().getClient(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}},9867:(t,e,n)=>{n.r(e),n.d(e,{BROWSER_TRACING_INTEGRATION_ID:()=>P,BrowserTracing:()=>B,IdleTransaction:()=>q,Integrations:()=>K,Span:()=>z,SpanStatus:()=>J,TRACEPARENT_REGEXP:()=>H,Transaction:()=>L,addExtensionMethods:()=>O,defaultRequestInstrumentationOptions:()=>$,extractTraceparentData:()=>Y,getActiveTransaction:()=>G,hasTracingEnabled:()=>F,instrumentOutgoingRequests:()=>W,spanStatusfromHttpCode:()=>M,startIdleTransaction:()=>Z,stripUrlQueryAndFragment:()=>j});var s,i=n(29553),r=n(758),a=n(9791),o=n(77638),c=n(38903),l=n(78069),u=n(10516),d=n(47522),_=n(26956),h=n(65544),p=n(76890);function f(t){let e,n=t[0],s=1;for(;s<t.length;){const i=t[s],r=t[s+1];if(s+=2,("optionalAccess"===i||"optionalCall"===i)&&null==n)return;"access"===i||"optionalAccess"===i?(e=n,n=r(n)):"call"!==i&&"optionalCall"!==i||(n=r(((...t)=>n.call(e,...t))),e=void 0)}return n}!function(t){t.Ok="ok",t.DeadlineExceeded="deadline_exceeded",t.Unauthenticated="unauthenticated",t.PermissionDenied="permission_denied",t.NotFound="not_found",t.ResourceExhausted="resource_exhausted",t.InvalidArgument="invalid_argument",t.Unimplemented="unimplemented",t.Unavailable="unavailable",t.InternalError="internal_error",t.UnknownError="unknown_error",t.Cancelled="cancelled",t.AlreadyExists="already_exists",t.FailedPrecondition="failed_precondition",t.Aborted="aborted",t.OutOfRange="out_of_range",t.DataLoss="data_loss"}(s||(s={}));var m=n(61422),g=n(12343),y=n(20535),v=n(62844),S=n(67597);function E(t){const e=f([t,"call",t=>t(),"access",t=>t.getClient,"call",t=>t(),"optionalAccess",t=>t.getOptions,"call",t=>t()]);return"sentry"!==(f([e,"optionalAccess",t=>t.instrumenter])||"sentry")}class b{static __initStatic(){this.id="Apollo"}__init(){this.name=b.id}constructor(t={useNestjs:!1}){b.prototype.__init.call(this),this._useNest=!!t.useNestjs}loadDependency(){return this._useNest?this._module=this._module||(0,m.$y)("@nestjs/graphql"):this._module=this._module||(0,m.$y)("apollo-server-core"),this._module}setupOnce(t,e){if(E(e))("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Apollo Integration is skipped because of instrumenter configuration.");else if(this._useNest){const t=this.loadDependency();if(!t)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Apollo-NestJS Integration was unable to require @nestjs/graphql package."));(0,y.hl)(t.GraphQLFactory.prototype,"mergeWithSchema",(function(t){return function(...n){return(0,y.hl)(this.resolversExplorerService,"explore",(function(t){return function(){return k((0,v.lE)(t.call(this)),e)}})),t.call(this,...n)}}))}else{const t=this.loadDependency();if(!t)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Apollo Integration was unable to require apollo-server-core package."));(0,y.hl)(t.ApolloServerBase.prototype,"constructSchema",(function(t){return function(){if(!this.config.resolvers)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this.config.schema?(g.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `schema` property.If you are using NestJS with Apollo, please use `Sentry.Integrations.Apollo({ useNestjs: true })` instead."),g.kg.warn()):this.config.modules&&g.kg.warn("Apollo integration is not able to trace `ApolloServer` instances constructed via `modules` property."),g.kg.error("Skipping tracing as no resolvers found on the `ApolloServer` instance.")),t.call(this);const n=(0,v.lE)(this.config.resolvers);return this.config.resolvers=k(n,e),t.call(this)}}))}}}function k(t,e){return t.map((t=>(Object.keys(t).forEach((n=>{Object.keys(t[n]).forEach((s=>{"function"==typeof t[n][s]&&function(t,e,n,s){(0,y.hl)(t[e],n,(function(t){return function(...i){const r=f([s().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:`${e}.${n}`,op:"graphql.resolve"})]),o=t.call(this,...i);return(0,S.J8)(o)?o.then((t=>(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),o)}}))}(t,n,s,e)}))})),t)))}b.__initStatic();class w{static __initStatic(){this.id="Express"}__init(){this.name=w.id}constructor(t={}){w.prototype.__init.call(this),this._router=t.router||t.app,this._methods=(Array.isArray(t.methods)?t.methods:[]).concat("use")}setupOnce(t,e){this._router?E(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Express Integration is skipped because of instrumenter configuration."):(function(t,e=[]){e.forEach((e=>function(t,e){const n=t[e];return t[e]=function(...t){return n.call(this,...function(t,e){return t.map((t=>"function"==typeof t?T(t,e):Array.isArray(t)?t.map((t=>"function"==typeof t?T(t,e):t)):t))}(t,e))},t}(t,e)))}(this._router,this._methods),function(t){const e="settings"in t;e&&void 0===t._router&&t.lazyrouter&&t.lazyrouter();const n=e?t._router:t;if(!n)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.debug("Cannot instrument router for URL Parameterization (did not find a valid router)."),void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.debug("Routing instrumentation is currently only supported in Express 4."));const s=Object.getPrototypeOf(n),i=s.process_params;s.process_params=function(t,e,n,s,r){n._reconstructedRoute||(n._reconstructedRoute="");const{layerRoutePath:a,isRegex:o,isArray:c,numExtraSegments:l}=function(t){const e=f([t,"access",t=>t.route,"optionalAccess",t=>t.path]),n=(0,S.Kj)(e),s=Array.isArray(e);if(!e)return{isRegex:n,isArray:s,numExtraSegments:0};const i=s?Math.max(e.reduce(((t,e)=>t+(0,_.$A)(e.toString())),0)-(0,_.$A)(t.path||""),0):0,r=function(t,e){return t?e.map((t=>t.toString())).join(","):e&&e.toString()}(s,e);return{layerRoutePath:r,isRegex:n,isArray:s,numExtraSegments:i}}(t);(a||o||c)&&(n._hasParameters=!0);const u=(a||t.path||"").split("/").filter((t=>t.length>0&&(o||c||!t.includes("*")))).join("/");if(u&&u.length>0&&(n._reconstructedRoute+=`/${u}${o?"/":""}`),(0,_.$A)(n.originalUrl||"")+l===(0,_.$A)(n._reconstructedRoute)){n._hasParameters||n._reconstructedRoute!==n.originalUrl&&(n._reconstructedRoute=n.originalUrl);const t=s.__sentry_transaction;if(t&&"custom"!==t.metadata.source){const e=n._reconstructedRoute||"/";t.setName(...function(t,e={}){const n=t.method&&t.method.toUpperCase();let s="",i="url";e.customRoute||t.route?(s=e.customRoute||`${t.baseUrl||""}${t.route&&t.route.path}`,i="route"):(t.originalUrl||t.url)&&(s=(0,_.rt)(t.originalUrl||t.url||""));let r="";return e.method&&n&&(r+=n),e.method&&e.path&&(r+=" "),e.path&&s&&(r+=s),[r,i]}(n,{path:!0,method:!0,customRoute:e}))}}return i.call(this,t,e,n,s,r)}}(this._router)):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("ExpressIntegration is missing an Express instance")}}function T(t,e){const n=t.length;switch(n){case 2:return function(n,s){const i=s.__sentry_transaction;if(i){const n=i.startChild({description:t.name,op:`middleware.express.${e}`});s.once("finish",(()=>{n.finish()}))}return t.call(this,n,s)};case 3:return function(n,s,i){const r=f([s.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`})]);t.call(this,n,s,(function(...t){f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),i.call(this,...t)}))};case 4:return function(n,s,i,r){const a=f([i.__sentry_transaction,"optionalAccess",t=>t.startChild,"call",n=>n({description:t.name,op:`middleware.express.${e}`})]);t.call(this,n,s,i,(function(...t){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),r.call(this,...t)}))};default:throw new Error(`Express middleware takes 2-4 arguments. Got: ${n}`)}}w.__initStatic();class R{constructor(){R.prototype.__init.call(this)}static __initStatic(){this.id="GraphQL"}__init(){this.name=R.id}loadDependency(){return this._module=this._module||(0,m.$y)("graphql/execution/execute.js")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("GraphQL Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,y.hl)(n,"execute",(function(t){return function(...n){const s=e().getScope(),i=f([s,"optionalAccess",t=>t.getSpan,"call",t=>t()]),r=f([i,"optionalAccess",t=>t.startChild,"call",t=>t({description:"execute",op:"graphql.execute"})]);f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(r)]);const a=t.call(this,...n);return(0,S.J8)(a)?a.then((t=>(f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),t))):(f([r,"optionalAccess",t=>t.finish,"call",t=>t()]),f([s,"optionalAccess",t=>t.setSpan,"call",t=>t(i)]),a)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("GraphQL Integration was unable to require graphql/execution package.")}}R.__initStatic();const x=["aggregate","bulkWrite","countDocuments","createIndex","createIndexes","deleteMany","deleteOne","distinct","drop","dropIndex","dropIndexes","estimatedDocumentCount","find","findOne","findOneAndDelete","findOneAndReplace","findOneAndUpdate","indexes","indexExists","indexInformation","initializeOrderedBulkOp","insertMany","insertOne","isCapped","mapReduce","options","parallelCollectionScan","rename","replaceOne","stats","updateMany","updateOne"],D={bulkWrite:["operations"],countDocuments:["query"],createIndex:["fieldOrSpec"],createIndexes:["indexSpecs"],deleteMany:["filter"],deleteOne:["filter"],distinct:["key","query"],dropIndex:["indexName"],find:["query"],findOne:["query"],findOneAndDelete:["filter"],findOneAndReplace:["filter","replacement"],findOneAndUpdate:["filter","update"],indexExists:["indexes"],insertMany:["docs"],insertOne:["doc"],mapReduce:["map","reduce"],rename:["newName"],replaceOne:["filter","doc"],updateMany:["filter","update"],updateOne:["filter","update"]};class N{static __initStatic(){this.id="Mongo"}__init(){this.name=N.id}constructor(t={}){N.prototype.__init.call(this),this._operations=Array.isArray(t.operations)?t.operations:x,this._describeOperations=!("describeOperations"in t)||t.describeOperations,this._useMongoose=!!t.useMongoose}loadDependency(){const t=this._useMongoose?"mongoose":"mongodb";return this._module=this._module||(0,m.$y)(t)}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Mongo Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(n)this._instrumentOperations(n.Collection,this._operations,e);else{const t=this._useMongoose?"mongoose":"mongodb";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error(`Mongo Integration was unable to require \`${t}\` package.`)}}_instrumentOperations(t,e,n){e.forEach((e=>this._patchOperation(t,e,n)))}_patchOperation(t,e,n){if(!(e in t.prototype))return;const s=this._getSpanContextFromOperationArguments.bind(this);(0,y.hl)(t.prototype,e,(function(t){return function(...i){const r=i[i.length-1],a=f([n().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]);if("function"!=typeof r||"mapReduce"===e&&2===i.length){const n=f([a,"optionalAccess",t=>t.startChild,"call",t=>t(s(this,e,i))]),r=t.call(this,...i);if((0,S.J8)(r))return r.then((t=>(f([n,"optionalAccess",t=>t.finish,"call",t=>t()]),t)));if((o=r)&&"object"==typeof o&&o.once&&"function"==typeof o.once){const t=r;try{t.once("close",(()=>{f([n,"optionalAccess",t=>t.finish,"call",t=>t()])}))}catch(t){f([n,"optionalAccess",t=>t.finish,"call",t=>t()])}return t}return f([n,"optionalAccess",t=>t.finish,"call",t=>t()]),r}var o;const c=f([a,"optionalAccess",t=>t.startChild,"call",t=>t(s(this,e,i.slice(0,-1)))]);return t.call(this,...i.slice(0,-1),(function(t,e){f([c,"optionalAccess",t=>t.finish,"call",t=>t()]),r(t,e)}))}}))}_getSpanContextFromOperationArguments(t,e,n){const s={collectionName:t.collectionName,dbName:t.dbName,namespace:t.namespace,"db.system":"mongodb"},i={op:"db",description:e,data:s},r=D[e],a=Array.isArray(this._describeOperations)?this._describeOperations.includes(e):this._describeOperations;if(!r||!a)return i;try{if("mapReduce"===e){const[t,e]=n;s[r[0]]="string"==typeof t?t:t.name||"<anonymous>",s[r[1]]="string"==typeof e?e:e.name||"<anonymous>"}else for(let t=0;t<r.length;t++)s[r[t]]=JSON.stringify(n[t])}catch(t){}return i}}N.__initStatic();class I{constructor(){I.prototype.__init.call(this)}static __initStatic(){this.id="Mysql"}__init(){this.name=I.id}loadDependency(){return this._module=this._module||(0,m.$y)("mysql/lib/Connection.js")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Mysql Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();n?(0,y.hl)(n,"createQuery",(function(t){return function(n,s,i){const r=f([e().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.sql,op:"db",data:{"db.system":"mysql"}})]);return"function"==typeof i?t.call(this,n,s,(function(t,e,n){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e,n)})):"function"==typeof s?t.call(this,n,(function(t,e,n){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e,n)})):t.call(this,n,s,i)}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Mysql Integration was unable to require `mysql` package.")}}I.__initStatic();class C{static __initStatic(){this.id="Postgres"}__init(){this.name=C.id}constructor(t={}){C.prototype.__init.call(this),this._usePgNative=!!t.usePgNative}loadDependency(){return this._module=this._module||(0,m.$y)("pg")}setupOnce(t,e){if(E(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Postgres Integration is skipped because of instrumenter configuration."));const n=this.loadDependency();if(!n)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Postgres Integration was unable to require `pg` package."));if(this._usePgNative&&!f([n,"access",t=>t.native,"optionalAccess",t=>t.Client]))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("Postgres Integration was unable to access 'pg-native' bindings."));const{Client:s}=this._usePgNative?n.native:n;(0,y.hl)(s.prototype,"query",(function(t){return function(n,s,i){const r=f([e().getScope(),"optionalAccess",t=>t.getSpan,"call",t=>t()]),a=f([r,"optionalAccess",t=>t.startChild,"call",t=>t({description:"string"==typeof n?n:n.text,op:"db",data:{"db.system":"postgresql"}})]);if("function"==typeof i)return t.call(this,n,s,(function(t,e){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),i(t,e)}));if("function"==typeof s)return t.call(this,n,(function(t,e){f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),s(t,e)}));const o=void 0!==s?t.call(this,n,s):t.call(this,n);return(0,S.J8)(o)?o.then((t=>(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),t))):(f([a,"optionalAccess",t=>t.finish,"call",t=>t()]),o)}}))}}C.__initStatic();var U=n(61250);class A{static __initStatic(){this.id="Prisma"}__init(){this.name=A.id}constructor(t={}){var e;A.prototype.__init.call(this),(e=t.client)&&e.$use?this._client=t.client:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.warn(`Unsupported Prisma client provided to PrismaIntegration. Provided client: ${JSON.stringify(t.client)}`)}setupOnce(t,e){this._client?E(e)?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.log("Prisma Integration is skipped because of instrumenter configuration."):this._client.$use(((t,e)=>{const n=t.action,s=t.model;return(0,U.g)({name:s?`${s} ${n}`:n,op:"db.sql.prisma",data:{"db.system":"prisma"}},(()=>e(t)))})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&g.kg.error("PrismaIntegration is missing a Prisma Client Instance")}}A.__initStatic();const B=i.gE,O=r.r,G=a.x1,Y=o.q,M=c.Zd,L=l.Y,z=c.Dr,P=i.N,$=u.k3,F=d.z,j=_.rt,H=o.K,q=h.io,W=u.L7,Z=p.l,J=s,K={BrowserTracing:B,Apollo:b,Express:w,GraphQL:R,Mongo:N,Mysql:I,Postgres:C,Prisma:A};("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,r.r)()},99181:(t,e,n)=>{n.d(e,{EN:()=>l,IQ:()=>u,bU:()=>r});var s=n(67597),i=n(12343);const r="baggage",a="sentry-",o=/^sentry-/,c=8192;function l(t){if(!(0,s.HD)(t)&&!Array.isArray(t))return;let e={};if(Array.isArray(t))e=t.reduce(((t,e)=>({...t,...d(e)})),{});else{if(!t)return;e=d(t)}const n=Object.entries(e).reduce(((t,[e,n])=>(e.match(o)&&(t[e.slice(a.length)]=n),t)),{});return Object.keys(n).length>0?n:void 0}function u(t){return function(t){if(0!==Object.keys(t).length)return Object.entries(t).reduce(((t,[e,n],s)=>{const r=`${encodeURIComponent(e)}=${encodeURIComponent(n)}`,a=0===s?r:`${t},${r}`;return a.length>c?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Not adding key: ${e} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):a}),"")}(Object.entries(t).reduce(((t,[e,n])=>(n&&(t[`${a}${e}`]=n),t)),{}))}function d(t){return t.split(",").map((t=>t.split("=").map((t=>decodeURIComponent(t.trim()))))).reduce(((t,[e,n])=>(t[e]=n,t)),{})}},58464:(t,e,n)=>{n.d(e,{Rt:()=>a,l4:()=>c,qT:()=>l});var s=n(67597);const i=(0,n(71235).Rf)(),r=80;function a(t,e={}){try{let n=t;const s=5,i=[];let a=0,c=0;const l=" > ",u=l.length;let d;const _=Array.isArray(e)?e:e.keyAttrs,h=!Array.isArray(e)&&e.maxStringLength||r;for(;n&&a++<s&&(d=o(n,_),!("html"===d||a>1&&c+i.length*u+d.length>=h));)i.push(d),c+=d.length,n=n.parentNode;return i.reverse().join(l)}catch(t){return"<unknown>"}}function o(t,e){const n=t,i=[];let r,a,o,c,l;if(!n||!n.tagName)return"";i.push(n.tagName.toLowerCase());const u=e&&e.length?e.filter((t=>n.getAttribute(t))).map((t=>[t,n.getAttribute(t)])):null;if(u&&u.length)u.forEach((t=>{i.push(`[${t[0]}="${t[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),r=n.className,r&&(0,s.HD)(r))for(a=r.split(/\s+/),l=0;l<a.length;l++)i.push(`.${a[l]}`);const d=["aria-label","type","name","title","alt"];for(l=0;l<d.length;l++)o=d[l],c=n.getAttribute(o),c&&i.push(`[${o}="${c}"]`);return i.join("")}function c(){try{return i.document.location.href}catch(t){return""}}function l(t){return i.document&&i.document.querySelector?i.document.querySelector(t):null}},68518:(t,e,n)=>{function s(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function i(){return"npm"}n.d(e,{S:()=>i,n:()=>s})},42533:(t,e,n)=>{n.d(e,{xU:()=>d,oq:()=>p});var s=n(67597),i=n(12343),r=n(20535),a=n(30360),o=n(8823),c=n(71235);const l=(0,c.Rf)(),u=(0,c.Rf)(),d="__sentry_xhr_v2__",_={},h={};function p(t,e){_[t]=_[t]||[],_[t].push(e),function(t){if(!h[t])switch(h[t]=!0,t){case"console":"console"in u&&i.RU.forEach((function(t){t in u.console&&(0,r.hl)(u.console,t,(function(e){return function(...n){f("console",{args:n,level:t}),e&&e.apply(u.console,n)}}))}));break;case"dom":!function(){if(!("document"in u))return;const t=f.bind(null,"dom"),e=b(t,!0);u.document.addEventListener("click",e,!1),u.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach((e=>{const n=u[e]&&u[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,r.hl)(n,"addEventListener",(function(e){return function(n,s,i){if("click"===n||"keypress"==n)try{const s=this,r=s.__sentry_instrumentation_handlers__=s.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){const s=b(t);a.handler=s,e.call(this,n,s,i)}a.refCount++}catch(t){}return e.call(this,n,s,i)}})),(0,r.hl)(n,"removeEventListener",(function(t){return function(e,n,s){if("click"===e||"keypress"==e)try{const n=this,i=n.__sentry_instrumentation_handlers__||{},r=i[e];r&&(r.refCount--,r.refCount<=0&&(t.call(this,e,r.handler,s),r.handler=void 0,delete i[e]),0===Object.keys(i).length&&delete n.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,s)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in u))return;const t=XMLHttpRequest.prototype;(0,r.hl)(t,"open",(function(t){return function(...e){const n=e[1],i=this[d]={method:(0,s.HD)(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};(0,s.HD)(n)&&"POST"===i.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const a=()=>{const t=this[d];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}f("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?(0,r.hl)(this,"onreadystatechange",(function(t){return function(...e){return a(),t.apply(this,e)}})):this.addEventListener("readystatechange",a),(0,r.hl)(this,"setRequestHeader",(function(t){return function(...e){const[n,s]=e,i=this[d];return i&&(i.request_headers[n.toLowerCase()]=s),t.apply(this,e)}})),t.apply(this,e)}})),(0,r.hl)(t,"send",(function(t){return function(...e){const n=this[d];return n&&void 0!==e[0]&&(n.body=e[0]),f("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}}))}();break;case"fetch":(0,o.t$)()&&(0,r.hl)(u,"fetch",(function(t){return function(...e){const{method:n,url:s}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){const[e,n]=t;return{url:g(e),method:m(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:g(e),method:m(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:s},startTimestamp:Date.now()};return f("fetch",{...i}),t.apply(u,e).then((t=>(f("fetch",{...i,endTimestamp:Date.now(),response:t}),t)),(t=>{throw f("fetch",{...i,endTimestamp:Date.now(),error:t}),t}))}}));break;case"history":!function(){if(!function(){const t=l.chrome,e=t&&t.app&&t.app.runtime,n="history"in l&&!!l.history.pushState&&!!l.history.replaceState;return!e&&n}())return;const t=u.onpopstate;function e(t){return function(...e){const n=e.length>2?e[2]:void 0;if(n){const t=y,e=String(n);y=e,f("history",{from:t,to:e})}return t.apply(this,e)}}u.onpopstate=function(...e){const n=u.location.href,s=y;if(y=n,f("history",{from:s,to:n}),t)try{return t.apply(this,e)}catch(t){}},(0,r.hl)(u.history,"pushState",e),(0,r.hl)(u.history,"replaceState",e)}();break;case"error":k=u.onerror,u.onerror=function(t,e,n,s,i){return f("error",{column:s,error:i,line:n,msg:t,url:e}),!(!k||k.__SENTRY_LOADER__)&&k.apply(this,arguments)},u.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":w=u.onunhandledrejection,u.onunhandledrejection=function(t){return f("unhandledrejection",t),!(w&&!w.__SENTRY_LOADER__)||w.apply(this,arguments)},u.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",t)}}(t)}function f(t,e){if(t&&_[t])for(const n of _[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${t}\nName: ${(0,a.$P)(n)}\nError:`,e)}}function m(t,e){return!!t&&"object"==typeof t&&!!t[e]}function g(t){return"string"==typeof t?t:t?m(t,"url")?t.url:t.toString?t.toString():"":""}let y;const v=1e3;let S,E;function b(t,e=!1){return n=>{if(!n||E===n)return;if(function(t){if("keypress"!==t.type)return!1;try{const e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(n))return;const s="keypress"===n.type?"input":n.type;(void 0===S||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(E,n))&&(t({event:n,name:s,global:e}),E=n),clearTimeout(S),S=u.setTimeout((()=>{S=void 0}),v)}}let k=null,w=null},67597:(t,e,n)=>{n.d(e,{Cy:()=>m,HD:()=>l,J8:()=>f,Kj:()=>p,PO:()=>d,TX:()=>o,V9:()=>y,VW:()=>a,VZ:()=>i,cO:()=>_,fm:()=>c,i2:()=>g,kK:()=>h,pt:()=>u});const s=Object.prototype.toString;function i(t){switch(s.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(t,Error)}}function r(t,e){return s.call(t)===`[object ${e}]`}function a(t){return r(t,"ErrorEvent")}function o(t){return r(t,"DOMError")}function c(t){return r(t,"DOMException")}function l(t){return r(t,"String")}function u(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function d(t){return r(t,"Object")}function _(t){return"undefined"!=typeof Event&&y(t,Event)}function h(t){return"undefined"!=typeof Element&&y(t,Element)}function p(t){return r(t,"RegExp")}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function m(t){return d(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function g(t){return"number"==typeof t&&t!=t}function y(t,e){try{return t instanceof e}catch(t){return!1}}},12343:(t,e,n)=>{n.d(e,{Cf:()=>r,RU:()=>i,kg:()=>o});var s=n(71235);const i=["debug","info","warn","error","log","assert","trace"];function r(t){if(!("console"in s.n2))return t();const e=s.n2.console,n={};i.forEach((t=>{const s=e[t]&&e[t].__sentry_original__;t in e&&s&&(n[t]=e[t],e[t]=s)}));try{return t()}finally{Object.keys(n).forEach((t=>{e[t]=n[t]}))}}function a(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{e[n]=(...e)=>{t&&r((()=>{s.n2.console[n](`Sentry Logger [${n}]:`,...e)}))}})):i.forEach((t=>{e[t]=()=>{}})),e}let o;o="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,s.YO)("logger",a):a()},62844:(t,e,n)=>{n.d(e,{DM:()=>r,Db:()=>c,EG:()=>l,YO:()=>u,jH:()=>o,lE:()=>d});var s=n(20535),i=n(71235);function r(){const t=i.n2,e=t.crypto||t.msCrypto;if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");const n=e&&e.getRandomValues?()=>e.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(t=>(t^(15&n())>>t/4).toString(16)))}function a(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function o(t){const{message:e,event_id:n}=t;if(e)return e;const s=a(t);return s?s.type&&s.value?`${s.type}: ${s.value}`:s.type||s.value||n||"<unknown>":n||"<unknown>"}function c(t,e,n){const s=t.exception=t.exception||{},i=s.values=s.values||[],r=i[0]=i[0]||{};r.value||(r.value=e||""),r.type||(r.type=n||"Error")}function l(t,e){const n=a(t);if(!n)return;const s=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...s,...e},e&&"data"in e){const t={...s&&s.data,...e.data};n.mechanism.data=t}}function u(t){if(t&&t.__sentry_captured__)return!0;try{(0,s.xp)(t,"__sentry_captured__",!0)}catch(t){}return!1}function d(t){return Array.isArray(t)?t:[t]}},61422:(t,e,n)=>{n.d(e,{$y:()=>a,KV:()=>i,l$:()=>r});var s=n(68518);function i(){return!(0,s.n)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function r(t,e){return t.require(e)}function a(e){let n;try{n=r(t,e)}catch(t){}try{const{cwd:s}=r(t,"process");n=r(t,`${s()}/node_modules/${e}`)}catch(t){}return n}t=n.hmd(t)},20535:(t,e,n)=>{n.d(e,{$Q:()=>c,HK:()=>l,Jr:()=>f,Sh:()=>d,_j:()=>u,hl:()=>a,xp:()=>o,zf:()=>p});var s=n(58464),i=n(67597),r=n(57321);function a(t,e,n){if(!(e in t))return;const s=t[e],i=n(s);if("function"==typeof i)try{c(i,s)}catch(t){}t[e]=i}function o(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}function c(t,e){const n=e.prototype||{};t.prototype=e.prototype=n,o(t,"__sentry_original__",e)}function l(t){return t.__sentry_original__}function u(t){return Object.keys(t).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`)).join("&")}function d(t){if((0,i.VZ)(t))return{message:t.message,name:t.name,stack:t.stack,...h(t)};if((0,i.cO)(t)){const e={type:t.type,target:_(t.target),currentTarget:_(t.currentTarget),...h(t)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(t,CustomEvent)&&(e.detail=t.detail),e}return t}function _(t){try{return(0,i.kK)(t)?(0,s.Rt)(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function h(t){if("object"==typeof t&&null!==t){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}return{}}function p(t,e=40){const n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return(0,r.$G)(n[0],e);for(let t=n.length;t>0;t--){const s=n.slice(0,t).join(", ");if(!(s.length>e))return t===n.length?s:(0,r.$G)(s,e)}return""}function f(t){return m(t,new Map)}function m(t,e){if((0,i.PO)(t)){const n=e.get(t);if(void 0!==n)return n;const s={};e.set(t,s);for(const n of Object.keys(t))void 0!==t[n]&&(s[n]=m(t[n],e));return s}if(Array.isArray(t)){const n=e.get(t);if(void 0!==n)return n;const s=[];return e.set(t,s),t.forEach((t=>{s.push(m(t,e))})),s}return t}},30360:(t,e,n)=>{n.d(e,{$P:()=>c,Sq:()=>a,pE:()=>r});const s=50,i=/\(error: (.*)\)/;function r(...t){const e=t.sort(((t,e)=>t[0]-e[0])).map((t=>t[1]));return(t,n=0)=>{const r=[],a=t.split("\n");for(let t=n;t<a.length;t++){const n=a[t];if(n.length>1024)continue;const o=i.test(n)?n.replace(i,"$1"):n;if(!o.match(/\S*Error: /)){for(const t of e){const e=t(o);if(e){r.push(e);break}}if(r.length>=s)break}}return function(t){if(!t.length)return[];const e=t.slice(0,s),n=e[e.length-1].function;n&&/sentryWrapped/.test(n)&&e.pop(),e.reverse();const i=e[e.length-1].function;return i&&/captureMessage|captureException/.test(i)&&e.pop(),e.map((t=>({...t,filename:t.filename||e[e.length-1].filename,function:t.function||"?"})))}(r)}}function a(t){return Array.isArray(t)?r(...t):t}const o="<anonymous>";function c(t){try{return t&&"function"==typeof t&&t.name||o}catch(t){return o}}},57321:(t,e,n)=>{n.d(e,{$G:()=>i,U0:()=>a,nK:()=>r});var s=n(67597);function i(t,e=0){return"string"!=typeof t||0===e||t.length<=e?t:`${t.slice(0,e)}...`}function r(t,e){if(!Array.isArray(t))return"";const n=[];for(let e=0;e<t.length;e++){const s=t[e];try{n.push(String(s))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function a(t,e=[],n=!1){return e.some((e=>function(t,e,n=!1){return!!(0,s.HD)(t)&&((0,s.Kj)(e)?e.test(t):!!(0,s.HD)(e)&&(n?t===e:t.includes(e)))}(t,e,n)))}},8823:(t,e,n)=>{n.d(e,{Ak:()=>r,Du:()=>a,t$:()=>o});var s=n(12343);const i=(0,n(71235).Rf)();function r(){if(!("fetch"in i))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}function a(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function o(){if(!r())return!1;if(a(i.fetch))return!0;let t=!1;const e=i.document;if(e&&"function"==typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=a(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}},96893:(t,e,n)=>{n.d(e,{$2:()=>a,WD:()=>r,cW:()=>o});var s,i=n(67597);function r(t){return new o((e=>{e(t)}))}function a(t){return new o(((e,n)=>{n(t)}))}!function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"}(s||(s={}));class o{__init(){this._state=s.PENDING}__init2(){this._handlers=[]}constructor(t){o.prototype.__init.call(this),o.prototype.__init2.call(this),o.prototype.__init3.call(this),o.prototype.__init4.call(this),o.prototype.__init5.call(this),o.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new o(((n,s)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){s(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){s(t)}else s(t)}]),this._executeHandlers()}))}catch(t){return this.then((t=>t),t)}finally(t){return new o(((e,n)=>{let s,i;return this.then((e=>{i=!1,s=e,t&&t()}),(e=>{i=!0,s=e,t&&t()})).then((()=>{i?n(s):e(s)}))}))}__init3(){this._resolve=t=>{this._setResult(s.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(s.REJECTED,t)}}__init5(){this._setResult=(t,e)=>{this._state===s.PENDING&&((0,i.J8)(e)?e.then(this._resolve,this._reject):(this._state=t,this._value=e,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===s.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach((t=>{t[0]||(this._state===s.RESOLVED&&t[1](this._value),this._state===s.REJECTED&&t[2](this._value),t[0]=!0)}))}}}},21170:(t,e,n)=>{n.d(e,{Z1:()=>_,ph:()=>u,yW:()=>l});var s=n(61422),i=n(71235);t=n.hmd(t);const r=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},o=(0,s.KV)()?function(){try{return(0,s.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){const{performance:t}=r;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),c=void 0===o?a:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},l=a.nowSeconds.bind(a),u=c.nowSeconds.bind(c);let d;const _=(()=>{const{performance:t}=r;if(!t||!t.now)return void(d="none");const e=36e5,n=t.now(),s=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-s):e,a=i<e,o=t.timing&&t.timing.navigationStart,c="number"==typeof o?Math.abs(o+n-s):e;return a||c<e?i<=c?(d="timeOrigin",t.timeOrigin):(d="navigationStart",o):(d="dateNow",s)})()},77638:(t,e,n)=>{n.d(e,{K:()=>s,q:()=>i});const s=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function i(t){const e=t.match(s);if(!t||!e)return;let n;return"1"===e[3]?n=!0:"0"===e[3]&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}},26956:(t,e,n)=>{function s(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",s=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:s,relative:e[5]+n+s}}function i(t){return t.split(/[\?#]/,1)[0]}function r(t){return t.split(/\\?\//).filter((t=>t.length>0&&","!==t)).length}n.d(e,{$A:()=>r,en:()=>s,rt:()=>i})},71235:(t,e,n)=>{function s(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:()=>r,YO:()=>a,n2:()=>i});const i="object"==typeof globalThis&&s(globalThis)||"object"==typeof window&&s(window)||"object"==typeof self&&s(self)||"object"==typeof n.g&&s(n.g)||function(){return this}()||{};function r(){return i}function a(t,e,n){const s=n||i,r=s.__SENTRY__=s.__SENTRY__||{};return r[t]||(r[t]=e())}}}]); |